1import{r as v,j as p}from"./app-C4Kq0qwe.js";import{r as Xs,h as Br,i as Fr,p as Ir,L as te,c as Zs,u as Nr,S as It,R as Tt,a as Or,d as Ur,e as Wr}from"./structuredData-DVvW7n11.js";import{B as rn,L as Kr,S as Gr}from"./Seo-BiujKJGZ.js";import{C as Y,e as Hr}from"./caseStudyAssets-BMwYhwTE.js";import{F as qs}from"./ArrowRightIcon-2KRMMj88.js";function _r({title:t,titleId:e,...n},s){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":e},n),t?v.createElement("title",{id:e},t):null,v.createElement("path",{fillRule:"evenodd",d:"M14.615 1.595a.75.75 0 0 1 .359.852L12.982 9.75h7.268a.75.75 0 0 1 .548 1.262l-10.5 11.25a.75.75 0 0 1-1.272-.71l1.992-7.302H3.75a.75.75 0 0 1-.548-1.262l10.5-11.25a.75.75 0 0 1 .913-.143Z",clipRule:"evenodd"}))}const zr=v.forwardRef(_r);function $r({title:t,titleId:e,...n},s){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":e},n),t?v.createElement("title",{id:e},t):null,v.createElement("path",{d:"M18.375 2.25c-1.035 0-1.875.84-1.875 1.875v15.75c0 1.035.84 1.875 1.875 1.875h.75c1.035 0 1.875-.84 1.875-1.875V4.125c0-1.036-.84-1.875-1.875-1.875h-.75ZM9.75 8.625c0-1.036.84-1.875 1.875-1.875h.75c1.036 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875h-.75a1.875 1.875 0 0 1-1.875-1.875V8.625ZM3 13.125c0-1.036.84-1.875 1.875-1.875h.75c1.036 0 1.875.84 1.875 1.875v6.75c0 1.035-.84 1.875-1.875 1.875h-.75A1.875 1.875 0 0 1 3 19.875v-6.75Z"}))}const Yr=v.forwardRef($r);function Xr({title:t,titleId:e,...n},s){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":e},n),t?v.createElement("title",{id:e},t):null,v.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),v.createElement("path",{fillRule:"evenodd",d:"M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 0 1 0-1.113ZM17.25 12a5.25 5.25 0 1 1-10.5 0 5.25 5.25 0 0 1 10.5 0Z",clipRule:"evenodd"}))}const Zr=v.forwardRef(Xr);function qr({title:t,titleId:e,...n},s){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":e},n),t?v.createElement("title",{id:e},t):null,v.createElement("path",{fillRule:"evenodd",d:"M9.315 7.584C12.195 3.883 16.695 1.5 21.75 1.5a.75.75 0 0 1 .75.75c0 5.056-2.383 9.555-6.084 12.436A6.75 6.75 0 0 1 9.75 22.5a.75.75 0 0 1-.75-.75v-4.131A15.838 15.838 0 0 1 6.382 15H2.25a.75.75 0 0 1-.75-.75 6.75 6.75 0 0 1 7.815-6.666ZM15 6.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z",clipRule:"evenodd"}),v.createElement("path",{d:"M5.26 17.242a.75.75 0 1 0-.897-1.203 5.243 5.243 0 0 0-2.05 5.022.75.75 0 0 0 .625.627 5.243 5.243 0 0 0 5.022-2.051.75.75 0 1 0-1.202-.897 3.744 3.744 0 0 1-3.008 1.51c0-1.23.592-2.323 1.51-3.008Z"}))}const Jr=v.forwardRef(qr);function Qr({title:t,titleId:e,...n},s){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":e},n),t?v.createElement("title",{id:e},t):null,v.createElement("path",{fillRule:"evenodd",d:"M12.516 2.17a.75.75 0 0 0-1.032 0 11.209 11.209 0 0 1-7.877 3.08.75.75 0 0 0-.722.515A12.74 12.74 0 0 0 2.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 0 0 .374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 0 0-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08Zm3.094 8.016a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"}))}const to=v.forwardRef(Qr);function eo({title:t,titleId:e,...n},s){return v.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":e},n),t?v.createElement("title",{id:e},t):null,v.createElement("path",{fillRule:"evenodd",d:"M8.25 6.75a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0ZM15.75 9.75a3 3 0 1 1 6 0 3 3 0 0 1-6 0ZM2.25 9.75a3 3 0 1 1 6 0 3 3 0 0 1-6 0ZM6.31 15.117A6.745 6.745 0 0 1 12 12a6.745 6.745 0 0 1 6.709 7.498.75.75 0 0 1-.372.568A12.696 12.696 0 0 1 12 21.75c-2.305 0-4.47-.612-6.337-1.684a.75.75 0 0 1-.372-.568 6.787 6.787 0 0 1 1.019-4.38Z",clipRule:"evenodd"}),v.createElement("path",{d:"M5.082 14.254a8.287 8.287 0 0 0-1.308 5.135 9.687 9.687 0 0 1-1.764-.44l-.115-.04a.563.563 0 0 1-.373-.487l-.01-.121a3.75 3.75 0 0 1 3.57-4.047ZM20.226 19.389a8.287 8.287 0 0 0-1.308-5.135 3.75 3.75 0 0 1 3.57 4.047l-.01.121a.563.563 0 0 1-.373.486l-.115.04c-.567.2-1.156.349-1.764.441Z"}))}const no=v.forwardRef(eo),Js=v.createContext({});function so(t){const e=v.useRef(null);return e.current===null&&(e.current=t()),e.current}const io=typeof window<"u",ro=io?v.useLayoutEffect:v.useEffect,on=v.createContext(null);function an(t,e){t.indexOf(e)===-1&&t.push(e)}function ee(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const et=(t,e,n)=>n>e?e:n<t?t:n;let ln=()=>{};const rt={},Qs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ti=t=>typeof t=="object"&&t!==null,ei=t=>/^0[^.\s]+$/u.test(t);function ni(t){let e;return()=>(e===void 0&&(e=t()),e)}const _=t=>t,Nt=(...t)=>t.reduce((e,n)=>s=>n(e(s))),jt=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class cn{constructor(){this.subscriptions=[]}add(e){return an(this.subscriptions,e),()=>ee(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 K=t=>t*1e3,H=t=>t/1e3,si=(t,e)=>e?t*(1e3/e):0,ii=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,oo=1e-7,ao=12;function lo(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=ii(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>oo&&++a<ao);return r}function Ot(t,e,n,s){if(t===e&&n===s)return _;const i=o=>lo(o,0,1,t,n);return o=>o===0||o===1?o:ii(i(o),e,s)}const ri=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,oi=t=>e=>1-t(1-e),ai=Ot(.33,1.53,.69,.99),un=oi(ai),li=ri(un),ci=t=>t>=1?1:(t*=2)<1?.5*un(t):.5*(2-Math.pow(2,-10*(t-1))),hn=t=>1-Math.sin(Math.acos(t)),ui=oi(hn),hi=ri(hn),co=Ot(.42,0,1,1),uo=Ot(0,0,.58,1),di=Ot(.42,0,.58,1),ho=t=>Array.isArray(t)&&typeof t[0]!="number",fi=t=>Array.isArray(t)&&typeof t[0]=="number",fo={linear:_,easeIn:co,easeInOut:di,easeOut:uo,circIn:hn,circInOut:hi,circOut:ui,backIn:un,backInOut:li,backOut:ai,anticipate:ci},po=t=>typeof t=="string",jn=t=>{if(fi(t)){ln(t.length===4);const[e,n,s,i]=t;return Ot(e,n,s,i)}else if(po(t))return fo[t];return t},Kt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function mo(t){let e=new Set,n=new Set,s=!1,i=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(l){o.has(l)&&(c.schedule(l),t()),l(r)}const c={schedule:(l,u=!1,h=!1)=>{const m=h&&s?e:n;return u&&o.add(l),m.add(l),l},cancel:l=>{n.delete(l),o.delete(l)},process:l=>{if(r=l,s){i=!0;return}s=!0;const u=e;e=n,n=u,e.forEach(a),e.clear(),s=!1,i&&(i=!1,c.process(l))}};return c}const go=40;function pi(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Kt.reduce((w,S)=>(w[S]=mo(o),w),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:h,preRender:d,render:m,postRender:f}=r,g=()=>{const w=rt.useManualTiming,S=w?i.timestamp:performance.now();n=!1,w||(i.delta=s?1e3/60:Math.max(Math.min(S-i.timestamp,go),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),h.process(i),d.process(i),m.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},y=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:Kt.reduce((w,S)=>{const C=r[S];return w[S]=(D,V=!1,A=!1)=>(n||y(),C.schedule(D,V,A)),w},{}),cancel:w=>{for(let S=0;S<Kt.length;S++)r[Kt[S]].cancel(w)},state:i,steps:r}}const{schedule:E,cancel:ot,state:I,steps:ge}=pi(typeof requestAnimationFrame<"u"?requestAnimationFrame:_,!0);let zt;function yo(){zt=void 0}
vendor: 25,141 bytes, line 1
1const O={now:()=>(zt===void 0&&O.set(I.isProcessing||rt.useManualTiming?I.timestamp:performance.now()),zt),set:t=>{zt=t,queueMicrotask(yo)}},mi=t=>e=>typeof e=="string"&&e.startsWith(t),gi=mi("--"),xo=mi("var(--"),dn=t=>xo(t)?vo.test(t.split("/*")[0].trim()):!1,vo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ln(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Pt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Lt={...Pt,transform:t=>et(0,1,t)},Gt={...Pt,default:1},Et=t=>Math.round(t*1e5)/1e5,fn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wo(t){return t==null}const To=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pn=(t,e)=>n=>!!(typeof n=="string"&&To.test(n)&&n.startsWith(t)||e&&!wo(n)&&Object.prototype.hasOwnProperty.call(n,e)),yi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(fn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},bo=t=>et(0,255,t),ye={...Pt,transform:t=>Math.round(bo(t))},dt={test:pn("rgb","red"),parse:yi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ye.transform(t)+", "+ye.transform(e)+", "+ye.transform(n)+", "+Et(Lt.transform(s))+")"};function So(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 Le={test:pn("#"),parse:So,transform:dt.transform},Ut=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),st=Ut("deg"),tt=Ut("%"),b=Ut("px"),Po=Ut("vh"),Ao=Ut("vw"),Bn={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(t*100)},xt={test:pn("hsl","hue"),parse:yi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+tt.transform(Et(e))+", "+tt.transform(Et(n))+", "+Et(Lt.transform(s))+")"},j={test:t=>dt.test(t)||Le.test(t)||xt.test(t),parse:t=>dt.test(t)?dt.parse(t):xt.test(t)?xt.parse(t):Le.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?dt.transform(t):xt.transform(t),getAnimatableNone:t=>{const e=j.parse(t);return e.alpha=0,j.transform(e)}},Co=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Vo(t){return isNaN(t)&&typeof t=="string"&&(t.match(fn)?.length||0)+(t.match(Co)?.length||0)>0}const xi="number",vi="color",Mo="var",Eo="var(",Fn="${}",Do=/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 bt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Do,c=>(j.test(c)?(s.color.push(o),i.push(vi),n.push(j.parse(c))):c.startsWith(Eo)?(s.var.push(o),i.push(Mo),n.push(c)):(s.number.push(o),i.push(xi),n.push(parseFloat(c))),++o,Fn)).split(Fn);return{values:n,split:a,indexes:s,types:i}}function Ro(t){return bt(t).values}function wi({split:t,types:e}){const n=t.length;return s=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],s[o]!==void 0){const r=e[o];r===xi?i+=Et(s[o]):r===vi?i+=j.transform(s[o]):i+=s[o]}return i}}function ko(t){return wi(bt(t))}const jo=t=>typeof t=="number"?0:j.test(t)?j.getAnimatableNone(t):t,Lo=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:jo(t);function Bo(t){const e=bt(t);return wi(e)(e.values.map((s,i)=>Lo(s,e.split[i])))}const X={test:Vo,parse:Ro,createTransformer:ko,getAnimatableNone:Bo};function xe(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 Fo({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,c=2*n-a;i=xe(c,a,t+1/3),o=xe(c,a,t),r=xe(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function ne(t,e){return n=>n>0?e:t}const M=(t,e,n)=>t+(e-t)*n,ve=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Io=[Le,dt,xt],No=t=>Io.find(e=>e.test(t));function In(t){const e=No(t);if(!e)return!1;let n=e.parse(t);return e===xt&&(n=Fo(n)),n}const Nn=(t,e)=>{const n=In(t),s=In(e);if(!n||!s)return ne(t,e);const i={...n};return o=>(i.red=ve(n.red,s.red,o),i.green=ve(n.green,s.green,o),i.blue=ve(n.blue,s.blue,o),i.alpha=M(n.alpha,s.alpha,o),dt.transform(i))},Be=new Set(["none","hidden"]);function Oo(t,e){return Be.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Uo(t,e){return n=>M(t,e,n)}function mn(t){return typeof t=="number"?Uo:typeof t=="string"?dn(t)?ne:j.test(t)?Nn:Go:Array.isArray(t)?Ti:typeof t=="object"?j.test(t)?Nn:Wo:ne}function Ti(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>mn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Wo(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=mn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Ko(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 Go=(t,e)=>{const n=X.createTransformer(e),s=bt(t),i=bt(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?Be.has(t)&&!i.values.length||Be.has(e)&&!s.values.length?Oo(t,e):Nt(Ti(Ko(s,i),i.values),n):ne(t,e)};function bi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?M(t,e,n):mn(t)(t,e)}const Ho=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>ot(e),now:()=>I.isProcessing?I.timestamp:O.now()}},Si=(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)})`},se=2e4;function gn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<se;)e+=n,s=t.next(e);return e>=se?1/0:e}function _o(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(gn(s),se);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:H(i)}}const R={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Fe(t,e){return t*Math.sqrt(1-e*e)}const zo=12;function $o(t,e,n){let s=n;for(let i=1;i<zo;i++)s=s-t(s)/e(s);return s}const we=.001;function Yo({duration:t=R.duration,bounce:e=R.bounce,velocity:n=R.velocity,mass:s=R.mass}){let i,o,r=1-e;r=et(R.minDamping,R.maxDamping,r),t=et(R.minDuration,R.maxDuration,H(t)),r<1?(i=l=>{const u=l*r,h=u*t,d=u-n,m=Fe(l,r),f=Math.exp(-h);return we-d/m*f},o=l=>{const h=l*r*t,d=h*n+n,m=Math.pow(r,2)*Math.pow(l,2)*t,f=Math.exp(-h),g=Fe(Math.pow(l,2),r);return(-i(l)+we>0?-1:1)*((d-m)*f)/g}):(i=l=>{const u=Math.exp(-l*t),h=(l-n)*t+1;return-we+u*h},o=l=>{const u=Math.exp(-l*t),h=(n-l)*(t*t);return u*h});const a=5/t,c=$o(i,o,a);if(t=K(t),isNaN(c))return{stiffness:R.stiffness,damping:R.damping,duration:t};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:r*2*Math.sqrt(s*l),duration:t}}}const Xo=["duration","bounce"],Zo=["stiffness","damping","mass"];function On(t,e){return e.some(n=>t[n]!==void 0)}function qo(t){let e={velocity:R.velocity,stiffness:R.stiffness,damping:R.damping,mass:R.mass,isResolvedFromDuration:!1,...t};if(!On(t,Zo)&&On(t,Xo))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*et(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:R.mass,stiffness:i,damping:o}}else{const n=Yo({...t,velocity:0});e={...e,...n,mass:R.mass},e.isResolvedFromDuration=!0}return e}function ie(t=R.visualDuration,e=R.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:c,damping:l,mass:u,duration:h,velocity:d,isResolvedFromDuration:m}=qo({...n,velocity:-H(n.velocity||0)}),f=d||0,g=l/(2*Math.sqrt(c*u)),y=r-o,x=H(Math.sqrt(c/u)),T=Math.abs(y)<5;s||(s=T?R.restSpeed.granular:R.restSpeed.default),i||(i=T?R.restDelta.granular:R.restDelta.default);let w,S,C,D,V,A;if(g<1)C=Fe(x,g),D=(f+g*x*y)/C,w=P=>{const k=Math.exp(-g*x*P);return r-k*(D*Math.sin(C*P)+y*Math.cos(C*P))},V=g*x*D+y*C,A=g*x*y-D*C,S=P=>Math.exp(-g*x*P)*(V*Math.sin(C*P)+A*Math.cos(C*P));else if(g===1){w=k=>r-Math.exp(-x*k)*(y+(f+x*y)*k);const P=f+x*y;S=k=>Math.exp(-x*k)*(x*P*k-f)}else{const P=x*Math.sqrt(g*g-1);w=Z=>{const nt=Math.exp(-g*x*Z),q=Math.min(P*Z,300);return r-nt*((f+g*x*y)*Math.sinh(q)+P*y*Math.cosh(q))/P};const k=(f+g*x*y)/P,W=g*x*k-y*P,lt=g*x*y-k*P;S=Z=>{const nt=Math.exp(-g*x*Z),q=Math.min(P*Z,300);return nt*(W*Math.sinh(q)+lt*Math.cosh(q))}}const B={calculatedDuration:m&&h||null,velocity:P=>K(S(P)),next:P=>{if(!m&&g<1){const W=Math.exp(-g*x*P),lt=Math.sin(C*P),Z=Math.cos(C*P),nt=r-W*(D*lt+y*Z),q=K(W*(V*lt+A*Z));return a.done=Math.abs(q)<=s&&Math.abs(r-nt)<=i,a.value=a.done?r:nt,a}const k=w(P);if(m)a.done=P>=h;else{const W=K(S(P));a.done=Math.abs(W)<=s&&Math.abs(r-k)<=i}return a.value=a.done?r:k,a},toString:()=>{const P=Math.min(gn(B),se),k=Si(W=>B.next(P*W).value,P,30);return P+"ms "+k},toTransition:()=>{}};return B}ie.applyToOptions=t=>{const e=_o(t,100,ie);return t.ease=e.ease,t.duration=K(e.duration),t.type="keyframes",t};const Jo=5;function Pi(t,e,n){const s=Math.max(e-Jo,0);return si(n-t(s),e-s)}function Ie({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:l=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},m=A=>a!==void 0&&A<a||c!==void 0&&A>c,f=A=>a===void 0?c:c===void 0||Math.abs(a-A)<Math.abs(c-A)?a:c;let g=n*e;const y=h+g,x=r===void 0?y:r(y);x!==y&&(g=x-h);const T=A=>-g*Math.exp(-A/s),w=A=>x+T(A),S=A=>{const B=T(A),P=w(A);d.done=Math.abs(B)<=l,d.value=d.done?x:P};let C,D;const V=A=>{m(d.value)&&(C=A,D=ie({keyframes:[d.value,f(d.value)],velocity:Pi(w,A,d.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return V(0),{calculatedDuration:null,next:A=>{let B=!1;return!D&&C===void 0&&(B=!0,S(A),V(A)),C!==void 0&&A>=C?D.next(A-C):(!B&&S(A),d)}}}function Qo(t,e,n){const s=[],i=n||rt.mix||bi,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||_:e;a=Nt(c,a)}s.push(a)}return s}function ta(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(ln(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=Qo(e,s,i),c=a.length,l=u=>{if(r&&u<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const d=jt(t[h],t[h+1],u);return a[h](d)};return n?u=>l(et(t[0],t[o-1],u)):l}function ea(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=jt(0,e,s);t.push(M(n,1,i))}}function na(t){const e=[0];return ea(e,t.length-1),e}function sa(t,e){return t.map(n=>n*e)}function ia(t,e){return t.map(()=>e||di).splice(0,t.length-1)}function Dt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ho(s)?s.map(jn):jn(s),o={done:!1,value:e[0]},r=sa(n&&n.length===e.length?n:na(e),t),a=ta(r,e,{ease:Array.isArray(i)?i:ia(e,i)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const ra=t=>t!==null;function he(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(ra),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const oa={decay:Ie,inertia:Ie,tween:Dt,keyframes:Dt,spring:ie};function Ai(t){typeof t.type=="string"&&(t.type=oa[t.type])}class yn{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 aa=t=>t/100;class re extends yn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},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;Ai(e);const{type:n=Dt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||Dt;c!==Dt&&typeof a[0]!="number"&&(this.mixKeyframes=Nt(aa,bi(a[0],a[1])),a=[0,100]);const l=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),l.calculatedDuration===null&&(l.calculatedDuration=gn(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}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:c}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-l*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,S=s;if(h){const A=Math.min(this.currentTime,i)/a;let B=Math.floor(A),P=A%1;!P&&A>=1&&(P=1),P===1&&B--,B=Math.min(B,h+1),B%2&&(d==="reverse"?(P=1-P,m&&(P-=m/a)):d==="mirror"&&(S=r)),w=et(0,1,P)*a}let C;T?(this.delayState.value=u[0],C=this.delayState):C=S.next(w),o&&!T&&(C.value=o(C.value));let{done:D}=C;!T&&c!==null&&(D=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return V&&f!==Ie&&(C.value=he(u,this.options,y,this.speed)),g&&g(C.value),V&&this.finish(),C}then(e,n){return this.finished.then(e,n)}get duration(){return H(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+H(e)}get time(){return H(this.currentTime)}set time(e){e=K(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return Pi(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(O.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=H(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Ho,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 la(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ft=t=>t*180/Math.PI,Ne=t=>{const e=ft(Math.atan2(t[1],t[0]));return Oe(e)},ca={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ne,rotateZ:Ne,skewX:t=>ft(Math.atan(t[1])),skewY:t=>ft(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Oe=t=>(t=t%360,t<0&&(t+=360),t),Un=Ne,Wn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Kn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ua={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Wn,scaleY:Kn,scale:t=>(Wn(t)+Kn(t))/2,rotateX:t=>Oe(ft(Math.atan2(t[6],t[5]))),rotateY:t=>Oe(ft(Math.atan2(-t[2],t[0]))),rotateZ:Un,rotate:Un,skewX:t=>ft(Math.atan(t[4])),skewY:t=>ft(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ue(t){return t.includes("scale")?1:0}function We(t,e){if(!t||t==="none")return Ue(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=ua,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ca,i=a}if(!i)return Ue(e);const o=s[e],r=i[1].split(",").map(da);return typeof o=="function"?o(r):r[o]}const ha=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return We(n,e)};function da(t){return parseFloat(t.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ct=new Set([...At,"pathRotation"]),Gn=t=>t===Pt||t===b,fa=new Set(["x","y","z"]),pa=At.filter(t=>!fa.has(t));function ma(t){const e=[];return pa.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const it={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-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})=>We(e,"x"),y:(t,{transform:e})=>We(e,"y")};it.translateX=it.x;it.translateY=it.y;const pt=new Set;let Ke=!1,Ge=!1,He=!1;function Ci(){if(Ge){const t=Array.from(pt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ma(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)})}Ge=!1,Ke=!1,pt.forEach(t=>t.complete(He)),pt.clear()}function Vi(){pt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ge=!0)})}function ga(){He=!0,Vi(),Ci(),He=!1}class xn{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?(pt.add(this),Ke||(Ke=!0,E.read(Vi),E.resolveKeyframes(Ci))):(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])}la(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),pt.delete(this)}cancel(){this.state==="scheduled"&&(pt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ya=t=>t.startsWith("--");function Mi(t,e,n){ya(e)?t.style.setProperty(e,n):t.style[e]=n}const xa={};function Ei(t,e){const n=ni(t);return()=>xa[e]??n()}const va=Ei(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Di=Ei(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Mt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Hn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mt([0,.65,.55,1]),circOut:Mt([.55,0,1,.45]),backIn:Mt([.31,.01,.66,-.59]),backOut:Mt([.33,1.53,.69,.99])};function Ri(t,e){if(t)return typeof t=="function"?Di()?Si(t,e):"ease-out":fi(t)?Mt(t):Array.isArray(t)?t.map(n=>Ri(n,e)||Hn.easeOut):Hn[t]}function wa(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[e]:n};c&&(u.offset=c);const h=Ri(a,i);Array.isArray(h)&&(u.easing=h);const d={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return l&&(d.pseudoElement=l),t.animate(u,d)}function ki(t){return typeof t=="function"&&"applyToOptions"in t}function Ta({type:t,...e}){return ki(t)&&Di()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class ji extends yn{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:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,ln(typeof e.type!="string");const l=Ta(e);this.animation=wa(n,s,i,l,o),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=he(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Mi(n,s,u),this.animation.cancel()}c?.(),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(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return H(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+H(e)}get time(){return H(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=K(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&va()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),_):i(this)}}const Li={anticipate:ci,backInOut:li,circInOut:hi};function ba(t){return t in Li}function Sa(t){typeof t.ease=="string"&&ba(t.ease)&&(t.ease=Li[t.ease])}const Te=10;class Pa extends ji{constructor(e){Sa(e),Ai(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(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 re({...r,autoplay:!1}),c=Math.max(Te,O.now()-this.startTime),l=et(0,Te,c-Te),u=a.sample(c).value,{name:h}=this.options;o&&h&&Mi(o,h,u),n.setWithVelocity(a.sample(Math.max(0,c-l)).value,u,l),a.stop()}}const _n=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function Aa(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 Ca(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=_n(i,e),a=_n(o,e);return!r||!a?!1:Aa(t)||(n==="spring"||ki(n))&&s}function _e(t){t.duration=0,t.type="keyframes"}const Bi=new Set(["opacity","clipPath","filter","transform"]),Va=/^(?:
1oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ma(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Va.test(t[e]))return!0;return!1}const Ea=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Da=ni(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ra(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return Da()&&n&&(Bi.has(n)||Ea.has(n)&&Ma(a))&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const ka=40;class ja extends yn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=O.now();const d={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:c,motionValue:l,element:u,...h},m=u?.KeyframeResolver||xn;this.keyframeResolver=new m(a,(f,g,y)=>this.onKeyframesResolved(f,g,d,!y),c,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:l,onUpdate:u}=s;this.resolvedAt=O.now();let h=!0;Ca(e,o,r,a)||(h=!1,(rt.instantAnimations||!c)&&u?.(he(e,s,n)),e[0]=e[e.length-1],_e(s),s.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ka?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},f=h&&!l&&Ra(m),g=m.motionValue?.owner?.current;let y;if(f)try{y=new Pa({...m,element:g})}catch{y=new re(m)}else y=new re(m);y.finished.then(()=>{this.notifyFinished()}).catch(_),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}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(),ga()),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 Fi(t,e,n,s=0,i=1){const o=Array.from(t).sort((l,u)=>l.sortNodePosition(u)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const zn=30,La=t=>!isNaN(parseFloat(t));class Ba{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=La(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 cn);const s=this.events[e].add(n);return e==="change"?()=>{s(),E.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>zn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zn);return si(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 St(t,e){return new Ba(t,e)}function Ii(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function vn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Ii(n,t):n}const Fa={type:"spring",stiffness:500,damping:25,restSpeed:10},Ia=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Na={type:"keyframes",duration:.8},Oa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ua=(t,{keyframes:e})=>e.length>2?Na:Ct.has(t)?t.startsWith("scale")?Ia(e[1]):Fa:Oa,Wa=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ka(t){for(const e in t)if(!Wa.has(e))return!0;return!1}const wn=(t,e,n,s={},i,o)=>r=>{const a=vn(s,t)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-K(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Ka(a)||Object.assign(u,Ua(t,u)),u.duration&&(u.duration=K(u.duration)),u.repeatDelay&&(u.repeatDelay=K(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(_e(u),u.delay===0&&(h=!0)),(rt.instantAnimations||rt.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,_e(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const d=he(u.keyframes,a);if(d!==void 0){E.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new re(u):new ja(u)},Ga=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ha(t){const e=Ga.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Ni(t,e,n=1){const[s,i]=Ha(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Qs(r)?parseFloat(r):r}return dn(i)?Ni(i,e,n+1):i}function $n(t){const e=[{},{}];
vendor: 47,891 bytes, line 1
1return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Tn(t,e,n,s){if(typeof e=="function"){const[i,o]=$n(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]=$n(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function mt(t,e,n){const s=t.getProps();return Tn(s,e,n!==void 0?n:s.custom,t)}const Oi=new Set(["width","height","top","left","right","bottom",...At]),ze=t=>Array.isArray(t);function _a(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,St(n))}function za(t){return ze(t)?t[t.length-1]||0:t}function $a(t,e){const n=mt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=za(o[r]);_a(t,r,a)}}const N=t=>!!(t&&t.getVelocity);function Ya(t){return!!(N(t)&&t.add)}function $e(t,e){const n=t.getValue("willChange");if(Ya(n))return n.add(e);if(!n&&rt.WillChange){const s=new rt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function bn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Xa="framerAppearId",Ui="data-"+bn(Xa);function Wi(t){return t.props[Ui]}function Za({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Ki(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=e;const c=t.getDefaultTransition();o=o?Ii(o,c):c;const l=o?.reduceMotion,u=o?.skipAnimations;s&&(o=s);const h=[],d=i&&t.animationState&&t.animationState.getState()[i],m=o?.path;m&&m.animateVisualElement(t,a,o,n,h);for(const f in a){const g=t.getValue(f,t.latestValues[f]??null),y=a[f];if(y===void 0||d&&Za(d,f))continue;const x={delay:n,...vn(o||{},f)};u&&(x.skipAnimations=!0);const T=g.get();if(T!==void 0&&!g.isAnimating()&&!Array.isArray(y)&&y===T&&!x.velocity){E.update(()=>g.set(y));continue}let w=!1;if(window.MotionHandoffAnimation){const D=Wi(t);if(D){const V=window.MotionHandoffAnimation(D,f,E);V!==null&&(x.startTime=V,w=!0)}}$e(t,f);const S=l??t.shouldReduceMotion;g.start(wn(f,g,y,S&&Oi.has(f)?{type:!1}:x,t,w));const C=g.animation;C&&h.push(C)}if(r){const f=()=>E.update(()=>{r&&$a(t,r)});h.length?Promise.all(h).then(f):f()}return h}function Ye(t,e,n={}){const s=mt(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(Ki(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:h}=i;return qa(t,e,c,l,u,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,l]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>l())}else return Promise.all([o(),r(n.delay)])}function qa(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(Ye(c,e,{...r,delay:n+(typeof s=="function"?0:s)+Fi(t.variantChildren,c,s,i,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function Ja(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ye(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ye(t,e,n);else{const i=typeof e=="function"?mt(t,e,n.custom):e;s=Promise.all(Ki(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Qa={test:t=>t==="auto",parse:t=>t},Gi=t=>e=>e.test(t),Hi=[Pt,b,tt,st,Ao,Po,Qa],Yn=t=>Hi.find(Gi(t));function tl(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ei(t):!0}const el=new Set(["brightness","contrast","saturate","opacity"]);function nl(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(fn)||[];if(!s)return t;const i=n.replace(s,"");let o=el.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const sl=/\b([a-z-]*)\(.*?\)/gu,Xe={...X,getAnimatableNone:t=>{const e=t.match(sl);return e?e.map(nl).join(" "):t}},Ze={...X,getAnimatableNone:t=>{const e=X.parse(t);return X.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Xn={...Pt,transform:Math.round},il={rotate:st,pathRotation:st,rotateX:st,rotateY:st,rotateZ:st,scale:Gt,scaleX:Gt,scaleY:Gt,scaleZ:Gt,skew:st,skewX:st,skewY:st,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:Lt,originX:Bn,originY:Bn,originZ:b},oe={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,inset:b,insetBlock:b,insetBlockStart:b,insetBlockEnd:b,insetInline:b,insetInlineStart:b,insetInlineEnd:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,paddingBlock:b,paddingBlockStart:b,paddingBlockEnd:b,paddingInline:b,paddingInlineStart:b,paddingInlineEnd:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,marginBlock:b,marginBlockStart:b,marginBlockEnd:b,marginInline:b,marginInlineStart:b,marginInlineEnd:b,fontSize:b,backgroundPositionX:b,backgroundPositionY:b,...il,zIndex:Xn,fillOpacity:Lt,strokeOpacity:Lt,numOctaves:Xn},rl={...oe,color:j,backgroundColor:j,outlineColor:j,fill:j,stroke:j,borderColor:j,borderTopColor:j,borderRightColor:j,borderBottomColor:j,borderLeftColor:j,filter:Xe,WebkitFilter:Xe,mask:Ze,WebkitMask:Ze},_i=t=>rl[t],ol=new Set([Xe,Ze]);function zi(t,e){let n=_i(t);return ol.has(n)||(n=X),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const al=new Set(["auto","none","0"]);function ll(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!al.has(o)&&bt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=zi(n,i)}class cl extends xn{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 u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),dn(h))){const d=Ni(h,n.current);d!==void 0&&(e[u]=d),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Oi.has(s)||e.length!==2)return;const[i,o]=e,r=Yn(i),a=Yn(o),c=Ln(i),l=Ln(o);if(c!==l&&it[s]){this.needsMeasurement=!0;return}if(r!==a)if(Gn(r)&&Gn(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else it[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||tl(e[i]))&&s.push(i);s.length&&ll(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=it[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]=it[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}const Sn=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],qe=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function ul(t){return ti(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Pn}=pi(queueMicrotask,!1),$={x:!1,y:!1};function $i(){return $.x||$.y}function hl(t){return t==="x"||t==="y"?$[t]?null:($[t]=!0,()=>{$[t]=!1}):$.x||$.y?null:($.x=$.y=!0,()=>{$.x=$.y=!1})}function Yi(t,e){const n=Xs(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function dl(t){return!(t.pointerType==="touch"||$i())}function fl(t,e,n={}){const[s,i,o]=Yi(t,n);return s.forEach(r=>{let a=!1,c=!1,l;const u=()=>{r.removeEventListener("pointerleave",f)},h=y=>{l&&(l(y),l=void 0),u()},d=y=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),c&&(c=!1,h(y))},m=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},f=y=>{if(y.pointerType!=="touch"){if(a){c=!0;return}h(y)}},g=y=>{if(!dl(y))return;c=!1;const x=e(r,y);typeof x=="function"&&(l=x,r.addEventListener("pointerleave",f,i))};r.addEventListener("pointerenter",g,i),r.addEventListener("pointerdown",m,i)}),o}const Xi=(t,e)=>e?t===e?!0:Xi(t,e.parentElement):!1,An=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,pl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ml(t){return pl.has(t.tagName)||t.isContentEditable===!0}const gl=new Set(["INPUT","SELECT","TEXTAREA"]);function yl(t){return gl.has(t.tagName)||t.isContentEditable===!0}const $t=new WeakSet;function Zn(t){return e=>{e.key==="Enter"&&t(e)}}function be(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const xl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Zn(()=>{if($t.has(n))return;be(n,"down");const i=Zn(()=>{be(n,"up")}),o=()=>be(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 qn(t){return An(t)&&!$i()}const Jn=new WeakSet;function vl(t,e,n={}){const[s,i,o]=Yi(t,n),r=a=>{const c=a.currentTarget;if(!qn(a)||Jn.has(a))return;$t.add(c),n.stopPropagation&&Jn.add(a);const l=e(c,a),u={...i,capture:!0},h=(f,g)=>{window.removeEventListener("pointerup",d,u),window.removeEventListener("pointercancel",m,u),$t.has(c)&&$t.delete(c),qn(f)&&typeof l=="function"&&l(f,{success:g})},d=f=>{h(f,c===window||c===document||n.useGlobalTarget||Xi(c,f.target))},m=f=>{h(f,!1)};window.addEventListener("pointerup",d,u),window.addEventListener("pointercancel",m,u)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),ul(a)&&(a.addEventListener("focus",l=>xl(l,i)),!ml(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Cn(t){return ti(t)&&"ownerSVGElement"in t}const Yt=new WeakMap;let Xt;const Zi=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:Cn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],wl=Zi("inline","width","offsetWidth"),Tl=Zi("block","height","offsetHeight");function bl({target:t,borderBoxSize:e}){Yt.get(t)?.forEach(n=>{n(t,{get width(){return wl(t,e)},get height(){return Tl(t,e)}})})}function Sl(t){t.forEach(bl)}function Pl(){typeof ResizeObserver>"u"||(Xt=new ResizeObserver(Sl))}function Al(t,e){Xt||Pl();const n=Xs(t);return n.forEach(s=>{let i=Yt.get(s);i||(i=new Set,Yt.set(s,i)),i.add(e),Xt?.observe(s)}),()=>{n.forEach(s=>{const i=Yt.get(s);i?.delete(e),i?.size||Xt?.unobserve(s)})}}const Zt=new Set;let vt;function Cl(){vt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Zt.forEach(e=>e(t))},window.addEventListener("resize",vt)}function Vl(t){return Zt.add(t),vt||Cl(),()=>{Zt.delete(t),!Zt.size&&typeof vt=="function"&&(window.removeEventListener("resize",vt),vt=void 0)}}function Qn(t,e){return typeof t=="function"?Vl(t):Al(t,e)}function Ml(t){return Cn(t)&&t.tagName==="svg"}const El=[...Hi,j,X],Dl=t=>El.find(Gi(t)),ts=()=>({translate:0,scale:1,origin:0,originPoint:0}),wt=()=>({x:ts(),y:ts()}),es=()=>({min:0,max:0}),L=()=>({x:es(),y:es()}),Rl=new WeakMap;function de(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Bt(t){return typeof t=="string"||Array.isArray(t)}const Vn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mn=["initial",...Vn];function fe(t){return de(t.animate)||Mn.some(e=>Bt(t[e]))}function qi(t){return!!(fe(t)||t.variants)}function kl(t,e,n){for(const s in e){const i=e[s],o=n[s];if(N(i))t.addValue(s,i);else if(N(o))t.addValue(s,St(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,St(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ns=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ae={};function Ji(t){ae=t}function jl(){return ae}class Ll{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=xn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 m=O.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,E.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;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.skipAnimationsConfig=o,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=fe(n),this.isVariantNode=qi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in d){const f=d[m];l[m]!==void 0&&N(f)&&f.set(l[m])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,Rl.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:(Br.current||Fr(),this.shouldReduceMotion=Ir.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ot(this.notifyUpdate),ot(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){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Bi.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:c,ease:l,duration:u}=n.accelerate,h=new ji({element:this.current,name:e,keyframes:a,times:c,ease:l,duration:K(u)}),d=r(h);this.valueSubscriptions.set(e,()=>{d(),h.cancel()});return}const s=Ct.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&E.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()})}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 ae){const n=ae[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):L()}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<ns.length;s++){const i=ns[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=kl(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=St(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"&&(Qs(s)||ei(s))?s=parseFloat(s):!Dl(s)&&X.test(n)&&(s=zi(e,n)),this.setBaseTarget(e,N(s)?s.get():s)),N(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=Tn(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&&!N(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 cn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Pn.render(this.render)}}class Qi extends Ll{constructor(){super(...arguments),this.KeyframeResolver=cl}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;N(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class at{constructor(e){this.isMounted=!1,this.node=e}update(){}}function tr({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Bl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Fl(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 Se(t){return t===void 0||t===1}function Je({scale:t,scaleX:e,scaleY:n}){return!Se(t)||!Se(e)||!Se(n)}function ht(t){return Je(t)||er(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function er(t){return ss(t.x)||ss(t.y)}function ss(t){return t&&t!=="0%"}function le(t,e,n){const s=t-n,i=e*s;return n+i}function is(t,e,n,s,i){return i!==void 0&&(t=le(t,i,s)),le(t,n,s)+e}function Qe(t,e=0,n=1,s,i){t.min=is(t.min,e,n,s,i),t.max=is(t.max,e,n,s,i)}function nr(t,{x:e,y:n}){Qe(t.x,e.translate,e.scale,e.originPoint),Qe(t.y,n.translate,n.scale,n.originPoint)}const rs=.999999999999,os=1.0000000000001;function Il(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:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(Q(t.x,-o.scroll.offset.x),Q(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,nr(t,r)),s&&ht(o.latestValues)&&qt(t,o.latestValues,o.layout?.layoutBox))}e.x<os&&e.x>rs&&(e.x=1),e.y<os&&e.y>rs&&(e.y=1)}function Q(t,e){t.min+=e,t.max+=e}function as(t,e,n,s,i=.5){const o=M(t.min,t.max,i);Qe(t,e,n,o,s)}function ls(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function qt(t,e,n){const s=n??t;as(t.x,ls(e.x,s.x),e.scaleX,e.scale,e.originX),as(t.y,ls(e.y,s.y),e.scaleY,e.scale,e.originY)}function sr(t,e){return tr(Fl(t.getBoundingClientRect(),e))}function Nl(t,e,n){const s=sr(t,n),{scroll:i}=e;return i&&(Q(s.x,i.offset.x),Q(s.y,i.offset.y)),s}const Ol={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ul=At.length;function Wl(t,e,n){let s="",i=!0;for(let r=0;r<Ul;r++){const a=At[r],c=t[a];if(c===void 0)continue;let l=!0;if(typeof c=="number")l=c===(a.startsWith("scale")?1:0);else{const u=parseFloat(c);l=a.startsWith("scale")?u===1:u===0}if(!l||n){const u=qe(c,oe[a]);if(!l){i=!1;const h=Ol[a]||a;s+=`${h}(${u}) `}n&&(e[a]=u)}}const o=t.pathRotation;return o&&(i=!1,s+=`rotate(${qe(o,oe.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function En(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const l=e[c];if(Ct.has(c)){r=!0;continue}else if(gi(c)){i[c]=l;continue}else{const u=qe(l,oe[c]);c.startsWith("origin")?(a=!0,o[c]=u):s[c]=u}}if(e.transform||(r||n?s.transform=Wl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=o;s.transformOrigin=`${c} ${l} ${u}`}}function ir(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 cs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Vt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(b.test(t))t=parseFloat(t);else return t;const n=cs(t,e.target.x),s=cs(t,e.target.y);return`${n}% ${s}%`}},Kl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=X.parse(t);if(i.length>5)return s;const o=X.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=c;const l=M(a,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=l),typeof i[3+r]=="number"&&(i[3+r]/=l),o(i)}},tn={borderRadius:{...Vt,applyTo:[...Sn]},borderTopLeftRadius:Vt,borderTopRightRadius:Vt,borderBottomLeftRadius:Vt,borderBottomRightRadius:Vt,boxShadow:Kl};function rr(t,{layout:e,layoutId:n}){return Ct.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!tn[t]||t==="opacity")}function Dn(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(N(s[r])||i&&N(i[r])||rr(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function Gl(t){return window.getComputedStyle(t)}class Hl extends Qi{constructor(){super(...arguments),this.type="html",this.renderInstance=ir}readValueFromInstance(e,n){if(Ct.has(n))return this.projection?.isProjecting?Ue(n):ha(e,n);{const s=Gl(e),i=(gi(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return sr(e,n)}build(e,n,s){En(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Dn(e,n,s)}}const _l={offset:"stroke-dashoffset",array:"stroke-dasharray"},zl={offset:"strokeDashoffset",array:"strokeDasharray"};function $l(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?_l:zl;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const Yl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function or(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},c,l,u){if(En(t,a,l),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const m of Yl)h[m]!==void 0&&(d[m]=h[m],delete h[m]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&$l(h,i,o,r,!1)}const ar=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"]),lr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Xl(t,e,n,s){ir(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(ar.has(i)?i:bn(i),e.attrs[i])}function cr(t,e,n){const s=Dn(t,e,n);for(const i in t)if(N(t[i])||N(e[i])){const o=At.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class Zl extends Qi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=L}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ct.has(n)){const s=_i(n);return s&&s.default||0}return n=ar.has(n)?n:bn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return cr(e,n,s)}build(e,n,s){or(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Xl(e,n,s,i)}mount(e){this.isSVGTag=lr(e.tagName),super.mount(e)}}const ql=Mn.length;function ur(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ur(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ql;n++){const s=Mn[n],i=t.props[s];(Bt(i)||i===!1)&&(e[s]=i)}return e}function hr(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 Jl=[...Vn].reverse(),Ql=Vn.length;function tc(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Ja(t,n,s)))}function ec(t){let e=tc(t),n=us(),s=!0,i=!1;const o=l=>(u,h)=>{const d=mt(t,h,l==="exit"?t.presenceContext?.custom:void 0);if(d){const{transition:m,transitionEnd:f,...g}=d;u={...u,...g,...f}}return u};function r(l){e=l(t)}function a(l){const{props:u}=t,h=ur(t.parent)||{},d=[],m=new Set;let f={},g=1/0;for(let x=0;x<Ql;x++){const T=Jl[x],w=n[T],S=u[T]!==void 0?u[T]:h[T],C=Bt(S),D=T===l?w.isActive:null;D===!1&&(g=x);let V=S===h[T]&&S!==u[T]&&C;if(V&&(s||i)&&t.manuallyAnimateOnMount&&(V=!1),w.protectedKeys={...f},!w.isActive&&D===null||!S&&!w.prevProp||de(S)||typeof S=="boolean")continue;if(T==="exit"&&w.isActive&&D!==!0){w.prevResolvedValues&&(f={...f,...w.prevResolvedValues});continue}const A=nc(w.prevProp,S);let B=A||T===l&&w.isActive&&!V&&C||x>g&&C,P=!1;const k=Array.isArray(S)?S:[S];let W=k.reduce(o(T),{});D===!1&&(W={});const{prevResolvedValues:lt={}}=w,Z={...lt,...W},nt=F=>{B=!0,m.has(F)&&(P=!0,m.delete(F)),w.needsAnimating[F]=!0;const G=t.getValue(F);G&&(G.liveStyle=!1)};for(const F in Z){const G=W[F],ct=lt[F];if(f.hasOwnProperty(F))continue;let gt=!1;ze(G)&&ze(ct)?gt=!hr(G,ct)||A:gt=G!==ct,gt?G!=null?nt(F):m.add(F):G!==void 0&&m.has(F)?nt(F):w.protectedKeys[F]=!0}w.prevProp=S,w.prevResolvedValues=W,w.isActive&&(f={...f,...W}),(s||i)&&t.blockInitialAnimation&&(B=!1);const q=V&&A;B&&(!q||P)&&d.push(...k.map(F=>{const G={type:T};if(typeof F=="string"&&(s||i)&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:ct}=t,gt=mt(ct,F);if(ct.enteringChildren&>){const{delayChildren:Lr}=gt.transition||{};G.delay=Fi(ct.enteringChildren,t,Lr)}}return{animation:F,options:G}}))}if(m.size){const x={};if(typeof u.initial!="boolean"){const T=mt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);T&&T.transition&&(x.transition=T.transition)}m.forEach(T=>{const w=t.getBaseTarget(T),S=t.getValue(T);S&&(S.liveStyle=!0),x[T]=w??null}),d.push({animation:x})}let y=!!d.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,i=!1,y?e(d):Promise.resolve()}function c(l,u){if(n[l].isActive===u)return Promise.resolve();t.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),n[l].isActive=u;const h=a(l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:a,setActive:c,setAnimateFunction:r,getState:()=>n,reset:()=>{n=us(),i=!0}}}function nc(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!hr(e,t):!1}function ut(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function us(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}function en(t,e){t.min=e.min,t.max=e.max}function z(t,e){en(t.x,e.x),en(t.y,e.y)}function hs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const dr=1e-4,sc=1-dr,ic=1+dr,fr=.01,rc=0-fr,oc=0+fr;function U(t){return t.max-t.min}function ac(t,e,n){return Math.abs(t-e)<=n}function ds(t,e,n,s=.5){t.origin=s,t.originPoint=M(e.min,e.max,t.origin),t.scale=U(n)/U(e),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(t.scale>=sc&&t.scale<=ic||isNaN(t.scale))&&(t.scale=1),(t.translate>=rc&&t.translate<=oc||isNaN(t.translate))&&(t.translate=0)}function Rt(t,e,n,s){ds(t.x,e.x,n.x,s?s.originX:void 0),ds(t.y,e.y,n.y,s?s.originY:void 0)}function fs(t,e,n,s=0){const i=s?M(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+U(e)}function lc(t,e,n,s){fs(t.x,e.x,n.x,s?.x),fs(t.y,e.y,n.y,s?.y)}function ps(t,e,n,s=0){const i=s?M(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+U(e)}function ce(t,e,n,s){ps(t.x,e.x,n.x,s?.x),ps(t.y,e.y,n.y,s?.y)}function ms(t,e,n,s,i){return t-=e,t=le(t,1/n,s),i!==void 0&&(t=le(t,1/i,s)),t}function cc(t,e=0,n=1,s=.5,i,o=t,r=t){if(tt.test(e)&&(e=parseFloat(e),e=M(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=M(o.min,o.max,s);t===o&&(a-=e),t.min=ms(t.min,e,n,a,i),t.max=ms(t.max,e,n,a,i)}function gs(t,e,[n,s,i],o,r){cc(t,e[n],e[s],e[i],e.scale,o,r)}const uc=["x","scaleX","originX"],hc=["y","scaleY","originY"];function ys(t,e,n,s){gs(t.x,e,uc,n?n.x:void 0,s?s.x:void 0),gs(t.y,e,hc,n?n.y:void 0,s?s.y:void 0)}function xs(t){return t.translate===0&&t.scale===1}function pr(t){return xs(t.x)&&xs(t.y)}function vs(t,e){return t.min===e.min&&t.max===e.max}function dc(t,e){return vs(t.x,e.x)&&vs(t.y,e.y)}function ws(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function mr(t,e){return ws(t.x,e.x)&&ws(t.y,e.y)}function Ts(t){return U(t.x)/U(t.y)}function bs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function J(t){return[t("x"),t("y")]}function fc(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:l,rotate:u,pathRotation:h,rotateX:d,rotateY:m,skewX:f,skewY:g}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotate(${h}deg) `),d&&(s+=`rotateX(${d}deg) `),m&&(s+=`rotateY(${m}deg) `),f&&(s+=`skewX(${f}deg) `),g&&(s+=`skewY(${g}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const pc=Sn.length,Ss=t=>typeof t=="string"?parseFloat(t):t,Ps=t=>typeof t=="number"||b.test(t);function mc(t,e,n,s,i,o){i?(t.opacity=M(0,n.opacity??1,gc(s)),t.opacityExit=M(e.opacity??1,0,yc(s))):o&&(t.opacity=M(e.opacity??1,n.opacity??1,s));for(let r=0;r<pc;r++){const a=Sn[r];let c=As(e,a),l=As(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Ps(c)===Ps(l)?(t[a]=Math.max(M(Ss(c),Ss(l),s),0),(tt.test(l)||tt.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,s))}function As(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const gc=gr(0,.5,ui),yc=gr(.5,.95,_);function gr(t,e,n){return s=>s<t?0:s>e?1:n(jt(t,e,s))}function xc(t,e,n){const s=N(t)?t:St(t);return s.start(wn("",s,e,n)),s.animation}function Ft(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}const vc=(t,e)=>t.depth-e.depth;class wc{constructor(){this.children=[],this.isDirty=!1}add(e){an(this.children,e),this.isDirty=!0}remove(e){ee(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(vc),this.isDirty=!1,this.children.forEach(e)}}function Tc(t,e){const n=O.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(ot(s),t(o-e))};return E.setup(s,!0),()=>ot(s)}function Jt(t){return N(t)?t.get():t}class bc{constructor(){this.members=[]}add(e){an(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(ee(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(ee(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){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:o}=e.options;(i===void 0||i!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Qt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Pe=["","X","Y","Z"],Sc=1e3;let Pc=0;function Ae(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function yr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Wi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",E,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&yr(s)}function xr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=Pc++,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(Vc),this.nodes.forEach(jc),this.nodes.forEach(Lc),this.nodes.forEach(Mc)},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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new wc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new cn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Cn(r)&&!Ml(r),this.instance=r;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const d=()=>this.root.updateBlockedByResize=!1;E.read(()=>{h=window.innerWidth}),t(r,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,u&&u(),u=Tc(d,250),Qt.hasAnimatedSinceResize&&(Qt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ms)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const f=this.options.transition||l.getDefaultTransition()||Oc,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=l.getProps(),x=!this.targetLayout||!mr(this.targetLayout,m),T=!h&&d;if(this.options.layoutRoot||this.resumeFrom||T||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...vn(f,"layout"),onPlay:g,onComplete:y};(l.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,T,w.path)}else h||Ms(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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(),ot(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(Bc),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&&yr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(Dc),this.nodes.forEach(Cs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Vs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rc),this.nodes.forEach(kc),this.nodes.forEach(Ac),this.nodes.forEach(Cc)):this.nodes.forEach(Vs),this.clearAllSnapshots();const a=O.now();I.delta=et(0,1e3/60,a-I.timestamp),I.timestamp=a,I.isProcessing=!0,ge.update.process(I),ge.preRender.process(I),ge.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ec),this.sharedNodes.forEach(Fc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!U(this.snapshot.measuredBox.x)&&!U(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=L()),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 c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!pr(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;r&&this.instance&&(a||ht(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),Uc(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return L();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Wc))){const{scroll:l}=this.root;l&&(Q(a.x,l.offset.x),Q(a.y,l.offset.y))}return a}removeElementScroll(r){const a=L();if(z(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:u,options:h}=l;l!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&z(a,r),Q(a.x,u.offset.x),Q(a.y,u.offset.y))}return a}applyTransform(r,a=!1,c){const l=c||L();z(l,r);for(let u=0;u<this.path.length;u++){const h=this.path[u];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(Q(l.x,-h.scroll.offset.x),Q(l.y,-h.scroll.offset.y)),ht(h.latestValues)&&qt(l,h.latestValues,h.layout?.layoutBox)}return ht(this.latestValues)&&qt(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(r){const a=L();z(a,r);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!ht(l.latestValues))continue;let u;l.instance&&(Je(l.latestValues)&&l.updateSnapshot(),u=L(),z(u,l.measurePageBox())),ys(a,l.latestValues,l.snapshot?.layoutBox,u)}return ht(this.latestValues)&&ys(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=I.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=L(),this.targetWithTransforms=L()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),lc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):z(this.target,this.layout.layoutBox),nr(this.target,this.targetDelta)):z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Je(this.parent.latestValues)||er(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,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),ce(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===I.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;z(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;Il(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=L());const{target:m}=r;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hs(this.prevProjectionDelta.x,this.projectionDelta.x),hs(this.prevProjectionDelta.y,this.projectionDelta.y)),Rt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==d||
1!bs(this.projectionDelta.x,this.prevProjectionDelta.x)||!bs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}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=wt(),this.projectionDelta=wt(),this.projectionDeltaWithTransform=wt()}setAnimationOrigin(r,a=!1,c){const l=this.snapshot,u=l?l.latestValues:{},h={...this.latestValues},d=wt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const m=L(),f=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=f!==g,x=this.getStack(),T=!x||x.members.length<=1,w=!!(y&&!T&&this.options.crossfade===!0&&!this.path.some(Nc));this.animationProgress=0;let S;const C=c?.interpolateProjection(r);this.mixTargetDelta=D=>{const V=D/1e3,A=C?.(V);A?(d.x.translate=A.x,d.x.scale=M(r.x.scale,1,V),d.x.origin=r.x.origin,d.x.originPoint=r.x.originPoint,d.y.translate=A.y,d.y.scale=M(r.y.scale,1,V),d.y.origin=r.y.origin,d.y.originPoint=r.y.originPoint):(Es(d.x,r.x,V),Es(d.y,r.y,V)),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ce(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ic(this.relativeTarget,this.relativeTargetOrigin,m,V),S&&dc(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=L()),z(S,this.relativeTarget)),y&&(this.animationValues=h,mc(h,u,this.latestValues,V,w,T)),A&&A.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=A.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{Qt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=St(0)),this.motionValue.jump(0,!1),this.currentAnimation=xc(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},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(Sc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=r;if(!(!a||!c||!l)){if(this!==r&&this.layout&&l&&vr(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||L();const h=U(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const d=U(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+d}z(a,c),qt(a,u),Rt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new bc),this.sharedNodes.get(r).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.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;
vendor: 34,978 bytes, line 1
1return 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:c}={}){const l=this.getStack();l&&l.promote(this,c),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:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Ae("z",r,l,this.animationValues);for(let u=0;u<Pe.length;u++)Ae(`rotate${Pe[u]}`,r,l,this.animationValues),Ae(`skew${Pe[u]}`,r,l,this.animationValues);r.render();for(const u in l)r.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Jt(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Jt(a?.pointerEvents)||""),this.hasProjected&&!ht(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let h=fc(this.projectionDeltaWithTransform,this.treeScale,u);c&&(h=c(u,h)),r.transform=h;const{x:d,y:m}=this.projectionDelta;r.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,l.animationValues?r.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const f in tn){if(u[f]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:x}=tn[f],T=h==="none"?u[f]:g(u[f],l);if(y){const w=y.length;for(let S=0;S<w;S++)r[y[S]]=T}else x?this.options.visualElement.renderState.vars[f]=T:r[f]=T}this.options.layoutId&&(r.pointerEvents=l===this?Jt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Cs),this.root.sharedNodes.clear()}}}function Ac(t){t.updateLayout()}function Cc(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;if(i==="size")J(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],d=U(h);h.min=n[u].min,h.max=h.min+d});else if(i==="x"||i==="y"){const u=i==="x"?"y":"x";en(o?e.measuredBox[u]:e.layoutBox[u],n[u])}else vr(i,e.layoutBox,n)&&J(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],d=U(n[u]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+d)});const r=wt();Rt(r,n,e.layoutBox);const a=wt();o?Rt(a,t.applyTransform(s,!0),e.measuredBox):Rt(a,n,e.layoutBox);const c=!pr(r);let l=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:d}=u;if(h&&d){const m=t.options.layoutAnchor||void 0,f=L();ce(f,e.layoutBox,h.layoutBox,m);const g=L();ce(g,n,d.layoutBox,m),mr(f,g)||(l=!0),u.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=f,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Vc(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 Mc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ec(t){t.clearSnapshot()}function Cs(t){t.clearMeasurements()}function Dc(t){t.isLayoutDirty=!0,t.updateLayout()}function Vs(t){t.isLayoutDirty=!1}function Rc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function kc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ms(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function jc(t){t.resolveTargetDelta()}function Lc(t){t.calcProjection()}function Bc(t){t.resetSkewAndRotation()}function Fc(t){t.removeLeadSnapshot()}function Es(t,e,n){t.translate=M(e.translate,0,n),t.scale=M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ds(t,e,n,s){t.min=M(e.min,n.min,s),t.max=M(e.max,n.max,s)}function Ic(t,e,n,s){Ds(t.x,e.x,n.x,s),Ds(t.y,e.y,n.y,s)}function Nc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Oc={duration:.45,ease:[.4,0,.1,1]},Rs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ks=Rs("applewebkit/")&&!Rs("chrome/")?Math.round:_;function js(t){t.min=ks(t.min),t.max=ks(t.max)}function Uc(t){js(t.x),js(t.y)}function vr(t,e,n){return t==="position"||t==="preserve-aspect"&&!ac(Ts(e),Ts(n),.2)}function Wc(t){return t!==t.root&&t.scroll?.wasRoot}const Kc=xr({attachResizeListener:(t,e)=>Ft(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ce={current:void 0},wr=xr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ce.current){const t=new Kc({});t.mount(window),t.setOptions({layoutScroll:!0}),Ce.current=t}return Ce.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Tr=v.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Gc(t=!0){const e=v.useContext(on);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=v.useId();v.useEffect(()=>{if(t)return i(o)},[t]);const r=v.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const br=v.createContext({strict:!1}),Ls={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 Bs=!1;function Hc(){if(Bs)return;const t={};for(const e in Ls)t[e]={isEnabled:n=>Ls[e].some(s=>!!n[s])};Ji(t),Bs=!0}function Sr(){return Hc(),jl()}function _c(t){const e=Sr();for(const n in t)e[n]={...e[n],...t[n]};Ji(e)}const zc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ue(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||zc.has(t)}let Pr=t=>!ue(t);function $c(t){typeof t=="function"&&(Pr=e=>e.startsWith("on")?!ue(e):t(e))}try{$c(require("@emotion/is-prop-valid").default)}catch{}function Yc(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||N(t[i])||(Pr(i)||n===!0&&ue(i)||!e&&!ue(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const pe=v.createContext({});function Xc(t,e){if(fe(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Bt(n)?n:void 0,animate:Bt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Zc(t){const{initial:e,animate:n}=Xc(t,v.useContext(pe));return v.useMemo(()=>({initial:e,animate:n}),[Fs(e),Fs(n)])}function Fs(t){return Array.isArray(t)?t.join(" "):t}const Rn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ar(t,e,n){for(const s in e)!N(e[s])&&!rr(s,n)&&(t[s]=e[s])}function qc({transformTemplate:t},e){return v.useMemo(()=>{const n=Rn();return En(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Jc(t,e){const n=t.style||{},s={};return Ar(s,n,t),Object.assign(s,qc(t,e)),s}function Qc(t,e){const n={},s=Jc(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 Cr=()=>({...Rn(),attrs:{}});function tu(t,e,n,s){const i=v.useMemo(()=>{const o=Cr();return or(o,e,lr(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ar(o,t.style,t),i.style={...o,...i.style}}return i}const eu=["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 kn(t){return typeof t!="string"||t.includes("-")?!1:!!(eu.indexOf(t)>-1||/[A-Z]/u.test(t))}function nu(t,e,n,{latestValues:s},i,o=!1,r){const c=(r??kn(t)?tu:Qc)(e,s,i,t),l=Yc(e,typeof t=="string",o),u=t!==v.Fragment?{...l,...c,ref:n}:{},{children:h}=e,d=v.useMemo(()=>N(h)?h.get():h,[h]);return v.createElement(t,{...u,children:d})}function su({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:iu(n,s,i,t),renderState:e()}}function iu(t,e,n,s){const i={},o=s(t,{});for(const d in o)i[d]=Jt(o[d]);let{initial:r,animate:a}=t;const c=fe(t),l=qi(t);e&&l&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;if(h&&typeof h!="boolean"&&!de(h)){const d=Array.isArray(h)?h:[h];for(let m=0;m<d.length;m++){const f=Tn(t,d[m]);if(f){const{transitionEnd:g,transition:y,...x}=f;for(const T in x){let w=x[T];if(Array.isArray(w)){const S=u?w.length-1:0;w=w[S]}w!==null&&(i[T]=w)}for(const T in g)i[T]=g[T]}}}return i}const Vr=t=>(e,n)=>{const s=v.useContext(pe),i=v.useContext(on),o=()=>su(t,e,s,i);return n?o():so(o)},ru=Vr({scrapeMotionValuesFromProps:Dn,createRenderState:Rn}),ou=Vr({scrapeMotionValuesFromProps:cr,createRenderState:Cr}),au=Symbol.for("motionComponentSymbol");function lu(t,e,n){const s=v.useRef(n);v.useInsertionEffect(()=>{s.current=n});const i=v.useRef(null);return v.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 Mr=v.createContext({});function yt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function cu(t,e,n,s,i,o){const{visualElement:r}=v.useContext(pe),a=v.useContext(br),c=v.useContext(on),l=v.useContext(Tr),u=l.reducedMotion,h=l.skipAnimations,d=v.useRef(null),m=v.useRef(!1);s=s||a.renderer,!d.current&&s&&(d.current=s(t,{visualState:e,parent:r,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:o}),m.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const f=d.current,g=v.useContext(Mr);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&uu(d.current,n,i,g);const y=v.useRef(!1);v.useInsertionEffect(()=>{f&&y.current&&f.update(n,c)});const x=n[Ui],T=v.useRef(!!x&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return ro(()=>{m.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),T.current&&f.animationState&&f.animationState.animateChanges())}),v.useEffect(()=>{f&&(!T.current&&f.animationState&&f.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),T.current=!1),f.enteringChildren=void 0)}),f}function uu(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Er(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&yt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Er(t){if(t)return t.options.allowProjection!==!1?t.projection:Er(t.parent)}function Ve(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&_c(s);const o=n?n==="svg":kn(t),r=o?ou:ru;function a(l,u){let h;const d={...v.useContext(Tr),...l,layoutId:hu(l)},{isStatic:m}=d,f=Zc(l),g=r(l,m);if(!m&&typeof window<"u"){du();const y=fu(d);h=y.MeasureLayout,f.visualElement=cu(t,g,d,i,y.ProjectionNode,o)}return p.jsxs(pe.Provider,{value:f,children:[h&&f.visualElement?p.jsx(h,{visualElement:f.visualElement,...d}):null,nu(t,l,lu(g,f.visualElement,u),g,m,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=v.forwardRef(a);return c[au]=t,c}function hu({layoutId:t}){const e=v.useContext(Js).id;return e&&t!==void 0?e+"-"+t:t}function du(t,e){v.useContext(br).strict}function fu(t){const e=Sr(),{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 pu(t,e){if(typeof Proxy>"u")return Ve;const n=new Map,s=(o,r)=>Ve(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,Ve(r,void 0,t,e)),n.get(r))})}const mu=(t,e)=>e.isSVG??kn(t)?new Zl(e):new Hl(e,{allowProjection:t!==v.Fragment});class gu extends at{constructor(e){super(e),e.animationState||(e.animationState=ec(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();de(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 yu=0;class xu extends at{constructor(){super(...arguments),this.id=yu++,this.isExitComplete=!1}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;if(e&&s===!1){if(this.isExitComplete){const{initial:o,custom:r}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const a=mt(this.node,o,r);if(a){const{transition:c,transitionEnd:l,...u}=a;for(const h in u)this.node.getValue(h)?.jump(u[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const vu={animation:{Feature:gu},exit:{Feature:xu}};function Wt(t){return{point:{x:t.pageX,y:t.pageY}}}const wu=t=>e=>An(e)&&t(e,Wt(e));function kt(t,e,n,s){return Ft(t,e,wu(n),s)}const Dr=({current:t})=>t?t.ownerDocument.defaultView:null,Is=(t,e)=>Math.abs(t-e);function Tu(t,e){const n=Is(t.x,e.x),s=Is(t.y,e.y);return Math.sqrt(n**2+s**2)}const Ns=new Set(["auto","scroll"]);class Rr{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.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ht(this.lastRawMoveEventInfo,this.transformPagePoint));const f=Me(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=Tu(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:x}=f,{timestamp:T}=I;this.history.push({...x,timestamp:T});const{onStart:w,onMove:S}=this.handlers;g||(w&&w(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,f)},this.handlePointerMove=(f,g)=>{this.lastMoveEvent=f,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=Ht(g,this.transformPagePoint),E.update(this.updatePoint,!0)},this.handlePointerUp=(f,g)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Me(f.type==="pointercancel"?this.lastMoveEventInfo:Ht(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,w),x&&x(f,w)},!An(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const c=Wt(e),l=Ht(c,this.transformPagePoint),{point:u}=l,{timestamp:h}=I;this.history=[{...u,timestamp:h}];const{onSessionStart:d}=n;d&&d(e,Me(l,this.history));const m={passive:!0,capture:!0};this.removeListeners=Nt(kt(this.contextWindow,"pointermove",this.handlePointerMove,m),kt(this.contextWindow,"pointerup",this.handlePointerUp,m),kt(this.contextWindow,"pointercancel",this.handlePointerUp,m)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Ns.has(s.overflowX)||Ns.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}),window.addEventListener("scroll",this.onWindowScroll),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),E.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ot(this.updatePoint)}}function Ht(t,e){return e?{point:e(t.point)}:t}function Os(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Me({point:t},e){return{point:t,delta:Os(t,kr(e)),offset:Os(t,bu(e)),velocity:Su(e,.1)}}function bu(t){return t[0]}function kr(t){return t[t.length-1]}function Su(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=kr(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>K(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>K(e)*2&&(s=t[1]);const o=H(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 Pu(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?M(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?M(n,t,s.max):Math.min(t,n)),t}function Us(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 Au(t,{top:e,left:n,bottom:s,right:i}){return{x:Us(t.x,n,i),y:Us(t.y,e,s)}}function Ws(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 Cu(t,e){return{x:Ws(t.x,e.x),y:Ws(t.y,e.y)}}function Vu(t,e){let n=.5;const s=U(t),i=U(e);return i>s?n=jt(e.min,e.max-s,t.min):s>i&&(n=jt(t.min,t.max-i,e.min)),et(0,1,n)}function Mu(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 nn=.35;function Eu(t=nn){return t===!1?t=0:t===!0&&(t=nn),{x:Ks(t,"left","right"),y:Ks(t,"top","bottom")}}function Ks(t,e,n){return{min:Gs(t,e),max:Gs(t,n)}}function Gs(t,e){return typeof t=="number"?t:t[e]||0}const Du=new WeakMap;class Ru{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=L(),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.snapToCursor(Wt(h).point),this.stopAnimation()},r=(h,d)=>{const{drag:m,dragPropagation:f,onDragStart:g}=this.getProps();if(m&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hl(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),J(x=>{let T=this.getAxisMotionValue(x).get()||0;if(tt.test(T)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[x];S&&(T=U(S)*(parseFloat(T)/100))}}this.originPoint[x]=T}),g&&E.update(()=>g(h,d),!1,!0),$e(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:m,dragDirectionLock:f,onDirectionLock:g,onDrag:y}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:x}=d;if(f&&this.currentDirection===null){this.currentDirection=ju(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),y&&E.update(()=>y(h,d),!1,!0)},c=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Rr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Dr(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&&E.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!_t(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Pu(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&&yt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Au(s.layoutBox,e):this.constraints=!1,this.elastic=Eu(n),i!==this.constraints&&!yt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&J(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Mu(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!yt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const o=Nl(s,i.root,this.visualElement.getTransformPagePoint());let r=Cu(i.layout.layoutBox,o);if(n){const a=n(Bl(r));this.hasMutatedConstraints=!!a,a&&(r=tr(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=J(u=>{if(!_t(u,n,this.currentDirection))return;let h=c&&c[u]||{};(r===!0||r===u)&&(h={min:0,max:0});const d=i?200:1e6,m=i?40:1e7,f={type:"inertia",velocity:s?e[u]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,f)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return $e(this.visualElement,e),s.start(wn(e,s,0,n,this.visualElement,!1))}stopAnimation(){J(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){J(n=>{const{drag:s}=this.getProps();if(!_t(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],c=o.get()||0;o.set(e[n]-M(r,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!yt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};J(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();i[r]=Vu({min:c,max:c},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.constraints=!1,this.resolveConstraints(),J(r=>{if(!_t(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:l}=this.constraints[r];a.set(M(c,l,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Du.set(this.visualElement,this);const e=this.visualElement.current,n=kt(e,"pointerdown",l=>{const{drag:u,dragListener:h=!0}=this.getProps(),d=l.target,m=d!==e&&yl(d);u&&h&&!m&&this.start(l)});let s;const i=()=>{const{dragConstraints:l}=this.getProps();yt(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),s||(s=ku(e,l.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),E.read(i);const a=Ft(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(J(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=l[h].translate,d.set(d.get()+l[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),r(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=nn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Hs(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function ku(t,e,n){const s=Qn(t,Hs(n)),i=Qn(e,Hs(n));return()=>{s(),i()}}function _t(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ju(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Lu extends at{constructor(e){super(e),this.removeGroupControls=_,this.removeListeners=_,this.controls=new Ru(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ee=t=>(e,n)=>{t&&E.update(()=>t(e,n),!1,!0)};class Bu extends at{constructor(){super(...arguments),this.removePointerDownListener=_}onPointerDown(e){this.session=new Rr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Dr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ee(e),onStart:Ee(n),onMove:Ee(s),onEnd:(o,r)=>{delete this.session,i&&E.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=kt(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 De=!1;class Fu extends v.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),De&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Qt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),De=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||E.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),Pn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;De=!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 jr(t){const[e,n]=Gc(),s=v.useContext(Js);return p.jsx(Fu,{...t,layoutGroup:s,switchLayoutGroup:v.useContext(Mr),isPresent:e,safeToRemove:n})}const Iu={pan:{Feature:Bu},drag:{Feature:Lu,ProjectionNode:wr,MeasureLayout:jr}};function _s(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&&E.postRender(()=>o(e,Wt(e)))}class Nu extends at{mount(){const{current:e}=this.node;e&&(this.unmount=fl(e,(n,s)=>(_s(this.node,s,"Start"),i=>_s(this.node,i,"End"))))}unmount(){}}class Ou extends at{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=Nt(Ft(this.node.current,"focus",()=>this.onFocus()),Ft(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zs(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&&E.postRender(()=>o(e,Wt(e)))}class Uu extends at{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=vl(e,(i,o)=>(zs(this.node,o,"Start"),(r,{success:a})=>zs(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const sn=new WeakMap,Re=new WeakMap,Wu=t=>{const e=sn.get(t.target);e&&e(t)},Ku=t=>{t.forEach(Wu)};function Gu({root:t,...e}){const n=t||document;Re.has(n)||Re.set(n,{});const s=Re.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Ku,{root:t,...e})),s[i]}function Hu(t,e,n){const s=Gu(e);return sn.set(t,n),s.observe(t),()=>{sn.delete(t),s.unobserve(t)}}const _u={some:0,all:1};class zu extends at{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();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:_u[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=l?u:h;d&&d(c)};this.stopObserver=Hu(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($u(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function $u({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Yu={inView:{Feature:zu},tap:{Feature:Uu},focus:{Feature:Ou},hover:{Feature:Nu}},Xu={layout:{ProjectionNode:wr,MeasureLayout:jr}},Zu={...vu,...Yu,...Iu,...Xu},qu=pu(Zu,mu);function Ju(){const[t,e]=v.useState(!1);return v.useEffect(()=>{const n=()=>e(window.scrollY>24);return n(),window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]),p.jsx("header",{className:Zs("sticky top-0 z-50 w-full border-b bg-lp3-paper/85 backdrop-blur-xl transition-colors duration-300",t?"border-lp3-line":"border-transparent"),children:p.jsxs("nav",{className:"mx-auto flex h-16 w-full max-w-6xl items-center justify-between px-5 sm:px-8",children:[p.jsxs("a",{href:"https://withgems.com/",className:"flex items-center gap-2.5",children:[p.jsx("span",{className:"logo-mask h-7 w-7 text-lp3-ink"}),p.jsx("span",{className:"font-cooper text-xl leading-none text-lp3-ink",children:"Gems"})]}),p.jsx(te,{href:rn,target:"_blank",rel:"noopener",children:"Request a demo"})]})})}function Qu(){const t=Nr(),e=n=>({initial:t?!1:{opacity:0,y:28}
1,animate:{opacity:1,y:0},transition:{duration:.8,delay:n,ease:[.21,.47,.32,.98]}});return p.jsx("section",{className:"relative overflow-hidden px-5 pb-16 pt-14 sm:px-8 sm:pb-20 sm:pt-20",children:p.jsx("div",{className:"relative mx-auto w-full max-w-4xl text-center",children:p.jsxs(qu.div,{...e(0),children:[p.jsx("p",{className:"text-[13px] font-bold tracking-wide text-lp3-orange-deep uppercase",children:"Case study · Meta Partnership Ads"}),p.jsxs("h1",{className:"font-cooper mx-auto mt-7 max-w-[24ch] text-5xl leading-[1.08] tracking-tight text-balance sm:text-6xl",children:["How ",Y.clientLabel," cut its CPA by"," ",p.jsx("span",{className:"whitespace-nowrap text-secondary",children:"3 to 5x"})," with creator ads"]}),p.jsx("p",{className:"mx-auto mt-5 max-w-[52ch] text-base text-lp3-muted sm:text-lg",children:"Ads run from physician creators' own accounts, sourced, contracted, and launched by Gems. First in Italy, now in seven countries."}),p.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[p.jsxs(te,{href:rn,target:"_blank",rel:"noopener",size:"lg",children:["Launch your campaign",p.jsx(qs,{className:"h-4 w-4","aria-hidden":!0})]}),p.jsx(te,{href:"#creators",variant:"ghost",size:"lg",children:"See the creators"})]})]})})})}function me({children:t,className:e}){return p.jsx("span",{className:Zs("flex items-center gap-2.5 text-[13px] font-bold tracking-wide text-lp3-orange-deep uppercase after:h-px after:w-9 after:bg-secondary",e),children:t})}function th(){return p.jsx(It,{id:"problem",className:"pb-16 sm:pb-26",children:p.jsxs(Tt,{className:"max-w-3xl",children:[p.jsx(me,{className:"mb-8",children:"01 · The starting point"}),p.jsxs("figure",{children:[p.jsx("span",{className:"font-cooper block text-6xl leading-[0.5] text-secondary","aria-hidden":!0,children:"â"}),p.jsx("blockquote",{className:"font-cooper mt-4 text-2xl leading-[1.25] tracking-tight text-balance sm:text-[2rem]",children:Y.problemQuote}),p.jsxs("figcaption",{className:"mt-6 flex items-center gap-3.5",children:[p.jsx("img",{src:Y.spokespersonPhotoUrl,alt:Y.spokespersonName,className:"h-11 w-11 shrink-0 rounded-full object-cover"}),p.jsxs("span",{className:"text-sm leading-snug",children:[p.jsx("span",{className:"block font-semibold",children:Y.spokespersonName}),p.jsx("span",{className:"text-[13px] text-lp3-muted",children:Y.spokespersonTitle})]})]})]})]})})}const eh=[{value:"+43%",label:"click-through rate vs. classic ads"},{value:"1.5M+",label:"plays on the featured creators' ads alone"},{value:"30h",label:"saved per campaign vs. running it in-house"},{value:"15 days",label:"from kickoff to first ad live"},{value:"7 countries",label:"running the same playbook"}];function nh(){return p.jsx(It,{id:"results",className:"pb-16 sm:pb-26",children:p.jsxs(Tt,{className:"rounded-[36px] bg-lp3-surface px-6 py-12 sm:px-14 sm:py-16",children:[p.jsx(me,{className:"mb-8",children:"02 · The results"}),p.jsxs("div",{className:"grid items-start gap-10 md:grid-cols-[auto_1fr] md:gap-16",children:[p.jsxs("div",{children:[p.jsx("span",{className:"font-cooper block text-[6rem] leading-none text-secondary sm:text-[8rem]",children:"3-5x"}),p.jsx("span",{className:"mt-2 block max-w-[24ch] text-[13.5px] font-medium text-lp3-muted",children:"lower CPA than the client's classic Meta campaigns, depending on the market"})]}),p.jsx("div",{className:"grid grid-cols-1 gap-x-10 gap-y-7 border-t border-lp3-line pt-7 sm:grid-cols-2 md:border-t-0 md:border-l md:pt-0 md:pl-16",children:eh.map(t=>p.jsxs("div",{className:"border-t border-lp3-line pt-4 first:border-t-0 sm:[&:nth-child(2)]:border-t-0",children:[p.jsx("span",{className:"font-cooper block text-3xl leading-tight text-lp3-ink sm:text-4xl",children:t.value}),p.jsx("span",{className:"mt-1.5 block text-[13.5px] text-lp3-muted",children:t.label})]},t.label))})]})]})})}function sh(){return p.jsxs(It,{id:"creators",className:"pb-16 sm:pb-26",children:[p.jsxs(Tt,{children:[p.jsx(me,{className:"mb-5",children:"03 · The creators and the ads"}),p.jsx(Or,{title:"Real doctors, real ads.",sub:"The ads ran from the creators' own accounts as Meta Partnership Ads, in each local market. Profiles and full videos stay private at the client's request.",className:"mb-10 sm:mb-14"})]}),p.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-4",children:Hr.map((t,e)=>p.jsxs(Tt,{delay:e*.08,className:"overflow-hidden rounded-3xl border border-lp3-line bg-white shadow-[0_18px_40px_-18px_rgba(43,18,7,0.18)]",children:[p.jsxs("div",{className:"relative",children:[p.jsx("img",{src:t.still,alt:"",loading:"lazy",className:"aspect-[9/16] w-full object-cover select-none",draggable:!1}),p.jsxs("span",{className:"pointer-events-none absolute left-3 top-3 rounded-full bg-lp3-ink/80 px-2.5 py-1 text-[11px] font-semibold text-lp3-paper backdrop-blur",children:[t.plays," plays"]}),p.jsx("span",{className:"pointer-events-none absolute right-3 top-3 rounded-full bg-white/85 px-2 py-1 text-[13px] backdrop-blur","aria-label":t.market,children:t.flag})]}),p.jsxs("div",{className:"flex items-center gap-3 px-4 py-3.5",children:[p.jsx("img",{src:t.avatar,alt:"",className:"h-9 w-9 shrink-0 rounded-full object-cover"}),p.jsxs("span",{className:"min-w-0 flex-1 leading-snug",children:[p.jsx("span",{className:"block truncate text-[13.5px] font-semibold text-lp3-ink",children:t.market}),p.jsxs("span",{className:"block truncate text-[12.5px] text-lp3-muted",children:[t.followers," followers"]})]})]})]},t.id))})]})}const ih=[{icon:zr,title:"Automated end to end",text:"Sourcing, negotiation, contracts, payments, whitelisting: Gems runs the ops."},{icon:no,title:"Relevant creator matching",text:"Creators matched on audie
1nce and performance data, instead of an expensive bet on intuition."},{icon:Yr,title:"Centralized tracking",text:"Every creator, content, and ad tracked in one place, across the entire campaign."},{icon:Zr,title:"Clear visibility on results",text:"See what actually drove results, per creator and per ad."},{icon:Jr,title:"Live in days",text:"15 days from kickoff to the first ad live. New markets reuse the same playbook."},{icon:to,title:"Keep control",text:"You validate creators and content. Ads run in your ad account, on your audiences."}];function rh(){return p.jsx(It,{id:"why-gems",className:"pb-16 sm:pb-26",children:p.jsxs(Tt,{className:"rounded-[36px] bg-lp3-ink px-6 py-12 text-lp3-paper sm:px-14 sm:py-16",children:[p.jsx(me,{className:"mb-5 !text-secondary after:bg-secondary",children:"04 · Why Gems"}),p.jsx("h2",{className:"font-cooper max-w-2xl text-4xl leading-[1.12] tracking-tight text-balance sm:text-5xl",children:"One platform runs the whole thing."}),p.jsx("div",{className:"mt-10 grid gap-x-12 gap-y-9 sm:mt-14 sm:grid-cols-2 lg:grid-cols-3",children:ih.map(t=>p.jsxs("div",{className:"border-t border-lp3-paper/22 pt-5",children:[p.jsxs("span",{className:"flex items-center gap-2.5",children:[p.jsx(t.icon,{className:"h-5 w-5 shrink-0 text-secondary","aria-hidden":!0}),p.jsx("h3",{className:"font-cooper text-xl tracking-tight sm:text-2xl",children:t.title})]}),p.jsx("p",{className:"mt-2.5 max-w-md text-[15px] leading-relaxed text-lp3-paper/75",children:t.text})]},t.title))})]})})}const oh=[{label:"Terms of service",href:"/terms/brands"},{label:"Privacy policy",href:"/privacy-policy"},{label:"Data deletion",href:"/data-deletion"},{label:"LinkedIn",href:Kr},{label:"Contact",href:"mailto:[email protected]"}];function ah(){return p.jsxs(p.Fragment,{children:[p.jsx(It,{className:"pb-20 sm:pb-24",children:p.jsxs(Tt,{className:"mx-auto max-w-3xl text-center",children:[p.jsxs("blockquote",{className:"font-cooper text-2xl leading-[1.25] tracking-tight text-balance sm:text-[2rem]",children:["â",Y.finalQuote,"â"]}),p.jsxs("figcaption",{className:"mt-7 flex flex-wrap items-center justify-center gap-x-3.5 gap-y-2 text-sm",children:[p.jsx("img",{src:Y.spokespersonPhotoUrl,alt:Y.spokespersonName,className:"h-11 w-11 shrink-0 rounded-full object-cover"}),p.jsxs("span",{className:"text-left leading-snug",children:[p.jsx("span",{className:"block font-semibold",children:Y.spokespersonName}),p.jsx("span",{className:"text-[13px] text-lp3-muted",children:Y.spokespersonTitle})]})]}),p.jsx("div",{className:"mt-12",children:p.jsxs(te,{href:rn,target:"_blank",rel:"noopener",size:"lg",children:["Launch your campaign with Gems",p.jsx(qs,{className:"h-4 w-4","aria-hidden":!0})]})})]})}),p.jsx("footer",{className:"border-t border-lp3-line px-5 py-12 sm:px-8",children:p.jsxs("div",{className:"mx-auto flex w-full max-w-6xl flex-wrap items-start justify-between gap-8",children:[p.jsxs("a",{href:"https://withgems.com/",className:"flex items-center gap-2.5",children:[p.jsx("span",{className:"logo-mask h-6.5 w-6.5 text-lp3-ink"}),p.jsx("span",{className:"font-cooper text-lg leading-none text-lp3-ink",children:"Gems"})]}),p.jsx("ul",{className:"flex flex-wrap gap-6",children:oh.map(t=>p.jsx("li",{children:p.jsx("a",{href:t.href,className:"text-[13.5px] text-lp3-muted hover:text-lp3-ink",children:t.label})},t.label))}),p.jsx("div",{className:"w-full text-[12.5px] text-lp3-muted",children:"© 2026 Gems. All rights reserved."})]})})]})}const $s="/og/case-study.png",ke="/case-studies/healthtech-app",je="How a healthtech app cut its CPA by 3-5x with creator ads | Gems case study",Ys="A healthtech app runs ads through physician creators' own accounts with Gems. CPA cut by 3 to 5x vs classic Meta campaigns, live in 15 days, scaled across 7 countries.";function lh(){return p.jsxs(p.Fragment,{children:[p.jsx(Gr,{path:ke,title:je,description:Ys,image:$s,type:"article",jsonLd:[Ur(je,ke),Wr({path:ke,title:je,description:Ys,image:$s})]}),p.jsxs("div",{className:"min-h-screen bg-lp3-paper font-sans text-lp3-ink antialiased selection:bg-secondary/20",children:[p.jsx(Ju,{}),p.jsxs("main",{children:[p.jsx(Qu,{}),p.jsx(th,{}),p.jsx(nh,{}),p.jsx(sh,{}),p.jsx(rh,{}),p.jsx(ah,{})]})]})]})}
1lh.displayName="CaseStudyPage";export{lh as Component};
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.