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,O as u,P as d,R as f,S as p,T as m,_ as h,a 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 k,v as A,w as j,x as M,y as ee,z as N}from"./react.ceu8kckm.mjs";import{$ as P,A as F,B as te,C as ne,D as re,E as ie,F as ae,G as oe,H as se,I as ce,J as le,K as ue,L as de,M as fe,N as pe,O as me,P as he,Q as I,R as ge,S as _e,T as L,U as ve,V as ye,W as R,X as be,Y as xe,Z as Se,_ as Ce,a as we,at as Te,b as Ee,c as De,ct as Oe,d as ke,dt as Ae,et as je,f as Me,g as Ne,h as Pe,i as Fe,it as Ie,j as Le,k as Re,l as ze,lt as Be,m as Ve,n as He,nt as Ue,o as We,ot as Ge,p as Ke,q as qe,r as Je,rt as Ye,s as Xe,st as Ze,tt as Qe,u as $e,ut as et,v as tt,x as nt,y as rt,z as it}from"./motion.e0undqj7.mjs";function at(e){return typeof e==`function`}function ot(e){return typeof e==`boolean`}function z(e){return typeof e==`string`}function B(e){return Number.isFinite(e)}function st(e){return Array.isArray(e)}function V(e){return typeof e==`object`&&!!e&&!st(e)}function ct(e){for(let t in e)return!1;return!0}function lt(e){return e===void 0}function ut(e){return e===null}function dt(e){return e==null}function ft(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function pt(e){return V(e)&&at(e.return)}function mt(e){return V(e)&&at(e.then)}function ht(e){return e instanceof Promise}function gt(e){return`url('${_t(e)}')`}function _t(e){return`data:image/svg+xml,${e.replaceAll(`#`,`%23`).replaceAll(`'`,`%27`).replaceAll(`"`,`%22`)}`}function vt(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 yt(e,t,n){if(Vv.has(e))return;let r=Promise.resolve().then(t).then(t=>(Vv.set(e,t),t)).catch(t=>{throw Vv.delete(e),console.warn(`Failed to preload lazy module from ${n}`,t),t});r.catch(Nv),Vv.set(e,r)}function bt(e,t){Pv&&(Hv.set(e,t),Uv.has(e)&&yt(e,t,`registered loader ${e}`))}function xt(){if(!Pv)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(Wv),i=r?e.slice(Wv.length):e;if(!i)continue;Uv.add(i);let a=Hv.get(i);a?yt(i,a,`registered loader ${i}`):r&&yt(i,()=>import(n),n)}}function St(e){return typeof e==`object`&&!!e&&!y(e)&&Kv in e}function Ct(e,t){if(t in e)return e[t];throw Error(`Module does not contain export '${t}'`)}function wt(e,t=`default`,n){n&&bt(n,e);let r,i,a,o=()=>{if(i||!n||!Vv.has(n))return;let e=Vv.get(n);ht(e)?s(()=>e):i=Ct(e,t)},s=e=>i?Promise.resolve(i):(r||=e().then(e=>{let n=Ct(e,t);return i=n,n}).catch(e=>{a=e}),r),c=!1,l=b(function(t,r){if(d(()=>{c=!0},[]),a)throw a;if(o(),n!==void 0&&Gv!==void 0&&Gv.add(n),!i)throw s(e);return _(i,{ref:r,...t})});return l.preload=()=>(o(),s(e)),l.getStatus=()=>({hasLoaded:i!==void 0,hasRendered:c}),l}function Tt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Et(e){return e===null||!(Jv in e)?!1:typeof e.equals==`function`}function Dt(e,t){return e===t||e!==e&&t!==t}function Ot(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Dt(e[r],t[r]))return!1;return!0}function kt(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Ft(e[r],t[r],!0))return!1;return!0}function At(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!Dt(r,t.get(n)))return!1;return!0}function jt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!Ft(r,t.get(n),!0))return!1;return!0}function Mt(e,t){if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n))return!1;return!0}function Nt(e,t){let n=qv(e);if(n.length!==qv(t).length)return!1;for(let r of n)if(!Tt(t,r)||!(r===`_owner`&&Tt(e,`$$typeof`)&&e.$$typeof)&&!Dt(e[r],t[r]))return!1;return!0}function Pt(e,t){let n=qv(e);if(n.length!==qv(t).length)return!1;for(let r of n)if(!Tt(t,r)||!(r===`_owner`&&Tt(e,`$$typeof`)&&e.$$typeof)&&!Ft(e[r],t[r],!0))return!1;return!0}function Ft(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?kt(e,t):Ot(e,t);if(i!==a)return!1;let o=e instanceof Map,s=t instanceof Map;if(o&&s)return n?jt(e,t):At(e,t);if(o!==s)return!1;let c=e instanceof Set,l=t instanceof Set;if(c&&l)return Mt(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?Et(e)&&Et(t)?e.equals(t):n?Pt(e,t):Nt(e,t):!1}function It(e,t,n=!0){try{return Ft(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 Lt(e){return p.useCallback(t=>e[t],[e])}function Rt({api:e,children:t}){return _(Yv.Provider,{value:e,children:t})}function zt(){return p.useContext(Yv)}function Bt({routes:e,children:t}){let n=Lt(e),r=c(()=>({getRoute:n}),[n]);return _(Yv.Provider,{value:r,children:t})}function Vt(){let e=zt(),t=C(Xv),n=t?.routeId??e.currentRouteId,r=t?.routeId?t.pathVariables:e.currentPathVariables,i=t?.routeId?void 0:e.currentCanonicalPathVariables,a=n?e.getRoute?.(n):void 0;return c(()=>{if(!(!n||!a))return{...a,id:n,pathVariables:r,canonicalPathVariables:i}},[i,n,r,a])}function Ht(){let e=Vt();if(e)return`${e.id}-${JSON.stringify(e.pathVariables)}`}function Ut(e){let t=Vt(),n=p.useRef(t);It(n.current,t)||!t||(n.current=t,e(t))}function Wt(e){let t=zt();if(e)return t.getRoute?.(e)}function Gt(e,t){if(t&&e)return e.elements&&t in e.elements?e.elements[t]:t}function Kt(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?Gt(r,e):e,[e,r])}function Jt(){return Vt()?.pathVariables}function H(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 U(e,t){throw t instanceof Error?t:Error(t===void 0?e?`Unexpected value: ${e}`:`Application entered invalid state`:String(t))}function Yt(e){return e===null||typeof e!=`object`&&typeof e!=`function`}function Xt(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===dy}function Zt(e){return Object.prototype.toString.call(e).slice(8,-1)}function Qt(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 $t(e){let t=``,n=0,r=e.length;for(let i=0;iObject.getOwnPropertyDescriptor(e,t).enumerable)}function tn(e){return fy.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function nn(e){return!(!Number.isInteger(e)||e<0||e>ly)}function rn(e){return!(!Number.isInteger(e)||e<0||e>cy)}function an(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t57)return!1}return nn(+e)}function on(e){let t=Object.keys(e);for(var n=t.length-1;n>=0&&!an(t[n]);n--);return t.length=n+1,t}function sn(e){return new Uint8Array(e).toBase64()}function cn(e){return Uint8Array.fromBase64(e).buffer}function ln(e){return Buffer.from(e).toString(`base64`)}function un(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function dn(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",${$t(n.toString())}]`;break;case`URLSearchParams`:u=`["URLSearchParams",${$t(n.toString())}]`;break;case`RegExp`:let{source:r,flags:i}=n;u=i?`["RegExp",${$t(r)},"${i}"]`:`["RegExp",${$t(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+=ny;else{let t=on(n),r=t.length,i=String(n.length).length;if((n.length-r)*3>4+i+r*(i+1)){u=`[`+sy+`,`+n.length;for(let e=0;e0)throw new uy(`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 uy(`Cannot stringify objects with __proto__ keys`,o,n,t);o.push(tn(e)),u+=`,${$t(e)},${c(n[e])}`,o.pop()}u+=`]`}else{u=`{`;let e=!1;for(let r of Object.keys(n)){if(r===`__proto__`)throw new uy(`Cannot stringify objects with __proto__ keys`,o,n,t);e&&(u+=`,`),e=!0,o.push(tn(r)),u+=`${$t(r)}:${c(n[r])}`,o.pop()}u+=`}`}}}return r[l]=u,l}let l=c(t);return l<0?`${l}`:r}function _n(e){let t=typeof e;return t===`string`?$t(e):e===void 0?ty.toString():e===0&&1/e<0?oy.toString():t===`bigint`?`["BigInt","${e}"]`:String(e)}function vn(e,t,n=`lazy`){switch(_y.__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 yn(e){return z(e)&&(e===``||yy.test(e))}function bn(){return{[by.QueryCache]:new Map,[by.CollectionUtilsCache]:new Map}}function xn(){if(!Pv)return;if(xy!==void 0)return xy;let e=document.getElementById(`__framer__handoverData`);if(e){try{xy=pn(e.text)??bn()}catch(e){xy=bn(),console.warn(`Failed to parse handover data. Falling back to network.`,e)}return Lv(()=>{e?.remove(),e=null}),xy}}function Sn(e,t){if(console.warn(vt(`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;vn(`published_site_load_error`,{message:String(e),stack:t})}}function Cn(e,t){let n=xn();return n?n[e].has(t):!1}function wn(e,t){let n=xn();if(!n)return;let r=n[e];if(!r.has(t))return;let i=r.get(t);return r.delete(t),i}function Tn(e){return e?.id??Qv}function En(e,t,n,r){return`${e}|${t}|${n}|${r}`}function Dn(e){return t=>{if(!e)return;let n=e[t];if(!n)return;if(Ty.has(n))return Ty.get(n);let r=new Dy(n,t);return Ty.set(n,r),r}}function On({children:e,collectionUtils:t}){let n=c(()=>({get:Dn(t)}),[t]);return _(Ey.Provider,{value:n,children:e})}function kn(){return C(Ey)}function An(e){return new Promise(t=>{setTimeout(t,e)})}function jn(){return N===void 0?void 0:N}function Mn(){let e=jn();return e?Oy.test(e.platform):!1}function Nn(){let e=jn();return e?ky.test(e.platform)?!0:Ay.test(e.platform)&&e.maxTouchPoints!=null&&e.maxTouchPoints>2:!1}function Pn(){return Mn()||Nn()}function Fn(){let e=jn();return e?jy.test(e.userAgent):!1}function In(){let e=jn();return e?My.test(e.userAgent)&&Ny.test(e.vendor)&&!Fn():!1}function Ln(){let e=jn();return e?Py.test(e.userAgent)&&Fy.test(e.vendor):!1}function Rn(){let e=jn();return e?Iy.test(e.userAgent):!1}function zn(){return typeof document==`object`}function Bn(){let e=jn();if(!e)return-1;let t=Ly.exec(e.userAgent);return t?.[1]?parseFloat(t[1]):-1}function Vn(){let e=jn();return e?Ry.test(e.userAgent):!1}function Hn(){return!1}function Un(){let e=jn();return e&&zy.test(e.userAgent)?`tablet`:e&&By.test(e.userAgent)?`phone`:`desktop`}function Wn(){return Un()===`desktop`}function Gn(e){return Pn()?e.metaKey:e.ctrlKey}function Kn(){}async function qn(){}function Jn(e){return typeof e==`function`?e():e}function Yn(e,t){return Wy[e]>Wy[t]}function Xn(){if(!(typeof scheduler>`u`))return scheduler}function Zn(e,t){let n=e?.priority,r=Xn();return n===`background`?t?.()??An(1):r?.yield?r.yield(e).catch(Kn):r?.postTask?r.postTask(Kn,e).catch(Kn):t?t():n===`user-blocking`?Gy:An(0)}function Qn(e,t,r){let i=-1/0,a,o=new Set;function s(){for(let e of o)e();o.clear()}function c(){return document.hidden?(s(),!0):!1}function l(){zn()&&(document.addEventListener(`visibilitychange`,c),n.addEventListener(`pagehide`,s))}function u(n){return new Promise(r=>{setTimeout(r,Ky),e(()=>{Zn(n,t).then(r)})})}function d(e){return zn()?new Promise(t=>{let n=!0,r=()=>{n&&(n=!1,o.delete(r),t())};o.add(r),c()||l(),e.then(r,r)}):e}function f(e,n){let{continueAfter:r,ensureContinueBeforeUnload:i,...a}=e,o=n??r===`paint`?u(a):Zn(a,t);return i?d(o):o}function p(e,t,n){n&&e.pendingPaintYieldCount++;let r=f(t,n),o=t.signal,s=!0,c=t=>{s&&(s=!1,o?.removeEventListener(`abort`,l),t&&(i=performance.now()),n&&e.pendingPaintYieldCount--,a===e&&e.pendingPaintYieldCount===0&&(a=void 0))},l=()=>c(!1);return o?.aborted?l():o?.addEventListener(`abort`,l,{once:!0}),r.then(()=>c(!0),()=>c(!0)),r}function m(e,t){let n=a;if(!n){let r=performance.now(),o=t??(e.priority===`user-blocking`?Vy:Hy),s=zn()&&document.hidden?Uy:o;if(r-i0||r?.()!==!1);return p(n,e,o)}function h(e){let{batch:n,batchDuration:r,...i}=e??{};return!zn()&&!t?n?void 0:Gy:n?m(i,r):f(i)}return h}function $n(e,t=!1){let r=``;if(n!==void 0)if(t)r=n.location.search;else{let e=n.history?.state?.queryParamBackAnchorSearch;r=e===void 0?n.location.search:e===``?``:`?${e}`}return r?er(r,e):e}function er(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!==Yy&&c.append(e,t);let u=c.toString();return u===``?r+i:o+`?`+u+i}async function tr(e,t,n,r,i,a,o){let s=e,c=!1,l={...a},u=Array.from(s.matchAll(Xy)),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||!z(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=ht(p)?await p:p;if(!m)return d;let h=f.getSlugByRecordId(m,n),g=ht(h)?await h:h;if(!g){c=!0;let e=f.getSlugByRecordId(m,r),t=ht(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;ee===s):void 0;if(!c||c.id===e.id)return{contentLocaleId:s};let{pathVariables:l}=await rr({currentLocale:e,nextLocale:c,defaultLocale:t,route:a,routeId:o,pathVariables:i,collectionUtils:n,preserveQueryParams:!1});return It(l??{},i??{},!1)?{contentLocaleId:s}:{contentLocaleId:s,canonicalPathVariables:l}}function sr(){return p.useContext($y)}function cr(){return sr().activeLocale?.code??`en-US`}function lr(){return p.useContext(eb)}function ur(){let e=kn(),{getRoute:t}=zt(),{activeLocale:n,locales:r}=sr();return l((i,a,o)=>{if(!i||!t)return;let s=t(i),{pathVariables:c}=a;return fr(s,{routeId:i,pathVariables:c,locale:a.locale??n??void 0,locales:r,collectionUtils:e},o)},[t,e,n,r])}function dr(e,t=!0){let n=ur();d(()=>{if(!(!t||!tb))for(let t of e)n(t,{})},[e,t,n])}async function fr(e,t,n={}){if(!tb||!e)return;let{priority:r=`background`,yieldBeforePreload:i=!0,shouldLoadRouteData:a=!0}=n,o=e.page;if(!o||!St(o))return;let s=a&&!!t;if(!(o.getStatus().hasLoaded&&!s)){i&&await Jy({priority:r});try{let n=await o.preload();s&&t&&n&&await pr(n,e,t,r)}catch{}}}async function pr(e,t,n,r){let i=e.loader;if(!i?.load)return;let{canonicalPathVariables:a}=await or({activeLocale:n.locale??null,defaultLocale:n.locales?.find(e=>e.id===Qv),collectionUtilsCache:n.collectionUtils,locales:n.locales??[],pathVariables:n.pathVariables,route:t,routeId:n.routeId}),o={signal:n.signal??new AbortController().signal,pathVariables:n.pathVariables??{},canonicalPathVariables:a,routeId:n.routeId,locale:n.locale,priority:r,collectionUtils:n.collectionUtils};try{await i.load({},o)}catch{}}function mr(e,t){return e.replace(Xy,(e,n)=>{let r=t[n];return typeof r!=`string`||r.length===0?e:encodeURIComponent(r)})}function hr(){if(nb)return;nb=!0;let e=!1,t=()=>{e=!0};n.addEventListener(`popstate`,t,{once:!0}),queueMicrotask(()=>{if(n.removeEventListener(`popstate`,t),e){let e=`Popstate called synchronously during pushState(). Please report this to the Framer team.`;console.error(e),vn(`published_site_load_recoverable_error`,{message:e})}})}function gr({children:e,value:t}){return _(rb.Provider,{value:t,children:e})}function _r(){return p.useContext(rb)}function vr(e,t,{global:n,routes:r}){return r[e]?.[t]||n}function yr(e){let t=ib,n=e.next(0),r=[n.value];for(;!n.done&&t{Ce.render(()=>{performance.mark(`framer-vt-remove`);let e=document.getElementById(ub);e&&document.head.removeChild(e)})})}function jr(){return!!document.startViewTransition}function Mr(e){return new Promise(t=>{Ce.render(()=>{performance.mark(`framer-vt-style`),kr(e),t()})})}async function Nr(e,t,n){if(!jr()){e();return}if(await Mr(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(fb),Promise.all([r.ready,r.finished]).then(()=>{performance.mark(`framer-vt-finished`),Ar()}).catch(fb),r}function Pr(){let e=_r(),t=w(void 0);return d(()=>{t.current&&=(t.current(),void 0)}),l((n,r,i,a)=>{let o=vr(n,r,e);if(o){let e=new Promise(e=>{t.current=e});return Nr(async()=>{i(),await e},o,a)}i()},[e])}function Fr(e,t){Lv(()=>{let n=document.querySelector(`link[rel='canonical']`);if(!n)return;let r=new URL(e,t);r.search=``,n.setAttribute(`href`,r.toString())})}function Ir(e,t){Lv(()=>{let n=document.querySelector(`link[rel='canonical'][data-framer-generated-canonical]`);if(!e||document.querySelector(`link[rel='canonical']:not([data-framer-generated-canonical])`)){n?.remove();return}let r=new URL(e,t??document.baseURI);r.search=``,r.hash=``;let i=n??document.createElement(`link`);i.setAttribute(`rel`,`canonical`),i.setAttribute(`data-framer-generated-canonical`,``),i.setAttribute(`href`,r.toString()),document.head.append(i)})}function Lr(e){Lv(()=>{let t=Array.from(document.querySelectorAll(`link[rel='alternate'][hreflang][data-framer-generated-hreflang]`));if(document.querySelector(`link[rel='canonical']:not([data-framer-generated-canonical])`)){for(let e of t)e.remove();return}let n=new Map;for(let e of t){let t=e.getAttribute(`hreflang`);t&&n.set(t,e)}let r=new Set;for(let{href:t,hrefLang:i}of e){r.add(i);let e=n.get(i)??document.createElement(`link`);e.setAttribute(`rel`,`alternate`),e.setAttribute(`data-framer-generated-hreflang`,``),e.setAttribute(`href`,t),e.setAttribute(`hreflang`,i),document.head.append(e)}for(let e of t){let t=e.getAttribute(`hreflang`);(!t||!r.has(t))&&e.remove()}})}function Rr(e,t,n,i=r){i(()=>{let t=async e=>(await Jy({...n,continueAfter:`paint`}),e()),r=t(e);return()=>{(async()=>{let e=await r;e&&t(e)})()}},t)}function zr(e){let t=w(new Set);return Rr(()=>{for(let e of t.current)e();t.current.clear()},void 0,{priority:`user-blocking`}),l(n=>{let r,i=new Promise(e=>{r=e,t.current.add(e)});if(!e)return{promise:i,measureDetail:n,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:n}))}).catch(e=>{console.error(e)}),{promise:i,measureDetail:n,ignore:()=>{s=!0,r&&(t.current.delete(r),r())}}},[e])}function Br(e){return V(e)&&`routeId`in e}function Vr(e=n.history.state){return Br(e)?e:void 0}function Hr(e){return e?.entryId}function Ur(e){hb=e}function Wr(){return hb}function Gr(){return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function Kr(e,t){return qr(e,Hr(e)??Hr(t))}function qr(e,t=Gr()){return{...e,entryId:t}}function Jr(e,t){performance.mark(`framer-history-replace`),Ur(Kr(e,Vr())),t&&Fr(t,n.location.href);let r=!t||t===n.location.href?n.History.prototype.replaceState.bind(n.history):n.history.replaceState.bind(n.history);try{r(hb,``,t)}catch{}}function Yr(e){performance.mark(`framer-history-replace`),Ur(qr(e)),History.prototype.replaceState.call(n.history,hb,``,void 0)}function Xr(e){let t=n.navigation?.transition;if(!t){e();return}let r=()=>{let r=n.navigation.transition;if(r&&r!==t){Xr(e);return}e()};t.finished.then(r,r)}function Zr(e,t){performance.mark(`framer-history-push`),Ur(qr(e)),Fr(t,n.location.href),hr();try{n.history.pushState(hb,``,t)}catch{}}function Qr({disabled:e,routeId:t,initialPathVariables:i,initialLocaleId:a,initialContentLocaleId:o,initialCanonicalPathVariables:s}){r(()=>{if(e)return;performance.mark(`framer-history-set-initial-state`);let r=n.location.hash?n.location.hash.slice(1):void 0;Jr({...Vr(),routeId:t,hash:r,pathVariables:i,localeId:a,contentLocaleId:o,canonicalPathVariables:s})},[])}function $r(e,t,r){let i=Pr(),a=zr(`framer-route-change`),{onHistoryTraversal:o,usesCustomScrollRestoration:s}=e,c=s?`manual`:`after-transition`,u=w(void 0),f=l(()=>{u.current?.resolve(),u.current=void 0},[]),p=l(async({state:e})=>{if(!Br(e))return;let s=a({popstate:!0}),l=Kt();s.promise.finally(l),Hr(Wr())!==(Hr(e)??Hr(Vr()))&&o(),Ur(e);let{routeId:u,hash:d,pathVariables:p,localeId:m,contentLocaleId:h,canonicalPathVariables:g}=e,_=z(d)?d:n.location.hash?n.location.hash.slice(1):void 0,v=!1,y=()=>{v||=(r(u,z(m)?m:void 0,_,n.location.pathname+n.location.search+n.location.hash,V(p)?p:void 0,h,g,!0,s,!1),!0)},b=c===`after-transition`;await Promise.resolve(i(t.current,u,y)).then(e=>e?.updateCallbackDone).catch(y).finally(()=>{b||f()}),await s.promise,b&&f(),await n.navigation?.transition?.finished.catch(Nv),mb(),Fr(n.location.href)},[t,a,o,f,r,i,c]),m=l(e=>{if(e.navigationType!==`traverse`||!e.canIntercept)return;let t=e.destination?.getState();Br(t)&&e.intercept({async handler(){await new Promise((e,t)=>{u.current={resolve:e,reject:t}}),u.current=void 0},scroll:c})},[c]);d(()=>(n.addEventListener(`popstate`,p),gb&&n.navigation.addEventListener(`navigate`,m),()=>{n.removeEventListener(`popstate`,p),gb&&n.navigation.removeEventListener(`navigate`,m)}),[p,m])}async function ei(e,t,r,i){if(!e.path||!t)return!1;let a=i+nr(mr(e.path,t),r.slug);return(await fetch(a,{method:`HEAD`,redirect:`manual`})).type===`opaqueredirect`?(n.location.href=n.location.origin+a,!0):!1}function ti(){let e=kn();return l(t=>ni({...t,collectionUtils:e}),[e])}async function ni({sitePrefix:e,...t}){let n=await rr(t);if(n){try{localStorage.preferredLocale=t.nextLocale.code}catch{}try{if(!z(n.path))throw Error(`Expected result.path to be a string`);if(n.isMissingInLocale&&await ei(t.route,n.pathVariables,t.nextLocale,e))return}catch{}return n}}function ri(e,t){let n=Hr(Vr());n&&Xr(()=>{let r=Vr();if(!r||Hr(r)!==n)return;let i={...r.paginationInfo,[e]:t};Jr({...r,paginationInfo:i})})}function ii(e){let t=w(Promise.resolve()),r=w(),i=l(n=>{if(n.navigationType===`traverse`||!n.canIntercept)return;let i=r.current;i?.signal.addEventListener(`abort`,()=>{i.abort(`user aborted`)}),n.intercept({handler:()=>t.current,scroll:e?`manual`:`after-transition`})},[e]);return l((e,a,o)=>{if(!gb){o?.();return}t.current=e,r.current=a,n.navigation.addEventListener(`navigate`,i),o?.(),e.finally(()=>{t.current===e&&(r.current=void 0,n.navigation.removeEventListener(`navigate`,i))})},[i])}function ai(e){let t=0,n=e.length;for(;tt&&e[n-1]===`-`;)n--;return e.slice(t,n)}function oi(e){return ai(e.trim().toLowerCase().replace(_b,`-`))}function si({children:e,value:t}){return _(yb.Provider,{value:t,children:e})}function ci(){return C(yb)}function li(e,t){let n=o(()=>({inputs:t,result:e()}))[0],r=w(!0),i=w(n),a=r.current||t&&i.current.inputs&&It(t,i.current.inputs,!1)?i.current:{inputs:t,result:e()};return d(()=>{r.current=!1,i.current=a},[a]),a.result}function ui(e,t){return li(()=>e,t)}function di(){return n.location.search}function fi(){return``}function pi(e){return xb.add(e),n.addEventListener(`popstate`,e),()=>{xb.delete(e),n.removeEventListener(`popstate`,e)}}function mi(){for(let e of xb)e()}function hi({children:e,routerRenderKey:t,isNavigationCommitPending:r}){let i=ci()===`preview`,[a,s]=o(``),c=w(t);bb(()=>{c.current=t},[t]);let d=M(pi,di,fi),f=u(d),p=t!==u(t),m=i?a:p?d:f,g=l(async e=>{if(i){h(()=>{s(t=>e(new URLSearchParams(t)).toString())});return}let a=r(),o=t;if(await Jy({continueAfter:`paint`}),a||r()||c.current!==o)return;let l=Vr();if(!l)return;let u=new URL(n.location.href),d=e(u.searchParams).toString();u.search=d;let f=l.queryParamBackAnchorSearch,p=n.location.search.slice(1),m=f===void 0&&d!==p,g=f!==void 0&&d===f,_={...l,queryParamBackAnchorSearch:g?void 0:f??(m?p:void 0)},v=u.toString();m||g?Zr(_,v):Jr(_,v),mi()},[r,i,t]),v=li(()=>({urlSearchParams:new URLSearchParams(m),replaceSearchParams:g}),[m,g]);return _(Sb.Provider,{value:v,children:e})}function gi(e,t){if(!e.startsWith(`/`)||!t.startsWith(`/`))throw Error(`from/to paths are expected to be absolute`);let[n]=_i(e),[r,i]=_i(t),a=vi(n,r);return a===``&&(a=`.`),!a.startsWith(`.`)&&!a.startsWith(`/`)&&(a=`./`+a),a+`/`+i}function _i(e){let t=e.lastIndexOf(`/`);return[e.substring(0,t+1),e.substring(t+1)]}function vi(e,t){if(e===t||(e=`/`+yi(e),t=`/`+yi(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=ra){if(Tb(t,1+s)===wb)return Db(t,1+s+1);if(s===0)return Db(t,1+s)}else r>a&&(Tb(e,1+s)===wb?o=s:s===0&&(o=0));let c=``;for(s=1+o+1;s<=n;++s)(s===n||Tb(e,s)===wb)&&(c+=c.length===0?`..`:`/..`);return`${c}${Db(t,1+o)}`}function yi(e){let t=``,n=0,r=-1,i=0,a=0;for(let o=0;o<=e.length;++o){if(o2){let e=Eb(t,kb);e===-1?(t=``,n=0):(t=Db(t,0,e),n=t.length-1-Eb(t,kb)),r=o,i=0;continue}else if(t.length!==0){t=``,n=0,r=o,i=0;continue}}Ob&&(t+=t.length>0?`${kb}..`:`..`,n=2)}else t.length>0?t+=`${kb}${Db(e,r+1,o)}`:t=Db(e,r+1,o),n=o-r-1;r=o,i=0}else a===Cb&&i!==-1?++i:i=-1}return t}function bi(e){if(!e)return``;let t;try{t=new URL(e)}catch{return``}return t.pathname===`/`||n.location.origin!==t.origin?``:t.pathname.endsWith(`/`)?t.pathname.slice(0,-1):t.pathname}function xi(e,t){let n=e.replace(Xy,(e,n)=>t[n]??e);if(!n.includes(`:`))return n}function Si(e,t,n){let r=Object.assign({},t.elements,n);if(e.startsWith(`:`)){let n=e.slice(1),i=t.elementPatterns?.[n];if(i)return xi(i,r)}if(e.includes(`:`))return xi(e,r);let i=t.elements?.[e];return i?xi(i,r):e}function Ci(e,{currentRoutePath:t,currentRoutePathLocalized:r,currentPathVariables:i,hash:a,pathVariables:o,hashVariables:s,relative:c=!0,preserveQueryParams:l,onlyHash:u=!1,siteCanonicalURL:d,localeId:f,localeSlug:p}){let m;if(a&&e&&(m=Si(a,e,s)),u)return m??``;let h=t??`/`;r&&f&&(h=r[f]??h),i&&(h=h.replace(Xy,(e,t)=>String(i[t]||e)));let g=(f?e?.pathLocalized?.[f]:void 0)??e?.path??`/`;o&&(g=g.replace(Xy,(e,t)=>String(o[t]||e)));let _=!!(h===g&&m),v=!_&&o!==void 0&&t!==void 0&&e?.path!==void 0&&t===e.path&&h!==g;if(c)if(jb.has(h)&&n!==void 0){let e=bi(d);g=gi(n.location.pathname,e+g)}else g=gi(h,g);else g=nr(g,p);let y=_||v;return(l||y)&&(g=$n(g,y)),m&&(g=`${g}#${m}`),g}function wi(){let e=new Event(`change`,{bubbles:!0});return e[Mb]=1,e}function Ti(){let e=new MouseEvent(`click`,{bubbles:!0});return e[Mb]=1,e}function Ei(e){return e instanceof HTMLInputElement&&(e.type===`checkbox`||e.type===`radio`)?`checked`:`value`}function Di(e){return Mb in e&&e[Mb]===1}function Oi(e){return Nb in e.nativeEvent&&e.nativeEvent[Nb]===1}function ki(e){let t=w(!1),n=w(null),r=M(Rv,Bv,Pb);return d(()=>{if(!r)return;let i=n.current;if(t.current||!i)return;t.current=!0;let a=Ei(i),o=i[a];if(o===e)return;if(i.type===`radio`&&o===!0){i.checked=!1,i.dispatchEvent(Ti());return}if(a===`checked`){let e=Ti();e[Nb]=1,i.dispatchEvent(e),i.dispatchEvent(Ti());return}if(i.nodeName===`SELECT`){i.dispatchEvent(wi());return}let s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),a)?.set;if(!s)return;s.call(i,``);let c=wi();c[Nb]=1,i.dispatchEvent(c),queueMicrotask(()=>{s.call(i,o),i.dispatchEvent(wi())})},[r]),n}function Ai(){if(!Fb)return;Lb=!0,performance.mark(`framer-react-event-handling-start`);let e={capture:!0},t=document.body;Fb.forEach(n=>t.addEventListener(n,Ib,e))}function ji(){return d(()=>{if(!Lb||!Fb)return;let e={capture:!0},t=document.body;Fb.forEach(n=>t.removeEventListener(n,Ib,e)),Fb=void 0,performance.mark(`framer-react-event-handling-end`)},[]),null}function Mi(e){let t=!1;return function(...n){if(!t)return t=!0,e.apply(this,n)}}function Ni(e,t,n){try{performance.measure(e,t,n)}catch(t){console.warn(`Could not measure ${e}`,t)}}function Pi(){rx=new nx,rx.render.markStart()}function Fi(){j(()=>{rx?.useInsertionEffects.markRouterStart()},[]),r(()=>{rx?.useLayoutEffects.markRouterStart()},[]),d(()=>{rx?.useEffects.markRouterStart()},[])}function Ii(){j(()=>{rx?.render.markEnd(),rx?.useInsertionEffects.markStart()},[]),r(()=>{if(rx?.useLayoutEffects.markStart(),document.visibilityState!==`visible`){ix=!0;return}Ce.read(()=>{rx?.browserRendering.requestAnimationFrame.markStart(),rx?.unattributedHydrationOverhead.measure()})},[]),d(()=>{rx?.useEffects.markStart(),rx?.browserRendering.hasStarted||(rx?.mutationEffects.measure(),rx?.useEffects.markAreSynchronous())},[])}function Li(){j(()=>{rx?.useInsertionEffects.markEnd()},[]),r(()=>{rx?.useLayoutEffects.markEnd(),!(ix||document.visibilityState!==`visible`)&&Ce.read(()=>{rx?.browserRendering.requestAnimationFrame.markEnd(),Jy().then(()=>{rx?.browserRendering.layoutStylePaint.markEnd()})})},[]),d(()=>{rx?.useEffects.markEnd()},[])}function Ri(){return Ii(),null}function zi(){return Li(),null}function Bi(e,t){let n={style:t,"data-framer-root":``};return p.isValidElement(e)?p.cloneElement(e,n):_(e,{...n})}function Vi(){return cx}function Hi(e){if(lx?.lastRoutes!==e){let t={},n={},r=[],i={},a=e;for(let r in e){let i=e[r];H(i,`route must be defined`);let{path:a,pathLocalized:o}=i;if(a&&(t[a]={path:a,depth:Gi(a),routeId:r},o))for(let e in o){let t=o[e];H(t,`localizedPath must be defined`);let i=Gi(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}lx={pathRoutes:t,pathRoutesLocalized:n,paths:r,pathsLocalized:i,lastRoutes:a}}return{pathRoutes:lx.pathRoutes,paths:lx.paths,pathRoutesLocalized:lx.pathRoutesLocalized,pathsLocalized:lx.pathsLocalized}}function Ui(e,t,n=!0,r=Vi()){return Wi(e,t,r,n)}function Wi(e,t,n,r=!0){let{pathRoutes:i,paths:a,pathRoutesLocalized:o,pathsLocalized:s}=Hi(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=Ki(t,n.path);if(e.isMatch)return{routeId:n.routeId,localeId:l,pathVariables:e.pathVariables}}}let d=i[t];if(d){let e=Ki(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=Ki(t,n);if(e.isMatch)return{routeId:r,localeId:l,pathVariables:e.pathVariables}}}for(let{path:e,routeId:n}of a){let r=Ki(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 Gi(e){let t=e.replace(/^\/|\/$/gu,``);return t===``?0:t.split(`/`).length}function Ki(e,t){let n=[],r=qi(t).replace(Xy,(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;e`u`||!(`PerformanceServerTiming`in n))return;let t=performance.getEntriesByType(`navigation`)[0]?.serverTiming;if(!t||t.length===0)return;let r=t.find(t=>t.name===e);if(r)return{name:r.name,description:r.description}}function Qi(){let e=Zi(`abtests`);return new URLSearchParams(e?.description)}function $i(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 ea(e,t){for(let[n,r]of t)$i(e,n,r)}function ta(e){for(let t in e)e[t]?.abTestingParentId&&delete e[t]}function na(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 ra(e,t){if(n===void 0)return t;let r=t;if(t){na(e,t);let n=e[t]?.abTestingParentId;n&&(r=n)}return ea(e,Qi()),ta(e),r}function ia(e){d(()=>{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 aa(e,...t){ux.has(e)||(ux.add(e),console.warn(e,...t))}function oa(e,t,n){aa(`Deprecation warning: ${e} will be removed in version ${t}${n?`, use ${n} instead`:``}.`)}function sa(e){return typeof e==`object`&&!!e&&px in e&&e[px]instanceof Function&&mx in e&&e[mx]instanceof Function}function ca(e,t){return{interpolate(e,n){let r=e.get(),i=n.get(),a=fx(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 la(e,t){let n=10**Math.round(Math.abs(t));return Math.round(e*n)/n}function ua(e,t){return t===0?Math.round(e):(t-=t|0,t<0&&(t=1-t),Math.round(e-t)+t)}function da(e){return Math.round(e*2)/2}function fa(e,t){return{x:e,y:t}}function pa(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 wa(e,t,n){let r,i,a;if(e=Da(e,360),t=Da(t*100,100),n=Da(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=Ca(s,o,e+1/3),i=Ca(s,o,e),a=Ca(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Ta(e,t,n){e=Da(e,255),t=Da(t,255),n=Da(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 Ra({r:e,g:t,b:n,a:r}){return{r:La(e),g:La(t),b:La(n),a:r}}function za({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 _y.location.origin===`https://screenshot.framer.invalid`}function Za({children:e}){if(C(Rx).top)return _(O,{children:e});let t=w({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{},count:{byId:{},byName:{}}}),n=w({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}}),r=w(new Set).current,i=w({getLayoutId:l(({id:e,name:i,duplicatedFrom:a})=>{if(!e)return null;let o=i?`byName`:`byId`,s=t.current[o][e];if(s)return s;let c=i||e;if(!a&&!r.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),r.add(c),c;let l;if(a?.length)for(let s=a.length-1;s>=0;s--){let c=a[s];H(!!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===i;d&&!r.has(d)&&(!i||n)&&(l=[d,c])}let f=u?t.current.byLayoutId[u]:void 0,p=!f||f===i;if(u&&!r.has(u)&&(!i||p))return n.current[o][e]=u,n.current.byLastId[c]=u,r.add(u),u}let u=t.current.byLastId[e];if(u&&!r.has(u))return r.add(u),n.current.byId[e]=u,u;if(l){let[t,i]=l;return n.current[o][e]=t,n.current.byLastId[i]=t,r.add(t),t}let d=t.current.byPossibleId[e];if(d&&!r.has(d))return r.add(d),n.current.byId[e]=d,d;let f=a?.[0],p=i||f||e,{layoutId:m,value:h}=Qa(p,(t.current.count[o][p]??-1)+1,r);if(t.current.count[o][p]=h,n.current[o][e]=m,a?.length&&!i){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:{}},r.clear()},[]),top:!0,enabled:!0}).current;return _(Rx.Provider,{value:i,children:e})}function Qa(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 $a({enabled:e=!0,...t}){let n=C(Rx),r=c(()=>({...n,enabled:e}),[e]);return _(Rx.Provider,{...t,value:r})}function eo(e){let t=w(null);return t.current===null&&(t.current=e()),t.current}function to(e){let{error:t,file:n}=e,r=n?`Error in ${no(n)}`:`Error`,i=t instanceof Error?t.message:``+t;return T(`div`,{style:Bx,children:[_(`div`,{className:`text`,style:Hx,children:r}),i&&_(`div`,{className:`text`,style:Ux,children:i})]})}function no(e){return e.startsWith(`./`)?e.replace(`./`,``):e}function ro(){let e=J.current();return e===J.canvas||e===J.export}function io(){let[e]=o(()=>ro());return e}function ao(e){let t=Object.create(Object.prototype);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}function oo(e,t){if(e===void 0||t===void 0)return;let n=e,r=t,i=0;t>e&&(n=t,r=e,i=1);let a=n/r,o=[];for(let e of eS){if(n<=e)return o;o.push({maxSideSize:e,width:i===0?e:Math.trunc(e/a)})}return o}function so(e,t){try{let n=new URL(e);return t?n.searchParams.set(`scale-down-to`,`${t}`):n.searchParams.delete(`scale-down-to`),n.toString()}catch{return e}}function co(e,t,n){if(!n||n.length===0||!t.pixelWidth)return;let r=[];for(let t of n){if(t.width`${e} ${t}x`).join(`, `)}}else return{src:n,srcSet:co(n,t,oo(t.pixelWidth,t.pixelHeight))}}function fo(){return{backgroundRepeat:`repeat`,backgroundPosition:`left top`,backgroundSize:`64px auto`,backgroundImage:gt(Zx.imagePlaceholderSvg)}}function po(e){switch(e){case`fit`:return`contain`;case`stretch`:return`fill`;default:return`cover`}}function mo(e,t){let n=e??`center`,r=t??`center`;return n===`center`&&r===`center`?`center`:n+` `+r}function ho(e){return{display:`block`,width:`100%`,height:`100%`,...Qx,objectPosition:mo(e.positionX,e.positionY),objectFit:po(e.fit)}}function go(e){let t=p.useRef(e?`auto`:`async`),n=l(e=>{t.current=`auto`,e.decoding=`auto`},[]),r=l(e=>{n(e.currentTarget)},[n]),i=l(e=>{e?.complete&&n(e)},[n]);return{decoding:t.current,onImageLoad:r,onImageMount:i}}function _o({image:e,containerSize:t,nodeId:n,alt:r,draggable:i,avoidAsyncDecoding:a}){let o=Zx.useImageSource(e,t,n),s=ho(e),{decoding:c,onImageLoad:l,onImageMount:u}=go(a),{srcSet:d,src:f}=`srcSet`in e?{src:o,srcSet:e.srcSet}:uo(e.nodeFixedSize,e,o);return _(`img`,{suppressHydrationWarning:!0,ref:u,decoding:c,fetchpriority:e.fetchPriority,loading:e.loading,width:e.pixelWidth,height:e.pixelHeight,sizes:d?e.sizes:void 0,srcSet:d,src:f,onLoad:l,alt:r??e.alt??``,style:s,draggable:i})}function vo({image:e,containerSize:t,nodeId:n}){let r=p.useRef(null),i=Zx.useImageElement(e,t,n),a=ho(e);return p.useLayoutEffect(()=>{let e=r.current;if(e!==null)return e.appendChild(i),()=>{e.removeChild(i)}},[i]),Object.assign(i.style,a),_(`div`,{ref:r,style:{display:`contents`,...Qx}})}function yo({nodeId:e,image:t,containerSize:n}){let r=p.useRef(null),i=Zx.useImageSource(t,n,e);return p.useLayoutEffect(()=>{let n=r.current;if(n===null)return;let a=ho(t);Zx.renderOptimizedCanvasImage(n,i,a,e)},[e,t,i]),_(`div`,{ref:r,style:{display:`contents`,...Qx}})}function bo({layoutId:e,image:t,...n}){e&&(e+=`-background`);let r=null,i=!!e,a=null;if(z(t.src))if(t.fit===`tile`&&t.pixelWidth&&t.pixelHeight){let e=B(t.backgroundSize)?t.backgroundSize:1,n={width:Math.round(e*t.pixelWidth),height:Math.round(e*t.pixelHeight)},o=da(e*(t.pixelWidth/2)),s=Zx.useImageSource(t,n);r={...nS,backgroundImage:`url(${s})`,backgroundRepeat:`repeat`,backgroundPosition:mo(t.positionX,t.positionY),opacity:void 0,border:0,backgroundSize:`${o}px auto`},a=null,i=!0}else a=J.current()===J.canvas?Zx.canRenderOptimizedCanvasImage(Zx.useImageSource(t))?_(yo,{image:t,...n}):_(vo,{image:t,...n}):_(_o,{image:t,avoidAsyncDecoding:J.current()===J.export,...n});let o=a?nS:r??{...nS,...fo()};return i?_(L.div,{layoutId:e,style:o,"data-framer-background-image-wrapper":!0,children:a}):_(`div`,{style:o,"data-framer-background-image-wrapper":!0,children:a})}function xo(e,t,n=!0){let{borderWidth:r,borderStyle:i,borderColor:a}=e;if(!r)return;let o,s,c,l;if(typeof r==`number`?o=s=c=l=r:(o=r.top||0,s=r.bottom||0,c=r.left||0,l=r.right||0),!(o===0&&s===0&&c===0&&l===0)){if(n&&o===s&&o===c&&o===l){t.border=`${o}px ${i} ${a}`;return}t.borderStyle=e.borderStyle,t.borderColor=e.borderColor,t.borderTopWidth=`${o}px`,t.borderBottomWidth=`${s}px`,t.borderLeftWidth=`${c}px`,t.borderRightWidth=`${l}px`}}function So(e){let t=e.layoutId?`${e.layoutId}-border`:void 0;if(!e.borderWidth)return null;let n={position:`absolute`,left:0,right:0,top:0,bottom:0,...Qx,pointerEvents:`none`};return e.border?(n.border=e.border,_(L.div,{style:n})):(xo(e,n,!1),_(L.div,{"data-frame-border":!0,style:n,layoutId:t}))}function Co(e,t){let{_forwardedOverrideId:n,_forwardedOverrides:r,id:i}=t,a=n??i,o=r&&a?r[a]:void 0;return o&&typeof o==`string`&&(e={...e,src:o}),e}function wo(e){let{background:t,image:n}=e;if(n!==void 0&&t&&!iS.isImageObject(t))return;let r=null;if(r=z(n)?{alt:``,src:n}:fx.get(t,null),iS.isImageObject(r))return Co(r,e)}function To(e){return!e||!Object.keys(e).length&&e.constructor===Object}function Eo(e){return typeof e!=`string`&&typeof e!=`number`}function Do(e){return e!=null&&typeof e!=`boolean`&&!To(e)}function W(e){return Number.isFinite(e)}function Oo(e){return Math.PI/180*e}function ko(e){return lt(e)?!1:e===2||e===5}function Ao(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 jo(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 Mo(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 Mo(e){switch(e){case`minWidth`:case`minHeight`:return-1/0;case`maxWidth`:case`maxHeight`:return 1/0;default:U(e,`unknown constraint key`)}}function No(e,t,n,r){return t.minHeight&&(e=Math.max(jo(`minHeight`,t.minHeight,n,r),e)),t.maxHeight&&(e=Math.min(jo(`maxHeight`,t.maxHeight,n,r),e)),e}function Po(e,t,n,r){return t.minWidth&&(e=Math.max(jo(`minWidth`,t.minWidth,n,r),e)),t.maxWidth&&(e=Math.min(jo(`maxWidth`,t.maxWidth,n,r),e)),e}function Fo(e,t,n,r,i){let a=Po(W(e)?e:lS,n,r,i),o=No(W(t)?t:uS,n,r,i);return W(n.aspectRatio)&&n.aspectRatio>0&&(W(n.left)&&W(n.right)?o=a/n.aspectRatio:W(n.top)&&W(n.bottom)||n.widthType===0?a=o*n.aspectRatio:o=a/n.aspectRatio),{width:a,height:o}}function Io(e,t){return!W(e)||!W(t)?null:e+t}function Lo(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 Ro(e){return!e._constraints||Lo(e)?!1:e._constraints.enabled}function zo(e){let{size:t}=e,{width:n,height:r}=e;return W(t)&&(n===void 0&&(n=t),r===void 0&&(r=t)),W(n)&&W(r)?{width:n,height:r}:null}function Bo(e){let t=zo(e);if(t===null)return null;let{left:n,top:r}=e;return W(n)&&W(r)?{x:n,y:r,...t}:null}function Vo(e,t,n=!0){if(e.positionFixed||e.positionAbsolute)return null;let r=t===1||t===2;if(!Ro(e)||r)return Bo(e);let i=Ho(e),a=Uo(t),o=a?{sizing:a,positioning:a,viewport:null}:null;return cS.toRect(i,o,null,n,null)}function Ho(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=sS.quickfix({left:W(t),right:W(n),top:W(r),bottom:W(i),widthType:Ao(c),heightType:Ao(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 Uo(e){return e===0||e===1||e===2?null:e}function Wo(){return p.useContext(dS).parentSize}function Go(e){return typeof e==`object`}function Ko(e){return Go(e)?e.width:e}function qo(e){return Go(e)?e.height:e}function Jo(e,t){return _(fS,{parentSize:t,children:e})}function Yo(e){return Vo(e,Wo(),!0)}function Xo({width:e,height:t}){return e===`auto`||e===`min-content`||t===`auto`||t===`min-content`}function Zo(e){if(e){if(e.pixelHeight&&e.pixelWidth)return{width:e.pixelWidth,height:e.pixelHeight};if(e.src===void 0)return{width:1,height:1}}}function Qo(e){return e&&e!==`search`&&e!==`slot`&&e!==`template`?L[e]:L.div}function $o(e){let t=!1,n;return{get value(){return t||=(n=e(),!0),n}}}function es(e,t,n=mS){if(!(!e||n.has(e)||typeof document>`u`)){if(n.add(e),!t){if(!hS){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)hS=e.sheet;else{console.warn(`not injecting CSS: injected