PageSourceSearch

https://farmitix.ai/_next/static/chunks/6953-349f43d00a86405b.js

js farmitix.ai collected 2026-10-05 13:56:21 UTC 226,285 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6953],{5965:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(7620);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},10795:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(98889).A)("fingerprint",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]])},11330:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t},12023:(t,e,i)=>{i.d(e,{v:()=>s});var n=i(94703);class s{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},18670:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(7620);let s=i(99556).B?n.useLayoutEffect:n.useEffect},21977:(t,e)=>{function i(){return null}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}}),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)}
1,22896:(t,e,i)=>{i.d(e,{d:()=>a});var n=i(89897),s=i(7620),r=i(43877),o=i(38094);function a(t){let e=(0,o.M)(()=>(0,n.OQ)(t)),{isStatic:i}=(0,s.useContext)(r.Q);if(i){let[,i]=(0,s.useState)(t);(0,s.useEffect)(()=>e.on("change",i),[])}return e}},29269:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(7620).createContext)(null)},30194:(t,e,i)=>{let n;function s(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function r(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function o(t,e,i,n){if("function"==typeof e){let[s,o]=r(n);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=r(n);e=e(void 0!==i?i:t.custom,s,o)}return e}function a(t,e,i){let n=t.getProps();return o(n,e,void 0!==i?i:n.custom,t)}i.d(e,{P:()=>rS});let l=t=>Array.isArray(t),h=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],u={value:null,addProjectionMetrics:null},d={};function c(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=h.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){o.has(e)&&(d.schedule(e),t()),l++,e(a)}let d={schedule:(t,e=!1,r=!1)=>{let a=r&&s?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,s){r=!0;return}s=!0,[i,n]=[n,i],i.forEach(h),e&&u.value&&u.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,d.process(t))}};return d}(r,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:p,update:m,preRender:f,render:g,postRender:y}=o,v=()=>{let r=d.useManualTiming?s.timestamp:performance.now();i=!1,d.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),p.process(s),m.process(s),f.process(s),g.process(s),y.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(v))},x=()=>{i=!0,n=!0,s.isProcessing||t(v)};return{schedule:h.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,s=!1)=>(i||x(),n.schedule(t,e,s)),t},{}),cancel:t=>{for(let e=0;e<h.length;e++)o[h[e]].cancel(t)},state:s,steps:o}}let p=t=>t,{schedule:m,cancel:f,state:g,steps:y}=c("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:p,!0);function v(){n=void 0}let x={now:()=>(void 0===n&&x.set(g.isProcessing||d.useManualTiming?g.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(v)}};function T(t,e){-1===t.indexOf(e)&&t.push(e)}function w(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class P{constructor(){this.subscriptions=[]}add(t){return T(this.subscriptions,t),()=>w(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let b=t=>!isNaN(parseFloat(t)),S={current:void 0};class A{constructor(t,e={}){this.version="12.9.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=x.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change?.notify(this.current),e&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=x.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=b(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new P);let i=this.events[t].add(e);return"change"===t?()=>{i(),m.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return S.current&&S.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=x.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function M(t,e){return new A(t,e)}let E=t=>!!(t&&t.getVelocity);function V(t,e){let i=t.getValue("willChange");if(E(i)&&i.add)return i.add(e);if(!i&&d.WillChange){let i=new d.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}let k=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),C="data-"+k("framerAppearId"),D=t=>null!==t,R=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(R),L={type:"spring",stiffness:500,damping:25,restSpeed:10},F=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),B={type:"keyframes",duration:.8},O={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},I=(t,{keyframes:e})=>e.length>2?B:j.has(t)?t.startsWith("scale")?F(e[1]):L:O;function U(t,e){return t?.[e]??t?.default??t}let W=t=>1e3*t,N=t=>t/1e3,$={layout:0,mainThread:0,waapi:0},z=t=>e=>"string"==typeof e&&e.startsWith(t),Y=z("--"),X=z("var(--"),G=t=>!!X(t)&&H.test(t.split("/*")[0].trim()),H=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,K=(t,e,i)=>i>e?e:i<t?t:i,q={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},_={...q,transform:t=>K(0,1,t)},Z={...q,default:1},Q=t=>Math.round(1e5*t)/1e5,J=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,te=(t,e)=>i=>!!("string"==typeof i&&tt.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),ti=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(J);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tn=t=>K(0,255,t),ts={...q,transform:t=>Math.round(tn(t))},tr={test:te("rgb","red"),parse:ti("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+ts.transform(t)+", "+ts.transform(e)+", "+ts.transform(i)+", "+Q(_.transform(n))+")"},to={test:te("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:tr.transform},ta=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tl=ta("deg"),th=ta("%"),tu=ta("px"),td=ta("vh"),tc=ta("vw"),tp={...th,parse:t=>th.parse(t)/100,transform:t=>th.transform(100*t)},tm={test:te("hsl","hue"),parse:ti("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+th.transform(Q(e))+", "+th.transform(Q(i))+", "+Q(_.transform(n))+")"},tf={test:t=>tr.test(t)||to.test(t)||tm.test(t),parse:t=>tr.test(t)?tr.parse(t):tm.test(t)?tm.parse(t):to.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tr.transform(t):tm.transform(t)},tg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ty="number",tv="color",tx=/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 tT(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(tx,t=>(tf.test(t)?(n.color.push(r),s.push(tv),i.push(tf.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(ty),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function tw(t){return tT(t).values}function tP(t){let{split:e,types:i}=tT(t),n=e.length;return t=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){let e=i[r];e===ty?s+=Q(t[r]):e===tv?s+=tf.transform(t[r]):s+=t[r]}return s}}let tb=t=>"number"==typeof t?0:t,tS={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(J)?.length||0)+(t.match(tg)?.length||0)>0},parse:tw,createTransformer:tP,getAnimatableNone:function(t){let e=tw(t);return tP(t)(e.map(tb))}};function tA(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 tM(t,e){return i=>i>0?e:t}
1let tE=(t,e,i)=>t+(e-t)*i,tV=()=>{},tk=()=>{},tC=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},tD=[to,tr,tm],tR=t=>tD.find(e=>e.test(t));function tj(t){let e=tR(t);if(tV(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tm&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=tA(a,n,t+1/3),r=tA(a,n,t),o=tA(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let tL=(t,e)=>{let i=tj(t),n=tj(e);if(!i||!n)return tM(t,e);let s={...i};return t=>(s.red=tC(i.red,n.red,t),s.green=tC(i.green,n.green,t),s.blue=tC(i.blue,n.blue,t),s.alpha=tE(i.alpha,n.alpha,t),tr.transform(s))},tF=new Set(["none","hidden"]),tB=(t,e)=>i=>e(t(i)),tO=(...t)=>t.reduce(tB);function tI(t,e){return i=>tE(t,e,i)}function tU(t){return"number"==typeof t?tI:"string"==typeof t?G(t)?tM:tf.test(t)?tL:t$:Array.isArray(t)?tW:"object"==typeof t?tf.test(t)?tL:tN:tM}function tW(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>tU(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function tN(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=tU(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let t$=(t,e)=>{let i=tS.createTransformer(e),n=tT(t),s=tT(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?tF.has(t)&&!s.values.length||tF.has(e)&&!n.values.length?function(t,e){return tF.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):tO(tW(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],o=t.indexes[r][n[r]],a=t.values[o]??0;i[s]=a,n[r]++}return i}(n,s),s.values),i):(tV(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tM(t,e))};function tz(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?tE(t,e,i):tU(t)(t,e)}let tY=t=>{let e=({timestamp:e})=>t(e);return{start:()=>m.update(e,!0),stop:()=>f(e),now:()=>g.isProcessing?g.timestamp:x.now()}},tX=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=t(e/(s-1))+", ";return`linear(${n.substring(0,n.length-2)})`};function tG(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function tH(t,e,i){var n,s;let r=Math.max(e-5,0);return n=i-t(r),(s=e-r)?1e3/s*n:0}let tK={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 tq(t,e){return t*Math.sqrt(1-e*e)}let t_=["duration","bounce"],tZ=["stiffness","damping","mass"];function tQ(t,e){return e.some(e=>void 0!==t[e])}function tJ(t=tK.visualDuration,e=tK.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:h,damping:u,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:tK.velocity,stiffness:tK.stiffness,damping:tK.damping,mass:tK.mass,isResolvedFromDuration:!1,...t};if(!tQ(t,tZ)&&tQ(t,t_))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*K(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:tK.mass,stiffness:n,damping:s}}else{let i=function({duration:t=tK.duration,bounce:e=tK.bounce,velocity:i=tK.velocity,mass:n=tK.mass}){let s,r;tV(t<=W(tK.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=K(tK.minDamping,tK.maxDamping,o),t=K(tK.minDuration,tK.maxDuration,N(t)),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/tq(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=tq(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=W(t),isNaN(a))return{stiffness:tK.stiffness,damping:tK.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:tK.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-N(n.velocity||0)}),f=p||0,g=u/(2*Math.sqrt(h*d)),y=a-o,v=N(Math.sqrt(h/d)),x=5>Math.abs(y);if(s||(s=x?tK.restSpeed.granular:tK.restSpeed.default),r||(r=x?tK.restDelta.granular:tK.restDelta.default),g<1){let t=tq(v,g);i=e=>a-Math.exp(-g*v*e)*((f+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-v*t)*(y+(f+v*y)*t);else{let t=v*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*v*e),n=Math.min(t*e,300);return a-i*((f+g*v*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let T={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let n=0===t?f:0;g<1&&(n=0===t?W(f):tH(i,t,e));let o=Math.abs(a-e)<=r;l.done=Math.abs(n)<=s&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(tG(T),2e4),e=tX(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function t0({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l,y=i*e,v=p+y,x=void 0===o?v:o(v);x!==v&&(y=x-p);let T=t=>-y*Math.exp(-t/n),w=t=>x+T(t),P=t=>{let e=T(t),i=w(t);m.done=Math.abs(e)<=h,m.value=m.done?x:i},b=t=>{f(m.value)&&(d=t,c=tJ({keyframes:[m.value,g(m.value)],velocity:tH(w,t,m.value),damping:s,stiffness:r,restDelta:h,restSpeed:u}))};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,P(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||P(t),m)}}}tJ.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(tG(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:N(s)}}(t,100,tJ);return t.ease=e.ease,t.duration=W(e.duration),t.type="keyframes",t};let t1=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n},t2=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function t5(t,e,i,n){if(t===e&&i===n)return p;let s=e=>(function(t,e,i,n,s){let r,o,a=0;do(r=t2(o=e+(i-e)/2,n,s)-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:t2(s(t),e,n)}let t3=t5(.42,0,1,1),t9=t5(0,0,.58,1),t6=t5(.42,0,.58,1),t4=t=>Array.isArray(t)&&"number"!=typeof t[0],t8=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,t7=t=>e=>1-t(1-e),et=t5(.33,1.53,.69,.99),ee=t7(et),ei=t8(ee),en=t=>(t*=2)<1?.5*ee(t):.5*(2-Math.pow(2,-10*(t-1))),es=t=>1-Math.sin(Math.acos(t)),er=t7(es),eo=t8(es),ea=t=>Array.isArray(t)&&"number"==typeof t[0],el={linear:p,easeIn:t3,easeInOut:t6,easeOut:t9,circIn:es,circInOut:eo,circOut:er,backIn:ee,backInOut:ei,backOut:et,anticipate:en},eh=t=>"string"==typeof t,eu=t=>{if(ea(t)){tk(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return t5(e,i,n,s)}return eh(t)?(tk(void 0!==el[t],`Invalid easing type '${t}'`),el[t]):t};function ed({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=t4(n)?n.map(eu):eu(n),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(tk(r===e.length,"Both input and output ranges must be the same length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],s=i||d.mix||tz,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=tO(Array.isArray(e)?e[i]||p:e,r)),n.push(r)}return n}(e,n,s),l=a.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=t1(t[n],t[n+1],i);return a[n](s)};return i?e=>h(K(t[0],t[r-1],e)):h}((s=i&&i.length===e.length?i:function(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=t1(0,e,n);t.push(tE(i,1,s))}}(e,t.length-1),e}(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||t6).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let ec=t=>null!==t;function ep(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(ec),o=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==n?n:r[o]}let em={decay:t0,inertia:t0,tween:ed,keyframes:ed,spring:tJ};function ef(t){"string"==typeof t.type&&(t.type=em[t.type])}class eg{constructor(){this.count=0,this.updateFinished()}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ey=t=>t/100;class ev extends eg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;if(t&&t.updatedAt!==x.now()&&this.tick(x.now()),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()},$.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;ef(t);let{type:e=ed,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,a=e||ed;a!==ed&&"number"!=typeof o[0]&&(this.mixKeyframes=tO(ey,tz(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=tG(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,x=i;if(u){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,u+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/o)):"mirror"===d&&(x=r)),v=K(0,1,i)*o}let T=y?{done:!1,value:h[0]}:x.next(v);s&&(T.value=s(T.value));let{done:w}=T;y||null===a||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&p!==t0&&(T.value=ep(h,this.options,f,this.speed)),m&&m(T.value),P&&this.finish(),T}
1then(t,e){return this.finished.then(t,e)}get duration(){return N(this.calculatedDuration)}get time(){return N(this.currentTime)}set time(t){t=W(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(x.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=N(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tY,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=i??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(x.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.notifyFinished(),this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,$.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),t.observe(this)}}let ex=t=>180*t/Math.PI,eT=t=>eP(ex(Math.atan2(t[1],t[0]))),ew={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:eT,rotateZ:eT,skewX:t=>ex(Math.atan(t[1])),skewY:t=>ex(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},eP=t=>((t%=360)<0&&(t+=360),t),eb=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),eS=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),eA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eb,scaleY:eS,scale:t=>(eb(t)+eS(t))/2,rotateX:t=>eP(ex(Math.atan2(t[6],t[5]))),rotateY:t=>eP(ex(Math.atan2(-t[2],t[0]))),rotateZ:eT,rotate:eT,skewX:t=>ex(Math.atan(t[4])),skewY:t=>ex(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function eM(t){return+!!t.includes("scale")}function eE(t,e){let i,n;if(!t||"none"===t)return eM(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=eA,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ew,n=e}if(!n)return eM(e);let r=i[e],o=n[1].split(",").map(ek);return"function"==typeof r?r(o):o[r]}let eV=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return eE(i,e)};function ek(t){return parseFloat(t.trim())}let eC=t=>t===q||t===tu,eD=new Set(["x","y","z"]),eR=R.filter(t=>!eD.has(t)),ej={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})=>eE(e,"x"),y:(t,{transform:e})=>eE(e,"y")};ej.translateX=ej.x,ej.translateY=ej.y;let eL=new Set,eF=!1,eB=!1,eO=!1;function eI(){if(eB){let t=Array.from(eL).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 eR.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eB=!1,eF=!1,eL.forEach(t=>t.complete(eO)),eL.clear()}function eU(){eL.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eB=!0)})}class eW{constructor(t,e,i,n,s,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=n,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(eL.add(this),eF||(eF=!0,m.read(eU),m.resolveKeyframes(eI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;
1if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),eL.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,eL.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eN=t=>t.startsWith("--");function e$(t){let e;return()=>(void 0===e&&(e=t()),e)}let ez=e$(()=>void 0!==window.ScrollTimeline),eY={},eX=function(t,e){let i=e$(t);return()=>eY[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eG=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,eH={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eG([0,.65,.55,1]),circOut:eG([.55,0,1,.45]),backIn:eG([.31,.01,.66,-.59]),backOut:eG([.33,1.53,.69,.99])};function eK(t){return"function"==typeof t&&"applyToOptions"in t}class eq extends eg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,tk("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:t,...e}){return eK(t)&&eX()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let d={[e]:i};l&&(d.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?eX()?tX(e,i):"ease-out":ea(e)?eG(e):Array.isArray(e)?e.map(e=>t(e,i)||eH.easeOut):eH[e]}(a,s);Array.isArray(c)&&(d.easing=c),u.value&&$.waapi++;let p={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};h&&(p.pseudoElement=h);let m=t.animate(d,p);return u.value&&m.finished.finally(()=>{$.waapi--}),m}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=ep(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){eN(e)?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()},this.animation.oncancel=()=>this.notifyFinished()}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return N(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return N(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=W(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ez())?(this.animation.timeline=t,p):e(this)}}let e_={anticipate:en,backInOut:ei,circInOut:eo};class eZ extends eq{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in e_&&(t.ease=e_[t.ease])}(t),ef(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new ev({...r,autoplay:!1}),a=W(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let eQ=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tS.test(t)||"0"===t)&&!t.startsWith("url(")),eJ=new Set(["opacity","clipPath","filter","transform"]),e0=e$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class e1 extends eg{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation?(this._animation.stop(),this.stopTimeline?.()):this.keyframeResolver?.cancel()},this.createdAt=x.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:h,...u},c=h?.KeyframeResolver||eW;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:o,delay:a,isHandoff:l,onUpdate:h}=i;
1this.resolvedAt=x.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=eQ(s,e),a=eQ(r,e);return tV(o===a,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||eK(i))&&n)}(t,s,r,o)&&((d.instantAnimations||!a)&&h?.(ep(t,i,e)),t[0]=t[t.length-1],i.duration=0,i.repeat=0);let u={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,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 e0()&&i&&eJ.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}(u)?new eZ({...u,element:u.motionValue.owner.current}):new ev(u);c.finished.then(()=>this.notifyFinished()).catch(p),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(eO=!0,eU(),eI(),eO=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this.animation.cancel()}}let e2=(t,e,i,n={},s,r)=>o=>{let a=U(n,t)||{},l=a.delay||n.delay||0,{elapsed:h=0}=n;h-=W(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(a)&&Object.assign(u,I(t,u)),u.duration&&(u.duration=W(u.duration)),u.repeatDelay&&(u.repeatDelay=W(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let c=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(u.duration=0,0===u.delay&&(c=!0)),(d.instantAnimations||d.skipAnimations)&&(c=!0,u.duration=0,u.delay=0),u.allowFlatten=!a.type&&!a.ease,c&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(D),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[r]}(u.keyframes,a);if(void 0!==t)return void m.update(()=>{u.onUpdate(t),u.onComplete()})}return new e1(u)},e5=new Set(["width","height","top","left","right","bottom",...R]);function e3(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...h}=e;n&&(r=n);let u=[],d=s&&t.animationState&&t.animationState.getState()[s];for(let e in h){let n=t.getValue(e,t.latestValues[e]??null),s=h[e];if(void 0===s||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let o={delay:i,...U(r||{},e)},a=n.get();if(void 0!==a&&!n.isAnimating&&!Array.isArray(s)&&s===a&&!o.velocity)continue;let l=!1;if(window.MotionHandoffAnimation){let i=t.props[C];if(i){let t=window.MotionHandoffAnimation(i,e,m);null!==t&&(o.startTime=t,l=!0)}}V(t,e),n.start(e2(e,n,s,t.shouldReduceMotion&&e5.has(e)?{type:!1}:o,t,l));let c=n.animation;c&&u.push(c)}return o&&Promise.all(u).then(()=>{m.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=a(t,e)||{};for(let e in s={...s,...i}){var r;let i=l(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,M(i))}}(t,o)})}),u}function e9(t,e,i={}){let n=a(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(e3(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;
1return function(t,e,i=0,n=0,s=1,r){let o=[],a=(t.variantChildren.size-1)*n,l=1===s?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(e6).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(e9(t,e,{...r,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[r,o]:[o,r];return t().then(()=>e())}}function e6(t,e){return t.sortNodePosition(e)}function e4(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function e8(t){return"string"==typeof t||Array.isArray(t)}let e7=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],it=["initial",...e7],ie=it.length,ii=[...e7].reverse(),is=e7.length;function ir(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function io(){return{animate:ir(!0),whileInView:ir(),whileHover:ir(),whileTap:ir(),whileDrag:ir(),whileFocus:ir(),exit:ir()}}class ia{constructor(t){this.isMounted=!1,this.node=t}update(){}}class il extends ia{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>e9(t,e,i)));else if("string"==typeof e)n=e9(t,e,i);else{let s="function"==typeof e?a(t,e,i.custom):e;n=Promise.all(e3(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=io(),n=!0,r=e=>(i,n)=>{let s=a(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:h}=t,u=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<ie;t++){let n=it[t],s=e.props[n];(e8(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},d=[],c=new Set,p={},m=1/0;for(let e=0;e<is;e++){var f,g;let a=ii[e],y=i[a],v=void 0!==h[a]?h[a]:u[a],x=e8(v),T=a===o?y.isActive:null;!1===T&&(m=e);let w=v===u[a]&&v!==h[a]&&x;if(w&&n&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...p},!y.isActive&&null===T||!v&&!y.prevProp||s(v)||"boolean"==typeof v)continue;let P=(f=y.prevProp,"string"==typeof(g=v)?g!==f:!!Array.isArray(g)&&!e4(g,f)),b=P||a===o&&y.isActive&&!w&&x||e>m&&x,S=!1,A=Array.isArray(v)?v:[v],M=A.reduce(r(a),{});!1===T&&(M={});let{prevResolvedValues:E={}}=y,V={...E,...M},k=e=>{b=!0,c.has(e)&&(S=!0,c.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in V){let e=M[t],i=E[t];if(p.hasOwnProperty(t))continue;let n=!1;(l(e)&&l(i)?e4(e,i):e===i)?void 0!==e&&c.has(t)?k(t):y.protectedKeys[t]=!0:null!=e?k(t):c.add(t)}y.prevProp=v,y.prevResolvedValues=M,y.isActive&&(p={...p,...M}),n&&t.blockInitialAnimation&&(b=!1);let C=!(w&&P)||S;b&&C&&d.push(...A.map(t=>({animation:t,options:{type:a}})))}if(c.size){let e={};if("boolean"!=typeof h.initial){let i=a(t,Array.isArray(h.initial)?h.initial[0]:h.initial);i&&i.transition&&(e.transition=i.transition)}c.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),d.push({animation:e})}let y=!!d.length;return n&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(y=!1),n=!1,y?e(d):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=io(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();s(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ih=0;class iu extends ia{constructor(){super(...arguments),this.id=ih++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}function id(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let ic=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ip(t){return{point:{x:t.pageX,y:t.pageY}}}let im=t=>e=>ic(e)&&t(e,ip(e));function ig(t,e,i,n){return id(t,e,im(i),n)}function iy({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function iv(t){return t.max-t.min}function ix(t,e,i,n=.5){t.origin=n,t.originPoint=tE(e.min,e.max,t.origin),t.scale=iv(i)/iv(e),t.translate=tE(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 iT(t,e,i,n){ix(t.x,e.x,i.x,n?n.originX:void 0),ix(t.y,e.y,i.y,n?n.originY:void 0)}function iw(t,e,i){t.min=i.min+e.min,t.max=t.min+iv(e)}function iP(t,e,i){t.min=e.min-i.min,t.max=t.min+iv(e)}function ib(t,e,i){iP(t.x,e.x,i.x),iP(t.y,e.y,i.y)}let iS=()=>({translate:0,scale:1,origin:0,originPoint:0}),iA=()=>({x:iS(),y:iS()}),iM=()=>({min:0,max:0}),iE=()=>({x:iM(),y:iM()});function iV(t){return[t("x"),t("y")]}function ik(t){return void 0===t||1===t}function iC({scale:t,scaleX:e,scaleY:i}){return!ik(t)||!ik(e)||!ik(i)}function iD(t){return iC(t)||iR(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iR(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function ij(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function iL(t,e=0,i=1,n,s){t.min=ij(t.min,e,i,n,s),t.max=ij(t.max,e,i,n,s)}function iF(t,{x:e,y:i}){iL(t.x,e.translate,e.scale,e.originPoint),iL(t.y,i.translate,i.scale,i.originPoint)}function iB(t,e){t.min=t.min+e,t.max=t.max+e}function iO(t,e,i,n,s=.5){let r=tE(t.min,t.max,s);iL(t,e,i,r,n)}function iI(t,e){iO(t.x,e.x,e.scaleX,e.scale,e.originX),iO(t.y,e.y,e.scaleY,e.scale,e.originY)}function iU(t,e){return iy(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let iW=({current:t})=>t?t.ownerDocument.defaultView:null;function iN(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let i$=(t,e)=>Math.abs(t-e);class iz{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iG(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(i$(t.x,e.x)**2+i$(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=g;this.history.push({...n,timestamp:s});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iY(e,this.transformPagePoint),m.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=iG("pointercancel"===t.type?this.lastMoveEventInfo:iY(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!ic(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=iY(ip(t),this.transformPagePoint),{point:o}=r,{timestamp:a}=g;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iG(r,this.history)),this.removeListeners=tO(ig(this.contextWindow,"pointermove",this.handlePointerMove),ig(this.contextWindow,"pointerup",this.handlePointerUp),ig(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),f(this.updatePoint)}}function iY(t,e){return e?{point:e(t.point)}:t}function iX(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iG({point:t},e){return{point:t,delta:iX(t,iH(e)),offset:iX(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=iH(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>W(.1)));)i--;if(!n)return{x:0,y:0};let r=N(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function iH(t){return t[t.length-1]}function iK(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 iq(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function i_(t,e,i){return{min:iZ(t,e),max:iZ(t,i)}}function iZ(t,e){return"number"==typeof t?t:t[e]||0}let iQ={x:!1,y:!1},iJ=new WeakMap;class i0{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=iE(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new iz(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ip(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(iQ[t])return null;else return iQ[t]=!0,()=>{iQ[t]=!1};return iQ.x||iQ.y?null:(iQ.x=iQ.y=!0,()=>{iQ.x=iQ.y=!1})}(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),iV(t=>{let e=this.getAxisMotionValue(t).get()||0;if(th.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=iv(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&m.postRender(()=>s(t,e)),V(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(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:()=>iV(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:iW(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&m.postRender(()=>s(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:n}=this.getProps();if(!i||!i1(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?tE(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?tE(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iN(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:iK(t.x,i,s),y:iK(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:i_(t,"left","right"),y:i_(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&iV(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iN(e))return!1;let n=e.current;tk(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(t,e,i){let n=iU(t,i),{scroll:s}=e;return s&&(iB(n.x,s.offset.x),iB(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:iq(t.x,r.x),y:iq(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=iy(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iV(o=>
1{if(!i1(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return V(this.visualElement,t),i.start(e2(t,i,0,e,this.visualElement,!1))}stopAnimation(){iV(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iV(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iV(e=>{let{drag:i}=this.getProps();if(!i1(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-tE(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iN(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iV(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=iv(t),s=iv(e);return s>n?i=t1(e.min,e.max-n,t.min):n>s&&(i=t1(t.min,t.max-s,e.min)),K(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iV(e=>{if(!i1(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(tE(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;iJ.set(this.visualElement,this);let t=ig(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iN(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),m.read(e);let s=id(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iV(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function i1(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i2 extends ia{constructor(t){super(t),this.removeGroupControls=p,this.removeListeners=p,this.controls=new i0(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||p}unmount(){this.removeGroupControls(),this.removeListeners()}}let i5=t=>(e,i)=>{t&&m.postRender(()=>t(e,i))};class i3 extends ia{constructor(){super(...arguments),this.removePointerDownListener=p}onPointerDown(t){this.session=new iz(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iW(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:i5(t),onStart:i5(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&m.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ig(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 i9,i6,i4=i(54568),i8=i(7620),i7=i(43274),nt=i(37341);let ne=(0,i8.createContext)({}),ni={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ns={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tu.test(t))return t;else t=parseFloat(t);let i=nn(t,e.target.x),n=nn(t,e.target.y);return`${i}% ${n}%`}},nr={},{schedule:no}=c(queueMicrotask,!1);
1class na extends i8.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;for(let t in nh)nr[t]=nh[t],Y(t)&&(nr[t].isCSSVariable=!0);s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ni.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,r=i.projection;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||m.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),no.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nl(t){let[e,i]=(0,i7.xQ)(),n=(0,i8.useContext)(nt.L);return(0,i4.jsx)(na,{...t,layoutGroup:n,switchLayoutGroup:(0,i8.useContext)(ne),isPresent:e,safeToRemove:i})}let nh={borderRadius:{...ns,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ns,borderTopRightRadius:ns,borderBottomLeftRadius:ns,borderBottomRightRadius:ns,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tS.parse(t);if(n.length>5)return t;let s=tS.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=tE(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}},nu=(t,e)=>t.depth-e.depth;class nd{constructor(){this.children=[],this.isDirty=!1}add(t){T(this.children,t),this.isDirty=!0}remove(t){w(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nu),this.isDirty=!1,this.children.forEach(t)}}function nc(t){return E(t)?t.get():t}let np=["TopLeft","TopRight","BottomLeft","BottomRight"],nm=np.length,nf=t=>"string"==typeof t?parseFloat(t):t,ng=t=>"number"==typeof t||tu.test(t);function ny(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nv=nT(0,.5,er),nx=nT(.5,.95,p);function nT(t,e,i){return n=>n<t?0:n>e?1:i(t1(t,e,n))}function nw(t,e){t.min=e.min,t.max=e.max}function nP(t,e){nw(t.x,e.x),nw(t.y,e.y)}function nb(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nS(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function nA(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(th.test(e)&&(e=parseFloat(e),e=tE(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=tE(r.min,r.max,n);t===r&&(a-=e),t.min=nS(t.min,e,i,a,s),t.max=nS(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let nM=["x","scaleX","originX"],nE=["y","scaleY","originY"];function nV(t,e,i,n){nA(t.x,e,nM,i?i.x:void 0,n?n.x:void 0),nA(t.y,e,nE,i?i.y:void 0,n?n.y:void 0)}function nk(t){return 0===t.translate&&1===t.scale}function nC(t){return nk(t.x)&&nk(t.y)}function nD(t,e){return t.min===e.min&&t.max===e.max}function nR(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nj(t,e){return nR(t.x,e.x)&&nR(t.y,e.y)}function nL(t){return iv(t.x)/iv(t.y)}function nF(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nB{constructor(){this.members=[]}add(t){T(this.members,t),t.scheduleRender()}remove(t){if(w(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}
1exitAnimationComplete(){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 nO={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nI=["","X","Y","Z"],nU={visibility:"hidden"},nW=0;function nN(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function n$({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=nW++,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,u.value&&(nO.nodes=nO.calculatedTargetDeltas=nO.calculatedProjections=0),this.nodes.forEach(nX),this.nodes.forEach(nQ),this.nodes.forEach(nJ),this.nodes.forEach(nG),u.addProjectionMetrics&&u.addProjectionMetrics(nO)},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 nd)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new P),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:n,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(s||n)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=x.now(),n=({timestamp:s})=>{let r=s-i;r>=250&&(f(n),t(r-e))};return m.setup(n,!0),()=>f(n)}(n,250),ni.hasAnimatedSinceResize&&(ni.hasAnimatedSinceResize=!1,this.nodes.forEach(nZ))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||n9,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!nj(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...U(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||nZ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,f(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(n0),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[C];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",m,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nK);return}this.isUpdating||this.nodes.forEach(nq),this.isUpdating=!1,this.nodes.forEach(n_),this.nodes.forEach(nz),this.nodes.forEach(nY),this.clearAllSnapshots();let t=x.now();g.delta=K(0,1e3/60,t-g.timestamp),g.timestamp=t,g.isProcessing=!0,y.update.process(g),y.preRender.process(g),y.render.process(g),g.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,no.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nH),this.sharedNodes.forEach(n1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,m.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){m.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iv(this.snapshot.measuredBox.x)||iv(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=iE(),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=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nC(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&(e||iD(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),n8((e=n).x),n8(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return iE();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(st))){let{scroll:t}=this.root;t&&(iB(e.x,t.offset.x),iB(e.y,t.offset.y))}return e}removeElementScroll(t){let e=iE();if(nP(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&nP(e,t),iB(e.x,s.offset.x),iB(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=iE();nP(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iI(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iD(n.latestValues)&&iI(i,n.latestValues)}return iD(this.latestValues)&&iI(i,this.latestValues),i}removeTransform(t){let e=iE();nP(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iD(i.latestValues))continue;iC(i.latestValues)&&i.updateSnapshot();let n=iE();nP(n,i.measurePageBox()),nV(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return iD(this.latestValues)&&nV(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!==g.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(this.layout&&(n||s)){if(this.resolvedRelativeTargetAt=g.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iE(),this.relativeTargetOrigin=iE(),ib(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=iE(),this.targetWithTransforms=iE()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,o,a;this.forceRelativeParentToResolveTarget(),r=this.target,o=this.relativeTarget,a=this.relativeParent.target,iw(r.x,o.x,a.x),iw(r.y,o.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nP(this.target,this.layout.layoutBox),iF(this.target,this.targetDelta)):nP(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iE(),this.relativeTargetOrigin=iE(),ib(this.relativeTargetOrigin,this.target,t.target),nP(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}u.value&&nO.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iC(this.parent.latestValues)||iR(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===g.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=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||s))return;nP(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let s,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(s=i[a]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&iI(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,iF(t,r)),n&&iD(s.latestValues)&&iI(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=iE());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nb(this.prevProjectionDelta.x,this.projectionDelta.x),nb(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iT(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&nF(this.projectionDelta.x,this.prevProjectionDelta.x)&&nF(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),u.value&&nO.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iA(),this.projectionDelta=iA(),this.projectionDeltaWithTransform=iA()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=iA();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iE(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(n3));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(n2(o.x,t.x,n),n2(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m,f,g;ib(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,n5(p.x,m.x,f.x,g),n5(p.y,m.y,f.y,g),i&&(h=this.relativeTarget,c=i,nD(h.x,c.x)&&nD(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=iE()),nP(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=tE(0,i.opacity??1,nv(n)),t.opacityExit=tE(e.opacity??1,0,nx(n))):r&&(t.opacity=tE(e.opacity??1,i.opacity??1,n));for(let s=0;s<nm;s++){let r=`border${np[s]}Radius`,o=ny(e,r),a=ny(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||ng(o)===ng(a)?(t[r]=Math.max(tE(nf(o),nf(a),n),0),(th.test(a)||th.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=tE(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(f(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=m.update(()=>{ni.hasAnimatedSinceResize=!0,$.layout++,this.currentAnimation=function(t,e,
1i){let n=E(0)?0:M(t);return n.start(e2("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{$.layout--},onComplete:()=>{$.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&n7(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iE();let e=iv(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iv(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nP(e,i),iI(e,s),iT(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nB),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&nN("z",t,n,this.animationValues);for(let e=0;e<nI.length;e++)nN(`rotate${nI[e]}`,t,n,this.animationValues),nN(`skew${nI[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return nU;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=nc(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nc(t?.pointerEvents)||""),this.hasProjected&&!iD(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=n.animationValues||n.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(e.transform=i(s,e.transform));let{x:r,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*r.origin}% ${100*o.origin}% 0`,n.animationValues?e.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:e.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,nr){if(void 0===s[t])continue;let{correct:i,applyTo:r,isCSSVariable:o}=nr[t],a="none"===e.transform?s[t]:i(s[t],n);if(r){let t=r.length;for(let i=0;i<t;i++)e[r[i]]=a}else o?this.options.visualElement.renderState.vars[t]=a:e[t]=a}return this.options.layoutId&&(e.pointerEvents=n===this?nc(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(nK),this.root.sharedNodes.clear()}}}function nz(t){t.updateLayout()}function nY(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?iV(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=iv(n);n.min=i[t].min,n.max=n.min+s}):n7(s,e.layoutBox,i)&&iV(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=iv(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=iA();iT(o,i,e.layoutBox);let a=iA();r?iT(a,t.applyTransform(n,!0),e.measuredBox):iT(a,i,e.layoutBox);let l=!nC(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=iE();ib(o,e.layoutBox,s.layoutBox);let a=iE();ib(a,i,r.layoutBox),nj(o,a)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nX(t){u.value&&nO.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nG(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nH(t){t.clearSnapshot()}function nK(t){t.clearMeasurements()}function nq(t){t.isLayoutDirty=!1}function n_(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nZ(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nQ(t){t.resolveTargetDelta()}function nJ(t){t.calcProjection()}function n0(t){t.resetSkewAndRotation()}function n1(t){t.removeLeadSnapshot()}function n2(t,e,i){t.translate=tE(e.translate,0,i),t.scale=tE(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n5(t,e,i,n){t.min=tE(e.min,i.min,n),t.max=tE(e.max,i.max,n)}function n3(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let n9={duration:.45,ease:[.4,0,.1,1]},n6=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),n4=n6("applewebkit/")&&!n6("chrome/")?Math.round:p;function n8(t){t.min=n4(t.min),t.max=n4(t.max)}function n7(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nL(e)-nL(i)))}function st(t){return t!==t.root&&t.scroll?.wasRoot}let se=n$({attachResizeListener:(t,e)=>id(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),si={current:void 0},sn=n$({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!si.current){let t=new se({});t.mount(window),t.setOptions({layoutScroll:!0}),si.current=t}return si.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ss(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sr(t){return!("touch"===t.pointerType||iQ.x||iQ.y)}function so(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&m.postRender(()=>s(e,ip(e)))}class sa extends ia{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=ss(t,i),o=t=>{if(!sr(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{sr(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}(t,(t,e)=>(so(this.node,e,"Start"),t=>so(this.node,t,"End"))))}unmount(){}}class sl extends ia{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=tO(id(this.node.current,"focus",()=>this.onFocus()),id(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let sh=(t,e)=>!!e&&(t===e||sh(t,e.parentElement)),su=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sd=new WeakSet;function sc(t){return e=>{"Enter"===e.key&&t(e)}}function sp(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let sm=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=sc(()=>{if(sd.has(i))return;sp(i,"down");let t=sc(()=>{sp(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sp(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function sf(t){return ic(t)&&!(iQ.x||iQ.y)}function sg(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&m.postRender(()=>s(e,ip(e)))}class sy extends ia{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[n,s,r]=ss(t,i),o=t=>{let n=t.currentTarget;if(!sf(t)||sd.has(n))return;sd.add(n);let r=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sf(t)&&sd.has(n)&&(sd.delete(n),"function"==typeof r&&r(t,{success:e}))},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||sh(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),t instanceof HTMLElement)&&(t.addEventListener("focus",t=>sm(t,s)),su.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(sg(this.node,e,"Start"),(t,{success:e})=>sg(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sv=new WeakMap,sx=new WeakMap,sT=t=>{let e=sv.get(t.target);e&&e(t)},sw=t=>{t.forEach(sT)},sP={some:0,all:1};class sb extends ia{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:sP[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;sx.has(i)||sx.set(i,{});let n=sx.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(sw,{root:t,...e})),n[s]}(e);return sv.set(t,i),n.observe(t),()=>{sv.delete(t),n.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;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 sS=(0,i8.createContext)({strict:!1});var sA=i(72460);let sM=(0,i8.createContext)({});function sE(t){return s(t.animate)||it.some(e=>e8(t[e]))}function sV(t){return!!(sE(t)||t.variants)}function sk(t){return Array.isArray(t)?t.join(" "):t}var sC=i(99556);let sD={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"]},sR={};for(let t in sD)sR[t]={isEnabled:e=>sD[t].some(t=>!!e[t])};let sj=Symbol.for("motionComponentSymbol");var sL=i(29269),sF=i(18670);function sB(t,{layout:e,layoutId:i}){return j.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!nr[t]||"opacity"===t)}let sO=(t,e)=>e&&"number"==typeof t?e.transform(t):t,sI={...q,transform:Math.round},sU={borderWidth:tu,borderTopWidth:tu,borderRightWidth:tu,borderBottomWidth:tu,borderLeftWidth:tu,borderRadius:tu,radius:tu,borderTopLeftRadius:tu,borderTopRightRadius:tu,borderBottomRightRadius:tu,borderBottomLeftRadius:tu,width:tu,maxWidth:tu,height:tu,maxHeight:tu,top:tu,right:tu,bottom:tu,left:tu,padding:tu,paddingTop:tu,paddingRight:tu,paddingBottom:tu,paddingLeft:tu,margin:tu,marginTop:tu,marginRight:tu,marginBottom:tu,marginLeft:tu,backgroundPositionX:tu,backgroundPositionY:tu,rotate:tl,rotateX:tl,rotateY:tl,rotateZ:tl,scale:Z,scaleX:Z,scaleY:Z,scaleZ:Z,skew:tl,skewX:tl,skewY:tl,distance:tu,translateX:tu,translateY:tu,translateZ:tu,x:tu,y:tu,z:tu,perspective:tu,transformPerspective:tu,opacity:_,originX:tp,originY:tp,originZ:tu,zIndex:sI,fillOpacity:_,strokeOpacity:_,numOctaves:sI},sW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sN=R.length;function s$(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(j.has(t)){o=!0;continue}if(Y(t)){s[t]=i;continue}{let e=sO(i,sU[t]);t.startsWith("origin")?(a=!0,r[t]=e):n[t]=e}}
1if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<sN;r++){let o=R[r],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=sO(a,sU[o]);if(!l){s=!1;let e=sW[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}let sz=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sY(t,e,i){for(let n in e)E(e[n])||sB(n,i)||(t[n]=e[n])}let sX=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 sG(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||sX.has(t)}let sH=t=>!sG(t);try{!function(t){t&&(sH=e=>e.startsWith("on")?!sG(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}let sK=["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 sq(t){if("string"!=typeof t||t.includes("-"));else if(sK.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let s_={offset:"stroke-dashoffset",array:"stroke-dasharray"},sZ={offset:"strokeDashoffset",array:"strokeDasharray"};function sQ(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,h){if(s$(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:u,style:d}=t;u.transform&&(d.transform=u.transform,delete u.transform),(d.transform||u.transformOrigin)&&(d.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),d.transform&&(d.transformBox="fill-box",delete u.transformBox),void 0!==e&&(u.x=e),void 0!==i&&(u.y=i),void 0!==n&&(u.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?s_:sZ;t[r.offset]=tu.transform(-n);let o=tu.transform(e),a=tu.transform(i);t[r.array]=`${o} ${a}`}(u,s,r,o,!1)}let sJ=()=>({...sz(),attrs:{}}),s0=t=>"string"==typeof t&&"svg"===t.toLowerCase();var s1=i(5965);let s2=t=>(e,i)=>{let n=(0,i8.useContext)(sM),r=(0,i8.useContext)(sL.t),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,r){return{latestValues:function(t,e,i,n){let r={},a=n(t,{});for(let t in a)r[t]=nc(a[t]);let{initial:l,animate:h}=t,u=sE(t),d=sV(t);e&&d&&!u&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===h&&(h=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===l)?h:l;if(p&&"boolean"!=typeof p&&!s(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=o(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,n,r,t),renderState:e()}})(t,e,n,r);return i?a():(0,s1.M)(a)};function s5(t,e,i){let{style:n}=t,s={};for(let r in n)(E(n[r])||e.style&&E(e.style[r])||sB(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(s[r]=n[r]);return s}let s3={useVisualState:s2({scrapeMotionValuesFromProps:s5,createRenderState:sz})};function s9(t,e,i){let n=s5(t,e,i);for(let i in t)(E(t[i])||E(e[i]))&&(n[-1!==R.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let s6={useVisualState:s2({scrapeMotionValuesFromProps:s9,createRenderState:sJ})},s4={current:null},s8={current:!1},s7=new WeakMap,rt=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),re=t=>/^0[^.\s]+$/u.test(t),ri=t=>e=>e.test(t),rn=[q,tu,th,tl,tc,td,{test:t=>"auto"===t,parse:t=>t}],rs=t=>rn.find(ri(t)),rr=[...rn,tf,tS],ro=t=>rr.find(ri(t)),ra=new Set(["brightness","contrast","saturate","opacity"]);function rl(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(J)||[];if(!n)return t;let s=i.replace(n,""),r=+!!ra.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let rh=/\b([a-z-]*)\(.*?\)/gu,ru={...tS,getAnimatableNone:t=>{let e=t.match(rh);return e?e.map(rl).join(" "):t}},rd={...sU,color:tf,backgroundColor:tf,outlineColor:tf,fill:tf,stroke:tf,borderColor:tf,borderTopColor:tf,borderRightColor:tf,borderBottomColor:tf,borderLeftColor:tf,filter:ru,WebkitFilter:ru},rc=t=>rd[t];function rp(t,e){let i=rc(t);return i!==ru&&(i=tS),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let rm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
1class rf{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,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=eW,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=x.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,m.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=sE(e),this.isVariantNode=sV(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in u){let e=u[t];void 0!==a[t]&&E(e)&&e.set(a[t],!1)}}mount(t){this.current=t,s7.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)),s8.current||function(){if(s8.current=!0,sC.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s4.current=t.matches;t.addListener(e),e()}else s4.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||s4.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),f(this.notifyUpdate),f(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 n=j.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&m.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),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 sR){let e=sR[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iE()}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<rm.length;e++){let i=rm[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(E(s))t.addValue(n,s);else if(E(r))t.addValue(n,M(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,M(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1addVariantChild(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=M(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(rt(i)||re(i))?i=parseFloat(i):!ro(i)&&tS.test(e)&&(i=rp(t,e)),this.setBaseTarget(t,E(i)?i.get():i)),E(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=o(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||E(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new P),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}let rg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ry=new Set(["auto","none","0"]);class rv extends eW{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&G(n=n.trim())){let s=function t(e,i,n=1){tk(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[s,r]=function(t){let e=rg.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return rt(t)?parseFloat(t):t}return G(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!e5.has(i)||2!==t.length)return;let[n,s]=t,r=rs(n),o=rs(s);if(r!==o)if(eC(r)&&eC(o))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 n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||re(n)))&&i.push(e)}i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!ry.has(e)&&tT(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=rp(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ej[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=ej[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}class rx extends rf{constructor(){super(...arguments),this.KeyframeResolver=rv}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;E(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function rT(t,{style:e,vars:i},n,s){for(let r in Object.assign(t.style,e,s&&s.getProjectionStyles(n)),i)t.style.setProperty(r,i[r])}class rw extends rx{constructor(){super(...arguments),this.type="html",this.renderInstance=rT}readValueFromInstance(t,e){if(j.has(e))return eV(t,e);{let i=window.getComputedStyle(t),n=(Y(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iU(t,e)}build(t,e,i){s$(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return s5(t,e,i)}}let rP=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"]);class rb extends rx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iE}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(j.has(e)){let t=rc(e);return t&&t.default||0}return e=rP.has(e)?e:k(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return s9(t,e,i)}build(t,e,i){sQ(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){for(let i in rT(t,e,void 0,n),e.attrs)t.setAttribute(rP.has(i)?i:k(i),e.attrs[i])}mount(t){this.isSVGTag=s0(t.tagName),super.mount(t)}}let rS=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((i9={animation:{Feature:il},exit:{Feature:iu},inView:{Feature:sb},tap:{Feature:sy},focus:{Feature:sl},hover:{Feature:sa},pan:{Feature:i3},drag:{Feature:i2,ProjectionNode:sn,MeasureLayout:nl},layout:{ProjectionNode:sn,MeasureLayout:nl}},i6=(t,e)=>sq(t)?new rb(e):new rw(e,{allowProjection:t!==i8.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:s,useRender:r,useVisualState:o,Component:a}=t;function l(t,e){var i,n,l;let h,u={...(0,i8.useContext)(sA.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,i8.useContext)(nt.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:d}=u,c=function(t){let{initial:e,animate:i}=function(t,e){if(sE(t)){let{initial:e,animate:i}=t;return{initial:!1===e||e8(e)?e:void 0,animate:e8(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i8.useContext)(sM));return(0,i8.useMemo)(()=>({initial:e,animate:i}),[sk(e),sk(i)])}(t),p=o(t,d);if(!d&&sC.B){n=0,l=0,(0,i8.useContext)(sS).strict;let t=function(t){let{drag:e,layout:i}=sR;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);h=t.MeasureLayout,c.visualElement=function(t,e,i,n,s){let{visualElement:r}=(0,i8.useContext)(sM),o=(0,i8.useContext)(sS),a=(0,i8.useContext)(sL.t),l=(0,i8.useContext)(sA.Q).reducedMotion,h=(0,i8.useRef)(null);n=n||o.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:r,props:i,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));let u=h.current,d=(0,i8.useContext)(ne);u&&!u.projection&&s&&("html"===u.type||"svg"===u.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade: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:s,layout:r,alwaysMeasureLayout:!!o||a&&iN(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:h})}(h.current,i,s,d);let c=(0,i8.useRef)(!1);(0,i8.useInsertionEffect)(()=>{u&&c.current&&u.update(i,a)});
1let p=i[C],m=(0,i8.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,sF.E)(()=>{u&&(c.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),no.render(u.render),m.current&&u.animationState&&u.animationState.animateChanges())}),(0,i8.useEffect)(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1))}),u}(a,p,u,s,t.ProjectionNode)}return(0,i4.jsxs)(sM.Provider,{value:c,children:[h&&c.visualElement?(0,i4.jsx)(h,{visualElement:c.visualElement,...u}):null,r(a,t,(i=c.visualElement,(0,i8.useCallback)(t=>{t&&p.onMount&&p.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):iN(e)&&(e.current=t))},[i])),p,d,c.visualElement)]})}n&&function(t){for(let e in t)sR[e]={...sR[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!=(i=null!=(e=a.displayName)?e:a.name)?i:"",")"));let h=(0,i8.forwardRef)(l);return h[sj]=a,h}({...sq(t)?s6:s3,preloadedFeatures:i9,useRender:function(t=!1){return(e,i,n,{latestValues:s},r)=>{let o=(sq(e)?function(t,e,i,n){let s=(0,i8.useMemo)(()=>{let i=sJ();return sQ(i,e,s0(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};sY(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return sY(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,i8.useMemo)(()=>{let i=sz();return s$(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,s,r,e),a=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(sH(s)||!0===i&&sG(s)||!e&&!sG(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),l=e!==i8.Fragment?{...a,...o,ref:n}:{},{children:h}=i,u=(0,i8.useMemo)(()=>E(h)?h.get():h,[h]);return(0,i8.createElement)(e,{...l,children:u})}}(e),createVisualElement:i6,Component:t})}))},37341:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(7620).createContext)({})},38094:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(7620);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},39672:(t,e,i)=>{i.d(e,{Gt:()=>s,PP:()=>a,WG:()=>r,uv:()=>o});var n=i(11330);let{schedule:s,cancel:r,state:o,steps:a}=(0,i(52936).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},43274:(t,e,i)=>{i.d(e,{xQ:()=>r});var n=i(7620),s=i(29269);function r(t=!0){let e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return a(l)},[t]);let h=(0,n.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,h]:[!0]}},43877:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(7620).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},44008:(t,e,i)=>{i.d(e,{E:()=>a});var n=i(39672),s=i(96303),r=i(22896),o=i(96711);function a(t,...e){let i=t.length;return function(t,e){let i=(0,r.d)(e()),o=()=>i.set(e());return o(),(0,s.E)(()=>{let e=()=>n.Gt.preRender(o,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,n.WG)(o)}}),i}(e.filter(o.S),function(){let n="";for(let s=0;s<i;s++){n+=t[s];let i=e[s];i&&(n+=(0,o.S)(i)?i.get():i)}return n})}},46590:(t,e,i)=>{i.d(e,{_:()=>n});function n(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}},51680:(t,e,i)=>{i.d(e,{f:()=>n});function n(t,e){return e?1e3/e*t:0}},52936:(t,e,i)=>{i.d(e,{I:()=>o});var n=i(61816);let s=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var r=i(75049);function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,h=s.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,o=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},h=0;function u(e){a.has(e)&&(d.schedule(e),t()),h++,e(l)}let d={schedule:(t,e=!1,r=!1)=>{let o=r&&s?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(l=t,s){o=!0;return}
1s=!0,[i,n]=[n,i],i.forEach(u),e&&r.Q.value&&r.Q.value.frameloop[e].push(h),h=0,i.clear(),s=!1,o&&(o=!1,d.process(t))}};return d}(l,e?i:void 0),t),{}),{setup:u,read:d,resolveKeyframes:c,preUpdate:p,update:m,preRender:f,render:g,postRender:y}=h,v=()=>{let s=n.W.useManualTiming?a.timestamp:performance.now();i=!1,n.W.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(s-a.timestamp,40),1)),a.timestamp=s,a.isProcessing=!0,u.process(a),d.process(a),c.process(a),p.process(a),m.process(a),f.process(a),g.process(a),y.process(a),a.isProcessing=!1,i&&e&&(o=!1,t(v))},x=()=>{i=!0,o=!0,a.isProcessing||t(v)};return{schedule:s.reduce((t,e)=>{let n=h[e];return t[e]=(t,e=!1,s=!1)=>(i||x(),n.schedule(t,e,s)),t},{}),cancel:t=>{for(let e=0;e<s.length;e++)h[s[e]].cancel(t)},state:a,steps:h}}},53206:(t,e,i)=>{let n;i.d(e,{k:()=>a});var s=i(61816),r=i(39672);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(r.uv.isProcessing||s.W.useManualTiming?r.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},61816:(t,e,i)=>{i.d(e,{W:()=>n});let n={}},72460:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(7620).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},75049:(t,e,i)=>{i.d(e,{Q:()=>n});let n={value:null,addProjectionMetrics:null}},75344:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(98889).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},78864:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(98889).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},85321:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(98889).A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]])},87448:(t,e,i)=>{function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function s(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,n){if("function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}return e}function o(t,e,i){let n=t.getProps();return r(n,e,void 0!==i?i:n.custom,t)}function a(t,e){return t?.[e]??t?.default??t}i.d(e,{P:()=>rp});var l,h,u=i(39672);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]);var m=i(89897);let f=t=>Array.isArray(t);var g=i(61816),y=i(96711);function v(t,e){let i=t.getValue("willChange");if((0,y.S)(i)&&i.add)return i.add(e);if(!i&&g.W.WillChange){let i=new g.W.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let x=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),T="data-"+x("framerAppearId");var w=i(11330),P=i(53206);let b=(t,e)=>i=>e(t(i)),S=(...t)=>t.reduce(b),A=(t,e,i)=>i>e?e:i<t?t:i,M=t=>1e3*t,E=t=>t/1e3,V={layout:0,mainThread:0,waapi:0},k=()=>{},C=()=>{},D=t=>e=>"string"==typeof e&&e.startsWith(t),R=D("--"),j=D("var(--"),L=t=>!!j(t)&&F.test(t.split("/*")[0].trim()),F=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,B={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},O={...B,transform:t=>A(0,1,t)},I={...B,default:1},U=t=>Math.round(1e5*t)/1e5,W=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,N=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$=(t,e)=>i=>!!("string"==typeof i&&N.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),z=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(W);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},Y=t=>A(0,255,t),X={...B,transform:t=>Math.round(Y(t))},G={test:$("rgb","red"),parse:z("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+X.transform(t)+", "+X.transform(e)+", "+X.transform(i)+", "+U(O.transform(n))+")"},H={test:$("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
1a:s?parseInt(s,16)/255:1}},transform:G.transform},K=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),q=K("deg"),_=K("%"),Z=K("px"),Q=K("vh"),J=K("vw"),tt={..._,parse:t=>_.parse(t)/100,transform:t=>_.transform(100*t)},te={test:$("hsl","hue"),parse:z("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+_.transform(U(e))+", "+_.transform(U(i))+", "+U(O.transform(n))+")"},ti={test:t=>G.test(t)||H.test(t)||te.test(t),parse:t=>G.test(t)?G.parse(t):te.test(t)?te.parse(t):H.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?G.transform(t):te.transform(t)},tn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ts="number",tr="color",to=/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 ta(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(to,t=>(ti.test(t)?(n.color.push(r),s.push(tr),i.push(ti.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(ts),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function tl(t){return ta(t).values}function th(t){let{split:e,types:i}=ta(t),n=e.length;return t=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){let e=i[r];e===ts?s+=U(t[r]):e===tr?s+=ti.transform(t[r]):s+=t[r]}return s}}let tu=t=>"number"==typeof t?0:t,td={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(W)?.length||0)+(t.match(tn)?.length||0)>0},parse:tl,createTransformer:th,getAnimatableNone:function(t){let e=tl(t);return th(t)(e.map(tu))}};function tc(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 tp(t,e){return i=>i>0?e:t}let tm=(t,e,i)=>t+(e-t)*i,tf=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},tg=[H,G,te],ty=t=>tg.find(e=>e.test(t));function tv(t){let e=ty(t);if(k(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===te&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=tc(a,n,t+1/3),r=tc(a,n,t),o=tc(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let tx=(t,e)=>{let i=tv(t),n=tv(e);if(!i||!n)return tp(t,e);let s={...i};return t=>(s.red=tf(i.red,n.red,t),s.green=tf(i.green,n.green,t),s.blue=tf(i.blue,n.blue,t),s.alpha=tm(i.alpha,n.alpha,t),G.transform(s))},tT=new Set(["none","hidden"]);function tw(t,e){return i=>tm(t,e,i)}function tP(t){return"number"==typeof t?tw:"string"==typeof t?L(t)?tp:ti.test(t)?tx:tA:Array.isArray(t)?tb:"object"==typeof t?ti.test(t)?tx:tS:tp}function tb(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>tP(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function tS(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=tP(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let tA=(t,e)=>{let i=td.createTransformer(e),n=ta(t),s=ta(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?tT.has(t)&&!s.values.length||tT.has(e)&&!n.values.length?function(t,e){return tT.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):S(tb(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],o=t.indexes[r][n[r]],a=t.values[o]??0;i[s]=a,n[r]++}return i}(n,s),s.values),i):(k(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tp(t,e))};function tM(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?tm(t,e,i):tP(t)(t,e)}let tE=t=>{let e=({timestamp:e})=>t(e);return{start:()=>u.Gt.update(e,!0),stop:()=>(0,u.WG)(e),now:()=>u.uv.isProcessing?u.uv.timestamp:P.k.now()}},tV=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=t(e/(s-1))+", ";return`linear(${n.substring(0,n.length-2)})`};function tk(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}var tC=i(51680);function tD(t,e,i){let n=Math.max(e-5,0);return(0,tC.f)(i-t(n),e-n)}let tR={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 tj(t,e){return t*Math.sqrt(1-e*e)}let tL=["duration","bounce"],tF=["stiffness","damping","mass"];function tB(t,e){return e.some(e=>void 0!==t[e])}function tO(t=tR.visualDuration,e=tR.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:h,damping:u,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:tR.velocity,stiffness:tR.stiffness,damping:tR.damping,mass:tR.mass,isResolvedFromDuration:!1,...t};if(!tB(t,tF)&&tB(t,tL))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*A(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:tR.mass,stiffness:n,damping:s}}else{let i=function({duration:t=tR.duration,bounce:e=tR.bounce,velocity:i=tR.velocity,mass:n=tR.mass}){let s,r;k(t<=M(tR.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=A(tR.minDamping,tR.maxDamping,o),t=A(tR.minDuration,tR.maxDuration,E(t)),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/tj(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=tj(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=M(t),isNaN(a))return{stiffness:tR.stiffness,damping:tR.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:tR.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-E(n.velocity||0)}),f=p||0,g=u/(2*Math.sqrt(h*d)),y=a-o,v=E(Math.sqrt(h/d)),x=5>Math.abs(y);if(s||(s=x?tR.restSpeed.granular:tR.restSpeed.default),r||(r=x?tR.restDelta.granular:tR.restDelta.default),g<1){let t=tj(v,g);i=e=>a-Math.exp(-g*v*e)*((f+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-v*t)*(y+(f+v*y)*t);else{let t=v*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*v*e),n=Math.min(t*e,300);return a-i*((f+g*v*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let T={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let n=0===t?f:0;g<1&&(n=0===t?M(f):tD(i,t,e));let o=Math.abs(a-e)<=r;l.done=Math.abs(n)<=s&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(tk(T),2e4),e=tV(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function tI({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l,y=i*e,v=p+y,x=void 0===o?v:o(v);x!==v&&(y=x-p);let T=t=>-y*Math.exp(-t/n),w=t=>x+T(t),P=t=>{let e=T(t),i=w(t);m.done=Math.abs(e)<=h,m.value=m.done?x:i},b=t=>{f(m.value)&&(d=t,c=tO({keyframes:[m.value,g(m.value)],velocity:tD(w,t,m.value),damping:s,stiffness:r,restDelta:h,restSpeed:u}))};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,P(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||P(t),m)}}}tO.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(tk(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:E(s)}}(t,100,tO);return t.ease=e.ease,t.duration=M(e.duration),t.type="keyframes",t};let tU=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tW(t,e,i,n){if(t===e&&i===n)return w.l;let s=e=>(function(t,e,i,n,s){let r,o,a=0;do(r=tU(o=e+(i-e)/2,n,s)-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:tU(s(t),e,n)}let tN=tW(.42,0,1,1),t$=tW(0,0,.58,1),tz=tW(.42,0,.58,1),tY=t=>Array.isArray(t)&&"number"!=typeof t[0],tX=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tG=t=>e=>1-t(1-e),tH=tW(.33,1.53,.69,.99),tK=tG(tH),tq=tX(tK),t_=t=>(t*=2)<1?.5*tK(t):.5*(2-Math.pow(2,-10*(t-1))),tZ=t=>1-Math.sin(Math.acos(t)),tQ=tG(tZ),tJ=tX(tZ),t0=t=>Array.isArray(t)&&"number"==typeof t[0],t1={linear:w.l,easeIn:tN,easeInOut:tz,easeOut:t$,circIn:tZ,circInOut:tJ,circOut:tQ,backIn:tK,backInOut:tq,backOut:tH,anticipate:t_},t2=t=>"string"==typeof t,t5=t=>{if(t0(t)){C(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return tW(e,i,n,s)}return t2(t)?(C(void 0!==t1[t],`Invalid easing type '${t}'`),t1[t]):t},t3=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function t9({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=tY(n)?n.map(t5):t5(n),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(C(r===e.length,"Both input and output ranges must be the same length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],s=i||g.W.mix||tM,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=S(Array.isArray(e)?e[i]||w.l:e,r)),n.push(r)}return n}(e,n,s),l=a.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=t3(t[n],t[n+1],i);return a[n](s)};return i?e=>h(A(t[0],t[r-1],e)):h}((s=i&&i.length===e.length?i:function(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=t3(0,e,n);t.push(tm(i,1,s))}}(e,t.length-1),e}(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||tz).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let t6=t=>null!==t;function t4(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(t6),o=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==n?n:r[o]}let t8={decay:tI,inertia:tI,tween:t9,keyframes:t9,spring:tO};function t7(t){"string"==typeof t.type&&(t.type=t8[t.type])}class et{constructor(){this.count=0,this.updateFinished()}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ee=t=>t/100;class ei extends et{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;if(t&&t.updatedAt!==P.k.now()&&this.tick(P.k.now()),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()},V.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;t7(t);let{type:e=t9,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,a=e||t9;a!==t9&&"number"!=typeof o[0]&&(this.mixKeyframes=S(ee,tM(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=tk(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,x=i;if(u){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,u+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/o)):"mirror"===d&&(x=r)),v=A(0,1,i)*o}let T=y?{done:!1,value:h[0]}:x.next(v);s&&(T.value=s(T.value));let{done:w}=T;y||null===a||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&p!==tI&&(T.value=t4(h,this.options,f,this.speed)),m&&m(T.value),P&&this.finish(),T}
1then(t,e){return this.finished.then(t,e)}get duration(){return E(this.calculatedDuration)}get time(){return E(this.currentTime)}set time(t){t=M(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(P.k.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=E(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tE,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=i??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(P.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.notifyFinished(),this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,V.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),t.observe(this)}}let en=t=>180*t/Math.PI,es=t=>eo(en(Math.atan2(t[1],t[0]))),er={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:es,rotateZ:es,skewX:t=>en(Math.atan(t[1])),skewY:t=>en(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},eo=t=>((t%=360)<0&&(t+=360),t),ea=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),el=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),eh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ea,scaleY:el,scale:t=>(ea(t)+el(t))/2,rotateX:t=>eo(en(Math.atan2(t[6],t[5]))),rotateY:t=>eo(en(Math.atan2(-t[2],t[0]))),rotateZ:es,rotate:es,skewX:t=>en(Math.atan(t[4])),skewY:t=>en(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function eu(t){return+!!t.includes("scale")}function ed(t,e){let i,n;if(!t||"none"===t)return eu(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=eh,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=er,n=e}if(!n)return eu(e);let r=i[e],o=n[1].split(",").map(ep);return"function"==typeof r?r(o):o[r]}let ec=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return ed(i,e)};function ep(t){return parseFloat(t.trim())}let em=t=>t===B||t===Z,ef=new Set(["x","y","z"]),eg=d.filter(t=>!ef.has(t)),ey={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})=>ed(e,"x"),y:(t,{transform:e})=>ed(e,"y")};ey.translateX=ey.x,ey.translateY=ey.y;let ev=new Set,ex=!1,eT=!1,ew=!1;function eP(){if(eT){let t=Array.from(ev).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 eg.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eT=!1,ex=!1,ev.forEach(t=>t.complete(ew)),ev.clear()}function eb(){ev.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eT=!0)})}class eS{constructor(t,e,i,n,s,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=n,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ev.add(this),ex||(ex=!0,u.Gt.read(eb),u.Gt.resolveKeyframes(eP))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;
1if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ev.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ev.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eA=t=>t.startsWith("--");function eM(t){let e;return()=>(void 0===e&&(e=t()),e)}let eE=eM(()=>void 0!==window.ScrollTimeline);var eV=i(75049);let ek={},eC=function(t,e){let i=eM(t);return()=>ek[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eD=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,eR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eD([0,.65,.55,1]),circOut:eD([.55,0,1,.45]),backIn:eD([.31,.01,.66,-.59]),backOut:eD([.33,1.53,.69,.99])};function ej(t){return"function"==typeof t&&"applyToOptions"in t}class eL extends et{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,C("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:t,...e}){return ej(t)&&eC()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?eC()?tV(e,i):"ease-out":t0(e)?eD(e):Array.isArray(e)?e.map(e=>t(e,i)||eR.easeOut):eR[e]}(a,s);Array.isArray(d)&&(u.easing=d),eV.Q.value&&V.waapi++;let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};h&&(c.pseudoElement=h);let p=t.animate(u,c);return eV.Q.value&&p.finished.finally(()=>{V.waapi--}),p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=t4(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){eA(e)?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()},this.animation.oncancel=()=>this.notifyFinished()}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return E(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return E(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=M(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&eE())?(this.animation.timeline=t,w.l):e(this)}}let eF={anticipate:t_,backInOut:tq,circInOut:tJ};class eB extends eL{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in eF&&(t.ease=eF[t.ease])}(t),t7(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new ei({...r,autoplay:!1}),a=M(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let eO=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(td.test(t)||"0"===t)&&!t.startsWith("url(")),eI=new Set(["opacity","clipPath","filter","transform"]),eU=eM(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class eW extends et{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation?(this._animation.stop(),this.stopTimeline?.()):this.keyframeResolver?.cancel()},this.createdAt=P.k.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:h,...u},c=h?.KeyframeResolver||eS;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:o,delay:a,isHandoff:l,onUpdate:h}=i;
1this.resolvedAt=P.k.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=eO(s,e),a=eO(r,e);return k(o===a,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ej(i))&&n)}(t,s,r,o)&&((g.W.instantAnimations||!a)&&h?.(t4(t,i,e)),t[0]=t[t.length-1],i.duration=0,i.repeat=0);let u={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,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 eU()&&i&&eI.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}(u)?new eB({...u,element:u.motionValue.owner.current}):new ei(u);d.finished.then(()=>this.notifyFinished()).catch(w.l),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(ew=!0,eb(),eP(),ew=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this.animation.cancel()}}let eN=t=>null!==t,e$={type:"spring",stiffness:500,damping:25,restSpeed:10},ez=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),eY={type:"keyframes",duration:.8},eX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eG=(t,{keyframes:e})=>e.length>2?eY:c.has(t)?t.startsWith("scale")?ez(e[1]):e$:eX,eH=(t,e,i,n={},s,r)=>o=>{let l=a(n,t)||{},h=l.delay||n.delay||0,{elapsed:d=0}=n;d-=M(h);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:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(l)&&Object.assign(c,eG(t,c)),c.duration&&(c.duration=M(c.duration)),c.repeatDelay&&(c.repeatDelay=M(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)),(g.W.instantAnimations||g.W.skipAnimations)&&(p=!0,c.duration=0,c.delay=0),c.allowFlatten=!l.type&&!l.ease,p&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(eN),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[r]}(c.keyframes,l);if(void 0!==t)return void u.Gt.update(()=>{c.onUpdate(t),c.onComplete()})}return new eW(c)};function eK(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:l,...h}=e;n&&(r=n);let d=[],c=s&&t.animationState&&t.animationState.getState()[s];for(let e in h){let n=t.getValue(e,t.latestValues[e]??null),s=h[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let o={delay:i,...a(r||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating&&!Array.isArray(s)&&s===l&&!o.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){let i=t.props[T];if(i){let t=window.MotionHandoffAnimation(i,e,u.Gt);null!==t&&(o.startTime=t,m=!0)}}v(t,e),n.start(eH(e,n,s,t.shouldReduceMotion&&p.has(e)?{type:!1}:o,t,m));let f=n.animation;f&&d.push(f)}return l&&Promise.all(d).then(()=>{u.Gt.update(()=>{l&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=o(t,e)||{};for(let e in s={...s,...i}){var r;let i=f(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,m.OQ)(i))}}(t,l)})}),d}function eq(t,e,i={}){let n=o(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(eK(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;
1return function(t,e,i=0,n=0,s=1,r){let o=[],a=(t.variantChildren.size-1)*n,l=1===s?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(e_).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(eq(t,e,{...r,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(()=>e())}}function e_(t,e){return t.sortNodePosition(e)}function eZ(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function eQ(t){return"string"==typeof t||Array.isArray(t)}let eJ=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],e0=["initial",...eJ],e1=e0.length,e2=[...eJ].reverse(),e5=eJ.length;function e3(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function e9(){return{animate:e3(!0),whileInView:e3(),whileHover:e3(),whileTap:e3(),whileDrag:e3(),whileFocus:e3(),exit:e3()}}class e6{constructor(t){this.isMounted=!1,this.node=t}update(){}}class e4 extends e6{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>eq(t,e,i)));else if("string"==typeof e)n=eq(t,e,i);else{let s="function"==typeof e?o(t,e,i.custom):e;n=Promise.all(eK(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=e9(),s=!0,r=e=>(i,n)=>{let s=o(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function a(a){let{props:l}=t,h=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<e1;t++){let n=e0[t],s=e.props[n];(eQ(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},u=[],d=new Set,c={},p=1/0;for(let e=0;e<e5;e++){var m,g;let o=e2[e],y=i[o],v=void 0!==l[o]?l[o]:h[o],x=eQ(v),T=o===a?y.isActive:null;!1===T&&(p=e);let w=v===h[o]&&v!==l[o]&&x;if(w&&s&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...c},!y.isActive&&null===T||!v&&!y.prevProp||n(v)||"boolean"==typeof v)continue;let P=(m=y.prevProp,"string"==typeof(g=v)?g!==m:!!Array.isArray(g)&&!eZ(g,m)),b=P||o===a&&y.isActive&&!w&&x||e>p&&x,S=!1,A=Array.isArray(v)?v:[v],M=A.reduce(r(o),{});!1===T&&(M={});let{prevResolvedValues:E={}}=y,V={...E,...M},k=e=>{b=!0,d.has(e)&&(S=!0,d.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in V){let e=M[t],i=E[t];if(c.hasOwnProperty(t))continue;let n=!1;(f(e)&&f(i)?eZ(e,i):e===i)?void 0!==e&&d.has(t)?k(t):y.protectedKeys[t]=!0:null!=e?k(t):d.add(t)}y.prevProp=v,y.prevResolvedValues=M,y.isActive&&(c={...c,...M}),s&&t.blockInitialAnimation&&(b=!1);let C=!(w&&P)||S;b&&C&&u.push(...A.map(t=>({animation:t,options:{type:o}})))}if(d.size){let e={};if("boolean"!=typeof l.initial){let i=o(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let y=!!u.length;return s&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(u):Promise.resolve()}return{animateChanges:a,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=a(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=e9(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();n(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let e8=0;class e7 extends e6{constructor(){super(...arguments),this.id=e8++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let it={x:!1,y:!1};function ie(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let ii=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function is(t){return{point:{x:t.pageX,y:t.pageY}}}let ir=t=>e=>ii(e)&&t(e,is(e));function io(t,e,i,n){return ie(t,e,ir(i),n)}function ia({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function il(t){return t.max-t.min}function ih(t,e,i,n=.5){t.origin=n,t.originPoint=tm(e.min,e.max,t.origin),t.scale=il(i)/il(e),t.translate=tm(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 iu(t,e,i,n){ih(t.x,e.x,i.x,n?n.originX:void 0),ih(t.y,e.y,i.y,n?n.originY:void 0)}function id(t,e,i){t.min=i.min+e.min,t.max=t.min+il(e)}function ic(t,e,i){t.min=e.min-i.min,t.max=t.min+il(e)}function ip(t,e,i){ic(t.x,e.x,i.x),ic(t.y,e.y,i.y)}let im=()=>({translate:0,scale:1,origin:0,originPoint:0}),ig=()=>({x:im(),y:im()}),iy=()=>({min:0,max:0}),iv=()=>({x:iy(),y:iy()});function ix(t){return[t("x"),t("y")]}function iT(t){return void 0===t||1===t}function iw({scale:t,scaleX:e,scaleY:i}){return!iT(t)||!iT(e)||!iT(i)}function iP(t){return iw(t)||ib(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ib(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iS(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function iA(t,e=0,i=1,n,s){t.min=iS(t.min,e,i,n,s),t.max=iS(t.max,e,i,n,s)}function iM(t,{x:e,y:i}){iA(t.x,e.translate,e.scale,e.originPoint),iA(t.y,i.translate,i.scale,i.originPoint)}function iE(t,e){t.min=t.min+e,t.max=t.max+e}function iV(t,e,i,n,s=.5){let r=tm(t.min,t.max,s);iA(t,e,i,r,n)}function ik(t,e){iV(t.x,e.x,e.scaleX,e.scale,e.originX),iV(t.y,e.y,e.scaleY,e.scale,e.originY)}function iC(t,e){return ia(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let iD=({current:t})=>t?t.ownerDocument.defaultView:null;function iR(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let ij=(t,e)=>Math.abs(t-e);class iL{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iO(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(ij(t.x,e.x)**2+ij(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=u.uv;this.history.push({...n,timestamp:s});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iF(e,this.transformPagePoint),u.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=iO("pointercancel"===t.type?this.lastMoveEventInfo:iF(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!ii(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=iF(is(t),this.transformPagePoint),{point:o}=r,{timestamp:a}=u.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iO(r,this.history)),this.removeListeners=S(io(this.contextWindow,"pointermove",this.handlePointerMove),io(this.contextWindow,"pointerup",this.handlePointerUp),io(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,u.WG)(this.updatePoint)}}function iF(t,e){return e?{point:e(t.point)}:t}function iB(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iO({point:t},e){return{point:t,delta:iB(t,iI(e)),offset:iB(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=iI(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>M(.1)));)i--;if(!n)return{x:0,y:0};let r=E(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function iI(t){return t[t.length-1]}function iU(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 iW(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function iN(t,e,i){return{min:i$(t,e),max:i$(t,i)}}function i$(t,e){return"number"==typeof t?t:t[e]||0}let iz=new WeakMap;class iY{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=iv(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new iL(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(is(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(it[t])return null;else return it[t]=!0,()=>{it[t]=!1};return it.x||it.y?null:(it.x=it.y=!0,()=>{it.x=it.y=!1})}(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),ix(t=>{let e=this.getAxisMotionValue(t).get()||0;if(_.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=il(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&u.Gt.postRender(()=>s(t,e)),v(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(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:()=>ix(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:iD(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&u.Gt.postRender(()=>s(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:n}=this.getProps();if(!i||!iX(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?tm(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?tm(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iR(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:iU(t.x,i,s),y:iU(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iN(t,"left","right"),y:iN(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ix(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iR(e))return!1;let n=e.current;C(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(t,e,i){let n=iC(t,i),{scroll:s}=e;return s&&(iE(n.x,s.offset.x),iE(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:iW(t.x,r.x),y:iW(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=ia(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(ix(o=>{if(!iX(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return v(this.visualElement,t),i.start(eH(t,i,0,e,this.visualElement,!1))}stopAnimation(){ix(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ix(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ix(e=>{let{drag:i}=this.getProps();if(!iX(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-tm(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iR(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};ix(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=il(t),s=il(e);return s>n?i=t3(e.min,e.max-n,t.min):n>s&&(i=t3(t.min,t.max-s,e.min)),A(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ix(e=>{if(!iX(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(tm(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;iz.set(this.visualElement,this);let t=io(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iR(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),u.Gt.read(e);let s=ie(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ix(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function iX(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class iG extends e6{constructor(t){super(t),this.removeGroupControls=w.l,this.removeListeners=w.l,this.controls=new iY(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||w.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let iH=t=>(e,i)=>{t&&u.Gt.postRender(()=>t(e,i))};class iK extends e6{constructor(){super(...arguments),this.removePointerDownListener=w.l}onPointerDown(t){this.session=new iL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iD(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:iH(t),onStart:iH(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&u.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=io(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 iq=i(54568);let{schedule:i_}=(0,i(52936).I)(queueMicrotask,!1);var iZ=i(7620);let iQ=(0,iZ.createContext)(null),iJ=(0,iZ.createContext)({}),i0=(0,iZ.createContext)({}),i1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function i2(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let i5={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!Z.test(t))return t;else t=parseFloat(t);let i=i2(t,e.target.x),n=i2(t,e.target.y);return`${i}% ${n}%`}},i3={};class i9 extends iZ.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;for(let t in i4)i3[t]=i4[t],R(t)&&(i3[t].isCSSVariable=!0);s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),i1.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,r=i.projection;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||u.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),i_.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function i6(t){let[e,i]=function(t=!0){let e=(0,iZ.useContext)(iQ);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,iZ.useId)();(0,iZ.useEffect)(()=>{if(t)return s(r)},[t]);let o=(0,iZ.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,iZ.useContext)(iJ);return(0,iq.jsx)(i9,{...t,layoutGroup:n,switchLayoutGroup:(0,iZ.useContext)(i0),isPresent:e,safeToRemove:i})}let i4={borderRadius:{...i5,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:i5,borderTopRightRadius:i5,borderBottomLeftRadius:i5,borderBottomRightRadius:i5,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=td.parse(t);if(n.length>5)return t;let s=td.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=tm(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};var i8=i(12023),i7=i(94703);let nt=(t,e)=>t.depth-e.depth;class ne{constructor(){this.children=[],this.isDirty=!1}add(t){(0,i7.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,i7.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nt),this.isDirty=!1,this.children.forEac
1h(t)}}function ni(t){return(0,y.S)(t)?t.get():t}let nn=["TopLeft","TopRight","BottomLeft","BottomRight"],ns=nn.length,nr=t=>"string"==typeof t?parseFloat(t):t,no=t=>"number"==typeof t||Z.test(t);function na(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nl=nu(0,.5,tQ),nh=nu(.5,.95,w.l);function nu(t,e,i){return n=>n<t?0:n>e?1:i(t3(t,e,n))}function nd(t,e){t.min=e.min,t.max=e.max}function nc(t,e){nd(t.x,e.x),nd(t.y,e.y)}function np(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nm(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function nf(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(_.test(e)&&(e=parseFloat(e),e=tm(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=tm(r.min,r.max,n);t===r&&(a-=e),t.min=nm(t.min,e,i,a,s),t.max=nm(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let ng=["x","scaleX","originX"],ny=["y","scaleY","originY"];function nv(t,e,i,n){nf(t.x,e,ng,i?i.x:void 0,n?n.x:void 0),nf(t.y,e,ny,i?i.y:void 0,n?n.y:void 0)}function nx(t){return 0===t.translate&&1===t.scale}function nT(t){return nx(t.x)&&nx(t.y)}function nw(t,e){return t.min===e.min&&t.max===e.max}function nP(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nb(t,e){return nP(t.x,e.x)&&nP(t.y,e.y)}function nS(t){return il(t.x)/il(t.y)}function nA(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nM{constructor(){this.members=[]}add(t){(0,i7.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,i7.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nE={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nV=["","X","Y","Z"],nk={visibility:"hidden"},nC=0;function nD(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nR({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=nC++,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,eV.Q.value&&(nE.nodes=nE.calculatedTargetDeltas=nE.calculatedProjections=0),this.nodes.forEach(nF),this.nodes.forEach(n$),this.nodes.forEach(nz),this.nodes.forEach(nB),eV.Q.addProjectionMetrics&&eV.Q.addProjectionMetrics(nE)},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 ne)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new i8.v),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:n,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(s||n)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=P.k.now(),n=({timestamp:s})=>{let r=s-i;r>=250&&((0,u.WG)(n),t(r-e))};return u.Gt.setup(n,!0),()=>(0,u.WG)(n)}(n,250),i1.hasAnimatedSinceResize&&(i1.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(nN))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||nq,{onLayoutAnimationStart:o,onLayoutAnimationComplete:l}=r.getProps(),h=!this.targetLayout||!nb(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...a(s,"layout"),onPlay:o,onComplete:l};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||nN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,u.WG)(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(nY),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[T];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",u.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nI);return}this.isUpdating||this.nodes.forEach(nU),this.isUpdating=!1,this.nodes.forEach(nW),this.nodes.forEach(nj),this.nodes.forEach(nL),this.clearAllSnapshots();let t=P.k.now();u.uv.delta=A(0,1e3/60,t-u.uv.timestamp),u.uv.timestamp=t,u.uv.isProcessing=!0,u.PP.update.process(u.uv),u.PP.preRender.process(u.uv),u.PP.render.process(u.uv),u.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,i_.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nO),this.sharedNodes.forEach(nX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,u.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){u.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||il(this.snapshot.measuredBox.x)||il(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=iv(),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=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nT(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&(e||iP(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);
1return t&&(n=this.removeTransform(n)),nQ((e=n).x),nQ(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return iv();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(n0))){let{scroll:t}=this.root;t&&(iE(e.x,t.offset.x),iE(e.y,t.offset.y))}return e}removeElementScroll(t){let e=iv();if(nc(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&nc(e,t),iE(e.x,s.offset.x),iE(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=iv();nc(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&ik(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iP(n.latestValues)&&ik(i,n.latestValues)}return iP(this.latestValues)&&ik(i,this.latestValues),i}removeTransform(t){let e=iv();nc(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iP(i.latestValues))continue;iw(i.latestValues)&&i.updateSnapshot();let n=iv();nc(n,i.measurePageBox()),nv(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return iP(this.latestValues)&&nv(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!==u.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(this.layout&&(n||s)){if(this.resolvedRelativeTargetAt=u.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iv(),this.relativeTargetOrigin=iv(),ip(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=iv(),this.targetWithTransforms=iv()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,o,a;this.forceRelativeParentToResolveTarget(),r=this.target,o=this.relativeTarget,a=this.relativeParent.target,id(r.x,o.x,a.x),id(r.y,o.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nc(this.target,this.layout.layoutBox),iM(this.target,this.targetDelta)):nc(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iv(),this.relativeTargetOrigin=iv(),ip(this.relativeTargetOrigin,this.target,t.target),nc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}eV.Q.value&&nE.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iw(this.parent.latestValues)||ib(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===u.uv.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=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||s))return;nc(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let s,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(s=i[a]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ik(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,iM(t,r)),n&&iP(s.latestValues)&&ik(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=iv());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(np(this.prevProjectionDelta.x,this.projectionDelta.x),np(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iu(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&nA(this.projectionDelta.x,this.prevProjectionDelta.x)&&nA(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),eV.Q.value&&nE.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ig(),this.projectionDelta=ig(),this.projectionDeltaWithTransform=ig()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=ig();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iv(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(nK));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(nG(o.x,t.x,n),nG(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m,f,g;ip(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,nH(p.x,m.x,f.x,g),nH(p.y,m.y,f.y,g),i&&(h=this.relativeTarget,c=i,nw(h.x,c.x)&&nw(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=iv()),nc(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=tm(0,i.opacity??1,nl(n)),t.opacityExit=tm(e.opacity??1,0,nh(n))):r&&(t.opacity=tm(e.opacity??1,i.opacity??1,n));for(let s=0;s<ns;s++){let r=`border${nn[s]}Radius`,o=na(e,r),a=na(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||no(o)===no(a)?(t[r]=Math.max(tm(nr(o),nr(a),n),0),(_.test(a)||_.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=tm(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,u.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=u.Gt.update(()=>{i1.hasAnimatedSinceResize=!0,V.layout++,this.currentAnimation=function(t,e,
1i){let n=(0,y.S)(0)?0:(0,m.OQ)(t);return n.start(eH("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{V.layout--},onComplete:()=>{V.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&nJ(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iv();let e=il(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=il(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nc(e,i),ik(e,s),iu(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nM),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&nD("z",t,n,this.animationValues);for(let e=0;e<nV.length;e++)nD(`rotate${nV[e]}`,t,n,this.animationValues),nD(`skew${nV[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return nk;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=ni(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ni(t?.pointerEvents)||""),this.hasProjected&&!iP(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=n.animationValues||n.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(e.transform=i(s,e.transform));let{x:r,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*r.origin}% ${100*o.origin}% 0`,n.animationValues?e.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:e.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,i3){if(void 0===s[t])continue;let{correct:i,applyTo:r,isCSSVariable:o}=i3[t],a="none"===e.transform?s[t]:i(s[t],n);if(r){let t=r.length;for(let i=0;i<t;i++)e[r[i]]=a}else o?this.options.visualElement.renderState.vars[t]=a:e[t]=a}return this.options.layoutId&&(e.pointerEvents=n===this?ni(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(nI),this.root.sharedNodes.clear()}}}function nj(t){t.updateLayout()}function nL(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?ix(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=il(n);n.min=i[t].min,n.max=n.min+s}):nJ(s,e.layoutBox,i)&&ix(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=il(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=ig();iu(o,i,e.layoutBox);let a=ig();r?iu(a,t.applyTransform(n,!0),e.measuredBox):iu(a,i,e.layoutBox);let l=!nT(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=iv();ip(o,e.layoutBox,s.layoutBox);let a=iv();ip(a,i,r.layoutBox),nb(o,a)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nF(t){eV.Q.value&&nE.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nB(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nO(t){t.clearSnapshot()}function nI(t){t.clearMeasurements()}function nU(t){t.isLayoutDirty=!1}function nW(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nN(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function n$(t){t.resolveTargetDelta()}function nz(t){t.calcProjection()}function nY(t){t.resetSkewAndRotation()}function nX(t){t.removeLeadSnapshot()}function nG(t,e,i){t.translate=tm(e.translate,0,i),t.scale=tm(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function nH(t,e,i,n){t.min=tm(e.min,i.min,n),t.max=tm(e.max,i.max,n)}function nK(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nq={duration:.45,ease:[.4,0,.1,1]},n_=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nZ=n_("applewebkit/")&&!n_("chrome/")?Math.round:w.l;function nQ(t){t.min=nZ(t.min),t.max=nZ(t.max)}function nJ(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nS(e)-nS(i)))}function n0(t){return t!==t.root&&t.scroll?.wasRoot}let n1=nR({attachResizeListener:(t,e)=>ie(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),n2={current:void 0},n5=nR({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!n2.current){let t=new n1({});t.mount(window),t.setOptions({layoutScroll:!0}),n2.current=t}return n2.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function n3(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function n9(t){return!("touch"===t.pointerType||it.x||it.y)}function n6(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&u.Gt.postRender(()=>s(e,is(e)))}class n4 extends e6{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=n3(t,i),o=t=>{if(!n9(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{n9(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}(t,(t,e)=>(n6(this.node,e,"Start"),t=>n6(this.node,t,"End"))))}unmount(){}}class n8 extends e6{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=S(ie(this.node.current,"focus",()=>this.onFocus()),ie(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let n7=(t,e)=>!!e&&(t===e||n7(t,e.parentElement)),st=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),se=new WeakSet;function si(t){return e=>{"Enter"===e.key&&t(e)}}function sn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let ss=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=si(()=>
1{if(se.has(i))return;sn(i,"down");let t=si(()=>{sn(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sn(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function sr(t){return ii(t)&&!(it.x||it.y)}function so(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&u.Gt.postRender(()=>s(e,is(e)))}class sa extends e6{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=n3(t,i),o=t=>{let n=t.currentTarget;if(!sr(t)||se.has(n))return;se.add(n);let r=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sr(t)&&se.has(n)&&(se.delete(n),"function"==typeof r&&r(t,{success:e}))},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||n7(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),t instanceof HTMLElement)&&(t.addEventListener("focus",t=>ss(t,s)),st.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(so(this.node,e,"Start"),(t,{success:e})=>so(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sl=new WeakMap,sh=new WeakMap,su=t=>{let e=sl.get(t.target);e&&e(t)},sd=t=>{t.forEach(su)},sc={some:0,all:1};class sp extends e6{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:sc[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;sh.has(i)||sh.set(i,{});let n=sh.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(sd,{root:t,...e})),n[s]}(e);return sl.set(t,i),n.observe(t),()=>{sl.delete(t),n.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;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 sm=(0,iZ.createContext)({strict:!1});var sf=i(43877);let sg=(0,iZ.createContext)({});function sy(t){return n(t.animate)||e0.some(e=>eQ(t[e]))}function sv(t){return!!(sy(t)||t.variants)}function sx(t){return Array.isArray(t)?t.join(" "):t}var sT=i(96035);let sw={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"]},sP={};for(let t in sw)sP[t]={isEnabled:e=>sw[t].some(t=>!!e[t])};let sb=Symbol.for("motionComponentSymbol");var sS=i(96303);function sA(t,{layout:e,layoutId:i}){return c.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!i3[t]||"opacity"===t)}let sM=(t,e)=>e&&"number"==typeof t?e.transform(t):t,sE={...B,transform:Math.round},sV={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,radius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,top:Z,right:Z,bottom:Z,left:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,backgroundPositionX:Z,backgroundPositionY:Z,rotate:q,rotateX:q,rotateY:q,rotateZ:q,scale:I,scaleX:I,scaleY:I,scaleZ:I,skew:q,skewX:q,skewY:q,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:O,originX:tt,originY:tt,originZ:Z,zIndex:sE,fillOpacity:O,strokeOpacity:O,numOctaves:sE},sk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sC=d.length;function sD(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(c.has(t)){o=!0;continue}if(R(t)){s[t]=i;continue}{let e=sM(i,sV[t]);t.startsWith("origin")?(a=!0,r[t]=e):n[t]=e}}
1if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<sC;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"):0===parseFloat(a))||i){let t=sM(a,sV[o]);if(!l){s=!1;let e=sk[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}let sR=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sj(t,e,i){for(let n in e)(0,y.S)(e[n])||sA(n,i)||(t[n]=e[n])}let sL=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 sF(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||sL.has(t)}let sB=t=>!sF(t);try{!function(t){t&&(sB=e=>e.startsWith("on")?!sF(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}let sO=["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 sI(t){if("string"!=typeof t||t.includes("-"));else if(sO.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let sU={offset:"stroke-dashoffset",array:"stroke-dasharray"},sW={offset:"strokeDashoffset",array:"strokeDasharray"};function sN(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,h){if(sD(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:u,style:d}=t;u.transform&&(d.transform=u.transform,delete u.transform),(d.transform||u.transformOrigin)&&(d.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),d.transform&&(d.transformBox="fill-box",delete u.transformBox),void 0!==e&&(u.x=e),void 0!==i&&(u.y=i),void 0!==n&&(u.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?sU:sW;t[r.offset]=Z.transform(-n);let o=Z.transform(e),a=Z.transform(i);t[r.array]=`${o} ${a}`}(u,s,r,o,!1)}let s$=()=>({...sR(),attrs:{}}),sz=t=>"string"==typeof t&&"svg"===t.toLowerCase();var sY=i(38094);let sX=t=>(e,i)=>{let s=(0,iZ.useContext)(sg),o=(0,iZ.useContext)(iQ),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,o){return{latestValues:function(t,e,i,s){let o={},a=s(t,{});for(let t in a)o[t]=ni(a[t]);let{initial:l,animate:h}=t,u=sy(t),d=sv(t);e&&d&&!u&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===h&&(h=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===l)?h:l;if(p&&"boolean"!=typeof p&&!n(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=r(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(o[t]=e)}for(let e in t)o[e]=t[e]}}}return o}(i,s,o,t),renderState:e()}})(t,e,s,o);return i?a():(0,sY.M)(a)};function sG(t,e,i){let{style:n}=t,s={};for(let r in n)((0,y.S)(n[r])||e.style&&(0,y.S)(e.style[r])||sA(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(s[r]=n[r]);return s}let sH={useVisualState:sX({scrapeMotionValuesFromProps:sG,createRenderState:sR})};function sK(t,e,i){let n=sG(t,e,i);for(let i in t)((0,y.S)(t[i])||(0,y.S)(e[i]))&&(n[-1!==d.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let sq={useVisualState:sX({scrapeMotionValuesFromProps:sK,createRenderState:s$})},s_=t=>e=>e.test(t),sZ=[B,Z,_,q,J,Q,{test:t=>"auto"===t,parse:t=>t}],sQ=t=>sZ.find(s_(t)),sJ=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),s0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,s1=t=>/^0[^.\s]+$/u.test(t),s2=new Set(["brightness","contrast","saturate","opacity"]);function s5(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(W)||[];if(!n)return t;let s=i.replace(n,""),r=+!!s2.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let s3=/\b([a-z-]*)\(.*?\)/gu,s9={...td,getAnimatableNone:t=>{let e=t.match(s3);return e?e.map(s5).join(" "):t}},s6={...sV,color:ti,backgroundColor:ti,outlineColor:ti,fill:ti,stroke:ti,borderColor:ti,borderTopColor:ti,borderRightColor:ti,borderBottomColor:ti,borderLeftColor:ti,filter:s9,WebkitFilter:s9},s4=t=>s6[t];function s8(t,e){let i=s4(t);return i!==s9&&(i=td),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let s7=new Set(["auto","none","0"]);class rt extends eS{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&L(n=n.trim())){let s=function t(e,i,n=1){C(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[s,r]=function(t){let e=s0.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return sJ(t)?parseFloat(t):t}return L(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!p.has(i)||2!==t.length)return;let[n,s]=t,r=sQ(n),o=sQ(s);if(r!==o)if(em(r)&&em(o))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 n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||s1(n)))&&i.push(e)}i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!s7.has(e)&&ta(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=s8(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ey[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=ey[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let re=[...sZ,ti,td],ri=t=>re.find(s_(t)),rn={current:null},rs={current:!1},rr=new WeakMap,ro=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ra{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,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=eS,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=P.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,u.Gt.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=sy(e),this.isVariantNode=sv(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==a[t]&&(0,y.S)(e)&&e.set(a[t],!1)}}mount(t){this.current=t,rr.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)),rs.current||function(){if(rs.current=!0,sT.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rn.current=t.matches;t.addListener(e),e()}else rn.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rn.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,u.WG)(this.notifyUpdate),(0,u.WG)(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 n=c.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&u.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),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 sP){let e=sP[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iv()}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<ro.length;e++){let i=ro[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
1this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if((0,y.S)(s))t.addValue(n,s);else if((0,y.S)(r))t.addValue(n,(0,m.OQ)(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,m.OQ)(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,m.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(sJ(i)||s1(i))?i=parseFloat(i):!ri(i)&&td.test(e)&&(i=s8(t,e)),this.setBaseTarget(t,(0,y.S)(i)?i.get():i)),(0,y.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=r(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,y.S)(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new i8.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rl extends ra{constructor(){super(...arguments),this.KeyframeResolver=rt}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;(0,y.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function rh(t,{style:e,vars:i},n,s){for(let r in Object.assign(t.style,e,s&&s.getProjectionStyles(n)),i)t.style.setProperty(r,i[r])}class ru extends rl{constructor(){super(...arguments),this.type="html",this.renderInstance=rh}readValueFromInstance(t,e){if(c.has(e))return ec(t,e);{let i=window.getComputedStyle(t),n=(R(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iC(t,e)}build(t,e,i){sD(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return sG(t,e,i)}}let rd=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"]);class rc extends rl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iv}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(c.has(e)){let t=s4(e);return t&&t.default||0}return e=rd.has(e)?e:x(e),t.getAttribute(e)}
1scrapeMotionValuesFromProps(t,e,i){return sK(t,e,i)}build(t,e,i){sN(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){for(let i in rh(t,e,void 0,n),e.attrs)t.setAttribute(rd.has(i)?i:x(i),e.attrs[i])}mount(t){this.isSVGTag=sz(t.tagName),super.mount(t)}}let rp=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((l={animation:{Feature:e4},exit:{Feature:e7},inView:{Feature:sp},tap:{Feature:sa},focus:{Feature:n8},hover:{Feature:n4},pan:{Feature:iK},drag:{Feature:iG,ProjectionNode:n5,MeasureLayout:i6},layout:{ProjectionNode:n5,MeasureLayout:i6}},h=(t,e)=>sI(t)?new rc(e):new ru(e,{allowProjection:t!==iZ.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:s,useRender:r,useVisualState:o,Component:a}=t;function l(t,e){var i,n,l;let h,u={...(0,iZ.useContext)(sf.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,iZ.useContext)(iJ).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:d}=u,c=function(t){let{initial:e,animate:i}=function(t,e){if(sy(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eQ(e)?e:void 0,animate:eQ(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,iZ.useContext)(sg));return(0,iZ.useMemo)(()=>({initial:e,animate:i}),[sx(e),sx(i)])}(t),p=o(t,d);if(!d&&sT.B){n=0,l=0,(0,iZ.useContext)(sm).strict;let t=function(t){let{drag:e,layout:i}=sP;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);h=t.MeasureLayout,c.visualElement=function(t,e,i,n,s){let{visualElement:r}=(0,iZ.useContext)(sg),o=(0,iZ.useContext)(sm),a=(0,iZ.useContext)(iQ),l=(0,iZ.useContext)(sf.Q).reducedMotion,h=(0,iZ.useRef)(null);n=n||o.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:r,props:i,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));let u=h.current,d=(0,iZ.useContext)(i0);u&&!u.projection&&s&&("html"===u.type||"svg"===u.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade: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:s,layout:r,alwaysMeasureLayout:!!o||a&&iR(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:h})}(h.current,i,s,d);let c=(0,iZ.useRef)(!1);(0,iZ.useInsertionEffect)(()=>{u&&c.current&&u.update(i,a)});let p=i[T],m=(0,iZ.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,sS.E)(()=>{u&&(c.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),i_.render(u.render),m.current&&u.animationState&&u.animationState.animateChanges())}),(0,iZ.useEffect)(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1))}),u}(a,p,u,s,t.ProjectionNode)}return(0,iq.jsxs)(sg.Provider,{value:c,children:[h&&c.visualElement?(0,iq.jsx)(h,{visualElement:c.visualElement,...u}):null,r(a,t,(i=c.visualElement,(0,iZ.useCallback)(t=>{t&&p.onMount&&p.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):iR(e)&&(e.current=t))},[i])),p,d,c.visualElement)]})}n&&function(t){for(let e in t)sP[e]={...sP[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!=(i=null!=(e=a.displayName)?e:a.name)?i:"",")"));let h=(0,iZ.forwardRef)(l);return h[sb]=a,h}({...sI(t)?sq:sH,preloadedFeatures:l,useRender:function(t=!1){return(e,i,n,{latestValues:s},r)=>{let o=(sI(e)?function(t,e,i,n){let s=(0,iZ.useMemo)(()=>{let i=s$();return sN(i,e,sz(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};sj(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return sj(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,iZ.useMemo)(()=>{let i=sR();return sD(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i}
1)(i,s,r,e),a=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(sB(s)||!0===i&&sF(s)||!e&&!sF(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),l=e!==iZ.Fragment?{...a,...o,ref:n}:{},{children:h}=i,u=(0,iZ.useMemo)(()=>(0,y.S)(h)?h.get():h,[h]);return(0,iZ.createElement)(e,{...l,children:u})}}(e),createVisualElement:h,Component:t})}))},88679:(t,e,i)=>{i.d(e,{N:()=>y});var n=i(54568),s=i(7620),r=i(37341),o=i(5965),a=i(18670),l=i(29269),h=i(72460);class u extends s.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,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d(t){let{children:e,isPresent:i,anchorX:r}=t,o=(0,s.useId)(),a=(0,s.useRef)(null),l=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,s.useContext)(h.Q);return(0,s.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:s,right:h}=l.current;if(i||!a.current||!t||!e)return;a.current.dataset.motionPopId=o;let u=document.createElement("style");
1return d&&(u.nonce=d),document.head.appendChild(u),u.sheet&&u.sheet.insertRule('\n          [data-motion-pop-id="'.concat(o,'"] {\n            position: absolute !important;\n            width: ').concat(t,"px !important;\n            height: ").concat(e,"px !important;\n            ").concat("left"===r?"left: ".concat(s):"right: ".concat(h),"px !important;\n            top: ").concat(n,"px !important;\n          }\n        ")),()=>{document.head.removeChild(u)}},[i]),(0,n.jsx)(u,{isPresent:i,childRef:a,sizeRef:l,children:s.cloneElement(e,{ref:a})})}let c=t=>{let{children:e,initial:i,isPresent:r,onExitComplete:a,custom:h,presenceAffectsLayout:u,mode:c,anchorX:m}=t,f=(0,o.M)(p),g=(0,s.useId)(),y=!0,v=(0,s.useMemo)(()=>(y=!1,{id:g,initial:i,isPresent:r,custom:h,onExitComplete:t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;a&&a()},register:t=>(f.set(t,!1),()=>f.delete(t))}),[r,f,a]);return u&&y&&(v={...v}),(0,s.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[r]),s.useEffect(()=>{r||f.size||!a||a()},[r]),"popLayout"===c&&(e=(0,n.jsx)(d,{isPresent:r,anchorX:m,children:e})),(0,n.jsx)(l.t.Provider,{value:v,children:e})};function p(){return new Map}var m=i(43274);let f=t=>t.key||"";function g(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}let y=t=>{let{children:e,custom:i,initial:l=!0,onExitComplete:h,presenceAffectsLayout:u=!0,mode:d="sync",propagate:p=!1,anchorX:y="left"}=t,[v,x]=(0,m.xQ)(p),T=(0,s.useMemo)(()=>g(e),[e]),w=p&&!v?[]:T.map(f),P=(0,s.useRef)(!0),b=(0,s.useRef)(T),S=(0,o.M)(()=>
1new Map),[A,M]=(0,s.useState)(T),[E,V]=(0,s.useState)(T);(0,a.E)(()=>{P.current=!1,b.current=T;for(let t=0;t<E.length;t++){let e=f(E[t]);w.includes(e)?S.delete(e):!0!==S.get(e)&&S.set(e,!1)}},[E,w.length,w.join("-")]);let k=[];if(T!==A){let t=[...T];for(let e=0;e<E.length;e++){let i=E[e],n=f(i);w.includes(n)||(t.splice(e,0,i),k.push(i))}return"wait"===d&&k.length&&(t=k),V(g(t)),M(T),null}let{forceRender:C}=(0,s.useContext)(r.L);return(0,n.jsx)(n.Fragment,{children:E.map(t=>{let e=f(t),s=(!p||!!v)&&(T===E||w.includes(e));return(0,n.jsx)(c,{isPresent:s,initial:(!P.current||!!l)&&void 0,custom:i,presenceAffectsLayout:u,mode:d,onExitComplete:s?void 0:()=>{if(!S.has(e))return;S.set(e,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(null==C||C(),V(b.current),p&&(null==x||x()),h&&h())},anchorX:y,children:t},e)})})}},89897:(t,e,i)=>{i.d(e,{OQ:()=>u});var n=i(12023),s=i(51680),r=i(53206),o=i(39672);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class h{constructor(t,e={}){this.version="12.9.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=r.k.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change?.notify(this.current),e&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=r.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=r.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,s.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new h(t,e)}},94703:(t,e,i)=>{function n(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>s,Kq:()=>n})},96035:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},96303:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(7620);let s=i(96035).B?n.useLayoutEffect:n.useEffect},96711:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},99556:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window}}]);

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.