1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="09bc2e03-816b-4344-9d35-f91d82035f81",t._sentryDebugIdIdentifier="sentry-dbid-09bc2e03-816b-4344-9d35-f91d82035f81")}()}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9464],{13114:function(t,e,i){i.d(e,{M:function(){return g}});var s=i(85893),n=i(67294),r=i(25364),o=i(96681),a=i(58868),l=i(240),u=i(16014);class h extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=t instanceof HTMLElement&&t.offsetWidth||0,s=this.props.sizeRef.current;s.height=e.offsetHeight||0,s.width=e.offsetWidth||0,s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:e,anchorX:i}){let r=(0,n.useId)(),o=(0,n.useRef)(null),a=(0,n.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=(0,n.useContext)(u._);return(0,n.useInsertionEffect)(()=>{let{width:t,height:s,top:n,left:u,right:h}=a.current;if(e||!o.current||!t||!s)return;let d="left"===i?`left: ${u}`:`right: ${h}`;o.current.dataset.motionPopId=r;let c=document.createElement("style");return l&&(c.nonce=l),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` 2 [data-motion-pop-id="${r}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${s}px !important; 6 ${d}px !important; 7 top: ${n}px !important; 8 } 9 `),()=>{document.head.removeChild(c)}},[e]),(0,s.jsx)(h,{isPresent:e,childRef:o,sizeRef:a,children:n.cloneElement(t,{ref:o})})}let c=({children:t,initial:e,isPresent:i,onExitComplete:r,custom:a,presenceAffectsLayout:u,mode:h,anchorX:c})=>{let m=(0,o.h)(p),f=(0,n.useId)(),v=(0,n.useCallback)(t=>
9{for(let e of(m.set(t,!0),m.values()))if(!e)return;r&&r()},[m,r]),g=(0,n.useMemo)(()=>({id:f,initial:e,isPresent:i,custom:a,onExitComplete:v,register:t=>(m.set(t,!1),()=>m.delete(t))}),u?[Math.random(),v]:[i,v]);return(0,n.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[i]),n.useEffect(()=>{i||m.size||!r||r()},[i]),"popLayout"===h&&(t=(0,s.jsx)(d,{isPresent:i,anchorX:c,children:t})),(0,s.jsx)(l.O.Provider,{value:g,children:t})};function p(){return new Map}var m=i(15947);let f=t=>t.key||"";function v(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}let g=({children:t,custom:e,initial:i=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:d=!1,anchorX:p="left"})=>{let[g,y]=(0,m.oO)(d),x=(0,n.useMemo)(()=>v(t),[t]),P=d&&!g?[]:x.map(f),w=(0,n.useRef)(!0),T=(0,n.useRef)(x),S=(0,o.h)(()=>new Map),[b,M]=(0,n.useState)(x),[A,D]=(0,n.useState)(x);(0,a.L)(()=>{w.current=!1,T.current=x;for(let t=0;t<A.length;t++){let e=f(A[t]);P.includes(e)?S.delete(e):!0!==S.get(e)&&S.set(e,!1)}},[A,P.length,P.join("-")]);let V=[];if(x!==b){let t=[...x];for(let e=0;e<A.length;e++){let i=A[e],s=f(i);P.includes(s)||(t.splice(e,0,i),V.push(i))}return"wait"===h&&V.length&&(t=V),D(v(t)),M(x),null}let{forceRender:C}=(0,n.useContext)(r.p);return(0,s.jsx)(s.Fragment,{children:A.map(t=>{let n=f(t),r=(!d||!!g)&&(x===A||P.includes(n));return(0,s.jsx)(c,{isPresent:r,initial:(!w.current||!!i)&&void 0,custom:e,presenceAffectsLayout:u,mode:h,onExitComplete:r?void 0:()=>{if(!S.has(n))return;S.set(n,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(null==C||C(),D(T.current),d&&(null==y||y()),l&&l())},anchorX:p,children:t},n)})})}},15947:function(t,e,i){i.d(e,{oO:function(){return r}});var s=i(67294),n=i(240);function r(t=!0){let e=(0,s.useContext)(n.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:o}=e,a=(0,s.useId)();(0,s.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,s.useCallback)(()=>t&&r&&r(a),[a,r,t]);return!i&&r?[!1,l]:[!0]}},93093:function(t,e,i){i.d(e,{A:function(){return l}});var s=i(85893),n=i(67294),r=i(16014),o=i(91492),a=i(96681);function l({children:t,isValidProp:e,...i}){e&&(0,o.K)(e),(i={...(0,n.useContext)(r._),...i}).isStatic=(0,a.h)(()=>i.isStatic);let l=(0,n.useMemo)(()=>i,[JSON.stringify(i.transition),i.transformPagePoint,i.reducedMotion]);return(0,s.jsx)(r._.Provider,{value:l,children:t})}},25364:function(t,e,i){i.d(e,{p:function(){return s}});let s=(0,i(67294).createContext)({})},16014:function(t,e,i){i.d(e,{_:function(){return s}});let s=(0,i(67294).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},240:function(t,e,i){i.d(e,{O:function(){return s}});let s=(0,i(67294).createContext)(null)},60153:function(t,e,i){i.d(e,{o:function(){return o}});var s=i(96681);
9class n{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,e){this.componentControls.forEach(i=>{i.start(t.nativeEvent||t,e)})}}let r=()=>new n;function o(){return(0,s.h)(r)}},16025:function(t,e,i){i.d(e,{E:function(){return nW}});var s,n,r=i(50465);function o(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function a(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function l(t,e,i,s){if("function"==typeof e){let[n,r]=a(s);e=e(void 0!==i?i:t.custom,n,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,r]=a(s);e=e(void 0!==i?i:t.custom,n,r)}return e}function u(t,e,i){let s=t.getProps();return l(s,e,void 0!==i?i:s.custom,t)}var h=i(97905);let d=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],c=new Set(d),p=new Set(["width","height","top","left","right","bottom",...d]),m=t=>Array.isArray(t),f=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),v=t=>m(t)?t[t.length-1]||0:t,g=t=>!!(t&&t.getVelocity);function y(t,e){let i=t.getValue("willChange");if(g(i)&&i.add)return i.add(e)}let x=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),P="data-"+x("framerAppearId"),w={current:!1},T=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function S(t,e,i,s){if(t===e&&i===s)return r.ZT;let n=e=>(function(t,e,i,s,n){let r,o;let a=0;do(r=T(o=e+(i-e)/2,s,n)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:T(n(t),e,s)}let b=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,M=t=>e=>1-t(1-e),A=S(.33,1.53,.69,.99),D=M(A),V=b(D),C=t=>(t*=2)<1?.5*D(t):.5*(2-Math.pow(2,-10*(t-1))),E=t=>1-Math.sin(Math.acos(t)),R=M(E),k=b(E),j=t=>/^0[^.\s]+$/u.test(t),L=(t,e,i)=>i>e?e:i<t?t:i,F={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},B={...F,transform:t=>L(0,1,t)},O={...F,default:1},I=t=>Math.round(1e5*t)/1e5,U=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,W=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$=(t,e)=>i=>!!("string"==typeof i&&W.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),X=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,o,a]=s.match(U);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},N=t=>L(0,255,t),Y={...F,transform:t=>Math.round(N(t))},z={test:$("rgb","red"),parse:X("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+Y.transform(t)+", "+Y.transform(e)+", "+Y.transform(i)+", "+I(B.transform(s))+")"},H={test:$("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:z.transform},K=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),_=K("deg"),Z=K("%"),G=K("px"),q=K("vh"),J=K("vw"),Q={...Z,parse:t=>Z.parse(t)/100,transform:t=>Z.transform(100*t)},tt={test:$("hsl","hue"),parse:X("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+Z.transform(I(e))+", "+Z.transform(I(i))+", "+I(B.transform(s))+")"},te={test:t=>z.test(t)||H.test(t)||tt.test(t),parse:t=>z.test(t)?z.parse(t):tt.test(t)?tt.parse(t):H.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?z.transform(t):tt.transform(t)},ti=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ts="number",tn="color",tr=/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 to(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,o=e.replace(tr,t=>(te.test(t)?(s.color.push(r),n.push(tn),i.push(te.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(ts),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:s,types:n}}function ta(t){return to(t).values}function tl(t){let{split:e,types:i}=to(t),s=e.length;return t=>{let n="";for(let r=0;r<s;r++)if(n+=e[r],void 0!==t[r]){let e=i[r];e===ts?n+=I(t[r]):e===tn?n+=te.transform(t[r]):n+=t[r]}return n}}let tu=t=>"number"==typeof t?0:t,th={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(U))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(ti))||void 0===i?void 0:i.length)||0)>0},parse:ta,createTransformer:tl,getAnimatableNone:function(t){let e=ta(t);return tl(t)(e.map(tu))}},td=new Set(["brightness","contrast","saturate","opacity"]);function tc(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(U)||[];if(!s)return t;let n=i.replace(s,""),r=td.has(e)?1:0;return s!==i&&(r*=100),e+"("+r+n+")"}let tp=/\b([a-z-]*)\(.*?\)/gu,tm={...th,getAnimatableNone:t=>{let e=t.match(tp);return e?e.map(tc).join(" "):t}},tf={...F,transform:Math.round},tv={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,backgroundPositionX:G,backgroundPositionY:G,rotate:_,rotateX:_,rotateY:_,rotateZ:_,scale:O,scaleX:O,scaleY:O,scaleZ:O,skew:_,skewX:_,skewY:_,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:B,originX:Q,originY:Q,originZ:G,zIndex:tf,size:G,fillOpacity:B,strokeOpacity:B,numOctaves:tf},tg={...tv,color:te,backgroundColor:te,outlineColor:te,fill:te,stroke:te,borderColor:te,borderTopColor:te,borderRightColor:te,borderBottomColor:te,borderLeftColor:te,filter:tm,WebkitFilter:tm},ty=t=>tg[t];function tx(t,e){let i=ty(t);return i!==tm&&(i=th),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
9let tP=new Set(["auto","none","0"]),tw=t=>180*t/Math.PI,tT=t=>tb(tw(Math.atan2(t[1],t[0]))),tS={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tT,rotateZ:tT,skewX:t=>tw(Math.atan(t[1])),skewY:t=>tw(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tb=t=>((t%=360)<0&&(t+=360),t),tM=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tA=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tM,scaleY:tA,scale:t=>(tM(t)+tA(t))/2,rotateX:t=>tb(tw(Math.atan2(t[6],t[5]))),rotateY:t=>tb(tw(Math.atan2(-t[2],t[0]))),rotateZ:tT,rotate:tT,skewX:t=>tw(Math.atan(t[4])),skewY:t=>tw(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tV(t){return t.includes("scale")?1:0}function tC(t,e){let i,s;if(!t||"none"===t)return tV(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tD,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tS,s=e}if(!s)return tV(e);let r=i[e],o=s[1].split(",").map(tR);return"function"==typeof r?r(o):o[r]}let tE=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tC(i,e)};function tR(t){return parseFloat(t.trim())}let tk=t=>t===F||t===G,tj=new Set(["x","y","z"]),tL=d.filter(t=>!tj.has(t)),tF={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})=>tC(e,"x"),y:(t,{transform:e})=>tC(e,"y")};tF.translateX=tF.x,tF.translateY=tF.y;let tB=new Set,tO=!1,tI=!1;function tU(){if(tI){let t=Array.from(tB).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 tL.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),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])=>{var s;null===(s=t.getValue(e))||void 0===s||s.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tI=!1,tO=!1,tB.forEach(t=>t.complete()),tB.clear()}function tW(){tB.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tI=!0)})}class t${constructor(t,e,i,s,n,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tB.add(this),tO||(tO=!0,h.Wi.read(tW),h.Wi.resolveKeyframes(tU))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let n=0;n<t.length;n++)if(null===t[n]){if(0===n){let n=null==s?void 0:s.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.set(t[0])}else t[n]=t[n-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tB.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tB.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tX=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tN=t=>e=>"string"==typeof e&&e.startsWith(t),tY=tN("--"),tz=tN("var(--"),tH=t=>!!tz(t)&&tK.test(t.split("/*")[0].trim()),tK=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,t_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tZ=t=>e=>e.test(t),tG=[F,G,Z,_,J,q,{test:t=>"auto"===t,parse:t=>t}],tq=t=>tG.find(tZ(t));class tJ extends t${constructor(t,e,i,s,n){super(t,e,i,s,n,!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 s=t[i];if("string"==typeof s&&tH(s=s.trim())){let n=function t(e,i,s=1){(0,r.kG)(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,o]=function(t){let e=t_.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${null!=i?i:s}`,n]}(e);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let t=a.trim();return tX(t)?parseFloat(t):t}return tH(o)?t(o,i,s+1):o}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!p.has(i)||2!==t.length)return;let[s,n]=t,o=tq(s),a=tq(n);if(o!==a){if(tk(o)&&tk(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var s;("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||j(s))&&i.push(e)}
9i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!tP.has(e)&&to(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=tx(i,s)}(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=tF[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;let n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);let r=s.length-1,o=s[r];s[r]=tF[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let tQ=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(th.test(t)||"0"===t)&&!t.startsWith("url(")),t0=t=>null!==t;function t1(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(t0),r=e&&"loop"!==i&&e%2==1?0:n.length-1;return r&&void 0!==s?s:n[r]}class t5{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=h.XV.now(),this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tW(),tU()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=h.XV.now(),this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:n,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],a=tQ(n,e),l=tQ(o,e);return(0,r.Kp)(a===l,`You are trying to animate ${e} from "${n}" to "${o}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${o} via the \`style\` property.`),!!a&&!!l&&(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||(0,h.xD)(i))&&s)}(t,i,s,n)){if(w.current||!o){l&&l(t1(t,this.options,e)),a&&a(),this.resolveFinishedPromise();return}this.options.duration=0}let d=this.initPlayback(t,e);!1!==d&&(this._resolved={keyframes:t,finalKeyframe:e,...d},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}let t2=(t,e,i)=>t+(e-t)*i;function t4(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 t9(t,e){return i=>i>0?e:t}let t3=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},t6=[H,z,tt],t8=t=>t6.find(e=>e.test(t));function t7(t){let e=t8(t);if((0,r.Kp)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tt&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;n=t4(a,s,t+1/3),r=t4(a,s,t),o=t4(a,s,t-1/3)}else n=r=o=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}(i)),i}let et=(t,e)=>{let i=t7(t),s=t7(e);if(!i||!s)return t9(t,e);let n={...i};return t=>(n.red=t3(i.red,s.red,t),n.green=t3(i.green,s.green,t),n.blue=t3(i.blue,s.blue,t),n.alpha=t2(i.alpha,s.alpha,t),z.transform(n))},ee=(t,e)=>i=>e(t(i)),ei=(...t)=>t.reduce(ee),es=new Set(["none","hidden"]);function en(t,e){return i=>t2(t,e,i)}function er(t){return"number"==typeof t?en:"string"==typeof t?tH(t)?t9:te.test(t)?et:el:Array.isArray(t)?eo:"object"==typeof t?te.test(t)?et:ea:t9}function eo(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>er(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function ea(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=er(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let el=(t,e)=>{let i=th.createTransformer(e),s=to(t),n=to(e);return s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length?es.has(t)&&!n.values.length||es.has(e)&&!s.values.length?es.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:ei(eo(function(t,e){var i;let s=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let o=e.types[r],a=t.indexes[o][n[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;s[r]=l,n[o]++}return s}(s,n),n.values),i):((0,r.Kp)(!0,`Complex values '${t}' and '${e}
9' 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.`),t9(t,e))};function eu(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?t2(t,e,i):er(t)(t,e)}function eh(t,e,i){let s=Math.max(e-5,0);return(0,r.Rv)(i-t(s),e-s)}let ed={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 ec(t,e){return t*Math.sqrt(1-e*e)}let ep=["duration","bounce"],em=["stiffness","damping","mass"];function ef(t,e){return e.some(e=>void 0!==t[e])}function ev(t=ed.visualDuration,e=ed.bounce){let i;let s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:o}=s,a=s.keyframes[0],l=s.keyframes[s.keyframes.length-1],u={done:!1,value:a},{stiffness:d,damping:c,mass:p,duration:m,velocity:f,isResolvedFromDuration:v}=function(t){let e={velocity:ed.velocity,stiffness:ed.stiffness,damping:ed.damping,mass:ed.mass,isResolvedFromDuration:!1,...t};if(!ef(t,em)&&ef(t,ep)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*L(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:ed.mass,stiffness:s,damping:n}}else{let i=function({duration:t=ed.duration,bounce:e=ed.bounce,velocity:i=ed.velocity,mass:s=ed.mass}){let n,o;(0,r.Kp)(t<=(0,r.w4)(ed.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=L(ed.minDamping,ed.maxDamping,a),t=L(ed.minDuration,ed.maxDuration,(0,r.X5)(t)),a<1?(n=e=>{let s=e*a,n=s*t;return .001-(s-i)/ec(e,a)*Math.exp(-n)},o=e=>{let s=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=ec(Math.pow(e,2),a);return(s*i+i-r)*Math.exp(-s)*(-n(e)+.001>0?-1:1)/o}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),o=e=>t*t*(i-e)*Math.exp(-e*t));let l=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,o,5/t);if(t=(0,r.w4)(t),isNaN(l))return{stiffness:ed.stiffness,damping:ed.damping,duration:t};{let e=Math.pow(l,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:ed.mass}).isResolvedFromDuration=!0}}return e}({...s,velocity:-(0,r.X5)(s.velocity||0)}),g=f||0,y=c/(2*Math.sqrt(d*p)),x=l-a,P=(0,r.X5)(Math.sqrt(d/p)),w=5>Math.abs(x);if(n||(n=w?ed.restSpeed.granular:ed.restSpeed.default),o||(o=w?ed.restDelta.granular:ed.restDelta.default),y<1){let t=ec(P,y);i=e=>l-Math.exp(-y*P*e)*((g+y*P*x)/t*Math.sin(t*e)+x*Math.cos(t*e))}else if(1===y)i=t=>l-Math.exp(-P*t)*(x+(g+P*x)*t);else{let t=P*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*P*e),s=Math.min(t*e,300);return l-i*((g+y*P*x)*Math.sinh(s)+t*x*Math.cosh(s))/t}}let T={calculatedDuration:v&&m||null,next:t=>{let e=i(t);if(v)u.done=t>=m;else{let s=0;y<1&&(s=0===t?(0,r.w4)(g):eh(i,t,e));let a=Math.abs(s)<=n,h=Math.abs(l-e)<=o;u.done=a&&h}return u.value=u.done?l:e,u},toString:()=>{let t=Math.min((0,h.iI)(T),h.EO),e=(0,h.wk)(e=>T.next(t*e).value,t,30);return t+"ms "+e}};return T}function eg({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c;let p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let P=t=>-g*Math.exp(-t/s),w=t=>x+P(t),T=t=>{let e=P(t),i=w(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},S=t=>{f(m.value)&&(d=t,c=ev({keyframes:[m.value,v(m.value)],velocity:eh(w,t,m.value),damping:n,stiffness:r,restDelta:u,restSpeed:h}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),S(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),m)}}}let ey=S(.42,0,1,1),ex=S(0,0,.58,1),eP=S(.42,0,.58,1),ew=t=>Array.isArray(t)&&"number"!=typeof t[0],eT={linear:r.ZT,easeIn:ey,easeInOut:eP,easeOut:ex,circIn:E,circInOut:k,circOut:R,backIn:D,backInOut:V,backOut:A,anticipate:C},eS=t=>{if((0,h.qE)(t)){(0,r.kG)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,n]=t;return S(e,i,s,n)}return"string"==typeof t?((0,r.kG)(void 0!==eT[t],`Invalid easing type '${t}'`),eT[t]):t};function eb({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){let n=ew(s)?s.map(eS):eS(s),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let o=t.length;if((0,r.kG)(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());
9let l=function(t,e,i){let s=[],n=i||eu,o=t.length-1;for(let i=0;i<o;i++){let o=n(t[i],t[i+1]);e&&(o=ei(Array.isArray(e)?e[i]||r.ZT:e,o)),s.push(o)}return s}(e,s,n),u=l.length,h=i=>{if(a&&i<t[0])return e[0];let s=0;if(u>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=(0,r.YD)(t[s],t[s+1],i);return l[s](n)};return i?e=>h(L(t[0],t[o-1],e)):h}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=(0,r.YD)(0,e,s);t.push(t2(i,1,n))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(n)?n:e.map(()=>n||eP).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let eM=t=>{let e=({timestamp:e})=>t(e);return{start:()=>h.Wi.update(e,!0),stop:()=>(0,h.Pn)(e),now:()=>h.frameData.isProcessing?h.frameData.timestamp:h.XV.now()}},eA={decay:eg,inertia:eg,tween:eb,keyframes:eb,spring:ev},eD=t=>t/100;class eV extends t5{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:s,keyframes:n}=this.options,r=(null==s?void 0:s.KeyframeResolver)||t$;this.resolver=new r(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:s="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=this.options,l=(0,h.xD)(s)?s:eA[s]||eb;l!==eb&&"number"!=typeof t[0]&&(e=ei(eD,eu(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=(0,h.iI)(u));let{calculatedDuration:d}=u,c=d+r;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:d,resolvedDuration:c,totalDuration:c*(n+1)-r}}onPostResolved(){let{autoplay:t=!0}=this.options;h.PM.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:s,generator:n,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return n.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=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;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=n;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=r)),y=L(0,1,i)*h}let P=g?{done:!1,value:a[0]}:x.next(y);o&&(P.value=o(P.value));let{done:w}=P;g||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return T&&void 0!==s&&(P.value=t1(a,this.options,s)),f&&f(P.value),T&&this.finish(),P}get duration(){let{resolved:t}=this;return t?(0,r.X5)(t.calculatedDuration):0}get time(){return(0,r.X5)(this.currentTime)}set time(t){t=(0,r.w4)(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){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,r.X5)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eM,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let s=this.driver.now();null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=s):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
9ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{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(),h.PM.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let eC=new Set(["opacity","clipPath","filter","transform"]),eE=(0,r.X$)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),eR={anticipate:C,backInOut:V,circInOut:k};class ek extends t5{constructor(t){super(t);let{name:e,motionValue:i,element:s,keyframes:n}=this.options;this.resolver=new tJ(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:s=300,times:n,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof r&&(0,h.Vc)()&&r in eR&&(r=eR[r]),i=this.options,(0,h.xD)(i.type)||"spring"===i.type||!(0,h.hR)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new eV({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},n=[],r=0;for(;!s.done&&r<2e4;)n.push((s=i.sample(r)).value),r+=10;return{times:void 0,keyframes:n,duration:r-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),s=h.duration,n=h.times,r=h.ease,o="keyframes"}let d=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let d=(0,h.eB)(a,n);Array.isArray(d)&&(u.easing=d),h.fx.value&&h.PM.waapi++;let c=t.animate(u,{delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"});return h.fx.value&&c.finished.finally(()=>{h.PM.waapi--}),c}(a.owner.current,l,t,{...this.options,duration:s,times:n,ease:r});return d.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?((0,h._F)(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;a.set(t1(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:s,times:n,type:o,ease:r,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,r.X5)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,r.X5)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,r.w4)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return r.ZT;let{animation:i}=e;(0,h._F)(i,t)}else this.pendingTimeline=t;return r.ZT}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:s,type:n,ease:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,d=new eV({...h,keyframes:i,duration:s,type:n,ease:o,times:a,isGenerator:!0}),c=(0,r.w4)(this.time);t.setWithVelocity(d.sample(c-10).value,d.sample(c).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}
9static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return eE()&&i&&eC.has(i)&&!a&&!l&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}}let ej={type:"spring",stiffness:500,damping:25,restSpeed:10},eL=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),eF={type:"keyframes",duration:.8},eB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eO=(t,{keyframes:e})=>e.length>2?eF:c.has(t)?t.startsWith("scale")?eL(e[1]):ej:eB,eI=(t,e,i,s={},n,o)=>a=>{let l=(0,h.ev)(s,t)||{},u=l.delay||s.delay||0,{elapsed:d=0}=s;d-=(0,r.w4)(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-d,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&(c={...c,...eO(t,c)}),c.duration&&(c.duration=(0,r.w4)(c.duration)),c.repeatDelay&&(c.repeatDelay=(0,r.w4)(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let p=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(p=!0)),(w.current||r.cW.skipAnimations)&&(p=!0,c.duration=0,c.delay=0),c.allowFlatten=!l.type&&!l.ease,p&&!o&&void 0!==e.get()){let t=t1(c.keyframes,l);if(void 0!==t)return h.Wi.update(()=>{c.onUpdate(t),c.onComplete()}),new h.sP([])}return!o&&ek.supports(c)?new ek(c):new eV(c)};function eU(t,e,{delay:i=0,transitionOverride:s,type:n}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);let d=[],c=n&&t.animationState&&t.animationState.getState()[n];for(let e in l){let s=t.getValue(e,null!==(r=t.latestValues[e])&&void 0!==r?r:null),n=l[e];if(void 0===n||c&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(c,e))continue;let a={delay:i,...(0,h.ev)(o||{},e)},u=!1;if(window.MotionHandoffAnimation){let i=t.props[P];if(i){let t=window.MotionHandoffAnimation(i,e,h.Wi);null!==t&&(a.startTime=t,u=!0)}}y(t,e),s.start(eI(e,s,n,t.shouldReduceMotion&&p.has(e)?{type:!1}:a,t,u));let m=s.animation;m&&d.push(m)}return a&&Promise.all(d).then(()=>{h.Wi.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=u(t,e)||{};for(let e in n={...n,...i}){let i=v(n[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,h.BX)(i))}}(t,a)})}),d}function eW(t,e,i={}){var s;let n=u(t,e,"exit"===i.type?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let o=n?()=>Promise.all(eU(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,s=0,n=1,r){let o=[],a=(t.variantChildren.size-1)*s,l=1===n?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(e$).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(eW(t,e,{...r,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+s,o,a,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function e$(t,e){return t.sortNodePosition(e)}function eX(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}function eN(t){return"string"==typeof t||Array.isArray(t)}let eY=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ez=["initial",...eY],eH=ez.length,eK=[...eY].reverse(),e_=eY.length;function eZ(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eG(){return{animate:eZ(!0),whileInView:eZ(),whileHover:eZ(),whileTap:eZ(),whileDrag:eZ(),whileFocus:eZ(),exit:eZ()}}class eq{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eJ extends eq{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
9(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>eW(t,e,i)));else if("string"==typeof e)s=eW(t,e,i);else{let n="function"==typeof e?u(t,e,i.custom):e;s=Promise.all(eU(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=eG(),s=!0,n=e=>(i,s)=>{var n;let r=u(t,s,"exit"===e?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0);if(r){let{transition:t,transitionEnd:e,...s}=r;i={...i,...s,...e}}return i};function r(r){let{props:a}=t,l=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<eH;t++){let s=ez[t],n=e.props[s];(eN(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},h=[],d=new Set,c={},p=1/0;for(let e=0;e<e_;e++){var f;let u=eK[e],v=i[u],g=void 0!==a[u]?a[u]:l[u],y=eN(g),x=u===r?v.isActive:null;!1===x&&(p=e);let P=g===l[u]&&g!==a[u]&&y;if(P&&s&&t.manuallyAnimateOnMount&&(P=!1),v.protectedKeys={...c},!v.isActive&&null===x||!g&&!v.prevProp||o(g)||"boolean"==typeof g)continue;let w=(f=v.prevProp,"string"==typeof g?g!==f:!!Array.isArray(g)&&!eX(g,f)),T=w||u===r&&v.isActive&&!P&&y||e>p&&y,S=!1,b=Array.isArray(g)?g:[g],M=b.reduce(n(u),{});!1===x&&(M={});let{prevResolvedValues:A={}}=v,D={...A,...M},V=e=>{T=!0,d.has(e)&&(S=!0,d.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in D){let e=M[t],i=A[t];if(!c.hasOwnProperty(t))(m(e)&&m(i)?eX(e,i):e===i)?void 0!==e&&d.has(t)?V(t):v.protectedKeys[t]=!0:null!=e?V(t):d.add(t)}v.prevProp=g,v.prevResolvedValues=M,v.isActive&&(c={...c,...M}),s&&t.blockInitialAnimation&&(T=!1);let C=!(P&&w)||S;T&&C&&h.push(...b.map(t=>({animation:t,options:{type:u}})))}if(d.size){let e={};if("boolean"!=typeof a.initial){let i=u(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=s?s:null}),h.push({animation:e})}let v=!!h.length;return s&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,v?e(h):Promise.resolve()}return{animateChanges:r,setActive:function(e,s){var n;if(i[e].isActive===s)return Promise.resolve();null===(n=t.variantChildren)||void 0===n||n.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,s)}),i[e].isActive=s;
9let o=r(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=eG(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();o(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(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let eQ=0;class e0 extends eq{constructor(){super(...arguments),this.id=eQ++}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 s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}function e1(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function e5(t){return{point:{x:t.pageX,y:t.pageY}}}let e2=t=>e=>(0,h.DJ)(e)&&t(e,e5(e));function e4(t,e,i,s){return e1(t,e,e2(i),s)}function e9({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function e3(t){return t.max-t.min}function e6(t,e,i,s=.5){t.origin=s,t.originPoint=t2(e.min,e.max,t.origin),t.scale=e3(i)/e3(e),t.translate=t2(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 e8(t,e,i,s){e6(t.x,e.x,i.x,s?s.originX:void 0),e6(t.y,e.y,i.y,s?s.originY:void 0)}function e7(t,e,i){t.min=i.min+e.min,t.max=t.min+e3(e)}function it(t,e,i){t.min=e.min-i.min,t.max=t.min+e3(e)}function ie(t,e,i){it(t.x,e.x,i.x),it(t.y,e.y,i.y)}let ii=()=>({translate:0,scale:1,origin:0,originPoint:0}),is=()=>({x:ii(),y:ii()}),ir=()=>({min:0,max:0}),io=()=>({x:ir(),y:ir()});function ia(t){return[t("x"),t("y")]}function il(t){return void 0===t||1===t}function iu({scale:t,scaleX:e,scaleY:i}){return!il(t)||!il(e)||!il(i)}function ih(t){return iu(t)||id(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function id(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function ic(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function ip(t,e=0,i=1,s,n){t.min=ic(t.min,e,i,s,n),t.max=ic(t.max,e,i,s,n)}function im(t,{x:e,y:i}){ip(t.x,e.translate,e.scale,e.originPoint),ip(t.y,i.translate,i.scale,i.originPoint)}function iv(t,e){t.min=t.min+e,t.max=t.max+e}function ig(t,e,i,s,n=.5){let r=t2(t.min,t.max,n);ip(t,e,i,r,s)}function iy(t,e){ig(t.x,e.x,e.scaleX,e.scale,e.originX),ig(t.y,e.y,e.scaleY,e.scale,e.originY)}function ix(t,e){return e9(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}let iP=({current:t})=>t?t.ownerDocument.defaultView:null;function iw(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iT=(t,e)=>Math.abs(t-e);class iS{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=iA(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(iT(t.x,e.x)**2+iT(t.y,e.y)**2)>=3);if(!s&&!n)return;let{point:r}=i,{timestamp:o}=h.frameData;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ib(e,this.transformPagePoint),h.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=iA("pointercancel"===t.type?this.lastMoveEventInfo:ib(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!(0,h.DJ)(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let r=ib(e5(t),this.transformPagePoint),{point:o}=r,{timestamp:a}=h.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iA(r,this.history)),this.removeListeners=ei(e4(this.contextWindow,"pointermove",this.handlePointerMove),e4(this.contextWindow,"pointerup",this.handlePointerUp),e4(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,h.Pn)(this.updatePoint)}}function ib(t,e){return e?{point:e(t.point)}:t}function iM(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iA({point:t},e){return{point:t,delta:iM(t,iD(e)),offset:iM(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=iD(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>(0,r.w4)(.1)));)i--;if(!s)return{x:0,y:0};let o=(0,r.X5)(n.timestamp-s.timestamp);if(0===o)return{x:0,y:0};let a={x:(n.x-s.x)/o,y:(n.y-s.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,0)}}function iD(t){return t[t.length-1]}function iV(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 iC(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}
9function iE(t,e,i){return{min:iR(t,e),max:iR(t,i)}}function iR(t,e){return"number"==typeof t?t:t[e]||0}let ik=new WeakMap;class ij{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=io(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new iS(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(e5(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,h.KV)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ia(t=>{let e=this.getAxisMotionValue(t).get()||0;if(Z.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];if(s){let t=e3(s);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),n&&h.Wi.postRender(()=>n(t,e)),y(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&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&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ia(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:iP(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:n}=this.getProps();n&&h.Wi.postRender(()=>n(t,e))}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:s}=this.getProps();if(!i||!iL(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?t2(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?t2(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,n=this.constraints;e&&iw(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:iV(t.x,i,n),y:iV(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iE(t,"left","right"),y:iE(t,"top","bottom")}}(i),n!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ia(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}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iw(e))return!1;let s=e.current;(0,r.kG)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
9let o=function(t,e,i){let s=ix(t,i),{scroll:n}=e;return n&&(iv(s.x,n.offset.x),iv(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a={x:iC((t=n.layout.layoutBox).x,o.x),y:iC(t.y,o.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=e9(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(ia(o=>{if(!iL(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return y(this.visualElement,t),i.start(eI(t,i,0,e,this.visualElement,!1))}stopAnimation(){ia(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ia(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.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){ia(e=>{let{drag:i}=this.getProps();if(!iL(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e];n.set(t[e]-t2(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iw(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};ia(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=e3(t),n=e3(e);return n>s?i=(0,r.YD)(e.min,e.max-s,t.min):s>n&&(i=(0,r.YD)(t.min,t.max-n,e.min)),L(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ia(e=>{if(!iL(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set(t2(n,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;ik.set(this.visualElement,this);let t=e4(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iw(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),h.Wi.read(e);let n=e1(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ia(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function iL(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class iF extends eq{constructor(t){super(t),this.removeGroupControls=r.ZT,this.removeListeners=r.ZT,this.controls=new ij(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||r.ZT}unmount(){this.removeGroupControls(),this.removeListeners()}}let iB=t=>(e,i)=>{t&&h.Wi.postRender(()=>t(e,i))};class iO extends eq{constructor(){super(...arguments),this.removePointerDownListener=r.ZT}onPointerDown(t){this.session=new iS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iP(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:iB(t),onStart:iB(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&h.Wi.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=e4(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var iI=i(85893),iU=i(67294),iW=i(15947),i$=i(25364);let iX=(0,iU.createContext)({}),iN={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function iY(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let iz={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!G.test(t))return t;t=parseFloat(t)}let i=iY(t,e.target.x),s=iY(t,e.target.y);return`${i}% ${s}%`}},iH={};class iK extends iU.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;!function(t){for(let e in t)iH[e]=t[e],tY(e)&&(iH[e].isCSSVariable=!0)}(iZ),n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),iN.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,r=i.projection;return r&&(r.isPresent=n,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent===n||(n?r.promote():r.relegate()||h.Wi.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),h.gJ.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function i_(t){let[e,i]=(0,iW.oO)(),s=(0,iU.useContext)(i$.p);return(0,iI.jsx)(iK,{...t,layoutGroup:s,switchLayoutGroup:(0,iU.useContext)(iX),isPresent:e,safeToRemove:i})}let iZ={borderRadius:{...iz,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:iz,borderTopRightRadius:iz,borderBottomLeftRadius:iz,borderBottomRightRadius:iz,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=th.parse(t);if(s.length>5)return t;let n=th.createTransformer(t),r="number"!=typeof s[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+r]/=o,s[1+r]/=a;let l=t2(o,a,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}},iG=(t,e)=>t.depth-e.depth;class iq{constructor(){this.children=[],this.isDirty=!1}add(t){(0,r.y4)(this.children,t),this.isDirty=!0}remove(t){(0,r.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iG),this.isDirty=!1,this.children.forEac
9h(t)}}function iJ(t){let e=g(t)?t.get():t;return f(e)?e.toValue():e}let iQ=["TopLeft","TopRight","BottomLeft","BottomRight"],i0=iQ.length,i1=t=>"string"==typeof t?parseFloat(t):t,i5=t=>"number"==typeof t||G.test(t);function i2(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let i4=i3(0,.5,R),i9=i3(.5,.95,r.ZT);function i3(t,e,i){return s=>s<t?0:s>e?1:i((0,r.YD)(t,e,s))}function i6(t,e){t.min=e.min,t.max=e.max}function i8(t,e){i6(t.x,e.x),i6(t.y,e.y)}function i7(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function st(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function se(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(Z.test(e)&&(e=parseFloat(e),e=t2(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=t2(r.min,r.max,s);t===r&&(a-=e),t.min=st(t.min,e,i,a,n),t.max=st(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let si=["x","scaleX","originX"],ss=["y","scaleY","originY"];function sn(t,e,i,s){se(t.x,e,si,i?i.x:void 0,s?s.x:void 0),se(t.y,e,ss,i?i.y:void 0,s?s.y:void 0)}function sr(t){return 0===t.translate&&1===t.scale}function so(t){return sr(t.x)&&sr(t.y)}function sa(t,e){return t.min===e.min&&t.max===e.max}function sl(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function su(t,e){return sl(t.x,e.x)&&sl(t.y,e.y)}function sh(t){return e3(t.x)/e3(t.y)}function sd(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sc{constructor(){this.members=[]}add(t){(0,r.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,r.cl)(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;let 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:s}=t.options;!1===s&&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 sp={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},sm=["","X","Y","Z"],sf={visibility:"hidden"},sv=0;function sg(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function sy({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=sv++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,h.fx.value&&(sp.nodes=sp.calculatedTargetDeltas=sp.calculatedProjections=0),this.nodes.forEach(sw),this.nodes.forEach(sV),this.nodes.forEach(sC),this.nodes.forEach(sT),h.fx.addProjectionMetrics&&h.fx.addProjectionMetrics(sp)},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 iq)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new r.LF),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,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:s,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),i&&(n||s)&&(this.isLayoutDirty=!0),t){let i;let s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=h.XV.now(),s=({timestamp:e})=>{let n=e-i;n>=250&&((0,h.Pn)(s),t(n-250))};return h.Wi.read(s,!0),()=>(0,h.Pn)(s)}(s,0),iN.hasAnimatedSinceResize&&(iN.hasAnimatedSinceResize=!1,this.nodes.forEac
9h(sD))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||r.getDefaultTransition()||sF,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!su(this.targetLayout,s),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),this.setAnimationOrigin(t,u);let e={...(0,h.ev)(n,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||sD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}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,(0,h.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sE),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 s=i.props[P];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",h.Wi,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(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 s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sb);return}this.isUpdating||this.nodes.forEach(sM),this.isUpdating=!1,this.nodes.forEach(sA),this.nodes.forEach(sx),this.nodes.forEach(sP),this.clearAllSnapshots();let t=h.XV.now();h.frameData.delta=L(0,1e3/60,t-h.frameData.timestamp),h.frameData.timestamp=t,h.frameData.isProcessing=!0,h.yL.update.process(h.frameData),h.yL.preRender.process(h.frameData),h.yL.render.process(h.frameData),h.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,h.gJ.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sS),this.sharedNodes.forEach(sR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,h.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){h.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||e3(this.snapshot.measuredBox.x)||e3(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=io(),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){let e=s(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(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!so(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&(e||ih(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),sI((e=s).x),sI(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return io();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(sW))){let{scroll:t}=this.root;t&&(iv(i.x,t.offset.x),iv(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=io();if(i8(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&i8(i,t),iv(i.x,n.offset.x),iv(i.y,n.offset.y))}return i}applyTransform(t,e=!1){let i=io();i8(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&iy(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),ih(s.latestValues)&&iy(i,s.latestValues)}return ih(this.latestValues)&&iy(i,this.latestValues),i}removeTransform(t){let e=io();i8(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!ih(i.latestValues))continue;iu(i.latestValues)&&i.updateSnapshot();let s=io();i8(s,i.measurePageBox()),sn(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return ih(this.latestValues)&&sn(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!==h.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,n;let r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==r;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=h.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=io(),this.relativeTargetOrigin=io(),ie(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),i8(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=io(),this.targetWithTransforms=io()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,n=this.relativeParent.target,e7(i.x,s.x,n.x),e7(i.y,s.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):i8(this.target,this.layout.layoutBox),im(this.target,this.targetDelta)):i8(this.target,this.layout.layoutBox),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=io(),this.relativeTargetOrigin=io(),ie(this.relativeTargetOrigin,this.target,t.target),i8(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}h.fx.value&&sp.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||iu(this.parent.latestValues)||id(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===h.frameData.timestamp&&(s=!1),s)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;i8(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;
9!function(t,e,i,s=!1){let n,r;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iy(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,im(t,r)),s&&ih(n.latestValues)&&iy(t,n.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,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=io());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(i7(this.prevProjectionDelta.x,this.projectionDelta.x),i7(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),e8(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&sd(this.projectionDelta.x,this.prevProjectionDelta.x)&&sd(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),h.fx.value&&sp.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=is(),this.projectionDelta=is(),this.projectionDeltaWithTransform=is()}setAnimationOrigin(t,e=!1){let i;let s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},o=is();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=io(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(sL));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(sk(o.x,t.x,s),sk(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m;ie(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,sj(p.x,m.x,a.x,s),sj(p.y,m.y,a.y,s),i&&(u=this.relativeTarget,c=i,sa(u.x,c.x)&&sa(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=io()),i8(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=t2(0,void 0!==i.opacity?i.opacity:1,i4(s)),t.opacityExit=t2(void 0!==e.opacity?e.opacity:1,0,i9(s))):r&&(t.opacity=t2(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let n=0;n<i0;n++){let r=`border${iQ[n]}Radius`,o=i2(e,r),a=i2(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||i5(o)===i5(a)?(t[r]=Math.max(t2(i1(o),i1(a),s),0),(Z.test(a)||Z.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=t2(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,h.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=h.Wi.update(()=>{iN.hasAnimatedSinceResize=!0,h.PM.layout++,this.currentAnimation=function(t,e,i){let s=g(0)?0:(0,h.BX)(0);return s.start(eI("",s,1e3,i)),s.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{h.PM.layout--},onComplete:()=>{h.PM.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:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&sU(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||io();let e=e3(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=e3(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}i8(e,i),iy(e,n),e8(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sc),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(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.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 s=this.getStack();s&&s.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)}
9resetSkewAndRotation(){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 s={};i.z&&sg("z",t,s,this.animationValues);for(let e=0;e<sm.length;e++)sg(`rotate${sm[e]}`,t,s,this.animationValues),sg(`skew${sm[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return sf;let s={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=iJ(null==t?void 0:t.pointerEvents)||"",s.transform=n?n(this.latestValues,""):"none",s;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=iJ(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!ih(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let o=r.animationValues||r.latestValues;this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((n||r||o)&&(s=`translate3d(${n}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:r,skewX:o,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),r&&(s+=`rotateY(${r}deg) `),o&&(s+=`skewX(${o}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),n&&(s.transform=n(o,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,r.animationValues?s.opacity=r===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:s.opacity=r===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,iH){if(void 0===o[t])continue;let{correct:e,applyTo:i,isCSSVariable:n}=iH[t],a="none"===s.transform?o[t]:e(o[t],r);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=a}else n?this.options.visualElement.renderState.vars[t]=a:s[t]=a}return this.options.layoutId&&(s.pointerEvents=r===this?iJ(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(sb),this.root.sharedNodes.clear()}}}function sx(t){t.updateLayout()}function sP(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:n}=t.options,r=i.source!==t.layout.source;"size"===n?ia(t=>{let s=r?i.measuredBox[t]:i.layoutBox[t],n=e3(s);s.min=e[t].min,s.max=s.min+n}):sU(n,i.layoutBox,e)&&ia(s=>{let n=r?i.measuredBox[s]:i.layoutBox[s],o=e3(e[s]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=is();e8(o,e,i.layoutBox);let a=is();r?e8(a,t.applyTransform(s,!0),i.measuredBox):e8(a,e,i.layoutBox);let l=!so(o),u=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let o=io();ie(o,i.layoutBox,n.layoutBox);let a=io();ie(a,e,r.layoutBox),su(o,a)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,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 sw(t){h.fx.value&&sp.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function sT(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sS(t){t.clearSnapshot()}function sb(t){t.clearMeasurements()}function sM(t){t.isLayoutDirty=!1}function sA(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sD(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sV(t){t.resolveTargetDelta()}function sC(t){t.calcProjection()}function sE(t){t.resetSkewAndRotation()}function sR(t){t.removeLeadSnapshot()}function sk(t,e,i){t.translate=t2(e.translate,0,i),t.scale=t2(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sj(t,e,i,s){t.min=t2(e.min,i.min,s),t.max=t2(e.max,i.max,s)}function sL(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sF={duration:.45,ease:[.4,0,.1,1]},sB=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sO=sB("applewebkit/")&&!sB("chrome/")?Math.round:r.ZT;function sI(t){t.min=sO(t.min),t.max=sO(t.max)}function sU(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sh(e)-sh(i)))}function sW(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let s$=sy({attachResizeListener:(t,e)=>e1(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sX={current:void 0},sN=sy({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sX.current){let t=new s$({});t.mount(window),t.setOptions({layoutScroll:!0}),sX.current=t}return sX.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sY(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&h.Wi.postRender(()=>n(e,e5(e)))}class sz extends eq{mount(){let{current:t}=this.node;t&&(this.unmount=(0,h.Mr)(t,(t,e)=>(sY(this.node,e,"Start"),t=>sY(this.node,t,"End"))))}unmount(){}}class sH extends eq{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=ei(e1(this.node.current,"focus",()=>this.onFocus()),e1(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function sK(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&h.Wi.postRender(()=>n(e,e5(e)))}class s_ extends eq{mount(){let{current:t}=this.node;t&&(this.unmount=(0,h.OD)(t,(t,e)=>(sK(this.node,e,"Start"),(t,{success:e})=>sK(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sZ=new WeakMap,sG=new WeakMap,sq=t=>{let e=sZ.get(t.target);e&&e(t)},sJ=t=>{t.forEach(sq)},sQ={some:0,all:1};class s0 extends eq{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:n}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:sQ[s]};return function(t,e,i){let s=function({root:t,...e}){let i=t||document;sG.has(i)||sG.set(i,{});let s=sG.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(sJ,{root:t,...e})),s[n]}(e);return sZ.set(t,i),s.observe(t),()=>{sZ.delete(t),s.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=e?i:s;r&&r(t)})}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 s1=(0,iU.createContext)({strict:!1});var s5=i(16014);let s2=(0,iU.createContext)({});function s4(t){return o(t.animate)||ez.some(e=>eN(t[e]))}function s9(t){return!!(s4(t)||t.variants)}function s3(t){return Array.isArray(t)?t.join(" "):t}
9var s6=i(11741);let s8={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"]},s7={};for(let t in s8)s7[t]={isEnabled:e=>s8[t].some(t=>!!e[t])};let nt=Symbol.for("motionComponentSymbol");var ne=i(240),ni=i(58868);function ns(t,{layout:e,layoutId:i}){return c.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!iH[t]||"opacity"===t)}let nn=(t,e)=>e&&"number"==typeof t?e.transform(t):t,nr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},no=d.length;function na(t,e,i){let{style:s,vars:n,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(c.has(t)){o=!0;continue}if(tY(t)){n[t]=i;continue}{let e=nn(i,tv[t]);t.startsWith("origin")?(a=!0,r[t]=e):s[t]=e}}if(!e.transform&&(o||i?s.transform=function(t,e,i){let s="",n=!0;for(let r=0;r<no;r++){let o=d[r],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(o.startsWith("scale")?1:0):0===parseFloat(a))||i){let t=nn(a,tv[o]);if(!l){n=!1;let e=nr[o]||o;s+=`${e}(${t}) `}i&&(e[o]=t)}}return s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;s.transformOrigin=`${t} ${e} ${i}`}}let nl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nu(t,e,i){for(let s in e)g(e[s])||ns(s,i)||(t[s]=e[s])}var nh=i(91492);let nd=["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 nc(t){if("string"!=typeof t||t.includes("-"));else if(nd.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let np={offset:"stroke-dashoffset",array:"stroke-dasharray"},nm={offset:"strokeDashoffset",array:"strokeDasharray"};function nf(t,e,i){return"string"==typeof t?t:G.transform(e+i*t)}function nv(t,{attrX:e,attrY:i,attrScale:s,originX:n,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,d){if(na(t,u,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:p,dimensions:m}=t;c.transform&&(m&&(p.transform=c.transform),delete c.transform),m&&(void 0!==n||void 0!==r||p.transform)&&(p.transformOrigin=function(t,e,i){let s=nf(e,t.x,t.width),n=nf(i,t.y,t.height);return`${s} ${n}`}(m,void 0!==n?n:.5,void 0!==r?r:.5)),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==s&&(c.scale=s),void 0!==o&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?np:nm;t[r.offset]=G.transform(-s);let o=G.transform(e),a=G.transform(i);t[r.array]=`${o} ${a}`}(c,o,a,l,!1)}let ng=()=>({...nl(),attrs:{}}),ny=t=>"string"==typeof t&&"svg"===t.toLowerCase();var nx=i(96681);let nP=t=>(e,i)=>{let s=(0,iU.useContext)(s2),n=(0,iU.useContext)(ne.O),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},s,n,r){let a={latestValues:function(t,e,i,s){let n={},r=s(t,{});for(let t in r)n[t]=iJ(r[t]);let{initial:a,animate:u}=t,h=s4(t),d=s9(t);e&&d&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===u&&(u=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===a)?u:a;if(p&&"boolean"!=typeof p&&!o(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let s=l(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(s,n,r,t),renderState:e()};return i&&(a.onMount=t=>i({props:s,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,s,n);return i?r():(0,nx.h)(r)};function nw(t,e,i){var s;let{style:n}=t,r={};for(let o in n)(g(n[o])||e.style&&g(e.style[o])||ns(o,t)||(null===(s=null==i?void 0:i.getValue(o))||void 0===s?void 0:s.liveStyle)!==void 0)&&(r[o]=n[o]);return r}let nT={useVisualState:nP({scrapeMotionValuesFromProps:nw,createRenderState:nl})};function nS(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}function nb(t,{style:e,vars:i},s,n){for(let r in Object.assign(t.style,e,n&&n.getProjectionStyles(s)),i)t.style.setProperty(r,i[r])}let nM=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 nA(t,e,i,s){for(let i in nb(t,e,void 0,s),e.attrs)t.setAttribute(nM.has(i)?i:x(i),e.attrs[i])}function nD(t,e,i){let s=nw(t,e,i);for(let i in t)(g(t[i])||g(e[i]))&&(s[-1!==d.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}let nV=["x","y","width","height","cx","cy","r"],nC={useVisualState:nP({scrapeMotionValuesFromProps:nD,createRenderState:ng,onUpdate:({props:t,prevProps:e,current:i,renderState:s,latestValues:n})=>{if(!i)return;let r=!!t.drag;if(!r){for(let t in n)if(c.has(t)){r=!0;break}}if(!r)return;let o=!e;if(e)for(let i=0;i<nV.length;i++){let s=nV[i];t[s]!==e[s]&&(o=!0)}o&&h.Wi.read(()=>{nS(i,s),h.Wi.render(()=>{nv(s,n,ny(i.tagName),t.transformTemplate),nA(i,s)})})}})},nE={current:null},nR={current:!1},nk=[...tG,te,th],nj=t=>nk.find(tZ(t)),nL=new WeakMap,nF=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
9class nB{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t$,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=h.XV.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,h.Wi.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=r;this.onUpdate=u,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=s,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=s4(e),this.isVariantNode=s9(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&g(e)&&e.set(a[t],!1)}}mount(t){this.current=t,nL.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)),nR.current||function(){if(nR.current=!0,s6.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nE.current=t.matches;t.addListener(e),e()}else nE.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nE.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,h.Pn)(this.notifyUpdate),(0,h.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(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}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=c.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&h.Wi.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),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 s7){let e=s7[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(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):io()}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<nF.length;e++){let i=nF[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}
9this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if(g(n))t.addValue(s,n);else if(g(r))t.addValue(s,(0,h.BX)(n,{owner:t}));else if(r!==n){if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,(0,h.BX)(void 0!==e?e:n,{owner:t}))}}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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=(0,h.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=s&&("string"==typeof s&&(tX(s)||j(s))?s=parseFloat(s):!nj(s)&&th.test(e)&&(s=tx(t,e)),this.setBaseTarget(t,g(s)?s.get():s)),g(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let n=l(this.props,s,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);n&&(i=n[t])}if(s&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||g(n)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new r.LF),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class nO extends nB{constructor(){super(...arguments),this.KeyframeResolver=tJ}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;g(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class nI extends nO{constructor(){super(...arguments),this.type="html",this.renderInstance=nb}readValueFromInstance(t,e){if(c.has(e))return tE(t,e);{let i=window.getComputedStyle(t),s=(tY(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ix(t,e)}build(t,e,i){na(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return nw(t,e,i)}}class nU extends nO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=io,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&nS(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(c.has(e)){let t=ty(e);return t&&t.default||0}return e=nM.has(e)?e:x(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return nD(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&h.Wi.postRender(this.updateDimensions)}build(t,e,i){nv(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){nA(t,e,i,s)}mount(t){this.isSVGTag=ny(t.tagName),super.mount(t)}}let nW=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}((s={animation:{Feature:eJ},exit:{Feature:e0},inView:{Feature:s0},tap:{Feature:s_},focus:{Feature:sH},hover:{Feature:sz},pan:{Feature:iO},drag:{Feature:iF,ProjectionNode:sN,MeasureLayout:i_},layout:{ProjectionNode:sN,MeasureLayout:i_}},n=(t,e)=>nc(t)?new nU(e):new nI(e,{allowProjection:t!==iU.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:s,Component:n}){var r,o;function a(t,r){var o;let a;let l={...(0,iU.useContext)(s5._),...t,layoutId:function({layoutId:t}){let e=(0,iU.useContext)(i$.p).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:u}=l,d=function(t){let{initial:e,animate:i}=function(t,e){if(s4(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eN(e)?e:void 0,animate:eN(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,iU.useContext)(s2));return(0,iU.useMemo)(()=>({initial:e,animate:i}),[s3(e),s3(i)])}
9(t),c=s(t,u);if(!u&&s6.j){(0,iU.useContext)(s1).strict;let t=function(t){let{drag:e,layout:i}=s7;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(l);a=t.MeasureLayout,d.visualElement=function(t,e,i,s,n){var r,o;let{visualElement:a}=(0,iU.useContext)(s2),l=(0,iU.useContext)(s1),u=(0,iU.useContext)(ne.O),d=(0,iU.useContext)(s5._).reducedMotion,c=(0,iU.useRef)(null);s=s||l.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));let p=c.current,m=(0,iU.useContext)(iX);p&&!p.projection&&n&&("html"===p.type||"svg"===p.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=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:n,layout:r,alwaysMeasureLayout:!!o||a&&iw(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}(c.current,i,n,m);let f=(0,iU.useRef)(!1);(0,iU.useInsertionEffect)(()=>{p&&f.current&&p.update(i,u)});let v=i[P],g=(0,iU.useRef)(!!v&&!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,v))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,v)));return(0,ni.L)(()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),h.gJ.render(p.render),g.current&&p.animationState&&p.animationState.animateChanges())}),(0,iU.useEffect)(()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,v)}),g.current=!1))}),p}(n,c,l,e,t.ProjectionNode)}return(0,iI.jsxs)(s2.Provider,{value:d,children:[a&&d.visualElement?(0,iI.jsx)(a,{visualElement:d.visualElement,...l}):null,i(n,t,(o=d.visualElement,(0,iU.useCallback)(t=>{t&&c.onMount&&c.onMount(t),o&&(t?o.mount(t):o.unmount()),r&&("function"==typeof r?r(t):iw(r)&&(r.current=t))},[o])),c,u,d.visualElement)]})}t&&function(t){for(let e in t)s7[e]={...s7[e],...t[e]}}(t),a.displayName=`motion.${"string"==typeof n?n:`create(${null!==(o=null!==(r=n.displayName)&&void 0!==r?r:n.name)&&void 0!==o?o:""})`}`;let l=(0,iU.forwardRef)(a);return l[nt]=n,l}({...nc(t)?nC:nT,preloadedFeatures:s,useRender:function(t=!1){return(e,i,s,{latestValues:n},r)=>{let o=(nc(e)?function(t,e,i,s){let n=(0,iU.useMemo)(()=>{let i=ng();return nv(i,e,ny(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};nu(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i={},s=function(t,e){let i=t.style||{},s={};return nu(s,i,t),Object.assign(s,function({transformTemplate:t},e){return(0,iU.useMemo)(()=>{let i=nl();return na(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,i})(i,n,r,e),a=(0,nh.L)(i,"string"==typeof e,t),l=e!==iU.Fragment?{...a,...o,ref:s}:{},{children:u}=i,h=(0,iU.useMemo)(()=>g(u)?u.get():u,[u]);return(0,iU.createElement)(e,{...l,children:h})}}(e),createVisualElement:n,Component:t})}))},91492:function(t,e,i){i.d(e,{L:function(){return a},K:function(){return o}});let s=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 n(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||s.has(t)}let r=t=>!n(t);function o(t){t&&(r=e=>e.startsWith("on")?!n(e):t(e))}try{o(require("@emotion/is-prop-valid").default)}catch(t){}function a(t,e,i){let s={};for(let o in t)("values"!==o||"object"!=typeof t.values)&&(r(o)||!0===i&&n(o)||!e&&!n(o)||t.draggable&&o.startsWith("onDrag"))&&(s[o]=t[o
9]);return s}},11741:function(t,e,i){i.d(e,{j:function(){return s}});let s="undefined"!=typeof window},96681:function(t,e,i){i.d(e,{h:function(){return n}});var s=i(67294);function n(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}},58868:function(t,e,i){i.d(e,{L:function(){return n}});var s=i(67294);let n=i(11741).j?s.useLayoutEffect:s.useEffect}}]);
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.