"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2150],{30251:function(t,e){const n="undefined"!==typeof document,s=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),r="framerAppearId",i="data-"+s(r),o={skipAnimations:!1,useManualTiming:!1};class a{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const l=["read","resolveKeyframes","update","preRender","render","postRender"];function u(t,e){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=l.reduce(((t,e)=>(t[e]=function(t){let e=new a,n=new a,s=0,r=!1,i=!1;const o=new WeakSet,l={schedule:(t,i=!1,a=!1)=>{const l=a&&r,u=l?e:n;return i&&o.add(t),u.add(t)&&l&&r&&(s=e.order.length),t},cancel:t=>{n.remove(t),o.delete(t)},process:a=>{if(r)i=!0;else{if(r=!0,[e,n]=[n,e],n.clear(),s=e.order.length,s)for(let n=0;nn=!0)),t)),{}),u=t=>{i[t].process(r)},c=()=>{const i=o.useManualTiming?r.timestamp:performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(i-r.timestamp,40),1),r.timestamp=i,r.isProcessing=!0,l.forEach(u),r.isProcessing=!1,n&&e&&(s=!1,t(c))};return{schedule:l.reduce(((e,o)=>{const a=i[o];return e[o]=(e,i=!1,o=!1)=>(n||(n=!0,s=!0,r.isProcessing||t(c)),a.schedule(e,i,o)),e}),{}),cancel:t=>l.forEach((e=>i[e].cancel(t))),state:r,steps:i}}function c(t){return t&&"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function h(t){return"string"===typeof t||Array.isArray(t)}function d(t){return null!==t&&"object"===typeof t&&"function"===typeof t.start}const p=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],f=["initial",...p];function m(t){return d(t.animate)||f.some((e=>h(t[e])))}function g(t){return Boolean(m(t)||t.variants)}const v={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"]},y={};for(const br in v)y[br]={isEnabled:t=>v[br].some((e=>!!t[e]))};const w={};const b=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],x=new Set(b);function V(t,{layout:e,layoutId:n}){return x.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!w[t]||"opacity"===t)}const T=t=>Boolean(t&&t.getVelocity),S={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},M=b.length;function A(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},s,r){let i="";for(let o=0;oe=>"string"===typeof e&&e.startsWith(t),k=P("--"),C=P("var(--"),E=t=>!!C(t)&&F.test(t.split("/*")[0].trim()),F=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,B=(t,e)=>e&&"number"===typeof t?e.transform(t):t,O=(t,e,n)=>n>e?e:n"number"===typeof t,parse:parseFloat,transform:t=>t},I={...R,transform:t=>O(0,1,t)},D={...R,default:1},L=t=>Math.round(1e5*t)/1e5,N=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,W=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function j(t){return"string"===typeof t}const K=t=>({test:e=>j(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),z=K("deg"),Y=K("%"),H=K("px"),U=K("vh"),X=K("vw"),q={...Y,parse:t=>Y.parse(t)/100,transform:t=>Y.transform(100*t)},G={...R,transform:Math.round},Z={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,size:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,rotate:z,rotateX:z,rotateY:z,rotateZ:z,scale:D,scaleX:D,scaleY:D,scaleZ:D,skew:z,skewX:z,skewY:z,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:I,originX:q,originY:q,originZ:H,zIndex:G,backgroundPositionX:H,backgroundPositionY:H,fillOpacity:I,strokeOpacity:I,numOctaves:G};function _(t,e,n,s){const{style:r,vars:i,transform:o,transformOrigin:a}=t;let l=!1,u=!1,c=!0;for(const h in e){const t=e[h];if(k(h)){i[h]=t;continue}const n=Z[h],s=B(t,n);if(x.has(h)){if(l=!0,o[h]=s,!c)continue;t!==(n.default||0)&&(c=!1)}else h.startsWith("origin")?(u=!0,a[h]=s):r[h]=s}if(e.transform||(l||s?r.transform=A(t.transform,n,c,s):r.transform&&(r.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=a;r.transformOrigin=`${t} ${e} ${n}`}}function J(t,e,n){return"string"===typeof t?t:H.transform(e+n*t)}const Q={offset:"stroke-dashoffset",array:"stroke-dasharray"},tt={offset:"strokeDashoffset",array:"strokeDasharray"};function et(t,{attrX:e,attrY:n,attrScale:s,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h,d){if(_(t,u,c,d),h)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:f,dimensions:m}=t;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(t,e,n){return`${J(e,t.x,t.width)} ${J(n,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==e&&(p.x=e),void 0!==n&&(p.y=n),void 0!==s&&(p.scale=s),void 0!==o&&function(t,e,n=1,s=0,r=!0){t.pathLength=1;const i=r?Q:tt;t[i.offset]=H.transform(-s);const o=H.transform(e),a=H.transform(n);t[i.array]=`${o} ${a}`}(p,o,a,l,!1)}const nt=t=>"string"===typeof t&&"svg"===t.toLowerCase();function st(t,{style:e,vars:n},s,r){Object.assign(t.style,e,r&&r.getProjectionStyles(s));for(const i in n)t.style.setProperty(i,n[i])}const rt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function it(t,e,n,r){st(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(rt.has(i)?i:s(i),e.attrs[i])}function ot(t,e,n){var s;const{style:r}=t,i={};for(const o in r)(T(r[o])||e.style&&T(e.style[o])||V(o,t)||void 0!==(null===(s=null===n||void 0===n?void 0:n.getValue(o))||void 0===s?void 0:s.liveStyle))&&(i[o]=r[o]);return i}function at(t,e,n){const s=ot(t,e,n);for(const r in t)if(T(t[r])||T(e[r])){s[-1!==b.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return s}function lt(t,e,n,s={},r={}){return"function"===typeof e&&(e=e(void 0!==n?n:t.custom,s,r)),"string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e&&(e=e(void 0!==n?n:t.custom,s,r)),e}const ut=t=>Array.isArray(t),ct=t=>t,{schedule:ht,cancel:dt,state:pt,steps:ft}=u("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:ct,!0),mt=(t,e)=>n=>e(t(n)),gt=(...t)=>t.reduce(mt);function vt(t,e,n){const s=t.getProps();return lt(s,e,void 0!==n?n:s.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}const yt=t=>1e3*t,wt=t=>t/1e3,bt={type:"spring",stiffness:500,damping:25,restSpeed:10},xt={type:"keyframes",duration:.8},Vt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tt=(t,{keyframes:e})=>e.length>2?xt:x.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:bt:Vt;function St(t,e){return t[e]||t.default||t}const Mt={current:!1},At=t=>null!==t;function Pt(t,{repeat:e,repeatType:n="loop"},s){const r=t.filter(At),i=e&&"loop"!==n&&e%2===1?0:r.length-1;return i&&void 0!==s?s:r[i]}let kt;function Ct(){kt=void 0}const Et={now:()=>(void 0===kt&&Et.set(pt.isProcessing||o.useManualTiming?pt.timestamp:performance.now()),kt),set:t=>{kt=t,queueMicrotask(Ct)}},Ft=t=>/^0[^.\s]+$/u.test(t);e.warning=ct,e.invariant=ct;const Bt=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Ot=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rt(t,n,s=1){e.invariant(s<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=function(t){const e=Ot.exec(t);if(!e)return[,];const[,n,s,r]=e;return[`--${null!==n&&void 0!==n?n:s}`,r]}(t);if(!r)return;const o=window.getComputedStyle(n).getPropertyValue(r);if(o){const t=o.trim();return Bt(t)?parseFloat(t):t}return E(i)?Rt(i,n,s+1):i}const It=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Dt=t=>t===R||t===H,Lt=(t,e)=>parseFloat(t.split(", ")[e]),Nt=(t,e)=>(n,{transform:s})=>{if("none"===s||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return Lt(r[1],e);{const e=s.match(/^matrix\((.+)\)$/u);return e?Lt(e[1],t):0}},Wt=new Set(["x","y","z"]),$t=b.filter((t=>!Wt.has(t)));const jt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Nt(4,13),y:Nt(5,14)};jt.translateX=jt.x,jt.translateY=jt.y;const Kt=t=>e=>e.test(t),zt=[R,H,Y,z,X,U,{test:t=>"auto"===t,parse:t=>t}],Yt=t=>zt.find(Kt(t)),Ht=new Set;let Ut=!1,Xt=!1;function qt(){if(Xt){const t=Array.from(Ht).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return $t.forEach((n=>{const s=t.getValue(n);void 0!==s&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var s;null===(s=t.getValue(e))||void 0===s||s.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}Xt=!1,Ut=!1,Ht.forEach((t=>t.complete())),Ht.clear()}function Gt(){Ht.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(Xt=!0)}))}class Zt{constructor(t,e,n,s,r,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=s,this.element=r,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ht.add(this),Ut||(Ut=!0,ht.read(Gt),ht.resolveKeyframes(qt))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:s}=this;for(let r=0;rn=>Boolean(j(n)&&$.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Jt=(t,e,n)=>s=>{if(!j(s))return s;const[r,i,o,a]=s.match(N);return{[t]:parseFloat(r),[e]:parseFloat(i),[n]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},Qt={...R,transform:t=>Math.round((t=>O(0,255,t))(t))},te={test:_t("rgb","red"),parse:Jt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Qt.transform(t)+", "+Qt.transform(e)+", "+Qt.transform(n)+", "+L(I.transform(s))+")"};const ee={test:_t("#"),parse:function(t){let e="",n="",s="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:te.transform},ne={test:_t("hsl","hue"),parse:Jt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Y.transform(L(e))+", "+Y.transform(L(n))+", "+L(I.transform(s))+")"},se={test:t=>te.test(t)||ee.test(t)||ne.test(t),parse:t=>te.test(t)?te.parse(t):ne.test(t)?ne.parse(t):ee.parse(t),transform:t=>j(t)?t:t.hasOwnProperty("red")?te.transform(t):ne.transform(t)};const re="number",ie="color",oe=/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 ae(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const o=e.replace(oe,(t=>(se.test(t)?(s.color.push(i),r.push(ie),n.push(se.parse(t))):t.startsWith("var(")?(s.var.push(i),r.push("var"),n.push(t)):(s.number.push(i),r.push(re),n.push(parseFloat(t))),++i,"${}"))).split("${}");return{values:n,split:o,indexes:s,types:r}}function le(t){return ae(t).values}function ue(t){const{split:e,types:n}=ae(t),s=e.length;return t=>{let r="";for(let i=0;i"number"===typeof t?0:t;const he={test:function(t){var e,n;return isNaN(t)&&j(t)&&((null===(e=t.match(N))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(W))||void 0===n?void 0:n.length)||0)>0},parse:le,createTransformer:ue,getAnimatableNone:function(t){const e=le(t);return ue(t)(e.map(ce))}},de=new Set(["brightness","contrast","saturate","opacity"]);function pe(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[s]=n.match(N)||[];if(!s)return t;const r=n.replace(s,"");let i=de.has(e)?1:0;return s!==n&&(i*=100),e+"("+i+r+")"}const fe=/\b([a-z-]*)\(.*?\)/gu,me={...he,getAnimatableNone:t=>{const e=t.match(fe);return e?e.map(pe).join(" "):t}},ge={...Z,color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:me,WebkitFilter:me},ve=t=>ge[t];function ye(t,e){let n=ve(t);return n!==me&&(n=he),n.getAnimatableNone?n.getAnimatableNone(e):void 0}class we extends Zt{constructor(t,e,n,s){super(t,e,n,s,null===s||void 0===s?void 0:s.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e.current)return;super.readKeyframes();for(let a=0;a{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}function be(t){let e;return()=>(void 0===e&&(e=t()),e)}const xe=(t,e)=>"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!he.test(t)&&"0"!==t||t.startsWith("url(")));class Ve{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:e,type:n,repeat:s,repeatDelay:r,repeatType:i,...o},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(Gt(),qt()),this._resolved}onKeyframesResolved(t,n){this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!function(t,n,s,r){const i=t[0];if(null===i)return!1;const o=t[t.length-1],a=xe(i,n),l=xe(o,n);return e.warning(a===l,`You are trying to animate ${n} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!(!a||!l)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n{this.resolveFinishedPromise=t}))}}function Te(t,e){return e?t*(1e3/e):0}function Se(t,e,n){const s=Math.max(e-5,0);return Te(n-t(s),e-s)}const Me=.001;function Ae({duration:t=800,bounce:n=.25,velocity:s=0,mass:r=1}){let i,o;e.warning(t<=yt(10),"Spring duration must be 10 seconds or less");let a=1-n;a=O(.05,1,a),t=O(.01,10,wt(t)),a<1?(i=e=>{const n=e*a,r=n*t,i=n-s,o=Pe(e,a),l=Math.exp(-r);return Me-i/o*l},o=e=>{const n=e*a*t,r=n*s+s,o=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-n),u=Pe(Math.pow(e,2),a);return(-i(e)+Me>0?-1:1)*((r-o)*l)/u}):(i=e=>Math.exp(-e*t)*((e-s)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(s-e)));const l=function(t,e,n){let s=n;for(let r=1;r<12;r++)s-=t(s)/e(s);return s}(i,o,5/t);if(t=yt(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}function Pe(t,e){return t*Math.sqrt(1-e*e)}const ke=["duration","bounce"],Ce=["stiffness","damping","mass"];function Ee(t,e){return e.some((e=>void 0!==t[e]))}function Fe({keyframes:t,restDelta:e,restSpeed:n,...s}){const r=t[0],i=t[t.length-1],o={done:!1,value:r},{stiffness:a,damping:l,mass:u,duration:c,velocity:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Ee(t,Ce)&&Ee(t,ke)){const n=Ae(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...s,velocity:-wt(s.velocity||0)}),p=h||0,f=l/(2*Math.sqrt(a*u)),m=i-r,g=wt(Math.sqrt(a/u)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),e||(e=v?.005:.5),f<1){const t=Pe(g,f);y=e=>{const n=Math.exp(-f*g*e);return i-n*((p+f*g*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===f)y=t=>i-Math.exp(-g*t)*(m+(p+g*m)*t);else{const t=g*Math.sqrt(f*f-1);y=e=>{const n=Math.exp(-f*g*e),s=Math.min(t*e,300);return i-n*((p+f*g*m)*Math.sinh(s)+t*m*Math.cosh(s))/t}}return{calculatedDuration:d&&c||null,next:t=>{const s=y(t);if(d)o.done=t>=c;else{let r=p;0!==t&&(r=f<1?Se(y,t,s):0);const a=Math.abs(r)<=n,l=Math.abs(i-s)<=e;o.done=a&&l}return o.value=o.done?i:s,o}}}function Be({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)-f*Math.exp(-t/s),y=t=>g+v(t),w=t=>{const e=v(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?g:n};let b,x;const V=t=>{var e;(e=d.value,void 0!==a&&el)&&(b=t,x=Fe({keyframes:[d.value,p(d.value)],velocity:Se(y,t,d.value),damping:r,stiffness:i,restDelta:u,restSpeed:c}))};return V(0),{calculatedDuration:null,next:t=>{let e=!1;return x||void 0!==b||(e=!0,w(t),V(t)),void 0!==b&&t>=b?x.next(t-b):(!e&&w(t),d)}}}const Oe=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Re(t,e,n,s){if(t===e&&n===s)return ct;const r=e=>function(t,e,n,s,r){let i,o,a=0;do{o=e+(n-e)/2,i=Oe(o,s,r)-t,i>0?n=o:e=o}while(Math.abs(i)>1e-7&&++a<12);return o}(e,0,1,t,n);return t=>0===t||1===t?t:Oe(r(t),e,s)}const Ie=Re(.42,0,1,1),De=Re(0,0,.58,1),Le=Re(.42,0,.58,1),Ne=t=>Array.isArray(t)&&"number"!==typeof t[0],We=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,$e=t=>e=>1-t(1-e),je=t=>1-Math.sin(Math.acos(t)),Ke=$e(je),ze=We(je),Ye=Re(.33,1.53,.69,.99),He=$e(Ye),Ue=We(He),Xe=t=>(t*=2)<1?.5*He(t):.5*(2-Math.pow(2,-10*(t-1))),qe={linear:ct,easeIn:Ie,easeInOut:Le,easeOut:De,circIn:je,circInOut:ze,circOut:Ke,backIn:He,backInOut:Ue,backOut:Ye,anticipate:Xe},Ge=t=>{if(Array.isArray(t)){e.invariant(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[n,s,r,i]=t;return Re(n,s,r,i)}return"string"===typeof t?(e.invariant(void 0!==qe[t],`Invalid easing type '${t}'`),qe[t]):t},Ze=(t,e,n)=>{const s=e-t;return 0===s?1:(n-t)/s},_e=(t,e,n)=>t+(e-t)*n;function Je(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const Qe=(t,e,n)=>{const s=t*t,r=n*(e*e-s)+s;return r<0?0:Math.sqrt(r)},tn=[ee,te,ne];function en(t){const n=(s=t,tn.find((t=>t.test(s))));var s;e.invariant(Boolean(n),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=n.parse(t);return n===ne&&(r=function({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,n/=100;let r=0,i=0,o=0;if(e/=100){const s=n<.5?n*(1+e):n+e-n*e,a=2*n-s;r=Je(a,s,t+1/3),i=Je(a,s,t),o=Je(a,s,t-1/3)}else r=i=o=n;return{red:Math.round(255*r),green:Math.round(255*i),blue:Math.round(255*o),alpha:s}}(r)),r}const nn=(t,e)=>{const n=en(t),s=en(e),r={...n};return t=>(r.red=Qe(n.red,s.red,t),r.green=Qe(n.green,s.green,t),r.blue=Qe(n.blue,s.blue,t),r.alpha=_e(n.alpha,s.alpha,t),te.transform(r))};function sn(t,e){return n=>n>0?e:t}function rn(t,e){return n=>_e(t,e,n)}function on(t){return"number"===typeof t?rn:"string"===typeof t?E(t)?sn:se.test(t)?nn:un:Array.isArray(t)?an:"object"===typeof t?se.test(t)?nn:ln:sn}function an(t,e){const n=[...t],s=n.length,r=t.map(((t,n)=>on(t)(t,e[n])));return t=>{for(let e=0;e{for(const e in s)n[e]=s[e](t);return n}}const un=(t,n)=>{const s=he.createTransformer(n),r=ae(t),i=ae(n);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gt(an(function(t,e){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;in[0];if(2===o&&t[0]===t[1])return()=>n[1];t[0]>t[o-1]&&(t=[...t].reverse(),n=[...n].reverse());const a=function(t,e,n){const s=[],r=n||cn,i=t.length-1;for(let o=0;o{let n=0;if(l>1)for(;nu(O(t[0],t[o-1],e)):u}function dn(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const r=Ze(0,e,s);t.push(_e(n,1,r))}}function pn(t){const e=[0];return dn(e,t.length-1),e}function fn({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const r=Ne(s)?s.map(Ge):Ge(s),i={done:!1,value:e[0]},o=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:pn(e),t),a=hn(o,e,{ease:Array.isArray(r)?r:(l=e,u=r,l.map((()=>u||Le)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(i.value=a(e),i.done=e>=t,i)}}const mn=2e4;function gn(t){let e=0;let n=t.next(e);for(;!n.done&&e=mn?1/0:e}const vn=t=>{const e=({timestamp:e})=>t(e);return{start:()=>ht.update(e,!0),stop:()=>dt(e),now:()=>pt.isProcessing?pt.timestamp:Et.now()}},yn={decay:Be,inertia:Be,tween:fn,keyframes:fn,spring:Fe},wn=t=>t/100;class bn extends Ve{constructor({KeyframeResolver:t=Zt,...e}){super(e),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:n,motionValue:s,keyframes:r}=this.options,i=(t,e)=>this.onKeyframesResolved(t,e);n&&s&&s.owner?this.resolver=s.owner.resolveKeyframes(r,i,n,s):this.resolver=new t(r,i,n,s),this.resolver.scheduleResolve()}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r,velocity:i=0}=this.options,o=yn[e]||fn;let a,l;o!==fn&&"number"!==typeof t[0]&&(a=gt(wn,cn(t[0],t[1])),t=[0,100]);const u=o({...this.options,keyframes:t});"mirror"===r&&(l=o({...this.options,keyframes:[...t].reverse(),velocity:-i})),null===u.calculatedDuration&&(u.calculatedDuration=gn(u));const{calculatedDuration:c}=u,h=c+s;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:h,totalDuration:h*(n+1)-s}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:s,generator:r,mirroredGenerator:i,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return r.next(0);const{delay:h,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-h*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,w=r;if(d){const t=Math.min(this.currentTime,u)/c;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);Boolean(e%2)&&("reverse"===p?(n=1-n,f&&(n-=f/c)):"mirror"===p&&(w=i)),y=O(0,1,n)*c}const b=v?{done:!1,value:a[0]}:w.next(y);o&&(b.value=o(b.value));let{done:x}=b;v||null===l||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const V=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return V&&void 0!==s&&(b.value=Pt(a,this.options,s)),m&&m(b.value),V&&this.finish(),b}get duration(){const{resolved:t}=this;return t?wt(t.calculatedDuration):0}get time(){return wt(this.currentTime)}set time(t){t=yt(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=wt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=vn,onPlay:e}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const xn=t=>Array.isArray(t)&&"number"===typeof t[0];function Vn(t){return Boolean(!t||"string"===typeof t&&t in Sn||xn(t)||Array.isArray(t)&&t.every(Vn))}const Tn=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Sn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tn([0,.65,.55,1]),circOut:Tn([.55,0,1,.45]),backIn:Tn([.31,.01,.66,-.59]),backOut:Tn([.33,1.53,.69,.99])};function Mn(t){return An(t)||Sn.easeOut}function An(t){return t?xn(t)?Tn(t):Array.isArray(t)?t.map(Mn):Sn[t]:void 0}function Pn(t,e,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=An(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===o?"alternate":"normal"})}const kn=be((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Cn=new Set(["opacity","clipPath","filter","transform"]);class En extends Ve{constructor(t){super(t);const{name:e,motionValue:n,keyframes:s}=this.options;this.resolver=new we(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n),this.resolver.scheduleResolve()}initPlayback(t,e){var n;let{duration:s=300,times:r,ease:i,type:o,motionValue:a,name:l}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(u=this.options).type||"backgroundColor"===u.name||!Vn(u.ease)){const{onComplete:e,onUpdate:n,motionValue:a,...l}=this.options,u=function(t,e){const n=new bn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const r=[];let i=0;for(;!s.done&&i<2e4;)s=n.sample(i),r.push(s.value),i+=10;return{times:void 0,keyframes:r,duration:i-10,ease:"linear"}}(t,l);1===(t=u.keyframes).length&&(t[1]=t[0]),s=u.duration,r=u.times,i=u.ease,o="keyframes"}var u;const c=Pn(a.owner.current,l,t,{...this.options,duration:s,times:r,ease:i});return c.startTime=Et.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;a.set(Pt(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:s,times:r,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return wt(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return wt(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=yt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return ct;const{animation:n}=e;n.timeline=t,n.onfinish=null}else this.pendingTimeline=t;return ct}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:s,type:r,ease:i,times:o}=t;if("idle"!==e.playState&&"finished"!==e.playState){if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,...l}=this.options,u=new bn({...l,keyframes:n,duration:s,type:r,ease:i,times:o,isGenerator:!0}),c=yt(this.time);t.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:r,damping:i,type:o}=t;return kn()&&n&&Cn.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!s&&"mirror"!==r&&0!==i&&"inertia"!==o}}const Fn=(t,e,n,s={},r,i)=>a=>{const l=St(s,t)||{},u=l.delay||s.delay||0;let{elapsed:c=0}=s;c-=yt(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:i?void 0:r};(function({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(l)||(h={...h,...Tt(t,h)}),h.duration&&(h.duration=yt(h.duration)),h.repeatDelay&&(h.repeatDelay=yt(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(h.duration=0,0===h.delay&&(d=!0)),(Mt.current||o.skipAnimations)&&(d=!0,h.duration=0,h.delay=0),d&&!i&&void 0!==e.get()){const t=Pt(h.keyframes,l);if(void 0!==t)return void ht.update((()=>{h.onUpdate(t),h.onComplete()}))}return!i&&En.supports(h)?new En(h):new bn(h)};function Bn(t){return Boolean(T(t)&&t.add)}function On(t,e){-1===t.indexOf(e)&&t.push(e)}function Rn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class In{constructor(){this.subscriptions=[]}add(t){return On(this.subscriptions,t),()=>Rn(this.subscriptions,t)}notify(t,e,n){const s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,n);else for(let r=0;r{const n=Et.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=Et.now()}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 In);const n=this.events[t].add(e);return"change"===t?()=>{n(),ht.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Ln.current&&Ln.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Et.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Te(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Wn(t,e){return new Nn(t,e)}function $n(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Wn(n))}function jn(t,e){const n=vt(t,e);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const a in i){$n(t,a,(o=i[a],ut(o)?o[o.length-1]||0:o))}var o}function Kn({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,s}function zn(t,e,{delay:n=0,transitionOverride:s,type:r}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:l,...u}=e;const c=t.getValue("willChange");s&&(a=s);const h=[],d=r&&t.animationState&&t.animationState.getState()[r];for(const p in u){const e=t.getValue(p,null!==(o=t.latestValues[p])&&void 0!==o?o:null),s=u[p];if(void 0===s||d&&Kn(d,p))continue;const r={delay:n,elapsed:0,...St(a||{},p)};let l=!1;if(window.HandoffAppearAnimations){const e=t.getProps()[i];if(e){const t=window.HandoffAppearAnimations(e,p);null!==t&&(r.elapsed=t,l=!0)}}e.start(Fn(p,e,s,t.shouldReduceMotion&&x.has(p)?{type:!1}:r,t,l));const f=e.animation;f&&(Bn(c)&&(c.add(p),f.then((()=>c.remove(p)))),h.push(f))}return l&&Promise.all(h).then((()=>{ht.update((()=>{l&&jn(t,l)}))})),h}const Yn=(t,e)=>Math.abs(t-e);const Hn=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Un({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Xn(t){return void 0===t||1===t}function qn({scale:t,scaleX:e,scaleY:n}){return!Xn(t)||!Xn(e)||!Xn(n)}function Gn(t){return qn(t)||Zn(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Zn(t){return _n(t.x)||_n(t.y)}function _n(t){return t&&"0%"!==t}function Jn(t,e,n){return n+e*(t-n)}function Qn(t,e,n,s,r){return void 0!==r&&(t=Jn(t,r,s)),Jn(t,n,s)+e}function ts(t,e=0,n=1,s,r){t.min=Qn(t.min,e,n,s,r),t.max=Qn(t.max,e,n,s,r)}function es(t,{x:e,y:n}){ts(t.x,e.translate,e.scale,e.originPoint),ts(t.y,n.translate,n.scale,n.originPoint)}function ns(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function ss(t,e){t.min=t.min+e,t.max=t.max+e}function rs(t,e,[n,s,r]){const i=void 0!==e[r]?e[r]:.5,o=_e(t.min,t.max,i);ts(t,e[n],e[s],o,e.scale)}const is=["x","scaleX","originX"],os=["y","scaleY","originY"];function as(t,e){rs(t.x,e,is),rs(t.y,e,os)}function ls(t,e){return Un(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}function us(t,n,s){var r;if("string"===typeof t){let i=document;n&&(e.invariant(Boolean(n.current),"Scope provided, but no element detected."),i=n.current),s?(null!==(r=s[t])&&void 0!==r||(s[t]=i.querySelectorAll(t)),t=s[t]):t=i.querySelectorAll(t)}else t instanceof Element&&(t=[t]);return Array.from(t||[])}const cs=new WeakMap;function hs(t,e){let n;const s=()=>{const{currentTime:s}=e,r=(null===s?0:s.value)/100;n!==r&&t(r),n=r};return ht.update(s,!0),()=>dt(s)}const ds=be((()=>void 0!==window.ScrollTimeline));class ps{constructor(t){this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n{if(!ds()||!e.attachTimeline)return e.pause(),hs((t=>{e.time=e.duration*t}),t);e.attachTimeline(t)}));return()=>{e.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let e=0;ee[t]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}stop(){this.runAll("stop")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function fs(t){return t instanceof SVGElement&&"svg"!==t.tagName}const ms={current:null},gs={current:!1};function vs(){if(gs.current=!0,n)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ms.current=t.matches;t.addListener(e),e()}else ms.current=!1}const ys=[...zt,se,he],ws=Object.keys(y),bs=ws.length,xs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Vs=f.length;function Ts(t){if(t)return!1!==t.options.allowProjection?t.projection:Ts(t.parent)}class Ss{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:s,blockInitialAnimation:r,visualState:i},o={}){this.resolveKeyframes=(t,e,n,s)=>new this.KeyframeResolver(t,e,n,s,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ht.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=m(e),this.isVariantNode=g(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const h in c){const t=c[h];void 0!==a[h]&&T(t)&&(t.set(a[h],!1),Bn(u)&&u.add(h))}}mount(t){this.current=t,cs.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))),gs.current||vs(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ms.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;cs.delete(this.current),this.projection&&this.projection.unmount(),dt(this.notifyUpdate),dt(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)null===(t=this.features[e])||void 0===t||t.unmount();this.current=null}bindToMotionValue(t,e){const n=x.has(t),s=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&ht.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{s(),r(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,s,r){let i,o;for(let a=0;athis.scheduleRender(),animationType:"string"===typeof n?n:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}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 n=0;ne.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const 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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Wn(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let s=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var r;return void 0!==s&&null!==s&&("string"===typeof s&&(Bt(s)||Ft(s))?s=parseFloat(s):(r=s,!ys.find(Kt(r))&&he.test(e)&&(s=ye(t,e))),this.setBaseTarget(t,T(s)?s.get():s)),T(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let s;if("string"===typeof n||"object"===typeof n){const r=lt(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(s=r[t])}if(n&&void 0!==s)return s;const r=this.getBaseTargetFromProps(this.props,t);return void 0===r||T(r)?void 0!==this.initialValues[t]&&void 0===s?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new In),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Ms extends Ss{constructor(){super(...arguments),this.KeyframeResolver=we}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:n}){delete e[t],delete n[t]}}class As extends Ms{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(x.has(e)){const t=ve(e);return t&&t.default||0}return e=rt.has(e)?e:s(e),t.getAttribute(e)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t,e,n){return at(t,e,n)}build(t,e,n,s){et(t,e,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,e,n,s){it(t,e,0,s)}mount(t){this.isSVGTag=nt(t.tagName),super.mount(t)}}class Ps extends Ms{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(x.has(e)){const t=ve(e);return t&&t.default||0}{const s=(n=t,window.getComputedStyle(n)),r=(k(e)?s.getPropertyValue(e):s[e])||0;return"string"===typeof r?r.trim():r}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return ls(t,e)}build(t,e,n,s){_(t,e,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return ot(t,e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;T(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,s){st(t,e,n,s)}}function ks(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=fs(t)?new As(e,{enableHardwareAcceleration:!1}):new Ps(e,{enableHardwareAcceleration:!0});n.mount(t),cs.set(t,n)}function Cs(t,e,n){const s=T(t)?t:Wn(t);return s.start(Fn("",s,e,n)),s.animation}function Es(t,e=100){const n=Fe({keyframes:[0,e],...t}),s=Math.min(gn(n),mn);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:wt(s)}}function Fs(t,e,n,s){var r;return"number"===typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:null!==(r=s.get(e))&&void 0!==r?r:t}const Bs=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t};function Os(t,e){return Ne(t)?t[Bs(0,t.length,e)]:t}function Rs(t,e,n,s,r,i){!function(t,e,n){for(let s=0;se&&r.at"number"===typeof t,js=t=>t.every($s);function Ks(t,n,s,r){const i=us(t,r),o=i.length;e.invariant(Boolean(o),"No valid element provided.");const a=[];for(let e=0;e{const a=Ns(t),{delay:l=0,times:u=pn(a),type:d="keyframes",...p}=n;let{ease:f=e.ease||"easeOut",duration:g}=n;const v="function"===typeof l?l(i,o):l,y=a.length;if(y<=2&&"spring"===d){let t=100;if(2===y&&js(a)){const e=a[1]-a[0];t=Math.abs(e)}const e={...p};void 0!==g&&(e.duration=yt(g));const n=Es(e,t);f=n.ease,g=n.duration}null!==g&&void 0!==g||(g=r);const w=c+v,b=w+g;1===u.length&&0===u[0]&&(u[1]=1);const x=u.length-a.length;x>0&&dn(u,x),1===a.length&&a.unshift(null),Rs(s,a,f,u,w,b),m=Math.max(v+g,m),h=Math.max(b,h)};if(T(i))g(p,f,Ls("default",Ds(i,o)));else{const t=us(i,s,a),e=t.length;for(let n=0;n{for(const r in t){const o=t[r];o.sort(Is);const a=[],l=[],u=[];for(let t=0;t{let r;r=T(n)?Cs(n,t.default,e.default):Ks(n,t,e),s.push(r)})),new ps(s)}const Ys=t=>function(e,n,s){let r;var i;return i=e,r=Array.isArray(i)&&Array.isArray(i[0])?zs(e,n,t):function(t){return"object"===typeof t&&!Array.isArray(t)}(n)?Ks(e,n,s,t):Cs(e,n,s),t&&t.animations.push(r),r},Hs=Ys(),Us=new WeakMap;let Xs;function qs({target:t,contentRect:e,borderBoxSize:n}){var s;null===(s=Us.get(t))||void 0===s||s.forEach((s=>{s({target:t,contentSize:e,get size(){return function(t,e){if(e){const{inlineSize:t,blockSize:n}=e[0];return{width:t,height:n}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,n)}})}))}function Gs(t){t.forEach(qs)}function Zs(t,e){Xs||"undefined"!==typeof ResizeObserver&&(Xs=new ResizeObserver(Gs));const n=us(t);return n.forEach((t=>{let n=Us.get(t);n||(n=new Set,Us.set(t,n)),n.add(e),null===Xs||void 0===Xs||Xs.observe(t)})),()=>{n.forEach((t=>{const n=Us.get(t);null===n||void 0===n||n.delete(e),(null===n||void 0===n?void 0:n.size)||null===Xs||void 0===Xs||Xs.unobserve(t)}))}}const _s=new Set;let Js;function Qs(t){return _s.add(t),Js||(Js=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};_s.forEach((t=>t(e)))},window.addEventListener("resize",Js)),()=>{_s.delete(t),!_s.size&&Js&&(Js=void 0)}}const tr={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function er(t,e,n,s){const r=n[e],{length:i,position:o}=tr[e],a=r.current,l=n.time;r.current=t[`scroll${o}`],r.scrollLength=t[`scroll${i}`]-t[`client${i}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=Ze(0,r.scrollLength,r.current);const u=s-l;r.velocity=u>50?0:Te(r.current-a,u)}const nr={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},sr={start:0,center:.5,end:1};function rr(t,e,n=0){let s=0;if(t in sr&&(t=sr[t]),"string"===typeof t){const e=parseFloat(t);t.endsWith("px")?s=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?s=e/100*document.documentElement.clientWidth:t.endsWith("vh")?s=e/100*document.documentElement.clientHeight:t=e}return"number"===typeof t&&(s=e*t),n+s}const ir=[0,0];function or(t,e,n,s){let r=Array.isArray(t)?t:ir,i=0,o=0;return"number"===typeof t?r=[t,t]:"string"===typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,sr[t]?t:"0"]),i=rr(r[0],n,s),o=rr(r[1],e),i-o}const ar={x:0,y:0};function lr(t,e,n){const{offset:s=nr.All}=n,{target:r=t,axis:i="y"}=n,o="y"===i?"height":"width",a=r!==t?function(t,e){const n={x:0,y:0};let s=t;for(;s&&s!==e;)if(s instanceof HTMLElement)n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if("svg"===s.tagName){const t=s.getBoundingClientRect();s=s.parentElement;const e=s.getBoundingClientRect();n.x+=t.left-e.left,n.y+=t.top-e.top}else{if(!(s instanceof SVGGraphicsElement))break;{const{x:t,y:e}=s.getBBox();n.x+=t,n.y+=e;let r=null,i=s.parentNode;for(;!r;)"svg"===i.tagName&&(r=i),i=s.parentNode;s=r}}return n}(r,t):ar,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:function(t){return"getBBox"in t&&"svg"!==t.tagName?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}(r),u={width:t.clientWidth,height:t.clientHeight};e[i].offset.length=0;let c=!e[i].interpolate;const h=s.length;for(let d=0;dfunction(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let s=e;for(;s&&s!==t;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,s.target,n),update:e=>{!function(t,e,n){er(t,"x",e,n),er(t,"y",e,n),e.time=n}(t,n,e),(s.offset||s.target)&&lr(t,n,s)},notify:()=>e(n)}}const cr=new WeakMap,hr=new WeakMap,dr=new WeakMap,pr=t=>t===document.documentElement?window:t;function fr(t,{container:e=document.documentElement,...n}={}){let s=dr.get(e);s||(s=new Set,dr.set(e,s));const r=ur(e,t,{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}},n);if(s.add(r),!cr.has(e)){const t=()=>{for(const t of s)t.measure()},n=()=>{for(const t of s)t.update(pt.timestamp)},r=()=>{for(const t of s)t.notify()},a=()=>{ht.read(t,!1,!0),ht.read(n,!1,!0),ht.update(r,!1,!0)};cr.set(e,a);const l=pr(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&hr.set(e,(o=a,"function"===typeof(i=e)?Qs(i):Zs(i,o))),l.addEventListener("scroll",a,{passive:!0})}var i,o;const a=cr.get(e);return ht.read(a,!1,!0),()=>{var t;dt(a);const n=dr.get(e);if(!n)return;if(n.delete(r),n.size)return;const s=cr.get(e);cr.delete(e),s&&(pr(e).removeEventListener("scroll",s),null===(t=hr.get(e))||void 0===t||t(),window.removeEventListener("resize",s))}}const mr=new Map;function gr({source:t=document.documentElement,axis:e="y"}={}){mr.has(t)||mr.set(t,{});const n=mr.get(t);return n[e]||(n[e]=ds()?new ScrollTimeline({source:t,axis:e}):function({source:t,axis:e="y"}){const n={value:0},s=fr((t=>{n.value=100*t[e].progress}),{container:t,axis:e});return{currentTime:n,cancel:s}}({source:t,axis:e})),n[e]}const vr={some:0,all:1};const yr=ht,wr=l.reduce(((t,e)=>(t[e]=t=>dt(t),t)),{});e.AcceleratedAnimation=En,e.HTMLVisualElement=Ps,e.MotionGlobalConfig=o,e.MotionValue=Nn,e.SVGVisualElement=As,e.SubscriptionManager=In,e.VisualElement=Ss,e.addScaleCorrector=function(t){Object.assign(w,t)},e.addUniqueItem=On,e.animate=Hs,e.animateMotionValue=Fn,e.animateSingleValue=Cs,e.animateStyle=Pn,e.animateTarget=zn,e.animateValue=function(t){return new bn(t)},e.anticipate=Xe,e.applyBoxDelta=es,e.applyTreeDeltas=function(t,e,n,s=!1){const r=n.length;if(!r)return;let i,o;e.x=e.y=1;for(let a=0;a({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),e.createRenderBatcher=u,e.createScopedAnimate=Ys,e.cubicBezier=Re,e.delay=function(t,e){const n=Et.now(),s=({timestamp:r})=>{const i=r-n;i>=e&&(dt(s),t(i-e))};return ht.read(s,!0),()=>dt(s)},e.distance=Yn,e.distance2D=function(t,e){const n=Yn(t.x,e.x),s=Yn(t.y,e.y);return Math.sqrt(n**2+s**2)},e.easeIn=Ie,e.easeInOut=Le,e.easeOut=De,e.featureDefinitions=y,e.frame=ht,e.frameData=pt,e.getValueTransition=St,e.has2DTranslate=Zn,e.hasReducedMotionListener=gs,e.hasScale=qn,e.hasTransform=Gn,e.inView=function(t,e,{root:n,margin:s,amount:r="some"}={}){const i=us(t),o=new WeakMap,a=new IntersectionObserver((t=>{t.forEach((t=>{const n=o.get(t.target);if(t.isIntersecting!==Boolean(n))if(t.isIntersecting){const n=e(t);"function"===typeof n?o.set(t.target,n):a.unobserve(t.target)}else n&&(n(t),o.delete(t.target))}))}),{root:n,rootMargin:s,threshold:"number"===typeof r?r:vr[r]});return i.forEach((t=>a.observe(t))),()=>a.disconnect()},e.initPrefersReducedMotion=vs,e.instantAnimationState=Mt,e.interpolate=hn,e.isAnimationControls=d,e.isBrowser=n,e.isCSSVariableName=k,e.isControllingVariants=m,e.isCustomValue=t=>Boolean(t&&"object"===typeof t&&t.mix&&t.toValue),e.isForcedMotionValue=V,e.isKeyframesTarget=ut,e.isMotionValue=T,e.isRefObject=c,e.isSVGElement=fs,e.isSVGTag=nt,e.isVariantLabel=h,e.isVariantNode=g,e.measurePageBox=function(t,e,n){const s=ls(t,n),{scroll:r}=e;return r&&(ss(s.x,r.offset.x),ss(s.y,r.offset.y)),s},e.millisecondsToSeconds=wt,e.mirrorEasing=We,e.mix=cn,e.mixNumber=_e,e.motionValue=Wn,e.moveItem=function([...t],e,n){const s=e<0?t.length+e:e;if(s>=0&&s{const o="number"===typeof n?n:function(t,e){if("first"===t)return 0;{const n=e-1;return"last"===t?n:n/2}}(n,i),a=Math.abs(o-r);let l=t*a;if(s){const e=i*t;l=Ge(s)(l/e)*e}return e+l}},e.steps=ft,e.sync=yr,e.time=Et,e.transform=function(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],r=t[1+n],i=t[2+n],o=t[3+n],a=hn(r,i,{mixer:(l=i[0],(t=>t&&"object"===typeof t&&t.mix)(l)?l.mix:void 0),...o});var l;return e?a(s):a},e.transformBox=as,e.transformProps=x,e.translateAxis=ss,e.variantPriorityOrder=p,e.visualElementStore=cs,e.warnOnce=function(t,e,n){t||Dn.has(e)||(console.warn(e),n&&console.warn(n),Dn.add(e))},e.wrap=Bs}}]);