1import{r as t,j as e,X as n,Y as i,Z as s,$ as o,a0 as r,a1 as a,a2 as l,a3 as u,a4 as h,a5 as c,a6 as d,a7 as p,a8 as m,a9 as f,aa as g,ab as v,ac as y,ad as x,ae as P,af as T,ag as w}from"./vendor.vyxzu5h5.js";const S=t.createContext({});function b(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const A="undefined"!=typeof window,E=A?t.useLayoutEffect:t.useEffect,V=t.createContext(null);function C(t,e){-1===t.indexOf(e)&&t.push(e)}function M(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const D=(t,e,n)=>n>e?e:n<t?t:n;let R=()=>{};const k={},j=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function L(t){return"object"==typeof t&&null!==t}const B=t=>/^0[^.\s]+$/u.test(t);function F(t){let e;return()=>(void 0===e&&(e=t()),e)}const I=t=>t,O=(t,e)=>n=>e(t(n)),U=(...t)=>t.reduce(O),N=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i};let W=class{constructor(){this.subscriptions=[]}add(t){return C(this.subscriptions,t),()=>M(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const $=t=>1e3*t,Y=t=>t/1e3;function X(t,e){return e?t*(1e3/e):0}const K=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,z=1e-7,H=12;function G(t,e,n,i){if(t===e&&n===i)return I;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=K(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>z&&++a<H);return r}(e,0,1,t,n);return t=>0===t||1===t?t:K(s(t),e,i)}const q=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Z=t=>e=>1-t(1-e),_=G(.33,1.53,.69,.99),J=Z(_),Q=q(J),tt=t=>(t*=2)<1?.5*J(t):.5*(2-Math.pow(2,-10*(t-1))),et=t=>1-Math.sin(Math.acos(t)),nt=Z(et),it=q(et),st=G(.42,0,1,1),ot=G(0,0,.58,1),rt=G(.42,0,.58,1),at=t=>Array.isArray(t)&&"number"==typeof t[0],lt={linear:I,easeIn:st,easeInOut:rt,easeOut:ot,circIn:et,circInOut:it,circOut:nt,backIn:J,backInOut:Q,backOut:_,anticipate:tt},ut=t=>{if(at(t)){R(4===t.length);const[e,n,i,s]=t;return G(e,n,i,s)}return"string"==typeof t?lt[t]:t},ht=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ct(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=ht.reduce(((t,e)=>(t[e]=function(t,e){let n=new Set,i=new Set,s=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(e){r.has(e)&&(u.schedule(e),t()),e(a)}const u={schedule:(t,e=!1,o=!1)=>{const a=o&&s?n:i;return e&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>
1{a=t,s?o=!0:(s=!0,[n,i]=[i,n],n.forEach(l),n.clear(),s=!1,o&&(o=!1,u.process(t)))}};return u}(o),t)),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=r,f=()=>{const o=k.useManualTiming?s.timestamp:performance.now();n=!1,k.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(f))};return{schedule:ht.reduce(((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(f)),a.schedule(e,o,r)),e}),{}),cancel:t=>{for(let e=0;e<ht.length;e++)r[ht[e]].cancel(t)},state:s,steps:r}}const{schedule:dt,cancel:pt,state:mt,steps:ft}=ct("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:I,!0);let gt;function vt(){gt=void 0}const yt={now:()=>(void 0===gt&&yt.set(mt.isProcessing||k.useManualTiming?mt.timestamp:performance.now()),gt),set:t=>{gt=t,queueMicrotask(vt)}},xt=t=>e=>"string"==typeof e&&e.startsWith(t),Pt=xt("--"),Tt=xt("var(--"),wt=t=>!!Tt(t)&&St.test(t.split("/*")[0].trim()),St=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},At={...bt,transform:t=>D(0,1,t)},Et={...bt,default:1},Vt=t=>Math.round(1e5*t)/1e5,Ct=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Mt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dt=(t,e)=>n=>Boolean("string"==typeof n&&Mt.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),Rt=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(Ct);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}},kt={...bt,transform:t=>Math.round((t=>D(0,255,t))(t))},jt={test:Dt("rgb","red"),parse:Rt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+kt.transform(t)+", "+kt.transform(e)+", "+kt.transform(n)+", "+Vt(At.transform(i))+")"};const Lt={test:Dt("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:jt.transform},Bt=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Ft=Bt("deg"),It=Bt("%"),Ot=Bt("px"),Ut=Bt("vh"),Nt=Bt("vw"),Wt=(()=>({...It,parse:t=>It.parse(t)/100,transform:t=>It.transform(100*t)}))(),$t={test:Dt("hsl","hue"),parse:Rt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+It.transform(Vt(e))+", "+It.transform(Vt(n))+", "+Vt(At.transform(i))+")"},Yt={test:t=>jt.test(t)||Lt.test(t)||$t.test(t),parse:t=>jt.test(t)?jt.parse(t):$t.test(t)?$t.parse(t):Lt.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?jt.transform(t):$t.transform(t),getAnimatableNone:t=>{const e=Yt.parse(t);return e.alpha=0,Yt.transform(e)}},Xt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const Kt="number",zt="color",Ht="var",Gt="var(",qt="${}",Zt=/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 _t(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(Zt,(t=>(Yt.test(t)?(i.color.push(o),s.push(zt),n.push(Yt.parse(t))):t.startsWith(Gt)?(i.var.push(o),s.push(Ht),n.push(t)):(i.number.push(o),s.push(Kt),n.push(parseFloat(t))),++o,qt))).split(qt);return{values:n,split:r,indexes:i,types:s}}function Jt(t){return _t(t).values}function Qt(t){const{split:e,types:n}=_t(t),i=e.length;return t=>{let s="";for(let o=0;o<i;o++)if(s+=e[o],void 0!==t[o]){const e=n[o];s+=e===Kt?Vt(t[o]):e===zt?Yt.transform(t[o]):t[o]}return s}}const te=t=>"number"==typeof t?0:Yt.test(t)?Yt.getAnimatableNone(t):t;const ee={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(Ct))?void 0:e.length)||0)+((null==(n=t.match(Xt))?void 0:n.length)||0)>0},parse:Jt,createTransformer:Qt,getAnimatableNone:function(t){const e=Jt(t);return Qt(t)(e.map(te))}};function ne(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ie(t,e){return n=>n>0?e:t}const se=(t,e,n)=>t+(e-t)*n,oe=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},re=[Lt,jt,$t];function ae(t){const e=(n=t,re.find((t=>t.test(n))));var n;if(!Boolean(e))return!1;let i=e.parse(t);return e===$t&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}
1){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=ne(a,i,t+1/3),o=ne(a,i,t),r=ne(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}const le=(t,e)=>{const n=ae(t),i=ae(e);if(!n||!i)return ie(t,e);const s={...n};return t=>(s.red=oe(n.red,i.red,t),s.green=oe(n.green,i.green,t),s.blue=oe(n.blue,i.blue,t),s.alpha=se(n.alpha,i.alpha,t),jt.transform(s))},ue=new Set(["none","hidden"]);function he(t,e){return n=>se(t,e,n)}function ce(t){return"number"==typeof t?he:"string"==typeof t?wt(t)?ie:Yt.test(t)?le:me:Array.isArray(t)?de:"object"==typeof t?Yt.test(t)?le:pe:ie}function de(t,e){const n=[...t],i=n.length,s=t.map(((t,n)=>ce(t)(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function pe(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=ce(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const me=(t,e)=>{const n=ee.createTransformer(e),i=_t(t),s=_t(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?ue.has(t)&&!s.values.length||ue.has(e)&&!i.values.length?function(t,e){return ue.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):U(de(function(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],r=t.indexes[o][i[o]],a=t.values[r]??0;n[s]=a,i[o]++}return n}(i,s),s.values),n):ie(t,e)};function fe(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return se(t,e,n);return ce(t)(t,e)}const ge=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>dt.update(e,t),stop:()=>pt(e),now:()=>mt.isProcessing?mt.timestamp:yt.now()}},ve=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let o=0;o<s;o++)i+=Math.round(1e4*t(o/(s-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},ye=2e4;function xe(t){let e=0;let n=t.next(e);for(;!n.done&&e<ye;)e+=50,n=t.next(e);return e>=ye?1/0:e}const Pe=5;function Te(t,e,n){const i=Math.max(e-Pe,0);return X(n-t(i),e-i)}const we={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},Se=.001;function be({duration:t=we.duration,bounce:e=we.bounce,velocity:n=we.velocity,mass:i=we.mass}){let s,o,r=1-e;r=D(we.minDamping,we.maxDamping,r),t=D(we.minDuration,we.maxDuration,Y(t)),r<1?(s=e=>{const i=e*r,s=i*t,o=i-n,a=Ee(e,r),l=Math.exp(-s);return Se-o/a*l},o=e=>{const i=e*r*t,o=i*n+n,a=Math.pow(r,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=Ee(Math.pow(e,2),r);return(-s(e)+Se>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let s=1;s<Ae;s++)i-=t(i)/e(i);return i}(s,o,5/t);if(t=$(t),isNaN(a))return{stiffness:we.stiffness,damping:we.damping,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*r*Math.sqrt(i*e),duration:t}}}const Ae=12;function Ee(t,e){return t*Math.sqrt(1-e*e)}const Ve=["duration","bounce"],Ce=["stiffness","damping","mass"];function Me(t,e){return e.some((e=>void 0!==t[e]))}function De(t=we.visualDuration,e=we.bounce){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:h,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:we.velocity,stiffness:we.stiffness,damping:we.damping,mass:we.mass,isResolvedFromDuration:!1,...t};if(!Me(t,Ce)&&Me(t,Ve))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*D(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:we.mass,stiffness:s,damping:o}}else{const n=be(t);e={...e,...n,mass:we.mass},e.isResolvedFromDuration=!0}return e}({...n,velocity:-Y(n.velocity||0)}),m=d||0,f=u/(2*Math.sqrt(l*h)),g=r-o,v=Y(Math.sqrt(l/h)),y=Math.abs(g)<5;let x;if(i||(i=y?we.restSpeed.granular:we.restSpeed.default),s||(s=y?we.restDelta.granular:we.restDelta.default),f<1){const t=Ee(v,f);x=e=>{const n=Math.exp(-f*v*e);return r-n*((m+f*v*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===f)x=t=>r-Math.exp(-v*t)*(g+(m+v*g)*t);else{const t=v*Math.sqrt(f*f-1);
1x=e=>{const n=Math.exp(-f*v*e),i=Math.min(t*e,300);return r-n*((m+f*v*g)*Math.sinh(i)+t*g*Math.cosh(i))/t}}const P={calculatedDuration:p&&c||null,next:t=>{const e=x(t);if(p)a.done=t>=c;else{let n=0===t?m:0;f<1&&(n=0===t?$(m):Te(x,t,e));const o=Math.abs(n)<=i,l=Math.abs(r-e)<=s;a.done=o&&l}return a.value=a.done?r:e,a},toString:()=>{const t=Math.min(xe(P),ye),e=ve((e=>P.next(t*e).value),t,30);return t+"ms "+e},toTransition:()=>{}};return P}function Re({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:h}){const c=t[0],d={done:!1,value:c},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=c+m,g=void 0===r?f:r(f);g!==f&&(m=g-c);const v=t=>-m*Math.exp(-t/i),y=t=>g+v(t),x=t=>{const e=v(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?g:n};let P,T;const w=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(P=t,T=De({keyframes:[d.value,p(d.value)],velocity:Te(y,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:h}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return T||void 0!==P||(e=!0,x(t),w(t)),void 0!==P&&t>=P?T.next(t-P):(!e&&x(t),d)}}}function ke(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(R(o===e.length),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],s=n||k.mix||fe,o=t.length-1;for(let r=0;r<o;r++){let n=s(t[r],t[r+1]);if(e){const t=Array.isArray(e)?e[r]||I:e;n=U(t,n)}i.push(n)}return i}(e,i,s),l=a.length,u=n=>{if(r&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=N(t[i],t[i+1],n);return a[i](s)};return n?e=>u(D(t[0],t[o-1],e)):u}function je(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=N(0,e,i);t.push(se(n,1,s))}}(e,t.length-1),e}function Le({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(ut):ut(i),o={done:!1,value:e[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:je(e),t),a=ke(r,e,{ease:Array.isArray(s)?s:(l=e,u=s,l.map((()=>u||rt)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}De.applyToOptions=t=>{const e=function(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(xe(i),ye);return{type:"keyframes",ease:t=>i.next(s*t).value/e,duration:Y(s)}}(t,100,De);return t.ease=e.ease,t.duration=$(e.duration),t.type="keyframes",t};const Be=t=>null!==t;function Fe(t,{repeat:e,repeatType:n="loop"},i,s=1){const o=t.filter(Be),r=s<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return r&&void 0!==i?i:o[r]}const Ie={decay:Re,inertia:Re,tween:Le,keyframes:Le,spring:De};function Oe(t){"string"==typeof t.type&&(t.type=Ie[t.type])}class Ue{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise((t=>{this.resolve=t}))}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const Ne=t=>t/100;class We extends Ue{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var t,e;const{motionValue:n}=this.options;n&&n.updatedAt!==yt.now()&&this.tick(yt.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(e=(t=this.options).onStop)||e.call(t))},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;Oe(t);const{type:e=Le,repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:r}=t;const a=e||Le;a!==Le&&"number"!=typeof r[0]&&(this.mixKeyframes=U(Ne,fe(r[0],r[1])),r=[0,100]);const l=a({...t,keyframes:r});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...r].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=xe(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:r,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let y=this.currentTime,x=n;if(h){const t=Math.min(this.currentTime,i)/r;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,h+1);Boolean(e%2)&&("reverse"===c?(n=1-n,d&&(n-=d/r)):"mirror"===c&&(x=o)),y=D(0,1,n)*r}const P=v?{done:!1,value:u[0]}:x.next(y);s&&(P.value=s(P.value));let{done:T}=P;v||null===a||(T=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return w&&p!==Re&&(P.value=Fe(u,this.options,f,this.speed)),m&&m(P.value),w&&this.finish(),P}then(t,e){return this.finished.then(t,e)}get duration(){return Y(this.calculatedDuration)}get time(){return Y(this.currentTime)}set time(t){var e;t=$(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),null==(e=this.driver)||e.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(yt.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=Y(this.currentTime))}play(){var t,e;if(this.isStopped)return;const{driver:n=ge,startTime:i}=this.options;this.driver||(this.driver=n((t=>this.tick(t)))),null==(e=(t=this.options).onPlay)||e.call(t);const s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),"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(yt.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(e=(t=this.options).onComplete)||e.call(t)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(e=(t=this.options).onCancel)||e.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),t.observe(this)}}const $e=t=>180*t/Math.PI,Ye=t=>{const e=$e(Math.atan2(t[1],t[0]));return Ke(e)},Xe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ye,rotateZ:Ye,skewX:t=>$e(Math.atan(t[1])),skewY:t=>$e(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ke=t=>((t%=360)<0&&(t+=360),t),ze=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),He=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ge={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ze,scaleY:He,scale:t=>(ze(t)+He(t))/2,rotateX:t=>Ke($e(Math.atan2(t[6],t[5]))),rotateY:t=>Ke($e(Math.atan2(-t[2],t[0]))),rotateZ:Ye,rotate:Ye,skewX:t=>$e(Math.atan(t[4])),skewY:t=>$e(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function qe(t){return t.includes("scale")?1:0}function Ze(t,e){if(!t||"none"===t)return qe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=Ge,s=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Xe,s=e}if(!s)return qe(e);const o=i[e],r=s[1].split(",").map(_e);return"function"==typeof o?o(r):r[o]}function _e(t){return parseFloat(t.trim())}const Je=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qe=(()=>new Set(Je))(),tn=t=>t===bt||t===Ot,en=new Set(["x","y","z"]),nn=Je.filter((t=>!en.has(t)));const sn={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ze(e,"x"),y:(t,{transform:e})=>Ze(e,"y")};sn.translateX=sn.x,sn.translateY=sn.y;const on=new Set;let rn=!1,an=!1,ln=!1;function un(){if(an){const t=Array.from(on).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return nn.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var i;null==(i=t.getValue(e))||i.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}an=!1,rn=!1,on.forEach((t=>t.complete(ln))),on.clear()}function hn(){on.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(an=!0)}))}let cn=class{constructor(t,e,n,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(on.add(this),rn||(rn=!0,dt.read(hn),dt.resolveKeyframes(un))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){const s=null==i?void 0:i.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),on.delete(this)}cancel(){"scheduled"===this.state&&(on.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}};const dn=F((()=>void 0!==window.ScrollTimeline)),pn={};function mn(t,e){const n=F(t);return()=>pn[e]??n()}const fn=mn((()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),"linearEasing"),gn=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,vn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gn([0,.65,.55,1]),circOut:gn([.55,0,1,.45]),backIn:gn([.31,.01,.66,-.59]),backOut:gn([.33,1.53,.69,.99])};function yn(t,e){return t?"function"==typeof t?fn()?ve(t,e):"ease-out":at(t)?gn(t):Array.isArray(t)?t.map((t=>yn(t,e)||vn.easeOut)):vn[t]:void 0}function xn(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},u=void 0){const h={[e]:n};l&&(h.offset=l);const c=yn(a,s);Array.isArray(c)&&(h.easing=c);const d={delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"};u&&(d.pseudoElement=u);return t.animate(h,d)}function Pn(t){return"function"==typeof t&&"applyToOptions"in t}class Tn extends Ue{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:r,onComplete:a}=t;this.isPseudoElement=Boolean(s),this.allowFlatten=o,this.options=t,R("string"!=typeof t.type);const l=function({type:t,...e}){return Pn(t)&&fn()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=xn(e,n,i,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const t=Fe(i,this.options,r,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,n){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,n):t.style[e]=n}(e,n,t),this.animation.cancel()}null==a||a(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;null==(e=(t=this.animation).finish)||e.call(t)}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,e;this.isPseudoElement||null==(e=(t=this.animation).commitStyles)||e.call(t)}get duration(){var t,e;const n=(null==(e=null==(t=this.animation.effect)?void 0:t.getComputedTiming)?void 0:e.call(t).duration)||0;return Y(Number(n))}get time(){return Y(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=$(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}){var n;return this.allowFlatten&&(null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&dn()?(this.animation.timeline=t,I):e(this)}}const wn={anticipate:tt,backInOut:Q,circInOut:it};function Sn(t){"string"==typeof t.ease&&t.ease in wn&&(t.ease=wn[t.ease])}class bn extends Tn{constructor(t){Sn(t),Oe(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:i,element:s,...o}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const r=new We({...o,autoplay:!1}),a=$(this.finishedTime??this.time);e.setWithVelocity(r.sample(a-10).value,r.sample(a).value,10),r.stop()}}const An=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!ee.test(t)&&"0"!==t||t.startsWith("url(")));function En(t){t.duration=0,t.type}const Vn=new Set(["opacity","clipPath","filter","transform"]),Cn=F((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class Mn extends Ue{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:r,name:a,motionValue:l,element:u,...h}){var c;super(),this.stop=()=>{var t,e;this._animation&&(this._animation.stop(),null==(t=this.stopTimeline)||t.call(this)),null==(e=this.keyframeResolver)||e.cancel()},this.createdAt=yt.now();const d={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:
1o,name:a,motionValue:l,element:u,...h},p=(null==u?void 0:u.KeyframeResolver)||cn;this.keyframeResolver=new p(r,((t,e,n)=>this.onKeyframesResolved(t,e,d,!n)),a,l,u),null==(c=this.keyframeResolver)||c.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:r,delay:a,isHandoff:l,onUpdate:u}=n;this.resolvedAt=yt.now(),function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=An(s,e),a=An(o,e);return!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||Pn(n))&&i)}(t,s,o,r)||(!k.instantAnimations&&a||null==u||u(Fe(t,n,e)),t[0]=t[t.length-1],En(n),n.repeat=0);const h={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},c=!l&&function(t){var e;const{motionValue:n,name:i,repeatDelay:s,repeatType:o,damping:r,type:a}=t;if(!((null==(e=null==n?void 0:n.owner)?void 0:e.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return Cn()&&i&&Vn.has(i)&&("transform"!==i||!u)&&!l&&!s&&"mirror"!==o&&0!==r&&"inertia"!==a}(h)?new bn({...h,element:h.motionValue.owner.current}):new We(h);c.finished.then((()=>this.notifyFinished())).catch(I),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(){var t;return this._animation||(null==(t=this.keyframeResolver)||t.resume(),ln=!0,hn(),un(),ln=!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(){var t;this._animation&&this.animation.cancel(),null==(t=this.keyframeResolver)||t.cancel()}}const Dn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rn(t,e,n=1){const[i,s]=function(t){const e=Dn.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return j(t)?parseFloat(t):t}return wt(s)?Rn(s,e,n+1):s}function kn(t,e){return(null==t?void 0:t[e])??(null==t?void 0:t.default)??t}const jn=new Set(["width","height","top","left","right","bottom",...Je]),Ln=t=>e=>e.test(t),Bn=[bt,Ot,It,Ft,Nt,Ut,{test:t=>"auto"===t,parse:t=>t}],Fn=t=>Bn.find(Ln(t));const In=new Set(["brightness","contrast","saturate","opacity"]);function On(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(Ct)||[];if(!i)return t;const s=n.replace(i,"");let o=In.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const Un=/\b([a-z-]*)\(.*?\)/gu,Nn={...ee,getAnimatableNone:t=>{const e=t.match(Un);return e?e.map(On).join(" "):t}},Wn={...bt,transform:Math.round},$n={borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,backgroundPositionX:Ot,backgroundPositionY:Ot,...{rotate:Ft,rotateX:Ft,rotateY:Ft,rotateZ:Ft,scale:Et,scaleX:Et,scaleY:Et,scaleZ:Et,skew:Ft,skewX:Ft,skewY:Ft,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:At,originX:Wt,originY:Wt,originZ:Ot},zIndex:Wn,fillOpacity:At,strokeOpacity:At,numOctaves:Wn},Yn={...$n,color:Yt,backgroundColor:Yt,outlineColor:Yt,fill:Yt,stroke:Yt,borderColor:Yt,borderTopColor:Yt,borderRightColor:Yt,borderBottomColor:Yt,borderLeftColor:Yt,filter:Nn,WebkitFilter:Nn},Xn=t=>Yn[t];function Kn(t,e){let n=Xn(t);return n!==Nn&&(n=ee),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
1const zn=new Set(["auto","none","0"]);let Hn=class extends cn{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),wt(n))){const i=Rn(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!jn.has(n)||2!==t.length)return;const[i,s]=t,o=Fn(i),r=Fn(s);if(o!==r)if(tn(o)&&tn(r))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else sn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let s=0;s<t.length;s++)(null===t[s]||("number"==typeof(i=t[s])?0===i:null===i||"none"===i||"0"===i||B(i)))&&n.push(s);var i;n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!zn.has(e)&&_t(e).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Kn(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=sn[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h((([t,n])=>{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}};const Gn=(t,e)=>e&&"number"==typeof t?e.transform(t):t;function qn(t){return L(t)&&"offsetHeight"in t}let Zn=class{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{var e;const n=yt.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(null==(e=this.events.change)||e.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=yt.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}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 W);const n=this.events[t].add(e);return"change"===t?()=>{n(),dt.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;null==(t=this.events.change)||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=yt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return X(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(){var t,e;null==(t=this.dependents)||t.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function _n(t,e){return new Zn(t,e)}const{schedule:Jn}=ct(queueMicrotask,!1),Qn={x:!1,y:!1};function ti(){return Qn.x||Qn.y}function ei(t,e){const n=function(t,e,n){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document;const i=(null==n?void 0:n[t])??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function ni(t){return!("touch"===t.pointerType||ti())}const ii=(t,e)=>!!e&&(t===e||ii(t,e.parentElement)),si=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,oi=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const ri=new WeakSet;function ai(t){return e=>{"Enter"===e.key&&t(e)}}function li(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function ui(t){return si(t)&&!ti()}function hi(t,e,n={}){const[i,s,o]=ei(t,n),r=t=>{const i=t.currentTarget;if(!ui(t))return;ri.add(i);const o=e(i,t),r=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),ri.has(i)&&ri.delete(i),ui(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{r(t,i===window||i===document||n.useGlobalTarget||ii(i,t.target))},l=t=>{r(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return i.forEach((t=>{var e;(n.useGlobalTarget?window:t).addEventListener("pointerdown",r,s),qn(t)&&(t.addEventListener("focus",(t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=ai((()=>
1{if(ri.has(n))return;li(n,"down");const t=ai((()=>{li(n,"up")}));n.addEventListener("keyup",t,e),n.addEventListener("blur",(()=>li(n,"cancel")),e)}));n.addEventListener("keydown",i,e),n.addEventListener("blur",(()=>n.removeEventListener("keydown",i)),e)})(t,s))),e=t,oi.has(e.tagName)||-1!==e.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))})),o}function ci(t){return L(t)&&"ownerSVGElement"in t}const di=t=>Boolean(t&&t.getVelocity),pi=[...Bn,Yt,ee],mi=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});let fi=class extends t.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=e.offsetParent,n=qn(t)&&t.offsetWidth||0,i=this.props.sizeRef.current;i.height=e.offsetHeight||0,i.width=e.offsetWidth||0,i.top=e.offsetTop,i.left=e.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}};function gi({children:n,isPresent:i,anchorX:s,root:o}){const r=t.useId(),a=t.useRef(null),l=t.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=t.useContext(mi);return t.useInsertionEffect((()=>{const{width:t,height:e,top:n,left:h,right:c}=l.current;if(i||!a.current||!t||!e)return;const d="left"===s?`left: ${h}`:`right: ${c}`;a.current.dataset.motionPopId=r;const p=document.createElement("style");u&&(p.nonce=u);const m=o??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${e}px !important;\n ${d}px !important;\n top: ${n}px !important;\n }\n `),()=>{m.contains(p)&&m.removeChild(p)}}),[i]),e.jsx(fi,{isPresent:i,childRef:a,sizeRef:l,children:t.cloneElement(n,{ref:a})})}const vi=({children:n,initial:i,isPresent:s,onExitComplete:o,custom:r,presenceAffectsLayout:a,mode:l,anchorX:u,root:h})=>{const c=b(yi),d=t.useId();let p=!0,m=t.useMemo((()=>(p=!1,{id:d,initial:i,isPresent:s,custom:r,onExitComplete:t=>{c.set(t,!0);for(const e of c.values())if(!e)return;o&&o()},register:t=>(c.set(t,!1),()=>c.delete(t))})),[s,c,o]);return a&&p&&(m={...m}),t.useMemo((()=>{c.forEach(((t,e)=>c.set(e,!1)))}),[s]),t.useEffect((()=>{!s&&!c.size&&o&&o()}),[s]),"popLayout"===l&&(n=e.jsx(gi,{isPresent:s,anchorX:u,root:h,children:n})),e.jsx(V.Provider,{value:m,children:n})};function yi(){return new Map}function xi(e=!0){const n=t.useContext(V);if(null===n)return[!0,null];const{isPresent:i,onExitComplete:s,register:o}=n,r=t.useId();t.useEffect((()=>{if(e)return o(r)}),[e]);const a=t.useCallback((()=>e&&s&&s(r)),[r,s,e]);return!i&&s?[!1,a]:[!0]}const Pi=t=>t.key||"";function Ti(e){const n=[];return t.Children.forEach(e,(e=>{t.isValidElement(e)&&n.push(e)})),n}const wi=({children:n,custom:i,initial:s=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:a="sync",propagate:l=!1,anchorX:u="left",root:h})=>{const[c,d]=xi(l),p=t.useMemo((()=>Ti(n)),[n]),m=l&&!c?[]:p.map(Pi),f=t.useRef(!0),g=t.useRef(p),v=b((()=>new Map)),[y,x]=t.useState(p),[P,T]=t.useState(p);E((()=>{f.current=!1,g.current=p;for(let t=0;t<P.length;t++){const e=Pi(P[t]);m.includes(e)?v.delete(e):!0!==v.get(e)&&v.set(e,!1)}}),[P,m.length,m.join("-")]);const w=[];if(p!==y){let t=[...p];for(let e=0;e<P.length;e++){const n=P[e],i=Pi(n);m.includes(i)||(t.splice(e,0,n),w.push(n))}return"wait"===a&&w.length&&(t=w),T(Ti(t)),x(p),null}const{forceRender:A}=t.useContext(S);return e.jsx(e.Fragment,{children:P.map((t=>{const n=Pi(t),y=!(l&&!c)&&(p===P||m.includes(n));return e.jsx(vi,{isPresent:y,initial:!(f.current&&!s)&&void 0,custom:i,presenceAffectsLayout:r,mode:a,root:h,onExitComplete:y?void 0:()=>{if(!v.has(n))return;v.set(n,!0);let t=!0;v.forEach((e=>{e||(t=!1)})),t&&(null==A||A(),T(g.current),l&&(null==d||d()),o&&o())},anchorX:u,children:t},n)}))})},Si=t.createContext({strict:!1}),bi={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"]},Ai={};for(const Nm in bi)Ai[Nm]={isEnabled:t=>bi[Nm].some((e=>!!t[e]))};const Ei=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 Vi(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ei.has(t)}let Ci=t=>!Vi(t);try{"function"==typeof(Mi=require("@emotion/is-prop-valid").default)&&(Ci=t=>t.startsWith("on")?!Vi(t):Mi(t))}catch{}var Mi;const Di=t.createContext({});function Ri(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ki(t){return"string"==typeof t||Array.isArray(t)}const ji=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Li=["initial",...ji];function Bi(t){return Ri(t.animate)||Li.some((e=>ki(t[e])))}function Fi(t){return Boolean(Bi(t)||t.variants)}function Ii(e){const{initial:n,animate:i}=function(t,e){if(Bi(t)){const{initial:e,animate:n}=t;return{initial:!1===e||ki(e)?e:void 0,animate:ki(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(Di));return t.useMemo((()=>({initial:n,animate:i})),[Oi(n),Oi(i)])}function Oi(t){return Array.isArray(t)?t.join(" "):t}const Ui={};function Ni(t,{layout:e,layoutId:n}){return Qe.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Ui[t]||"opacity"===t)}const Wi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$i=Je.length;function Yi(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const t=e[l];if(Qe.has(l))r=!0;else if(Pt(l))s[l]=t;else{const e=Gn(t,$n[l]);l.startsWith("origin")?(a=!0,o[l]=e):i[l]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o<$i;o++){const r=Je[o],a=t[r];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=Gn(a,$n[r]);l||(s=!1,i+=`${Wi[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}const Xi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ki(t,e,n){for(const i in e)di(e[i])||Ni(i,n)||(t[i]=e[i])}function zi(e,n){const i={};return Ki(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},n){return t.useMemo((()=>{const t=Xi();return Yi(t,n,e),Object.assign({},t.vars,t.style)}
1),[n])}(e,n)),i}function Hi(t,e){const n={},i=zi(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const Gi={offset:"stroke-dashoffset",array:"stroke-dasharray"},qi={offset:"strokeDashoffset",array:"strokeDasharray"};function Zi(t,{attrX:e,attrY:n,attrScale:i,pathLength:s,pathSpacing:o=1,pathOffset:r=0,...a},l,u,h){if(Yi(t,a,u),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=(null==h?void 0:h.transformBox)??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==n&&(c.y=n),void 0!==i&&(c.scale=i),void 0!==s&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?Gi:qi;t[o.offset]=Ot.transform(-i);const r=Ot.transform(e),a=Ot.transform(n);t[o.array]=`${r} ${a}`}(c,s,o,r,!1)}const _i=()=>({...Xi(),attrs:{}}),Ji=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Qi(e,n,i,s){const o=t.useMemo((()=>{const t=_i();return Zi(t,n,Ji(s),e.transformTemplate,e.style),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Ki(t,e.style,e),o.style={...t,...o.style}}return o}const ts=["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 es(t){return"string"==typeof t&&!t.includes("-")&&!!(ts.indexOf(t)>-1||/[A-Z]/u.test(t))}function ns(e,n,i,{latestValues:s},o,r=!1){const a=(es(e)?Qi:Hi)(n,s,o,e),l=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(Ci(s)||!0===n&&Vi(s)||!e&&!Vi(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"==typeof e,r),u=e!==t.Fragment?{...l,...a,ref:i}
1:{},{children:h}=n,c=t.useMemo((()=>di(h)?h.get():h),[h]);return t.createElement(e,{...u,children:c})}function is(t){const e=[{},{}];return null==t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function ss(t,e,n,i){if("function"==typeof e){const[s,o]=is(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=is(i);e=e(void 0!==n?n:t.custom,s,o)}return e}function os(t){return di(t)?t.get():t}function rs(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=os(o[d]);let{initial:r,animate:a}=t;const l=Bi(t),u=Fi(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial;h=h||!1===r;const c=h?a:r;if(c&&"boolean"!=typeof c&&!Ri(c)){const e=Array.isArray(c)?c:[c];for(let n=0;n<e.length;n++){const i=ss(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const i in n){let t=n[i];if(Array.isArray(t)){t=t[h?t.length-1:0]}null!==t&&(s[i]=t)}for(const i in t)s[i]=t[i]}}}return s}const as=e=>(n,i)=>{const s=t.useContext(Di),o=t.useContext(V),r=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e},n,i,s){return{latestValues:rs(n,i,s,t),renderState:e()}}(e,n,s,o);return i?r():b(r)};function ls(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(di(s[r])||e.style&&di(e.style[r])||Ni(r,t)||void 0!==(null==(i=null==n?void 0:n.getValue(r))?void 0:i.liveStyle))&&(o[r]=s[r]);return o}const us=as({scrapeMotionValuesFromProps:ls,createRenderState:Xi});function hs(t,e,n){const i=ls(t,e,n);for(const s in t)if(di(t[s])||di(e[s])){i[-1!==Je.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]}return i}const cs=as({scrapeMotionValuesFromProps:hs,createRenderState:_i}),ds=Symbol.for("motionComponentSymbol");function ps(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function ms(e,n,i){return t.useCallback((t=>{t&&e.onMount&&e.onMount(t),n&&(t?n.mount(t):n.unmount()),i&&("function"==typeof i?i(t):ps(i)&&(i.current=t))}),[n])}const fs=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gs="data-"+fs("framerAppearId"),vs=t.createContext({});function ys(e,n,i,s,o){var r,a;const{visualElement:l}=t.useContext(Di),u=t.useContext(Si),h=t.useContext(V),c=t.useContext(mi).reducedMotion,d=t.useRef(null);s=s||u.renderer,!d.current&&s&&(d.current=s(e,{visualState:n,parent:l,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:c}));const p=d.current,m=t.useContext(vs);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:xs(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&ps(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:h,layoutScroll:l,layoutRoot:u})}(d.current,i,o,m);const f=t.useRef(!1);t.useInsertionEffect((()=>{p&&f.current&&p.update(i,h)}));const g=i[gs],v=t.useRef(Boolean(g)&&!(null==(r=window.MotionHandoffIsComplete)?void 0:r.call(window,g))&&(null==(a=window.MotionHasOptimisedAnimation)?void 0:a.call(window,g)));return E((()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())})),t.useEffect((()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,g)})),v.current=!1))})),p}function xs(t){if(t)return!1!==t.options.allowProjection?t.projection:xs(t.parent)}function Ps(n,{forwardMotionProps:i=!1}={},s,o){s&&function(t){for(const e in t)Ai[e]={...Ai[e],...t[e]}}(s);const r=es(n)?cs:us;function a(s,a){let l;const u={...t.useContext(mi),...s,layoutId:Ts(s)},{isStatic:h}=u,c=Ii(s),d=r(s,h);if(!h&&A){t.useContext(Si).strict;const e=function(t){const{drag:e,layout:n}=Ai;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
1(u);l=e.MeasureLayout,c.visualElement=ys(n,d,u,o,e.ProjectionNode)}return e.jsxs(Di.Provider,{value:c,children:[l&&c.visualElement?e.jsx(l,{visualElement:c.visualElement,...u}):null,ns(n,s,ms(d,c.visualElement,a),d,h,i)]})}a.displayName=`motion.${"string"==typeof n?n:`create(${n.displayName??n.name??""})`}`;const l=t.forwardRef(a);return l[ds]=n,l}function Ts({layoutId:e}){const n=t.useContext(S).id;return n&&void 0!==e?n+"-"+e:e}function ws(t,e){if("undefined"==typeof Proxy)return Ps;const n=new Map,i=(n,i)=>Ps(n,i,t,e);return new Proxy(((t,e)=>i(t,e)),{get:(s,o)=>"create"===o?i:(n.has(o)||n.set(o,Ps(o,void 0,t,e)),n.get(o))})}function Ss({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function bs(t){return void 0===t||1===t}function As({scale:t,scaleX:e,scaleY:n}){return!bs(t)||!bs(e)||!bs(n)}function Es(t){return As(t)||Vs(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Vs(t){return Cs(t.x)||Cs(t.y)}function Cs(t){return t&&"0%"!==t}function Ms(t,e,n){return n+e*(t-n)}function Ds(t,e,n,i,s){return void 0!==s&&(t=Ms(t,s,i)),Ms(t,n,i)+e}function Rs(t,e=0,n=1,i,s){t.min=Ds(t.min,e,n,i,s),t.max=Ds(t.max,e,n,i,s)}function ks(t,{x:e,y:n}){Rs(t.x,e.translate,e.scale,e.originPoint),Rs(t.y,n.translate,n.scale,n.originPoint)}const js=.999999999999,Ls=1.0000000000001;function Bs(t,e){t.min=t.min+e,t.max=t.max+e}function Fs(t,e,n,i,s=.5){Rs(t,e,n,se(t.min,t.max,s),i)}function Is(t,e){Fs(t.x,e.x,e.scaleX,e.scale,e.originX),Fs(t.y,e.y,e.scaleY,e.scale,e.originY)}function Os(t,e){return Ss(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const Us=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Ns=()=>({x:{min:0,max:0},y:{min:0,max:0}}),Ws={current:null},$s={current:!1};const Ys=new WeakMap;const Xs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ks=class{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=cn,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=()=>{const t=yt.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,dt.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=Bi(e),this.isVariantNode=Fi(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const c in h){const t=h[c];void 0!==a[c]&&di(t)&&t.set(a[c])}}mount(t){this.current=t,Ys.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))),$s.current||function(){if($s.current=!0,A)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ws.current=t.matches;t.addEventListener("change",e),e()}else Ws.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ws.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),pt(this.notifyUpdate),pt(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=Qe.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&dt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}));let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),s&&s(),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 Ai){const e=Ai[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];
vendor: 5,195 bytes, line 1
1e.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):Ns()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<Xs.length;n++){const e=Xs[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if(di(s))t.addValue(i,s);else if(di(o))t.addValue(i,_n(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,_n(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);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){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=_n(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var i;return null!=n&&("string"==typeof n&&(j(n)||B(n))?n=parseFloat(n):(i=n,!pi.find(Ln(i))&&ee.test(e)&&(n=Kn(t,e))),this.setBaseTarget(t,di(n)?n.get():n)),di(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=ss(this.props,n,null==(e=this.presenceContext)?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||di(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new W),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){Jn.render(this.render)}},zs=class extends Ks{constructor(){super(...arguments),this.KeyframeResolver=Hn}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;di(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}};function Hs(t,{style:e,vars:n},i,s){const o=t.style;let r;for(r in e)o[r]=e[r];for(r in null==s||s.applyProjectionStyles(o,i),n)o.setProperty(r,n[r])}let Gs=class extends zs{constructor(){super(...arguments),this.type="html",this.renderInstance=Hs}readValueFromInstance(t,e){var n,i;if(Qe.has(e))return(null==(n=this.projection)?void 0:n.isProjecting)?qe(e):((t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ze(n,e)})(t,e);{const n=(i=t,window.getComputedStyle(i)),s=(Pt(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return Os(t,e)}build(t,e,n){Yi(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return ls(t,e,n)}};const qs=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"]);let Zs=class extends zs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ns}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Qe.has(e)){const t=Xn(e);return t&&t.default||0}return e=qs.has(e)?e:fs(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return hs(t,e,n)}
1build(t,e,n){Zi(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){Hs(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(qs.has(s)?s:fs(s),e.attrs[s])}(t,e,0,i)}mount(t){this.isSVGTag=Ji(t.tagName),super.mount(t)}};const _s=(e,n)=>es(e)?new Zs(n):new Gs(n,{allowProjection:e!==t.Fragment});function Js(t,e,n){const i=t.getProps();return ss(i,e,void 0!==n?n:i.custom,t)}const Qs=t=>Array.isArray(t);function to(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,_n(n))}function eo(t,e){const n=t.getValue("willChange");if(i=n,Boolean(di(i)&&i.add))return n.add(e);if(!n&&k.WillChange){const n=new k.WillChange("auto");t.addValue("willChange",n),n.add(e)}var i}function no(t){return t.props[gs]}const io=t=>null!==t;const so={type:"spring",stiffness:500,damping:25,restSpeed:10},oo={type:"keyframes",duration:.8},ro={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ao=(t,{keyframes:e})=>e.length>2?oo:Qe.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:so:ro;const lo=(t,e,n,i={},s,o)=>r=>{const a=kn(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u-=$(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length})(a)||Object.assign(h,ao(t,h)),h.duration&&(h.duration=$(h.duration)),h.repeatDelay&&(h.repeatDelay=$(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(En(h),0===h.delay&&(c=!0)),(k.instantAnimations||k.skipAnimations)&&(c=!0,En(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!o&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(io);return s[e&&"loop"!==n&&e%2==1?0:s.length-1]}(h.keyframes,a);if(void 0!==t)return void dt.update((()=>{h.onUpdate(t),h.onComplete()}))}return a.isSync?new We(h):new Mn(h)};function uo({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function ho(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;i&&(o=i);const l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const h in a){const e=t.getValue(h,t.latestValues[h]??null),i=a[h];if(void 0===i||u&&uo(u,h))continue;const s={delay:n,...kn(o||{},h)},r=e.get();if(void 0!==r&&!e.isAnimating&&!Array.isArray(i)&&i===r&&!s.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){const e=no(t);if(e){const t=window.MotionHandoffAnimation(e,h,dt);null!==t&&(s.startTime=t,c=!0)}}eo(t,h),e.start(lo(h,e,i,t.shouldReduceMotion&&jn.has(h)?{type:!1}:s,t,c));const d=e.animation;d&&l.push(d)}return r&&Promise.all(l).then((()=>{dt.update((()=>{r&&function(t,e){const n=Js(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const a in o)to(t,a,(r=o[a],Qs(r)?r[r.length-1]||0:r));var r}(t,r)}))})),l}function co(t,e,n={}){var i;const s=Js(t,e,"exit"===n.type?null==(i=t.presenceContext)?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(ho(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=0,o=1,r){const a=[],l=t.variantChildren.size,u=(l-1)*s,h="function"==typeof i,c=h?t=>i(t,l):1===o?(t=0)=>t*s:(t=0)=>u-t*s;return Array.from(t.variantChildren).sort(po).forEach(((t,s)=>{t.notify("AnimationStart",e),a.push(co(t,e,{...r,delay:n+(h?0:i)+c(s)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(a)}(t,e,i,s,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function po(t,e){return t.sortNodePosition(e)}function mo(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const fo=Li.length;function go(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&go(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<fo;n++){const i=Li[n],s=t.props[i];(ki(s)||!1===s)&&(e[i]=s)}return e}const vo=[...ji].reverse(),yo=ji.length;function xo(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>co(t,e,n)));i=Promise.all(s)}else if("string"==typeof e)i=co(t,e,n);else{const s="function"==typeof e?Js(t,e,n.custom):e;i=Promise.all(ho(t,s,n))}return i.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}function Po(t){let e=xo(t),n=So(),i=!0;const s=e=>(n,i)=>{var s;const o=Js(t,i,"exit"===e?null==(s=t.presenceContext)?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function o(o){const{props:r}=t,a=go(t.parent)||{},l=[],u=new Set;let h={},c=1/0;for(let e=0;e<yo;e++){const d=vo[e],p=n[d],m=void 0!==r[d]?r[d]:a[d],f=ki(m),g=d===o?p.isActive:null;!1===g&&(c=e);let v=m===a[d]&&m!==r[d]&&f;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...h},!p.isActive&&null===g||!m&&!p.prevProp||Ri(m)||"boolean"==typeof m)continue;const y=To(p.prevProp,m);let x=y||d===o&&p.isActive&&!v&&f||e>c&&f,P=!1;const T=Array.isArray(m)?m:[m];let w=T.reduce(s(d),{});!1===g&&(w={});const{prevResolvedValues:S={}}=p,b={...S,...w},A=e=>{x=!0,u.has(e)&&(P=!0,u.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in b){const e=w[t],n=S[t];if(h.hasOwnProperty(t))continue;let i=!1;i=Qs(e)&&Qs(n)?!mo(e,n):e!==n,i?null!=e?A(t):u.add(t):void 0!==e&&u.has(t)?A(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=w,p.isActive&&(h={...h,...w}),i&&t.blockInitialAnimation&&(x=!1);x&&(!(v&&y)||P)&&l.push(...T.map((t=>({animation:t,options:{type:d}}))))}if(u.size){const e={};if("boolean"!=typeof r.initial){const n=Js(t,Array.isArray(r.initial)?r.initial[0]:r.initial);n&&n.transition&&(e.transition=n.transition)}u.forEach((n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=i??null})),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}
1return{animateChanges:o,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null==(s=t.variantChildren)||s.forEach((t=>{var n;return null==(n=t.animationState)?void 0:n.setActive(e,i)})),n[e].isActive=i;const r=o(e);for(const t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=So(),i=!0}}}function To(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!mo(e,t)}function wo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function So(){return{animate:wo(!0),whileInView:wo(),whileHover:wo(),whileTap:wo(),whileDrag:wo(),whileFocus:wo(),exit:wo()}}let bo=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Ao=0;const Eo={animation:{Feature:class extends bo{constructor(t){super(t),t.animationState||(t.animationState=Po(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ri(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}},exit:{Feature:class extends bo{constructor(){super(...arguments),this.id=Ao++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>{e(this.id)}))}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};
vendor: 9,971 bytes, line 1
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function Vo(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Co(t){return{point:{x:t.pageX,y:t.pageY}}}function Mo(t,e,n,i){return Vo(t,e,(t=>e=>si(e)&&t(e,Co(e)))(n),i)}const Do=.9999,Ro=1.0001,ko=-.01,jo=.01;function Lo(t){return t.max-t.min}function Bo(t,e,n,i=.5){t.origin=i,t.originPoint=se(e.min,e.max,t.origin),t.scale=Lo(n)/Lo(e),t.translate=se(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Do&&t.scale<=Ro||isNaN(t.scale))&&(t.scale=1),(t.translate>=ko&&t.translate<=jo||isNaN(t.translate))&&(t.translate=0)}function Fo(t,e,n,i){Bo(t.x,e.x,n.x,i?i.originX:void 0),Bo(t.y,e.y,n.y,i?i.originY:void 0)}function Io(t,e,n){t.min=n.min+e.min,t.max=t.min+Lo(e)}function Oo(t,e,n){t.min=e.min-n.min,t.max=t.min+Lo(e)}function Uo(t,e,n){Oo(t.x,e.x,n.x),Oo(t.y,e.y,n.y)}function No(t){return[t("x"),t("y")]}const Wo=({current:t})=>t?t.ownerDocument.defaultView:null,$o=(t,e)=>Math.abs(t-e);let Yo=class{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=zo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=$o(t.x,e.x),i=$o(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=mt;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Xo(e,this.transformPagePoint),dt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=zo("pointercancel"===t.type?this.lastMoveEventInfo:Xo(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!si(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const r=Xo(Co(t),this.transformPagePoint),{point:a}=r,{timestamp:l}=mt;this.history=[{...a,timestamp:l}];const{onSessionStart:u}=e;u&&u(t,zo(r,this.history)),this.removeListeners=U(Mo(this.contextWindow,"pointermove",this.handlePointerMove),Mo(this.contextWindow,"pointerup",this.handlePointerUp),Mo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),pt(this.updatePoint)}};function Xo(t,e){return e?{point:e(t.point)}:t}function Ko(t,e){return{x:t.x-e.x,y:t.y-e.y}}function zo({point:t},e){return{point:t,delta:Ko(t,Go(e)),offset:Ko(t,Ho(e)),velocity:qo(e,.1)}}function Ho(t){return t[0]}function Go(t){return t[t.length-1]}function qo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Go(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>$(e)));)n--;if(!i)return{x:0,y:0};const o=Y(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Zo(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function _o(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const Jo=.35;function Qo(t,e,n){return{min:tr(t,e),max:tr(t,n)}}function tr(t,e){return"number"==typeof t?t:t[e]||0}const er=new WeakMap;let nr=class{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=Ns(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;const{dragSnapToOrigin:s}=this.getProps();this.panSession=new Yo(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Co(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?Qn[o]?null:(Qn[o]=!0,()=>{Qn[o]=!1}):Qn.x||Qn.y?null:(Qn.x=Qn.y=!0,()=>{Qn.x=Qn.y=!1}),!this.openDragLock))return;var o;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),No((t=>{let e=this.getAxisMotionValue(t).get()||0;if(It.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Lo(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),s&&dt.postRender((()=>s(t,e))),eo(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>No((t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:n,contextWindow:Wo(this.visualElement)})}stop(t,e){const n=t||this.latestPointerEvent,i=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!n)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&dt.postRender((()=>r(n,i)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!ir(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?se(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?se(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,s=this.constraints;e&&ps(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:Zo(t.x,n,s),y:Zo(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=Jo){return!1===t?t=0:!0===t&&(t=Jo),{x:Qo(t,"left","right"),y:Qo(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&No((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!ps(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=Os(t,n),{scroll:s}=e;return s&&(Bs(i.x,s.offset.x),Bs(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:_o(t.x,e.x),y:_o(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=Ss(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=No((r=>{if(!ir(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,h=i?40:1e7,c={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,c)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return eo(this.visualElement,t),n.start(lo(t,n,0,e,this.visualElement,!1))}stopAnimation(){No((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){No((t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()}))}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){No((e=>{const{drag:n}=this.getProps();if(!ir(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-se(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;
1if(!ps(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};No((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Lo(t),s=Lo(e);return s>i?n=N(e.min,e.max-i,t.min):i>s&&(n=N(t.min,t.max-s,e.min)),D(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),No((e=>{if(!ir(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(se(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;er.set(this.visualElement,this);const t=Mo(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();ps(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),dt.read(e);const s=Vo(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(No((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Jo,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}};function ir(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const sr=t=>(e,n)=>{t&&dt.postRender((()=>t(e,n)))};const or={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ar={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Ot.test(t))return t;t=parseFloat(t)}return`${rr(t,e.target.x)}% ${rr(t,e.target.y)}%`}},lr={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=ee.parse(t);if(s.length>5)return i;const o=ee.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=se(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=u),"number"==typeof s[3+r]&&(s[3+r]/=u),o(s)}};let ur=!1,hr=class extends t.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;!function(t){for(const e in t)Ui[e]=t[e],Pt(e)&&(Ui[e].isCSSVariable=!0)}(dr),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),ur&&s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),or.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,{projection:o}=n;return o?(o.isPresent=s,ur=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||dt.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Jn.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function cr(n){const[i,s]=xi(),o=t.useContext(S);return e.jsx(hr,{...n,layoutGroup:o,switchLayoutGroup:t.useContext(vs),isPresent:i,safeToRemove:s})}const dr={borderRadius:{...ar,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ar,borderTopRightRadius:ar,borderBottomLeftRadius:ar,borderBottomRightRadius:ar,boxShadow:lr};const pr=(t,e)=>t.depth-e.depth;let mr=class{constructor(){this.children=[],this.isDirty=!1}add(t){C(this.children,t),this.isDirty=!0}remove(t){M(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pr),this.isDirty=!1,this.children.forEac
1h(t)}};const fr=["TopLeft","TopRight","BottomLeft","BottomRight"],gr=fr.length,vr=t=>"string"==typeof t?parseFloat(t):t,yr=t=>"number"==typeof t||Ot.test(t);function xr(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Pr=wr(0,.5,nt),Tr=wr(.5,.95,I);function wr(t,e,n){return i=>i<t?0:i>e?1:n(N(t,e,i))}function Sr(t,e){t.min=e.min,t.max=e.max}function br(t,e){Sr(t.x,e.x),Sr(t.y,e.y)}function Ar(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Er(t,e,n,i,s){return t=Ms(t-=e,1/n,i),void 0!==s&&(t=Ms(t,1/s,i)),t}function Vr(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){It.test(e)&&(e=parseFloat(e),e=se(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=se(o.min,o.max,i);t===o&&(a-=e),t.min=Er(t.min,e,n,a,s),t.max=Er(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const Cr=["x","scaleX","originX"],Mr=["y","scaleY","originY"];function Dr(t,e,n,i){Vr(t.x,e,Cr,n?n.x:void 0,i?i.x:void 0),Vr(t.y,e,Mr,n?n.y:void 0,i?i.y:void 0)}function Rr(t){return 0===t.translate&&1===t.scale}function kr(t){return Rr(t.x)&&Rr(t.y)}function jr(t,e){return t.min===e.min&&t.max===e.max}function Lr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Br(t,e){return Lr(t.x,e.x)&&Lr(t.y,e.y)}function Fr(t){return Lo(t.x)/Lo(t.y)}function Ir(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let Or=class{constructor(){this.members=[]}add(t){C(this.members,t),t.scheduleRender()}remove(t){if(M(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};const Ur=["","X","Y","Z"];let Nr=0;function Wr(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function $r(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=no(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",dt,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&$r(i)}function Yr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Nr++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(zr),this.nodes.forEach(Qr),this.nodes.forEach(ta),this.nodes.forEach(Hr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new mr)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new W),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;var n;this.isSVG=ci(e)&&!(ci(n=e)&&"svg"===n.tagName),this.instance=e;const{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let n,i=0;const s=()=>this.root.updateBlockedByResize=!1;dt.read((()=>{i=window.innerWidth})),t(e,(()=>{const t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=yt.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(pt(i),t(o-e))};return dt.setup(i,!0),()=>pt(i)}(s,250),or.hasAnimatedSinceResize&&(or.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(Jr)))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||o.getDefaultTransition()||ra,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!Br(this.targetLayout,i),u=!e&&n;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...kn(s,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||Jr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),pt(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(ea),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$r(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const t=this.path[s];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(qr);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(Zr);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(_r),this.nodes.forEach(Xr),this.nodes.forEach(Kr)):this.nodes.forEach(Zr),this.clearAllSnapshots();const t=yt.now();mt.delta=D(0,1e3/60,t-mt.timestamp),mt.timestamp=t,mt.isProcessing=!0,ft.update.process(mt),ft.preRender.process(mt),ft.render.process(mt),mt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Jn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Gr),this.sharedNodes.forEach(na)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,dt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){dt.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Lo(this.snapshot.measuredBox.x)||Lo(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ns(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!kr(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||Es(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),ua((i=n).x),ua(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return Ns();const n=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(ca))){const{scroll:t}=this.root;t&&(Bs(n.x,t.offset.x),Bs(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n=Ns();if(br(n,t),null==(e=this.scroll)?void 0:e.wasRoot)return n;for(let i=0;i<this.path.length;i++){const e=this.path[i],{scroll:s,options:o}=e;e!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&br(n,t),Bs(n.x,s.offset.x),Bs(n.y,s.offset.y))}return n}applyTransform(t,e=!1){const n=Ns();br(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&Is(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Es(t.latestValues)&&Is(n,t.latestValues)}return Es(this.latestValues)&&Is(n,this.latestValues),n}removeTransform(t){const e=Ns();br(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!Es(t.latestValues))continue;As(t.latestValues)&&t.updateSnapshot();const i=Ns();br(i,t.measurePageBox()),Dr(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return Es(this.latestValues)&&Dr(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!==mt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=mt.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ns(),this.relativeTargetOrigin=Ns(),Uo(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),br(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var r,a,l;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target=Ns(),this.targetWithTransforms=Ns()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,Io(r.x,a.x,l.x),Io(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):br(this.target,this.layout.layoutBox),ks(this.target,this.targetDelta)):br(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ns(),this.relativeTargetOrigin=Ns(),Uo(this.relativeTargetOrigin,this.target,t.target),br(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!As(this.parent.latestValues)&&!Vs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===mt.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;br(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Is(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,ks(t,r)),i&&Es(o.latestValues)&&Is(t,o.latestValues))}e.x<Ls&&e.x>js&&(e.x=1),e.y<Ls&&e.y>js&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=Ns());const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Ar(this.prevProjectionDelta.x,this.projectionDelta.x),Ar(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Fo(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&Ir(this.projectionDelta.x,this.prevProjectionDelta.x)&&Ir(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Us(),this.projectionDelta=Us(),this.projectionDeltaWithTransform=Us()}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o=Us();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r=Ns(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,h=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(oa));let c;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,g;ia(o.x,t.x,n),ia(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Uo(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,g=n,sa(p.x,m.x,f.x,g),sa(p.y,m.y,f.y,g),c&&
1(l=this.relativeTarget,d=c,jr(l.x,d.x)&&jr(l.y,d.y))&&(this.isProjectionDirty=!1),c||(c=Ns()),br(c,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=se(0,n.opacity??1,Pr(i)),t.opacityExit=se(e.opacity??1,0,Tr(i))):o&&(t.opacity=se(e.opacity??1,n.opacity??1,i));for(let r=0;r<gr;r++){const s=`border${fr[r]}Radius`;let o=xr(e,s),a=xr(n,s);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||yr(o)===yr(a)?(t[s]=Math.max(se(vr(o),vr(a),i),0),(It.test(a)||It.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=se(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,h,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){var e,n,i;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(),null==(i=null==(n=this.resumingFrom)?void 0:n.currentAnimation)||i.stop(),this.pendingAnimation&&(pt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dt.update((()=>{or.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_n(0)),this.currentAnimation=function(t,e,n){const i=di(t)?t:_n(t);return i.start(lo("",i,e,n)),i.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{},onComplete:()=>{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);const 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(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&ha(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||Ns();const e=Lo(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Lo(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}br(e,n),Is(e,s),Fo(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Or);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&Wr("z",t,i,this.animationValues);for(let s=0;s<Ur.length;s++)Wr(`rotate${Ur[s]}`,t,i,this.animationValues),Wr(`skew${Ur[s]}`,t,i,this.animationValues);t.render();for(const s in i)t.setStaticValue(s,i[s]),this.animationValues&&(this.animationValues[s]=i[s]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=os(null==e?void 0:e.pointerEvents)||"",void(t.transform=n?n(this.latestValues,""):"none");const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=os(null==e?void 0:e.pointerEvents)||""),void(this.hasProjected&&!Es(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1));t.visibility="";const s=i.animationValues||i.latestValues;this.applyTransformsToTarget();let o=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==n?void 0:n.z)||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);n&&(o=n(s,o)),t.transform=o;const{x:r,y:a}=this.projectionDelta;t.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const l in Ui){if(void 0===s[l])continue;const{correct:e,applyTo:n,isCSSVariable:r}=Ui[l],a="none"===o?s[l]:e(s[l],i);if(n){const e=n.length;for(let i=0;i<e;i++)t[n[i]]=a}
1else r?this.options.visualElement.renderState.vars[l]=a:t[l]=a}this.options.layoutId&&(t.pointerEvents=i===this?os(null==e?void 0:e.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()})),this.root.nodes.forEach(qr),this.root.sharedNodes.clear()}}}function Xr(t){t.updateLayout()}function Kr(t){var e;const n=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?No((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Lo(i);i.min=e[t].min,i.max=i.min+s})):ha(s,n.layoutBox,e)&&No((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Lo(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r=Us();Fo(r,e,n.layoutBox);const a=Us();o?Fo(a,t.applyTransform(i,!0),n.measuredBox):Fo(a,e,n.layoutBox);const l=!kr(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r=Ns();Uo(r,n.layoutBox,s.layoutBox);const a=Ns();Uo(a,e,o.layoutBox),Br(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function zr(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Hr(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Gr(t){t.clearSnapshot()}function qr(t){t.clearMeasurements()}function Zr(t){t.isLayoutDirty=!1}function _r(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Jr(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Qr(t){t.resolveTargetDelta()}function ta(t){t.calcProjection()}function ea(t){t.resetSkewAndRotation()}function na(t){t.removeLeadSnapshot()}function ia(t,e,n){t.translate=se(e.translate,0,n),t.scale=se(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function sa(t,e,n,i){t.min=se(e.min,n.min,i),t.max=se(e.max,n.max,i)}function oa(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const ra={duration:.45,ease:[.4,0,.1,1]},aa=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),la=aa("applewebkit/")&&!aa("chrome/")?Math.round:I;function ua(t){t.min=la(t.min),t.max=la(t.max)}function ha(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Fr(e),s=Fr(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function ca(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}const da=Yr({attachResizeListener:(t,e)=>Vo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pa={current:void 0},ma=Yr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!pa.current){const t=new da({});t.mount(window),t.setOptions({layoutScroll:!0}),pa.current=t}return pa.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),fa={pan:{Feature:class extends bo{constructor(){super(...arguments),this.removePointerDownListener=I}onPointerDown(t){this.session=new Yo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wo(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:sr(t),onStart:sr(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&dt.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=Mo(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends bo{constructor(t){super(t),this.removeGroupControls=I,this.removeListeners=I,this.controls=new nr(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||I}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ma,MeasureLayout:cr}};function ga(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&dt.postRender((()=>s(e,Co(e))))}function va(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&dt.postRender((()=>s(e,Co(e))))}const ya=new WeakMap,xa=new WeakMap,Pa=t=>{const e=ya.get(t.target);e&&e(t)}
1,Ta=t=>{t.forEach(Pa)};function wa(t,e,n){const i=function({root:t,...e}){const n=t||document;xa.has(n)||xa.set(n,{});const i=xa.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Ta,{root:t,...e})),i[s]}(e);return ya.set(t,n),i.observe(t),()=>{ya.delete(t),i.unobserve(t)}}const Sa={some:0,all:1};const ba=ws({...Eo,...{inView:{Feature:class extends bo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Sa[i]};return wa(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends bo{mount(){const{current:t}=this.node;t&&(this.unmount=hi(t,((t,e)=>(va(this.node,e,"Start"),(t,{success:e})=>va(this.node,t,e?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends bo{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=U(Vo(this.node.current,"focus",(()=>this.onFocus())),Vo(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends bo{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,s,o]=ei(t,n),r=t=>{if(!ni(t))return;const{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;const o=t=>{ni(t)&&(i(t),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,s)};return i.forEach((t=>{t.addEventListener("pointerenter",r,s)})),o}(t,((t,e)=>(ga(this.node,e,"Start"),t=>ga(this.node,t,"End")))))}unmount(){}}}},...fa,...{layout:{ProjectionNode:ma,MeasureLayout:cr}}},_s),Aa=t.createContext({});function Ea(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Va=t.createContext(null),Ca=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Ma extends t.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Da({children:n,isPresent:i}){const s=t.useId(),o=t.useRef(null),r=t.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=t.useContext(Ca);return t.useInsertionEffect((()=>{const{width:t,height:e,top:n,left:l}=r.current;if(i||!o.current||!t||!e)return;o.current.dataset.motionPopId=s;const u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`\n [data-motion-pop-id="${s}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${e}px !important;\n top: ${n}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(u)}}),[i]),e.jsx(Ma,{isPresent:i,childRef:o,sizeRef:r,children:t.cloneElement(n,{ref:o})})}const Ra=({children:n,initial:i,isPresent:s,onExitComplete:o,custom:r,presenceAffectsLayout:a,mode:l})=>{const u=Ea(ka),h=t.useId(),c=t.useCallback((t=>{u.set(t,!0);for(const e of u.values())if(!e)return;o&&o()}),[u,o]),d=t.useMemo((()=>({id:h,initial:i,isPresent:s,custom:r,onExitComplete:c,register:t=>(u.set(t,!1),()=>u.delete(t))})),a?[Math.random(),c]:[s,c]);return t.useMemo((()=>{u.forEach(((t,e)=>
1u.set(e,!1)))}),[s]),t.useEffect((()=>{!s&&!u.size&&o&&o()}),[s]),"popLayout"===l&&(n=e.jsx(Da,{isPresent:s,children:n})),e.jsx(Va.Provider,{value:d,children:n})};function ka(){return new Map}function ja(e=!0){const n=t.useContext(Va);if(null===n)return[!0,null];const{isPresent:i,onExitComplete:s,register:o}=n,r=t.useId();t.useEffect((()=>{e&&o(r)}),[e]);const a=t.useCallback((()=>e&&s&&s(r)),[r,s,e]);return!i&&s?[!1,a]:[!0]}const La=t=>t.key||"";function Ba(e){const n=[];return t.Children.forEach(e,(e=>{t.isValidElement(e)&&n.push(e)})),n}const Fa="undefined"!=typeof window,Ia=Fa?t.useLayoutEffect:t.useEffect,Oa=({children:n,custom:i,initial:s=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:a="sync",propagate:l=!1})=>{const[u,h]=ja(l),c=t.useMemo((()=>Ba(n)),[n]),d=l&&!u?[]:c.map(La),p=t.useRef(!0),m=t.useRef(c),f=Ea((()=>new Map)),[g,v]=t.useState(c),[y,x]=t.useState(c);Ia((()=>{p.current=!1,m.current=c;for(let t=0;t<y.length;t++){const e=La(y[t]);d.includes(e)?f.delete(e):!0!==f.get(e)&&f.set(e,!1)}}),[y,d.length,d.join("-")]);const P=[];if(c!==g){let t=[...c];for(let e=0;e<y.length;e++){const n=y[e],i=La(n);d.includes(i)||(t.splice(e,0,n),P.push(n))}return"wait"===a&&P.length&&(t=P),x(Ba(t)),void v(c)}const{forceRender:T}=t.useContext(Aa);return e.jsx(e.Fragment,{children:y.map((t=>{const n=La(t),g=!(l&&!u)&&(c===y||d.includes(n));return e.jsx(Ra,{isPresent:g,initial:!(p.current&&!s)&&void 0,custom:g?void 0:i,presenceAffectsLayout:r,mode:a,onExitComplete:g?void 0:()=>{if(!f.has(n))return;f.set(n,!0);let t=!0;f.forEach((e=>{e||(t=!1)})),t&&(null==T||T(),x(m.current),l&&(null==h||h()),o&&o())},children:t},n)}))})},Ua=!1;const Na=["read","resolveKeyframes","update","preRender","render","postRender"];function Wa(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Na.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:(t,s=!1,r=!1)=>{const a=r&&i?e:n;return s&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,l.process(t)))}};return l}(o),t)),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=r,p=()=>{const o=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(o-s.timestamp,40),1),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(p))};return{schedule:Na.reduce(((e,o)=>{const a=r[o];return e[o]=(e,o=!1,r=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(p)),a.schedule(e,o,r)),e}),{}),cancel:t=>{for(let e=0;e<Na.length;e++)r[Na[e]].cancel(t)},state:s,steps:r}}const{schedule:$a,cancel:Ya,state:Xa,steps:Ka}=Wa("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n,!0),za=t.createContext({strict:!1}),Ha={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"]},Ga={};for(const Nm in Ha)Ga[Nm]={isEnabled:t=>Ha[Nm].some((e=>!!t[e]))};const qa=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 Za(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||qa.has(t)}let _a=t=>!Za(t);try{!function(t){t&&(_a=e=>e.startsWith("on")?!Za(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(Um){}function Ja(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy(((...e)=>t(...e)),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Qa=t.createContext({});function tl(t){return"string"==typeof t||Array.isArray(t)}function el(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const nl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],il=["initial",...nl];function sl(t){return el(t.animate)||il.some((e=>tl(t[e])))}function ol(t){return Boolean(sl(t)||t.variants)}function rl(e){const{initial:n,animate:i}=function(t,e){if(sl(t)){const{initial:e,animate:n}=t;return{initial:!1===e||tl(e)?e:void 0,animate:tl(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(Qa));return t.useMemo((()=>({initial:n,animate:i})),[al(n),al(i)])}function al(t){return Array.isArray(t)?t.join(" "):t}const ll=Symbol.for("motionComponentSymbol");function ul(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function hl(e,n,i){return t.useCallback((t=>{t&&e.onMount&&e.onMount(t),n&&(t?n.mount(t):n.unmount()),i&&("function"==typeof i?i(t):ul(i)&&(i.current=t))}),[n])}const cl=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dl="data-"+cl("framerAppearId"),{schedule:pl}=Wa(queueMicrotask,!1),ml=t.createContext({});function fl(e,n,i,s,o){var r,a;const{visualElement:l}=t.useContext(Qa),u=t.useContext(za),h=t.useContext(Va),c=t.useContext(Ca).reducedMotion,d=t.useRef(null);s=s||u.renderer,!d.current&&s&&(d.current=s(e,{visualState:n,parent:l,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:c}
1));const p=d.current,m=t.useContext(ml);!p||p.projection||!o||"html"!==p.type&&"svg"!==p.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:gl(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&ul(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(d.current,i,o,m);const f=t.useRef(!1);t.useInsertionEffect((()=>{p&&f.current&&p.update(i,h)}));const g=i[dl],v=t.useRef(Boolean(g)&&!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,g))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,g)));return Ia((()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),pl.render(p.render),v.current&&p.animationState&&p.animationState.animateChanges())})),t.useEffect((()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,g)})),v.current=!1))})),p}function gl(t){if(t)return!1!==t.options.allowProjection?t.projection:gl(t.parent)}function vl({preloadedFeatures:n,createVisualElement:i,useRender:s,useVisualState:o,Component:r}){var a,l;function u(n,a){let l;const u={...t.useContext(Ca),...n,layoutId:yl(n)},{isStatic:h}=u,c=rl(n),d=o(n,h);if(!h&&Fa){t.useContext(za).strict;const e=function(t){const{drag:e,layout:n}=Ga;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(u);l=e.MeasureLayout,c.visualElement=fl(r,d,u,i,e.ProjectionNode)}return e.jsxs(Qa.Provider,{value:c,children:[l&&c.visualElement?e.jsx(l,{visualElement:c.visualElement,...u}):null,s(r,n,hl(d,c.visualElement,a),d,h,c.visualElement)]})}n&&function(t){for(const e in t)Ga[e]={...Ga[e],...t[e]}}(n),u.displayName=`motion.${"string"==typeof r?r:`create(${null!==(l=null!==(a=r.displayName)&&void 0!==a?a:r.name)&&void 0!==l?l:""})`}`;const h=t.forwardRef(u);return h[ll]=r,h}function yl({layoutId:e}){const n=t.useContext(Aa).id;return n&&void 0!==e?n+"-"+e:e}const xl=["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 Pl(t){return"string"==typeof t&&!t.includes("-")&&!!(xl.indexOf(t)>-1||/[A-Z]/u.test(t))}function Tl(t){const e=[{},{}];return null==t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function wl(t,e,n,i){if("function"==typeof e){const[s,o]=Tl(i);e=e(void 0!==n?n:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,o]=Tl(i);e=e(void 0!==n?n:t.custom,s,o)}return e}const Sl=t=>Array.isArray(t),bl=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),Al=t=>Sl(t)?t[t.length-1]||0:t,El=t=>Boolean(t&&t.getVelocity);function Vl(t){const e=El(t)?t.get():t;return bl(e)?e.toValue():e}const Cl=e=>(n,i)=>{const s=t.useContext(Qa),o=t.useContext(Va),r=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,s,o){const r={latestValues:Ml(i,s,o,t),renderState:e()};return n&&(r.onMount=t=>n({props:i,current:t,...r}),r.onUpdate=t=>n(t)),r}(e,n,s,o);return i?r():Ea(r)};function Ml(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=Vl(o[d]);let{initial:r,animate:a}=t;const l=sl(t),u=ol(t);e&&u&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let h=!!n&&!1===n.initial;h=h||!1===r;const c=h?a:r;if(c&&"boolean"!=typeof c&&!el(c)){const e=Array.isArray(c)?c:[c];for(let n=0;n<e.length;n++){const i=wl(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const i in n){let t=n[i];if(Array.isArray(t)){t=t[h?t.length-1:0]}null!==t&&(s[i]=t)}for(const i in t)s[i]=t[i]}}}return s}const Dl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rl=new Set(Dl),kl=t=>e=>"string"==typeof e&&e.startsWith(t),jl=kl("--"),Ll=kl("var(--"),Bl=t=>!!Ll(t)&&Fl.test(t.split("/*")[0].trim()),Fl=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Il=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Ol=(t,e,n)=>n>e?e:n<t?t:n,Ul={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},Nl={...Ul,transform:t=>Ol(0,1,t)},Wl={...Ul,default:1},$l=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Yl=$l("deg"),Xl=$l("%"),Kl=$l("px"),zl=$l("vh"),Hl=$l("vw"),Gl={...Xl,parse:t=>Xl.parse(t)/100,transform:t=>Xl.transform(100*t)},ql={borderWidth:Kl,borderTopWidth:Kl,borderRightWidth:Kl,borderBottomWidth:Kl,borderLeftWidth:Kl,borderRadius:Kl,radiu
1s:Kl,borderTopLeftRadius:Kl,borderTopRightRadius:Kl,borderBottomRightRadius:Kl,borderBottomLeftRadius:Kl,width:Kl,maxWidth:Kl,height:Kl,maxHeight:Kl,top:Kl,right:Kl,bottom:Kl,left:Kl,padding:Kl,paddingTop:Kl,paddingRight:Kl,paddingBottom:Kl,paddingLeft:Kl,margin:Kl,marginTop:Kl,marginRight:Kl,marginBottom:Kl,marginLeft:Kl,backgroundPositionX:Kl,backgroundPositionY:Kl},Zl={rotate:Yl,rotateX:Yl,rotateY:Yl,rotateZ:Yl,scale:Wl,scaleX:Wl,scaleY:Wl,scaleZ:Wl,skew:Yl,skewX:Yl,skewY:Yl,distance:Kl,translateX:Kl,translateY:Kl,translateZ:Kl,x:Kl,y:Kl,z:Kl,perspective:Kl,transformPerspective:Kl,opacity:Nl,originX:Gl,originY:Gl,originZ:Kl},_l={...Ul,transform:Math.round},Jl={...ql,...Zl,zIndex:_l,size:Kl,fillOpacity:Nl,strokeOpacity:Nl,numOctaves:_l},Ql={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tu=Dl.length;function eu(t,e,n){const{style:i,vars:s,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const t=e[l];if(Rl.has(l))r=!0;else if(jl(l))s[l]=t;else{const e=Il(t,Jl[l]);l.startsWith("origin")?(a=!0,o[l]=e):i[l]=e}}if(e.transform||(r||n?i.transform=function(t,e,n){let i="",s=!0;for(let o=0;o<tu;o++){const r=Dl[o],a=t[r];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=Il(a,Jl[r]);l||(s=!1,i+=`${Ql[r]||r}(${t}) `),n&&(e[r]=t)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}const nu={offset:"stroke-dashoffset",array:"stroke-dasharray"},iu={offset:"strokeDashoffset",array:"strokeDasharray"};function su(t,e,n){return"string"==typeof t?t:Kl.transform(e+n*t)}function ou(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},h,c){if(eu(t,u,c),h)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==s||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${su(e,t.x,t.width)} ${su(n,t.y,t.height)}`}(m,void 0!==s?s:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==i&&(d.scale=i),void 0!==r&&function(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?nu:iu;t[o.offset]=Kl.transform(-i);const r=Kl.transform(e),a=Kl.transform(n);t[o.array]=`${r} ${a}`}(d,r,a,l,!1)}const ru=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),au=()=>({...ru(),attrs:{}}),lu=t=>"string"==typeof t&&"svg"===t.toLowerCase();function uu(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const hu=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function cu(t,e,n,i){uu(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(hu.has(s)?s:cl(s),e.attrs[s])}const du={};function pu(t,{layout:e,layoutId:n}){return Rl.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!du[t]||"opacity"===t)}function mu(t,e,n){var i;const{style:s}=t,o={};for(const r in s)(El(s[r])||e.style&&El(e.style[r])||pu(r,t)||void 0!==(null===(i=null==n?void 0:n.getValue(r))||void 0===i?void 0:i.liveStyle))&&(o[r]=s[r]);return o}function fu(t,e,n){const i=mu(t,e,n);for(const s in t)if(El(t[s])||El(e[s])){i[-1!==Dl.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]}return i}const gu=["x","y","width","height","cx","cy","r"],vu={useVisualState:Cl({scrapeMotionValuesFromProps:fu,createRenderState:au,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:s})=>{if(!n)return;let o=!!t.drag;if(!o)for(const a in s)if(Rl.has(a)){o=!0;break}if(!o)return;let r=!e;if(e)for(let a=0;a<gu.length;a++){const n=gu[a];t[n]!==e[n]&&(r=!0)}r&&$a.read((()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(n){e.dimensions={x:0,y:0,width:0,height:0}}}(n,i),$a.render((()=>{ou(i,s,lu(n.tagName),t.transformTemplate),cu(n,i)}))}))}})},yu={useVisualState:Cl({scrapeMotionValuesFromProps:mu,createRenderState:ru})};function xu(t,e,n){for(const i in e)El(e[i])||pu(i,n)||(t[i]=e[i])}function Pu(e,n){const i={};return xu(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},n){return t.useMemo((()=>{const t=ru();return eu(t,n,e),Object.assign({},t.vars,t.style)}
1),[n])}(e,n)),i}function Tu(t,e){const n={},i=Pu(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function wu(e,n,i,s){const o=t.useMemo((()=>{const t=au();return ou(t,n,lu(s),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};xu(t,e.style,e),o.style={...t,...o.style}}return o}function Su(e=!1){return(n,i,s,{latestValues:o},r)=>{const a=(Pl(n)?wu:Tu)(i,o,r,n),l=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(_a(s)||!0===n&&Za(s)||!e&&!Za(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(i,"string"==typeof n,e),u=n!==t.Fragment?{...l,...a,ref:s}:{},{children:h}=i,c=t.useMemo((()=>El(h)?h.get():h),[h]);return t.createElement(n,{...u,children:c})}}function bu(t,e){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){return vl({...Pl(n)?vu:yu,preloadedFeatures:t,useRender:Su(i),createVisualElement:e,Component:n})}}function Au(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function Eu(t,e,n){const i=t.getProps();return wl(i,e,void 0!==n?n:i.custom,t)}const Vu=new Set(["width","height","top","left","right","bottom",...Dl]);let Cu;function Mu(){Cu=void 0}const Du={now:()=>(void 0===Cu&&Du.set(Xa.isProcessing||Ua?Xa.timestamp:performance.now()),Cu),set:t=>{Cu=t,queueMicrotask(Mu)}};function Ru(t,e){-1===t.indexOf(e)&&t.push(e)}function ku(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ju{constructor(){this.subscriptions=[]}add(t){return Ru(this.subscriptions,t),()=>ku(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Lu(t,e){return e?t*(1e3/e):0}class Bu{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=Du.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=Du.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}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 ju);const n=this.events[t].add(e);return"change"===t?()=>{n(),$a.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Du.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Lu(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Fu(t,e){return new Bu(t,e)}function Iu(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Fu(n))}function Ou(t,e){const n=t.getValue("willChange");if(i=n,Boolean(El(i)&&i.add))return n.add(e);var i}function Uu(t){return t.props[dl]}const Nu=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Wu=1e-7,$u=12;function Yu(t,e,i,s){if(t===e&&i===s)return n;const o=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=Nu(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>Wu&&++a<$u);return r}(e,0,1,t,i);return t=>0===t||1===t?t:Nu(o(t),e,s)}const Xu=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ku=t=>e=>1-t(1-e),zu=Yu(.33,1.53,.69,.99),Hu=Ku(zu),Gu=Xu(Hu),qu=t=>(t*=2)<1?.5*Hu(t):.5*(2-Math.pow(2,-10*(t-1))),Zu=t=>1-Math.sin(Math.acos(t)),_u=Ku(Zu),Ju=Xu(Zu),Qu=t=>/^0[^.\s]+$/u.test(t);const th=t=>Math.round(1e5*t)/1e5,eh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const nh=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ih=(t,e)=>n=>Boolean("string"==typeof n&&nh.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),sh=(t,e,n)=>i=>{if("string"!=typeof i)return i;const[s,o,r,a]=i.match(eh);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:void 0!==a?parseFloat(a):1}}
vendor: 7,757 bytes, line 1
1,oh={...Ul,transform:t=>Math.round((t=>Ol(0,255,t))(t))},rh={test:ih("rgb","red"),parse:sh("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+oh.transform(t)+", "+oh.transform(e)+", "+oh.transform(n)+", "+th(Nl.transform(i))+")"};const ah={test:ih("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:rh.transform},lh={test:ih("hsl","hue"),parse:sh("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Xl.transform(th(e))+", "+Xl.transform(th(n))+", "+th(Nl.transform(i))+")"},uh={test:t=>rh.test(t)||ah.test(t)||lh.test(t),parse:t=>rh.test(t)?rh.parse(t):lh.test(t)?lh.parse(t):ah.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?rh.transform(t):lh.transform(t)},hh=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const ch="number",dh="color",ph="var",mh="var(",fh="${}",gh=/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 vh(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let o=0;const r=e.replace(gh,(t=>(uh.test(t)?(i.color.push(o),s.push(dh),n.push(uh.parse(t))):t.startsWith(mh)?(i.var.push(o),s.push(ph),n.push(t)):(i.number.push(o),s.push(ch),n.push(parseFloat(t))),++o,fh))).split(fh);return{values:n,split:r,indexes:i,types:s}}function yh(t){return vh(t).values}function xh(t){const{split:e,types:n}=vh(t),i=e.length;return t=>{let s="";for(let o=0;o<i;o++)if(s+=e[o],void 0!==t[o]){const e=n[o];s+=e===ch?th(t[o]):e===dh?uh.transform(t[o]):t[o]}return s}}const Ph=t=>"number"==typeof t?0:t;const Th={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(eh))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(hh))||void 0===n?void 0:n.length)||0)>0},parse:yh,createTransformer:xh,getAnimatableNone:function(t){const e=yh(t);return xh(t)(e.map(Ph))}},wh=new Set(["brightness","contrast","saturate","opacity"]);function Sh(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(eh)||[];if(!i)return t;const s=n.replace(i,"");let o=wh.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const bh=/\b([a-z-]*)\(.*?\)/gu,Ah={...Th,getAnimatableNone:t=>{const e=t.match(bh);return e?e.map(Sh).join(" "):t}},Eh={...Jl,color:uh,backgroundColor:uh,outlineColor:uh,fill:uh,stroke:uh,borderColor:uh,borderTopColor:uh,borderRightColor:uh,borderBottomColor:uh,borderLeftColor:uh,filter:Ah,WebkitFilter:Ah},Vh=t=>Eh[t];function Ch(t,e){let n=Vh(t);return n!==Ah&&(n=Th),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Mh=new Set(["auto","none","0"]);const Dh=t=>t===Ul||t===Kl,Rh=(t,e)=>parseFloat(t.split(", ")[e]),kh=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Rh(s[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?Rh(e[1],t):0}},jh=new Set(["x","y","z"]),Lh=Dl.filter((t=>!jh.has(t)));const Bh={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:kh(4,13),y:kh(5,14)};Bh.translateX=Bh.x,Bh.translateY=Bh.y;const Fh=new Set;let Ih=!1,Oh=!1;function Uh(){if(Oh){const t=Array.from(Fh).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return Lh.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var i;null===(i=t.getValue(e))||void 0===i||i.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}Oh=!1,Ih=!1,Fh.forEach((t=>t.complete())),Fh.clear()}function Nh(){Fh.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(Oh=!0)}))}class Wh{constructor(t,e,n,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Fh.add(this),Ih||(Ih=!0,$a.read(Nh),$a.resolveKeyframes(Uh))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){const s=null==i?void 0:i.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Fh.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Fh.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const $h=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Yh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Xh(t,e,n=1){const[i,s]=function(t){const e=Yh.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!=n?n:i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return $h(t)?parseFloat(t):t}return Bl(s)?Xh(s,e,n+1):s}const Kh=t=>e=>e.test(t),zh=[Ul,Kl,Xl,Yl,Hl,zl,{test:t=>"auto"===t,parse:t=>t}],Hh=t=>zh.find(Kh(t));class Gh extends Wh{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),Bl(n))){const i=Xh(n,e.current);void 0!==i&&(t[a]=i),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Vu.has(n)||2!==t.length)return;const[i,s]=t,o=Hh(i),r=Hh(s);if(o!==r)if(Dh(o)&&Dh(r))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let s=0;s<t.length;s++)("number"==typeof(i=t[s])?0===i:null===i||"none"===i||"0"===i||Qu(i))&&n.push(s);var i;n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!Mh.has(e)&&vh(e).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Ch(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Bh[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=Bh[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h((([t,n])=>{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}const qh=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Th.test(t)&&"0"!==t||t.startsWith("url(")));const Zh=t=>null!==t;function _h(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(Zh),o=e&&"loop"!==n&&e%2==1?0:s.length-1;return o&&void 0!==i?i:s[o]}class Jh{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...r}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Du.now(),this.options={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:o,...r},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Nh(),Uh()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=Du.now(),this.hasAttemptedResolve=!0;const{name:n,type:s,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!function(t,e,n,s){const o=t[0];if(null===o)return!1;if("display"===e||"visibility"===e)return!0;const r=t[t.length-1],a=qh(o,e),l=qh(r,e);return!(!a||!l)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||i(n))&&s)}(t,n,s,o)){if(!r)return l&&l(_h(t,this.options,e)),a&&a(),void this.resolveFinishedPromise();this.options.duration=0}const h=this.initPlayback(t,e);!1!==h&&(this._resolved={keyframes:t,finalKeyframe:e,...h},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}const Qh=(t,e,n)=>t+(e-t)*n;function tc(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ec(t,e){return n=>n>0?e:t}const nc=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},ic=[ah,rh,lh];function sc(t){const e=(n=t,ic.find((t=>t.test(n))));var n;if(!Boolean(e))return!1;let i=e.parse(t);return e===lh&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,o=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=tc(a,i,t+1/3),o=tc(a,i,t),r=tc(a,i,t-1/3)}else s=o=r=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*r),alpha:i}}(i)),i}const oc=(t,e)=>{const n=sc(t),i=sc(e);if(!n||!i)return ec(t,e);const s={...n};return t=>(s.red=nc(n.red,i.red,t),s.green=nc(n.green,i.green,t),s.blue=nc(n.blue,i.blue,t),s.alpha=Qh(n.alpha,i.alpha,t),rh.transform(s))},rc=(t,e)=>n=>e(t(n)),ac=(...t)=>t.reduce(rc),lc=new Set(["none","hidden"]);function uc(t,e){return n=>Qh(t,e,n)}function hc(t){return"number"==typeof t?uc:"string"==typeof t?Bl(t)?ec:uh.test(t)?oc:pc:Array.isArray(t)?cc:"object"==typeof t?uh.test(t)?oc:dc:ec}function cc(t,e){const n=[...t],i=n.length,s=t.map(((t,n)=>hc(t)(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function dc(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=hc(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const pc=(t,e)=>{const n=Th.createTransformer(e),i=vh(t),s=vh(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?lc.has(t)&&!s.values.length||lc.has(e)&&!i.values.length?function(t,e){return lc.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):ac(cc(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][s[r]],l=null!==(n=t.values[a])&&void 0!==n?n:0;i[o]=l,s[r]++}return i}(i,s),s.values),n):ec(t,e)};function mc(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return Qh(t,e,n);return hc(t)(t,e)}const fc=5;function gc(t,e,n){const i=Math.max(e-fc,0);return Lu(n-t(i),e-i)}const vc={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},yc=.001;function xc({duration:t=vc.duration,bounce:e=vc.bounce,velocity:n=vc.velocity,mass:i=vc.mass}){let r,a,l=1-e;l=Ol(vc.minDamping,vc.maxDamping,l),t=Ol(vc.minDuration,vc.maxDuration,s(t)),l<1?(r=e=>{const i=e*l,s=i*t,o=i-n,r=Tc(e,l),a=Math.exp(-s);return yc-o/r*a},a=e=>{const i=e*l*t,s=i*n+n,o=Math.pow(l,2)*Math.pow(e,2)*t,a=Math.exp(-i),u=Tc(Math.pow(e,2),l);return(-r(e)+yc>0?-1:1)*((s-o)*a)/u}):(r=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,a=e=>Math.exp(-e*t)*(t*t*(n-e)));const u=function(t,e,n){let i=n;for(let s=1;s<Pc;s++)i-=t(i)/e(i);return i}(r,a,5/t);if(t=o(t),isNaN(u))return{stiffness:vc.stiffness,damping:vc.damping,duration:t};{const e=Math.pow(u,2)*i;return{stiffness:e,damping:2*l*Math.sqrt(i*e),duration:t}}}const Pc=12;function Tc(t,e){return t*Math.sqrt(1-e*e)}const wc=["duration","bounce"],Sc=["stiffness","damping","mass"];function bc(t,e){return e.some((e=>void 0!==t[e]))}function Ac(t=vc.visualDuration,e=vc.bounce){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:u}=n;const h=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],d={done:!1,value:h},{stiffness:p,damping:m,mass:f,duration:g,velocity:v,isResolvedFromDuration:y}=function(t){let e={velocity:vc.velocity,stiffness:vc.stiffness,damping:vc.damping,mass:vc.mass,isResolvedFromDuration:!1,...t};if(!bc(t,Sc)&&bc(t,wc))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*Ol(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:vc.mass,stiffness:s,damping:o}}else{const n=xc(t);e={...e,...n,mass:vc.mass},e.isResolvedFromDuration=!0}return e}({...n,velocity:-s(n.velocity||0)}),x=v||0,P=m/(2*Math.sqrt(p*f)),T=c-h,w=s(Math.sqrt(p/f)),S=Math.abs(T)<5;let b;if(i||(i=S?vc.restSpeed.granular:vc.restSpeed.default),u||(u=S?vc.restDelta.granular:vc.restDelta.default),P<1){const t=Tc(w,P);
1b=e=>{const n=Math.exp(-P*w*e);return c-n*((x+P*w*T)/t*Math.sin(t*e)+T*Math.cos(t*e))}}else if(1===P)b=t=>c-Math.exp(-w*t)*(T+(x+w*T)*t);else{const t=w*Math.sqrt(P*P-1);b=e=>{const n=Math.exp(-P*w*e),i=Math.min(t*e,300);return c-n*((x+P*w*T)*Math.sinh(i)+t*T*Math.cosh(i))/t}}const A={calculatedDuration:y&&g||null,next:t=>{const e=b(t);if(y)d.done=t>=g;else{let n=0;P<1&&(n=0===t?o(x):gc(b,t,e));const s=Math.abs(n)<=i,r=Math.abs(c-e)<=u;d.done=s&&r}return d.value=d.done?c:e,d},toString:()=>{const t=Math.min(r(A),a),e=l((e=>A.next(t*e).value),t,30);return t+"ms "+e}};return A}function Ec({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:h}){const c=t[0],d={done:!1,value:c},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let m=n*e;const f=c+m,g=void 0===r?f:r(f);g!==f&&(m=g-c);const v=t=>-m*Math.exp(-t/i),y=t=>g+v(t),x=t=>{const e=v(t),n=y(t);d.done=Math.abs(e)<=u,d.value=d.done?g:n};let P,T;const w=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(P=t,T=Ac({keyframes:[d.value,p(d.value)],velocity:gc(y,t,d.value),damping:s,stiffness:o,restDelta:u,restSpeed:h}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return T||void 0!==P||(e=!0,x(t),w(t)),void 0!==P&&t>=P?T.next(t-P):(!e&&x(t),d)}}}const Vc=Yu(.42,0,1,1),Cc=Yu(0,0,.58,1),Mc=Yu(.42,0,.58,1),Dc={linear:n,easeIn:Vc,easeInOut:Mc,easeOut:Cc,circIn:Zu,circInOut:Ju,circOut:_u,backIn:Hu,backInOut:Gu,backOut:zu,anticipate:qu},Rc=t=>{if(u(t)){h(4===t.length);const[e,n,i,s]=t;return Yu(e,n,i,s)}return"string"==typeof t?Dc[t]:t};function kc(t,e,{clamp:i=!0,ease:s,mixer:o}={}){const r=t.length;if(h(r===e.length),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=function(t,e,i){const s=[],o=i||mc,r=t.length-1;for(let a=0;a<r;a++){let i=o(t[a],t[a+1]);if(e){const t=Array.isArray(e)?e[a]||n:e;i=ac(t,i)}s.push(i)}return s}(e,s,o),u=l.length,d=n=>{if(a&&n<t[0])return e[0];let i=0;if(u>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=c(t[i],t[i+1],n);return l[i](s)};return i?e=>d(Ol(t[0],t[r-1],e)):d}function jc(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=c(0,e,i);t.push(Qh(n,1,s))}}(e,t.length-1),e}function Lc({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(Rc):Rc(i),o={done:!1,value:e[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:jc(e),t),a=kc(r,e,{ease:Array.isArray(s)?s:(l=e,u=s,l.map((()=>u||Mc)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const Bc=t=>{const e=({timestamp:e})=>t(e);return{start:()=>$a.update(e,!0),stop:()=>Ya(e),now:()=>Xa.isProcessing?Xa.timestamp:Du.now()}},Fc={decay:Ec,inertia:Ec,tween:Lc,keyframes:Lc,spring:Ac},Ic=t=>t/100;class Oc extends Jh{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,o=(null==i?void 0:i.KeyframeResolver)||Wh;this.resolver=new o(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=i(e)?e:Fc[e]||Lc;let u,h;l!==Lc&&"number"!=typeof t[0]&&(u=ac(Ic,mc(t[0],t[1])),t=[0,100]);const c=l({...this.options,keyframes:t});"mirror"===o&&(h=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===c.calculatedDuration&&(c.calculatedDuration=r(c));const{calculatedDuration:d}=c,p=d+s;return{generator:c,mirroredGenerator:h,mapPercentToKeyframes:u,calculatedDuration:d,resolvedDuration:p,totalDuration:p*(n+1)-s}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=n;
vendor: 13,506 bytes, line 1
1if(null===this.startTime)return s.next(0);const{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-c*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(d){const t=Math.min(this.currentTime,u)/h;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/h)):"mirror"===p&&(x=o)),y=Ol(0,1,n)*h}const P=v?{done:!1,value:a[0]}:x.next(y);r&&(P.value=r(P.value));let{done:T}=P;v||null===l||(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return w&&void 0!==i&&(P.value=_h(a,this.options,i)),f&&f(P.value),w&&this.finish(),P}get duration(){const{resolved:t}=this;return t?s(t.calculatedDuration):0}get time(){return s(this.currentTime)}set time(t){t=o(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=s(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=Bc,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Uc=new Set(["opacity","clipPath","filter","transform"]);const Nc=p((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const Wc={anticipate:qu,backInOut:Gu,circInOut:Ju};class $c extends Jh{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new Gh(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){let{duration:n=300,times:s,ease:o,type:r,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;var h;if("string"==typeof o&&m()&&o in Wc&&(o=Wc[o]),h=this.options,i(h.type)||"spring"===h.type||!g(h.ease)){const{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){const n=new Oc({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,s=h.times,o=h.ease,r="keyframes"}const c=function(t,e,n,{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const h=d(a,s);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:n,times:s,ease:o});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(f(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;a.set(_h(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:s,type:r,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return s(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return s(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=o(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return n;const{animation:i}=e;f(i,t)}else this.pendingTimeline=t;return n}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:s,ease:r,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,c=new Oc({...h,keyframes:n,duration:i,type:s,ease:r,times:a,isGenerator:!0}),d=o(this.time);t.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!(e&&e.owner&&e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=e.owner.getProps();return Nc()&&n&&Uc.has(n)&&!a&&!l&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}}const Yc={type:"spring",stiffness:500,damping:25,restSpeed:10},Xc={type:"keyframes",duration:.8},Kc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zc=(t,{keyframes:e})=>e.length>2?Xc:Rl.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Yc:Kc;const Hc=(t,e,n,i={},s,r)=>a=>{const l=v(i,t)||{},u=l.delay||i.delay||0;let{elapsed:h=0}=i;h-=o(u);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length})(l)||(c={...c,...zc(t,c)}),c.duration&&(c.duration=o(c.duration)),c.repeatDelay&&(c.repeatDelay=o(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(d=!0)),d&&!r&&void 0!==e.get()){const t=_h(c.keyframes,l);if(void 0!==t)return $a.update((()=>{c.onUpdate(t),c.onComplete()})),new y([])}return!r&&$c.supports(c)?new $c(c):new Oc(c)};function Gc({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function qc(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(r=i);const u=[],h=s&&t.animationState&&t.animationState.getState()[s];for(const c in l){const e=t.getValue(c,null!==(o=t.latestValues[c])&&void 0!==o?o:null),i=l[c];if(void 0===i||h&&Gc(h,c))continue;const s={delay:n,...v(r||{},c)};let a=!1;if(window.MotionHandoffAnimation){const e=Uu(t);if(e){const t=window.MotionHandoffAnimation(e,c,$a);null!==t&&(s.startTime=t,a=!0)}}Ou(t,c),e.start(Hc(c,e,i,t.shouldReduceMotion&&Vu.has(c)?{type:!1}:s,t,a));const d=e.animation;d&&u.push(d)}return a&&Promise.all(u).then((()=>{$a.update((()=>{a&&function(t,e){const n=Eu(t,e);let{transitionEnd:i={},transition:s={},...o}=n||{};o={...o,...i};for(const r in o)Iu(t,r,Al(o[r]))}(t,a)}))})),u}function Zc(t,e,n={}){var i;const s=Eu(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all(qc(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=1===s?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(_c).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(Zc(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function _c(t,e){return t.sortNodePosition(e)}const Jc=il.length;function Qc(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&Qc(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<Jc;n++){const i=il[n],s=t.props[i];(tl(s)||!1===s)&&(e[i]=s)}return e}const td=[...nl].reverse(),ed=nl.length;function nd(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>Zc(t,e,n)));i=Promise.all(s)}else if("string"==typeof e)i=Zc(t,e,n);else{const s="function"==typeof e?Eu(t,e,n.custom):e;i=Promise.all(qc(t,s,n))}return i.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}function id(t){let e=nd(t),n=rd(),i=!0;const s=e=>(n,i)=>{var s;const o=Eu(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function o(o){const{props:r}=t,a=Qc(t.parent)||{},l=[],u=new Set;let h={},c=1/0;for(let e=0;e<ed;e++){const d=td[e],p=n[d],m=void 0!==r[d]?r[d]:a[d],f=tl(m),g=d===o?p.isActive:null;!1===g&&(c=e);let v=m===a[d]&&m!==r[d]&&f;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...h},!p.isActive&&null===g||!m&&!p.prevProp||el(m)||"boolean"==typeof m)continue;const y=sd(p.prevProp,m);let x=y||d===o&&p.isActive&&!v&&f||e>c&&f,P=!1;const T=Array.isArray(m)?m:[m];let w=T.reduce(s(d),{});!1===g&&(w={});const{prevResolvedValues:S={}}=p,b={...S,...w},A=e=>{x=!0,u.has(e)&&(P=!0,u.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in b){const e=w[t],n=S[t];if(h.hasOwnProperty(t))continue;let i=!1;i=Sl(e)&&Sl(n)?!Au(e,n):e!==n,i?null!=e?A(t):u.add(t):void 0!==e&&u.has(t)?A(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=w,p.isActive&&(h={...h,...w}),i&&t.blockInitialAnimation&&(x=!1);x&&(!(v&&y)||P)&&l.push(...T.map((t=>({animation:t,options:{type:d}}))))}if(u.size){const e={};u.forEach((n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!=i?i:null})),l.push({animation:e})}let d=Boolean(l.length);return!i||!1!==r.initial&&r.initial!==r.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const r=o(e);for(const t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=rd(),i=!0}}}function sd(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Au(e,t)}function od(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rd(){return{animate:od(!0),whileInView:od(),whileHover:od(),whileTap:od(),whileDrag:od(),whileFocus:od(),exit:od()}}class ad{constructor(t){this.isMounted=!1,this.node=t}update(){}}let ld=0;const ud={animation:{Feature:class extends ad{constructor(t){super(t),t.animationState||(t.animationState=id(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();el(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends ad{constructor(){super(...arguments),this.id=ld++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>
1e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};function hd(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function cd(t){return{point:{x:t.pageX,y:t.pageY}}}function dd(t,e,n,i){return hd(t,e,(t=>e=>x(e)&&t(e,cd(e)))(n),i)}const pd=(t,e)=>Math.abs(t-e);class md{constructor(t,e,{transformPagePoint:n,contextWindow:i,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;const t=vd(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=pd(t.x,e.x),i=pd(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=Xa;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=fd(e,this.transformPagePoint),$a.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=vd("pointercancel"===t.type?this.lastMoveEventInfo:fd(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!x(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=fd(cd(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=Xa;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,vd(o,this.history)),this.removeListeners=ac(dd(this.contextWindow,"pointermove",this.handlePointerMove),dd(this.contextWindow,"pointerup",this.handlePointerUp),dd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ya(this.updatePoint)}}function fd(t,e){return e?{point:e(t.point)}:t}function gd(t,e){return{x:t.x-e.x,y:t.y-e.y}}function vd({point:t},e){return{point:t,delta:gd(t,xd(e)),offset:gd(t,yd(e)),velocity:Pd(e,.1)}}function yd(t){return t[0]}function xd(t){return t[t.length-1]}function Pd(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=xd(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>o(e)));)n--;if(!i)return{x:0,y:0};const a=s(r.timestamp-i.timestamp);if(0===a)return{x:0,y:0};const l={x:(r.x-i.x)/a,y:(r.y-i.y)/a};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const Td=.9999,wd=1.0001,Sd=-.01,bd=.01;function Ad(t){return t.max-t.min}function Ed(t,e,n,i=.5){t.origin=i,t.originPoint=Qh(e.min,e.max,t.origin),t.scale=Ad(n)/Ad(e),t.translate=Qh(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Td&&t.scale<=wd||isNaN(t.scale))&&(t.scale=1),(t.translate>=Sd&&t.translate<=bd||isNaN(t.translate))&&(t.translate=0)}function Vd(t,e,n,i){Ed(t.x,e.x,n.x,i?i.originX:void 0),Ed(t.y,e.y,n.y,i?i.originY:void 0)}function Cd(t,e,n){t.min=n.min+e.min,t.max=t.min+Ad(e)}function Md(t,e,n){t.min=e.min-n.min,t.max=t.min+Ad(e)}function Dd(t,e,n){Md(t.x,e.x,n.x),Md(t.y,e.y,n.y)}function Rd(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function kd(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}const jd=.35;function Ld(t,e,n){return{min:Bd(t,e),max:Bd(t,n)}}function Bd(t,e){return"number"==typeof t?t:t[e]||0}const Fd=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Id=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Od(t){return[t("x"),t("y")]}function Ud({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Nd(t){return void 0===t||1===t}function Wd({scale:t,scaleX:e,scaleY:n}){return!Nd(t)||!Nd(e)||!Nd(n)}function $d(t){return Wd(t)||Yd(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Yd(t){return Xd(t.x)||Xd(t.y)}function Xd(t){return t&&"0%"!==t}function Kd(t,e,n){return n+e*(t-n)}function zd(t,e,n,i,s){return void 0!==s&&(t=Kd(t,s,i)),Kd(t,n,i)+e}function Hd(t,e=0,n=1,i,s){t.min=zd(t.min,e,n,i,s),t.max=zd(t.max,e,n,i,s)}function Gd(t,{x:e,y:n}){Hd(t.x,e.translate,e.scale,e.originPoint),Hd(t.y,n.translate,n.scale,n.originPoint)}const qd=.999999999999,Zd=1.0000000000001;function _d(t,e){t.min=t.min+e,t.max=t.max+e}function Jd(t,e,n,i,s=.5){Hd(t,e,n,Qh(t.min,t.max,s),i)}function Qd(t,e){Jd(t.x,e.x,e.scaleX,e.scale,e.originX),Jd(t.y,e.y,e.scaleY,e.scale,e.originY)}function tp(t,e){return Ud(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const ep=({current:t})=>t?t.ownerDocument.defaultView:null,np=new WeakMap;class ip{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=Id(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new md(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(cd(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=P(n),!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),Od((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Xl.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=Ad(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),s&&$a.postRender((()=>s(t,e))),Ou(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Od((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:ep(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&$a.postRender((()=>s(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!sp(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?Qh(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?Qh(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&ul(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,{top:e,left:n,bottom:i,right:s}){return{x:Rd(t.x,n,s),y:Rd(t.y,e,i)}}(i.layoutBox,e),this.elastic=function(t=jd){return!1===t?t=0:!0===t&&(t=jd),{x:Ld(t,"left","right"),y:Ld(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Od((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!ul(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=function(t,e,n){const i=tp(t,n),{scroll:s}=e;return s&&(_d(i.x,s.offset.x),_d(i.y,s.offset.y)),i}(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:kd(t.x,e.x),y:kd(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=Ud(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=Od((r=>{if(!sp(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,h=i?40:1e7,c={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,c)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return Ou(this.visualElement,t),n.start(Hc(t,n,0,e,this.visualElement,!1))}stopAnimation(){Od((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){Od((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Od((e=>{const{drag:n}=this.getProps();if(!sp(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-Qh(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!ul(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Od((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=Ad(t),s=Ad(e);return s>i?n=c(e.min,e.max-i,t.min):i>
vendor: 4,344 bytes, line 1
1s&&(n=c(t.min,t.max-s,e.min)),Ol(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Od((e=>{if(!sp(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set(Qh(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;np.set(this.visualElement,this);const t=dd(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();ul(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),$a.read(e);const s=hd(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Od((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=jd,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function sp(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const op=t=>(e,n)=>{t&&$a.postRender((()=>t(e,n)))};const rp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ap(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const lp={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Kl.test(t))return t;t=parseFloat(t)}return`${ap(t,e.target.x)}% ${ap(t,e.target.y)}%`}},up={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=Th.parse(t);if(s.length>5)return i;const o=Th.createTransformer(t),r="number"!=typeof s[0]?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const u=Qh(a,l,.5);return"number"==typeof s[2+r]&&(s[2+r]/=u),"number"==typeof s[3+r]&&(s[3+r]/=u),o(s)}};class hp extends t.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;var o;o=dp,Object.assign(du,o),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),rp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||$a.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),pl.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function cp(n){const[i,s]=ja(),o=t.useContext(Aa);return e.jsx(hp,{...n,layoutGroup:o,switchLayoutGroup:t.useContext(ml),isPresent:i,safeToRemove:s})}const dp={borderRadius:{...lp,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lp,borderTopRightRadius:lp,borderBottomLeftRadius:lp,borderBottomRightRadius:lp,boxShadow:up};const pp=(t,e)=>t.depth-e.depth;class mp{constructor(){this.children=[],this.isDirty=!1}add(t){Ru(this.children,t),this.isDirty=!0}remove(t){ku(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pp),this.isDirty=!1,this.children.forEach(t)}}const fp=["TopLeft","TopRight","BottomLeft","BottomRight"],gp=fp.length,vp=t=>"string"==typeof t?parseFloat(t):t,yp=t=>"number"==typeof t||Kl.test(t);function xp(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Pp=wp(0,.5,_u),Tp=wp(.5,.95,n);function wp(t,e,n){return i=>i<t?0:i>
1e?1:n(c(t,e,i))}function Sp(t,e){t.min=e.min,t.max=e.max}function bp(t,e){Sp(t.x,e.x),Sp(t.y,e.y)}function Ap(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ep(t,e,n,i,s){return t=Kd(t-=e,1/n,i),void 0!==s&&(t=Kd(t,1/s,i)),t}function Vp(t,e,[n,i,s],o,r){!function(t,e=0,n=1,i=.5,s,o=t,r=t){Xl.test(e)&&(e=parseFloat(e),e=Qh(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=Qh(o.min,o.max,i);t===o&&(a-=e),t.min=Ep(t.min,e,n,a,s),t.max=Ep(t.max,e,n,a,s)}(t,e[n],e[i],e[s],e.scale,o,r)}const Cp=["x","scaleX","originX"],Mp=["y","scaleY","originY"];function Dp(t,e,n,i){Vp(t.x,e,Cp,n?n.x:void 0,i?i.x:void 0),Vp(t.y,e,Mp,n?n.y:void 0,i?i.y:void 0)}function Rp(t){return 0===t.translate&&1===t.scale}function kp(t){return Rp(t.x)&&Rp(t.y)}function jp(t,e){return t.min===e.min&&t.max===e.max}function Lp(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Bp(t,e){return Lp(t.x,e.x)&&Lp(t.y,e.y)}function Fp(t){return Ad(t.x)/Ad(t.y)}function Ip(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Op{constructor(){this.members=[]}add(t){Ru(this.members,t),t.scheduleRender()}remove(t){if(ku(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Up={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Np="undefined"!=typeof window&&void 0!==window.MotionDebug,Wp=["","X","Y","Z"],$p={visibility:"hidden"};let Yp=0;function Xp(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Kp(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Uu(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",$a,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Kp(i)}function zp({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Yp++,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,Np&&(Up.totalNodes=Up.resolvedTargetDeltas=Up.recalculatedProjection=0),this.nodes.forEach(qp),this.nodes.forEach(nm),this.nodes.forEach(im),this.nodes.forEach(Zp),Np&&window.MotionDebug.record(Up)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new mp)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ju),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;const{layoutId:s,layout:o,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||s)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=Du.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(Ya(i),t(o-e))};return $a.read(i,!0),()=>Ya(i)}(i,250),rp.hasAnimatedSinceResize&&(rp.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(em))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||r.getDefaultTransition()||um,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!Bp(this.targetLayout,i)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...v(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||em(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ya(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(sm),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Kp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const t=this.path[s];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Jp);this.isUpdating||this.nodes.forEach(Qp),this.isUpdating=!1,this.nodes.forEach(tm),this.nodes.forEach(Hp),this.nodes.forEach(Gp),this.clearAllSnapshots();const t=Du.now();Xa.delta=Ol(0,1e3/60,t-Xa.timestamp),Xa.timestamp=t,Xa.isProcessing=!0,Ka.update.process(Xa),Ka.preRender.process(Xa),Ka.render.process(Xa),Xa.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_p),this.sharedNodes.forEach(om)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$a.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$a.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Id(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!kp(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&(e||$d(this.latestValues)||o)&&(s(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),dm((i=n).x),dm(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return Id();const n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(mm))){const{scroll:t}=this.root;t&&(_d(n.x,t.offset.x),_d(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n=Id();if(bp(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let i=0;i<this.path.length;i++){const e=this.path[i],{scroll:s,options:o}=e;e!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&bp(n,t),_d(n.x,s.offset.x),_d(n.y,s.offset.y))}return n}applyTransform(t,e=!1){const n=Id();bp(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&Qd(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),$d(t.latestValues)&&Qd(n,t.latestValues)}return $d(this.latestValues)&&Qd(n,this.latestValues),n}removeTransform(t){const e=Id();bp(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!$d(t.latestValues))continue;Wd(t.latestValues)&&t.updateSnapshot();const i=Id();bp(i,t.measurePageBox()),Dp(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return $d(this.latestValues)&&Dp(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!==Xa.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=Xa.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Id(),this.relativeTargetOrigin=Id(),Dd(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),bp(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,l;if(this.target||(this.target=Id(),this.targetWithTransforms=Id()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,Cd(r.x,a.x,l.x),Cd(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):bp(this.target,this.layout.layoutBox),Gd(this.target,this.targetDelta)):bp(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Id(),this.relativeTargetOrigin=Id(),Dd(this.relativeTargetOrigin,this.target,t.target),bp(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Np&&Up.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Wd(this.parent.latestValues)&&!Yd(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===Xa.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;bp(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,i=!1){const s=n.length;if(!s)return;let o,r;e.x=e.y=1;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const{visualElement:s}=o.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Qd(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Gd(t,r)),i&&$d(o.latestValues)&&Qd(t,o.latestValues))}e.x<Zd&&e.x>qd&&(e.x=1),e.y<Zd&&e.y>qd&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=Id());const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Ap(this.prevProjectionDelta.x,this.projectionDelta.x),Ap(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Vd(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&Ip(this.projectionDelta.x,this.prevProjectionDelta.x)&&Ip(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Np&&Up.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fd(),this.projectionDelta=Fd(),this.projectionDeltaWithTransform=Fd()}setAnimationOrigin(t,e=!1){const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o=Fd();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r=Id(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,h=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(lm));let c;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,g;rm(o.x,t.x,n),rm(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dd(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,g=n,am(p.x,m.x,f.x,g),am(p.y,m.y,f.y,g),c&&
1(l=this.relativeTarget,d=c,jp(l.x,d.x)&&jp(l.y,d.y))&&(this.isProjectionDirty=!1),c||(c=Id()),bp(c,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=Qh(0,void 0!==n.opacity?n.opacity:1,Pp(i)),t.opacityExit=Qh(void 0!==e.opacity?e.opacity:1,0,Tp(i))):o&&(t.opacity=Qh(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r<gp;r++){const s=`border${fp[r]}Radius`;let o=xp(e,s),a=xp(n,s);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||yp(o)===yp(a)?(t[s]=Math.max(Qh(vp(o),vp(a),i),0),(Xl.test(a)||Xl.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=Qh(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,h,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ya(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$a.update((()=>{rp.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const i=El(t)?t:Fu(t);return i.start(Hc("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{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);const 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(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&pm(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||Id();const e=Ad(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=Ad(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}bp(e,n),Qd(e,s),Vd(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Op);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&Xp("z",t,i,this.animationValues);for(let s=0;s<Wp.length;s++)Xp(`rotate${Wp[s]}`,t,i,this.animationValues),Xp(`skew${Wp[s]}`,t,i,this.animationValues);t.render();for(const s in i)t.setStaticValue(s,i[s]),this.animationValues&&(this.animationValues[s]=i[s]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return $p;const i={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=Vl(null==t?void 0:t.pointerEvents)||"",i.transform=s?s(this.latestValues,""):"none",i;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Vl(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!$d(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const r=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==n?void 0:n.z)||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),s&&(i.transform=s(r,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:i.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const u in du){if(void 0===r[u])continue;const{correct:t,applyTo:e}=du[u],n="none"===i.transform?r[u]:t(r[u],o);if(e){const t=e.length;for(let s=0;s<t;s++)i[e[s]]=n}else i[u]=n}return this.options.layoutId&&(i.pointerEvents=o===this?Vl(null==t?void 0:t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Jp),this.root.sharedNodes.clear()}}}function Hp(t){t.updateLayout()}function Gp(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?Od((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=Ad(i);i.min=e[t].min,i.max=i.min+s})):pm(s,n.layoutBox,e)&&Od((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=Ad(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r=Fd();Vd(r,e,n.layoutBox);const a=Fd();o?Vd(a,t.applyTransform(i,!0),n.measuredBox):Vd(a,e,n.layoutBox);const l=!kp(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r=Id();Dd(r,n.layoutBox,s.layoutBox);const a=Id();Dd(a,e,o.layoutBox),Bp(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function qp(t){Np&&Up.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Zp(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function _p(t){t.clearSnapshot()}function Jp(t){t.clearMeasurements()}function Qp(t){t.isLayoutDirty=!1}function tm(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function em(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nm(t){t.resolveTargetDelta()}function im(t){t.calcProjection()}function sm(t){t.resetSkewAndRotation()}function om(t){t.removeLeadSnapshot()}function rm(t,e,n){t.translate=Qh(e.translate,0,n),t.scale=Qh(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function am(t,e,n,i){t.min=Qh(e.min,n.min,i),t.max=Qh(e.max,n.max,i)}function lm(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const um={duration:.45,ease:[.4,0,.1,1]},hm=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),cm=hm("applewebkit/")&&!hm("chrome/")?Math.round:n;function dm(t){t.min=cm(t.min),t.max=cm(t.max)}function pm(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Fp(e),s=Fp(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function mm(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const fm=zp({attachResizeListener:(t,e)=>hd(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gm={current:void 0},vm=zp({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!gm.current){const t=new fm({});t.mount(window),t.setOptions({layoutScroll:!0}),gm.current=t}return gm.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),ym={pan:{Feature:class extends ad{constructor(){super(...arguments),this.removePointerDownListener=n}onPointerDown(t){this.session=new md(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ep(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:op(t),onStart:op(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&$a.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=dd(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ad{constructor(t){super(t),this.removeGroupControls=n,this.removeListeners=n,this.controls=new ip(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||n}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:vm,MeasureLayout:cp}};function xm(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&$a.postRender((()=>s(e,cd(e))))}function Pm(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&$a.postRender((()=>s(e,cd(e))))}const Tm=new WeakMap,wm=new WeakMap,Sm=t=>{const e=Tm.get(t.target);e&&e(t)}
1,bm=t=>{t.forEach(Sm)};function Am(t,e,n){const i=function({root:t,...e}){const n=t||document;wm.has(n)||wm.set(n,{});const i=wm.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(bm,{root:t,...e})),i[s]}(e);return Tm.set(t,n),i.observe(t),()=>{Tm.delete(t),i.unobserve(t)}}const Em={some:0,all:1};const Vm={inView:{Feature:class extends ad{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Em[i]};return Am(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ad{mount(){const{current:t}=this.node;t&&(this.unmount=w(t,(t=>(Pm(this.node,t,"Start"),(t,{success:e})=>Pm(this.node,t,e?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ad{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=ac(hd(this.node.current,"focus",(()=>this.onFocus())),hd(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends ad{mount(){const{current:t}=this.node;t&&(this.unmount=T(t,(t=>(xm(this.node,t,"Start"),t=>xm(this.node,t,"End")))))}unmount(){}}}},Cm={layout:{ProjectionNode:vm,MeasureLayout:cp}},Mm={current:null},Dm={current:!1};const Rm=[...zh,uh,Th],km=new WeakMap;const jm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Lm{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Wh,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=()=>{const t=Du.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,$a.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=sl(e),this.isVariantNode=ol(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const d in c){const t=c[d];void 0!==a[d]&&El(t)&&t.set(a[d],!1)}}mount(t){this.current=t,km.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))),Dm.current||function(){if(Dm.current=!0,Fa)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Mm.current=t.matches;t.addListener(e),e()}else Mm.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Mm.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){km.delete(this.current),this.projection&&this.projection.unmount(),Ya(this.notifyUpdate),Ya(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=Rl.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&$a.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),s(),o&&o(),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 Ga){const e=Ga[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];
vendor: 4,601 bytes, line 1
1e.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):Id()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<jm.length;n++){const e=jm[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if(El(s))t.addValue(i,s);else if(El(o))t.addValue(i,Fu(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,Fu(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Fu(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=i&&("string"==typeof i&&($h(i)||Qu(i))?i=parseFloat(i):(s=i,!Rm.find(Kh(s))&&Th.test(e)&&(i=Ch(t,e))),this.setBaseTarget(t,El(i)?i.get():i)),El(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=wl(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||El(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new ju),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Bm extends Lm{constructor(){super(...arguments),this.KeyframeResolver=Gh}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;El(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class Fm extends Bm{constructor(){super(...arguments),this.type="html",this.renderInstance=uu}readValueFromInstance(t,e){if(Rl.has(e)){const t=Vh(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=(jl(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return tp(t,e)}build(t,e,n){eu(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return mu(t,e,n)}}class Im extends Bm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Id}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Rl.has(e)){const t=Vh(e);return t&&t.default||0}return e=hu.has(e)?e:cl(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return fu(t,e,n)}
1build(t,e,n){ou(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){cu(t,e,0,i)}mount(t){this.isSVGTag=lu(t.tagName),super.mount(t)}}const Om=Ja(bu({...ud,...Vm,...ym,...Cm},((e,n)=>Pl(e)?new Im(n):new Fm(n,{allowProjection:e!==t.Fragment}))));export{wi as A,Om as a,Oa as b,ba as m};
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.