vendor: 28,150 bytes, line 1
1import{r as g,j as A}from"./index.JVeLESIm.bundle.js";import{H as Mr}from"./HeaderElements.8NcPJefT.bundle.js";import{u as Ws,f as Ks,l as Dr}from"./app.BZY14J3V.js";import{H as Er}from"./Host.FJuEG4JQ.bundle.js";import{P as Rr}from"./PhoneSexAdvertisements.BNnNlPIK.bundle.js";import{L as vt,F as ee,f as Lr}from"./index.Tq73xI6-.bundle.js";import{S as kr}from"./SeoFooter.CgD6I19Y.bundle.js";import"./preload-helper.nwgrhPo6.bundle.js";import"./PreviewImageSelector.CZDD_Oww.bundle.js";import"./AdvertisementConfigurable.C2eDTzNJ.bundle.js";import"./Price.Z3GtVdWH.bundle.js";const Ke=g.createContext({});function _e(t){const e=g.useRef(null);return e.current===null&&(e.current=t()),e.current}const _s=typeof window<"u",$s=_s?g.useLayoutEffect:g.useEffect,Zt=g.createContext(null);function $e(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 z=(t,e,n)=>n>e?e:n<t?t:n;let Ge=()=>{};const q={},Hs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Gs(t){return typeof t=="object"&&t!==null}const zs=t=>/^0[^.\s]+$/u.test(t);function ze(t){let e;return()=>(e===void 0&&(e=t()),e)}const _=t=>t,Ir=(t,e)=>n=>e(t(n)),Rt=(...t)=>t.reduce(Ir),Vt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Xe{constructor(){this.subscriptions=[]}add(e){return $e(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 Y=t=>t*1e3,K=t=>t/1e3;function Xs(t,e){return e?t*(1e3/e):0}const Ys=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Fr=1e-7,Br=12;function jr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Ys(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Fr&&++a<Br);return r}function Lt(t,e,n,s){if(t===e&&n===s)return _;const i=o=>jr(o,0,1,t,n);return o=>o===0||o===1?o:Ys(i(o),e,s)}const qs=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Zs=t=>e=>1-t(1-e),Js=Lt(.33,1.53,.69,.99),Ye=Zs(Js),Qs=qs(Ye),ti=t=>(t*=2)<1?.5*Ye(t):.5*(2-Math.pow(2,-10*(t-1))),qe=t=>1-Math.sin(Math.acos(t)),ei=Zs(qe),ni=qs(qe),Or=Lt(.42,0,1,1),Nr=Lt(0,0,.58,1),si=Lt(.42,0,.58,1),Ur=t=>Array.isArray(t)&&typeof t[0]!="number",ii=t=>Array.isArray(t)&&typeof t[0]=="number",Wr={linear:_,easeIn:Or,easeInOut:si,easeOut:Nr,circIn:qe,circInOut:ni,circOut:ei,backIn:Ye,backInOut:Qs,backOut:Js,anticipate:ti},Kr=t=>typeof t=="string",wn=t=>{if(ii(t)){Ge(t.length===4);const[e,n,s,i]=t;return Lt(e,n,s,i)}else if(Kr(t))return Wr[t];return t},Bt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _r(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};function l(c){r.has(c)&&(u.schedule(c),t()),c(a)}const u={schedule:(c,h=!1,f=!1)=>{const m=f&&i?n:s;return h&&r.add(c),m.has(c)||m.add(c),c},cancel:c=>{s.delete(c),r.delete(c)},process:c=>{if(a=c,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,u.process(c))}};return u}const $r=40;function ri(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Bt.reduce((y,b)=>(y[b]=_r(o),y),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:f,render:d,postRender:m}=r,p=()=>{const y=q.useManualTiming?i.timestamp:performance.now();n=!1,q.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(y-i.timestamp,$r),1)),i.timestamp=y,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))},T=()=>{n=!0,s=!0,i.isProcessing||t(p)};return{schedule:Bt.reduce((y,b)=>{const w=r[b];return y[b]=(C,V=!1,S=!1)=>(n||T(),w.schedule(C,V,S)),y},{}),cancel:y=>{for(let b=0;b<Bt.length;b++)r[Bt[b]].cancel(y)},state:i,steps:r}}const{schedule:M,cancel:Q,state:F,steps:ne}=ri(typeof requestAnimationFrame<"u"?requestAnimationFrame:_,!0);let Ut;function Hr(){Ut=void 0}const O={now:()=>(Ut===void 0&&O.set(F.isProcessing||q.useManualTiming?F.timestamp:performance.now()),Ut),set:t=>{Ut=t,queueMicrotask(Hr)}},oi=t=>e=>typeof e=="string"&&e.startsWith(t),ai=oi("--"),Gr=oi("var(--"),Ze=t=>Gr(t)?zr.test(t.split("/*")[0].trim()):!1,zr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function An(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const pt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ct={...pt,transform:t=>z(0,1,t)},jt={...pt,default:1},St=t=>Math.round(t*1e5)/1e5,Je=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Xr(t){return t==null}const Yr=/^(?:#[\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"&&Yr.test(n)&&n.startsWith(t)||e&&!Xr(n)&&Object.prototype.hasOwnProperty.call(n,e)),li=(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}},qr=t=>z(0,255,t),se={...pt,transform:t=>Math.round(qr(t))},rt={test:Qe("rgb","red"),parse:li("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+se.transform(t)+", "+se.transform(e)+", "+se.transform(n)+", "+St(Ct.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},kt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Z=kt("deg"),G=kt("%"),x=kt("px"),Jr=kt("vh"),Qr=kt("vw"),bn={...G,parse:t=>G.parse(t)/100,transform:t=>G.transform(t*100)},ct={test:Qe("hsl","hue"),parse:li("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+G.transform(St(e))+", "+G.transform(St(n))+", "+St(Ct.transform(s))+")"},L={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=L.parse(t);return e.alpha=0,L.transform(e)}},to=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function eo(t){return isNaN(t)&&typeof t=="string"&&(t.match(Je)?.length||0)+(t.match(to)?.length||0)>0}const ci="number",ui="color",no="var",so="var(",Vn="${}",io=/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 Mt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(io,l=>(L.test(l)?(s.color.push(o),i.push(ui),n.push(L.parse(l))):l.startsWith(so)?(s.var.push(o),i.push(no),n.push(l)):(s.number.push(o),i.push(ci),n.push(parseFloat(l))),++o,Vn)).split(Vn);return{values:n,split:a,indexes:s,types:i}}function hi(t){return Mt(t).values}function fi(t){const{split:e,types:n}=Mt(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===ci?o+=St(i[r]):a===ui?o+=L.transform(i[r]):o+=i[r]}return o}}const ro=t=>typeof t=="number"?0:L.test(t)?L.getAnimatableNone(t):t;function oo(t){const e=hi(t);return fi(t)(e.map(ro))}const tt={test:eo,parse:hi,createTransformer:fi,getAnimatableNone:oo};function ie(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 ao({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=ie(l,a,t+1/3),o=ie(l,a,t),r=ie(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 D=(t,e,n)=>t+(e-t)*n,re=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},lo=[Te,rt,ct],co=t=>lo.find(e=>e.test(t));function Cn(t){const e=co(t);if(!e)return!1;let n=e.parse(t);return e===ct&&(n=ao(n)),n}const Mn=(t,e)=>{const n=Cn(t),s=Cn(e);if(!n||!s)return $t(t,e);const i={...n};return o=>(i.red=re(n.red,s.red,o),i.green=re(n.green,s.green,o),i.blue=re(n.blue,s.blue,o),i.alpha=D(n.alpha,s.alpha,o),rt.transform(i))},Pe=new Set(["none","hidden"]);function uo(t,e){return Pe.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ho(t,e){return n=>D(t,e,n)}function tn(t){return typeof t=="number"?ho:typeof t=="string"?Ze(t)?$t:L.test(t)?Mn:po:Array.isArray(t)?di:typeof t=="object"?L.test(t)?Mn:fo:$t}function di(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 fo(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 mo(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 po=(t,e)=>{const n=tt.createTransformer(e),s=Mt(t),i=Mt(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?Pe.has(t)&&!i.values.length||Pe.has(e)&&!s.values.length?uo(t,e):Rt(di(mo(s,i),i.values),n):$t(t,e)};function mi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):tn(t)(t,e)}const go=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>M.update(e,n),stop:()=>Q(e),now:()=>F.isProcessing?F.timestamp:O.now()}},pi=(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)})`},Ht=2e4;function en(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Ht;)e+=n,s=t.next(e);return e>=Ht?1/0:e}function yo(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(en(s),Ht);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:K(i)}}const vo=5;function gi(t,e,n){const s=Math.max(e-vo,0);return Xs(n-t(s),e-s)}const E={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},oe=.001;function xo({duration:t=E.duration,bounce:e=E.bounce,velocity:n=E.velocity,mass:s=E.mass}){let i,o,r=1-e;r=z(E.minDamping,E.maxDamping,r),t=z(E.minDuration,E.maxDuration,K(t)),r<1?(i=u=>{const c=u*r,h=c*t,f=c-n,d=Se(u,r),m=Math.exp(-h);return oe-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=Se(Math.pow(u,2),r);return(-i(u)+oe>0?-1:1)*((f-d)*m)/p}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-oe+c*h},o=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Po(i,o,a);if(t=Y(t),isNaN(l))return{stiffness:E.stiffness,damping:E.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const To=12;function Po(t,e,n){let s=n;for(let i=1;i<To;i++)s=s-t(s)/e(s);return s}function Se(t,e){return t*Math.sqrt(1-e*e)}const So=["duration","bounce"],wo=["stiffness","damping","mass"];function Dn(t,e){return e.some(n=>t[n]!==void 0)}function Ao(t){let e={velocity:E.velocity,stiffness:E.stiffness,damping:E.damping,mass:E.mass,isResolvedFromDuration:!1,...t};if(!Dn(t,wo)&&Dn(t,So))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*z(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:E.mass,stiffness:i,damping:o}}else{const n=xo(t);e={...e,...n,mass:E.mass},e.isResolvedFromDuration=!0}return e}function Gt(t=E.visualDuration,e=E.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}=Ao({...n,velocity:-K(n.velocity||0)}),m=f||0,p=u/(2*Math.sqrt(l*c)),T=r-o,v=K(Math.sqrt(l/c)),P=Math.abs(T)<5;s||(s=P?E.restSpeed.granular:E.restSpeed.default),i||(i=P?E.restDelta.granular:E.restDelta.default);let y;if(p<1){const w=Se(v,p);y=C=>{const V=Math.exp(-p*v*C);return r-V*((m+p*v*T)/w*Math.sin(w*C)+T*Math.cos(w*C))}}else if(p===1)y=w=>r-Math.exp(-v*w)*(T+(m+v*T)*w);else{const w=v*Math.sqrt(p*p-1);y=C=>{const V=Math.exp(-p*v*C),S=Math.min(w*C,300);return r-V*((m+p*v*T)*Math.sinh(S)+w*T*Math.cosh(S))/w}}const b={calculatedDuration:d&&h||null,next:w=>{const C=y(w);if(d)a.done=w>=h;else{let V=w===0?m:0;p<1&&(V=w===0?Y(m):gi(y,w,C));const S=Math.abs(V)<=s,R=Math.abs(r-C)<=i;a.done=S&&R}return a.value=a.done?r:C,a},toString:()=>{const w=Math.min(en(b),Ht),C=pi(V=>b.next(w*V).value,w,30);return w+"ms "+C},toTransition:()=>{}};return b}Gt.applyToOptions=t=>{const e=yo(t,100,Gt);return t.ease=e.ease,t.duration=Y(e.duration),t.type="keyframes",t};function we({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=S=>a!==void 0&&S<a||l!==void 0&&S>l,m=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let p=n*e;const T=h+p,v=r===void 0?T:r(T);v!==T&&(p=v-h);const P=S=>-p*Math.exp(-S/s),y=S=>v+P(S),b=S=>{const R=P(S),B=y(S);f.done=Math.abs(R)<=u,f.value=f.done?v:B};let w,C;const V=S=>{d(f.value)&&(w=S,C=Gt({keyframes:[f.value,m(f.value)],velocity:gi(y,S,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return V(0),{calculatedDuration:null,next:S=>{let R=!1;return!C&&w===void 0&&(R=!0,b(S),V(S)),w!==void 0&&S>=w?C.next(S-w):(!R&&b(S),f)}}}function bo(t,e,n){const s=[],i=n||q.mix||mi,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=Rt(l,a)}s.push(a)}return s}function Vo(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Ge(o===e.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=bo(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=Vt(t[h],t[h+1],c);return a[h](f)};return n?c=>u(z(t[0],t[o-1],c)):u}function Co(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Vt(0,e,s);t.push(D(n,1,i))}}function Mo(t){const e=[0];return Co(e,t.length-1),e}function Do(t,e){return t.map(n=>n*e)}function Eo(t,e){return t.map(()=>e||si).splice(0,t.length-1)}function wt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Ur(s)?s.map(wn):wn(s),o={done:!1,value:e[0]},r=Do(n&&n.length===e.length?n:Mo(e),t),a=Vo(r,e,{ease:Array.isArray(i)?i:Eo(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Ro=t=>t!==null;function nn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Ro),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Lo={decay:we,inertia:we,tween:wt,keyframes:wt,spring:Gt};function yi(t){typeof t.type=="string"&&(t.type=Lo[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 ko=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=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;yi(e);const{type:n=wt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||wt;l!==wt&&typeof a[0]!="number"&&(this.mixKeyframes=Rt(ko,mi(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:T}=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 v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),P=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let y=this.currentTime,b=s;if(h){const S=Math.min(this.currentTime,i)/a;let R=Math.floor(S),B=S%1;!B&&S>=1&&(B=1),B===1&&R--,R=Math.min(R,h+1),R%2&&(f==="reverse"?(B=1-B,d&&(B-=d/a)):f==="mirror"&&(b=r)),y=z(0,1,B)*a}const w=P?{done:!1,value:c[0]}:b.next(y);o&&(w.value=o(w.value));let{done:C}=w;!P&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return V&&m!==we&&(w.value=nn(c,this.options,T,this.speed)),p&&p(w.value),V&&this.finish(),w}then(e,n){return this.finished.then(e,n)}get duration(){return K(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+K(e)}get time(){return K(this.currentTime)}set time(e){e=Y(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.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=K(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=go,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();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(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Io(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ot=t=>t*180/Math.PI,Ae=t=>{const e=ot(Math.atan2(t[1],t[0]));return be(e)},Fo={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ae,rotateZ:Ae,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},be=t=>(t=t%360,t<0&&(t+=360),t),En=Ae,Rn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Ln=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Bo={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Rn,scaleY:Ln,scale:t=>(Rn(t)+Ln(t))/2,rotateX:t=>be(ot(Math.atan2(t[6],t[5]))),rotateY:t=>be(ot(Math.atan2(-t[2],t[0]))),rotateZ:En,rotate:En,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=Bo,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Fo,i=a}if(!i)return Ve(e);const o=s[e],r=i[1].split(",").map(Oo);return typeof o=="function"?o(r):r[o]}const jo=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ce(n,e)};function Oo(t){return parseFloat(t.trim())}const gt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yt=new Set(gt),kn=t=>t===pt||t===x,No=new Set(["x","y","z"]),Uo=gt.filter(t=>!No.has(t));function Wo(t){const e=[];return Uo.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 vi(){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=Wo(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])=>{s.getValue(o)?.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 xi(){at.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(De=!0)})}function Ko(){Ee=!0,xi(),vi(),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,M.read(xi),M.resolveKeyframes(vi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=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])}Io(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 _o=t=>t.startsWith("--");function $o(t,e,n){_o(e)?t.style.setProperty(e,n):t.style[e]=n}const Ho=ze(()=>window.ScrollTimeline!==void 0),Go={};function zo(t,e){const n=ze(t);return()=>Go[e]??n()}const Ti=zo(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,In={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tt([0,.65,.55,1]),circOut:Tt([.55,0,1,.45]),backIn:Tt([.31,.01,.66,-.59]),backOut:Tt([.33,1.53,.69,.99])};function Pi(t,e){if(t)return typeof t=="function"?Ti()?pi(t,e):"ease-out":ii(t)?Tt(t):Array.isArray(t)?t.map(n=>Pi(n,e)||In.easeOut):In[t]}function Xo(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=Pi(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 Yo({type:t,...e}){return Si(t)&&Ti()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class qo 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,Ge(typeof e.type!="string");const u=Yo(e);this.animation=Xo(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):$o(n,s,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return K(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+K(e)}get time(){return K(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Y(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}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Ho()?(this.animation.timeline=e,_):n(this)}}const wi={anticipate:ti,backInOut:Qs,circInOut:ni};function Zo(t){return t in wi}function Jo(t){typeof t.ease=="string"&&Zo(t.ease)&&(t.ease=wi[t.ease])}const ae=10;class Qo extends qo{constructor(e){Jo(e),yi(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(ae,O.now()-this.startTime),u=z(0,ae,l-ae);n.setWithVelocity(a.sample(Math.max(0,l-u)).value,a.sample(l).value,u),a.stop()}}const Fn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(tt.test(t)||t==="0")&&!t.startsWith("url("));function ta(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 ea(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=Fn(i,e),a=Fn(o,e);return!r||!a?!1:ta(t)||(n==="spring"||Si(n))&&s}function Re(t){t.duration=0,t.type="keyframes"}const na=new Set(["opacity","clipPath","filter","transform"]),sa=ze(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ia(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return sa()&&n&&na.has(n)&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const ra=40;class oa extends sn{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:u,element:c,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.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?.KeyframeResolver||on;this.keyframeResolver=new d(a,(m,p,T)=>this.onKeyframesResolved(m,p,f,!T),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=O.now(),ea(e,o,r,a)||((q.instantAnimations||!l)&&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>ra?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!u&&ia(f),m=f.motionValue?.owner?.current,p=d?new Qo({...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(){return this._animation||(this.keyframeResolver?.resume(),Ko()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Ai(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 aa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function la(t){const e=aa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function bi(t,e,n=1){const[s,i]=la(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Hs(r)?parseFloat(r):r}return Ze(i)?bi(i,e,n+1):i}const ca={type:"spring",stiffness:500,damping:25,restSpeed:10},ua=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ha={type:"keyframes",duration:.8},fa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},da=(t,{keyframes:e})=>e.length>2?ha:yt.has(t)?t.startsWith("scale")?ua(e[1]):ca:fa,ma=t=>t!==null;function pa(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(ma),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}function an(t,e){return t?.[e]??t?.default??t}function ga({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-Y(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};ga(a)||Object.assign(c,da(t,c)),c.duration&&(c.duration=Y(c.duration)),c.repeatDelay&&(c.repeatDelay=Y(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=pa(c.keyframes,a);if(f!==void 0){M.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new rn(c):new oa(c)};function Bn(t){const e=[{},{}];
vendor: 85,303 bytes, lines 1-9
1return 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]=Bn(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]=Bn(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 Vi=new Set(["width","height","top","left","right","bottom",...gt]),jn=30,ya=t=>!isNaN(parseFloat(t));class va{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=O.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.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=ya(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(),M.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(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>jn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jn);return Xs(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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mt(t,e){return new va(t,e)}const Le=t=>Array.isArray(t);function xa(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,mt(n))}function Ta(t){return Le(t)?t[t.length-1]||0:t}function Pa(t,e){const n=dt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Ta(o[r]);xa(t,r,a)}}const j=t=>!!(t&&t.getVelocity);function Sa(t){return!!(j(t)&&t.add)}function ke(t,e){const n=t.getValue("willChange");if(Sa(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 wa="framerAppearId",Ci="data-"+un(wa);function Mi(t){return t.props[Ci]}function Aa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Di(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const l=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const c in a){const h=t.getValue(c,t.latestValues[c]??null),f=a[c];if(f===void 0||u&&Aa(u,c))continue;const d={delay:n,...an(o||{},c)},m=h.get();if(m!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===m&&!d.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const v=Mi(t);if(v){const P=window.MotionHandoffAnimation(v,c,M);P!==null&&(d.startTime=P,p=!0)}}ke(t,c),h.start(ln(c,h,f,t.shouldReduceMotion&&Vi.has(c)?{type:!1}:d,t,p));const T=h.animation;T&&l.push(T)}return r&&Promise.all(l).then(()=>{M.update(()=>{r&&Pa(t,r)})}),l}function Ie(t,e,n={}){const s=dt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Di(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:h}=i;return ba(t,e,l,u,c,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function ba(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(Ie(l,e,{...r,delay:n+(typeof s=="function"?0:s)+Ai(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Va(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ie(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ie(t,e,n);else{const i=typeof e=="function"?dt(t,e,n.custom):e;s=Promise.all(Di(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ca={test:t=>t==="auto",parse:t=>t},Ei=t=>e=>e.test(t),Ri=[pt,x,G,Z,Qr,Jr,Ca],On=t=>Ri.find(Ei(t));function Ma(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||zs(t):!0}const Da=new Set(["brightness","contrast","saturate","opacity"]);function Ea(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=Da.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ra=/\b([a-z-]*)\(.*?\)/gu,Fe={...tt,getAnimatableNone:t=>{const e=t.match(Ra);return e?e.map(Ea).join(" "):t}},Nn={...pt,transform:Math.round},La={rotate:Z,rotateX:Z,rotateY:Z,rotateZ:Z,scale:jt,scaleX:jt,scaleY:jt,scaleZ:jt,skew:Z,skewX:Z,skewY:Z,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:Ct,originX:bn,originY:bn,originZ:x},hn={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,inset:x,insetBlock:x,insetBlockStart:x,insetBlockEnd:x,insetInline:x,insetInlineStart:x,insetInlineEnd:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,paddingBlock:x,paddingBlockStart:x,paddingBlockEnd:x,paddingInline:x,paddingInlineStart:x,paddingInlineEnd:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,marginBlock:x,marginBlockStart:x,marginBlockEnd:x,marginInline:x,marginInlineStart:x,marginInlineEnd:x,backgroundPositionX:x,backgroundPositionY:x,...La,zIndex:Nn,fillOpacity:Ct,strokeOpacity:Ct,numOctaves:Nn},ka={...hn,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:Fe,WebkitFilter:Fe},Li=t=>ka[t];function ki(t,e){let n=Li(t);return n!==Fe&&(n=tt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ia=new Set(["auto","none","0"]);function Fa(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Ia.has(o)&&Mt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=ki(n,i)}class Ba 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(),!Vi.has(s)||e.length!==2)return;const[i,o]=e,r=On(i),a=On(o),l=An(i),u=An(o);if(l!==u&&J[s]){this.needsMeasurement=!0;return}if(r!==a)if(kn(r)&&kn(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||Ma(e[i]))&&s.push(i);s.length&&Fa(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(){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),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function ja(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const Ii=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Fi(t){return Gs(t)&&"offsetHeight"in t}const{schedule:fn}=ri(queueMicrotask,!1),H={x:!1,y:!1};function Bi(){return H.x||H.y}function Oa(t){return t==="x"||t==="y"?H[t]?null:(H[t]=!0,()=>{H[t]=!1}):H.x||H.y?null:(H.x=H.y=!0,()=>{H.x=H.y=!1})}function ji(t,e){const n=ja(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Un(t){return!(t.pointerType==="touch"||Bi())}function Na(t,e,n={}){const[s,i,o]=ji(t,n),r=a=>{if(!Un(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const c=h=>{Un(h)&&(u(h),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const Oi=(t,e)=>e?t===e?!0:Oi(t,e.parentElement):!1,dn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Ua=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ni(t){return Ua.has(t.tagName)||t.isContentEditable===!0}const Wt=new WeakSet;function Wn(t){return e=>{e.key==="Enter"&&t(e)}}function le(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Wa=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Wn(()=>{if(Wt.has(n))return;le(n,"down");const i=Wn(()=>{le(n,"up")}),o=()=>le(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 Kn(t){return dn(t)&&!Bi()}function Ka(t,e,n={}){const[s,i,o]=ji(t,n),r=a=>{const l=a.currentTarget;if(!Kn(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),Kn(d)&&typeof u=="function"&&u(d,{success:m})},h=d=>{c(d,l===window||l===document||n.useGlobalTarget||Oi(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),Fi(a)&&(a.addEventListener("focus",u=>Wa(u,i)),!Ni(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Ui(t){return Gs(t)&&"ownerSVGElement"in t}function _a(t){return Ui(t)&&t.tagName==="svg"}const $a=[...Ri,L,tt],Ha=t=>$a.find(Ei(t)),_n=()=>({translate:0,scale:1,origin:0,originPoint:0}),ut=()=>({x:_n(),y:_n()}),$n=()=>({min:0,max:0}),k=()=>({x:$n(),y:$n()}),Be={current:null},Wi={current:!1},Ga=typeof window<"u";function za(){if(Wi.current=!0,!!Ga)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Be.current=t.matches;t.addEventListener("change",e),e()}else Be.current=!1}const Xa=new WeakMap;function Jt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Dt(t){return typeof t=="string"||Array.isArray(t)}const mn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pn=["initial",...mn];function Qt(t){return Jt(t.animate)||pn.some(e=>Dt(t[e]))}function Ki(t){return!!(Qt(t)||t.variants)}function Ya(t,e,n){for(const s in e){const i=e[s],o=n[s];if(j(i))t.addValue(s,i);else if(j(o))t.addValue(s,mt(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,mt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Hn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let zt={};function _i(t){zt=t}function qa(){return zt}class Za{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,M.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=Qt(n),this.isVariantNode=Ki(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&&j(d)&&d.set(l[f])}}mount(e){this.current=e,Xa.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((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Wi.current||za(),this.shouldReduceMotion=Be.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Q(this.notifyUpdate),Q(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.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=yt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&M.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<Hn.length;s++){const i=Hn[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=Ya(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=mt(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"&&(Hs(s)||zs(s))?s=parseFloat(s):!Ha(s)&&tt.test(n)&&(s=ki(e,n)),this.setBaseTarget(e,j(s)?s.get():s)),j(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=cn(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!j(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 Za{constructor(){super(...arguments),this.KeyframeResolver=Ba}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;j(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 Hi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Ja({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 ce(t){return t===void 0||t===1}function je({scale:t,scaleX:e,scaleY:n}){return!ce(t)||!ce(e)||!ce(n)}function it(t){return je(t)||Gi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Gi(t){return Gn(t.x)||Gn(t.y)}function Gn(t){return t&&t!=="0%"}function Xt(t,e,n){const s=t-n,i=e*s;return n+i}function zn(t,e,n,s,i){return i!==void 0&&(t=Xt(t,i,s)),Xt(t,n,s)+e}function Oe(t,e=0,n=1,s,i){t.min=zn(t.min,e,n,s,i),t.max=zn(t.max,e,n,s,i)}function zi(t,{x:e,y:n}){Oe(t.x,e.translate,e.scale,e.originPoint),Oe(t.y,n.translate,n.scale,n.originPoint)}const Xn=.999999999999,Yn=1.0000000000001;function tl(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,zi(t,r)),s&&it(o.latestValues)&&ft(t,o.latestValues))}e.x<Yn&&e.x>Xn&&(e.x=1),e.y<Yn&&e.y>Xn&&(e.y=1)}function ht(t,e){t.min=t.min+e,t.max=t.max+e}function qn(t,e,n,s,i=.5){const o=D(t.min,t.max,i);Oe(t,e,n,o,s)}function ft(t,e){qn(t.x,e.x,e.scaleX,e.scale,e.originX),qn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Xi(t,e){return Hi(Qa(t.getBoundingClientRect(),e))}function el(t,e,n){const s=Xi(t,n),{scroll:i}=e;return i&&(ht(s.x,i.offset.x),ht(s.y,i.offset.y)),s}const nl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sl=gt.length;function il(t,e,n){let s="",i=!0;for(let o=0;o<sl;o++){const r=gt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Ii(a,hn[r]);if(!l){i=!1;const c=nl[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(yt.has(l)){r=!0;continue}else if(ai(l)){i[l]=u;continue}else{const c=Ii(u,hn[l]);l.startsWith("origin")?(a=!0,o[l]=c):s[l]=c}}if(e.transform||(r||n?s.transform=il(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 Yi(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Zn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const xt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const n=Zn(t,e.target.x),s=Zn(t,e.target.y);return`${n}% ${s}%`}},rl={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=D(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}},Ne={borderRadius:{...xt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomLeftRadius:xt,borderBottomRightRadius:xt,boxShadow:rl};function qi(t,{layout:e,layoutId:n}){return yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ne[t]||t==="opacity")}function yn(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(j(s[r])||i&&j(i[r])||qi(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function ol(t){return window.getComputedStyle(t)}class al extends $i{constructor(){super(...arguments),this.type="html",this.renderInstance=Yi}readValueFromInstance(e,n){if(yt.has(n))return this.projection?.isProjecting?Ve(n):jo(e,n);{const s=ol(e),i=(ai(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Xi(e,n)}build(e,n,s){gn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return yn(e,n,s)}}const ll={offset:"stroke-dashoffset",array:"stroke-dasharray"},cl={offset:"strokeDashoffset",array:"strokeDasharray"};function ul(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?ll:cl;t[o.offset]=x.transform(-s);const r=x.transform(e),a=x.transform(n);t[o.array]=`${r} ${a}`}const hl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Zi(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?.transformBox??"fill-box",delete h.transformBox);for(const d of hl)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&&ul(h,i,o,r,!1)}const Ji=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"]),Qi=t=>typeof t=="string"&&t.toLowerCase()==="svg";function fl(t,e,n,s){Yi(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ji.has(i)?i:un(i),e.attrs[i])}function tr(t,e,n){const s=yn(t,e,n);for(const i in t)if(j(t[i])||j(e[i])){const o=gt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class dl extends $i{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(yt.has(n)){const s=Li(n);return s&&s.default||0}return n=Ji.has(n)?n:un(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return tr(e,n,s)}build(e,n,s){Zi(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){fl(e,n,s,i)}mount(e){this.isSVGTag=Qi(e.tagName),super.mount(e)}}const ml=pn.length;function er(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?er(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ml;n++){const s=pn[n],i=t.props[s];(Dt(i)||i===!1)&&(e[s]=i)}return e}function nr(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 pl=[...mn].reverse(),gl=mn.length;function yl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Va(t,n,s)))}function vl(t){let e=yl(t),n=Jn(),s=!0;const i=l=>(u,c)=>{const h=dt(t,c,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...m}=h;u={...u,...m,...d}}return u};function o(l){e=l(t)}function r(l){const{props:u}=t,c=er(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let T=0;T<gl;T++){const v=pl[T],P=n[v],y=u[v]!==void 0?u[v]:c[v],b=Dt(y),w=v===l?P.isActive:null;w===!1&&(m=T);let C=y===c[v]&&y!==u[v]&&b;if(C&&s&&t.manuallyAnimateOnMount&&(C=!1),P.protectedKeys={...d},!P.isActive&&w===null||!y&&!P.prevProp||Jt(y)||typeof y=="boolean")continue;const V=xl(P.prevProp,y);let S=V||v===l&&P.isActive&&!C&&b||T>m&&b,R=!1;const B=Array.isArray(y)?y:[y];let X=B.reduce(i(v),{});w===!1&&(X={});const{prevResolvedValues:Ft={}}=P,Vr={...Ft,...X},Pn=I=>{S=!0,f.has(I)&&(R=!0,f.delete(I)),P.needsAnimating[I]=!0;const U=t.getValue(I);U&&(U.liveStyle=!1)};for(const I in Vr){const U=X[I],nt=Ft[I];if(d.hasOwnProperty(I))continue;let lt=!1;Le(U)&&Le(nt)?lt=!nr(U,nt):lt=U!==nt,lt?U!=null?Pn(I):f.add(I):U!==void 0&&f.has(I)?Pn(I):P.protectedKeys[I]=!0}P.prevProp=y,P.prevResolvedValues=X,P.isActive&&(d={...d,...X}),s&&t.blockInitialAnimation&&(S=!1);const Sn=C&&V;S&&(!Sn||R)&&h.push(...B.map(I=>{const U={type:v};if(typeof I=="string"&&s&&!Sn&&t.manuallyAnimateOnMount&&t.parent){const{parent:nt}=t,lt=dt(nt,I);if(nt.enteringChildren&<){const{delayChildren:Cr}=lt.transition||{};U.delay=Ai(nt.enteringChildren,t,Cr)}}return{animation:I,options:U}}))}if(f.size){const T={};if(typeof u.initial!="boolean"){const v=dt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(T.transition=v.transition)}f.forEach(v=>{const P=t.getBaseTarget(v),y=t.getValue(v);y&&(y.liveStyle=!0),T[v]=P??null}),h.push({animation:T})}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){if(n[l].isActive===u)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,u)),n[l].isActive=u;const c=r(l);for(const h in n)n[h].protectedKeys={};return c}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Jn()}}}function xl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!nr(e,t):!1}function st(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jn(){return{animate:st(!0),whileInView:st(),whileHover:st(),whileTap:st(),whileDrag:st(),whileFocus:st(),exit:st()}}function Qn(t,e){t.min=e.min,t.max=e.max}function $(t,e){Qn(t.x,e.x),Qn(t.y,e.y)}function ts(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const sr=1e-4,Tl=1-sr,Pl=1+sr,ir=.01,Sl=0-ir,wl=0+ir;function N(t){return t.max-t.min}function Al(t,e,n){return Math.abs(t-e)<=n}function es(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=N(n)/N(e),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Tl&&t.scale<=Pl||isNaN(t.scale))&&(t.scale=1),(t.translate>=Sl&&t.translate<=wl||isNaN(t.translate))&&(t.translate=0)}function At(t,e,n,s){es(t.x,e.x,n.x,s?s.originX:void 0),es(t.y,e.y,n.y,s?s.originY:void 0)}function ns(t,e,n){t.min=n.min+e.min,t.max=t.min+N(e)}function bl(t,e,n){ns(t.x,e.x,n.x),ns(t.y,e.y,n.y)}function ss(t,e,n){t.min=e.min-n.min,t.max=t.min+N(e)}function Yt(t,e,n){ss(t.x,e.x,n.x),ss(t.y,e.y,n.y)}function is(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 Vl(t,e=0,n=1,s=.5,i,o=t,r=t){if(G.test(e)&&(e=parseFloat(e),e=D(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=D(o.min,o.max,s);t===o&&(a-=e),t.min=is(t.min,e,n,a,i),t.max=is(t.max,e,n,a,i)}function rs(t,e,[n,s,i],o,r){Vl(t,e[n],e[s],e[i],e.scale,o,r)}const Cl=["x","scaleX","originX"],Ml=["y","scaleY","originY"];function os(t,e,n,s){rs(t.x,e,Cl,n?n.x:void 0,s?s.x:void 0),rs(t.y,e,Ml,n?n.y:void 0,s?s.y:void 0)}function as(t){return t.translate===0&&t.scale===1}function rr(t){return as(t.x)&&as(t.y)}function ls(t,e){return t.min===e.min&&t.max===e.max}function Dl(t,e){return ls(t.x,e.x)&&ls(t.y,e.y)}function cs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function or(t,e){return cs(t.x,e.x)&&cs(t.y,e.y)}function us(t){return N(t.x)/N(t.y)}function hs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function W(t){return[t("x"),t("y")]}function El(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=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 ar=["TopLeft","TopRight","BottomLeft","BottomRight"],Rl=ar.length,fs=t=>typeof t=="string"?parseFloat(t):t,ds=t=>typeof t=="number"||x.test(t);function Ll(t,e,n,s,i,o){i?(t.opacity=D(0,n.opacity??1,kl(s)),t.opacityExit=D(e.opacity??1,0,Il(s))):o&&(t.opacity=D(e.opacity??1,n.opacity??1,s));for(let r=0;r<Rl;r++){const a=`border${ar[r]}Radius`;let l=ms(e,a),u=ms(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||ds(l)===ds(u)?(t[a]=Math.max(D(fs(l),fs(u),s),0),(G.test(u)||G.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,s))}function ms(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const kl=lr(0,.5,ei),Il=lr(.5,.95,_);function lr(t,e,n){return s=>s<t?0:s>e?1:n(Vt(t,e,s))}function Fl(t,e,n){const s=j(t)?t:mt(t);return s.start(ln("",s,e,n)),s.animation}function Et(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Bl=(t,e)=>t.depth-e.depth;class jl{constructor(){this.children=[],this.isDirty=!1}add(e){$e(this.children,e),this.isDirty=!0}remove(e){He(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bl),this.isDirty=!1,this.children.forEach(e)}}function Ol(t,e){const n=O.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Q(s),t(o-e))};return M.setup(s,!0),()=>Q(s)}function Kt(t){return j(t)?t.get():t}class Nl{constructor(){this.members=[]}add(e){$e(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(),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:i}=e.options;i===!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 _t={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ue=["","X","Y","Z"],Ul=1e3;let Wl=0;function he(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function cr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Mi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",M,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&cr(s)}function ur({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=Wl++,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($l),this.nodes.forEach(Xl),this.nodes.forEach(Yl),this.nodes.forEach(Hl)},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 jl)}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=Ui(r)&&!_a(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;M.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,c&&c(),c=Ol(f,250),_t.hasAnimatedSinceResize&&(_t.hasAnimatedSinceResize=!1,this.nodes.forEach(ys)))})}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()||tc,{onLayoutAnimationStart:p,onLayoutAnimationComplete:T}=u.getProps(),v=!this.targetLayout||!or(this.targetLayout,d),P=!h&&f;if(this.options.layoutRoot||this.resumeFrom||P||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...an(m,"layout"),onPlay:p,onComplete:T};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(c,P)}else h||ys(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(ql),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&&cr(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(ps);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(gs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(zl),this.nodes.forEach(Kl),this.nodes.forEach(_l)):this.nodes.forEach(gs),this.clearAllSnapshots();const a=O.now();F.delta=z(0,1e3/60,a-F.timestamp),F.timestamp=a,F.isProcessing=!0,ne.update.process(F),ne.preRender.process(F),ne.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,fn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Gl),this.sharedNodes.forEach(Zl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!N(this.snapshot.measuredBox.x)&&!N(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&&!rr(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)),ec(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return k();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(nc))){const{scroll:u}=this.root;u&&(ht(a.x,u.offset.x),ht(a.y,u.offset.y))}return a}removeElementScroll(r){const a=k();if($(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:h}=u;u!==this.root&&c&&h.layoutScroll&&(c.wasRoot&&$(a,r),ht(a.x,c.offset.x),ht(a.y,c.offset.y))}return a}applyTransform(r,a=!1){const l=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();$(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();$(c,h),os(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return it(this.latestValues)&&os(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!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){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||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:h}=this.options;if(!this.layout||!(c||h))return;this.resolvedRelativeTargetAt=F.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(),bl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$(this.target,this.layout.layoutBox),zi(this.target,this.targetDelta)):$(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)||Gi(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),$(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===F.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;$(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;tl(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():(ts(this.prevProjectionDelta.x,this.projectionDelta.x),ts(this.prevProjectionDelta.y,this.projectionDelta.y)),At(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!hs(this.projectionDelta.x,this.prevProjectionDelta.x)||!hs(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){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.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,T=this.getStack(),v=!T||T.members.length<=1,P=!!(p&&!v&&this.options.crossfade===!0&&!this.path.some(Ql));this.animationProgress=0;let y;this.mixTargetDelta=b=>{const w=b/1e3;vs(h.x,r.x,w),vs(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),Jl(this.relativeTarget,this.relativeTargetOrigin,f,w),y&&Dl(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=k()),$(y,this.relativeTarget)),p&&(this.animationValues=c,Ll(c,u,this.latestValues,w,P,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{_t.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mt(0)),this.currentAnimation=Fl(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},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(Ul),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&&hr(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||k();const h=N(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=N(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}$(a,l),ft(a,c),At(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Nl),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(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.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&&he("z",r,u,this.animationValues);for(let c=0;c<ue.length;c++)he(`rotate${ue[c]}`,r,u,this.animationValues),he(`skew${ue[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=Kt(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=Kt(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=El(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 Ne){if(c[m]===void 0)continue;const{correct:p,applyTo:T,isCSSVariable:v}=Ne[m],P=h==="none"?c[m]:p(c[m],u);if(T){const y=T.length;for(let b=0;b<y;b++)r[T[b]]=P}else v?this.options.visualElement.renderState.vars[m]=P:r[m]=P}this.options.layoutId&&(r.pointerEvents=u===this?Kt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(ps),this.root.sharedNodes.clear()}}}function Kl(t){t.updateLayout()}function _l(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?W(c=>{const h=o?e.measuredBox[c]:e.layoutBox[c],f=N(h);h.min=n[c].min,h.max=h.min+f}):hr(i,e.layoutBox,n)&&W(c=>{const h=o?e.measuredBox[c]:e.layoutBox[c],f=N(n[c]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+f)});const r=ut();At(r,n,e.layoutBox);const a=ut();o?At(a,t.applyTransform(s,!0),e.measuredBox):At(a,n,e.layoutBox);const l=!rr(r);let u=!1;if(!t.resumeFrom){const c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:h,layout:f}=c;if(h&&f){const d=k();Yt(d,e.layoutBox,h.layoutBox);const m=k();Yt(m,n,f.layoutBox),or(d,m)||(u=!0),c.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=d,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function $l(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 Hl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Gl(t){t.clearSnapshot()}function ps(t){t.clearMeasurements()}function gs(t){t.isLayoutDirty=!1}function zl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ys(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Xl(t){t.resolveTargetDelta()}function Yl(t){t.calcProjection()}function ql(t){t.resetSkewAndRotation()}function Zl(t){t.removeLeadSnapshot()}function vs(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function xs(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function Jl(t,e,n,s){xs(t.x,e.x,n.x,s),xs(t.y,e.y,n.y,s)}function Ql(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const tc={duration:.45,ease:[.4,0,.1,1]},Ts=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ps=Ts("applewebkit/")&&!Ts("chrome/")?Math.round:_;function Ss(t){t.min=Ps(t.min),t.max=Ps(t.max)}function ec(t){Ss(t.x),Ss(t.y)}function hr(t,e,n){return t==="position"||t==="preserve-aspect"&&!Al(us(e),us(n),.2)}function nc(t){return t!==t.root&&t.scroll?.wasRoot}const sc=ur({attachResizeListener:(t,e)=>Et(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fe={current:void 0},fr=ur({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!fe.current){const t=new sc({});t.mount(window),t.setOptions({layoutScroll:!0}),fe.current=t}return fe.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),vn=g.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function ws(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function ic(...t){return e=>{let n=!1;const s=t.map(i=>{const o=ws(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():ws(t[i],null)}}}}function rc(...t){return g.useCallback(ic(...t),t)}class oc extends g.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=Fi(s)&&s.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ac({children:t,isPresent:e,anchorX:n,root:s}){const i=g.useId(),o=g.useRef(null),r=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=g.useContext(vn),l=t.props?.ref??t?.ref,u=rc(o,l);return g.useInsertionEffect(()=>{const{width:c,height:h,top:f,left:d,right:m}=r.current;if(e||!o.current||!c||!h)return;const p=n==="left"?`left: ${d}`:`right: ${m}`;o.current.dataset.motionPopId=i;const T=document.createElement("style");a&&(T.nonce=a);const v=s??document.head;return v.appendChild(T),T.sheet&&T.sheet.insertRule(` 2 [data-motion-pop-id="${i}"] { 3 position: absolute !important; 4 width: ${c}px !important; 5 height: ${h}px !important; 6 ${p}px !important; 7 top: ${f}px !important; 8 } 9 `),()=>{v.contains(T)&&v.removeChild(T)}},[e]),A.jsx(oc,{isPresent:e,childRef:o,sizeRef:r,children:g.cloneElement(t,{ref:u})})}const lc=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a,root:l})=>{const u=_e(cc),c=g.useId();let h=!0,f=g.useMemo(()=>(h=!1,{id:c,initial:e,isPresent:n,custom:i,onExitComplete:d=>{u.set(d,!0);for(const m of u.values())if(!m)return;s&&s()},register:d=>(u.set(d,!1),()=>u.delete(d))}),[n,u,s]);return o&&h&&(f={...f}),g.useMemo(()=>{u.forEach((d,m)=>u.set(m,!1))},[n]),g.useEffect(()=>{!n&&!u.size&&s&&s()},[n]),r==="popLayout"&&(t=A.jsx(ac,{isPresent:n,anchorX:a,root:l,children:t})),A.jsx(Zt.Provider,{value:f,children:t})};function cc(){return new Map}function dr(t=!0){const e=g.useContext(Zt);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=g.useId();g.useEffect(()=>{if(t)return i(o)},[t]);const r=g.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Ot=t=>t.key||"";function As(t){const e=[];return g.Children.forEach(t,n=>{g.isValidElement(n)&&e.push(n)}),e}const uc=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",root:l})=>{const[u,c]=dr(r),h=g.useMemo(()=>As(t),[t]),f=r&&!u?[]:h.map(Ot),d=g.useRef(!0),m=g.useRef(h),p=_e(()=>new Map),T=g.useRef(new Set),[v,P]=g.useState(h),[y,b]=g.useState(h);$s(()=>{d.current=!1,m.current=h;for(let V=0;V<y.length;V++){const S=Ot(y[V]);f.includes(S)?(p.delete(S),T.current.delete(S)):p.get(S)!==!0&&p.set(S,!1)}},[y,f.length,f.join("-")]);const w=[];if(h!==v){let V=[...h];for(let S=0;S<y.length;S++){const R=y[S],B=Ot(R);f.includes(B)||(V.splice(S,0,R),w.push(R))}return o==="wait"&&w.length&&(V=w),b(As(V)),P(h),null}const{forceRender:C}=g.useContext(Ke);return A.jsx(A.Fragment,{children:y.map(V=>{const S=Ot(V),R=r&&!u?!1:h===y||f.includes(S),B=()=>{if(T.current.has(S))return;if(T.current.add(S),p.has(S))p.set(S,!0);else return;let X=!0;p.forEach(Ft=>{Ft||(X=!1)}),X&&(C?.(),b(m.current),r&&c?.(),s&&s())};return A.jsx(lc,{isPresent:R,initial:!d.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:l,onExitComplete:R?void 0:B,anchorX:a,children:V},S)})})},mr=g.createContext({strict:!1}),bs={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 Vs=!1;function hc(){if(Vs)return;const t={};for(const e in bs)t[e]={isEnabled:n=>bs[e].some(s=>!!n[s])};_i(t),Vs=!0}function pr(){return hc(),qa()}function fc(t){const e=pr();for(const n in t)e[n]={...e[n],...t[n]};_i(e)}const dc=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")||dc.has(t)}let gr=t=>!qt(t);function mc(t){typeof t=="function"&&(gr=e=>e.startsWith("on")?!qt(e):t(e))}try{mc(require("@emotion/is-prop-valid").default)}catch{}function pc(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(gr(i)||n===!0&&qt(i)||!e&&!qt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const te=g.createContext({});function gc(t,e){if(Qt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Dt(n)?n:void 0,animate:Dt(s)?s:void 0}}return t.inherit!==!1?e:{}}function yc(t){const{initial:e,animate:n}=gc(t,g.useContext(te));return g.useMemo(()=>({initial:e,animate:n}),[Cs(e),Cs(n)])}function Cs(t){return Array.isArray(t)?t.join(" "):t}const xn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yr(t,e,n){for(const s in e)!j(e[s])&&!qi(s,n)&&(t[s]=e[s])}function vc({transformTemplate:t},e){return g.useMemo(()=>{const n=xn();return gn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function xc(t,e){const n=t.style||{},s={};return yr(s,n,t),Object.assign(s,vc(t,e)),s}function Tc(t,e){const n={},s=xc(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 vr=()=>({...xn(),attrs:{}});function Pc(t,e,n,s){const i=g.useMemo(()=>{const o=vr();return Zi(o,e,Qi(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};yr(o,t.style,t),i.style={...o,...i.style}}return i}const Sc=["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:!!(Sc.indexOf(t)>-1||/[A-Z]/u.test(t))}function wc(t,e,n,{latestValues:s},i,o=!1,r){const l=(r??Tn(t)?Pc:Tc)(e,s,i,t),u=pc(e,typeof t=="string",o),c=t!==g.Fragment?{...u,...l,ref:n}:{},{children:h}=e,f=g.useMemo(()=>j(h)?h.get():h,[h]);return g.createElement(t,{...c,children:f})}function Ac({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:bc(n,s,i,t),renderState:e()}}function bc(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Kt(o[f]);let{initial:r,animate:a}=t;const l=Qt(t),u=Ki(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"&&!Jt(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:T,...v}=m;for(const P in v){let y=v[P];if(Array.isArray(y)){const b=c?y.length-1:0;y=y[b]}y!==null&&(i[P]=y)}for(const P in p)i[P]=p[P]}}}return i}const xr=t=>(e,n)=>{const s=g.useContext(te),i=g.useContext(Zt),o=()=>Ac(t,e,s,i);return n?o():_e(o)},Vc=xr({scrapeMotionValuesFromProps:yn,createRenderState:xn}),Cc=xr({scrapeMotionValuesFromProps:tr,createRenderState:vr}),Mc=Symbol.for("motionComponentSymbol");function Dc(t,e,n){const s=g.useRef(n);g.useInsertionEffect(()=>{s.current=n});const i=g.useRef(null);return g.useCallback(o=>{o&&t.onMount?.(o),e&&(o?e.mount(o):e.unmount());const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o)},[e])}const Tr=g.createContext({});function Pt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Ec(t,e,n,s,i,o){const{visualElement:r}=g.useContext(te),a=g.useContext(mr),l=g.useContext(Zt),u=g.useContext(vn).reducedMotion,c=g.useRef(null);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}));const h=c.current,f=g.useContext(Tr);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Rc(c.current,n,i,f);const d=g.useRef(!1);g.useInsertionEffect(()=>{h&&d.current&&h.update(n,l)});const m=n[Ci],p=g.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return $s(()=>{h&&(d.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),p.current&&h.animationState&&h.animationState.animateChanges())}),g.useEffect(()=>{h&&(!p.current&&h.animationState&&h.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),p.current=!1),h.enteringChildren=void 0)}),h}function Rc(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:Pr(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&Pt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:u})}function Pr(t){if(t)return t.options.allowProjection!==!1?t.projection:Pr(t.parent)}function de(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&fc(s);const o=n?n==="svg":Tn(t),r=o?Cc:Vc;function a(u,c){let h;const f={...g.useContext(vn),...u,layoutId:Lc(u)},{isStatic:d}=f,m=yc(u),p=r(u,d);if(!d&&_s){kc();const T=Ic(f);h=T.MeasureLayout,m.visualElement=Ec(t,p,f,i,T.ProjectionNode,o)}return A.jsxs(te.Provider,{value:m,children:[h&&m.visualElement?A.jsx(h,{visualElement:m.visualElement,...f}):null,wc(t,u,Dc(p,m.visualElement,c),p,d,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=g.forwardRef(a);return l[Mc]=t,l}function Lc({layoutId:t}){const e=g.useContext(Ke).id;return e&&t!==void 0?e+"-"+t:t}function kc(t,e){g.useContext(mr).strict}function Ic(t){const e=pr(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Fc(t,e){if(typeof Proxy>"u")return de;const n=new Map,s=(o,r)=>de(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,de(r,void 0,t,e)),n.get(r))})}const Bc=(t,e)=>e.isSVG??Tn(t)?new dl(e):new al(e,{allowProjection:t!==g.Fragment});class jc extends et{constructor(e){super(e),e.animationState||(e.animationState=vl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Jt(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(){this.node.animationState.reset(),this.unmountControls?.()}}let Oc=0;class Nc extends et{constructor(){super(...arguments),this.id=Oc++}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 Uc={animation:{Feature:jc},exit:{Feature:Nc}};function It(t){return{point:{x:t.pageX,y:t.pageY}}}const Wc=t=>e=>dn(e)&&t(e,It(e));function bt(t,e,n,s){return Et(t,e,Wc(n),s)}const Sr=({current:t})=>t?t.ownerDocument.defaultView:null,Ms=(t,e)=>Math.abs(t-e);function Kc(t,e){const n=Ms(t.x,e.x),s=Ms(t.y,e.y);return Math.sqrt(n**2+s**2)}const Ds=new Set(["auto","scroll"]);class wr{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=pe(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=Kc(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!p)return;const{point:T}=d,{timestamp:v}=F;this.history.push({...T,timestamp:v});const{onStart:P,onMove:y}=this.handlers;m||(P&&P(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=me(m,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:p,onSessionEnd:T,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=pe(d.type==="pointercancel"?this.lastMoveEventInfo:me(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,P),T&&T(d,P)},!dn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const l=It(e),u=me(l,this.transformPagePoint),{point:c}=u,{timestamp:h}=F;this.history=[{...c,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,pe(u,this.history)),this.removeListeners=Rt(bt(this.contextWindow,"pointermove",this.handlePointerMove),bt(this.contextWindow,"pointerup",this.handlePointerUp),bt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Ds.has(s.overflowX)||Ds.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),M.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 me(t,e){return e?{point:e(t.point)}:t}function Es(t,e){return{x:t.x-e.x,y:t.y-e.y}}function pe({point:t},e){return{point:t,delta:Es(t,Ar(e)),offset:Es(t,_c(e)),velocity:$c(e,.1)}}function _c(t){return t[0]}function Ar(t){return t[t.length-1]}function $c(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Ar(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>Y(e)));)n--;if(!s)return{x:0,y:0};const o=K(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 Hc(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?D(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?D(n,t,s.max):Math.min(t,n)),t}function Rs(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 Gc(t,{top:e,left:n,bottom:s,right:i}){return{x:Rs(t.x,n,i),y:Rs(t.y,e,s)}}function Ls(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 zc(t,e){return{x:Ls(t.x,e.x),y:Ls(t.y,e.y)}}function Xc(t,e){let n=.5;const s=N(t),i=N(e);return i>s?n=Vt(e.min,e.max-s,t.min):s>i&&(n=Vt(t.min,t.max-i,e.min)),z(0,1,n)}function Yc(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 Ue=.35;function qc(t=Ue){return t===!1?t=0:t===!0&&(t=Ue),{x:ks(t,"left","right"),y:ks(t,"top","bottom")}}function ks(t,e,n){return{min:Is(t,e),max:Is(t,n)}}function Is(t,e){return typeof t=="number"?t:t[e]||0}const Zc=new WeakMap;class Jc{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=Oa(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),W(v=>{let P=this.getAxisMotionValue(v).get()||0;if(G.test(P)){const{projection:y}=this.visualElement;if(y&&y.layout){const b=y.layout.layoutBox[v];b&&(P=N(b)*(parseFloat(P)/100))}}this.originPoint[v]=P}),p&&M.postRender(()=>p(h,f)),ke(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:p,onDrag:T}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:v}=f;if(m&&this.currentDirection===null){this.currentDirection=Qc(v),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),T&&T(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>W(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new wr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:s,contextWindow:Sr(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&&M.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}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=Hc(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&Pt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Gc(s.layoutBox,e):this.constraints=!1,this.elastic=qc(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&W(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Yc(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Pt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=el(s,i.root,this.visualElement.getTransformPagePoint());let r=zc(i.layout.layoutBox,o);if(n){const a=n(Ja(r));this.hasMutatedConstraints=!!a,a&&(r=Hi(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=W(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(){W(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){W(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.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){W(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]-D(r,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Pt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};W(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=Xc({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(),W(r=>{if(!Nt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(D(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;Zc.set(this.visualElement,this);const e=this.visualElement.current,n=bt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&!Ni(l.target)&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();Pt(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()),M.read(s);const r=Et(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(W(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=Ue,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 Qc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class tu extends et{constructor(e){super(e),this.removeGroupControls=_,this.removeListeners=_,this.controls=new Jc(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()}}const Fs=t=>(e,n)=>{t&&M.postRender(()=>t(e,n))};class eu extends et{constructor(){super(...arguments),this.removePointerDownListener=_}onPointerDown(e){this.session=new wr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Sr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Fs(e),onStart:Fs(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&M.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=bt(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 ge=!1;class nu extends g.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),ge&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),_t.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,ge=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||M.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;ge=!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 br(t){const[e,n]=dr(),s=g.useContext(Ke);return A.jsx(nu,{...t,layoutGroup:s,switchLayoutGroup:g.useContext(Tr),isPresent:e,safeToRemove:n})}const su={pan:{Feature:eu},drag:{Feature:tu,ProjectionNode:fr,MeasureLayout:br}};function Bs(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&&M.postRender(()=>o(e,It(e)))}class iu extends et{mount(){const{current:e}=this.node;e&&(this.unmount=Na(e,(n,s)=>(Bs(this.node,s,"Start"),i=>Bs(this.node,i,"End"))))}unmount(){}}class ru 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=Rt(Et(this.node.current,"focus",()=>this.onFocus()),Et(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function js(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&&M.postRender(()=>o(e,It(e)))}class ou extends et{mount(){const{current:e}=this.node;e&&(this.unmount=Ka(e,(n,s)=>(js(this.node,s,"Start"),(i,{success:o})=>js(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const We=new WeakMap,ye=new WeakMap,au=t=>{const e=We.get(t.target);e&&e(t)}
9,lu=t=>{t.forEach(au)};function cu({root:t,...e}){const n=t||document;ye.has(n)||ye.set(n,{});const s=ye.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(lu,{root:t,...e})),s[i]}function uu(t,e,n){const s=cu(e);return We.set(t,n),s.observe(t),()=>{We.delete(t),s.unobserve(t)}}const hu={some:0,all:1};class fu 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:hu[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 uu(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(du(e,n))&&this.startObserver()}unmount(){}}function du({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const mu={inView:{Feature:fu},tap:{Feature:ou},focus:{Feature:ru},hover:{Feature:iu}},pu={layout:{ProjectionNode:fr,MeasureLayout:br}},gu={...Uc,...mu,...su,...pu},yu=Fc(gu,Bc),vu={opacity:1,scale:1},xu={opacity:0,scale:.5},Tu={opacity:1,scale:1},Pu={opacity:0,scale:.5};function Su({page:t}){const[e,n]=g.useState(vu),[s]=Ws(),i=g.useRef(null),o=g.useMemo(()=>window.layoutSettings.layout.pictureSize==="big"?12:20,[]);g.useEffect(()=>{const l=document.getElementById("reactroot");window.layoutSettings.layout.pictureSize==="big"&&l?.classList.add("big")},[]);const r=g.useMemo(()=>Ks(s.hosts).slice(o*(t-1),o*t),[s.hosts,t,o]),a=g.useMemo(()=>r.map(l=>A.jsx(yu.div,{className:"hostbox c-host-grid__card "+(l.status!=="free"?"incall":""),initial:e,animate:Tu,exit:Pu,layout:!0,children:A.jsx(Er,{host:l})},l.id)),[r,e]);return g.useEffect(()=>{const l=setTimeout(()=>n(xu),3e3);return()=>clearTimeout(l)},[]),g.useEffect(()=>{const l=setTimeout(Dr.forceCheck,500);return()=>clearTimeout(l)},[r.length,t]),A.jsx("div",{className:"l-container h-center",id:"senderList",children:A.jsx("div",{ref:i,className:"senders c-host-grid",children:A.jsx(uc,{children:a})})})}var ve={},Os;function wu(){return Os||(Os=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="chevron-left",s=320,i=512,o=[9001],r="f053",a="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z";t.definition={prefix:e,iconName:n,icon:[s,i,o,r,a]},t.faChevronLeft=t.definition,t.prefix=e,t.iconName=n,t.width=s,t.height=i,t.ligatures=o,t.unicode=r,t.svgPathData=a,t.aliases=o})(ve)),ve}var Ns=wu(),xe={},Us;function Au(){return Us||(Us=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="chevron-right",s=320,i=512,o=[9002],r="f054",a="M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z";t.definition={prefix:e,iconName:n,icon:[s,i,o,r,a]},t.faChevronRight=t.definition,t.prefix=e,t.iconName=n,t.width=s,t.height=i,t.ligatures=o,t.unicode=r,t.svgPathData=a,t.aliases=o})(xe)),xe}var bu=Au();function Vu({page:t}){const[e]=Ws(),n=Math.ceil(Ks(e.hosts).length/25);if(n===1||t>n)return null;let s=null,i=null,o=null,r=null,a=null,l=null;function u(c){return c===1?A.jsx(vt,{className:"c-pagination__item",to:"/",children:c}):A.jsx(vt,{className:"c-pagination__item",to:`/seite/${c}/`,children:c})}if(t>1){const c=t-1;c===1?s=A.jsxs(vt,{className:"c-pagination__item",to:"/",children:[A.jsx("div",{className:"sr-only",children:"Zurück zu Seite 1"}),A.jsx(ee,{icon:Ns.faChevronLeft})]}):s=A.jsxs(vt,{className:"c-pagination__item",to:`/seite/${c}/`,children:[A.jsxs("div",{className:"sr-only",children:["Zurück zu Seite ",c]}),A.jsx(ee,{icon:Ns.faChevronLeft})]}),o=u(c)}if(t>=3&&(i=u(t-2)),t<n){const c=t+1;l=A.jsxs(vt,{className:"c-pagination__item",to:`/seite/${c}/`,children:[A.jsxs("div",{className:"sr-only",children:["Weiter zu Seite ",c]}),A.jsx(ee,{icon:bu.faChevronRight})]}
9),r=u(c)}return t<n-1&&(a=u(t+2)),A.jsxs("div",{className:"mb-2 c-pagination l-container h-center",children:[s," ",i," ",o," ",A.jsx("span",{className:"current c-pagination__item--current",children:t})," ",r," ",a," ",l]})}function Cu({page:t}){return A.jsxs(A.Fragment,{children:[A.jsx(Su,{page:t}),A.jsx("div",{className:"clear"}),A.jsx(Vu,{page:t}),A.jsx(Rr,{}),A.jsx("div",{className:"l-container h-center",children:A.jsx(kr,{text:window.layoutSettings.seo.home.footer.text})})]})}const Wu=({canIndex:t,title:e,description:n})=>{let{page:s}=Lr(),i=1;return s!==void 0&&(i=parseInt(s,10)),A.jsxs(A.Fragment,{children:[A.jsx(Mr,{canIndex:t,title:e,description:n}),A.jsx(Cu,{page:i})]})};export{Wu as default};
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.