f-low-code-renderer 1.0.3 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),Qr={class:"relative m-auto w-1200"},ea={class:"container"},ta={class:"title csr-v2-title-display"},na={class:"text csr-v2-text"},ia=l.defineComponent({name:"FBannerV2",__name:"FBanner",props:{config:{type:Object,required:!0}},setup(t){const e=t,n=l.computed(()=>e.config.bgImage?{backgroundImage:`url("${e.config.bgImage}")`}:{});return(i,s)=>(l.openBlock(),l.createElementBlock("div",{class:"banner_v2",style:l.normalizeStyle(n.value)},[l.createElementVNode("div",Qr,[l.createElementVNode("div",ea,[l.createElementVNode("div",ta,l.toDisplayString(t.config.title),1),l.createElementVNode("div",na,l.toDisplayString(t.config.text),1)])])],4))}}),U=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},$s=U(ia,[["__scopeId","data-v-69fbe02d"]]);function At(t,e){const n=typeof t=="string"&&!e?`${t}Context`:e,i=Symbol(n);return[r=>{const a=l.inject(i,r);if(a||a===null)return a;throw new Error(`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`)},r=>(l.provide(i,r),r)]}const[sa,oa]=At("Motion"),[ra]=At("LayoutGroup");function sn(t,e,n){if(typeof t=="object")return t;if(t&&e){const i=e[t];return typeof i=="function"?i(n):i}}function Zs(t,e){return typeof t!=typeof e?!0:Array.isArray(t)&&Array.isArray(e)?!aa(t,e):t!==e}function aa(t,e){const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function Gs(t,e){return t[e]?{...t,...t[e]}:{...t}}function si(t){return t==null?void 0:t.startsWith("--")}const la=t=>t;function ca(t){return typeof t=="number"}const ua=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],da=new Set(ua);function fa(t){return da.has(t)}const oi={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>`${t}deg`},pa={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>`${t}px`},rotate:oi,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:la},skew:oi},ha=["translate","scale","rotate","skew"],ma=["","X","Y","Z"],Tn=new Map,mt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];ha.forEach(t=>{ma.forEach(e=>{mt.push(t+e),Tn.set(t+e,pa[t])})});const va=new Set(mt),ga=t=>va.has(t),ri={x:"translateX",y:"translateY",z:"translateZ"};function ya([t],[e]){return mt.indexOf(t)-mt.indexOf(e)}function wa(t,[e,n]){return`${t} ${e}(${n})`}function Sa(t){return t.sort(ya).reduce(wa,"").trim()}const Xs={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0};function Bt(t){return!!(t&&t.getVelocity)}const Us={get:(t,e)=>{let n=si(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&n!=="0"){const i=Tn.get(e);i&&(n=i.initialValue)}return n},set:(t,e,n)=>{si(e)?t.style.setProperty(e,n):t.style[e]=n}};function ba(t){var e;const n={},i=[];for(let s in t){let o=t[s];o=Bt(o)?o.get():o,ga(s)&&s in ri&&(s=ri[s]);let r=Array.isArray(o)?o[0]:o;const a=Tn.get(s);a?(r=ca(o)?(e=a.toDefaultUnit)==null?void 0:e.call(a,o):o,i.push([s,r])):n[s]=r}return i.length&&(n.transform=Sa(i)),n}const ai={fill:!0,stroke:!0,strokeWidth:!0,opacity:!0,fillOpacity:!0,strokeOpacity:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,cx:!0,cy:!0,r:!0,d:!0,x:!0,y:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,pathLength:!0,transform:!0,viewBox:!0,width:!0,height:!0,preserveAspectRatio:!0,clipPath:!0,filter:!0,mask:!0,stopColor:!0,stopOpacity:!0,gradientTransform:!0,gradientUnits:!0,spreadMethod:!0,markerEnd:!0,markerMid:!0,markerStart:!0,textAnchor:!0,dominantBaseline:!0,fontFamily:!0,fontSize:!0,fontWeight:!0,letterSpacing:!0,vectorEffect:!0};function Ta(t){const e={},n={};for(const i in t)if(i in ai){const s=ai[i],o=typeof s=="string"?s:i,r=t[i];e[o]=Bt(r)?r.get():r}else n[i]=t[i];return{attributes:e,style:n}}function Hs(t){return t?t.flatMap(e=>e.type===l.Fragment?Hs(e.children):[e]):[]}const xa=l.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(t,{attrs:e,slots:n}){return()=>{var i,s;if(!n.default)return null;const o=Hs(n.default()),r=o.findIndex(u=>u.type!==l.Comment);if(r===-1)return o;const a=o[r];(i=a.props)==null||delete i.ref;const c=a.props?l.mergeProps(e,a.props):e;e.class&&((s=a.props)!=null&&s.class)&&delete a.props.class;const d=l.cloneVNode(a,c);for(const u in c)u.startsWith("on")&&(d.props||(d.props={}),d.props[u]=c[u]);return o.length===1?d:(o[r]=d,o)}}}),Ea=l.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"},getProps:{type:Function,default:()=>({})}},setup(t,{attrs:e,slots:n}){const i=t.asChild?"template":t.as,s=["area","img","input"];return()=>{const o=t.getProps(),r={...e,...o};return typeof i=="string"&&s.includes(i)?l.h(i,r):i!=="template"?l.h(t.as,r,{default:n.default}):l.h(xa,r,{default:n.default})}}});var xn=function(){};process.env.NODE_ENV!=="production"&&(xn=function(t,e){if(!t)throw new Error(e)});const de=new WeakMap;class ge{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}const X=t=>t;let Je=X,fe=X;process.env.NODE_ENV!=="production"&&(Je=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},fe=(t,e)=>{if(!t)throw new Error(e)});function Va(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(d){o.has(d)&&(c.schedule(d),t()),d(r)}const c={schedule:(d,u=!1,f=!1)=>{const h=f&&i?e:n;return u&&o.add(d),h.has(d)||h.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(r=d,i){s=!0;return}i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,c.process(d))}};return c}const st=["read","resolveKeyframes","update","preRender","render","postRender"],Pa=40;function Ws(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=st.reduce((g,S)=>(g[S]=Va(o),g),{}),{read:a,resolveKeyframes:c,update:d,preRender:u,render:f,postRender:p}=r,h=()=>{const g=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(g-s.timestamp,Pa),1),s.timestamp=g,s.isProcessing=!0,a.process(s),c.process(s),d.process(s),u.process(s),f.process(s),p.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(h))},m=()=>{n=!0,i=!0,s.isProcessing||t(h)};return{schedule:st.reduce((g,S)=>{const b=r[S];return g[S]=(E,w=!1,P=!1)=>(n||m(),b.schedule(E,w,P)),g},{}),cancel:g=>{for(let S=0;S<st.length;S++)r[st[S]].cancel(g)},state:s,steps:r}}const{schedule:I,cancel:pe,state:$,steps:It}=Ws(typeof requestAnimationFrame<"u"?requestAnimationFrame:X,!0);function Ma(t){return t instanceof SVGElement&&t.tagName!=="svg"}class Ca extends ge{mount(){const e=this.state.element;if(!Ma(e))return;const n=this.state.visualElement;I.read(()=>{try{n.renderState.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.renderState.dimensions={x:0,y:0,width:0,height:0}}})}unmount(){}}const vt={};function Ks(t){Object.assign(vt,t)}const Qe=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ce=Qe("deg"),re=Qe("%"),B=Qe("px"),Aa=Qe("vh"),Ba=Qe("vw"),li={...re,parse:t=>re.parse(t)/100,transform:t=>re.transform(t*100)};function ci(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Fe={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(B.test(t))t=parseFloat(t);else return t;const n=ci(t,e.target.x),i=ci(t,e.target.y);return`${n}% ${i}%`}},F=(t,e,n)=>t+(e-t)*n,he=(t,e,n)=>n>e?e:n<t?t:n,_e={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},We={..._e,transform:t=>he(0,1,t)},ot={..._e,default:1},Ge=t=>Math.round(t*1e5)/1e5,En=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function La(t){return t==null}const ka=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Vn=(t,e)=>n=>!!(typeof n=="string"&&ka.test(n)&&n.startsWith(t)||e&&!La(n)&&Object.prototype.hasOwnProperty.call(n,e)),qs=(t,e,n)=>i=>{if(typeof i!="string")return i;const[s,o,r,a]=i.match(En);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},_a=t=>he(0,255,t),Ot={..._e,transform:t=>Math.round(_a(t))},xe={test:Vn("rgb","red"),parse:qs("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Ot.transform(t)+", "+Ot.transform(e)+", "+Ot.transform(n)+", "+Ge(We.transform(i))+")"};function Da(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const on={test:Vn("#"),parse:Da,transform:xe.transform},Me={test:Vn("hsl","hue"),parse:qs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+re.transform(Ge(e))+", "+re.transform(Ge(n))+", "+Ge(We.transform(i))+")"},Z={test:t=>xe.test(t)||on.test(t)||Me.test(t),parse:t=>xe.test(t)?xe.parse(t):Me.test(t)?Me.parse(t):on.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?xe.transform(t):Me.transform(t)},Ia=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Oa(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(En))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ia))===null||n===void 0?void 0:n.length)||0)>0}const Ys="number",Js="color",za="var",Ra="var(",ui="${}",Na=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ke(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const a=e.replace(Na,c=>(Z.test(c)?(i.color.push(o),s.push(Js),n.push(Z.parse(c))):c.startsWith(Ra)?(i.var.push(o),s.push(za),n.push(c)):(i.number.push(o),s.push(Ys),n.push(parseFloat(c))),++o,ui)).split(ui);return{values:n,split:a,indexes:i,types:s}}function Qs(t){return Ke(t).values}function eo(t){const{split:e,types:n}=Ke(t),i=e.length;return s=>{let o="";for(let r=0;r<i;r++)if(o+=e[r],s[r]!==void 0){const a=n[r];a===Ys?o+=Ge(s[r]):a===Js?o+=Z.transform(s[r]):o+=s[r]}return o}}const Fa=t=>typeof t=="number"?0:t;function ja(t){const e=Qs(t);return eo(t)(e.map(Fa))}const me={test:Oa,parse:Qs,createTransformer:eo,getAnimatableNone:ja},$a={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=me.parse(t);if(s.length>5)return i;const o=me.createTransformer(t),r=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=c;const d=F(a,c,.5);return typeof s[2+r]=="number"&&(s[2+r]/=d),typeof s[3+r]=="number"&&(s[3+r]/=d),o(s)}},to={borderRadius:{...Fe,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fe,borderTopRightRadius:Fe,borderBottomLeftRadius:Fe,borderBottomRightRadius:Fe,boxShadow:$a},ft={hasAnimatedSinceResize:!0,hasEverUpdated:!1};class Za extends ge{constructor(e){super(e),Ks(to)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){var e;(e=this.state.visualElement.projection)==null||e.root.didUpdate()}beforeMount(){}mount(){var e;const n=this.state.options,i=this.state.options.layoutGroup;if(n.layout||n.layoutId){const s=this.state.visualElement.projection;s&&((e=i==null?void 0:i.group)==null||e.add(s)),ft.hasEverUpdated=!0,s==null||s.root.didUpdate()}}beforeUnmount(){const e=this.state.visualElement.projection;e&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(e.isPresent=!1,e.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){var e,n;const i=this.state.options.layoutGroup,s=this.state.visualElement.projection;i!=null&&i.group&&s&&i.group.remove(s),(this.state.options.layoutId||this.state.options.layout)&&((n=(e=this.state.visualElement.projection)==null?void 0:e.root)==null||n.didUpdate())}}function no(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function Pn(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function Ga(t){return e=>no(e)&&t(e,Pn(e))}function io(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Xe(t,e,n,i){return io(t,e,Ga(n),i)}const di=(t,e)=>Math.abs(t-e);function Xa(t,e){const n=di(t.x,e.x),i=di(t.y,e.y);return Math.sqrt(n**2+i**2)}const Ua=(t,e)=>n=>e(t(n)),Lt=(...t)=>t.reduce(Ua),Ha=t=>t*1e3;function Wa(t){return t/1e3}class so{constructor(e,n,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Rt(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=Xa(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:m}=f,{timestamp:v}=$;this.history.push({...m,timestamp:v});const{onStart:y,onMove:g}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=zt(p,this.transformPagePoint),I.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Rt(f.type==="pointercancel"?this.lastMoveEventInfo:zt(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,y),m&&m(f,y)},!no(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.contextWindow=s||window;const r=Pn(e),a=zt(r,this.transformPagePoint),{point:c}=a,{timestamp:d}=$;this.history=[{...c,timestamp:d}];const{onSessionStart:u}=n;u&&u(e,Rt(a,this.history)),this.removeListeners=Lt(Xe(this.contextWindow,"pointermove",this.handlePointerMove),Xe(this.contextWindow,"pointerup",this.handlePointerUp),Xe(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),pe(this.updatePoint)}}function zt(t,e){return e?{point:e(t.point)}:t}function fi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Rt({point:t},e){return{point:t,delta:fi(t,oo(e)),offset:fi(t,Ka(e)),velocity:qa(e,.1)}}function Ka(t){return t[0]}function oo(t){return t[t.length-1]}function qa(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=oo(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>Ha(e)));)n--;if(!i)return{x:0,y:0};const o=Wa(s.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function ro({current:t}){return t?t.ownerDocument.defaultView:null}function pi(t){return(e,n)=>{t&&I.postRender(()=>t(e,n))}}class Ya extends ge{constructor(){super(...arguments),this.removePointerDownListener=X}onPointerDown(e){this.session=new so(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:ro(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:pi((e,n)=>{const{onPanSessionStart:i}=this.state.options;i&&i(e,n)}),onStart:pi((e,n)=>{const{onPanStart:i}=this.state.options;i&&i(e,n)}),onMove:(e,n)=>{const{onPan:i}=this.state.options;i&&i(e,n)},onEnd:(e,n)=>{const{onPanEnd:i}=this.state.options;delete this.session,i&&I.postRender(()=>i(e,n))}}}mount(){this.removePointerDownListener=Xe(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Mn(t,e){return t?t[e]||t.default||t:void 0}const Ja={useManualTiming:!1};let pt;function Qa(){pt=void 0}const ee={now:()=>(pt===void 0&&ee.set($.isProcessing||Ja.useManualTiming?$.timestamp:performance.now()),pt),set:t=>{pt=t,queueMicrotask(Qa)}};function Cn(t,e){t.indexOf(e)===-1&&t.push(e)}function kt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class An{constructor(){this.subscriptions=[]}add(e){return Cn(this.subscriptions,e),()=>kt(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let o=0;o<s;o++){const r=this.subscriptions[o];r&&r(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ao(t,e){return e?t*(1e3/e):0}const hi=new Set;function Bn(t,e,n){t||hi.has(e)||(console.warn(e),hi.add(e))}const mi=30,el=t=>!isNaN(parseFloat(t));class tl{constructor(e,n={}){this.version="11.16.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,s=!0)=>{const o=ee.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=ee.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=el(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Bn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new An);const i=this.events[e].add(n);return e==="change"?()=>{i(),I.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ee.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>mi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,mi);return ao(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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 qe(t,e){return new tl(t,e)}const G=t=>!!(t&&t.getVelocity);function Ln(t){let e;return()=>(e===void 0&&(e=t()),e)}const nl=Ln(()=>window.ScrollTimeline!==void 0);class il{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(s=>{if(nl()&&s.attachTimeline)return s.attachTimeline(e);if(typeof n=="function")return n(s)});return()=>{i.forEach((s,o)=>{s&&s(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class lo extends il{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}const te=t=>t*1e3,ae=t=>t/1e3;function _t(t){return typeof t=="function"}function vi(t,e){t.timeline=e,t.onfinish=null}const kn=t=>Array.isArray(t)&&typeof t[0]=="number",sl={linearEasing:void 0};function ol(t,e){const n=Ln(t);return()=>{var i;return(i=sl[e])!==null&&i!==void 0?i:n()}}const gt=ol(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),et=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},co=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=t(et(0,s-1,o))+", ";return`linear(${i.substring(0,i.length-2)})`};function uo(t){return!!(typeof t=="function"&&gt()||!t||typeof t=="string"&&(t in rn||gt())||kn(t)||Array.isArray(t)&&t.every(uo))}const je=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,rn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:je([0,.65,.55,1]),circOut:je([.55,0,1,.45]),backIn:je([.31,.01,.66,-.59]),backOut:je([.33,1.53,.69,.99])};function fo(t,e){if(t)return typeof t=="function"&&gt()?co(t,e):kn(t)?je(t):Array.isArray(t)?t.map(n=>fo(n,e)||rn.easeOut):rn[t]}const po=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,rl=1e-7,al=12;function ll(t,e,n,i,s){let o,r,a=0;do r=e+(n-e)/2,o=po(r,i,s)-t,o>0?n=r:e=r;while(Math.abs(o)>rl&&++a<al);return r}function tt(t,e,n,i){if(t===e&&n===i)return X;const s=o=>ll(o,0,1,t,n);return o=>o===0||o===1?o:po(s(o),e,i)}const ho=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,mo=t=>e=>1-t(1-e),vo=tt(.33,1.53,.69,.99),_n=mo(vo),go=ho(_n),yo=t=>(t*=2)<1?.5*_n(t):.5*(2-Math.pow(2,-10*(t-1))),Dn=t=>1-Math.sin(Math.acos(t)),wo=mo(Dn),So=ho(Dn),bo=t=>/^0[^.\s]+$/u.test(t);function cl(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||bo(t):!0}const De=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ie=new Set(De),To=new Set(["width","height","top","left","right","bottom",...De]),ul=new Set(["brightness","contrast","saturate","opacity"]);function dl(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(En)||[];if(!i)return t;const s=n.replace(i,"");let o=ul.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const fl=/\b([a-z-]*)\(.*?\)/gu,an={...me,getAnimatableNone:t=>{const e=t.match(fl);return e?e.map(dl).join(" "):t}},pl={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,backgroundPositionX:B,backgroundPositionY:B},hl={rotate:ce,rotateX:ce,rotateY:ce,rotateZ:ce,scale:ot,scaleX:ot,scaleY:ot,scaleZ:ot,skew:ce,skewX:ce,skewY:ce,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:We,originX:li,originY:li,originZ:B},gi={..._e,transform:Math.round},In={...pl,...hl,zIndex:gi,size:B,fillOpacity:We,strokeOpacity:We,numOctaves:gi},ml={...In,color:Z,backgroundColor:Z,outlineColor:Z,fill:Z,stroke:Z,borderColor:Z,borderTopColor:Z,borderRightColor:Z,borderBottomColor:Z,borderLeftColor:Z,filter:an,WebkitFilter:an},On=t=>ml[t];function xo(t,e){let n=On(t);return n!==an&&(n=me),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const vl=new Set(["auto","none","0"]);function gl(t,e,n){let i=0,s;for(;i<t.length&&!s;){const o=t[i];typeof o=="string"&&!vl.has(o)&&Ke(o).values.length&&(s=t[i]),i++}if(s&&n)for(const o of e)t[o]=xo(n,s)}const yi=t=>t===_e||t===B,wi=(t,e)=>parseFloat(t.split(", ")[e]),Si=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return wi(s[1],e);{const o=i.match(/^matrix\((.+)\)$/u);return o?wi(o[1],t):0}},yl=new Set(["x","y","z"]),wl=De.filter(t=>!yl.has(t));function Sl(t){const e=[];return wl.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const Le={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Si(4,13),y:Si(5,14)};Le.translateX=Le.x;Le.translateY=Le.y;const Ee=new Set;let ln=!1,cn=!1;function Eo(){if(cn){const t=Array.from(Ee).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const s=Sl(i);s.length&&(n.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([o,r])=>{var a;(a=i.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}cn=!1,ln=!1,Ee.forEach(t=>t.complete()),Ee.clear()}function Vo(){Ee.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(cn=!0)})}function bl(){Vo(),Eo()}class zn{constructor(e,n,i,s,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ee.add(this),ln||(ln=!0,I.read(Vo),I.resolveKeyframes(Eo))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const r=s==null?void 0:s.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(i&&n){const c=i.readValue(n,a);c!=null&&(e[0]=c)}e[0]===void 0&&(e[0]=a),s&&r===void 0&&s.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ee.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ee.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Po=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Mo=t=>e=>typeof e=="string"&&e.startsWith(t),Co=Mo("--"),Tl=Mo("var(--"),Rn=t=>Tl(t)?xl.test(t.split("/*")[0].trim()):!1,xl=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,El=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Vl(t){const e=El.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}const Pl=4;function Ao(t,e,n=1){fe(n<=Pl,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=Vl(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const r=o.trim();return Po(r)?parseFloat(r):r}return Rn(s)?Ao(s,e,n+1):s}const Bo=t=>e=>e.test(t),Ml={test:t=>t==="auto",parse:t=>t},Lo=[_e,B,re,ce,Ba,Aa,Ml],bi=t=>Lo.find(Bo(t));class ko extends zn{constructor(e,n,i,s,o){super(e,n,i,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let d=e[c];if(typeof d=="string"&&(d=d.trim(),Rn(d))){const u=Ao(d,n.current);u!==void 0&&(e[c]=u),c===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!To.has(i)||e.length!==2)return;const[s,o]=e,r=bi(s),a=bi(o);if(r!==a)if(yi(r)&&yi(a))for(let c=0;c<e.length;c++){const d=e[c];typeof d=="string"&&(e[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)cl(e[s])&&i.push(s);i.length&&gl(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Le[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(i);o&&o.jump(this.measuredOrigin,!1);const r=s.length-1,a=s[r];s[r]=Le[i](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}const Ti=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(me.test(t)||t==="0")&&!t.startsWith("url("));function Cl(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Al(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Ti(s,e),a=Ti(o,e);return Je(r===a,`You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!r||!a?!1:Cl(t)||(n==="spring"||_t(n))&&i}const Bl=t=>t!==null;function Dt(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(Bl),o=e&&n!=="loop"&&e%2===1?0:s.length-1;return!o||i===void 0?s[o]:i}const Ll=40;class _o{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ee.now(),this.options={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Ll?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&bl(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=ee.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:o,delay:r,onComplete:a,onUpdate:c,isGenerator:d}=this.options;if(!d&&!Al(e,i,s,o))if(r)this.options.duration=0;else{c==null||c(Dt(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const yt=2e4;function Nn(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<yt;)e+=n,i=t.next(e);return e>=yt?1/0:e}function Nt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function kl({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,o=0,r=0;if(!e)s=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;s=Nt(c,a,t+1/3),o=Nt(c,a,t),r=Nt(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:i}}function wt(t,e){return n=>n>0?e:t}const Ft=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},_l=[on,xe,Me],Dl=t=>_l.find(e=>e.test(t));function xi(t){const e=Dl(t);if(Je(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===Me&&(n=kl(n)),n}const Ei=(t,e)=>{const n=xi(t),i=xi(e);if(!n||!i)return wt(t,e);const s={...n};return o=>(s.red=Ft(n.red,i.red,o),s.green=Ft(n.green,i.green,o),s.blue=Ft(n.blue,i.blue,o),s.alpha=F(n.alpha,i.alpha,o),xe.transform(s))},un=new Set(["none","hidden"]);function Il(t,e){return un.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Ol(t,e){return n=>F(t,e,n)}function Fn(t){return typeof t=="number"?Ol:typeof t=="string"?Rn(t)?wt:Z.test(t)?Ei:Nl:Array.isArray(t)?Do:typeof t=="object"?Z.test(t)?Ei:zl:wt}function Do(t,e){const n=[...t],i=n.length,s=t.map((o,r)=>Fn(o)(o,e[r]));return o=>{for(let r=0;r<i;r++)n[r]=s[r](o);return n}}function zl(t,e){const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=Fn(t[s])(t[s],e[s]));return s=>{for(const o in i)n[o]=i[o](s);return n}}function Rl(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][s[r]],c=(n=t.values[a])!==null&&n!==void 0?n:0;i[o]=c,s[r]++}return i}const Nl=(t,e)=>{const n=me.createTransformer(e),i=Ke(t),s=Ke(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?un.has(t)&&!s.values.length||un.has(e)&&!i.values.length?Il(t,e):Lt(Do(Rl(i,s),s.values),n):(Je(!0,`Complex values '${t}' and '${e}' 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.`),wt(t,e))};function Io(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?F(t,e,n):Fn(t)(t,e)}const Fl=5;function Oo(t,e,n){const i=Math.max(e-Fl,0);return ao(n-t(i),e-i)}const z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jt=.001;function jl({duration:t=z.duration,bounce:e=z.bounce,velocity:n=z.velocity,mass:i=z.mass}){let s,o;Je(t<=te(z.maxDuration),"Spring duration must be 10 seconds or less");let r=1-e;r=he(z.minDamping,z.maxDamping,r),t=he(z.minDuration,z.maxDuration,ae(t)),r<1?(s=d=>{const u=d*r,f=u*t,p=u-n,h=dn(d,r),m=Math.exp(-f);return jt-p/h*m},o=d=>{const f=d*r*t,p=f*n+n,h=Math.pow(r,2)*Math.pow(d,2)*t,m=Math.exp(-f),v=dn(Math.pow(d,2),r);return(-s(d)+jt>0?-1:1)*((p-h)*m)/v}):(s=d=>{const u=Math.exp(-d*t),f=(d-n)*t+1;return-jt+u*f},o=d=>{const u=Math.exp(-d*t),f=(n-d)*(t*t);return u*f});const a=5/t,c=Zl(s,o,a);if(t=te(t),isNaN(c))return{stiffness:z.stiffness,damping:z.damping,duration:t};{const d=Math.pow(c,2)*i;return{stiffness:d,damping:r*2*Math.sqrt(i*d),duration:t}}}const $l=12;function Zl(t,e,n){let i=n;for(let s=1;s<$l;s++)i=i-t(i)/e(i);return i}function dn(t,e){return t*Math.sqrt(1-e*e)}const Gl=["duration","bounce"],Xl=["stiffness","damping","mass"];function Vi(t,e){return e.some(n=>t[n]!==void 0)}function Ul(t){let e={velocity:z.velocity,stiffness:z.stiffness,damping:z.damping,mass:z.mass,isResolvedFromDuration:!1,...t};if(!Vi(t,Xl)&&Vi(t,Gl))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,o=2*he(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:z.mass,stiffness:s,damping:o}}else{const n=jl(t);e={...e,...n,mass:z.mass},e.isResolvedFromDuration=!0}return e}function jn(t=z.visualDuration,e=z.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:d,mass:u,duration:f,velocity:p,isResolvedFromDuration:h}=Ul({...n,velocity:-ae(n.velocity||0)}),m=p||0,v=d/(2*Math.sqrt(c*u)),y=r-o,g=ae(Math.sqrt(c/u)),S=Math.abs(y)<5;i||(i=S?z.restSpeed.granular:z.restSpeed.default),s||(s=S?z.restDelta.granular:z.restDelta.default);let b;if(v<1){const w=dn(g,v);b=P=>{const M=Math.exp(-v*g*P);return r-M*((m+v*g*y)/w*Math.sin(w*P)+y*Math.cos(w*P))}}else if(v===1)b=w=>r-Math.exp(-g*w)*(y+(m+g*y)*w);else{const w=g*Math.sqrt(v*v-1);b=P=>{const M=Math.exp(-v*g*P),x=Math.min(w*P,300);return r-M*((m+v*g*y)*Math.sinh(x)+w*y*Math.cosh(x))/w}}const E={calculatedDuration:h&&f||null,next:w=>{const P=b(w);if(h)a.done=w>=f;else{let M=0;v<1&&(M=w===0?te(m):Oo(b,w,P));const x=Math.abs(M)<=i,T=Math.abs(r-P)<=s;a.done=x&&T}return a.value=a.done?r:P,a},toString:()=>{const w=Math.min(Nn(E),yt),P=co(M=>E.next(w*M).value,w,30);return w+"ms "+P}};return E}function Pi({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:d=.5,restSpeed:u}){const f=t[0],p={done:!1,value:f},h=x=>a!==void 0&&x<a||c!==void 0&&x>c,m=x=>a===void 0?c:c===void 0||Math.abs(a-x)<Math.abs(c-x)?a:c;let v=n*e;const y=f+v,g=r===void 0?y:r(y);g!==y&&(v=g-f);const S=x=>-v*Math.exp(-x/i),b=x=>g+S(x),E=x=>{const T=S(x),V=b(x);p.done=Math.abs(T)<=d,p.value=p.done?g:V};let w,P;const M=x=>{h(p.value)&&(w=x,P=jn({keyframes:[p.value,m(p.value)],velocity:Oo(b,x,p.value),damping:s,stiffness:o,restDelta:d,restSpeed:u}))};return M(0),{calculatedDuration:null,next:x=>{let T=!1;return!P&&w===void 0&&(T=!0,E(x),M(x)),w!==void 0&&x>=w?P.next(x-w):(!T&&E(x),p)}}}const Hl=tt(.42,0,1,1),Wl=tt(0,0,.58,1),zo=tt(.42,0,.58,1),Ro=t=>Array.isArray(t)&&typeof t[0]!="number",Mi={linear:X,easeIn:Hl,easeInOut:zo,easeOut:Wl,circIn:Dn,circInOut:So,circOut:wo,backIn:_n,backInOut:go,backOut:vo,anticipate:yo},Ci=t=>{if(kn(t)){fe(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return tt(e,n,i,s)}else if(typeof t=="string")return fe(Mi[t]!==void 0,`Invalid easing type '${t}'`),Mi[t];return t};function Kl(t,e,n){const i=[],s=n||Io,o=t.length-1;for(let r=0;r<o;r++){let a=s(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||X:e;a=Lt(c,a)}i.push(a)}return i}function ql(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(fe(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Kl(e,i,s),c=a.length,d=u=>{if(r&&u<t[0])return e[0];let f=0;if(c>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const p=et(t[f],t[f+1],u);return a[f](p)};return n?u=>d(he(t[0],t[o-1],u)):d}function No(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=et(0,e,i);t.push(F(n,1,s))}}function Fo(t){const e=[0];return No(e,t.length-1),e}function Yl(t,e){return t.map(n=>n*e)}function Jl(t,e){return t.map(()=>e||zo).splice(0,t.length-1)}function St({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=Ro(i)?i.map(Ci):Ci(i),o={done:!1,value:e[0]},r=Yl(n&&n.length===e.length?n:Fo(e),t),a=ql(r,e,{ease:Array.isArray(s)?s:Jl(e,s)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const Ql=t=>{const e=({timestamp:n})=>t(n);return{start:()=>I.update(e,!0),stop:()=>pe(e),now:()=>$.isProcessing?$.timestamp:ee.now()}},ec={decay:Pi,inertia:Pi,tween:St,keyframes:St,spring:jn},tc=t=>t/100;class $n extends _o{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:i,element:s,keyframes:o}=this.options,r=(s==null?void 0:s.KeyframeResolver)||zn,a=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new r(o,a,n,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o,velocity:r=0}=this.options,a=_t(n)?n:ec[n]||St;let c,d;a!==St&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&fe(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),c=Lt(tc,Io(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});o==="mirror"&&(d=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Nn(u));const{calculatedDuration:f}=u,p=f+s,h=p*(i+1)-s;return{generator:u,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:x}=this.options;return{done:!0,value:x[x.length-1]}}const{finalKeyframe:s,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:d,totalDuration:u,resolvedDuration:f}=i;if(this.startTime===null)return o.next(0);const{delay:p,repeat:h,repeatType:m,repeatDelay:v,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-p*(this.speed>=0?1:-1),S=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let b=this.currentTime,E=o;if(h){const x=Math.min(this.currentTime,u)/f;let T=Math.floor(x),V=x%1;!V&&x>=1&&(V=1),V===1&&T--,T=Math.min(T,h+1),!!(T%2)&&(m==="reverse"?(V=1-V,v&&(V-=v/f)):m==="mirror"&&(E=r)),b=he(0,1,V)*f}const w=S?{done:!1,value:c[0]}:E.next(b);a&&(w.value=a(w.value));let{done:P}=w;!S&&d!==null&&(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return M&&s!==void 0&&(w.value=Dt(c,this.options,s)),y&&y(w.value),M&&this.finish(),w}get duration(){const{resolved:e}=this;return e?ae(e.calculatedDuration):0}get time(){return ae(this.currentTime)}set time(e){e=te(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=ae(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Ql,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const nc=new Set(["opacity","clipPath","filter","transform"]);function ic(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:c}={}){const d={[e]:n};c&&(d.offset=c);const u=fo(a,s);return Array.isArray(u)&&(d.easing=u),t.animate(d,{delay:i,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const sc=Ln(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bt=10,oc=2e4;function rc(t){return _t(t.type)||t.type==="spring"||!uo(t.ease)}function ac(t,e){const n=new $n({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<oc;)i=n.sample(o),s.push(i.value),o+=bt;return{times:void 0,keyframes:s,duration:o-bt,ease:"linear"}}const jo={anticipate:yo,backInOut:go,circInOut:So};function lc(t){return t in jo}class Ai extends _o{constructor(e){super(e);const{name:n,motionValue:i,element:s,keyframes:o}=this.options;this.resolver=new ko(o,(r,a)=>this.onKeyframesResolved(r,a),n,i,s),this.resolver.scheduleResolve()}initPlayback(e,n){var i;let{duration:s=300,times:o,ease:r,type:a,motionValue:c,name:d,startTime:u}=this.options;if(!(!((i=c.owner)===null||i===void 0)&&i.current))return!1;if(typeof r=="string"&&gt()&&lc(r)&&(r=jo[r]),rc(this.options)){const{onComplete:p,onUpdate:h,motionValue:m,element:v,...y}=this.options,g=ac(e,y);e=g.keyframes,e.length===1&&(e[1]=e[0]),s=g.duration,o=g.times,r=g.ease,a="keyframes"}const f=ic(c.owner.current,d,e,{...this.options,duration:s,times:o,ease:r});return f.startTime=u??this.calcStartTime(),this.pendingTimeline?(vi(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:p}=this.options;c.set(Dt(e,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:s,times:o,type:a,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return ae(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return ae(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=te(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return X;const{animation:i}=n;vi(i,e)}return X}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:s,type:o,ease:r,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:u,onComplete:f,element:p,...h}=this.options,m=new $n({...h,keyframes:i,duration:s,type:o,ease:r,times:a,isGenerator:!0}),v=te(this.time);d.setWithVelocity(m.sample(v-bt).value,m.sample(v).value,bt)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:s,repeatType:o,damping:r,type:a}=e;return sc()&&i&&nc.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!s&&o!=="mirror"&&r!==0&&a!=="inertia"}}const cc={type:"spring",stiffness:500,damping:25,restSpeed:10},uc=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),dc={type:"keyframes",duration:.8},fc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pc=(t,{keyframes:e})=>e.length>2?dc:Ie.has(t)?t.startsWith("scale")?uc(e[1]):cc:fc;function hc({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const Zn=(t,e,n,i={},s,o)=>r=>{const a=Mn(i,t)||{},c=a.delay||i.delay||0;let{elapsed:d=0}=i;d=d-te(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-d,onUpdate:p=>{e.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};hc(a)||(u={...u,...pc(t,u)}),u.duration&&(u.duration=te(u.duration)),u.repeatDelay&&(u.repeatDelay=te(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!o&&e.get()!==void 0){const p=Dt(u.keyframes,a);if(p!==void 0)return I.update(()=>{u.onUpdate(p),u.onComplete()}),new lo([])}return!o&&Ai.supports(u)?new Ai(u):new $n(u)};function $o(t,e,n){const i=G(t)?t:qe(t);return i.start(Zn("",i,e,n)),i.animation}const Gn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mc="framerAppearId",vc="data-"+Gn(mc);function Zo(t){return t.props[vc]}const{schedule:gc}=Ws(queueMicrotask,!1);function Go(t){return t instanceof SVGElement&&t.tagName!=="svg"}const yc=(t,e)=>t.depth-e.depth;class wc{constructor(){this.children=[],this.isDirty=!1}add(e){Cn(this.children,e),this.isDirty=!0}remove(e){kt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(yc),this.isDirty=!1,this.children.forEach(e)}}function Sc(t,e){const n=ee.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(pe(i),t(o-e))};return I.read(i,!0),()=>pe(i)}const bc=t=>Array.isArray(t),Tc=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),xc=t=>bc(t)?t[t.length-1]||0:t;function $t(t){const e=G(t)?t.get():t;return Tc(e)?e.toValue():e}const Xo=["TopLeft","TopRight","BottomLeft","BottomRight"],Ec=Xo.length,Bi=t=>typeof t=="string"?parseFloat(t):t,Li=t=>typeof t=="number"||B.test(t);function Vc(t,e,n,i,s,o){s?(t.opacity=F(0,n.opacity!==void 0?n.opacity:1,Pc(i)),t.opacityExit=F(e.opacity!==void 0?e.opacity:1,0,Mc(i))):o&&(t.opacity=F(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let r=0;r<Ec;r++){const a=`border${Xo[r]}Radius`;let c=ki(e,a),d=ki(n,a);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Li(c)===Li(d)?(t[a]=Math.max(F(Bi(c),Bi(d),i),0),(re.test(d)||re.test(c))&&(t[a]+="%")):t[a]=d}(e.rotate||n.rotate)&&(t.rotate=F(e.rotate||0,n.rotate||0,i))}function ki(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Pc=Uo(0,.5,wo),Mc=Uo(.5,.95,X);function Uo(t,e,n){return i=>i<t?0:i>e?1:n(et(t,e,i))}function _i(t,e){t.min=e.min,t.max=e.max}function K(t,e){_i(t.x,e.x),_i(t.y,e.y)}function Di(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Zt(t){return t===void 0||t===1}function fn({scale:t,scaleX:e,scaleY:n}){return!Zt(t)||!Zt(e)||!Zt(n)}function we(t){return fn(t)||Ho(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ho(t){return Ii(t.x)||Ii(t.y)}function Ii(t){return t&&t!=="0%"}function Tt(t,e,n){const i=t-n,s=e*i;return n+s}function Oi(t,e,n,i,s){return s!==void 0&&(t=Tt(t,s,i)),Tt(t,n,i)+e}function pn(t,e=0,n=1,i,s){t.min=Oi(t.min,e,n,i,s),t.max=Oi(t.max,e,n,i,s)}function Wo(t,{x:e,y:n}){pn(t.x,e.translate,e.scale,e.originPoint),pn(t.y,n.translate,n.scale,n.originPoint)}const zi=.999999999999,Ri=1.0000000000001;function Cc(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,r;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ce(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Wo(t,r)),i&&we(o.latestValues)&&Ce(t,o.latestValues))}e.x<Ri&&e.x>zi&&(e.x=1),e.y<Ri&&e.y>zi&&(e.y=1)}function rt(t,e){t.min=t.min+e,t.max=t.max+e}function Ni(t,e,n,i,s=.5){const o=F(t.min,t.max,s);pn(t,e,n,o,i)}function Ce(t,e){Ni(t.x,e.x,e.scaleX,e.scale,e.originX),Ni(t.y,e.y,e.scaleY,e.scale,e.originY)}const Ko=1e-4,Ac=1-Ko,Bc=1+Ko,qo=.01,Lc=0-qo,kc=0+qo;function ie(t){return t.max-t.min}function _c(t,e,n){return Math.abs(t-e)<=n}function Fi(t,e,n,i=.5){t.origin=i,t.originPoint=F(e.min,e.max,t.origin),t.scale=ie(n)/ie(e),t.translate=F(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ac&&t.scale<=Bc||isNaN(t.scale))&&(t.scale=1),(t.translate>=Lc&&t.translate<=kc||isNaN(t.translate))&&(t.translate=0)}function Ue(t,e,n,i){Fi(t.x,e.x,n.x,i?i.originX:void 0),Fi(t.y,e.y,n.y,i?i.originY:void 0)}function ji(t,e,n){t.min=n.min+e.min,t.max=t.min+ie(e)}function Dc(t,e,n){ji(t.x,e.x,n.x),ji(t.y,e.y,n.y)}function $i(t,e,n){t.min=e.min-n.min,t.max=t.min+ie(e)}function He(t,e,n){$i(t.x,e.x,n.x),$i(t.y,e.y,n.y)}function Zi(t,e,n,i,s){return t-=e,t=Tt(t,1/n,i),s!==void 0&&(t=Tt(t,1/s,i)),t}function Ic(t,e=0,n=1,i=.5,s,o=t,r=t){if(re.test(e)&&(e=parseFloat(e),e=F(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=F(o.min,o.max,i);t===o&&(a-=e),t.min=Zi(t.min,e,n,a,s),t.max=Zi(t.max,e,n,a,s)}function Gi(t,e,[n,i,s],o,r){Ic(t,e[n],e[i],e[s],e.scale,o,r)}const Oc=["x","scaleX","originX"],zc=["y","scaleY","originY"];function Xi(t,e,n,i){Gi(t.x,e,Oc,n?n.x:void 0,i?i.x:void 0),Gi(t.y,e,zc,n?n.y:void 0,i?i.y:void 0)}const Ui=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ae=()=>({x:Ui(),y:Ui()}),Hi=()=>({min:0,max:0}),N=()=>({x:Hi(),y:Hi()});function Wi(t){return t.translate===0&&t.scale===1}function Yo(t){return Wi(t.x)&&Wi(t.y)}function Ki(t,e){return t.min===e.min&&t.max===e.max}function Rc(t,e){return Ki(t.x,e.x)&&Ki(t.y,e.y)}function qi(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Jo(t,e){return qi(t.x,e.x)&&qi(t.y,e.y)}function Yi(t){return ie(t.x)/ie(t.y)}function Ji(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Nc{constructor(){this.members=[]}add(e){Cn(this.members,e),e.scheduleRender()}remove(e){if(kt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(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);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.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 Fc(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:f,rotateY:p,skewX:h,skewY:m}=n;d&&(i=`perspective(${d}px) ${i}`),u&&(i+=`rotate(${u}deg) `),f&&(i+=`rotateX(${f}deg) `),p&&(i+=`rotateY(${p}deg) `),h&&(i+=`skewX(${h}deg) `),m&&(i+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(i+=`scale(${a}, ${c})`),i||"none"}function Qi(t){return[t("x"),t("y")]}const Se={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},$e=typeof window<"u"&&window.MotionDebug!==void 0,Gt=["","X","Y","Z"],jc={visibility:"hidden"},es=1e3;let $c=0;function Xt(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Qo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Zo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",I,!(s||o))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Qo(i)}function er({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(r={},a=e==null?void 0:e()){this.id=$c++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,$e&&(Se.totalNodes=Se.resolvedTargetDeltas=Se.recalculatedProjection=0),this.nodes.forEach(Xc),this.nodes.forEach(qc),this.nodes.forEach(Yc),this.nodes.forEach(Uc),$e&&window.MotionDebug.record(Se)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new wc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new An),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Go(r),this.instance=r;const{layoutId:c,layout:d,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(d||c)&&(this.isLayoutDirty=!0),t){let f;const p=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Sc(p,250),ft.hasAnimatedSinceResize&&(ft.hasAnimatedSinceResize=!1,this.nodes.forEach(ns))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||d)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||nu,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=u.getProps(),S=!this.targetLayout||!Jo(this.targetLayout,m)||h,b=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||p&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,b);const E={...Mn(v,"layout"),onPlay:y,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else p||ns(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,pe(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.forEach(Jc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Qo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ts);return}this.isUpdating||this.nodes.forEach(Wc),this.isUpdating=!1,this.nodes.forEach(Kc),this.nodes.forEach(Zc),this.nodes.forEach(Gc),this.clearAllSnapshots();const a=ee.now();$.delta=he(0,1e3/60,a-$.timestamp),$.timestamp=a,$.isProcessing=!0,It.update.process($),It.preRender.process($),It.render.process($),$.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Hc),this.sharedNodes.forEach(Qc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=N(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a){const c=i(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Yo(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;r&&(a||we(this.latestValues)||u)&&(s(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),iu(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var r;const{visualElement:a}=this.options;if(!a)return N();const c=a.measureViewportBox();if(!(((r=this.scroll)===null||r===void 0?void 0:r.wasRoot)||this.path.some(su))){const{scroll:u}=this.root;u&&(rt(c.x,u.offset.x),rt(c.y,u.offset.y))}return c}removeElementScroll(r){var a;const c=N();if(K(c,r),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return c;for(let d=0;d<this.path.length;d++){const u=this.path[d],{scroll:f,options:p}=u;u!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&K(c,r),rt(c.x,f.offset.x),rt(c.y,f.offset.y))}return c}applyTransform(r,a=!1){const c=N();K(c,r);for(let d=0;d<this.path.length;d++){const u=this.path[d];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ce(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),we(u.latestValues)&&Ce(c,u.latestValues)}return we(this.latestValues)&&Ce(c,this.latestValues),c}removeTransform(r){const a=N();K(a,r);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!we(d.latestValues))continue;fn(d.latestValues)&&d.updateSnapshot();const u=N(),f=d.measurePageBox();K(u,f),Xi(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return we(this.latestValues)&&Xi(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==$.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(r||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=$.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),He(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),K(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=N(),this.targetWithTransforms=N()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Dc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):K(this.target,this.layout.layoutBox),Wo(this.target,this.targetDelta)):K(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),He(this.relativeTargetOrigin,this.target,h.target),K(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}$e&&Se.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||fn(this.parent.latestValues)||Ho(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let d=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===$.timestamp&&(d=!1),d)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;K(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;Cc(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=N());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Di(this.prevProjectionDelta.x,this.projectionDelta.x),Di(this.prevProjectionDelta.y,this.projectionDelta.y)),Ue(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==h||!Ji(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ji(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),$e&&Se.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),r){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ae(),this.projectionDelta=Ae(),this.projectionDeltaWithTransform=Ae()}setAnimationOrigin(r,a=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},f=Ae();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=N(),h=c?c.source:void 0,m=this.layout?this.layout.source:void 0,v=h!==m,y=this.getStack(),g=!y||y.members.length<=1,S=!!(v&&!g&&this.options.crossfade===!0&&!this.path.some(tu));this.animationProgress=0;let b;this.mixTargetDelta=E=>{const w=E/1e3;is(f.x,r.x,w),is(f.y,r.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(He(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),eu(this.relativeTarget,this.relativeTargetOrigin,p,w),b&&Rc(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=N()),K(b,this.relativeTarget)),v&&(this.animationValues=u,Vc(u,d,this.latestValues,w,S,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(pe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=I.update(()=>{ft.hasAnimatedSinceResize=!0,this.currentAnimation=$o(0,es,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.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);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(es),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:d,latestValues:u}=r;if(!(!a||!c||!d)){if(this!==r&&this.layout&&d&&tr(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||N();const f=ie(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+f;const p=ie(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+p}K(a,c),Ce(a,u),Ue(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Nc),this.sharedNodes.get(r).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const d={};c.z&&Xt("z",r,d,this.animationValues);for(let u=0;u<Gt.length;u++)Xt(`rotate${Gt[u]}`,r,d,this.animationValues),Xt(`skew${Gt[u]}`,r,d,this.animationValues);r.render();for(const u in d)r.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);r.scheduleRender()}getProjectionStyles(r){var a,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return jc;const d={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=$t(r==null?void 0:r.pointerEvents)||"",d.transform=u?u(this.latestValues,""):"none",d;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=$t(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!we(this.latestValues)&&(v.transform=u?u({},""):"none",this.hasProjected=!1),v}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),d.transform=Fc(this.projectionDeltaWithTransform,this.treeScale,p),u&&(d.transform=u(p,d.transform));const{x:h,y:m}=this.projectionDelta;d.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,f.animationValues?d.opacity=f===this?(c=(a=p.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const v in vt){if(p[v]===void 0)continue;const{correct:y,applyTo:g}=vt[v],S=d.transform==="none"?p[v]:y(p[v],f);if(g){const b=g.length;for(let E=0;E<b;E++)d[g[E]]=S}else d[v]=S}return this.options.layoutId&&(d.pointerEvents=f===this?$t(r==null?void 0:r.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ts),this.root.sharedNodes.clear()}}}function Zc(t){t.updateLayout()}function Gc(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?Qi(f=>{const p=r?n.measuredBox[f]:n.layoutBox[f],h=ie(p);p.min=i[f].min,p.max=p.min+h}):tr(o,n.layoutBox,i)&&Qi(f=>{const p=r?n.measuredBox[f]:n.layoutBox[f],h=ie(i[f]);p.max=p.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+h)});const a=Ae();Ue(a,i,n.layoutBox);const c=Ae();r?Ue(c,t.applyTransform(s,!0),n.measuredBox):Ue(c,i,n.layoutBox);const d=!Yo(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const m=N();He(m,n.layoutBox,p.layoutBox);const v=N();He(v,i,h.layoutBox),Jo(m,v)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=v,t.relativeTargetOrigin=m,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:d,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Xc(t){$e&&Se.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Uc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Hc(t){t.clearSnapshot()}function ts(t){t.clearMeasurements()}function Wc(t){t.isLayoutDirty=!1}function Kc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ns(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function qc(t){t.resolveTargetDelta()}function Yc(t){t.calcProjection()}function Jc(t){t.resetSkewAndRotation()}function Qc(t){t.removeLeadSnapshot()}function is(t,e,n){t.translate=F(e.translate,0,n),t.scale=F(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ss(t,e,n,i){t.min=F(e.min,n.min,i),t.max=F(e.max,n.max,i)}function eu(t,e,n,i){ss(t.x,e.x,n.x,i),ss(t.y,e.y,n.y,i)}function tu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const nu={duration:.45,ease:[.4,0,.1,1]},os=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rs=os("applewebkit/")&&!os("chrome/")?Math.round:X;function as(t){t.min=rs(t.min),t.max=rs(t.max)}function iu(t){as(t.x),as(t.y)}function tr(t,e,n){return t==="position"||t==="preserve-aspect"&&!_c(Yi(e),Yi(n),.2)}function su(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}function ou(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const ru=er({attachResizeListener:(t,e)=>ou(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ut={current:void 0},au=er({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ut.current){const t=new ru({});t.mount(window),t.setOptions({layoutScroll:!0}),Ut.current=t}return Ut.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function nr(t){if(t)return t.options.allowProjection!==!1?t.projection:nr(t.parent)}const ke=new WeakMap;function Ht(t){const e=ke.get(t);e&&t.removeEventListener("motioncomplete",e),ke.delete(t)}const[lu,cu]=At("AnimatePresenceContext");class uu extends ge{constructor(e){super(e),Ks(to)}initProjection(){const e=this.state.options;this.state.visualElement.projection=new au(this.state.visualElement.latestValues,e["data-framer-portal-id"]?void 0:nr(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!1,visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{var n;if(!((n=this.state.visualElement.projection)!=null&&n.isPresent)){const i=ke.get(this.state.element);this.state.isSafeToRemove=!0,i&&i({detail:{isExit:!0}},!0)}}})}beforeMount(){this.initProjection()}update(){const e=this.state.options;this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!1,visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade})}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}}const du={y:!1};function fu(){return du.y}function Xn(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let s=document;const o=(i=n==null?void 0:n[t])!==null&&i!==void 0?i:s.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function ir(t,e){const n=Xn(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function ls(t){return e=>{e.pointerType==="touch"||fu()||t(e)}}function pu(t,e,n={}){const[i,s,o]=ir(t,n),r=ls(a=>{const{target:c}=a,d=e(a);if(typeof d!="function"||!c)return;const u=ls(f=>{d(f),c.removeEventListener("pointerleave",u)});c.addEventListener("pointerleave",u,s)});return i.forEach(a=>{a.addEventListener("pointerenter",r,s)}),o}const sr=(t,e)=>e?t===e?!0:sr(t,e.parentElement):!1,hu=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,mu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vu(t){return mu.has(t.tagName)||t.tabIndex!==-1}const Ze=new WeakSet;function cs(t){return e=>{e.key==="Enter"&&t(e)}}function Wt(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const gu=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=cs(()=>{if(Ze.has(n))return;Wt(n,"down");const s=cs(()=>{Wt(n,"up")}),o=()=>Wt(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function us(t){return hu(t)&&!0}function yu(t,e,n={}){const[i,s,o]=ir(t,n),r=a=>{const c=a.currentTarget;if(!us(a)||Ze.has(c))return;Ze.add(c);const d=e(a),u=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!us(h)||!Ze.has(c))&&(Ze.delete(c),typeof d=="function"&&d(h,{success:m}))},f=h=>{u(h,n.useGlobalTarget||sr(c,h.target))},p=h=>{u(h,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",p,s)};return i.forEach(a=>{!vu(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,s),a.addEventListener("focus",d=>gu(d,s),s)}),o}function or(t){return{point:{x:t.pageX,y:t.pageY}}}function ds(t,e,n){const i=t.options;i.press&&t.setActive("press",n==="Start");const s=`onPress${n==="End"?"":n}`,o=i[s];o&&I.postRender(()=>o(e,or(e)))}class wu extends ge{isActive(){return!!this.state.options.press}constructor(e){super(e)}mount(){const e=this.state.element;e&&(this.unmount=yu(e,n=>(ds(this.state,n,"Start"),(i,{success:s})=>ds(this.state,i,s?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function fs(t,e,n){const i=t.options;i.hover&&t.setActive("hover",n==="Start");const s=`onHover${n}`,o=i[s];o&&I.postRender(()=>o(e,or(e)))}class Su extends ge{isActive(){return!!this.state.getOptions().hover}constructor(e){super(e)}mount(){const e=this.state.element;e&&(this.unmount=pu(e,n=>(fs(this.state,n,"Start"),i=>{fs(this.state,i,"End")})))}}const bu={some:0,all:1};function Tu(t,e,{root:n,margin:i,amount:s="some"}={}){const o=Xn(t),r=new WeakMap,a=d=>{d.forEach(u=>{const f=r.get(u.target);if(u.isIntersecting!==!!f)if(u.isIntersecting){const p=e(u);typeof p=="function"?r.set(u.target,p):c.unobserve(u.target)}else typeof f=="function"&&(f(u),r.delete(u.target))})},c=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:bu[s]});return o.forEach(d=>c.observe(d)),()=>c.disconnect()}function ps(t,e,n){const i=t.options;i.inView&&t.setActive("inView",n==="Enter");const s=`onViewport${n}`,o=i[s];o&&I.postRender(()=>o(e))}class xu extends ge{isActive(){return!!this.state.getOptions().inView}constructor(e){super(e)}mount(){const e=this.state.element;e&&(this.unmount=Tu(e,n=>(ps(this.state,n,"Enter"),i=>{ps(this.state,n,"Leave")})))}}function rr(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const hs=rr("dragHorizontal"),ms=rr("dragVertical");function Eu(t){let e=!1;if(t==="y")e=ms();else if(t==="x")e=hs();else{const n=hs(),i=ms();n&&i?e=()=>{n(),i()}:(n&&n(),i&&i())}return e}function hn(t){return t.max-t.min}function Vu(t,e,n){return n>e?e:n<t?t:n}function xt(t,e,n){return t+(e-t)*n}function vs(t,e,n){const i=e-t;return i===0?1:(n-t)/i}function Pu(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?xt(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?xt(n,t,i.max):Math.min(t,n)),t}const mn=.35;function Mu(t,{top:e,left:n,bottom:i,right:s}){return{x:gs(t.x,n,s),y:gs(t.y,e,i)}}function gs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Cu(t=mn){return t===!1?t=0:t===!0&&(t=mn),{x:ys(t,"left","right"),y:ys(t,"top","bottom")}}function ys(t,e,n){return{min:ws(t,e),max:ws(t,n)}}function ws(t,e){return typeof t=="number"?t:t[e]||0}function Au(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}function Bu(t,e){return{x:Ss(t.x,e.x),y:Ss(t.y,e.y)}}function Ss(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function Lu(t,e){let n=.5;const i=hn(t),s=hn(e);return s>i?n=vs(e.min,e.max-i,t.min):i>s&&(n=vs(t.min,t.max-s,e.min)),Vu(0,1,n)}function at(t){return typeof t=="object"&&t!==null&&"nodeType"in t}const bs=()=>({min:0,max:0});function ku(){return{x:bs(),y:bs()}}function Q(t){return[t("x"),t("y")]}function _u(t){return{test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}}const Du=_u("%");function Iu(t){return!!(Bt(t)&&t.add)}function Ts(t,e){const n=t.getValue("willChange");if(Iu(n))return n.add(e)}function ar({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Ou(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function zu({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xs(t,e){t.min=t.min+e,t.max=t.max+e}function Ru(t,e){return ar(Ou(t.getBoundingClientRect(),e))}function Nu(t,e,n){const i=Ru(t,n),{scroll:s}=e;return s&&(xs(i.x,s.offset.x),xs(i.y,s.offset.y)),i}function Es(t){return!ke.has(t.current)}const Fu=new WeakMap;class ju{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=ku(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){if(!Es(this.visualElement))return;const i=d=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Pn(d,"page").point)},s=(d,u)=>{const{drag:f,dragPropagation:p,onDragStart:h}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Eu(f),!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),Q(v=>{let y=this.getAxisMotionValue(v).get()||0;if(Du.test(y)){const{projection:g}=this.visualElement;if(g&&g.layout){const S=g.layout.layoutBox[v];S&&(y=hn(S)*(parseFloat(y)/100))}}this.originPoint[v]=y}),h&&I.postRender(()=>h(d,u)),Ts(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},o=(d,u)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:v}=u;if(p&&this.currentDirection===null){this.currentDirection=$u(v),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),m&&m(d,u)},r=(d,u)=>this.stop(d,u),a=()=>Q(d=>{var u;return this.getAnimationState(d)==="paused"&&((u=this.getAxisMotionValue(d).animation)==null?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new so(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:r,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:ro(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&I.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!lt(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=Pu(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,o=this.constraints;n&&at(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Mu(s.layoutBox,n):this.constraints=!1,this.elastic=Cu(i),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Q(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=Au(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!at(e))return!1;const i=e;xn(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Nu(i,s.root,this.visualElement.getTransformPagePoint());let r=Bu(s.layout.layoutBox,o);if(n){const a=n(zu(r));this.hasMutatedConstraints=!!a,a&&(r=ar(a))}return r}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},d=Q(u=>{if(!lt(u,n,this.currentDirection))return;let f=c&&c[u]||{};r&&(f={min:0,max:0});const p=s?200:1e6,h=s?40:1e7,m={type:"inertia",velocity:i?e[u]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,m)});return Promise.all(d).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Ts(this.visualElement,e),i.start(Zn(e,i,0,n,this.visualElement,!1))}stopAnimation(){Es(this.visualElement)&&Q(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Q(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[n]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Q(n=>{const{drag:i}=this.getProps();if(!lt(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:r,max:a}=s.layout.layoutBox[n];o.set(e[n]-xt(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!at(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Q(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();s[r]=Lu({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Q(r=>{if(!lt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:d}=this.constraints[r];a.set(xt(c,d,s[r]))})}addListeners(){if(!this.visualElement.current)return;Fu.set(this.visualElement,this);const e=this.visualElement.current,n=Xe(e,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(c)}),i=()=>{const{dragConstraints:c}=this.getProps();at(c)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),I.read(i);const r=io(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Q(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=mn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function lt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function $u(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Zu extends ge{constructor(e){super(e),this.removeGroupControls=X,this.removeListeners=X,this.controls=new ju(e.visualElement)}mount(){const{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||X}unmount(){this.removeGroupControls(),this.removeListeners()}}class Gu{constructor(e){this.features=[],this.features=[new Su(e),new wu(e),new xu(e),new Ca(e),new Za(e),new uu(e),new Ya(e),new Zu(e)]}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>{var n;return(n=e.beforeMount)==null?void 0:n.call(e)})}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>{var n;return(n=e.update)==null?void 0:n.call(e)})}beforeUpdate(){this.features.forEach(e=>e.beforeUpdate())}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}}function ct(t,e,n){return new CustomEvent(t,{detail:{target:e,isExit:n}})}function Xu({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Uu(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Hu(t,e){return Xu(Uu(t.getBoundingClientRect(),e))}const Vs={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"]},vn={};for(const t in Vs)vn[t]={isEnabled:e=>Vs[t].some(n=>!!e[n])};const Wu=typeof window<"u",gn={current:null},lr={current:!1};function Ku(){if(lr.current=!0,!!Wu)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>gn.current=t.matches;t.addListener(e),e()}else gn.current=!1}const qu=[...Lo,Z,me],Yu=t=>qu.find(Bo(t));function Ju(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Qu(t){return typeof t=="string"||Array.isArray(t)}const ed=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],td=["initial",...ed];function cr(t){return Ju(t.animate)||td.some(e=>Qu(t[e]))}function nd(t){return!!(cr(t)||t.variants)}function id(t,e,n){for(const i in e){const s=e[i],o=n[i];if(G(s))t.addValue(i,s),process.env.NODE_ENV==="development"&&Bn(s.version==="11.16.6",`Attempting to mix Motion versions ${s.version} with 11.16.6 may not work as expected.`);else if(G(o))t.addValue(i,qe(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const r=t.getValue(i);r.liveStyle===!0?r.jump(s):r.hasAnimated||r.set(s)}else{const r=t.getStaticValue(i);t.addValue(i,qe(r!==void 0?r:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}function Ps(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function ur(t,e,n,i){if(typeof e=="function"){const[s,o]=Ps(i);e=e(n!==void 0?n:t.custom,s,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,o]=Ps(i);e=e(n!==void 0?n:t.custom,s,o)}return e}const Ms=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class dr{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zn,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.renderScheduledAt=0,this.scheduleRender=()=>{const p=ee.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,I.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=r;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=cr(n),this.isVariantNode=nd(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];c[p]!==void 0&&G(h)&&h.set(c[p],!1)}}mount(e){this.current=e,de.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((n,i)=>this.bindToMotionValue(i,n)),lr.current||Ku(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gn.current,process.env.NODE_ENV!=="production"&&Bn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){de.delete(this.current),this.projection&&this.projection.unmount(),pe(this.notifyUpdate),pe(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Ie.has(e),s=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&I.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),o(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in vn){const n=vn[e];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):N()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Ms.length;i++){const s=Ms[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,r=e[o];r&&(this.propEventSubscriptions[s]=this.on(s,r))}this.prevMotionValues=id(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),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}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=qe(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Po(s)||bo(s))?s=parseFloat(s):!Yu(s)&&me.test(n)&&(s=xo(e,n)),this.setBaseTarget(e,G(s)?s.get():s)),G(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const r=ur(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);r&&(s=r[e])}if(i&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!G(o)?o:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new An),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class fr extends dr{constructor(){super(...arguments),this.KeyframeResolver=ko}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;G(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const pr=(t,e)=>e&&typeof t=="number"?e.transform(t):t,sd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},od=De.length;function rd(t,e,n){let i="",s=!0;for(let o=0;o<od;o++){const r=De[o],a=t[r];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(r.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const d=pr(a,In[r]);if(!c){s=!1;const u=sd[r]||r;i+=`${u}(${d}) `}n&&(e[r]=d)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function hr(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const d=e[c];if(Ie.has(c)){r=!0;continue}else if(Co(c)){s[c]=d;continue}else{const u=pr(d,In[c]);c.startsWith("origin")?(a=!0,o[c]=u):i[c]=u}}if(e.transform||(r||n?i.transform=rd(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:c="50%",originY:d="50%",originZ:u=0}=o;i.transformOrigin=`${c} ${d} ${u}`}}function mr(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}function ad(t,{layout:e,layoutId:n}){return Ie.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!vt[t]||t==="opacity")}function vr(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(G(s[r])||e.style&&G(e.style[r])||ad(r,t)||((i=n==null?void 0:n.getValue(r))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[r]=s[r]);return o}function ld(t){return window.getComputedStyle(t)}class gr extends fr{constructor(){super(...arguments),this.type="html",this.renderInstance=mr}readValueFromInstance(e,n){if(Ie.has(n)){const i=On(n);return i&&i.default||0}else{const i=ld(e),s=(Co(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Hu(e,n)}build(e,n,i){hr(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return vr(e,n,i)}}function Cs(t,e,n){return typeof t=="string"?t:B.transform(e+n*t)}function cd(t,e,n){const i=Cs(e,t.x,t.width),s=Cs(n,t.y,t.height);return`${i} ${s}`}const ud={offset:"stroke-dashoffset",array:"stroke-dasharray"},dd={offset:"strokeDashoffset",array:"strokeDasharray"};function fd(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?ud:dd;t[o.offset]=B.transform(-i);const r=B.transform(e),a=B.transform(n);t[o.array]=`${r} ${a}`}function pd(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:c=0,...d},u,f){if(hr(t,d,f),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:p,style:h,dimensions:m}=t;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(s!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=cd(m,s!==void 0?s:.5,o!==void 0?o:.5)),e!==void 0&&(p.x=e),n!==void 0&&(p.y=n),i!==void 0&&(p.scale=i),r!==void 0&&fd(p,r,a,c,!1)}const yr=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"]),hd=t=>typeof t=="string"&&t.toLowerCase()==="svg";function md(t,e,n,i){mr(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(yr.has(s)?s:Gn(s),e.attrs[s])}function vd(t,e,n){const i=vr(t,e,n);for(const s in t)if(G(t[s])||G(e[s])){const o=De.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[o]=t[s]}return i}class wr extends fr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=N}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ie.has(n)){const i=On(n);return i&&i.default||0}return n=yr.has(n)?n:Gn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return vd(e,n,i)}build(e,n,i){pd(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,s){md(e,n,i,s)}mount(e){this.isSVGTag=hd(e.tagName),super.mount(e)}}function gd(t,e){return fa(t)?new wr(e):new gr(e)}function yd(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(Nn(i),yt);return{type:"keyframes",ease:o=>i.next(s*o).value/e,duration:ae(s)}}const wd=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t};function Sr(t,e){return Ro(t)?t[wd(0,t.length,e)]:t}function Un(t){return typeof t=="object"&&!Array.isArray(t)}function br(t,e,n,i){return typeof t=="string"&&Un(e)?Xn(t,n,i):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Sd(t,e,n){return t*(e+1)}function As(t,e,n,i){var s;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:(s=i.get(e))!==null&&s!==void 0?s:t}function bd(t,e,n){for(let i=0;i<t.length;i++){const s=t[i];s.at>e&&s.at<n&&(kt(t,s),i--)}}function Td(t,e,n,i,s,o){bd(t,s,o);for(let r=0;r<e.length;r++)t.push({value:e[r],at:F(s,o,i[r]),easing:Sr(n,r)})}function xd(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function Ed(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const Vd="easeInOut",Pd=20;function Md(t,{defaultTransition:e={},...n}={},i,s){const o=e.duration||.3,r=new Map,a=new Map,c={},d=new Map;let u=0,f=0,p=0;for(let h=0;h<t.length;h++){const m=t[h];if(typeof m=="string"){d.set(m,f);continue}else if(!Array.isArray(m)){d.set(m.name,As(f,m.at,u,d));continue}let[v,y,g={}]=m;g.at!==void 0&&(f=As(f,g.at,u,d));let S=0;const b=(E,w,P,M=0,x=0)=>{const T=Cd(E),{delay:V=0,times:C=Fo(T),type:L="keyframes",repeat:D,repeatType:q,repeatDelay:Y=0,...k}=w;let{ease:_=e.ease||"easeOut",duration:A}=w;const R=typeof V=="function"?V(M,x):V,j=T.length,J=_t(L)?L:s==null?void 0:s[L];if(j<=2&&J){let ze=100;if(j===2&&Ld(T)){const Re=T[1]-T[0];ze=Math.abs(Re)}const nt={...k};A!==void 0&&(nt.duration=te(A));const it=yd(nt,ze,J);_=it.ease,A=it.duration}A??(A=o);const ye=f+R;C.length===1&&C[0]===0&&(C[1]=1);const ni=C.length-T.length;if(ni>0&&No(C,ni),T.length===1&&T.unshift(null),D){fe(D<Pd,"Repeat count too high, must be less than 20"),A=Sd(A,D);const ze=[...T],nt=[...C];_=Array.isArray(_)?[..._]:[_];const it=[..._];for(let Re=0;Re<D;Re++){T.push(...ze);for(let Ne=0;Ne<ze.length;Ne++)C.push(nt[Ne]+(Re+1)),_.push(Ne===0?"linear":Sr(it,Ne-1))}xd(C,D)}const ii=ye+A;Td(P,T,_,C,ye,ii),S=Math.max(R+A,S),p=Math.max(ii,p)};if(G(v)){const E=Bs(v,a);b(y,g,Ls("default",E))}else{const E=br(v,y,i,c),w=E.length;for(let P=0;P<w;P++){y=y,g=g;const M=E[P],x=Bs(M,a);for(const T in y)b(y[T],Ad(g,T),Ls(T,x),P,w)}}u=f,f+=S}return a.forEach((h,m)=>{for(const v in h){const y=h[v];y.sort(Ed);const g=[],S=[],b=[];for(let w=0;w<y.length;w++){const{at:P,value:M,easing:x}=y[w];g.push(M),S.push(et(0,p,P)),b.push(x||"easeOut")}S[0]!==0&&(S.unshift(0),g.unshift(g[0]),b.unshift(Vd)),S[S.length-1]!==1&&(S.push(1),g.push(null)),r.has(m)||r.set(m,{keyframes:{},transition:{}});const E=r.get(m);E.keyframes[v]=g,E.transition[v]={...e,duration:p,ease:b,times:S,...n}}}),r}function Bs(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Ls(t,e){return e[t]||(e[t]=[]),e[t]}function Cd(t){return Array.isArray(t)?t:[t]}function Ad(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const Bd=t=>typeof t=="number",Ld=t=>t.every(Bd);function kd(t,e,n){const i=t.getProps();return ur(i,e,i.custom,t)}function _d(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,qe(n))}function Dd(t,e){const n=kd(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o){const a=xc(o[r]);_d(t,r,a)}}function Id(t){return!!(G(t)&&t.add)}function Od(t,e){const n=t.getValue("willChange");if(Id(n))return n.add(e)}function zd({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Rd(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...c}=e;i&&(r=i);const d=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const f in c){const p=t.getValue(f,(o=t.latestValues[f])!==null&&o!==void 0?o:null),h=c[f];if(h===void 0||u&&zd(u,f))continue;const m={delay:n,...Mn(r||{},f)};let v=!1;if(window.MotionHandoffAnimation){const g=Zo(t);if(g){const S=window.MotionHandoffAnimation(g,f,I);S!==null&&(m.startTime=S,v=!0)}}Od(t,f),p.start(Zn(f,p,h,t.shouldReduceMotion&&To.has(f)?{type:!1}:m,t,v));const y=p.animation;y&&d.push(y)}return a&&Promise.all(d).then(()=>{I.update(()=>{a&&Dd(t,a)})}),d}function Nd(t,e){return t in e}class Fd extends dr{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(Nd(n,e)){const i=e[n];if(typeof i=="string"||typeof i=="number")return i}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return N()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function jd(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Go(t)?new wr(e):new gr(e);n.mount(t),de.set(t,n)}function $d(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Fd(e);n.mount(t),de.set(t,n)}function Zd(t,e){return G(t)||typeof t=="number"||typeof t=="string"&&!Un(e)}function Tr(t,e,n,i){const s=[];if(Zd(t,e))s.push($o(t,Un(e)&&e.default||e,n&&(n.default||n)));else{const o=br(t,e,i),r=o.length;fe(!!r,"No valid elements provided.");for(let a=0;a<r;a++){const c=o[a],d=c instanceof Element?jd:$d;de.has(c)||d(c);const u=de.get(c),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,r)),s.push(...Rd(u,{...e,transition:f},{}))}}return s}function Gd(t,e,n){const i=[];return Md(t,e,n,{spring:jn}).forEach(({keyframes:o,transition:r},a)=>{i.push(...Tr(a,o,r))}),i}function Xd(t){return Array.isArray(t)&&Array.isArray(t[0])}function Ud(t){function e(n,i,s){let o=[];return Xd(n)?o=Gd(n,i,t):o=Tr(n,i,s,t),new lo(o)}return e}const xr=Ud();function Hd(t,e,n=!1){const i=t.visualElement.variantChildren;if(!(i!=null&&i.size))return{animations:[],getAnimations:()=>Promise.resolve()};const s=[];return Array.from(i).forEach((o,r)=>{var a;const c=n?o.state.baseTarget:o.state.target,d=o.state;d.target={};for(const u in e){if(u==="initial"&&!n)continue;const{definition:f,transition:p}=e[u],{staggerChildren:h=0,staggerDirection:m=1,delayChildren:v=0}=p||{},y=(i.size-1)*h,g=m===1?(w=0)=>w*h:(w=0)=>y-w*h,S=sn(f,o.props.variants,o.props.custom),b={},E={...c,...S};for(const w in E)if(w!=="transition"&&(d.target[w]=E[w],d.target[w]===void 0&&(d.target[w]=d.baseTarget[w]),Zs(c[w],d.target[w]))){(a=d.baseTarget)[w]??(a[w]=Us.get(o.current,w)),b[w]=Gs(Object.assign({},p,E.transition,o.props.transition),w);const P=d.target[w]==="none"?Xs[w]:d.target[w];s.push(()=>{var M;return xr(o.current,{[w]:P},{...b[w]||{},delay:(((M=b[w])==null?void 0:M.delay)||0)+v+g(r)})})}}}),{animations:s,getAnimations:()=>Promise.all(s.map(o=>o()))}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ks=t=>typeof t<"u",Wd=["initial","animate","inView","hover","press","whileDrag","exit"],Et=new WeakMap;let Kd=0;class qd{constructor(e,n){var i;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={animate:!0},this._context=null,this.id=`motion-state-${Kd++}`,this.options=e,this.parent=n,(i=n==null?void 0:n.children)==null||i.add(this),this.depth=(n==null?void 0:n.depth)+1||0,this.visualElement=gd(this.options.as,{presenceContext:null,parent:n==null?void 0:n.visualElement,props:{...this.options,whileHover:this.options.hover,whileTap:this.options.press,whileInView:this.options.inView},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}},reducedMotionConfig:e.motionConfig.reduceMotion});const s=e.initial===!1?"animate":"initial";this.initTarget(s),this.featureManager=new Gu(this)}get context(){if(!this._context){const e={get:(n,i)=>{var s;return typeof this.options[i]=="string"?this.options[i]:(s=this.parent)==null?void 0:s.context[i]}};this._context=new Proxy({},e)}return this._context}initTarget(e){this.baseTarget=sn(this.options[e]||this.context[e],this.options.variants)||{},this.target={}}get initial(){return ks(this.options.initial)?this.options.initial:this.context.initial}updateOptions(){this.visualElement.update({...this.options,whileHover:this.options.hover,whileTap:this.options.press,whileInView:this.options.inView,reducedMotionConfig:this.options.motionConfig.reduceMotion},{isPresent:!ke.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(e,n,i=!1){if(xn(!!e,"Animation state must be mounted with valid Element"),this.element=e,this.options=n,Et.set(e,this),de.get(e)||(this.visualElement.mount(e),de.set(e,this.visualElement)),this.visualElement.state=this,this.updateOptions(),typeof this.initial=="object")for(const s in this.initial)this.visualElement.setStaticValue(s,this.initial[s]);else if(typeof this.initial=="string"&&this.options.variants)for(const s in this.options.variants[this.initial])this.visualElement.setStaticValue(s,this.options.variants[this.initial][s]);this.featureManager.mount(),i||this.animateUpdates(!0)}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(e=!1){var n,i,s;if(Et.delete(this.element),this.featureManager.unmount(),e?I.render(()=>{var o;(o=this.visualElement)==null||o.unmount()}):(n=this.visualElement)==null||n.unmount(),e){const o=r=>{var a;r.unmount(!0),(a=r.children)==null||a.forEach(o)};Array.from(this.children).forEach(o)}(s=(i=this.parent)==null?void 0:i.children)==null||s.delete(this)}beforeUpdate(){this.featureManager.beforeUpdate()}update(e,n=!1){const i=JSON.stringify(this.options.animate);this.options=e;let s=!1;i!==JSON.stringify(e.animate)&&(s=!0),this.updateOptions(),this.featureManager.update(),s&&!n&&this.animateUpdates()}setActive(e,n,i=!0){var s;!this.element||this.activeStates[e]===n||(this.activeStates[e]=n,(s=this.visualElement.variantChildren)==null||s.forEach(o=>{o.state.setActive(e,n,!n)}),i&&this.animateUpdates())}animateUpdates(e=!1){const n=this.target;this.target={};const i={},s={};let o;for(const y of Wd){if(y==="initial"&&!e||!this.activeStates[y]&&y!=="initial")continue;const g=ks(this.options[y])?this.options[y]:this.context[y],S=sn(g,this.options.variants,this.options.custom);if(o=Object.assign({},this.options.transition,S==null?void 0:S.transition),typeof g=="string"&&(i[y]={definition:g,transition:o}),!S)continue;const b={...n,...S};for(const E in b)E!=="transition"&&(this.target[E]=S[E],s[E]=Gs(o,E))}const r=new Set([...Object.keys(this.target),...Object.keys(n)]),a=[];r.forEach(y=>{var g;if(this.target[y]===void 0&&(this.target[y]=this.baseTarget[y]),Zs(n[y],this.target[y])){(g=this.baseTarget)[y]??(g[y]=Us.get(this.element,y));const S=this.target[y]==="none"?Xs[y]:this.target[y];a.push(()=>xr(this.element,{[y]:S},s[y]||{}))}});let c=()=>Promise.resolve(),d=[];if(Object.keys(i).length){const{getAnimations:y,animations:g}=Hd(this,i,e);c=y,d=g}let u;const f=()=>(u=a.map(y=>y()).filter(Boolean),Promise.all(u)),{when:p}=o;let h;if(p){const[y,g]=p==="beforeChildren"?[f,c]:[c,f];h=y().then(()=>g())}else h=Promise.all([f(),c()]);const m=this.activeStates.exit;if(!(u!=null&&u.length)&&!d.length){m&&(this.element.dispatchEvent(ct("motionstart",this.target)),this.element.dispatchEvent(ct("motioncomplete",{...this.target},m)));return}const v=this.target;this.element.dispatchEvent(ct("motionstart",v)),h.then(()=>{this.element.dispatchEvent(ct("motioncomplete",{...v},m))}).catch(X)}isMounted(){return!!this.element}getOptions(){return this.options}willUpdate(e){var n;(n=this.visualElement.projection)==null||n.willUpdate()}}function Vt(t){return(t==null?void 0:t.nodeType)===3||(t==null?void 0:t.nodeType)===8?Vt(t.nextSibling):t}function Yd(t){var e;const n=((e=Vt(t.$el))==null?void 0:e.style.display)==="none";return t.$.vnode.transition&&n}const Jd={reduceMotion:"never",transition:void 0,nonce:void 0},[Qd]=At("MotionConfig");function Er(){return Qd(l.computed(()=>Jd))}const Pe=l.defineComponent({name:"Motion",inheritAttrs:!1,__name:"Motion",props:l.mergeDefaults({as:{},asChild:{type:Boolean},whileDrag:{},custom:{},initial:{type:[String,Object,Boolean]},animate:{},exit:{},variants:{},style:{},transformTemplate:{type:Function},transition:{},layoutGroup:{},motionConfig:{},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String]},layoutId:{},layoutScroll:{type:Boolean},layoutRoot:{type:Boolean},"data-framer-portal-id":{},crossfade:{type:Boolean},globalPressTarget:{type:Boolean},press:{},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},hover:{},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{},inView:{},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object]},dragMomentum:{type:Boolean},dragTransition:{},dragListener:{type:Boolean},dragControls:{},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}},{as:"div",asChild:!1,initial:void 0,animate:void 0,hover:void 0,inView:void 0,layout:!1,layoutId:void 0,layoutScroll:!1,layoutRoot:!1,dragListener:!0,dragElastic:.2,dragMomentum:!0,whileDrag:void 0,crossfade:!0}),setup(t){const e=t,n=lu({}),i=sa(null),s=l.useAttrs(),o=ra({}),r=Er();function a(){return o.id&&e.layoutId?`${o.id}-${e.layoutId}`:e.layoutId||void 0}function c(){return{...s,...e,layoutId:a(),transition:e.transition??r.value.transition,layoutGroup:o,motionConfig:r.value,initial:n.initial===!1?n.initial:e.initial===!0?void 0:e.initial}}const d=new qd(c(),i);oa(d);const u=l.getCurrentInstance().proxy;l.onBeforeMount(()=>{d.beforeMount()}),l.onMounted(()=>{d.mount(Vt(u.$el),c(),Yd(u))}),l.onBeforeUnmount(()=>d.beforeUnmount()),l.onUnmounted(()=>{const m=Vt(u.$el);m!=null&&m.isConnected||d.unmount()}),l.onBeforeUpdate(()=>{d.beforeUpdate()}),l.onUpdated(()=>{d.update(c())});function f(){const m=d.visualElement.type==="svg",v={...s};Object.keys(s).forEach(g=>{Bt(s[g])&&(v[g]=s[g].get())});let y={...e.style,...m?{}:d.visualElement.latestValues};if(m){const{attributes:g,style:S}=Ta(d.target);Object.assign(v,g),Object.assign(y,S)}return d.isMounted()||Object.assign(y,d.baseTarget),e.drag&&e.dragListener!==!1&&Object.assign(y,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`}),y=ba({...y,...e.style}),v.style=y,v}const p=l.ref();function h(){var m;e.asChild&&((m=p.value)==null||m.$forceUpdate())}return(m,v)=>{var y;return l.openBlock(),l.createBlock(l.unref(Ea),{ref_key:"PrimitiveRef",ref:p,"get-props":f,as:m.as,"as-child":m.asChild,"data-motion-group":((y=l.unref(o).key)==null?void 0:y.value)||void 0,onMotioncomplete:h},{default:l.withCtx(()=>[l.renderSlot(m.$slots,"default")]),_:3},8,["as","as-child","data-motion-group"])}}});function ef(t){const e=new WeakMap,n=Er();function i(o){if(t.mode!=="popLayout")return;const r={height:o.element.offsetHeight||0,width:o.element.offsetWidth||0,top:o.element.offsetTop,left:o.element.offsetLeft};o.element.dataset.motionPopId=o.id;const a=document.createElement("style");n.value.nonce&&(a.nonce=n.value.nonce),e.set(o,a),document.head.appendChild(a),a.textContent=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),da={class:"relative m-auto w-1200"},fa={class:"container"},pa={class:"title csr-v2-title-display"},ha={class:"text csr-v2-text"},ma=r.defineComponent({name:"FBannerV2",__name:"FBanner",props:{config:{type:Object,required:!0}},setup(t){const e=t,n=r.computed(()=>e.config.bgImage?{backgroundImage:`url("${e.config.bgImage}")`}:{});return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:"banner_v2",style:r.normalizeStyle(n.value)},[r.createElementVNode("div",da,[r.createElementVNode("div",fa,[r.createElementVNode("div",pa,r.toDisplayString(t.config.title),1),r.createElementVNode("div",ha,r.toDisplayString(t.config.text),1)])])],4))}}),J=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},qs=J(ma,[["__scopeId","data-v-623a1e27"]]);function zt(t,e){const n=typeof t=="string"&&!e?`${t}Context`:e,i=Symbol(n);return[a=>{const l=r.inject(i,a);if(l||l===null)return l;throw new Error(`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`)},a=>(r.provide(i,a),a)]}const[va,ga]=zt("Motion"),[ya]=zt("LayoutGroup");function hn(t,e,n){if(typeof t=="object")return t;if(t&&e){const i=e[t];return typeof i=="function"?i(n):i}}function Ys(t,e){return typeof t!=typeof e?!0:Array.isArray(t)&&Array.isArray(e)?!wa(t,e):t!==e}function wa(t,e){const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function Js(t,e){return t[e]?{...t,...t[e]}:{...t}}function fi(t){return t==null?void 0:t.startsWith("--")}const ba=t=>t;function Sa(t){return typeof t=="number"}const xa=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],Ta=new Set(xa);function Ea(t){return Ta.has(t)}const pi={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>`${t}deg`},Va={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>`${t}px`},rotate:pi,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:ba},skew:pi},Ma=["translate","scale","rotate","skew"],Ca=["","X","Y","Z"],Ln=new Map,Vt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];Ma.forEach(t=>{Ca.forEach(e=>{Vt.push(t+e),Ln.set(t+e,Va[t])})});const Pa=new Set(Vt),Aa=t=>Pa.has(t),hi={x:"translateX",y:"translateY",z:"translateZ"};function ka([t],[e]){return Vt.indexOf(t)-Vt.indexOf(e)}function Ba(t,[e,n]){return`${t} ${e}(${n})`}function La(t){return t.sort(ka).reduce(Ba,"").trim()}const Qs={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0};function Ft(t){return!!(t&&t.getVelocity)}const eo={get:(t,e)=>{let n=fi(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&n!=="0"){const i=Ln.get(e);i&&(n=i.initialValue)}return n},set:(t,e,n)=>{fi(e)?t.style.setProperty(e,n):t.style[e]=n}};function Da(t){var e;const n={},i=[];for(let s in t){let o=t[s];o=Ft(o)?o.get():o,Aa(s)&&s in hi&&(s=hi[s]);let a=Array.isArray(o)?o[0]:o;const l=Ln.get(s);l?(a=Sa(o)?(e=l.toDefaultUnit)==null?void 0:e.call(l,o):o,i.push([s,a])):n[s]=a}return i.length&&(n.transform=La(i)),n}const mi={fill:!0,stroke:!0,strokeWidth:!0,opacity:!0,fillOpacity:!0,strokeOpacity:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,cx:!0,cy:!0,r:!0,d:!0,x:!0,y:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,pathLength:!0,transform:!0,viewBox:!0,width:!0,height:!0,preserveAspectRatio:!0,clipPath:!0,filter:!0,mask:!0,stopColor:!0,stopOpacity:!0,gradientTransform:!0,gradientUnits:!0,spreadMethod:!0,markerEnd:!0,markerMid:!0,markerStart:!0,textAnchor:!0,dominantBaseline:!0,fontFamily:!0,fontSize:!0,fontWeight:!0,letterSpacing:!0,vectorEffect:!0};function Ia(t){const e={},n={};for(const i in t)if(i in mi){const s=mi[i],o=typeof s=="string"?s:i,a=t[i];e[o]=Ft(a)?a.get():a}else n[i]=t[i];return{attributes:e,style:n}}function to(t){return t?t.flatMap(e=>e.type===r.Fragment?to(e.children):[e]):[]}const Na=r.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(t,{attrs:e,slots:n}){return()=>{var i,s;if(!n.default)return null;const o=to(n.default()),a=o.findIndex(d=>d.type!==r.Comment);if(a===-1)return o;const l=o[a];(i=l.props)==null||delete i.ref;const u=l.props?r.mergeProps(e,l.props):e;e.class&&((s=l.props)!=null&&s.class)&&delete l.props.class;const c=r.cloneVNode(l,u);for(const d in u)d.startsWith("on")&&(c.props||(c.props={}),c.props[d]=u[d]);return o.length===1?c:(o[a]=c,o)}}}),_a=r.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"},getProps:{type:Function,default:()=>({})}},setup(t,{attrs:e,slots:n}){const i=t.asChild?"template":t.as,s=["area","img","input"];return()=>{const o=t.getProps(),a={...e,...o};return typeof i=="string"&&s.includes(i)?r.h(i,a):i!=="template"?r.h(t.as,a,{default:n.default}):r.h(Na,a,{default:n.default})}}});var Dn=function(){};process.env.NODE_ENV!=="production"&&(Dn=function(t,e){if(!t)throw new Error(e)});const Te=new WeakMap;class Ae{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}const ee=t=>t;let ct=ee,Ee=ee;process.env.NODE_ENV!=="production"&&(ct=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Ee=(t,e)=>{if(!t)throw new Error(e)});function Ra(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),t()),c(a)}const u={schedule:(c,d=!1,f=!1)=>{const h=f&&i?e:n;return d&&o.add(c),h.has(c)||h.add(c),c},cancel:c=>{n.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[e,n]=[n,e],e.forEach(l),e.clear(),i=!1,s&&(s=!1,u.process(c))}};return u}const ht=["read","resolveKeyframes","update","preRender","render","postRender"],Oa=40;function no(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ht.reduce((y,x)=>(y[x]=Ra(o),y),{}),{read:l,resolveKeyframes:u,update:c,preRender:d,render:f,postRender:p}=a,h=()=>{const y=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(y-s.timestamp,Oa),1),s.timestamp=y,s.isProcessing=!0,l.process(s),u.process(s),c.process(s),d.process(s),f.process(s),p.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(h))},m=()=>{n=!0,i=!0,s.isProcessing||t(h)};return{schedule:ht.reduce((y,x)=>{const T=a[x];return y[x]=(C,S=!1,A=!1)=>(n||m(),T.schedule(C,S,A)),y},{}),cancel:y=>{for(let x=0;x<ht.length;x++)a[ht[x]].cancel(y)},state:s,steps:a}}const{schedule:Z,cancel:Ve,state:K,steps:Ut}=no(typeof requestAnimationFrame<"u"?requestAnimationFrame:ee,!0);function za(t){return t instanceof SVGElement&&t.tagName!=="svg"}class Fa extends Ae{mount(){const e=this.state.element;if(!za(e))return;const n=this.state.visualElement;Z.read(()=>{try{n.renderState.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.renderState.dimensions={x:0,y:0,width:0,height:0}}})}unmount(){}}const Mt={};function io(t){Object.assign(Mt,t)}const ut=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Se=ut("deg"),ge=ut("%"),R=ut("px"),$a=ut("vh"),ja=ut("vw"),vi={...ge,parse:t=>ge.parse(t)/100,transform:t=>ge.transform(t*100)};function gi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ye={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(R.test(t))t=parseFloat(t);else return t;const n=gi(t,e.target.x),i=gi(t,e.target.y);return`${n}% ${i}%`}},W=(t,e,n)=>t+(e-t)*n,Me=(t,e,n)=>n>e?e:n<t?t:n,Xe={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ot={...Xe,transform:t=>Me(0,1,t)},mt={...Xe,default:1},tt=t=>Math.round(t*1e5)/1e5,In=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Za(t){return t==null}const Ga=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nn=(t,e)=>n=>!!(typeof n=="string"&&Ga.test(n)&&n.startsWith(t)||e&&!Za(n)&&Object.prototype.hasOwnProperty.call(n,e)),so=(t,e,n)=>i=>{if(typeof i!="string")return i;const[s,o,a,l]=i.match(In);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},Ua=t=>Me(0,255,t),Xt={...Xe,transform:t=>Math.round(Ua(t))},Ne={test:Nn("rgb","red"),parse:so("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Xt.transform(t)+", "+Xt.transform(e)+", "+Xt.transform(n)+", "+tt(ot.transform(i))+")"};function Xa(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const mn={test:Nn("#"),parse:Xa,transform:Ne.transform},Fe={test:Nn("hsl","hue"),parse:so("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+ge.transform(tt(e))+", "+ge.transform(tt(n))+", "+tt(ot.transform(i))+")"},q={test:t=>Ne.test(t)||mn.test(t)||Fe.test(t),parse:t=>Ne.test(t)?Ne.parse(t):Fe.test(t)?Fe.parse(t):mn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ne.transform(t):Fe.transform(t)},Ha=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wa(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(In))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ha))===null||n===void 0?void 0:n.length)||0)>0}const oo="number",ro="color",Ka="var",qa="var(",yi="${}",Ya=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function rt(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const l=e.replace(Ya,u=>(q.test(u)?(i.color.push(o),s.push(ro),n.push(q.parse(u))):u.startsWith(qa)?(i.var.push(o),s.push(Ka),n.push(u)):(i.number.push(o),s.push(oo),n.push(parseFloat(u))),++o,yi)).split(yi);return{values:n,split:l,indexes:i,types:s}}function ao(t){return rt(t).values}function lo(t){const{split:e,types:n}=rt(t),i=e.length;return s=>{let o="";for(let a=0;a<i;a++)if(o+=e[a],s[a]!==void 0){const l=n[a];l===oo?o+=tt(s[a]):l===ro?o+=q.transform(s[a]):o+=s[a]}return o}}const Ja=t=>typeof t=="number"?0:t;function Qa(t){const e=ao(t);return lo(t)(e.map(Ja))}const Ce={test:Wa,parse:ao,createTransformer:lo,getAnimatableNone:Qa},el={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=Ce.parse(t);if(s.length>5)return i;const o=Ce.createTransformer(t),a=typeof s[0]!="number"?1:0,l=n.x.scale*e.x,u=n.y.scale*e.y;s[0+a]/=l,s[1+a]/=u;const c=W(l,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=c),typeof s[3+a]=="number"&&(s[3+a]/=c),o(s)}},co={borderRadius:{...Ye,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ye,borderTopRightRadius:Ye,borderBottomLeftRadius:Ye,borderBottomRightRadius:Ye,boxShadow:el},xt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};class tl extends Ae{constructor(e){super(e),io(co)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){var e;(e=this.state.visualElement.projection)==null||e.root.didUpdate()}beforeMount(){}mount(){var e;const n=this.state.options,i=this.state.options.layoutGroup;if(n.layout||n.layoutId){const s=this.state.visualElement.projection;s&&((e=i==null?void 0:i.group)==null||e.add(s)),xt.hasEverUpdated=!0,s==null||s.root.didUpdate()}}beforeUnmount(){const e=this.state.visualElement.projection;e&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(e.isPresent=!1,e.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){var e,n;const i=this.state.options.layoutGroup,s=this.state.visualElement.projection;i!=null&&i.group&&s&&i.group.remove(s),(this.state.options.layoutId||this.state.options.layout)&&((n=(e=this.state.visualElement.projection)==null?void 0:e.root)==null||n.didUpdate())}}function uo(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function _n(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function nl(t){return e=>uo(e)&&t(e,_n(e))}function fo(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function nt(t,e,n,i){return fo(t,e,nl(n),i)}const wi=(t,e)=>Math.abs(t-e);function il(t,e){const n=wi(t.x,e.x),i=wi(t.y,e.y);return Math.sqrt(n**2+i**2)}const sl=(t,e)=>n=>e(t(n)),$t=(...t)=>t.reduce(sl),ol=t=>t*1e3;function rl(t){return t/1e3}class po{constructor(e,n,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Wt(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=il(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:m}=f,{timestamp:g}=K;this.history.push({...m,timestamp:g});const{onStart:w,onMove:y}=this.handlers;p||(w&&w(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ht(p,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Wt(f.type==="pointercancel"?this.lastMoveEventInfo:Ht(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,w),m&&m(f,w)},!uo(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.contextWindow=s||window;const a=_n(e),l=Ht(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=K;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(e,Wt(l,this.history)),this.removeListeners=$t(nt(this.contextWindow,"pointermove",this.handlePointerMove),nt(this.contextWindow,"pointerup",this.handlePointerUp),nt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ve(this.updatePoint)}}function Ht(t,e){return e?{point:e(t.point)}:t}function bi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Wt({point:t},e){return{point:t,delta:bi(t,ho(e)),offset:bi(t,al(e)),velocity:ll(e,.1)}}function al(t){return t[0]}function ho(t){return t[t.length-1]}function ll(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=ho(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>ol(e)));)n--;if(!i)return{x:0,y:0};const o=rl(s.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const a={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function mo({current:t}){return t?t.ownerDocument.defaultView:null}function Si(t){return(e,n)=>{t&&Z.postRender(()=>t(e,n))}}class cl extends Ae{constructor(){super(...arguments),this.removePointerDownListener=ee}onPointerDown(e){this.session=new po(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:mo(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:Si((e,n)=>{const{onPanSessionStart:i}=this.state.options;i&&i(e,n)}),onStart:Si((e,n)=>{const{onPanStart:i}=this.state.options;i&&i(e,n)}),onMove:(e,n)=>{const{onPan:i}=this.state.options;i&&i(e,n)},onEnd:(e,n)=>{const{onPanEnd:i}=this.state.options;delete this.session,i&&Z.postRender(()=>i(e,n))}}}mount(){this.removePointerDownListener=nt(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Rn(t,e){return t?t[e]||t.default||t:void 0}const ul={useManualTiming:!1};let Tt;function dl(){Tt=void 0}const ce={now:()=>(Tt===void 0&&ce.set(K.isProcessing||ul.useManualTiming?K.timestamp:performance.now()),Tt),set:t=>{Tt=t,queueMicrotask(dl)}};function On(t,e){t.indexOf(e)===-1&&t.push(e)}function jt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class zn{constructor(){this.subscriptions=[]}add(e){return On(this.subscriptions,e),()=>jt(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let o=0;o<s;o++){const a=this.subscriptions[o];a&&a(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function vo(t,e){return e?t*(1e3/e):0}const xi=new Set;function Fn(t,e,n){t||xi.has(e)||(console.warn(e),xi.add(e))}const Ti=30,fl=t=>!isNaN(parseFloat(t));class pl{constructor(e,n={}){this.version="11.16.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,s=!0)=>{const o=ce.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=ce.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fl(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Fn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new zn);const i=this.events[e].add(n);return e==="change"?()=>{i(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ce.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ti)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ti);return vo(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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 at(t,e){return new pl(t,e)}const Y=t=>!!(t&&t.getVelocity);function $n(t){let e;return()=>(e===void 0&&(e=t()),e)}const hl=$n(()=>window.ScrollTimeline!==void 0);class ml{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(s=>{if(hl()&&s.attachTimeline)return s.attachTimeline(e);if(typeof n=="function")return n(s)});return()=>{i.forEach((s,o)=>{s&&s(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class go extends ml{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}const ue=t=>t*1e3,ye=t=>t/1e3;function Zt(t){return typeof t=="function"}function Ei(t,e){t.timeline=e,t.onfinish=null}const jn=t=>Array.isArray(t)&&typeof t[0]=="number",vl={linearEasing:void 0};function gl(t,e){const n=$n(t);return()=>{var i;return(i=vl[e])!==null&&i!==void 0?i:n()}}const Ct=gl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),dt=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},yo=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=t(dt(0,s-1,o))+", ";return`linear(${i.substring(0,i.length-2)})`};function wo(t){return!!(typeof t=="function"&&Ct()||!t||typeof t=="string"&&(t in vn||Ct())||jn(t)||Array.isArray(t)&&t.every(wo))}const Je=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,vn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Je([0,.65,.55,1]),circOut:Je([.55,0,1,.45]),backIn:Je([.31,.01,.66,-.59]),backOut:Je([.33,1.53,.69,.99])};function bo(t,e){if(t)return typeof t=="function"&&Ct()?yo(t,e):jn(t)?Je(t):Array.isArray(t)?t.map(n=>bo(n,e)||vn.easeOut):vn[t]}const So=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,yl=1e-7,wl=12;function bl(t,e,n,i,s){let o,a,l=0;do a=e+(n-e)/2,o=So(a,i,s)-t,o>0?n=a:e=a;while(Math.abs(o)>yl&&++l<wl);return a}function ft(t,e,n,i){if(t===e&&n===i)return ee;const s=o=>bl(o,0,1,t,n);return o=>o===0||o===1?o:So(s(o),e,i)}const xo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,To=t=>e=>1-t(1-e),Eo=ft(.33,1.53,.69,.99),Zn=To(Eo),Vo=xo(Zn),Mo=t=>(t*=2)<1?.5*Zn(t):.5*(2-Math.pow(2,-10*(t-1))),Gn=t=>1-Math.sin(Math.acos(t)),Co=To(Gn),Po=xo(Gn),Ao=t=>/^0[^.\s]+$/u.test(t);function Sl(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ao(t):!0}const He=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],We=new Set(He),ko=new Set(["width","height","top","left","right","bottom",...He]),xl=new Set(["brightness","contrast","saturate","opacity"]);function Tl(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(In)||[];if(!i)return t;const s=n.replace(i,"");let o=xl.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const El=/\b([a-z-]*)\(.*?\)/gu,gn={...Ce,getAnimatableNone:t=>{const e=t.match(El);return e?e.map(Tl).join(" "):t}},Vl={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,backgroundPositionX:R,backgroundPositionY:R},Ml={rotate:Se,rotateX:Se,rotateY:Se,rotateZ:Se,scale:mt,scaleX:mt,scaleY:mt,scaleZ:mt,skew:Se,skewX:Se,skewY:Se,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:ot,originX:vi,originY:vi,originZ:R},Vi={...Xe,transform:Math.round},Un={...Vl,...Ml,zIndex:Vi,size:R,fillOpacity:ot,strokeOpacity:ot,numOctaves:Vi},Cl={...Un,color:q,backgroundColor:q,outlineColor:q,fill:q,stroke:q,borderColor:q,borderTopColor:q,borderRightColor:q,borderBottomColor:q,borderLeftColor:q,filter:gn,WebkitFilter:gn},Xn=t=>Cl[t];function Bo(t,e){let n=Xn(t);return n!==gn&&(n=Ce),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Pl=new Set(["auto","none","0"]);function Al(t,e,n){let i=0,s;for(;i<t.length&&!s;){const o=t[i];typeof o=="string"&&!Pl.has(o)&&rt(o).values.length&&(s=t[i]),i++}if(s&&n)for(const o of e)t[o]=Bo(n,s)}const Mi=t=>t===Xe||t===R,Ci=(t,e)=>parseFloat(t.split(", ")[e]),Pi=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Ci(s[1],e);{const o=i.match(/^matrix\((.+)\)$/u);return o?Ci(o[1],t):0}},kl=new Set(["x","y","z"]),Bl=He.filter(t=>!kl.has(t));function Ll(t){const e=[];return Bl.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const Ge={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Pi(4,13),y:Pi(5,14)};Ge.translateX=Ge.x;Ge.translateY=Ge.y;const _e=new Set;let yn=!1,wn=!1;function Lo(){if(wn){const t=Array.from(_e).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const s=Ll(i);s.length&&(n.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([o,a])=>{var l;(l=i.getValue(o))===null||l===void 0||l.set(a)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}wn=!1,yn=!1,_e.forEach(t=>t.complete()),_e.clear()}function Do(){_e.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(wn=!0)})}function Dl(){Do(),Lo()}class Hn{constructor(e,n,i,s,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(_e.add(this),yn||(yn=!0,Z.read(Do),Z.resolveKeyframes(Lo))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const a=s==null?void 0:s.get(),l=e[e.length-1];if(a!==void 0)e[0]=a;else if(i&&n){const u=i.readValue(n,l);u!=null&&(e[0]=u)}e[0]===void 0&&(e[0]=l),s&&a===void 0&&s.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),_e.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,_e.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Io=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),No=t=>e=>typeof e=="string"&&e.startsWith(t),_o=No("--"),Il=No("var(--"),Wn=t=>Il(t)?Nl.test(t.split("/*")[0].trim()):!1,Nl=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_l=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rl(t){const e=_l.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}const Ol=4;function Ro(t,e,n=1){Ee(n<=Ol,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=Rl(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const a=o.trim();return Io(a)?parseFloat(a):a}return Wn(s)?Ro(s,e,n+1):s}const Oo=t=>e=>e.test(t),zl={test:t=>t==="auto",parse:t=>t},zo=[Xe,R,ge,Se,ja,$a,zl],Ai=t=>zo.find(Oo(t));class Fo extends Hn{constructor(e,n,i,s,o){super(e,n,i,s,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let c=e[u];if(typeof c=="string"&&(c=c.trim(),Wn(c))){const d=Ro(c,n.current);d!==void 0&&(e[u]=d),u===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!ko.has(i)||e.length!==2)return;const[s,o]=e,a=Ai(s),l=Ai(o);if(a!==l)if(Mi(a)&&Mi(l))for(let u=0;u<e.length;u++){const c=e[u];typeof c=="string"&&(e[u]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)Sl(e[s])&&i.push(s);i.length&&Al(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ge[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(i);o&&o.jump(this.measuredOrigin,!1);const a=s.length-1,l=s[a];s[a]=Ge[i](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([u,c])=>{n.getValue(u).set(c)}),this.resolveNoneKeyframes()}}const ki=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ce.test(t)||t==="0")&&!t.startsWith("url("));function Fl(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function $l(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],a=ki(s,e),l=ki(o,e);return ct(a===l,`You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!a||!l?!1:Fl(t)||(n==="spring"||Zt(n))&&i}const jl=t=>t!==null;function Gt(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(jl),o=e&&n!=="loop"&&e%2===1?0:s.length-1;return!o||i===void 0?s[o]:i}const Zl=40;class $o{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ce.now(),this.options={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:o,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Zl?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Dl(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=ce.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:o,delay:a,onComplete:l,onUpdate:u,isGenerator:c}=this.options;if(!c&&!$l(e,i,s,o))if(a)this.options.duration=0;else{u==null||u(Gt(e,this.options,n)),l==null||l(),this.resolveFinishedPromise();return}const d=this.initPlayback(e,n);d!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Pt=2e4;function Kn(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Pt;)e+=n,i=t.next(e);return e>=Pt?1/0:e}function Kt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Gl({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,o=0,a=0;if(!e)s=o=a=n;else{const l=n<.5?n*(1+e):n+e-n*e,u=2*n-l;s=Kt(u,l,t+1/3),o=Kt(u,l,t),a=Kt(u,l,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:i}}function At(t,e){return n=>n>0?e:t}const qt=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Ul=[mn,Ne,Fe],Xl=t=>Ul.find(e=>e.test(t));function Bi(t){const e=Xl(t);if(ct(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===Fe&&(n=Gl(n)),n}const Li=(t,e)=>{const n=Bi(t),i=Bi(e);if(!n||!i)return At(t,e);const s={...n};return o=>(s.red=qt(n.red,i.red,o),s.green=qt(n.green,i.green,o),s.blue=qt(n.blue,i.blue,o),s.alpha=W(n.alpha,i.alpha,o),Ne.transform(s))},bn=new Set(["none","hidden"]);function Hl(t,e){return bn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Wl(t,e){return n=>W(t,e,n)}function qn(t){return typeof t=="number"?Wl:typeof t=="string"?Wn(t)?At:q.test(t)?Li:Yl:Array.isArray(t)?jo:typeof t=="object"?q.test(t)?Li:Kl:At}function jo(t,e){const n=[...t],i=n.length,s=t.map((o,a)=>qn(o)(o,e[a]));return o=>{for(let a=0;a<i;a++)n[a]=s[a](o);return n}}function Kl(t,e){const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=qn(t[s])(t[s],e[s]));return s=>{for(const o in i)n[o]=i[o](s);return n}}function ql(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const a=e.types[o],l=t.indexes[a][s[a]],u=(n=t.values[l])!==null&&n!==void 0?n:0;i[o]=u,s[a]++}return i}const Yl=(t,e)=>{const n=Ce.createTransformer(e),i=rt(t),s=rt(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?bn.has(t)&&!s.values.length||bn.has(e)&&!i.values.length?Hl(t,e):$t(jo(ql(i,s),s.values),n):(ct(!0,`Complex values '${t}' and '${e}' 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.`),At(t,e))};function Zo(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?W(t,e,n):qn(t)(t,e)}const Jl=5;function Go(t,e,n){const i=Math.max(e-Jl,0);return vo(n-t(i),e-i)}const U={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Yt=.001;function Ql({duration:t=U.duration,bounce:e=U.bounce,velocity:n=U.velocity,mass:i=U.mass}){let s,o;ct(t<=ue(U.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=Me(U.minDamping,U.maxDamping,a),t=Me(U.minDuration,U.maxDuration,ye(t)),a<1?(s=c=>{const d=c*a,f=d*t,p=d-n,h=Sn(c,a),m=Math.exp(-f);return Yt-p/h*m},o=c=>{const f=c*a*t,p=f*n+n,h=Math.pow(a,2)*Math.pow(c,2)*t,m=Math.exp(-f),g=Sn(Math.pow(c,2),a);return(-s(c)+Yt>0?-1:1)*((p-h)*m)/g}):(s=c=>{const d=Math.exp(-c*t),f=(c-n)*t+1;return-Yt+d*f},o=c=>{const d=Math.exp(-c*t),f=(n-c)*(t*t);return d*f});const l=5/t,u=tc(s,o,l);if(t=ue(t),isNaN(u))return{stiffness:U.stiffness,damping:U.damping,duration:t};{const c=Math.pow(u,2)*i;return{stiffness:c,damping:a*2*Math.sqrt(i*c),duration:t}}}const ec=12;function tc(t,e,n){let i=n;for(let s=1;s<ec;s++)i=i-t(i)/e(i);return i}function Sn(t,e){return t*Math.sqrt(1-e*e)}const nc=["duration","bounce"],ic=["stiffness","damping","mass"];function Di(t,e){return e.some(n=>t[n]!==void 0)}function sc(t){let e={velocity:U.velocity,stiffness:U.stiffness,damping:U.damping,mass:U.mass,isResolvedFromDuration:!1,...t};if(!Di(t,ic)&&Di(t,nc))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,o=2*Me(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:U.mass,stiffness:s,damping:o}}else{const n=Ql(t);e={...e,...n,mass:U.mass},e.isResolvedFromDuration=!0}return e}function Yn(t=U.visualDuration,e=U.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:c,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=sc({...n,velocity:-ye(n.velocity||0)}),m=p||0,g=c/(2*Math.sqrt(u*d)),w=a-o,y=ye(Math.sqrt(u/d)),x=Math.abs(w)<5;i||(i=x?U.restSpeed.granular:U.restSpeed.default),s||(s=x?U.restDelta.granular:U.restDelta.default);let T;if(g<1){const S=Sn(y,g);T=A=>{const B=Math.exp(-g*y*A);return a-B*((m+g*y*w)/S*Math.sin(S*A)+w*Math.cos(S*A))}}else if(g===1)T=S=>a-Math.exp(-y*S)*(w+(m+y*w)*S);else{const S=y*Math.sqrt(g*g-1);T=A=>{const B=Math.exp(-g*y*A),V=Math.min(S*A,300);return a-B*((m+g*y*w)*Math.sinh(V)+S*w*Math.cosh(V))/S}}const C={calculatedDuration:h&&f||null,next:S=>{const A=T(S);if(h)l.done=S>=f;else{let B=0;g<1&&(B=S===0?ue(m):Go(T,S,A));const V=Math.abs(B)<=i,E=Math.abs(a-A)<=s;l.done=V&&E}return l.value=l.done?a:A,l},toString:()=>{const S=Math.min(Kn(C),Pt),A=yo(B=>C.next(S*B).value,S,30);return S+"ms "+A}};return C}function Ii({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:u,restDelta:c=.5,restSpeed:d}){const f=t[0],p={done:!1,value:f},h=V=>l!==void 0&&V<l||u!==void 0&&V>u,m=V=>l===void 0?u:u===void 0||Math.abs(l-V)<Math.abs(u-V)?l:u;let g=n*e;const w=f+g,y=a===void 0?w:a(w);y!==w&&(g=y-f);const x=V=>-g*Math.exp(-V/i),T=V=>y+x(V),C=V=>{const E=x(V),P=T(V);p.done=Math.abs(E)<=c,p.value=p.done?y:P};let S,A;const B=V=>{h(p.value)&&(S=V,A=Yn({keyframes:[p.value,m(p.value)],velocity:Go(T,V,p.value),damping:s,stiffness:o,restDelta:c,restSpeed:d}))};return B(0),{calculatedDuration:null,next:V=>{let E=!1;return!A&&S===void 0&&(E=!0,C(V),B(V)),S!==void 0&&V>=S?A.next(V-S):(!E&&C(V),p)}}}const oc=ft(.42,0,1,1),rc=ft(0,0,.58,1),Uo=ft(.42,0,.58,1),Xo=t=>Array.isArray(t)&&typeof t[0]!="number",Ni={linear:ee,easeIn:oc,easeInOut:Uo,easeOut:rc,circIn:Gn,circInOut:Po,circOut:Co,backIn:Zn,backInOut:Vo,backOut:Eo,anticipate:Mo},_i=t=>{if(jn(t)){Ee(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return ft(e,n,i,s)}else if(typeof t=="string")return Ee(Ni[t]!==void 0,`Invalid easing type '${t}'`),Ni[t];return t};function ac(t,e,n){const i=[],s=n||Zo,o=t.length-1;for(let a=0;a<o;a++){let l=s(t[a],t[a+1]);if(e){const u=Array.isArray(e)?e[a]||ee:e;l=$t(u,l)}i.push(l)}return i}function lc(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(Ee(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=ac(e,i,s),u=l.length,c=d=>{if(a&&d<t[0])return e[0];let f=0;if(u>1)for(;f<t.length-2&&!(d<t[f+1]);f++);const p=dt(t[f],t[f+1],d);return l[f](p)};return n?d=>c(Me(t[0],t[o-1],d)):c}function Ho(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=dt(0,e,i);t.push(W(n,1,s))}}function Wo(t){const e=[0];return Ho(e,t.length-1),e}function cc(t,e){return t.map(n=>n*e)}function uc(t,e){return t.map(()=>e||Uo).splice(0,t.length-1)}function kt({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=Xo(i)?i.map(_i):_i(i),o={done:!1,value:e[0]},a=cc(n&&n.length===e.length?n:Wo(e),t),l=lc(a,e,{ease:Array.isArray(s)?s:uc(e,s)});return{calculatedDuration:t,next:u=>(o.value=l(u),o.done=u>=t,o)}}const dc=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Z.update(e,!0),stop:()=>Ve(e),now:()=>K.isProcessing?K.timestamp:ce.now()}},fc={decay:Ii,inertia:Ii,tween:kt,keyframes:kt,spring:Yn},pc=t=>t/100;class Jn extends $o{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:i,element:s,keyframes:o}=this.options,a=(s==null?void 0:s.KeyframeResolver)||Hn,l=(u,c)=>this.onKeyframesResolved(u,c);this.resolver=new a(o,l,n,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=Zt(n)?n:fc[n]||kt;let u,c;l!==kt&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&Ee(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),u=$t(pc,Zo(e[0],e[1])),e=[0,100]);const d=l({...this.options,keyframes:e});o==="mirror"&&(c=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Kn(d));const{calculatedDuration:f}=d,p=f+s,h=p*(i+1)-s;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:u,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}const{finalKeyframe:s,generator:o,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=i;if(this.startTime===null)return o.next(0);const{delay:p,repeat:h,repeatType:m,repeatDelay:g,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-d/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-p*(this.speed>=0?1:-1),x=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let T=this.currentTime,C=o;if(h){const V=Math.min(this.currentTime,d)/f;let E=Math.floor(V),P=V%1;!P&&V>=1&&(P=1),P===1&&E--,E=Math.min(E,h+1),!!(E%2)&&(m==="reverse"?(P=1-P,g&&(P-=g/f)):m==="mirror"&&(C=a)),T=Me(0,1,P)*f}const S=x?{done:!1,value:u[0]}:C.next(T);l&&(S.value=l(S.value));let{done:A}=S;!x&&c!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return B&&s!==void 0&&(S.value=Gt(u,this.options,s)),w&&w(S.value),B&&this.finish(),S}get duration(){const{resolved:e}=this;return e?ye(e.calculatedDuration):0}get time(){return ye(this.currentTime)}set time(e){e=ue(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=ye(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=dc,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const hc=new Set(["opacity","clipPath","filter","transform"]);function mc(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:u}={}){const c={[e]:n};u&&(c.offset=u);const d=bo(l,s);return Array.isArray(d)&&(c.easing=d),t.animate(c,{delay:i,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const vc=$n(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Bt=10,gc=2e4;function yc(t){return Zt(t.type)||t.type==="spring"||!wo(t.ease)}function wc(t,e){const n=new Jn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<gc;)i=n.sample(o),s.push(i.value),o+=Bt;return{times:void 0,keyframes:s,duration:o-Bt,ease:"linear"}}const Ko={anticipate:Mo,backInOut:Vo,circInOut:Po};function bc(t){return t in Ko}class Ri extends $o{constructor(e){super(e);const{name:n,motionValue:i,element:s,keyframes:o}=this.options;this.resolver=new Fo(o,(a,l)=>this.onKeyframesResolved(a,l),n,i,s),this.resolver.scheduleResolve()}initPlayback(e,n){var i;let{duration:s=300,times:o,ease:a,type:l,motionValue:u,name:c,startTime:d}=this.options;if(!(!((i=u.owner)===null||i===void 0)&&i.current))return!1;if(typeof a=="string"&&Ct()&&bc(a)&&(a=Ko[a]),yc(this.options)){const{onComplete:p,onUpdate:h,motionValue:m,element:g,...w}=this.options,y=wc(e,w);e=y.keyframes,e.length===1&&(e[1]=e[0]),s=y.duration,o=y.times,a=y.ease,l="keyframes"}const f=mc(u.owner.current,c,e,{...this.options,duration:s,times:o,ease:a});return f.startTime=d??this.calcStartTime(),this.pendingTimeline?(Ei(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:p}=this.options;u.set(Gt(e,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:s,times:o,type:l,ease:a,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return ye(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return ye(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=ue(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return ee;const{animation:i}=n;Ei(i,e)}return ee}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:s,type:o,ease:a,times:l}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:f,element:p,...h}=this.options,m=new Jn({...h,keyframes:i,duration:s,type:o,ease:a,times:l,isGenerator:!0}),g=ue(this.time);c.setWithVelocity(m.sample(g-Bt).value,m.sample(g).value,Bt)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:s,repeatType:o,damping:a,type:l}=e;return vc()&&i&&hc.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!s&&o!=="mirror"&&a!==0&&l!=="inertia"}}const Sc={type:"spring",stiffness:500,damping:25,restSpeed:10},xc=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Tc={type:"keyframes",duration:.8},Ec={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vc=(t,{keyframes:e})=>e.length>2?Tc:We.has(t)?t.startsWith("scale")?xc(e[1]):Sc:Ec;function Mc({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:c,...d}){return!!Object.keys(d).length}const Qn=(t,e,n,i={},s,o)=>a=>{const l=Rn(i,t)||{},u=l.delay||i.delay||0;let{elapsed:c=0}=i;c=c-ue(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-c,onUpdate:p=>{e.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:s};Mc(l)||(d={...d,...Vc(t,d)}),d.duration&&(d.duration=ue(d.duration)),d.repeatDelay&&(d.repeatDelay=ue(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!o&&e.get()!==void 0){const p=Gt(d.keyframes,l);if(p!==void 0)return Z.update(()=>{d.onUpdate(p),d.onComplete()}),new go([])}return!o&&Ri.supports(d)?new Ri(d):new Jn(d)};function qo(t,e,n){const i=Y(t)?t:at(t);return i.start(Qn("",i,e,n)),i.animation}const ei=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Cc="framerAppearId",Pc="data-"+ei(Cc);function Yo(t){return t.props[Pc]}const{schedule:Ac}=no(queueMicrotask,!1);function Jo(t){return t instanceof SVGElement&&t.tagName!=="svg"}const kc=(t,e)=>t.depth-e.depth;class Bc{constructor(){this.children=[],this.isDirty=!1}add(e){On(this.children,e),this.isDirty=!0}remove(e){jt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(kc),this.isDirty=!1,this.children.forEach(e)}}function Lc(t,e){const n=ce.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(Ve(i),t(o-e))};return Z.read(i,!0),()=>Ve(i)}const Dc=t=>Array.isArray(t),Ic=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Nc=t=>Dc(t)?t[t.length-1]||0:t;function Jt(t){const e=Y(t)?t.get():t;return Ic(e)?e.toValue():e}const Qo=["TopLeft","TopRight","BottomLeft","BottomRight"],_c=Qo.length,Oi=t=>typeof t=="string"?parseFloat(t):t,zi=t=>typeof t=="number"||R.test(t);function Rc(t,e,n,i,s,o){s?(t.opacity=W(0,n.opacity!==void 0?n.opacity:1,Oc(i)),t.opacityExit=W(e.opacity!==void 0?e.opacity:1,0,zc(i))):o&&(t.opacity=W(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let a=0;a<_c;a++){const l=`border${Qo[a]}Radius`;let u=Fi(e,l),c=Fi(n,l);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||zi(u)===zi(c)?(t[l]=Math.max(W(Oi(u),Oi(c),i),0),(ge.test(c)||ge.test(u))&&(t[l]+="%")):t[l]=c}(e.rotate||n.rotate)&&(t.rotate=W(e.rotate||0,n.rotate||0,i))}function Fi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Oc=er(0,.5,Co),zc=er(.5,.95,ee);function er(t,e,n){return i=>i<t?0:i>e?1:n(dt(t,e,i))}function $i(t,e){t.min=e.min,t.max=e.max}function re(t,e){$i(t.x,e.x),$i(t.y,e.y)}function ji(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Qt(t){return t===void 0||t===1}function xn({scale:t,scaleX:e,scaleY:n}){return!Qt(t)||!Qt(e)||!Qt(n)}function Be(t){return xn(t)||tr(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function tr(t){return Zi(t.x)||Zi(t.y)}function Zi(t){return t&&t!=="0%"}function Lt(t,e,n){const i=t-n,s=e*i;return n+s}function Gi(t,e,n,i,s){return s!==void 0&&(t=Lt(t,s,i)),Lt(t,n,i)+e}function Tn(t,e=0,n=1,i,s){t.min=Gi(t.min,e,n,i,s),t.max=Gi(t.max,e,n,i,s)}function nr(t,{x:e,y:n}){Tn(t.x,e.translate,e.scale,e.originPoint),Tn(t.y,n.translate,n.scale,n.originPoint)}const Ui=.999999999999,Xi=1.0000000000001;function Fc(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,a;for(let l=0;l<s;l++){o=n[l],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&$e(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,nr(t,a)),i&&Be(o.latestValues)&&$e(t,o.latestValues))}e.x<Xi&&e.x>Ui&&(e.x=1),e.y<Xi&&e.y>Ui&&(e.y=1)}function vt(t,e){t.min=t.min+e,t.max=t.max+e}function Hi(t,e,n,i,s=.5){const o=W(t.min,t.max,s);Tn(t,e,n,o,i)}function $e(t,e){Hi(t.x,e.x,e.scaleX,e.scale,e.originX),Hi(t.y,e.y,e.scaleY,e.scale,e.originY)}const ir=1e-4,$c=1-ir,jc=1+ir,sr=.01,Zc=0-sr,Gc=0+sr;function fe(t){return t.max-t.min}function Uc(t,e,n){return Math.abs(t-e)<=n}function Wi(t,e,n,i=.5){t.origin=i,t.originPoint=W(e.min,e.max,t.origin),t.scale=fe(n)/fe(e),t.translate=W(n.min,n.max,t.origin)-t.originPoint,(t.scale>=$c&&t.scale<=jc||isNaN(t.scale))&&(t.scale=1),(t.translate>=Zc&&t.translate<=Gc||isNaN(t.translate))&&(t.translate=0)}function it(t,e,n,i){Wi(t.x,e.x,n.x,i?i.originX:void 0),Wi(t.y,e.y,n.y,i?i.originY:void 0)}function Ki(t,e,n){t.min=n.min+e.min,t.max=t.min+fe(e)}function Xc(t,e,n){Ki(t.x,e.x,n.x),Ki(t.y,e.y,n.y)}function qi(t,e,n){t.min=e.min-n.min,t.max=t.min+fe(e)}function st(t,e,n){qi(t.x,e.x,n.x),qi(t.y,e.y,n.y)}function Yi(t,e,n,i,s){return t-=e,t=Lt(t,1/n,i),s!==void 0&&(t=Lt(t,1/s,i)),t}function Hc(t,e=0,n=1,i=.5,s,o=t,a=t){if(ge.test(e)&&(e=parseFloat(e),e=W(a.min,a.max,e/100)-a.min),typeof e!="number")return;let l=W(o.min,o.max,i);t===o&&(l-=e),t.min=Yi(t.min,e,n,l,s),t.max=Yi(t.max,e,n,l,s)}function Ji(t,e,[n,i,s],o,a){Hc(t,e[n],e[i],e[s],e.scale,o,a)}const Wc=["x","scaleX","originX"],Kc=["y","scaleY","originY"];function Qi(t,e,n,i){Ji(t.x,e,Wc,n?n.x:void 0,i?i.x:void 0),Ji(t.y,e,Kc,n?n.y:void 0,i?i.y:void 0)}const es=()=>({translate:0,scale:1,origin:0,originPoint:0}),je=()=>({x:es(),y:es()}),ts=()=>({min:0,max:0}),H=()=>({x:ts(),y:ts()});function ns(t){return t.translate===0&&t.scale===1}function or(t){return ns(t.x)&&ns(t.y)}function is(t,e){return t.min===e.min&&t.max===e.max}function qc(t,e){return is(t.x,e.x)&&is(t.y,e.y)}function ss(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rr(t,e){return ss(t.x,e.x)&&ss(t.y,e.y)}function os(t){return fe(t.x)/fe(t.y)}function rs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Yc{constructor(){this.members=[]}add(e){On(this.members,e),e.scheduleRender()}remove(e){if(jt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(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);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.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 Jc(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,a=(n==null?void 0:n.z)||0;if((s||o||a)&&(i=`translate3d(${s}px, ${o}px, ${a}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:m}=n;c&&(i=`perspective(${c}px) ${i}`),d&&(i+=`rotate(${d}deg) `),f&&(i+=`rotateX(${f}deg) `),p&&(i+=`rotateY(${p}deg) `),h&&(i+=`skewX(${h}deg) `),m&&(i+=`skewY(${m}deg) `)}const l=t.x.scale*e.x,u=t.y.scale*e.y;return(l!==1||u!==1)&&(i+=`scale(${l}, ${u})`),i||"none"}function as(t){return[t("x"),t("y")]}const Le={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Qe=typeof window<"u"&&window.MotionDebug!==void 0,en=["","X","Y","Z"],Qc={visibility:"hidden"},ls=1e3;let eu=0;function tn(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function ar(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Yo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(s||o))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&ar(i)}function lr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(a={},l=e==null?void 0:e()){this.id=eu++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qe&&(Le.totalNodes=Le.resolvedTargetDeltas=Le.recalculatedProjection=0),this.nodes.forEach(iu),this.nodes.forEach(lu),this.nodes.forEach(cu),this.nodes.forEach(su),Qe&&window.MotionDebug.record(Le)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Bc)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new zn),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const u=this.eventHandlers.get(a);u&&u.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Jo(a),this.instance=a;const{layoutId:u,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(c||u)&&(this.isLayoutDirty=!0),t){let f;const p=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Lc(p,250),xt.hasAnimatedSinceResize&&(xt.hasAnimatedSinceResize=!1,this.nodes.forEach(us))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||hu,{onLayoutAnimationStart:w,onLayoutAnimationComplete:y}=d.getProps(),x=!this.targetLayout||!rr(this.targetLayout,m)||h,T=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||p&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,T);const C={...Rn(g,"layout"),onPlay:w,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else p||us(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ve(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.forEach(uu),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ar(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cs);return}this.isUpdating||this.nodes.forEach(ru),this.isUpdating=!1,this.nodes.forEach(au),this.nodes.forEach(tu),this.nodes.forEach(nu),this.clearAllSnapshots();const l=ce.now();K.delta=Me(0,1e3/60,l-K.timestamp),K.timestamp=l,K.isProcessing=!0,Ut.update.process(K),Ut.preRender.process(K),Ut.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ac.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ou),this.sharedNodes.forEach(du)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=H(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l){const u=i(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!or(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;a&&(l||Be(this.latestValues)||d)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return a&&(u=this.removeTransform(u)),mu(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return H();const u=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(vu))){const{scroll:d}=this.root;d&&(vt(u.x,d.offset.x),vt(u.y,d.offset.y))}return u}removeElementScroll(a){var l;const u=H();if(re(u,a),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return u;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:f,options:p}=d;d!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&re(u,a),vt(u.x,f.offset.x),vt(u.y,f.offset.y))}return u}applyTransform(a,l=!1){const u=H();re(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&$e(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Be(d.latestValues)&&$e(u,d.latestValues)}return Be(this.latestValues)&&$e(u,this.latestValues),u}removeTransform(a){const l=H();re(l,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!Be(c.latestValues))continue;xn(c.latestValues)&&c.updateSnapshot();const d=H(),f=c.measurePageBox();re(d,f),Qi(l,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Be(this.latestValues)&&Qi(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}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!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var l;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==u;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:p}=this.options;if(!(!this.layout||!(f||p))){if(this.resolvedRelativeTargetAt=K.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),st(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),re(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=H(),this.targetWithTransforms=H()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Xc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):re(this.target,this.layout.layoutBox),nr(this.target,this.targetDelta)):re(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=H(),this.relativeTargetOrigin=H(),st(this.relativeTargetOrigin,this.target,h.target),re(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qe&&Le.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||xn(this.parent.latestValues)||tr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===K.timestamp&&(c=!1),c)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;re(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;Fc(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=H());const{target:m}=l;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ji(this.prevProjectionDelta.x,this.projectionDelta.x),ji(this.prevProjectionDelta.y,this.projectionDelta.y)),it(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==h||!rs(this.projectionDelta.x,this.prevProjectionDelta.x)||!rs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Qe&&Le.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=je(),this.projectionDelta=je(),this.projectionDeltaWithTransform=je()}setAnimationOrigin(a,l=!1){const u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},f=je();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=H(),h=u?u.source:void 0,m=this.layout?this.layout.source:void 0,g=h!==m,w=this.getStack(),y=!w||w.members.length<=1,x=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(pu));this.animationProgress=0;let T;this.mixTargetDelta=C=>{const S=C/1e3;ds(f.x,a.x,S),ds(f.y,a.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(st(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fu(this.relativeTarget,this.relativeTargetOrigin,p,S),T&&qc(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=H()),re(T,this.relativeTarget)),g&&(this.animationValues=d,Rc(d,c,this.latestValues,S,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ve(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{xt.hasAnimatedSinceResize=!0,this.currentAnimation=qo(0,ls,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onComplete:()=>{a.onComplete&&a.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);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ls),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:d}=a;if(!(!l||!u||!c)){if(this!==a&&this.layout&&c&&cr(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||H();const f=fe(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+f;const p=fe(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}re(l,u),$e(l,d),it(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Yc),this.sharedNodes.get(a).add(l);const c=l.options.initialPromotionConfig;l.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&tn("z",a,c,this.animationValues);for(let d=0;d<en.length;d++)tn(`rotate${en[d]}`,a,c,this.animationValues),tn(`skew${en[d]}`,a,c,this.animationValues);a.render();for(const d in c)a.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);a.scheduleRender()}getProjectionStyles(a){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Qc;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Jt(a==null?void 0:a.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Jt(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Be(this.latestValues)&&(g.transform=d?d({},""):"none",this.hasProjected=!1),g}const p=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=Jc(this.projectionDeltaWithTransform,this.treeScale,p),d&&(c.transform=d(p,c.transform));const{x:h,y:m}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,f.animationValues?c.opacity=f===this?(u=(l=p.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=f===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const g in Mt){if(p[g]===void 0)continue;const{correct:w,applyTo:y}=Mt[g],x=c.transform==="none"?p[g]:w(p[g],f);if(y){const T=y.length;for(let C=0;C<T;C++)c[y[C]]=x}else c[g]=x}return this.options.layoutId&&(c.pointerEvents=f===this?Jt(a==null?void 0:a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(cs),this.root.sharedNodes.clear()}}}function tu(t){t.updateLayout()}function nu(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?as(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=fe(p);p.min=i[f].min,p.max=p.min+h}):cr(o,n.layoutBox,i)&&as(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=fe(i[f]);p.max=p.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+h)});const l=je();it(l,i,n.layoutBox);const u=je();a?it(u,t.applyTransform(s,!0),n.measuredBox):it(u,i,n.layoutBox);const c=!or(l);let d=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const m=H();st(m,n.layoutBox,p.layoutBox);const g=H();st(g,i,h.layoutBox),rr(m,g)||(d=!0),f.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function iu(t){Qe&&Le.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function su(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ou(t){t.clearSnapshot()}function cs(t){t.clearMeasurements()}function ru(t){t.isLayoutDirty=!1}function au(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function us(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function lu(t){t.resolveTargetDelta()}function cu(t){t.calcProjection()}function uu(t){t.resetSkewAndRotation()}function du(t){t.removeLeadSnapshot()}function ds(t,e,n){t.translate=W(e.translate,0,n),t.scale=W(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function fs(t,e,n,i){t.min=W(e.min,n.min,i),t.max=W(e.max,n.max,i)}function fu(t,e,n,i){fs(t.x,e.x,n.x,i),fs(t.y,e.y,n.y,i)}function pu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const hu={duration:.45,ease:[.4,0,.1,1]},ps=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),hs=ps("applewebkit/")&&!ps("chrome/")?Math.round:ee;function ms(t){t.min=hs(t.min),t.max=hs(t.max)}function mu(t){ms(t.x),ms(t.y)}function cr(t,e,n){return t==="position"||t==="preserve-aspect"&&!Uc(os(e),os(n),.2)}function vu(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}function gu(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const yu=lr({attachResizeListener:(t,e)=>gu(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nn={current:void 0},wu=lr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nn.current){const t=new yu({});t.mount(window),t.setOptions({layoutScroll:!0}),nn.current=t}return nn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function ur(t){if(t)return t.options.allowProjection!==!1?t.projection:ur(t.parent)}const Ue=new WeakMap;function sn(t){const e=Ue.get(t);e&&t.removeEventListener("motioncomplete",e),Ue.delete(t)}const[bu,Su]=zt("AnimatePresenceContext");class xu extends Ae{constructor(e){super(e),io(co)}initProjection(){const e=this.state.options;this.state.visualElement.projection=new wu(this.state.visualElement.latestValues,e["data-framer-portal-id"]?void 0:ur(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!1,visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{var n;if(!((n=this.state.visualElement.projection)!=null&&n.isPresent)){const i=Ue.get(this.state.element);this.state.isSafeToRemove=!0,i&&i({detail:{isExit:!0}},!0)}}})}beforeMount(){this.initProjection()}update(){const e=this.state.options;this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!1,visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade})}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}}const Tu={y:!1};function Eu(){return Tu.y}function ti(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let s=document;const o=(i=n==null?void 0:n[t])!==null&&i!==void 0?i:s.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function dr(t,e){const n=ti(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function vs(t){return e=>{e.pointerType==="touch"||Eu()||t(e)}}function Vu(t,e,n={}){const[i,s,o]=dr(t,n),a=vs(l=>{const{target:u}=l,c=e(l);if(typeof c!="function"||!u)return;const d=vs(f=>{c(f),u.removeEventListener("pointerleave",d)});u.addEventListener("pointerleave",d,s)});return i.forEach(l=>{l.addEventListener("pointerenter",a,s)}),o}const fr=(t,e)=>e?t===e?!0:fr(t,e.parentElement):!1,Mu=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Cu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Pu(t){return Cu.has(t.tagName)||t.tabIndex!==-1}const et=new WeakSet;function gs(t){return e=>{e.key==="Enter"&&t(e)}}function on(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Au=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=gs(()=>{if(et.has(n))return;on(n,"down");const s=gs(()=>{on(n,"up")}),o=()=>on(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function ys(t){return Mu(t)&&!0}function ku(t,e,n={}){const[i,s,o]=dr(t,n),a=l=>{const u=l.currentTarget;if(!ys(l)||et.has(u))return;et.add(u);const c=e(l),d=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!ys(h)||!et.has(u))&&(et.delete(u),typeof c=="function"&&c(h,{success:m}))},f=h=>{d(h,n.useGlobalTarget||fr(u,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",p,s)};return i.forEach(l=>{!Pu(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,s),l.addEventListener("focus",c=>Au(c,s),s)}),o}function pr(t){return{point:{x:t.pageX,y:t.pageY}}}function ws(t,e,n){const i=t.options;i.press&&t.setActive("press",n==="Start");const s=`onPress${n==="End"?"":n}`,o=i[s];o&&Z.postRender(()=>o(e,pr(e)))}class Bu extends Ae{isActive(){return!!this.state.options.press}constructor(e){super(e)}mount(){const e=this.state.element;e&&(this.unmount=ku(e,n=>(ws(this.state,n,"Start"),(i,{success:s})=>ws(this.state,i,s?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function bs(t,e,n){const i=t.options;i.hover&&t.setActive("hover",n==="Start");const s=`onHover${n}`,o=i[s];o&&Z.postRender(()=>o(e,pr(e)))}class Lu extends Ae{isActive(){return!!this.state.getOptions().hover}constructor(e){super(e)}mount(){const e=this.state.element;e&&(this.unmount=Vu(e,n=>(bs(this.state,n,"Start"),i=>{bs(this.state,i,"End")})))}}const Du={some:0,all:1};function Iu(t,e,{root:n,margin:i,amount:s="some"}={}){const o=ti(t),a=new WeakMap,l=c=>{c.forEach(d=>{const f=a.get(d.target);if(d.isIntersecting!==!!f)if(d.isIntersecting){const p=e(d);typeof p=="function"?a.set(d.target,p):u.unobserve(d.target)}else typeof f=="function"&&(f(d),a.delete(d.target))})},u=new IntersectionObserver(l,{root:n,rootMargin:i,threshold:typeof s=="number"?s:Du[s]});return o.forEach(c=>u.observe(c)),()=>u.disconnect()}function Ss(t,e,n){const i=t.options;i.inView&&t.setActive("inView",n==="Enter");const s=`onViewport${n}`,o=i[s];o&&Z.postRender(()=>o(e))}class Nu extends Ae{isActive(){return!!this.state.getOptions().inView}constructor(e){super(e)}mount(){const e=this.state.element;e&&(this.unmount=Iu(e,n=>(Ss(this.state,n,"Enter"),i=>{Ss(this.state,n,"Leave")})))}}function hr(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const xs=hr("dragHorizontal"),Ts=hr("dragVertical");function _u(t){let e=!1;if(t==="y")e=Ts();else if(t==="x")e=xs();else{const n=xs(),i=Ts();n&&i?e=()=>{n(),i()}:(n&&n(),i&&i())}return e}function En(t){return t.max-t.min}function Ru(t,e,n){return n>e?e:n<t?t:n}function Dt(t,e,n){return t+(e-t)*n}function Es(t,e,n){const i=e-t;return i===0?1:(n-t)/i}function Ou(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?Dt(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?Dt(n,t,i.max):Math.min(t,n)),t}const Vn=.35;function zu(t,{top:e,left:n,bottom:i,right:s}){return{x:Vs(t.x,n,s),y:Vs(t.y,e,i)}}function Vs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Fu(t=Vn){return t===!1?t=0:t===!0&&(t=Vn),{x:Ms(t,"left","right"),y:Ms(t,"top","bottom")}}function Ms(t,e,n){return{min:Cs(t,e),max:Cs(t,n)}}function Cs(t,e){return typeof t=="number"?t:t[e]||0}function $u(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}function ju(t,e){return{x:Ps(t.x,e.x),y:Ps(t.y,e.y)}}function Ps(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function Zu(t,e){let n=.5;const i=En(t),s=En(e);return s>i?n=Es(e.min,e.max-i,t.min):i>s&&(n=Es(t.min,t.max-s,e.min)),Ru(0,1,n)}function gt(t){return typeof t=="object"&&t!==null&&"nodeType"in t}const As=()=>({min:0,max:0});function Gu(){return{x:As(),y:As()}}function le(t){return[t("x"),t("y")]}function Uu(t){return{test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}}const Xu=Uu("%");function Hu(t){return!!(Ft(t)&&t.add)}function ks(t,e){const n=t.getValue("willChange");if(Hu(n))return n.add(e)}function mr({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Wu(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Ku({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Bs(t,e){t.min=t.min+e,t.max=t.max+e}function qu(t,e){return mr(Wu(t.getBoundingClientRect(),e))}function Yu(t,e,n){const i=qu(t,n),{scroll:s}=e;return s&&(Bs(i.x,s.offset.x),Bs(i.y,s.offset.y)),i}function Ls(t){return!Ue.has(t.current)}const Ju=new WeakMap;class Qu{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=Gu(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){if(!Ls(this.visualElement))return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(_n(c,"page").point)},s=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:h}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_u(f),!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),le(g=>{let w=this.getAxisMotionValue(g).get()||0;if(Xu.test(w)){const{projection:y}=this.visualElement;if(y&&y.layout){const x=y.layout.layoutBox[g];x&&(w=En(x)*(parseFloat(w)/100))}}this.originPoint[g]=w}),h&&Z.postRender(()=>h(c,d)),ks(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:g}=d;if(p&&this.currentDirection===null){this.currentDirection=ed(g),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",d.point,g),this.updateAxis("y",d.point,g),this.visualElement.render(),m&&m(c,d)},a=(c,d)=>this.stop(c,d),l=()=>le(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)==null?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new po(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:mo(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&Z.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!yt(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(a=Ou(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,o=this.constraints;n&&gt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=zu(s.layoutBox,n):this.constraints=!1,this.elastic=Fu(i),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&le(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=$u(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!gt(e))return!1;const i=e;Dn(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Yu(i,s.root,this.visualElement.getTransformPagePoint());let a=ju(s.layout.layoutBox,o);if(n){const l=n(Ku(a));this.hasMutatedConstraints=!!l,l&&(a=mr(l))}return a}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},c=le(d=>{if(!yt(d,n,this.currentDirection))return;let f=u&&u[d]||{};a&&(f={min:0,max:0});const p=s?200:1e6,h=s?40:1e7,m={type:"inertia",velocity:i?e[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(c).then(l)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return ks(this.visualElement,e),i.start(Qn(e,i,0,n,this.visualElement,!1))}stopAnimation(){Ls(this.visualElement)&&le(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){le(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[n]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){le(n=>{const{drag:i}=this.getProps();if(!yt(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:l}=s.layout.layoutBox[n];o.set(e[n]-Dt(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!gt(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};le(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const u=l.get();s[a]=Zu({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),le(a=>{if(!yt(a,e,null))return;const l=this.getAxisMotionValue(a),{min:u,max:c}=this.constraints[a];l.set(Dt(u,c,s[a]))})}addListeners(){if(!this.visualElement.current)return;Ju.set(this.visualElement,this);const e=this.visualElement.current,n=nt(e,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),i=()=>{const{dragConstraints:u}=this.getProps();gt(u)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Z.read(i);const a=fo(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(le(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=u[d].translate,f.set(f.get()+u[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:a=Vn,dragMomentum:l=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:a,dragMomentum:l}}}function yt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ed(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class td extends Ae{constructor(e){super(e),this.removeGroupControls=ee,this.removeListeners=ee,this.controls=new Qu(e.visualElement)}mount(){const{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ee}unmount(){this.removeGroupControls(),this.removeListeners()}}class nd{constructor(e){this.features=[],this.features=[new Lu(e),new Bu(e),new Nu(e),new Fa(e),new tl(e),new xu(e),new cl(e),new td(e)]}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>{var n;return(n=e.beforeMount)==null?void 0:n.call(e)})}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>{var n;return(n=e.update)==null?void 0:n.call(e)})}beforeUpdate(){this.features.forEach(e=>e.beforeUpdate())}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}}function wt(t,e,n){return new CustomEvent(t,{detail:{target:e,isExit:n}})}function id({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function sd(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function od(t,e){return id(sd(t.getBoundingClientRect(),e))}const Ds={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"]},Mn={};for(const t in Ds)Mn[t]={isEnabled:e=>Ds[t].some(n=>!!e[n])};const rd=typeof window<"u",Cn={current:null},vr={current:!1};function ad(){if(vr.current=!0,!!rd)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Cn.current=t.matches;t.addListener(e),e()}else Cn.current=!1}const ld=[...zo,q,Ce],cd=t=>ld.find(Oo(t));function ud(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function dd(t){return typeof t=="string"||Array.isArray(t)}const fd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pd=["initial",...fd];function gr(t){return ud(t.animate)||pd.some(e=>dd(t[e]))}function hd(t){return!!(gr(t)||t.variants)}function md(t,e,n){for(const i in e){const s=e[i],o=n[i];if(Y(s))t.addValue(i,s),process.env.NODE_ENV==="development"&&Fn(s.version==="11.16.6",`Attempting to mix Motion versions ${s.version} with 11.16.6 may not work as expected.`);else if(Y(o))t.addValue(i,at(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const a=t.getValue(i);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=t.getStaticValue(i);t.addValue(i,at(a!==void 0?a:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}function Is(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function yr(t,e,n,i){if(typeof e=="function"){const[s,o]=Is(i);e=e(n!==void 0?n:t.custom,s,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,o]=Is(i);e=e(n!==void 0?n:t.custom,s,o)}return e}const Ns=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class wr{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Hn,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.renderScheduledAt=0,this.scheduleRender=()=>{const p=ce.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Z.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=gr(n),this.isVariantNode=hd(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];u[p]!==void 0&&Y(h)&&h.set(u[p],!1)}}mount(e){this.current=e,Te.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((n,i)=>this.bindToMotionValue(i,n)),vr.current||ad(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cn.current,process.env.NODE_ENV!=="production"&&Fn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Te.delete(this.current),this.projection&&this.projection.unmount(),Ve(this.notifyUpdate),Ve(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=We.has(e),s=n.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&Z.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Mn){const n=Mn[e];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):H()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Ns.length;i++){const s=Ns[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,a=e[o];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=md(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),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}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=at(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Io(s)||Ao(s))?s=parseFloat(s):!cd(s)&&Ce.test(n)&&(s=Bo(e,n)),this.setBaseTarget(e,Y(s)?s.get():s)),Y(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const a=yr(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[e])}if(i&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Y(o)?o:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new zn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class br extends wr{constructor(){super(...arguments),this.KeyframeResolver=Fo}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Y(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Sr=(t,e)=>e&&typeof t=="number"?e.transform(t):t,vd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gd=He.length;function yd(t,e,n){let i="",s=!0;for(let o=0;o<gd;o++){const a=He[o],l=t[a];if(l===void 0)continue;let u=!0;if(typeof l=="number"?u=l===(a.startsWith("scale")?1:0):u=parseFloat(l)===0,!u||n){const c=Sr(l,Un[a]);if(!u){s=!1;const d=vd[a]||a;i+=`${d}(${c}) `}n&&(e[a]=c)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function xr(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let a=!1,l=!1;for(const u in e){const c=e[u];if(We.has(u)){a=!0;continue}else if(_o(u)){s[u]=c;continue}else{const d=Sr(c,Un[u]);u.startsWith("origin")?(l=!0,o[u]=d):i[u]=d}}if(e.transform||(a||n?i.transform=yd(e,t.transform,n):i.transform&&(i.transform="none")),l){const{originX:u="50%",originY:c="50%",originZ:d=0}=o;i.transformOrigin=`${u} ${c} ${d}`}}function Tr(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}function wd(t,{layout:e,layoutId:n}){return We.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Mt[t]||t==="opacity")}function Er(t,e,n){var i;const{style:s}=t,o={};for(const a in s)(Y(s[a])||e.style&&Y(e.style[a])||wd(a,t)||((i=n==null?void 0:n.getValue(a))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[a]=s[a]);return o}function bd(t){return window.getComputedStyle(t)}class Vr extends br{constructor(){super(...arguments),this.type="html",this.renderInstance=Tr}readValueFromInstance(e,n){if(We.has(n)){const i=Xn(n);return i&&i.default||0}else{const i=bd(e),s=(_o(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return od(e,n)}build(e,n,i){xr(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Er(e,n,i)}}function _s(t,e,n){return typeof t=="string"?t:R.transform(e+n*t)}function Sd(t,e,n){const i=_s(e,t.x,t.width),s=_s(n,t.y,t.height);return`${i} ${s}`}const xd={offset:"stroke-dashoffset",array:"stroke-dasharray"},Td={offset:"strokeDashoffset",array:"strokeDasharray"};function Ed(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?xd:Td;t[o.offset]=R.transform(-i);const a=R.transform(e),l=R.transform(n);t[o.array]=`${a} ${l}`}function Vd(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...c},d,f){if(xr(t,c,f),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:p,style:h,dimensions:m}=t;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(s!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=Sd(m,s!==void 0?s:.5,o!==void 0?o:.5)),e!==void 0&&(p.x=e),n!==void 0&&(p.y=n),i!==void 0&&(p.scale=i),a!==void 0&&Ed(p,a,l,u,!1)}const Mr=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"]),Md=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Cd(t,e,n,i){Tr(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Mr.has(s)?s:ei(s),e.attrs[s])}function Pd(t,e,n){const i=Er(t,e,n);for(const s in t)if(Y(t[s])||Y(e[s])){const o=He.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[o]=t[s]}return i}class Cr extends br{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=H}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(We.has(n)){const i=Xn(n);return i&&i.default||0}return n=Mr.has(n)?n:ei(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Pd(e,n,i)}build(e,n,i){Vd(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,s){Cd(e,n,i,s)}mount(e){this.isSVGTag=Md(e.tagName),super.mount(e)}}function Ad(t,e){return Ea(t)?new Cr(e):new Vr(e)}function kd(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(Kn(i),Pt);return{type:"keyframes",ease:o=>i.next(s*o).value/e,duration:ye(s)}}const Bd=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t};function Pr(t,e){return Xo(t)?t[Bd(0,t.length,e)]:t}function ni(t){return typeof t=="object"&&!Array.isArray(t)}function Ar(t,e,n,i){return typeof t=="string"&&ni(e)?ti(t,n,i):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Ld(t,e,n){return t*(e+1)}function Rs(t,e,n,i){var s;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:(s=i.get(e))!==null&&s!==void 0?s:t}function Dd(t,e,n){for(let i=0;i<t.length;i++){const s=t[i];s.at>e&&s.at<n&&(jt(t,s),i--)}}function Id(t,e,n,i,s,o){Dd(t,s,o);for(let a=0;a<e.length;a++)t.push({value:e[a],at:W(s,o,i[a]),easing:Pr(n,a)})}function Nd(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function _d(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const Rd="easeInOut",Od=20;function zd(t,{defaultTransition:e={},...n}={},i,s){const o=e.duration||.3,a=new Map,l=new Map,u={},c=new Map;let d=0,f=0,p=0;for(let h=0;h<t.length;h++){const m=t[h];if(typeof m=="string"){c.set(m,f);continue}else if(!Array.isArray(m)){c.set(m.name,Rs(f,m.at,d,c));continue}let[g,w,y={}]=m;y.at!==void 0&&(f=Rs(f,y.at,d,c));let x=0;const T=(C,S,A,B=0,V=0)=>{const E=Fd(C),{delay:P=0,times:L=Wo(E),type:O="keyframes",repeat:$,repeatType:Q,repeatDelay:ne=0,...z}=S;let{ease:F=e.ease||"easeOut",duration:I}=S;const j=typeof P=="function"?P(B,V):P,X=E.length,oe=Zt(O)?O:s==null?void 0:s[O];if(X<=2&&oe){let ke=100;if(X===2&&Zd(E)){const pe=E[1]-E[0];ke=Math.abs(pe)}const ze={...z};I!==void 0&&(ze.duration=ue(I));const be=kd(ze,ke,oe);F=be.ease,I=be.duration}I??(I=o);const ae=f+j;L.length===1&&L[0]===0&&(L[1]=1);const qe=L.length-E.length;if(qe>0&&Ho(L,qe),E.length===1&&E.unshift(null),$){Ee($<Od,"Repeat count too high, must be less than 20"),I=Ld(I,$);const ke=[...E],ze=[...L];F=Array.isArray(F)?[...F]:[F];const be=[...F];for(let pe=0;pe<$;pe++){E.push(...ke);for(let he=0;he<ke.length;he++)L.push(ze[he]+(pe+1)),F.push(he===0?"linear":Pr(be,he-1))}Nd(L,$)}const pt=ae+I;Id(A,E,F,L,ae,pt),x=Math.max(j+I,x),p=Math.max(pt,p)};if(Y(g)){const C=Os(g,l);T(w,y,zs("default",C))}else{const C=Ar(g,w,i,u),S=C.length;for(let A=0;A<S;A++){w=w,y=y;const B=C[A],V=Os(B,l);for(const E in w)T(w[E],$d(y,E),zs(E,V),A,S)}}d=f,f+=x}return l.forEach((h,m)=>{for(const g in h){const w=h[g];w.sort(_d);const y=[],x=[],T=[];for(let S=0;S<w.length;S++){const{at:A,value:B,easing:V}=w[S];y.push(B),x.push(dt(0,p,A)),T.push(V||"easeOut")}x[0]!==0&&(x.unshift(0),y.unshift(y[0]),T.unshift(Rd)),x[x.length-1]!==1&&(x.push(1),y.push(null)),a.has(m)||a.set(m,{keyframes:{},transition:{}});const C=a.get(m);C.keyframes[g]=y,C.transition[g]={...e,duration:p,ease:T,times:x,...n}}}),a}function Os(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function zs(t,e){return e[t]||(e[t]=[]),e[t]}function Fd(t){return Array.isArray(t)?t:[t]}function $d(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const jd=t=>typeof t=="number",Zd=t=>t.every(jd);function Gd(t,e,n){const i=t.getProps();return yr(i,e,i.custom,t)}function Ud(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,at(n))}function Xd(t,e){const n=Gd(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const a in o){const l=Nc(o[a]);Ud(t,a,l)}}function Hd(t){return!!(Y(t)&&t.add)}function Wd(t,e){const n=t.getValue("willChange");if(Hd(n))return n.add(e)}function Kd({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function qd(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:l,...u}=e;i&&(a=i);const c=[],d=s&&t.animationState&&t.animationState.getState()[s];for(const f in u){const p=t.getValue(f,(o=t.latestValues[f])!==null&&o!==void 0?o:null),h=u[f];if(h===void 0||d&&Kd(d,f))continue;const m={delay:n,...Rn(a||{},f)};let g=!1;if(window.MotionHandoffAnimation){const y=Yo(t);if(y){const x=window.MotionHandoffAnimation(y,f,Z);x!==null&&(m.startTime=x,g=!0)}}Wd(t,f),p.start(Qn(f,p,h,t.shouldReduceMotion&&ko.has(f)?{type:!1}:m,t,g));const w=p.animation;w&&c.push(w)}return l&&Promise.all(c).then(()=>{Z.update(()=>{l&&Xd(t,l)})}),c}function Yd(t,e){return t in e}class Jd extends wr{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(Yd(n,e)){const i=e[n];if(typeof i=="string"||typeof i=="number")return i}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return H()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function Qd(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Jo(t)?new Cr(e):new Vr(e);n.mount(t),Te.set(t,n)}function ef(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Jd(e);n.mount(t),Te.set(t,n)}function tf(t,e){return Y(t)||typeof t=="number"||typeof t=="string"&&!ni(e)}function kr(t,e,n,i){const s=[];if(tf(t,e))s.push(qo(t,ni(e)&&e.default||e,n&&(n.default||n)));else{const o=Ar(t,e,i),a=o.length;Ee(!!a,"No valid elements provided.");for(let l=0;l<a;l++){const u=o[l],c=u instanceof Element?Qd:ef;Te.has(u)||c(u);const d=Te.get(u),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(l,a)),s.push(...qd(d,{...e,transition:f},{}))}}return s}function nf(t,e,n){const i=[];return zd(t,e,n,{spring:Yn}).forEach(({keyframes:o,transition:a},l)=>{i.push(...kr(l,o,a))}),i}function sf(t){return Array.isArray(t)&&Array.isArray(t[0])}function of(t){function e(n,i,s){let o=[];return sf(n)?o=nf(n,i,t):o=kr(n,i,s,t),new go(o)}return e}const Br=of();function rf(t,e,n=!1){const i=t.visualElement.variantChildren;if(!(i!=null&&i.size))return{animations:[],getAnimations:()=>Promise.resolve()};const s=[];return Array.from(i).forEach((o,a)=>{var l;const u=n?o.state.baseTarget:o.state.target,c=o.state;c.target={};for(const d in e){if(d==="initial"&&!n)continue;const{definition:f,transition:p}=e[d],{staggerChildren:h=0,staggerDirection:m=1,delayChildren:g=0}=p||{},w=(i.size-1)*h,y=m===1?(S=0)=>S*h:(S=0)=>w-S*h,x=hn(f,o.props.variants,o.props.custom),T={},C={...u,...x};for(const S in C)if(S!=="transition"&&(c.target[S]=C[S],c.target[S]===void 0&&(c.target[S]=c.baseTarget[S]),Ys(u[S],c.target[S]))){(l=c.baseTarget)[S]??(l[S]=eo.get(o.current,S)),T[S]=Js(Object.assign({},p,C.transition,o.props.transition),S);const A=c.target[S]==="none"?Qs[S]:c.target[S];s.push(()=>{var B;return Br(o.current,{[S]:A},{...T[S]||{},delay:(((B=T[S])==null?void 0:B.delay)||0)+g+y(a)})})}}}),{animations:s,getAnimations:()=>Promise.all(s.map(o=>o()))}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Fs=t=>typeof t<"u",af=["initial","animate","inView","hover","press","whileDrag","exit"],It=new WeakMap;let lf=0;class cf{constructor(e,n){var i;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={animate:!0},this._context=null,this.id=`motion-state-${lf++}`,this.options=e,this.parent=n,(i=n==null?void 0:n.children)==null||i.add(this),this.depth=(n==null?void 0:n.depth)+1||0,this.visualElement=Ad(this.options.as,{presenceContext:null,parent:n==null?void 0:n.visualElement,props:{...this.options,whileHover:this.options.hover,whileTap:this.options.press,whileInView:this.options.inView},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}},reducedMotionConfig:e.motionConfig.reduceMotion});const s=e.initial===!1?"animate":"initial";this.initTarget(s),this.featureManager=new nd(this)}get context(){if(!this._context){const e={get:(n,i)=>{var s;return typeof this.options[i]=="string"?this.options[i]:(s=this.parent)==null?void 0:s.context[i]}};this._context=new Proxy({},e)}return this._context}initTarget(e){this.baseTarget=hn(this.options[e]||this.context[e],this.options.variants)||{},this.target={}}get initial(){return Fs(this.options.initial)?this.options.initial:this.context.initial}updateOptions(){this.visualElement.update({...this.options,whileHover:this.options.hover,whileTap:this.options.press,whileInView:this.options.inView,reducedMotionConfig:this.options.motionConfig.reduceMotion},{isPresent:!Ue.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(e,n,i=!1){if(Dn(!!e,"Animation state must be mounted with valid Element"),this.element=e,this.options=n,It.set(e,this),Te.get(e)||(this.visualElement.mount(e),Te.set(e,this.visualElement)),this.visualElement.state=this,this.updateOptions(),typeof this.initial=="object")for(const s in this.initial)this.visualElement.setStaticValue(s,this.initial[s]);else if(typeof this.initial=="string"&&this.options.variants)for(const s in this.options.variants[this.initial])this.visualElement.setStaticValue(s,this.options.variants[this.initial][s]);this.featureManager.mount(),i||this.animateUpdates(!0)}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(e=!1){var n,i,s;if(It.delete(this.element),this.featureManager.unmount(),e?Z.render(()=>{var o;(o=this.visualElement)==null||o.unmount()}):(n=this.visualElement)==null||n.unmount(),e){const o=a=>{var l;a.unmount(!0),(l=a.children)==null||l.forEach(o)};Array.from(this.children).forEach(o)}(s=(i=this.parent)==null?void 0:i.children)==null||s.delete(this)}beforeUpdate(){this.featureManager.beforeUpdate()}update(e,n=!1){const i=JSON.stringify(this.options.animate);this.options=e;let s=!1;i!==JSON.stringify(e.animate)&&(s=!0),this.updateOptions(),this.featureManager.update(),s&&!n&&this.animateUpdates()}setActive(e,n,i=!0){var s;!this.element||this.activeStates[e]===n||(this.activeStates[e]=n,(s=this.visualElement.variantChildren)==null||s.forEach(o=>{o.state.setActive(e,n,!n)}),i&&this.animateUpdates())}animateUpdates(e=!1){const n=this.target;this.target={};const i={},s={};let o;for(const w of af){if(w==="initial"&&!e||!this.activeStates[w]&&w!=="initial")continue;const y=Fs(this.options[w])?this.options[w]:this.context[w],x=hn(y,this.options.variants,this.options.custom);if(o=Object.assign({},this.options.transition,x==null?void 0:x.transition),typeof y=="string"&&(i[w]={definition:y,transition:o}),!x)continue;const T={...n,...x};for(const C in T)C!=="transition"&&(this.target[C]=x[C],s[C]=Js(o,C))}const a=new Set([...Object.keys(this.target),...Object.keys(n)]),l=[];a.forEach(w=>{var y;if(this.target[w]===void 0&&(this.target[w]=this.baseTarget[w]),Ys(n[w],this.target[w])){(y=this.baseTarget)[w]??(y[w]=eo.get(this.element,w));const x=this.target[w]==="none"?Qs[w]:this.target[w];l.push(()=>Br(this.element,{[w]:x},s[w]||{}))}});let u=()=>Promise.resolve(),c=[];if(Object.keys(i).length){const{getAnimations:w,animations:y}=rf(this,i,e);u=w,c=y}let d;const f=()=>(d=l.map(w=>w()).filter(Boolean),Promise.all(d)),{when:p}=o;let h;if(p){const[w,y]=p==="beforeChildren"?[f,u]:[u,f];h=w().then(()=>y())}else h=Promise.all([f(),u()]);const m=this.activeStates.exit;if(!(d!=null&&d.length)&&!c.length){m&&(this.element.dispatchEvent(wt("motionstart",this.target)),this.element.dispatchEvent(wt("motioncomplete",{...this.target},m)));return}const g=this.target;this.element.dispatchEvent(wt("motionstart",g)),h.then(()=>{this.element.dispatchEvent(wt("motioncomplete",{...g},m))}).catch(ee)}isMounted(){return!!this.element}getOptions(){return this.options}willUpdate(e){var n;(n=this.visualElement.projection)==null||n.willUpdate()}}function Nt(t){return(t==null?void 0:t.nodeType)===3||(t==null?void 0:t.nodeType)===8?Nt(t.nextSibling):t}function uf(t){var e;const n=((e=Nt(t.$el))==null?void 0:e.style.display)==="none";return t.$.vnode.transition&&n}const df={reduceMotion:"never",transition:void 0,nonce:void 0},[ff]=zt("MotionConfig");function Lr(){return ff(r.computed(()=>df))}const Oe=r.defineComponent({name:"Motion",inheritAttrs:!1,__name:"Motion",props:r.mergeDefaults({as:{},asChild:{type:Boolean},whileDrag:{},custom:{},initial:{type:[String,Object,Boolean]},animate:{},exit:{},variants:{},style:{},transformTemplate:{type:Function},transition:{},layoutGroup:{},motionConfig:{},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String]},layoutId:{},layoutScroll:{type:Boolean},layoutRoot:{type:Boolean},"data-framer-portal-id":{},crossfade:{type:Boolean},globalPressTarget:{type:Boolean},press:{},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},hover:{},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{},inView:{},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object]},dragMomentum:{type:Boolean},dragTransition:{},dragListener:{type:Boolean},dragControls:{},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}},{as:"div",asChild:!1,initial:void 0,animate:void 0,hover:void 0,inView:void 0,layout:!1,layoutId:void 0,layoutScroll:!1,layoutRoot:!1,dragListener:!0,dragElastic:.2,dragMomentum:!0,whileDrag:void 0,crossfade:!0}),setup(t){const e=t,n=bu({}),i=va(null),s=r.useAttrs(),o=ya({}),a=Lr();function l(){return o.id&&e.layoutId?`${o.id}-${e.layoutId}`:e.layoutId||void 0}function u(){return{...s,...e,layoutId:l(),transition:e.transition??a.value.transition,layoutGroup:o,motionConfig:a.value,initial:n.initial===!1?n.initial:e.initial===!0?void 0:e.initial}}const c=new cf(u(),i);ga(c);const d=r.getCurrentInstance().proxy;r.onBeforeMount(()=>{c.beforeMount()}),r.onMounted(()=>{c.mount(Nt(d.$el),u(),uf(d))}),r.onBeforeUnmount(()=>c.beforeUnmount()),r.onUnmounted(()=>{const m=Nt(d.$el);m!=null&&m.isConnected||c.unmount()}),r.onBeforeUpdate(()=>{c.beforeUpdate()}),r.onUpdated(()=>{c.update(u())});function f(){const m=c.visualElement.type==="svg",g={...s};Object.keys(s).forEach(y=>{Ft(s[y])&&(g[y]=s[y].get())});let w={...e.style,...m?{}:c.visualElement.latestValues};if(m){const{attributes:y,style:x}=Ia(c.target);Object.assign(g,y),Object.assign(w,x)}return c.isMounted()||Object.assign(w,c.baseTarget),e.drag&&e.dragListener!==!1&&Object.assign(w,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`}),w=Da({...w,...e.style}),g.style=w,g}const p=r.ref();function h(){var m;e.asChild&&((m=p.value)==null||m.$forceUpdate())}return(m,g)=>{var w;return r.openBlock(),r.createBlock(r.unref(_a),{ref_key:"PrimitiveRef",ref:p,"get-props":f,as:m.as,"as-child":m.asChild,"data-motion-group":((w=r.unref(o).key)==null?void 0:w.value)||void 0,onMotioncomplete:h},{default:r.withCtx(()=>[r.renderSlot(m.$slots,"default")]),_:3},8,["as","as-child","data-motion-group"])}}});function pf(t){const e=new WeakMap,n=Lr();function i(o){if(t.mode!=="popLayout")return;const a={height:o.element.offsetHeight||0,width:o.element.offsetWidth||0,top:o.element.offsetTop,left:o.element.offsetLeft};o.element.dataset.motionPopId=o.id;const l=document.createElement("style");n.value.nonce&&(l.nonce=n.value.nonce),e.set(o,l),document.head.appendChild(l),l.textContent=`
2
2
  [data-motion-pop-id="${o.id}"] {
3
3
  animation: pop 0.3s ease-in-out;
4
4
  }
5
- `,a.sheet&&a.sheet.insertRule(`
5
+ `,l.sheet&&l.sheet.insertRule(`
6
6
  [data-motion-pop-id="${o.id}"] {
7
7
  position: absolute !important;
8
- width: ${r.width}px !important;
9
- height: ${r.height}px !important;
10
- top: ${r.top}px !important;
11
- left: ${r.left}px !important;
8
+ width: ${a.width}px !important;
9
+ height: ${a.height}px !important;
10
+ top: ${a.top}px !important;
11
+ left: ${a.left}px !important;
12
12
  }
13
- `)}function s(o){const r=e.get(o);r&&(e.delete(o),requestIdleCallback(()=>{document.head.removeChild(r)}))}return{addPopStyle:i,removePopStyle:s,styles:e}}const tf=l.defineComponent({name:"AnimatePresence",inheritAttrs:!0,__name:"AnimatePresence",props:{mode:{default:"sync"},initial:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},as:{},custom:{},onExitComplete:{}},setup(t){const e=t,n={initial:e.initial,custom:e.custom};cu(n),l.onMounted(()=>{n.initial=void 0});function i(u){const f=Et.get(u);f&&(f.isVShow=!0,Ht(u),f.setActive("exit",!1))}const{addPopStyle:s,removePopStyle:o,styles:r}=ef(e),a=new Map;l.onUnmounted(()=>{a.clear()});function c(u,f){const p=Et.get(u);if(!p)return f();a.set(u,!0),Ht(u),s(p);function h(m){var v,y;if((v=m==null?void 0:m.detail)!=null&&v.isExit){const g=p.visualElement.projection;if((g==null?void 0:g.animationProgress)>0&&!p.isSafeToRemove&&!p.isVShow)return;Ht(u),a.delete(u),a.size===0&&((y=e.onExitComplete)==null||y.call(e)),r.has(p)||p.willUpdate("done"),f(),o(p),u!=null&&u.isConnected||p.unmount(!0)}}ke.set(u,h),u.addEventListener("motioncomplete",h),p.setActive("exit",!0)}const d=l.computed(()=>e.multiple?{tag:e.as}:{mode:e.mode==="wait"?"out-in":void 0});return(u,f)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(u.multiple?l.TransitionGroup:l.Transition),l.mergeProps({css:!1},d.value,{onEnter:i,onLeave:c}),{default:l.withCtx(()=>[l.renderSlot(u.$slots,"default")]),_:3},16))}});function Oe(t){return{commonStyle:l.computed(()=>{var i,s;const n={paddingTop:"unset",paddingBottom:"unset",background:"transparent"};return(i=t.paddingY)!=null&&i[0]&&(n.paddingTop=t.paddingY[0]),(s=t.paddingY)!=null&&s[1]&&(n.paddingBottom=t.paddingY[1]),t.bg&&(n.background=t.bg),n})}}var Vr=(t=>(t.BANNER_V2="banner_v2",t.TITLE_V2="title_v2",t.TEXT_V2="text_v2",t.MEDIA_V2="media_v2",t.TAB_TEXT_MEDIA_V2="tabTextMedia_v2",t.CAROUSEL_TEXT_MEDIA_V2="carouselTextMedia_v2",t.CASE_SHOW_V2="caseShow_v2",t))(Vr||{}),Pr=(t=>(t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.JUSTIFY="justify",t))(Pr||{}),Pt=(t=>(t.MODULE_TITLE="moduleTitle",t.SORT_TITLE="sortTitles",t))(Pt||{}),be=(t=>(t.TEXT_MEDIA="textMedia",t.MEDIA="media",t.TABLE="table",t))(be||{}),Te=(t=>(t.IMAGE="image",t.VIDEO="video",t.DIFF="diff",t))(Te||{}),Mr=(t=>(t.LIGHT="light",t.DARK="dark",t))(Mr||{});const O={initial:{y:40,opacity:0},transition:{duration:.6,ease:"easeOut"},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.5}},nf={class:"sortNumber"},sf=l.defineComponent({name:"FTitleV2",__name:"FTitle",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Oe(e.config),i=l.computed(()=>{const s=e.config.orderNumber;return s?s>=10?s:`0${s} `:""});return(s,o)=>(l.openBlock(),l.createElementBlock("div",{class:"title_v2",style:l.normalizeStyle(l.unref(n))},[l.createVNode(l.unref(Pe),{is:"div",class:"m-auto w-1200",initial:l.unref(O).initial,transition:l.unref(O).transition,"in-view":l.unref(O).whileInView,"in-view-options":l.unref(O).viewport},{default:l.withCtx(()=>[e.config.titleType===l.unref(Pt).MODULE_TITLE?(l.openBlock(),l.createElementBlock("h1",{key:0,class:l.normalizeClass(`title csr-v2-title-level-1 ${t.config.theme}`)},l.toDisplayString(t.config.text),3)):e.config.titleType===l.unref(Pt).SORT_TITLE?(l.openBlock(),l.createElementBlock("h2",{key:1,class:l.normalizeClass(`title csr-v2-title-level-2 ${t.config.theme}`)},[l.createElementVNode("span",nf,l.toDisplayString(i.value),1),l.createElementVNode("span",null,l.toDisplayString(t.config.text),1)],2)):l.createCommentVNode("",!0)]),_:1},8,["initial","transition","in-view","in-view-options"])],4))}}),Cr=U(sf,[["__scopeId","data-v-d83a7a0c"]]),of=l.defineComponent({name:"FTextV2",__name:"FText",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Oe(e.config);return(i,s)=>(l.openBlock(),l.createElementBlock("div",{class:"text_v2 csr-v2-text",style:l.normalizeStyle(l.unref(n))},[l.createVNode(l.unref(Pe),{is:"div",class:"m-auto w-1200",initial:l.unref(O).initial,transition:l.unref(O).transition,"in-view":l.unref(O).whileInView,"in-view-options":l.unref(O).viewport},{default:l.withCtx(()=>[l.createElementVNode("div",{style:l.normalizeStyle({textAlign:t.config.align})},l.toDisplayString(t.config.text),5)]),_:1},8,["initial","transition","in-view","in-view-options"])],4))}}),Ar=U(of,[["__scopeId","data-v-2a6e81cf"]]),Br="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAABgCAYAAADCWOqAAAAL10lEQVR4Ae3gAZAkSZIkSRKLqpm7R0REZmZmVlVVVVV3d3d3d/fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMdHd3d3dXV1VVVVVmZkZGRIS7m5kKz0xmV3d1d3dPz8zMzMxMong+vuzLvuy1I+KtgLe2fRw4zlX/l+0Ct0r6a9s/8/Ef//E/zXNCPMBXfdVXPbi19l3Aa3PV/2e/XUp5n4/5mI+5lSsQz/SlX/qlLx0RvwUc56r/9yTd2lp7m0/8xE/8awABfNVXfdWDM/O3bD+Yq656tt1Syst8zMd8zK0C+PIv//LfAl6bq656Xr/98R//8a+jL//yL39r4Ke46qoXwPbr6Cu+4iu+y/Z7c9VVL4CkW/XlX/7lfxXw0lx11Qsg6VZ9+Zd/+UXgOFdd9YLt6su//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzX8wSd8N/E5m3goQEQ+2/VbAW3PV/0boy7/8y81/nN8upbzPx3zMx9zK8/FVX/VVD26tfRXw1lz1vwn68i//cvMfQNJ3f9zHfdz78CL4iq/4iq+y/dFc9b8F+vIv/3Lz7yTp1o/7uI97CP8KX/7lX/5XwEtz1f8G6Mu//MvNv5Pt1/mET/iE3+Zf4cu+7MteW9JvcdX/BujLv/zLzb+DpFs/7uM+7iH8G3zFV3zF020/mKv+p0Nf/uVfbv59fvrjP/7j34Z/g6/4iq/4LtvvzVX/06Ev//IvN/8Otj/nEz7hEz6bf4Mv+7Iv+2xJn8VV/9OhL//yLzf/DpK++uM+7uM+hn+Dr/iKr/gq2x/NVf/ToS//8i83/z6//fEf//Gvw7/Bl3/5l/8W8Npc9T8d+vIv/3Lz71RKOfExH/Mxu/wrfNVXfdWDW2tP56r/DdCXf/mXm38nSV/9cR/3cR/Dv8JXfMVXfJft9+aq/w3Ql3/5l5v/ALZf5xM+4RN+mxfBl3/5l7818FNc9b8F+vIv/3LzH2PX9ud8wid8wlfzQnzFV3zFe9v+KuA4V/1vgb78y7/c/AeS9N2Z+T2f8Amf8Ns8wJd92Ze9tqTPAl6b/yKSvjsz/0bSawFvzVX/VujLv/zLzX+OXeBWScdtHweO81/I9ut8wid8wm/zTF/+5V/+1sBPcdW/BfryL/9y83+M7Y/5hE/4hK/muXzFV3zFe9v+Lq7610Jf/uVfbv4PkfTVH/dxH/cxvABf9mVf9tGSvoqr/jXQl3/5l5v/IyTd+nEf93EP4V/wZV/2ZZ8t6bO46kWFvvzLv9z8HyDp1oh4nY/5mI+5lRfBl33ZZ322pM/iqhcF+vIv/3Lzf8PbfPzHf/xP86/wFV/xFV9l+6O56l+CvvzLv9z8L2f7cz7hEz7hs/k3+Iqv+Irvsv3eXPXCoC//8i83/7v99Md//Me/Df8OX/7lX/5XwEvzn2NX0k/bfjDw2vzvhL78y7/c/C8l6daIeJ2P+ZiPuZV/h6/6qq863lr7LeCl+Q8k6asj4nM+5mM+ZhfgS7/0S186In4LOM7/LujLv/zLzf9Ou6WUl/mYj/mYW/kP8FVf9VUPzszfsv1g/gNI+u6P+7iPex+ey5d/+Ze/NfBT/O+CvvzLv9z8L2T7Yz7hEz7hq/kP9FVf9VUPzszfsv1g/n3++uM//uNfhhfgK77iK77K9kfzvwf68i//cvO/jKSv/riP+7iP4T/BV33VVz04M3/L9oP5N5B0a0S8zMd8zMfs8gJ81Vd91fHW2m8BL83/DujLv/zLzf8uf/3xH//xL8N/oi/90i996Yj4rYDjXPW/BfryL/9y87+UpFsj4mU+5mM+Zpd/gy/7si97bUmfBbz0/yFJXx0Rn/MxH/MxuwBf+qVf+tIR8VvAca763wJ9+Zd/uflfStKtEfEyH/MxH7PLv8GXfdmXvbakzwJemv8gd0v6adunba8dkb4BeG2u+t8CffmXf7l5gVpr/2rbD5b0VVz1v4Wk78vM75H0u8Bb89+A/gL4YCQ9ICJ+PTPf5WM+5mN28QLZPp2Zn5mZH5KZ35OZ35OZfxsRj7f9/q21x4+Ix0fE4yLizjvPfIqkb+Oq/+kQcGr72RH5+bZ/NTPfPiLeIiLeJCIeHxFvmJk/lpk/kJmvyVUvHER3Z+YbmNcrM98jIr4nIn4yIn4pIn4lIn4lIn4573HLX/7lX27gQVz1Px3amvteZn5TZv5qRHx7RPxMRLxpZn5IZj4sM98qM9+6tfbw1tpjIuK1IuKBmfnAiHiNiHhARDwgIh4QEffPzHtHxANaa/eKiHtExD0i4p4RcU9Jj5Z0t6RHSbpN0q2SbpN0W0TcFhG3RcRf8x63fPmXf3lz1f90iDgzD63M/S0i3iQifiAifj0ivi4iHp2Zb5+Zb5GZb5KZb5KZb5KZb5CZr5+Zr5eZr5WZr5mZr5GZr5GZr5GZr5GZD4qI10j/N9Ijk/TI9D+RHiHpEZIeIemRERFmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmYmd3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d1dVVVVVVZmZkZGRLi7m5kKz0xmV3d1d3dPz8zMzMxMong+vuzLvuy1I+KtgLe2fRw4zlX/l+0Ct0r6a9s/8/Ef//E/zXNCPMBXfdVXPbi19l3Aa3PV/2e/XUp5n4/5mI+5lSsQz/SlX/qlLx0RvwUc56r/9yTd2lp7m0/8xE/8awABfNVXfdWDM/O3bD+Yq656tt1Syst8zMd8zK0C+PIv//LfAl6bq656Xr/98R//8a+jL//yL39r4Ke46qoXwPbr6Cu+4iu+y/Z7c9VVL4CkW/XlX/7lfxXw0lx11Qsg6VZ9+Zd/+UXgOFdd9YLt6su//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81/sB8+4AM+4H1ba2/KVf/XkfTlH/dxH/ewiHhnrnqBbr311k981Ed91K2SXpur/q8j6cs/7uM+7mER8c5c9QLT13/9139yRLy1pNfmqv/rSPqyj/u4j/v/AEmvzVX/fyXpZVtrb8lV/1dprb05V1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddV/gP8BZBMckFPBhsAAAAASUVORK5CYII=",rf=["alt"],af=["src","width"],lf=l.defineComponent({__name:"index",props:{src:{type:String,required:!0},alt:{type:String,default:""},width:{type:String,default:void 0},height:{type:String,default:void 0},bg:{type:Boolean,default:!1}},setup(t){const e=t,n=l.ref(),i=l.ref(),s=l.ref(!1),o=l.ref(!1),r=l.ref(null);l.onMounted(()=>{if(!n.value)return;const u=new IntersectionObserver(f=>{f.forEach(p=>{if(p.isIntersecting){const h=p.target;h.src=e.src,h.onload=()=>{s.value=!0,u.unobserve(h)},h.onerror=()=>{o.value=!0,u.unobserve(h)}}})},{rootMargin:"0px",threshold:.1});r.value=u,u.observe(n.value)}),l.onUnmounted(()=>{var u;(u=r.value)==null||u.disconnect()});const a=l.computed(()=>{const u={};return e.width&&(u.width=e.width),e.height&&(u.height=e.height),e.bg&&(u.backgroundColor="#e6e7e8"),u}),c=l.computed(()=>{const u={};return e.width&&(u.width=e.width),e.height&&(u.height=e.height),u}),d=l.computed(()=>{var h,m;const u=(h=i.value)==null?void 0:h.offsetWidth,f=(m=i.value)==null?void 0:m.offsetHeight;return!u||!f?"100":`${Math.min(u,f)*.4}`});return(u,f)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"parentRef",ref:i,class:l.normalizeClass(`lazy-image ${!e.width&&!e.height?"auto-size":""}`),style:l.normalizeStyle(a.value)},[l.createElementVNode("img",{ref_key:"imgRef",ref:n,class:l.normalizeClass(["content-img",{loaded:s.value,error:o.value}]),alt:t.alt,style:l.normalizeStyle(c.value)},null,14,rf),l.createElementVNode("img",{class:"fallback",src:l.unref(Br),alt:"fallback",width:d.value},null,8,af)],6))}}),le=U(lf,[["__scopeId","data-v-d0696b52"]]),cf=["loop","autoplay","muted","controls","controlslist"],uf=["src","width"],df=l.defineComponent({__name:"index",props:{src:{type:String,required:!0},width:{type:String,default:void 0},height:{type:String,default:void 0},loop:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},controls:{type:Boolean,default:!1},controlslist:{type:String,default:"nodownload"},bg:{type:Boolean,default:!1}},setup(t){const e=t,n=l.ref(),i=l.ref(),s=l.ref(!1),o=l.ref(!1),r=l.ref(null);l.onMounted(()=>{if(!n.value)return;const u=new IntersectionObserver(f=>{f.forEach(p=>{if(p.isIntersecting){const h=p.target;h.src=e.src,h.onloadeddata=()=>{s.value=!0,h.autoplay&&h.play()},h.onerror=()=>{o.value=!0},u.unobserve(h)}})},{rootMargin:"0px",threshold:.1});r.value=u,u.observe(n.value)}),l.onUnmounted(()=>{var u;(u=r.value)==null||u.disconnect()});const a=l.computed(()=>{const u={};return e.width&&(u.width=e.width),e.height&&(u.height=e.height),e.bg&&(u.backgroundColor="#e6e7e8"),u}),c=l.computed(()=>{const u={};return e.width&&(u.width=e.width),e.height&&(u.height=e.height),u}),d=l.computed(()=>{var h,m;const u=(h=i.value)==null?void 0:h.offsetWidth,f=(m=i.value)==null?void 0:m.offsetHeight;return!u||!f?"100":`${Math.min(u,f)*.4}`});return(u,f)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(`lazy-video ${!e.width&&!e.height?"auto-size":""}`),style:l.normalizeStyle(a.value)},[l.createElementVNode("video",{ref_key:"videoRef",ref:n,class:l.normalizeClass(["content-video",{loaded:s.value,error:o.value}]),preload:"metadata",loop:t.loop,autoplay:t.autoplay,style:l.normalizeStyle(c.value),muted:t.autoplay||t.muted,controls:t.controls,controlslist:t.controlslist},null,14,cf),l.createElementVNode("img",{class:"fallback",src:l.unref(Br),alt:"fallback",width:d.value},null,8,uf)],6))}}),ve=U(df,[["__scopeId","data-v-e5a9b253"]]);function Ye(t){if(!t)return"";const e=t.split(".").pop().split("?")[0].split("#")[0].toLowerCase(),n=["jpg","jpeg","png","gif","bmp","webp","svg","ico"],i=["mp4","webm","ogg","mov","avi","mkv","flv","wmv","m3u8"];return n.includes(e)?"image":i.includes(e)?"video":"other"}function ff(t){try{const e=new URL(t),n=decodeURIComponent(e.pathname),i=n.substring(n.lastIndexOf("/")+1);return i&&i!=="."&&i!==".."?i:""}catch{return""}}const pf={key:0,class:"placeholder"},hf={key:1,class:"placeholder"},mf={key:2},vf={key:3},gf=l.defineComponent({name:"FMediaV2",__name:"FMedia",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Oe(e.config),i=l.computed(()=>Ye(e.config.src));return(s,o)=>(l.openBlock(),l.createElementBlock("div",{class:"media_v2",style:l.normalizeStyle(l.unref(n))},[l.createVNode(l.unref(Pe),{is:"div",class:"m-auto w-1200",initial:l.unref(O).initial,transition:l.unref(O).transition,"in-view":l.unref(O).whileInView,"in-view-options":l.unref(O).viewport},{default:l.withCtx(()=>[i.value?i.value==="other"?(l.openBlock(),l.createElementBlock("div",hf," 不支持的文件类型 ")):i.value==="image"?(l.openBlock(),l.createElementBlock("div",mf,[l.createVNode(le,{src:e.config.src},null,8,["src"])])):i.value==="video"?(l.openBlock(),l.createElementBlock("div",vf,[l.createVNode(ve,{src:e.config.src,controls:""},null,8,["src"])])):l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",pf," 请选择媒体文件 "))]),_:1},8,["initial","transition","in-view","in-view-options"])],4))}}),Lr=U(gf,[["__scopeId","data-v-27fc89c7"]]),yf={class:"editable-table"},wf={key:0,class:"toolbar"},Sf={class:"empty-hint"},bf={class:"table-wrap"},Tf={key:0},xf=["rowspan","colspan"],Ef={class:"cell-content csr-v2-description"},Vf=["onUpdate:modelValue"],Pf=["onClick"],Mf=l.defineComponent({__name:"EditableTable",props:{modelValue:{},mode:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,i=e,s=l.ref(),o=l.ref(5),r=l.ref(3),a=l.ref(!1),c=l.reactive({hasHeader:!0,colWidths:[],rows:[]});l.watch(()=>n.modelValue,v=>{v&&(c.hasHeader=v.hasHeader,c.colWidths=[...v.colWidths],c.rows=v.rows.map(y=>y.map(g=>({...g}))))},{immediate:!0});function d(){i("update:modelValue",{hasHeader:c.hasHeader,colWidths:[...c.colWidths],rows:c.rows.map(v=>v.map(y=>({...y})))})}function u(){c.hasHeader=!0,c.colWidths=Array(r.value).fill(null),c.rows=Array.from({length:o.value},(v,y)=>Array.from({length:r.value},(g,S)=>f(y,S))),a.value=!0,d()}function f(v,y){return{id:`cell-${v}-${y}`,content:"",rowspan:1,colspan:1,hidden:!1,align:"center",vAlign:"middle",bgColor:""}}function p(){var S;const v=c.rows.length,y=((S=c.rows[0])==null?void 0:S.length)||1,g=Array.from({length:y},(b,E)=>f(v,E));c.rows.push(g),d()}function h(){var y;const v=((y=c.rows[0])==null?void 0:y.length)||0;c.colWidths.push(null),c.rows.forEach((g,S)=>{g.push(f(S,v))}),d()}function m(v){var y;(((y=c.rows[0])==null?void 0:y.length)||0)<=1||(c.colWidths.splice(v,1),c.rows.forEach(g=>{g.splice(v,1)}),d())}return l.onMounted(()=>{n.modelValue||u()}),(v,y)=>(l.openBlock(),l.createElementBlock("div",yf,[t.mode==="edit"?(l.openBlock(),l.createElementBlock("div",wf,[l.createElementVNode("button",{class:"toolbar-btn",onClick:p},"+ 行"),l.createElementVNode("button",{class:"toolbar-btn",onClick:h},"+ 列")])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",Sf," 暂无数据 ",512),[[l.vShow,!a.value&&!n.modelValue]]),l.createElementVNode("div",bf,[l.createElementVNode("table",{ref_key:"tableRef",ref:s,class:"data-table"},[l.createElementVNode("colgroup",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.colWidths,(g,S)=>(l.openBlock(),l.createElementBlock("col",{key:S,style:l.normalizeStyle(g?{width:g+"px"}:void 0)},null,4))),128))]),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.rows,(g,S)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:S},[g.some(b=>!b.hidden)?(l.openBlock(),l.createElementBlock("tr",Tf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(g,(b,E)=>l.withDirectives((l.openBlock(),l.createElementBlock("td",{key:b.id,rowspan:b.rowspan,colspan:b.colspan,style:l.normalizeStyle({textAlign:b.align,verticalAlign:b.vAlign,backgroundColor:b.bgColor||void 0}),class:"data-cell"},[l.createElementVNode("div",Ef,[t.mode==="edit"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":w=>b.content=w,class:"cell-input",onInput:d},null,40,Vf),[[l.vModelText,b.content]]),l.createElementVNode("button",{class:"cell-remove",onClick:l.withModifiers(w=>m(E),["stop"])},"x",8,Pf)],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(b.content),1)],64))])],12,xf)),[[l.vShow,!b.hidden]])),128))])):l.createCommentVNode("",!0)],64))),128))])],512)])]))}}),kr=U(Mf,[["__scopeId","data-v-d40a6502"]]),Cf={class:"modal-container"},Af={class:"modal-body"},Bf=l.defineComponent({__name:"TableDesignModal",props:{modelValue:{default:void 0},modelModifiers:{}},emits:["update:modelValue"],setup(t,{expose:e}){const n=l.useModel(t,"modelValue"),i=l.reactive({visible:!1});function s(){i.visible=!0}function o(){i.visible=!1}function r(){n.value&&(n.value.hasHeader=!n.value.hasHeader)}function a(){n.value=void 0}return e({open:s}),(c,d)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[i.visible?(l.openBlock(),l.createElementBlock("div",{key:0,class:"modal-overlay",onClick:l.withModifiers(o,["self"])},[l.createElementVNode("div",Cf,[l.createElementVNode("div",{class:"modal-header"},[d[1]||(d[1]=l.createElementVNode("span",{class:"modal-title"},"编辑表格",-1)),l.createElementVNode("button",{class:"close-btn",onClick:o},"×")]),l.createElementVNode("div",Af,[l.createVNode(kr,{modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=u=>n.value=u),mode:"edit"},null,8,["modelValue"])]),l.createElementVNode("div",{class:"modal-footer"},[l.createElementVNode("button",{class:"btn btn-secondary",onClick:r},"切换表头"),l.createElementVNode("button",{class:"btn btn-danger",onClick:a},"重置"),l.createElementVNode("button",{class:"btn btn-primary",onClick:o},"完成")])])])):l.createCommentVNode("",!0)]))}}),Lf=U(Bf,[["__scopeId","data-v-db916ab0"]]);var yn=(t=>(t.EDIT="edit",t.VIEW="view",t))(yn||{});const kf={class:"dynamic-table"},Hn=l.defineComponent({__name:"index",props:l.mergeModels({mode:{}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:e}){const n=t,i=l.useModel(t,"modelValue"),s=l.useTemplateRef("tableDesignModal");function o(){var r;n.mode===yn.EDIT&&((r=s.value)==null||r.open())}return e({edit:o}),(r,a)=>(l.openBlock(),l.createElementBlock("div",kf,[t.mode===l.unref(yn).EDIT?(l.openBlock(),l.createBlock(Lf,{key:0,ref:"tableDesignModal",modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=c=>i.value=c)},null,8,["modelValue"])):(l.openBlock(),l.createBlock(kr,{key:1,modelValue:i.value,"onUpdate:modelValue":a[1]||(a[1]=c=>i.value=c),"is-edit":!1},null,8,["modelValue"]))]))}}),_f={class:"hs-tab-pane-wrapper"},Wn=l.defineComponent({name:"HsTabPane",__name:"HsTabPane",props:{name:{type:String,required:!0},label:{type:String,required:!0},forceRender:{type:Boolean,default:!0}},setup(t){const e=t,n=l.inject("TabsContext");if(!n)throw new Error("TabPane must be used inside Tabs component");const i=l.computed(()=>n.value.activeKey===e.name);return l.onMounted(()=>{n.value.registerPane({name:e.name,label:e.label,forceRender:!!e.forceRender})}),l.watch(()=>e.label,s=>{n.value.updatePaneLabel(e.name,s)}),l.onUnmounted(()=>{n.value.unregisterPane(e.name)}),(s,o)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",_f,[l.createVNode(l.unref(tf),{mode:"wait"},{default:l.withCtx(()=>[i.value?(l.openBlock(),l.createBlock(l.unref(Pe),{is:"div",key:e.name,tag:"div",initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{duration:.6,ease:"easeOut"},class:"wrapper-content"},{default:l.withCtx(()=>[e.forceRender?(l.openBlock(),l.createBlock(l.KeepAlive,{key:0},[l.renderSlot(s.$slots,"default")],1024)):l.renderSlot(s.$slots,"default",{key:1})]),_:3})):l.createCommentVNode("",!0)]),_:3})],512)),[[l.vShow,i.value]])}}),Df={class:"hs-tab"},If={class:"tab-header"},Of=["onClick"],zf=l.defineComponent({name:"HsTab",__name:"index",props:l.mergeModels({contentHeight:{type:String,default:"440px"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=l.useModel(t,"modelValue"),n=l.ref([]),i=l.computed(()=>({activeKey:e.value||"",registerPane:r=>{n.value.some(a=>a.name===r.name)||n.value.push(r)},unregisterPane:r=>{n.value=n.value.filter(a=>a.name!==r)},updatePaneLabel:(r,a)=>{const c=n.value.find(d=>d.name===r);c&&(c.label=a)}}));l.provide("TabsContext",i);function s(r){e.value=r}function o(){var a;const r=(a=n.value[0])==null?void 0:a.name;r&&(e.value=r)}return l.nextTick(()=>{e.value||o()}),(r,a)=>(l.openBlock(),l.createElementBlock("div",Df,[l.createElementVNode("div",If,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,c=>(l.openBlock(),l.createElementBlock("div",{key:c.name,class:l.normalizeClass(["tab-header-item csr-v2-text",{active:e.value===c.name}]),onClick:l.withModifiers(d=>s(c.name),["stop"])},l.toDisplayString(c.label),11,Of))),128))]),l.createElementVNode("div",{class:"tab-container",style:l.normalizeStyle({height:t.contentHeight})},[l.renderSlot(r.$slots,"default",{},void 0,!0)],4)]))}}),Kn=U(zf,[["__scopeId","data-v-5f5a92ca"]]),Rf=["width","height"],Nf=["stroke"],Ff=l.defineComponent({__name:"IconClose",props:{color:{type:String,default:"#333"},size:{type:String,default:"24"}},setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t.size,height:t.size,fill:"none"},[l.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12",stroke:t.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Nf)],8,Rf))}}),jf=["width","height"],$f=["fill","fill-opacity"],qn=l.defineComponent({__name:"Left",props:{color:{type:String,default:"white"},opacity:{type:String,default:"0.9"},size:{type:String,default:"24"}},setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M14.3095 5.31006L15.6884 6.68892L10.3778 11.9995L15.6884 17.3101L14.3095 18.6889L7.62012 11.9995L14.3095 5.31006Z",fill:t.color,"fill-opacity":t.opacity},null,8,$f)],8,jf))}}),Zf=["width","height"],Gf=["fill","fill-opacity"],Yn=l.defineComponent({__name:"Right",props:{color:{type:String,default:"white"},opacity:{type:String,default:"0.9"},size:{type:String,default:"24"}},setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M9.69045 5.31006L8.3116 6.68892L13.6222 11.9995L8.3116 17.3101L9.69045 18.6889L16.3799 11.9995L9.69045 5.31006Z",fill:t.color,"fill-opacity":t.opacity},null,8,Gf)],8,Zf))}}),Xf={class:"modal-mask"},Uf={class:"modal-header"},Hf={class:"file-name csr-v2-description"},Wf={class:"modal-body"},Kf=l.defineComponent({name:"PreviewModal",__name:"PreviewModal",props:{defaultUrl:{type:String,default:""},urlList:{type:Array,default:()=>[]}},setup(t,{expose:e}){const n=t,i=l.ref(),s=l.reactive({visible:!1,innerUrl:"",zIndex:0}),o=l.computed(()=>Ye(s.innerUrl)),r=l.computed(()=>ff(s.innerUrl)),a=l.computed(()=>n.urlList.indexOf(s.innerUrl)>0),c=l.computed(()=>n.urlList.indexOf(s.innerUrl)<n.urlList.length-1);function d(m){s.innerUrl=m,s.visible=!0}function u(){s.visible=!1}function f(){const m=n.urlList.indexOf(s.innerUrl);m>0&&(s.innerUrl=n.urlList[m-1])}function p(){const m=n.urlList.indexOf(s.innerUrl);m<n.urlList.length-1&&(s.innerUrl=n.urlList[m+1])}function h(m){m.target===i.value&&u()}return e({open:d}),(m,v)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[s.visible?(l.openBlock(),l.createElementBlock("div",{key:0,ref_key:"modalRef",ref:i,class:"preview-modal",onClick:l.withModifiers(h,["self"])},[l.createElementVNode("div",Xf,[l.createElementVNode("div",Uf,[l.createElementVNode("span",Hf,l.toDisplayString(r.value),1),l.createVNode(Ff,{color:"white",size:"32",onClick:u})]),l.createElementVNode("div",Wf,[a.value?(l.openBlock(),l.createElementBlock("button",{key:0,class:"nav-btn prev",onClick:f},[l.createVNode(qn,{size:"36",color:"white",opacity:"1"})])):l.createCommentVNode("",!0),c.value?(l.openBlock(),l.createElementBlock("button",{key:1,class:"nav-btn next",onClick:p},[l.createVNode(Yn,{size:"36",color:"white",opacity:"1"})])):l.createCommentVNode("",!0),o.value==="image"?(l.openBlock(),l.createBlock(le,{key:2,src:s.innerUrl,width:"auto",height:"auto"},null,8,["src"])):o.value==="video"?(l.openBlock(),l.createBlock(ve,{key:3,src:s.innerUrl,controls:"",autoplay:!0},null,8,["src"])):l.createCommentVNode("",!0)])])],512)):l.createCommentVNode("",!0)]))}}),qf=U(Kf,[["__scopeId","data-v-68aaa9c5"]]),Yf=["width","height"],Jf={id:"clipPath_0"},Qf=["fill"],ep={id:"容器 43","clip-path":"url(#clipPath_0)"},tp=["fill"],np=l.defineComponent({__name:"Enlarge",props:{color:{type:String,default:"white"},size:{type:String,default:"24"}},setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32",width:t.size,height:t.size,fill:"none"},[l.createElementVNode("defs",null,[l.createElementVNode("clipPath",Jf,[l.createElementVNode("rect",{width:"24.000000",height:"24.000000",x:"4.000000",y:"4.000000",fill:t.color},null,8,Qf)])]),n[1]||(n[1]=l.createElementVNode("rect",{id:"容器 62",width:"32.000000",height:"32.000000",x:"0.000000",y:"0.000000"},null,-1)),l.createElementVNode("g",ep,[n[0]||(n[0]=l.createElementVNode("rect",{id:"容器 43",width:"24.000000",height:"24.000000",x:"4.000000",y:"4.000000"},null,-1)),l.createElementVNode("path",{id:"fullsreen",d:"M9 14.7273L10.2727 14.7273L10.2727 11.1727L14.2773 15.1773L15.1773 14.2773L11.1727 10.2727L14.7273 10.2727L14.7273 9L9.28078 9C9.12572 9 9 9.12572 9 9.28078L9 14.7273ZM23 17.2727L21.7273 17.2727L21.7273 20.8273L17.7227 16.8227L16.8228 17.7227L20.8273 21.7272L17.2727 21.7272L17.2727 23L22.7192 23C22.8743 23 23 22.8743 23 22.7192L23 17.2727Z",fill:t.color,"fill-rule":"evenodd"},null,8,tp)])],8,Yf))}}),ip={class:"preview-media"},sp={key:0,class:"placeholder csr-v2-description"},op={key:1,class:"placeholder csr-v2-description"},rp={key:2,class:"media-content"},ap={class:"handle-content"},lp=l.defineComponent({name:"PreviewMedia",__name:"index",props:{src:{type:String,default:""},previewList:{type:Array,default:()=>[]}},setup(t){const e=t,n=l.ref(),i=l.computed(()=>Ye(e.src)),s=l.computed(()=>["image","video"].includes(i.value));function o(){var r;(r=n.value)==null||r.open(e.src)}return(r,a)=>(l.openBlock(),l.createElementBlock("div",ip,[i.value?i.value==="other"?(l.openBlock(),l.createElementBlock("div",op," 不支持的文件类型 ")):(l.openBlock(),l.createElementBlock("div",rp,[i.value==="image"?(l.openBlock(),l.createBlock(le,{key:0,src:e.src},null,8,["src"])):i.value==="video"?(l.openBlock(),l.createBlock(ve,{key:1,src:e.src,controls:!1},null,8,["src"])):l.createCommentVNode("",!0)])):(l.openBlock(),l.createElementBlock("div",sp," 请选择媒体文件 ")),s.value?(l.openBlock(),l.createElementBlock("div",{key:3,class:"preview-handle csr-v2-text",onClick:l.withModifiers(o,["stop"])},[l.createElementVNode("div",ap,[a[0]||(a[0]=l.createElementVNode("span",null,"点击放大",-1)),l.createVNode(np,{size:"32"})])])):l.createCommentVNode("",!0),l.createVNode(qf,{ref_key:"previewModalRef",ref:n,"default-url":e.src,"url-list":t.previewList},null,8,["default-url","url-list"])]))}}),Jn=U(lp,[["__scopeId","data-v-d92d483c"]]),cp={key:0,class:"text-media-content"},up={class:"string-content"},dp={class:"text csr-v2-tab"},fp={class:"media-content"},pp={key:1,class:"only-media-content"},hp={key:2,class:"table-container"},mp={class:"table-tips"},vp=["innerHTML"],gp=l.defineComponent({name:"FTabTextMediaV2",__name:"FTabTextMedia",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Oe(e.config),i=l.ref(""),s=l.computed(()=>{const o=e.config.items;return o?o.filter(r=>[be.TEXT_MEDIA,be.MEDIA].includes(r.contentType)&&r.src!==void 0).map(r=>r.src):[]});return(o,r)=>(l.openBlock(),l.createElementBlock("div",{class:"tab-text-media_v2",style:l.normalizeStyle(l.unref(n))},[l.createVNode(l.unref(Pe),{is:"div",class:"m-auto w-1200",initial:l.unref(O).initial,transition:l.unref(O).transition,"in-view":l.unref(O).whileInView,"in-view-options":l.unref(O).viewport},{default:l.withCtx(()=>[l.createVNode(Kn,{modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=a=>i.value=a),"content-height":e.config.contentHeight},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.config.items,(a,c)=>(l.openBlock(),l.createBlock(Wn,{key:c,name:`${c}`,label:a.tabLabel},{default:l.withCtx(()=>[a.contentType===l.unref(be).TEXT_MEDIA?(l.openBlock(),l.createElementBlock("div",cp,[l.createElementVNode("div",up,[l.withDirectives(l.createElementVNode("div",{class:"title csr-v2-title-tab"},l.toDisplayString(a.title),513),[[l.vShow,a.title]]),l.withDirectives(l.createElementVNode("div",dp,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.text.split(`
14
- `)||[],(d,u)=>(l.openBlock(),l.createElementBlock("div",{key:u},l.toDisplayString(d),1))),128))],512),[[l.vShow,a.text]]),l.withDirectives(l.createElementVNode("div",{class:"description csr-v2-description"},l.toDisplayString(a.description),513),[[l.vShow,a.description]])]),l.createElementVNode("div",fp,[l.createVNode(Jn,{src:a.src,"preview-list":s.value},null,8,["src","preview-list"])])])):a.contentType===l.unref(be).MEDIA?(l.openBlock(),l.createElementBlock("div",pp,[a.src?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.unref(Ye)(a.src)==="image"?(l.openBlock(),l.createBlock(le,{key:0,src:a.src},null,8,["src"])):l.createCommentVNode("",!0),l.unref(Ye)(a.src)==="video"?(l.openBlock(),l.createBlock(ve,{key:1,src:a.src,controls:""},null,8,["src"])):l.createCommentVNode("",!0)],64)):l.createCommentVNode("",!0)])):a.contentType===l.unref(be).TABLE?(l.openBlock(),l.createElementBlock("div",hp,[l.createVNode(Hn,{modelValue:a.tableData,"onUpdate:modelValue":d=>a.tableData=d,mode:"view"},null,8,["modelValue","onUpdate:modelValue"]),l.withDirectives(l.createElementVNode("div",mp,[l.createElementVNode("div",{innerHTML:a.tip},null,8,vp)],512),[[l.vShow,!!a.tip]])])):l.createCommentVNode("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue","content-height"])]),_:1},8,["initial","transition","in-view","in-view-options"])],4))}}),_r=U(gp,[["__scopeId","data-v-fe347521"]]);function _s(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Qn(t,e){t===void 0&&(t={}),e===void 0&&(e={});const n=["__proto__","constructor","prototype"];Object.keys(e).filter(i=>n.indexOf(i)<0).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:_s(e[i])&&_s(t[i])&&Object.keys(e[i]).length>0&&Qn(t[i],e[i])})}const Dr={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ne(){const t=typeof document<"u"?document:{};return Qn(t,Dr),t}const yp={document:Dr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function H(){const t=typeof window<"u"?window:{};return Qn(t,yp),t}function wp(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Sp(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function Ir(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Mt(){return Date.now()}function bp(t){const e=H();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function Tp(t,e){e===void 0&&(e="x");const n=H();let i,s,o;const r=bp(t);return n.WebKitCSSMatrix?(s=r.transform||r.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(a=>a.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(s==="none"?"":s)):(o=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=o.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?s=o.m41:i.length===16?s=parseFloat(i[12]):s=parseFloat(i[4])),e==="y"&&(n.WebKitCSSMatrix?s=o.m42:i.length===16?s=parseFloat(i[13]):s=parseFloat(i[5])),s||0}function ut(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function xp(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function W(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(i!=null&&!xp(i)){const s=Object.keys(Object(i)).filter(o=>e.indexOf(o)<0);for(let o=0,r=s.length;o<r;o+=1){const a=s[o],c=Object.getOwnPropertyDescriptor(i,a);c!==void 0&&c.enumerable&&(ut(t[a])&&ut(i[a])?i[a].__swiper__?t[a]=i[a]:W(t[a],i[a]):!ut(t[a])&&ut(i[a])?(t[a]={},i[a].__swiper__?t[a]=i[a]:W(t[a],i[a])):t[a]=i[a])}}}return t}function dt(t,e,n){t.style.setProperty(e,n)}function Or(t){let{swiper:e,targetPosition:n,side:i}=t;const s=H(),o=-e.translate;let r=null,a;const c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const d=n>o?"next":"prev",u=(p,h)=>d==="next"&&p>=h||d==="prev"&&p<=h,f=()=>{a=new Date().getTime(),r===null&&(r=a);const p=Math.max(Math.min((a-r)/c,1),0),h=.5-Math.cos(p*Math.PI)/2;let m=o+h*(n-o);if(u(m,n)&&(m=n),e.wrapperEl.scrollTo({[i]:m}),u(m,n)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:m})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(f)};f()}function oe(t,e){e===void 0&&(e="");const n=H(),i=[...t.children];return n.HTMLSlotElement&&t instanceof HTMLSlotElement&&i.push(...t.assignedElements()),e?i.filter(s=>s.matches(e)):i}function Ep(t,e){const n=[e];for(;n.length>0;){const i=n.shift();if(t===i)return!0;n.push(...i.children,...i.shadowRoot?i.shadowRoot.children:[],...i.assignedElements?i.assignedElements():[])}}function Vp(t,e){const n=H();let i=e.contains(t);return!i&&n.HTMLSlotElement&&e instanceof HTMLSlotElement&&(i=[...e.assignedElements()].includes(t),i||(i=Ep(t,e))),i}function Ct(t){try{console.warn(t);return}catch{}}function wn(t,e){e===void 0&&(e=[]);const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:wp(e)),n}function Pp(t,e){const n=[];for(;t.previousElementSibling;){const i=t.previousElementSibling;e?i.matches(e)&&n.push(i):n.push(i),t=i}return n}function Mp(t,e){const n=[];for(;t.nextElementSibling;){const i=t.nextElementSibling;e?i.matches(e)&&n.push(i):n.push(i),t=i}return n}function ue(t,e){return H().getComputedStyle(t,null).getPropertyValue(e)}function Ds(t){let e=t,n;if(e){for(n=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(n+=1);return n}}function Cp(t,e){const n=[];let i=t.parentElement;for(;i;)n.push(i),i=i.parentElement;return n}function Is(t,e,n){const i=H();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function Os(t,e){e===void 0&&(e=""),typeof trustedTypes<"u"?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(e):t.innerHTML=e}function zr(t){let{swiper:e,extendParams:n,on:i,emit:s,params:o}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let r,a,c=o&&o.autoplay?o.autoplay.delay:3e3,d=o&&o.autoplay?o.autoplay.delay:3e3,u,f=new Date().getTime(),p,h,m,v,y,g,S;function b(A){!e||e.destroyed||!e.wrapperEl||A.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",b),!(S||A.detail&&A.detail.bySwiperTouchMove)&&V())}const E=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?p=!0:p&&(d=u,p=!1);const A=e.autoplay.paused?u:f+d-new Date().getTime();e.autoplay.timeLeft=A,s("autoplayTimeLeft",A,A/c),a=requestAnimationFrame(()=>{E()})},w=()=>{let A;return e.virtual&&e.params.virtual.enabled?A=e.slides.find(j=>j.classList.contains("swiper-slide-active")):A=e.slides[e.activeIndex],A?parseInt(A.getAttribute("data-swiper-autoplay"),10):void 0},P=A=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),E();let R=typeof A>"u"?e.params.autoplay.delay:A;c=e.params.autoplay.delay,d=e.params.autoplay.delay;const j=w();!Number.isNaN(j)&&j>0&&typeof A>"u"&&(R=j,c=j,d=j),u=R;const J=e.params.speed,ye=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(J,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,J,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(J,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,J,!0,!0),s("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return R>0?(clearTimeout(r),r=setTimeout(()=>{ye()},R)):requestAnimationFrame(()=>{ye()}),R},M=()=>{f=new Date().getTime(),e.autoplay.running=!0,P(),s("autoplayStart")},x=()=>{e.autoplay.running=!1,clearTimeout(r),cancelAnimationFrame(a),s("autoplayStop")},T=(A,R)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(r),A||(g=!0);const j=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",b):V()};if(e.autoplay.paused=!0,R){y&&(u=e.params.autoplay.delay),y=!1,j();return}u=(u||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&u<0&&!e.params.loop)&&(u<0&&(u=0),j())},V=()=>{e.isEnd&&u<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),g?(g=!1,P(u)):P(),e.autoplay.paused=!1,s("autoplayResume"))},C=()=>{if(e.destroyed||!e.autoplay.running)return;const A=ne();A.visibilityState==="hidden"&&(g=!0,T(!0)),A.visibilityState==="visible"&&V()},L=A=>{A.pointerType==="mouse"&&(g=!0,S=!0,!(e.animating||e.autoplay.paused)&&T(!0))},D=A=>{A.pointerType==="mouse"&&(S=!1,e.autoplay.paused&&V())},q=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",L),e.el.addEventListener("pointerleave",D))},Y=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",L),e.el.removeEventListener("pointerleave",D))},k=()=>{ne().addEventListener("visibilitychange",C)},_=()=>{ne().removeEventListener("visibilitychange",C)};i("init",()=>{e.params.autoplay.enabled&&(q(),k(),M())}),i("destroy",()=>{Y(),_(),e.autoplay.running&&x()}),i("_freeModeStaticRelease",()=>{(m||g)&&V()}),i("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?x():T(!0,!0)}),i("beforeTransitionStart",(A,R,j)=>{e.destroyed||!e.autoplay.running||(j||!e.params.autoplay.disableOnInteraction?T(!0,!0):x())}),i("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){x();return}h=!0,m=!1,g=!1,v=setTimeout(()=>{g=!0,m=!0,T(!0)},200)}}),i("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!h)){if(clearTimeout(v),clearTimeout(r),e.params.autoplay.disableOnInteraction){m=!1,h=!1;return}m&&e.params.cssMode&&V(),m=!1,h=!1}}),i("slideChange",()=>{e.destroyed||!e.autoplay.running||(y=!0)}),Object.assign(e.autoplay,{start:M,stop:x,pause:T,resume:V})}let Kt;function Ap(){const t=H(),e=ne();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Rr(){return Kt||(Kt=Ap()),Kt}let qt;function Bp(t){let{userAgent:e}=t===void 0?{}:t;const n=Rr(),i=H(),s=i.navigator.platform,o=e||i.navigator.userAgent,r={ios:!1,android:!1},a=i.screen.width,c=i.screen.height,d=o.match(/(Android);?[\s\/]+([\d.]+)?/);let u=o.match(/(iPad).*OS\s([\d_]+)/);const f=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let m=s==="MacIntel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&m&&n.touch&&v.indexOf(`${a}x${c}`)>=0&&(u=o.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),m=!1),d&&!h&&(r.os="android",r.android=!0),(u||p||f)&&(r.os="ios",r.ios=!0),r}function Nr(t){return t===void 0&&(t={}),qt||(qt=Bp(t)),qt}let Yt;function Lp(){const t=H(),e=Nr();let n=!1;function i(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(i()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[c,d]=a.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));n=c<16||c===16&&d<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=i(),r=o||s&&e.ios;return{isSafari:n||o,needPerspectiveFix:n,need3dFix:r,isWebView:s}}function Fr(){return Yt||(Yt=Lp()),Yt}function kp(t){let{swiper:e,on:n,emit:i}=t;const s=H();let o=null,r=null;const a=()=>{!e||e.destroyed||!e.initialized||(i("beforeResize"),i("resize"))},c=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(f=>{r=s.requestAnimationFrame(()=>{const{width:p,height:h}=e;let m=p,v=h;f.forEach(y=>{let{contentBoxSize:g,contentRect:S,target:b}=y;b&&b!==e.el||(m=S?S.width:(g[0]||g).inlineSize,v=S?S.height:(g[0]||g).blockSize)}),(m!==p||v!==h)&&a()})}),o.observe(e.el))},d=()=>{r&&s.cancelAnimationFrame(r),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},u=()=>{!e||e.destroyed||!e.initialized||i("orientationchange")};n("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){c();return}s.addEventListener("resize",a),s.addEventListener("orientationchange",u)}),n("destroy",()=>{d(),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",u)})}function _p(t){let{swiper:e,extendParams:n,on:i,emit:s}=t;const o=[],r=H(),a=function(u,f){f===void 0&&(f={});const p=r.MutationObserver||r.WebkitMutationObserver,h=new p(m=>{if(e.__preventObserver__)return;if(m.length===1){s("observerUpdate",m[0]);return}const v=function(){s("observerUpdate",m[0])};r.requestAnimationFrame?r.requestAnimationFrame(v):r.setTimeout(v,0)});h.observe(u,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:e.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),o.push(h)},c=()=>{if(e.params.observer){if(e.params.observeParents){const u=Cp(e.hostEl);for(let f=0;f<u.length;f+=1)a(u[f])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},d=()=>{o.forEach(u=>{u.disconnect()}),o.splice(0,o.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",c),i("destroy",d)}var Dp={on(t,e,n){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;const s=n?"unshift":"push";return t.split(" ").forEach(o=>{i.eventsListeners[o]||(i.eventsListeners[o]=[]),i.eventsListeners[o][s](e)}),i},once(t,e,n){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;function s(){i.off(t,s),s.__emitterProxy&&delete s.__emitterProxy;for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];e.apply(i,r)}return s.__emitterProxy=e,i.on(t,s,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const i=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[i](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(i=>{typeof e>"u"?n.eventsListeners[i]=[]:n.eventsListeners[i]&&n.eventsListeners[i].forEach((s,o)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&n.eventsListeners[i].splice(o,1)})}),n},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,n,i;for(var s=arguments.length,o=new Array(s),r=0;r<s;r++)o[r]=arguments[r];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],n=o.slice(1,o.length),i=t):(e=o[0].events,n=o[0].data,i=o[0].context||t),n.unshift(i),(Array.isArray(e)?e:e.split(" ")).forEach(c=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(d=>{d.apply(i,[c,...n])}),t.eventsListeners&&t.eventsListeners[c]&&t.eventsListeners[c].forEach(d=>{d.apply(i,n)})}),t}};function Ip(){const t=this;let e,n;const i=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=i.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=i.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(ue(i,"padding-left")||0,10)-parseInt(ue(i,"padding-right")||0,10),n=n-parseInt(ue(i,"padding-top")||0,10)-parseInt(ue(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function Op(){const t=this;function e(V,C){return parseFloat(V.getPropertyValue(t.getDirectionLabel(C))||0)}const n=t.params,{wrapperEl:i,slidesEl:s,size:o,rtlTranslate:r,wrongRTL:a}=t,c=t.virtual&&n.virtual.enabled,d=c?t.virtual.slides.length:t.slides.length,u=oe(s,`.${t.params.slideClass}, swiper-slide`),f=c?t.virtual.slides.length:u.length;let p=[];const h=[],m=[];let v=n.slidesOffsetBefore;typeof v=="function"&&(v=n.slidesOffsetBefore.call(t));let y=n.slidesOffsetAfter;typeof y=="function"&&(y=n.slidesOffsetAfter.call(t));const g=t.snapGrid.length,S=t.slidesGrid.length;let b=n.spaceBetween,E=-v,w=0,P=0;if(typeof o>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*o:typeof b=="string"&&(b=parseFloat(b)),t.virtualSize=-b,u.forEach(V=>{r?V.style.marginLeft="":V.style.marginRight="",V.style.marginBottom="",V.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(dt(i,"--swiper-centered-offset-before",""),dt(i,"--swiper-centered-offset-after",""));const M=n.grid&&n.grid.rows>1&&t.grid;M?t.grid.initSlides(u):t.grid&&t.grid.unsetSlides();let x;const T=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(V=>typeof n.breakpoints[V].slidesPerView<"u").length>0;for(let V=0;V<f;V+=1){x=0;let C;if(u[V]&&(C=u[V]),M&&t.grid.updateSlide(V,C,u),!(u[V]&&ue(C,"display")==="none")){if(n.slidesPerView==="auto"){T&&(u[V].style[t.getDirectionLabel("width")]="");const L=getComputedStyle(C),D=C.style.transform,q=C.style.webkitTransform;if(D&&(C.style.transform="none"),q&&(C.style.webkitTransform="none"),n.roundLengths)x=t.isHorizontal()?Is(C,"width"):Is(C,"height");else{const Y=e(L,"width"),k=e(L,"padding-left"),_=e(L,"padding-right"),A=e(L,"margin-left"),R=e(L,"margin-right"),j=L.getPropertyValue("box-sizing");if(j&&j==="border-box")x=Y+A+R;else{const{clientWidth:J,offsetWidth:ye}=C;x=Y+k+_+A+R+(ye-J)}}D&&(C.style.transform=D),q&&(C.style.webkitTransform=q),n.roundLengths&&(x=Math.floor(x))}else x=(o-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(x=Math.floor(x)),u[V]&&(u[V].style[t.getDirectionLabel("width")]=`${x}px`);u[V]&&(u[V].swiperSlideSize=x),m.push(x),n.centeredSlides?(E=E+x/2+w/2+b,w===0&&V!==0&&(E=E-o/2-b),V===0&&(E=E-o/2-b),Math.abs(E)<1/1e3&&(E=0),n.roundLengths&&(E=Math.floor(E)),P%n.slidesPerGroup===0&&p.push(E),h.push(E)):(n.roundLengths&&(E=Math.floor(E)),(P-Math.min(t.params.slidesPerGroupSkip,P))%t.params.slidesPerGroup===0&&p.push(E),h.push(E),E=E+x+b),t.virtualSize+=x+b,w=x,P+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+y,r&&a&&(n.effect==="slide"||n.effect==="coverflow")&&(i.style.width=`${t.virtualSize+b}px`),n.setWrapperSize&&(i.style[t.getDirectionLabel("width")]=`${t.virtualSize+b}px`),M&&t.grid.updateWrapperSize(x,p),!n.centeredSlides){const V=[];for(let C=0;C<p.length;C+=1){let L=p[C];n.roundLengths&&(L=Math.floor(L)),p[C]<=t.virtualSize-o&&V.push(L)}p=V,Math.floor(t.virtualSize-o)-Math.floor(p[p.length-1])>1&&p.push(t.virtualSize-o)}if(c&&n.loop){const V=m[0]+b;if(n.slidesPerGroup>1){const C=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),L=V*n.slidesPerGroup;for(let D=0;D<C;D+=1)p.push(p[p.length-1]+L)}for(let C=0;C<t.virtual.slidesBefore+t.virtual.slidesAfter;C+=1)n.slidesPerGroup===1&&p.push(p[p.length-1]+V),h.push(h[h.length-1]+V),t.virtualSize+=V}if(p.length===0&&(p=[0]),b!==0){const V=t.isHorizontal()&&r?"marginLeft":t.getDirectionLabel("marginRight");u.filter((C,L)=>!n.cssMode||n.loop?!0:L!==u.length-1).forEach(C=>{C.style[V]=`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let V=0;m.forEach(L=>{V+=L+(b||0)}),V-=b;const C=V>o?V-o:0;p=p.map(L=>L<=0?-v:L>C?C+y:L)}if(n.centerInsufficientSlides){let V=0;m.forEach(L=>{V+=L+(b||0)}),V-=b;const C=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(V+C<o){const L=(o-V-C)/2;p.forEach((D,q)=>{p[q]=D-L}),h.forEach((D,q)=>{h[q]=D+L})}}if(Object.assign(t,{slides:u,snapGrid:p,slidesGrid:h,slidesSizesGrid:m}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){dt(i,"--swiper-centered-offset-before",`${-p[0]}px`),dt(i,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const V=-t.snapGrid[0],C=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(L=>L+V),t.slidesGrid=t.slidesGrid.map(L=>L+C)}if(f!==d&&t.emit("slidesLengthChange"),p.length!==g&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),h.length!==S&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!c&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const V=`${n.containerModifierClass}backface-hidden`,C=t.el.classList.contains(V);f<=n.maxBackfaceHiddenSlides?C||t.el.classList.add(V):C&&t.el.classList.remove(V)}}function zp(t){const e=this,n=[],i=e.virtual&&e.params.virtual.enabled;let s=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const r=a=>i?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{n.push(a)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const a=e.activeIndex+o;if(a>e.slides.length&&!i)break;n.push(r(a))}else n.push(r(e.activeIndex));for(o=0;o<n.length;o+=1)if(typeof n[o]<"u"){const a=n[o].offsetHeight;s=a>s?a:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function Rp(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-n-t.cssOverflowAdjustment()}const zs=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function Np(t){t===void 0&&(t=this&&this.translate||0);const e=this,n=e.params,{slides:i,rtlTranslate:s,snapGrid:o}=e;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let r=-t;s&&(r=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let c=0;c<i.length;c+=1){const d=i[c];let u=d.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=i[0].swiperSlideOffset);const f=(r+(n.centeredSlides?e.minTranslate():0)-u)/(d.swiperSlideSize+a),p=(r-o[0]+(n.centeredSlides?e.minTranslate():0)-u)/(d.swiperSlideSize+a),h=-(r-u),m=h+e.slidesSizesGrid[c],v=h>=0&&h<=e.size-e.slidesSizesGrid[c],y=h>=0&&h<e.size-1||m>1&&m<=e.size||h<=0&&m>=e.size;y&&(e.visibleSlides.push(d),e.visibleSlidesIndexes.push(c)),zs(d,y,n.slideVisibleClass),zs(d,v,n.slideFullyVisibleClass),d.progress=s?-f:f,d.originalProgress=s?-p:p}}function Fp(t){const e=this;if(typeof t>"u"){const u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0}const n=e.params,i=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:o,isEnd:r,progressLoop:a}=e;const c=o,d=r;if(i===0)s=0,o=!0,r=!0;else{s=(t-e.minTranslate())/i;const u=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;o=u||s<=0,r=f||s>=1,u&&(s=0),f&&(s=1)}if(n.loop){const u=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[u],h=e.slidesGrid[f],m=e.slidesGrid[e.slidesGrid.length-1],v=Math.abs(t);v>=p?a=(v-p)/m:a=(v+m-h)/m,a>1&&(a-=1)}Object.assign(e,{progress:s,progressLoop:a,isBeginning:o,isEnd:r}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),o&&!c&&e.emit("reachBeginning toEdge"),r&&!d&&e.emit("reachEnd toEdge"),(c&&!o||d&&!r)&&e.emit("fromEdge"),e.emit("progress",s)}const Jt=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function jp(){const t=this,{slides:e,params:n,slidesEl:i,activeIndex:s}=t,o=t.virtual&&n.virtual.enabled,r=t.grid&&n.grid&&n.grid.rows>1,a=f=>oe(i,`.${n.slideClass}${f}, swiper-slide${f}`)[0];let c,d,u;if(o)if(n.loop){let f=s-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),c=a(`[data-swiper-slide-index="${f}"]`)}else c=a(`[data-swiper-slide-index="${s}"]`);else r?(c=e.find(f=>f.column===s),u=e.find(f=>f.column===s+1),d=e.find(f=>f.column===s-1)):c=e[s];c&&(r||(u=Mp(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=e[0]),d=Pp(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d===0&&(d=e[e.length-1]))),e.forEach(f=>{Jt(f,f===c,n.slideActiveClass),Jt(f,f===u,n.slideNextClass),Jt(f,f===d,n.slidePrevClass)}),t.emitSlidesClasses()}const ht=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,i=e.closest(n());if(i){let s=i.querySelector(`.${t.params.lazyPreloaderClass}`);!s&&t.isElement&&(i.shadowRoot?s=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(s=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},Qt=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Sn=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const i=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const r=s,a=[r-e];a.push(...Array.from({length:e}).map((c,d)=>r+i+d)),t.slides.forEach((c,d)=>{a.includes(c.column)&&Qt(t,d)});return}const o=s+i-1;if(t.params.rewind||t.params.loop)for(let r=s-e;r<=o+e;r+=1){const a=(r%n+n)%n;(a<s||a>o)&&Qt(t,a)}else for(let r=Math.max(s-e,0);r<=Math.min(o+e,n-1);r+=1)r!==s&&(r>o||r<s)&&Qt(t,r)};function $p(t){const{slidesGrid:e,params:n}=t,i=t.rtlTranslate?t.translate:-t.translate;let s;for(let o=0;o<e.length;o+=1)typeof e[o+1]<"u"?i>=e[o]&&i<e[o+1]-(e[o+1]-e[o])/2?s=o:i>=e[o]&&i<e[o+1]&&(s=o+1):i>=e[o]&&(s=o);return n.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function Zp(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:i,params:s,activeIndex:o,realIndex:r,snapIndex:a}=e;let c=t,d;const u=h=>{let m=h-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof c>"u"&&(c=$p(e)),i.indexOf(n)>=0)d=i.indexOf(n);else{const h=Math.min(s.slidesPerGroupSkip,c);d=h+Math.floor((c-h)/s.slidesPerGroup)}if(d>=i.length&&(d=i.length-1),c===o&&!e.params.loop){d!==a&&(e.snapIndex=d,e.emit("snapIndexChange"));return}if(c===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=u(c);return}const f=e.grid&&s.grid&&s.grid.rows>1;let p;if(e.virtual&&s.virtual.enabled&&s.loop)p=u(c);else if(f){const h=e.slides.find(v=>v.column===c);let m=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(h),0)),p=Math.floor(m/s.grid.rows)}else if(e.slides[c]){const h=e.slides[c].getAttribute("data-swiper-slide-index");h?p=parseInt(h,10):p=c}else p=c;Object.assign(e,{previousSnapIndex:a,snapIndex:d,previousRealIndex:r,realIndex:p,previousIndex:o,activeIndex:c}),e.initialized&&Sn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(r!==p&&e.emit("realIndexChange"),e.emit("slideChange"))}function Gp(t,e){const n=this,i=n.params;let s=t.closest(`.${i.slideClass}, swiper-slide`);!s&&n.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!s&&a.matches&&a.matches(`.${i.slideClass}, swiper-slide`)&&(s=a)});let o=!1,r;if(s){for(let a=0;a<n.slides.length;a+=1)if(n.slides[a]===s){o=!0,r=a;break}}if(s&&o)n.clickedSlide=s,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=r;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}i.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var Xp={updateSize:Ip,updateSlides:Op,updateAutoHeight:zp,updateSlidesOffset:Rp,updateSlidesProgress:Np,updateProgress:Fp,updateSlidesClasses:jp,updateActiveIndex:Zp,updateClickedSlide:Gp};function Up(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:n,rtlTranslate:i,translate:s,wrapperEl:o}=e;if(n.virtualTranslate)return i?-s:s;if(n.cssMode)return s;let r=Tp(o,t);return r+=e.cssOverflowAdjustment(),i&&(r=-r),r||0}function Hp(t,e){const n=this,{rtlTranslate:i,params:s,wrapperEl:o,progress:r}=n;let a=0,c=0;const d=0;n.isHorizontal()?a=i?-t:t:c=t,s.roundLengths&&(a=Math.floor(a),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?a:c,s.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-a:-c:s.virtualTranslate||(n.isHorizontal()?a-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${a}px, ${c}px, ${d}px)`);let u;const f=n.maxTranslate()-n.minTranslate();f===0?u=0:u=(t-n.minTranslate())/f,u!==r&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function Wp(){return-this.snapGrid[0]}function Kp(){return-this.snapGrid[this.snapGrid.length-1]}function qp(t,e,n,i,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),i===void 0&&(i=!0);const o=this,{params:r,wrapperEl:a}=o;if(o.animating&&r.preventInteractionOnTransition)return!1;const c=o.minTranslate(),d=o.maxTranslate();let u;if(i&&t>c?u=c:i&&t<d?u=d:u=t,o.updateProgress(u),r.cssMode){const f=o.isHorizontal();if(e===0)a[f?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return Or({swiper:o,targetPosition:-u,side:f?"left":"top"}),!0;a.scrollTo({[f?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(p){!o||o.destroyed||p.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var Yp={getTranslate:Up,setTranslate:Hp,minTranslate:Wp,maxTranslate:Kp,translateTo:qp};function Jp(t,e){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${t}ms`,n.wrapperEl.style.transitionDelay=t===0?"0ms":""),n.emit("setTransition",t,e)}function jr(t){let{swiper:e,runCallbacks:n,direction:i,step:s}=t;const{activeIndex:o,previousIndex:r}=e;let a=i;a||(o>r?a="next":o<r?a="prev":a="reset"),e.emit(`transition${s}`),n&&a==="reset"?e.emit(`slideResetTransition${s}`):n&&o!==r&&(e.emit(`slideChangeTransition${s}`),a==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`))}function Qp(t,e){t===void 0&&(t=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),jr({swiper:n,runCallbacks:t,direction:e,step:"Start"}))}function eh(t,e){t===void 0&&(t=!0);const n=this,{params:i}=n;n.animating=!1,!i.cssMode&&(n.setTransition(0),jr({swiper:n,runCallbacks:t,direction:e,step:"End"}))}var th={setTransition:Jp,transitionStart:Qp,transitionEnd:eh};function nh(t,e,n,i,s){t===void 0&&(t=0),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let r=t;r<0&&(r=0);const{params:a,snapGrid:c,slidesGrid:d,previousIndex:u,activeIndex:f,rtlTranslate:p,wrapperEl:h,enabled:m}=o;if(!m&&!i&&!s||o.destroyed||o.animating&&a.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const v=Math.min(o.params.slidesPerGroupSkip,r);let y=v+Math.floor((r-v)/o.params.slidesPerGroup);y>=c.length&&(y=c.length-1);const g=-c[y];if(a.normalizeSlideIndex)for(let M=0;M<d.length;M+=1){const x=-Math.floor(g*100),T=Math.floor(d[M]*100),V=Math.floor(d[M+1]*100);typeof d[M+1]<"u"?x>=T&&x<V-(V-T)/2?r=M:x>=T&&x<V&&(r=M+1):x>=T&&(r=M)}if(o.initialized&&r!==f&&(!o.allowSlideNext&&(p?g>o.translate&&g>o.minTranslate():g<o.translate&&g<o.minTranslate())||!o.allowSlidePrev&&g>o.translate&&g>o.maxTranslate()&&(f||0)!==r))return!1;r!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(g);let S;r>f?S="next":r<f?S="prev":S="reset";const b=o.virtual&&o.params.virtual.enabled;if(!(b&&s)&&(p&&-g===o.translate||!p&&g===o.translate))return o.updateActiveIndex(r),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),a.effect!=="slide"&&o.setTranslate(g),S!=="reset"&&(o.transitionStart(n,S),o.transitionEnd(n,S)),!1;if(a.cssMode){const M=o.isHorizontal(),x=p?g:-g;if(e===0)b&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),b&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[M?"scrollLeft":"scrollTop"]=x})):h[M?"scrollLeft":"scrollTop"]=x,b&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return Or({swiper:o,targetPosition:x,side:M?"left":"top"}),!0;h.scrollTo({[M?"left":"top"]:x,behavior:"smooth"})}return!0}const P=Fr().isSafari;return b&&!s&&P&&o.isElement&&o.virtual.update(!1,!1,r),o.setTransition(e),o.setTranslate(g),o.updateActiveIndex(r),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,i),o.transitionStart(n,S),e===0?o.transitionEnd(n,S):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(x){!o||o.destroyed||x.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,S))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function ih(t,e,n,i){t===void 0&&(t=0),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const o=s.grid&&s.params.grid&&s.params.grid.rows>1;let r=t;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)r=r+s.virtual.slidesBefore;else{let a;if(o){const p=r*s.params.grid.rows;a=s.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===p).column}else a=s.getSlideIndexByData(r);const c=o?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:d}=s.params;let u=s.params.slidesPerView;u==="auto"?u=s.slidesPerViewDynamic():(u=Math.ceil(parseFloat(s.params.slidesPerView,10)),d&&u%2===0&&(u=u+1));let f=c-a<u;if(d&&(f=f||a<Math.ceil(u/2)),i&&d&&s.params.slidesPerView!=="auto"&&!o&&(f=!1),f){const p=d?a<s.activeIndex?"prev":"next":a-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:p,slideTo:!0,activeSlideIndex:p==="next"?a+1:a-c+1,slideRealIndex:p==="next"?s.realIndex:void 0})}if(o){const p=r*s.params.grid.rows;r=s.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===p).column}else r=s.getSlideIndexByData(r)}return requestAnimationFrame(()=>{s.slideTo(r,e,n,i)}),s}function sh(t,e,n){e===void 0&&(e=!0);const i=this,{enabled:s,params:o,animating:r}=i;if(!s||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);let a=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const c=i.activeIndex<o.slidesPerGroupSkip?1:a,d=i.virtual&&o.virtual.enabled;if(o.loop){if(r&&!d&&o.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+c,t,e,n)}),!0}return o.rewind&&i.isEnd?i.slideTo(0,t,e,n):i.slideTo(i.activeIndex+c,t,e,n)}function oh(t,e,n){e===void 0&&(e=!0);const i=this,{params:s,snapGrid:o,slidesGrid:r,rtlTranslate:a,enabled:c,animating:d}=i;if(!c||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);const u=i.virtual&&s.virtual.enabled;if(s.loop){if(d&&!u&&s.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}const f=a?i.translate:-i.translate;function p(S){return S<0?-Math.floor(Math.abs(S)):Math.floor(S)}const h=p(f),m=o.map(S=>p(S)),v=s.freeMode&&s.freeMode.enabled;let y=o[m.indexOf(h)-1];if(typeof y>"u"&&(s.cssMode||v)){let S;o.forEach((b,E)=>{h>=b&&(S=E)}),typeof S<"u"&&(y=v?o[S]:o[S>0?S-1:S])}let g=0;if(typeof y<"u"&&(g=r.indexOf(y),g<0&&(g=i.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&i.isBeginning){const S=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(S,t,e,n)}else if(s.loop&&i.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{i.slideTo(g,t,e,n)}),!0;return i.slideTo(g,t,e,n)}function rh(t,e,n){e===void 0&&(e=!0);const i=this;if(!i.destroyed)return typeof t>"u"&&(t=i.params.speed),i.slideTo(i.activeIndex,t,e,n)}function ah(t,e,n,i){e===void 0&&(e=!0),i===void 0&&(i=.5);const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);let o=s.activeIndex;const r=Math.min(s.params.slidesPerGroupSkip,o),a=r+Math.floor((o-r)/s.params.slidesPerGroup),c=s.rtlTranslate?s.translate:-s.translate;if(c>=s.snapGrid[a]){const d=s.snapGrid[a],u=s.snapGrid[a+1];c-d>(u-d)*i&&(o+=s.params.slidesPerGroup)}else{const d=s.snapGrid[a-1],u=s.snapGrid[a];c-d<=(u-d)*i&&(o-=s.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,s.slidesGrid.length-1),s.slideTo(o,t,e,n)}function lh(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:n}=t,i=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let s=t.getSlideIndexWhenGrid(t.clickedIndex),o;const r=t.isElement?"swiper-slide":`.${e.slideClass}`,a=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(o):s>(a?(t.slides.length-i)/2-(t.params.grid.rows-1):t.slides.length-i)?(t.loopFix(),s=t.getSlideIndex(oe(n,`${r}[data-swiper-slide-index="${o}"]`)[0]),Ir(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}var ch={slideTo:nh,slideToLoop:ih,slideNext:sh,slidePrev:oh,slideReset:rh,slideToClosest:ah,slideToClickedSlide:lh};function uh(t,e){const n=this,{params:i,slidesEl:s}=n;if(!i.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{oe(s,`.${i.slideClass}, swiper-slide`).forEach((h,m)=>{h.setAttribute("data-swiper-slide-index",m)})},r=()=>{const p=oe(s,`.${i.slideBlankClass}`);p.forEach(h=>{h.remove()}),p.length>0&&(n.recalcSlides(),n.updateSlides())},a=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||a)&&r();const c=i.slidesPerGroup*(a?i.grid.rows:1),d=n.slides.length%c!==0,u=a&&n.slides.length%i.grid.rows!==0,f=p=>{for(let h=0;h<p;h+=1){const m=n.isElement?wn("swiper-slide",[i.slideBlankClass]):wn("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(m)}};if(d){if(i.loopAddBlankSlides){const p=c-n.slides.length%c;f(p),n.recalcSlides(),n.updateSlides()}else Ct("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(u){if(i.loopAddBlankSlides){const p=i.grid.rows-n.slides.length%i.grid.rows;f(p),n.recalcSlides(),n.updateSlides()}else Ct("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();n.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next",initial:e})}function dh(t){let{slideRealIndex:e,slideTo:n=!0,direction:i,setTranslate:s,activeSlideIndex:o,initial:r,byController:a,byMousewheel:c}=t===void 0?{}:t;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:u,allowSlidePrev:f,allowSlideNext:p,slidesEl:h,params:m}=d,{centeredSlides:v,initialSlide:y}=m;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&m.virtual.enabled){n&&(!m.centeredSlides&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):m.centeredSlides&&d.snapIndex<m.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=f,d.allowSlideNext=p,d.emit("loopFix");return}let g=m.slidesPerView;g==="auto"?g=d.slidesPerViewDynamic():(g=Math.ceil(parseFloat(m.slidesPerView,10)),v&&g%2===0&&(g=g+1));const S=m.slidesPerGroupAuto?g:m.slidesPerGroup;let b=v?Math.max(S,Math.ceil(g/2)):S;b%S!==0&&(b+=S-b%S),b+=m.loopAdditionalSlides,d.loopedSlides=b;const E=d.grid&&m.grid&&m.grid.rows>1;u.length<g+b||d.params.effect==="cards"&&u.length<g+b*2?Ct("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):E&&m.grid.fill==="row"&&Ct("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const w=[],P=[],M=E?Math.ceil(u.length/m.grid.rows):u.length,x=r&&M-y<g&&!v;let T=x?y:d.activeIndex;typeof o>"u"?o=d.getSlideIndex(u.find(k=>k.classList.contains(m.slideActiveClass))):T=o;const V=i==="next"||!i,C=i==="prev"||!i;let L=0,D=0;const Y=(E?u[o].column:o)+(v&&typeof s>"u"?-g/2+.5:0);if(Y<b){L=Math.max(b-Y,S);for(let k=0;k<b-Y;k+=1){const _=k-Math.floor(k/M)*M;if(E){const A=M-_-1;for(let R=u.length-1;R>=0;R-=1)u[R].column===A&&w.push(R)}else w.push(M-_-1)}}else if(Y+g>M-b){D=Math.max(Y-(M-b*2),S),x&&(D=Math.max(D,g-M+y+1));for(let k=0;k<D;k+=1){const _=k-Math.floor(k/M)*M;E?u.forEach((A,R)=>{A.column===_&&P.push(R)}):P.push(_)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),d.params.effect==="cards"&&u.length<g+b*2&&(P.includes(o)&&P.splice(P.indexOf(o),1),w.includes(o)&&w.splice(w.indexOf(o),1)),C&&w.forEach(k=>{u[k].swiperLoopMoveDOM=!0,h.prepend(u[k]),u[k].swiperLoopMoveDOM=!1}),V&&P.forEach(k=>{u[k].swiperLoopMoveDOM=!0,h.append(u[k]),u[k].swiperLoopMoveDOM=!1}),d.recalcSlides(),m.slidesPerView==="auto"?d.updateSlides():E&&(w.length>0&&C||P.length>0&&V)&&d.slides.forEach((k,_)=>{d.grid.updateSlide(_,k,d.slides)}),m.watchSlidesProgress&&d.updateSlidesOffset(),n){if(w.length>0&&C){if(typeof e>"u"){const k=d.slidesGrid[T],A=d.slidesGrid[T+L]-k;c?d.setTranslate(d.translate-A):(d.slideTo(T+Math.ceil(L),0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-A,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-A))}else if(s){const k=E?w.length/m.grid.rows:w.length;d.slideTo(d.activeIndex+k,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(P.length>0&&V)if(typeof e>"u"){const k=d.slidesGrid[T],A=d.slidesGrid[T-D]-k;c?d.setTranslate(d.translate-A):(d.slideTo(T-D,0,!1,!0),s&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-A,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-A))}else{const k=E?P.length/m.grid.rows:P.length;d.slideTo(d.activeIndex-k,0,!1,!0)}}if(d.allowSlidePrev=f,d.allowSlideNext=p,d.controller&&d.controller.control&&!a){const k={slideRealIndex:e,direction:i,setTranslate:s,activeSlideIndex:o,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(_=>{!_.destroyed&&_.params.loop&&_.loopFix({...k,slideTo:_.params.slidesPerView===m.slidesPerView?n:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...k,slideTo:d.controller.control.params.slidesPerView===m.slidesPerView?n:!1})}d.emit("loopFix")}function fh(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||!n||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const i=[];t.slides.forEach(s=>{const o=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;i[o]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),i.forEach(s=>{n.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ph={loopCreate:uh,loopFix:dh,loopDestroy:fh};function hh(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function mh(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var vh={setGrabCursor:hh,unsetGrabCursor:mh};function gh(t,e){e===void 0&&(e=this);function n(i){if(!i||i===ne()||i===H())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(t);return!s&&!i.getRootNode?null:s||n(i.getRootNode().host)}return n(e)}function Rs(t,e,n){const i=H(),{params:s}=t,o=s.edgeSwipeDetection,r=s.edgeSwipeThreshold;return o&&(n<=r||n>=i.innerWidth-r)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function yh(t){const e=this,n=ne();let i=t;i.originalEvent&&(i=i.originalEvent);const s=e.touchEventsData;if(i.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==i.pointerId)return;s.pointerId=i.pointerId}else i.type==="touchstart"&&i.targetTouches.length===1&&(s.touchId=i.targetTouches[0].identifier);if(i.type==="touchstart"){Rs(e,i,i.targetTouches[0].pageX);return}const{params:o,touches:r,enabled:a}=e;if(!a||!o.simulateTouch&&i.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let c=i.target;if(o.touchEventsTarget==="wrapper"&&!Vp(c,e.wrapperEl)||"which"in i&&i.which===3||"button"in i&&i.button>0||s.isTouched&&s.isMoved)return;const d=!!o.noSwipingClass&&o.noSwipingClass!=="",u=i.composedPath?i.composedPath():i.path;d&&i.target&&i.target.shadowRoot&&u&&(c=u[0]);const f=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!!(i.target&&i.target.shadowRoot);if(o.noSwiping&&(p?gh(f,c):c.closest(f))){e.allowClick=!0;return}if(o.swipeHandler&&!c.closest(o.swipeHandler))return;r.currentX=i.pageX,r.currentY=i.pageY;const h=r.currentX,m=r.currentY;if(!Rs(e,i,h))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=h,r.startY=m,s.touchStartTime=Mt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(s.allowThresholdMove=!1);let v=!0;c.matches(s.focusableElements)&&(v=!1,c.nodeName==="SELECT"&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==c&&(i.pointerType==="mouse"||i.pointerType!=="mouse"&&!c.matches(s.focusableElements))&&n.activeElement.blur();const y=v&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||y)&&!c.isContentEditable&&i.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",i)}function wh(t){const e=ne(),n=this,i=n.touchEventsData,{params:s,touches:o,rtlTranslate:r,enabled:a}=n;if(!a||!s.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent&&(c=c.originalEvent),c.type==="pointermove"&&(i.touchId!==null||c.pointerId!==i.pointerId))return;let d;if(c.type==="touchmove"){if(d=[...c.changedTouches].find(w=>w.identifier===i.touchId),!d||d.identifier!==i.touchId)return}else d=c;if(!i.isTouched){i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c);return}const u=d.pageX,f=d.pageY;if(c.preventedByNestedSwiper){o.startX=u,o.startY=f;return}if(!n.allowTouchMove){c.target.matches(i.focusableElements)||(n.allowClick=!1),i.isTouched&&(Object.assign(o,{startX:u,startY:f,currentX:u,currentY:f}),i.touchStartTime=Mt());return}if(s.touchReleaseOnEdges&&!s.loop)if(n.isVertical()){if(f<o.startY&&n.translate<=n.maxTranslate()||f>o.startY&&n.translate>=n.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else{if(r&&(u>o.startX&&-n.translate<=n.maxTranslate()||u<o.startX&&-n.translate>=n.minTranslate()))return;if(!r&&(u<o.startX&&n.translate<=n.maxTranslate()||u>o.startX&&n.translate>=n.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(i.focusableElements)&&e.activeElement!==c.target&&c.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&c.target===e.activeElement&&c.target.matches(i.focusableElements)){i.isMoved=!0,n.allowClick=!1;return}i.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=u,o.currentY=f;const p=o.currentX-o.startX,h=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(typeof i.isScrolling>"u"){let w;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?i.isScrolling=!1:p*p+h*h>=25&&(w=Math.atan2(Math.abs(h),Math.abs(p))*180/Math.PI,i.isScrolling=n.isHorizontal()?w>s.touchAngle:90-w>s.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),typeof i.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(i.startMoving=!0),i.isScrolling||c.type==="touchmove"&&i.preventTouchMoveFromPointerMove){i.isTouched=!1;return}if(!i.startMoving)return;n.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation();let m=n.isHorizontal()?p:h,v=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;s.oneWayMovement&&(m=Math.abs(m)*(r?1:-1),v=Math.abs(v)*(r?1:-1)),o.diff=m,m*=s.touchRatio,r&&(m=-m,v=-v);const y=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const g=n.params.loop&&!s.cssMode,S=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!i.isMoved){if(g&&S&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const w=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(w)}i.allowMomentumBounce=!1,s.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if(new Date().getTime(),s._loopSwapReset!==!1&&i.isMoved&&i.allowThresholdMove&&y!==n.touchesDirection&&g&&S&&Math.abs(m)>=1){Object.assign(o,{startX:u,startY:f,currentX:u,currentY:f,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,i.startTranslate=i.currentTranslate;return}n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=m+i.startTranslate;let b=!0,E=s.resistanceRatio;if(s.touchReleaseOnEdges&&(E=0),m>0?(g&&S&&i.allowThresholdMove&&i.currentTranslate>(s.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(s.slidesPerView!=="auto"&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(b=!1,s.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+m)**E))):m<0&&(g&&S&&i.allowThresholdMove&&i.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(s.slidesPerView!=="auto"&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(s.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(b=!1,s.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-m)**E))),b&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(i.currentTranslate=i.startTranslate),s.threshold>0)if(Math.abs(m)>s.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{i.currentTranslate=i.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function Sh(t){const e=this,n=e.touchEventsData;let i=t;i.originalEvent&&(i=i.originalEvent);let s;if(i.type==="touchend"||i.type==="touchcancel"){if(s=[...i.changedTouches].find(w=>w.identifier===n.touchId),!s||s.identifier!==n.touchId)return}else{if(n.touchId!==null||i.pointerId!==n.pointerId)return;s=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(e.browser.isSafari||e.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:r,touches:a,rtlTranslate:c,slidesGrid:d,enabled:u}=e;if(!u||!r.simulateTouch&&i.pointerType==="mouse")return;if(n.allowTouchCallbacks&&e.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&r.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}r.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=Mt(),p=f-n.touchStartTime;if(e.allowClick){const w=i.path||i.composedPath&&i.composedPath();e.updateClickedSlide(w&&w[0]||i.target,w),e.emit("tap click",i),p<300&&f-n.lastClickTime<300&&e.emit("doubleTap doubleClick",i)}if(n.lastClickTime=Mt(),Ir(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let h;if(r.followFinger?h=c?e.translate:-e.translate:h=-n.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:h});return}const m=h>=-e.maxTranslate()&&!e.params.loop;let v=0,y=e.slidesSizesGrid[0];for(let w=0;w<d.length;w+=w<r.slidesPerGroupSkip?1:r.slidesPerGroup){const P=w<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof d[w+P]<"u"?(m||h>=d[w]&&h<d[w+P])&&(v=w,y=d[w+P]-d[w]):(m||h>=d[w])&&(v=w,y=d[d.length-1]-d[d.length-2])}let g=null,S=null;r.rewind&&(e.isBeginning?S=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(g=0));const b=(h-d[v])/y,E=v<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(p>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?g:v+E):e.slideTo(v)),e.swipeDirection==="prev"&&(b>1-r.longSwipesRatio?e.slideTo(v+E):S!==null&&b<0&&Math.abs(b)>r.longSwipesRatio?e.slideTo(S):e.slideTo(v))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(i.target===e.navigation.nextEl||i.target===e.navigation.prevEl)?i.target===e.navigation.nextEl?e.slideTo(v+E):e.slideTo(v):(e.swipeDirection==="next"&&e.slideTo(g!==null?g:v+E),e.swipeDirection==="prev"&&e.slideTo(S!==null?S:v))}}function Ns(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:o}=t,r=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=r&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!r?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=s,t.allowSlideNext=i,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function bh(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Th(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:i}=t;if(!i)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let s;const o=t.maxTranslate()-t.minTranslate();o===0?s=0:s=(t.translate-t.minTranslate())/o,s!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function xh(t){const e=this;ht(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Eh(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const $r=(t,e)=>{const n=ne(),{params:i,el:s,wrapperEl:o,device:r}=t,a=!!i.nested,c=e==="on"?"addEventListener":"removeEventListener",d=e;!s||typeof s=="string"||(n[c]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),s[c]("touchstart",t.onTouchStart,{passive:!1}),s[c]("pointerdown",t.onTouchStart,{passive:!1}),n[c]("touchmove",t.onTouchMove,{passive:!1,capture:a}),n[c]("pointermove",t.onTouchMove,{passive:!1,capture:a}),n[c]("touchend",t.onTouchEnd,{passive:!0}),n[c]("pointerup",t.onTouchEnd,{passive:!0}),n[c]("pointercancel",t.onTouchEnd,{passive:!0}),n[c]("touchcancel",t.onTouchEnd,{passive:!0}),n[c]("pointerout",t.onTouchEnd,{passive:!0}),n[c]("pointerleave",t.onTouchEnd,{passive:!0}),n[c]("contextmenu",t.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&s[c]("click",t.onClick,!0),i.cssMode&&o[c]("scroll",t.onScroll),i.updateOnWindowResize?t[d](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ns,!0):t[d]("observerUpdate",Ns,!0),s[c]("load",t.onLoad,{capture:!0}))};function Vh(){const t=this,{params:e}=t;t.onTouchStart=yh.bind(t),t.onTouchMove=wh.bind(t),t.onTouchEnd=Sh.bind(t),t.onDocumentTouchStart=Eh.bind(t),e.cssMode&&(t.onScroll=Th.bind(t)),t.onClick=bh.bind(t),t.onLoad=xh.bind(t),$r(t,"on")}function Ph(){$r(this,"off")}var Mh={attachEvents:Vh,detachEvents:Ph};const Fs=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Ch(){const t=this,{realIndex:e,initialized:n,params:i,el:s}=t,o=i.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const r=ne(),a=i.breakpointsBase==="window"||!i.breakpointsBase?i.breakpointsBase:"container",c=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?t.el:r.querySelector(i.breakpointsBase),d=t.getBreakpoint(o,a,c);if(!d||t.currentBreakpoint===d)return;const f=(d in o?o[d]:void 0)||t.originalParams,p=Fs(t,i),h=Fs(t,f),m=t.params.grabCursor,v=f.grabCursor,y=i.enabled;p&&!h?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),t.emitContainerClasses()):!p&&h&&(s.classList.add(`${i.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&i.grid.fill==="column")&&s.classList.add(`${i.containerModifierClass}grid-column`),t.emitContainerClasses()),m&&!v?t.unsetGrabCursor():!m&&v&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(P=>{if(typeof f[P]>"u")return;const M=i[P]&&i[P].enabled,x=f[P]&&f[P].enabled;M&&!x&&t[P].disable(),!M&&x&&t[P].enable()});const g=f.direction&&f.direction!==i.direction,S=i.loop&&(f.slidesPerView!==i.slidesPerView||g),b=i.loop;g&&n&&t.changeDirection(),W(t.params,f);const E=t.params.enabled,w=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),y&&!E?t.disable():!y&&E&&t.enable(),t.currentBreakpoint=d,t.emit("_beforeBreakpoint",f),n&&(S?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!b&&w?(t.loopCreate(e),t.updateSlides()):b&&!w&&t.loopDestroy()),t.emit("breakpoint",f)}function Ah(t,e,n){if(e===void 0&&(e="window"),!t||e==="container"&&!n)return;let i=!1;const s=H(),o=e==="window"?s.innerHeight:n.clientHeight,r=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const c=parseFloat(a.substr(1));return{value:o*c,point:a}}return{value:a,point:a}});r.sort((a,c)=>parseInt(a.value,10)-parseInt(c.value,10));for(let a=0;a<r.length;a+=1){const{point:c,value:d}=r[a];e==="window"?s.matchMedia(`(min-width: ${d}px)`).matches&&(i=c):d<=n.clientWidth&&(i=c)}return i||"max"}var Bh={setBreakpoint:Ch,getBreakpoint:Ah};function Lh(t,e){const n=[];return t.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(s=>{i[s]&&n.push(e+s)}):typeof i=="string"&&n.push(e+i)}),n}function kh(){const t=this,{classNames:e,params:n,rtl:i,el:s,device:o}=t,r=Lh(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...r),s.classList.add(...e),t.emitContainerClasses()}function _h(){const t=this,{el:e,classNames:n}=t;!e||typeof e=="string"||(e.classList.remove(...n),t.emitContainerClasses())}var Dh={addClasses:kh,removeClasses:_h};function Ih(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:i}=n;if(i){const s=t.slides.length-1,o=t.slidesGrid[s]+t.slidesSizesGrid[s]+i*2;t.isLocked=t.size>o}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Oh={checkOverflow:Ih},bn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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,loopAddBlankSlides:!0,loopAdditionalSlides:0,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",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function zh(t,e){return function(i){i===void 0&&(i={});const s=Object.keys(i)[0],o=i[s];if(typeof o!="object"||o===null){W(e,i);return}if(t[s]===!0&&(t[s]={enabled:!0}),s==="navigation"&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),!(s in t&&"enabled"in o)){W(e,i);return}typeof t[s]=="object"&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),W(e,i)}}const en={eventsEmitter:Dp,update:Xp,translate:Yp,transition:th,slide:ch,loop:ph,grabCursor:vh,events:Mh,breakpoints:Bh,checkOverflow:Oh,classes:Dh},tn={};let ei=class se{constructor(){let e,n;for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?n=s[0]:[e,n]=s,n||(n={}),n=W({},n),e&&!n.el&&(n.el=e);const r=ne();if(n.el&&typeof n.el=="string"&&r.querySelectorAll(n.el).length>1){const u=[];return r.querySelectorAll(n.el).forEach(f=>{const p=W({},n,{el:f});u.push(new se(p))}),u}const a=this;a.__swiper__=!0,a.support=Rr(),a.device=Nr({userAgent:n.userAgent}),a.browser=Fr(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const c={};a.modules.forEach(u=>{u({params:n,swiper:a,extendParams:zh(n,c),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const d=W({},bn,c);return a.params=W({},d,tn,n),a.originalParams=W({},a.params),a.passedParams=W({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(u=>{a.on(u,a.params.on[u])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},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,pointerId:null,touchId:null},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}getDirectionLabel(e){return this.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]}getSlideIndex(e){const{slidesEl:n,params:i}=this,s=oe(n,`.${i.slideClass}, swiper-slide`),o=Ds(s[0]);return Ds(e)-o}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill==="row"&&(e=e%Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const e=this,{slidesEl:n,params:i}=e;e.slides=oe(n,`.${i.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const i=this;e=Math.min(Math.max(e,0),1);const s=i.minTranslate(),r=(i.maxTranslate()-s)*e+s;i.translateTo(r,typeof n>"u"?0:n),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.forEach(i=>{const s=e.getSlideClasses(i);n.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e,n){e===void 0&&(e="current"),n===void 0&&(n=!1);const i=this,{params:s,slides:o,slidesGrid:r,slidesSizesGrid:a,size:c,activeIndex:d}=i;let u=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let f=o[d]?Math.ceil(o[d].swiperSlideSize):0,p;for(let h=d+1;h<o.length;h+=1)o[h]&&!p&&(f+=Math.ceil(o[h].swiperSlideSize),u+=1,f>c&&(p=!0));for(let h=d-1;h>=0;h-=1)o[h]&&!p&&(f+=o[h].swiperSlideSize,u+=1,f>c&&(p=!0))}else if(e==="current")for(let f=d+1;f<o.length;f+=1)(n?r[f]+a[f]-r[d]<c:r[f]-r[d]<c)&&(u+=1);else for(let f=d-1;f>=0;f-=1)r[d]-r[f]<c&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:i}=e;i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(r=>{r.complete&&ht(e,r)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const r=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(r,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode)s(),i.autoHeight&&e.updateAutoHeight();else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const r=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(r.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||s()}i.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n){n===void 0&&(n=!0);const i=this,s=i.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach(o=>{e==="vertical"?o.style.width="":o.style.height=""}),i.emit("changeDirection"),n&&i.update()),i}changeLanguageDirection(e){const n=this;n.rtl&&e==="rtl"||!n.rtl&&e==="ltr"||(n.rtl=e==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;let i=e||n.params.el;if(typeof i=="string"&&(i=document.querySelector(i)),!i)return!1;i.swiper=n,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const s=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):oe(i,s())[0];return!r&&n.params.createElements&&(r=wn("div",n.params.wrapperClass),i.append(r),oe(i,`.${n.params.slideClass}`).forEach(a=>{r.append(a)})),Object.assign(n,{el:i,wrapperEl:r,slidesEl:n.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:r,hostEl:n.isElement?i.parentNode.host:i,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||ue(i,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||ue(i,"direction")==="rtl"),wrongRTL:ue(r,"display")==="-webkit-box"}),!0}init(e){const n=this;if(n.initialized||n.mount(e)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const s=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&s.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(o=>{o.complete?ht(n,o):o.addEventListener("load",r=>{ht(n,r.target)})}),Sn(n),n.initialized=!0,Sn(n),n.emit("init"),n.emit("afterInit"),n}destroy(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0);const i=this,{params:s,el:o,wrapperEl:r,slides:a}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),n&&(i.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),r&&r.removeAttribute("style"),a&&a.length&&a.forEach(c=>{c.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),c.removeAttribute("style"),c.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(c=>{i.off(c)}),e!==!1&&(i.el&&typeof i.el!="string"&&(i.el.swiper=null),Sp(i)),i.destroyed=!0),null}static extendDefaults(e){W(tn,e)}static get extendedDefaults(){return tn}static get defaults(){return bn}static installModule(e){se.prototype.__modules__||(se.prototype.__modules__=[]);const n=se.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>se.installModule(n)),se):(se.installModule(e),se)}};Object.keys(en).forEach(t=>{Object.keys(en[t]).forEach(e=>{ei.prototype[e]=en[t][e]})});ei.use([kp,_p]);const Zr=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_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","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","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 Ve(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Be(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(i=>n.indexOf(i)<0).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Ve(e[i])&&Ve(t[i])&&Object.keys(e[i]).length>0?e[i].__swiper__?t[i]=e[i]:Be(t[i],e[i]):t[i]=e[i]})}function Gr(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Xr(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Ur(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Hr(t){t===void 0&&(t="");const e=t.split(" ").map(i=>i.trim()).filter(i=>!!i),n=[];return e.forEach(i=>{n.indexOf(i)<0&&n.push(i)}),n.join(" ")}function Rh(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function Nh(t){let{swiper:e,slides:n,passedParams:i,changedParams:s,nextEl:o,prevEl:r,scrollbarEl:a,paginationEl:c}=t;const d=s.filter(T=>T!=="children"&&T!=="direction"&&T!=="wrapperClass"),{params:u,pagination:f,navigation:p,scrollbar:h,virtual:m,thumbs:v}=e;let y,g,S,b,E,w,P,M;s.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&!i.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(y=!0),s.includes("controller")&&i.controller&&i.controller.control&&u.controller&&!u.controller.control&&(g=!0),s.includes("pagination")&&i.pagination&&(i.pagination.el||c)&&(u.pagination||u.pagination===!1)&&f&&!f.el&&(S=!0),s.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||a)&&(u.scrollbar||u.scrollbar===!1)&&h&&!h.el&&(b=!0),s.includes("navigation")&&i.navigation&&(i.navigation.prevEl||r)&&(i.navigation.nextEl||o)&&(u.navigation||u.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(E=!0);const x=T=>{e[T]&&(e[T].destroy(),T==="navigation"?(e.isElement&&(e[T].prevEl.remove(),e[T].nextEl.remove()),u[T].prevEl=void 0,u[T].nextEl=void 0,e[T].prevEl=void 0,e[T].nextEl=void 0):(e.isElement&&e[T].el.remove(),u[T].el=void 0,e[T].el=void 0))};s.includes("loop")&&e.isElement&&(u.loop&&!i.loop?w=!0:!u.loop&&i.loop?P=!0:M=!0),d.forEach(T=>{if(Ve(u[T])&&Ve(i[T]))Object.assign(u[T],i[T]),(T==="navigation"||T==="pagination"||T==="scrollbar")&&"enabled"in i[T]&&!i[T].enabled&&x(T);else{const V=i[T];(V===!0||V===!1)&&(T==="navigation"||T==="pagination"||T==="scrollbar")?V===!1&&x(T):u[T]=i[T]}}),d.includes("controller")&&!g&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),s.includes("children")&&n&&m&&u.virtual.enabled?(m.slides=n,m.update(!0)):s.includes("virtual")&&m&&u.virtual.enabled&&(n&&(m.slides=n),m.update(!0)),s.includes("children")&&n&&u.loop&&(M=!0),y&&v.init()&&v.update(!0),g&&(e.controller.control=u.controller.control),S&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),c.part.add("pagination"),e.el.appendChild(c)),c&&(u.pagination.el=c),f.init(),f.render(),f.update()),b&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(u.scrollbar.el=a),h.init(),h.updateSize(),h.setTranslate()),E&&(e.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),Os(o,e.hostEl.constructor.nextButtonSvg),o.part.add("button-next"),e.el.appendChild(o)),(!r||typeof r=="string")&&(r=document.createElement("div"),r.classList.add("swiper-button-prev"),Os(r,e.hostEl.constructor.prevButtonSvg),r.part.add("button-prev"),e.el.appendChild(r))),o&&(u.navigation.nextEl=o),r&&(u.navigation.prevEl=r),p.init(),p.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),s.includes("direction")&&e.changeDirection(i.direction,!1),(w||M)&&e.loopDestroy(),(P||M)&&e.loopCreate(),e.update()}function js(t,e){t===void 0&&(t={});const n={on:{}},i={},s={};Be(n,bn),n._emitClasses=!0,n.init=!1;const o={},r=Zr.map(c=>c.replace(/_/,"")),a=Object.assign({},t);return Object.keys(a).forEach(c=>{typeof t[c]>"u"||(r.indexOf(c)>=0?Ve(t[c])?(n[c]={},s[c]={},Be(n[c],t[c]),Be(s[c],t[c])):(n[c]=t[c],s[c]=t[c]):c.search(/on[A-Z]/)===0&&typeof t[c]=="function"?n.on[`${c[2].toLowerCase()}${c.substr(3)}`]=t[c]:o[c]=t[c])}),["navigation","pagination","scrollbar"].forEach(c=>{n[c]===!0&&(n[c]={}),n[c]===!1&&delete n[c]}),{params:n,passedParams:s,rest:o,events:i}}function Fh(t,e){let{el:n,nextEl:i,prevEl:s,paginationEl:o,scrollbarEl:r,swiper:a}=t;Gr(e)&&i&&s&&(a.params.navigation.nextEl=i,a.originalParams.navigation.nextEl=i,a.params.navigation.prevEl=s,a.originalParams.navigation.prevEl=s),Xr(e)&&o&&(a.params.pagination.el=o,a.originalParams.pagination.el=o),Ur(e)&&r&&(a.params.scrollbar.el=r,a.originalParams.scrollbar.el=r),a.init(n)}function jh(t,e,n,i,s){const o=[];if(!e)return o;const r=c=>{o.indexOf(c)<0&&o.push(c)};if(n&&i){const c=i.map(s),d=n.map(s);c.join("")!==d.join("")&&r("children"),i.length!==n.length&&r("children")}return Zr.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in t&&c in e)if(Ve(t[c])&&Ve(e[c])){const d=Object.keys(t[c]),u=Object.keys(e[c]);d.length!==u.length?r(c):(d.forEach(f=>{t[c][f]!==e[c][f]&&r(c)}),u.forEach(f=>{t[c][f]!==e[c][f]&&r(c)}))}else t[c]!==e[c]&&r(c)}),o}const $h=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.emit("_virtualUpdated"),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function nn(t,e,n){t===void 0&&(t={});const i=[],s={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},o=(r,a)=>{Array.isArray(r)&&r.forEach(c=>{const d=typeof c.type=="symbol";a==="default"&&(a="container-end"),d&&c.children?o(c.children,a):c.type&&(c.type.name==="SwiperSlide"||c.type.name==="AsyncComponentWrapper")||c.componentOptions&&c.componentOptions.tag==="SwiperSlide"?i.push(c):s[a]&&s[a].push(c)})};return Object.keys(t).forEach(r=>{if(typeof t[r]!="function")return;const a=t[r]();o(a,r)}),n.value=e.value,e.value=i,{slides:i,slots:s}}function Zh(t,e,n){if(!n)return null;const i=u=>{let f=u;return u<0?f=e.length+u:f>=e.length&&(f=f-e.length),f},s=t.value.isHorizontal()?{[t.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:r}=n,a=t.value.params.loop?-e.length:0,c=t.value.params.loop?e.length*2:e.length,d=[];for(let u=a;u<c;u+=1)u>=o&&u<=r&&d.length<e.length&&d.push(e[i(u)]);return d.map(u=>{if(u.props||(u.props={}),u.props.style||(u.props.style={}),u.props.swiperRef=t,u.props.style=s,u.type)return l.h(u.type,{...u.props},u.children);if(u.componentOptions)return l.h(u.componentOptions.Ctor,{...u.props},u.componentOptions.children)})}const Wr={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopAddBlankSlides:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","_virtualUpdated","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(t,e){let{slots:n,emit:i}=e;const{tag:s,wrapperTag:o}=t,r=l.ref("swiper"),a=l.ref(null),c=l.ref(!1),d=l.ref(!1),u=l.ref(null),f=l.ref(null),p=l.ref(null),h={value:[]},m={value:[]},v=l.ref(null),y=l.ref(null),g=l.ref(null),S=l.ref(null),{params:b,passedParams:E}=js(t);nn(n,h,m),p.value=E,m.value=h.value;const w=()=>{nn(n,h,m),c.value=!0};b.onAny=function(x){for(var T=arguments.length,V=new Array(T>1?T-1:0),C=1;C<T;C++)V[C-1]=arguments[C];i(x,...V)},Object.assign(b.on,{_beforeBreakpoint:w,_containerClasses(x,T){r.value=T}});const P={...b};if(delete P.wrapperClass,f.value=new ei(P),f.value.virtual&&f.value.params.virtual.enabled){f.value.virtual.slides=h.value;const x={cache:!1,slides:h.value,renderExternal:T=>{a.value=T},renderExternalUpdate:!1};Be(f.value.params.virtual,x),Be(f.value.originalParams.virtual,x)}l.onUpdated(()=>{!d.value&&f.value&&(f.value.emitSlidesClasses(),d.value=!0);const{passedParams:x}=js(t),T=jh(x,p.value,h.value,m.value,V=>V.props&&V.props.key);p.value=x,(T.length||c.value)&&f.value&&!f.value.destroyed&&Nh({swiper:f.value,slides:h.value,passedParams:x,changedParams:T,nextEl:v.value,prevEl:y.value,scrollbarEl:S.value,paginationEl:g.value}),c.value=!1}),l.provide("swiper",f),l.watch(a,()=>{l.nextTick(()=>{$h(f.value)})}),l.onMounted(()=>{u.value&&(Fh({el:u.value,nextEl:v.value,prevEl:y.value,paginationEl:g.value,scrollbarEl:S.value,swiper:f.value},b),i("swiper",f.value))}),l.onBeforeUnmount(()=>{f.value&&!f.value.destroyed&&f.value.destroy(!0,!1)});function M(x){return b.virtual?Zh(f,x,a.value):(x.forEach((T,V)=>{T.props||(T.props={}),T.props.swiperRef=f,T.props.swiperSlideIndex=V}),x)}return()=>{const{slides:x,slots:T}=nn(n,h,m);return l.h(s,{ref:u,class:Hr(r.value)},[T["container-start"],l.h(o,{class:Rh(b.wrapperClass)},[T["wrapper-start"],M(x),T["wrapper-end"]]),Gr(t)&&[l.h("div",{ref:y,class:"swiper-button-prev"}),l.h("div",{ref:v,class:"swiper-button-next"})],Ur(t)&&l.h("div",{ref:S,class:"swiper-scrollbar"}),Xr(t)&&l.h("div",{ref:g,class:"swiper-pagination"}),T["container-end"]])}}},Kr={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(t,e){let{slots:n}=e,i=!1;const{swiperRef:s}=t,o=l.ref(null),r=l.ref("swiper-slide"),a=l.ref(!1);function c(f,p,h){p===o.value&&(r.value=h)}l.onMounted(()=>{!s||!s.value||(s.value.on("_slideClass",c),i=!0)}),l.onBeforeUpdate(()=>{i||!s||!s.value||(s.value.on("_slideClass",c),i=!0)}),l.onUpdated(()=>{!o.value||!s||!s.value||(typeof t.swiperSlideIndex<"u"&&(o.value.swiperSlideIndex=t.swiperSlideIndex),s.value.destroyed&&r.value!=="swiper-slide"&&(r.value="swiper-slide"))}),l.onBeforeUnmount(()=>{!s||!s.value||s.value.off("_slideClass",c)});const d=l.computed(()=>({isActive:r.value.indexOf("swiper-slide-active")>=0,isVisible:r.value.indexOf("swiper-slide-visible")>=0,isPrev:r.value.indexOf("swiper-slide-prev")>=0,isNext:r.value.indexOf("swiper-slide-next")>=0}));l.provide("swiperSlide",d);const u=()=>{a.value=!0};return()=>l.h(t.tag,{class:Hr(`${r.value}`),ref:o,"data-swiper-slide-index":typeof t.virtualIndex>"u"&&s&&s.value&&s.value.params.loop?t.swiperSlideIndex:t.virtualIndex,onLoadCapture:u},t.zoom?l.h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof t.zoom=="number"?t.zoom:void 0},[n.default&&n.default(d.value),t.lazy&&!a.value&&l.h("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(d.value),t.lazy&&!a.value&&l.h("div",{class:"swiper-lazy-preloader"})])}},Gh={class:"m-auto w-1200"},Xh={class:"carousel-layout"},Uh={class:"text-content"},Hh={class:"title csr-v2-title-tab"},Wh={class:"text csr-v2-text"},Kh={class:"media-content"},qh={class:"slick-dots-container"},Yh={class:"slick-dots"},Jh=["onClick"],Qh={class:"dots-number csr-v2-description"},em={class:"active-text"},tm={class:"length-text"},nm=l.defineComponent({name:"FCarouselTextMediaV2",__name:"FCarouselTextMedia",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Oe(e.config),i=[zr],s=l.ref(),o=l.ref(0),r={delay:5e3,disableOnInteraction:!1,stopOnLastSlide:!1,pauseOnMouseEnter:!0},a=l.computed(()=>{var h;return((h=e.config.items)==null?void 0:h.length)||0});function c(h){s.value=h}function d(h){o.value=h.realIndex}function u(h){var m;o.value=h-1,(m=s.value)==null||m.slideTo(h-1)}function f(){var h;(h=s.value)==null||h.slidePrev()}function p(){var h;(h=s.value)==null||h.slideNext()}return(h,m)=>(l.openBlock(),l.createElementBlock("div",{class:"carousel-text-media_v2",style:l.normalizeStyle(l.unref(n))},[l.createElementVNode("div",Gh,[l.createElementVNode("div",Xh,[l.createElementVNode("button",{class:"slick-arrow slick-prev",onClick:l.withModifiers(f,["stop"])},[l.createVNode(qn,{size:"30",color:"white"})]),l.createVNode(l.unref(Pe),{is:"div",class:"carousel-content",style:l.normalizeStyle({height:e.config.contentHeight}),initial:l.unref(O).initial,transition:l.unref(O).transition,"in-view":l.unref(O).whileInView,"in-view-options":l.unref(O).viewport},{default:l.withCtx(()=>[l.createVNode(l.unref(Wr),{modules:i,autoplay:r,loop:!0,onSwiper:c,onSlideChange:d},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.config.items,(v,y)=>(l.openBlock(),l.createBlock(l.unref(Kr),{key:y},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"text-media-content",style:l.normalizeStyle({height:e.config.contentHeight})},[l.createElementVNode("div",Uh,[l.createElementVNode("div",Hh,l.toDisplayString(v.title),1),l.createElementVNode("div",Wh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(v.text.split(`
15
- `)||[],(g,S)=>(l.openBlock(),l.createElementBlock("div",{key:S},l.toDisplayString(g),1))),128))])]),l.createElementVNode("div",Kh,[v.src?(l.openBlock(),l.createBlock(le,{key:0,src:v.src},null,8,["src"])):l.createCommentVNode("",!0)])],4)]),_:2},1024))),128))]),_:1})]),_:1},8,["style","initial","transition","in-view","in-view-options"]),l.createElementVNode("button",{class:"slick-arrow slick-next",onClick:l.withModifiers(p,["stop"])},[l.createVNode(Yn,{size:"30",color:"white"})])]),l.createElementVNode("div",qh,[l.createElementVNode("div",Yh,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,v=>(l.openBlock(),l.createElementBlock("div",{key:v,class:l.normalizeClass(`slick-dot ${o.value===v-1?"active":""}`),onClick:l.withModifiers(y=>u(v),["stop"])},null,10,Jh))),128))]),l.createElementVNode("div",Qh,[l.createElementVNode("span",em,l.toDisplayString(o.value+1),1),l.createElementVNode("span",tm,l.toDisplayString(`/${a.value}`),1)])])])],4))}}),qr=U(nm,[["__scopeId","data-v-e0fb83f9"]]),im="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAACYCAMAAAAvHNATAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAA/UExURUdwTP////////////r6+v///////////////////////////////////xoaGjAwMLW1tZGRkePj43R0dFFRUVXC+pAAAAANdFJOUwBAXTD1pX8X38GPP2+WI0vcAAADkElEQVR42u2c226cQAyGgTkDYw7L+z9rN1GTtpvA2HN0Kv7blVafsMc2xp6uu3Xr1q1bPGXEMCpnrf8t65zSQ2+aMvWz+gR6lVW6b0IltJM+JDeLulS9th4pO1ZjM9p5kuxQw+P6UXq6VGm03vlIuZ4l1jtaqadmkrCKGdRo6dOls3NN1meRzetqZvTZNGa0p7A+o2w2stlnVh5PM8pnV47jaawvoHRziiJcT7LE1N5LX0hySOEafEENTLkSyApzRZMV5/I+Kj8JWR5MCi7xKz2e1eGKIFO+khSNS/tqmkmG9BUl+DkY2c1GX1UjOnP7ysLGWVsbDGlM7atLszuRH6nJcAqt/7QPeD4wlP+7NmCOXajAPjLXCsyx9LDwI1PtwEamD+w6lg0NwS7Dv20JduH+wjdVz6UOw9vStgWzTC15Xv3PrcF0pnQkH7Cd/7rBY890Lol/sy0AcP7z88dlyxJjaYXF+oYVAHuiraQ/nZJr/f0AwIABzZ5zYgJ/OhdgwUhoKi2KbQtQwAj2tCmVxXoA0MAIaN95/0RzLhIY2p4isuSRf1uRBAawYVqnQ9yhXF+xKGAoe44xh3I9AFLAnmh7zLEMJKT9AZAKFnY1RwX76lxxYKEsZYlhbD3BooMFXM2SUvi3zhUNBnBc2JMAJh8AecGuXA0Pti2QH+zc1dBgK0AJMDgrMdFgWymw9X815WlkTXN+meFUfq0oksPFSgoXbAOsRVetaSlJZs2VLZN4sOzZl1SwI1iRqbhWT/lCUUeX1tFgS3Rpjev1vLoaFuzAvYxMKa9vCx3sSHl9w7/wrtQXXnRvxSa2CHZaiwA/8qKS+3afaEGwg9JU0T+rDWWIU0b5G3c+U6tzD7U6qfNUjs9XekzfjnE7ne0HiNa2HPl9EA9YsuEX8WtLNrbl1fCpkQ3BDKPJsXACZ+D+5mcOhLR7ZNNPHTpq9cgQk22O35FsGMtQ05Nchycrzw2HsiT9A2HNUMF9pJnvEHjd6p+0AzFzO5HsVzP4LrOwXf/huzBVpc7guvzGdV2Q64Jl2kpquVXZqUsS1+VivuvYfBfYS9Tac5dJec1pM15Lw/Vaibf8lOsijqnLrRyeJnWRW1WSjyfTe2jc1JXT5FhiRRtUjqWx3tEG4gl1uto1aWLEX/Olp66qxBx2N+l05YvRPo6CvrpKbp7aXnQ3DVo59+fyPevUOIimTLdu3bp160K/AJcD0/uWcqvpAAAAAElFTkSuQmCC",sm={class:"image-diff-v2"},om=["src"],rm=["src"],am={class:"diff-text left"},lm={class:"diff-text right"},cm=l.defineComponent({name:"ImageDiffv2",__name:"index",props:{medium:{type:Array,default:()=>["",""]},diffText:{type:Array,default:()=>["",""]},width:{type:String,default:"680px"},height:{type:String,default:"680px"}},setup(t){l.useCssVars(f=>({v73e75096:e.width,v21986f52:e.height,c554f8e6:o.value}));const e=t,n=l.ref(),i=l.ref(),s=l.reactive({dragging:!1,marginX:0}),o=l.computed(()=>`url(${im})`);function r(f){f.preventDefault(),s.dragging=!1}function a(f){f.preventDefault(),s.dragging=!1}function c(f){f.preventDefault();const p=Number(e.width.replace("px",""));s.dragging&&(f.pageX-s.marginX<=0?(i.value.style.left="0px",n.value.style.width="0px"):f.pageX-s.marginX>=p?(i.value.style.left=e.width,n.value.style.width=e.width):(i.value.style.left=`${f.pageX-s.marginX}px`,n.value.style.width=`${f.pageX-s.marginX}px`))}function d(f){f.preventDefault(),s.marginX=f.pageX-i.value.offsetLeft,s.dragging=!0}function u(f){f.preventDefault(),s.dragging=!1}return(f,p)=>(l.openBlock(),l.createElementBlock("div",sm,[l.createElementVNode("div",{class:"img-diff-container",style:l.normalizeStyle({width:e.width,height:e.height}),onMouseup:r,onMouseleave:a,onMousemove:c},[l.createElementVNode("div",{ref_key:"beforeBoxRef",ref:n,class:"box-before",style:l.normalizeStyle({height:e.height})},[l.createElementVNode("img",{src:e.medium[0],alt:"",class:"img-before"},null,8,om)],4),l.createElementVNode("img",{src:e.medium[1],alt:"",class:"img-after"},null,8,rm),l.createElementVNode("div",{ref_key:"dragTargetRef",ref:i,class:"drag-target",onMousedown:d,onMouseup:u},[l.createElementVNode("div",am,l.toDisplayString(e.diffText[0]),1),l.createElementVNode("div",lm,l.toDisplayString(e.diffText[1]),1),p[0]||(p[0]=l.createElementVNode("div",{class:"line top"},null,-1)),p[1]||(p[1]=l.createElementVNode("div",{class:"line bottom"},null,-1))],544)],36)]))}}),ti=U(cm,[["__scopeId","data-v-24c5ab18"]]),um={class:"carousel-layout"},dm={class:"media-content"},fm={class:"text-content csr-v2-description"},pm={class:"slick-dots-container"},hm={class:"slick-dots"},mm=["onClick"],vm=l.defineComponent({name:"FCaseShowV2",__name:"FCaseShow",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Oe(e.config),i=[zr],s=l.ref(),o=l.ref(0),r=l.computed(()=>{const p=e.config.delay;return{delay:p||p===0?p:5e3,disableOnInteraction:!1,stopOnLastSlide:!1,pauseOnMouseEnter:!0}});function a(p){s.value=p}function c(p){o.value=p.realIndex}function d(p){var h;o.value=p,(h=s.value)==null||h.slideTo(p)}function u(){var p;(p=s.value)==null||p.slidePrev()}function f(){var p;(p=s.value)==null||p.slideNext()}return(p,h)=>(l.openBlock(),l.createElementBlock("div",{class:"case-show_v2",style:l.normalizeStyle(l.unref(n))},[l.createVNode(l.unref(Pe),{is:"div",class:"m-auto w-1200",initial:l.unref(O).initial,transition:l.unref(O).transition,"in-view":l.unref(O).whileInView,"in-view-options":l.unref(O).viewport},{default:l.withCtx(()=>[l.createElementVNode("div",um,[l.createElementVNode("div",{class:"carousel-content",style:l.normalizeStyle({height:e.config.contentHeight})},[l.createVNode(l.unref(Wr),{modules:i,autoplay:r.value,"allow-touch-move":!1,loop:!0,onSwiper:a,onSlideChange:c},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.config.items,(m,v)=>(l.openBlock(),l.createBlock(l.unref(Kr),{key:v},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"case-show-content",style:l.normalizeStyle({height:e.config.contentHeight})},[l.createElementVNode("div",dm,[m.type===l.unref(Te).IMAGE&&m.src?(l.openBlock(),l.createBlock(le,{key:0,src:m.src},null,8,["src"])):m.type===l.unref(Te).VIDEO&&m.src?(l.openBlock(),l.createBlock(ve,{key:1,src:m.src,controls:!1,autoplay:!0,loop:!0},null,8,["src"])):m.type===l.unref(Te).DIFF&&m.src&&m.src2?(l.openBlock(),l.createBlock(ti,{key:2,medium:[m.src,m.src2],"diff-text":m.diffText},null,8,["medium","diff-text"])):l.createCommentVNode("",!0)]),l.createElementVNode("div",fm,l.toDisplayString(m.text),1)],4)]),_:2},1024))),128))]),_:1},8,["autoplay"]),l.createElementVNode("button",{class:"slick-arrow slick-prev",onClick:l.withModifiers(u,["stop"])},[l.createVNode(qn,{size:"30",color:"rgba(255,255,255,0.9)"})]),l.createElementVNode("button",{class:"slick-arrow slick-next",onClick:l.withModifiers(f,["stop"])},[l.createVNode(Yn,{size:"30",color:"rgba(255,255,255,0.9)"})])],4),l.createElementVNode("div",pm,[l.createElementVNode("div",hm,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.config.items,(m,v)=>(l.openBlock(),l.createElementBlock("div",{key:v,class:l.normalizeClass(`slick-dot ${o.value===v?"active":""}`),onClick:l.withModifiers(y=>d(v),["stop"])},[[l.unref(Te).DIFF,l.unref(Te).IMAGE].includes(m.type)?(l.openBlock(),l.createBlock(le,{key:0,src:m.thumbnail||m.src},null,8,["src"])):(l.openBlock(),l.createBlock(ve,{key:1,src:m.src,controls:!1,autoplay:!1},null,8,["src"]))],10,mm))),128))])])])]),_:1},8,["initial","transition","in-view","in-view-options"])],4))}}),Yr=U(vm,[["__scopeId","data-v-168d9a10"]]),gm=$s,ym=Cr,wm=Ar,Sm=Lr,bm=_r,Tm=qr,xm=Yr,Em=le,Vm=ve,Pm=Kn,Mm=Wn,Cm=Jn,Am=ti,Bm=Hn,Lm=[$s,Cr,Ar,Lr,_r,qr,Yr,le,ve,Kn,Wn,Jn,ti,Hn];function Jr(t){Lm.forEach(e=>{const n=e.name||e.__name;n&&t.component(n,e)})}const km={install:Jr};exports.CaseShowType=Te;exports.ComponentType=Vr;exports.DynamicTable=Bm;exports.FBannerV2=gm;exports.FCarouselTextMediaV2=Tm;exports.FCaseShowV2=xm;exports.FMediaV2=Sm;exports.FTabTextMediaV2=bm;exports.FTextV2=wm;exports.FTitleV2=ym;exports.HsTab=Pm;exports.HsTabPane=Mm;exports.ImageDiffv2=Am;exports.LazyImage=Em;exports.LazyVideo=Vm;exports.PreviewMedia=Cm;exports.TabContentType=be;exports.TextAlignType=Pr;exports.ThemeType=Mr;exports.TitleType=Pt;exports.default=km;exports.install=Jr;
13
+ `)}function s(o){const a=e.get(o);a&&(e.delete(o),requestIdleCallback(()=>{document.head.removeChild(a)}))}return{addPopStyle:i,removePopStyle:s,styles:e}}const hf=r.defineComponent({name:"AnimatePresence",inheritAttrs:!0,__name:"AnimatePresence",props:{mode:{default:"sync"},initial:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},as:{},custom:{},onExitComplete:{}},setup(t){const e=t,n={initial:e.initial,custom:e.custom};Su(n),r.onMounted(()=>{n.initial=void 0});function i(d){const f=It.get(d);f&&(f.isVShow=!0,sn(d),f.setActive("exit",!1))}const{addPopStyle:s,removePopStyle:o,styles:a}=pf(e),l=new Map;r.onUnmounted(()=>{l.clear()});function u(d,f){const p=It.get(d);if(!p)return f();l.set(d,!0),sn(d),s(p);function h(m){var g,w;if((g=m==null?void 0:m.detail)!=null&&g.isExit){const y=p.visualElement.projection;if((y==null?void 0:y.animationProgress)>0&&!p.isSafeToRemove&&!p.isVShow)return;sn(d),l.delete(d),l.size===0&&((w=e.onExitComplete)==null||w.call(e)),a.has(p)||p.willUpdate("done"),f(),o(p),d!=null&&d.isConnected||p.unmount(!0)}}Ue.set(d,h),d.addEventListener("motioncomplete",h),p.setActive("exit",!0)}const c=r.computed(()=>e.multiple?{tag:e.as}:{mode:e.mode==="wait"?"out-in":void 0});return(d,f)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(d.multiple?r.TransitionGroup:r.Transition),r.mergeProps({css:!1},c.value,{onEnter:i,onLeave:u}),{default:r.withCtx(()=>[r.renderSlot(d.$slots,"default")]),_:3},16))}});function Ke(t){return{commonStyle:r.computed(()=>{var i,s;const n={paddingTop:"unset",paddingBottom:"unset",background:"transparent"};return(i=t.paddingY)!=null&&i[0]&&(n.paddingTop=t.paddingY[0]),(s=t.paddingY)!=null&&s[1]&&(n.paddingBottom=t.paddingY[1]),t.bg&&(n.background=t.bg),n})}}var Dr=(t=>(t.BANNER_V2="banner_v2",t.TITLE_V2="title_v2",t.TEXT_V2="text_v2",t.MEDIA_V2="media_v2",t.TAB_TEXT_MEDIA_V2="tabTextMedia_v2",t.CAROUSEL_TEXT_MEDIA_V2="carouselTextMedia_v2",t.CASE_SHOW_V2="caseShow_v2",t))(Dr||{}),Ir=(t=>(t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.JUSTIFY="justify",t))(Ir||{}),_t=(t=>(t.MODULE_TITLE="moduleTitle",t.SORT_TITLE="sortTitles",t))(_t||{}),De=(t=>(t.TEXT_MEDIA="textMedia",t.MEDIA="media",t.TABLE="table",t))(De||{}),Ie=(t=>(t.IMAGE="image",t.VIDEO="video",t.DIFF="diff",t))(Ie||{}),Nr=(t=>(t.LIGHT="light",t.DARK="dark",t))(Nr||{});const G={initial:{y:40,opacity:0},transition:{duration:.6,ease:"easeOut"},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.5}},mf={class:"sortNumber"},vf=r.defineComponent({name:"FTitleV2",__name:"FTitle",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Ke(e.config),i=r.computed(()=>{const s=e.config.orderNumber;return s?s>=10?s:`0${s} `:""});return(s,o)=>(r.openBlock(),r.createElementBlock("div",{class:"title_v2",style:r.normalizeStyle(r.unref(n))},[r.createVNode(r.unref(Oe),{is:"div",class:"m-auto w-1200",initial:r.unref(G).initial,transition:r.unref(G).transition,"in-view":r.unref(G).whileInView,"in-view-options":r.unref(G).viewport},{default:r.withCtx(()=>[e.config.titleType===r.unref(_t).MODULE_TITLE?(r.openBlock(),r.createElementBlock("h1",{key:0,class:r.normalizeClass(`title csr-v2-title-level-1 ${t.config.theme}`)},r.toDisplayString(t.config.text),3)):e.config.titleType===r.unref(_t).SORT_TITLE?(r.openBlock(),r.createElementBlock("h2",{key:1,class:r.normalizeClass(`title csr-v2-title-level-2 ${t.config.theme}`)},[r.createElementVNode("span",mf,r.toDisplayString(i.value),1),r.createElementVNode("span",null,r.toDisplayString(t.config.text),1)],2)):r.createCommentVNode("",!0)]),_:1},8,["initial","transition","in-view","in-view-options"])],4))}}),_r=J(vf,[["__scopeId","data-v-6e9b1106"]]),gf=r.defineComponent({name:"FTextV2",__name:"FText",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Ke(e.config);return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:"text_v2 csr-v2-text",style:r.normalizeStyle(r.unref(n))},[r.createVNode(r.unref(Oe),{is:"div",class:"m-auto w-1200",initial:r.unref(G).initial,transition:r.unref(G).transition,"in-view":r.unref(G).whileInView,"in-view-options":r.unref(G).viewport},{default:r.withCtx(()=>[r.createElementVNode("div",{style:r.normalizeStyle({textAlign:t.config.align})},r.toDisplayString(t.config.text),5)]),_:1},8,["initial","transition","in-view","in-view-options"])],4))}}),Rr=J(gf,[["__scopeId","data-v-ba393c73"]]),Or="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAABgCAYAAADCWOqAAAAL10lEQVR4Ae3gAZAkSZIkSRKLqpm7R0REZmZmVlVVVVV3d3d3d/fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMdHd3d3dXV1VVVVVmZkZGRIS7m5kKz0xmV3d1d3dPz8zMzMxMong+vuzLvuy1I+KtgLe2fRw4zlX/l+0Ct0r6a9s/8/Ef//E/zXNCPMBXfdVXPbi19l3Aa3PV/2e/XUp5n4/5mI+5lSsQz/SlX/qlLx0RvwUc56r/9yTd2lp7m0/8xE/8awABfNVXfdWDM/O3bD+Yq656tt1Syst8zMd8zK0C+PIv//LfAl6bq656Xr/98R//8a+jL//yL39r4Ke46qoXwPbr6Cu+4iu+y/Z7c9VVL4CkW/XlX/7lfxXw0lx11Qsg6VZ9+Zd/+UXgOFdd9YLt6su//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzX8wSd8N/E5m3goQEQ+2/VbAW3PV/0boy7/8y81/nN8upbzPx3zMx9zK8/FVX/VVD26tfRXw1lz1vwn68i//cvMfQNJ3f9zHfdz78CL4iq/4iq+y/dFc9b8F+vIv/3Lz7yTp1o/7uI97CP8KX/7lX/5XwEtz1f8G6Mu//MvNv5Pt1/mET/iE3+Zf4cu+7MteW9JvcdX/BujLv/zLzb+DpFs/7uM+7iH8G3zFV3zF020/mKv+p0Nf/uVfbv59fvrjP/7j34Z/g6/4iq/4LtvvzVX/06Ev//IvN/8Otj/nEz7hEz6bf4Mv+7Iv+2xJn8VV/9OhL//yLzf/DpK++uM+7uM+hn+Dr/iKr/gq2x/NVf/ToS//8i83/z6//fEf//Gvw7/Bl3/5l/8W8Npc9T8d+vIv/3Lz71RKOfExH/Mxu/wrfNVXfdWDW2tP56r/DdCXf/mXm38nSV/9cR/3cR/Dv8JXfMVXfJft9+aq/w3Ql3/5l5v/ALZf5xM+4RN+mxfBl3/5l7818FNc9b8F+vIv/3LzH2PX9ud8wid8wlfzQnzFV3zFe9v+KuA4V/1vgb78y7/c/AeS9N2Z+T2f8Amf8Ns8wJd92Ze9tqTPAl6b/yKSvjsz/0bSawFvzVX/VujLv/zLzX+OXeBWScdtHweO81/I9ut8wid8wm/zTF/+5V/+1sBPcdW/BfryL/9y83+M7Y/5hE/4hK/muXzFV3zFe9v+Lq7610Jf/uVfbv4PkfTVH/dxH/cxvABf9mVf9tGSvoqr/jXQl3/5l5v/IyTd+nEf93EP4V/wZV/2ZZ8t6bO46kWFvvzLv9z8HyDp1oh4nY/5mI+5lRfBl33ZZ322pM/iqhcF+vIv/3Lzf8PbfPzHf/xP86/wFV/xFV9l+6O56l+CvvzLv9z8L2f7cz7hEz7hs/k3+Iqv+Irvsv3eXPXCoC//8i83/7v99Md//Me/Df8OX/7lX/5XwEvzn2NX0k/bfjDw2vzvhL78y7/c/C8l6daIeJ2P+ZiPuZV/h6/6qq863lr7LeCl+Q8k6asj4nM+5mM+ZhfgS7/0S186In4LOM7/LujLv/zLzf9Ou6WUl/mYj/mYW/kP8FVf9VUPzszfsv1g/gNI+u6P+7iPex+ey5d/+Ze/NfBT/O+CvvzLv9z8L2T7Yz7hEz7hq/kP9FVf9VUPzszfsv1g/n3++uM//uNfhhfgK77iK77K9kfzvwf68i//cvO/jKSv/riP+7iP4T/BV33VVz04M3/L9oP5N5B0a0S8zMd8zMfs8gJ81Vd91fHW2m8BL83/DujLv/zLzf8uf/3xH//xL8N/oi/90i996Yj4rYDjXPW/BfryL/9y87+UpFsj4mU+5mM+Zpd/gy/7si97bUmfBbz0/yFJXx0Rn/MxH/MxuwBf+qVf+tIR8VvAca763wJ9+Zd/uflfStKtEfEyH/MxH7PLv8GXfdmXvbakzwJemv8gd0v6adunba8dkb4BeG2u+t8CffmXf7l5gVpr/2rbD5b0VVz1v4Wk78vM75H0u8Bb89+A/gL4YCQ9ICJ+PTPf5WM+5mN28QLZPp2Zn5mZH5KZ35OZ35OZfxsRj7f9/q21x4+Ix0fE4yLizjvPfIqkb+Oq/+kQcGr72RH5+bZ/NTPfPiLeIiLeJCIeHxFvmJk/lpk/kJmvyVUvHER3Z+YbmNcrM98jIr4nIn4yIn4pIn4lIn4lIn4573HLX/7lX27gQVz1Px3amvteZn5TZv5qRHx7RPxMRLxpZn5IZj4sM98qM9+6tfbw1tpjIuK1IuKBmfnAiHiNiHhARDwgIh4QEffPzHtHxANaa/eKiHtExD0i4p4RcU9Jj5Z0t6RHSbpN0q2SbpN0W0TcFhG3RcRf8x63fPmXf3lz1f90iDgzD63M/S0i3iQifiAifj0ivi4iHp2Zb5+Zb5GZb5KZb5KZb5KZb5CZr5+Zr5eZr5WZr5mZr5GZr5GZr5GZr5GZD4qI10j/N9Ijk/TI9D+RHiHpEZIeIemRERFmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmYmd3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d1dVVVVVVZmZkZGRLi7m5kKz0xmV3d1d3dPz8zMzMxMong+vuzLvuy1I+KtgLe2fRw4zlX/l+0Ct0r6a9s/8/Ef//E/zXNCPMBXfdVXPbi19l3Aa3PV/2e/XUp5n4/5mI+5lSsQz/SlX/qlLx0RvwUc56r/9yTd2lp7m0/8xE/8awABfNVXfdWDM/O3bD+Yq656tt1Syst8zMd8zK0C+PIv//LfAl6bq656Xr/98R//8a+jL//yL39r4Ke46qoXwPbr6Cu+4iu+y/Z7c9VVL4CkW/XlX/7lfxXw0lx11Qsg6VZ9+Zd/+UXgOFdd9YLt6su//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81VV71w6Mu//MvNVVe9cOjLv/zLzVVXvXDoy7/8y81/sB8+4AM+4H1ba2/KVf/XkfTlH/dxH/ewiHhnrnqBbr311k981Ed91K2SXpur/q8j6cs/7uM+7mER8c5c9QLT13/9139yRLy1pNfmqv/rSPqyj/u4j/v/AEmvzVX/fyXpZVtrb8lV/1dprb05V1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddVVV1111VVXXXXVVVddddV/gP8BZBMckFPBhsAAAAASUVORK5CYII=",yf=["alt"],wf=["src","width"],bf=r.defineComponent({__name:"index",props:{src:{type:String,required:!0},alt:{type:String,default:""},width:{type:String,default:void 0},height:{type:String,default:void 0},bg:{type:Boolean,default:!1}},setup(t){const e=t,n=r.ref(),i=r.ref(),s=r.ref(!1),o=r.ref(!1),a=r.ref(null);r.onMounted(()=>{if(!n.value)return;const d=new IntersectionObserver(f=>{f.forEach(p=>{if(p.isIntersecting){const h=p.target;h.src=e.src,h.onload=()=>{s.value=!0,d.unobserve(h)},h.onerror=()=>{o.value=!0,d.unobserve(h)}}})},{rootMargin:"0px",threshold:.1});a.value=d,d.observe(n.value)}),r.onUnmounted(()=>{var d;(d=a.value)==null||d.disconnect()});const l=r.computed(()=>{const d={};return e.width&&(d.width=e.width),e.height&&(d.height=e.height),e.bg&&(d.backgroundColor="#e6e7e8"),d}),u=r.computed(()=>{const d={};return e.width&&(d.width=e.width),e.height&&(d.height=e.height),d}),c=r.computed(()=>{var h,m;const d=(h=i.value)==null?void 0:h.offsetWidth,f=(m=i.value)==null?void 0:m.offsetHeight;return!d||!f?"100":`${Math.min(d,f)*.4}`});return(d,f)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"parentRef",ref:i,class:r.normalizeClass(`lazy-image ${!e.width&&!e.height?"auto-size":""}`),style:r.normalizeStyle(l.value)},[r.createElementVNode("img",{ref_key:"imgRef",ref:n,class:r.normalizeClass(["content-img",{loaded:s.value,error:o.value}]),alt:t.alt,style:r.normalizeStyle(u.value)},null,14,yf),r.createElementVNode("img",{class:"fallback",src:r.unref(Or),alt:"fallback",width:c.value},null,8,wf)],6))}}),we=J(bf,[["__scopeId","data-v-d0696b52"]]),Sf=["loop","autoplay","muted","controls","controlslist"],xf=["src","width"],Tf=r.defineComponent({__name:"index",props:{src:{type:String,required:!0},width:{type:String,default:void 0},height:{type:String,default:void 0},loop:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},controls:{type:Boolean,default:!1},controlslist:{type:String,default:"nodownload"},bg:{type:Boolean,default:!1}},setup(t){const e=t,n=r.ref(),i=r.ref(),s=r.ref(!1),o=r.ref(!1),a=r.ref(null);r.onMounted(()=>{if(!n.value)return;const d=new IntersectionObserver(f=>{f.forEach(p=>{if(p.isIntersecting){const h=p.target;h.src=e.src,h.onloadeddata=()=>{s.value=!0,h.autoplay&&h.play()},h.onerror=()=>{o.value=!0},d.unobserve(h)}})},{rootMargin:"0px",threshold:.1});a.value=d,d.observe(n.value)}),r.onUnmounted(()=>{var d;(d=a.value)==null||d.disconnect()});const l=r.computed(()=>{const d={};return e.width&&(d.width=e.width),e.height&&(d.height=e.height),e.bg&&(d.backgroundColor="#e6e7e8"),d}),u=r.computed(()=>{const d={};return e.width&&(d.width=e.width),e.height&&(d.height=e.height),d}),c=r.computed(()=>{var h,m;const d=(h=i.value)==null?void 0:h.offsetWidth,f=(m=i.value)==null?void 0:m.offsetHeight;return!d||!f?"100":`${Math.min(d,f)*.4}`});return(d,f)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`lazy-video ${!e.width&&!e.height?"auto-size":""}`),style:r.normalizeStyle(l.value)},[r.createElementVNode("video",{ref_key:"videoRef",ref:n,class:r.normalizeClass(["content-video",{loaded:s.value,error:o.value}]),preload:"metadata",loop:t.loop,autoplay:t.autoplay,style:r.normalizeStyle(u.value),muted:t.autoplay||t.muted,controls:t.controls,controlslist:t.controlslist},null,14,Sf),r.createElementVNode("img",{class:"fallback",src:r.unref(Or),alt:"fallback",width:c.value},null,8,xf)],6))}}),Pe=J(Tf,[["__scopeId","data-v-e5a9b253"]]);function lt(t){if(!t)return"";const e=t.split(".").pop().split("?")[0].split("#")[0].toLowerCase(),n=["jpg","jpeg","png","gif","bmp","webp","svg","ico"],i=["mp4","webm","ogg","mov","avi","mkv","flv","wmv","m3u8"];return n.includes(e)?"image":i.includes(e)?"video":"other"}function Ef(t){try{const e=new URL(t),n=decodeURIComponent(e.pathname),i=n.substring(n.lastIndexOf("/")+1);return i&&i!=="."&&i!==".."?i:""}catch{return""}}const Vf={key:0,class:"placeholder"},Mf={key:1,class:"placeholder"},Cf={key:2},Pf={key:3},Af=r.defineComponent({name:"FMediaV2",__name:"FMedia",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Ke(e.config),i=r.computed(()=>lt(e.config.src));return(s,o)=>(r.openBlock(),r.createElementBlock("div",{class:"media_v2",style:r.normalizeStyle(r.unref(n))},[r.createVNode(r.unref(Oe),{is:"div",class:"m-auto w-1200",initial:r.unref(G).initial,transition:r.unref(G).transition,"in-view":r.unref(G).whileInView,"in-view-options":r.unref(G).viewport},{default:r.withCtx(()=>[i.value?i.value==="other"?(r.openBlock(),r.createElementBlock("div",Mf," 不支持的文件类型 ")):i.value==="image"?(r.openBlock(),r.createElementBlock("div",Cf,[r.createVNode(we,{src:e.config.src},null,8,["src"])])):i.value==="video"?(r.openBlock(),r.createElementBlock("div",Pf,[r.createVNode(Pe,{src:e.config.src,controls:""},null,8,["src"])])):r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Vf," 请选择媒体文件 "))]),_:1},8,["initial","transition","in-view","in-view-options"])],4))}}),zr=J(Af,[["__scopeId","data-v-06d796c4"]]),kf={class:"modal-content"},Bf={class:"modal-body"},Lf=r.defineComponent({__name:"SetColWidthModal",emits:["close","confirm"],setup(t,{expose:e,emit:n}){const i=n,s=r.ref(),o=r.ref(null),a=r.ref(!1),l=r.ref(null);function u(){a.value=!1,l.value=null,i("close")}function c(){o.value!==null&&!Number.isNaN(o.value)&&i("confirm",l.value,Number(o.value)),u()}function d(f,p){l.value=f,o.value=p||null,a.value=!0}return e({open:d}),(f,p)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[a.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:"modal-overlay",onClick:r.withModifiers(u,["self"])},[r.createElementVNode("div",kf,[r.createElementVNode("div",Bf,[p[1]||(p[1]=r.createElementVNode("label",null,"列宽 (px):",-1)),r.withDirectives(r.createElementVNode("input",{ref_key:"inputRef",ref:s,"onUpdate:modelValue":p[0]||(p[0]=h=>o.value=h),type:"number",placeholder:"输入列宽",onKeyup:r.withKeys(c,["enter"])},null,544),[[r.vModelText,o.value,void 0,{number:!0}]])]),r.createElementVNode("div",{class:"modal-footer"},[r.createElementVNode("button",{class:"btn btn-secondary",onClick:u},"取消"),r.createElementVNode("button",{class:"btn btn-primary",onClick:c},"确认")])])])):r.createCommentVNode("",!0)]))}}),Df=J(Lf,[["__scopeId","data-v-a16223c7"]]),If={key:0,class:"init-panel csr-v2-description"},Nf={class:"init-form"},_f={class:"checkbox-label"},Rf={key:1,class:"table-container"},Of={key:0},zf=["rowspan","colspan","data-col","onDblclick","onContextmenu","onMousedown","onMouseover"],Ff=["id","onUpdate:modelValue"],$f=["innerHTML"],jf=["rowspan","colspan","data-row","data-col","onDblclick","onContextmenu","onMousedown","onMouseover"],Zf=["id","onUpdate:modelValue"],Gf=["innerHTML"],Uf={class:"has-submenu"},Xf={class:"submenu"},Hf={class:"has-submenu"},Wf={class:"submenu"},Kf={class:"has-submenu"},qf={class:"submenu"},Yf={class:"has-submenu"},Jf={class:"submenu"},Qf={class:"color-picker-li"},ep=r.defineComponent({__name:"EditableTable",props:{modelValue:{},mode:{},isEdit:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,i=e,s=r.ref(),o=r.ref(5),a=r.ref(3),l=r.ref(!0),u=r.ref(!1),c=r.reactive({hasHeader:!0,colWidths:[],rows:[]}),d=r.ref(!1),f=r.reactive({row:-1,col:-1}),p=r.reactive({row:-1,col:-1}),h=r.reactive({minR:-1,maxR:-1,minC:-1,maxC:-1}),m=r.reactive({visible:!1,x:0,y:0,row:-1,col:-1}),g=r.reactive({row:-1,col:null}),w=r.ref(null),y=()=>Math.random().toString(36).substring(2,9);function x(){return{id:y(),content:"",rowspan:1,colspan:1,hidden:!1,align:"left",vAlign:"top",bgColor:""}}function T(){i("update:modelValue",JSON.parse(JSON.stringify(c)))}function C(){if(!(o.value<=0||a.value<=0)){c.hasHeader=l.value,c.rows=[],c.colWidths=[];for(let M=0;M<a.value;M++)c.colWidths.push(null);for(let M=0;M<o.value;M++){const v=[];for(let b=0;b<a.value;b++)v.push(x());c.rows.push(v)}u.value=!0,T()}}r.watch(()=>n.modelValue,M=>{M&&M.rows&&M.rows.length>0?(c.hasHeader=M.hasHeader,c.colWidths=M.colWidths.map(v=>v),c.rows=M.rows.map(v=>v.map(b=>({...b}))),u.value=!0):u.value=!1},{immediate:!0,deep:!0});function S(M,v,b){m.x=M.clientX,m.y=M.clientY,m.row=v,m.col=b,m.visible=!0}const A=()=>m.visible=!1;function B(M,v){g.row=M,g.col=v,r.nextTick(()=>{const b=document.getElementById(`editor-${M}-${v}`);b&&b.focus()}),A()}function V(){g.row=-1,g.col=null,T()}function E(M){w.value&&(w.value.contains(M.target)||(L(),A()))}function P(){d.value=!1}r.onMounted(()=>{window.addEventListener("mousedown",E),window.addEventListener("mouseup",P)}),r.onUnmounted(()=>{window.removeEventListener("mousedown",E),window.removeEventListener("mouseup",P)});function L(){h.minR=-1,h.maxR=-1,h.minC=-1,h.maxC=-1,f.row=-1,f.col=-1,p.row=-1,p.col=-1}function O(M,v){const b=c.rows[M][v];if(b.hidden&&b.parentRow!==void 0&&b.parentCol!==void 0){const k=c.rows[b.parentRow][b.parentCol];return{row:b.parentRow,col:b.parentCol,rowspan:k.rowspan,colspan:k.colspan}}return{row:M,col:v,rowspan:b.rowspan,colspan:b.colspan}}function $(M){return{textAlign:M.align,verticalAlign:M.vAlign,backgroundColor:M.bgColor||void 0}}function Q(){if(f.row===-1||p.row===-1)return;const M=O(f.row,f.col),v=O(p.row,p.col);h.minR=Math.min(M.row,v.row),h.maxR=Math.max(M.row+M.rowspan-1,v.row+v.rowspan-1),h.minC=Math.min(M.col,v.col),h.maxC=Math.max(M.col+M.colspan-1,v.col+v.colspan-1)}function ne(M,v){if(h.minR===-1)return!1;const b=O(M,v);return b.row>=h.minR&&b.row+b.rowspan-1<=h.maxR&&b.col>=h.minC&&b.col+b.colspan-1<=h.maxC}function z(M,v,b){if(M.button===2){const k=O(v,b);h.minR!==-1&&k.row>=h.minR&&k.row+k.rowspan-1<=h.maxR&&k.col>=h.minC&&k.col+k.colspan-1<=h.maxC||(g.col!==null&&V(),f.row=v,f.col=b,p.row=v,p.col=b,Q());return}M.button===0&&(g.col!==null&&V(),d.value=!0,f.row=v,f.col=b,p.row=v,p.col=b,Q())}function F(M,v,b){d.value&&(p.row=v,p.col=b,Q())}const I=r.computed(()=>!(c.hasHeader&&m.row===0)),j=r.computed(()=>c.rows.length>1&&!(c.hasHeader&&m.row===0));function X(M){const v=m.row;if(c.hasHeader&&v===0&&M==="above")return A();const b=M==="above"?v:v+1;for(let _=0;_<b;_++)for(let D=0;D<c.rows[_].length;D++){const N=c.rows[_][D];!N.hidden&&_+N.rowspan>b&&N.rowspan++}const k=[];for(let _=0;_<c.rows[0].length;_++)k.push(x());c.rows.splice(b,0,k);for(let _=b+1;_<c.rows.length;_++)for(let D=0;D<c.rows[_].length;D++){const N=c.rows[_][D];N.hidden&&N.parentRow!==void 0&&N.parentRow>=b&&N.parentRow++}A(),T()}function oe(){const M=m.row;if(!j.value)return A();for(let v=0;v<M;v++)for(let b=0;b<c.rows[v].length;b++){const k=c.rows[v][b];!k.hidden&&v+k.rowspan>M&&k.rowspan--}if(M<c.rows.length-1)for(let v=0;v<c.rows[M].length;v++){const b=c.rows[M][v];if(!b.hidden&&b.rowspan>1){b.rowspan--,c.rows[M+1][v]=b;for(let k=1;k<b.colspan;k++)c.rows[M+1][v+k].parentRow=M+1,c.rows[M+1][v+k].parentCol=v}}c.rows.splice(M,1);for(let v=M;v<c.rows.length;v++)for(let b=0;b<c.rows[v].length;b++){const k=c.rows[v][b];k.hidden&&k.parentRow!==void 0&&k.parentRow>M&&k.parentRow--}A(),L(),T()}const ae=r.computed(()=>{var M,v;return c.rows[0]&&((M=c.rows[0])!=null&&M.length)?((v=c.rows[0])==null?void 0:v.length)>1:!1});function qe(M){const v=m.col,b=M==="left"?v:v+1;for(let k=0;k<c.rows.length;k++){let _=!1;for(let D=0;D<b;D++){const N=c.rows[k][D];if(!N.hidden&&D+N.colspan>b){N.colspan++;const ie=x();ie.hidden=!0,ie.parentRow=k,ie.parentCol=D,c.rows[k].splice(b,0,ie),_=!0;break}}_||c.rows[k].splice(b,0,x())}for(let k=0;k<c.rows.length;k++)for(let _=b+1;_<c.rows[k].length;_++){const D=c.rows[k][_];D.hidden&&D.parentCol!==void 0&&D.parentCol>=b&&D.parentCol++}c.colWidths.splice(b,0,null),A(),T()}function pt(){const M=m.col;if(!ae.value)return A();for(let v=0;v<c.rows.length;v++)for(let b=0;b<M;b++){const k=c.rows[v][b];!k.hidden&&b+k.colspan>M&&k.colspan--}for(let v=0;v<c.rows.length;v++){const b=c.rows[v][M];if(!b.hidden&&b.colspan>1){b.colspan--,c.rows[v][M+1]=b;for(let k=1;k<b.rowspan;k++)c.rows[v+k][M+1].parentRow=v,c.rows[v+k][M+1].parentCol=M+1}}for(let v=0;v<c.rows.length;v++)c.rows[v].splice(M,1);for(let v=0;v<c.rows.length;v++)for(let b=M;b<c.rows[v].length;b++){const k=c.rows[v][b];k.hidden&&k.parentCol!==void 0&&k.parentCol>M&&k.parentCol++}c.colWidths.splice(M,1),A(),L(),T()}function ke(M){var v;(v=s.value)==null||v.open(M)}function ze(M,v){if(!v)return A();const b=Math.floor(v);c.colWidths[M]=Number.isNaN(b)||b<=0?null:b,A(),T()}function be(M){const{minR:v,maxR:b,minC:k,maxC:_}=h;for(let D=v;D<=b;D++)for(let N=k;N<=_;N++)c.rows[D][N].hidden||(c.rows[D][N].align=M);A(),T()}function pe(M){const{minR:v,maxR:b,minC:k,maxC:_}=h;for(let D=v;D<=b;D++)for(let N=k;N<=_;N++)c.rows[D][N].hidden||(c.rows[D][N].vAlign=M);A(),T()}function he(M){const{minR:v,maxR:b,minC:k,maxC:_}=h;for(let D=v;D<=b;D++)for(let N=k;N<=_;N++)c.rows[D][N].hidden||(c.rows[D][N].bgColor=M);T()}const aa=r.computed(()=>{if(h.minR===-1||!n.isEdit)return!1;const{minR:M,maxR:v,minC:b,maxC:k}=h;if(c.hasHeader&&M===0&&v>0)return!1;let _=0;for(let D=M;D<=v;D++)for(let N=b;N<=k;N++){if(!c.rows[D]||!c.rows[D][N])return!1;const ie=c.rows[D][N];if(ie.hidden){if(ie.parentRow===void 0||ie.parentCol===void 0||ie.parentRow<M||ie.parentRow>v||ie.parentCol<b||ie.parentCol>k)return!1}else{if(D+ie.rowspan-1>v||N+ie.colspan-1>k)return!1;_++}}return _>1});function la(){const{minR:M,maxR:v,minC:b,maxC:k}=h,_=c.rows[M][b];_.rowspan=v-M+1,_.colspan=k-b+1;for(let D=M;D<=v;D++)for(let N=b;N<=k;N++)D===M&&N===b||(c.rows[D][N].hidden=!0,c.rows[D][N].parentRow=M,c.rows[D][N].parentCol=b);A(),L(),T()}const ca=r.computed(()=>{if(m.row===-1||m.col===-1||!n.isEdit)return!1;const M=c.rows[m.row][m.col];return!M.hidden&&(M.rowspan>1||M.colspan>1)});function ua(){const M=m.row,v=m.col,b=c.rows[M][v],k=b.rowspan,_=b.colspan;for(let D=M;D<M+k;D++)for(let N=v;N<v+_;N++)D===M&&N===v||(c.rows[D][N].hidden=!1,c.rows[D][N].parentRow=void 0,c.rows[D][N].parentCol=void 0);b.rowspan=1,b.colspan=1,A(),T()}return(M,v)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tableWrapperRef",ref:w,class:"editable-table dynamic-table-wrapper"},[u.value?(r.openBlock(),r.createElementBlock("div",Rf,[r.createElementVNode("table",{class:r.normalizeClass(["custom-table",{"view-mode":!t.isEdit}])},[r.createElementVNode("colgroup",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.colWidths,(b,k)=>(r.openBlock(),r.createElementBlock("col",{key:k,style:r.normalizeStyle({width:b?`${b}px`:"auto"})},null,4))),128))]),c.hasHeader&&c.rows.length>0?(r.openBlock(),r.createElementBlock("thead",Of,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.rows[0],(b,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:k},[b.hidden?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("th",{key:0,rowspan:b.rowspan,colspan:b.colspan,"data-row":0,"data-col":k,class:r.normalizeClass([{selected:t.isEdit&&ne(0,k)},"header-cell table-cell"]),style:r.normalizeStyle($(b)),onDblclick:_=>t.isEdit&&B(0,k),onContextmenu:r.withModifiers(_=>t.isEdit&&S(_,0,k),["prevent"]),onMousedown:_=>t.isEdit&&z(_,0,k),onMouseover:_=>t.isEdit&&F(_,0,k)},[g.row===0&&g.col===k?r.withDirectives((r.openBlock(),r.createElementBlock("textarea",{key:0,id:`editor-0-${k}`,"onUpdate:modelValue":_=>b.content=_,class:"cell-editor header-editor",onBlur:V,onMousedown:v[3]||(v[3]=r.withModifiers(()=>{},["stop"]))},null,40,Ff)),[[r.vModelText,b.content]]):(r.openBlock(),r.createElementBlock("div",{key:1,class:"cell-content",innerHTML:b.content||"<br>"},null,8,$f))],46,zf))],64))),128))])])):r.createCommentVNode("",!0),r.createElementVNode("tbody",{class:r.normalizeClass(c.hasHeader?"":"noHeader")},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.rows,(b,k)=>r.withDirectives((r.openBlock(),r.createElementBlock("tr",{key:k},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(b,(_,D)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:D},[_.hidden?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("td",{key:0,rowspan:_.rowspan,colspan:_.colspan,"data-row":k,"data-col":D,class:r.normalizeClass([{selected:t.isEdit&&ne(k,D)},"table-cell"]),style:r.normalizeStyle($(_)),onDblclick:N=>t.isEdit&&B(k,D),onContextmenu:r.withModifiers(N=>t.isEdit&&S(N,k,D),["prevent"]),onMousedown:N=>t.isEdit&&z(N,k,D),onMouseover:N=>t.isEdit&&F(N,k,D)},[g.row===k&&g.col===D?r.withDirectives((r.openBlock(),r.createElementBlock("textarea",{key:0,id:`editor-${k}-${D}`,"onUpdate:modelValue":N=>_.content=N,class:"cell-editor",onBlur:V,onMousedown:v[4]||(v[4]=r.withModifiers(()=>{},["stop"]))},null,40,Zf)),[[r.vModelText,_.content]]):(r.openBlock(),r.createElementBlock("div",{key:1,class:"cell-content",innerHTML:_.content||"<br>"},null,8,Gf))],46,jf))],64))),128))])),[[r.vShow,!c.hasHeader||k>0]])),128))],2)],2)])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[t.isEdit?(r.openBlock(),r.createElementBlock("div",If,[r.createElementVNode("div",Nf,[r.createElementVNode("label",null,[v[20]||(v[20]=r.createElementVNode("div",{class:"label-text"},"行数",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":v[0]||(v[0]=b=>o.value=b),name:"initRows",type:"number",min:"1"},null,512),[[r.vModelText,o.value,void 0,{number:!0}]])]),r.createElementVNode("label",null,[v[21]||(v[21]=r.createElementVNode("div",{class:"label-text"},"列数",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":v[1]||(v[1]=b=>a.value=b),name:"initCols",type:"number",min:"1"},null,512),[[r.vModelText,a.value,void 0,{number:!0}]])]),r.createElementVNode("label",_f,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":v[2]||(v[2]=b=>l.value=b),name:"initHasHeader",type:"checkbox"},null,512),[[r.vModelCheckbox,l.value]]),v[22]||(v[22]=r.createElementVNode("div",{class:"label-text"},"包含表头",-1))]),r.createElementVNode("div",{class:"button-label"},[r.createElementVNode("button",{onClick:C}," 确定生成 "),v[23]||(v[23]=r.createElementVNode("div",{class:"tip"}," 当前表格不存在,需重新生成新表格 ",-1))])])])):r.createCommentVNode("",!0),v[24]||(v[24]=r.createElementVNode("div",{class:"empty-tip csr-v2-text"}," 😣无表格,请设计表格 ",-1))],64)),m.visible?(r.openBlock(),r.createElementBlock("ul",{key:2,class:"context-menu",style:r.normalizeStyle({left:`${m.x}px`,top:`${m.y}px`})},[r.createElementVNode("li",{onClick:v[5]||(v[5]=b=>B(m.row,m.col))},[...v[25]||(v[25]=[r.createElementVNode("span",{class:"menu-label"},"编辑单元格",-1)])]),v[43]||(v[43]=r.createElementVNode("li",{class:"menu-divider"},null,-1)),r.createElementVNode("li",Uf,[v[27]||(v[27]=r.createElementVNode("span",{class:"menu-label"},"行操作",-1)),v[28]||(v[28]=r.createElementVNode("span",{class:"submenu-arrow"},"▶",-1)),r.createElementVNode("ul",Xf,[I.value?(r.openBlock(),r.createElementBlock("li",{key:0,onClick:v[6]||(v[6]=b=>X("above"))}," 在上方插入行 ")):r.createCommentVNode("",!0),r.createElementVNode("li",{onClick:v[7]||(v[7]=b=>X("below"))}," 在下方插入行 "),v[26]||(v[26]=r.createElementVNode("li",{class:"menu-divider"},null,-1)),r.createElementVNode("li",{class:"danger",style:r.normalizeStyle({color:j.value?"":"#c0c4cc"}),onClick:oe}," 删除当前行 ",4)])]),r.createElementVNode("li",Hf,[v[30]||(v[30]=r.createElementVNode("span",{class:"menu-label"},"列操作",-1)),v[31]||(v[31]=r.createElementVNode("span",{class:"submenu-arrow"},"▶",-1)),r.createElementVNode("ul",Wf,[r.createElementVNode("li",{onClick:v[8]||(v[8]=b=>qe("left"))}," 在左侧插入列 "),r.createElementVNode("li",{onClick:v[9]||(v[9]=b=>qe("right"))}," 在右侧插入列 "),r.createElementVNode("li",{onClick:v[10]||(v[10]=b=>ke(m.col))}," 设置列宽 "),v[29]||(v[29]=r.createElementVNode("li",{class:"menu-divider"},null,-1)),r.createElementVNode("li",{class:"danger",style:r.normalizeStyle({color:ae.value?"":"#c0c4cc"}),onClick:pt}," 删除当前列 ",4)])]),v[44]||(v[44]=r.createElementVNode("li",{class:"menu-divider"},null,-1)),r.createElementVNode("li",Kf,[v[35]||(v[35]=r.createElementVNode("span",{class:"menu-label"},"对齐方式",-1)),v[36]||(v[36]=r.createElementVNode("span",{class:"submenu-arrow"},"▶",-1)),r.createElementVNode("ul",qf,[v[32]||(v[32]=r.createElementVNode("li",{class:"menu-title"}," 水平对齐 ",-1)),r.createElementVNode("li",{onClick:v[11]||(v[11]=b=>be("left"))}," ⟨ 左对齐 "),r.createElementVNode("li",{onClick:v[12]||(v[12]=b=>be("center"))}," ↔ 居中对齐 "),r.createElementVNode("li",{onClick:v[13]||(v[13]=b=>be("right"))}," ⟩ 右对齐 "),v[33]||(v[33]=r.createElementVNode("li",{class:"menu-divider"},null,-1)),v[34]||(v[34]=r.createElementVNode("li",{class:"menu-title"}," 垂直对齐 ",-1)),r.createElementVNode("li",{onClick:v[14]||(v[14]=b=>pe("top"))}," ⊤ 顶端对齐 "),r.createElementVNode("li",{onClick:v[15]||(v[15]=b=>pe("middle"))}," ⊖ 垂直居中 "),r.createElementVNode("li",{onClick:v[16]||(v[16]=b=>pe("bottom"))}," ⊥ 底端对齐 ")])]),r.createElementVNode("li",Yf,[v[39]||(v[39]=r.createElementVNode("span",{class:"menu-label"},"背景颜色",-1)),v[40]||(v[40]=r.createElementVNode("span",{class:"submenu-arrow"},"▶",-1)),r.createElementVNode("ul",Jf,[r.createElementVNode("li",{onClick:v[17]||(v[17]=b=>{he(""),A()})}," 默认 "),r.createElementVNode("li",{onClick:v[18]||(v[18]=b=>{he("#f5f5f5"),A()})},[...v[37]||(v[37]=[r.createTextVNode(" 灰色 ",-1),r.createElementVNode("span",{class:"color-block",style:{"background-color":"#f5f5f5"}},null,-1)])]),r.createElementVNode("li",Qf,[v[38]||(v[38]=r.createTextVNode(" 自定义 ",-1)),r.createElementVNode("input",{type:"color",class:"hidden-color-picker",onInput:v[19]||(v[19]=b=>he(b.target.value))},null,32)])])]),v[45]||(v[45]=r.createElementVNode("li",{class:"menu-divider"},null,-1)),aa.value?(r.openBlock(),r.createElementBlock("li",{key:0,class:"highlight",onClick:la},[...v[41]||(v[41]=[r.createElementVNode("span",{class:"menu-label"},"合并单元格",-1)])])):r.createCommentVNode("",!0),ca.value?(r.openBlock(),r.createElementBlock("li",{key:1,onClick:ua},[...v[42]||(v[42]=[r.createElementVNode("span",{class:"menu-label"},"取消合并",-1)])])):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0),t.isEdit?(r.openBlock(),r.createBlock(Df,{key:3,ref_key:"setColWidthModalRef",ref:s,onConfirm:ze},null,512)):r.createCommentVNode("",!0)],512))}}),Fr=J(ep,[["__scopeId","data-v-14f6fa7a"]]),tp={class:"modal-container"},np={class:"modal-body"},ip=r.defineComponent({__name:"TableDesignModal",props:{modelValue:{default:void 0},modelModifiers:{}},emits:["update:modelValue"],setup(t,{expose:e}){const n=r.useModel(t,"modelValue"),i=r.reactive({visible:!1});function s(){i.visible=!0}function o(){i.visible=!1}function a(){n.value&&(n.value.hasHeader=!n.value.hasHeader)}function l(){n.value=void 0}return e({open:s}),(u,c)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[i.visible?(r.openBlock(),r.createElementBlock("div",{key:0,class:"modal-overlay",onClick:r.withModifiers(o,["self"])},[r.createElementVNode("div",tp,[r.createElementVNode("div",{class:"modal-header"},[c[1]||(c[1]=r.createElementVNode("span",{class:"modal-title"},"编辑表格",-1)),r.createElementVNode("button",{class:"close-btn",onClick:o},"×")]),r.createElementVNode("div",np,[r.createVNode(Fr,{modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=d=>n.value=d),mode:"edit"},null,8,["modelValue"])]),r.createElementVNode("div",{class:"modal-footer"},[r.createElementVNode("button",{class:"btn btn-secondary",onClick:a},"切换表头"),r.createElementVNode("button",{class:"btn btn-danger",onClick:l},"重置"),r.createElementVNode("button",{class:"btn btn-primary",onClick:o},"完成")])])])):r.createCommentVNode("",!0)]))}}),sp=J(ip,[["__scopeId","data-v-db916ab0"]]);var Pn=(t=>(t.EDIT="edit",t.VIEW="view",t))(Pn||{});const op={class:"dynamic-table"},ii=r.defineComponent({__name:"index",props:r.mergeModels({mode:{}},{modelValue:{default:void 0},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:e}){const n=t,i=r.useModel(t,"modelValue"),s=r.useTemplateRef("tableDesignModal");function o(){var a;n.mode===Pn.EDIT&&((a=s.value)==null||a.open())}return e({edit:o}),(a,l)=>(r.openBlock(),r.createElementBlock("div",op,[t.mode===r.unref(Pn).EDIT?(r.openBlock(),r.createBlock(sp,{key:0,ref:"tableDesignModal",modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=u=>i.value=u)},null,8,["modelValue"])):(r.openBlock(),r.createBlock(Fr,{key:1,modelValue:i.value,"onUpdate:modelValue":l[1]||(l[1]=u=>i.value=u),"is-edit":!1},null,8,["modelValue"]))]))}}),rp={class:"hs-tab-pane-wrapper"},si=r.defineComponent({name:"HsTabPane",__name:"HsTabPane",props:{name:{type:String,required:!0},label:{type:String,required:!0},forceRender:{type:Boolean,default:!0}},setup(t){const e=t,n=r.inject("TabsContext");if(!n)throw new Error("TabPane must be used inside Tabs component");const i=r.computed(()=>n.value.activeKey===e.name);return r.onMounted(()=>{n.value.registerPane({name:e.name,label:e.label,forceRender:!!e.forceRender})}),r.watch(()=>e.label,s=>{n.value.updatePaneLabel(e.name,s)}),r.onUnmounted(()=>{n.value.unregisterPane(e.name)}),(s,o)=>r.withDirectives((r.openBlock(),r.createElementBlock("div",rp,[r.createVNode(r.unref(hf),{mode:"wait"},{default:r.withCtx(()=>[i.value?(r.openBlock(),r.createBlock(r.unref(Oe),{is:"div",key:e.name,tag:"div",initial:{y:30,opacity:0},animate:{y:0,opacity:1},transition:{duration:.6,ease:"easeOut"},class:"wrapper-content"},{default:r.withCtx(()=>[e.forceRender?(r.openBlock(),r.createBlock(r.KeepAlive,{key:0},[r.renderSlot(s.$slots,"default")],1024)):r.renderSlot(s.$slots,"default",{key:1})]),_:3})):r.createCommentVNode("",!0)]),_:3})],512)),[[r.vShow,i.value]])}}),ap={class:"hs-tab"},lp={class:"tab-header"},cp=["onClick"],up=r.defineComponent({name:"HsTab",__name:"index",props:r.mergeModels({contentHeight:{type:String,default:"440px"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.useModel(t,"modelValue"),n=r.ref([]),i=r.computed(()=>({activeKey:e.value||"",registerPane:a=>{n.value.some(l=>l.name===a.name)||n.value.push(a)},unregisterPane:a=>{n.value=n.value.filter(l=>l.name!==a)},updatePaneLabel:(a,l)=>{const u=n.value.find(c=>c.name===a);u&&(u.label=l)}}));r.provide("TabsContext",i);function s(a){e.value=a}function o(){var l;const a=(l=n.value[0])==null?void 0:l.name;a&&(e.value=a)}return r.nextTick(()=>{e.value||o()}),(a,l)=>(r.openBlock(),r.createElementBlock("div",ap,[r.createElementVNode("div",lp,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,u=>(r.openBlock(),r.createElementBlock("div",{key:u.name,class:r.normalizeClass(["tab-header-item csr-v2-text",{active:e.value===u.name}]),onClick:r.withModifiers(c=>s(u.name),["stop"])},r.toDisplayString(u.label),11,cp))),128))]),r.createElementVNode("div",{class:"tab-container",style:r.normalizeStyle({height:t.contentHeight})},[r.renderSlot(a.$slots,"default",{},void 0,!0)],4)]))}}),oi=J(up,[["__scopeId","data-v-5f5a92ca"]]),dp=["width","height"],fp=["stroke"],pp=r.defineComponent({__name:"IconClose",props:{color:{type:String,default:"#333"},size:{type:String,default:"24"}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t.size,height:t.size,fill:"none"},[r.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12",stroke:t.color,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,fp)],8,dp))}}),hp=["width","height"],mp=["fill","fill-opacity"],ri=r.defineComponent({__name:"Left",props:{color:{type:String,default:"white"},opacity:{type:String,default:"0.9"},size:{type:String,default:"24"}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[r.createElementVNode("path",{d:"M14.3095 5.31006L15.6884 6.68892L10.3778 11.9995L15.6884 17.3101L14.3095 18.6889L7.62012 11.9995L14.3095 5.31006Z",fill:t.color,"fill-opacity":t.opacity},null,8,mp)],8,hp))}}),vp=["width","height"],gp=["fill","fill-opacity"],ai=r.defineComponent({__name:"Right",props:{color:{type:String,default:"white"},opacity:{type:String,default:"0.9"},size:{type:String,default:"24"}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[r.createElementVNode("path",{d:"M9.69045 5.31006L8.3116 6.68892L13.6222 11.9995L8.3116 17.3101L9.69045 18.6889L16.3799 11.9995L9.69045 5.31006Z",fill:t.color,"fill-opacity":t.opacity},null,8,gp)],8,vp))}}),yp={class:"modal-mask"},wp={class:"modal-header"},bp={class:"file-name csr-v2-description"},Sp={class:"modal-body"},xp=r.defineComponent({name:"PreviewModal",__name:"PreviewModal",props:{defaultUrl:{type:String,default:""},urlList:{type:Array,default:()=>[]}},setup(t,{expose:e}){const n=t,i=r.ref(),s=r.reactive({visible:!1,innerUrl:"",zIndex:0}),o=r.computed(()=>lt(s.innerUrl)),a=r.computed(()=>Ef(s.innerUrl)),l=r.computed(()=>n.urlList.indexOf(s.innerUrl)>0),u=r.computed(()=>n.urlList.indexOf(s.innerUrl)<n.urlList.length-1);function c(m){s.innerUrl=m,s.visible=!0}function d(){s.visible=!1}function f(){const m=n.urlList.indexOf(s.innerUrl);m>0&&(s.innerUrl=n.urlList[m-1])}function p(){const m=n.urlList.indexOf(s.innerUrl);m<n.urlList.length-1&&(s.innerUrl=n.urlList[m+1])}function h(m){m.target===i.value&&d()}return e({open:c}),(m,g)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[s.visible?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"modalRef",ref:i,class:"preview-modal",onClick:r.withModifiers(h,["self"])},[r.createElementVNode("div",yp,[r.createElementVNode("div",wp,[r.createElementVNode("span",bp,r.toDisplayString(a.value),1),r.createVNode(pp,{color:"white",size:"32",onClick:d})]),r.createElementVNode("div",Sp,[l.value?(r.openBlock(),r.createElementBlock("button",{key:0,class:"nav-btn prev",onClick:f},[r.createVNode(ri,{size:"36",color:"white",opacity:"1"})])):r.createCommentVNode("",!0),u.value?(r.openBlock(),r.createElementBlock("button",{key:1,class:"nav-btn next",onClick:p},[r.createVNode(ai,{size:"36",color:"white",opacity:"1"})])):r.createCommentVNode("",!0),o.value==="image"?(r.openBlock(),r.createBlock(we,{key:2,src:s.innerUrl,width:"auto",height:"auto"},null,8,["src"])):o.value==="video"?(r.openBlock(),r.createBlock(Pe,{key:3,src:s.innerUrl,controls:"",autoplay:!0},null,8,["src"])):r.createCommentVNode("",!0)])])],512)):r.createCommentVNode("",!0)]))}}),Tp=J(xp,[["__scopeId","data-v-68aaa9c5"]]),Ep=["width","height"],Vp={id:"clipPath_0"},Mp=["fill"],Cp={id:"容器 43","clip-path":"url(#clipPath_0)"},Pp=["fill"],Ap=r.defineComponent({__name:"Enlarge",props:{color:{type:String,default:"white"},size:{type:String,default:"24"}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32",width:t.size,height:t.size,fill:"none"},[r.createElementVNode("defs",null,[r.createElementVNode("clipPath",Vp,[r.createElementVNode("rect",{width:"24.000000",height:"24.000000",x:"4.000000",y:"4.000000",fill:t.color},null,8,Mp)])]),n[1]||(n[1]=r.createElementVNode("rect",{id:"容器 62",width:"32.000000",height:"32.000000",x:"0.000000",y:"0.000000"},null,-1)),r.createElementVNode("g",Cp,[n[0]||(n[0]=r.createElementVNode("rect",{id:"容器 43",width:"24.000000",height:"24.000000",x:"4.000000",y:"4.000000"},null,-1)),r.createElementVNode("path",{id:"fullsreen",d:"M9 14.7273L10.2727 14.7273L10.2727 11.1727L14.2773 15.1773L15.1773 14.2773L11.1727 10.2727L14.7273 10.2727L14.7273 9L9.28078 9C9.12572 9 9 9.12572 9 9.28078L9 14.7273ZM23 17.2727L21.7273 17.2727L21.7273 20.8273L17.7227 16.8227L16.8228 17.7227L20.8273 21.7272L17.2727 21.7272L17.2727 23L22.7192 23C22.8743 23 23 22.8743 23 22.7192L23 17.2727Z",fill:t.color,"fill-rule":"evenodd"},null,8,Pp)])],8,Ep))}}),kp={class:"preview-media"},Bp={key:0,class:"placeholder csr-v2-description"},Lp={key:1,class:"placeholder csr-v2-description"},Dp={key:2,class:"media-content"},Ip={class:"handle-content"},Np=r.defineComponent({name:"PreviewMedia",__name:"index",props:{src:{type:String,default:""},previewList:{type:Array,default:()=>[]}},setup(t){const e=t,n=r.ref(),i=r.computed(()=>lt(e.src)),s=r.computed(()=>["image","video"].includes(i.value));function o(){var a;(a=n.value)==null||a.open(e.src)}return(a,l)=>(r.openBlock(),r.createElementBlock("div",kp,[i.value?i.value==="other"?(r.openBlock(),r.createElementBlock("div",Lp," 不支持的文件类型 ")):(r.openBlock(),r.createElementBlock("div",Dp,[i.value==="image"?(r.openBlock(),r.createBlock(we,{key:0,src:e.src},null,8,["src"])):i.value==="video"?(r.openBlock(),r.createBlock(Pe,{key:1,src:e.src,controls:!1},null,8,["src"])):r.createCommentVNode("",!0)])):(r.openBlock(),r.createElementBlock("div",Bp," 请选择媒体文件 ")),s.value?(r.openBlock(),r.createElementBlock("div",{key:3,class:"preview-handle csr-v2-text",onClick:r.withModifiers(o,["stop"])},[r.createElementVNode("div",Ip,[l[0]||(l[0]=r.createElementVNode("span",null,"点击放大",-1)),r.createVNode(Ap,{size:"32"})])])):r.createCommentVNode("",!0),r.createVNode(Tp,{ref_key:"previewModalRef",ref:n,"default-url":e.src,"url-list":t.previewList},null,8,["default-url","url-list"])]))}}),li=J(Np,[["__scopeId","data-v-d92d483c"]]),_p={key:0,class:"text-media-content"},Rp={class:"string-content"},Op={class:"text csr-v2-tab"},zp={class:"media-content"},Fp={key:1,class:"only-media-content"},$p={key:2,class:"table-container"},jp={class:"table-tips"},Zp=["innerHTML"],Gp=r.defineComponent({name:"FTabTextMediaV2",__name:"FTabTextMedia",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Ke(e.config),i=r.ref(""),s=r.computed(()=>{const o=e.config.items;return o?o.filter(a=>[De.TEXT_MEDIA,De.MEDIA].includes(a.contentType)&&a.src!==void 0).map(a=>a.src):[]});return(o,a)=>(r.openBlock(),r.createElementBlock("div",{class:"tab-text-media_v2",style:r.normalizeStyle(r.unref(n))},[r.createVNode(r.unref(Oe),{is:"div",class:"m-auto w-1200",initial:r.unref(G).initial,transition:r.unref(G).transition,"in-view":r.unref(G).whileInView,"in-view-options":r.unref(G).viewport},{default:r.withCtx(()=>[r.createVNode(oi,{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=l=>i.value=l),"content-height":e.config.contentHeight},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.config.items,(l,u)=>(r.openBlock(),r.createBlock(si,{key:u,name:`${u}`,label:l.tabLabel},{default:r.withCtx(()=>[l.contentType===r.unref(De).TEXT_MEDIA?(r.openBlock(),r.createElementBlock("div",_p,[r.createElementVNode("div",Rp,[r.withDirectives(r.createElementVNode("div",{class:"title csr-v2-title-tab"},r.toDisplayString(l.title),513),[[r.vShow,l.title]]),r.withDirectives(r.createElementVNode("div",Op,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.text.split(`
14
+ `)||[],(c,d)=>(r.openBlock(),r.createElementBlock("div",{key:d},r.toDisplayString(c),1))),128))],512),[[r.vShow,l.text]]),r.withDirectives(r.createElementVNode("div",{class:"description csr-v2-description"},r.toDisplayString(l.description),513),[[r.vShow,l.description]])]),r.createElementVNode("div",zp,[r.createVNode(li,{src:l.src,"preview-list":s.value},null,8,["src","preview-list"])])])):l.contentType===r.unref(De).MEDIA?(r.openBlock(),r.createElementBlock("div",Fp,[l.src?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.unref(lt)(l.src)==="image"?(r.openBlock(),r.createBlock(we,{key:0,src:l.src},null,8,["src"])):r.createCommentVNode("",!0),r.unref(lt)(l.src)==="video"?(r.openBlock(),r.createBlock(Pe,{key:1,src:l.src,controls:""},null,8,["src"])):r.createCommentVNode("",!0)],64)):r.createCommentVNode("",!0)])):l.contentType===r.unref(De).TABLE?(r.openBlock(),r.createElementBlock("div",$p,[r.createVNode(ii,{modelValue:l.tableData,"onUpdate:modelValue":c=>l.tableData=c,mode:"view"},null,8,["modelValue","onUpdate:modelValue"]),r.withDirectives(r.createElementVNode("div",jp,[r.createElementVNode("div",{innerHTML:l.tip},null,8,Zp)],512),[[r.vShow,!!l.tip]])])):r.createCommentVNode("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue","content-height"])]),_:1},8,["initial","transition","in-view","in-view-options"])],4))}}),$r=J(Gp,[["__scopeId","data-v-48357a31"]]);function $s(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ci(t,e){t===void 0&&(t={}),e===void 0&&(e={});const n=["__proto__","constructor","prototype"];Object.keys(e).filter(i=>n.indexOf(i)<0).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:$s(e[i])&&$s(t[i])&&Object.keys(e[i]).length>0&&ci(t[i],e[i])})}const jr={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function de(){const t=typeof document<"u"?document:{};return ci(t,jr),t}const Up={document:jr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function te(){const t=typeof window<"u"?window:{};return ci(t,Up),t}function Xp(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Hp(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function Zr(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Rt(){return Date.now()}function Wp(t){const e=te();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function Kp(t,e){e===void 0&&(e="x");const n=te();let i,s,o;const a=Wp(t);return n.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(l=>l.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(s==="none"?"":s)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=o.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?s=o.m41:i.length===16?s=parseFloat(i[12]):s=parseFloat(i[4])),e==="y"&&(n.WebKitCSSMatrix?s=o.m42:i.length===16?s=parseFloat(i[13]):s=parseFloat(i[5])),s||0}function bt(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function qp(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function se(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(i!=null&&!qp(i)){const s=Object.keys(Object(i)).filter(o=>e.indexOf(o)<0);for(let o=0,a=s.length;o<a;o+=1){const l=s[o],u=Object.getOwnPropertyDescriptor(i,l);u!==void 0&&u.enumerable&&(bt(t[l])&&bt(i[l])?i[l].__swiper__?t[l]=i[l]:se(t[l],i[l]):!bt(t[l])&&bt(i[l])?(t[l]={},i[l].__swiper__?t[l]=i[l]:se(t[l],i[l])):t[l]=i[l])}}}return t}function St(t,e,n){t.style.setProperty(e,n)}function Gr(t){let{swiper:e,targetPosition:n,side:i}=t;const s=te(),o=-e.translate;let a=null,l;const u=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const c=n>o?"next":"prev",d=(p,h)=>c==="next"&&p>=h||c==="prev"&&p<=h,f=()=>{l=new Date().getTime(),a===null&&(a=l);const p=Math.max(Math.min((l-a)/u,1),0),h=.5-Math.cos(p*Math.PI)/2;let m=o+h*(n-o);if(d(m,n)&&(m=n),e.wrapperEl.scrollTo({[i]:m}),d(m,n)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:m})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(f)};f()}function ve(t,e){e===void 0&&(e="");const n=te(),i=[...t.children];return n.HTMLSlotElement&&t instanceof HTMLSlotElement&&i.push(...t.assignedElements()),e?i.filter(s=>s.matches(e)):i}function Yp(t,e){const n=[e];for(;n.length>0;){const i=n.shift();if(t===i)return!0;n.push(...i.children,...i.shadowRoot?i.shadowRoot.children:[],...i.assignedElements?i.assignedElements():[])}}function Jp(t,e){const n=te();let i=e.contains(t);return!i&&n.HTMLSlotElement&&e instanceof HTMLSlotElement&&(i=[...e.assignedElements()].includes(t),i||(i=Yp(t,e))),i}function Ot(t){try{console.warn(t);return}catch{}}function An(t,e){e===void 0&&(e=[]);const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:Xp(e)),n}function Qp(t,e){const n=[];for(;t.previousElementSibling;){const i=t.previousElementSibling;e?i.matches(e)&&n.push(i):n.push(i),t=i}return n}function eh(t,e){const n=[];for(;t.nextElementSibling;){const i=t.nextElementSibling;e?i.matches(e)&&n.push(i):n.push(i),t=i}return n}function xe(t,e){return te().getComputedStyle(t,null).getPropertyValue(e)}function js(t){let e=t,n;if(e){for(n=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(n+=1);return n}}function th(t,e){const n=[];let i=t.parentElement;for(;i;)n.push(i),i=i.parentElement;return n}function Zs(t,e,n){const i=te();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function Gs(t,e){e===void 0&&(e=""),typeof trustedTypes<"u"?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(e):t.innerHTML=e}function Ur(t){let{swiper:e,extendParams:n,on:i,emit:s,params:o}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,l,u=o&&o.autoplay?o.autoplay.delay:3e3,c=o&&o.autoplay?o.autoplay.delay:3e3,d,f=new Date().getTime(),p,h,m,g,w,y,x;function T(I){!e||e.destroyed||!e.wrapperEl||I.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",T),!(x||I.detail&&I.detail.bySwiperTouchMove)&&P())}const C=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?p=!0:p&&(c=d,p=!1);const I=e.autoplay.paused?d:f+c-new Date().getTime();e.autoplay.timeLeft=I,s("autoplayTimeLeft",I,I/u),l=requestAnimationFrame(()=>{C()})},S=()=>{let I;return e.virtual&&e.params.virtual.enabled?I=e.slides.find(X=>X.classList.contains("swiper-slide-active")):I=e.slides[e.activeIndex],I?parseInt(I.getAttribute("data-swiper-autoplay"),10):void 0},A=I=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(l),C();let j=typeof I>"u"?e.params.autoplay.delay:I;u=e.params.autoplay.delay,c=e.params.autoplay.delay;const X=S();!Number.isNaN(X)&&X>0&&typeof I>"u"&&(j=X,u=X,c=X),d=j;const oe=e.params.speed,ae=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(oe,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,oe,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(oe,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,oe,!0,!0),s("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{A()})))};return j>0?(clearTimeout(a),a=setTimeout(()=>{ae()},j)):requestAnimationFrame(()=>{ae()}),j},B=()=>{f=new Date().getTime(),e.autoplay.running=!0,A(),s("autoplayStart")},V=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(l),s("autoplayStop")},E=(I,j)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),I||(y=!0);const X=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",T):P()};if(e.autoplay.paused=!0,j){w&&(d=e.params.autoplay.delay),w=!1,X();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),X())},P=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),y?(y=!1,A(d)):A(),e.autoplay.paused=!1,s("autoplayResume"))},L=()=>{if(e.destroyed||!e.autoplay.running)return;const I=de();I.visibilityState==="hidden"&&(y=!0,E(!0)),I.visibilityState==="visible"&&P()},O=I=>{I.pointerType==="mouse"&&(y=!0,x=!0,!(e.animating||e.autoplay.paused)&&E(!0))},$=I=>{I.pointerType==="mouse"&&(x=!1,e.autoplay.paused&&P())},Q=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",O),e.el.addEventListener("pointerleave",$))},ne=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",O),e.el.removeEventListener("pointerleave",$))},z=()=>{de().addEventListener("visibilitychange",L)},F=()=>{de().removeEventListener("visibilitychange",L)};i("init",()=>{e.params.autoplay.enabled&&(Q(),z(),B())}),i("destroy",()=>{ne(),F(),e.autoplay.running&&V()}),i("_freeModeStaticRelease",()=>{(m||y)&&P()}),i("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?V():E(!0,!0)}),i("beforeTransitionStart",(I,j,X)=>{e.destroyed||!e.autoplay.running||(X||!e.params.autoplay.disableOnInteraction?E(!0,!0):V())}),i("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){V();return}h=!0,m=!1,y=!1,g=setTimeout(()=>{y=!0,m=!0,E(!0)},200)}}),i("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!h)){if(clearTimeout(g),clearTimeout(a),e.params.autoplay.disableOnInteraction){m=!1,h=!1;return}m&&e.params.cssMode&&P(),m=!1,h=!1}}),i("slideChange",()=>{e.destroyed||!e.autoplay.running||(w=!0)}),Object.assign(e.autoplay,{start:B,stop:V,pause:E,resume:P})}let rn;function nh(){const t=te(),e=de();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Xr(){return rn||(rn=nh()),rn}let an;function ih(t){let{userAgent:e}=t===void 0?{}:t;const n=Xr(),i=te(),s=i.navigator.platform,o=e||i.navigator.userAgent,a={ios:!1,android:!1},l=i.screen.width,u=i.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const f=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let m=s==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&m&&n.touch&&g.indexOf(`${l}x${u}`)>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),c&&!h&&(a.os="android",a.android=!0),(d||p||f)&&(a.os="ios",a.ios=!0),a}function Hr(t){return t===void 0&&(t={}),an||(an=ih(t)),an}let ln;function sh(){const t=te(),e=Hr();let n=!1;function i(){const l=t.navigator.userAgent.toLowerCase();return l.indexOf("safari")>=0&&l.indexOf("chrome")<0&&l.indexOf("android")<0}if(i()){const l=String(t.navigator.userAgent);if(l.includes("Version/")){const[u,c]=l.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));n=u<16||u===16&&c<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=i(),a=o||s&&e.ios;return{isSafari:n||o,needPerspectiveFix:n,need3dFix:a,isWebView:s}}function Wr(){return ln||(ln=sh()),ln}function oh(t){let{swiper:e,on:n,emit:i}=t;const s=te();let o=null,a=null;const l=()=>{!e||e.destroyed||!e.initialized||(i("beforeResize"),i("resize"))},u=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(f=>{a=s.requestAnimationFrame(()=>{const{width:p,height:h}=e;let m=p,g=h;f.forEach(w=>{let{contentBoxSize:y,contentRect:x,target:T}=w;T&&T!==e.el||(m=x?x.width:(y[0]||y).inlineSize,g=x?x.height:(y[0]||y).blockSize)}),(m!==p||g!==h)&&l()})}),o.observe(e.el))},c=()=>{a&&s.cancelAnimationFrame(a),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},d=()=>{!e||e.destroyed||!e.initialized||i("orientationchange")};n("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){u();return}s.addEventListener("resize",l),s.addEventListener("orientationchange",d)}),n("destroy",()=>{c(),s.removeEventListener("resize",l),s.removeEventListener("orientationchange",d)})}function rh(t){let{swiper:e,extendParams:n,on:i,emit:s}=t;const o=[],a=te(),l=function(d,f){f===void 0&&(f={});const p=a.MutationObserver||a.WebkitMutationObserver,h=new p(m=>{if(e.__preventObserver__)return;if(m.length===1){s("observerUpdate",m[0]);return}const g=function(){s("observerUpdate",m[0])};a.requestAnimationFrame?a.requestAnimationFrame(g):a.setTimeout(g,0)});h.observe(d,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:e.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),o.push(h)},u=()=>{if(e.params.observer){if(e.params.observeParents){const d=th(e.hostEl);for(let f=0;f<d.length;f+=1)l(d[f])}l(e.hostEl,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},c=()=>{o.forEach(d=>{d.disconnect()}),o.splice(0,o.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",u),i("destroy",c)}var ah={on(t,e,n){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;const s=n?"unshift":"push";return t.split(" ").forEach(o=>{i.eventsListeners[o]||(i.eventsListeners[o]=[]),i.eventsListeners[o][s](e)}),i},once(t,e,n){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;function s(){i.off(t,s),s.__emitterProxy&&delete s.__emitterProxy;for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];e.apply(i,a)}return s.__emitterProxy=e,i.on(t,s,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const i=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[i](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(i=>{typeof e>"u"?n.eventsListeners[i]=[]:n.eventsListeners[i]&&n.eventsListeners[i].forEach((s,o)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&n.eventsListeners[i].splice(o,1)})}),n},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,n,i;for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],n=o.slice(1,o.length),i=t):(e=o[0].events,n=o[0].data,i=o[0].context||t),n.unshift(i),(Array.isArray(e)?e:e.split(" ")).forEach(u=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(i,[u,...n])}),t.eventsListeners&&t.eventsListeners[u]&&t.eventsListeners[u].forEach(c=>{c.apply(i,n)})}),t}};function lh(){const t=this;let e,n;const i=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=i.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=i.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(xe(i,"padding-left")||0,10)-parseInt(xe(i,"padding-right")||0,10),n=n-parseInt(xe(i,"padding-top")||0,10)-parseInt(xe(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function ch(){const t=this;function e(P,L){return parseFloat(P.getPropertyValue(t.getDirectionLabel(L))||0)}const n=t.params,{wrapperEl:i,slidesEl:s,size:o,rtlTranslate:a,wrongRTL:l}=t,u=t.virtual&&n.virtual.enabled,c=u?t.virtual.slides.length:t.slides.length,d=ve(s,`.${t.params.slideClass}, swiper-slide`),f=u?t.virtual.slides.length:d.length;let p=[];const h=[],m=[];let g=n.slidesOffsetBefore;typeof g=="function"&&(g=n.slidesOffsetBefore.call(t));let w=n.slidesOffsetAfter;typeof w=="function"&&(w=n.slidesOffsetAfter.call(t));const y=t.snapGrid.length,x=t.slidesGrid.length;let T=n.spaceBetween,C=-g,S=0,A=0;if(typeof o>"u")return;typeof T=="string"&&T.indexOf("%")>=0?T=parseFloat(T.replace("%",""))/100*o:typeof T=="string"&&(T=parseFloat(T)),t.virtualSize=-T,d.forEach(P=>{a?P.style.marginLeft="":P.style.marginRight="",P.style.marginBottom="",P.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(St(i,"--swiper-centered-offset-before",""),St(i,"--swiper-centered-offset-after",""));const B=n.grid&&n.grid.rows>1&&t.grid;B?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let V;const E=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(P=>typeof n.breakpoints[P].slidesPerView<"u").length>0;for(let P=0;P<f;P+=1){V=0;let L;if(d[P]&&(L=d[P]),B&&t.grid.updateSlide(P,L,d),!(d[P]&&xe(L,"display")==="none")){if(n.slidesPerView==="auto"){E&&(d[P].style[t.getDirectionLabel("width")]="");const O=getComputedStyle(L),$=L.style.transform,Q=L.style.webkitTransform;if($&&(L.style.transform="none"),Q&&(L.style.webkitTransform="none"),n.roundLengths)V=t.isHorizontal()?Zs(L,"width"):Zs(L,"height");else{const ne=e(O,"width"),z=e(O,"padding-left"),F=e(O,"padding-right"),I=e(O,"margin-left"),j=e(O,"margin-right"),X=O.getPropertyValue("box-sizing");if(X&&X==="border-box")V=ne+I+j;else{const{clientWidth:oe,offsetWidth:ae}=L;V=ne+z+F+I+j+(ae-oe)}}$&&(L.style.transform=$),Q&&(L.style.webkitTransform=Q),n.roundLengths&&(V=Math.floor(V))}else V=(o-(n.slidesPerView-1)*T)/n.slidesPerView,n.roundLengths&&(V=Math.floor(V)),d[P]&&(d[P].style[t.getDirectionLabel("width")]=`${V}px`);d[P]&&(d[P].swiperSlideSize=V),m.push(V),n.centeredSlides?(C=C+V/2+S/2+T,S===0&&P!==0&&(C=C-o/2-T),P===0&&(C=C-o/2-T),Math.abs(C)<1/1e3&&(C=0),n.roundLengths&&(C=Math.floor(C)),A%n.slidesPerGroup===0&&p.push(C),h.push(C)):(n.roundLengths&&(C=Math.floor(C)),(A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0&&p.push(C),h.push(C),C=C+V+T),t.virtualSize+=V+T,S=V,A+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+w,a&&l&&(n.effect==="slide"||n.effect==="coverflow")&&(i.style.width=`${t.virtualSize+T}px`),n.setWrapperSize&&(i.style[t.getDirectionLabel("width")]=`${t.virtualSize+T}px`),B&&t.grid.updateWrapperSize(V,p),!n.centeredSlides){const P=[];for(let L=0;L<p.length;L+=1){let O=p[L];n.roundLengths&&(O=Math.floor(O)),p[L]<=t.virtualSize-o&&P.push(O)}p=P,Math.floor(t.virtualSize-o)-Math.floor(p[p.length-1])>1&&p.push(t.virtualSize-o)}if(u&&n.loop){const P=m[0]+T;if(n.slidesPerGroup>1){const L=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),O=P*n.slidesPerGroup;for(let $=0;$<L;$+=1)p.push(p[p.length-1]+O)}for(let L=0;L<t.virtual.slidesBefore+t.virtual.slidesAfter;L+=1)n.slidesPerGroup===1&&p.push(p[p.length-1]+P),h.push(h[h.length-1]+P),t.virtualSize+=P}if(p.length===0&&(p=[0]),T!==0){const P=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");d.filter((L,O)=>!n.cssMode||n.loop?!0:O!==d.length-1).forEach(L=>{L.style[P]=`${T}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let P=0;m.forEach(O=>{P+=O+(T||0)}),P-=T;const L=P>o?P-o:0;p=p.map(O=>O<=0?-g:O>L?L+w:O)}if(n.centerInsufficientSlides){let P=0;m.forEach(O=>{P+=O+(T||0)}),P-=T;const L=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(P+L<o){const O=(o-P-L)/2;p.forEach(($,Q)=>{p[Q]=$-O}),h.forEach(($,Q)=>{h[Q]=$+O})}}if(Object.assign(t,{slides:d,snapGrid:p,slidesGrid:h,slidesSizesGrid:m}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){St(i,"--swiper-centered-offset-before",`${-p[0]}px`),St(i,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const P=-t.snapGrid[0],L=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(O=>O+P),t.slidesGrid=t.slidesGrid.map(O=>O+L)}if(f!==c&&t.emit("slidesLengthChange"),p.length!==y&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),h.length!==x&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!u&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const P=`${n.containerModifierClass}backface-hidden`,L=t.el.classList.contains(P);f<=n.maxBackfaceHiddenSlides?L||t.el.classList.add(P):L&&t.el.classList.remove(P)}}function uh(t){const e=this,n=[],i=e.virtual&&e.params.virtual.enabled;let s=0,o;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=l=>i?e.slides[e.getSlideIndexByData(l)]:e.slides[l];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(l=>{n.push(l)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const l=e.activeIndex+o;if(l>e.slides.length&&!i)break;n.push(a(l))}else n.push(a(e.activeIndex));for(o=0;o<n.length;o+=1)if(typeof n[o]<"u"){const l=n[o].offsetHeight;s=l>s?l:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function dh(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-n-t.cssOverflowAdjustment()}const Us=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function fh(t){t===void 0&&(t=this&&this.translate||0);const e=this,n=e.params,{slides:i,rtlTranslate:s,snapGrid:o}=e;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;s&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let l=n.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*e.size:typeof l=="string"&&(l=parseFloat(l));for(let u=0;u<i.length;u+=1){const c=i[u];let d=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(d-=i[0].swiperSlideOffset);const f=(a+(n.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+l),p=(a-o[0]+(n.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+l),h=-(a-d),m=h+e.slidesSizesGrid[u],g=h>=0&&h<=e.size-e.slidesSizesGrid[u],w=h>=0&&h<e.size-1||m>1&&m<=e.size||h<=0&&m>=e.size;w&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(u)),Us(c,w,n.slideVisibleClass),Us(c,g,n.slideFullyVisibleClass),c.progress=s?-f:f,c.originalProgress=s?-p:p}}function ph(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const n=e.params,i=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:o,isEnd:a,progressLoop:l}=e;const u=o,c=a;if(i===0)s=0,o=!0,a=!0;else{s=(t-e.minTranslate())/i;const d=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;o=d||s<=0,a=f||s>=1,d&&(s=0),f&&(s=1)}if(n.loop){const d=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[d],h=e.slidesGrid[f],m=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=p?l=(g-p)/m:l=(g+m-h)/m,l>1&&(l-=1)}Object.assign(e,{progress:s,progressLoop:l,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),o&&!u&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(u&&!o||c&&!a)&&e.emit("fromEdge"),e.emit("progress",s)}const cn=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function hh(){const t=this,{slides:e,params:n,slidesEl:i,activeIndex:s}=t,o=t.virtual&&n.virtual.enabled,a=t.grid&&n.grid&&n.grid.rows>1,l=f=>ve(i,`.${n.slideClass}${f}, swiper-slide${f}`)[0];let u,c,d;if(o)if(n.loop){let f=s-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),u=l(`[data-swiper-slide-index="${f}"]`)}else u=l(`[data-swiper-slide-index="${s}"]`);else a?(u=e.find(f=>f.column===s),d=e.find(f=>f.column===s+1),c=e.find(f=>f.column===s-1)):u=e[s];u&&(a||(d=eh(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=e[0]),c=Qp(u,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(f=>{cn(f,f===u,n.slideActiveClass),cn(f,f===d,n.slideNextClass),cn(f,f===c,n.slidePrevClass)}),t.emitSlidesClasses()}const Et=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,i=e.closest(n());if(i){let s=i.querySelector(`.${t.params.lazyPreloaderClass}`);!s&&t.isElement&&(i.shadowRoot?s=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(s=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},un=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},kn=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const i=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),s=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=s,l=[a-e];l.push(...Array.from({length:e}).map((u,c)=>a+i+c)),t.slides.forEach((u,c)=>{l.includes(u.column)&&un(t,c)});return}const o=s+i-1;if(t.params.rewind||t.params.loop)for(let a=s-e;a<=o+e;a+=1){const l=(a%n+n)%n;(l<s||l>o)&&un(t,l)}else for(let a=Math.max(s-e,0);a<=Math.min(o+e,n-1);a+=1)a!==s&&(a>o||a<s)&&un(t,a)};function mh(t){const{slidesGrid:e,params:n}=t,i=t.rtlTranslate?t.translate:-t.translate;let s;for(let o=0;o<e.length;o+=1)typeof e[o+1]<"u"?i>=e[o]&&i<e[o+1]-(e[o+1]-e[o])/2?s=o:i>=e[o]&&i<e[o+1]&&(s=o+1):i>=e[o]&&(s=o);return n.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function vh(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:i,params:s,activeIndex:o,realIndex:a,snapIndex:l}=e;let u=t,c;const d=h=>{let m=h-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof u>"u"&&(u=mh(e)),i.indexOf(n)>=0)c=i.indexOf(n);else{const h=Math.min(s.slidesPerGroupSkip,u);c=h+Math.floor((u-h)/s.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),u===o&&!e.params.loop){c!==l&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(u===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(u);return}const f=e.grid&&s.grid&&s.grid.rows>1;let p;if(e.virtual&&s.virtual.enabled&&s.loop)p=d(u);else if(f){const h=e.slides.find(g=>g.column===u);let m=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(h),0)),p=Math.floor(m/s.grid.rows)}else if(e.slides[u]){const h=e.slides[u].getAttribute("data-swiper-slide-index");h?p=parseInt(h,10):p=u}else p=u;Object.assign(e,{previousSnapIndex:l,snapIndex:c,previousRealIndex:a,realIndex:p,previousIndex:o,activeIndex:u}),e.initialized&&kn(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==p&&e.emit("realIndexChange"),e.emit("slideChange"))}function gh(t,e){const n=this,i=n.params;let s=t.closest(`.${i.slideClass}, swiper-slide`);!s&&n.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(l=>{!s&&l.matches&&l.matches(`.${i.slideClass}, swiper-slide`)&&(s=l)});let o=!1,a;if(s){for(let l=0;l<n.slides.length;l+=1)if(n.slides[l]===s){o=!0,a=l;break}}if(s&&o)n.clickedSlide=s,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=a;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}i.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var yh={updateSize:lh,updateSlides:ch,updateAutoHeight:uh,updateSlidesOffset:dh,updateSlidesProgress:fh,updateProgress:ph,updateSlidesClasses:hh,updateActiveIndex:vh,updateClickedSlide:gh};function wh(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:n,rtlTranslate:i,translate:s,wrapperEl:o}=e;if(n.virtualTranslate)return i?-s:s;if(n.cssMode)return s;let a=Kp(o,t);return a+=e.cssOverflowAdjustment(),i&&(a=-a),a||0}function bh(t,e){const n=this,{rtlTranslate:i,params:s,wrapperEl:o,progress:a}=n;let l=0,u=0;const c=0;n.isHorizontal()?l=i?-t:t:u=t,s.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:u,s.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-u:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${u}px, ${c}px)`);let d;const f=n.maxTranslate()-n.minTranslate();f===0?d=0:d=(t-n.minTranslate())/f,d!==a&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function Sh(){return-this.snapGrid[0]}function xh(){return-this.snapGrid[this.snapGrid.length-1]}function Th(t,e,n,i,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),i===void 0&&(i=!0);const o=this,{params:a,wrapperEl:l}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const u=o.minTranslate(),c=o.maxTranslate();let d;if(i&&t>u?d=u:i&&t<c?d=c:d=t,o.updateProgress(d),a.cssMode){const f=o.isHorizontal();if(e===0)l[f?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return Gr({swiper:o,targetPosition:-d,side:f?"left":"top"}),!0;l.scrollTo({[f?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(d),n&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(d),n&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(p){!o||o.destroyed||p.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}var Eh={getTranslate:wh,setTranslate:bh,minTranslate:Sh,maxTranslate:xh,translateTo:Th};function Vh(t,e){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${t}ms`,n.wrapperEl.style.transitionDelay=t===0?"0ms":""),n.emit("setTransition",t,e)}function Kr(t){let{swiper:e,runCallbacks:n,direction:i,step:s}=t;const{activeIndex:o,previousIndex:a}=e;let l=i;l||(o>a?l="next":o<a?l="prev":l="reset"),e.emit(`transition${s}`),n&&l==="reset"?e.emit(`slideResetTransition${s}`):n&&o!==a&&(e.emit(`slideChangeTransition${s}`),l==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`))}function Mh(t,e){t===void 0&&(t=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),Kr({swiper:n,runCallbacks:t,direction:e,step:"Start"}))}function Ch(t,e){t===void 0&&(t=!0);const n=this,{params:i}=n;n.animating=!1,!i.cssMode&&(n.setTransition(0),Kr({swiper:n,runCallbacks:t,direction:e,step:"End"}))}var Ph={setTransition:Vh,transitionStart:Mh,transitionEnd:Ch};function Ah(t,e,n,i,s){t===void 0&&(t=0),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const o=this;let a=t;a<0&&(a=0);const{params:l,snapGrid:u,slidesGrid:c,previousIndex:d,activeIndex:f,rtlTranslate:p,wrapperEl:h,enabled:m}=o;if(!m&&!i&&!s||o.destroyed||o.animating&&l.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=o.params.speed);const g=Math.min(o.params.slidesPerGroupSkip,a);let w=g+Math.floor((a-g)/o.params.slidesPerGroup);w>=u.length&&(w=u.length-1);const y=-u[w];if(l.normalizeSlideIndex)for(let B=0;B<c.length;B+=1){const V=-Math.floor(y*100),E=Math.floor(c[B]*100),P=Math.floor(c[B+1]*100);typeof c[B+1]<"u"?V>=E&&V<P-(P-E)/2?a=B:V>=E&&V<P&&(a=B+1):V>=E&&(a=B)}if(o.initialized&&a!==f&&(!o.allowSlideNext&&(p?y>o.translate&&y>o.minTranslate():y<o.translate&&y<o.minTranslate())||!o.allowSlidePrev&&y>o.translate&&y>o.maxTranslate()&&(f||0)!==a))return!1;a!==(d||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(y);let x;a>f?x="next":a<f?x="prev":x="reset";const T=o.virtual&&o.params.virtual.enabled;if(!(T&&s)&&(p&&-y===o.translate||!p&&y===o.translate))return o.updateActiveIndex(a),l.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),l.effect!=="slide"&&o.setTranslate(y),x!=="reset"&&(o.transitionStart(n,x),o.transitionEnd(n,x)),!1;if(l.cssMode){const B=o.isHorizontal(),V=p?y:-y;if(e===0)T&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),T&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[B?"scrollLeft":"scrollTop"]=V})):h[B?"scrollLeft":"scrollTop"]=V,T&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1});else{if(!o.support.smoothScroll)return Gr({swiper:o,targetPosition:V,side:B?"left":"top"}),!0;h.scrollTo({[B?"left":"top"]:V,behavior:"smooth"})}return!0}const A=Wr().isSafari;return T&&!s&&A&&o.isElement&&o.virtual.update(!1,!1,a),o.setTransition(e),o.setTranslate(y),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,i),o.transitionStart(n,x),e===0?o.transitionEnd(n,x):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(V){!o||o.destroyed||V.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,x))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function kh(t,e,n,i){t===void 0&&(t=0),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const o=s.grid&&s.params.grid&&s.params.grid.rows>1;let a=t;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)a=a+s.virtual.slidesBefore;else{let l;if(o){const p=a*s.params.grid.rows;l=s.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===p).column}else l=s.getSlideIndexByData(a);const u=o?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:c}=s.params;let d=s.params.slidesPerView;d==="auto"?d=s.slidesPerViewDynamic():(d=Math.ceil(parseFloat(s.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let f=u-l<d;if(c&&(f=f||l<Math.ceil(d/2)),i&&c&&s.params.slidesPerView!=="auto"&&!o&&(f=!1),f){const p=c?l<s.activeIndex?"prev":"next":l-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:p,slideTo:!0,activeSlideIndex:p==="next"?l+1:l-u+1,slideRealIndex:p==="next"?s.realIndex:void 0})}if(o){const p=a*s.params.grid.rows;a=s.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===p).column}else a=s.getSlideIndexByData(a)}return requestAnimationFrame(()=>{s.slideTo(a,e,n,i)}),s}function Bh(t,e,n){e===void 0&&(e=!0);const i=this,{enabled:s,params:o,animating:a}=i;if(!s||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);let l=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(l=Math.max(i.slidesPerViewDynamic("current",!0),1));const u=i.activeIndex<o.slidesPerGroupSkip?1:l,c=i.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+u,t,e,n)}),!0}return o.rewind&&i.isEnd?i.slideTo(0,t,e,n):i.slideTo(i.activeIndex+u,t,e,n)}function Lh(t,e,n){e===void 0&&(e=!0);const i=this,{params:s,snapGrid:o,slidesGrid:a,rtlTranslate:l,enabled:u,animating:c}=i;if(!u||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);const d=i.virtual&&s.virtual.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}const f=l?i.translate:-i.translate;function p(x){return x<0?-Math.floor(Math.abs(x)):Math.floor(x)}const h=p(f),m=o.map(x=>p(x)),g=s.freeMode&&s.freeMode.enabled;let w=o[m.indexOf(h)-1];if(typeof w>"u"&&(s.cssMode||g)){let x;o.forEach((T,C)=>{h>=T&&(x=C)}),typeof x<"u"&&(w=g?o[x]:o[x>0?x-1:x])}let y=0;if(typeof w<"u"&&(y=a.indexOf(w),y<0&&(y=i.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(y=y-i.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),s.rewind&&i.isBeginning){const x=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(x,t,e,n)}else if(s.loop&&i.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{i.slideTo(y,t,e,n)}),!0;return i.slideTo(y,t,e,n)}function Dh(t,e,n){e===void 0&&(e=!0);const i=this;if(!i.destroyed)return typeof t>"u"&&(t=i.params.speed),i.slideTo(i.activeIndex,t,e,n)}function Ih(t,e,n,i){e===void 0&&(e=!0),i===void 0&&(i=.5);const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);let o=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,o),l=a+Math.floor((o-a)/s.params.slidesPerGroup),u=s.rtlTranslate?s.translate:-s.translate;if(u>=s.snapGrid[l]){const c=s.snapGrid[l],d=s.snapGrid[l+1];u-c>(d-c)*i&&(o+=s.params.slidesPerGroup)}else{const c=s.snapGrid[l-1],d=s.snapGrid[l];u-c<=(d-c)*i&&(o-=s.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,s.slidesGrid.length-1),s.slideTo(o,t,e,n)}function Nh(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:n}=t,i=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let s=t.getSlideIndexWhenGrid(t.clickedIndex),o;const a=t.isElement?"swiper-slide":`.${e.slideClass}`,l=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;o=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(o):s>(l?(t.slides.length-i)/2-(t.params.grid.rows-1):t.slides.length-i)?(t.loopFix(),s=t.getSlideIndex(ve(n,`${a}[data-swiper-slide-index="${o}"]`)[0]),Zr(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}var _h={slideTo:Ah,slideToLoop:kh,slideNext:Bh,slidePrev:Lh,slideReset:Dh,slideToClosest:Ih,slideToClickedSlide:Nh};function Rh(t,e){const n=this,{params:i,slidesEl:s}=n;if(!i.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{ve(s,`.${i.slideClass}, swiper-slide`).forEach((h,m)=>{h.setAttribute("data-swiper-slide-index",m)})},a=()=>{const p=ve(s,`.${i.slideBlankClass}`);p.forEach(h=>{h.remove()}),p.length>0&&(n.recalcSlides(),n.updateSlides())},l=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||l)&&a();const u=i.slidesPerGroup*(l?i.grid.rows:1),c=n.slides.length%u!==0,d=l&&n.slides.length%i.grid.rows!==0,f=p=>{for(let h=0;h<p;h+=1){const m=n.isElement?An("swiper-slide",[i.slideBlankClass]):An("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(m)}};if(c){if(i.loopAddBlankSlides){const p=u-n.slides.length%u;f(p),n.recalcSlides(),n.updateSlides()}else Ot("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else if(d){if(i.loopAddBlankSlides){const p=i.grid.rows-n.slides.length%i.grid.rows;f(p),n.recalcSlides(),n.updateSlides()}else Ot("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");o()}else o();n.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next",initial:e})}function Oh(t){let{slideRealIndex:e,slideTo:n=!0,direction:i,setTranslate:s,activeSlideIndex:o,initial:a,byController:l,byMousewheel:u}=t===void 0?{}:t;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:f,allowSlideNext:p,slidesEl:h,params:m}=c,{centeredSlides:g,initialSlide:w}=m;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&m.virtual.enabled){n&&(!m.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):m.centeredSlides&&c.snapIndex<m.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=f,c.allowSlideNext=p,c.emit("loopFix");return}let y=m.slidesPerView;y==="auto"?y=c.slidesPerViewDynamic():(y=Math.ceil(parseFloat(m.slidesPerView,10)),g&&y%2===0&&(y=y+1));const x=m.slidesPerGroupAuto?y:m.slidesPerGroup;let T=g?Math.max(x,Math.ceil(y/2)):x;T%x!==0&&(T+=x-T%x),T+=m.loopAdditionalSlides,c.loopedSlides=T;const C=c.grid&&m.grid&&m.grid.rows>1;d.length<y+T||c.params.effect==="cards"&&d.length<y+T*2?Ot("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):C&&m.grid.fill==="row"&&Ot("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const S=[],A=[],B=C?Math.ceil(d.length/m.grid.rows):d.length,V=a&&B-w<y&&!g;let E=V?w:c.activeIndex;typeof o>"u"?o=c.getSlideIndex(d.find(z=>z.classList.contains(m.slideActiveClass))):E=o;const P=i==="next"||!i,L=i==="prev"||!i;let O=0,$=0;const ne=(C?d[o].column:o)+(g&&typeof s>"u"?-y/2+.5:0);if(ne<T){O=Math.max(T-ne,x);for(let z=0;z<T-ne;z+=1){const F=z-Math.floor(z/B)*B;if(C){const I=B-F-1;for(let j=d.length-1;j>=0;j-=1)d[j].column===I&&S.push(j)}else S.push(B-F-1)}}else if(ne+y>B-T){$=Math.max(ne-(B-T*2),x),V&&($=Math.max($,y-B+w+1));for(let z=0;z<$;z+=1){const F=z-Math.floor(z/B)*B;C?d.forEach((I,j)=>{I.column===F&&A.push(j)}):A.push(F)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&d.length<y+T*2&&(A.includes(o)&&A.splice(A.indexOf(o),1),S.includes(o)&&S.splice(S.indexOf(o),1)),L&&S.forEach(z=>{d[z].swiperLoopMoveDOM=!0,h.prepend(d[z]),d[z].swiperLoopMoveDOM=!1}),P&&A.forEach(z=>{d[z].swiperLoopMoveDOM=!0,h.append(d[z]),d[z].swiperLoopMoveDOM=!1}),c.recalcSlides(),m.slidesPerView==="auto"?c.updateSlides():C&&(S.length>0&&L||A.length>0&&P)&&c.slides.forEach((z,F)=>{c.grid.updateSlide(F,z,c.slides)}),m.watchSlidesProgress&&c.updateSlidesOffset(),n){if(S.length>0&&L){if(typeof e>"u"){const z=c.slidesGrid[E],I=c.slidesGrid[E+O]-z;u?c.setTranslate(c.translate-I):(c.slideTo(E+Math.ceil(O),0,!1,!0),s&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-I,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-I))}else if(s){const z=C?S.length/m.grid.rows:S.length;c.slideTo(c.activeIndex+z,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(A.length>0&&P)if(typeof e>"u"){const z=c.slidesGrid[E],I=c.slidesGrid[E-$]-z;u?c.setTranslate(c.translate-I):(c.slideTo(E-$,0,!1,!0),s&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-I,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-I))}else{const z=C?A.length/m.grid.rows:A.length;c.slideTo(c.activeIndex-z,0,!1,!0)}}if(c.allowSlidePrev=f,c.allowSlideNext=p,c.controller&&c.controller.control&&!l){const z={slideRealIndex:e,direction:i,setTranslate:s,activeSlideIndex:o,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(F=>{!F.destroyed&&F.params.loop&&F.loopFix({...z,slideTo:F.params.slidesPerView===m.slidesPerView?n:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...z,slideTo:c.controller.control.params.slidesPerView===m.slidesPerView?n:!1})}c.emit("loopFix")}function zh(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||!n||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const i=[];t.slides.forEach(s=>{const o=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;i[o]=s}),t.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),i.forEach(s=>{n.append(s)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Fh={loopCreate:Rh,loopFix:Oh,loopDestroy:zh};function $h(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function jh(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Zh={setGrabCursor:$h,unsetGrabCursor:jh};function Gh(t,e){e===void 0&&(e=this);function n(i){if(!i||i===de()||i===te())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(t);return!s&&!i.getRootNode?null:s||n(i.getRootNode().host)}return n(e)}function Xs(t,e,n){const i=te(),{params:s}=t,o=s.edgeSwipeDetection,a=s.edgeSwipeThreshold;return o&&(n<=a||n>=i.innerWidth-a)?o==="prevent"?(e.preventDefault(),!0):!1:!0}function Uh(t){const e=this,n=de();let i=t;i.originalEvent&&(i=i.originalEvent);const s=e.touchEventsData;if(i.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==i.pointerId)return;s.pointerId=i.pointerId}else i.type==="touchstart"&&i.targetTouches.length===1&&(s.touchId=i.targetTouches[0].identifier);if(i.type==="touchstart"){Xs(e,i,i.targetTouches[0].pageX);return}const{params:o,touches:a,enabled:l}=e;if(!l||!o.simulateTouch&&i.pointerType==="mouse"||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let u=i.target;if(o.touchEventsTarget==="wrapper"&&!Jp(u,e.wrapperEl)||"which"in i&&i.which===3||"button"in i&&i.button>0||s.isTouched&&s.isMoved)return;const c=!!o.noSwipingClass&&o.noSwipingClass!=="",d=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&d&&(u=d[0]);const f=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!!(i.target&&i.target.shadowRoot);if(o.noSwiping&&(p?Gh(f,u):u.closest(f))){e.allowClick=!0;return}if(o.swipeHandler&&!u.closest(o.swipeHandler))return;a.currentX=i.pageX,a.currentY=i.pageY;const h=a.currentX,m=a.currentY;if(!Xs(e,i,h))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=m,s.touchStartTime=Rt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(s.allowThresholdMove=!1);let g=!0;u.matches(s.focusableElements)&&(g=!1,u.nodeName==="SELECT"&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==u&&(i.pointerType==="mouse"||i.pointerType!=="mouse"&&!u.matches(s.focusableElements))&&n.activeElement.blur();const w=g&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||w)&&!u.isContentEditable&&i.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",i)}function Xh(t){const e=de(),n=this,i=n.touchEventsData,{params:s,touches:o,rtlTranslate:a,enabled:l}=n;if(!l||!s.simulateTouch&&t.pointerType==="mouse")return;let u=t;if(u.originalEvent&&(u=u.originalEvent),u.type==="pointermove"&&(i.touchId!==null||u.pointerId!==i.pointerId))return;let c;if(u.type==="touchmove"){if(c=[...u.changedTouches].find(S=>S.identifier===i.touchId),!c||c.identifier!==i.touchId)return}else c=u;if(!i.isTouched){i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",u);return}const d=c.pageX,f=c.pageY;if(u.preventedByNestedSwiper){o.startX=d,o.startY=f;return}if(!n.allowTouchMove){u.target.matches(i.focusableElements)||(n.allowClick=!1),i.isTouched&&(Object.assign(o,{startX:d,startY:f,currentX:d,currentY:f}),i.touchStartTime=Rt());return}if(s.touchReleaseOnEdges&&!s.loop)if(n.isVertical()){if(f<o.startY&&n.translate<=n.maxTranslate()||f>o.startY&&n.translate>=n.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else{if(a&&(d>o.startX&&-n.translate<=n.maxTranslate()||d<o.startX&&-n.translate>=n.minTranslate()))return;if(!a&&(d<o.startX&&n.translate<=n.maxTranslate()||d>o.startX&&n.translate>=n.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(i.focusableElements)&&e.activeElement!==u.target&&u.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&u.target===e.activeElement&&u.target.matches(i.focusableElements)){i.isMoved=!0,n.allowClick=!1;return}i.allowTouchCallbacks&&n.emit("touchMove",u),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=d,o.currentY=f;const p=o.currentX-o.startX,h=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(typeof i.isScrolling>"u"){let S;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?i.isScrolling=!1:p*p+h*h>=25&&(S=Math.atan2(Math.abs(h),Math.abs(p))*180/Math.PI,i.isScrolling=n.isHorizontal()?S>s.touchAngle:90-S>s.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",u),typeof i.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(i.startMoving=!0),i.isScrolling||u.type==="touchmove"&&i.preventTouchMoveFromPointerMove){i.isTouched=!1;return}if(!i.startMoving)return;n.allowClick=!1,!s.cssMode&&u.cancelable&&u.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&u.stopPropagation();let m=n.isHorizontal()?p:h,g=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;s.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),o.diff=m,m*=s.touchRatio,a&&(m=-m,g=-g);const w=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=g>0?"prev":"next";const y=n.params.loop&&!s.cssMode,x=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!i.isMoved){if(y&&x&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const S=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(S)}i.allowMomentumBounce=!1,s.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",u)}if(new Date().getTime(),s._loopSwapReset!==!1&&i.isMoved&&i.allowThresholdMove&&w!==n.touchesDirection&&y&&x&&Math.abs(m)>=1){Object.assign(o,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,i.startTranslate=i.currentTranslate;return}n.emit("sliderMove",u),i.isMoved=!0,i.currentTranslate=m+i.startTranslate;let T=!0,C=s.resistanceRatio;if(s.touchReleaseOnEdges&&(C=0),m>0?(y&&x&&i.allowThresholdMove&&i.currentTranslate>(s.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(s.slidesPerView!=="auto"&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(T=!1,s.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+m)**C))):m<0&&(y&&x&&i.allowThresholdMove&&i.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(s.slidesPerView!=="auto"&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(s.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(T=!1,s.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-m)**C))),T&&(u.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(i.currentTranslate=i.startTranslate),s.threshold>0)if(Math.abs(m)>s.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{i.currentTranslate=i.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function Hh(t){const e=this,n=e.touchEventsData;let i=t;i.originalEvent&&(i=i.originalEvent);let s;if(i.type==="touchend"||i.type==="touchcancel"){if(s=[...i.changedTouches].find(S=>S.identifier===n.touchId),!s||s.identifier!==n.touchId)return}else{if(n.touchId!==null||i.pointerId!==n.pointerId)return;s=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(e.browser.isSafari||e.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:a,touches:l,rtlTranslate:u,slidesGrid:c,enabled:d}=e;if(!d||!a.simulateTouch&&i.pointerType==="mouse")return;if(n.allowTouchCallbacks&&e.emit("touchEnd",i),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=Rt(),p=f-n.touchStartTime;if(e.allowClick){const S=i.path||i.composedPath&&i.composedPath();e.updateClickedSlide(S&&S[0]||i.target,S),e.emit("tap click",i),p<300&&f-n.lastClickTime<300&&e.emit("doubleTap doubleClick",i)}if(n.lastClickTime=Rt(),Zr(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||l.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let h;if(a.followFinger?h=u?e.translate:-e.translate:h=-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:h});return}const m=h>=-e.maxTranslate()&&!e.params.loop;let g=0,w=e.slidesSizesGrid[0];for(let S=0;S<c.length;S+=S<a.slidesPerGroupSkip?1:a.slidesPerGroup){const A=S<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[S+A]<"u"?(m||h>=c[S]&&h<c[S+A])&&(g=S,w=c[S+A]-c[S]):(m||h>=c[S])&&(g=S,w=c[c.length-1]-c[c.length-2])}let y=null,x=null;a.rewind&&(e.isBeginning?x=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(y=0));const T=(h-c[g])/w,C=g<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(p>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(T>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?y:g+C):e.slideTo(g)),e.swipeDirection==="prev"&&(T>1-a.longSwipesRatio?e.slideTo(g+C):x!==null&&T<0&&Math.abs(T)>a.longSwipesRatio?e.slideTo(x):e.slideTo(g))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(i.target===e.navigation.nextEl||i.target===e.navigation.prevEl)?i.target===e.navigation.nextEl?e.slideTo(g+C):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(y!==null?y:g+C),e.swipeDirection==="prev"&&e.slideTo(x!==null?x:g))}}function Hs(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:o}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const l=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!l?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=s,t.allowSlideNext=i,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function Wh(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Kh(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:i}=t;if(!i)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let s;const o=t.maxTranslate()-t.minTranslate();o===0?s=0:s=(t.translate-t.minTranslate())/o,s!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function qh(t){const e=this;Et(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Yh(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const qr=(t,e)=>{const n=de(),{params:i,el:s,wrapperEl:o,device:a}=t,l=!!i.nested,u=e==="on"?"addEventListener":"removeEventListener",c=e;!s||typeof s=="string"||(n[u]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:l}),s[u]("touchstart",t.onTouchStart,{passive:!1}),s[u]("pointerdown",t.onTouchStart,{passive:!1}),n[u]("touchmove",t.onTouchMove,{passive:!1,capture:l}),n[u]("pointermove",t.onTouchMove,{passive:!1,capture:l}),n[u]("touchend",t.onTouchEnd,{passive:!0}),n[u]("pointerup",t.onTouchEnd,{passive:!0}),n[u]("pointercancel",t.onTouchEnd,{passive:!0}),n[u]("touchcancel",t.onTouchEnd,{passive:!0}),n[u]("pointerout",t.onTouchEnd,{passive:!0}),n[u]("pointerleave",t.onTouchEnd,{passive:!0}),n[u]("contextmenu",t.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&s[u]("click",t.onClick,!0),i.cssMode&&o[u]("scroll",t.onScroll),i.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Hs,!0):t[c]("observerUpdate",Hs,!0),s[u]("load",t.onLoad,{capture:!0}))};function Jh(){const t=this,{params:e}=t;t.onTouchStart=Uh.bind(t),t.onTouchMove=Xh.bind(t),t.onTouchEnd=Hh.bind(t),t.onDocumentTouchStart=Yh.bind(t),e.cssMode&&(t.onScroll=Kh.bind(t)),t.onClick=Wh.bind(t),t.onLoad=qh.bind(t),qr(t,"on")}function Qh(){qr(this,"off")}var em={attachEvents:Jh,detachEvents:Qh};const Ws=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function tm(){const t=this,{realIndex:e,initialized:n,params:i,el:s}=t,o=i.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=de(),l=i.breakpointsBase==="window"||!i.breakpointsBase?i.breakpointsBase:"container",u=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?t.el:a.querySelector(i.breakpointsBase),c=t.getBreakpoint(o,l,u);if(!c||t.currentBreakpoint===c)return;const f=(c in o?o[c]:void 0)||t.originalParams,p=Ws(t,i),h=Ws(t,f),m=t.params.grabCursor,g=f.grabCursor,w=i.enabled;p&&!h?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),t.emitContainerClasses()):!p&&h&&(s.classList.add(`${i.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&i.grid.fill==="column")&&s.classList.add(`${i.containerModifierClass}grid-column`),t.emitContainerClasses()),m&&!g?t.unsetGrabCursor():!m&&g&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(A=>{if(typeof f[A]>"u")return;const B=i[A]&&i[A].enabled,V=f[A]&&f[A].enabled;B&&!V&&t[A].disable(),!B&&V&&t[A].enable()});const y=f.direction&&f.direction!==i.direction,x=i.loop&&(f.slidesPerView!==i.slidesPerView||y),T=i.loop;y&&n&&t.changeDirection(),se(t.params,f);const C=t.params.enabled,S=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),w&&!C?t.disable():!w&&C&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",f),n&&(x?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!T&&S?(t.loopCreate(e),t.updateSlides()):T&&!S&&t.loopDestroy()),t.emit("breakpoint",f)}function nm(t,e,n){if(e===void 0&&(e="window"),!t||e==="container"&&!n)return;let i=!1;const s=te(),o=e==="window"?s.innerHeight:n.clientHeight,a=Object.keys(t).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const u=parseFloat(l.substr(1));return{value:o*u,point:l}}return{value:l,point:l}});a.sort((l,u)=>parseInt(l.value,10)-parseInt(u.value,10));for(let l=0;l<a.length;l+=1){const{point:u,value:c}=a[l];e==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(i=u):c<=n.clientWidth&&(i=u)}return i||"max"}var im={setBreakpoint:tm,getBreakpoint:nm};function sm(t,e){const n=[];return t.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(s=>{i[s]&&n.push(e+s)}):typeof i=="string"&&n.push(e+i)}),n}function om(){const t=this,{classNames:e,params:n,rtl:i,el:s,device:o}=t,a=sm(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...a),s.classList.add(...e),t.emitContainerClasses()}function rm(){const t=this,{el:e,classNames:n}=t;!e||typeof e=="string"||(e.classList.remove(...n),t.emitContainerClasses())}var am={addClasses:om,removeClasses:rm};function lm(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:i}=n;if(i){const s=t.slides.length-1,o=t.slidesGrid[s]+t.slidesSizesGrid[s]+i*2;t.isLocked=t.size>o}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var cm={checkOverflow:lm},Bn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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,loopAddBlankSlides:!0,loopAdditionalSlides:0,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",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function um(t,e){return function(i){i===void 0&&(i={});const s=Object.keys(i)[0],o=i[s];if(typeof o!="object"||o===null){se(e,i);return}if(t[s]===!0&&(t[s]={enabled:!0}),s==="navigation"&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),!(s in t&&"enabled"in o)){se(e,i);return}typeof t[s]=="object"&&!("enabled"in t[s])&&(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),se(e,i)}}const dn={eventsEmitter:ah,update:yh,translate:Eh,transition:Ph,slide:_h,loop:Fh,grabCursor:Zh,events:em,breakpoints:im,checkOverflow:cm,classes:am},fn={};let ui=class me{constructor(){let e,n;for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?n=s[0]:[e,n]=s,n||(n={}),n=se({},n),e&&!n.el&&(n.el=e);const a=de();if(n.el&&typeof n.el=="string"&&a.querySelectorAll(n.el).length>1){const d=[];return a.querySelectorAll(n.el).forEach(f=>{const p=se({},n,{el:f});d.push(new me(p))}),d}const l=this;l.__swiper__=!0,l.support=Xr(),l.device=Hr({userAgent:n.userAgent}),l.browser=Wr(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],n.modules&&Array.isArray(n.modules)&&l.modules.push(...n.modules);const u={};l.modules.forEach(d=>{d({params:n,swiper:l,extendParams:um(n,u),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const c=se({},Bn,u);return l.params=se({},c,fn,n),l.originalParams=se({},l.params),l.passedParams=se({},n),l.params&&l.params.on&&Object.keys(l.params.on).forEach(d=>{l.on(d,l.params.on[d])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.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:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.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]}getSlideIndex(e){const{slidesEl:n,params:i}=this,s=ve(n,`.${i.slideClass}, swiper-slide`),o=js(s[0]);return js(e)-o}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill==="row"&&(e=e%Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const e=this,{slidesEl:n,params:i}=e;e.slides=ve(n,`.${i.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const i=this;e=Math.min(Math.max(e,0),1);const s=i.minTranslate(),a=(i.maxTranslate()-s)*e+s;i.translateTo(a,typeof n>"u"?0:n),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.forEach(i=>{const s=e.getSlideClasses(i);n.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e,n){e===void 0&&(e="current"),n===void 0&&(n=!1);const i=this,{params:s,slides:o,slidesGrid:a,slidesSizesGrid:l,size:u,activeIndex:c}=i;let d=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let f=o[c]?Math.ceil(o[c].swiperSlideSize):0,p;for(let h=c+1;h<o.length;h+=1)o[h]&&!p&&(f+=Math.ceil(o[h].swiperSlideSize),d+=1,f>u&&(p=!0));for(let h=c-1;h>=0;h-=1)o[h]&&!p&&(f+=o[h].swiperSlideSize,d+=1,f>u&&(p=!0))}else if(e==="current")for(let f=c+1;f<o.length;f+=1)(n?a[f]+l[f]-a[c]<u:a[f]-a[c]<u)&&(d+=1);else for(let f=c-1;f>=0;f-=1)a[c]-a[f]<u&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:i}=e;i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Et(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const a=e.rtlTranslate?e.translate*-1:e.translate,l=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(l),e.updateActiveIndex(),e.updateSlidesClasses()}let o;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode)s(),i.autoHeight&&e.updateAutoHeight();else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const a=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;o=e.slideTo(a.length-1,0,!1,!0)}else o=e.slideTo(e.activeIndex,0,!1,!0);o||s()}i.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n){n===void 0&&(n=!0);const i=this,s=i.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach(o=>{e==="vertical"?o.style.width="":o.style.height=""}),i.emit("changeDirection"),n&&i.update()),i}changeLanguageDirection(e){const n=this;n.rtl&&e==="rtl"||!n.rtl&&e==="ltr"||(n.rtl=e==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;let i=e||n.params.el;if(typeof i=="string"&&(i=document.querySelector(i)),!i)return!1;i.swiper=n,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const s=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):ve(i,s())[0];return!a&&n.params.createElements&&(a=An("div",n.params.wrapperClass),i.append(a),ve(i,`.${n.params.slideClass}`).forEach(l=>{a.append(l)})),Object.assign(n,{el:i,wrapperEl:a,slidesEl:n.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:a,hostEl:n.isElement?i.parentNode.host:i,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||xe(i,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||xe(i,"direction")==="rtl"),wrongRTL:xe(a,"display")==="-webkit-box"}),!0}init(e){const n=this;if(n.initialized||n.mount(e)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const s=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&s.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(o=>{o.complete?Et(n,o):o.addEventListener("load",a=>{Et(n,a.target)})}),kn(n),n.initialized=!0,kn(n),n.emit("init"),n.emit("afterInit"),n}destroy(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0);const i=this,{params:s,el:o,wrapperEl:a,slides:l}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),n&&(i.removeClasses(),o&&typeof o!="string"&&o.removeAttribute("style"),a&&a.removeAttribute("style"),l&&l.length&&l.forEach(u=>{u.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),u.removeAttribute("style"),u.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(u=>{i.off(u)}),e!==!1&&(i.el&&typeof i.el!="string"&&(i.el.swiper=null),Hp(i)),i.destroyed=!0),null}static extendDefaults(e){se(fn,e)}static get extendedDefaults(){return fn}static get defaults(){return Bn}static installModule(e){me.prototype.__modules__||(me.prototype.__modules__=[]);const n=me.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>me.installModule(n)),me):(me.installModule(e),me)}};Object.keys(dn).forEach(t=>{Object.keys(dn[t]).forEach(e=>{ui.prototype[e]=dn[t][e]})});ui.use([oh,rh]);const Yr=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_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","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","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 Re(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Ze(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(i=>n.indexOf(i)<0).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Re(e[i])&&Re(t[i])&&Object.keys(e[i]).length>0?e[i].__swiper__?t[i]=e[i]:Ze(t[i],e[i]):t[i]=e[i]})}function Jr(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Qr(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function ea(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function ta(t){t===void 0&&(t="");const e=t.split(" ").map(i=>i.trim()).filter(i=>!!i),n=[];return e.forEach(i=>{n.indexOf(i)<0&&n.push(i)}),n.join(" ")}function dm(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function fm(t){let{swiper:e,slides:n,passedParams:i,changedParams:s,nextEl:o,prevEl:a,scrollbarEl:l,paginationEl:u}=t;const c=s.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:d,pagination:f,navigation:p,scrollbar:h,virtual:m,thumbs:g}=e;let w,y,x,T,C,S,A,B;s.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&!i.thumbs.swiper.destroyed&&d.thumbs&&(!d.thumbs.swiper||d.thumbs.swiper.destroyed)&&(w=!0),s.includes("controller")&&i.controller&&i.controller.control&&d.controller&&!d.controller.control&&(y=!0),s.includes("pagination")&&i.pagination&&(i.pagination.el||u)&&(d.pagination||d.pagination===!1)&&f&&!f.el&&(x=!0),s.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||l)&&(d.scrollbar||d.scrollbar===!1)&&h&&!h.el&&(T=!0),s.includes("navigation")&&i.navigation&&(i.navigation.prevEl||a)&&(i.navigation.nextEl||o)&&(d.navigation||d.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(C=!0);const V=E=>{e[E]&&(e[E].destroy(),E==="navigation"?(e.isElement&&(e[E].prevEl.remove(),e[E].nextEl.remove()),d[E].prevEl=void 0,d[E].nextEl=void 0,e[E].prevEl=void 0,e[E].nextEl=void 0):(e.isElement&&e[E].el.remove(),d[E].el=void 0,e[E].el=void 0))};s.includes("loop")&&e.isElement&&(d.loop&&!i.loop?S=!0:!d.loop&&i.loop?A=!0:B=!0),c.forEach(E=>{if(Re(d[E])&&Re(i[E]))Object.assign(d[E],i[E]),(E==="navigation"||E==="pagination"||E==="scrollbar")&&"enabled"in i[E]&&!i[E].enabled&&V(E);else{const P=i[E];(P===!0||P===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?P===!1&&V(E):d[E]=i[E]}}),c.includes("controller")&&!y&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),s.includes("children")&&n&&m&&d.virtual.enabled?(m.slides=n,m.update(!0)):s.includes("virtual")&&m&&d.virtual.enabled&&(n&&(m.slides=n),m.update(!0)),s.includes("children")&&n&&d.loop&&(B=!0),w&&g.init()&&g.update(!0),y&&(e.controller.control=d.controller.control),x&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-pagination"),u.part.add("pagination"),e.el.appendChild(u)),u&&(d.pagination.el=u),f.init(),f.render(),f.update()),T&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),l.part.add("scrollbar"),e.el.appendChild(l)),l&&(d.scrollbar.el=l),h.init(),h.updateSize(),h.setTranslate()),C&&(e.isElement&&((!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-next"),Gs(o,e.hostEl.constructor.nextButtonSvg),o.part.add("button-next"),e.el.appendChild(o)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),Gs(a,e.hostEl.constructor.prevButtonSvg),a.part.add("button-prev"),e.el.appendChild(a))),o&&(d.navigation.nextEl=o),a&&(d.navigation.prevEl=a),p.init(),p.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),s.includes("direction")&&e.changeDirection(i.direction,!1),(S||B)&&e.loopDestroy(),(A||B)&&e.loopCreate(),e.update()}function Ks(t,e){t===void 0&&(t={});const n={on:{}},i={},s={};Ze(n,Bn),n._emitClasses=!0,n.init=!1;const o={},a=Yr.map(u=>u.replace(/_/,"")),l=Object.assign({},t);return Object.keys(l).forEach(u=>{typeof t[u]>"u"||(a.indexOf(u)>=0?Re(t[u])?(n[u]={},s[u]={},Ze(n[u],t[u]),Ze(s[u],t[u])):(n[u]=t[u],s[u]=t[u]):u.search(/on[A-Z]/)===0&&typeof t[u]=="function"?n.on[`${u[2].toLowerCase()}${u.substr(3)}`]=t[u]:o[u]=t[u])}),["navigation","pagination","scrollbar"].forEach(u=>{n[u]===!0&&(n[u]={}),n[u]===!1&&delete n[u]}),{params:n,passedParams:s,rest:o,events:i}}function pm(t,e){let{el:n,nextEl:i,prevEl:s,paginationEl:o,scrollbarEl:a,swiper:l}=t;Jr(e)&&i&&s&&(l.params.navigation.nextEl=i,l.originalParams.navigation.nextEl=i,l.params.navigation.prevEl=s,l.originalParams.navigation.prevEl=s),Qr(e)&&o&&(l.params.pagination.el=o,l.originalParams.pagination.el=o),ea(e)&&a&&(l.params.scrollbar.el=a,l.originalParams.scrollbar.el=a),l.init(n)}function hm(t,e,n,i,s){const o=[];if(!e)return o;const a=u=>{o.indexOf(u)<0&&o.push(u)};if(n&&i){const u=i.map(s),c=n.map(s);u.join("")!==c.join("")&&a("children"),i.length!==n.length&&a("children")}return Yr.filter(u=>u[0]==="_").map(u=>u.replace(/_/,"")).forEach(u=>{if(u in t&&u in e)if(Re(t[u])&&Re(e[u])){const c=Object.keys(t[u]),d=Object.keys(e[u]);c.length!==d.length?a(u):(c.forEach(f=>{t[u][f]!==e[u][f]&&a(u)}),d.forEach(f=>{t[u][f]!==e[u][f]&&a(u)}))}else t[u]!==e[u]&&a(u)}),o}const mm=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.emit("_virtualUpdated"),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function pn(t,e,n){t===void 0&&(t={});const i=[],s={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},o=(a,l)=>{Array.isArray(a)&&a.forEach(u=>{const c=typeof u.type=="symbol";l==="default"&&(l="container-end"),c&&u.children?o(u.children,l):u.type&&(u.type.name==="SwiperSlide"||u.type.name==="AsyncComponentWrapper")||u.componentOptions&&u.componentOptions.tag==="SwiperSlide"?i.push(u):s[l]&&s[l].push(u)})};return Object.keys(t).forEach(a=>{if(typeof t[a]!="function")return;const l=t[a]();o(l,a)}),n.value=e.value,e.value=i,{slides:i,slots:s}}function vm(t,e,n){if(!n)return null;const i=d=>{let f=d;return d<0?f=e.length+d:f>=e.length&&(f=f-e.length),f},s=t.value.isHorizontal()?{[t.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:a}=n,l=t.value.params.loop?-e.length:0,u=t.value.params.loop?e.length*2:e.length,c=[];for(let d=l;d<u;d+=1)d>=o&&d<=a&&c.length<e.length&&c.push(e[i(d)]);return c.map(d=>{if(d.props||(d.props={}),d.props.style||(d.props.style={}),d.props.swiperRef=t,d.props.style=s,d.type)return r.h(d.type,{...d.props},d.children);if(d.componentOptions)return r.h(d.componentOptions.Ctor,{...d.props},d.componentOptions.children)})}const na={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopAddBlankSlides:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","_virtualUpdated","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(t,e){let{slots:n,emit:i}=e;const{tag:s,wrapperTag:o}=t,a=r.ref("swiper"),l=r.ref(null),u=r.ref(!1),c=r.ref(!1),d=r.ref(null),f=r.ref(null),p=r.ref(null),h={value:[]},m={value:[]},g=r.ref(null),w=r.ref(null),y=r.ref(null),x=r.ref(null),{params:T,passedParams:C}=Ks(t);pn(n,h,m),p.value=C,m.value=h.value;const S=()=>{pn(n,h,m),u.value=!0};T.onAny=function(V){for(var E=arguments.length,P=new Array(E>1?E-1:0),L=1;L<E;L++)P[L-1]=arguments[L];i(V,...P)},Object.assign(T.on,{_beforeBreakpoint:S,_containerClasses(V,E){a.value=E}});const A={...T};if(delete A.wrapperClass,f.value=new ui(A),f.value.virtual&&f.value.params.virtual.enabled){f.value.virtual.slides=h.value;const V={cache:!1,slides:h.value,renderExternal:E=>{l.value=E},renderExternalUpdate:!1};Ze(f.value.params.virtual,V),Ze(f.value.originalParams.virtual,V)}r.onUpdated(()=>{!c.value&&f.value&&(f.value.emitSlidesClasses(),c.value=!0);const{passedParams:V}=Ks(t),E=hm(V,p.value,h.value,m.value,P=>P.props&&P.props.key);p.value=V,(E.length||u.value)&&f.value&&!f.value.destroyed&&fm({swiper:f.value,slides:h.value,passedParams:V,changedParams:E,nextEl:g.value,prevEl:w.value,scrollbarEl:x.value,paginationEl:y.value}),u.value=!1}),r.provide("swiper",f),r.watch(l,()=>{r.nextTick(()=>{mm(f.value)})}),r.onMounted(()=>{d.value&&(pm({el:d.value,nextEl:g.value,prevEl:w.value,paginationEl:y.value,scrollbarEl:x.value,swiper:f.value},T),i("swiper",f.value))}),r.onBeforeUnmount(()=>{f.value&&!f.value.destroyed&&f.value.destroy(!0,!1)});function B(V){return T.virtual?vm(f,V,l.value):(V.forEach((E,P)=>{E.props||(E.props={}),E.props.swiperRef=f,E.props.swiperSlideIndex=P}),V)}return()=>{const{slides:V,slots:E}=pn(n,h,m);return r.h(s,{ref:d,class:ta(a.value)},[E["container-start"],r.h(o,{class:dm(T.wrapperClass)},[E["wrapper-start"],B(V),E["wrapper-end"]]),Jr(t)&&[r.h("div",{ref:w,class:"swiper-button-prev"}),r.h("div",{ref:g,class:"swiper-button-next"})],ea(t)&&r.h("div",{ref:x,class:"swiper-scrollbar"}),Qr(t)&&r.h("div",{ref:y,class:"swiper-pagination"}),E["container-end"]])}}},ia={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(t,e){let{slots:n}=e,i=!1;const{swiperRef:s}=t,o=r.ref(null),a=r.ref("swiper-slide"),l=r.ref(!1);function u(f,p,h){p===o.value&&(a.value=h)}r.onMounted(()=>{!s||!s.value||(s.value.on("_slideClass",u),i=!0)}),r.onBeforeUpdate(()=>{i||!s||!s.value||(s.value.on("_slideClass",u),i=!0)}),r.onUpdated(()=>{!o.value||!s||!s.value||(typeof t.swiperSlideIndex<"u"&&(o.value.swiperSlideIndex=t.swiperSlideIndex),s.value.destroyed&&a.value!=="swiper-slide"&&(a.value="swiper-slide"))}),r.onBeforeUnmount(()=>{!s||!s.value||s.value.off("_slideClass",u)});const c=r.computed(()=>({isActive:a.value.indexOf("swiper-slide-active")>=0,isVisible:a.value.indexOf("swiper-slide-visible")>=0,isPrev:a.value.indexOf("swiper-slide-prev")>=0,isNext:a.value.indexOf("swiper-slide-next")>=0}));r.provide("swiperSlide",c);const d=()=>{l.value=!0};return()=>r.h(t.tag,{class:ta(`${a.value}`),ref:o,"data-swiper-slide-index":typeof t.virtualIndex>"u"&&s&&s.value&&s.value.params.loop?t.swiperSlideIndex:t.virtualIndex,onLoadCapture:d},t.zoom?r.h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof t.zoom=="number"?t.zoom:void 0},[n.default&&n.default(c.value),t.lazy&&!l.value&&r.h("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(c.value),t.lazy&&!l.value&&r.h("div",{class:"swiper-lazy-preloader"})])}},gm={class:"m-auto w-1200"},ym={class:"carousel-layout"},wm={class:"text-content"},bm={class:"title csr-v2-title-tab"},Sm={class:"text csr-v2-text"},xm={class:"media-content"},Tm={class:"slick-dots-container"},Em={class:"slick-dots"},Vm=["onClick"],Mm={class:"dots-number csr-v2-description"},Cm={class:"active-text"},Pm={class:"length-text"},Am=r.defineComponent({name:"FCarouselTextMediaV2",__name:"FCarouselTextMedia",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Ke(e.config),i=[Ur],s=r.ref(),o=r.ref(0),a={delay:5e3,disableOnInteraction:!1,stopOnLastSlide:!1,pauseOnMouseEnter:!0},l=r.computed(()=>{var h;return((h=e.config.items)==null?void 0:h.length)||0});function u(h){s.value=h}function c(h){o.value=h.realIndex}function d(h){var m;o.value=h-1,(m=s.value)==null||m.slideTo(h-1)}function f(){var h;(h=s.value)==null||h.slidePrev()}function p(){var h;(h=s.value)==null||h.slideNext()}return(h,m)=>(r.openBlock(),r.createElementBlock("div",{class:"carousel-text-media_v2",style:r.normalizeStyle(r.unref(n))},[r.createElementVNode("div",gm,[r.createElementVNode("div",ym,[r.createElementVNode("button",{class:"slick-arrow slick-prev",onClick:r.withModifiers(f,["stop"])},[r.createVNode(ri,{size:"30",color:"white"})]),r.createVNode(r.unref(Oe),{is:"div",class:"carousel-content",style:r.normalizeStyle({height:e.config.contentHeight}),initial:r.unref(G).initial,transition:r.unref(G).transition,"in-view":r.unref(G).whileInView,"in-view-options":r.unref(G).viewport},{default:r.withCtx(()=>[r.createVNode(r.unref(na),{modules:i,autoplay:a,loop:!0,onSwiper:u,onSlideChange:c},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.config.items,(g,w)=>(r.openBlock(),r.createBlock(r.unref(ia),{key:w},{default:r.withCtx(()=>[r.createElementVNode("div",{class:"text-media-content",style:r.normalizeStyle({height:e.config.contentHeight})},[r.createElementVNode("div",wm,[r.createElementVNode("div",bm,r.toDisplayString(g.title),1),r.createElementVNode("div",Sm,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(g.text.split(`
15
+ `)||[],(y,x)=>(r.openBlock(),r.createElementBlock("div",{key:x},r.toDisplayString(y),1))),128))])]),r.createElementVNode("div",xm,[g.src?(r.openBlock(),r.createBlock(we,{key:0,src:g.src},null,8,["src"])):r.createCommentVNode("",!0)])],4)]),_:2},1024))),128))]),_:1})]),_:1},8,["style","initial","transition","in-view","in-view-options"]),r.createElementVNode("button",{class:"slick-arrow slick-next",onClick:r.withModifiers(p,["stop"])},[r.createVNode(ai,{size:"30",color:"white"})])]),r.createElementVNode("div",Tm,[r.createElementVNode("div",Em,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,g=>(r.openBlock(),r.createElementBlock("div",{key:g,class:r.normalizeClass(`slick-dot ${o.value===g-1?"active":""}`),onClick:r.withModifiers(w=>d(g),["stop"])},null,10,Vm))),128))]),r.createElementVNode("div",Mm,[r.createElementVNode("span",Cm,r.toDisplayString(o.value+1),1),r.createElementVNode("span",Pm,r.toDisplayString(`/${l.value}`),1)])])])],4))}}),sa=J(Am,[["__scopeId","data-v-ec8cf29b"]]),km="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAACYCAMAAAAvHNATAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAA/UExURUdwTP////////////r6+v///////////////////////////////////xoaGjAwMLW1tZGRkePj43R0dFFRUVXC+pAAAAANdFJOUwBAXTD1pX8X38GPP2+WI0vcAAADkElEQVR42u2c226cQAyGgTkDYw7L+z9rN1GTtpvA2HN0Kv7blVafsMc2xp6uu3Xr1q1bPGXEMCpnrf8t65zSQ2+aMvWz+gR6lVW6b0IltJM+JDeLulS9th4pO1ZjM9p5kuxQw+P6UXq6VGm03vlIuZ4l1jtaqadmkrCKGdRo6dOls3NN1meRzetqZvTZNGa0p7A+o2w2stlnVh5PM8pnV47jaawvoHRziiJcT7LE1N5LX0hySOEafEENTLkSyApzRZMV5/I+Kj8JWR5MCi7xKz2e1eGKIFO+khSNS/tqmkmG9BUl+DkY2c1GX1UjOnP7ysLGWVsbDGlM7atLszuRH6nJcAqt/7QPeD4wlP+7NmCOXajAPjLXCsyx9LDwI1PtwEamD+w6lg0NwS7Dv20JduH+wjdVz6UOw9vStgWzTC15Xv3PrcF0pnQkH7Cd/7rBY890Lol/sy0AcP7z88dlyxJjaYXF+oYVAHuiraQ/nZJr/f0AwIABzZ5zYgJ/OhdgwUhoKi2KbQtQwAj2tCmVxXoA0MAIaN95/0RzLhIY2p4isuSRf1uRBAawYVqnQ9yhXF+xKGAoe44xh3I9AFLAnmh7zLEMJKT9AZAKFnY1RwX76lxxYKEsZYlhbD3BooMFXM2SUvi3zhUNBnBc2JMAJh8AecGuXA0Pti2QH+zc1dBgK0AJMDgrMdFgWymw9X815WlkTXN+meFUfq0oksPFSgoXbAOsRVetaSlJZs2VLZN4sOzZl1SwI1iRqbhWT/lCUUeX1tFgS3Rpjev1vLoaFuzAvYxMKa9vCx3sSHl9w7/wrtQXXnRvxSa2CHZaiwA/8qKS+3afaEGwg9JU0T+rDWWIU0b5G3c+U6tzD7U6qfNUjs9XekzfjnE7ne0HiNa2HPl9EA9YsuEX8WtLNrbl1fCpkQ3BDKPJsXACZ+D+5mcOhLR7ZNNPHTpq9cgQk22O35FsGMtQ05Nchycrzw2HsiT9A2HNUMF9pJnvEHjd6p+0AzFzO5HsVzP4LrOwXf/huzBVpc7guvzGdV2Q64Jl2kpquVXZqUsS1+VivuvYfBfYS9Tac5dJec1pM15Lw/Vaibf8lOsijqnLrRyeJnWRW1WSjyfTe2jc1JXT5FhiRRtUjqWx3tEG4gl1uto1aWLEX/Olp66qxBx2N+l05YvRPo6CvrpKbp7aXnQ3DVo59+fyPevUOIimTLdu3bp160K/AJcD0/uWcqvpAAAAAElFTkSuQmCC",Bm={class:"image-diff-v2"},Lm=["src"],Dm=["src"],Im={class:"diff-text left"},Nm={class:"diff-text right"},_m=r.defineComponent({name:"ImageDiffv2",__name:"index",props:{medium:{type:Array,default:()=>["",""]},diffText:{type:Array,default:()=>["",""]},width:{type:String,default:"680px"},height:{type:String,default:"680px"}},setup(t){r.useCssVars(f=>({v73e75096:e.width,v21986f52:e.height,c554f8e6:o.value}));const e=t,n=r.ref(),i=r.ref(),s=r.reactive({dragging:!1,marginX:0}),o=r.computed(()=>`url(${km})`);function a(f){f.preventDefault(),s.dragging=!1}function l(f){f.preventDefault(),s.dragging=!1}function u(f){f.preventDefault();const p=Number(e.width.replace("px",""));s.dragging&&(f.pageX-s.marginX<=0?(i.value.style.left="0px",n.value.style.width="0px"):f.pageX-s.marginX>=p?(i.value.style.left=e.width,n.value.style.width=e.width):(i.value.style.left=`${f.pageX-s.marginX}px`,n.value.style.width=`${f.pageX-s.marginX}px`))}function c(f){f.preventDefault(),s.marginX=f.pageX-i.value.offsetLeft,s.dragging=!0}function d(f){f.preventDefault(),s.dragging=!1}return(f,p)=>(r.openBlock(),r.createElementBlock("div",Bm,[r.createElementVNode("div",{class:"img-diff-container",style:r.normalizeStyle({width:e.width,height:e.height}),onMouseup:a,onMouseleave:l,onMousemove:u},[r.createElementVNode("div",{ref_key:"beforeBoxRef",ref:n,class:"box-before",style:r.normalizeStyle({height:e.height})},[r.createElementVNode("img",{src:e.medium[0],alt:"",class:"img-before"},null,8,Lm)],4),r.createElementVNode("img",{src:e.medium[1],alt:"",class:"img-after"},null,8,Dm),r.createElementVNode("div",{ref_key:"dragTargetRef",ref:i,class:"drag-target",onMousedown:c,onMouseup:d},[r.createElementVNode("div",Im,r.toDisplayString(e.diffText[0]),1),r.createElementVNode("div",Nm,r.toDisplayString(e.diffText[1]),1),p[0]||(p[0]=r.createElementVNode("div",{class:"line top"},null,-1)),p[1]||(p[1]=r.createElementVNode("div",{class:"line bottom"},null,-1))],544)],36)]))}}),di=J(_m,[["__scopeId","data-v-24c5ab18"]]),Rm={class:"carousel-layout"},Om={class:"media-content"},zm={class:"text-content csr-v2-description"},Fm={class:"slick-dots-container"},$m={class:"slick-dots"},jm=["onClick"],Zm=r.defineComponent({name:"FCaseShowV2",__name:"FCaseShow",props:{config:{type:Object,required:!0}},setup(t){const e=t,{commonStyle:n}=Ke(e.config),i=[Ur],s=r.ref(),o=r.ref(0),a=r.computed(()=>{const p=e.config.delay;return{delay:p||p===0?p:5e3,disableOnInteraction:!1,stopOnLastSlide:!1,pauseOnMouseEnter:!0}});function l(p){s.value=p}function u(p){o.value=p.realIndex}function c(p){var h;o.value=p,(h=s.value)==null||h.slideTo(p)}function d(){var p;(p=s.value)==null||p.slidePrev()}function f(){var p;(p=s.value)==null||p.slideNext()}return(p,h)=>(r.openBlock(),r.createElementBlock("div",{class:"case-show_v2",style:r.normalizeStyle(r.unref(n))},[r.createVNode(r.unref(Oe),{is:"div",class:"m-auto w-1200",initial:r.unref(G).initial,transition:r.unref(G).transition,"in-view":r.unref(G).whileInView,"in-view-options":r.unref(G).viewport},{default:r.withCtx(()=>[r.createElementVNode("div",Rm,[r.createElementVNode("div",{class:"carousel-content",style:r.normalizeStyle({height:e.config.contentHeight})},[r.createVNode(r.unref(na),{modules:i,autoplay:a.value,"allow-touch-move":!1,loop:!0,onSwiper:l,onSlideChange:u},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.config.items,(m,g)=>(r.openBlock(),r.createBlock(r.unref(ia),{key:g},{default:r.withCtx(()=>[r.createElementVNode("div",{class:"case-show-content",style:r.normalizeStyle({height:e.config.contentHeight})},[r.createElementVNode("div",Om,[m.type===r.unref(Ie).IMAGE&&m.src?(r.openBlock(),r.createBlock(we,{key:0,src:m.src},null,8,["src"])):m.type===r.unref(Ie).VIDEO&&m.src?(r.openBlock(),r.createBlock(Pe,{key:1,src:m.src,controls:!1,autoplay:!0,loop:!0},null,8,["src"])):m.type===r.unref(Ie).DIFF&&m.src&&m.src2?(r.openBlock(),r.createBlock(di,{key:2,medium:[m.src,m.src2],"diff-text":m.diffText},null,8,["medium","diff-text"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",zm,r.toDisplayString(m.text),1)],4)]),_:2},1024))),128))]),_:1},8,["autoplay"]),r.createElementVNode("button",{class:"slick-arrow slick-prev",onClick:r.withModifiers(d,["stop"])},[r.createVNode(ri,{size:"30",color:"rgba(255,255,255,0.9)"})]),r.createElementVNode("button",{class:"slick-arrow slick-next",onClick:r.withModifiers(f,["stop"])},[r.createVNode(ai,{size:"30",color:"rgba(255,255,255,0.9)"})])],4),r.createElementVNode("div",Fm,[r.createElementVNode("div",$m,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.config.items,(m,g)=>(r.openBlock(),r.createElementBlock("div",{key:g,class:r.normalizeClass(`slick-dot ${o.value===g?"active":""}`),onClick:r.withModifiers(w=>c(g),["stop"])},[[r.unref(Ie).DIFF,r.unref(Ie).IMAGE].includes(m.type)?(r.openBlock(),r.createBlock(we,{key:0,src:m.thumbnail||m.src},null,8,["src"])):(r.openBlock(),r.createBlock(Pe,{key:1,src:m.src,controls:!1,autoplay:!1},null,8,["src"]))],10,jm))),128))])])])]),_:1},8,["initial","transition","in-view","in-view-options"])],4))}}),oa=J(Zm,[["__scopeId","data-v-dba223d4"]]),Gm=qs,Um=_r,Xm=Rr,Hm=zr,Wm=$r,Km=sa,qm=oa,Ym=we,Jm=Pe,Qm=oi,ev=si,tv=li,nv=di,iv=ii,sv=[qs,_r,Rr,zr,$r,sa,oa,we,Pe,oi,si,li,di,ii];function ra(t){sv.forEach(e=>{const n=e.name||e.__name;n&&t.component(n,e)})}const ov={install:ra};exports.CaseShowType=Ie;exports.ComponentType=Dr;exports.DynamicTable=iv;exports.FBannerV2=Gm;exports.FCarouselTextMediaV2=Km;exports.FCaseShowV2=qm;exports.FMediaV2=Hm;exports.FTabTextMediaV2=Wm;exports.FTextV2=Xm;exports.FTitleV2=Um;exports.HsTab=Qm;exports.HsTabPane=ev;exports.ImageDiffv2=nv;exports.LazyImage=Ym;exports.LazyVideo=Jm;exports.PreviewMedia=tv;exports.TabContentType=De;exports.TextAlignType=Ir;exports.ThemeType=Nr;exports.TitleType=_t;exports.default=ov;exports.install=ra;