PageSourceSearch

https://www.anicura.de/dist/site-header.js?v=phE71kG0Zmt7-Rvkhx3PO8Sw_yWbtkCNWqDsGrKyCfU

js anicura.de collected 2026-10-03 22:15:07 UTC 61,620 bytes, 2 lines download raw bytes

1"use strict";(()=>{var Ir=t=>t.ariaHidden!=="true",Jt=(t,e)=>{if(t.dataset.isAnimating===void 0){let{event:r,forceState:o}=e??{},n=document.querySelectorAll(`[aria-controls='${t.id}']`),i=t.querySelector("[data-collapsible-inner]");if(!i)throw`Failed to toggle collapsible with ID ${t.id}: inner container not found`;let s=t.dataset.collapsibleTransition,a=s==="short"?250:500,l=s==="short"?100:250,c=o??!Ir(t);t.style.height=`${i.getBoundingClientRect().height}px`,requestAnimationFrame(()=>{n.forEach(m=>m.setAttribute("aria-expanded",String(c))),t.setAttribute("aria-hidden",String(!c)),t.setAttribute("data-is-animating",""),i.inert=!c,c?setTimeout(()=>{t.style.height="auto",t.style.overflow="visible",t.removeAttribute("data-is-animating")},a):(t.style.height="0",t.style.overflow="hidden",setTimeout(()=>{t.removeAttribute("data-is-animating")},l))});let u=new CustomEvent("ani:toggle",{detail:{isOpening:c,originalEvent:r}});c!==Ir(t)&&t.dispatchEvent(u)}};var rt=document.getElementById("site-header"),Q=document.getElementById("desktop-menu-flyout"),Rr=document.getElementById("flyout_search-desktop"),et=Array.from(rt?.querySelectorAll("[aria-controls*='desktop-menu-flyout']")??[]).filter(t=>!!t),tt=Array.from(rt?.querySelectorAll("[data-main-navigation-link]")??[]).filter(t=>!!t),er=Array.from(Q?.querySelectorAll("[data-menu-section]")??[]).filter(t=>!!t);if(rt&&Q){let t=o=>{let n=o.currentTarget,s=!(n.ariaExpanded==="true");n.ariaExpanded=String(s),et.filter(a=>a!==n).forEach(a=>{a.ariaExpanded="false"}),er.forEach(a=>{a.inert=!n.getAttribute("aria-controls")?.includes(a.id)}),requestAnimationFrame(()=>Jt(Q,{forceState:s})),Rr&&n.getAttribute("aria-controls")?.includes("flyout_search-desktop")&&s&&setTimeout(()=>{Rr.querySelector("input")?.focus()},200)},e=o=>{if(o.key==="Tab"&&!Q.inert){let n=tt.findIndex(m=>m.ariaExpanded==="true"),i=er.find(m=>!m.inert);if(n===-1||!i)return;let s=tt[n],a=Array.from(i.querySelectorAll("a, button, input")).filter(m=>m.checkVisibility());if(!a?.length)return;let l=Q.contains(document.activeElement),c=a[0],u=a[a.length-1];o.shiftKey?l&&c===document.activeElement?(o.preventDefault(),s.focus()):tt[n+1]===document.activeElement&&(o.preventDefault(),u.focus()):l&&u===document.activeElement?(o.preventDefault(),tt[n+1].focus()):s===document.activeElement&&(o.preventDefault(),c.focus())}};et.forEach(o=>{o.addEventListener("click",t)});let r=()=>{et.forEach(o=>{o.ariaExpanded="false"}),er.forEach(o=>{o.inert=!0}),Jt(Q,{forceState:!1})};document.addEventListener("keydown",o=>{o.key==="Escape"&&r()}),document.addEventListener("keydown",e),document.addEventListener("click",o=>{let n=Q.contains(o.target)===!1,i=et.every(s=>s.contains(o.target)===!1);n&&i&&r()}),Q.addEventListener("ani:toggle",o=>{let n=o;rt.dispatchEvent(new Event(n.detail.isOpening?"flyout:open":"flyout:close"))})}var O=t=>t;var J=O,G=O;var ee=(t,e,r)=>{let o=e-t;return o===0?1:(r-t)/o};function he(t){let e;return()=>(e===void 0&&(e=t()),e)}var Lr=he(()=>window.ScrollTimeline!==void 0);var ot=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,r){for(let o=0;o<this.animations.length;o++)this.animations[o][e]=r}attachTimeline(e,r){let o=this.animations.map(n=>{if(Lr()&&n.attachTimeline)return n.attachTimeline(e);if(typeof r=="function")return r(n)});return()=>{o.forEach((n,i)=>{n&&n(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let r=0;r<this.animations.length;r++)e=Math.max(e,this.animations[r].duration);return e}runAll(e){this.animations.forEach(r=>r[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var ge=class extends ot{then(e,r){return Promise.all(this.animations).then(e).catch(r)}};var F=t=>t*1e3,I=t=>t/1e3;function ye(t){let e=0,r=50,o=t.next(e);for(;!o.done&&e<2e4;)e+=r,o=t.next(e);return e>=2e4?1/0:e}var nt=(t,e,r=10)=>{let o="",n=Math.max(Math.round(e/r),2);for(let i=0;i<n;i++)o+=t(ee(0,n-1,i))+", ";return`linear(${o.substring(0,o.length-2)})`};var B=(t,e,r)=>r>e?e:r<t?t:r;function it(t,e){return e?t*(1e3/e):0}var Ln=5;function st(t,e,r){let o=Math.max(e-Ln,0);return it(r-t(o),e-o)}var A={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};var tr=.001;function Br({duration:t=A.duration,bounce:e=A.bounce,velocity:r=A.velocity,mass:o=A.mass}){let n,i;J(t<=F(A.maxDuration),"Spring duration must be 10 seconds or less");let s=1-e;s=B(A.minDamping,A.maxDamping,s),t=B(A.minDuration,A.maxDuration,I(t)),s<1?(n=c=>{let u=c*s,m=u*t,f=u-r,g=at(c,s),d=Math.exp(-m);return tr-f/g*d},i=c=>{let m=c*s*t,f=m*r+r,g=Math.pow(s,2)*Math.pow(c,2)*t,d=Math.exp(-m),x=at(Math.pow(c,2),s);return(-n(c)+tr>0?-1:1)*((f-g)*d)/x}):(n=c=>{let u=Math.exp(-c*t),m=(c-r)*t+1;return-tr+u*m},i=c=>{let u=Math.exp(-c*t),m=(r-c)*(t*t);return u*m});let a=5/t,l=kn(n,i,a);if(t=F(t),isNaN(l))return{stiffness:A.stiffness,damping:A.damping,duration:t};{let c=Math.pow(l,2)*o;return{stiffness:c,damping:s*2*Math.sqrt(o*c),duration:t}}}var Bn=12;function kn(t,e,r){let o=r;for(let n=1;n<Bn;n++)o=o-t(o)/e(o);return o}function at(t,e){return t*Math.sqrt(1-e*e)}var Nn=["duration","bounce"],Kn=["stiffness","damping","mass"];function kr(t,e){return e.some(r=>t[r]!==void 0)}function Hn(t){let e={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...t};if(!kr(t,Kn)&&kr(t,Nn))if(t.visualDuration){let r=t.visualDuration,o=2*Math.PI/(r*1.2),n=o*o,i=2*B(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:A.mass,stiffness:n,damping:i}}else{let r=Br(t);e={...e,...r,mass:A.mass},e.isResolvedFromDuration=!0}return e}function R(t=A.visualDuration,e=A.bounce){let r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:o,restDelta:n}=r,i=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:m,velocity:f,isResolvedFromDuration:g}=Hn({...r,velocity:-I(r.velocity||0)}),d=f||0,x=c/(2*Math.sqrt(l*u)),b=s-i,h=I(Math.sqrt(l/u)),T=Math.abs(b)<5;o||(o=T?A.restSpeed.granular:A.restSpeed.default),n||(n=T?A.restDelta.granular:A.restDelta.default);let w;if(x<1){let y=at(h,x);w=S=>
1{let P=Math.exp(-x*h*S);return s-P*((d+x*h*b)/y*Math.sin(y*S)+b*Math.cos(y*S))}}else if(x===1)w=y=>s-Math.exp(-h*y)*(b+(d+h*b)*y);else{let y=h*Math.sqrt(x*x-1);w=S=>{let P=Math.exp(-x*h*S),v=Math.min(y*S,300);return s-P*((d+x*h*b)*Math.sinh(v)+y*b*Math.cosh(v))/y}}let E={calculatedDuration:g&&m||null,next:y=>{let S=w(y);if(g)a.done=y>=m;else{let P=0;x<1&&(P=y===0?F(d):st(w,y,S));let v=Math.abs(P)<=o,V=Math.abs(s-S)<=n;a.done=v&&V}return a.value=a.done?s:S,a},toString:()=>{let y=Math.min(ye(E),2e4),S=nt(P=>E.next(y*P).value,y,30);return y+"ms "+S}};return E}function Nr(t,e=100,r){let o=r({...t,keyframes:[0,e]}),n=Math.min(ye(o),2e4);return{type:"keyframes",ease:i=>o.next(n*i).value/e,duration:I(n)}}function te(t){return typeof t=="function"}var Kr=(t,e,r)=>{let o=e-t;return((r-t)%o+o)%o+t};var lt=t=>Array.isArray(t)&&typeof t[0]!="number";function ct(t,e){return lt(t)?t[Kr(0,t.length,e)]:t}var $=(t,e,r)=>t+(e-t)*r;function ut(t,e){let r=t[t.length-1];for(let o=1;o<=e;o++){let n=ee(0,e,o);t.push($(r,1,n))}}function mt(t){let e=[0];return ut(e,t.length-1),e}var M=t=>!!(t&&t.getVelocity);function Hr(t,e,r){var o;if(t instanceof Element)return[t];if(typeof t=="string"){let n=document;e&&(n=e.current);let i=(o=r?.[t])!==null&&o!==void 0?o:n.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}function He(t){return typeof t=="object"&&!Array.isArray(t)}function ft(t,e,r,o){return typeof t=="string"&&He(e)?Hr(t,r,o):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Gr(t,e,r){return t*(e+1)}function or(t,e,r,o){var n;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?r:(n=o.get(e))!==null&&n!==void 0?n:t}function _r(t,e){t.indexOf(e)===-1&&t.push(e)}function pt(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Gn(t,e,r){for(let o=0;o<t.length;o++){let n=t[o];n.at>e&&n.at<r&&(pt(t,n),o--)}}function $r(t,e,r,o,n,i){Gn(t,n,i);for(let s=0;s<e.length;s++)t.push({value:e[s],at:$(n,i,o[s]),easing:ct(r,s)})}function qr(t,e){for(let r=0;r<t.length;r++)t[r]=t[r]/(e+1)}function Wr(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}var _n="easeInOut",$n=20;function Ur(t,{defaultTransition:e={},...r}={},o,n){let i=e.duration||.3,s=new Map,a=new Map,l={},c=new Map,u=0,m=0,f=0;for(let g=0;g<t.length;g++){let d=t[g];if(typeof d=="string"){c.set(d,m);continue}else if(!Array.isArray(d)){c.set(d.name,or(m,d.at,u,c));continue}let[x,b,h={}]=d;h.at!==void 0&&(m=or(m,h.at,u,c));let T=0,w=(E,y,S,P=0,v=0)=>{let V=qn(E),{delay:L=0,times:_=mt(V),type:Qt="keyframes",repeat:Be,repeatType:ns,repeatDelay:is=0,...Rn}=y,{ease:Z=e.ease||"easeOut",duration:H}=y,wr=typeof L=="function"?L(P,v):L,Pr=V.length,Cr=te(Qt)?Qt:n?.[Qt];if(Pr<=2&&Cr){let ke=100;if(Pr===2&&jn(V)){let Ne=V[1]-V[0];ke=Math.abs(Ne)}let Qe={...Rn};H!==void 0&&(Qe.duration=F(H));let Je=Nr(Qe,ke,Cr);Z=Je.ease,H=Je.duration}H??(H=i);let Fr=m+wr;_.length===1&&_[0]===0&&(_[1]=1);let Dr=_.length-V.length;if(Dr>0&&ut(_,Dr),V.length===1&&V.unshift(null),Be){G(Be<$n,"Repeat count too high, must be less than 20"),H=Gr(H,Be);let ke=[...V],Qe=[..._];Z=Array.isArray(Z)?[...Z]:[Z];let Je=[...Z];for(let Ne=0;Ne<Be;Ne++){V.push(...ke);for(let Ke=0;Ke<ke.length;Ke++)_.push(Qe[Ke]+(Ne+1)),Z.push(Ke===0?"linear":ct(Je,Ke-1))}qr(_,Be)}let Or=Fr+H;$r(S,V,Z,_,Fr,Or),T=Math.max(wr+H,T),f=Math.max(Or,f)};if(M(x)){let E=zr(x,a);w(b,h,jr("default",E))}else{let E=ft(x,b,o,l),y=E.length;for(let S=0;S<y;S++){b=b,h=h;let P=E[S],v=zr(P,a);for(let V in b)w(b[V],Wn(h,V),jr(V,v),S,y)}}u=m,m+=T}return a.forEach((g,d)=>{for(let x in g){let b=g[x];b.sort(Wr);let h=[],T=[],w=[];for(let y=0;y<b.length;y++){let{at:S,value:P,easing:v}=b[y];h.push(P),T.push(ee(0,f,S)),w.push(v||"easeOut")}T[0]!==0&&(T.unshift(0),h.unshift(h[0]),w.unshift(_n)),T[T.length-1]!==1&&(T.push(1),h.push(null)),s.has(d)||s.set(d,{keyframes:{},transition:{}});let E=s.get(d);E.keyframes[x]=h,E.transition[x]={...e,duration:f,ease:w,times:T,...r}}}),s}function zr(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function jr(t,e){return e[t]||(e[t]=[]),e[t]}function qn(t){return Array.isArray(t)?t:[t]}function Wn(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}var zn=t=>typeof t=="number",jn=t=>t.every(zn);var U=new WeakMap;function dt(t,e){return t?t[e]||t.default||t:void 0}var q=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],k=new Set(q);var ht=new Set(["width","height","top","left","right","bottom",...q]);var Yr=t=>Array.isArray(t);var Xr=t=>Yr(t)?t[t.length-1]||0:t;var xe={skipAnimations:!1,useManualTiming:!1};function Zr(t){let e=new Set,r=new Set,o=!1,n=!1,i=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),t()),c(s)}let l={schedule:(c,u=!1,m=!1)=>{let g=m&&o?e:r;return u&&i.add(c),g.has(c)||g.add(c),c},cancel:c=>{r.delete(c),i.delete(c)},process:c=>{if(s=c,o){n=!0;return}o=!0,[e,r]=[r,e],e.forEach(a),e.clear(),o=!1,n&&(n=!1,l.process(c))}};return l}var gt=["read","resolveKeyframes","update","preRender","render","postRender"],Un=40;function Qr(t,e){let r=!1,o=!0,n={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,s=gt.reduce((h,T)=>
vendor: 41,275 bytes, line 1
1(h[T]=Zr(i),h),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:m,postRender:f}=s,g=()=>{let h=xe.useManualTiming?n.timestamp:performance.now();r=!1,n.delta=o?1e3/60:Math.max(Math.min(h-n.timestamp,Un),1),n.timestamp=h,n.isProcessing=!0,a.process(n),l.process(n),c.process(n),u.process(n),m.process(n),f.process(n),n.isProcessing=!1,r&&e&&(o=!1,t(g))},d=()=>{r=!0,o=!0,n.isProcessing||t(g)};return{schedule:gt.reduce((h,T)=>{let w=s[T];return h[T]=(E,y=!1,S=!1)=>(r||d(),w.schedule(E,y,S)),h},{}),cancel:h=>{for(let T=0;T<gt.length;T++)s[gt[T]].cancel(h)},state:n,steps:s}}var{schedule:D,cancel:Ge,state:ve,steps:Ya}=Qr(typeof requestAnimationFrame<"u"?requestAnimationFrame:O,!0);var yt;function Yn(){yt=void 0}var N={now:()=>(yt===void 0&&N.set(ve.isProcessing||xe.useManualTiming?ve.timestamp:performance.now()),yt),set:t=>{yt=t,queueMicrotask(Yn)}};var be=class{constructor(){this.subscriptions=[]}add(e){return _r(this.subscriptions,e),()=>pt(this.subscriptions,e)}notify(e,r,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](e,r,o);else for(let i=0;i<n;i++){let s=this.subscriptions[i];s&&s(e,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var Jr=30,Xn=t=>!isNaN(parseFloat(t)),eo={current:void 0},nr=class{constructor(e,r={}){this.version="11.18.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,n=!0)=>{let i=N.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=r.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Xn(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new be);let o=this.events[e].add(r);return e==="change"?()=>{o(),D.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-o}jump(e,r=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return eo.current&&eo.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Jr)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,Jr);return it(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Y(t,e){return new nr(t,e)}function to(t){let e=[{},{}];return t?.values.forEach((r,o)=>{e[0][o]=r.get(),e[1][o]=r.getVelocity()}),e}function xt(t,e,r,o){if(typeof e=="function"){let[n,i]=to(o);e=e(r!==void 0?r:t.custom,n,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){let[n,i]=to(o);e=e(r!==void 0?r:t.custom,n,i)}return e}function ro(t,e,r){let o=t.getProps();return xt(o,e,r!==void 0?r:o.custom,t)}function Zn(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,Y(r))}function oo(t,e){let r=ro(t,e),{transitionEnd:o={},transition:n={},...i}=r||{};i={...i,...o};for(let s in i){let a=Xr(i[s]);Zn(t,s,a)}}function no(t){return!!(M(t)&&t.add)}function io(t,e){let r=t.getValue("willChange");if(no(r))return r.add(e)}var Te=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var Qn="framerAppearId",so="data-"+Te(Qn);function ao(t){return t.props[so]}var vt={current:!1};function ir(t,e){t.timeline=e,t.onfinish=null}var _e=t=>Array.isArray(t)&&typeof t[0]=="number";var lo={linearEasing:void 0};function co(t,e){let r=he(t);return()=>{var o;return(o=lo[e])!==null&&o!==void 0?o:r()}}var Se=co(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function ar(t){return!!(typeof t=="function"&&Se()||!t||typeof t=="string"&&(t in sr||Se())||_e(t)||Array.isArray(t)&&t.every(ar))}var $e=([t,e,r,o])=>`cubic-bezier(${t}, ${e}, ${r}, ${o})`,sr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$e([0,.65,.55,1]),circOut:$e([.55,0,1,.45]),backIn:$e([.31,.01,.66,-.59]),backOut:$e([.33,1.53,.69,.99])};function lr(t,e){if(t)return typeof t=="function"&&Se()?nt(t,e):_e(t)?$e(t):Array.isArray(t)?t.map(r=>lr(r,e)||sr.easeOut):sr[t]}var uo=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,Jn=1e-7,ei=12;function ti(t,e,r,o,n){let i,s,a=0;do s=e+(r-e)/2,i=uo(s,o,n)-t,i>0?r=s:e=s;while(Math.abs(i)>Jn&&++a<ei);return s}function re(t,e,r,o){if(t===e&&r===o)return O;let n=i=>ti(i,0,1,t,r);return i=>i===0||i===1?i:uo(n(i),e,o)}var bt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var Tt=t=>e=>1-t(1-e);var cr=re(.33,1.53,.69,.99),qe=Tt(cr),St=bt(qe);var Vt=t=>(t*=2)<1?.5*qe(t):.5*(2-Math.pow(2,-10*(t-1)));var At=t=>1-Math.sin(Math.acos(t)),mo=Tt(At),Mt=bt(At);var Et=t=>/^0[^.\s]+$/u.test(t);function fo(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Et(t):!0}var W={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},X={...W,transform:t=>B(0,1,t)},We={...W,default:1};var oe=t=>Math.round(t*1e5)/1e5;var Ve=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function po(t){return t==null}var ho=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Ae=(t,e)=>r=>!!(typeof r=="string"&&ho.test(r)&&r.startsWith(t)||e&&!po(r)&&Object.prototype.hasOwnProperty.call(r,e)),wt=(t,e,r)=>o=>{if(typeof o!="string")return o;let[n,i,s,a]=o.match(Ve);return{[t]:parseFloat(n),[e]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var ri=t=>B(0,255,t),ur={...W,transform:t=>Math.round(ri(t))},z={test:Ae("rgb","red"),parse:wt("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:o=1})=>"rgba("+ur.transform(t)+", "+ur.transform(e)+", "+ur.transform(r)+", "+oe(X.transform(o))+")"};function oi(t){let e="",r="",o="",n="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),o=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),o=t.substring(3,4),n=t.substring(4,5),e+=e,r+=r,o+=o,n+=n),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var ze={test:Ae("#"),parse:oi,transform:z.transform};var je=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),j=je("deg"),ne=je("%"),p=je("px"),go=je("vh"),yo=je("vw"),mr={...ne,parse:t=>ne.parse(t)/100,transform:t=>ne.transform(t*100)};var ie={test:Ae("hsl","hue"),parse:wt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:o=1})=>"hsla("+Math.round(t)+", "+ne.transform(oe(e))+", "+ne.transform(oe(r))+", "+oe(X.transform(o))+")"};var C={test:t=>z.test(t)||ze.test(t)||ie.test(t),parse:t=>z.test(t)?z.parse(t):ie.test(t)?ie.parse(t):ze.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?z.transform(t):ie.transform(t)};var xo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ni(t){var e,r;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ve))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(xo))===null||r===void 0?void 0:r.length)||0)>0}var bo="number",To="color",ii="var",si="var(",vo="${}",ai=/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 ce(t){let e=t.toString(),r=[],o={color:[],number:[],var:[]},n=[],i=0,a=e.replace(ai,l=>(C.test(l)?(o.color.push(i),n.push(To),r.push(C.parse(l))):l.startsWith(si)?(o.var.push(i),n.push(ii),r.push(l)):(o.number.push(i),n.push(bo),r.push(parseFloat(l))),++i,vo)).split(vo);return{values:r,split:a,indexes:o,types:n}}function So(t){return ce(t).values}function Vo(t){let{split:e,types:r}=ce(t),o=e.length;return n=>{let i="";for(let s=0;s<o;s++)if(i+=e[s],n[s]!==void 0){let a=r[s];a===bo?i+=oe(n[s]):a===To?i+=C.transform(n[s]):i+=n[s]}return i}}var li=t=>typeof t=="number"?0:t;function ci(t){let e=So(t);return Vo(t)(e.map(li))}var K={test:ni,parse:So,createTransformer:Vo,getAnimatableNone:ci};var ui=new Set(["brightness","contrast","saturate","opacity"]);function mi(t){let[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[o]=r.match(Ve)||[];if(!o)return t;let n=r.replace(o,""),i=ui.has(e)?1:0;return o!==r&&(i*=100),e+"("+i+n+")"}var fi=/\b([a-z-]*)\(.*?\)/gu,Ue={...K,getAnimatableNone:t=>{let e=t.match(fi);return e?e.map(mi).join(" "):t}};var Ao={borderWidth:p,borderTopWidth:p,borderRightWidth:p,borderBottomWidth:p,borderLeftWidth:p,borderRadius:p,radius:p,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,width:p,maxWidth:p,height:p,maxHeight:p,top:p,right:p,bottom:p,left:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,backgroundPositionX:p,backgroundPositionY:p};var Mo={rotate:j,rotateX:j,rotateY:j,rotateZ:j,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:j,skewX:j,skewY:j,distance:p,translateX:p,translateY:p,translateZ:p,x:p,y:p,z:p,perspective:p,transformPerspective:p,opacity:X,originX:mr,originY:mr,originZ:p};var fr={...W,transform:Math.round};var Me={...Ao,...Mo,zIndex:fr,size:p,fillOpacity:X,strokeOpacity:X,numOctaves:fr};var pi={...Me,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:Ue,WebkitFilter:Ue},Ee=t=>pi[t];function Pt(t,e){let r=Ee(t);return r!==Ue&&(r=K),r.getAnimatableNone?r.getAnimatableNone(e):void 0}var di=new Set(["auto","none","0"]);function Eo(t,e,r){let o=0,n;for(;o<t.length&&!n;){let i=t[o];typeof i=="string"&&!di.has(i)&&ce(i).values.length&&(n=t[o]),o++}if(n&&r)for(let i of e)t[i]=Pt(r,n)}var pr=t=>t===W||t===p,wo=(t,e)=>parseFloat(t.split(", ")[e]),Po=(t,e)=>(r,{transform:o})=>{if(o==="none"||!o)return 0;let n=o.match(/^matrix3d\((.+)\)$/u);if(n)return wo(n[1],e);{let i=o.match(/^matrix\((.+)\)$/u);return i?wo(i[1],t):0}},hi=new Set(["x","y","z"]),gi=q.filter(t=>!hi.has(t));function Co(t){let e=[];return gi.forEach(r=>{let o=t.getValue(r);o!==void 0&&(e.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),e}var ue={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Po(4,13),y:Po(5,14)};ue.translateX=ue.x;ue.translateY=ue.y;var me=new Set,dr=!1,hr=!1;function Fo(){if(hr){let t=Array.from(me).filter(o=>o.needsMeasurement),e=new Set(t.map(o=>o.element)),r=new Map;e.forEach(o=>{let n=Co(o);n.length&&(r.set(o,n),o.render())}),t.forEach(o=>o.measureInitialState()),e.forEach(o=>{o.render();let n=r.get(o);n&&n.forEach(([i,s])=>{var a;(a=o.getValue(i))===null||a===void 0||a.set(s)})}),t.forEach(o=>o.measureEndState()),t.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}hr=!1,dr=!1,me.forEach(t=>t.complete()),me.clear()}function Do(){me.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(hr=!0)})}function Oo(){Do(),Fo()}var se=class{constructor(e,r,o,n,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=o,this.motionValue=n,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(me.add(this),dr||(dr=!0,D.read(Do),D.resolveKeyframes(Fo))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:r,element:o,motionValue:n}=this;for(let i=0;i<e.length;i++)if(e[i]===null)if(i===0){let s=n?.get(),a=e[e.length-1];if(s!==void 0)e[0]=s;else if(o&&r){let l=o.readValue(r,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),n&&s===void 0&&n.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),me.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,me.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};var Ct=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var Io=t=>e=>typeof e=="string"&&e.startsWith(t),Ft=Io("--"),yi=Io("var(--"),we=t=>yi(t)?xi.test(t.split("/*")[0].trim()):!1,xi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var vi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bi(t){let e=vi.exec(t);if(!e)return[,];let[,r,o,n]=e;return[`--${r??o}`,n]}var Ti=4;function gr(t,e,r=1){G(r<=Ti,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[o,n]=bi(t);if(!o)return;let i=window.getComputedStyle(e).getPropertyValue(o);if(i){let s=i.trim();return Ct(s)?parseFloat(s):s}return we(n)?gr(n,e,r+1):n}var Dt=t=>e=>e.test(t);var Ro={test:t=>t==="auto",parse:t=>t};var yr=[W,p,ne,j,yo,go,Ro],xr=t=>yr.find(Dt(t));var Pe=class extends se{constructor(e,r,o,n,i){super(e,r,o,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),we(c))){let u=gr(c,r.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!ht.has(o)||e.length!==2)return;let[n,i]=e,s=xr(n),a=xr(i);if(s!==a)if(pr(s)&&pr(a))for(let l=0;l<e.length;l++){let c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:r}=this,o=[];for(let n=0;n<e.length;n++)fo(e[n])&&o.push(n);o.length&&Eo(e,o,r)}measureInitialState(){let{element:e,unresolvedKeyframes:r,name:o}=this;if(!e||!e.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ue[o](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;let n=r[r.length-1];n!==void 0&&e.getValue(o,n).jump(n,!1)}measureEndState(){var e;let{element:r,name:o,unresolvedKeyframes:n}=this;if(!r||!r.current)return;let i=r.getValue(o);i&&i.jump(this.measuredOrigin,!1);let s=n.length-1,a=n[s];n[s]=ue[o](r.measureViewportBox(),window.getComputedStyle(r.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,c])=>{r.getValue(l).set(c)}),this.resolveNoneKeyframes()}};var vr=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(K.test(t)||t==="0")&&!t.startsWith("url("));function Si(t){let e=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}function Lo(t,e,r,o){let n=t[0];if(n===null)return!1;if(e==="display"||e==="visibility")return!0;let i=t[t.length-1],s=vr(n,e),a=vr(i,e);return J(s===a,`You are trying to animate ${e} from "${n}" to "${i}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${i} via the \`style\` property.`),!s||!a?!1:Si(t)||(r==="spring"||te(r))&&o}var Vi=t=>t!==null;function ae(t,{repeat:e,repeatType:r="loop"},o){let n=t.filter(Vi),i=e&&r!=="loop"&&e%2===1?0:n.length-1;return!i||o===void 0?n[i]:o}var Ai=40,Ce=class{constructor({autoplay:e=!0,delay:r=0,type:o="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=N.now(),this.options={autoplay:e,delay:r,type:o,repeat:n,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Ai?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Oo(),this._resolved}onKeyframesResolved(e,r){this.resolvedAt=N.now(),this.hasAttemptedResolve=!0;let{name:o,type:n,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Lo(e,o,n,i))if(vt.current||!s){l?.(ae(e,this.options,r)),a?.(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(e,r);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:r,...u},this.onPostResolved())}onPostResolved(){}then(e,r){return this.currentFinishedPromise.then(e,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}};function br(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Bo({hue:t,saturation:e,lightness:r,alpha:o}){t/=360,e/=100,r/=100;let n=0,i=0,s=0;if(!e)n=i=s=r;else{let a=r<.5?r*(1+e):r+e-r*e,l=2*r-a;n=br(l,a,t+1/3),i=br(l,a,t),s=br(l,a,t-1/3)}return{red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:o}}function Fe(t,e){return r=>r>0?e:t}var Tr=(t,e,r)=>{let o=t*t,n=r*(e*e-o)+o;return n<0?0:Math.sqrt(n)},Mi=[ze,z,ie],Ei=t=>Mi.find(e=>e.test(t));function ko(t){let e=Ei(t);if(J(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let r=e.parse(t);return e===ie&&(r=Bo(r)),r}var Sr=(t,e)=>{let r=ko(t),o=ko(e);if(!r||!o)return Fe(t,e);let n={...r};return i=>(n.red=Tr(r.red,o.red,i),n.green=Tr(r.green,o.green,i),n.blue=Tr(r.blue,o.blue,i),n.alpha=$(r.alpha,o.alpha,i),z.transform(n))};var wi=(t,e)=>r=>e(t(r)),De=(...t)=>t.reduce(wi);var Ot=new Set(["none","hidden"]);function No(t,e){return Ot.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function Pi(t,e){return r=>$(t,e,r)}function It(t){return typeof t=="number"?Pi:typeof t=="string"?we(t)?Fe:C.test(t)?Sr:Di:Array.isArray(t)?Ko:typeof t=="object"?C.test(t)?Sr:Ci:Fe}function Ko(t,e){let r=[...t],o=r.length,n=t.map((i,s)=>It(i)(i,e[s]));return i=>{for(let s=0;s<o;s++)r[s]=n[s](i);return r}}function Ci(t,e){let r={...t,...e},o={};for(let n in r)t[n]!==void 0&&e[n]!==void 0&&(o[n]=It(t[n])(t[n],e[n]));return n=>{for(let i in o)r[i]=o[i](n);return r}}function Fi(t,e){var r;let o=[],n={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){let s=e.types[i],a=t.indexes[s][n[s]],l=(r=t.values[a])!==null&&r!==void 0?r:0;o[i]=l,n[s]++}return o}var Di=(t,e)=>{let r=K.createTransformer(e),o=ce(t),n=ce(e);return o.indexes.var.length===n.indexes.var.length&&o.indexes.color.length===n.indexes.color.length&&o.indexes.number.length>=n.indexes.number.length?Ot.has(t)&&!n.values.length||Ot.has(e)&&!o.values.length?No(t,e):De(Ko(Fi(o,n),n.values),r):(J(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Fe(t,e))};function Rt(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?$(t,e,r):It(t)(t,e)}function Vr({keyframes:t,velocity:e=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){let m=t[0],f={done:!1,value:m},g=v=>a!==void 0&&v<a||l!==void 0&&v>l,d=v=>a===void 0?l:l===void 0||Math.abs(a-v)<Math.abs(l-v)?a:l,x=r*e,b=m+x,h=s===void 0?b:s(b);h!==b&&(x=h-m);let T=v=>-x*Math.exp(-v/o),w=v=>h+T(v),E=v=>{let V=T(v),L=w(v);f.done=Math.abs(V)<=c,f.value=f.done?h:L},y,S,P=v=>{g(f.value)&&(y=v,S=R({keyframes:[f.value,d(f.value)],velocity:st(w,v,f.value),damping:n,stiffness:i,restDelta:c,restSpeed:u}))};return P(0),{calculatedDuration:null,next:v=>{let V=!1;return!S&&y===void 0&&(V=!0,E(v),P(v)),y!==void 0&&v>=y?S.next(v-y):(!V&&E(v),f)}}}var Ho=re(.42,0,1,1),Go=re(0,0,.58,1),Lt=re(.42,0,.58,1);var _o={linear:O,easeIn:Ho,easeInOut:Lt,easeOut:Go,circIn:At,circInOut:Mt,circOut:mo,backIn:qe,backInOut:St,backOut:cr,anticipate:Vt},Ar=t=>{if(_e(t)){G(t.length===4,"Cubic bezier arrays must contain four numerical values.");let[e,r,o,n]=t;return re(e,r,o,n)}else if(typeof t=="string")return G(_o[t]!==void 0,`Invalid easing type '${t}'`),_o[t];return t};function Oi(t,e,r){let o=[],n=r||Rt,i=t.length-1;for(let s=0;s<i;s++){let a=n(t[s],t[s+1]);if(e){let l=Array.isArray(e)?e[s]||O:e;a=De(l,a)}o.push(a)}return o}function $o(t,e,{clamp:r=!0,ease:o,mixer:n}={}){let i=t.length;if(G(i===e.length,"Both input and output ranges must be the same length"),i===1)return()=>e[0];if(i===2&&e[0]===e[1])return()=>e[1];let s=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=Oi(e,o,n),l=a.length,c=u=>{if(s&&u<t[0])return e[0];let m=0;if(l>1)for(;m<t.length-2&&!(u<t[m+1]);m++);let f=ee(t[m],t[m+1],u);return a[m](f)};return r?u=>c(B(t[0],t[i-1],u)):c}function qo(t,e){return t.map(r=>r*e)}function Ii(t,e){return t.map(()=>e||Lt).splice(0,t.length-1)}function Ye({duration:t=300,keyframes:e,times:r,ease:o="easeInOut"}){let n=lt(o)?o.map(Ar):Ar(o),i={done:!1,value:e[0]},s=qo(r&&r.length===e.length?r:mt(e),t),a=$o(s,e,{ease:Array.isArray(n)?n:Ii(e,n)});return{calculatedDuration:t,next:l=>(i.value=a(l),i.done=l>=t,i)}}var Wo=t=>{let e=({timestamp:r})=>t(r);return{start:()=>D.update(e,!0),stop:()=>Ge(e),now:()=>ve.isProcessing?ve.timestamp:N.now()}};var Ri={decay:Vr,inertia:Vr,tween:Ye,keyframes:Ye,spring:R},Li=t=>t/100,fe=class extends Ce{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:l}=this.options;l&&l()};let{name:r,motionValue:o,element:n,keyframes:i}=this.options,s=n?.KeyframeResolver||se,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(i,a,r,o,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:r="keyframes",repeat:o=0,repeatDelay:n=0,repeatType:i,velocity:s=0}=this.options,a=te(r)?r:Ri[r]||Ye,l,c;a!==Ye&&typeof e[0]!="number"&&(l=De(Li,Rt(e[0],e[1])),e=[0,100]);let u=a({...this.options,keyframes:e});i==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=ye(u));let{calculatedDuration:m}=u,f=m+n,g=f*(o+1)-n;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:f,totalDuration:g}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,r=!1){let{resolved:o}=this;if(!o){let{keyframes:v}=this.options;return{done:!0,value:v[v.length-1]}}let{finalKeyframe:n,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:m}=o;if(this.startTime===null)return i.next(0);let{delay:f,repeat:g,repeatType:d,repeatDelay:x,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),r?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let h=this.currentTime-f*(this.speed>=0?1:-1),T=this.speed>=0?h<0:h>u;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,E=i;if(g){let v=Math.min(this.currentTime,u)/m,V=Math.floor(v),L=v%1;!L&&v>=1&&(L=1),L===1&&V--,V=Math.min(V,g+1),!!(V%2)&&(d==="reverse"?(L=1-L,x&&(L-=x/m)):d==="mirror"&&(E=s)),w=B(0,1,L)*m}let y=T?{done:!1,value:l[0]}:E.next(w);a&&(y.value=a(y.value));let{done:S}=y;!T&&c!==null&&(S=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return P&&n!==void 0&&(y.value=ae(l,this.options,n)),b&&b(y.value),P&&this.finish(),y}get duration(){let{resolved:e}=this;return e?I(e.calculatedDuration):0}get time(){return I(this.currentTime)}set time(e){e=F(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let r=this.playbackSpeed!==e;this.playbackSpeed=e,r&&(this.time=I(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=Wo,onPlay:r,startTime:o}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),r&&r();let n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=n):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}};var zo=new Set(["opacity","clipPath","filter","transform"]);function jo(t,e,r,{delay:o=0,duration:n=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let c={[e]:r};l&&(c.offset=l);let u=lr(a,n);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:o,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}var Uo=he(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var Bt=10,Bi=2e4;function ki(t){return te(t.type)||t.type==="spring"||!ar(t.ease)}function Ni(t,e){let r=new fe({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),o={done:!1,value:t[0]},n=[],i=0;for(;!o.done&&i<Bi;)o=r.sample(i),n.push(o.value),i+=Bt;return{times:void 0,keyframes:n,duration:i-Bt,ease:"linear"}}var Yo={anticipate:Vt,backInOut:St,circInOut:Mt};function Ki(t){return t in Yo}var Xe=class extends Ce{constructor(e){super(e);let{name:r,motionValue:o,element:n,keyframes:i}=this.options;this.resolver=new Pe(i,(s,a)=>this.onKeyframesResolved(s,a),r,o,n),this.resolver.scheduleResolve()}initPlayback(e,r){var o;let{duration:n=300,times:i,ease:s,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!(!((o=l.owner)===null||o===void 0)&&o.current))return!1;if(typeof s=="string"&&Se()&&Ki(s)&&(s=Yo[s]),ki(this.options)){let{onComplete:f,onUpdate:g,motionValue:d,element:x,...b}=this.options,h=Ni(e,b);e=h.keyframes,e.length===1&&(e[1]=e[0]),n=h.duration,i=h.times,s=h.ease,a="keyframes"}let m=jo(l.owner.current,c,e,{...this.options,duration:n,times:i,ease:s});return m.startTime=u??this.calcStartTime(),this.pendingTimeline?(ir(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{let{onComplete:f}=this.options;l.set(ae(e,this.options,r)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:n,times:i,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:r}=e;return I(r)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:r}=e;return I(r.currentTime||0)}set time(e){let{resolved:r}=this;if(!r)return;let{animation:o}=r;o.currentTime=F(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:r}=e;return r.playbackRate}set speed(e){let{resolved:r}=this;if(!r)return;let{animation:o}=r;o.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:r}=e;return r.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:r}=e;return r.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:r}=this;if(!r)return O;let{animation:o}=r;ir(o,e)}return O}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:r}=e;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:r}=e;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:r,keyframes:o,duration:n,type:i,ease:s,times:a}=e;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){let{motionValue:c,onUpdate:u,onComplete:m,element:f,...g}=this.options,d=new fe({...g,keyframes:o,duration:n,type:i,ease:s,times:a,isGenerator:!0}),x=F(this.time);c.setWithVelocity(d.sample(x-Bt).value,d.sample(x).value,Bt)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:r,name:o,repeatDelay:n,repeatType:i,damping:s,type:a}=e;return Uo()&&o&&zo.has(o)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!n&&i!=="mirror"&&s!==0&&a!=="inertia"}};var Hi={type:"spring",stiffness:500,damping:25,restSpeed:10},Gi=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),_i={type:"keyframes",duration:.8},$i={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Xo=(t,{keyframes:e})=>e.length>2?_i:k.has(t)?t.startsWith("scale")?Gi(e[1]):Hi:$i;function Zo({when:t,delay:e,delayChildren:r,staggerChildren:o,staggerDirection:n,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}var kt=(t,e,r,o={},n,i)=>s=>{let a=dt(o,t)||{},l=a.delay||o.delay||0,{elapsed:c=0}=o;c=c-F(l);let u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:i?void 0:n};Zo(a)||(u={...u,...Xo(t,u)}),u.duration&&(u.duration=F(u.duration)),u.repeatDelay&&(u.repeatDelay=F(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let m=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(m=!0)),(vt.current||xe.skipAnimations)&&(m=!0,u.duration=0,u.delay=0),m&&!i&&e.get()!==void 0){let f=ae(u.keyframes,a);if(f!==void 0)return D.update(()=>{u.onUpdate(f),u.onComplete()}),new ge([])}return!i&&Xe.supports(u)?new Xe(u):new fe(u)};function qi({protectedKeys:t,needsAnimating:e},r){let o=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,o}function Qo(t,e,{delay:r=0,transitionOverride:o,type:n}={}){var i;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;o&&(s=o);let c=[],u=n&&t.animationState&&t.animationState.getState()[n];for(let m in l){let f=t.getValue(m,(i=t.latestValues[m])!==null&&i!==void 0?i:null),g=l[m];if(g===void 0||u&&qi(u,m))continue;let d={delay:r,...dt(s||{},m)},x=!1;if(window.MotionHandoffAnimation){let h=ao(t);if(h){let T=window.MotionHandoffAnimation(h,m,D);T!==null&&(d.startTime=T,x=!0)}}io(t,m),f.start(kt(m,f,g,t.shouldReduceMotion&&ht.has(m)?{type:!1}:d,t,x));let b=f.animation;b&&c.push(b)}return a&&Promise.all(c).then(()=>{D.update(()=>{a&&oo(t,a)})}),c}function Jo(t){return t instanceof SVGElement&&t.tagName!=="svg"}var en=()=>({min:0,max:0}),Oe=()=>({x:en(),y:en()});var tn={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"]},Nt={};for(let t in tn)Nt[t]={isEnabled:e=>tn[t].some(r=>!!e[r])};var rn=typeof window<"u";var Ze={current:null},Kt={current:!1};function on(){if(Kt.current=!0,!!rn)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ze.current=t.matches;t.addListener(e),e()}else Ze.current=!1}var Wi=[...yr,C,K],nn=t=>Wi.find(Dt(t));function sn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function an(t){return typeof t=="string"||Array.isArray(t)}var zi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ln=["initial",...zi];function Mr(t){return sn(t.animate)||ln.some(e=>an(t[e]))}function cn(t){return!!(Mr(t)||t.variants)}function un(t,e,r){for(let o in e){let n=e[o],i=r[o];if(M(n))t.addValue(o,n);else if(M(i))t.addValue(o,Y(n,{owner:t}));else if(i!==n)if(t.hasValue(o)){let s=t.getValue(o);s.liveStyle===!0?s.jump(n):s.hasAnimated||s.set(n)}else{let s=t.getStaticValue(o);t.addValue(o,Y(s!==void 0?s:n,{owner:t}))}}for(let o in r)e[o]===void 0&&t.removeValue(o);return e}var mn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ie=class{scrapeMotionValuesFromProps(e,r,o){return{}}constructor({parent:e,props:r,presenceContext:o,reducedMotionConfig:n,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=se,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let g=N.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,D.render(this.render,!1,!0))};let{latestValues:l,renderState:c,onUpdate:u}=s;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=r,this.presenceContext=o,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Mr(r),this.isVariantNode=cn(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:m,...f}=this.scrapeMotionValuesFromProps(r,{},this);for(let g in f){let d=f[g];l[g]!==void 0&&M(d)&&d.set(l[g],!1)}}mount(e){this.current=e,U.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),Kt.current||on(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ze.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){U.delete(this.current),this.projection&&this.projection.unmount(),Ge(this.notifyUpdate),Ge(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let r=this.features[e];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(e,r){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let o=k.has(e),n=r.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&D.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{n(),i(),s&&s(),r.owner&&r.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 Nt){let r=Nt[e];if(!r)continue;let{isEnabled:o,Feature:n}=r;if(!this.features[e]&&n&&o(this.props)&&(this.features[e]=new n(this)),this.features[e]){let i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Oe()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<mn.length;o++){let n=mn[o];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i="on"+n,s=e[i];s&&(this.propEventSubscriptions[n]=this.on(n,s))}this.prevMotionValues=un(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){let o=this.values.get(e);r!==o&&(o&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get())}removeValue(e){this.values.delete(e);let r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let o=this.values.get(e);return o===void 0&&r!==void 0&&(o=Y(r===null?void 0:r,{owner:this}),this.addValue(e,o)),o}readValue(e,r){var o;let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(o=this.getBaseTargetFromProps(this.props,e))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(Ct(n)||Et(n))?n=parseFloat(n):!nn(n)&&K.test(r)&&(n=Pt(e,r)),this.setBaseTarget(e,M(n)?n.get():n)),M(n)?n.get():n}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;let{initial:o}=this.props,n;if(typeof o=="string"||typeof o=="object"){let s=xt(this.props,o,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);s&&(n=s[e])}if(o&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!M(i)?i:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new be),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}};var Re=class extends Ie{constructor(){super(...arguments),this.KeyframeResolver=Pe}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:o}){delete r[e],delete o[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;M(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};var Ht=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var ji={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ui=q.length;function fn(t,e,r){let o="",n=!0;for(let i=0;i<Ui;i++){let s=q[i],a=t[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||r){let c=Ht(a,Me[s]);if(!l){n=!1;let u=ji[s]||s;o+=`${u}(${c}) `}r&&(e[s]=c)}}return o=o.trim(),r?o=r(e,n?"":o):n&&(o="none"),o}function Gt(t,e,r){let{style:o,vars:n,transformOrigin:i}=t,s=!1,a=!1;for(let l in e){let c=e[l];
1if(k.has(l)){s=!0;continue}else if(Ft(l)){n[l]=c;continue}else{let u=Ht(c,Me[l]);l.startsWith("origin")?(a=!0,i[l]=u):o[l]=u}}if(e.transform||(s||r?o.transform=fn(e,t.transform,r):o.transform&&(o.transform="none")),a){let{originX:l="50%",originY:c="50%",originZ:u=0}=i;o.transformOrigin=`${l} ${c} ${u}`}}var Yi={offset:"stroke-dashoffset",array:"stroke-dasharray"},Xi={offset:"strokeDashoffset",array:"strokeDasharray"};function pn(t,e,r=1,o=0,n=!0){t.pathLength=1;let i=n?Yi:Xi;t[i.offset]=p.transform(-o);let s=p.transform(e),a=p.transform(r);t[i.array]=`${s} ${a}`}function dn(t,e,r){return typeof t=="string"?t:p.transform(e+r*t)}function hn(t,e,r){let o=dn(e,t.x,t.width),n=dn(r,t.y,t.height);return`${o} ${n}`}function gn(t,{attrX:e,attrY:r,attrScale:o,originX:n,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,m){if(Gt(t,c,m),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:g,dimensions:d}=t;f.transform&&(d&&(g.transform=f.transform),delete f.transform),d&&(n!==void 0||i!==void 0||g.transform)&&(g.transformOrigin=hn(d,n!==void 0?n:.5,i!==void 0?i:.5)),e!==void 0&&(f.x=e),r!==void 0&&(f.y=r),o!==void 0&&(f.scale=o),s!==void 0&&pn(f,s,a,l,!1)}var _t=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var yn=t=>typeof t=="string"&&t.toLowerCase()==="svg";function $t(t,{style:e,vars:r},o,n){Object.assign(t.style,e,n&&n.getProjectionStyles(o));for(let i in r)t.style.setProperty(i,r[i])}function xn(t,e,r,o){$t(t,e,void 0,o);for(let n in e.attrs)t.setAttribute(_t.has(n)?n:Te(n),e.attrs[n])}var vn={};function bn(t,{layout:e,layoutId:r}){return k.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!vn[t]||t==="opacity")}function qt(t,e,r){var o;let{style:n}=t,i={};for(let s in n)(M(n[s])||e.style&&M(e.style[s])||bn(s,t)||((o=r?.getValue(s))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(i[s]=n[s]);return i}function Tn(t,e,r){let o=qt(t,e,r);for(let n in t)if(M(t[n])||M(e[n])){let i=q.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;o[i]=t[n]}return o}var Wt=class extends Re{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Oe}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(k.has(r)){let o=Ee(r);return o&&o.default||0}return r=_t.has(r)?r:Te(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,o){return Tn(e,r,o)}build(e,r,o){gn(e,r,this.isSVGTag,o.transformTemplate)}renderInstance(e,r,o,n){xn(e,r,o,n)}mount(e){this.isSVGTag=yn(e.tagName),super.mount(e)}};function Sn({top:t,left:e,right:r,bottom:o}){return{x:{min:e,max:r},y:{min:t,max:o}}}function Vn(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function An(t,e){return Sn(Vn(t.getBoundingClientRect(),e))}function Zi(t){return window.getComputedStyle(t)}var zt=class extends Re{constructor(){super(...arguments),this.type="html",this.renderInstance=$t}readValueFromInstance(e,r){if(k.has(r)){let o=Ee(r);return o&&o.default||0}else{let o=Zi(e),n=(Ft(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:r}){return An(e,r)}build(e,r,o){Gt(e,r,o.transformTemplate)}scrapeMotionValuesFromProps(e,r,o){return qt(e,r,o)}};function Qi(t,e){return t in e}var jt=class extends Ie{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,r){if(Qi(r,e)){let o=e[r];if(typeof o=="string"||typeof o=="number")return o}}getBaseTargetFromProps(){}removeValueFromRenderState(e,r){delete r.output[e]}measureInstanceViewportBox(){return Oe()}build(e,r){Object.assign(e.output,r)}renderInstance(e,{output:r}){Object.assign(e,r)}sortInstanceNodePosition(){return 0}};function Mn(t){let e={presenceContext:null,props:{}
1,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=Jo(t)?new Wt(e):new zt(e);r.mount(t),U.set(t,r)}function En(t){let e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},r=new jt(e);r.mount(t),U.set(t,r)}function wn(t,e,r){let o=M(t)?t:Y(t);return o.start(kt("",o,e,r)),o.animation}function Ji(t,e){return M(t)||typeof t=="number"||typeof t=="string"&&!He(e)}function Ut(t,e,r,o){let n=[];if(Ji(t,e))n.push(wn(t,He(e)&&e.default||e,r&&(r.default||r)));else{let i=ft(t,e,o),s=i.length;G(!!s,"No valid elements provided.");for(let a=0;a<s;a++){let l=i[a],c=l instanceof Element?Mn:En;U.has(l)||c(l);let u=U.get(l),m={...r};"delay"in m&&typeof m.delay=="function"&&(m.delay=m.delay(a,s)),n.push(...Qo(u,{...e,transition:m},{}))}}return n}function Pn(t,e,r){let o=[];return Ur(t,e,r,{spring:R}).forEach(({keyframes:i,transition:s},a)=>{o.push(...Ut(a,i,s))}),o}function es(t){return Array.isArray(t)&&t.some(Array.isArray)}function Cn(t){function e(r,o,n){let i=[];es(r)?i=Pn(r,o,t):i=Ut(r,o,n,t);let s=new ge(i);return t&&t.animations.push(s),s}return e}var le=Cn();var ts=document.getElementById("site-header"),Yt=document.querySelector("[aria-controls*='mobile-menu'"),Fn=document.querySelector("[aria-controls*='mobile-search'"),Le=document.getElementById("mobile-flyout"),Er=document.getElementById("mobile-menu"),Xt=Le?.querySelector("[data-mobile-nav-level-root]"),rs=Le?.querySelectorAll("[data-mobile-nav-next]"),os=Le?.querySelectorAll("[data-mobile-nav-back]"),Zt=document.getElementById("mobile-search"),pe=document.getElementById("banners-wrapper"),Dn=!1,On=!1,In=!1;if(Le&&Er){let t=s=>{let a=s!==void 0?s:Le.inert;Le.inert=!a,Dn!==a&&ts?.dispatchEvent(new Event(a?"flyout:open":"flyout:close")),Dn=a},e=(s,a)=>{let l=s!==void 0?s:Er.inert;if(t(a||l),Er.inert=!l,Yt){Yt.setAttribute("aria-expanded",String(l));let c=[...Yt.querySelectorAll("span")];l?(le(c[0],{y:"0.34rem",rotate:"45deg"},{type:R}),le(c[1],{x:"1.6rem",opacity:0},{type:R}),le(c[2],{y:"-0.34rem",rotate:"-45deg"},{type:R})):(le(c[0],{y:0,rotate:0},{y:{delay:.2},type:R}),le(c[1],{x:0,opacity:1},{delay:.2,type:R}),le(c[2],{y:0,rotate:0},{y:{delay:.2},type:R}))}In&&r(!1,!0),On=l,document.documentElement.classList.toggle("max-lg:overflow-y-hidden",l),pe&&(l?(pe.style.transition="height 0.3s ease-in-out",pe.style.height="0",pe.style.overflow="hidden"):(pe.style.transition="height 0.3s ease-in-out",pe.style.height="",pe.style.overflow=""))},r=(s,a)=>{if(!Zt)return;let l=s!==void 0?s:Zt.inert;t(a||l),Zt.inert=!l,Fn?.setAttribute("aria-expanded",String(l)),On&&e(!1,!0),In=l,l&&setTimeout(()=>{Zt.querySelector("input")?.focus()},200)},o=s=>{if(!Xt)return;let a=["opacity-0","pointer-events-none","touch-none","invisible"],l=Array.from(Xt.querySelectorAll("[data-mobile-nav-panel-path]")),c=null,u=-1;l.forEach(d=>{let x=d.dataset.mobileNavPanelPath??"";s.startsWith(x)&&x.length>u&&(u=x.length,c=d)});let m=[],f=c;for(;f;){let d=f.dataset.mobileNavPanelPath??"";d&&m.unshift(d),f=f.parentElement?.closest("[data-mobile-nav-panel-path]")??null}l.forEach(d=>{let x=d.dataset.mobileNavPanelPath??"";m.includes(x)?d.classList.remove(...a):d.classList.add(...a)});let g=m.length;Xt.setAttribute("data-mobile-nav-current-index",String(g)),Xt.style.left=`${Math.max(0,g-1)*-100}%`},n=s=>{let l=s.currentTarget.nextElementSibling;!l||!l.hasAttribute("data-mobile-nav-panel-path")||o(l.dataset.mobileNavPanelPath??"")},i=s=>{let c=s.currentTarget.closest("[data-mobile-nav-panel-path]")?.parentElement?.closest("[data-mobile-nav-panel-path]");c&&o(c.dataset.mobileNavPanelPath??"")};Yt?.addEventListener("click",()=>e()),Fn?.addEventListener("click",()=>r()),rs?.forEach(s=>s.addEventListener("click",n)),os?.forEach(s=>s.addEventListener("click",i)),o(window.location.pathname)}var de=document.querySelector("#site-header");if(de){let t=!1,e=de.dataset.animate==="true",r=window.scrollY,o=!0,n=()=>{if(t)return;let i=window.scrollY,s=de.clientHeight;i>s&&i>r?o&&(de.classList.add("-translate-y-full"),o=!1):i<r&&(o||(de.classList.remove("-translate-y-full"),o=!0)),r=i};e&&(window.addEventListener("scroll",n,{passive:!0}),de.addEventListener("flyout:open",()=>{t=!0}),de.addEventListener("flyout:close",()=>{t=!1}))}})();
2//# sourceMappingURL=site-header.js.map

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.