@animateicons/react 0.3.5 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @animateicons/react
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Refined hover animations for several icons using the `transformBox: view-box` origin pattern (fixes off-pivot rotations and unreliable line draws): trash, trash-2, circle-check, house, mail, message-circle, share, shopping-bag, and wifi (+ wifi-cog, wifi-off, wifi-pen, wifi-sync).
8
+
3
9
  ## 0.3.3
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @animateicons/react
2
2
 
3
- Animated SVG icons for React. Built on motion/react.
3
+ 326 animated SVG icons for React. Built on motion/react.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@animateicons/react?color=f45b48)](https://www.npmjs.com/package/@animateicons/react)
6
6
  [![bundle](https://img.shields.io/bundlephobia/minzip/@animateicons/react)](https://bundlephobia.com/package/@animateicons/react)
@@ -0,0 +1,2 @@
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {createContext,forwardRef,useContext,useMemo,useRef,useInsertionEffect,useEffect,Fragment,createElement,useCallback,useLayoutEffect,useState}from'react';var xo=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Na=(...t)=>t.filter(Boolean).join(" ");var Et=createContext({strict:false});function go(t,e){t.indexOf(e)===-1&&t.push(e);}function yo(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1);}var G=(t,e,r)=>r>e?e:r<t?t:r;function Zt(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}var H=()=>{},R=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(H=(t,e,r)=>{!t&&typeof console<"u"&&console.warn(Zt(e,r));},R=(t,e,r)=>{if(!t)throw new Error(Zt(e,r))});var K={};var Jt=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var Qt=t=>/^0[^.\s]+$/u.test(t);function te(t){let e;return ()=>(e===void 0&&(e=t()),e)}var j=t=>t;var Tt=(...t)=>t.reduce((e,r)=>o=>r(e(o)));var ee=(t,e,r)=>{let o=e-t;return o?(r-t)/o:1};var St=class{constructor(){this.subscriptions=[];}add(e){return go(this.subscriptions,e),()=>yo(this.subscriptions,e)}notify(e,r,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](e,r,o);else for(let i=0;i<n;i++){let s=this.subscriptions[i];s&&s(e,r,o);}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0;}};var k=t=>t*1e3,L=t=>t/1e3;var re=(t,e)=>e?t*(1e3/e):0;var Vo=new Set;function rt(t,e,r){t||Vo.has(e)||(console.warn(Zt(e,r)),Vo.add(e));}var bo=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,yi=1e-7,Vi=12;function bi(t,e,r,o,n){let i,s,a=0;do s=e+(r-e)/2,i=bo(s,o,n)-t,i>0?r=s:e=s;while(Math.abs(i)>yi&&++a<Vi);return s}function at(t,e,r,o){if(t===e&&r===o)return j;let n=i=>bi(i,0,1,t,r);return i=>i===0||i===1?i:bo(n(i),e,o)}var Be=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var Le=t=>e=>1-t(1-e);var Ne=at(.33,1.53,.69,.99),Bt=Le(Ne),oe=Be(Bt);var ne=t=>t>=1?1:(t*=2)<1?.5*Bt(t):.5*(2-Math.pow(2,-10*(t-1)));var ie=t=>1-Math.sin(Math.acos(t)),Fr=Le(ie),se=Be(ie);var Ir=at(.42,0,1,1),Or=at(0,0,.58,1),ae=at(.42,0,.58,1);var kr=t=>Array.isArray(t)&&typeof t[0]!="number";var me=t=>Array.isArray(t)&&typeof t[0]=="number";var To={linear:j,easeIn:Ir,easeInOut:ae,easeOut:Or,circIn:ie,circInOut:se,circOut:Fr,backIn:Bt,backInOut:oe,backOut:Ne,anticipate:ne},Ti=t=>typeof t=="string",Ge=t=>{if(me(t)){R(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,r,o,n]=t;return at(e,r,o,n)}else if(Ti(t))return R(To[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),To[t];return t};var le=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function So(t){let e=new Set,r=new Set,o=false,n=false,i=new WeakSet,s={delta:0,timestamp:0,isProcessing:false};function a(l){i.has(l)&&(f.schedule(l),t()),l(s);}let f={schedule:(l,m=false,c=false)=>{let h=c&&o?e:r;return m&&i.add(l),h.add(l),l},cancel:l=>{r.delete(l),i.delete(l);},process:l=>{if(s=l,o){n=true;return}o=true;let m=e;e=r,r=m,e.forEach(a),e.clear(),o=false,n&&(n=false,f.process(l));}};return f}var Si=40;function Ke(t,e){let r=false,o=true,n={delta:0,timestamp:0,isProcessing:false},i=()=>r=true,s=le.reduce((y,S)=>(y[S]=So(i),y),{}),{setup:a,read:f,resolveKeyframes:l,preUpdate:m,update:c,preRender:u,render:h,postRender:p}=s,x=()=>{let y=K.useManualTiming,S=y?n.timestamp:performance.now();r=false,y||(n.delta=o?1e3/60:Math.max(Math.min(S-n.timestamp,Si),1)),n.timestamp=S,n.isProcessing=true,a.process(n),f.process(n),l.process(n),m.process(n),c.process(n),u.process(n),h.process(n),p.process(n),n.isProcessing=false,r&&e&&(o=false,t(x));},V=()=>{r=true,o=true,n.isProcessing||t(x);};return {schedule:le.reduce((y,S)=>{let M=s[S];return y[S]=(P,F=false,v=false)=>(r||V(),M.schedule(P,F,v)),y},{}),cancel:y=>{for(let S=0;S<le.length;S++)s[le[S]].cancel(y);},state:n,steps:s}}var{schedule:N,cancel:fe,state:Lt}=Ke(typeof requestAnimationFrame<"u"?requestAnimationFrame:j,true);var We;function vi(){We=void 0;}var I={now:()=>(We===void 0&&I.set(Lt.isProcessing||K.useManualTiming?Lt.timestamp:performance.now()),We),set:t=>{We=t,queueMicrotask(vi);}};var vo=t=>e=>typeof e=="string"&&e.startsWith(t),je=vo("--"),Mi=vo("var(--"),Nt=t=>Mi(t)?Ci.test(t.split("/*")[0].trim()):false,Ci=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Er(t){return typeof t!="string"?false:t.split("/*")[0].includes("var(--")}var X={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ot={...X,transform:t=>G(0,1,t)},ce={...X,default:1};var mt=t=>Math.round(t*1e5)/1e5;var Gt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mo(t){return t==null}var Co=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Kt=(t,e)=>r=>!!(typeof r=="string"&&Co.test(r)&&r.startsWith(t)||e&&!Mo(r)&&Object.prototype.hasOwnProperty.call(r,e)),ze=(t,e,r)=>o=>{if(typeof o!="string")return o;let[n,i,s,a]=o.match(Gt);return {[t]:parseFloat(n),[e]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var Ai=t=>G(0,255,t),Br={...X,transform:t=>Math.round(Ai(t))},Z={test:Kt("rgb","red"),parse:ze("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:o=1})=>"rgba("+Br.transform(t)+", "+Br.transform(e)+", "+Br.transform(r)+", "+mt(ot.transform(o))+")"};function wi(t){let e="",r="",o="",n="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),o=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),o=t.substring(3,4),n=t.substring(4,5),e+=e,r+=r,o+=o,n+=n),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var ue={test:Kt("#"),parse:wi,transform:Z.transform};var pe=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),_=pe("deg"),lt=pe("%"),d=pe("px"),Ao=pe("vh"),wo=pe("vw"),Lr={...lt,parse:t=>lt.parse(t)/100,transform:t=>lt.transform(t*100)};var ft={test:Kt("hsl","hue"),parse:ze("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:o=1})=>"hsla("+Math.round(t)+", "+lt.transform(mt(e))+", "+lt.transform(mt(r))+", "+mt(ot.transform(o))+")"};var A={test:t=>Z.test(t)||ue.test(t)||ft.test(t),parse:t=>Z.test(t)?Z.parse(t):ft.test(t)?ft.parse(t):ue.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Z.transform(t):ft.transform(t),getAnimatableNone:t=>{let e=A.parse(t);return e.alpha=0,A.transform(e)}};var Po=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Pi(t){return isNaN(t)&&typeof t=="string"&&(t.match(Gt)?.length||0)+(t.match(Po)?.length||0)>0}var Ro="number",Fo="color",Di="var",Ri="var(",Do="${}",Fi=/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 ct(t){let e=t.toString(),r=[],o={color:[],number:[],var:[]},n=[],i=0,a=e.replace(Fi,f=>(A.test(f)?(o.color.push(i),n.push(Fo),r.push(A.parse(f))):f.startsWith(Ri)?(o.var.push(i),n.push(Di),r.push(f)):(o.number.push(i),n.push(Ro),r.push(parseFloat(f))),++i,Do)).split(Do);return {values:r,split:a,indexes:o,types:n}}function Ii(t){return ct(t).values}function Io({split:t,types:e}){let r=t.length;return o=>{let n="";for(let i=0;i<r;i++)if(n+=t[i],o[i]!==void 0){let s=e[i];s===Ro?n+=mt(o[i]):s===Fo?n+=A.transform(o[i]):n+=o[i];}return n}}function Oi(t){return Io(ct(t))}var ki=t=>typeof t=="number"?0:A.test(t)?A.getAnimatableNone(t):t,Ei=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:ki(t);function Bi(t){let e=ct(t);return Io(e)(e.values.map((o,n)=>Ei(o,e.split[n])))}var O={test:Pi,parse:Ii,createTransformer:Oi,getAnimatableNone:Bi};function Nr(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Oo({hue:t,saturation:e,lightness:r,alpha:o}){t/=360,e/=100,r/=100;let n=0,i=0,s=0;if(!e)n=i=s=r;else {let a=r<.5?r*(1+e):r+e-r*e,f=2*r-a;n=Nr(f,a,t+1/3),i=Nr(f,a,t),s=Nr(f,a,t-1/3);}return {red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:o}}function Wt(t,e){return r=>r>0?e:t}var J=(t,e,r)=>t+(e-t)*r;var Gr=(t,e,r)=>{let o=t*t,n=r*(e*e-o)+o;return n<0?0:Math.sqrt(n)},Li=[ue,Z,ft],Ni=t=>Li.find(e=>e.test(t));function ko(t){let e=Ni(t);if(H(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return false;let r=e.parse(t);return e===ft&&(r=Oo(r)),r}var Kr=(t,e)=>{let r=ko(t),o=ko(e);if(!r||!o)return Wt(t,e);let n={...r};return i=>(n.red=Gr(r.red,o.red,i),n.green=Gr(r.green,o.green,i),n.blue=Gr(r.blue,o.blue,i),n.alpha=J(r.alpha,o.alpha,i),Z.transform(n))};var $e=new Set(["none","hidden"]);function Eo(t,e){return $e.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function Gi(t,e){return r=>J(t,e,r)}function He(t){return typeof t=="number"?Gi:typeof t=="string"?Nt(t)?Wt:A.test(t)?Kr:ji:Array.isArray(t)?Bo:typeof t=="object"?A.test(t)?Kr:Ki:Wt}function Bo(t,e){let r=[...t],o=r.length,n=t.map((i,s)=>He(i)(i,e[s]));return i=>{for(let s=0;s<o;s++)r[s]=n[s](i);return r}}function Ki(t,e){let r={...t,...e},o={};for(let n in r)t[n]!==void 0&&e[n]!==void 0&&(o[n]=He(t[n])(t[n],e[n]));return n=>{for(let i in o)r[i]=o[i](n);return r}}function Wi(t,e){let r=[],o={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let i=e.types[n],s=t.indexes[i][o[i]],a=t.values[s]??0;r[n]=a,o[i]++;}return r}var ji=(t,e)=>{let r=O.createTransformer(e),o=ct(t),n=ct(e);return o.indexes.var.length===n.indexes.var.length&&o.indexes.color.length===n.indexes.color.length&&o.indexes.number.length>=n.indexes.number.length?$e.has(t)&&!n.values.length||$e.has(e)&&!o.values.length?Eo(t,e):Tt(Bo(Wi(o,n),n.values),r):(H(true,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Wt(t,e))};function Ue(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?J(t,e,r):He(t)(t,e)}var Lo=t=>{let e=({timestamp:r})=>t(r);return {start:(r=true)=>N.update(e,r),stop:()=>fe(e),now:()=>Lt.isProcessing?Lt.timestamp:I.now()}};var _e=(t,e,r=10)=>{let o="",n=Math.max(Math.round(e/r),2);for(let i=0;i<n;i++)o+=Math.round(t(i/(n-1))*1e4)/1e4+", ";return `linear(${o.substring(0,o.length-2)})`};function jt(t){let e=0,r=50,o=t.next(e);for(;!o.done&&e<2e4;)e+=r,o=t.next(e);return e>=2e4?1/0:e}function No(t,e=100,r){let o=r({...t,keyframes:[0,e]}),n=Math.min(jt(o),2e4);return {type:"keyframes",ease:i=>o.next(n*i).value/e,duration:L(n)}}var w={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 zr(t,e){return t*Math.sqrt(1-e*e)}var zi=12;function $i(t,e,r){let o=r;for(let n=1;n<zi;n++)o=o-t(o)/e(o);return o}var jr=.001;function Hi({duration:t=w.duration,bounce:e=w.bounce,velocity:r=w.velocity,mass:o=w.mass}){let n,i;H(t<=k(w.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-e;s=G(w.minDamping,w.maxDamping,s),t=G(w.minDuration,w.maxDuration,L(t)),s<1?(n=l=>{let m=l*s,c=m*t,u=m-r,h=zr(l,s),p=Math.exp(-c);return jr-u/h*p},i=l=>{let c=l*s*t,u=c*r+r,h=Math.pow(s,2)*Math.pow(l,2)*t,p=Math.exp(-c),x=zr(Math.pow(l,2),s);return (-n(l)+jr>0?-1:1)*((u-h)*p)/x}):(n=l=>{let m=Math.exp(-l*t),c=(l-r)*t+1;return -jr+m*c},i=l=>{let m=Math.exp(-l*t),c=(r-l)*(t*t);return m*c});let a=5/t,f=$i(n,i,a);if(t=k(t),isNaN(f))return {stiffness:w.stiffness,damping:w.damping,duration:t};{let l=Math.pow(f,2)*o;return {stiffness:l,damping:s*2*Math.sqrt(o*l),duration:t}}}var Ui=["duration","bounce"],_i=["stiffness","damping","mass"];function Go(t,e){return e.some(r=>t[r]!==void 0)}function Yi(t){let e={velocity:w.velocity,stiffness:w.stiffness,damping:w.damping,mass:w.mass,isResolvedFromDuration:false,...t};if(!Go(t,_i)&&Go(t,Ui))if(e.velocity=0,t.visualDuration){let r=t.visualDuration,o=2*Math.PI/(r*1.2),n=o*o,i=2*G(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:w.mass,stiffness:n,damping:i};}else {let r=Hi({...t,velocity:0});e={...e,...r,mass:w.mass},e.isResolvedFromDuration=true;}return e}function zt(t=w.visualDuration,e=w.bounce){let r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:o,restDelta:n}=r,i=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],a={done:false,value:i},{stiffness:f,damping:l,mass:m,duration:c,velocity:u,isResolvedFromDuration:h}=Yi({...r,velocity:-L(r.velocity||0)}),p=u||0,x=l/(2*Math.sqrt(f*m)),V=s-i,g=L(Math.sqrt(f/m)),b=Math.abs(V)<5;o||(o=b?w.restSpeed.granular:w.restSpeed.default),n||(n=b?w.restDelta.granular:w.restDelta.default);let y,S,M,P,F,v;if(x<1)M=zr(g,x),P=(p+x*g*V)/M,y=T=>{let D=Math.exp(-x*g*T);return s-D*(P*Math.sin(M*T)+V*Math.cos(M*T))},F=x*g*P+V*M,v=x*g*V-P*M,S=T=>Math.exp(-x*g*T)*(F*Math.sin(M*T)+v*Math.cos(M*T));else if(x===1){y=D=>s-Math.exp(-g*D)*(V+(p+g*V)*D);let T=p+g*V;S=D=>Math.exp(-g*D)*(g*T*D-p);}else {let T=g*Math.sqrt(x*x-1);y=Y=>{let et=Math.exp(-x*g*Y),q=Math.min(T*Y,300);return s-et*((p+x*g*V)*Math.sinh(q)+T*V*Math.cosh(q))/T};let D=(p+x*g*V)/T,W=x*g*D-V*T,Vt=x*g*V-D*T;S=Y=>{let et=Math.exp(-x*g*Y),q=Math.min(T*Y,300);return et*(W*Math.sinh(q)+Vt*Math.cosh(q))};}let E={calculatedDuration:h&&c||null,velocity:T=>k(S(T)),next:T=>{if(!h&&x<1){let W=Math.exp(-x*g*T),Vt=Math.sin(M*T),Y=Math.cos(M*T),et=s-W*(P*Vt+V*Y),q=k(W*(F*Vt+v*Y));return a.done=Math.abs(q)<=o&&Math.abs(s-et)<=n,a.value=a.done?s:et,a}let D=y(T);if(h)a.done=T>=c;else {let W=k(S(T));a.done=Math.abs(W)<=o&&Math.abs(s-D)<=n;}return a.value=a.done?s:D,a},toString:()=>{let T=Math.min(jt(E),2e4),D=_e(W=>E.next(T*W).value,T,30);return T+"ms "+D},toTransition:()=>{}};return E}zt.applyToOptions=t=>{let e=No(t,100,zt);return t.ease=e.ease,t.duration=k(e.duration),t.type="keyframes",t};var qi=5;function Ye(t,e,r){let o=Math.max(e-qi,0);return re(r-t(o),e-o)}function de({keyframes:t,velocity:e=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:f,restDelta:l=.5,restSpeed:m}){let c=t[0],u={done:false,value:c},h=v=>a!==void 0&&v<a||f!==void 0&&v>f,p=v=>a===void 0?f:f===void 0||Math.abs(a-v)<Math.abs(f-v)?a:f,x=r*e,V=c+x,g=s===void 0?V:s(V);g!==V&&(x=g-c);let b=v=>-x*Math.exp(-v/o),y=v=>g+b(v),S=v=>{let E=b(v),T=y(v);u.done=Math.abs(E)<=l,u.value=u.done?g:T;},M,P,F=v=>{h(u.value)&&(M=v,P=zt({keyframes:[u.value,p(u.value)],velocity:Ye(y,v,u.value),damping:n,stiffness:i,restDelta:l,restSpeed:m}));};return F(0),{calculatedDuration:null,next:v=>{let E=false;return !P&&M===void 0&&(E=true,S(v),F(v)),M!==void 0&&v>=M?P.next(v-M):(!E&&S(v),u)}}}function Xi(t,e,r){let o=[],n=r||K.mix||Ue,i=t.length-1;for(let s=0;s<i;s++){let a=n(t[s],t[s+1]);if(e){let f=Array.isArray(e)?e[s]||j:e;a=Tt(f,a);}o.push(a);}return o}function Ko(t,e,{clamp:r=true,ease:o,mixer:n}={}){let i=t.length;if(R(i===e.length,"Both input and output ranges must be the same length","range-length"),i===1)return ()=>e[0];if(i===2&&e[0]===e[1])return ()=>e[1];let s=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=Xi(e,o,n),f=a.length,l=m=>{if(s&&m<t[0])return e[0];let c=0;if(f>1)for(;c<t.length-2&&!(m<t[c+1]);c++);let u=ee(t[c],t[c+1],m);return a[c](u)};return r?m=>l(G(t[0],t[i-1],m)):l}function Wo(t,e){let r=t[t.length-1];for(let o=1;o<=e;o++){let n=ee(0,e,o);t.push(J(r,1,n));}}function jo(t){let e=[0];return Wo(e,t.length-1),e}function zo(t,e){return t.map(r=>r*e)}function Zi(t,e){return t.map(()=>e||ae).splice(0,t.length-1)}function ut({duration:t=300,keyframes:e,times:r,ease:o="easeInOut"}){let n=kr(o)?o.map(Ge):Ge(o),i={done:false,value:e[0]},s=zo(r&&r.length===e.length?r:jo(e),t),a=Ko(s,e,{ease:Array.isArray(n)?n:Zi(e,n)});return {calculatedDuration:t,next:f=>(i.value=a(f),i.done=f>=t,i)}}var Ji=t=>t!==null;function pt(t,{repeat:e,repeatType:r="loop"},o,n=1){let i=t.filter(Ji),a=n<0||e&&r!=="loop"&&e%2===1?0:i.length-1;return !a||o===void 0?i[a]:o}var Qi={decay:de,inertia:de,tween:ut,keyframes:ut,spring:zt};function qe(t){typeof t.type=="string"&&(t.type=Qi[t.type]);}var dt=class{constructor(){this.updateFinished();}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e;});}notifyFinished(){this.resolve();}then(e,r){return this.finished.then(e,r)}};var ts=t=>t/100,nt=class extends dt{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=false,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:false,value:void 0},this.stop=()=>{let{motionValue:r}=this.options;r&&r.updatedAt!==I.now()&&this.tick(I.now()),this.isStopped=true,this.state!=="idle"&&(this.teardown(),this.options.onStop?.());},this.options=e,this.initAnimation(),this.play(),e.autoplay===false&&this.pause();}initAnimation(){let{options:e}=this;qe(e);let{type:r=ut,repeat:o=0,repeatDelay:n=0,repeatType:i,velocity:s=0}=e,{keyframes:a}=e,f=r||ut;process.env.NODE_ENV!=="production"&&f!==ut&&R(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),f!==ut&&typeof a[0]!="number"&&(this.mixKeyframes=Tt(ts,Ue(a[0],a[1])),a=[0,100]);let l=f({...e,keyframes:a});i==="mirror"&&(this.mirroredGenerator=f({...e,keyframes:[...a].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=jt(l));let{calculatedDuration:m}=l;this.calculatedDuration=m,this.resolvedDuration=m+n,this.totalDuration=this.resolvedDuration*(o+1)-n,this.generator=l;}updateTime(e){let r=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r;}tick(e,r=false){let{generator:o,totalDuration:n,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:f}=this;if(this.startTime===null)return o.next(0);let{delay:l=0,keyframes:m,repeat:c,repeatType:u,repeatDelay:h,type:p,onUpdate:x,finalKeyframe:V}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),r?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let y=this.currentTime,S=o;if(c){let v=Math.min(this.currentTime,n)/a,E=Math.floor(v),T=v%1;!T&&v>=1&&(T=1),T===1&&E--,E=Math.min(E,c+1),E%2&&(u==="reverse"?(T=1-T,h&&(T-=h/a)):u==="mirror"&&(S=s)),y=G(0,1,T)*a;}let M;b?(this.delayState.value=m[0],M=this.delayState):M=S.next(y),i&&!b&&(M.value=i(M.value));let{done:P}=M;!b&&f!==null&&(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return F&&p!==de&&(M.value=pt(m,this.options,V,this.speed)),x&&x(M.value),F&&this.finish(),M}then(e,r){return this.finished.then(e,r)}get duration(){return L(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+L(e)}get time(){return L(this.currentTime)}set time(e){e=k(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(false):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e));}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let r=this.generator.next(e).value;return Ye(o=>this.generator.next(o).value,e,r)}get speed(){return this.playbackSpeed}set speed(e){let r=this.playbackSpeed!==e;r&&this.driver&&this.updateTime(I.now()),this.playbackSpeed=e,r&&this.driver&&(this.time=L(this.currentTime));}play(){if(this.isStopped)return;let{driver:e=Lo,startTime:r}=this.options;this.driver||(this.driver=e(n=>this.tick(n))),this.options.onPlay?.();let o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start();}pause(){this.state="paused",this.updateTime(I.now()),this.holdTime=this.currentTime;}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null;}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.();}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.();}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null;}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0);}sample(e){return this.startTime=0,this.tick(e,true)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};function $o(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1]);}var vt=t=>t*180/Math.PI,$r=t=>{let e=vt(Math.atan2(t[1],t[0]));return Hr(e)},es={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:$r,rotateZ:$r,skewX:t=>vt(Math.atan(t[1])),skewY:t=>vt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Hr=t=>(t=t%360,t<0&&(t+=360),t),Ho=$r,Uo=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),_o=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),rs={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Uo,scaleY:_o,scale:t=>(Uo(t)+_o(t))/2,rotateX:t=>Hr(vt(Math.atan2(t[6],t[5]))),rotateY:t=>Hr(vt(Math.atan2(-t[2],t[0]))),rotateZ:Ho,rotate:Ho,skewX:t=>vt(Math.atan(t[4])),skewY:t=>vt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Xe(t){return t.includes("scale")?1:0}function Ze(t,e){if(!t||t==="none")return Xe(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,n;if(r)o=rs,n=r;else {let a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=es,n=a;}if(!n)return Xe(e);let i=o[e],s=n[1].split(",").map(os);return typeof i=="function"?i(s):s[i]}var Yo=(t,e)=>{let{transform:r="none"}=getComputedStyle(t);return Ze(r,e)};function os(t){return parseFloat(t.trim())}var Q=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],U=new Set([...Q,"pathRotation"]);var Ur=t=>t===X||t===d,ns=new Set(["x","y","z"]),is=Q.filter(t=>!ns.has(t));function qo(t){let e=[];return is.forEach(r=>{let o=t.getValue(r);o!==void 0&&(e.push([r,o.get()]),o.set(r.startsWith("scale")?1:0));}),e}var it={width:({x:t},{paddingLeft:e="0",paddingRight:r="0",boxSizing:o})=>{let n=t.max-t.min;return o==="border-box"?n:n-parseFloat(e)-parseFloat(r)},height:({y:t},{paddingTop:e="0",paddingBottom:r="0",boxSizing:o})=>{let n=t.max-t.min;return o==="border-box"?n:n-parseFloat(e)-parseFloat(r)},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})=>Ze(e,"x"),y:(t,{transform:e})=>Ze(e,"y")};it.translateX=it.x;it.translateY=it.y;var Mt=new Set,_r=false,Yr=false,qr=false;function Xo(){if(Yr){let t=Array.from(Mt).filter(o=>o.needsMeasurement),e=new Set(t.map(o=>o.element)),r=new Map;e.forEach(o=>{let n=qo(o);n.length&&(r.set(o,n),o.render());}),t.forEach(o=>o.measureInitialState()),e.forEach(o=>{o.render();let n=r.get(o);n&&n.forEach(([i,s])=>{o.getValue(i)?.set(s);});}),t.forEach(o=>o.measureEndState()),t.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY);});}Yr=false,_r=false,Mt.forEach(t=>t.complete(qr)),Mt.clear();}function Zo(){Mt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Yr=true);});}function Jo(){qr=true,Zo(),Xo(),qr=false;}var ht=class{constructor(e,r,o,n,i,s=false){this.state="pending",this.isAsync=false,this.needsMeasurement=false,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=o,this.motionValue=n,this.element=i,this.isAsync=s;}scheduleResolve(){this.state="scheduled",this.isAsync?(Mt.add(this),_r||(_r=true,N.read(Zo),N.resolveKeyframes(Xo))):(this.readKeyframes(),this.complete());}readKeyframes(){let{unresolvedKeyframes:e,name:r,element:o,motionValue:n}=this;if(e[0]===null){let i=n?.get(),s=e[e.length-1];if(i!==void 0)e[0]=i;else if(o&&r){let a=o.readValue(r,s);a!=null&&(e[0]=a);}e[0]===void 0&&(e[0]=s),n&&i===void 0&&n.set(e[0]);}$o(e);}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=false){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Mt.delete(this);}cancel(){this.state==="scheduled"&&(Mt.delete(this),this.state="pending");}resume(){this.state==="pending"&&this.scheduleResolve();}};var Qo=t=>t.startsWith("--");function Je(t,e,r){Qo(e)?t.style.setProperty(e,r):t.style[e]=r;}var tn={};function Qe(t,e){let r=te(t);return ()=>tn[e]??r()}var en=Qe(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var tr=Qe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"});}catch{return false}return true},"linearEasing");var Ct=([t,e,r,o])=>`cubic-bezier(${t}, ${e}, ${r}, ${o})`;var Xr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ct([0,.65,.55,1]),circOut:Ct([.55,0,1,.45]),backIn:Ct([.31,.01,.66,-0.59]),backOut:Ct([.33,1.53,.69,.99])};function Zr(t,e){if(t)return typeof t=="function"?tr()?_e(t,e):"ease-out":me(t)?Ct(t):Array.isArray(t)?t.map(r=>Zr(r,e)||Xr.easeOut):Xr[t]}function rn(t,e,r,{delay:o=0,duration:n=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:f}={},l=void 0){let m={[e]:r};f&&(m.offset=f);let c=Zr(a,n);Array.isArray(c)&&(m.easing=c);let u={delay:o,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return l&&(u.pseudoElement=l),t.animate(m,u)}function er(t){return typeof t=="function"&&"applyToOptions"in t}function on({type:t,...e}){return er(t)&&tr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}var $t=class extends dt{constructor(e){if(super(),this.finishedTime=null,this.isStopped=false,this.manualStartTime=null,!e)return;let{element:r,name:o,keyframes:n,pseudoElement:i,allowFlatten:s=false,finalKeyframe:a,onComplete:f}=e;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=e,R(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let l=on(e);this.animation=rn(r,o,n,l,i),l.autoplay===false&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let m=pt(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(m),Je(r,o,m),this.animation.cancel();}f?.(),this.notifyFinished();};}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished());}pause(){this.animation.pause();}complete(){this.animation.finish?.();}cancel(){try{this.animation.cancel();}catch{}}stop(){if(this.isStopped)return;this.isStopped=true;let{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel());}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.();}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return L(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+L(e)}get time(){return L(Number(this.animation.currentTime)||0)}set time(e){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=k(e),r&&this.animation.pause();}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e;}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e;}attachTimeline({timeline:e,rangeStart:r,rangeEnd:o,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&en()?(this.animation.timeline=e,r&&(this.animation.rangeStart=r),o&&(this.animation.rangeEnd=o),j):n(this)}};var nn={anticipate:ne,backInOut:oe,circInOut:se};function ss(t){return t in nn}function sn(t){typeof t.ease=="string"&&ss(t.ease)&&(t.ease=nn[t.ease]);}var Jr=10,rr=class extends $t{constructor(e){sn(e),qe(e),super(e),e.startTime!==void 0&&e.autoplay!==false&&(this.startTime=e.startTime),this.options=e;}updateMotionValue(e){let{motionValue:r,onUpdate:o,onComplete:n,element:i,...s}=this.options;if(!r)return;if(e!==void 0){r.set(e);return}let a=new nt({...s,autoplay:false}),f=Math.max(Jr,I.now()-this.startTime),l=G(0,Jr,f-Jr),m=a.sample(f).value,{name:c}=this.options;i&&c&&Je(i,c,m),r.setWithVelocity(a.sample(Math.max(0,f-l)).value,m,l),a.stop();}};var Qr=(t,e)=>e==="zIndex"?false:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(O.test(t)||t==="0")&&!t.startsWith("url("));function as(t){let e=t[0];if(t.length===1)return true;for(let r=0;r<t.length;r++)if(t[r]!==e)return true}function an(t,e,r,o){let n=t[0];if(n===null)return false;if(e==="display"||e==="visibility")return true;let i=t[t.length-1],s=Qr(n,e),a=Qr(i,e);return H(s===a,`You are trying to animate ${e} from "${n}" to "${i}". "${s?i:n}" is not an animatable value.`,"value-not-animatable"),!s||!a?false:as(t)||(r==="spring"||er(r))&&o}function he(t){t.duration=0,t.type="keyframes";}var or=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var ms=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function mn(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&ms.test(t[e]))return true;return false}var ls=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),fs=te(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ln(t){let{motionValue:e,name:r,repeatDelay:o,repeatType:n,damping:i,type:s,keyframes:a}=t,f=e?.owner?.current;if(!(f instanceof HTMLElement)&&!(f instanceof SVGElement))return false;let{onUpdate:l,transformTemplate:m}=e.owner.getProps();return fs()&&r&&(or.has(r)||ls.has(r)&&mn(a))&&(r!=="transform"||!m)&&!l&&!o&&n!=="mirror"&&i!==0&&s!=="inertia"}var cs=40,nr=class extends dt{constructor({autoplay:e=true,delay:r=0,type:o="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:f,motionValue:l,element:m,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel();},this.createdAt=I.now();let u={autoplay:e,delay:r,type:o,repeat:n,repeatDelay:i,repeatType:s,name:f,motionValue:l,element:m,...c},h=m?.KeyframeResolver||ht;this.keyframeResolver=new h(a,(p,x,V)=>this.onKeyframesResolved(p,x,u,!V),f,l,m),this.keyframeResolver?.scheduleResolve();}onKeyframesResolved(e,r,o,n){this.keyframeResolver=void 0;let{name:i,type:s,velocity:a,delay:f,isHandoff:l,onUpdate:m}=o;this.resolvedAt=I.now();let c=true;an(e,i,s,a)||(c=false,(K.instantAnimations||!f)&&m?.(pt(e,o,r)),e[0]=e[e.length-1],he(o),o.repeat=0);let h={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>cs?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:e},p=c&&!l&&ln(h),x=h.motionValue?.owner?.current,V;if(p)try{V=new rr({...h,element:x});}catch{V=new nt(h);}else V=new nt(h);V.finished.then(()=>{this.notifyFinished();}).catch(j),this.pendingTimeline&&(this.stopTimeline=V.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=V;}get finished(){return this._animation?this.animation.finished:this._finished}then(e,r){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Jo()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e;}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e;}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play();}pause(){this.animation.pause();}complete(){this.animation.complete();}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel();}};function ir(t,e,r,o=0,n=1){let i=Array.from(t).sort((l,m)=>l.sortNodePosition(m)).indexOf(e),s=t.size,a=(s-1)*o;return typeof r=="function"?r(i,s):n===1?i*o:a-i*o}var fn=30,us=t=>!isNaN(parseFloat(t)),to=class{constructor(e,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let n=I.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let i of this.dependents)i.dirty();},this.hasAnimated=false,this.setCurrent(e),this.owner=r.owner;}setCurrent(e){this.current=e,this.updatedAt=I.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=us(this.current));}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt;}onChange(e){return process.env.NODE_ENV!=="production"&&rt(false,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new St);let o=this.events[e].add(r);return e==="change"?()=>{o(),N.read(()=>{this.events.change.getSize()||this.stop();});}:o}clearListeners(){for(let e in this.events)this.events[e].clear();}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r;}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e);}setWithVelocity(e,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-o;}jump(e,r=true){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}dirty(){this.events.change?.notify(this.current);}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e);}removeDependent(e){this.dependents&&this.dependents.delete(e);}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>fn)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,fn);return re(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=true,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify();}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation();})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation();}isAnimating(){return !!this.animation}clearAnimation(){delete this.animation;}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}};function At(t,e){return new to(t,e)}function sr(t,e){if(t?.inherit&&e){let{inherit:r,...o}=t;return {...e,...o}}return t}function ar(t,e){let r=t?.[e]??t?.default??t;return r!==t?sr(r,t):r}var ps={type:"spring",stiffness:500,damping:25,restSpeed:10},ds=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),hs={type:"keyframes",duration:.8},xs={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},un=(t,{keyframes:e})=>e.length>2?hs:U.has(t)?t.startsWith("scale")?ds(e[1]):ps:xs;var gs=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function pn(t){for(let e in t)if(!gs.has(e))return true;return false}var dn=(t,e,r,o={},n,i)=>s=>{let a=ar(o,t)||{},f=a.delay||o.delay||0,{elapsed:l=0}=o;l=l-k(f);let m={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:u=>{e.set(u),a.onUpdate&&a.onUpdate(u);},onComplete:()=>{s(),a.onComplete&&a.onComplete();},name:t,motionValue:e,element:i?void 0:n};pn(a)||Object.assign(m,un(t,m)),m.duration&&(m.duration=k(m.duration)),m.repeatDelay&&(m.repeatDelay=k(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let c=false;if((m.type===false||m.duration===0&&!m.repeatDelay)&&(he(m),m.delay===0&&(c=true)),(K.instantAnimations||K.skipAnimations||n?.shouldSkipAnimations||a.skipAnimations)&&(c=true,he(m),m.delay=0),m.allowFlatten=!a.type&&!a.ease,c&&!i&&e.get()!==void 0){let u=pt(m.keyframes,a);if(u!==void 0){N.update(()=>{m.onUpdate(u),m.onComplete();});return}}return a.isSync?new nt(m):new nr(m)};var ys=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Vs(t){let e=ys.exec(t);if(!e)return [,];let[,r,o,n]=e;return [`--${r??o}`,n]}var bs=4;function eo(t,e,r=1){R(r<=bs,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,n]=Vs(t);if(!o)return;let i=window.getComputedStyle(e).getPropertyValue(o);if(i){let s=i.trim();return Jt(s)?parseFloat(s):s}return Nt(n)?eo(n,e,r+1):n}function hn(t){let e=[{},{}];return t?.values.forEach((r,o)=>{e[0][o]=r.get(),e[1][o]=r.getVelocity();}),e}function wt(t,e,r,o){if(typeof e=="function"){let[n,i]=hn(o);e=e(r!==void 0?r:t.custom,n,i);}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){let[n,i]=hn(o);e=e(r!==void 0?r:t.custom,n,i);}return e}function z(t,e,r){let o=t.getProps();return wt(o,e,r!==void 0?r:o.custom,t)}var mr=new Set(["width","height","top","left","right","bottom",...Q]);var xe=t=>Array.isArray(t);function Ts(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,At(r));}function Ss(t){return xe(t)?t[t.length-1]||0:t}function Ht(t,e){let r=z(t,e),{transitionEnd:o={},transition:n={},...i}=r||{};i={...i,...o};for(let s in i){let a=Ss(i[s]);Ts(t,s,a);}}var C=t=>!!(t&&t.getVelocity);function xn(t){return !!(C(t)&&t.add)}function gn(t,e){let r=t.getValue("willChange");if(xn(r))return r.add(e);if(!r&&K.WillChange){let o=new K.WillChange("auto");t.addValue("willChange",o),o.add(e);}}function Ut(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var yn="framerAppearId",ge="data-"+Ut(yn);function Vn(t){return t.props[ge]}function vs({protectedKeys:t,needsAnimating:e},r){let o=t.hasOwnProperty(r)&&e[r]!==true;return e[r]=false,o}function lr(t,e,{delay:r=0,transitionOverride:o,type:n}={}){let{transition:i,transitionEnd:s,...a}=e,f=t.getDefaultTransition();i=i?sr(i,f):f;let l=i?.reduceMotion,m=i?.skipAnimations;o&&(i=o);let c=[],u=n&&t.animationState&&t.animationState.getState()[n],h=i?.path;h&&h.animateVisualElement(t,a,i,r,c);for(let p in a){let x=t.getValue(p,t.latestValues[p]??null),V=a[p];if(V===void 0||u&&vs(u,p))continue;let g={delay:r,...ar(i||{},p)};m&&(g.skipAnimations=true);let b=x.get();if(b!==void 0&&!x.isAnimating()&&!Array.isArray(V)&&V===b&&!g.velocity){N.update(()=>x.set(V));continue}let y=false;if(window.MotionHandoffAnimation){let P=Vn(t);if(P){let F=window.MotionHandoffAnimation(P,p,N);F!==null&&(g.startTime=F,y=true);}}gn(t,p);let S=l??t.shouldReduceMotion;x.start(dn(p,x,V,S&&mr.has(p)?{type:false}:g,t,y));let M=x.animation;M&&c.push(M);}if(s){let p=()=>N.update(()=>{s&&Ht(t,s);});c.length?Promise.all(c).then(p):p();}return c}function fr(t,e,r={}){let o=z(t,e,r.type==="exit"?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(n=r.transitionOverride);let i=o?()=>Promise.all(lr(t,o,r)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(f=0)=>{let{delayChildren:l=0,staggerChildren:m,staggerDirection:c}=n;return Ms(t,e,f,l,m,c,r)}:()=>Promise.resolve(),{when:a}=n;if(a){let[f,l]=a==="beforeChildren"?[i,s]:[s,i];return f().then(()=>l())}else return Promise.all([i(),s(r.delay)])}function Ms(t,e,r=0,o=0,n=0,i=1,s){let a=[];for(let f of t.variantChildren)f.notify("AnimationStart",e),a.push(fr(f,e,{...s,delay:r+(typeof o=="function"?0:o)+ir(t.variantChildren,f,o,n,i)}).then(()=>f.notify("AnimationComplete",e)));return Promise.all(a)}function ye(t,e,r={}){t.notify("AnimationStart",e);let o;if(Array.isArray(e)){let n=e.map(i=>fr(t,i,r));o=Promise.all(n);}else if(typeof e=="string")o=fr(t,e,r);else {let n=typeof e=="function"?z(t,e,r.custom):e;o=Promise.all(lr(t,n,r));}return o.then(()=>{t.notify("AnimationComplete",e);})}var bn={test:t=>t==="auto",parse:t=>t};var cr=t=>e=>e.test(t);var ro=[X,d,lt,_,wo,Ao,bn],oo=t=>ro.find(cr(t));function Tn(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Qt(t):true}var Cs=new Set(["brightness","contrast","saturate","opacity"]);function As(t){let[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[o]=r.match(Gt)||[];if(!o)return t;let n=r.replace(o,""),i=Cs.has(e)?1:0;return o!==r&&(i*=100),e+"("+i+n+")"}var ws=/\b([a-z-]*)\(.*?\)/gu,Ve={...O,getAnimatableNone:t=>{let e=t.match(ws);return e?e.map(As).join(" "):t}};var be={...O,getAnimatableNone:t=>{let e=O.parse(t);return O.createTransformer(t)(e.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var no={...X,transform:Math.round};var Sn={rotate:_,pathRotation:_,rotateX:_,rotateY:_,rotateZ:_,scale:ce,scaleX:ce,scaleY:ce,scaleZ:ce,skew:_,skewX:_,skewY:_,distance:d,translateX:d,translateY:d,translateZ:d,x:d,y:d,z:d,perspective:d,transformPerspective:d,opacity:ot,originX:Lr,originY:Lr,originZ:d};var Pt={borderWidth:d,borderTopWidth:d,borderRightWidth:d,borderBottomWidth:d,borderLeftWidth:d,borderRadius:d,borderTopLeftRadius:d,borderTopRightRadius:d,borderBottomRightRadius:d,borderBottomLeftRadius:d,width:d,maxWidth:d,height:d,maxHeight:d,top:d,right:d,bottom:d,left:d,inset:d,insetBlock:d,insetBlockStart:d,insetBlockEnd:d,insetInline:d,insetInlineStart:d,insetInlineEnd:d,padding:d,paddingTop:d,paddingRight:d,paddingBottom:d,paddingLeft:d,paddingBlock:d,paddingBlockStart:d,paddingBlockEnd:d,paddingInline:d,paddingInlineStart:d,paddingInlineEnd:d,margin:d,marginTop:d,marginRight:d,marginBottom:d,marginLeft:d,marginBlock:d,marginBlockStart:d,marginBlockEnd:d,marginInline:d,marginInlineStart:d,marginInlineEnd:d,fontSize:d,backgroundPositionX:d,backgroundPositionY:d,...Sn,zIndex:no,fillOpacity:ot,strokeOpacity:ot,numOctaves:no};var Ps={...Pt,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:Ve,WebkitFilter:Ve,mask:be,WebkitMask:be},ur=t=>Ps[t];var Ds=new Set([Ve,be]);function pr(t,e){let r=ur(t);return Ds.has(r)||(r=O),r.getAnimatableNone?r.getAnimatableNone(e):void 0}var Rs=new Set(["auto","none","0"]);function vn(t,e,r){let o=0,n;for(;o<t.length&&!n;){let i=t[o];typeof i=="string"&&!Rs.has(i)&&ct(i).values.length&&(n=t[o]),o++;}if(n&&r)for(let i of e)t[i]=pr(r,n);}var dr=class extends ht{constructor(e,r,o,n,i){super(e,r,o,n,i,true);}readKeyframes(){let{unresolvedKeyframes:e,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let m=0;m<e.length;m++){let c=e[m];if(typeof c=="string"&&(c=c.trim(),Nt(c))){let u=eo(c,r.current);u!==void 0&&(e[m]=u),m===e.length-1&&(this.finalKeyframe=c);}}if(this.resolveNoneKeyframes(),!mr.has(o)||e.length!==2)return;let[n,i]=e,s=oo(n),a=oo(i),f=Er(n),l=Er(i);if(f!==l&&it[o]){this.needsMeasurement=true;return}if(s!==a)if(Ur(s)&&Ur(a))for(let m=0;m<e.length;m++){let c=e[m];typeof c=="string"&&(e[m]=parseFloat(c));}else it[o]&&(this.needsMeasurement=true);}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:r}=this,o=[];for(let n=0;n<e.length;n++)(e[n]===null||Tn(e[n]))&&o.push(n);o.length&&vn(e,o,r);}measureInitialState(){let{element:e,unresolvedKeyframes:r,name:o}=this;if(!e||!e.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=it[o](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;let n=r[r.length-1];n!==void 0&&e.getValue(o,n).jump(n,false);}measureEndState(){let{element:e,name:r,unresolvedKeyframes:o}=this;if(!e||!e.current)return;let n=e.getValue(r);n&&n.jump(this.measuredOrigin,false);let i=o.length-1,s=o[i];o[i]=it[r](e.measureViewportBox(),window.getComputedStyle(e.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,f])=>{e.getValue(a).set(f);}),this.resolveNoneKeyframes();}};var Mn=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];var Te=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var{schedule:Cn}=Ke(queueMicrotask,false);var Fs=[...ro,A,O],An=t=>Fs.find(cr(t));var wn=()=>({min:0,max:0}),hr=()=>({x:wn(),y:wn()});var Pn=new WeakMap;function st(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function tt(t){return typeof t=="string"||Array.isArray(t)}var xr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Se=["initial",...xr];function xt(t){return st(t.animate)||Se.some(e=>tt(t[e]))}function ve(t){return !!(xt(t)||t.variants)}function Dn(t,e,r){for(let o in e){let n=e[o],i=r[o];if(C(n))t.addValue(o,n);else if(C(i))t.addValue(o,At(n,{owner:t}));else if(i!==n)if(t.hasValue(o)){let s=t.getValue(o);s.liveStyle===true?s.jump(n):s.hasAnimated||s.set(n);}else {let s=t.getStaticValue(o);t.addValue(o,At(s!==void 0?s:n,{owner:t}));}}for(let o in r)e[o]===void 0&&t.removeValue(o);return e}var gt={current:null},Dt={current:false};var Is=typeof window<"u";function Me(){if(Dt.current=true,!!Is)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>gt.current=t.matches;t.addEventListener("change",e),e();}else gt.current=false;}var Rn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],gr={};function Ae(t){gr=t;}function io(){return gr}var Ce=class{scrapeMotionValuesFromProps(e,r,o){return {}}constructor({parent:e,props:r,presenceContext:o,reducedMotionConfig:n,skipAnimations:i,blockInitialAnimation:s,visualState:a},f={}){this.current=null,this.children=new Set,this.isVariantNode=false,this.isControllingVariants=false,this.shouldReduceMotion=null,this.shouldSkipAnimations=false,this.values=new Map,this.KeyframeResolver=ht,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=false,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 h=I.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,N.render(this.render,false,true));};let{latestValues:l,renderState:m}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=m,this.parent=e,this.props=r,this.presenceContext=o,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=i,this.options=f,this.blockInitialAnimation=!!s,this.isControllingVariants=xt(r),this.isVariantNode=ve(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...u}=this.scrapeMotionValuesFromProps(r,{},this);for(let h in u){let p=u[h];l[h]!==void 0&&C(p)&&p.set(l[h]);}}mount(e){if(this.hasBeenMounted)for(let r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=e,Pn.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=false:this.reducedMotionConfig==="always"?this.shouldReduceMotion=true:(Dt.current||Me(),this.shouldReduceMotion=gt.current),process.env.NODE_ENV!=="production"&&rt(this.shouldReduceMotion!==true,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??false,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=true;}unmount(){this.projection&&this.projection.unmount(),fe(this.notifyUpdate),fe(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let r=this.features[e];r&&(r.unmount(),r.isMounted=false);}this.current=null;}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e);}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e);}bindToMotionValue(e,r){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),r.accelerate&&or.has(e)&&this.current instanceof HTMLElement){let{factory:s,keyframes:a,times:f,ease:l,duration:m}=r.accelerate,c=new $t({element:this.current,name:e,keyframes:a,times:f,ease:l,duration:k(m)}),u=s(c);this.valueSubscriptions.set(e,()=>{u(),c.cancel();});return}let o=U.has(e);o&&this.onBindTransform&&this.onBindTransform();let n=r.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&N.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=true),this.scheduleRender();}),i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{n(),i&&i();});}sortNodePosition(e){return !this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in gr){let r=gr[e];if(!r)continue;let{isEnabled:o,Feature:n}=r;if(!this.features[e]&&n&&o(this.props)&&(this.features[e]=new n(this)),this.features[e]){let i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=true);}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props);}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):hr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r;}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<Rn.length;o++){let n=Rn[o];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i="on"+n,s=e[i];s&&(this.propEventSubscriptions[n]=this.on(n,s));}this.prevMotionValues=Dn(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue();}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){let o=this.values.get(e);r!==o&&(o&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get());}removeValue(e){this.values.delete(e);let r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState);}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let o=this.values.get(e);return o===void 0&&r!==void 0&&(o=At(r===null?void 0:r,{owner:this}),this.addValue(e,o)),o}readValue(e,r){let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(Jt(o)||Qt(o))?o=parseFloat(o):!An(o)&&O.test(r)&&(o=pr(e,r)),this.setBaseTarget(e,C(o)?o.get():o)),C(o)?o.get():o}setBaseTarget(e,r){this.baseTarget[e]=r;}getBaseTarget(e){let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let i=wt(this.props,r,this.presenceContext?.custom);i&&(o=i[e]);}if(r&&o!==void 0)return o;let n=this.getBaseTargetFromProps(this.props,e);return n!==void 0&&!C(n)?n:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new St),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r);}scheduleRenderMicrotask(){Cn.render(this.render);}};var _t=class extends Ce{constructor(){super(...arguments),this.KeyframeResolver=dr;}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){let o=e.style;return o?o[r]:void 0}removeValueFromRenderState(e,{vars:r,style:o}){delete r[e],delete o[e];}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;C(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`);}));}};var Rt=class{constructor(e){this.isMounted=false,this.node=e;}update(){}};function Fn({top:t,left:e,right:r,bottom:o}){return {x:{min:e,max:r},y:{min:t,max:o}}}function In(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return {top:r.y,left:r.x,bottom:o.y,right:o.x}}function On(t,e){return Fn(In(t.getBoundingClientRect(),e))}var Os={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ks=Q.length;function kn(t,e,r){let o="",n=true;for(let s=0;s<ks;s++){let a=Q[s],f=t[a];if(f===void 0)continue;let l=true;if(typeof f=="number")l=f===(a.startsWith("scale")?1:0);else {let m=parseFloat(f);l=a.startsWith("scale")?m===1:m===0;}if(!l||r){let m=Te(f,Pt[a]);if(!l){n=false;let c=Os[a]||a;o+=`${c}(${m}) `;}r&&(e[a]=m);}}let i=t.pathRotation;return i&&(n=false,o+=`rotate(${Te(i,Pt.pathRotation)}) `),o=o.trim(),r?o=r(e,n?"":o):n&&(o="none"),o}function Ft(t,e,r){let{style:o,vars:n,transformOrigin:i}=t,s=false,a=false;for(let f in e){let l=e[f];if(U.has(f)){s=true;continue}else if(je(f)){n[f]=l;continue}else {let m=Te(l,Pt[f]);f.startsWith("origin")?(a=true,i[f]=m):o[f]=m;}}if(e.transform||(s||r?o.transform=kn(e,t.transform,r):o.transform&&(o.transform="none")),a){let{originX:f="50%",originY:l="50%",originZ:m=0}=i;o.transformOrigin=`${f} ${l} ${m}`;}}function yr(t,{style:e,vars:r},o,n){let i=t.style,s;for(s in e)i[s]=e[s];n?.applyProjectionStyles(i,o);for(s in r)i.setProperty(s,r[s]);}function En(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Yt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(d.test(t))t=parseFloat(t);else return t;let r=En(t,e.target.x),o=En(t,e.target.y);return `${r}% ${o}%`}};var Bn={correct:(t,{treeScale:e,projectionDelta:r})=>{let o=t,n=O.parse(t);if(n.length>5)return o;let i=O.createTransformer(t),s=typeof n[0]!="number"?1:0,a=r.x.scale*e.x,f=r.y.scale*e.y;n[0+s]/=a,n[1+s]/=f;let l=J(a,f,.5);return typeof n[2+s]=="number"&&(n[2+s]/=l),typeof n[3+s]=="number"&&(n[3+s]/=l),i(n)}};var Ln={borderRadius:{...Yt,applyTo:[...Mn]},borderTopLeftRadius:Yt,borderTopRightRadius:Yt,borderBottomLeftRadius:Yt,borderBottomRightRadius:Yt,boxShadow:Bn};function we(t,{layout:e,layoutId:r}){return U.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Ln[t]||t==="opacity")}function It(t,e,r){let o=t.style,n=e?.style,i={};if(!o)return i;for(let s in o)(C(o[s])||n&&C(n[s])||we(s,t)||r?.getValue(s)?.liveStyle!==void 0)&&(i[s]=o[s]);return i}function Es(t){return window.getComputedStyle(t)}var Pe=class extends _t{constructor(){super(...arguments),this.type="html",this.renderInstance=yr;}mount(e){R(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e);}readValueFromInstance(e,r){if(U.has(r))return this.projection?.isProjecting?Xe(r):Yo(e,r);{let o=Es(e),n=(je(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:r}){return On(e,r)}build(e,r,o){Ft(e,r,o.transformTemplate);}scrapeMotionValuesFromProps(e,r,o){return It(e,r,o)}};var Bs={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ls={offset:"strokeDashoffset",array:"strokeDasharray"};function Nn(t,e,r=1,o=0,n=true){t.pathLength=1;let i=n?Bs:Ls;t[i.offset]=`${-o}`,t[i.array]=`${e} ${r}`;}var Ns=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function De(t,{attrX:e,attrY:r,attrScale:o,pathLength:n,pathSpacing:i=1,pathOffset:s=0,...a},f,l,m){if(Ft(t,a,l),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:u}=t;c.transform&&(u.transform=c.transform,delete c.transform),(u.transform||c.transformOrigin)&&(u.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),u.transform&&(u.transformBox=m?.transformBox??"fill-box",delete c.transformBox);for(let h of Ns)c[h]!==void 0&&(u[h]=c[h],delete c[h]);e!==void 0&&(c.x=e),r!==void 0&&(c.y=r),o!==void 0&&(c.scale=o),n!==void 0&&Nn(c,n,i,s,false);}var Vr=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"]);var Re=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Gn(t,e,r,o){yr(t,e,void 0,o);for(let n in e.attrs)t.setAttribute(Vr.has(n)?n:Ut(n),e.attrs[n]);}function Fe(t,e,r){let o=It(t,e,r);for(let n in t)if(C(t[n])||C(e[n])){let i=Q.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;o[i]=t[n];}return o}var Ie=class extends _t{constructor(){super(...arguments),this.type="svg",this.isSVGTag=false,this.measureInstanceViewportBox=hr;}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(U.has(r)){let o=ur(r);return o&&o.default||0}return r=Vr.has(r)?r:Ut(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,o){return Fe(e,r,o)}build(e,r,o){De(e,r,this.isSVGTag,o.transformTemplate,o.style);}renderInstance(e,r,o,n){Gn(e,r,o,n);}mount(e){this.isSVGTag=Re(e.tagName),super.mount(e);}};var Gs=Se.length;function so(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent?so(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}let e={};for(let r=0;r<Gs;r++){let o=Se[r],n=t.props[o];(tt(n)||n===false)&&(e[o]=n);}return e}function ao(t,e){if(!Array.isArray(e))return false;let r=e.length;if(r!==t.length)return false;for(let o=0;o<r;o++)if(e[o]!==t[o])return false;return true}var Ks=[...xr].reverse(),Ws=xr.length;function js(t){return e=>Promise.all(e.map(({animation:r,options:o})=>ye(t,r,o)))}function mo(t){let e=js(t),r=Kn(),o=true,n=false,i=l=>(m,c)=>{let u=z(t,c,l==="exit"?t.presenceContext?.custom:void 0);if(u){let{transition:h,transitionEnd:p,...x}=u;m={...m,...x,...p};}return m};function s(l){e=l(t);}function a(l){let{props:m}=t,c=so(t.parent)||{},u=[],h=new Set,p={},x=1/0;for(let g=0;g<Ws;g++){let b=Ks[g],y=r[b],S=m[b]!==void 0?m[b]:c[b],M=tt(S),P=b===l?y.isActive:null;P===false&&(x=g);let F=S===c[b]&&S!==m[b]&&M;if(F&&(o||n)&&t.manuallyAnimateOnMount&&(F=false),y.protectedKeys={...p},!y.isActive&&P===null||!S&&!y.prevProp||st(S)||typeof S=="boolean")continue;if(b==="exit"&&y.isActive&&P!==true){y.prevResolvedValues&&(p={...p,...y.prevResolvedValues});continue}let v=Wn(y.prevProp,S),E=v||b===l&&y.isActive&&!F&&M||g>x&&M,T=false,D=Array.isArray(S)?S:[S],W=D.reduce(i(b),{});P===false&&(W={});let{prevResolvedValues:Vt={}}=y,Y={...Vt,...W},et=B=>{E=true,h.has(B)&&(T=true,h.delete(B)),y.needsAnimating[B]=true;let $=t.getValue(B);$&&($.liveStyle=false);};for(let B in Y){let $=W[B],bt=Vt[B];if(p.hasOwnProperty(B))continue;let kt=false;xe($)&&xe(bt)?kt=!ao($,bt)||v:kt=$!==bt,kt?$!=null?et(B):h.add(B):$!==void 0&&h.has(B)?et(B):y.protectedKeys[B]=true;}y.prevProp=S,y.prevResolvedValues=W,y.isActive&&(p={...p,...W}),(o||n)&&t.blockInitialAnimation&&(E=false);let q=F&&v;E&&(!q||T)&&u.push(...D.map(B=>{let $={type:b};if(typeof B=="string"&&(o||n)&&!q&&t.manuallyAnimateOnMount&&t.parent){let{parent:bt}=t,kt=z(bt,B);if(bt.enteringChildren&&kt){let{delayChildren:xi}=kt.transition||{};$.delay=ir(bt.enteringChildren,t,xi);}}return {animation:B,options:$}}));}if(h.size){let g={};if(typeof m.initial!="boolean"){let b=z(t,Array.isArray(m.initial)?m.initial[0]:m.initial);b&&b.transition&&(g.transition=b.transition);}h.forEach(b=>{let y=t.getBaseTarget(b),S=t.getValue(b);S&&(S.liveStyle=true),g[b]=y??null;}),u.push({animation:g});}let V=!!u.length;return o&&(m.initial===false||m.initial===m.animate)&&!t.manuallyAnimateOnMount&&(V=false),o=false,n=false,V?e(u):Promise.resolve()}function f(l,m){if(r[l].isActive===m)return Promise.resolve();t.variantChildren?.forEach(u=>u.animationState?.setActive(l,m)),r[l].isActive=m;let c=a(l);for(let u in r)r[u].protectedKeys={};return c}return {animateChanges:a,setActive:f,setAnimateFunction:s,getState:()=>r,reset:()=>{r=Kn(),n=true;}}}function Wn(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ao(e,t):false}function Ot(t=false){return {isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Kn(){return {animate:Ot(true),whileInView:Ot(),whileHover:Ot(),whileTap:Ot(),whileDrag:Ot(),whileFocus:Ot(),exit:Ot()}}function lo(t){return C(t)?t.get():t}var jn={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"]},zn=false;function zs(){if(zn)return;let t={};for(let e in jn)t[e]={isEnabled:r=>jn[e].some(o=>!!r[o])};Ae(t),zn=true;}function br(){return zs(),io()}function Oe(t){let e=br();for(let r in t)e[r]={...e[r],...t[r]};Ae(e);}function Ys({children:t,features:e,strict:r=false}){let[,o]=useState(!fo(e)),n=useRef(void 0);if(!fo(e)){let{renderer:i,...s}=e;n.current=i,Oe(s);}return useEffect(()=>{fo(e)&&e().then(({renderer:i,...s})=>{Oe(s),n.current=i,o(true);});},[]),jsx(Et.Provider,{value:{renderer:n.current,strict:r},children:t})}function fo(t){return typeof t=="function"}var Tr=class extends Rt{constructor(e){super(e),e.animationState||(e.animationState=mo(e));}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();st(e)&&(this.unmountControls=e.subscribe(this.node));}mount(){this.updateAnimationControlsSubscription();}update(){let{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription();}unmount(){this.node.animationState.reset(),this.unmountControls?.();}};var qs=0,Sr=class extends Rt{constructor(){super(...arguments),this.id=qs++,this.isExitComplete=false;}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===o)return;if(e&&o===false){if(this.isExitComplete){let{initial:i,custom:s}=this.node.getProps();if(typeof i=="string"||typeof i=="object"&&i!==null&&!Array.isArray(i)){let a=z(this.node,i,s);if(a){let{transition:f,transitionEnd:l,...m}=a;for(let c in m)this.node.getValue(c)?.jump(m[c]);}}this.node.animationState.reset(),this.node.animationState.animateChanges();}else this.node.animationState.setActive("exit",false);this.isExitComplete=false;return}let n=this.node.animationState.setActive("exit",!e);r&&!e&&n.then(()=>{this.isExitComplete=true,r(this.id);});}mount(){let{register:e,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),e&&(this.unmount=e(this.id));}unmount(){}};var $n={animation:{Feature:Tr},exit:{Feature:Sr}};var Hn=["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 qt(t){return typeof t!="string"||t.includes("-")?false:!!(Hn.indexOf(t)>-1||/[A-Z]/u.test(t))}var Un=(t,e)=>e.isSVG??qt(t)?new Ie(e):new Pe(e,{allowProjection:t!==Fragment});var Zs={renderer:Un,...$n};function Qs(){!Dt.current&&Me();let[t]=useState(gt.current);return process.env.NODE_ENV!=="production"&&rt(t!==true,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),t}function vr(t){let e=useRef(null);return e.current===null&&(e.current=t()),e.current}var _n=typeof window<"u";var Mr=_n?useLayoutEffect:useEffect;function oa(t){t.values.forEach(e=>e.stop());}function co(t,e){[...e].reverse().forEach(o=>{let n=t.getVariant(o);n&&Ht(t,n),t.variantChildren&&t.variantChildren.forEach(i=>{co(i,e);});});}function na(t,e){if(Array.isArray(e))return co(t,e);if(typeof e=="string")return co(t,[e]);Ht(t,e);}function Yn(){let t=false,e=new Set,r={subscribe(o){return e.add(o),()=>{e.delete(o);}},start(o,n){R(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let i=[];return e.forEach(s=>{i.push(ye(s,o,{transitionOverride:n}));}),Promise.all(i)},set(o){return R(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(n=>{na(n,o);})},stop(){e.forEach(o=>{oa(o);});},mount(){return t=true,()=>{t=false,r.stop();}}};return r}function qn(){let t=vr(Yn);return Mr(t.mount,[]),t}var ia=qn;var Xn=createContext({});var Cr=createContext(null);var Ar=createContext({transformPagePoint:t=>t,isStatic:false,reducedMotion:"never"});var la=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","propagate","ignoreStrict","viewport"]);function ke(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||la.has(t)}var Zn=t=>!ke(t);function fa(t){typeof t=="function"&&(Zn=e=>e.startsWith("on")?!ke(e):t(e));}try{fa(xo("@emotion/is-prop-valid").default);}catch{}function Jn(t,e,r){let o={};for(let n in t)n==="values"&&typeof t.values=="object"||C(t[n])||(Zn(n)||r===true&&ke(n)||!e&&!ke(n)||t.draggable&&n.startsWith("onDrag"))&&(o[n]=t[n]);return o}var yt=createContext({});function Qn(t,e){if(xt(t)){let{initial:r,animate:o}=t;return {initial:r===false||tt(r)?r:void 0,animate:tt(o)?o:void 0}}return t.inherit!==false?e:{}}function ei(t){let{initial:e,animate:r}=Qn(t,useContext(yt));return useMemo(()=>({initial:e,animate:r}),[ti(e),ti(r)])}function ti(t){return Array.isArray(t)?t.join(" "):t}var Xt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function uo(t,e,r){for(let o in e)!C(e[o])&&!we(o,r)&&(t[o]=e[o]);}function ha({transformTemplate:t},e){return useMemo(()=>{let r=Xt();return Ft(r,e,t),Object.assign({},r.vars,r.style)},[e])}function xa(t,e){let r=t.style||{},o={};return uo(o,r,t),Object.assign(o,ha(t,e)),o}function ri(t,e){let r={},o=xa(t,e);return t.drag&&t.dragListener!==false&&(r.draggable=false,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=t.drag===true?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}var wr=()=>({...Xt(),attrs:{}});function oi(t,e,r,o){let n=useMemo(()=>{let i=wr();return De(i,e,Re(o),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let i={};uo(i,t.style,t),n.style={...i,...n.style};}return n}function ni(t,e,r,{latestValues:o},n,i=false,s){let f=(s??qt(t)?oi:ri)(e,o,n,t),l=Jn(e,typeof t=="string",i),m=t!==Fragment?{...l,...f,ref:r}:{},{children:c}=e,u=useMemo(()=>C(c)?c.get():c,[c]);return createElement(t,{...m,children:u})}function Ta({scrapeMotionValuesFromProps:t,createRenderState:e},r,o,n){return {latestValues:Sa(r,o,n,t),renderState:e()}}function Sa(t,e,r,o){let n={},i=o(t,{});for(let u in i)n[u]=lo(i[u]);let{initial:s,animate:a}=t,f=xt(t),l=ve(t);e&&l&&!f&&t.inherit!==false&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let m=r?r.initial===false:false;m=m||s===false;let c=m?a:s;if(c&&typeof c!="boolean"&&!st(c)){let u=Array.isArray(c)?c:[c];for(let h=0;h<u.length;h++){let p=wt(t,u[h]);if(p){let{transitionEnd:x,transition:V,...g}=p;for(let b in g){let y=g[b];if(Array.isArray(y)){let S=m?y.length-1:0;y=y[S];}y!==null&&(n[b]=y);}for(let b in x)n[b]=x[b];}}}return n}var Pr=t=>(e,r)=>{let o=useContext(yt),n=useContext(Cr),i=()=>Ta(t,e,o,n);return r?i():vr(i)};var si=Pr({scrapeMotionValuesFromProps:It,createRenderState:Xt});var ai=Pr({scrapeMotionValuesFromProps:Fe,createRenderState:wr});var mi=Symbol.for("motionComponentSymbol");function fi(t,e,r){let o=useRef(r);useInsertionEffect(()=>{o.current=r;});let n=useRef(null);return useCallback(i=>{i&&t.onMount?.(i),e&&(i?e.mount(i):e.unmount());let s=o.current;if(typeof s=="function")if(i){let a=s(i);typeof a=="function"&&(n.current=a);}else n.current?(n.current(),n.current=null):s(i);else s&&(s.current=i);},[e])}var ci=createContext({});function ui(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function pi(t,e,r,o,n,i){let{visualElement:s}=useContext(yt),a=useContext(Et),f=useContext(Cr),l=useContext(Ar),m=l.reducedMotion,c=l.skipAnimations,u=useRef(null),h=useRef(false);o=o||a.renderer,!u.current&&o&&(u.current=o(t,{visualState:e,parent:s,props:r,presenceContext:f,blockInitialAnimation:f?f.initial===false:false,reducedMotionConfig:m,skipAnimations:c,isSVG:i}),h.current&&u.current&&(u.current.manuallyAnimateOnMount=true));let p=u.current,x=useContext(ci);p&&!p.projection&&n&&(p.type==="html"||p.type==="svg")&&Pa(u.current,r,n,x);let V=useRef(false);useInsertionEffect(()=>{p&&V.current&&p.update(r,f);});let g=r[ge],b=useRef(!!g&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return Mr(()=>{h.current=true,p&&(V.current=true,window.MotionIsMounted=true,p.updateFeatures(),p.scheduleRenderMicrotask(),b.current&&p.animationState&&p.animationState.animateChanges());}),useEffect(()=>{p&&(!b.current&&p.animationState&&p.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g);}),b.current=false),p.enteringChildren=void 0);}),p}function Pa(t,e,r,o){let{layoutId:n,layout:i,drag:s,dragConstraints:a,layoutScroll:f,layoutRoot:l,layoutAnchor:m,layoutCrossfade:c}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:di(t.parent)),t.projection.setOptions({layoutId:n,layout:i,alwaysMeasureLayout:!!s||a&&ui(a),visualElement:t,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:c,layoutScroll:f,layoutRoot:l,layoutAnchor:m});}function di(t){if(t)return t.options.allowProjection!==false?t.projection:di(t.parent)}function Rr(t,{forwardMotionProps:e=false,type:r}={},o,n){o&&Oe(o);let i=r?r==="svg":qt(t),s=i?ai:si;function a(l,m){let c,u={...useContext(Ar),...l,layoutId:Ia(l)},{isStatic:h}=u,p=ei(l),x=s(l,h);if(!h&&typeof window<"u"){Oa(u,o);let V=ka(u);c=V.MeasureLayout,p.visualElement=pi(t,x,u,n,V.ProjectionNode,i);}return jsxs(yt.Provider,{value:p,children:[c&&p.visualElement?jsx(c,{visualElement:p.visualElement,...u}):null,ni(t,l,fi(x,p.visualElement,m),x,h,e,i)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;let f=forwardRef(a);return f[mi]=t,f}function Ia({layoutId:t}){let e=useContext(Xn).id;return e&&t!==void 0?e+"-"+t:t}function Oa(t,e){let r=useContext(Et).strict;if(process.env.NODE_ENV!=="production"&&e&&r){let o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?H(false,o,"lazy-strict-mode"):R(false,o,"lazy-strict-mode");}}function ka(t){let e=br(),{drag:r,layout:o}=e;if(!r&&!o)return {};let n={...r,...o};return {MeasureLayout:r?.isEnabled(t)||o?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function hi(t,e){if(typeof Proxy>"u")return Rr;let r=new Map,o=(i,s)=>Rr(i,s,t,e),n=(i,s)=>(process.env.NODE_ENV!=="production"&&rt(false,"motion() is deprecated. Use motion.create() instead."),o(i,s));return new Proxy(n,{get:(i,s)=>s==="create"?o:(r.has(s)||r.set(s,Rr(s,void 0,t,e)),r.get(s))})}var ho=hi();var hb=ho;
2
+ export{Na as a,Ys as b,Zs as c,Qs as d,ia as e,hb as f};