import{t as e}from"./rolldown-runtime.Dh6celcD.mjs";import{A as t,B as n,C as r,E as i,F as a,I as o,L as s,M as c,N as l,P as u,R as d,S as f,T as p,V as m,_ as h,a as g,b as _,c as v,d as y,f as b,g as x,i as S,j as C,k as w,l as T,m as E,o as D,p as O,s as k,u as ee,v as A,w as j,x as te,y as ne,z as re}from"./react.DOKkFWbx.mjs";import{$ as ie,A as ae,B as oe,C as M,D as se,E as ce,F as le,G as ue,H as de,I as fe,J as pe,L as me,M as he,O as ge,Q as _e,R as ve,S as N,T as ye,U as be,V as xe,W as P,X as Se,Y as F,Z as Ce,_ as we,a as Te,b as Ee,c as De,d as Oe,et as ke,f as Ae,g as je,h as I,i as Me,j as Ne,k as Pe,l as Fe,m as Ie,n as Le,o as Re,p as ze,q as Be,r as Ve,s as He,u as Ue,v as We,w as Ge,x as Ke,y as qe}from"./motion.uQdjgbkC.mjs";function Je(e){return typeof e==`function`}function Ye(e){return typeof e==`boolean`}function L(e){return typeof e==`string`}function R(e){return Number.isFinite(e)}function Xe(e){return Array.isArray(e)}function z(e){return typeof e==`object`&&!!e&&!Xe(e)}function Ze(e){for(let t in e)return!1;return!0}function B(e){return e===void 0}function Qe(e){return e===null}function $e(e){return e==null}function et(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function tt(e){return z(e)&&Je(e.return)}function nt(e){return z(e)&&Je(e.then)}function rt(e){return e instanceof Promise}function it(e){return`url('${at(e)}')`}function at(e){return`data:image/svg+xml,${e.replaceAll(`#`,`%23`).replaceAll(`'`,`%27`).replaceAll(`"`,`%22`)}`}function ot(e,t){let n=t instanceof Error?t.stack??t.message:t;return`${e?`${e} `:``}In case the issue persists, report this to the Framer team via https://www.framer.com/contact/${n?`: ${n}`:`.`}`}function st(e,t,n){if(Gg.has(e))return;let r=Promise.resolve().then(t).then(t=>(Gg.set(e,t),t)).catch(t=>{throw Gg.delete(e),console.warn(`Failed to preload lazy module from ${n}`,t),t});r.catch(Lg),Gg.set(e,r)}function ct(e,t){Rg&&(Kg.set(e,t),qg.has(e)&&st(e,t,`registered loader ${e}`))}function lt(){if(!Rg)return;let e=document.querySelectorAll(`[rel="modulepreload"][data-framer-lazy]`);for(let t of e){let e=t.getAttribute(`data-framer-lazy`),n=t.getAttribute(`href`);if(!e||!n)continue;let r=e.startsWith(Jg),i=r?e.slice(Jg.length):e;if(!i)continue;qg.add(i);let a=Kg.get(i);a?st(i,a,`registered loader ${i}`):r&&st(i,()=>import(n),n)}}function ut(e){return typeof e==`object`&&!!e&&!O(e)&&Xg in e}function dt(e,t){if(t in e)return e[t];throw Error(`Module does not contain export '${t}'`)}function ft(e,t=`default`,n){n&&ct(n,e);let r,i,o,s=()=>{if(i||!n||!Gg.has(n))return;let e=Gg.get(n);rt(e)?c(()=>e):i=dt(e,t)},c=e=>i?Promise.resolve(i):(r||=e().then(e=>{let n=dt(e,t);return i=n,n}).catch(e=>{o=e}),r),l=!1,u=h(function(t,r){if(a(()=>{l=!0},[]),o)throw o;if(s(),n!==void 0&&Yg!==void 0&&Yg.add(n),!i)throw c(e);return T(i,{ref:r,...t})});return u.preload=()=>(s(),c(e)),u.getStatus=()=>({hasLoaded:i!==void 0,hasRendered:l}),u}function pt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function mt(e){return e===null||!(Qg in e)?!1:typeof e.equals==`function`}function ht(e,t){return e===t||e!==e&&t!==t}function gt(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!ht(e[r],t[r]))return!1;return!0}function _t(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Ct(e[r],t[r],!0))return!1;return!0}function vt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!ht(r,t.get(n)))return!1;return!0}function yt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!Ct(r,t.get(n),!0))return!1;return!0}function bt(e,t){if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n))return!1;return!0}function xt(e,t){let n=Zg(e);if(n.length!==Zg(t).length)return!1;for(let r of n)if(!pt(t,r)||!(r===`_owner`&&pt(e,`$$typeof`)&&e.$$typeof)&&!ht(e[r],t[r]))return!1;return!0}function St(e,t){let n=Zg(e);if(n.length!==Zg(t).length)return!1;for(let r of n)if(!pt(t,r)||!(r===`_owner`&&pt(e,`$$typeof`)&&e.$$typeof)&&!Ct(e[r],t[r],!0))return!1;return!0}function Ct(e,t,n){if(e===t)return!0;if(!e||!t)return e!==e&&t!==t;let r=typeof e;if(r!==typeof t||r!==`object`)return!1;let i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return n?_t(e,t):gt(e,t);if(i!==a)return!1;let o=e instanceof Map,s=t instanceof Map;if(o&&s)return n?yt(e,t):vt(e,t);if(o!==s)return!1;let c=e instanceof Set,l=t instanceof Set;if(c&&l)return bt(e,t);if(c!==l)return!1;let u=e instanceof Date,d=t instanceof Date;if(u&&d)return e.getTime()===t.getTime();if(u!==d)return!1;let f=e instanceof RegExp,p=t instanceof RegExp;return f&&p?e.toString()===t.toString():f===p?mt(e)&&mt(t)?e.equals(t):n?St(e,t):xt(e,t):!1}function wt(e,t,n=!0){try{return Ct(e,t,n)}catch(e){if(e instanceof Error&&/stack|recursion/iu.exec(e.message))return console.warn(`Warning: isEqual does not handle circular references.`,e.name,e.message),!1;throw e}}function Tt(e){return f.useCallback(t=>e[t],[e])}function Et({api:e,children:t}){return T($g.Provider,{value:e,children:t})}function Dt(){return f.useContext($g)}function Ot({routes:e,children:t}){let n=Tt(e),r=l(()=>({getRoute:n}),[n]);return T($g.Provider,{value:r,children:t})}function kt(){let e=Dt(),t=c(e_),n=t?.routeId??e.currentRouteId,r=t?.routeId?t.pathVariables:e.currentPathVariables,i=n?e.getRoute?.(n):void 0;return l(()=>{if(!(!n||!i))return{...i,id:n,pathVariables:r}},[n,r,i])}function At(){let e=kt();if(e)return`${e.id}-${JSON.stringify(e.pathVariables)}`}function jt(e){let t=kt(),n=f.useRef(t);wt(n.current,t)||!t||(n.current=t,e(t))}function Mt(e){let t=Dt();if(e)return t.getRoute?.(e)}function Nt(e,t){if(t&&e)return e.elements&&t in e.elements?e.elements[t]:t}function Pt(e){let t=[`pointerdown`,`pointerup`,`keydown`,`keyup`],n=e=>{let n=e.type;t.includes(n)&&performance.mark(`framer-navigation-input`,{detail:{type:n}})};for(let r=0;r{for(let e=0;er?Nt(r,e):e,[e,r])}function It(){return kt()?.pathVariables}function V(e,t){if(e)return;if(typeof t==`function`)try{t=t()}catch{t=`(assert message threw)`}typeof t==`string`&&t.length>2048&&(t=t.slice(0,2048)+`…`);let n=Error(t?`Assertion Error: `+t:`Assertion Error`);if(n.stack)try{let e=n.stack.split(` `);e[1]?.includes(`assert`)?(e.splice(1,1),n.stack=e.join(` `)):e[0]?.includes(`assert`)&&(e.splice(0,1),n.stack=e.join(` `))}catch{}throw n}function H(e,t){throw t instanceof Error?t:Error(t===void 0?e?`Unexpected value: ${e}`:`Application entered invalid state`:String(t))}function Lt(e){return e===null||typeof e!=`object`&&typeof e!=`function`}function Rt(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===h_}function zt(e){return Object.prototype.toString.call(e).slice(8,-1)}function Bt(e){switch(e){case`"`:return`\\"`;case`<`:return`\\u003C`;case`\\`:return`\\\\`;case` `:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;case`\b`:return`\\b`;case`\f`:return`\\f`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return e<` `?`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`:``}}function Vt(e){let t=``,n=0,r=e.length;for(let i=0;iObject.getOwnPropertyDescriptor(e,t).enumerable)}function Ut(e){return g_.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function Wt(e){return!(!Number.isInteger(e)||e<0||e>p_)}function Gt(e){return!(!Number.isInteger(e)||e<0||e>f_)}function Kt(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t57)return!1}return Wt(+e)}function qt(e){let t=Object.keys(e);for(var n=t.length-1;n>=0&&!Kt(t[n]);n--);return t.length=n+1,t}function Jt(e){return new Uint8Array(e).toBase64()}function Yt(e){return Uint8Array.fromBase64(e).buffer}function Xt(e){return Buffer.from(e).toString(`base64`)}function Zt(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function Qt(e){let t=new Uint8Array(e),n=``,r=32768;for(let e=0;e=t)throw Error(`Invalid input`);n[r]=a(s[e+1])}n.length=t}else{let t=Array(s.length);r[e]=t;for(let e=0;e{let t=c(e,l);t<0&&(r[l]=t)})}else{let e=zt(n);switch(e){case`Number`:case`String`:case`Boolean`:case`BigInt`:u=`["Object",${c(n.valueOf())}]`;break;case`Date`:u=`["Date","${isNaN(n.getDate())?``:n.toISOString()}"]`;break;case`URL`:u=`["URL",${Vt(n.toString())}]`;break;case`URLSearchParams`:u=`["URLSearchParams",${Vt(n.toString())}]`;break;case`RegExp`:let{source:r,flags:i}=n;u=i?`["RegExp",${Vt(r)},"${i}"]`:`["RegExp",${Vt(r)}]`;break;case`Array`:{let e=!1;u=`[`;for(let t=0;t0&&(u+=`,`),Object.hasOwn(n,t))o.push(`[${t}]`),u+=c(n[t]),o.pop();else if(e)u+=o_;else{let t=qt(n),r=t.length,i=String(n.length).length;if((n.length-r)*3>4+i+r*(i+1)){u=`[`+d_+`,`+n.length;for(let e=0;e0)throw new m_(`Cannot stringify POJOs with symbolic keys`,o,n,t);if(Object.getPrototypeOf(n)===null){u=`["null"`;for(let e of Object.keys(n)){if(e===`__proto__`)throw new m_(`Cannot stringify objects with __proto__ keys`,o,n,t);o.push(Ut(e)),u+=`,${Vt(e)},${c(n[e])}`,o.pop()}u+=`]`}else{u=`{`;let e=!1;for(let r of Object.keys(n)){if(r===`__proto__`)throw new m_(`Cannot stringify objects with __proto__ keys`,o,n,t);e&&(u+=`,`),e=!0,o.push(Ut(r)),u+=`${Vt(r)}:${c(n[r])}`,o.pop()}u+=`}`}}}return r[l]=u,l}let l=c(t);return l<0?`${l}`:r}function an(e){let t=typeof e;return t===`string`?Vt(e):e===void 0?a_.toString():e===0&&1/e<0?u_.toString():t===`bigint`?`["BigInt","${e}"]`:String(e)}function on(e,t,n=`lazy`){switch(q.__framer_events?.push([e,t,n]),e){case`published_site_click`:{let{trackingId:e,href:n}=t;e&&document.dispatchEvent(new CustomEvent(`framer:click`,{detail:{trackingId:e,href:n}}));break}case`published_site_form_submit`:{let{trackingId:e}=t;e&&document.dispatchEvent(new CustomEvent(`framer:formsubmit`,{detail:{trackingId:e}}));break}case`published_site_pageview`:{let{framerLocale:e}=t;document.dispatchEvent(new CustomEvent(`framer:pageview`,{detail:{framerLocale:e}}));break}case`published_site_trigger_invoke`:{let{trackingId:e}=t;e&&document.dispatchEvent(new CustomEvent(`framer:triggerinvoke`,{detail:{trackingId:e}}));break}}}function sn(e){return L(e)&&(e===``||S_.test(e))}function cn(){return{[C_.QueryCache]:new Map,[C_.CollectionUtilsCache]:new Map}}function ln(){if(!Rg)return;if(w_!==void 0)return w_;let e=document.getElementById(`__framer__handoverData`);if(e){try{w_=en(e.text)??cn()}catch(e){w_=cn(),console.warn(`Failed to parse handover data. Falling back to network.`,e)}return Vg(()=>{e?.remove(),e=null}),w_}}function un(e,t){if(console.warn(ot(`Failed to resolve raw query result from DOM during hydration for: ${t}. This might make the page load slightly slower.`)),Math.random()<.01){let t=e instanceof Error&&typeof e.stack==`string`?e.stack:null;on(`published_site_load_error`,{message:String(e),stack:t})}}function dn(e,t){let n=ln();return n?n[e].has(t):!1}function fn(e,t){let n=ln();if(!n)return;let r=n[e];if(!r.has(t))return;let i=r.get(t);return r.delete(t),i}function pn(e){return e?.id??n_}function mn(e,t,n,r){return`${e}|${t}|${n}|${r}`}function hn(e){return t=>{if(!e)return;let n=e[t];if(!n)return;if(O_.has(n))return O_.get(n);let r=new A_(n,t);return O_.set(n,r),r}}function gn({children:e,collectionUtils:t}){let n=l(()=>({get:hn(t)}),[t]);return T(k_.Provider,{value:n,children:e})}function _n(){return c(k_)}function vn(e){return new Promise(t=>{setTimeout(t,e)})}function yn(){return n===void 0?void 0:n}function bn(){let e=yn();return e?j_.test(e.platform):!1}function xn(){let e=yn();return e?M_.test(e.platform)?!0:N_.test(e.platform)&&e.maxTouchPoints!=null&&e.maxTouchPoints>2:!1}function Sn(){return bn()||xn()}function Cn(){let e=yn();return e?P_.test(e.userAgent):!1}function wn(){let e=yn();return e?F_.test(e.userAgent)&&I_.test(e.vendor)&&!Cn():!1}function Tn(){let e=yn();return e?L_.test(e.userAgent)&&R_.test(e.vendor):!1}function En(){let e=yn();return e?z_.test(e.userAgent):!1}function Dn(){return typeof document==`object`}function On(){let e=yn();if(!e)return-1;let t=B_.exec(e.userAgent);return t?.[1]?parseFloat(t[1]):-1}function kn(){let e=yn();return e?V_.test(e.userAgent):!1}function An(){return!1}function jn(){let e=yn();return e&&H_.test(e.userAgent)?`tablet`:e&&U_.test(e.userAgent)?`phone`:`desktop`}function Mn(){return jn()===`desktop`}function Nn(e){return Sn()?e.metaKey:e.ctrlKey}function Pn(){}function Fn(){if(!(typeof scheduler>`u`))return scheduler}function In(e,t){let n=e?.priority,r=Fn();return n===`background`?t?.()??vn(1):r?.yield?r.yield(e).catch(Pn):r?.postTask?r.postTask(Pn,e).catch(Pn):t?t():n===`user-blocking`?q_:vn(0)}function Ln(e,t,n){let r=-1/0,i,a=new Set;function o(){for(let e of a)e();a.clear()}function s(){return document.hidden?(o(),!0):!1}function c(){Dn()&&(document.addEventListener(`visibilitychange`,s),m.addEventListener(`pagehide`,o))}function l(n){return new Promise(r=>{setTimeout(r,J_),e(()=>{In(n,t).then(r)})})}function u(e){return Dn()?new Promise(t=>{let n=!0,r=()=>{n&&(n=!1,a.delete(r),t())};a.add(r),s()||c(),e.then(r,r)}):e}function d(e,n){let{continueAfter:r,ensureContinueBeforeUnload:i,...a}=e,o=n??r===`paint`?l(a):In(a,t);return i?u(o):o}function f(e,t,n){n&&e.pendingPaintYieldCount++;let a=d(t,n),o=t.signal,s=!0,c=t=>{s&&(s=!1,o?.removeEventListener(`abort`,l),t&&(r=performance.now()),n&&e.pendingPaintYieldCount--,i===e&&e.pendingPaintYieldCount===0&&(i=void 0))},l=()=>c(!1);return o?.aborted?l():o?.addEventListener(`abort`,l,{once:!0}),a.then(()=>c(!0),()=>c(!0)),a}function p(e,t){let a=i;if(!a){let n=performance.now(),o=t??(e.priority===`user-blocking`?W_:G_),s=Dn()&&document.hidden?K_:o;if(n-r0||n?.()!==!1);return f(a,e,o)}function h(e){let{batch:n,batchDuration:r,...i}=e??{};return!Dn()&&!t?n?void 0:q_:n?p(i,r):d(i)}return h}function Rn(){let e=_n(),{getRoute:t}=Dt();return u((n,r,i=!0,a=!0)=>{if(!n||!t)return;let o=t(n),{pathVariables:s,locale:c}=r;return Bn(o,{routeId:n,pathVariables:s,locale:c,collectionUtils:e},i,a)},[t,e])}function zn(e,t=!0){let n=Rn();a(()=>{if(!(!t||!Z_))for(let t of e)n(t,{})},[e,t,n])}async function Bn(e,t,n=!0,r=!0){if(!Z_||!e)return;let i=e.page;if(!(!i||!ut(i))){n&&await X_();try{let e=await i.preload();r&&t&&e&&await Vn(e,t)}catch{}}}async function Vn(e,t){let n=e.loader;if(!n?.load)return;let r={signal:t.signal??new AbortController().signal,pathVariables:t.pathVariables??{},routeId:t.routeId,locale:t.locale,collectionUtils:t.collectionUtils};try{await n.load({},r)}catch{}}function Hn(e,t){return e.replace(tv,(e,n)=>{let r=t[n];return typeof r!=`string`||r.length===0?e:encodeURIComponent(r)})}function Un(e,t=!1){let n=``;if(m!==void 0)if(t)n=m.location.search;else{let e=m.history?.state?.queryParamBackAnchorSearch;n=e===void 0?m.location.search:e===``?``:`?${e}`}return n?Wn(n,e):e}function Wn(e,t){let n=t.indexOf(`#`),r=n===-1?t:t.substring(0,n),i=n===-1?``:t.substring(n),a=r.indexOf(`?`),o=a===-1?r:r.substring(0,a),s=a===-1?``:r.substring(a),c=new URLSearchParams(s),l=new URLSearchParams(e);for(let[e,t]of l)c.has(e)||e!==nv&&c.append(e,t);let u=c.toString();return u===``?r+i:o+`?`+u+i}async function Gn(e,t,n,r,i,a,o){let s=e,c=!1,l={...a},u=Array.from(s.matchAll(tv)),d=await Promise.all(u.map(async e=>{let s=e?.[0],u=e?.[1];if(!s||!u)throw Error(`Failed to replace path variables: unexpected regex match group`);let d=a[u];if(!d||!L(d))throw Error(`No slug found for path variable ${u}`);let f=o?.get(i);if(!f||!t)return d;let p=f.getRecordIdBySlug(d,t),m=rt(p)?await p:p;if(!m)return d;let h=f.getSlugByRecordId(m,n),g=rt(h)?await h:h;if(!g){c=!0;let e=f.getSlugByRecordId(m,r),t=rt(e)?await e:e;return t&&(l[u]=t),t??d}return l[u]=g,g})),f=0,p=``,m=!1;for(let e=0;e{e=!0};m.addEventListener(`popstate`,t,{once:!0}),queueMicrotask(()=>{if(m.removeEventListener(`popstate`,t),e){let e=`Popstate called synchronously during pushState(). Please report this to the Framer team.`;console.error(e),on(`published_site_load_recoverable_error`,{message:e})}})}function Yn({children:e,value:t}){return T(iv.Provider,{value:t,children:e})}function Xn(){return f.useContext(iv)}function Zn(e,t,{global:n,routes:r}){return r[e]?.[t]||n}function Qn(e){let t=av,n=e.next(0),r=[n.value];for(;!n.done&&t{I.render(()=>{performance.mark(`framer-vt-remove`);let e=document.getElementById(dv);e&&document.head.removeChild(e)})})}function ur(){return!!document.startViewTransition}function dr(e){return new Promise(t=>{I.render(()=>{performance.mark(`framer-vt-style`),cr(e),t()})})}async function fr(e,t,n){if(!ur()){e();return}if(await dr(t),n?.aborted)return;performance.mark(`framer-vt`);let r=document.startViewTransition(async()=>{performance.mark(`framer-vt-freeze`),!n?.aborted&&(n?.addEventListener(`abort`,()=>r.skipTransition()),await e())});return r.updateCallbackDone.then(()=>{performance.mark(`framer-vt-unfreeze`)}).catch(pv),Promise.all([r.ready,r.finished]).then(()=>{performance.mark(`framer-vt-finished`),lr()}).catch(pv),r}function pr(){let e=Xn(),n=t(void 0);return a(()=>{n.current&&=(n.current(),void 0)}),u((t,r,i,a)=>{let o=Zn(t,r,e);if(o){let e=new Promise(e=>{n.current=e});return fr(async()=>{i(),await e},o,a)}i()},[e])}function mr(e,t){Vg(()=>{let n=document.querySelector(`link[rel='canonical']`);if(!n)return;let r=new URL(e,t);r.search=``,n.setAttribute(`href`,r.toString())})}function hr(e,t,n,i=r){i(()=>{let t=async e=>(await X_({...n,continueAfter:`paint`}),e()),r=t(e);return()=>{(async()=>{let e=await r;e&&t(e)})()}},t)}function gr(e){let n=t(new Set);return hr(()=>{for(let e of n.current)e();n.current.clear()},void 0,{priority:`user-blocking`}),u(t=>{let r,i=new Promise(e=>{r=e,n.current.add(e)});if(!e)return{promise:i,measureDetail:t,ignore:null};let a=`${e}-start`,o=`${e}-end`,s=!1;return performance.mark(a),i.finally(()=>{s||(performance.mark(o),performance.measure(e,{start:a,end:o,detail:t}))}).catch(e=>{console.error(e)}),{promise:i,measureDetail:t,ignore:()=>{s=!0,r&&(n.current.delete(r),r())}}},[e])}function _r(e){return z(e)&&`routeId`in e}function vr(e=m.history.state){return _r(e)?e:void 0}function yr(e){return e?.entryId}function br(e){gv=e}function xr(){return gv}function Sr(){return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function Cr(e,t){return wr(e,yr(e)??yr(t))}function wr(e,t=Sr()){return{...e,entryId:t}}function Tr(e,t,n=!1){performance.mark(`framer-history-replace`),br(Cr(e,vr())),t&&mr(t,m.location.href);let r;r=$_().privateRouterReplaceState?!t||t===m.location.href?m.History.prototype.replaceState:m.history.replaceState:n?m.History.prototype.replaceState:m.history.replaceState;try{r.call(m.history,gv,``,t)}catch{}}function Er(e){performance.mark(`framer-history-replace`),br(wr(e)),History.prototype.replaceState.call(m.history,gv,``,void 0)}function Dr(e){let t=m.navigation?.transition;if(!t){e();return}let n=()=>{let n=m.navigation.transition;if(n&&n!==t){Dr(e);return}e()};t.finished.then(n,n)}function Or(e,t){performance.mark(`framer-history-push`),br(wr(e)),mr(t,m.location.href),Jn();try{m.history.pushState(gv,``,t)}catch{}}function kr({disabled:e,routeId:t,initialPathVariables:n,initialLocaleId:i}){r(()=>{if(e)return;performance.mark(`framer-history-set-initial-state`);let r=m.location.hash?m.location.hash.slice(1):void 0;Tr({...vr(),routeId:t,hash:r,pathVariables:n,localeId:i},void 0,!0)},[])}function Ar(e,n,r){let i=pr(),o=gr(`framer-route-change`),{onHistoryTraversal:s,usesCustomScrollRestoration:c}=e,l=c?`manual`:`after-transition`,d=t(void 0),f=u(()=>{d.current?.resolve(),d.current=void 0},[]),p=u(async({state:e})=>{if(!_r(e))return;let t=o({popstate:!0}),a=Pt();t.promise.finally(a),yr(xr())!==(yr(e)??yr(vr()))&&s(),br(e);let{routeId:c,hash:u,pathVariables:d,localeId:p}=e,h=L(u)?u:m.location.hash?m.location.hash.slice(1):void 0,g=!1,_=()=>{g||=(r(c,L(p)?p:void 0,h,m.location.pathname+m.location.search+m.location.hash,z(d)?d:void 0,!0,t,!1),!0)},v=l===`after-transition`;await Promise.resolve(i(n.current,c,_)).then(e=>e?.updateCallbackDone).catch(_).finally(()=>{v||f()}),await t.promise,v&&f(),await m.navigation?.transition?.finished.catch(Lg),hv(),mr(m.location.href)},[n,o,s,f,r,i,l]),h=u(e=>{if(e.navigationType!==`traverse`||!e.canIntercept)return;let t=e.destination?.getState();_r(t)&&e.intercept({async handler(){await new Promise((e,t)=>{d.current={resolve:e,reject:t}}),d.current=void 0},scroll:l})},[l]);a(()=>(m.addEventListener(`popstate`,p),_v&&m.navigation.addEventListener(`navigate`,h),()=>{m.removeEventListener(`popstate`,p),_v&&m.navigation.removeEventListener(`navigate`,h)}),[p,h])}async function jr(e,t,n){if(!e.path||!t)return!1;let r=Kn(Hn(e.path,t),n.slug);return(await fetch(r,{method:`HEAD`,redirect:`manual`})).type===`opaqueredirect`?(m.location.href=m.location.origin+r,!0):!1}function Mr(){let e=_n();return u(t=>Nr({...t,collectionUtils:e}),[e])}async function Nr(e){let t=await qn(e);if(t){try{localStorage.preferredLocale=e.nextLocale.code}catch{}try{if(!L(t.path))throw Error(`Expected result.path to be a string`);if(t.isMissingInLocale&&await jr(e.route,t.pathVariables,e.nextLocale))return}catch{}return t}}function Pr(e,t){let n=yr(vr());n&&Dr(()=>{let r=vr();if(!r||yr(r)!==n)return;let i=r.paginationInfo===void 0||r.paginationInfo[e]===void 0,a={...r.paginationInfo,[e]:t};Tr({...r,paginationInfo:a},void 0,i)})}function Fr(e){let n=t(Promise.resolve()),r=t(),i=u(t=>{if(t.navigationType===`traverse`||!t.canIntercept)return;let i=r.current;i?.signal.addEventListener(`abort`,()=>{i.abort(`user aborted`)}),t.intercept({handler:()=>n.current,scroll:e?`manual`:`after-transition`})},[e]);return u((e,t,a)=>{if(!_v){a?.();return}n.current=e,r.current=t,m.navigation.addEventListener(`navigate`,i),a?.(),e.finally(()=>{n.current===e&&(r.current=void 0,m.navigation.removeEventListener(`navigate`,i))})},[i])}function Ir(e){let t=0,n=e.length;for(;tt&&e[n-1]===`-`;)n--;return e.slice(t,n)}function Lr(e){return Ir(e.trim().toLowerCase().replace(vv,`-`))}function Rr({children:e,value:t}){return T(bv.Provider,{value:t,children:e})}function zr(){return c(bv)}function Br(e,n){let r=s(()=>({inputs:n,result:e()}))[0],i=t(!0),o=t(r),c=i.current||n&&o.current.inputs&&wt(n,o.current.inputs,!1)?o.current:{inputs:n,result:e()};return a(()=>{i.current=!1,o.current=c},[c]),c.result}function Vr(e,t){return Br(()=>e,t)}function Hr(){return f.useContext(wv)}function Ur(){return m.location.search}function Wr(){return``}function Gr(e){return Ev.add(e),m.addEventListener(`popstate`,e),()=>{Ev.delete(e),m.removeEventListener(`popstate`,e)}}function Kr(){for(let e of Ev)e()}function qr({children:e,routerRenderKey:n,isNavigationCommitPending:r}){let i=zr()===`preview`,[a,o]=s(``),c=t(n);xv(()=>{c.current=n},[n]);let l=te(Gr,Ur,Wr),d=w(l),f=n!==w(n),p=i?a:f?l:d,h=u(async e=>{if(i){A(()=>{o(t=>e(new URLSearchParams(t)).toString())});return}let t=r(),a=n;if(await X_({continueAfter:`paint`}),t||r()||c.current!==a)return;let s=vr();if(!s)return;let l=new URL(m.location.href),u=e(l.searchParams).toString();l.search=u;let d=s.queryParamBackAnchorSearch,f=m.location.search.slice(1),p=d===void 0&&u!==f,h=d!==void 0&&u===d,g={...s,queryParamBackAnchorSearch:h?void 0:d??(p?f:void 0)},_=l.toString();p||h?Or(g,_):Tr(g,_),Kr()},[r,i,n]),g=Br(()=>({urlSearchParams:new URLSearchParams(p),replaceSearchParams:h}),[p,h]);return T(Dv.Provider,{value:g,children:e})}function Jr(e,t){if(!e.startsWith(`/`)||!t.startsWith(`/`))throw Error(`from/to paths are expected to be absolute`);let[n]=Yr(e),[r,i]=Yr(t),a=Xr(n,r);return a===``&&(a=`.`),!a.startsWith(`.`)&&!a.startsWith(`/`)&&(a=`./`+a),a+`/`+i}function Yr(e){let t=e.lastIndexOf(`/`);return[e.substring(0,t+1),e.substring(t+1)]}function Xr(e,t){if(e===t||(e=`/`+Zr(e),t=`/`+Zr(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=ra){if(Av(t,1+s)===kv)return Mv(t,1+s+1);if(s===0)return Mv(t,1+s)}else r>a&&(Av(e,1+s)===kv?o=s:s===0&&(o=0));let c=``;for(s=1+o+1;s<=n;++s)(s===n||Av(e,s)===kv)&&(c+=c.length===0?`..`:`/..`);return`${c}${Mv(t,1+o)}`}function Zr(e){let t=``,n=0,r=-1,i=0,a=0;for(let o=0;o<=e.length;++o){if(o2){let e=jv(t,Pv);e===-1?(t=``,n=0):(t=Mv(t,0,e),n=t.length-1-jv(t,Pv)),r=o,i=0;continue}else if(t.length!==0){t=``,n=0,r=o,i=0;continue}}Nv&&(t+=t.length>0?`${Pv}..`:`..`,n=2)}else t.length>0?t+=`${Pv}${Mv(e,r+1,o)}`:t=Mv(e,r+1,o),n=o-r-1;r=o,i=0}else a===Ov&&i!==-1?++i:i=-1}return t}function Qr(e){if(!e)return``;let t;try{t=new URL(e)}catch{return``}return t.pathname===`/`||m.location.origin!==t.origin?``:t.pathname.endsWith(`/`)?t.pathname.slice(0,-1):t.pathname}function $r(e,t,n){let r=Nt(t,e);if(!r)return;let i=Object.assign({},t?.elements,n);return r.replace(tv,(e,t)=>i[t]??e)}function ei(e,{currentRoutePath:t,currentRoutePathLocalized:n,currentPathVariables:r,hash:i,pathVariables:a,hashVariables:o,relative:s=!0,preserveQueryParams:c,onlyHash:l=!1,siteCanonicalURL:u,localeId:d,localeSlug:f}){let p=$r(i,e,o);if(l)return p??``;let h=t??`/`;n&&d&&(h=n[d]??h),r&&(h=h.replace(tv,(e,t)=>String(r[t]||e)));let g=(d?e?.pathLocalized?.[d]:void 0)??e?.path??`/`;a&&(g=g.replace(tv,(e,t)=>String(a[t]||e)));let _=!!(h===g&&p),v=!_&&a!==void 0&&t!==void 0&&e?.path!==void 0&&t===e.path&&h!==g;if(s)if(Iv.has(h)&&m!==void 0){let e=Qr(u);g=Jr(m.location.pathname,e+g)}else g=Jr(h,g);else g=Kn(g,f);let y=_||v;return(c||y)&&(g=Un(g,y)),p&&(g=`${g}#${p}`),g}function ti(e){return Lv in e&&e[Lv]===1}function ni(){if(!Rv)return;Bv=!0,performance.mark(`framer-react-event-handling-start`);let e={capture:!0},t=document.body;Rv.forEach(n=>t.addEventListener(n,zv,e))}function ri(){return a(()=>{if(!Bv||!Rv)return;let e={capture:!0},t=document.body;Rv.forEach(n=>t.removeEventListener(n,zv,e)),Rv=void 0,performance.mark(`framer-react-event-handling-end`)},[]),null}function ii(e){let t=!1;return function(...n){if(!t)return t=!0,e.apply(this,n)}}function ai(e,t,n){try{performance.measure(e,t,n)}catch(t){console.warn(`Could not measure ${e}`,t)}}function oi(){oy=new ay,oy.render.markStart()}function si(){j(()=>{oy?.useInsertionEffects.markRouterStart()},[]),r(()=>{oy?.useLayoutEffects.markRouterStart()},[]),a(()=>{oy?.useEffects.markRouterStart()},[])}function ci(){j(()=>{oy?.render.markEnd(),oy?.useInsertionEffects.markStart()},[]),r(()=>{if(oy?.useLayoutEffects.markStart(),document.visibilityState!==`visible`){sy=!0;return}I.read(()=>{oy?.browserRendering.requestAnimationFrame.markStart(),oy?.unattributedHydrationOverhead.measure()})},[]),a(()=>{oy?.useEffects.markStart(),oy?.browserRendering.hasStarted||(oy?.mutationEffects.measure(),oy?.useEffects.markAreSynchronous())},[])}function li(){j(()=>{oy?.useInsertionEffects.markEnd()},[]),r(()=>{oy?.useLayoutEffects.markEnd(),!(sy||document.visibilityState!==`visible`)&&I.read(()=>{oy?.browserRendering.requestAnimationFrame.markEnd(),X_().then(()=>{oy?.browserRendering.layoutStylePaint.markEnd()})})},[]),a(()=>{oy?.useEffects.markEnd()},[])}function ui(){return ci(),null}function di(){return li(),null}function fi(e,t){let n={style:t,"data-framer-root":``};return f.isValidElement(e)?f.cloneElement(e,n):T(e,{...n})}function pi(){return dy}function mi(e){if(fy?.lastRoutes!==e){let t={},n={},r=[],i={},a=e;for(let r in e){let i=e[r];V(i,`route must be defined`);let{path:a,pathLocalized:o}=i;if(a&&(t[a]={path:a,depth:_i(a),routeId:r},o))for(let e in o){let t=o[e];V(t,`localizedPath must be defined`);let i=_i(t),a=n[e]||={};a[t]={path:t,depth:i,routeId:r}}}r=Object.values(t),r.sort(({depth:e},{depth:t})=>t-e);for(let e in n){let t=n[e];if(!t)continue;let r=Object.values(t);r.sort(({depth:e},{depth:t})=>t-e),i[e]=r}fy={pathRoutes:t,pathRoutesLocalized:n,paths:r,pathsLocalized:i,lastRoutes:a}}return{pathRoutes:fy.pathRoutes,paths:fy.paths,pathRoutesLocalized:fy.pathRoutesLocalized,pathsLocalized:fy.pathsLocalized}}function hi(e,t,n=!0,r=pi()){return gi(e,t,r,n)}function gi(e,t,n,r=!0){let{pathRoutes:i,paths:a,pathRoutesLocalized:o,pathsLocalized:s}=mi(e),c,l,u=!1;if(n.length>0){let e=t.split(`/`).find(Boolean);if(e&&(c=n.find(({slug:t})=>t===e),c&&(l=c.id,t=t.substring(c.slug.length+1),u=!0)),!l){let e=n.find(({slug:e})=>e===``);e&&(l=e.id)}}if(l&&u){let e=o[l],n=e?e[t]:void 0;if(n){let e=vi(t,n.path);if(e.isMatch)return{routeId:n.routeId,localeId:l,pathVariables:e.pathVariables}}}let d=i[t];if(d){let e=vi(t,d.path);if(e.isMatch)return{routeId:d.routeId,localeId:l,pathVariables:e.pathVariables}}if(l&&u){let e=s[l];if(e)for(let{path:n,routeId:r}of e){let e=vi(t,n);if(e.isMatch)return{routeId:r,localeId:l,pathVariables:e.pathVariables}}}for(let{path:e,routeId:n}of a){let r=vi(t,e);if(r.isMatch)return{routeId:n,localeId:l,pathVariables:r.pathVariables}}if(!r)throw Error(`No exact match found for path`);let f=i[`/`];if(f)return{routeId:f.routeId,localeId:l};let p=Object.keys(e)[0];if(!p)throw Error(`Router should not have undefined routes`);return{routeId:p,localeId:l}}function _i(e){let t=e.replace(/^\/|\/$/gu,``);return t===``?0:t.split(`/`).length}function vi(e,t){let n=[],r=yi(t).replace(tv,(e,t)=>(n.push(t),`([^/]+)`)),i=RegExp(r+`$`),a=e.match(i);if(!a)return{isMatch:!1};if(a.length===1)return{isMatch:!0};let o={},s=a.slice(1);for(let e=0;ee.name===`abtests`);return t?new URLSearchParams(t.description):new URLSearchParams}return new URLSearchParams}function xi(e,t,n){let r=e[n];if(!r)return;let i=r.abTestingParentId??n,a=e[i];if(!a)return;let{abTestingParentId:o,...s}=r,c=a.elements||r.elements?{...a.elements,...r.elements}:void 0;e[i]={...s,includedLocales:a.includedLocales,elements:c,abTestingVariantId:n,abTestId:t}}function Si(e,t){for(let[n,r]of t)xi(e,n,r)}function Ci(e){for(let t in e)e[t]?.abTestingParentId&&delete e[t]}function wi(e,t){if(!e[t]||!e[t].abTestingParentId)return;let n=e[t].abTestingParentId,r=e[n],{abTestingParentId:i,...a}=e[t],o=r?.elements||a.elements?{...r?.elements,...a.elements}:void 0;e[n]={...a,includedLocales:r?.includedLocales,elements:o,abTestingVariantId:t}}function Ti(e,t){if(m===void 0)return t;let n=t;if(t){wi(e,t);let r=e[t]?.abTestingParentId;r&&(n=r)}return Si(e,bi()),Ci(e),n}function Ei(e){a(()=>{if(e.robots){let t=document.querySelector(`meta[name="robots"]`);t?t.setAttribute(`content`,e.robots):(t=document.createElement(`meta`),t.setAttribute(`name`,`robots`),t.setAttribute(`content`,e.robots),document.head.appendChild(t))}},[e.robots]),j(()=>{document.title=e.title||``,e.viewport&&document.querySelector(`meta[name="viewport"]`)?.setAttribute(`content`,e.viewport)},[e.title,e.viewport])}function Di(e,...t){py.has(e)||(py.add(e),console.warn(e,...t))}function Oi(e,t,n){Di(`Deprecation warning: ${e} will be removed in version ${t}${n?`, use ${n} instead`:``}.`)}function ki(e){return typeof e==`object`&&!!e&&gy in e&&e[gy]instanceof Function&&_y in e&&e[_y]instanceof Function}function Ai(e,t){return{interpolate(e,n){let r=e.get(),i=n.get(),a=hy(r);return e=>{let n=t.interpolate(r,i)(e);return a.set(n),a}},difference(e,n){let r=e.get();return t.difference(r,n.get())}}}function ji(e,t){let n=10**Math.round(Math.abs(t));return Math.round(e*n)/n}function Mi(e,t){return t===0?Math.round(e):(t-=t|0,t<0&&(t=1-t),Math.round(e-t)+t)}function Ni(e){return Math.round(e*2)/2}function Pi(e,t){return{x:e,y:t}}function Fi(e,t,n,r=!1){let[i,a]=t,[o,s]=n,c=a-i;if(c===0)return(s+o)/2;let l=s-o;if(l===0)return o;let u=o+(e-i)/c*l;if(r===!0)if(os)return s}else{if(u>o)return o;if(u.5?e/(2-c-l):e/(c+l),c){case a:u=(o-s)/e+(o1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ki(e,t,n){let r,i,a;if(e=Yi(e,360),t=Yi(t*100,100),n=Yi(n*100,100),t===0)r=i=a=n;else{let o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=Gi(s,o,e+1/3),i=Gi(s,o,e),a=Gi(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function qi(e,t,n){e=Yi(e,255),t=Yi(t,255),n=Yi(n,255);let r=Math.max(e,t,n),i=Math.min(e,t,n),a=r-i,o=0,s=r===0?0:a/r,c=r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/a+(t.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92}function oa({r:e,g:t,b:n,a:r}){return{r:aa(e),g:aa(t),b:aa(n),a:r}}function sa({r:e,g:t,b:n,a:r}){let i=Math.max(e,t,n),a=Math.min(e,t,n),o={h:0,s:i===0?0:1-a/i,v:i,a:r};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t1)&&(e=1),e}function va(){return q.location.origin===`https://screenshot.framer.invalid`}function ya({children:e}){if(c(By).top)return T(v,{children:e});let n=t({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{},count:{byId:{},byName:{}}}),r=t({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}}),i=t(new Set).current,a=t({getLayoutId:u(({id:e,name:t,duplicatedFrom:a})=>{if(!e)return null;let o=t?`byName`:`byId`,s=n.current[o][e];if(s)return s;let c=t||e;if(!a&&!i.has(c)&&(!n.current.byLayoutId[c]||n.current.byLayoutId[c]===c))return n.current.count[o][c]===void 0&&(n.current.count[o][c]=0,n.current.byLayoutId[c]=c,r.current[o][e]=c),i.add(c),c;let l;if(a?.length)for(let s=a.length-1;s>=0;s--){let c=a[s];V(!!c,`duplicatedId must be defined`);let u=n.current[o][c],d=n.current.byLastId[c];if(d&&!l){let e=n.current.byLayoutId[d],r=!e||e===t;d&&!i.has(d)&&(!t||r)&&(l=[d,c])}let f=u?n.current.byLayoutId[u]:void 0,p=!f||f===t;if(u&&!i.has(u)&&(!t||p))return r.current[o][e]=u,r.current.byLastId[c]=u,i.add(u),u}let u=n.current.byLastId[e];if(u&&!i.has(u))return i.add(u),r.current.byId[e]=u,u;if(l){let[t,n]=l;return r.current[o][e]=t,r.current.byLastId[n]=t,i.add(t),t}let d=n.current.byPossibleId[e];if(d&&!i.has(d))return i.add(d),r.current.byId[e]=d,d;let f=a?.[0],p=t||f||e,{layoutId:m,value:h}=ba(p,(n.current.count[o][p]??-1)+1,i);if(n.current.count[o][p]=h,r.current[o][e]=m,a?.length&&!t){let e=a[a.length-1];if(e&&(r.current.byLastId[e]=m),a.length>1)for(let e=0;e{n.current={byId:{...n.current.byId,...r.current.byId},byLastId:{...n.current.byLastId,...r.current.byLastId},byPossibleId:{...n.current.byPossibleId,...r.current.byPossibleId},byName:{...n.current.byName,...r.current.byName},byLastName:{...n.current.byLastName,...r.current.byLastName},byLayoutId:{...n.current.byLayoutId,...r.current.byLayoutId},count:{...n.current.count,byName:{}}},r.current={byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}},i.clear()},[]),top:!0,enabled:!0}).current;return T(By.Provider,{value:a,children:e})}function ba(e,t,n){let r=t,i=r?`${e}-${r}`:e;for(;n.has(i);)r++,i=`${e}-${r}`;return{layoutId:i,value:r}}function xa({enabled:e=!0,...t}){let n=c(By),r=l(()=>({...n,enabled:e}),[e]);return T(By.Provider,{...t,value:r})}function Sa(e){let n=t(null);return n.current===null&&(n.current=e()),n.current}function Ca(e){let{error:t,file:n}=e,r=n?`Error in ${wa(n)}`:`Error`,i=t instanceof Error?t.message:``+t;return ee(`div`,{style:Hy,children:[T(`div`,{className:`text`,style:Wy,children:r}),i&&T(`div`,{className:`text`,style:Gy,children:i})]})}function wa(e){return e.startsWith(`./`)?e.replace(`./`,``):e}function U(e){return Number.isFinite(e)}function Ta(e){return!e||!Object.keys(e).length&&e.constructor===Object}function Ea(e){return typeof e!=`string`&&typeof e!=`number`}function Da(e){return e!=null&&typeof e!=`boolean`&&!Ta(e)}function Oa(e){return Math.PI/180*e}function ka(e){return B(e)?!1:e===2||e===5}function Aa(e){if(typeof e==`string`){let t=e.trim();if(t===`auto`)return 2;if(t.endsWith(`fr`))return 3;if(t.endsWith(`%`))return 1;if(t.endsWith(`vw`)||t.endsWith(`vh`))return 4}return 0}function ja(e,t,n,r){if(typeof t==`string`){if(t.endsWith(`%`)&&n)switch(e){case`maxWidth`:case`minWidth`:return parseFloat(t)/100*n.width;case`maxHeight`:case`minHeight`:return parseFloat(t)/100*n.height;default:break}if(t.endsWith(`vh`)){if(!r)return Ma(e);switch(e){case`maxWidth`:case`minWidth`:return parseFloat(t)/100*r.width;case`maxHeight`:case`minHeight`:return parseFloat(t)/100*r.height;default:break}}return parseFloat(t)}return t}function Ma(e){switch(e){case`minWidth`:case`minHeight`:return-1/0;case`maxWidth`:case`maxHeight`:return 1/0;default:H(e,`unknown constraint key`)}}function Na(e,t,n,r){return t.minHeight&&(e=Math.max(ja(`minHeight`,t.minHeight,n,r),e)),t.maxHeight&&(e=Math.min(ja(`maxHeight`,t.maxHeight,n,r),e)),e}function Pa(e,t,n,r){return t.minWidth&&(e=Math.max(ja(`minWidth`,t.minWidth,n,r),e)),t.maxWidth&&(e=Math.min(ja(`maxWidth`,t.maxWidth,n,r),e)),e}function Fa(e,t,n,r,i){let a=Pa(U(e)?e:Xy,n,r,i),o=Na(U(t)?t:Zy,n,r,i);return U(n.aspectRatio)&&n.aspectRatio>0&&(U(n.left)&&U(n.right)?o=a/n.aspectRatio:U(n.top)&&U(n.bottom)||n.widthType===0?a=o*n.aspectRatio:o=a/n.aspectRatio),{width:a,height:o}}function Ia(e,t){return!U(e)||!U(t)?null:e+t}function La(e){return typeof e.right==`string`||typeof e.bottom==`string`||typeof e.left==`string`&&(!e.center||e.center===`y`)||typeof e.top==`string`&&(!e.center||e.center===`x`)}function Ra(e){return!e._constraints||La(e)?!1:e._constraints.enabled}function za(e){let{size:t}=e,{width:n,height:r}=e;return U(t)&&(n===void 0&&(n=t),r===void 0&&(r=t)),U(n)&&U(r)?{width:n,height:r}:null}function Ba(e){let t=za(e);if(t===null)return null;let{left:n,top:r}=e;return U(n)&&U(r)?{x:n,y:r,...t}:null}function Va(e,t,n=!0){if(e.positionFixed||e.positionAbsolute)return null;let r=t===1||t===2;if(!Ra(e)||r)return Ba(e);let i=Ha(e),a=Ua(t),o=a?{sizing:a,positioning:a,viewport:null}:null;return Yy.toRect(i,o,null,n,null)}function Ha(e){let{left:t,right:n,top:r,bottom:i,center:a,_constraints:o,size:s}=e,{width:c,height:l}=e;c===void 0&&(c=s),l===void 0&&(l=s);let{aspectRatio:u,autoSize:d}=o,f=Jy.quickfix({left:U(t),right:U(n),top:U(r),bottom:U(i),widthType:Aa(c),heightType:Aa(l),aspectRatio:u||null,fixedSize:d===!0}),p=null,m=null,h=0,g=0;if(f.widthType!==0&&typeof c==`string`){let e=parseFloat(c);c.endsWith(`fr`)?(h=3,p=e):c===`auto`?h=2:(h=1,p=e/100)}else c!==void 0&&typeof c!=`string`&&(p=c);if(f.heightType!==0&&typeof l==`string`){let e=parseFloat(l);l.endsWith(`fr`)?(g=3,m=e):l===`auto`?g=2:(g=1,m=parseFloat(l)/100)}else l!==void 0&&typeof l!=`string`&&(m=l);let _=.5,v=.5;return(a===!0||a===`x`)&&(f.left=!1,typeof t==`string`&&(_=parseFloat(t)/100)),(a===!0||a===`y`)&&(f.top=!1,typeof r==`string`&&(v=parseFloat(r)/100)),{left:f.left?t:null,right:f.right?n:null,top:f.top?r:null,bottom:f.bottom?i:null,widthType:h,heightType:g,width:p,height:m,aspectRatio:f.aspectRatio||null,centerAnchorX:_,centerAnchorY:v,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth}}function Ua(e){return e===0||e===1||e===2?null:e}function Wa(){return f.useContext(Qy).parentSize}function Ga(e){return typeof e==`object`}function Ka(e){return Ga(e)?e.width:e}function qa(e){return Ga(e)?e.height:e}function Ja(e,t){return T($y,{parentSize:t,children:e})}function Ya(e){return Va(e,Wa(),!0)}function Xa({width:e,height:t}){return e===`auto`||e===`min-content`||t===`auto`||t===`min-content`}function Za(e){let t=!1,n;return{get value(){return t||=(n=e(),!0),n}}}function Qa(e,t,n=nb){if(!(!e||n.has(e)||typeof document>`u`)){if(n.add(e),!t){if(!rb){let e=document.createElement(`style`);if(e.setAttribute(`type`,`text/css`),e.setAttribute(`data-framer-css`,`true`),!document.head){console.warn(`not injecting CSS: the document is missing a element`);return}if(document.head.appendChild(e),e.sheet)rb=e.sheet;else{console.warn(`not injecting CSS: injected