1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[643],{273:(t,e,i)=>{let n;i.d(e,{P:()=>sc});var r=i(2115);let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set(s),a=t=>180*t/Math.PI,l=t=>h(a(Math.atan2(t[1],t[0]))),u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:l,rotateZ:l,skewX:t=>a(Math.atan(t[1])),skewY:t=>a(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},h=t=>((t%=360)<0&&(t+=360),t),c=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),d=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),p={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:c,scaleY:d,scale:t=>(c(t)+d(t))/2,rotateX:t=>h(a(Math.atan2(t[6],t[5]))),rotateY:t=>h(a(Math.atan2(-t[2],t[0]))),rotateZ:l,rotate:l,skewX:t=>a(Math.atan(t[4])),skewY:t=>a(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function m(t){return+!!t.includes("scale")}function f(t,e){let i,n;if(!t||"none"===t)return m(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=p,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=u,n=e}if(!n)return m(e);let s=i[e],o=n[1].split(",").map(g);return"function"==typeof s?s(o):o[s]}function g(t){return parseFloat(t.trim())}let y=t=>e=>"string"==typeof e&&e.startsWith(t),v=y("--"),x=y("var(--"),w=t=>!!x(t)&&b.test(t.split("/*")[0].trim()),b=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function T({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}let P=(t,e,i)=>t+(e-t)*i;function S(t){return void 0===t||1===t}function A({scale:t,scaleX:e,scaleY:i}){return!S(t)||!S(e)||!S(i)}function M(t){return A(t)||E(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function E(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function V(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function D(t,e=0,i=1,n,r){t.min=V(t.min,e,i,n,r),t.max=V(t.max,e,i,n,r)}function C(t,{x:e,y:i}){D(t.x,e.translate,e.scale,e.originPoint),D(t.y,i.translate,i.scale,i.originPoint)}function k(t,e){t.min=t.min+e,t.max=t.max+e}function R(t,e,i,n,r=.5){let s=P(t.min,t.max,r);D(t,e,i,s,n)}function j(t,e){R(t.x,e.x,e.scaleX,e.scale,e.originX),R(t.y,e.y,e.scaleY,e.scale,e.originY)}function L(t,e){return T(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let F=new Set(["width","height","top","left","right","bottom",...s]),O=(t,e,i)=>i>e?e:i<t?t:i,B={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},I={...B,transform:t=>O(0,1,t)},N={...B,default:1},U=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),$=U("deg"),W=U("%"),z=U("px"),H=U("vh"),Y=U("vw"),X={...W,parse:t=>W.parse(t)/100,transform:t=>W.transform(100*t)},q=t=>e=>e.test(t),K=[B,z,W,$,Y,H,{test:t=>"auto"===t,parse:t=>t}],_=t=>K.find(q(t)),G=()=>{},Z=()=>{},J=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Q=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tt=t=>t===B||t===z,te=new Set(["x","y","z"]),ti=s.filter(t=>!te.has(t)),tn={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),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:(t,{transform:e})=>f(e,"x"),y:(t,{transform:e})=>f(e,"y")};tn.translateX=tn.x,tn.translateY=tn.y;let tr=t=>t,ts={},to=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ta={value:null,addProjectionMetrics:null};function tl(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=to.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}
1r=!0,[i,n]=[n,i],i.forEach(u),e&&ta.value&&ta.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let s=ts.useManualTiming?r.timestamp:performance.now();i=!1,ts.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:to.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(f)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<to.length;e++)o[to[e]].cancel(t)},state:r,steps:o}}let{schedule:tu,cancel:th,state:tc,steps:td}=tl("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tr,!0),tp=new Set,tm=!1,tf=!1,tg=!1;function ty(){if(tf){let t=Array.from(tp).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return ti.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tf=!1,tm=!1,tp.forEach(t=>t.complete(tg)),tp.clear()}function tv(){tp.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tf=!0)})}class tx{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tp.add(this),tm||(tm=!0,tu.read(tv),tu.resolveKeyframes(ty))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tp.delete(this)}cancel(){"scheduled"===this.state&&(tp.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tw=t=>/^0[^.\s]+$/u.test(t),tb=t=>Math.round(1e5*t)/1e5,tT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tS=(t,e)=>i=>!!("string"==typeof i&&tP.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tA=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(tT);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tM={...B,transform:t=>Math.round(O(0,255,t))},tE={test:tS("rgb","red"),parse:tA("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tM.transform(t)+", "+tM.transform(e)+", "+tM.transform(i)+", "+tb(I.transform(n))+")"},tV={test:tS("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:tE.transform},tD={test:tS("hsl","hue"),parse:tA("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+W.transform(tb(e))+", "+W.transform(tb(i))+", "+tb(I.transform(n))+")"},tC={test:t=>tE.test(t)||tV.test(t)||tD.test(t),parse:t=>tE.test(t)?tE.parse(t):tD.test(t)?tD.parse(t):tV.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tE.transform(t):tD.transform(t),getAnimatableNone:t=>{let e=tC.parse(t);return e.alpha=0,tC.transform(e)}},tk=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tR="number",tj="color",tL=/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 tF(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tL,t=>(tC.test(t)?(n.color.push(s),r.push(tj),i.push(tC.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tR),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tO(t){return tF(t).values}function tB(t){let{split:e,types:i}=tF(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===tR?r+=tb(t[s]):e===tj?r+=tC.transform(t[s]):r+=t[s]}return r}}let tI=t=>"number"==typeof t?0:tC.test(t)?tC.getAnimatableNone(t):t,tN={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tT)?.length||0)+(t.match(tk)?.length||0)>0},parse:tO,createTransformer:tB,getAnimatableNone:function(t){let e=tO(t);return tB(t)(e.map(tI))}},tU=new Set(["brightness","contrast","saturate","opacity"]);function t$(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tT)||[];if(!n)return t;let r=i.replace(n,""),s=+!!tU.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let tW=/\b([a-z-]*)\(.*?\)/gu,tz={...tN,getAnimatableNone:t=>{let e=t.match(tW);return e?e.map(t$).join(" "):t}},tH={...B,transform:Math.round},tY={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,backgroundPositionX:z,backgroundPositionY:z,rotate:$,rotateX:$,rotateY:$,rotateZ:$,scale:N,scaleX:N,scaleY:N,scaleZ:N,skew:$,skewX:$,
1skewY:$,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z:z,perspective:z,transformPerspective:z,opacity:I,originX:X,originY:X,originZ:z,zIndex:tH,fillOpacity:I,strokeOpacity:I,numOctaves:tH},tX={...tY,color:tC,backgroundColor:tC,outlineColor:tC,fill:tC,stroke:tC,borderColor:tC,borderTopColor:tC,borderRightColor:tC,borderBottomColor:tC,borderLeftColor:tC,filter:tz,WebkitFilter:tz},tq=t=>tX[t];function tK(t,e){let i=tq(t);return i!==tz&&(i=tN),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t_=new Set(["auto","none","0"]);class tG extends tx{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&w(n=n.trim())){let r=function t(e,i,n=1){Z(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=Q.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return J(t)?parseFloat(t):t}return w(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!F.has(i)||2!==t.length)return;let[n,r]=t,s=_(n),o=_(r);if(s!==o)if(tt(s)&&tt(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tn[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||tw(n)))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!t_.has(e)&&tF(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tK(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tn[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=tn[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tZ=t=>!!(t&&t.getVelocity);function tJ(){n=void 0}let tQ={now:()=>(void 0===n&&tQ.set(tc.isProcessing||ts.useManualTiming?tc.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(tJ)}};function t0(t,e){-1===t.indexOf(e)&&t.push(e)}function t1(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t2{constructor(){this.subscriptions=[]}add(t){return t0(this.subscriptions,t),()=>t1(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let t5={current:void 0};class t3{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=tQ.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=tQ.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new t2);let i=this.events[t].add(e);return"change"===t?()=>{i(),tu.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return t5.current&&t5.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=tQ.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t4(t,e){return new t3(t,e)}let t9=[...K,tC,tN],{schedule:t6}=tl(queueMicrotask,!1),t8={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"]},t7={};for(let t in t8)t7[t]={isEnabled:e=>t8[t].some(t=>!!e[t])};let et=()=>({translate:0,scale:1,origin:0,originPoint:0}),ee=()=>({x:et(),y:et()}),ei=()=>({min:0,max:0}),en=()=>({x:ei(),y:ei()}),er="undefined"!=typeof window,es={current:null},eo={current:!1},ea=new WeakMap;function el(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eu(t){return"string"==typeof t||Array.isArray(t)}let eh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ec=["initial",...eh];function ed(t){return el(t.animate)||ec.some(e=>eu(t[e]))}function ep(t){return!!(ed(t)||t.variants)}function em(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ef(t,e,i,n){if("function"==typeof e){let[r,s]=em(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=em(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let eg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ey{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tx,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=()=>{let t=tQ.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tu.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=ed(e),this.isVariantNode=ep(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&tZ(e)&&e.set(a[t])}}mount(t){this.current=t,ea.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),eo.current||function(){if(eo.current=!0,er)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>es.current=t.matches;t.addEventListener("change",e),e()}else es.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||es.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),th(this.notifyUpdate),th(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=o.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tu.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in t7){let e=t7[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):en()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<eg.length;e++){let i=eg[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
1this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(tZ(r))t.addValue(n,r);else if(tZ(s))t.addValue(n,t4(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,t4(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=t4(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){if("string"==typeof i&&(J(i)||tw(i)))i=parseFloat(i);else{let n;n=i,!t9.find(q(n))&&tN.test(e)&&(i=tK(t,e))}this.setBaseTarget(t,tZ(i)?i.get():i)}return tZ(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=ef(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||tZ(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new t2),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t6.render(this.render)}}class ev extends ey{constructor(){super(...arguments),this.KeyframeResolver=tG}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tZ(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let ex=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ew={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eb=s.length;function eT(t,e,i){let{style:n,vars:r,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(o.has(t)){l=!0;continue}if(v(t)){r[t]=i;continue}{let e=ex(i,tY[t]);t.startsWith("origin")?(u=!0,a[t]=e):n[t]=e}}if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",r=!0;for(let o=0;o<eb;o++){let a=s[o],l=t[a];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===+!!a.startsWith("scale"):0===parseFloat(l))||i){let t=ex(l,tY[a]);if(!u){r=!1;let e=ew[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}function eP(t,{style:e,vars:i},n,r){let s,o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}let eS={};function eA(t,{layout:e,layoutId:i}){return o.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eS[t]||"opacity"===t)}function eM(t,e,i){let{style:n}=t,r={};for(let s in n)(tZ(n[s])||e.style&&tZ(e.style[s])||eA(s,t)||i?.getValue(s)?.liveStyle!==void 0)&&(r[s]=n[s]);return r}class eE extends ev{constructor(){super(...arguments),this.type="html",this.renderInstance=eP}readValueFromInstance(t,e){if(o.has(e))return this.projection?.isProjecting?m(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return f(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(v(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return L(t,e)}build(t,e,i){eT(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eM(t,e,i)}}let eV=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eD={offset:"stroke-dashoffset",array:"stroke-dasharray"},eC={offset:"strokeDashoffset",array:"strokeDasharray"};function ek(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(eT(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?eD:eC;t[s.offset]=z.transform(-n);let o=z.transform(e),a=z.transform(i);t[s.array]=`${o} ${a}`}(c,r,s,o,!1)}let eR=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"]),ej=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eL(t,e,i){let n=eM(t,e,i);for(let i in t)(tZ(t[i])||tZ(e[i]))&&(n[-1!==s.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eF extends ev{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=en}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(o.has(e)){let t=tq(e);return t&&t.default||0}return e=eR.has(e)?e:eV(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eL(t,e,i)}build(t,e,i){ek(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eP(t,e,void 0,n),e.attrs)t.setAttribute(eR.has(i)?i:eV(i),e.attrs[i])}mount(t){this.isSVGTag=ej(t.tagName),super.mount(t)}}let eO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function eB(t){if("string"!=typeof t||t.includes("-"));else if(eO.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eI=i(5155);let eN=(0,r.createContext)({}),eU=(0,r.createContext)({strict:!1}),e$=(0,r.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),eW=(0,r.createContext)({});function ez(t){return Array.isArray(t)?t.join(" "):t}let eH=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eY(t,e,i){for(let n in e)tZ(e[n])||eA(n,i)||(t[n]=e[n])}let eX=()=>({...eH(),attrs:{}}),eq=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eK(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eq.has(t)}let e_=t=>!eK(t);try{!function(t){"function"==typeof t&&(e_=e=>e.startsWith("on")?!eK(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}let eG=(0,r.createContext)(null);function eZ(t){return tZ(t)?t.get():t}let eJ=t=>(e,i)=>{let n=(0,r.useContext)(eW),s=(0,r.useContext)(eG),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,r){return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=eZ(s[t]);let{initial:o,animate:a}=t,l=ed(t),u=ep(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!el(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=ef(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,n,r,t),renderState:e()}})(t,e,n,s);return i?o():function(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}(o)},eQ=eJ({scrapeMotionValuesFromProps:eM,createRenderState:eH}
1),e0=eJ({scrapeMotionValuesFromProps:eL,createRenderState:eX}),e1=Symbol.for("motionComponentSymbol");function e2(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let e5="data-"+eV("framerAppearId"),e3=(0,r.createContext)({}),e4=er?r.useLayoutEffect:r.useEffect;function e9(t){var e,i;let{forwardMotionProps:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;s&&function(t){for(let e in t)t7[e]={...t7[e],...t[e]}}(s);let a=eB(t)?e0:eQ;function l(e,i){var s;let l,u={...(0,r.useContext)(e$),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,r.useContext)(eN).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:h}=u,c=function(t){let{initial:e,animate:i}=function(t,e){if(ed(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eu(e)?e:void 0,animate:eu(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(eW));return(0,r.useMemo)(()=>({initial:e,animate:i}),[ez(e),ez(i)])}(e),d=a(e,h);if(!h&&er){(0,r.useContext)(eU).strict;let e=function(t){let{drag:e,layout:i}=t7;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);l=e.MeasureLayout,c.visualElement=function(t,e,i,n,s){let{visualElement:o}=(0,r.useContext)(eW),a=(0,r.useContext)(eU),l=(0,r.useContext)(eG),u=(0,r.useContext)(e$).reducedMotion,h=(0,r.useRef)(null);n=n||a.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let c=h.current,d=(0,r.useContext)(e3);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&e2(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(h.current,i,s,d);let p=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{c&&p.current&&c.update(i,l)});let m=i[e5],f=(0,r.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return e4(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),f.current&&c.animationState&&c.animationState.animateChanges())}),(0,r.useEffect)(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1),c.enteringChildren=void 0)}),c}(t,d,u,o,e.ProjectionNode)}return(0,eI.jsxs)(eW.Provider,{value:c,children:[l&&c.visualElement?(0,eI.jsx)(l,{visualElement:c.visualElement,...u}):null,function(t,e,i,{latestValues:n},s,o=!1){let a=(eB(t)?function(t,e,i,n){let s=(0,r.useMemo)(()=>{let i=eX();return ek(i,e,ej(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eY(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return eY(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,r.useMemo)(()=>{let i=eH();return eT(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,n,s,t),l=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(e_(r)||!0===i&&eK(r)||!e&&!eK(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o),u=t!==r.Fragment?{...l,...a,ref:i}
1:{},{children:h}=e,c=(0,r.useMemo)(()=>tZ(h)?h.get():h,[h]);return(0,r.createElement)(t,{...u,children:c})}(t,e,(s=c.visualElement,(0,r.useCallback)(t=>{t&&d.onMount&&d.onMount(t),s&&(t?s.mount(t):s.unmount()),i&&("function"==typeof i?i(t):e2(i)&&(i.current=t))},[s,i])),d,h,n)]})}l.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(i=null!=(e=t.displayName)?e:t.name)?i:"",")"));let u=(0,r.forwardRef)(l);return u[e1]=t,u}function e6(t,e,i){let n=t.getProps();return ef(n,e,void 0!==i?i:n.custom,t)}function e8(t,e){return t?.[e]??t?.default??t}let e7=t=>Array.isArray(t);function it(t,e){let i=t.getValue("willChange");if(tZ(i)&&i.add)return i.add(e);if(!i&&ts.WillChange){let i=new ts.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function ie(t){t.duration=0,t.type}let ii=(t,e)=>i=>e(t(i)),ir=(...t)=>t.reduce(ii),is=t=>1e3*t,io={layout:0,mainThread:0,waapi:0};function ia(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function il(t,e){return i=>i>0?e:t}let iu=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},ih=[tV,tE,tD];function ic(t){let e=ih.find(e=>e.test(t));if(G(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===tD&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=ia(a,n,t+1/3),s=ia(a,n,t),o=ia(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let id=(t,e)=>{let i=ic(t),n=ic(e);if(!i||!n)return il(t,e);let r={...i};return t=>(r.red=iu(i.red,n.red,t),r.green=iu(i.green,n.green,t),r.blue=iu(i.blue,n.blue,t),r.alpha=P(i.alpha,n.alpha,t),tE.transform(r))},ip=new Set(["none","hidden"]);function im(t,e){return i=>P(t,e,i)}function ig(t){return"number"==typeof t?im:"string"==typeof t?w(t)?il:tC.test(t)?id:ix:Array.isArray(t)?iy:"object"==typeof t?tC.test(t)?id:iv:il}function iy(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>ig(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function iv(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=ig(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let ix=(t,e)=>{let i=tN.createTransformer(e),n=tF(t),r=tF(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?ip.has(t)&&!r.values.length||ip.has(e)&&!n.values.length?function(t,e){return ip.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):ir(iy(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i):(G(!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.`,"complex-values-different"),il(t,e))};function iw(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?P(t,e,i):ig(t)(t,e)}let ib=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tu.update(e,t),stop:()=>th(e),now:()=>tc.isProcessing?tc.timestamp:tQ.now()}},iT=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function iP(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function iS(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let iA={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};function iM(t,e){return t*Math.sqrt(1-e*e)}let iE=["duration","bounce"],iV=["stiffness","damping","mass"];function iD(t,e){return e.some(e=>void 0!==t[e])}function iC(t=iA.visualDuration,e=iA.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:iA.velocity,stiffness:iA.stiffness,damping:iA.damping,mass:iA.mass,isResolvedFromDuration:!1,...t};if(!iD(t,iV)&&iD(t,iE))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*O(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:iA.mass,stiffness:n,damping:r}}else{let i=function({duration:t=iA.duration,bounce:e=iA.bounce,velocity:i=iA.velocity,mass:n=iA.mass}){let r,s;G(t<=is(iA.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=O(iA.minDamping,iA.maxDamping,o),t=O(iA.minDuration,iA.maxDuration,t/1e3),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/iM(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=iM(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=is(t),isNaN(a))return{stiffness:iA.stiffness,damping:iA.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:iA.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-((n.velocity||0)/1e3)}),f=p||0,g=h/(2*Math.sqrt(u*c)),y=a-o,v=Math.sqrt(u/c)/1e3,x=5>Math.abs(y);if(r||(r=x?iA.restSpeed.granular:iA.restSpeed.default),s||(s=x?iA.restDelta.granular:iA.restDelta.default),g<1){let t=iM(v,g);i=e=>a-Math.exp(-g*v*e)*((f+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-v*t)*(y+(f+v*y)*t);else{let t=v*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*v*e),n=Math.min(t*e,300);return a-i*((f+g*v*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let w={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let n=0===t?f:0;g<1&&(n=0===t?is(f):iS(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(n)<=r&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(iP(w),2e4),e=iT(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function ik({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),w=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},b=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=iC({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:iS(x,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),m)}}}iC.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(iP(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:r/1e3}}(t,100,iC);return t.ease=e.ease,t.duration=is(e.duration),t.type="keyframes",t};let iR=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function ij(t,e,i,n){return t===e&&i===n?tr:r=>0===r||1===r?r:iR(function(t,e,i,n,r){let s,o,a=0;do(s=iR(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o}(r,0,1,t,i),e,n)}let iL=ij(.42,0,1,1),iF=ij(0,0,.58,1),iO=ij(.42,0,.58,1),iB=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iI=t=>e=>1-t(1-e),iN=ij(.33,1.53,.69,.99),iU=iI(iN),i$=iB(iU),iW=t=>(t*=2)<1?.5*iU(t):.5*(2-Math.pow(2,-10*(t-1))),iz=t=>1-Math.sin(Math.acos(t)),iH=iI(iz),iY=iB(iz),iX=t=>Array.isArray(t)&&"number"==typeof t[0],iq={linear:tr,easeIn:iL,easeInOut:iO,easeOut:iF,circIn:iz,circInOut:iY,circOut:iH,backIn:iU,backInOut:i$,backOut:iN,anticipate:iW},iK=t=>{if(iX(t)){Z(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return ij(e,i,n,r)}return"string"==typeof t?(Z(void 0!==iq[t],`Invalid easing type '${t}'`,"invalid-easing-type"),iq[t]):t},i_=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function iG({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=Array.isArray(n)&&"number"!=typeof n[0]?n.map(iK):iK(n),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(Z(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],r=i||ts.mix||iw,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=ir(Array.isArray(e)?e[i]||tr:e,s)),n.push(s)}return n}(e,n,r),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=i_(t[n],t[n+1],i);return a[n](r)};return i?e=>u(O(t[0],t[s-1],e)):u}((r=i&&i.length===e.length?i:function(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=i_(0,e,n);t.push(P(i,1,r))}}(e,t.length-1),e}(e),r.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||iO).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let iZ=t=>null!==t;function iJ(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(iZ),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}let iQ={decay:ik,inertia:ik,tween:iG,keyframes:iG,spring:iC};function i0(t){"string"==typeof t.type&&(t.type=iQ[t.type])}class i1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let i2=t=>t/100;class i5 extends i1{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==tQ.now()&&this.tick(tQ.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},io.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;i0(t);let{type:e=iG,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||iG;a!==iG&&"number"!=typeof o[0]&&(this.mixKeyframes=ir(i2,iw(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iP(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/
1o)):"mirror"===c&&(x=s)),v=O(0,1,i)*o}let w=y?{done:!1,value:u[0]}:x.next(v);r&&(w.value=r(w.value));let{done:b}=w;y||null===a||(b=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&p!==ik&&(w.value=iJ(u,this.options,f,this.speed)),m&&m(w.value),T&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get time(){return this.currentTime/1e3}set time(t){t=is(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tQ.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=ib,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tQ.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,io.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function i3(t){let e;return()=>(void 0===e&&(e=t()),e)}let i4=i3(()=>void 0!==window.ScrollTimeline),i9={},i6=function(t,e){let i=i3(t);return()=>i9[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),i8=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,i7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:i8([0,.65,.55,1]),circOut:i8([.55,0,1,.45]),backIn:i8([.31,.01,.66,-.59]),backOut:i8([.33,1.53,.69,.99])};function nt(t){return"function"==typeof t&&"applyToOptions"in t}class ne extends i1{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,Z("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return nt(t)&&i6()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?i6()?iT(e,i):"ease-out":iX(e)?i8(e):Array.isArray(e)?e.map(e=>t(e,i)||i7.easeOut):i7[e]}(a,r);Array.isArray(c)&&(h.easing=c),ta.value&&io.waapi++;let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return ta.value&&p.finished.finally(()=>{io.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=iJ(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.finishedTime=null,this.animation.currentTime=is(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&i4())?(this.animation.timeline=t,tr):e(this)}}let ni={anticipate:iW,backInOut:i$,circInOut:iY};class nn extends ne{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ni&&(t.ease=ni[t.ease])}(t),i0(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new i5({...s,autoplay:!1}),a=is(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let nr=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tN.test(t)||"0"===t)&&!t.startsWith("url(")),ns=new Set(["opacity","clipPath","filter","transform"]),no=i3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class na extends i1{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tQ.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||tx;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:o,delay:a,isHandoff:l,onUpdate:u}=i;
1this.resolvedAt=tQ.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=nr(r,e),a=nr(s,e);return G(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||nt(i))&&n)}(t,r,s,o)&&((ts.instantAnimations||!a)&&u?.(iJ(t,i,e)),t[0]=t[t.length-1],ie(i),i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return no()&&i&&ns.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(h)?new nn({...h,element:h.motionValue.owner.current}):new i5(h);c.finished.then(()=>this.notifyFinished()).catch(tr),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tg=!0,tv(),ty(),tg=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nl=t=>null!==t,nu={type:"spring",stiffness:500,damping:25,restSpeed:10},nh={type:"keyframes",duration:.8},nc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nd=(t,e,i,n={},r,s)=>a=>{let l=e8(n,t)||{},u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=is(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?nh:o.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nu:nc)(t,c)),c.duration&&(c.duration=is(c.duration)),c.repeatDelay&&(c.repeatDelay=is(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ie(c),0===c.delay&&(d=!0)),(ts.instantAnimations||ts.skipAnimations)&&(d=!0,ie(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(nl),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(c.keyframes,l);if(void 0!==t)return void tu.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new i5(c):new na(c)};function np(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=e;n&&(s=n);let l=[],u=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||u&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(u,e))continue;let o={delay:i,...e8(s||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(r)&&r===h&&!o.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=t.props[e5];if(i){let t=window.MotionHandoffAnimation(i,e,tu);null!==t&&(o.startTime=t,c=!0)}}it(t,e),n.start(nd(e,n,r,t.shouldReduceMotion&&F.has(e)?{type:!1}:o,t,c));let d=n.animation;d&&l.push(d)}return o&&Promise.all(l).then(()=>{tu.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=e6(t,e)||{};for(let e in r={...r,...i}){var s;let i=e7(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t4(i))}}(t,o)})}),l}function nm(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nf(t,e,i={}){let n=e6(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(np(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;
1return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nf(l,e,{...o,delay:i+("function"==typeof n?0:n)+nm(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function ng(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let ny=ec.length,nv=[...eh].reverse(),nx=eh.length;function nw(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nb(){return{animate:nw(!0),whileInView:nw(),whileHover:nw(),whileTap:nw(),whileDrag:nw(),whileFocus:nw(),exit:nw()}}class nT{constructor(t){this.isMounted=!1,this.node=t}update(){}}class nP extends nT{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nf(t,e,i)));else if("string"==typeof e)n=nf(t,e,i);else{let r="function"==typeof e?e6(t,e,i.custom):e;n=Promise.all(np(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nb(),n=!0,r=e=>(i,n)=>{let r=e6(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function s(s){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ny;t++){let n=ec[t],r=e.props[n];(eu(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<nx;e++){var d,p;let m=nv[e],f=i[m],g=void 0!==o[m]?o[m]:a[m],y=eu(g),v=m===s?f.isActive:null;!1===v&&(c=e);let x=g===a[m]&&g!==o[m]&&y;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...h},!f.isActive&&null===v||!g&&!f.prevProp||el(g)||"boolean"==typeof g)continue;let w=(d=f.prevProp,"string"==typeof(p=g)?p!==d:!!Array.isArray(p)&&!ng(p,d)),b=w||m===s&&f.isActive&&!x&&y||e>c&&y,T=!1,P=Array.isArray(g)?g:[g],S=P.reduce(r(m),{});!1===v&&(S={});let{prevResolvedValues:A={}}=f,M={...A,...S},E=e=>{b=!0,u.has(e)&&(T=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=S[t],i=A[t];if(!h.hasOwnProperty(t))(e7(e)&&e7(i)?ng(e,i):e===i)?void 0!==e&&u.has(t)?E(t):f.protectedKeys[t]=!0:null!=e?E(t):u.add(t)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(h={...h,...S}),n&&t.blockInitialAnimation&&(b=!1);let V=x&&w,D=!V||T;b&&D&&l.push(...P.map(e=>{let i={type:m};if("string"==typeof e&&n&&!V&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=e6(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nm(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=e6(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=s(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nb(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();el(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nS=0;class nA extends nT{constructor(){super(...arguments),this.id=nS++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let nM={x:!1,y:!1};function nE(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let nV=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nD(t){return{point:{x:t.pageX,y:t.pageY}}}function nC(t,e,i,n){return nE(t,e,t=>nV(t)&&i(t,nD(t)),n)}function nk(t){return t.max-t.min}function nR(t,e,i,n=.5){t.origin=n,t.originPoint=P(e.min,e.max,t.origin),t.scale=nk(i)/nk(e),t.translate=P(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nj(t,e,i,n){nR(t.x,e.x,i.x,n?n.originX:void 0),nR(t.y,e.y,i.y,n?n.originY:void 0)}function nL(t,e,i){t.min=i.min+e.min,t.max=t.min+nk(e)}function nF(t,e,i){t.min=e.min-i.min,t.max=t.min+nk(e)}function nO(t,e,i){nF(t.x,e.x,i.x),nF(t.y,e.y,i.y)}function nB(t){return[t("x"),t("y")]}let nI=({current:t})=>t?t.ownerDocument.defaultView:null,nN=(t,e)=>Math.abs(t-e);class nU{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=nz(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(nN(t.x,e.x)**2+nN(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=tc;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=n$(e,this.transformPagePoint),tu.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=nz("pointercancel"===t.type?this.lastMoveEventInfo:n$(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!nV(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let o=n$(nD(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=tc;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,nz(o,this.history)),this.removeListeners=ir(nC(this.contextWindow,"pointermove",this.handlePointerMove),nC(this.contextWindow,"pointerup",this.handlePointerUp),nC(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),th(this.updatePoint)}}function n$(t,e){return e?{point:e(t.point)}:t}function nW(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nz({point:t},e){return{point:t,delta:nW(t,nH(e)),offset:nW(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=nH(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>is(.1)));)i--;if(!n)return{x:0,y:0};let s=(r.timestamp-n.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function nH(t){return t[t.length-1]}function nY(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function nX(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function nq(t,e,i){return{min:nK(t,e),max:nK(t,i)}}function nK(t,e){return"number"==typeof t?t:t[e]||0}let n_=new WeakMap;class nG{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=en(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(nD(t).point)},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nM[t])return null;else return nM[t]=!0,()=>{nM[t]=!1};return nM.x||nM.y?null:(nM.x=nM.y=!0,()=>{nM.x=nM.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nB(t=>{let e=this.getAxisMotionValue(t).get()||0;if(W.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=nk(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tu.postRender(()=>r(t,e)),it(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>nB(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new nU(t,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:nI(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tu.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!nZ(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?P(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?P(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&e2(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:nY(t.x,i,r),y:nY(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nq(t,"left","right"),y:nq(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nB(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!e2(e))return!1;let n=e.current;Z(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=L(t,i),{scroll:r}=e;return r&&(k(n.x,r.offset.x),k(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:nX(t.x,s.x),y:nX(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=T(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nB(o=>{if(!nZ(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return it(this.visualElement,t),i.start(nd(t,i,0,e,this.visualElement,!1))}stopAnimation(){nB(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nB(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){nB(e=>{let{drag:i}=this.getProps();if(!nZ(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-P(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!e2(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nB(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=nk(t),r=nk(e);return r>n?i=i_(e.min,e.max-n,t.min):n>r&&(i=i_(t.min,t.max-r,e.min)),O(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),nB(e=>{if(!nZ(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(P(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;n_.set(this.visualElement,this);let t=nC(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e2(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tu.read(e);let r=nE(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nB(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function nZ(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class nJ extends nT{constructor(t){super(t),this.removeGroupControls=tr,this.removeListeners=tr,this.controls=new nG(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tr}unmount(){this.removeGroupControls(),this.removeListeners()}}let nQ=t=>(e,i)=>{t&&tu.postRender(()=>t(e,i))};class n0 extends nT{constructor(){super(...arguments),this.removePointerDownListener=tr}onPointerDown(t){this.session=new nU(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nI(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:nQ(t),onStart:nQ(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tu.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=nC(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let n1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function n2(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let n5={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!z.test(t))return t;else t=parseFloat(t);let i=n2(t,e.target.x),n=n2(t,e.target.y);return`${i}% ${n}%`}},n3=!1;class n4 extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;for(let t in n6)eS[t]=n6[t],v(t)&&(eS[t].isCSSVariable=!0);r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),n3&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),n1.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,n3=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||tu.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t6.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n3=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function n9(t){let[e,i]=function(t=!0){let e=(0,r.useContext)(eG);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,o=(0,r.useId)();(0,r.useEffect)(()=>{if(t)return s(o)},[t]);let a=(0,r.useCallback)(()=>t&&n&&n(o),[o,n,t]);return!i&&n?[!1,a]:[!0]}(),n=(0,r.useContext)(eN);return(0,eI.jsx)(n4,{...t,layoutGroup:n,switchLayoutGroup:(0,r.useContext)(e3),isPresent:e,safeToRemove:i})}let n6={borderRadius:{...n5,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n5,borderTopRightRadius:n5,borderBottomLeftRadius:n5,borderBottomRightRadius:n5,boxSh
1adow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tN.parse(t);if(n.length>5)return t;let r=tN.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=P(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function n8(t){return"object"==typeof t&&null!==t}function n7(t){return n8(t)&&"ownerSVGElement"in t}let rt=(t,e)=>t.depth-e.depth;class re{constructor(){this.children=[],this.isDirty=!1}add(t){t0(this.children,t),this.isDirty=!0}remove(t){t1(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rt),this.isDirty=!1,this.children.forEach(t)}}let ri=["TopLeft","TopRight","BottomLeft","BottomRight"],rn=ri.length,rr=t=>"string"==typeof t?parseFloat(t):t,rs=t=>"number"==typeof t||z.test(t);function ro(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ra=ru(0,.5,iH),rl=ru(.5,.95,tr);function ru(t,e,i){return n=>n<t?0:n>e?1:i(i_(t,e,n))}function rh(t,e){t.min=e.min,t.max=e.max}function rc(t,e){rh(t.x,e.x),rh(t.y,e.y)}function rd(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rp(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rm(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(W.test(e)&&(e=parseFloat(e),e=P(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=P(s.min,s.max,n);t===s&&(a-=e),t.min=rp(t.min,e,i,a,r),t.max=rp(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let rf=["x","scaleX","originX"],rg=["y","scaleY","originY"];function ry(t,e,i,n){rm(t.x,e,rf,i?i.x:void 0,n?n.x:void 0),rm(t.y,e,rg,i?i.y:void 0,n?n.y:void 0)}function rv(t){return 0===t.translate&&1===t.scale}function rx(t){return rv(t.x)&&rv(t.y)}function rw(t,e){return t.min===e.min&&t.max===e.max}function rb(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rT(t,e){return rb(t.x,e.x)&&rb(t.y,e.y)}function rP(t){return nk(t.x)/nk(t.y)}function rS(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rA{constructor(){this.members=[]}add(t){t0(this.members,t),t.scheduleRender()}remove(t){if(t1(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rM={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rE=["","X","Y","Z"],rV=0;function rD(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function rC({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=rV++,this.animationId=0,this.animationCommitId=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,ta.value&&(rM.nodes=rM.calculatedTargetDeltas=rM.calculatedProjections=0),this.nodes.forEac
1h(rj),this.nodes.forEach(rU),this.nodes.forEach(r$),this.nodes.forEach(rL),ta.addProjectionMetrics&&ta.addProjectionMetrics(rM)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new re)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t2),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=n7(e)&&!(n7(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;tu.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tQ.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&(th(n),t(r-250))};return tu.setup(n,!0),()=>th(n)}(r,250),n1.hasAnimatedSinceResize&&(n1.hasAnimatedSinceResize=!1,this.nodes.forEach(rN)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||rq,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rT(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...e8(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||rN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),th(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(rW),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[e5];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tu,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(rO);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rB);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rI),this.nodes.forEach(rk),this.nodes.forEach(rR)):this.nodes.forEach(rB),this.clearAllSnapshots();let t=tQ.now();tc.delta=O(0,1e3/60,t-tc.timestamp),tc.timestamp=t,tc.isProcessing=!0,td.update.process(tc),td.preRender.process(tc),td.render.process(tc),tc.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t6.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rF),this.sharedNodes.forEach(rz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tu.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tu.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nk(this.snapshot.measuredBox.x)||nk(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=en(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rx(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||M(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rG((e=n).x),rG(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return en();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rJ))){let{scroll:t}=this.root;t&&(k(e.x,t.offset.x),k(e.y,t.offset.y))}return e}removeElementScroll(t){let e=en();if(rc(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rc(e,t),k(e.x,r.offset.x),k(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=en();rc(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&j(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),M(n.latestValues)&&j(i,n.latestValues)}return M(this.latestValues)&&j(i,this.latestValues),i}removeTransform(t){let e=en();rc(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!M(i.latestValues))continue;A(i.latestValues)&&i.updateSnapshot();let n=en();rc(n,i.measurePageBox()),ry(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return M(this.latestValues)&&ry(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tc.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(this.layout&&(n||r)){if(this.resolvedRelativeTargetAt=tc.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=en(),this.relativeTargetOrigin=en(),nO(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=en(),this.targetWithTransforms=en()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,o,a;this.forceRelativeParentToResolveTarget(),s=this.target,o=this.relativeTarget,a=this.relativeParent.target,nL(s.x,o.x,a.x),nL(s.y,o.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rc(this.target,this.layout.layoutBox),C(this.target,this.targetDelta)):rc(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=en(),this.relativeTargetOrigin=en(),nO(this.relativeTargetOrigin,this.target,t.target),rc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ta.value&&rM.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||A(this.parent.latestValues)||E(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tc.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;rc(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&j(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,C(t,s)),n&&M(r.latestValues)&&j(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=en());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rd(this.prevProjectionDelta.x,this.projectionDelta.x),rd(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nj(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&rS(this.projectionDelta.x,this.prevProjectionDelta.x)&&rS(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),ta.value&&rM.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ee(),this.projectionDelta=ee(),this.projectionDeltaWithTransform=ee()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=ee();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=en(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(rX));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(rH(o.x,t.x,n),rH(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;nO(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,rY(p.x,m.x,f.x,g),rY(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,rw(u.x,d.x)&&rw(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=en()),rc(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=P(0,i.opacity??1,ra(n)),t.opacityExit=P(e.opacity??1,0,rl(n))):s&&(t.opacity=P(e.opacity??1,i.opacity??1,n));for(let r=0;r<rn;r++){let s=`border${ri[r]}Radius`,o=ro(e,s),a=ro(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rs(o)===rs(a)?(t[s]=Math.max(P(rr(o),rr(a),n),0),(W.test(a)||W.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=P(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(th(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tu.update(()=>{n1.hasAnimatedSinceResize=!0,io.layout++,this.motionValue||(this.motionValue=t4(0)),this.currentAnimation=function(t,e,
1i){let n=tZ(t)?t:t4(t);return n.start(nd("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{io.layout--},onComplete:()=>{io.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rZ(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||en();let e=nk(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nk(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rc(e,i),j(e,r),nj(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rA),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&rD("z",t,n,this.animationValues);for(let e=0;e<rE.length;e++)rD(`rotate${rE[e]}`,t,n,this.animationValues),rD(`skew${rE[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=eZ(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eZ(e?.pointerEvents)||""),this.hasProjected&&!M(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eS){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eS[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?eZ(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rO),this.root.sharedNodes.clear()}}}function rk(t){t.updateLayout()}function rR(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?nB(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=nk(n);n.min=i[t].min,n.max=n.min+r}):rZ(r,e.layoutBox,i)&&nB(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=nk(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=ee();nj(o,i,e.layoutBox);let a=ee();s?nj(a,t.applyTransform(n,!0),e.measuredBox):nj(a,i,e.layoutBox);let l=!rx(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=en();nO(o,e.layoutBox,r.layoutBox);let a=en();nO(a,i,s.layoutBox),rT(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rj(t){ta.value&&rM.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rL(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rF(t){t.clearSnapshot()}function rO(t){t.clearMeasurements()}function rB(t){t.isLayoutDirty=!1}function rI(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rN(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rU(t){t.resolveTargetDelta()}function r$(t){t.calcProjection()}function rW(t){t.resetSkewAndRotation()}function rz(t){t.removeLeadSnapshot()}function rH(t,e,i){t.translate=P(e.translate,0,i),t.scale=P(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rY(t,e,i,n){t.min=P(e.min,i.min,n),t.max=P(e.max,i.max,n)}function rX(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rq={duration:.45,ease:[.4,0,.1,1]},rK=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),r_=rK("applewebkit/")&&!rK("chrome/")?Math.round:tr;function rG(t){t.min=r_(t.min),t.max=r_(t.max)}function rZ(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rP(e)-rP(i)))}function rJ(t){return t!==t.root&&t.scroll?.wasRoot}let rQ=rC({attachResizeListener:(t,e)=>nE(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r0={current:void 0},r1=rC({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!r0.current){let t=new rQ({});t.mount(window),t.setOptions({layoutScroll:!0}),r0.current=t}return r0.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function r2(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function r5(t){return!("touch"===t.pointerType||nM.x||nM.y)}function r3(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tu.postRender(()=>r(e,nD(e)))}class r4 extends nT{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=r2(t,i),o=t=>{if(!r5(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{r5(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,(t,e)=>(r3(this.node,e,"Start"),t=>r3(this.node,t,"End"))))}unmount(){}}class r9 extends nT{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ir(nE(this.node.current,"focus",()=>this.onFocus()),nE(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let r6=(t,e)=>!!e&&(t===e||r6(t,e.parentElement)),r8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),r7=new WeakSet;function st(t){return e=>{"Enter"===e.key&&t(e)}}function se(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function si(t){return nV(t)&&!(nM.x||nM.y)}function sn(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&tu.postRender(()=>r(e,nD(e)))}class sr extends nT{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=r2(t,i),o=t=>{let n=t.currentTarget;if(!si(t))return;r7.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),r7.has(n)&&r7.delete(n),si(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||r6(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};
1return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),n8(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=st(()=>{if(r7.has(i))return;se(i,"down");let t=st(()=>{se(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>se(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),r8.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sn(this.node,e,"Start"),(t,{success:e})=>sn(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let ss=new WeakMap,so=new WeakMap,sa=t=>{let e=ss.get(t.target);e&&e(t)},sl=t=>{t.forEach(sa)},su={some:0,all:1};class sh extends nT{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:su[n]},o=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};var a=this.node.current;let l=function({root:t,...e}){let i=t||document;so.has(i)||so.set(i,{});let n=so.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sl,{root:t,...e})),n[r]}(s);return ss.set(a,o),l.observe(a),()=>{ss.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let sc=function(t,e){if("undefined"==typeof Proxy)return e9;let i=new Map,n=(i,n)=>e9(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,e9(s,void 0,t,e)),i.get(s))})}({animation:{Feature:nP},exit:{Feature:nA},inView:{Feature:sh},tap:{Feature:sr},focus:{Feature:r9},hover:{Feature:r4},pan:{Feature:n0},drag:{Feature:nJ,ProjectionNode:r1,MeasureLayout:n9},layout:{ProjectionNode:r1,MeasureLayout:n9}},(t,e)=>eB(t)?new eF(e):new eE(e,{allowProjection:t!==r.Fragment}))},1847:(t,e,i)=>{i.d(e,{A:()=>a});var n=i(2115);let r=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter((t,e,i)=>!!t&&i.indexOf(t)===e).join(" ")};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,n.forwardRef)((t,e)=>{let{color:i="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:h,iconNode:c,...d}=t;return(0,n.createElement)("svg",{ref:e,...s,width:o,height:o,stroke:i,strokeWidth:l?24*Number(a)/Number(o):a,className:r("lucide",u),...d},[...c.map(t=>{let[e,i]=t;return(0,n.createElement)(e,i)}),...Array.isArray(h)?h:[h]])}),a=(t,e)=>{let i=(0,n.forwardRef)((i,s)=>{let{className:a,...l}=i;return(0,n.createElement)(o,{ref:s,iconNode:e,className:r("lucide-".concat(t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),a),...l})});return i.displayName="".concat(t),i}},2987:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(1847).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},3101:(t,e,i)=>{i.d(e,{F:()=>o});var n=i(2821);let r=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,s=n.$,o=(t,e)=>i=>{var n;if((null==e?void 0:e.variants)==null)return s(t,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:o,defaultVariants:a}=e,l=Object.keys(o).map(t=>{let e=null==i?void 0:i[t],n=null==a?void 0:a[t];if(null===e)return null;let s=r(e)||r(n);return o[t][s]}),u=i&&Object.entries(i).reduce((t,e)=>{let[i,n]=e;return void 0===n||(t[i]=n),t},{});return s(t,l,null==e||null==(n=e.compoundVariants)?void 0:n.reduce((t,e)=>{let{class:i,className:n,...r}=e;return Object.entries(r).every(t=>{let[e,i]=t;return Array.isArray(i)?i.includes({...a,...u}[e]):({...a,...u})[e]===i})?[...t,i,n]:t},[]),null==i?void 0:i.class,null==i?void 0:i.className)}},4652:(t,e,i)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let n=i(8140),r=i(5040),s=i(1356),o=n._(i(1124));function a(t){let{props:e}=(0,r.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=s.Image},5239:(t,e,i)=>{i.d(e,{default:()=>r.a});var n=i(4652),r=i.n(n)},5626:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(1847).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},6673:(t,e,i)=>{i.d(e,{DX:()=>o});var n=i(2115);function r(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}var s=i(5155),o=function(t){let e=function(t){let e=n.forwardRef((t,e)=>{let{children:i,...s}=t;if(n.isValidElement(i)){var o;let t,a,l=(o=i,(a=(t=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?o.ref:(a=(t=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(t,e){let i={...e};for(let n in e){let r=t[n],s=e[n];/^on[A-Z]/.test(n)?r&&s?i[n]=(...t)=>{let e=s(...t);return r(...t),e}:r&&(i[n]=r):"style"===n?i[n]={...r,...s}:"className"===n&&(i[n]=[r,s].filter(Boolean).join(" "))}return{...t,...i}}(s,i.props);return i.type!==n.Fragment&&(u.ref=e?function(...t){return e=>{let i=!1,n=t.map(t=>{let n=r(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():r(t[e],null)}}}}(e,l):l),n.cloneElement(i,u)}return n.Children.count(i)>1?n.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}(t),i=n.forwardRef((t,i)=>{let{children:r,...o}=t,a=n.Children.toArray(r),u=a.find(l);if(u){let t=u.props.children,r=a.map(e=>e!==u?e:n.Children.count(t)>1?n.Children.only(null):n.isValidElement(t)?t.props.children:null);return(0,s.jsx)(e,{...o,ref:i,children:n.isValidElement(t)?n.cloneElement(t,void 0,r):null})}return(0,s.jsx)(e,{...o,ref:i,children:r})});return i.displayName=`${t}.Slot`,i}("Slot"),a=Symbol("radix.slottable");function l(t){return n.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===a}},8072:(t,e,i)=>{i.d(e,{A:()=>A});var n=i(2115);function r(t){return"[object Object]"===Object.prototype.toString.call(t)||Array.isArray(t)}function s(t,e){let i=Object.keys(t),n=Object.keys(e);return i.length===n.length&&JSON.stringify(Object.keys(t.breakpoints||{}))===JSON.stringify(Object.keys(e.breakpoints||{}))&&i.every(i=>{let n=t[i],o=e[i];return"function"==typeof n?`${n}`==`${o}`:r(n)&&r(o)?s(n,o):n===o})}function o(t){return t.concat().sort((t,e)=>t.name>e.name?1:-1).map(t=>t.options)}function a(t){return"number"==typeof t}function l(t){return"string"==typeof t}function u(t){return"boolean"==typeof t}function h(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){return Math.abs(t)}function d(t){return Math.sign(t)}function p(t){return y(t).map(Number)}function m(t){return t[f(t)]}function f(t){return Math.max(0,t.length-1)}function g(t,e=0){return Array.from(Array(t),(t,i)=>e+i)}function y(t){return Object.keys(t)}function v(t,e){return void 0!==e.MouseEvent&&t instanceof e.MouseEvent}function x(){let t=[],e={add:function(i,n,r,s={passive:!0}){let o;return"addEventListener"in i?(i.addEventListener(n,r,s),o=()=>i.removeEventListener(n,r,s)):(i.addListener(r),o=()=>i.removeListener(r)),t.push(o),e},clear:function(){t=t.filter(t=>t())}};return e}function w(t=0,e=0){let i=c(t-e);function n(i){return i<t||i>e}return{length:i,max:e,min:t,constrain:function(i){return n(i)?i<t?t:e:i},reachedAny:n,reachedMax:function(t){return t>e},reachedMin:function(e){return e<t},removeOffset:function(t){return i?t-i*Math.ceil((t-e)/i):t}}}function b(t){let e=t;function i(t){return a(t)?t:t.get()}return{get:function(){return e},set:function(t){e=i(t)},add:function(t){e+=i(t)},subtract:function(t){e-=i(t)}}}function T(t,e){let i="x"===t.scroll?function(t){return`translate3d(${t}px,0px,0px)`}:function(t){return`translate3d(0px,${t}px,0px)`},n=e.style,r=null,s=!1;return{clear:function(){!s&&(n.transform="",e.getAttribute("style")||e.removeAttribute("style"))},to:function(e){if(s)return;let o=Math.round(100*t.direction(e))/100;o!==r&&(n.transform=i(o),r=o)},toggleActive:function(t){s=!t}}}let P={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function S(t,e,i){let n,r,s,o,A,M=t.ownerDocument,E=M.defaultView,V=function(t){function e(t,e){return function t(e,i){return[e,i].reduce((e,i)=>
1(y(i).forEach(n=>{let r=e[n],s=i[n],o=h(r)&&h(s);e[n]=o?t(r,s):s}),e),{})}(t,e||{})}return{mergeOptions:e,optionsAtMedia:function(i){let n=i.breakpoints||{},r=y(n).filter(e=>t.matchMedia(e).matches).map(t=>n[t]).reduce((t,i)=>e(t,i),{});return e(i,r)},optionsMediaQueries:function(e){return e.map(t=>y(t.breakpoints||{})).reduce((t,e)=>t.concat(e),[]).map(t.matchMedia)}}}(E),D=(A=[],{init:function(t,e){return(A=e.filter(({options:t})=>!1!==V.optionsAtMedia(t).active)).forEach(e=>e.init(t,V)),e.reduce((t,e)=>Object.assign(t,{[e.name]:e}),{})},destroy:function(){A=A.filter(t=>t.destroy())}}),C=x(),k=function(){let t,e={},i={init:function(e){t=e},emit:function(n){return(e[n]||[]).forEach(e=>e(t,n)),i},off:function(t,n){return e[t]=(e[t]||[]).filter(t=>t!==n),i},on:function(t,n){return e[t]=(e[t]||[]).concat([n]),i},clear:function(){e={}}};return i}(),{mergeOptions:R,optionsAtMedia:j,optionsMediaQueries:L}=V,{on:F,off:O,emit:B}=k,I=!1,N=R(P,S.globalOptions),U=R(N),$=[];function W(e,i){if(I)return;U=j(N=R(N,e)),$=i||$;let{container:h,slides:P}=U;s=(l(h)?t.querySelector(h):h)||t.children[0];let S=l(P)?s.querySelectorAll(P):P;o=[].slice.call(S||s.children),n=function e(i){let n=function(t,e,i,n,r,s,o){let h,P,{align:S,axis:A,direction:M,startIndex:E,loop:V,duration:D,dragFree:C,dragThreshold:k,inViewThreshold:R,slidesToScroll:j,skipSnaps:L,containScroll:F,watchResize:O,watchSlides:B,watchDrag:I,watchFocus:N}=s,U={measure:function(t){let{offsetTop:e,offsetLeft:i,offsetWidth:n,offsetHeight:r}=t;return{top:e,right:i+n,bottom:e+r,left:i,width:n,height:r}}},$=U.measure(e),W=i.map(U.measure),z=function(t,e){let i="rtl"===e,n="y"===t,r=!n&&i?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":i?"right":"left",endEdge:n?"bottom":i?"left":"right",measureSize:function(t){let{height:e,width:i}=t;return n?e:i},direction:function(t){return t*r}}}(A,M),H=z.measureSize($),Y={measure:function(t){return t/100*H}},X=function(t,e){let i={start:function(){return 0},center:function(t){return(e-t)/2},end:function(t){return e-t}};return{measure:function(n,r){return l(t)?i[t](n):t(e,n,r)}}}(S,H),q=!V&&!!F,{slideSizes:K,slideSizesWithGaps:_,startGap:G,endGap:Z}=function(t,e,i,n,r,s){let{measureSize:o,startEdge:a,endEdge:l}=t,u=i[0]&&r,h=function(){if(!u)return 0;let t=i[0];return c(e[a]-t[a])}(),d=u?parseFloat(s.getComputedStyle(m(n)).getPropertyValue(`margin-${l}`)):0,p=i.map(o),g=i.map((t,e,i)=>{let n=e===f(i);return e?n?p[e]+d:i[e+1][a]-t[a]:p[e]+h}).map(c);return{slideSizes:p,slideSizesWithGaps:g,startGap:h,endGap:d}}(z,$,W,i,V||!!F,r),J=function(t,e,i,n,r,s,o,l,u){let{startEdge:h,endEdge:d,direction:g}=t,y=a(i);return{groupSlides:function(t){return y?p(t).filter(t=>t%i==0).map(e=>t.slice(e,e+i)):t.length?p(t).reduce((i,a,u)=>{let p=m(i)||0,y=a===f(t),v=r[h]-s[p][h],x=r[h]-s[a][d],w=n||0!==p?0:g(o),b=c(x-(!n&&y?g(l):0)-(v+w));return u&&b>e+2&&i.push(a),y&&i.push(t.length),i},[]).map((e,i,n)=>{let r=Math.max(n[i-1]||0);return t.slice(r,e)}):[]}}}(z,H,j,V,$,W,G,Z,0),{snaps:Q,snapsAligned:tt}=function(t,e,i,n,r){let{startEdge:s,endEdge:o}=t,{groupSlides:a}=r,l=a(n).map(t=>m(t)[o]-t[0][s]).map(c).map(e.measure),u=n.map(t=>i[s]-t[s]).map(t=>-c(t)),h=a(u).map(t=>t[0]).map((t,e)=>t+l[e]);return{snaps:u,snapsAligned:h}}(z,X,$,W,J),te=-m(Q)+m(_),{snapsContained:ti,scrollContainLimit:tn}=function(t,e,i,n,r){let s=w(-e+t,0),o=i.map((t,e)=>{let{min:n,max:r}=s,o=s.constrain(t),a=e===f(i);return e?a||function(t,e){return 1>=c(t-e)}(n,o)?n:function(t,e){return 1>=c(t-e)}(r,o)?r:o:r}).map(t=>parseFloat(t.toFixed(3))),a=function(){let t=o[0],e=m(o);return w(o.lastIndexOf(t),o.indexOf(e)+1)}();return{snapsContained:function(){if(e<=t+2)return[s.max];if("keepSnaps"===n)return o;let{min:i,max:r}=a;return o.slice(i,r)}(),scrollContainLimit:a}}(H,te,tt,F,0),tr=q?ti:tt,{limit:ts}=function(t,e,i){let n=e[0];return{limit:w(i?n-t:m(e),n)}}(te,tr,V),to=function t(e,i,n){let{constrain:r}=w(0,e),s=e+1,o=a(i);function a(t){return n?c((s+t)%s):r(t)}function l(){return t(e,o,n)}let u={get:function(){return o},set:function(t){return o=a(t),u},add:function(t){return l().set(o+t)},clone:l};return u}
1(f(tr),E,V),ta=to.clone(),tl=p(i),tu=function(t,e,i,n){let r=x(),s=1e3/60,o=null,a=0,l=0;function u(t){if(!l)return;o||(o=t,i(),i());let r=t-o;for(o=t,a+=r;a>=s;)i(),a-=s;n(a/s),l&&(l=e.requestAnimationFrame(u))}function h(){e.cancelAnimationFrame(l),o=null,a=0,l=0}return{init:function(){r.add(t,"visibilitychange",()=>{t.hidden&&(o=null,a=0)})},destroy:function(){h(),r.clear()},start:function(){l||(l=e.requestAnimationFrame(u))},stop:h,update:i,render:n}}(n,r,()=>(({dragHandler:t,scrollBody:e,scrollBounds:i,options:{loop:n}})=>{n||i.constrain(t.pointerDown()),e.seek()})(tP),t=>(({scrollBody:t,translate:e,location:i,offsetLocation:n,previousLocation:r,scrollLooper:s,slideLooper:o,dragHandler:a,animation:l,eventHandler:u,scrollBounds:h,options:{loop:c}},d)=>{let p=t.settled(),m=!h.shouldConstrain(),f=c?p:p&&m,g=f&&!a.pointerDown();g&&l.stop();let y=i.get()*d+r.get()*(1-d);n.set(y),c&&(s.loop(t.direction()),o.loop()),e.to(n.get()),g&&u.emit("settle"),f||u.emit("scroll")})(tP,t)),th=tr[to.get()],tc=b(th),td=b(th),tp=b(th),tm=b(th),tf=function(t,e,i,n,r,s){let o=0,a=0,l=r,u=.68,h=t.get(),p=0;function m(t){return l=t,g}function f(t){return u=t,g}let g={direction:function(){return a},duration:function(){return l},velocity:function(){return o},seek:function(){let e=n.get()-t.get(),r=0;return l?(i.set(t),o+=e/l,o*=u,h+=o,t.add(o),r=h-p):(o=0,i.set(n),t.set(n),r=e),a=d(r),p=h,g},settled:function(){return .001>c(n.get()-e.get())},useBaseFriction:function(){return f(.68)},useBaseDuration:function(){return m(r)},useFriction:f,useDuration:m};return g}(tc,tp,td,tm,D,.68),tg=function(t,e,i,n,r){let{reachedAny:s,removeOffset:o,constrain:a}=n;function l(t){return t.concat().sort((t,e)=>c(t)-c(e))[0]}function u(e,n){let r=[e,e+i,e-i];if(!t)return e;if(!n)return l(r);let s=r.filter(t=>d(t)===n);return s.length?l(s):m(r)-i}return{byDistance:function(i,n){let l=r.get()+i,{index:h,distance:d}=function(i){let n=t?o(i):a(i),{index:r}=e.map((t,e)=>({diff:u(t-n,0),index:e})).sort((t,e)=>c(t.diff)-c(e.diff))[0];return{index:r,distance:n}}(l),p=!t&&s(l);if(!n||p)return{index:h,distance:i};let m=i+u(e[h]-d,0);return{index:h,distance:m}},byIndex:function(t,i){let n=u(e[t]-r.get(),i);return{index:t,distance:n}},shortcut:u}}(V,tr,te,ts,tm),ty=function(t,e,i,n,r,s,o){function a(r){let a=r.distance,l=r.index!==e.get();s.add(a),a&&(n.duration()?t.start():(t.update(),t.render(1),t.update())),l&&(i.set(e.get()),e.set(r.index),o.emit("select"))}return{distance:function(t,e){a(r.byDistance(t,e))},index:function(t,i){let n=e.clone().set(t);a(r.byIndex(n.get(),i))}}}(tu,to,ta,tf,tg,tm,o),tv=function(t){let{max:e,length:i}=t;return{get:function(t){return i?-((t-e)/i):0}}}(ts),tx=x(),tw=function(t,e,i,n){let r,s={},o=null,a=null,l=!1;return{init:function(){r=new IntersectionObserver(t=>{l||(t.forEach(t=>{s[e.indexOf(t.target)]=t}),o=null,a=null,i.emit("slidesInView"))},{root:t.parentElement,threshold:n}),e.forEach(t=>r.observe(t))},destroy:function(){r&&r.disconnect(),l=!0},get:function(t=!0){if(t&&o)return o;if(!t&&a)return a;let e=y(s).reduce((e,i)=>{let n=parseInt(i),{isIntersecting:r}=s[n];return(t&&r||!t&&!r)&&e.push(n),e},[]);return t&&(o=e),t||(a=e),e}}}(e,i,o,R),{slideRegistry:tb}=function(t,e,i,n,r,s){let{groupSlides:o}=r,{min:a,max:l}=n;return{slideRegistry:function(){let n=o(s);return 1===i.length?[s]:t&&"keepSnaps"!==e?n.slice(a,l).map((t,e,i)=>{let n=e===f(i);return e?n?g(f(s)-m(i)[0]+1,m(i)[0]):t:g(m(i[0])+1)}):n}()}}(q,F,tr,tn,J,tl),tT=function(t,e,i,n,r,s,o,l){let h={passive:!0,capture:!0},c=0;function d(t){"Tab"===t.code&&(c=new Date().getTime())}return{init:function(p){l&&(s.add(document,"keydown",d,!1),e.forEach((e,d)=>{s.add(e,"focus",e=>{(u(l)||l(p,e))&&function(e){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;let s=i.findIndex(t=>t.includes(e));a(s)&&(r.useDuration(0),n.index(s,0),o.emit("slideFocus"))}(d)},h)}))}}}(t,i,tb,ty,tf,tx,o,N),tP={ownerDocument:n,ownerWindow:r,eventHandler:o,containerRect:$,slideRects:W,animation:tu,axis:z,dragHandler:function(t,e,i,n,r,s,o,a,l,h,p,m,f,g,y,b,T,P,S){let{cross:A,direction:M}=t,E=["INPUT","SELECT","TEXTAREA"],V={passive:!1},D=x(),C=x(),k=w(50,225).constrain(g.measure(20)),R={mouse:300,touch:400},j={mouse:500,touch:600},L=y?43:25,F=!1,O=0,B=0,I=!1,N=!1,U=!1,$=!1;function W(t){if(!v(t,n)&&t.touches.length>=2)return z(t);let e=s.readPoint(t),i=s.readPoint(t,A),o=c(e-O),l=c(i-B);if(!N&&!$&&(!t.cancelable||!(N=o>l)))return z(t);let u=s.pointerMove(t);o>b&&(U=!0),h.useFriction(.3).useDuration(.75),a.start(),r.add(M(u)),t.preventDefault()}function z(t){let e=p.byDistance(0,!1).index!==m.get(),i=s.pointerUp(t)*(y?j:R)[$?"mouse":"touch"],n=function(t,e){let i=m.add(-1*d(t)),n=p.b
1yDistance(t,!y).distance;return y||c(t)<k?n:T&&e?.5*n:p.byIndex(i.get(),0).distance}(M(i),e),r=function(t,e){var i,n;if(0===t||0===e||c(t)<=c(e))return 0;let r=(i=c(t),n=c(e),c(i-n));return c(r/t)}(i,n);N=!1,I=!1,C.clear(),h.useDuration(L-10*r).useFriction(.68+r/50),l.distance(n,!y),$=!1,f.emit("pointerUp")}function H(t){U&&(t.stopPropagation(),t.preventDefault(),U=!1)}return{init:function(t){S&&D.add(e,"dragstart",t=>t.preventDefault(),V).add(e,"touchmove",()=>void 0,V).add(e,"touchend",()=>void 0).add(e,"touchstart",a).add(e,"mousedown",a).add(e,"touchcancel",z).add(e,"contextmenu",z).add(e,"click",H,!0);function a(a){(u(S)||S(t,a))&&function(t){let a=v(t,n);if(($=a,U=y&&a&&!t.buttons&&F,F=c(r.get()-o.get())>=2,!a||0===t.button)&&!function(t){let e=t.nodeName||"";return E.includes(e)}(t.target)){I=!0,s.pointerDown(t),h.useFriction(0).useDuration(0),r.set(o);let n=$?i:e;C.add(n,"touchmove",W,V).add(n,"touchend",z).add(n,"mousemove",W,V).add(n,"mouseup",z),O=s.readPoint(t),B=s.readPoint(t,A),f.emit("pointerDown")}}(a)}},destroy:function(){D.clear(),C.clear()},pointerDown:function(){return I}}}(z,t,n,r,tm,function(t,e){let i,n;function r(t){return t.timeStamp}function s(i,n){let r=n||t.scroll,s=`client${"x"===r?"X":"Y"}`;return(v(i,e)?i:i.touches[0])[s]}return{pointerDown:function(t){return i=t,n=t,s(t)},pointerMove:function(t){let e=s(t)-s(n),o=r(t)-r(i)>170;return n=t,o&&(i=t),e},pointerUp:function(t){if(!i||!n)return 0;let e=s(n)-s(i),o=r(t)-r(i),a=r(t)-r(n)>170,l=e/o;return o&&!a&&c(l)>.1?l:0},readPoint:s}}(z,r),tc,tu,ty,tf,tg,to,o,Y,C,k,L,0,I),eventStore:tx,percentOfView:Y,index:to,indexPrevious:ta,limit:ts,location:tc,offsetLocation:tp,previousLocation:td,options:s,resizeHandler:function(t,e,i,n,r,s,o){let a,l,h=[t].concat(n),d=[],p=!1;function m(t){return r.measureSize(o.measure(t))}return{init:function(r){s&&(l=m(t),d=n.map(m),a=new ResizeObserver(i=>{(u(s)||s(r,i))&&function(i){for(let s of i){if(p)return;let i=s.target===t,o=n.indexOf(s.target),a=i?l:d[o];if(c(m(i?t:n[o])-a)>=.5){r.reInit(),e.emit("resize");break}}}(i)}),i.requestAnimationFrame(()=>{h.forEach(t=>a.observe(t))}))},destroy:function(){p=!0,a&&a.disconnect()}}}(e,o,r,i,z,O,U),scrollBody:tf,scrollBounds:function(t,e,i,n,r){let s=r.measure(10),o=r.measure(50),a=w(.1,.99),l=!1;function u(){return!l&&!!t.reachedAny(i.get())&&!!t.reachedAny(e.get())}return{shouldConstrain:u,constrain:function(r){if(!u())return;let l=t.reachedMin(e.get())?"min":"max",h=c(t[l]-e.get()),d=i.get()-e.get(),p=a.constrain(h/o);i.subtract(d*p),!r&&c(d)<s&&(i.set(t.constrain(i.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(t){l=!t}}}(ts,tp,tm,tf,Y),scrollLooper:function(t,e,i,n){let{reachedMin:r,reachedMax:s}=w(e.min+.1,e.max+.1);return{loop:function(e){if(!(1===e?s(i.get()):-1===e&&r(i.get())))return;let o=-1*e*t;
1n.forEach(t=>t.add(o))}}}(te,ts,tp,[tc,tp,td,tm]),scrollProgress:tv,scrollSnapList:tr.map(tv.get),scrollSnaps:tr,scrollTarget:tg,scrollTo:ty,slideLooper:function(t,e,i,n,r,s,o,a,l){let u=p(r),h=p(r).reverse(),c=f(m(h,o[0]),i,!1).concat(f(m(u,e-o[0]-1),-i,!0));function d(t,e){return t.reduce((t,e)=>t-r[e],e)}function m(t,e){return t.reduce((t,i)=>d(t,e)>0?t.concat([i]):t,[])}function f(r,o,u){let h=s.map((t,i)=>({start:t-n[i]+.5+o,end:t+e-.5+o}));return r.map(e=>{let n=u?0:-i,r=u?i:0,s=h[e][u?"end":"start"];return{index:e,loopPoint:s,slideLocation:b(-1),translate:T(t,l[e]),target:()=>a.get()>s?n:r}})}return{canLoop:function(){return c.every(({index:t})=>.1>=d(u.filter(e=>e!==t),e))},clear:function(){c.forEach(t=>t.translate.clear())},loop:function(){c.forEach(t=>{let{target:e,translate:i,slideLocation:n}=t,r=e();r!==n.get()&&(i.to(r),n.set(r))})},loopPoints:c}}(z,H,te,K,_,Q,tr,tp,i),slideFocus:tT,slidesHandler:(P=!1,{init:function(t){B&&(h=new MutationObserver(e=>{!P&&(u(B)||B(t,e))&&function(e){for(let i of e)if("childList"===i.type){t.reInit(),o.emit("slidesChanged");break}}(e)})).observe(e,{childList:!0})},destroy:function(){h&&h.disconnect(),P=!0}}),slidesInView:tw,slideIndexes:tl,slideRegistry:tb,slidesToScroll:J,target:tm,translate:T(z,e)};return tP}(t,s,o,M,E,i,k);return i.loop&&!n.slideLooper.canLoop()?e(Object.assign({},i,{loop:!1})):n}(U),L([N,...$.map(({options:t})=>t)]).forEach(t=>C.add(t,"change",z)),U.active&&(n.translate.to(n.location.get()),n.animation.init(),n.slidesInView.init(),n.slideFocus.init(q),n.eventHandler.init(q),n.resizeHandler.init(q),n.slidesHandler.init(q),n.options.loop&&n.slideLooper.loop(),s.offsetParent&&o.length&&n.dragHandler.init(q),r=D.init(q,$))}function z(t,e){let i=X();H(),W(R({startIndex:i},t),e),k.emit("reInit")}function H(){n.dragHandler.destroy(),n.eventStore.clear(),n.translate.clear(),n.slideLooper.clear(),n.resizeHandler.destroy(),n.slidesHandler.destroy(),n.slidesInView.destroy(),n.animation.destroy(),D.destroy(),C.clear()}function Y(t,e,i){U.active&&!I&&(n.scrollBody.useBaseFriction().useDuration(!0===e?0:U.duration),n.scrollTo.index(t,i||0))}function X(){return n.index.get()}let q={canScrollNext:function(){return n.index.add(1).get()!==X()},canScrollPrev:function(){return n.index.add(-1).get()!==X()},containerNode:function(){return s},internalEngine:function(){return n},destroy:function(){I||(I=!0,C.clear(),H(),k.emit("destroy"),k.clear())},off:O,on:F,emit:B,plugins:function(){return r},previousScrollSnap:function(){return n.indexPrevious.get()},reInit:z,rootNode:function(){return t},scrollNext:function(t){Y(n.index.add(1).get(),t,-1)},scrollPrev:function(t){Y(n.index.add(-1).get(),t,1)},scrollProgress:function(){return n.scrollProgress.get(n.offsetLocation.get())},scrollSnapList:function(){return n.scrollSnapList},scrollTo:Y,selectedScrollSnap:X,slideNodes:function(){return o},slidesInView:function(){return n.slidesInView.get()},slidesNotInView:function(){return n.slidesInView.get(!1)}};
1return W(e,i),setTimeout(()=>k.emit("init"),0),q}function A(t={},e=[]){let i=(0,n.useRef)(t),r=(0,n.useRef)(e),[a,l]=(0,n.useState)(),[u,h]=(0,n.useState)(),c=(0,n.useCallback)(()=>{a&&a.reInit(i.current,r.current)},[a]);return(0,n.useEffect)(()=>{s(i.current,t)||(i.current=t,c())},[t,c]),(0,n.useEffect)(()=>{!function(t,e){if(t.length!==e.length)return!1;let i=o(t),n=o(e);return i.every((t,e)=>s(t,n[e]))}(r.current,e)&&(r.current=e,c())},[e,c]),(0,n.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){S.globalOptions=A.globalOptions;let t=S(u,i.current,r.current);return l(t),()=>t.destroy()}l(void 0)},[u,l]),[h,a]}S.globalOptions=void 0,A.globalOptions=void 0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.