import{t as e}from"./rolldown-runtime.Dh6celcD.mjs";import{A as t,C as n,D as r,E as i,F as a,I as o,L as s,M as c,N as l,O as u,P as d,R as f,S as p,_ as m,a as h,b as g,c as _,d as v,f as y,g as b,h as x,i as S,j as C,k as w,l as T,m as E,o as D,s as O,u as ee,v as te,w as ne,x as k,y as re}from"./react.D20wc1Tc.mjs";import{$ as A,A as ie,B as ae,C as j,D as oe,E as se,F as ce,G as le,H as ue,I as de,J as fe,K as M,L as pe,M as me,O as he,P as ge,Q as _e,S as ve,T as N,U as ye,V as be,W as xe,X as P,Y as Se,Z as F,_ as Ce,a as we,b as Te,c as Ee,d as De,et as Oe,f as ke,g as Ae,h as je,i as Me,j as Ne,k as Pe,l as Fe,m as Ie,n as Le,nt as Re,o as ze,p as Be,q as Ve,r as He,s as Ue,tt as We,u as Ge,v as Ke,w as qe,x as Je,y as Ye,z as Xe}from"./motion.Cc66XoLi.mjs";function Ze(e){return typeof e==`function`}function Qe(e){return typeof e==`boolean`}function I(e){return typeof e==`string`}function L(e){return Number.isFinite(e)}function $e(e){return Array.isArray(e)}function R(e){return typeof e==`object`&&!!e&&!$e(e)}function et(e){for(let t in e)return!1;return!0}function tt(e){return e===void 0}function nt(e){return e===null}function rt(e){return e==null}function it(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function at(e){return R(e)&&Ze(e.return)}function ot(e){return R(e)&&Ze(e.then)}function st(e){return e instanceof Promise}function ct(e){return`url('${lt(e)}')`}function lt(e){return`data:image/svg+xml,${e.replaceAll(`#`,`%23`).replaceAll(`'`,`%27`).replaceAll(`"`,`%22`)}`}function ut(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 dt(e,t,n){if(tg.has(e))return;let r=Promise.resolve().then(t).then(t=>(tg.set(e,t),t)).catch(t=>{throw tg.delete(e),console.warn(`Failed to preload lazy module from ${n}`,t),t});r.catch(qh),tg.set(e,r)}function ft(e,t){Jh&&(ng.set(e,t),rg.has(e)&&dt(e,t,`registered loader ${e}`))}function pt(){if(!Jh)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(ig),i=r?e.slice(ig.length):e;if(!i)continue;rg.add(i);let a=ng.get(i);a?dt(i,a,`registered loader ${i}`):r&&dt(i,()=>import(n),n)}}function mt(e){return typeof e==`object`&&!!e&&!y(e)&&og in e}function ht(e,t){if(t in e)return e[t];throw Error(`Module does not contain export '${t}'`)}function gt(e,t=`default`,n){n&&ft(n,e);let r,i,a,o=()=>{if(i||!n||!tg.has(n))return;let e=tg.get(n);st(e)?s(()=>e):i=ht(e,t)},s=e=>i?Promise.resolve(i):(r||=e().then(e=>{let n=ht(e,t);return i=n,n}).catch(e=>{a=e}),r),l=!1,u=b(function(t,r){if(c(()=>{l=!0},[]),a)throw a;if(o(),n!==void 0&&ag!==void 0&&ag.add(n),!i)throw s(e);return _(i,{ref:r,...t})});return u.preload=()=>(o(),s(e)),u.getStatus=()=>({hasLoaded:i!==void 0,hasRendered:l}),u}function _t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vt(e){return e===null||!(cg in e)?!1:typeof e.equals==`function`}function yt(e,t){return e===t||e!==e&&t!==t}function bt(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!yt(e[r],t[r]))return!1;return!0}function xt(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Dt(e[r],t[r],!0))return!1;return!0}function St(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!yt(r,t.get(n)))return!1;return!0}function Ct(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!Dt(r,t.get(n),!0))return!1;return!0}function wt(e,t){if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n))return!1;return!0}function Tt(e,t){let n=sg(e);if(n.length!==sg(t).length)return!1;for(let r of n)if(!_t(t,r)||!(r===`_owner`&&_t(e,`$$typeof`)&&e.$$typeof)&&!yt(e[r],t[r]))return!1;return!0}function Et(e,t){let n=sg(e);if(n.length!==sg(t).length)return!1;for(let r of n)if(!_t(t,r)||!(r===`_owner`&&_t(e,`$$typeof`)&&e.$$typeof)&&!Dt(e[r],t[r],!0))return!1;return!0}function Dt(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?xt(e,t):bt(e,t);if(i!==a)return!1;let o=e instanceof Map,s=t instanceof Map;if(o&&s)return n?Ct(e,t):St(e,t);if(o!==s)return!1;let c=e instanceof Set,l=t instanceof Set;if(c&&l)return wt(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?vt(e)&&vt(t)?e.equals(t):n?Et(e,t):Tt(e,t):!1}function Ot(e,t,n=!0){try{return Dt(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 kt(e){return g.useCallback(t=>e[t],[e])}function At({api:e,children:t}){return _(lg.Provider,{value:e,children:t})}function jt(){return g.useContext(lg)}function Mt({routes:e,children:n}){let r=kt(e),i=t(()=>({getRoute:r}),[r]);return _(lg.Provider,{value:i,children:n})}function Nt(){let e=jt(),n=w(ug),r=n?.routeId??e.currentRouteId,i=n?.routeId?n.pathVariables:e.currentPathVariables,a=r?e.getRoute?.(r):void 0;return t(()=>{if(!(!r||!a))return{...a,id:r,pathVariables:i}},[r,i,a])}function Pt(){let e=Nt();if(e)return`${e.id}-${JSON.stringify(e.pathVariables)}`}function Ft(e){let t=Nt(),n=g.useRef(t);Ot(n.current,t)||!t||(n.current=t,e(t))}function It(e){let t=jt();if(e)return t.getRoute?.(e)}function Lt(e,t){if(t&&e)return e.elements&&t in e.elements?e.elements[t]:t}function Rt(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?Lt(r,e):e,[e,r])}function Bt(){return Nt()?.pathVariables}function z(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 B(e,t){throw t instanceof Error?t:Error(t===void 0?e?`Unexpected value: ${e}`:`Application entered invalid state`:String(t))}function Vt(e){return e===null||typeof e!=`object`&&typeof e!=`function`}function Ht(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Tg}function Ut(e){return Object.prototype.toString.call(e).slice(8,-1)}function Wt(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 Gt(e){let t=``,n=0,r=e.length;for(let i=0;iObject.getOwnPropertyDescriptor(e,t).enumerable)}function qt(e){return Eg.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function Jt(e){return!(!Number.isInteger(e)||e<0||e>Cg)}function Yt(e){return!(!Number.isInteger(e)||e<0||e>Sg)}function Xt(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t57)return!1}return Jt(+e)}function Zt(e){let t=Object.keys(e);for(var n=t.length-1;n>=0&&!Xt(t[n]);n--);return t.length=n+1,t}function Qt(e){return new Uint8Array(e).toBase64()}function $t(e){return Uint8Array.fromBase64(e).buffer}function en(e){return Buffer.from(e).toString(`base64`)}function tn(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function nn(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=Ut(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",${Gt(n.toString())}]`;break;case`URLSearchParams`:u=`["URLSearchParams",${Gt(n.toString())}]`;break;case`RegExp`:let{source:r,flags:i}=n;u=i?`["RegExp",${Gt(r)},"${i}"]`:`["RegExp",${Gt(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+=gg;else{let t=Zt(n),r=t.length,i=String(n.length).length;if((n.length-r)*3>4+i+r*(i+1)){u=`[`+xg+`,`+n.length;for(let e=0;e0)throw new wg(`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 wg(`Cannot stringify objects with __proto__ keys`,o,n,t);o.push(qt(e)),u+=`,${Gt(e)},${c(n[e])}`,o.pop()}u+=`]`}else{u=`{`;let e=!1;for(let r of Object.keys(n)){if(r===`__proto__`)throw new wg(`Cannot stringify objects with __proto__ keys`,o,n,t);e&&(u+=`,`),e=!0,o.push(qt(r)),u+=`${Gt(r)}:${c(n[r])}`,o.pop()}u+=`}`}}}return r[l]=u,l}let l=c(t);return l<0?`${l}`:r}function ln(e){let t=typeof e;return t===`string`?Gt(e):e===void 0?hg.toString():e===0&&1/e<0?bg.toString():t===`bigint`?`["BigInt","${e}"]`:String(e)}function un(e,t,n=`lazy`){switch(G.__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 dn(e){return I(e)&&(e===``||Mg.test(e))}function fn(){return{[Ng.QueryCache]:new Map,[Ng.CollectionUtilsCache]:new Map}}function pn(){if(!Jh)return;if(Pg!==void 0)return Pg;let e=document.getElementById(`__framer__handoverData`);if(e){try{Pg=an(e.text)??fn()}catch(e){Pg=fn(),console.warn(`Failed to parse handover data. Falling back to network.`,e)}return Zh(()=>{e?.remove(),e=null}),Pg}}function mn(e,t){if(console.warn(ut(`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;un(`published_site_load_error`,{message:String(e),stack:t})}}function hn(e,t){let n=pn();return n?n[e].has(t):!1}function gn(e,t){let n=pn();if(!n)return;let r=n[e];if(!r.has(t))return;let i=r.get(t);return r.delete(t),i}function _n(e){return e?.id??fg}function vn(e,t,n,r){return`${e}|${t}|${n}|${r}`}function yn(e){return t=>{if(!e)return;let n=e[t];if(!n)return;if(Rg.has(n))return Rg.get(n);let r=new Bg(n,t);return Rg.set(n,r),r}}function bn({children:e,collectionUtils:n}){let r=t(()=>({get:yn(n)}),[n]);return _(zg.Provider,{value:r,children:e})}function xn(){return w(zg)}function Sn(){for(let e of Ug)e();Ug.clear()}function Cn(e){return new Promise(t=>{if(Ug.add(t),document.hidden){Sn();return}document.addEventListener(`visibilitychange`,Sn),document.addEventListener(`pagehide`,Sn),je.read(()=>{Tn(e).then(()=>{Ug.delete(t),!e?.signal?.aborted&&t()})})})}function wn(e){return new Promise(t=>{setTimeout(t,100),je.read(()=>{Tn(e).then(t)},!1,!0)})}function Tn(e){let t=e?.priority,n=G.scheduler;return t===`background`?En(1):Vg&&n?n.yield(e).catch(qh):Hg&&n?n.postTask(()=>{},e).catch(qh):t===`user-blocking`?Promise.resolve():En(0)}function En(e){return new Promise(t=>{setTimeout(t,e)})}function Dn(e){let{continueAfter:t,ensureContinueBeforeUnload:n,...r}=e??{};return n?Cn(r):t===`paint`?wn(r):Tn(r)}function On(){let e=xn(),{getRoute:t}=jt();return C((n,r,i=!0,a=!0)=>{if(!n||!t)return;let o=t(n),{pathVariables:s,locale:c}=r;return An(o,{routeId:n,pathVariables:s,locale:c,collectionUtils:e},i,a)},[t,e])}function kn(e,t=!0){let n=On();c(()=>{if(!(!t||!Wg))for(let t of e)n(t,{})},[e,t,n])}async function An(e,t,n=!0,r=!0){if(!Wg||!e)return;let i=e.page;if(!(!i||!mt(i))){n&&await Dn();try{let e=await i.preload();r&&t&&e&&await jn(e,t)}catch{}}}async function jn(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 Mn(){return s===void 0?void 0:s}function Nn(){let e=Mn();return e?Gg.test(e.platform):!1}function Pn(){let e=Mn();return e?Kg.test(e.platform)?!0:qg.test(e.platform)&&e.maxTouchPoints!=null&&e.maxTouchPoints>2:!1}function Fn(){return Nn()||Pn()}function In(){let e=Mn();return e?Jg.test(e.userAgent):!1}function Ln(){let e=Mn();return e?Yg.test(e.userAgent)&&Xg.test(e.vendor)&&!In():!1}function Rn(){let e=Mn();return e?Zg.test(e.userAgent)&&Qg.test(e.vendor):!1}function zn(){let e=Mn();return e?$g.test(e.userAgent):!1}function Bn(){return typeof document==`object`}function Vn(){let e=Mn();if(!e)return-1;let t=e_.exec(e.userAgent);return t?.[1]?parseFloat(t[1]):-1}function Hn(){let e=Mn();return e?t_.test(e.userAgent):!1}function Un(){return!1}function Wn(){let e=Mn();return e&&n_.test(e.userAgent)?`tablet`:e&&r_.test(e.userAgent)?`phone`:`desktop`}function Gn(){return Wn()===`desktop`}function Kn(e){return Fn()?e.metaKey:e.ctrlKey}function qn(e,t){return e.replace(s_,(e,n)=>{let r=t[n];return typeof r!=`string`||r.length===0?e:encodeURIComponent(r)})}function Jn(e,t=!1){let n=``;if(f!==void 0)if(t)n=f.location.search;else{let e=f.history?.state?.queryParamBackAnchorSearch;n=e===void 0?f.location.search:e===``?``:`?${e}`}return n?Yn(n,e):e}function Yn(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!==c_&&c.append(e,t);let u=c.toString();return u===``?r+i:o+`?`+u+i}async function Xn(e,t,n,r,i,a,o){let s=e,c=!1,l={...a},u=Array.from(s.matchAll(s_)),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||!I(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=st(p)?await p:p;if(!m)return d;let h=f.getSlugByRecordId(m,n),g=st(h)?await h:h;if(!g){c=!0;let e=f.getSlugByRecordId(m,r),t=st(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;ea){if(d_(t,1+s)===u_)return p_(t,1+s+1);if(s===0)return p_(t,1+s)}else r>a&&(d_(e,1+s)===u_?o=s:s===0&&(o=0));let c=``;for(s=1+o+1;s<=n;++s)(s===n||d_(e,s)===u_)&&(c+=c.length===0?`..`:`/..`);return`${c}${p_(t,1+o)}`}function nr(e){let t=``,n=0,r=-1,i=0,a=0;for(let o=0;o<=e.length;++o){if(o2){let e=f_(t,h_);e===-1?(t=``,n=0):(t=p_(t,0,e),n=t.length-1-f_(t,h_)),r=o,i=0;continue}else if(t.length!==0){t=``,n=0,r=o,i=0;continue}}m_&&(t+=t.length>0?`${h_}..`:`..`,n=2)}else t.length>0?t+=`${h_}${p_(e,r+1,o)}`:t=p_(e,r+1,o),n=o-r-1;r=o,i=0}else a===l_&&i!==-1?++i:i=-1}return t}function rr(e){if(!e)return``;let t;try{t=new URL(e)}catch{return``}return t.pathname===`/`||f.location.origin!==t.origin?``:t.pathname.endsWith(`/`)?t.pathname.slice(0,-1):t.pathname}function ir(e,t,n){let r=Lt(t,e);if(!r)return;let i=Object.assign({},t?.elements,n);return r.replace(s_,(e,t)=>i[t]??e)}function ar(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:p}){let m=ir(i,e,o);if(l)return m??``;let h=t??`/`;n&&d&&(h=n[d]??h),r&&(h=h.replace(s_,(e,t)=>String(r[t]||e)));let g=(d?e?.pathLocalized?.[d]:void 0)??e?.path??`/`;a&&(g=g.replace(s_,(e,t)=>String(a[t]||e)));let _=!!(h===g&&m),v=!_&&a!==void 0&&t!==void 0&&e?.path!==void 0&&t===e.path&&h!==g;if(s)if(__.has(h)&&f!==void 0){let e=rr(u);g=$n(f.location.pathname,e+g)}else g=$n(h,g);else g=Zn(g,p);let y=_||v;return(c||y)&&(g=Jn(g,y)),m&&(g=`${g}#${m}`),g}function or(){if(v_)return;v_=!0;let e=!1,t=()=>{e=!0};f.addEventListener(`popstate`,t,{once:!0}),queueMicrotask(()=>{if(f.removeEventListener(`popstate`,t),e){let e=`Popstate called synchronously during pushState(). Please report this to the Framer team.`;console.error(e),un(`published_site_load_recoverable_error`,{message:e})}})}function sr({children:e,value:t}){return _(y_.Provider,{value:t,children:e})}function cr(){return g.useContext(y_)}function lr(e,t,{global:n,routes:r}){return r[e]?.[t]||n}function ur(e){let t=b_,n=e.next(0),r=[n.value];for(;!n.done&&t{je.render(()=>{performance.mark(`framer-vt-remove`);let e=document.getElementById(T_);e&&document.head.removeChild(e)})})}function br(){return!!document.startViewTransition}function xr(e){return new Promise(t=>{je.render(()=>{performance.mark(`framer-vt-style`),vr(e),t()})})}async function Sr(e,t,n){if(!br()){e();return}if(await xr(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(D_),Promise.all([r.ready,r.finished]).then(()=>{performance.mark(`framer-vt-finished`),yr()}).catch(D_),r}function Cr(){let e=cr(),t=r(void 0);return c(()=>{t.current&&=(t.current(),void 0)}),C((n,r,i,a)=>{let o=lr(n,r,e);if(o){let e=new Promise(e=>{t.current=e});return Sr(async()=>{i(),await e},o,a)}i()},[e])}function wr(e,t){Zh(()=>{let n=document.querySelector(`link[rel='canonical']`);if(!n)return;let r=new URL(e,t);r.search=``,n.setAttribute(`href`,r.toString())})}function Tr(e,t,n,r=k){r(()=>{let t=async e=>(await Dn({...n,continueAfter:`paint`}),e()),r=t(e);return()=>{(async()=>{let e=await r;e&&t(e)})()}},t)}function Er(e){let t=r(void 0);return Tr(()=>{t.current&&=(t.current(),void 0)},void 0,{priority:`user-blocking`}),C(n=>{let r=new Promise(e=>{t.current=e});if(!e)return{promise:r,measureDetail:n,ignore:null};let i=`${e}-start`,a=`${e}-end`,o=!1;return performance.mark(i),r.finally(()=>{o||(performance.mark(a),performance.measure(e,{start:i,end:a,detail:n}))}).catch(e=>{console.error(e)}),{promise:r,measureDetail:n,ignore:()=>{o=!0,t.current?.(),t.current=void 0}}},[e])}function Dr(e,t,n){let{path:r}=t;if(!r)return;let{hash:i,pathVariables:a,localeId:o,currentRoutePath:s}=n,c=`historyPath`in n?n.historyPath:ar(t,n),l=s!==void 0&&s===r,u=kr(),d=l?u?.queryParamBackAnchorSearch:void 0;try{Rr({routeId:e,hash:i,pathVariables:a,localeId:o,queryParamBackAnchorSearch:d},c)}catch{}}function Or(e){return R(e)&&`routeId`in e}function kr(e=f.history.state){return Or(e)?e:void 0}function Ar(e){return e?.entryId}function jr(e){A_=e}function Mr(){return A_}function Nr(){return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function Pr(e,t){return Fr(e,Ar(e)??Ar(t))}function Fr(e,t=Nr()){return{...e,entryId:t}}function Ir(e,t,n=!1){performance.mark(`framer-history-replace`),jr(Pr(e,kr())),t&&wr(t,f.location.href),a_().privateRouterReplaceState?(!t||t===f.location.href?f.History.prototype.replaceState:f.history.replaceState).call(f.history,A_,``,t):(n?f.History.prototype.replaceState:f.history.replaceState).call(f.history,A_,``,t)}function Lr(e){performance.mark(`framer-history-replace`),jr(Fr(e)),History.prototype.replaceState.call(f.history,A_,``,void 0)}function Rr(e,t){performance.mark(`framer-history-push`),jr(Fr(e)),wr(t,f.location.href),or(),f.history.pushState(A_,``,t)}function zr({disabled:e,routeId:t,initialPathVariables:n,initialLocaleId:r}){k(()=>{if(e)return;performance.mark(`framer-history-set-initial-state`);let i=f.location.hash?f.location.hash.slice(1):void 0;Ir({...kr(),routeId:t,hash:i,pathVariables:n,localeId:r},void 0,!0)},[])}function Br(e,t,n){let i=Cr(),a=Er(`framer-route-change`),o=r(void 0),s=C(()=>{o.current?.resolve(),o.current=void 0},[]),l=C(async({state:r})=>{if(!Or(r))return;let o=a({popstate:!0}),c=Rt();o.promise.finally(c),jr(r);let{routeId:l,hash:u,pathVariables:d,localeId:p}=r,m=I(u)?u:f.location.hash?f.location.hash.slice(1):void 0,h=!1,g=()=>{h||=(n(l,I(p)?p:void 0,m,f.location.pathname+f.location.search+f.location.hash,R(d)?d:void 0,!0,o,!1),!0)},_=e===`after-transition`;await Promise.resolve(i(t.current,l,g)).then(e=>e?.updateCallbackDone).catch(g).finally(()=>{_||s()}),await o.promise,_&&s(),await f.navigation?.transition?.finished.catch(qh),k_(),wr(f.location.href)},[t,a,s,n,i,e]),u=C(t=>{if(t.navigationType!==`traverse`||!t.canIntercept)return;let n=t.destination?.getState();Or(n)&&t.intercept({async handler(){await new Promise((e,t)=>{o.current={resolve:e,reject:t}}),o.current=void 0},scroll:e})},[e]);c(()=>(f.addEventListener(`popstate`,l),j_&&f.navigation.addEventListener(`navigate`,u),()=>{f.removeEventListener(`popstate`,l),j_&&f.navigation.removeEventListener(`navigate`,u)}),[l,u])}async function Vr(e,t,n){if(!e.path||!t)return!1;let r=Zn(qn(e.path,t),n.slug);return(await fetch(r,{method:`HEAD`,redirect:`manual`})).type===`opaqueredirect`?(f.location.href=f.location.origin+r,!0):!1}function Hr(){let e=xn();return C(t=>Ur({...t,collectionUtils:e}),[e])}async function Ur(e){let t=await Qn(e);if(t){try{localStorage.preferredLocale=e.nextLocale.code}catch{}try{if(!I(t.path))throw Error(`Expected result.path to be a string`);if(t.isMissingInLocale&&await Vr(e.route,t.pathVariables,e.nextLocale))return}catch{}return t}}function Wr(e){let t=r(Promise.resolve()),n=r(),i=C(r=>{if(r.navigationType===`traverse`||!r.canIntercept)return;let i=n.current;i?.signal.addEventListener(`abort`,()=>{i.abort(`user aborted`)}),r.intercept({handler:()=>t.current,scroll:e?`manual`:`after-transition`})},[e]);return C((r,a,o)=>{if(!j_){o?.();return}t.current=r,n.current=a,f.navigation.addEventListener(`navigate`,i),e||o?.(),r.finally(()=>{t.current===r&&(n.current=void 0,f.navigation.removeEventListener(`navigate`,i))})},[e,i])}function Gr(e){let t=0,n=e.length;for(;tt&&e[n-1]===`-`;)n--;return e.slice(t,n)}function Kr(e){return Gr(e.trim().toLowerCase().replace(M_,`-`))}function qr({children:e,value:t}){return _(P_.Provider,{value:t,children:e})}function Jr(){return w(P_)}function Yr(e,t){let n=d(()=>({inputs:t,result:e()}))[0],i=r(!0),a=r(n),o=i.current||t&&a.current.inputs&&Ot(t,a.current.inputs,!1)?a.current:{inputs:t,result:e()};return c(()=>{i.current=!1,a.current=o},[o]),o.result}function Xr(e,t){return Yr(()=>e,t)}function Zr(){return g.useContext(L_)}function Qr(){return Zr().activeLocale?.code??`en-US`}function $r(){return f.location.search}function ei(){return``}function ti(e){return z_.add(e),f.addEventListener(`popstate`,e),()=>{z_.delete(e),f.removeEventListener(`popstate`,e)}}function ni(){for(let e of z_)e()}function ri({children:e}){let t=Jr()===`preview`,[n,r]=d(``),a=i(re(ti,$r,ei));jt();let o=t?n:a,s=C(async e=>{if(t){m(()=>{r(t=>e(new URLSearchParams(t)).toString())});return}await Dn({continueAfter:`paint`});let n=kr();if(!n)return;let i=new URL(f.location.href),a=e(i.searchParams).toString();i.search=a;let o=n.queryParamBackAnchorSearch,s=f.location.search.slice(1),c=o===void 0&&a!==s,l=o!==void 0&&a===o,u={...n,queryParamBackAnchorSearch:l?void 0:o??(c?s:void 0)},d=i.toString();c||l?await Rr(u,d):Ir(u,d),ni()},[t]),c=Yr(()=>({urlSearchParams:new URLSearchParams(o),replaceSearchParams:s}),[o,s]);return _(B_.Provider,{value:c,children:e})}function ii(e){return V_ in e&&e[V_]===1}function ai(){if(!H_)return;W_=!0,performance.mark(`framer-react-event-handling-start`);let e={capture:!0},t=document.body;H_.forEach(n=>t.addEventListener(n,U_,e))}function oi(){return c(()=>{if(!W_||!H_)return;let e={capture:!0},t=document.body;H_.forEach(n=>t.removeEventListener(n,U_,e)),H_=void 0,performance.mark(`framer-react-event-handling-end`)},[]),null}function si(e){let t=!1;return function(...n){if(!t)return t=!0,e.apply(this,n)}}function ci(e,t,n){try{performance.measure(e,t,n)}catch(t){console.warn(`Could not measure ${e}`,t)}}function li(){uv=new lv,uv.render.markStart()}function ui(){p(()=>{uv?.useInsertionEffects.markRouterStart()},[]),k(()=>{uv?.useLayoutEffects.markRouterStart()},[]),c(()=>{uv?.useEffects.markRouterStart()},[])}function di(){p(()=>{uv?.render.markEnd(),uv?.useInsertionEffects.markStart()},[]),k(()=>{if(uv?.useLayoutEffects.markStart(),document.visibilityState!==`visible`){dv=!0;return}je.read(()=>{uv?.browserRendering.requestAnimationFrame.markStart(),uv?.unattributedHydrationOverhead.measure()})},[]),c(()=>{uv?.useEffects.markStart(),uv?.browserRendering.hasStarted||(uv?.mutationEffects.measure(),uv?.useEffects.markAreSynchronous())},[])}function fi(){p(()=>{uv?.useInsertionEffects.markEnd()},[]),k(()=>{uv?.useLayoutEffects.markEnd(),!(dv||document.visibilityState!==`visible`)&&je.read(()=>{uv?.browserRendering.requestAnimationFrame.markEnd(),Dn().then(()=>{uv?.browserRendering.layoutStylePaint.markEnd()})})},[]),c(()=>{uv?.useEffects.markEnd()},[])}function pi(){return di(),null}function mi(){return fi(),null}function hi(e,t){let n={style:t,"data-framer-root":``};return g.isValidElement(e)?g.cloneElement(e,n):_(e,{...n})}function gi(){return hv}function _i(e){if(gv?.lastRoutes!==e){let t={},n={},r=[],i={},a=e;for(let r in e){let i=e[r];z(i,`route must be defined`);let{path:a,pathLocalized:o}=i;if(a&&(t[a]={path:a,depth:bi(a),routeId:r},o))for(let e in o){let t=o[e];z(t,`localizedPath must be defined`);let i=bi(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}gv={pathRoutes:t,pathRoutesLocalized:n,paths:r,pathsLocalized:i,lastRoutes:a}}return{pathRoutes:gv.pathRoutes,paths:gv.paths,pathRoutesLocalized:gv.pathRoutesLocalized,pathsLocalized:gv.pathsLocalized}}function vi(e,t,n=!0,r=gi()){return yi(e,t,r,n)}function yi(e,t,n,r=!0){let{pathRoutes:i,paths:a,pathRoutesLocalized:o,pathsLocalized:s}=_i(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=xi(t,n.path);if(e.isMatch)return{routeId:n.routeId,localeId:l,pathVariables:e.pathVariables}}}let d=i[t];if(d){let e=xi(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=xi(t,n);if(e.isMatch)return{routeId:r,localeId:l,pathVariables:e.pathVariables}}}for(let{path:e,routeId:n}of a){let r=xi(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 bi(e){let t=e.replace(/^\/|\/$/gu,``);return t===``?0:t.split(`/`).length}function xi(e,t){let n=[],r=Si(t).replace(s_,(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 wi(e,t,n){let r=e[n];if(!r)return;let i=r.abTestingParentId??n;if(!e[i])return;let{abTestingParentId:a,...o}=r,s=e[i].elements||r.elements?{...e[i].elements,...r.elements}:void 0;e[i]={...o,elements:s,abTestingVariantId:n,abTestId:t}}function Ti(e,t){for(let[n,r]of t)wi(e,n,r)}function Ei(e){for(let t in e)e[t]?.abTestingParentId&&delete e[t]}function Di(e,t){if(!e[t]||!e[t].abTestingParentId)return;let n=e[t].abTestingParentId,{abTestingParentId:r,...i}=e[t],a=e[n]?.elements||i.elements?{...e[n]?.elements,...i.elements}:void 0;e[n]={...i,elements:a,abTestingVariantId:t}}function Oi(e,t){if(f===void 0)return t;let n=t;if(t){Di(e,t);let r=e[t]?.abTestingParentId;r&&(n=r)}return Ti(e,Ci()),Ei(e),n}function ki(e){c(()=>{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]),p(()=>{document.title=e.title||``,e.viewport&&document.querySelector(`meta[name="viewport"]`)?.setAttribute(`content`,e.viewport)},[e.title,e.viewport])}function Ai(e,...t){_v.has(e)||(_v.add(e),console.warn(e,...t))}function ji(e,t,n){Ai(`Deprecation warning: ${e} will be removed in version ${t}${n?`, use ${n} instead`:``}.`)}function Mi(e){return typeof e==`object`&&!!e&&bv in e&&e[bv]instanceof Function&&xv in e&&e[xv]instanceof Function}function Ni(e,t){return{interpolate(e,n){let r=e.get(),i=n.get(),a=yv(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 Pi(e,t){let n=10**Math.round(Math.abs(t));return Math.round(e*n)/n}function Fi(e,t){return t===0?Math.round(e):(t-=t|0,t<0&&(t=1-t),Math.round(e-t)+t)}function Ii(e){return Math.round(e*2)/2}function Li(e,t){return{x:e,y:t}}function Ri(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 Yi(e,t,n){let r,i,a;if(e=Qi(e,360),t=Qi(t*100,100),n=Qi(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=Ji(s,o,e+1/3),i=Ji(s,o,e),a=Ji(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Xi(e,t,n){e=Qi(e,255),t=Qi(t,255),n=Qi(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 la({r:e,g:t,b:n,a:r}){return{r:ca(e),g:ca(t),b:ca(n),a:r}}function ua({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 xa(){return G.location.origin===`https://screenshot.framer.invalid`}function Sa({children:e}){if(w(Wv).top)return _(O,{children:e});let t=r({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{},count:{byId:{},byName:{}}}),n=r({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}}),i=r(new Set).current,a=r({getLayoutId:C(({id:e,name:r,duplicatedFrom:a})=>{if(!e)return null;let o=r?`byName`:`byId`,s=t.current[o][e];if(s)return s;let c=r||e;if(!a&&!i.has(c)&&(!t.current.byLayoutId[c]||t.current.byLayoutId[c]===c))return t.current.count[o][c]===void 0&&(t.current.count[o][c]=0,t.current.byLayoutId[c]=c,n.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];z(!!c,`duplicatedId must be defined`);let u=t.current[o][c],d=t.current.byLastId[c];if(d&&!l){let e=t.current.byLayoutId[d],n=!e||e===r;d&&!i.has(d)&&(!r||n)&&(l=[d,c])}let f=u?t.current.byLayoutId[u]:void 0,p=!f||f===r;if(u&&!i.has(u)&&(!r||p))return n.current[o][e]=u,n.current.byLastId[c]=u,i.add(u),u}let u=t.current.byLastId[e];if(u&&!i.has(u))return i.add(u),n.current.byId[e]=u,u;if(l){let[t,r]=l;return n.current[o][e]=t,n.current.byLastId[r]=t,i.add(t),t}let d=t.current.byPossibleId[e];if(d&&!i.has(d))return i.add(d),n.current.byId[e]=d,d;let f=a?.[0],p=r||f||e,{layoutId:m,value:h}=Ca(p,(t.current.count[o][p]??-1)+1,i);if(t.current.count[o][p]=h,n.current[o][e]=m,a?.length&&!r){let e=a[a.length-1];if(e&&(n.current.byLastId[e]=m),a.length>1)for(let e=0;e{t.current={byId:{...t.current.byId,...n.current.byId},byLastId:{...t.current.byLastId,...n.current.byLastId},byPossibleId:{...t.current.byPossibleId,...n.current.byPossibleId},byName:{...t.current.byName,...n.current.byName},byLastName:{...t.current.byLastName,...n.current.byLastName},byLayoutId:{...t.current.byLayoutId,...n.current.byLayoutId},count:{...t.current.count,byName:{}}},n.current={byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}},i.clear()},[]),top:!0,enabled:!0}).current;return _(Wv.Provider,{value:a,children:e})}function Ca(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 wa({enabled:e=!0,...n}){let r=w(Wv),i=t(()=>({...r,enabled:e}),[e]);return _(Wv.Provider,{...n,value:i})}function Ta(e){let t=r(null);return t.current===null&&(t.current=e()),t.current}function Ea(e){let{error:t,file:n}=e,r=n?`Error in ${Da(n)}`:`Error`,i=t instanceof Error?t.message:``+t;return T(`div`,{style:Kv,children:[_(`div`,{className:`text`,style:Jv,children:r}),i&&_(`div`,{className:`text`,style:Yv,children:i})]})}function Da(e){return e.startsWith(`./`)?e.replace(`./`,``):e}function V(e){return Number.isFinite(e)}function Oa(e){return!e||!Object.keys(e).length&&e.constructor===Object}function ka(e){return typeof e!=`string`&&typeof e!=`number`}function Aa(e){return e!=null&&typeof e!=`boolean`&&!Oa(e)}function ja(e){return Math.PI/180*e}function Ma(e){return tt(e)?!1:e===2||e===5}function Na(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 Pa(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 Fa(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 Fa(e){switch(e){case`minWidth`:case`minHeight`:return-1/0;case`maxWidth`:case`maxHeight`:return 1/0;default:B(e,`unknown constraint key`)}}function Ia(e,t,n,r){return t.minHeight&&(e=Math.max(Pa(`minHeight`,t.minHeight,n,r),e)),t.maxHeight&&(e=Math.min(Pa(`maxHeight`,t.maxHeight,n,r),e)),e}function La(e,t,n,r){return t.minWidth&&(e=Math.max(Pa(`minWidth`,t.minWidth,n,r),e)),t.maxWidth&&(e=Math.min(Pa(`maxWidth`,t.maxWidth,n,r),e)),e}function Ra(e,t,n,r,i){let a=La(V(e)?e:ey,n,r,i),o=Ia(V(t)?t:ty,n,r,i);return V(n.aspectRatio)&&n.aspectRatio>0&&(V(n.left)&&V(n.right)?o=a/n.aspectRatio:V(n.top)&&V(n.bottom)||n.widthType===0?a=o*n.aspectRatio:o=a/n.aspectRatio),{width:a,height:o}}function za(e,t){return!V(e)||!V(t)?null:e+t}function Ba(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 Va(e){return!e._constraints||Ba(e)?!1:e._constraints.enabled}function Ha(e){let{size:t}=e,{width:n,height:r}=e;return V(t)&&(n===void 0&&(n=t),r===void 0&&(r=t)),V(n)&&V(r)?{width:n,height:r}:null}function Ua(e){let t=Ha(e);if(t===null)return null;let{left:n,top:r}=e;return V(n)&&V(r)?{x:n,y:r,...t}:null}function Wa(e,t,n=!0){if(e.positionFixed||e.positionAbsolute)return null;let r=t===1||t===2;if(!Va(e)||r)return Ua(e);let i=Ga(e),a=Ka(t),o=a?{sizing:a,positioning:a,viewport:null}:null;return $v.toRect(i,o,null,n,null)}function Ga(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=Qv.quickfix({left:V(t),right:V(n),top:V(r),bottom:V(i),widthType:Na(c),heightType:Na(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 Ka(e){return e===0||e===1||e===2?null:e}function qa(){return g.useContext(ny).parentSize}function Ja(e){return typeof e==`object`}function Ya(e){return Ja(e)?e.width:e}function Xa(e){return Ja(e)?e.height:e}function Za(e,t){return _(ry,{parentSize:t,children:e})}function Qa(e){return Wa(e,qa(),!0)}function $a({width:e,height:t}){return e===`auto`||e===`min-content`||t===`auto`||t===`min-content`}function eo(e){let t=!1,n;return{get value(){return t||=(n=e(),!0),n}}}function to(e,t,n=oy){if(!(!e||n.has(e)||typeof document>`u`)){if(n.add(e),!t){if(!sy){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)sy=e.sheet;else{console.warn(`not injecting CSS: injected