vendor: 3,551 bytes, lines 1-9
1import{r as x}from"./vendor-react-BxT8pxNE.js";var Us={exports:{}},Zt={};/** 2 * @license React 3 * react-jsx-runtime.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Ar=x,Vr=Symbol.for("react.element"),Cr=Symbol.for("react.fragment"),Mr=Object.prototype.hasOwnProperty,Dr=Ar.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Er={key:!0,ref:!0,__self:!0,__source:!0};function Ws(t,e,n){var s,i={},o=null,r=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(r=e.ref);for(s in e)Mr.call(e,s)&&!Er.hasOwnProperty(s)&&(i[s]=e[s]);if(t&&t.defaultProps)for(s in e=t.defaultProps,e)i[s]===void 0&&(i[s]=e[s]);return{$$typeof:Vr,type:t,key:o,ref:r,props:i,_owner:Dr.current}}Zt.Fragment=Cr;Zt.jsx=Ws;Zt.jsxs=Ws;Us.exports=Zt;var Y=Us.exports;const Ke=x.createContext({});function _e(t){const e=x.useRef(null);return e.current===null&&(e.current=t()),e.current}const $s=typeof window<"u",Ks=$s?x.useLayoutEffect:x.useEffect,Jt=x.createContext(null);function Ge(t,e){t.indexOf(e)===-1&&t.push(e)}function He(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const X=(t,e,n)=>n>e?e:n<t?t:n;let Qt=()=>{},mt=()=>{};const q={},_s=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Gs(t){return typeof t=="object"&&t!==null}const Hs=t=>/^0[^.\s]+$/u.test(t);function ze(t){let e;return()=>(e===void 0&&(e=t()),e)}const $=t=>t,Rr=(t,e)=>n=>e(t(n)),Lt=(...t)=>t.reduce(Rr),Ct=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Xe{constructor(){this.subscriptions=[]}add(e){return Ge(this.subscriptions,e),()=>He(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const H=t=>t*1e3,W=t=>t/1e3;function zs(t,e){return e?t*(1e3/e):0}const Xs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Lr=1e-7,kr=12;function Fr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Xs(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Lr&&++a<kr);return r}function kt(t,e,n,s){if(t===e&&n===s)return $;const i=o=>Fr(o,0,1,t,n);return o=>o===0||o===1?o:Xs(i(o),e,s)}const Ys=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,qs=t=>e=>1-t(1-e),Zs=kt(.33,1.53,.69,.99),Ye=qs(Zs),Js=Ys(Ye),Qs=t=>(t*=2)<1?.5*Ye(t):.5*(2-Math.pow(2,-10*(t-1))),qe=t=>1-Math.sin(Math.acos(t)),ti=qs(qe),ei=Ys(qe),Ir=kt(.42,0,1,1),Br=kt(0,0,.58,1),ni=kt(.42,0,.58,1),Or=t=>Array.isArray(t)&&typeof t[0]!="number",si=t=>Array.isArray(t)&&typeof t[0]=="number",Pn={linear:$,easeIn:Ir,easeInOut:ni,easeOut:Br,circIn:qe,circInOut:ei,circOut:ti,backIn:Ye,backInOut:Js,backOut:Zs,anticipate:Qs},jr=t=>typeof t=="string",bn=t=>{if(si(t)){mt(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,s,i]=t;return kt(e,n,s,i)}else if(jr(t))return mt(Pn[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),Pn[t];return t},Bt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],An={value:null,addProjectionMetrics:null};function Nr(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(h){r.has(h)&&(c.schedule(h),t()),l++,h(a)}const c={schedule:(h,f=!1,d=!1)=>{const p=d&&i?n:s;return f&&r.add(h),p.has(h)||p.add(h),h},cancel:h=>{s.delete(h),r.delete(h)},process:h=>{if(a=h,i){o=!0;return}
vendor: 59,583 bytes, line 9
9i=!0,[n,s]=[s,n],n.forEach(u),e&&An.value&&An.value.frameloop[e].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(h))}};return c}const Ur=40;function ii(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Bt.reduce((v,P)=>(v[P]=Nr(o,e?P:void 0),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:f,render:d,postRender:m}=r,p=()=>{const v=q.useManualTiming?i.timestamp:performance.now();n=!1,q.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,Ur),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(p))},y=()=>{n=!0,s=!0,i.isProcessing||t(p)};return{schedule:Bt.reduce((v,P)=>{const w=r[P];return v[P]=(V,M=!1,b=!1)=>(n||y(),w.schedule(V,M,b)),v},{}),cancel:v=>{for(let P=0;P<Bt.length;P++)r[Bt[P]].cancel(v)},state:i,steps:r}}const{schedule:C,cancel:Q,state:I,steps:ie}=ii(typeof requestAnimationFrame<"u"?requestAnimationFrame:$,!0);let Ut;function Wr(){Ut=void 0}const O={now:()=>(Ut===void 0&&O.set(I.isProcessing||q.useManualTiming?I.timestamp:performance.now()),Ut),set:t=>{Ut=t,queueMicrotask(Wr)}},ri=t=>e=>typeof e=="string"&&e.startsWith(t),oi=ri("--"),$r=ri("var(--"),Ze=t=>$r(t)?Kr.test(t.split("/*")[0].trim()):!1,Kr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Vn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const gt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Mt={...gt,transform:t=>X(0,1,t)},Ot={...gt,default:1},Pt=t=>Math.round(t*1e5)/1e5,Je=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _r(t){return t==null}const Gr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Qe=(t,e)=>n=>!!(typeof n=="string"&&Gr.test(n)&&n.startsWith(t)||e&&!_r(n)&&Object.prototype.hasOwnProperty.call(n,e)),ai=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Je);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Hr=t=>X(0,255,t),re={...gt,transform:t=>Math.round(Hr(t))},rt={test:Qe("rgb","red"),parse:ai("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+re.transform(t)+", "+re.transform(e)+", "+re.transform(n)+", "+Pt(Mt.transform(s))+")"};function zr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Te={test:Qe("#"),parse:zr,transform:rt.transform},Ft=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Z=Ft("deg"),z=Ft("%"),T=Ft("px"),Xr=Ft("vh"),Yr=Ft("vw"),Cn={...z,parse:t=>z.parse(t)/100,transform:t=>z.transform(t*100)},ct={test:Qe("hsl","hue"),parse:ai("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+z.transform(Pt(e))+", "+z.transform(Pt(n))+", "+Pt(Mt.transform(s))+")"},R={test:t=>rt.test(t)||Te.test(t)||ct.test(t),parse:t=>rt.test(t)?rt.parse(t):ct.test(t)?ct.parse(t):Te.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?rt.transform(t):ct.transform(t),getAnimatableNone:t=>{const e=R.parse(t);return e.alpha=0,R.transform(e)}},qr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Zr(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Je))==null?void 0:e.length)||0)+(((n=t.match(qr))==null?void 0:n.length)||0)>0}const li="number",ci="color",Jr="var",Qr="var(",Mn="${}",to=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Dt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(to,l=>(R.test(l)?(s.color.push(o),i.push(ci),n.push(R.parse(l))):l.startsWith(Qr)?(s.var.push(o),i.push(Jr),n.push(l)):(s.number.push(o),i.push(li),n.push(parseFloat(l))),++o,Mn)).split(Mn);return{values:n,split:a,indexes:s,types:i}}function ui(t){return Dt(t).values}function hi(t){const{split:e,types:n}=Dt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===li?o+=Pt(i[r]):a===ci?o+=R.transform(i[r]):o+=i[r]}return o}}const eo=t=>typeof t=="number"?0:R.test(t)?R.getAnimatableNone(t):t;function no(t){const e=ui(t);return hi(t)(e.map(eo))}const tt={test:Zr,parse:ui,createTransformer:hi,getAnimatableNone:no};function oe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function so({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=oe(l,a,t+1/3),o=oe(l,a,t),r=oe(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function _t(t,e){return n=>n>0?e:t}const E=(t,e,n)=>t+(e-t)*n,ae=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},io=[Te,rt,ct],ro=t=>io.find(e=>e.test(t));function Dn(t){const e=ro(t);if(Qt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===ct&&(n=so(n)),n}const En=(t,e)=>{const n=Dn(t),s=Dn(e);if(!n||!s)return _t(t,e);const i={...n};return o=>(i.red=ae(n.red,s.red,o),i.green=ae(n.green,s.green,o),i.blue=ae(n.blue,s.blue,o),i.alpha=E(n.alpha,s.alpha,o),rt.transform(i))},Se=new Set(["none","hidden"]);function oo(t,e){return Se.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ao(t,e){return n=>E(t,e,n)}function tn(t){return typeof t=="number"?ao:typeof t=="string"?Ze(t)?_t:R.test(t)?En:uo:Array.isArray(t)?fi:typeof t=="object"?R.test(t)?En:lo:_t}function fi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>tn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function lo(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=tn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function co(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const uo=(t,e)=>{const n=tt.createTransformer(e),s=Dt(t),i=Dt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Se.has(t)&&!i.values.length||Se.has(e)&&!s.values.length?oo(t,e):Lt(fi(co(s,i),i.values),n):(Qt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),_t(t,e))};function di(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?E(t,e,n):tn(t)(t,e)}const ho=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>C.update(e,n),stop:()=>Q(e),now:()=>I.isProcessing?I.timestamp:O.now()}},mi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Gt=2e4;function en(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Gt;)e+=n,s=t.next(e);return e>=Gt?1/0:e}function fo(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(en(s),Gt);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:W(i)}}const mo=5;function pi(t,e,n){const s=Math.max(e-mo,0);return zs(n-t(s),e-s)}const D={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},le=.001;function po({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:s=D.mass}){let i,o;Qt(t<=H(D.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-e;r=X(D.minDamping,D.maxDamping,r),t=X(D.minDuration,D.maxDuration,W(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=we(u,r),m=Math.exp(-h);return le-f/d*m},o=u=>{const h=u*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-h),p=we(Math.pow(u,2),r);return(-i(u)+le>0?-1:1)*((f-d)*m)/p}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-le+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=yo(i,o,a);if(t=H(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const go=12;function yo(t,e,n){let s=n;for(let i=1;i<go;i++)s=s-t(s)/e(s);return s}function we(t,e){return t*Math.sqrt(1-e*e)}const vo=["duration","bounce"],xo=["stiffness","damping","mass"];function Rn(t,e){return e.some(n=>t[n]!==void 0)}function To(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!Rn(t,xo)&&Rn(t,vo))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*X(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:o}}else{const n=po(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function Ht(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=To({...n,velocity:-W(n.velocity||0)}),m=f||0,p=u/(2*Math.sqrt(l*c)),y=r-o,g=W(Math.sqrt(l/c)),S=Math.abs(y)<5;s||(s=S?D.restSpeed.granular:D.restSpeed.default),i||(i=S?D.restDelta.granular:D.restDelta.default);let v;if(p<1){const w=we(g,p);v=V=>{const M=Math.exp(-p*g*V);return r-M*((m+p*g*y)/w*Math.sin(w*V)+y*Math.cos(w*V))}}else if(p===1)v=w=>r-Math.exp(-g*w)*(y+(m+g*y)*w);else{const w=g*Math.sqrt(p*p-1);v=V=>{const M=Math.exp(-p*g*V),b=Math.min(w*V,300);return r-M*((m+p*g*y)*Math.sinh(b)+w*y*Math.cosh(b))/w}}const P={calculatedDuration:d&&h||null,next:w=>{const V=v(w);if(d)a.done=w>=h;else{let M=w===0?m:0;p<1&&(M=w===0?H(m):pi(v,w,V));const b=Math.abs(M)<=s,A=Math.abs(r-V)<=i;a.done=b&&A}return a.value=a.done?r:V,a},toString:()=>{const w=Math.min(en(P),Gt),V=mi(M=>P.next(w*M).value,w,30);return w+"ms "+V},toTransition:()=>{}};return P}Ht.applyToOptions=t=>{const e=fo(t,100,Ht);return t.ease=e.ease,t.duration=H(e.duration),t.type="keyframes",t};function Pe({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=b=>a!==void 0&&b<a||l!==void 0&&b>l,m=b=>a===void 0?l:l===void 0||Math.abs(a-b)<Math.abs(l-b)?a:l;let p=n*e;const y=h+p,g=r===void 0?y:r(y);g!==y&&(p=g-h);const S=b=>-p*Math.exp(-b/s),v=b=>g+S(b),P=b=>{const A=S(b),L=v(b);f.done=Math.abs(A)<=u,f.value=f.done?g:L};let w,V;const M=b=>{d(f.value)&&(w=b,V=Ht({keyframes:[f.value,m(f.value)],velocity:pi(v,b,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return M(0),{calculatedDuration:null,next:b=>{let A=!1;return!V&&w===void 0&&(A=!0,P(b),M(b)),w!==void 0&&b>=w?V.next(b-w):(!A&&P(b),f)}}}function So(t,e,n){const s=[],i=n||q.mix||di,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||$:e;a=Lt(l,a)}s.push(a)}return s}function wo(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(mt(o===e.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>e[0];if(o===2&&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=So(e,s,i),l=a.length,u=c=>{if(r&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=Ct(t[h],t[h+1],c);return a[h](f)};return n?c=>u(X(t[0],t[o-1],c)):u}function Po(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Ct(0,e,s);t.push(E(n,1,i))}}function bo(t){const e=[0];return Po(e,t.length-1),e}function Ao(t,e){return t.map(n=>n*e)}function Vo(t,e){return t.map(()=>e||ni).splice(0,t.length-1)}function bt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Or(s)?s.map(bn):bn(s),o={done:!1,value:e[0]},r=Ao(n&&n.length===e.length?n:bo(e),t),a=wo(r,e,{ease:Array.isArray(i)?i:Vo(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Co=t=>t!==null;function nn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Co),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Mo={decay:Pe,inertia:Pe,tween:bt,keyframes:bt,spring:Ht};function gi(t){typeof t.type=="string"&&(t.type=Mo[t.type])}class sn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Do=t=>t/100;class rn extends sn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;gi(e);const{type:n=bt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||bt;l!==bt&&typeof a[0]!="number"&&(this.mixKeyframes=Lt(Do,di(a[0],a[1])),a=[0,100]);const u=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=en(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:c,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,P=s;if(h){const b=Math.min(this.currentTime,i)/a;let A=Math.floor(b),L=b%1;!L&&b>=1&&(L=1),L===1&&A--,A=Math.min(A,h+1),!!(A%2)&&(f==="reverse"?(L=1-L,d&&(L-=d/a)):f==="mirror"&&(P=r)),v=X(0,1,L)*a}const w=S?{done:!1,value:c[0]}:P.next(v);o&&(w.value=o(w.value));let{done:V}=w;!S&&l!==null&&(V=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return M&&m!==Pe&&(w.value=nn(c,this.options,y,this.speed)),p&&p(w.value),M&&this.finish(),w}then(e,n){return this.finished.then(e,n)}get duration(){return W(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+W(e)}get time(){return W(this.currentTime)}set time(e){var n;e=H(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(O.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=W(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=ho,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),(o=(i=this.options).onPlay)==null||o.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(O.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Eo(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ot=t=>t*180/Math.PI,be=t=>{const e=ot(Math.atan2(t[1],t[0]));return Ae(e)},Ro={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:be,rotateZ:be,skewX:t=>ot(Math.atan(t[1])),skewY:t=>ot(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ae=t=>(t=t%360,t<0&&(t+=360),t),Ln=be,kn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Fn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Lo={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:kn,scaleY:Fn,scale:t=>(kn(t)+Fn(t))/2,rotateX:t=>Ae(ot(Math.atan2(t[6],t[5]))),rotateY:t=>Ae(ot(Math.atan2(-t[2],t[0]))),rotateZ:Ln,rotate:Ln,skewX:t=>ot(Math.atan(t[4])),skewY:t=>ot(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ve(t){return t.includes("scale")?1:0}function Ce(t,e){if(!t||t==="none")return Ve(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Lo,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Ro,i=a}if(!i)return Ve(e);const o=s[e],r=i[1].split(",").map(Fo);return typeof o=="function"?o(r):r[o]}const ko=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ce(n,e)};function Fo(t){return parseFloat(t.trim())}const yt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vt=new Set(yt),In=t=>t===gt||t===T,Io=new Set(["x","y","z"]),Bo=yt.filter(t=>!Io.has(t));function Oo(t){const e=[];return Bo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const J={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})=>Ce(e,"x"),y:(t,{transform:e})=>Ce(e,"y")};J.translateX=J.x;J.translateY=J.y;const at=new Set;let Me=!1,De=!1,Ee=!1;function yi(){if(De){const t=Array.from(at).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Oo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))==null||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}De=!1,Me=!1,at.forEach(t=>t.complete(Ee)),at.clear()}function vi(){at.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(De=!0)})}function jo(){Ee=!0,vi(),yi(),Ee=!1}class on{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(at.add(this),Me||(Me=!0,C.read(vi),C.resolveKeyframes(yi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}Eo(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),at.delete(this)}cancel(){this.state==="scheduled"&&(at.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const No=t=>t.startsWith("--");function Uo(t,e,n){No(e)?t.style.setProperty(e,n):t.style[e]=n}const Wo=ze(()=>window.ScrollTimeline!==void 0),$o={};function Ko(t,e){const n=ze(t);return()=>$o[e]??n()}const xi=Ko(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),St=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Bn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:St([0,.65,.55,1]),circOut:St([.55,0,1,.45]),backIn:St([.31,.01,.66,-.59]),backOut:St([.33,1.53,.69,.99])};function Ti(t,e){if(t)return typeof t=="function"?xi()?mi(t,e):"ease-out":si(t)?St(t):Array.isArray(t)?t.map(n=>Ti(n,e)||Bn.easeOut):Bn[t]}function _o(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const h=Ti(a,i);Array.isArray(h)&&(c.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(c,f)}function Si(t){return typeof t=="function"&&"applyToOptions"in t}function Go({type:t,...e}){return Si(t)&&xi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ho extends sn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,mt(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Go(e);this.animation=_o(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=nn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Uo(n,s,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return W(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+W(e)}get time(){return W(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=H(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Wo()?(this.animation.timeline=e,$):n(this)}}const wi={anticipate:Qs,backInOut:Js,circInOut:ei};function zo(t){return t in wi}function Xo(t){typeof t.ease=="string"&&zo(t.ease)&&(t.ease=wi[t.ease])}const ce=10;class Yo extends Ho{constructor(e){Xo(e),gi(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new rn({...r,autoplay:!1}),l=Math.max(ce,O.now()-this.startTime),u=X(0,ce,l-ce);n.setWithVelocity(a.sample(Math.max(0,l-u)).value,a.sample(l).value,u),a.stop()}}const On=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(tt.test(t)||t==="0")&&!t.startsWith("url("));function qo(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Zo(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=On(i,e),a=On(o,e);return Qt(r===a,`You are trying to animate ${e} from "${i}" to "${o}". "${r?o:i}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:qo(t)||(n==="spring"||Si(n))&&s}function Re(t){t.duration=0,t.type="keyframes"}const Jo=new Set(["opacity","clipPath","filter","transform"]),Qo=ze(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ta(t){var c;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(((c=e==null?void 0:e.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return Qo()&&n&&Jo.has(n)&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const ea=40;class na extends sn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:u,element:c,...h}){var m;super(),this.stop=()=>{var p,y;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=O.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:u,element:c,...h},d=(c==null?void 0:c.KeyframeResolver)||on;this.keyframeResolver=new d(a,(p,y,g)=>this.onKeyframesResolved(p,y,f,!g),l,u,c),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(e,n,s,i){var y,g;this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=O.now(),Zo(e,o,r,a)||((q.instantAnimations||!l)&&(c==null||c(nn(e,s,n))),e[0]=e[e.length-1],Re(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ea?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!u&&ta(f),m=(g=(y=f.motionValue)==null?void 0:y.owner)==null?void 0:g.current,p=d?new Yo({...f,element:m}):new rn(f);p.finished.then(()=>{this.notifyFinished()}).catch($),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),jo()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function Pi(t,e,n,s=0,i=1){const o=Array.from(t).sort((u,c)=>u.sortNodePosition(c)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const sa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ia(t){const e=sa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const ra=4;function bi(t,e,n=1){mt(n<=ra,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[s,i]=ia(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return _s(r)?parseFloat(r):r}return Ze(i)?bi(i,e,n+1):i}const oa={type:"spring",stiffness:500,damping:25,restSpeed:10},aa=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),la={type:"keyframes",duration:.8},ca={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ua=(t,{keyframes:e})=>e.length>2?la:vt.has(t)?t.startsWith("scale")?aa(e[1]):oa:ca,ha=t=>t!==null;function fa(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(ha),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}function an(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}function da({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const ln=(t,e,n,s={},i,o)=>r=>{const a=an(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-H(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};da(a)||Object.assign(c,ua(t,c)),c.duration&&(c.duration=H(c.duration)),c.repeatDelay&&(c.repeatDelay=H(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Re(c),c.delay===0&&(h=!0)),(q.instantAnimations||q.skipAnimations)&&(h=!0,Re(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=fa(c.keyframes,a);if(f!==void 0){C.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new rn(c):new na(c)};function jn(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function cn(t,e,n,s){if(typeof e=="function"){const[i,o]=jn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=jn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function dt(t,e,n){const s=t.getProps();return cn(s,e,n!==void 0?n:s.custom,t)}const Ai=new Set(["width","height","top","left","right","bottom",...yt]),Nn=30,ma=t=>!isNaN(parseFloat(t));class pa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var o;const i=O.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=O.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ma(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Xe);const s=this.events[e].add(n);return e==="change"?()=>{s(),C.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Nn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Nn);return zs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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 e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pt(t,e){return new pa(t,e)}const Le=t=>Array.isArray(t);function ga(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,pt(n))}function ya(t){return Le(t)?t[t.length-1]||0:t}function va(t,e){const n=dt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=ya(o[r]);ga(t,r,a)}}const B=t=>!!(t&&t.getVelocity);function xa(t){return!!(B(t)&&t.add)}function ke(t,e){const n=t.getValue("willChange");if(xa(n))return n.add(e);if(!n&&q.WillChange){const s=new q.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function un(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ta="framerAppearId",Vi="data-"+un(Ta);function Ci(t){return t.props[Vi]}function Sa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Mi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;const l=o==null?void 0:o.reduceMotion;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in a){const f=t.getValue(h,t.latestValues[h]??null),d=a[h];if(d===void 0||c&&Sa(c,h))continue;const m={delay:n,...an(o||{},h)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===p&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=Ci(t);if(v){const P=window.MotionHandoffAnimation(v,h,C);P!==null&&(m.startTime=P,y=!0)}}ke(t,h);const g=l??t.shouldReduceMotion;f.start(ln(h,f,d,g&&Ai.has(h)?{type:!1}:m,t,y));const S=f.animation;S&&u.push(S)}return r&&Promise.all(u).then(()=>{C.update(()=>{r&&va(t,r)})}),u}function Fe(t,e,n={}){var l;const s=dt(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Mi(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=i;return wa(t,e,u,c,h,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[o,r]:[r,o];return u().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function wa(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Fe(l,e,{...r,delay:n+(typeof s=="function"?0:s)+Pi(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Pa(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Fe(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Fe(t,e,n);else{const i=typeof e=="function"?dt(t,e,n.custom):e;s=Promise.all(Mi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const ba={test:t=>t==="auto",parse:t=>t},Di=t=>e=>e.test(t),Ei=[gt,T,z,Z,Yr,Xr,ba],Un=t=>Ei.find(Di(t));function Aa(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Hs(t):!0}const Va=new Set(["brightness","contrast","saturate","opacity"]);function Ca(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Je)||[];if(!s)return t;const i=n.replace(s,"");let o=Va.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ma=/\b([a-z-]*)\(.*?\)/gu,Ie={...tt,getAnimatableNone:t=>{const e=t.match(Ma);return e?e.map(Ca).join(" "):t}},Wn={...gt,transform:Math.round},Da={rotate:Z,rotateX:Z,rotateY:Z,rotateZ:Z,scale:Ot,scaleX:Ot,scaleY:Ot,scaleZ:Ot,skew:Z,skewX:Z,skewY:Z,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:Mt,originX:Cn,originY:Cn,originZ:T},hn={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,fontSize:T,backgroundPositionX:T,backgroundPositionY:T,...Da,zIndex:Wn,fillOpacity:Mt,strokeOpacity:Mt,numOctaves:Wn},Ea={...hn,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:Ie,WebkitFilter:Ie},Ri=t=>Ea[t];function Li(t,e){let n=Ri(t);return n!==Ie&&(n=tt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ra=new Set(["auto","none","0"]);function La(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Ra.has(o)&&Dt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Li(n,i)}class ka extends on{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let h=e[c];if(typeof h=="string"&&(h=h.trim(),Ze(h))){const f=bi(h,n.current);f!==void 0&&(e[c]=f),c===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Ai.has(s)||e.length!==2)return;const[i,o]=e,r=Un(i),a=Un(o),l=Vn(i),u=Vn(o);if(l!==u&&J[s]){this.needsMeasurement=!0;return}if(r!==a)if(In(r)&&In(a))for(let c=0;c<e.length;c++){const h=e[c];typeof h=="string"&&(e[c]=parseFloat(h))}else J[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Aa(e[i]))&&s.push(i);s.length&&La(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=J[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=J[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{e.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Fa(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){const i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const ki=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Be(t){return Gs(t)&&"offsetHeight"in t}const{schedule:fn,cancel:pu}=ii(queueMicrotask,!1),_={x:!1,y:!1};function Fi(){return _.x||_.y}function Ia(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}function Ii(t,e){const n=Fa(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function $n(t){return!(t.pointerType==="touch"||Fi())}function Ba(t,e,n={}){const[s,i,o]=Ii(t,n),r=a=>{if(!$n(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const c=h=>{$n(h)&&(u(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const Bi=(t,e)=>e?t===e?!0:Bi(t,e.parentElement):!1,dn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Oa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Oi(t){return Oa.has(t.tagName)||t.isContentEditable===!0}const Wt=new WeakSet;function Kn(t){return e=>{e.key==="Enter"&&t(e)}}function ue(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ja=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Kn(()=>{if(Wt.has(n))return;ue(n,"down");const i=Kn(()=>{ue(n,"up")}),o=()=>ue(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function _n(t){return dn(t)&&!Fi()}function Na(t,e,n={}){const[s,i,o]=Ii(t,n),r=a=>{const l=a.currentTarget;if(!_n(a))return;Wt.add(l);const u=e(l,a),c=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Wt.has(l)&&Wt.delete(l),_n(d)&&typeof u=="function"&&u(d,{success:m})},h=d=>{c(d,l===window||l===document||n.useGlobalTarget||Bi(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Be(a)&&(a.addEventListener("focus",u=>ja(u,i)),!Oi(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function ji(t){return Gs(t)&&"ownerSVGElement"in t}function Ua(t){return ji(t)&&t.tagName==="svg"}const Wa=[...Ei,R,tt],$a=t=>Wa.find(Di(t)),Gn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ut=()=>({x:Gn(),y:Gn()}),Hn=()=>({min:0,max:0}),k=()=>({x:Hn(),y:Hn()}),Oe={current:null},Ni={current:!1},Ka=typeof window<"u";function _a(){if(Ni.current=!0,!!Ka)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Oe.current=t.matches;t.addEventListener("change",e),e()}else Oe.current=!1}const Ga=new WeakMap;function te(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Et(t){return typeof t=="string"||Array.isArray(t)}const mn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pn=["initial",...mn];function ee(t){return te(t.animate)||pn.some(e=>Et(t[e]))}function Ui(t){return!!(ee(t)||t.variants)}function Ha(t,e,n){for(const s in e){const i=e[s],o=n[s];if(B(i))t.addValue(s,i);else if(B(o))t.addValue(s,pt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,pt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const zn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let zt={};function Wi(t){zt=t}function za(){return zt}class Xa{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=on,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 f=O.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,C.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=ee(n),this.isVariantNode=Ui(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&B(d)&&d.set(l[f])}}mount(e){var n;this.current=e,Ga.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ni.current||_a(),this.shouldReduceMotion=Oe.current),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),Q(this.notifyUpdate),Q(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=vt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&C.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in zt){const n=zt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<zn.length;s++){const i=zn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Ha(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=pt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(_s(s)||Hs(s))?s=parseFloat(s):!$a(s)&&tt.test(n)&&(s=Li(e,n)),this.setBaseTarget(e,B(s)?s.get():s)),B(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=cn(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!B(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Xe),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){fn.render(this.render)}}class $i extends Xa{constructor(){super(...arguments),this.KeyframeResolver=ka}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;B(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class et{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ki({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Ya({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function qa(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function he(t){return t===void 0||t===1}function je({scale:t,scaleX:e,scaleY:n}){return!he(t)||!he(e)||!he(n)}function it(t){return je(t)||_i(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function _i(t){return Xn(t.x)||Xn(t.y)}function Xn(t){return t&&t!=="0%"}function Xt(t,e,n){const s=t-n,i=e*s;return n+i}function Yn(t,e,n,s,i){return i!==void 0&&(t=Xt(t,i,s)),Xt(t,n,s)+e}function Ne(t,e=0,n=1,s,i){t.min=Yn(t.min,e,n,s,i),t.max=Yn(t.max,e,n,s,i)}function Gi(t,{x:e,y:n}){Ne(t.x,e.translate,e.scale,e.originPoint),Ne(t.y,n.translate,n.scale,n.originPoint)}const qn=.999999999999,Zn=1.0000000000001;function Za(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ft(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Gi(t,r)),s&&it(o.latestValues)&&ft(t,o.latestValues))}e.x<Zn&&e.x>qn&&(e.x=1),e.y<Zn&&e.y>qn&&(e.y=1)}function ht(t,e){t.min=t.min+e,t.max=t.max+e}function Jn(t,e,n,s,i=.5){const o=E(t.min,t.max,i);Ne(t,e,n,o,s)}function ft(t,e){Jn(t.x,e.x,e.scaleX,e.scale,e.originX),Jn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Hi(t,e){return Ki(qa(t.getBoundingClientRect(),e))}function Ja(t,e,n){const s=Hi(t,n),{scroll:i}=e;return i&&(ht(s.x,i.offset.x),ht(s.y,i.offset.y)),s}const Qa={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tl=yt.length;function el(t,e,n){let s="",i=!0;for(let o=0;o<tl;o++){const r=yt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(r.startsWith("scale")?1:0);else{const u=parseFloat(a);l=r.startsWith("scale")?u===1:u===0}if(!l||n){const u=ki(a,hn[r]);if(!l){i=!1;const c=Qa[r]||r;s+=`${c}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function gn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(vt.has(l)){r=!0;continue}else if(oi(l)){i[l]=u;continue}else{const c=ki(u,hn[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=el(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;s.transformOrigin=`${l} ${u} ${c}`}}function zi(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i==null||i.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Qn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Tt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(T.test(t))t=parseFloat(t);else return t;const n=Qn(t,e.target.x),s=Qn(t,e.target.y);return`${n}% ${s}%`}},nl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=tt.parse(t);if(i.length>5)return s;const o=tt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=E(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}},Ue={borderRadius:{...Tt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomLeftRadius:Tt,borderBottomRightRadius:Tt,boxShadow:nl};function Xi(t,{layout:e,layoutId:n}){return vt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ue[t]||t==="opacity")}function yn(t,e,n){var r;const s=t.style,i=e==null?void 0:e.style,o={};if(!s)return o;for(const a in s)(B(s[a])||i&&B(i[a])||Xi(a,t)||((r=n==null?void 0:n.getValue(a))==null?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}function sl(t){return window.getComputedStyle(t)}class il extends $i{constructor(){super(...arguments),this.type="html",this.renderInstance=zi}readValueFromInstance(e,n){var s;if(vt.has(n))return(s=this.projection)!=null&&s.isProjecting?Ve(n):ko(e,n);{const i=sl(e),o=(oi(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Hi(e,n)}build(e,n,s){gn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return yn(e,n,s)}}const rl={offset:"stroke-dashoffset",array:"stroke-dasharray"},ol={offset:"strokeDashoffset",array:"strokeDasharray"};function al(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?rl:ol;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const ll=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Yi(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,u,c){if(gn(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete h.transformBox);for(const d of ll)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&al(h,i,o,r,!1)}const qi=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"]),Zi=t=>typeof t=="string"&&t.toLowerCase()==="svg";function cl(t,e,n,s){zi(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(qi.has(i)?i:un(i),e.attrs[i])}function Ji(t,e,n){const s=yn(t,e,n);for(const i in t)if(B(t[i])||B(e[i])){const o=yt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class ul extends $i{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(vt.has(n)){const s=Ri(n);return s&&s.default||0}return n=qi.has(n)?n:un(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Ji(e,n,s)}build(e,n,s){Yi(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){cl(e,n,s,i)}mount(e){this.isSVGTag=Zi(e.tagName),super.mount(e)}}const hl=pn.length;function Qi(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Qi(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<hl;n++){const s=pn[n],i=t.props[s];(Et(i)||i===!1)&&(e[s]=i)}return e}function tr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const fl=[...mn].reverse(),dl=mn.length;function ml(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Pa(t,n,s)))}function pl(t){let e=ml(t),n=ts(),s=!0;const i=l=>(u,c)=>{var f;const h=dt(t,c,l==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:d,transitionEnd:m,...p}=h;u={...u,...p,...m}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=Qi(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let y=0;y<dl;y++){const g=fl[y],S=n[g],v=u[g]!==void 0?u[g]:c[g],P=Et(v),w=g===l?S.isActive:null;w===!1&&(m=y);let V=v===c[g]&&v!==u[g]&&P;if(V&&s&&t.manuallyAnimateOnMount&&(V=!1),S.protectedKeys={...d},!S.isActive&&w===null||!v&&!S.prevProp||te(v)||typeof v=="boolean")continue;const M=gl(S.prevProp,v);let b=M||g===l&&S.isActive&&!V&&P||y>m&&P,A=!1;const L=Array.isArray(v)?v:[v];let G=L.reduce(i(g),{});w===!1&&(G={});const{prevResolvedValues:xt={}}=S,se={...xt,...G},Sn=F=>{b=!0,f.has(F)&&(A=!0,f.delete(F)),S.needsAnimating[F]=!0;const N=t.getValue(F);N&&(N.liveStyle=!1)};for(const F in se){const N=G[F],nt=xt[F];if(d.hasOwnProperty(F))continue;let lt=!1;Le(N)&&Le(nt)?lt=!tr(N,nt):lt=N!==nt,lt?N!=null?Sn(F):f.add(F):N!==void 0&&f.has(F)?Sn(F):S.protectedKeys[F]=!0}S.prevProp=v,S.prevResolvedValues=G,S.isActive&&(d={...d,...G}),s&&t.blockInitialAnimation&&(b=!1);const wn=V&&M;b&&(!wn||A)&&h.push(...L.map(F=>{const N={type:g};if(typeof F=="string"&&s&&!wn&&t.manuallyAnimateOnMount&&t.parent){const{parent:nt}=t,lt=dt(nt,F);if(nt.enteringChildren&<){const{delayChildren:br}=lt.transition||{};N.delay=Pi(nt.enteringChildren,t,br)}}return{animation:F,options:N}}))}
vendor: 4,697 bytes, line 9
9if(f.size){const y={};if(typeof u.initial!="boolean"){const g=dt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(y.transition=g.transition)}f.forEach(g=>{const S=t.getBaseTarget(g),v=t.getValue(g);v&&(v.liveStyle=!0),y[g]=S??null}),h.push({animation:y})}let p=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(h):Promise.resolve()}function a(l,u){var h;if(n[l].isActive===u)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(f=>{var d;return(d=f.animationState)==null?void 0:d.setActive(l,u)}),n[l].isActive=u;const c=r(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ts()}}}function gl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!tr(e,t):!1}function st(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ts(){return{animate:st(!0),whileInView:st(),whileHover:st(),whileTap:st(),whileDrag:st(),whileFocus:st(),exit:st()}}function es(t,e){t.min=e.min,t.max=e.max}function K(t,e){es(t.x,e.x),es(t.y,e.y)}function ns(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const er=1e-4,yl=1-er,vl=1+er,nr=.01,xl=0-nr,Tl=0+nr;function j(t){return t.max-t.min}function Sl(t,e,n){return Math.abs(t-e)<=n}function ss(t,e,n,s=.5){t.origin=s,t.originPoint=E(e.min,e.max,t.origin),t.scale=j(n)/j(e),t.translate=E(n.min,n.max,t.origin)-t.originPoint,(t.scale>=yl&&t.scale<=vl||isNaN(t.scale))&&(t.scale=1),(t.translate>=xl&&t.translate<=Tl||isNaN(t.translate))&&(t.translate=0)}function At(t,e,n,s){ss(t.x,e.x,n.x,s?s.originX:void 0),ss(t.y,e.y,n.y,s?s.originY:void 0)}function is(t,e,n){t.min=n.min+e.min,t.max=t.min+j(e)}function wl(t,e,n){is(t.x,e.x,n.x),is(t.y,e.y,n.y)}function rs(t,e,n){t.min=e.min-n.min,t.max=t.min+j(e)}function Yt(t,e,n){rs(t.x,e.x,n.x),rs(t.y,e.y,n.y)}function os(t,e,n,s,i){return t-=e,t=Xt(t,1/n,s),i!==void 0&&(t=Xt(t,1/i,s)),t}function Pl(t,e=0,n=1,s=.5,i,o=t,r=t){if(z.test(e)&&(e=parseFloat(e),e=E(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=E(o.min,o.max,s);t===o&&(a-=e),t.min=os(t.min,e,n,a,i),t.max=os(t.max,e,n,a,i)}function as(t,e,[n,s,i],o,r){Pl(t,e[n],e[s],e[i],e.scale,o,r)}const bl=["x","scaleX","originX"],Al=["y","scaleY","originY"];function ls(t,e,n,s){as(t.x,e,bl,n?n.x:void 0,s?s.x:void 0),as(t.y,e,Al,n?n.y:void 0,s?s.y:void 0)}function cs(t){return t.translate===0&&t.scale===1}function sr(t){return cs(t.x)&&cs(t.y)}function us(t,e){return t.min===e.min&&t.max===e.max}function Vl(t,e){return us(t.x,e.x)&&us(t.y,e.y)}function hs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ir(t,e){return hs(t.x,e.x)&&hs(t.y,e.y)}function fs(t){return j(t.x)/j(t.y)}function ds(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function U(t){return[t("x"),t("y")]}function Cl(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const rr=["TopLeft","TopRight","BottomLeft","BottomRight"],Ml=rr.length,ms=t=>typeof t=="string"?parseFloat(t):t,ps=t=>typeof t=="number"||T.test(t);function Dl(t,e,n,s,i,o){i?(t.opacity=E(0,n.opacity??1,El(s)),t.opacityExit=E(e.opacity??1,0,Rl(s))):o&&(t.opacity=E(e.opacity??1,n.opacity??1,s));for(let r=0;r<Ml;r++){const a=`border${rr[r]}Radius`;let l=gs(e,a),u=gs(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||ps(l)===ps(u)?(t[a]=Math.max(E(ms(l),ms(u),s),0),(z.test(u)||z.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=E(e.rotate||0,n.rotate||0,s))}function gs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const El=or(0,.5,ti),Rl=or(.5,.95,$);function or(t,e,n){return s=>s<t?0:s>e?1:n(Ct(t,e,s))}function Ll(t,e,n){const s=B(t)?t:pt(t);return s.start(ln("",s,e,n)),s.animation}function Rt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const kl=(t,e)=>t.depth-e.depth;class Fl{constructor(){this.children=[],this.isDirty=!1}add(e){Ge(this.children,e),this.isDirty=!0}remove(e){He(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(kl),this.isDirty=!1,this.children.forEac
vendor: 20,622 bytes, line 9
9h(e)}}function Il(t,e){const n=O.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Q(s),t(o-e))};return C.setup(s,!0),()=>Q(s)}function $t(t){return B(t)?t.get():t}class Bl{constructor(){this.members=[]}add(e){Ge(this.members,e),e.scheduleRender()}remove(e){if(He(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender();const i=s.options.layoutDependency,o=e.options.layoutDependency;i!==void 0&&o!==void 0&&i===o||(e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));const{crossfade:a}=e.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Kt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},fe=["","X","Y","Z"],Ol=1e3;let jl=0;function de(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function ar(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ci(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",C,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&ar(s)}function lr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=jl++,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.layoutVersion=0,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(Wl),this.nodes.forEach(Gl),this.nodes.forEach(Hl),this.nodes.forEach($l)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Fl)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Xe),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=ji(r)&&!Ua(r),this.instance=r;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let c,h=0;const f=()=>this.root.updateBlockedByResize=!1;C.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,c&&c(),c=Il(f,250),Kt.hasAnimatedSinceResize&&(Kt.hasAnimatedSinceResize=!1,this.nodes.forEach(xs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Zl,{onLayoutAnimationStart:p,onLayoutAnimationComplete:y}=u.getProps(),g=!this.targetLayout||!ir(this.targetLayout,d),S=!h&&f;if(this.options.layoutRoot||this.resumeFrom||S||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...an(m,"layout"),onPlay:p,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,S)}else h||xs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Q(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(zl),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ar(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ys);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(vs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(_l),this.nodes.forEach(Nl),this.nodes.forEach(Ul)):this.nodes.forEach(vs),this.clearAllSnapshots();const a=O.now();I.delta=X(0,1e3/60,a-I.timestamp),I.timestamp=a,I.isProcessing=!0,ie.update.process(I),ie.preRender.process(I),ie.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Kl),this.sharedNodes.forEach(Xl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,C.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){C.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!j(this.snapshot.measuredBox.x)&&!j(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=k(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!sr(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||it(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),Jl(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:r}=this.options;if(!r)return k();const a=r.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(Ql))){const{scroll:c}=this.root;c&&(ht(a.x,c.offset.x),ht(a.y,c.offset.y))}return a}removeElementScroll(r){var l;const a=k();if(K(a,r),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&K(a,r),ht(a.x,h.offset.x),ht(a.y,h.offset.y))}return a}applyTransform(r,a=!1){const l=k();K(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ft(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),it(c.latestValues)&&ft(l,c.latestValues)}return it(this.latestValues)&&ft(l,this.latestValues),l}removeTransform(r){const a=k();K(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!it(u.latestValues))continue;je(u.latestValues)&&u.updateSnapshot();const c=k(),h=u.measurePageBox();K(c,h),ls(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return it(this.latestValues)&&ls(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!this.layout||!(c||h))return;this.resolvedRelativeTargetAt=I.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):K(this.target,this.layout.layoutBox),Gi(this.target,this.targetDelta)):K(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||je(this.parent.latestValues)||_i(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,l){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),Yt(this.relativeTargetOrigin,a,l),K(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===I.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;K(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Za(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=k());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ns(this.prevProjectionDelta.x,this.projectionDelta.x),ns(this.prevProjectionDelta.y,this.projectionDelta.y)),At(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!ds(this.projectionDelta.x,this.prevProjectionDelta.x)||!ds(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ut(),this.projectionDelta=ut(),this.projectionDeltaWithTransform=ut()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=ut();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=k(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,p=d!==m,y=this.getStack(),g=!y||y.members.length<=1,S=!!(p&&!g&&this.options.crossfade===!0&&!this.path.some(ql));this.animationProgress=0;let v;this.mixTargetDelta=P=>{const w=P/1e3;Ts(h.x,r.x,w),Ts(h.y,r.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Yl(this.relativeTarget,this.relativeTargetOrigin,f,w),v&&Vl(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=k()),K(v,this.relativeTarget)),p&&(this.animationValues=c,Dl(c,u,this.latestValues,w,S,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=C.update(()=>{Kt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=pt(0)),this.currentAnimation=Ll(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),r.onUpdate&&r.onUpdate(c)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ol),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&cr(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||k();const h=j(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=j(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}K(a,l),ft(a,c),At(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Bl),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var a;const{layoutId:r}=this.options;return r?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:r}=this.options;return r?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&de("z",r,u,this.animationValues);for(let c=0;c<fe.length;c++)de(`rotate${fe[c]}`,r,u,this.animationValues),de(`skew${fe[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=$t(a==null?void 0:a.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=$t(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let h=Cl(this.projectionDeltaWithTransform,this.treeScale,c);l&&(h=l(c,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,u.animationValues?r.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:r.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in Ue){if(c[m]===void 0)continue;const{correct:p,applyTo:y,isCSSVariable:g}=Ue[m],S=h==="none"?c[m]:p(c[m],u);if(y){const v=y.length;for(let P=0;P<v;P++)r[y[P]]=S}else g?this.options.visualElement.renderState.vars[m]=S:r[m]=S}this.options.layoutId&&(r.pointerEvents=u===this?$t(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
vendor: 4,225 bytes, line 9
9resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(ys),this.root.sharedNodes.clear()}}}function Nl(t){t.updateLayout()}function Ul(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;o==="size"?U(h=>{const f=r?e.measuredBox[h]:e.layoutBox[h],d=j(f);f.min=s[h].min,f.max=f.min+d}):cr(o,e.layoutBox,s)&&U(h=>{const f=r?e.measuredBox[h]:e.layoutBox[h],d=j(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ut();At(a,s,e.layoutBox);const l=ut();r?At(l,t.applyTransform(i,!0),e.measuredBox):At(l,s,e.layoutBox);const u=!sr(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=k();Yt(m,e.layoutBox,f.layoutBox);const p=k();Yt(p,s,d.layoutBox),ir(m,p)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Wl(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function $l(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Kl(t){t.clearSnapshot()}function ys(t){t.clearMeasurements()}function vs(t){t.isLayoutDirty=!1}function _l(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function xs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Gl(t){t.resolveTargetDelta()}function Hl(t){t.calcProjection()}function zl(t){t.resetSkewAndRotation()}function Xl(t){t.removeLeadSnapshot()}function Ts(t,e,n){t.translate=E(e.translate,0,n),t.scale=E(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ss(t,e,n,s){t.min=E(e.min,n.min,s),t.max=E(e.max,n.max,s)}function Yl(t,e,n,s){Ss(t.x,e.x,n.x,s),Ss(t.y,e.y,n.y,s)}function ql(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Zl={duration:.45,ease:[.4,0,.1,1]},ws=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ps=ws("applewebkit/")&&!ws("chrome/")?Math.round:$;function bs(t){t.min=Ps(t.min),t.max=Ps(t.max)}function Jl(t){bs(t.x),bs(t.y)}function cr(t,e,n){return t==="position"||t==="preserve-aspect"&&!Sl(fs(e),fs(n),.2)}function Ql(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const tc=lr({attachResizeListener:(t,e)=>Rt(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),me={current:void 0},ur=lr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!me.current){const t=new tc({});t.mount(window),t.setOptions({layoutScroll:!0}),me.current=t}return me.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),vn=x.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function As(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function ec(...t){return e=>{let n=!1;const s=t.map(i=>{const o=As(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():As(t[i],null)}}}}function nc(...t){return x.useCallback(ec(...t),t)}class sc extends x.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,
vendor: 28,884 bytes, lines 9-17
9i=Be(s)&&s.offsetWidth||0,o=Be(s)&&s.offsetHeight||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=i-r.width-r.left,r.bottom=o-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function ic({children:t,isPresent:e,anchorX:n,anchorY:s,root:i}){var h;const o=x.useId(),r=x.useRef(null),a=x.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=x.useContext(vn),u=((h=t.props)==null?void 0:h.ref)??(t==null?void 0:t.ref),c=nc(r,u);return x.useInsertionEffect(()=>{const{width:f,height:d,top:m,left:p,right:y,bottom:g}=a.current;if(e||!r.current||!f||!d)return;const S=n==="left"?`left: ${p}`:`right: ${y}`,v=s==="bottom"?`bottom: ${g}`:`top: ${m}`;r.current.dataset.motionPopId=o;const P=document.createElement("style");l&&(P.nonce=l);const w=i??document.head;return w.appendChild(P),P.sheet&&P.sheet.insertRule(` 10 [data-motion-pop-id="${o}"] { 11 position: absolute !important; 12 width: ${f}px !important; 13 height: ${d}px !important; 14 ${S}px !important; 15 ${v}px !important; 16 } 17 `),()=>{w.contains(P)&&w.removeChild(P)}},[e]),Y.jsx(sc,{isPresent:e,childRef:r,sizeRef:a,children:x.cloneElement(t,{ref:c})})}const rc=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a,anchorY:l,root:u})=>{const c=_e(oc),h=x.useId();let f=!0,d=x.useMemo(()=>(f=!1,{id:h,initial:e,isPresent:n,custom:i,onExitComplete:m=>{c.set(m,!0);for(const p of c.values())if(!p)return;s&&s()},register:m=>(c.set(m,!1),()=>c.delete(m))}),[n,c,s]);return o&&f&&(d={...d}),x.useMemo(()=>{c.forEach((m,p)=>c.set(p,!1))},[n]),x.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),r==="popLayout"&&(t=Y.jsx(ic,{isPresent:n,anchorX:a,anchorY:l,root:u,children:t})),Y.jsx(Jt.Provider,{value:d,children:t})};function oc(){return new Map}function hr(t=!0){const e=x.useContext(Jt);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=x.useId();x.useEffect(()=>{if(t)return i(o)},[t]);const r=x.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const jt=t=>t.key||"";function Vs(t){const e=[];return x.Children.forEach(t,n=>{x.isValidElement(n)&&e.push(n)}),e}const yu=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,h]=hr(r),f=x.useMemo(()=>Vs(t),[t]),d=r&&!c?[]:f.map(jt),m=x.useRef(!0),p=x.useRef(f),y=_e(()=>new Map),g=x.useRef(new Set),[S,v]=x.useState(f),[P,w]=x.useState(f);Ks(()=>{m.current=!1,p.current=f;for(let b=0;b<P.length;b++){const A=jt(P[b]);d.includes(A)?(y.delete(A),g.current.delete(A)):y.get(A)!==!0&&y.set(A,!1)}},[P,d.length,d.join("-")]);const V=[];if(f!==S){let b=[...f];for(let A=0;A<P.length;A++){const L=P[A],G=jt(L);d.includes(G)||(b.splice(A,0,L),V.push(L))}return o==="wait"&&V.length&&(b=V),w(Vs(b)),v(f),null}const{forceRender:M}=x.useContext(Ke);return Y.jsx(Y.Fragment,{children:P.map(b=>{const A=jt(b),L=r&&!c?!1:f===P||d.includes(A),G=()=>{if(g.current.has(A))return;if(g.current.add(A),y.has(A))y.set(A,!0);else return;let xt=!0;y.forEach(se=>{se||(xt=!1)}),xt&&(M==null||M(),w(p.current),r&&(h==null||h()),s&&s())};return Y.jsx(rc,{isPresent:L,initial:!m.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:u,onExitComplete:L?void 0:G,anchorX:a,anchorY:l,children:b},A)})})},fr=x.createContext({strict:!1}),Cs={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"]};let Ms=!1;function ac(){if(Ms)return;const t={};for(const e in Cs)t[e]={isEnabled:n=>Cs[e].some(s=>!!n[s])};Wi(t),Ms=!0}function dr(){return ac(),za()}function lc(t){const e=dr();for(const n in t)e[n]={...e[n],...t[n]};Wi(e)}const cc=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 qt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||cc.has(t)}let mr=t=>!qt(t);function uc(t){typeof t=="function"&&(mr=e=>e.startsWith("on")?!qt(e):t(e))}try{uc(require("@emotion/is-prop-valid").default)}catch{}function hc(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(mr(i)||n===!0&&qt(i)||!e&&!qt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const ne=x.createContext({});function fc(t,e){if(ee(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Et(n)?n:void 0,animate:Et(s)?s:void 0}}return t.inherit!==!1?e:{}}function dc(t){const{initial:e,animate:n}=fc(t,x.useContext(ne));return x.useMemo(()=>({initial:e,animate:n}),[Ds(e),Ds(n)])}function Ds(t){return Array.isArray(t)?t.join(" "):t}const xn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pr(t,e,n){for(const s in e)!B(e[s])&&!Xi(s,n)&&(t[s]=e[s])}function mc({transformTemplate:t},e){return x.useMemo(()=>{const n=xn();return gn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function pc(t,e){const n=t.style||{},s={};return pr(s,n,t),Object.assign(s,mc(t,e)),s}function gc(t,e){const n={},s=pc(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const gr=()=>({...xn(),attrs:{}});function yc(t,e,n,s){const i=x.useMemo(()=>{const o=gr();return Yi(o,e,Zi(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};pr(o,t.style,t),i.style={...o,...i.style}}return i}const vc=["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 Tn(t){return typeof t!="string"||t.includes("-")?!1:!!(vc.indexOf(t)>-1||/[A-Z]/u.test(t))}function xc(t,e,n,{latestValues:s},i,o=!1,r){const l=(r??Tn(t)?yc:gc)(e,s,i,t),u=hc(e,typeof t=="string",o),c=t!==x.Fragment?{...u,...l,ref:n}:{},{children:h}=e,f=x.useMemo(()=>B(h)?h.get():h,[h]);return x.createElement(t,{...c,children:f})}function Tc({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Sc(n,s,i,t),renderState:e()}}function Sc(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=$t(o[f]);let{initial:r,animate:a}=t;const l=ee(t),u=Ui(t);e&&u&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||r===!1;const h=c?a:r;if(h&&typeof h!="boolean"&&!te(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=cn(t,f[d]);if(m){const{transitionEnd:p,transition:y,...g}=m;for(const S in g){let v=g[S];if(Array.isArray(v)){const P=c?v.length-1:0;v=v[P]}v!==null&&(i[S]=v)}for(const S in p)i[S]=p[S]}}}return i}const yr=t=>(e,n)=>{const s=x.useContext(ne),i=x.useContext(Jt),o=()=>Tc(t,e,s,i);return n?o():_e(o)},wc=yr({scrapeMotionValuesFromProps:yn,createRenderState:xn}),Pc=yr({scrapeMotionValuesFromProps:Ji,createRenderState:gr}),bc=Symbol.for("motionComponentSymbol");function Ac(t,e,n){const s=x.useRef(n);x.useInsertionEffect(()=>{s.current=n});const i=x.useRef(null);return x.useCallback(o=>{var a;o&&((a=t.onMount)==null||a.call(t,o)),e&&(o?e.mount(o):e.unmount());const r=s.current;if(typeof r=="function")if(o){const l=r(o);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o)},[e])}const vr=x.createContext({});function wt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Vc(t,e,n,s,i,o){var g,S;const{visualElement:r}=x.useContext(ne),a=x.useContext(fr),l=x.useContext(Jt),u=x.useContext(vn).reducedMotion,c=x.useRef(null),h=x.useRef(!1);s=s||a.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:r,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:o}),h.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));const f=c.current,d=x.useContext(vr);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Cc(c.current,n,i,d);const m=x.useRef(!1);x.useInsertionEffect(()=>{f&&m.current&&f.update(n,l)});const p=n[Vi],y=x.useRef(!!p&&!((g=window.MotionHandoffIsComplete)!=null&&g.call(window,p))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,p)));return Ks(()=>{h.current=!0,f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),y.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,p)}),y.current=!1),f.enteringChildren=void 0)}),f}function Cc(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:xr(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&wt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:u})}function xr(t){if(t)return t.options.allowProjection!==!1?t.projection:xr(t.parent)}function pe(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&lc(s);const o=n?n==="svg":Tn(t),r=o?Pc:wc;function a(u,c){let h;const f={...x.useContext(vn),...u,layoutId:Mc(u)},{isStatic:d}=f,m=dc(u),p=r(u,d);if(!d&&$s){Dc();const y=Ec(f);h=y.MeasureLayout,m.visualElement=Vc(t,p,f,i,y.ProjectionNode,o)}return Y.jsxs(ne.Provider,{value:m,children:[h&&m.visualElement?Y.jsx(h,{visualElement:m.visualElement,...f}):null,xc(t,u,Ac(p,m.visualElement,c),p,d,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=x.forwardRef(a);return l[bc]=t,l}function Mc({layoutId:t}){const e=x.useContext(Ke).id;return e&&t!==void 0?e+"-"+t:t}function Dc(t,e){x.useContext(fr).strict}function Ec(t){const e=dr(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(t)||s!=null&&s.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Rc(t,e){if(typeof Proxy>"u")return pe;const n=new Map,s=(o,r)=>pe(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,pe(r,void 0,t,e)),n.get(r))})}const Lc=(t,e)=>e.isSVG??Tn(t)?new ul(e):new il(e,{allowProjection:t!==x.Fragment});class kc extends et{constructor(e){super(e),e.animationState||(e.animationState=pl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();te(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Fc=0;class Ic extends et{constructor(){super(...arguments),this.id=Fc++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Bc={animation:{Feature:kc},exit:{Feature:Ic}};function It(t){return{point:{x:t.pageX,y:t.pageY}}}const Oc=t=>e=>dn(e)&&t(e,It(e));function Vt(t,e,n,s){return Rt(t,e,Oc(n),s)}const Tr=({current:t})=>t?t.ownerDocument.defaultView:null,Es=(t,e)=>Math.abs(t-e);function jc(t,e){const n=Es(t.x,e.x),s=Es(t.y,e.y);return Math.sqrt(n**2+s**2)}const Rs=new Set(["auto","scroll"]);class Sr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=ye(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=jc(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!p)return;const{point:y}=d,{timestamp:g}=I;this.history.push({...y,timestamp:g});const{onStart:S,onMove:v}=this.handlers;m||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ge(m,this.transformPagePoint),C.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=ye(d.type==="pointercancel"?this.lastMoveEventInfo:ge(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,S),y&&y(d,S)},!dn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const l=It(e),u=ge(l,this.transformPagePoint),{point:c}=u,{timestamp:h}=I;this.history=[{...c,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,ye(u,this.history)),this.removeListeners=Lt(Vt(this.contextWindow,"pointermove",this.handlePointerMove),Vt(this.contextWindow,"pointerup",this.handlePointerUp),Vt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Rs.has(s.overflowX)||Rs.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),C.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Q(this.updatePoint)}}function ge(t,e){return e?{point:e(t.point)}:t}function Ls(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ye({point:t},e){return{point:t,delta:Ls(t,wr(e)),offset:Ls(t,Nc(e)),velocity:Uc(e,.1)}}function Nc(t){return t[0]}function wr(t){return t[t.length-1]}function Uc(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=wr(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>H(e)));)n--;if(!s)return{x:0,y:0};const o=W(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Wc(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?E(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?E(n,t,s.max):Math.min(t,n)),t}function ks(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function $c(t,{top:e,left:n,bottom:s,right:i}){return{x:ks(t.x,n,i),y:ks(t.y,e,s)}}function Fs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Kc(t,e){return{x:Fs(t.x,e.x),y:Fs(t.y,e.y)}}function _c(t,e){let n=.5;const s=j(t),i=j(e);return i>s?n=Ct(e.min,e.max-s,t.min):s>i&&(n=Ct(t.min,t.max-i,e.min)),X(0,1,n)}function Gc(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const We=.35;function Hc(t=We){return t===!1?t=0:t===!0&&(t=We),{x:Is(t,"left","right"),y:Is(t,"top","bottom")}}function Is(t,e,n){return{min:Bs(t,e),max:Bs(t,n)}}function Bs(t,e){return typeof t=="number"?t:t[e]||0}const zc=new WeakMap;class Xc{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=k(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{n?(this.stopAnimation(),this.snapToCursor(It(h).point)):this.pauseAnimation()},r=(h,f)=>{this.stopAnimation();const{drag:d,dragPropagation:m,onDragStart:p}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ia(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U(g=>{let S=this.getAxisMotionValue(g).get()||0;if(z.test(S)){const{projection:v}=this.visualElement;if(v&&v.layout){const P=v.layout.layoutBox[g];P&&(S=j(P)*(parseFloat(S)/100))}}this.originPoint[g]=S}),p&&C.postRender(()=>p(h,f)),ke(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:p,onDrag:y}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=f;if(m&&this.currentDirection===null){this.currentDirection=Yc(g),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),y&&y(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>U(h=>{var f;return this.getAnimationState(h)==="paused"&&((f=this.getAxisMotionValue(h).animation)==null?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Sr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:s,contextWindow:Tr(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&C.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Nt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Wc(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&wt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=$c(s.layoutBox,e):this.constraints=!1,this.elastic=Hc(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&U(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=Gc(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!wt(e))return!1;const s=e.current;mt(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Ja(s,i.root,this.visualElement.getTransformPagePoint());let r=Kc(i.layout.layoutBox,o);if(n){const a=n(Ya(r));this.hasMutatedConstraints=!!a,a&&(r=Ki(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=U(c=>{if(!Nt(c,n,this.currentDirection))return;let h=l&&l[c]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return ke(this.visualElement,e),s.start(ln(e,s,0,n,this.visualElement,!1))}stopAnimation(){U(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){U(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){U(n=>{const{drag:s}=this.getProps();if(!Nt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(e[n]-E(r,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!wt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=_c({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),U(r=>{if(!Nt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(E(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;zc.set(this.visualElement,this);const e=this.visualElement.current,n=Vt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps(),h=l.target,f=h!==e&&Oi(h);u&&c&&!f&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();wt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),C.read(s);const r=Rt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(U(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=We,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Nt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Yc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class qc extends et{constructor(e){super(e),this.removeGroupControls=$,this.removeListeners=$,this.controls=new Xc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Os=t=>(e,n)=>{t&&C.postRender(()=>t(e,n))};class Zc extends et{constructor(){super(...arguments),this.removePointerDownListener=$}onPointerDown(e){this.session=new Sr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Os(e),onStart:Os(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&C.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Vt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ve=!1;class Jc extends x.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),ve&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Kt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),ve=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||C.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),fn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;ve=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Pr(t){const[e,n]=hr(),s=x.useContext(Ke);return Y.jsx(Jc,{...t,layoutGroup:s,switchLayoutGroup:x.useContext(vr),isPresent:e,safeToRemove:n})}const Qc={pan:{Feature:Zc},drag:{Feature:qc,ProjectionNode:ur,MeasureLayout:Pr}};function js(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&C.postRender(()=>o(e,It(e)))}class tu extends et{mount(){const{current:e}=this.node;e&&(this.unmount=Ba(e,(n,s)=>(js(this.node,s,"Start"),i=>js(this.node,i,"End"))))}unmount(){}}class eu extends et{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=Lt(Rt(this.node.current,"focus",()=>this.onFocus()),Rt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ns(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&C.postRender(()=>o(e,It(e)))}class nu extends et{mount(){const{current:e}=this.node;e&&(this.unmount=Na(e,(n,s)=>(Ns(this.node,s,"Start"),(i,{success:o})=>Ns(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const $e=new WeakMap,xe=new WeakMap,su=t=>{const e=$e.get(t.target);e&&e(t)}
vendor: 1,408 bytes, line 17
17,iu=t=>{t.forEach(su)};function ru({root:t,...e}){const n=t||document;xe.has(n)||xe.set(n,{});const s=xe.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(iu,{root:t,...e})),s[i]}function ou(t,e,n){const s=ru(e);return $e.set(t,n),s.observe(t),()=>{$e.delete(t),s.unobserve(t)}}const au={some:0,all:1};class lu extends et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:au[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return ou(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(cu(e,n))&&this.startObserver()}unmount(){}}function cu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const uu={inView:{Feature:lu},tap:{Feature:nu},focus:{Feature:eu},hover:{Feature:tu}},hu={layout:{ProjectionNode:ur,MeasureLayout:Pr}},fu={...Bc,...uu,...Qc,...hu},vu=Rc(fu,Lc);export{yu as A,Y as j,vu 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.