var Dk=Object.defineProperty;var jk=(e,t,r)=>t in e?Dk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Nt=(e,t,r)=>jk(e,typeof t!="symbol"?t+"":t,r);function Dy(e,t){for(var r=0;ri[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=r(a);fetch(a.href,l)}})();function di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fc={exports:{}},os={},Vc={exports:{}},_e={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var og;function Ok(){if(og)return _e;og=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function w(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,S={};function b(N,V,X){this.props=N,this.context=V,this.refs=S,this.updater=X||v}b.prototype.isReactComponent={},b.prototype.setState=function(N,V){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,V,"setState")},b.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function T(){}T.prototype=b.prototype;function A(N,V,X){this.props=N,this.context=V,this.refs=S,this.updater=X||v}var I=A.prototype=new T;I.constructor=A,C(I,b.prototype),I.isPureReactComponent=!0;var M=Array.isArray,j=Object.prototype.hasOwnProperty,$={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function z(N,V,X){var J,fe={},ge=null,ee=null;if(V!=null)for(J in V.ref!==void 0&&(ee=V.ref),V.key!==void 0&&(ge=""+V.key),V)j.call(V,J)&&!B.hasOwnProperty(J)&&(fe[J]=V[J]);var Ce=arguments.length-2;if(Ce===1)fe.children=X;else if(1"u")){u=Qa({},t,u),typeof u.expires=="number"&&(u.expires=new Date(Date.now()+u.expires*864e5)),u.expires&&(u.expires=u.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var f in u)u[f]&&(d+="; "+f,u[f]!==!0&&(d+="="+u[f].split(";")[0]));return document.cookie=a+"="+e.write(l,a)+d}}function i(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var l=document.cookie?document.cookie.split("; "):[],u={},d=0;dr()))}function Md(e,t){let r=Tl.get(e);if(!r){r=[!0,new Set],Tl.set(e,r);const i=()=>{r[0]=!1};e.then(i,i)}r[1].add(t)}function _l(e){return typeof(e==null?void 0:e.then)=="function"}function zy(e,t,r){if(!r.p.has(e)){r.p.add(e);const i=()=>r.p.delete(e);t.then(i,i)}}function Fy(e,t,r){var i;const a=new Set;for(const l of((i=r.get(e))==null?void 0:i.t)||[])r.has(l)&&a.add(l);for(const l of t.p)a.add(l);return a}const Bk=(e,t,...r)=>t.read(...r),$k=(e,t,...r)=>t.write(...r),Uk=(e,t)=>{var r;return(r=t.unstable_onInit)==null?void 0:r.call(t,e)},Wk=(e,t,r)=>{var i;return(i=t.onMount)==null?void 0:i.call(t,r)},Hk=(e,t)=>{const r=mt(e),i=r[0],a=r[9];if((oi?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let l=i.get(t);return l||(l={d:new Map,p:new Set,n:0},i.set(t,l),a==null||a(e,t)),l},Gk=e=>{const t=mt(e),r=t[1],i=t[3],a=t[4],l=t[5],u=t[6],d=t[13],f=[],h=m=>{try{m()}catch(y){f.push(y)}};do{u.f&&h(u.f);const m=new Set,y=m.add.bind(m);i.forEach(w=>{var v;return(v=r.get(w))==null?void 0:v.l.forEach(y)}),i.clear(),l.forEach(y),l.clear(),a.forEach(y),a.clear(),m.forEach(h),i.size&&d(e)}while(i.size||l.size||a.size);if(f.length)throw new AggregateError(f)},Kk=e=>{const t=mt(e),r=t[1],i=t[2],a=t[3],l=t[11],u=t[14],d=t[17],f=[],h=new WeakSet,m=new WeakSet,y=Array.from(a);for(;y.length;){const w=y[y.length-1],v=l(e,w);if(m.has(w)){y.pop();continue}if(h.has(w)){if(i.get(w)===v.n)f.push([w,v]);else if((oi?"production":void 0)!=="production"&&i.has(w))throw new Error("[Bug] invalidated atom exists");m.add(w),y.pop();continue}h.add(w);for(const C of Fy(w,v,r))h.has(C)||y.push(C)}for(let w=f.length-1;w>=0;--w){const[v,C]=f[w];let S=!1;for(const b of C.d.keys())if(b!==v&&a.has(b)){S=!0;break}S&&(u(e,v),d(e,v)),i.delete(v)}},Yk=(e,t)=>{var r;const i=mt(e),a=i[1],l=i[2],u=i[3],d=i[6],f=i[7],h=i[11],m=i[12],y=i[13],w=i[14],v=i[16],C=i[17],S=h(e,t);if(lg(S)&&(a.has(t)&&l.get(t)!==S.n||Array.from(S.d).every(([B,z])=>w(e,B).n===z)))return S;S.d.clear();let b=!0;function T(){a.has(t)&&(C(e,t),y(e),m(e))}function A(B){var z;if(jy(t,B)){const re=h(e,B);if(!lg(re))if(Oy(B))Al(e,B,B.init);else throw new Error("no atom init");return El(re)}const Z=w(e,B);try{return El(Z)}finally{S.d.set(B,Z.n),Ly(S.v)&&zy(t,S.v,Z),(z=a.get(B))==null||z.t.add(t),b||T()}}let I,M;const j={get signal(){return I||(I=new AbortController),I.signal},get setSelf(){return(oi?"production":void 0)!=="production"&&!Nd(t)&&console.warn("setSelf function cannot be used with read-only atom"),!M&&Nd(t)&&(M=(...B)=>{if((oi?"production":void 0)!=="production"&&b&&console.warn("setSelf function cannot be called in sync"),!b)try{return v(e,t,...B)}finally{y(e),m(e)}}),M}},$=S.n;try{const B=f(e,t,A,j);return Al(e,t,B),_l(B)&&(Md(B,()=>I==null?void 0:I.abort()),B.then(T,T)),S}catch(B){return delete S.v,S.e=B,++S.n,S}finally{b=!1,$!==S.n&&l.get(t)===$&&(l.set(t,S.n),u.add(t),(r=d.c)==null||r.call(d,t))}},qk=(e,t)=>{const r=mt(e),i=r[1],a=r[2],l=r[11],u=[t];for(;u.length;){const d=u.pop(),f=l(e,d);for(const h of Fy(d,f,i)){const m=l(e,h);a.set(h,m.n),u.push(h)}}},Vy=(e,t,...r)=>{const i=mt(e),a=i[3],l=i[6],u=i[8],d=i[11],f=i[12],h=i[13],m=i[14],y=i[15],w=i[17];let v=!0;const C=b=>El(m(e,b)),S=(b,...T)=>{var A;const I=d(e,b);try{if(jy(t,b)){if(!Oy(b))throw new Error("atom not writable");const M=I.n,j=T[0];Al(e,b,j),w(e,b),M!==I.n&&(a.add(b),(A=l.c)==null||A.call(l,b),y(e,b));return}else return Vy(e,b,...T)}finally{v||(h(e),f(e))}};try{return u(e,t,C,S,...r)}finally{v=!1}},Xk=(e,t)=>{var r;const i=mt(e),a=i[1],l=i[3],u=i[6],d=i[11],f=i[15],h=i[18],m=i[19],y=d(e,t),w=a.get(t);if(w&&!Ly(y.v)){for(const[v,C]of y.d)if(!w.d.has(v)){const S=d(e,v);h(e,v).t.add(t),w.d.add(v),C!==S.n&&(l.add(v),(r=u.c)==null||r.call(u,v),f(e,v))}for(const v of w.d||[])if(!y.d.has(v)){w.d.delete(v);const C=m(e,v);C==null||C.t.delete(t)}}},By=(e,t)=>{var r;const i=mt(e),a=i[1],l=i[4],u=i[6],d=i[10],f=i[11],h=i[12],m=i[13],y=i[14],w=i[16],v=f(e,t);let C=a.get(t);if(!C){y(e,t);for(const S of v.d.keys())By(e,S).t.add(t);if(C={l:new Set,d:new Set(v.d.keys()),t:new Set},a.set(t,C),(r=u.m)==null||r.call(u,t),Nd(t)){const S=()=>{let b=!0;const T=(...A)=>{try{return w(e,t,...A)}finally{b||(m(e),h(e))}};try{const A=d(e,t,T);A&&(C.u=()=>{b=!0;try{A()}finally{b=!1}})}finally{b=!1}};l.add(S)}}return C},Zk=(e,t)=>{var r;const i=mt(e),a=i[1],l=i[5],u=i[6],d=i[11],f=i[19],h=d(e,t);let m=a.get(t);if(m&&!m.l.size&&!Array.from(m.t).some(y=>{var w;return(w=a.get(y))==null?void 0:w.d.has(t)})){m.u&&l.add(m.u),m=void 0,a.delete(t),(r=u.u)==null||r.call(u,t);for(const y of h.d.keys()){const w=f(e,y);w==null||w.t.delete(t)}return}return m},Al=(e,t,r)=>{const i=mt(e)[11],a=i(e,t),l="v"in a,u=a.v;if(_l(r))for(const d of a.d.keys())zy(t,r,i(e,d));a.v=r,delete a.e,(!l||!Object.is(u,a.v))&&(++a.n,_l(u)&&Vk(u))},Qk=(e,t)=>{const r=mt(e)[14];return El(r(e,t))},Jk=(e,t,...r)=>{const i=mt(e),a=i[12],l=i[13],u=i[16];try{return u(e,t,...r)}finally{l(e),a(e)}},eb=(e,t,r)=>{const i=mt(e),a=i[12],l=i[18],u=i[19],f=l(e,t).l;return f.add(r),a(e),()=>{f.delete(r),u(e,t),a(e)}},$y=new WeakMap;function mt(e){const t=$y.get(e);if((oi?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t}function tb(...e){const t={get(i){const a=mt(t)[21];return a(t,i)},set(i,...a){const l=mt(t)[22];return l(t,i,...a)},sub(i,a){const l=mt(t)[23];return l(t,i,a)}},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},Bk,$k,Uk,Wk,Hk,Gk,Kk,Yk,qk,Vy,Xk,By,Zk,Al,Qk,Jk,eb].map((i,a)=>e[a]||i);return $y.set(t,Object.freeze(r)),t}const Uy={};let nb=0;function Lt(e,t){const r=`atom${++nb}`,i={toString(){return(Uy?"production":void 0)!=="production"&&this.debugLabel?r+":"+this.debugLabel:r}};return typeof e=="function"?i.read=e:(i.init=e,i.read=rb,i.write=ob),t&&(i.write=t),i}function rb(e){return e(this)}function ob(e,t,r){return t(this,typeof r=="function"?r(e(this)):r)}function Wy(){return tb()}let is;function ib(){return is||(is=Wy(),(Uy?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=is),globalThis.__JOTAI_DEFAULT_STORE__!==is&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),is}var k=xf();const q=di(k),Hy=Dy({__proto__:null,default:q},[k]),sb={},Gy=k.createContext(void 0);function Ky(e){return k.useContext(Gy)||ib()}function ab({children:e,store:t}){const r=k.useRef(void 0);return!t&&!r.current&&(r.current=Wy()),k.createElement(Gy.Provider,{value:t||r.current},e)}const Dd=e=>typeof(e==null?void 0:e.then)=="function",jd=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},lb=q.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(jd(e),e)}),Bc=new WeakMap,ug=(e,t)=>{let r=Bc.get(e);return r||(r=new Promise((i,a)=>{let l=e;const u=h=>m=>{l===h&&i(m)},d=h=>m=>{l===h&&a(m)},f=()=>{try{const h=t();Dd(h)?(Bc.set(h,r),l=h,h.then(u(h),d(h)),Md(h,f)):i(h)}catch(h){a(h)}};e.then(u(e),d(e)),Md(e,f)}),Bc.set(e,r)),r};function wn(e,t){const{delay:r,unstable_promiseStatus:i=!q.use}={},a=Ky(),[[l,u,d],f]=k.useReducer(m=>{const y=a.get(e);return Object.is(m[0],y)&&m[1]===a&&m[2]===e?m:[y,a,e]},void 0,()=>[a.get(e),a,e]);let h=l;if((u!==a||d!==e)&&(f(),h=a.get(e)),k.useEffect(()=>{const m=a.sub(e,()=>{if(i)try{const y=a.get(e);Dd(y)&&jd(ug(y,()=>a.get(e)))}catch{}if(typeof r=="number"){setTimeout(f,r);return}f()});return f(),m},[a,e,r,i]),k.useDebugValue(h),Dd(h)){const m=ug(h,()=>a.get(e));return i&&jd(m),lb(m)}return h}function on(e,t){const r=Ky();return k.useCallback((...a)=>{if((sb?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return r.set(e,...a)},[r,e])}function gs(e,t){return[wn(e),on(e)]}const Sf={},ub=Symbol((Sf?"production":void 0)!=="production"?"RESET":""),Yy=e=>typeof(e==null?void 0:e.then)=="function";function cb(e=()=>{try{return window.localStorage}catch(r){(Sf?"production":void 0)!=="production"&&typeof window<"u"&&console.warn(r);return}},t){var r;let i,a;const l={getItem:(f,h)=>{var m,y;const w=C=>{if(C=C||"",i!==C){try{a=JSON.parse(C,t==null?void 0:t.reviver)}catch{return h}i=C}return a},v=(y=(m=e())==null?void 0:m.getItem(f))!=null?y:null;return Yy(v)?v.then(w):w(v)},setItem:(f,h)=>{var m;return(m=e())==null?void 0:m.setItem(f,JSON.stringify(h,void 0))},removeItem:f=>{var h;return(h=e())==null?void 0:h.removeItem(f)}},u=f=>(h,m,y)=>f(h,w=>{let v;try{v=JSON.parse(w||"")}catch{v=y}m(v)});let d;try{d=(r=e())==null?void 0:r.subscribe}catch{}return!d&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(d=(f,h)=>{if(!(e()instanceof window.Storage))return()=>{};const m=y=>{y.storageArea===e()&&y.key===f&&h(y.newValue)};return window.addEventListener("storage",m),()=>{window.removeEventListener("storage",m)}}),d&&(l.subscribe=u(d)),l}const db=cb();function fb(e,t,r=db,i){const a=Lt(t);return(Sf?"production":void 0)!=="production"&&(a.debugPrivate=!0),a.onMount=u=>{u(r.getItem(e,t));let d;return r.subscribe&&(d=r.subscribe(e,u,t)),d},Lt(u=>u(a),(u,d,f)=>{const h=typeof f=="function"?f(u(a)):f;return h===ub?(d(a,t),r.removeItem(e)):Yy(h)?h.then(m=>(d(a,m),r.setItem(e,m))):(d(a,h),r.setItem(e,h))})}var pb=class{constructor(t){Nt(this,"config");this.config=t}log(t,...r){this.config.debug&&console.log(`[Consent API] ${t}`,...r)}async makeRequest(t,r={}){let i=`${this.config.workerEndpoint}${t}`,a={...r,headers:{"Content-Type":"application/json",...r.headers}};this.log(`Making request to ${i}`,a);try{let l=await fetch(i,a);if(!l.ok)throw new Error(`HTTP ${l.status}: ${l.statusText}`);let u=await l.json();return this.log("Response received:",u),u}catch(l){throw this.log("Request failed:",l),l}}async recordConsent(t,r){let i={essential:t.necessary,analytics:t.analytics,marketing:t.marketing,functional:t.functional},a={workspace_id:this.config.workspaceId,project_id:this.config.projectId,campaign_id:this.config.campaignId,subject_id:r.userId,domain:typeof window<"u"?window.location.hostname:"",purposes:i,expires_in_days:365},l=await this.makeRequest("/client-api/v1/consent/record",{method:"POST",body:JSON.stringify(a)});if(!l.success)throw new Error(l.error||"Failed to record consent");this.log("Consent recorded successfully",l)}async updateConsent(t,r){await this.recordConsent(t,r),this.log("Consent updated successfully")}async revokeAllConsent(t){let r={necessary:!0,analytics:!1,marketing:!1,functional:!1};await this.recordConsent(r,t),this.log("All consent revoked successfully")}},Od=null,hb=e=>(Od=new pb(e),Od),mb=()=>Od,gb=async(e,t)=>{let r=mb();if(!r){console.warn("[Consent Manager] API client not configured - skipping consent recording. This is normal in development environments.");return}await r.recordConsent(e,t)},vb={necessary:!0,analytics:!1,marketing:!1,functional:!1},$c={CONSENT:"frbzz_consent"},yb={domain:void 0,secure:!0,sameSite:"lax",expireDays:365},wb={analytics_storage:"denied",ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted",wait_for_update:500},qy=class{constructor(t,r){Nt(this,"config");Nt(this,"environment");this.config={...yb,...t},r?this.environment=r.campaignEnvironment==="production"?"production":"preview":this.environment="dev"}getCookieOptions(t){return{domain:this.config.domain,secure:this.config.secure,sameSite:this.config.sameSite,expires:t||this.config.expireDays}}setConsentCookie(t){let r={preferences:t.preferences,hasUserInteracted:t.hasUserInteracted,timestamp:t.timestamp,version:t.version};Dt.set($c.CONSENT,JSON.stringify(r),this.getCookieOptions())}getConsentCookie(){let t=Dt.get($c.CONSENT);if(!t)return null;try{return JSON.parse(t)}catch{return null}}removeConsentCookie(){Dt.remove($c.CONSENT,{domain:this.config.domain})}clearAllConsentCookies(){this.removeConsentCookie();let t=Dt.get();for(let r of Object.keys(t))r.startsWith("frbzz_")&&Dt.remove(r,{domain:this.config.domain})}hasUserConsent(){var t;return((t=this.getConsentCookie())==null?void 0:t.hasUserInteracted)===!0}hasAnalyticsConsent(){var t;return((t=this.getConsentCookie())==null?void 0:t.preferences.analytics)===!0}hasMarketingConsent(){var t;return((t=this.getConsentCookie())==null?void 0:t.preferences.marketing)===!0}hasFunctionalConsent(){var t;return((t=this.getConsentCookie())==null?void 0:t.preferences.functional)===!0}isDevEnvironment(){return this.environment==="dev"}isPreviewEnvironment(){return this.environment==="preview"}isProductionEnvironment(){return this.environment==="production"}shouldShowBannerInDevMode(){return this.environment==="dev"}},xb=(e,t)=>new qy(e,t);new qy;var Sb=class{constructor(t,r=!1){Nt(this,"consentDefaults");Nt(this,"debug");this.consentDefaults={...wb,...t},this.debug=r}log(t,...r){this.debug&&console.log(`[GTM Consent] ${t}`,...r)}ensureDataLayer(){typeof window<"u"&&!window.dataLayer&&(window.dataLayer=[])}ensureGtag(){typeof window<"u"&&typeof window.gtag>"u"&&(window.gtag=(...t)=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)})}pushToDataLayer(t){this.ensureDataLayer(),window.dataLayer&&(window.dataLayer.push(t),this.log("Pushed to dataLayer:",t))}setDefaultConsent(){typeof window>"u"||(this.ensureDataLayer(),this.ensureGtag(),window.gtag&&window.gtag("consent","default",this.consentDefaults),this.log("Default consent set:",this.consentDefaults))}updateConsent(t){if(typeof window>"u")return;this.ensureGtag();let r={analytics_storage:t.analytics?"granted":"denied",ad_storage:t.marketing?"granted":"denied",ad_user_data:t.marketing?"granted":"denied",ad_personalization:t.marketing?"granted":"denied",functionality_storage:t.functional?"granted":"denied",personalization_storage:t.functional?"granted":"denied"};window.gtag&&window.gtag("consent","update",r),this.pushToDataLayer({event:"consent_update",consent_preferences:t}),this.log("Consent updated:",r)}pushEvent(t,r){if(typeof window>"u")return;let i={event:t,...r};this.pushToDataLayer(i)}isGtagAvailable(){return typeof window>"u"?!1:typeof window.gtag<"u"}},kb=(e,t=!1)=>new Sb(e,t),Rs=Lt(null),$n=fb("frbzz_consent",null,{getItem:(e,t)=>{try{let r=localStorage.getItem(e);if(!r)return t;let i=JSON.parse(r);return i.version!==1?(localStorage.removeItem(e),t):i}catch{return t}},setItem:(e,t)=>{t===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))},removeItem:e=>{localStorage.removeItem(e)}}),kf=Lt(!1),Xy=Lt(e=>{let t=e($n),r=e(Rs);return typeof window<"u"&&window.__FIREBUZZ_DISABLE_CONSENT_BANNER__?!1:r?!(!r.gdprSettings.isEnabled||!r.gdprSettings.isRequiredConsent||r.gdprSettings.isRespectDNTEnabled&&Zy()||t!=null&&t.hasUserInteracted):!(t!=null&&t.hasUserInteracted)}),Ns=Lt(!1),Bl=Lt({banner:{title:"We value your privacy",description:"This site uses cookies to improve your browsing experience, analyze site traffic, and show personalized content.",acceptAll:"Accept All",rejectAll:"Reject All",manageCookies:"Customize"},modal:{title:"Privacy Settings",description:"Choose which cookies you want to accept. You can change these settings at any time.",save:"Save Preferences",acceptAll:"Accept All",rejectAll:"Reject All",close:"Close"},categories:{necessary:{title:"Strictly Necessary",description:"These cookies are essential for the website to function properly. They cannot be disabled."},analytics:{title:"Analytics",description:"These cookies help us understand how visitors interact with our website by collecting and reporting information."},marketing:{title:"Marketing",description:"These cookies are used to deliver advertisements more relevant to you and your interests."},functional:{title:"Functional",description:"These cookies enhance functionality and personalization, such as videos and live chats."}},footer:{privacyPolicy:"Privacy Policy",cookiePolicy:"Cookie Policy"}}),bb=Lt(e=>{let t=e($n),r=e(Rs);return r?!r.gdprSettings.isEnabled||!r.gdprSettings.isRequiredConsent?!0:(t==null?void 0:t.hasUserInteracted)&&(t==null?void 0:t.preferences.necessary):!1}),Zy=()=>typeof window>"u"||typeof navigator>"u"?!1:navigator.doNotTrack==="1",Cb=Lt(null,(e,t)=>{var f;let r=e($n),i=e(Rs);if(r)return;let a=((f=i==null?void 0:i.gdprSettings)==null?void 0:f.isRespectDNTEnabled)??!1,l=Zy(),u={...vb};a&&l&&(u={necessary:!0,analytics:!1,marketing:!1,functional:!1});let d={preferences:u,hasUserInteracted:a&&l,timestamp:Date.now(),version:1};t($n,d)}),$l=Lt(null,(e,t,r)=>{let i=e($n);if(!i)return;let a={...i,preferences:{...i.preferences,...r},hasUserInteracted:!0,timestamp:Date.now()};t($n,a),t(Ns,!1)}),Qy=Lt(null,(e,t)=>{t($l,{necessary:!0,analytics:!0,marketing:!0,functional:!0})}),Jy=Lt(null,(e,t)=>{t($l,{necessary:!0,analytics:!1,marketing:!1,functional:!1})}),Eb=Lt(null,(e,t)=>{t($n,null),t(Ns,!1),t(kf,!1),t(e0,null)}),e0=Lt(null),Tb=()=>typeof window>"u"||typeof navigator>"u"?!1:navigator.doNotTrack==="1",Ul=()=>{let e=wn($n),t=wn(kf),r=wn(Xy),[i,a]=gs(Ns),l=wn(Bl),u=wn(bb),d=wn(Rs),f=on($l),h=on(Qy),m=on(Jy),y=on(Eb),w=k.useCallback(v=>(e==null?void 0:e.preferences[v])??!1,[e]);return{consentState:e,isLoading:t,updateConsent:f,acceptAll:h,rejectAll:m,resetConsent:y,getConsentStatus:w,showBanner:r,showModal:i,setShowModal:a,texts:l,shouldSetCookies:!!u,isConsentRequired:(d==null?void 0:d.gdprSettings.isRequiredConsent)??!1,isEuUser:(d==null?void 0:d.gdprSettings.isEU)??!1,isCalifornianUser:(d==null?void 0:d.gdprSettings.isCalifornian)??!1,language:(d==null?void 0:d.gdprSettings.language)??"en-US",countryCode:(d==null?void 0:d.gdprSettings.countryCode)??"US",isRespectDNTEnabled:(d==null?void 0:d.gdprSettings.isRespectDNTEnabled)??!1,isDNTEnabled:Tb(),privacyPolicyUrl:d==null?void 0:d.gdprSettings.privacyPolicyUrl,termsOfServiceUrl:d==null?void 0:d.gdprSettings.termsOfServiceUrl}},t0=()=>{let[e,t]=gs(Ns),r=k.useCallback(()=>{t(!0)},[t]),i=k.useCallback(()=>{t(!1)},[t]);return{showModal:e,setShowModal:t,openModal:r,closeModal:i}},_b=()=>{let e=wn(Xy),t=on(Qy),r=on(Jy),i=on(Ns),a=wn(Bl),l=k.useCallback(()=>{i(!0)},[i]);return{showBanner:e,acceptAll:t,rejectAll:r,openModal:l,texts:a.banner}},Ab=()=>{let e=wn($n),t=on($l),r=wn(Bl),i=k.useCallback((a,l)=>{t({[a]:l})},[t]);return{preferences:(e==null?void 0:e.preferences)??{necessary:!0,analytics:!1,marketing:!1,functional:!1},updateCategory:i,texts:r.categories}},cg={banner:{title:"We value your privacy",description:"This site uses cookies to improve your browsing experience, analyze site traffic, and show personalized content.",acceptAll:"Accept All",rejectAll:"Reject All",manageCookies:"Customize"},modal:{title:"Privacy Settings",description:"Choose which cookies you want to accept. You can change these settings at any time.",save:"Save Preferences",acceptAll:"Accept All",rejectAll:"Reject All",close:"Close"},categories:{necessary:{title:"Strictly Necessary",description:"These cookies are essential for the website to function properly. They cannot be disabled."},analytics:{title:"Analytics",description:"These cookies help us understand how visitors interact with our website by collecting and reporting information."},marketing:{title:"Marketing",description:"These cookies are used to deliver advertisements more relevant to you and your interests."},functional:{title:"Functional",description:"These cookies enhance functionality and personalization, such as videos and live chats."}},footer:{privacyPolicy:"Privacy Policy",cookiePolicy:"Cookie Policy"}},dg={banner:{title:"Valoramos tu privacidad",description:"Este sitio utiliza cookies para mejorar tu experiencia de navegación, analizar el tráfico del sitio y mostrar contenido personalizado.",acceptAll:"Aceptar todo",rejectAll:"Rechazar todo",manageCookies:"Personalizar"},modal:{title:"Configuración de privacidad",description:"Elige qué cookies quieres aceptar. Puedes cambiar esta configuración en cualquier momento.",save:"Guardar preferencias",acceptAll:"Aceptar todo",rejectAll:"Rechazar todo",close:"Cerrar"},categories:{necessary:{title:"Estrictamente necesarias",description:"Estas cookies son esenciales para que el sitio web funcione correctamente. No se pueden desactivar."},analytics:{title:"Analíticas",description:"Estas cookies nos ayudan a entender cómo los visitantes interactúan con nuestro sitio web recopilando y reportando información."},marketing:{title:"Marketing",description:"Estas cookies se utilizan para ofrecer anuncios más relevantes para ti y tus intereses."},functional:{title:"Funcionales",description:"Estas cookies mejoran la funcionalidad y personalización, como videos y chats en vivo."}},footer:{privacyPolicy:"Política de privacidad",cookiePolicy:"Política de cookies"}},fg={banner:{title:"Nous respectons votre vie privée",description:"Ce site utilise des cookies pour améliorer votre expérience de navigation, analyser le trafic du site et afficher du contenu personnalisé.",acceptAll:"Tout accepter",rejectAll:"Tout refuser",manageCookies:"Personnaliser"},modal:{title:"Paramètres de confidentialité",description:"Choisissez quels cookies vous souhaitez accepter. Vous pouvez modifier ces paramètres à tout moment.",save:"Sauvegarder les préférences",acceptAll:"Tout accepter",rejectAll:"Tout refuser",close:"Fermer"},categories:{necessary:{title:"Strictement nécessaires",description:"Ces cookies sont essentiels au bon fonctionnement du site web. Ils ne peuvent pas être désactivés."},analytics:{title:"Analytiques",description:"Ces cookies nous aident à comprendre comment les visiteurs interagissent avec notre site web en collectant et rapportant des informations."},marketing:{title:"Marketing",description:"Ces cookies sont utilisés pour fournir des publicités plus pertinentes pour vous et vos intérêts."},functional:{title:"Fonctionnels",description:"Ces cookies améliorent la fonctionnalité et la personnalisation, comme les vidéos et les chats en direct."}},footer:{privacyPolicy:"Politique de confidentialité",cookiePolicy:"Politique des cookies"}},pg={banner:{title:"Wir schätzen Ihre Privatsphäre",description:"Diese Website verwendet Cookies, um Ihr Surferlebnis zu verbessern, den Website-Traffic zu analysieren und personalisierte Inhalte anzuzeigen.",acceptAll:"Alle akzeptieren",rejectAll:"Alle ablehnen",manageCookies:"Anpassen"},modal:{title:"Datenschutzeinstellungen",description:"Wählen Sie, welche Cookies Sie akzeptieren möchten. Sie können diese Einstellungen jederzeit ändern.",save:"Einstellungen speichern",acceptAll:"Alle akzeptieren",rejectAll:"Alle ablehnen",close:"Schließen"},categories:{necessary:{title:"Unbedingt erforderlich",description:"Diese Cookies sind für das ordnungsgemäße Funktionieren der Website unerlässlich. Sie können nicht deaktiviert werden."},analytics:{title:"Analytisch",description:"Diese Cookies helfen uns zu verstehen, wie Besucher mit unserer Website interagieren, indem sie Informationen sammeln und melden."},marketing:{title:"Marketing",description:"Diese Cookies werden verwendet, um Werbung zu liefern, die für Sie und Ihre Interessen relevanter ist."},functional:{title:"Funktional",description:"Diese Cookies verbessern die Funktionalität und Personalisierung, wie Videos und Live-Chats."}},footer:{privacyPolicy:"Datenschutzrichtlinie",cookiePolicy:"Cookie-Richtlinie"}},hg={banner:{title:"Rispettiamo la tua privacy",description:"Questo sito utilizza cookie per migliorare la tua esperienza di navigazione, analizzare il traffico del sito e mostrare contenuti personalizzati.",acceptAll:"Accetta tutto",rejectAll:"Rifiuta tutto",manageCookies:"Personalizza"},modal:{title:"Impostazioni privacy",description:"Scegli quali cookie vuoi accettare. Puoi modificare queste impostazioni in qualsiasi momento.",save:"Salva preferenze",acceptAll:"Accetta tutto",rejectAll:"Rifiuta tutto",close:"Chiudi"},categories:{necessary:{title:"Strettamente necessari",description:"Questi cookie sono essenziali per il corretto funzionamento del sito web. Non possono essere disattivati."},analytics:{title:"Analitici",description:"Questi cookie ci aiutano a capire come i visitatori interagiscono con il nostro sito web raccogliendo e riportando informazioni."},marketing:{title:"Marketing",description:"Questi cookie vengono utilizzati per fornire pubblicità più rilevanti per te e i tuoi interessi."},functional:{title:"Funzionali",description:"Questi cookie migliorano la funzionalità e la personalizzazione, come video e chat dal vivo."}},footer:{privacyPolicy:"Informativa sulla privacy",cookiePolicy:"Politica sui cookie"}},mg={banner:{title:"Valorizamos sua privacidade",description:"Este site usa cookies para melhorar sua experiência de navegação, analisar o tráfego do site e exibir conteúdo personalizado.",acceptAll:"Aceitar tudo",rejectAll:"Rejeitar tudo",manageCookies:"Personalizar"},modal:{title:"Configurações de privacidade",description:"Escolha quais cookies você deseja aceitar. Você pode alterar essas configurações a qualquer momento.",save:"Salvar preferências",acceptAll:"Aceitar tudo",rejectAll:"Rejeitar tudo",close:"Fechar"},categories:{necessary:{title:"Estritamente necessários",description:"Estes cookies são essenciais para o funcionamento adequado do site. Eles não podem ser desativados."},analytics:{title:"Analíticos",description:"Estes cookies nos ajudam a entender como os visitantes interagem com nosso site coletando e relatando informações."},marketing:{title:"Marketing",description:"Estes cookies são usados para fornecer anúncios mais relevantes para você e seus interesses."},functional:{title:"Funcionais",description:"Estes cookies aprimoram a funcionalidade e personalização, como vídeos e chats ao vivo."}},footer:{privacyPolicy:"Política de privacidade",cookiePolicy:"Política de cookies"}},gg={banner:{title:"We waarderen uw privacy",description:"Deze site gebruikt cookies om uw browse-ervaring te verbeteren, websiteverkeer te analyseren en gepersonaliseerde content te tonen.",acceptAll:"Alles accepteren",rejectAll:"Alles weigeren",manageCookies:"Aanpassen"},modal:{title:"Privacy-instellingen",description:"Kies welke cookies u wilt accepteren. U kunt deze instellingen op elk moment wijzigen.",save:"Voorkeuren opslaan",acceptAll:"Alles accepteren",rejectAll:"Alles weigeren",close:"Sluiten"},categories:{necessary:{title:"Strikt noodzakelijk",description:"Deze cookies zijn essentieel voor het goed functioneren van de website. Ze kunnen niet worden uitgeschakeld."},analytics:{title:"Analytisch",description:"Deze cookies helpen ons begrijpen hoe bezoekers omgaan met onze website door informatie te verzamelen en te rapporteren."},marketing:{title:"Marketing",description:"Deze cookies worden gebruikt om advertenties te leveren die relevanter zijn voor u en uw interesses."},functional:{title:"Functioneel",description:"Deze cookies verbeteren functionaliteit en personalisatie, zoals video's en live chats."}},footer:{privacyPolicy:"Privacybeleid",cookiePolicy:"Cookiebeleid"}},vg={banner:{title:"Cenimy Twoją prywatność",description:"Ta strona używa ciasteczek w celu poprawy doświadczenia przeglądania, analizy ruchu na stronie i wyświetlania spersonalizowanych treści.",acceptAll:"Zaakceptuj wszystkie",rejectAll:"Odrzuć wszystkie",manageCookies:"Dostosuj"},modal:{title:"Ustawienia prywatności",description:"Wybierz, które ciasteczka chcesz zaakceptować. Możesz zmienić te ustawienia w dowolnym momencie.",save:"Zapisz preferencje",acceptAll:"Zaakceptuj wszystkie",rejectAll:"Odrzuć wszystkie",close:"Zamknij"},categories:{necessary:{title:"Ściśle konieczne",description:"Te ciasteczka są niezbędne do prawidłowego funkcjonowania strony internetowej. Nie mogą być wyłączone."},analytics:{title:"Analityczne",description:"Te ciasteczka pomagają nam zrozumieć, jak odwiedzający korzystają z naszej strony, zbierając i raportując informacje."},marketing:{title:"Marketing",description:"Te ciasteczka są używane do dostarczania reklam bardziej odpowiednich dla Ciebie i Twoich zainteresowań."},functional:{title:"Funkcjonalne",description:"Te ciasteczka poprawiają funkcjonalność i personalizację, takie jak filmy i czaty na żywo."}},footer:{privacyPolicy:"Polityka prywatności",cookiePolicy:"Polityka ciasteczek"}},yg={banner:{title:"Vi værdsætter dit privatliv",description:"Denne side bruger cookies for at forbedre din browsing-oplevelse, analysere hjemmesidestrafik og vise personligt indhold.",acceptAll:"Accepter alle",rejectAll:"Afvis alle",manageCookies:"Tilpas"},modal:{title:"Privatlivsindstillinger",description:"Vælg hvilke cookies du vil acceptere. Du kan ændre disse indstillinger når som helst.",save:"Gem præferencer",acceptAll:"Accepter alle",rejectAll:"Afvis alle",close:"Luk"},categories:{necessary:{title:"Strengt nødvendige",description:"Disse cookies er essentielle for hjemmesidens korrekte funktion. De kan ikke deaktiveres."},analytics:{title:"Analytiske",description:"Disse cookies hjælper os med at forstå, hvordan besøgende interagerer med vores hjemmeside ved at indsamle og rapportere information."},marketing:{title:"Marketing",description:"Disse cookies bruges til at levere annoncer, der er mere relevante for dig og dine interesser."},functional:{title:"Funktionelle",description:"Disse cookies forbedrer funktionalitet og personalisering, såsom videoer og live chats."}},footer:{privacyPolicy:"Privatlivspolitik",cookiePolicy:"Cookie-politik"}},wg={banner:{title:"Vi värdesätter din integritet",description:"Denna webbplats använder cookies för att förbättra din surfupplevelse, analysera webbplatstrafik och visa personligt innehåll.",acceptAll:"Acceptera alla",rejectAll:"Avvisa alla",manageCookies:"Anpassa"},modal:{title:"Integritetsinställningar",description:"Välj vilka cookies du vill acceptera. Du kan ändra dessa inställningar när som helst.",save:"Spara preferenser",acceptAll:"Acceptera alla",rejectAll:"Avvisa alla",close:"Stäng"},categories:{necessary:{title:"Strikt nödvändiga",description:"Dessa cookies är nödvändiga för att webbplatsen ska fungera korrekt. De kan inte inaktiveras."},analytics:{title:"Analytiska",description:"Dessa cookies hjälper oss att förstå hur besökare interagerar med vår webbplats genom att samla in och rapportera information."},marketing:{title:"Marknadsföring",description:"Dessa cookies används för att leverera annonser som är mer relevanta för dig och dina intressen."},functional:{title:"Funktionella",description:"Dessa cookies förbättrar funktionalitet och personalisering, såsom videor och livechatt."}},footer:{privacyPolicy:"Integritetspolicy",cookiePolicy:"Cookie-policy"}},xg={banner:{title:"Vi verdsetter ditt personvern",description:"Denne siden bruker informasjonskapsler for å forbedre din nettleseropplevelse, analysere nettsidetrafikk og vise personlig innhold.",acceptAll:"Godta alle",rejectAll:"Avvis alle",manageCookies:"Tilpass"},modal:{title:"Personverninnstillinger",description:"Velg hvilke informasjonskapsler du vil godta. Du kan endre disse innstillingene når som helst.",save:"Lagre preferanser",acceptAll:"Godta alle",rejectAll:"Avvis alle",close:"Lukk"},categories:{necessary:{title:"Strengt nødvendige",description:"Disse informasjonskapslene er essensielle for at nettstedet skal fungere ordentlig. De kan ikke deaktiveres."},analytics:{title:"Analytiske",description:"Disse informasjonskapslene hjelper oss å forstå hvordan besøkende samhandler med nettstedet vårt ved å samle inn og rapportere informasjon."},marketing:{title:"Markedsføring",description:"Disse informasjonskapslene brukes til å levere annonser som er mer relevante for deg og dine interesser."},functional:{title:"Funksjonelle",description:"Disse informasjonskapslene forbedrer funksjonalitet og personalisering, som videoer og direktechatt."}},footer:{privacyPolicy:"Personvernerklæring",cookiePolicy:"Informasjonskapselpolicy"}},eo={en:cg,"en-US":cg,es:dg,"es-ES":dg,fr:fg,"fr-FR":fg,de:pg,"de-DE":pg,it:hg,"it-IT":hg,pt:mg,"pt-BR":mg,nl:gg,"nl-NL":gg,pl:vg,"pl-PL":vg,da:yg,"da-DK":yg,sv:wg,"sv-SE":wg,no:xg,"nb-NO":xg},Pb=(e,t,r)=>{if(t!=null&&t[e])return t[e];if(eo[e])return eo[e];let i=e.split("-")[0];return i&&(t!=null&&t[i])?t[i]:i&&eo[i]?eo[i]:r&&(t!=null&&t[r])?t[r]:r&&eo[r]?eo[r]:eo.en};function Ib({children:e,...t}){var b;let[r,i]=k.useState(()=>{let T=typeof window<"u"?window.__FIREBUZZ_SESSION_CONTEXT__:null;return t.debug&&(console.log("[Consent Manager] Initial config creation - windowSessionContext:",T?"found":"not found"),T&&console.log("[Consent Manager] Session context structure:",JSON.stringify(T,null,2))),{...t,sessionContext:T,workerEndpoint:T==null?void 0:T.apiBaseUrl,workspaceId:T==null?void 0:T.workspaceId,projectId:T==null?void 0:T.projectId,campaignId:T==null?void 0:T.campaignId,debug:t.debug??!1,enabled:!0}});k.useEffect(()=>{let T,A=()=>{let I=typeof window<"u"?window.__FIREBUZZ_SESSION_CONTEXT__:null;t.debug&&console.log("[Consent Manager] Polling session context:",{windowSessionContext:I?"found":"not found",configSessionContext:r.sessionContext?"found":"not found",shouldUpdate:I&&!r.sessionContext}),I&&!r.sessionContext&&(t.debug&&console.log("[Consent Manager] Session context found after mount, updating config"),i(M=>({...M,sessionContext:I,workerEndpoint:I.apiBaseUrl,workspaceId:I.workspaceId,projectId:I.projectId,campaignId:I.campaignId})),T&&clearInterval(T))};if(A(),!r.sessionContext&&typeof window<"u"&&(T=window.setInterval(A,50),setTimeout(()=>{T&&clearInterval(T)},2e3)),typeof window<"u")return window.addEventListener("firebuzz-session-ready",A),()=>{window.removeEventListener("firebuzz-session-ready",A),T&&clearInterval(T)}},[r.sessionContext,t.debug]);let[a,l]=gs(Rs),[u,d]=gs($n),[f,h]=gs(e0),m=on(kf),y=on(Bl),w=on(Cb),v=k.useRef(!0),C=k.useMemo(()=>xb(r.cookies,a||void 0),[r.cookies,a]),S=k.useMemo(()=>r.gtm?kb(r.gtm.consentDefaults,r.debug):null,[r.gtm,r.debug]);return k.useEffect(()=>{r.workerEndpoint&&r.workspaceId&&r.projectId&&r.campaignId&&hb({workerEndpoint:r.workerEndpoint,workspaceId:r.workspaceId,projectId:r.projectId,campaignId:r.campaignId,debug:r.debug})},[r]),k.useEffect(()=>{r.sessionContext&&l(r.sessionContext)},[r.sessionContext,l]),k.useEffect(()=>{var j;let T=(j=r.sessionContext)==null?void 0:j.gdprSettings,A=(T==null?void 0:T.isLocalizationEnabled)??!0,I=A?(T==null?void 0:T.language)||r.translations.language||"en":r.translations.language||"en",M=Pb(I,r.translations.translations,r.translations.fallbackLanguage);r.debug&&console.log(`[Consent Manager] Localization ${A?"enabled":"disabled"}, using language: ${I}`),y(M)},[r.translations,(b=r.sessionContext)==null?void 0:b.gdprSettings,r.debug,y]),k.useEffect(()=>{w()},[w]),k.useEffect(()=>{a&&S&&a.gdprSettings.isEnabled&&a.gdprSettings.isRequiredConsent&&S.setDefaultConsent()},[a,S]),k.useEffect(()=>{let T=C.getConsentCookie();T&&(d(T),a&&h({preferences:{...T.preferences},timestamp:T.timestamp,userId:a.userId})),v.current=!1},[C,d,a,h]),k.useEffect(()=>{u&&(async()=>{try{if(m(!0),C.setConsentCookie(u),!a){r.debug&&console.log("[Consent Manager] Dev mode: State saved, API/GTM skipped"),m(!1);return}if(S&&S.updateConsent(u.preferences),u.hasUserInteracted&&a&&!v.current)if(!f||f.userId!==a.userId||JSON.stringify(f.preferences)!==JSON.stringify(u.preferences))try{await gb(u.preferences,a),h({preferences:{...u.preferences},timestamp:Date.now(),userId:a.userId}),r.debug&&console.log("[Consent Manager] Consent successfully recorded to API")}catch(T){r.debug&&console.error("Failed to record consent:",T)}else r.debug&&console.log("[Consent Manager] Consent unchanged - skipping API call")}catch(T){r.debug&&console.error("Error handling consent change:",T)}finally{m(!1)}})()},[u,a,f,h,C,S,r.debug,m]),!r.sessionContext&&r.debug&&console.log("[Consent Manager] Running in template/dev mode - API calls disabled, UI functionality enabled"),E.jsx(E.Fragment,{children:e})}function Rb(e){return E.jsx(ab,{children:E.jsx(Ib,{...e})})}var Uc={exports:{}},Wc,Sg;function Nb(){if(Sg)return Wc;Sg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wc=e,Wc}var Hc,kg;function Mb(){if(kg)return Hc;kg=1;var e=Nb();function t(){}function r(){}return r.resetWarningCache=t,Hc=function(){function i(u,d,f,h,m,y){if(y!==e){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}i.isRequired=i;function a(){return i}var l={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return l.PropTypes=l,l},Hc}var bg;function Db(){return bg||(bg=1,Uc.exports=Mb()()),Uc.exports}var jb=Db();const Pe=di(jb);var Gc,Cg;function Ob(){if(Cg)return Gc;Cg=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(l,u){if(l===u)return!0;if(l&&u&&typeof l=="object"&&typeof u=="object"){if(l.constructor!==u.constructor)return!1;var d,f,h;if(Array.isArray(l)){if(d=l.length,d!=u.length)return!1;for(f=d;f--!==0;)if(!a(l[f],u[f]))return!1;return!0}var m;if(t&&l instanceof Map&&u instanceof Map){if(l.size!==u.size)return!1;for(m=l.entries();!(f=m.next()).done;)if(!u.has(f.value[0]))return!1;for(m=l.entries();!(f=m.next()).done;)if(!a(f.value[1],u.get(f.value[0])))return!1;return!0}if(r&&l instanceof Set&&u instanceof Set){if(l.size!==u.size)return!1;for(m=l.entries();!(f=m.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(l)&&ArrayBuffer.isView(u)){if(d=l.length,d!=u.length)return!1;for(f=d;f--!==0;)if(l[f]!==u[f])return!1;return!0}if(l.constructor===RegExp)return l.source===u.source&&l.flags===u.flags;if(l.valueOf!==Object.prototype.valueOf&&typeof l.valueOf=="function"&&typeof u.valueOf=="function")return l.valueOf()===u.valueOf();if(l.toString!==Object.prototype.toString&&typeof l.toString=="function"&&typeof u.toString=="function")return l.toString()===u.toString();if(h=Object.keys(l),d=h.length,d!==Object.keys(u).length)return!1;for(f=d;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,h[f]))return!1;if(e&&l instanceof Element)return!1;for(f=d;f--!==0;)if(!((h[f]==="_owner"||h[f]==="__v"||h[f]==="__o")&&l.$$typeof)&&!a(l[h[f]],u[h[f]]))return!1;return!0}return l!==l&&u!==u}return Gc=function(u,d){try{return a(u,d)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Gc}var Lb=Ob();const zb=di(Lb);var Kc,Eg;function Fb(){if(Eg)return Kc;Eg=1;var e=function(t,r,i,a,l,u,d,f){if(!t){var h;if(r===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[i,a,l,u,d,f],y=0;h=new Error(r.replace(/%s/g,function(){return m[y++]})),h.name="Invariant Violation"}throw h.framesToPop=1,h}};return Kc=e,Kc}var Vb=Fb();const Tg=di(Vb);var Yc,_g;function Bb(){return _g||(_g=1,Yc=function(t,r,i,a){var l=i?i.call(a,t,r):void 0;if(l!==void 0)return!!l;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var u=Object.keys(t),d=Object.keys(r);if(u.length!==d.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(r),h=0;h=0||(a[r]=e[r]);return a}var ve={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},Wb={rel:["amphtml","canonical","alternate"]},Hb={type:["application/ld+json"]},Gb={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Pg=Object.keys(ve).map(function(e){return ve[e]}),Pl={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Kb=Object.keys(Pl).reduce(function(e,t){return e[Pl[t]]=t,e},{}),Jo=function(e,t){for(var r=e.length-1;r>=0;r-=1){var i=e[r];if(Object.prototype.hasOwnProperty.call(i,t))return i[t]}return null},Yb=function(e){var t=Jo(e,ve.TITLE),r=Jo(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,function(){return t});var i=Jo(e,"defaultTitle");return t||i||void 0},qb=function(e){return Jo(e,"onChangeClientState")||function(){}},qc=function(e,t){return t.filter(function(r){return r[e]!==void 0}).map(function(r){return r[e]}).reduce(function(r,i){return qe({},r,i)},{})},Xb=function(e,t){return t.filter(function(r){return r[ve.BASE]!==void 0}).map(function(r){return r[ve.BASE]}).reverse().reduce(function(r,i){if(!r.length)for(var a=Object.keys(i),l=0;l/g,">").replace(/"/g,""").replace(/'/g,"'")},Rg=function(e){return Object.keys(e).reduce(function(t,r){var i=e[r]!==void 0?r+'="'+e[r]+'"':""+r;return t?t+" "+i:i},"")},Ng=function(e,t){return t===void 0&&(t={}),Object.keys(e).reduce(function(r,i){return r[Pl[i]||i]=e[i],r},t)},pl=function(e,t){return t.map(function(r,i){var a,l=((a={key:i})["data-rh"]=!0,a);return Object.keys(r).forEach(function(u){var d=Pl[u]||u;d==="innerHTML"||d==="cssText"?l.dangerouslySetInnerHTML={__html:r.innerHTML||r.cssText}:l[d]=r[u]}),q.createElement(e,l)})},en=function(e,t,r){switch(e){case ve.TITLE:return{toComponent:function(){return a=t.titleAttributes,(l={key:i=t.title})["data-rh"]=!0,u=Ng(a,l),[q.createElement(ve.TITLE,u,i)];var i,a,l,u},toString:function(){return(function(i,a,l,u){var d=Rg(l),f=n0(a);return d?"<"+i+' data-rh="true" '+d+">"+Zc(f,u)+"":"<"+i+' data-rh="true">'+Zc(f,u)+""})(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return Ng(t)},toString:function(){return Rg(t)}};default:return{toComponent:function(){return pl(e,t)},toString:function(){return(function(i,a,l){return a.reduce(function(u,d){var f=Object.keys(d).filter(function(y){return!(y==="innerHTML"||y==="cssText")}).reduce(function(y,w){var v=d[w]===void 0?w:w+'="'+Zc(d[w],l)+'"';return y?y+" "+v:v},""),h=d.innerHTML||d.cssText||"",m=Qb.indexOf(i)===-1;return u+"<"+i+' data-rh="true" '+f+(m?"/>":">"+h+"")},"")})(e,t,r)}}}},zd=function(e){var t=e.baseTag,r=e.bodyAttributes,i=e.encode,a=e.htmlAttributes,l=e.noscriptTags,u=e.styleTags,d=e.title,f=d===void 0?"":d,h=e.titleAttributes,m=e.linkTags,y=e.metaTags,w=e.scriptTags,v={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var C=(function(S){var b=S.linkTags,T=S.scriptTags,A=S.encode,I=Xc(S.metaTags,Gb),M=Xc(b,Wb),j=Xc(T,Hb);return{priorityMethods:{toComponent:function(){return[].concat(pl(ve.META,I.priority),pl(ve.LINK,M.priority),pl(ve.SCRIPT,j.priority))},toString:function(){return en(ve.META,I.priority,A)+" "+en(ve.LINK,M.priority,A)+" "+en(ve.SCRIPT,j.priority,A)}},metaTags:I.default,linkTags:M.default,scriptTags:j.default}})(e);v=C.priorityMethods,m=C.linkTags,y=C.metaTags,w=C.scriptTags}return{priority:v,base:en(ve.BASE,t,i),bodyAttributes:en("bodyAttributes",r,i),htmlAttributes:en("htmlAttributes",a,i),link:en(ve.LINK,m,i),meta:en(ve.META,y,i),noscript:en(ve.NOSCRIPT,l,i),script:en(ve.SCRIPT,w,i),style:en(ve.STYLE,u,i),title:en(ve.TITLE,{title:f,titleAttributes:h},i)}},Ja=[],Fd=function(e,t){var r=this;t===void 0&&(t=typeof document<"u"),this.instances=[],this.value={setHelmet:function(i){r.context.helmet=i},helmetInstances:{get:function(){return r.canUseDOM?Ja:r.instances},add:function(i){(r.canUseDOM?Ja:r.instances).push(i)},remove:function(i){var a=(r.canUseDOM?Ja:r.instances).indexOf(i);(r.canUseDOM?Ja:r.instances).splice(a,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=zd({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},r0=q.createContext({}),Jb=Pe.shape({setHelmet:Pe.func,helmetInstances:Pe.shape({get:Pe.func,add:Pe.func,remove:Pe.func})}),eC=typeof document<"u",Wo=(function(e){function t(r){var i;return(i=e.call(this,r)||this).helmetData=new Fd(i.props.context,t.canUseDOM),i}return bf(t,e),t.prototype.render=function(){return q.createElement(r0.Provider,{value:this.helmetData.value},this.props.children)},t})(k.Component);Wo.canUseDOM=eC,Wo.propTypes={context:Pe.shape({helmet:Pe.shape()}),children:Pe.node.isRequired},Wo.defaultProps={context:{}},Wo.displayName="HelmetProvider";var Fo=function(e,t){var r,i=document.head||document.querySelector(ve.HEAD),a=i.querySelectorAll(e+"[data-rh]"),l=[].slice.call(a),u=[];return t&&t.length&&t.forEach(function(d){var f=document.createElement(e);for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(h==="innerHTML"?f.innerHTML=d.innerHTML:h==="cssText"?f.styleSheet?f.styleSheet.cssText=d.cssText:f.appendChild(document.createTextNode(d.cssText)):f.setAttribute(h,d[h]===void 0?"":d[h]));f.setAttribute("data-rh","true"),l.some(function(m,y){return r=y,f.isEqualNode(m)})?l.splice(r,1):u.push(f)}),l.forEach(function(d){return d.parentNode.removeChild(d)}),u.forEach(function(d){return i.appendChild(d)}),{oldTags:l,newTags:u}},Qc=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var i=r.getAttribute("data-rh"),a=i?i.split(","):[],l=[].concat(a),u=Object.keys(t),d=0;d=0;y-=1)r.removeAttribute(l[y]);a.length===l.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==u.join(",")&&r.setAttribute("data-rh",u.join(","))}},Mg=function(e,t){var r=e.baseTag,i=e.htmlAttributes,a=e.linkTags,l=e.metaTags,u=e.noscriptTags,d=e.onChangeClientState,f=e.scriptTags,h=e.styleTags,m=e.title,y=e.titleAttributes;Qc(ve.BODY,e.bodyAttributes),Qc(ve.HTML,i),(function(S,b){S!==void 0&&document.title!==S&&(document.title=n0(S)),Qc(ve.TITLE,b)})(m,y);var w={baseTag:Fo(ve.BASE,r),linkTags:Fo(ve.LINK,a),metaTags:Fo(ve.META,l),noscriptTags:Fo(ve.NOSCRIPT,u),scriptTags:Fo(ve.SCRIPT,f),styleTags:Fo(ve.STYLE,h)},v={},C={};Object.keys(w).forEach(function(S){var b=w[S],T=b.newTags,A=b.oldTags;T.length&&(v[S]=T),A.length&&(C[S]=w[S].oldTags)}),t&&t(),d(e,v,C)},as=null,Il=(function(e){function t(){for(var i,a=arguments.length,l=new Array(a),u=0;u elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(i){var a,l=i.child,u=i.arrayTypeChildren;return qe({},u,((a={})[l.type]=[].concat(u[l.type]||[],[qe({},i.newChildProps,this.mapNestedChildrenToProps(l,i.nestedChildren))]),a))},r.mapObjectTypeChildren=function(i){var a,l,u=i.child,d=i.newProps,f=i.newChildProps,h=i.nestedChildren;switch(u.type){case ve.TITLE:return qe({},d,((a={})[u.type]=h,a.titleAttributes=qe({},f),a));case ve.BODY:return qe({},d,{bodyAttributes:qe({},f)});case ve.HTML:return qe({},d,{htmlAttributes:qe({},f)});default:return qe({},d,((l={})[u.type]=qe({},f),l))}},r.mapArrayTypeChildrenToProps=function(i,a){var l=qe({},a);return Object.keys(i).forEach(function(u){var d;l=qe({},l,((d={})[u]=i[u],d))}),l},r.warnOnInvalidChildren=function(i,a){return Tg(Pg.some(function(l){return i.type===l}),typeof i.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+Pg.join(", ")+" are allowed. Helmet does not support rendering <"+i.type+"> elements. Refer to our API for more information."),Tg(!a||typeof a=="string"||Array.isArray(a)&&!a.some(function(l){return typeof l!="string"}),"Helmet expects a string as a child of <"+i.type+">. Did you forget to wrap your children in braces? ( <"+i.type+">{``} ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(i,a){var l=this,u={};return q.Children.forEach(i,function(d){if(d&&d.props){var f=d.props,h=f.children,m=Ag(f,tC),y=Object.keys(m).reduce(function(v,C){return v[Kb[C]||C]=m[C],v},{}),w=d.type;switch(typeof w=="symbol"?w=w.toString():l.warnOnInvalidChildren(d,h),w){case ve.FRAGMENT:a=l.mapChildrenToProps(h,a);break;case ve.LINK:case ve.META:case ve.NOSCRIPT:case ve.SCRIPT:case ve.STYLE:u=l.flattenArrayTypeChildren({child:d,arrayTypeChildren:u,newChildProps:y,nestedChildren:h});break;default:a=l.mapObjectTypeChildren({child:d,newProps:a,newChildProps:y,nestedChildren:h})}}}),this.mapArrayTypeChildrenToProps(u,a)},r.render=function(){var i=this.props,a=i.children,l=Ag(i,nC),u=qe({},l),d=l.helmetData;return a&&(u=this.mapChildrenToProps(a,u)),!d||d instanceof Fd||(d=new Fd(d.context,d.instances)),d?q.createElement(Il,qe({},u,{context:d.value,helmetData:void 0})):q.createElement(r0.Consumer,null,function(f){return q.createElement(Il,qe({},u,{context:f}))})},t})(k.Component);hl.propTypes={base:Pe.object,bodyAttributes:Pe.object,children:Pe.oneOfType([Pe.arrayOf(Pe.node),Pe.node]),defaultTitle:Pe.string,defer:Pe.bool,encodeSpecialCharacters:Pe.bool,htmlAttributes:Pe.object,link:Pe.arrayOf(Pe.object),meta:Pe.arrayOf(Pe.object),noscript:Pe.arrayOf(Pe.object),onChangeClientState:Pe.func,script:Pe.arrayOf(Pe.object),style:Pe.arrayOf(Pe.object),title:Pe.string,titleAttributes:Pe.object,titleTemplate:Pe.string,prioritizeSeoTags:Pe.bool,helmetData:Pe.object},hl.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},hl.displayName="Helmet";const rC="modulepreload",oC=function(e){return"/"+e},Dg={},iC=function(t,r,i){let a=Promise.resolve();if(r&&r.length>0){let u=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));a=u(r.map(h=>{if(h=oC(h),h in Dg)return;Dg[h]=!0;const m=h.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${y}`))return;const w=document.createElement("link");if(w.rel=m?"stylesheet":rC,m||(w.as="script"),w.crossOrigin="",w.href=h,f&&w.setAttribute("nonce",f),document.head.appendChild(w),m)return new Promise((v,C)=>{w.addEventListener("load",v),w.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return a.then(u=>{for(const d of u||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})};var Jc={exports:{}},Mt={},ed={exports:{}},td={};/** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var jg;function sC(){return jg||(jg=1,(function(e){function t(D,U){var W=D.length;D.push(U);e:for(;0>>1,V=D[N];if(0>>1;Na(fe,W))gea(ee,fe)?(D[N]=ee,D[ge]=W,N=ge):(D[N]=fe,D[J]=W,N=J);else if(gea(ee,W))D[N]=ee,D[ge]=W,N=ge;else break e}}return U}function a(D,U){var W=D.sortIndex-U.sortIndex;return W!==0?W:D.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],h=[],m=1,y=null,w=3,v=!1,C=!1,S=!1,b=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(D){for(var U=r(h);U!==null;){if(U.callback===null)i(h);else if(U.startTime<=D)i(h),U.sortIndex=U.expirationTime,t(f,U);else break;U=r(h)}}function M(D){if(S=!1,I(D),!C)if(r(f)!==null)C=!0,ce(j);else{var U=r(h);U!==null&&Q(M,U.startTime-D)}}function j(D,U){C=!1,S&&(S=!1,T(z),z=-1),v=!0;var W=w;try{for(I(U),y=r(f);y!==null&&(!(y.expirationTime>U)||D&&!ke());){var N=y.callback;if(typeof N=="function"){y.callback=null,w=y.priorityLevel;var V=N(y.expirationTime<=U);U=e.unstable_now(),typeof V=="function"?y.callback=V:y===r(f)&&i(f),I(U)}else i(f);y=r(f)}if(y!==null)var X=!0;else{var J=r(h);J!==null&&Q(M,J.startTime-U),X=!1}return X}finally{y=null,w=W,v=!1}}var $=!1,B=null,z=-1,Z=5,re=-1;function ke(){return!(e.unstable_now()-reD||125N?(D.sortIndex=W,t(h,D),r(f)===null&&D===r(h)&&(S?(T(z),z=-1):S=!0,Q(M,W-N))):(D.sortIndex=V,t(f,D),C||v||(C=!0,ce(j))),D},e.unstable_shouldYield=ke,e.unstable_wrapCallback=function(D){var U=w;return function(){var W=w;w=U;try{return D.apply(this,arguments)}finally{w=W}}}})(td)),td}var Og;function aC(){return Og||(Og=1,ed.exports=sC()),ed.exports}/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Lg;function lC(){if(Lg)return Mt;Lg=1;var e=xf(),t=aC();function r(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},y={};function w(n){return f.call(y,n)?!0:f.call(m,n)?!1:h.test(n)?y[n]=!0:(m[n]=!0,!1)}function v(n,o,s,c){if(s!==null&&s.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function C(n,o,s,c){if(o===null||typeof o>"u"||v(n,o,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function S(n,o,s,c,p,g,x){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=n,this.type=o,this.sanitizeURL=g,this.removeEmptyString=x}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){b[n]=new S(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];b[o]=new S(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){b[n]=new S(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){b[n]=new S(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){b[n]=new S(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){b[n]=new S(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){b[n]=new S(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){b[n]=new S(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){b[n]=new S(n,5,!1,n.toLowerCase(),null,!1,!1)});var T=/[\-:]([a-z])/g;function A(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var o=n.replace(T,A);b[o]=new S(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(T,A);b[o]=new S(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(T,A);b[o]=new S(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){b[n]=new S(n,1,!1,n.toLowerCase(),null,!1,!1)}),b.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){b[n]=new S(n,1,!1,n.toLowerCase(),null,!0,!0)});function I(n,o,s,c){var p=b.hasOwnProperty(o)?b[o]:null;(p!==null?p.type!==0:c||!(2_||p[x]!==g[_]){var P=` `+p[x].replace(" at new "," at ");return n.displayName&&P.includes("")&&(P=P.replace("",n.displayName)),P}while(1<=x&&0<=_);break}}}finally{X=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?V(n):""}function fe(n){switch(n.tag){case 5:return V(n.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return n=J(n.type,!1),n;case 11:return n=J(n.type.render,!1),n;case 1:return n=J(n.type,!0),n;default:return""}}function ge(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case B:return"Fragment";case $:return"Portal";case Z:return"Profiler";case z:return"StrictMode";case we:return"Suspense";case de:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case ke:return(n.displayName||"Context")+".Consumer";case re:return(n._context.displayName||"Context")+".Provider";case me:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case be:return o=n.displayName||null,o!==null?o:ge(n.type)||"Memo";case ce:o=n._payload,n=n._init;try{return ge(n(o))}catch{}}return null}function ee(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(o);case 8:return o===z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ce(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Te(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function je(n){var o=Te(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),c=""+n[o];if(!n.hasOwnProperty(o)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var p=s.get,g=s.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return p.call(this)},set:function(x){c=""+x,g.call(this,x)}}),Object.defineProperty(n,o,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function it(n){n._valueTracker||(n._valueTracker=je(n))}function Ct(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var s=o.getValue(),c="";return n&&(c=Te(n)?n.checked?"true":"false":n.value),n=c,n!==s?(o.setValue(n),!0):!1}function zt(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function sr(n,o){var s=o.checked;return W({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function co(n,o){var s=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;s=Ce(o.value!=null?o.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function zr(n,o){o=o.checked,o!=null&&I(n,"checked",o,!1)}function Fr(n,o){zr(n,o);var s=Ce(o.value),c=o.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?bn(n,o.type,s):o.hasOwnProperty("defaultValue")&&bn(n,o.type,Ce(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function ar(n,o,s){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,s||o===n.value||(n.value=o),n.defaultValue=o}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function bn(n,o,s){(o!=="number"||zt(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var lr=Array.isArray;function Kt(n,o,s,c){if(n=n.options,o){o={};for(var p=0;p"+o.valueOf().toString()+"",o=po.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function Tn(n,o){if(o){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=o;return}}n.textContent=o}var Vr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$s=["Webkit","ms","Moz","O"];Object.keys(Vr).forEach(function(n){$s.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),Vr[o]=Vr[n]})});function ho(n,o,s){return o==null||typeof o=="boolean"||o===""?"":s||typeof o!="number"||o===0||Vr.hasOwnProperty(n)&&Vr[n]?(""+o).trim():o+"px"}function Hn(n,o){n=n.style;for(var s in o)if(o.hasOwnProperty(s)){var c=s.indexOf("--")===0,p=ho(s,o[s],c);s==="float"&&(s="cssFloat"),c?n.setProperty(s,p):n[s]=p}}var Us=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _n(n,o){if(o){if(Us[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function ki(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bi=null;function mo(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var go=null,ur=null,An=null;function ln(n){if(n=Ui(n)){if(typeof go!="function")throw Error(r(280));var o=n.stateNode;o&&(o=pa(o),go(n.stateNode,n.type,o))}}function Ws(n){ur?An?An.push(n):An=[n]:ur=n}function Se(){if(ur){var n=ur,o=An;if(An=ur=null,ln(n),o)for(n=0;n>>=0,n===0?32:31-(X1(n)/Z1|0)|0}var qs=64,Xs=4194304;function Ei(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Zs(n,o){var s=n.pendingLanes;if(s===0)return 0;var c=0,p=n.suspendedLanes,g=n.pingedLanes,x=s&268435455;if(x!==0){var _=x&~p;_!==0?c=Ei(_):(g&=x,g!==0&&(c=Ei(g)))}else x=s&~p,x!==0?c=Ei(x):g!==0&&(c=Ei(g));if(c===0)return 0;if(o!==0&&o!==c&&(o&p)===0&&(p=c&-c,g=o&-o,p>=g||p===16&&(g&4194240)!==0))return o;if((c&4)!==0&&(c|=s&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=c;0s;s++)o.push(n);return o}function Ti(n,o,s){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-cn(o),n[o]=s}function tS(n,o){var s=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0=Di),Zp=" ",Qp=!1;function Jp(n,o){switch(n){case"keyup":return PS.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eh(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var wo=!1;function RS(n,o){switch(n){case"compositionend":return eh(o);case"keypress":return o.which!==32?null:(Qp=!0,Zp);case"textInput":return n=o.data,n===Zp&&Qp?null:n;default:return null}}function NS(n,o){if(wo)return n==="compositionend"||!wu&&Jp(n,o)?(n=Hp(),na=pu=hr=null,wo=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1=o)return{node:s,offset:o-n};n=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=ah(s)}}function uh(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?uh(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function ch(){for(var n=window,o=zt();o instanceof n.HTMLIFrameElement;){try{var s=typeof o.contentWindow.location.href=="string"}catch{s=!1}if(s)n=o.contentWindow;else break;o=zt(n.document)}return o}function ku(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function BS(n){var o=ch(),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&uh(s.ownerDocument.documentElement,s)){if(c!==null&&ku(s)){if(o=c.start,n=c.end,n===void 0&&(n=o),"selectionStart"in s)s.selectionStart=o,s.selectionEnd=Math.min(n,s.value.length);else if(n=(o=s.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var p=s.textContent.length,g=Math.min(c.start,p);c=c.end===void 0?g:Math.min(c.end,p),!n.extend&&g>c&&(p=c,c=g,g=p),p=lh(s,g);var x=lh(s,c);p&&x&&(n.rangeCount!==1||n.anchorNode!==p.node||n.anchorOffset!==p.offset||n.focusNode!==x.node||n.focusOffset!==x.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),n.removeAllRanges(),g>c?(n.addRange(o),n.extend(x.node,x.offset)):(o.setEnd(x.node,x.offset),n.addRange(o)))}}for(o=[],n=s;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,xo=null,bu=null,zi=null,Cu=!1;function dh(n,o,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Cu||xo==null||xo!==zt(c)||(c=xo,"selectionStart"in c&&ku(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),zi&&Li(zi,c)||(zi=c,c=ca(bu,"onSelect"),0Eo||(n.current=Ou[Eo],Ou[Eo]=null,Eo--)}function Oe(n,o){Eo++,Ou[Eo]=n.current,n.current=o}var yr={},ct=vr(yr),_t=vr(!1),Ur=yr;function To(n,o){var s=n.type.contextTypes;if(!s)return yr;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in s)p[g]=o[g];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=p),p}function At(n){return n=n.childContextTypes,n!=null}function ha(){ze(_t),ze(ct)}function Th(n,o,s){if(ct.current!==yr)throw Error(r(168));Oe(ct,o),Oe(_t,s)}function _h(n,o,s){var c=n.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var p in c)if(!(p in o))throw Error(r(108,ee(n)||"Unknown",p));return W({},s,c)}function ma(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||yr,Ur=ct.current,Oe(ct,n),Oe(_t,_t.current),!0}function Ah(n,o,s){var c=n.stateNode;if(!c)throw Error(r(169));s?(n=_h(n,o,Ur),c.__reactInternalMemoizedMergedChildContext=n,ze(_t),ze(ct),Oe(ct,n)):ze(_t),Oe(_t,s)}var Kn=null,ga=!1,Lu=!1;function Ph(n){Kn===null?Kn=[n]:Kn.push(n)}function JS(n){ga=!0,Ph(n)}function wr(){if(!Lu&&Kn!==null){Lu=!0;var n=0,o=Me;try{var s=Kn;for(Me=1;n>=x,p-=x,Yn=1<<32-cn(o)+p|s<xe?(ot=he,he=null):ot=he.sibling;var Re=H(O,he,L[xe],Y);if(Re===null){he===null&&(he=ot);break}n&&he&&Re.alternate===null&&o(O,he),R=g(Re,R,xe),pe===null?ue=Re:pe.sibling=Re,pe=Re,he=ot}if(xe===L.length)return s(O,he),Fe&&Hr(O,xe),ue;if(he===null){for(;xexe?(ot=he,he=null):ot=he.sibling;var Ar=H(O,he,Re.value,Y);if(Ar===null){he===null&&(he=ot);break}n&&he&&Ar.alternate===null&&o(O,he),R=g(Ar,R,xe),pe===null?ue=Ar:pe.sibling=Ar,pe=Ar,he=ot}if(Re.done)return s(O,he),Fe&&Hr(O,xe),ue;if(he===null){for(;!Re.done;xe++,Re=L.next())Re=K(O,Re.value,Y),Re!==null&&(R=g(Re,R,xe),pe===null?ue=Re:pe.sibling=Re,pe=Re);return Fe&&Hr(O,xe),ue}for(he=c(O,he);!Re.done;xe++,Re=L.next())Re=te(he,O,xe,Re.value,Y),Re!==null&&(n&&Re.alternate!==null&&he.delete(Re.key===null?xe:Re.key),R=g(Re,R,xe),pe===null?ue=Re:pe.sibling=Re,pe=Re);return n&&he.forEach(function(Mk){return o(O,Mk)}),Fe&&Hr(O,xe),ue}function Ke(O,R,L,Y){if(typeof L=="object"&&L!==null&&L.type===B&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case j:e:{for(var ue=L.key,pe=R;pe!==null;){if(pe.key===ue){if(ue=L.type,ue===B){if(pe.tag===7){s(O,pe.sibling),R=p(pe,L.props.children),R.return=O,O=R;break e}}else if(pe.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ce&&jh(ue)===pe.type){s(O,pe.sibling),R=p(pe,L.props),R.ref=Wi(O,pe,L),R.return=O,O=R;break e}s(O,pe);break}else o(O,pe);pe=pe.sibling}L.type===B?(R=Jr(L.props.children,O.mode,Y,L.key),R.return=O,O=R):(Y=Wa(L.type,L.key,L.props,null,O.mode,Y),Y.ref=Wi(O,R,L),Y.return=O,O=Y)}return x(O);case $:e:{for(pe=L.key;R!==null;){if(R.key===pe)if(R.tag===4&&R.stateNode.containerInfo===L.containerInfo&&R.stateNode.implementation===L.implementation){s(O,R.sibling),R=p(R,L.children||[]),R.return=O,O=R;break e}else{s(O,R);break}else o(O,R);R=R.sibling}R=Dc(L,O.mode,Y),R.return=O,O=R}return x(O);case ce:return pe=L._init,Ke(O,R,pe(L._payload),Y)}if(lr(L))return ie(O,R,L,Y);if(U(L))return le(O,R,L,Y);xa(O,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,R!==null&&R.tag===6?(s(O,R.sibling),R=p(R,L),R.return=O,O=R):(s(O,R),R=Mc(L,O.mode,Y),R.return=O,O=R),x(O)):s(O,R)}return Ke}var Io=Oh(!0),Lh=Oh(!1),Sa=vr(null),ka=null,Ro=null,Uu=null;function Wu(){Uu=Ro=ka=null}function Hu(n){var o=Sa.current;ze(Sa),n._currentValue=o}function Gu(n,o,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),n===s)break;n=n.return}}function No(n,o){ka=n,Uu=Ro=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&o)!==0&&(Pt=!0),n.firstContext=null)}function Xt(n){var o=n._currentValue;if(Uu!==n)if(n={context:n,memoizedValue:o,next:null},Ro===null){if(ka===null)throw Error(r(308));Ro=n,ka.dependencies={lanes:0,firstContext:n}}else Ro=Ro.next=n;return o}var Gr=null;function Ku(n){Gr===null?Gr=[n]:Gr.push(n)}function zh(n,o,s,c){var p=o.interleaved;return p===null?(s.next=s,Ku(o)):(s.next=p.next,p.next=s),o.interleaved=s,Xn(n,c)}function Xn(n,o){n.lanes|=o;var s=n.alternate;for(s!==null&&(s.lanes|=o),s=n,n=n.return;n!==null;)n.childLanes|=o,s=n.alternate,s!==null&&(s.childLanes|=o),s=n,n=n.return;return s.tag===3?s.stateNode:null}var xr=!1;function Yu(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fh(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Zn(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function Sr(n,o,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Ie&2)!==0){var p=c.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),c.pending=o,Xn(n,s)}return p=c.interleaved,p===null?(o.next=o,Ku(c)):(o.next=p.next,p.next=o),c.interleaved=o,Xn(n,s)}function ba(n,o,s){if(o=o.updateQueue,o!==null&&(o=o.shared,(s&4194240)!==0)){var c=o.lanes;c&=n.pendingLanes,s|=c,o.lanes=s,lu(n,s)}}function Vh(n,o){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var p=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var x={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};g===null?p=g=x:g=g.next=x,s=s.next}while(s!==null);g===null?p=g=o:g=g.next=o}else p=g=o;s={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:c.shared,effects:c.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=o:n.next=o,s.lastBaseUpdate=o}function Ca(n,o,s,c){var p=n.updateQueue;xr=!1;var g=p.firstBaseUpdate,x=p.lastBaseUpdate,_=p.shared.pending;if(_!==null){p.shared.pending=null;var P=_,F=P.next;P.next=null,x===null?g=F:x.next=F,x=P;var G=n.alternate;G!==null&&(G=G.updateQueue,_=G.lastBaseUpdate,_!==x&&(_===null?G.firstBaseUpdate=F:_.next=F,G.lastBaseUpdate=P))}if(g!==null){var K=p.baseState;x=0,G=F=P=null,_=g;do{var H=_.lane,te=_.eventTime;if((c&H)===H){G!==null&&(G=G.next={eventTime:te,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var ie=n,le=_;switch(H=o,te=s,le.tag){case 1:if(ie=le.payload,typeof ie=="function"){K=ie.call(te,K,H);break e}K=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=le.payload,H=typeof ie=="function"?ie.call(te,K,H):ie,H==null)break e;K=W({},K,H);break e;case 2:xr=!0}}_.callback!==null&&_.lane!==0&&(n.flags|=64,H=p.effects,H===null?p.effects=[_]:H.push(_))}else te={eventTime:te,lane:H,tag:_.tag,payload:_.payload,callback:_.callback,next:null},G===null?(F=G=te,P=K):G=G.next=te,x|=H;if(_=_.next,_===null){if(_=p.shared.pending,_===null)break;H=_,_=H.next,H.next=null,p.lastBaseUpdate=H,p.shared.pending=null}}while(!0);if(G===null&&(P=K),p.baseState=P,p.firstBaseUpdate=F,p.lastBaseUpdate=G,o=p.shared.interleaved,o!==null){p=o;do x|=p.lane,p=p.next;while(p!==o)}else g===null&&(p.shared.lanes=0);qr|=x,n.lanes=x,n.memoizedState=K}}function Bh(n,o,s){if(n=o.effects,o.effects=null,n!==null)for(o=0;os?s:4,n(!0);var c=Ju.transition;Ju.transition={};try{n(!1),o()}finally{Me=s,Ju.transition=c}}function sm(){return Zt().memoizedState}function rk(n,o,s){var c=Er(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},am(n))lm(o,s);else if(s=zh(n,o,s,c),s!==null){var p=xt();gn(s,n,c,p),um(s,o,c)}}function ok(n,o,s){var c=Er(n),p={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(am(n))lm(o,p);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=o.lastRenderedReducer,g!==null))try{var x=o.lastRenderedState,_=g(x,s);if(p.hasEagerState=!0,p.eagerState=_,dn(_,x)){var P=o.interleaved;P===null?(p.next=p,Ku(o)):(p.next=P.next,P.next=p),o.interleaved=p;return}}catch{}finally{}s=zh(n,o,p,c),s!==null&&(p=xt(),gn(s,n,c,p),um(s,o,c))}}function am(n){var o=n.alternate;return n===$e||o!==null&&o===$e}function lm(n,o){Yi=_a=!0;var s=n.pending;s===null?o.next=o:(o.next=s.next,s.next=o),n.pending=o}function um(n,o,s){if((s&4194240)!==0){var c=o.lanes;c&=n.pendingLanes,s|=c,o.lanes=s,lu(n,s)}}var Ia={readContext:Xt,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},ik={readContext:Xt,useCallback:function(n,o){return Mn().memoizedState=[n,o===void 0?null:o],n},useContext:Xt,useEffect:Qh,useImperativeHandle:function(n,o,s){return s=s!=null?s.concat([n]):null,Aa(4194308,4,tm.bind(null,o,n),s)},useLayoutEffect:function(n,o){return Aa(4194308,4,n,o)},useInsertionEffect:function(n,o){return Aa(4,2,n,o)},useMemo:function(n,o){var s=Mn();return o=o===void 0?null:o,n=n(),s.memoizedState=[n,o],n},useReducer:function(n,o,s){var c=Mn();return o=s!==void 0?s(o):o,c.memoizedState=c.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},c.queue=n,n=n.dispatch=rk.bind(null,$e,n),[c.memoizedState,n]},useRef:function(n){var o=Mn();return n={current:n},o.memoizedState=n},useState:Xh,useDebugValue:sc,useDeferredValue:function(n){return Mn().memoizedState=n},useTransition:function(){var n=Xh(!1),o=n[0];return n=nk.bind(null,n[1]),Mn().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,s){var c=$e,p=Mn();if(Fe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=o(),rt===null)throw Error(r(349));(Yr&30)!==0||Hh(c,o,s)}p.memoizedState=s;var g={value:s,getSnapshot:o};return p.queue=g,Qh(Kh.bind(null,c,g,n),[n]),c.flags|=2048,Zi(9,Gh.bind(null,c,g,s,o),void 0,null),s},useId:function(){var n=Mn(),o=rt.identifierPrefix;if(Fe){var s=qn,c=Yn;s=(c&~(1<<32-cn(c)-1)).toString(32)+s,o=":"+o+"R"+s,s=qi++,0<\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=x.createElement(s,{is:c.is}):(n=x.createElement(s),s==="select"&&(x=n,c.multiple?x.multiple=!0:c.size&&(x.size=c.size))):n=x.createElementNS(n,s),n[Rn]=o,n[$i]=c,Pm(n,o,!1,!1),o.stateNode=n;e:{switch(x=ki(s,c),s){case"dialog":Le("cancel",n),Le("close",n),p=c;break;case"iframe":case"object":case"embed":Le("load",n),p=c;break;case"video":case"audio":for(p=0;pLo&&(o.flags|=128,c=!0,Qi(g,!1),o.lanes=4194304)}else{if(!c)if(n=Ea(x),n!==null){if(o.flags|=128,c=!0,s=n.updateQueue,s!==null&&(o.updateQueue=s,o.flags|=4),Qi(g,!0),g.tail===null&&g.tailMode==="hidden"&&!x.alternate&&!Fe)return ft(o),null}else 2*Ge()-g.renderingStartTime>Lo&&s!==1073741824&&(o.flags|=128,c=!0,Qi(g,!1),o.lanes=4194304);g.isBackwards?(x.sibling=o.child,o.child=x):(s=g.last,s!==null?s.sibling=x:o.child=x,g.last=x)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=Ge(),o.sibling=null,s=Be.current,Oe(Be,c?s&1|2:s&1),o):(ft(o),null);case 22:case 23:return Ic(),c=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?($t&1073741824)!==0&&(ft(o),o.subtreeFlags&6&&(o.flags|=8192)):ft(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function pk(n,o){switch(Fu(o),o.tag){case 1:return At(o.type)&&ha(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return Mo(),ze(_t),ze(ct),Qu(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 5:return Xu(o),null;case 13:if(ze(Be),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Po()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return ze(Be),null;case 4:return Mo(),null;case 10:return Hu(o.type._context),null;case 22:case 23:return Ic(),null;case 24:return null;default:return null}}var Da=!1,pt=!1,hk=typeof WeakSet=="function"?WeakSet:Set,ne=null;function jo(n,o){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){We(n,o,c)}else s.current=null}function yc(n,o,s){try{s()}catch(c){We(n,o,c)}}var Nm=!1;function mk(n,o){if(Iu=ea,n=ch(),ku(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var p=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var x=0,_=-1,P=-1,F=0,G=0,K=n,H=null;t:for(;;){for(var te;K!==s||p!==0&&K.nodeType!==3||(_=x+p),K!==g||c!==0&&K.nodeType!==3||(P=x+c),K.nodeType===3&&(x+=K.nodeValue.length),(te=K.firstChild)!==null;)H=K,K=te;for(;;){if(K===n)break t;if(H===s&&++F===p&&(_=x),H===g&&++G===c&&(P=x),(te=K.nextSibling)!==null)break;K=H,H=K.parentNode}K=te}s=_===-1||P===-1?null:{start:_,end:P}}else s=null}s=s||{start:0,end:0}}else s=null;for(Ru={focusedElem:n,selectionRange:s},ea=!1,ne=o;ne!==null;)if(o=ne,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,ne=n;else for(;ne!==null;){o=ne;try{var ie=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var le=ie.memoizedProps,Ke=ie.memoizedState,O=o.stateNode,R=O.getSnapshotBeforeUpdate(o.elementType===o.type?le:pn(o.type,le),Ke);O.__reactInternalSnapshotBeforeUpdate=R}break;case 3:var L=o.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Y){We(o,o.return,Y)}if(n=o.sibling,n!==null){n.return=o.return,ne=n;break}ne=o.return}return ie=Nm,Nm=!1,ie}function Ji(n,o,s){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&n)===n){var g=p.destroy;p.destroy=void 0,g!==void 0&&yc(o,s,g)}p=p.next}while(p!==c)}}function ja(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&n)===n){var c=s.create;s.destroy=c()}s=s.next}while(s!==o)}}function wc(n){var o=n.ref;if(o!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof o=="function"?o(n):o.current=n}}function Mm(n){var o=n.alternate;o!==null&&(n.alternate=null,Mm(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[Rn],delete o[$i],delete o[ju],delete o[ZS],delete o[QS])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Dm(n){return n.tag===5||n.tag===3||n.tag===4}function jm(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Dm(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function xc(n,o,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?s.nodeType===8?s.parentNode.insertBefore(n,o):s.insertBefore(n,o):(s.nodeType===8?(o=s.parentNode,o.insertBefore(n,s)):(o=s,o.appendChild(n)),s=s._reactRootContainer,s!=null||o.onclick!==null||(o.onclick=fa));else if(c!==4&&(n=n.child,n!==null))for(xc(n,o,s),n=n.sibling;n!==null;)xc(n,o,s),n=n.sibling}function Sc(n,o,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?s.insertBefore(n,o):s.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(Sc(n,o,s),n=n.sibling;n!==null;)Sc(n,o,s),n=n.sibling}var at=null,hn=!1;function kr(n,o,s){for(s=s.child;s!==null;)Om(n,o,s),s=s.sibling}function Om(n,o,s){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(Ys,s)}catch{}switch(s.tag){case 5:pt||jo(s,o);case 6:var c=at,p=hn;at=null,kr(n,o,s),at=c,hn=p,at!==null&&(hn?(n=at,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):at.removeChild(s.stateNode));break;case 18:at!==null&&(hn?(n=at,s=s.stateNode,n.nodeType===8?Du(n.parentNode,s):n.nodeType===1&&Du(n,s),Ri(n)):Du(at,s.stateNode));break;case 4:c=at,p=hn,at=s.stateNode.containerInfo,hn=!0,kr(n,o,s),at=c,hn=p;break;case 0:case 11:case 14:case 15:if(!pt&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){p=c=c.next;do{var g=p,x=g.destroy;g=g.tag,x!==void 0&&((g&2)!==0||(g&4)!==0)&&yc(s,o,x),p=p.next}while(p!==c)}kr(n,o,s);break;case 1:if(!pt&&(jo(s,o),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(_){We(s,o,_)}kr(n,o,s);break;case 21:kr(n,o,s);break;case 22:s.mode&1?(pt=(c=pt)||s.memoizedState!==null,kr(n,o,s),pt=c):kr(n,o,s);break;default:kr(n,o,s)}}function Lm(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new hk),o.forEach(function(c){var p=Ck.bind(null,n,c);s.has(c)||(s.add(c),c.then(p,p))})}}function mn(n,o){var s=o.deletions;if(s!==null)for(var c=0;cp&&(p=x),c&=~g}if(c=p,c=Ge()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*vk(c/1960))-c,10n?16:n,Cr===null)var c=!1;else{if(n=Cr,Cr=null,Va=0,(Ie&6)!==0)throw Error(r(331));var p=Ie;for(Ie|=4,ne=n.current;ne!==null;){var g=ne,x=g.child;if((ne.flags&16)!==0){var _=g.deletions;if(_!==null){for(var P=0;P<_.length;P++){var F=_[P];for(ne=F;ne!==null;){var G=ne;switch(G.tag){case 0:case 11:case 15:Ji(8,G,g)}var K=G.child;if(K!==null)K.return=G,ne=K;else for(;ne!==null;){G=ne;var H=G.sibling,te=G.return;if(Mm(G),G===F){ne=null;break}if(H!==null){H.return=te,ne=H;break}ne=te}}}var ie=g.alternate;if(ie!==null){var le=ie.child;if(le!==null){ie.child=null;do{var Ke=le.sibling;le.sibling=null,le=Ke}while(le!==null)}}ne=g}}if((g.subtreeFlags&2064)!==0&&x!==null)x.return=g,ne=x;else e:for(;ne!==null;){if(g=ne,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Ji(9,g,g.return)}var O=g.sibling;if(O!==null){O.return=g.return,ne=O;break e}ne=g.return}}var R=n.current;for(ne=R;ne!==null;){x=ne;var L=x.child;if((x.subtreeFlags&2064)!==0&&L!==null)L.return=x,ne=L;else e:for(x=R;ne!==null;){if(_=ne,(_.flags&2048)!==0)try{switch(_.tag){case 0:case 11:case 15:ja(9,_)}}catch(ue){We(_,_.return,ue)}if(_===x){ne=null;break e}var Y=_.sibling;if(Y!==null){Y.return=_.return,ne=Y;break e}ne=_.return}}if(Ie=p,wr(),In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(Ys,n)}catch{}c=!0}return c}finally{Me=s,Qt.transition=o}}return!1}function qm(n,o,s){o=Do(s,o),o=pm(n,o,1),n=Sr(n,o,1),o=xt(),n!==null&&(Ti(n,1,o),Rt(n,o))}function We(n,o,s){if(n.tag===3)qm(n,n,s);else for(;o!==null;){if(o.tag===3){qm(o,n,s);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(br===null||!br.has(c))){n=Do(s,n),n=hm(o,n,1),o=Sr(o,n,1),n=xt(),o!==null&&(Ti(o,1,n),Rt(o,n));break}}o=o.return}}function kk(n,o,s){var c=n.pingCache;c!==null&&c.delete(o),o=xt(),n.pingedLanes|=n.suspendedLanes&s,rt===n&&(lt&s)===s&&(et===4||et===3&&(lt&130023424)===lt&&500>Ge()-Cc?Zr(n,0):bc|=s),Rt(n,o)}function Xm(n,o){o===0&&((n.mode&1)===0?o=1:(o=Xs,Xs<<=1,(Xs&130023424)===0&&(Xs=4194304)));var s=xt();n=Xn(n,o),n!==null&&(Ti(n,o,s),Rt(n,s))}function bk(n){var o=n.memoizedState,s=0;o!==null&&(s=o.retryLane),Xm(n,s)}function Ck(n,o){var s=0;switch(n.tag){case 13:var c=n.stateNode,p=n.memoizedState;p!==null&&(s=p.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(o),Xm(n,s)}var Zm;Zm=function(n,o,s){if(n!==null)if(n.memoizedProps!==o.pendingProps||_t.current)Pt=!0;else{if((n.lanes&s)===0&&(o.flags&128)===0)return Pt=!1,dk(n,o,s);Pt=(n.flags&131072)!==0}else Pt=!1,Fe&&(o.flags&1048576)!==0&&Ih(o,ya,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;Ma(n,o),n=o.pendingProps;var p=To(o,ct.current);No(o,s),p=tc(null,o,c,n,p,s);var g=nc();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,At(c)?(g=!0,ma(o)):g=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Yu(o),p.updater=Ra,o.stateNode=p,p._reactInternals=o,lc(o,c,n,s),o=fc(null,o,c,!0,g,s)):(o.tag=0,Fe&&g&&zu(o),wt(null,o,p,s),o=o.child),o;case 16:c=o.elementType;e:{switch(Ma(n,o),n=o.pendingProps,p=c._init,c=p(c._payload),o.type=c,p=o.tag=Tk(c),n=pn(c,n),p){case 0:o=dc(null,o,c,n,s);break e;case 1:o=bm(null,o,c,n,s);break e;case 11:o=ym(null,o,c,n,s);break e;case 14:o=wm(null,o,c,pn(c.type,n),s);break e}throw Error(r(306,c,""))}return o;case 0:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:pn(c,p),dc(n,o,c,p,s);case 1:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:pn(c,p),bm(n,o,c,p,s);case 3:e:{if(Cm(o),n===null)throw Error(r(387));c=o.pendingProps,g=o.memoizedState,p=g.element,Fh(n,o),Ca(o,c,null,s);var x=o.memoizedState;if(c=x.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},o.updateQueue.baseState=g,o.memoizedState=g,o.flags&256){p=Do(Error(r(423)),o),o=Em(n,o,c,s,p);break e}else if(c!==p){p=Do(Error(r(424)),o),o=Em(n,o,c,s,p);break e}else for(Bt=gr(o.stateNode.containerInfo.firstChild),Vt=o,Fe=!0,fn=null,s=Lh(o,null,c,s),o.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Po(),c===p){o=Qn(n,o,s);break e}wt(n,o,c,s)}o=o.child}return o;case 5:return $h(o),n===null&&Bu(o),c=o.type,p=o.pendingProps,g=n!==null?n.memoizedProps:null,x=p.children,Nu(c,p)?x=null:g!==null&&Nu(c,g)&&(o.flags|=32),km(n,o),wt(n,o,x,s),o.child;case 6:return n===null&&Bu(o),null;case 13:return Tm(n,o,s);case 4:return qu(o,o.stateNode.containerInfo),c=o.pendingProps,n===null?o.child=Io(o,null,c,s):wt(n,o,c,s),o.child;case 11:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:pn(c,p),ym(n,o,c,p,s);case 7:return wt(n,o,o.pendingProps,s),o.child;case 8:return wt(n,o,o.pendingProps.children,s),o.child;case 12:return wt(n,o,o.pendingProps.children,s),o.child;case 10:e:{if(c=o.type._context,p=o.pendingProps,g=o.memoizedProps,x=p.value,Oe(Sa,c._currentValue),c._currentValue=x,g!==null)if(dn(g.value,x)){if(g.children===p.children&&!_t.current){o=Qn(n,o,s);break e}}else for(g=o.child,g!==null&&(g.return=o);g!==null;){var _=g.dependencies;if(_!==null){x=g.child;for(var P=_.firstContext;P!==null;){if(P.context===c){if(g.tag===1){P=Zn(-1,s&-s),P.tag=2;var F=g.updateQueue;if(F!==null){F=F.shared;var G=F.pending;G===null?P.next=P:(P.next=G.next,G.next=P),F.pending=P}}g.lanes|=s,P=g.alternate,P!==null&&(P.lanes|=s),Gu(g.return,s,o),_.lanes|=s;break}P=P.next}}else if(g.tag===10)x=g.type===o.type?null:g.child;else if(g.tag===18){if(x=g.return,x===null)throw Error(r(341));x.lanes|=s,_=x.alternate,_!==null&&(_.lanes|=s),Gu(x,s,o),x=g.sibling}else x=g.child;if(x!==null)x.return=g;else for(x=g;x!==null;){if(x===o){x=null;break}if(g=x.sibling,g!==null){g.return=x.return,x=g;break}x=x.return}g=x}wt(n,o,p.children,s),o=o.child}return o;case 9:return p=o.type,c=o.pendingProps.children,No(o,s),p=Xt(p),c=c(p),o.flags|=1,wt(n,o,c,s),o.child;case 14:return c=o.type,p=pn(c,o.pendingProps),p=pn(c.type,p),wm(n,o,c,p,s);case 15:return xm(n,o,o.type,o.pendingProps,s);case 17:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:pn(c,p),Ma(n,o),o.tag=1,At(c)?(n=!0,ma(o)):n=!1,No(o,s),dm(o,c,p),lc(o,c,p,s),fc(null,o,c,!0,n,s);case 19:return Am(n,o,s);case 22:return Sm(n,o,s)}throw Error(r(156,o.tag))};function Qm(n,o){return Rp(n,o)}function Ek(n,o,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(n,o,s,c){return new Ek(n,o,s,c)}function Nc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Tk(n){if(typeof n=="function")return Nc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===me)return 11;if(n===be)return 14}return 2}function _r(n,o){var s=n.alternate;return s===null?(s=Jt(n.tag,o,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=o,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,o=n.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function Wa(n,o,s,c,p,g){var x=2;if(c=n,typeof n=="function")Nc(n)&&(x=1);else if(typeof n=="string")x=5;else e:switch(n){case B:return Jr(s.children,p,g,o);case z:x=8,p|=8;break;case Z:return n=Jt(12,s,o,p|2),n.elementType=Z,n.lanes=g,n;case we:return n=Jt(13,s,o,p),n.elementType=we,n.lanes=g,n;case de:return n=Jt(19,s,o,p),n.elementType=de,n.lanes=g,n;case Q:return Ha(s,p,g,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case re:x=10;break e;case ke:x=9;break e;case me:x=11;break e;case be:x=14;break e;case ce:x=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return o=Jt(x,s,o,p),o.elementType=n,o.type=c,o.lanes=g,o}function Jr(n,o,s,c){return n=Jt(7,n,c,o),n.lanes=s,n}function Ha(n,o,s,c){return n=Jt(22,n,c,o),n.elementType=Q,n.lanes=s,n.stateNode={isHidden:!1},n}function Mc(n,o,s){return n=Jt(6,n,null,o),n.lanes=s,n}function Dc(n,o,s){return o=Jt(4,n.children!==null?n.children:[],n.key,o),o.lanes=s,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function _k(n,o,s,c,p){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=au(0),this.expirationTimes=au(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=au(0),this.identifierPrefix=c,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function jc(n,o,s,c,p,g,x,_,P){return n=new _k(n,o,s,_,P),o===1?(o=1,g===!0&&(o|=8)):o=0,g=Jt(3,null,null,o),n.current=g,g.stateNode=n,g.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yu(g),n}function Ak(n,o,s){var c=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Jc.exports=lC(),Jc.exports}var Wl=uC();const Cf=di(Wl),cC=Dy({__proto__:null,default:Cf},[Wl]),ml={...cC},{version:o0,hydrate:dC}=ml,fC=Number((o0||"").split(".")[0])>17,pC=Number((o0||"").split(".")[0])>18;function hC(e,t,r={}){const{useLegacyRender:i}=r;if(i||!fC)dC(e,t);else if(pC)iC(()=>import("./client--A2pU3Nm.js").then(a=>a.c),[]).then(({default:{hydrateRoot:a}})=>{q.startTransition(()=>{a(t,e)})});else{ml.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0;const{hydrateRoot:a}=ml;if(!a)throw new Error("hydrateRoot not found");q.startTransition(()=>{a(t,e),ml.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!1})}}function mC(e){return document.readyState==="loading"?new Promise(t=>{document.addEventListener("DOMContentLoaded",()=>t(e))}):Promise.resolve(e)}function gC(e){return E.jsx(hl,{...e})}function vC(e){try{return JSON.parse(e||"{}")}catch(t){return console.error("[SSG] On state deserialization -",t,e),{}}}function yC(e,t,r={}){const{transformState:i,rootContainer:a="#root",ssrWhenDev:l,getStyleCollector:u=null}=r,d=typeof window<"u";async function f(h=!1,m){const y=[],C={isClient:d,onSSRAppRendered:h?()=>{}:b=>y.push(b),triggerOnSSRAppRendered:()=>Promise.all(y.map(b=>b())),initialState:{},transformState:i,routePath:m,getStyleCollector:u,routes:void 0,routerOptions:void 0,base:"/",app:e,routerType:"single-page"};h&&(await mC(),C.initialState=(i==null?void 0:i(window.__INITIAL_STATE__||{}))||vC(window.__INITIAL_STATE__)),await(t==null?void 0:t(C));const S=C.initialState;return{...C,initialState:S}}return d&&(async()=>{const h=typeof a=="string"?document.querySelector(a):a;if(!h){typeof $jsdom>"u"&&console.warn("[vite-react-ssg] Root container not found.");return}const m=await f(!0);window.__VITE_REACT_SSG_CONTEXT__=m;const y=E.jsx(Wo,{children:e});document.querySelector("[data-server-rendered=true]"),hC(y,h,r)})(),f}var wC=k.createContext(null);function xC({children:e,value:t}){return E.jsx(wC.Provider,{value:t,children:e})}function ii(){return SC()}function SC(e=new Date){let t=e.valueOf().toString(16).padStart(12,"0"),r=crypto.randomUUID();return`${t.slice(0,8)}-${t.slice(8,12)}-7${r.slice(15)}`}var kC={maxBatchSize:10,maxWaitTime:2e3,debounceTime:100},bC=class{constructor(t={}){Nt(this,"batch",[]);Nt(this,"flushTimer",null);Nt(this,"debounceTimer",null);Nt(this,"config");Nt(this,"isProcessing",!1);this.config={...kC,...t}}async addEvent(t){let r={eventData:t,timestamp:Date.now(),retryCount:0};return this.batch.push(r),oe("📦 Event added to batch:",{event_id:t.event_id,event_type:t.event_type,batch_size:this.batch.length,max_batch_size:this.config.maxBatchSize,debounce_time:this.config.debounceTime}),this.debounceTimer&&clearTimeout(this.debounceTimer),this.batch.length>=this.config.maxBatchSize?(oe("🚀 Batch full, flushing immediately"),await this.flushBatch()):(this.debounceTimer=setTimeout(()=>{this.processBatchWithTimer()},this.config.debounceTime),!0)}processBatchWithTimer(){if(this.batch.length===0)return;oe("⏱️ Debounce timer expired, scheduling batch flush"),this.flushTimer&&clearTimeout(this.flushTimer);let t=Math.min(...this.batch.map(a=>a.timestamp)),r=Date.now()-t,i=Math.max(0,this.config.maxWaitTime-r);i<=0?this.flushBatch().catch(a=>{oe("❌ Timer flush batch error:",a)}):this.flushTimer=setTimeout(()=>{this.flushBatch().catch(a=>{oe("❌ Timer flush batch error:",a)})},i)}async flushBatch(){if(this.isProcessing||this.batch.length===0)return!0;this.isProcessing=!0,this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=null);let t=[...this.batch];this.batch=[],oe("🚀 Flushing batch:",{event_count:t.length,events:t.map(r=>({event_id:r.eventData.event_id,event_type:r.eventData.event_type,timestamp:r.timestamp,retry_count:r.retryCount}))});try{let r=await this.sendBatch(t);return this.isProcessing=!1,r}catch(r){oe("❌ Batch flush error:",r);let i=t.map(a=>({...a,retryCount:a.retryCount+1})).filter(a=>a.retryCount<=3);return this.batch.unshift(...i),this.isProcessing=!1,!1}}flushBatchSync(){if(this.batch.length===0)return!0;let t=tr(),r=ei();if(!r||!r.sessionId)return oe("❌ No session data found for sync batch, cannot send (session expired and no renewal possible during page unload)"),!1;let i=r.sessionId,a=typeof window<"u"&&window.__FIREBUZZ_SESSION_CONTEXT__||null,l={events:this.batch.map(f=>({...f.eventData,session_id:i,page_url:f.eventData.page_url||window.location.href,referrer_url:f.eventData.referrer_url||document.referrer||void 0,campaign_environment:(a==null?void 0:a.campaignEnvironment)||"production"}))},u=`${t.apiUrl}/client-api/v1/events/batch-track`,d=JSON.stringify(l);if(oe("🚨 Sending sync batch via sendBeacon:",{session_id:i,event_count:l.events.length,url:u,beacon_supported:!!navigator.sendBeacon}),navigator.sendBeacon){let f=new Blob([d],{type:"application/json"});if(navigator.sendBeacon(u,f))return oe("✅ Sync batch sent via sendBeacon"),this.batch=[],!0;oe("❌ sendBeacon failed, trying fetch with keepalive")}try{return fetch(u,{method:"POST",headers:{"Content-Type":"application/json"},body:d,keepalive:!0}),oe("✅ Sync batch sent via fetch with keepalive"),this.batch=[],!0}catch(f){return oe("❌ Sync batch failed:",f),!1}}async sendBatch(t){var f;let r=tr(),i=ei();if(!i||!i.sessionId){oe("⚠️ No session data found for batch, renewing session");try{let h=ii(),m=(i==null?void 0:i.sessionId)||"expired",y=await Vd(m,h);if(y.success)oe("✅ Session renewed for batch:",h);else return oe("❌ Failed to renew session for batch:",y.error),!1}catch(h){return oe("❌ Error renewing session for batch:",h),!1}}let a=(f=ei())==null?void 0:f.sessionId;if(!a)return oe("❌ Still no session ID available after renewal attempt"),!1;let l=typeof window<"u"&&window.__FIREBUZZ_SESSION_CONTEXT__||null,u={events:t.map(h=>({...h.eventData,session_id:a,event_value_currency:h.eventData.event_value_currency||r.defaultCurrency||"USD",page_url:h.eventData.page_url||window.location.href,referrer_url:h.eventData.referrer_url||document.referrer||void 0,campaign_environment:(l==null?void 0:l.campaignEnvironment)||"production"}))};oe("📦 Sending batch to API:",{session_id:a,event_count:u.events.length,events:u.events.map(h=>({event_id:h.event_id,event_type:h.event_type})),url:`${r.apiUrl}/client-api/v1/events/batch-track`});let d=await(await fetch(`${r.apiUrl}/client-api/v1/events/batch-track`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u),credentials:"include"})).json();if(d.success)return oe("✅ Batch sent successfully:",d.data),!0;if(d.new_session_id){oe("🔄 Session expired during batch, handling renewal");let h=await Vd(a,d.new_session_id);return h.success?(oe("✅ Batch session renewed successfully, retrying batch"),await this.sendBatch(t)):(oe("❌ Batch session renewal failed:",h.error),!1)}return oe("❌ Batch failed:",d.error),!1}async forceFlush(){this.batch.length>0&&(oe("🚨 Force flushing batch on page unload"),await this.flushBatch())}getBatchSize(){return this.batch.length}clear(){this.batch=[],this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=null)}},tn=null;function i0(e){return tn||(tn=new bC(e),typeof window<"u"&&(window.addEventListener("beforeunload",()=>{tn&&tn.getBatchSize()>0&&(oe("🚨 Page unloading, attempting sync flush"),tn.flushBatchSync()||oe("❌ Failed to flush batch on beforeunload"))}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&tn&&tn.getBatchSize()>0&&(oe("🚨 Page hidden, attempting sync flush"),tn.flushBatchSync())}),window.addEventListener("pagehide",()=>{tn&&tn.getBatchSize()>0&&(oe("🚨 Page hide event, attempting sync flush"),tn.flushBatchSync())}))),tn}var el="frbzz_",CC=class{constructor(e){Nt(this,"config");Nt(this,"consentState",null);Nt(this,"sessionStorage",null);this.config=e}updateConsentState(e){var i,a,l;let t=((a=(i=this.consentState)==null?void 0:i.preferences)==null?void 0:a.analytics)===!0,r=((l=e.preferences)==null?void 0:l.analytics)===!0;this.consentState=e,this.config.debug&&console.log("[SessionManager] Consent state updated:",e),this.onConsentChange(t,r)}onConsentChange(e,t){if(!e&&t){let r=this.getSessionFromContext();r&&this.setSessionCookies(r)}else e&&!t&&this.clearAllCookies()}setSessionCookies(e){this.shouldSetCookies()&&(this.setSessionCookie(e),this.setUserIdCookie(e.userId),this.sessionStorage&&this.setAttributionCookie(this.sessionStorage))}getUserIdCookieName(){return this.config.environment==="preview"?`${el}uid_${this.config.campaignId}`:`${el}uid`}getSessionCookieName(){return`${el}session_${this.config.campaignId}`}shouldSetCookies(){var i,a,l,u,d,f,h,m;if(this.config.environment==="dev"||!this.consentState)return!1;let e=typeof window<"u"&&window.__FIREBUZZ_SESSION_CONTEXT__||null,t=((i=e==null?void 0:e.gdprSettings)==null?void 0:i.isEnabled)&&((a=e==null?void 0:e.gdprSettings)==null?void 0:a.isRequiredConsent);if(this.config.debug&&console.log("[SessionManager] shouldSetCookies debug:",{hasConsentState:!!this.consentState,isConsentRequired:t,gdprEnabled:(l=e==null?void 0:e.gdprSettings)==null?void 0:l.isEnabled,gdprRequiredConsent:(u=e==null?void 0:e.gdprSettings)==null?void 0:u.isRequiredConsent,hasUserInteracted:(d=this.consentState)==null?void 0:d.hasUserInteracted,analyticsConsent:(h=(f=this.consentState)==null?void 0:f.preferences)==null?void 0:h.analytics}),!t)return this.config.debug&&console.log("[SessionManager] GDPR disabled - allowing cookies"),!0;let r=this.consentState.hasUserInteracted&&((m=this.consentState.preferences)==null?void 0:m.analytics)===!0;return this.config.debug&&console.log("[SessionManager] GDPR enabled - shouldSetCookies:",r),r}getCookieOptions(e=1){return{secure:this.config.environment==="production",sameSite:(this.config.environment,"lax"),expires:e}}setUserIdCookie(e){if(!this.shouldSetCookies()){this.config.debug&&console.log("[SessionManager] Skipping user ID cookie - no consent or dev mode");return}let t=this.getUserIdCookieName();Dt.set(t,e,this.getCookieOptions(365)),this.config.debug&&console.log(`[SessionManager] User ID cookie set: ${t}`)}getUserIdCookie(){let e=this.getUserIdCookieName();return Dt.get(e)||null}removeUserIdCookie(){let e=this.getUserIdCookieName();Dt.remove(e),this.config.debug&&console.log(`[SessionManager] User ID cookie removed: ${e}`)}setSessionCookie(e){if(!this.shouldSetCookies()){this.config.debug&&console.log("[SessionManager] Skipping session cookie - no consent or dev mode");return}let t=this.getSessionCookieName(),r=JSON.stringify(e),i=30/1440;Dt.set(t,r,this.getCookieOptions(i)),this.config.debug&&console.log(`[SessionManager] Session cookie set: ${t}`,e)}getSessionCookie(){let e=this.getSessionCookieName(),t=Dt.get(e);if(!t)return null;try{return JSON.parse(t)}catch(r){return this.config.debug&&console.warn("[SessionManager] Failed to parse session cookie:",r),null}}removeSessionCookie(){let e=this.getSessionCookieName();Dt.remove(e),this.config.debug&&console.log(`[SessionManager] Session cookie removed: ${e}`)}isSessionExpired(e){return Date.now()>=e.expiresAt}getSessionFromContext(){let e=this.getSessionContext();return e?{userId:e.userId,sessionId:e.session.sessionId,expiresAt:e.session.expiresAt,createdAt:e.session.createdAt,campaignId:e.campaignId,landingPageId:e.landingPageId,segmentId:e.segmentId,abTestId:e.abTestId,abTestVariantId:e.abTestVariantId}:null}getSessionContext(){return typeof window<"u"&&window.__FIREBUZZ_SESSION_CONTEXT__||null}async initializeSession(){var l,u,d,f,h;let e=this.shouldSetCookies(),t=typeof window<"u"&&window.__FIREBUZZ_SESSION_CONTEXT__||null;if(!t)return console.error("[SessionManager] Cannot initialize without session context"),{sessionData:{},success:!1};let r=((l=t.session)==null?void 0:l.sessionId)||ii(),i=t.userId,a={userId:i,sessionId:r,expiresAt:((u=t.session)==null?void 0:u.expiresAt)||Date.now()+1800*1e3,createdAt:((d=t.session)==null?void 0:d.createdAt)||Date.now(),campaignId:t.campaignId,landingPageId:t.landingPageId||void 0,segmentId:t.segmentId||null,abTestId:t.abTestId||null,abTestVariantId:t.abTestVariantId||null};try{let m=await(await fetch(`${this.config.apiUrl}/client-api/v1/events/session/init`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:r,user_id:i,campaign_id:this.config.campaignId,workspace_id:(t==null?void 0:t.workspaceId)||"",project_id:(t==null?void 0:t.projectId)||"",landing_page_id:(t==null?void 0:t.landingPageId)||"",segment_id:(t==null?void 0:t.segmentId)||void 0,session_timeout_minutes:30,is_ephemeral:!e}),credentials:"include"})).json();if(m.success){let y={...a,segmentId:a.segmentId,abTestId:((f=m.data)==null?void 0:f.ab_test_id)||a.abTestId,abTestVariantId:((h=m.data)==null?void 0:h.ab_test_variant_id)||a.abTestVariantId};return e&&(this.setUserIdCookie(i),this.setSessionCookie(y)),this.config.debug&&console.log("[SessionManager] Session initialized successfully:",{...y,ephemeral:!e}),{sessionData:y,success:!0}}return console.error("[SessionManager] Failed to initialize session:",m.error),{sessionData:a,success:!1}}catch(m){return console.error("[SessionManager] Session initialization error:",m),{sessionData:a,success:!1}}}async validateSession(e){try{return(await(await fetch(`${this.config.apiUrl}/client-api/v1/events/session/validate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:e}),credentials:"include"})).json()).valid===!0}catch(t){return this.config.debug&&console.error("[SessionManager] Session validation error:",t),!1}}createEphemeralSession(){var t,r,i;let e=typeof window<"u"&&window.__FIREBUZZ_SESSION_CONTEXT__||null;return e?{userId:e.userId,sessionId:((t=e.session)==null?void 0:t.sessionId)||ii(),expiresAt:((r=e.session)==null?void 0:r.expiresAt)||Date.now()+1800*1e3,createdAt:((i=e.session)==null?void 0:i.createdAt)||Date.now(),campaignId:e.campaignId,landingPageId:e.landingPageId||void 0,segmentId:e.segmentId||null,abTestId:e.abTestId||null,abTestVariantId:e.abTestVariantId||null}:null}extractCurrentUTM(){if(typeof window>"u")return{};let e=new URLSearchParams(window.location.search);return{utm_source:e.get("utm_source")||void 0,utm_medium:e.get("utm_medium")||void 0,utm_campaign:e.get("utm_campaign")||void 0,utm_term:e.get("utm_term")||void 0,utm_content:e.get("utm_content")||void 0,ref:e.get("ref")||void 0,source:e.get("source")||void 0}}initializeAttribution(e){var r;if((r=this.sessionStorage)!=null&&r.attribution)return;let t=this.extractCurrentUTM();this.sessionStorage={attribution:{original:{timestamp:e.createdAt,...t,referrer:typeof document<"u"&&document.referrer||void 0,landingPage:typeof window<"u"?window.location.pathname:"/"},current:t},renewalCount:0,originalSessionId:e.sessionId,originalTimestamp:e.createdAt},this.shouldSetCookies()&&this.setAttributionCookie(this.sessionStorage)}loadPersistedAttribution(){if(this.shouldSetCookies()){let e=this.getAttributionCookie();e&&(this.sessionStorage=e)}}getAttributionData(){var e;return((e=this.sessionStorage)==null?void 0:e.attribution)||null}updateAfterRenewal(e){this.sessionStorage&&(this.sessionStorage.renewalCount++,this.sessionStorage.attribution.current=this.extractCurrentUTM(),this.shouldSetCookies()&&(this.setAttributionCookie(this.sessionStorage),this.setSessionCookie(e)))}hasSessionBeenTracked(e){if(!this.shouldSetCookies())return!1;let t=this.getSessionCookie();return t!==null&&t.sessionId===e}markSessionAsTracked(e){this.config.debug&&console.log(`[SessionManager] Session ${e} marked as tracked`)}getAttributionCookieName(){return`${el}attr_${this.config.campaignId}`}setAttributionCookie(e){if(!this.shouldSetCookies())return;let t=this.getAttributionCookieName(),r=JSON.stringify(e);Dt.set(t,r,this.getCookieOptions(30)),this.config.debug&&console.log(`[SessionManager] Attribution cookie set: ${t}`)}getAttributionCookie(){let e=this.getAttributionCookieName(),t=Dt.get(e);if(!t)return null;try{return JSON.parse(t)}catch(r){return this.config.debug&&console.warn("[SessionManager] Failed to parse attribution cookie:",r),null}}removeAttributionCookie(){let e=this.getAttributionCookieName();Dt.remove(e),this.config.debug&&console.log(`[SessionManager] Attribution cookie removed: ${e}`)}getCurrentSession(){let e=this.getSessionFromContext();if(!e||this.isSessionExpired(e))return null;if(this.shouldSetCookies()){let t=this.getSessionCookie();if(t&&!this.isSessionExpired(t))return{...t,userId:e.userId}}return e}clearAllCookies(){this.removeUserIdCookie(),this.removeSessionCookie(),this.removeAttributionCookie(),this.config.debug&&console.log("[SessionManager] All cookies cleared")}},EC=CC,sn=null,s0=null,jn=null,Ae=null;function TC(e){if(sn=e,typeof window<"u"){let t=l0(window.location.hostname);Ae=new EC({campaignId:e.campaignId,apiUrl:e.apiUrl,environment:t==="production"?"production":"preview",debug:e.debug})}}function _C(e){Ae&&Ae.updateConsentState(e)}function a0(e){s0=e||null,sn!=null&&sn.debug&&e&&console.log("[Analytics] Click ID stored")}function AC(e){jn=e,sn!=null&&sn.debug&&console.log("[Analytics] Session data set:",e)}function ei(){if(Ae){let e=Ae.getCurrentSession();if(e)return e}return jn}function PC(){return s0}async function Fg(e,t,r=!1){var a,l,u,d,f,h,m;let i=tr();if(!i)return oe("No analytics config available for session tracking"),!1;try{let y=ei(),w=typeof window<"u"?window.location.hostname:"",v=typeof window<"u"&&window.__FIREBUZZ_SESSION_CONTEXT__||null,C=(v==null?void 0:v.campaignEnvironment)||l0(w),S=new URLSearchParams(window.location.search),b={source:S.get("utm_source"),medium:S.get("utm_medium"),campaign:S.get("utm_campaign"),term:S.get("utm_term"),content:S.get("utm_content")},T=typeof document<"u"&&document.referrer||null,A=typeof navigator<"u"?navigator.userAgent:"",I=typeof navigator<"u"?navigator.language:"en-US",M=S.get("ref"),j=S.get("source"),$=typeof window<"u"?/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(A):!1,B=typeof window<"u"?window.location.protocol==="https:":!0,z="",Z="",re="";typeof navigator<"u"&&(A.includes("Windows")?z="Windows":A.includes("Mac")?z="macOS":A.includes("Linux")?z="Linux":A.includes("Android")?z="Android":A.includes("iPhone")||A.includes("iPad")?z="iOS":z="Unknown",A.includes("Chrome")&&!A.includes("Edge")?(Z="Chrome",re=((a=A.match(/Chrome\/(\d+)/))==null?void 0:a[1])||""):A.includes("Firefox")?(Z="Firefox",re=((l=A.match(/Firefox\/(\d+)/))==null?void 0:l[1])||""):A.includes("Safari")&&!A.includes("Chrome")?(Z="Safari",re=((u=A.match(/Version\/(\d+)/))==null?void 0:u[1])||""):A.includes("Edge")?(Z="Edge",re=((d=A.match(/Edge\/(\d+)/))==null?void 0:d[1])||""):Z="Unknown");let ke=typeof Intl<"u"?Intl.DateTimeFormat().resolvedOptions().timeZone:"UTC",me=typeof window<"u"?window.location.pathname:"";if(!v)return oe("❌ No session context available for tracking - skipping"),!1;let we={timestamp:new Date().toISOString(),session_id:e,user_id:v.userId,project_id:v.projectId,workspace_id:v.workspaceId,campaign_id:v.campaignId,landing_page_id:v.landingPageId,segment_id:v.segmentId||null,ab_test_id:v.abTestId||null,ab_test_variant_id:v.abTestVariantId||null,utm_source:b.source,utm_medium:b.medium,utm_campaign:b.campaign,utm_term:b.term,utm_content:b.content,ref:M,source:j,referrer:T,user_agent:A,language:I,device_os:z,browser:Z,browser_version:re,is_mobile:$?1:0,connection_type:"unknown",country:"Unknown",city:"Unknown",region:"Unknown",region_code:null,continent:"Unknown",timezone:ke,is_eu_country:0,bot_score:((f=v==null?void 0:v.botDetection)==null?void 0:f.score)||null,is_corporate_proxy:(h=v==null?void 0:v.botDetection)!=null&&h.corporateProxy?1:0,is_verified_bot:(m=v==null?void 0:v.botDetection)!=null&&m.verifiedBot?1:0,user_hostname:w,campaign_environment:C,domain_type:"custom",is_ssl:B?1:0,uri:me,is_renewal:r?1:0},de=await fetch(`${i.apiUrl}/client-api/v1/events/session/track`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(we),credentials:"include"});return de.ok?(oe(r?"Session renewal tracked successfully":"New session tracked successfully"),!0):(oe("Failed to track session:",de.status),!1)}catch(y){return console.error("Session tracking error:",y),!1}}function l0(e){let t=e.toLowerCase(),r=[/^preview\.frbzz\.com$/,/^preview-dev\.frbzz\.com$/,/^preview-preview\.frbzz\.com$/];for(let i of r)if(i.test(t))return"preview";return"production"}function oe(e,...t){sn!=null&&sn.debug&&console.log(`[Analytics] ${e}`,...t)}function tr(){if(!sn)throw new Error("API client not configured. Call configureApiClient() first.");return sn}async function IC(e){var h,m,y,w;let t=tr(),r=typeof window<"u"&&window.__FIREBUZZ_SESSION_CONTEXT__||null,i=((h=r==null?void 0:r.session)==null?void 0:h.sessionId)||ii(),a=r==null?void 0:r.userId;if(!a)return oe("Error: No user ID available from session context - cannot initialize session"),{success:!1,error:"Missing session context data"};let l=typeof window<"u"?window.location.hostname:"";if(!r)throw new Error("[Analytics] Session context not found - analytics disabled in dev environment");let u={session_id:i,campaign_id:r.campaignId,workspace_id:r.workspaceId,project_id:r.projectId,landing_page_id:r.landingPageId,segment_id:r.segmentId||void 0,user_id:r.userId,ab_test_id:r.abTestId||void 0,ab_test_variant_id:r.abTestVariantId||void 0,session_timeout_minutes:t.sessionTimeoutMinutes||30,campaign_environment:r.campaignEnvironment,is_ephemeral:!(Ae!=null&&Ae.shouldSetCookies())};t.debug&&console.log("[Analytics] Session init data from context:",{...u,hostname:l}),oe("Initializing session:",u);let d,f;try{d=await fetch(`${t.apiUrl}/client-api/v1/events/session/init`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u),credentials:"include"}),f=await d.json()}catch(v){return oe("Session init failed - network error:",v),{success:!1,error:"Network error - analytics disabled"}}if(f.success&&((m=f.data)!=null&&m.click_id)&&a0(f.data.click_id),oe("Session init result:",f),f.success&&((y=f.data)==null?void 0:y.session_id)&&Ae){let v=typeof window<"u"&&window.__FIREBUZZ_SESSION_CONTEXT__||null,C=((w=f.data)==null?void 0:w.session_duration_minutes)||t.sessionTimeoutMinutes||30,S={userId:f.data.user_id||a,sessionId:f.data.session_id,expiresAt:Date.now()+C*60*1e3,createdAt:Date.now(),campaignId:t.campaignId,landingPageId:t.landingPageId,segmentId:(v==null?void 0:v.segmentId)||null,abTestId:f.data.ab_test_id||(v==null?void 0:v.abTestId)||null,abTestVariantId:f.data.ab_test_variant_id||(v==null?void 0:v.abTestVariantId)||null};Ae.shouldSetCookies()?(Ae.setSessionCookie(S),Ae.setUserIdCookie(S.userId),oe("✅ Session cookies set via SessionManager (consent given)")):oe("✅ Session initialized in ephemeral mode (no consent/cookies)")}return oe("Debug - Cookies after API call:",document.cookie),f}var ls=null;function RC(){if(typeof window>"u")return{};let e=new URLSearchParams(window.location.search);return{utm_source:e.get("utm_source")||void 0,utm_medium:e.get("utm_medium")||void 0,utm_campaign:e.get("utm_campaign")||void 0,utm_term:e.get("utm_term")||void 0,utm_content:e.get("utm_content")||void 0,ref:e.get("ref")||void 0,source:e.get("source")||void 0}}async function NC(e){let t=tr(),r=window.__FIREBUZZ_SESSION_CONTEXT__;if(!r)return{success:!1};let i={old_session_id:e,user_id:r.userId,campaign_id:r.campaignId,workspace_id:r.workspaceId,project_id:r.projectId,landing_page_id:r.landingPageId,segment_id:r.segmentId,preserved_attribution:Ae==null?void 0:Ae.getAttributionData(),current_url_utm:RC(),current_referrer:document.referrer,ab_test_id:r.abTestId,ab_test_variant_id:r.abTestVariantId},a=await(await fetch(`${t.apiUrl}/client-api/v1/events/session/renew`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i),credentials:Ae!=null&&Ae.shouldSetCookies()?"include":"omit"})).json();if(a.success){let l={userId:r.userId,sessionId:a.data.session_id,expiresAt:a.data.expires_at,createdAt:Date.now(),campaignId:r.campaignId,landingPageId:r.landingPageId,segmentId:r.segmentId,abTestId:a.data.ab_test_id,abTestVariantId:a.data.ab_test_variant_id};return Ae==null||Ae.updateAfterRenewal(l),{success:!0,sessionData:l}}return{success:!1}}async function Vd(e,t){if(ls)return oe("Session renewal already in progress, waiting for existing renewal..."),await ls;ls=MC(e,t);try{return await ls}finally{ls=null}}async function MC(e,t){var h,m,y;let r=tr(),i=typeof window<"u"&&window.location.pathname.split("/").filter(Boolean)[0]||void 0,a=(h=ei())==null?void 0:h.userId;!a&&Ae&&(a=Ae.getUserIdCookie()||void 0),a?oe("Found existing user ID for renewal:",a):oe("Warning: No existing user ID found - this will create a new user");let l=typeof window<"u"&&window.__FIREBUZZ_SESSION_CONTEXT__||null;if(!l)return{success:!1,error:"Session context not available for renewal"};let u={new_session_id:t,campaign_id:l.campaignId,campaign_slug:i,workspace_id:l.workspaceId,project_id:l.projectId,landing_page_id:l.landingPageId,session_timeout_minutes:r.sessionTimeoutMinutes||30,user_id:l.userId,original_hostname:typeof window<"u"?window.location.hostname:void 0};oe("Renewing session:",{oldSessionId:e,newSessionId:t,renewalData:u});let d,f;try{d=await fetch(`${r.apiUrl}/client-api/v1/events/session/renew`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u),credentials:"include"}),f=await d.json()}catch(w){return oe("Session renewal failed - network error:",w),{success:!1,error:"Network error - analytics disabled"}}if(f.success&&((m=f.data)!=null&&m.click_id)&&a0(f.data.click_id),f.success&&((y=f.data)==null?void 0:y.session_id)&&Ae){let w=Ae.getCurrentSession(),v={userId:f.data.user_id||a||"",sessionId:f.data.session_id,expiresAt:Date.now()+1800*1e3,createdAt:Date.now(),campaignId:r.campaignId,landingPageId:r.landingPageId,segmentId:(w==null?void 0:w.segmentId)||null,abTestId:f.data.ab_test_id||(w==null?void 0:w.abTestId)||null,abTestVariantId:f.data.ab_test_variant_id||(w==null?void 0:w.abTestVariantId)||null};Ae.shouldSetCookies()?(Ae.setSessionCookie(v),f.data.user_id&&Ae.setUserIdCookie(f.data.user_id),oe("✅ Session renewal cookies set via SessionManager (consent given)")):oe("✅ Session renewed in ephemeral mode (no consent/cookies)")}return oe("Session renewal result:",f),f}async function DC(e){var u,d;let t=tr();if((u=t.batching)!=null&&u.enabled)return oe("📦 Batching enabled, adding event to batch:",{event_id:e.event_id,event_type:e.event_type}),await i0({maxBatchSize:t.batching.maxBatchSize,maxWaitTime:t.batching.maxWaitTime,debounceTime:t.batching.debounceTime}).addEvent(e);let r=(d=ei())==null?void 0:d.sessionId;if(!r){oe("No valid session ID found, initializing new session");let f=await IC();if(!f.success)return oe("Failed to initialize session:",f.error),!1;r=f.data.session_id}let i=typeof window<"u"&&window.__FIREBUZZ_SESSION_CONTEXT__||null,a={session_id:r,...e,event_value_currency:e.event_value_currency||t.defaultCurrency||"USD",page_url:e.page_url||window.location.href,referrer_url:e.referrer_url||document.referrer||void 0,campaign_environment:(i==null?void 0:i.campaignEnvironment)||"production"};oe("🚀 Sending event to API:",{event_id:a.event_id,event_type:a.event_type,session_id:a.session_id,url:`${t.apiUrl}/client-api/v1/events/track`});let l=await(await fetch(`${t.apiUrl}/client-api/v1/events/track`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a),credentials:"include"})).json();if(!l.success&&l.new_session_id){oe("Session expired, renewing session");let f=await Vd(r,l.new_session_id);return f.success?(oe("Session renewed successfully, retrying event tracking"),await jC({...e,page_url:e.page_url||window.location.href,referrer_url:e.referrer_url||document.referrer||void 0},l.new_session_id)):(oe("Session renewal failed:",f.error),!1)}return l.success?(oe("Event tracked successfully:",l.data),!0):(oe("Event tracking failed:",l.error),!1)}async function jC(e,t){let r=tr(),i=await(await fetch(`${r.apiUrl}/client-api/v1/events/track`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:t,...e}),credentials:"include"})).json();return i.success?(oe("Event tracked successfully on retry:",i.data),!0):(oe("Event tracking failed on retry:",i.error),!1)}var nd=!1,us=null;async function OC(){if(nd&&us)return oe("Analytics initialization already in progress, waiting..."),await us;if(!tr())return oe("Analytics not configured"),!1;if(!Ae)return oe("SessionManager not initialized"),!1;nd=!0,us=LC();try{return await us}finally{nd=!1,us=null}}async function LC(){if(!Ae)return!1;Ae.loadPersistedAttribution();let e=Ae.getSessionFromContext();if(!e)return!1;if(Ae.isSessionExpired(e)){let t=await NC(e.sessionId);if(!t.success)return!1;jn=t.sessionData,jn&&(await Fg(jn.sessionId,jn.userId,!0),Ae.markSessionAsTracked(jn.sessionId))}else if(jn={userId:e.userId,sessionId:e.sessionId,campaignId:e.campaignId,segmentId:e.segmentId},Ae.initializeAttribution(e),Ae.hasSessionBeenTracked(e.sessionId))oe("♻️ Session already tracked, skipping duplicate tracking");else{if(!(await Ae.initializeSession()).success)return oe("❌ Failed to initialize EventTracker DO for session"),!1;await Fg(jn.sessionId,jn.userId,!1),Ae.markSessionAsTracked(e.sessionId),oe("✅ Session tracked to Tinybird")}return!0}var zC=[{event_id:"form-submission",event_value:1,event_value_type:"static",event_type:"conversion",isCustom:!1},{event_id:"external-link-click",event_value:1,event_value_type:"static",event_type:"engagement",isCustom:!1},{event_id:"page-view",event_value:1,event_value_type:"static",event_type:"engagement",isCustom:!1},{event_id:"scroll-threshold-25",event_value:1,event_value_type:"static",event_type:"engagement",isCustom:!1},{event_id:"scroll-threshold-50",event_value:1,event_value_type:"static",event_type:"engagement",isCustom:!1},{event_id:"scroll-threshold-75",event_value:1,event_value_type:"static",event_type:"engagement",isCustom:!1},{event_id:"scroll-threshold-100",event_value:1,event_value_type:"static",event_type:"engagement",isCustom:!1}];function FC({primaryGoal:e,customEvents:t=[],enableDefaultEvents:r=!0}){let i=[];if(r)for(let a of zC)e.event_id===a.event_id?i.push({event_id:e.event_id,event_type:e.event_type,event_value:e.event_value,event_value_type:e.event_value_type,isCustom:e.isCustom}):i.push({event_id:a.event_id,event_type:a.event_type,event_value:a.event_value,event_value_type:a.event_value_type,isCustom:a.isCustom});i.some(a=>a.event_id===e.event_id)||i.push(e);for(let a of t)i.some(l=>l.event_id===a.event_id)||i.push(a);return i}function fi(){return{viewport_width:window.innerWidth,viewport_height:window.innerHeight}}var cs=null;function VC(){var e;return cs===null&&(typeof performance<"u"&&performance.timeOrigin?cs=performance.timeOrigin:typeof performance<"u"&&((e=performance.timing)!=null&&e.navigationStart)?cs=performance.timing.navigationStart:cs=Date.now()),cs}function Ef(){let e=VC(),t=Date.now(),r=Math.max(t-e,100);return Math.ceil(r/1e3)}function BC(){let e=window.pageYOffset||document.documentElement.scrollTop,t=document.documentElement.scrollHeight-window.innerHeight;if(t<=0)return 100;let r=Math.round(e/t*100);return Math.min(100,Math.max(0,r))}function $C(e){try{return new URL(e,window.location.origin).origin!==window.location.origin}catch{return!1}}function u0(e){if(e.id)return`#${e.id}`;if(e.className){let t=Array.from(e.classList).slice(0,2).join(".");if(t)return`.${t}`}return e.tagName.toLowerCase()}function UC(e){return e.id||e.name||u0(e)}function WC(e,t){let r;return(...i)=>{r||(e(...i),r=!0,setTimeout(()=>{r=!1},t))}}function HC(){return new URLSearchParams(window.location.search)}function GC(){let e=HC(),t={},r=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],i=["fbclid","gclid","msclkid","ttclid","ref","source"];for(let a of[...r,...i]){let l=e.get(a);l&&(t[a]=l)}return t}function KC(e,t){try{let r=GC(),i=new URL(e);for(let[a,l]of Object.entries(r))i.searchParams.has(a)||i.searchParams.set(a,l);return t&&i.searchParams.set("frbzz_ci",t),i.toString()}catch{return e}}var rd=new Set;function Tf(e,t){if(t)return t.find(r=>r.event_id===e)}function YC({trackEvent:e,eventConfig:t,debug:r}){let i=WC(()=>{let a=BC(),{viewport_width:l,viewport_height:u}=fi(),d=[25,50,75,100];for(let f of d)if(a>=f&&!rd.has(f)){rd.add(f),r&&console.log(`[Analytics] Scroll tracking: ${f}%`);let h=`scroll-threshold-${f}`,m=Tf(h,t);e({event_id:h,event_type:(m==null?void 0:m.event_type)||"engagement",event_value:m==null?void 0:m.event_value,event_value_type:(m==null?void 0:m.event_value_type)||"static",scroll_percentage:f,time_on_page:Ef(),viewport_width:l,viewport_height:u,metadata:JSON.stringify({threshold:f,actualPercentage:a})})}},250);return window.addEventListener("scroll",i,{passive:!0}),()=>{window.removeEventListener("scroll",i),rd.clear()}}function qC({trackEvent:e,eventConfig:t,externalLinkBehavior:r,debug:i}){let a=l=>{var d;let u=l.target.closest("a");if(!(!u||!u.href)&&$C(u.href)){let{viewport_width:f,viewport_height:h}=fi(),m=u.href,y=PC(),w=KC(u.href,y);w!==m&&(u.href=w,i&&console.log("[Analytics] Enhanced external link with tracking data:",{original:m,enhanced:w,hasClickId:!!y})),r!=null&&r.openInNewTab&&(u.target="_blank",u.rel="noopener noreferrer",i&&console.log("[Analytics] Configured external link to open in new tab")),i&&console.log("[Analytics] External link clicked:",w);let v=Tf("external-link-click",t);e({event_id:"external-link-click",event_type:(v==null?void 0:v.event_type)||"engagement",event_value:v==null?void 0:v.event_value,event_value_type:(v==null?void 0:v.event_value_type)||"static",clicked_url:w,clicked_element:u0(u),time_on_page:Ef(),viewport_width:f,viewport_height:h,metadata:JSON.stringify({text:((d=u.textContent)==null?void 0:d.trim().substring(0,100))||"",target:u.target||"_self",original_url:m!==w?m:void 0,has_click_id:!!y})});try{let C=i0();C&&C.getBatchSize()>0&&(i&&console.log("[Analytics] 🔗 External link clicked, force flushing batch"),C.flushBatchSync())}catch(C){i&&console.error("[Analytics] Failed to flush batch for external link:",C)}}};return document.addEventListener("click",a),()=>{document.removeEventListener("click",a)}}function XC({trackEvent:e,eventConfig:t,debug:r}){let i=a=>{let l=a.target;if(!l)return;let u=UC(l),{viewport_width:d,viewport_height:f}=fi();r&&console.log("[Analytics] Form submitted:",u);let h=new FormData(l),m=Array.from(h.keys()).length,y=Tf("form-submission",t);e({event_id:"form-submission",event_type:(y==null?void 0:y.event_type)||"conversion",event_value:y==null?void 0:y.event_value,event_value_type:(y==null?void 0:y.event_value_type)||"static",form_id:u,time_on_page:Ef(),viewport_width:d,viewport_height:f,metadata:JSON.stringify({fieldCount:m,method:l.method||"GET",action:l.action||window.location.href})})};return document.addEventListener("submit",i),()=>{document.removeEventListener("submit",i)}}function ZC({trackEvent:e,eventConfig:t,externalLinkBehavior:r,debug:i}){let a=[];return i&&console.log("[Analytics] Setting up default event tracking..."),QC({trackEvent:e,eventConfig:t,debug:i}),a.push(YC({trackEvent:e,eventConfig:t,debug:i}),qC({trackEvent:e,eventConfig:t,externalLinkBehavior:r,debug:i}),XC({trackEvent:e,eventConfig:t,debug:i})),()=>{i&&console.log("[Analytics] Cleaning up default event tracking...");for(let l of a)l()}}var ds=null,Vg=!1,c0=new Set,od=[];function _f(){var e;return ds===null&&(typeof performance<"u"&&performance.timeOrigin?ds=performance.timeOrigin:typeof performance<"u"&&((e=performance.timing)!=null&&e.navigationStart)?ds=performance.timing.navigationStart:ds=Date.now()),ds}function Ho(e){return c0.has(e)}function Go(e,t,r,i,a){c0.add(e);let l={event_id:e,event_type:t,event_value:r,timestamp:Date.now(),time_on_page:i};od.push(l),a&&(console.log("[Analytics] Event tracked:",l),console.log("[Analytics] Total tracked events:",od.length),console.log("[Analytics] All tracked events:",od))}function d0(e,t){if(t)return t.find(r=>r.event_id===e)}function QC({trackEvent:e,eventConfig:t,debug:r}){if(Vg){r&&console.log("[Analytics] System events already initialized, skipping");return}Vg=!0;let{viewport_width:i,viewport_height:a}=fi(),l=_f();if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",()=>{let u=Date.now(),d=Math.max(u-l,100),f=Math.ceil(d/1e3);r&&console.log("[Analytics] DOM ready"),Ho("dom-ready")||(Go("dom-ready","system",1,f,r),e({event_id:"dom-ready",event_type:"system",event_value:1,event_value_type:"static",viewport_width:i,viewport_height:a,dom_ready_time:performance!=null&&performance.now?Math.round(performance.now()):d,time_on_page:f,metadata:JSON.stringify({readyState:document.readyState,timestamp:Date.now(),domReadyTime:d})}))});else{let u=Date.now(),d=Math.max(u-l,100),f=Math.ceil(d/1e3);r&&console.log("[Analytics] DOM ready (already loaded)"),Ho("dom-ready")||(Go("dom-ready","system",1,f,r),e({event_id:"dom-ready",event_type:"system",event_value:1,event_value_type:"static",viewport_width:i,viewport_height:a,dom_ready_time:performance!=null&&performance.now?Math.round(performance.now()):d,time_on_page:f,metadata:JSON.stringify({readyState:document.readyState,timestamp:Date.now(),domReadyTime:d})}))}if(document.readyState==="complete"){let u=Date.now(),d=Math.max(u-l,100),f=Math.ceil(d/1e3);r&&console.log("[Analytics] Page load (already complete)"),Ho("page-load")||(Go("page-load","system",1,f,r),e({event_id:"page-load",event_type:"system",event_value:1,event_value_type:"static",viewport_width:i,viewport_height:a,page_load_time:performance!=null&&performance.now?Math.round(performance.now()):d,time_on_page:f,metadata:JSON.stringify({readyState:document.readyState,timestamp:Date.now(),loadTime:d})}),Bg({trackEvent:e,eventConfig:t,debug:r}))}else window.addEventListener("load",()=>{let u=Date.now(),d=Math.max(u-l,100),f=Math.ceil(d/1e3);r&&console.log("[Analytics] Page load complete"),Ho("page-load")||(Go("page-load","system",1,f,r),e({event_id:"page-load",event_type:"system",event_value:1,event_value_type:"static",viewport_width:i,viewport_height:a,page_load_time:performance!=null&&performance.now?Math.round(performance.now()):d,time_on_page:f,metadata:JSON.stringify({readyState:document.readyState,timestamp:Date.now(),loadTime:d})}),Bg({trackEvent:e,eventConfig:t,debug:r}),$g({trackEvent:e,eventConfig:t,debug:r}))});document.readyState==="complete"&&$g({trackEvent:e,eventConfig:t,debug:r})}function Bg({trackEvent:e,eventConfig:t,debug:r}){if(Ho("page-view")){r&&console.log("[Analytics] Page view already tracked, skipping");return}let{viewport_width:i,viewport_height:a}=fi(),l=_f(),u=Date.now(),d=Math.max(u-l,100),f=Math.ceil(d/1e3);r&&console.log("[Analytics] Tracking pageview");let h=d0("page-view",t);Go("page-view",(h==null?void 0:h.event_type)||"engagement",(h==null?void 0:h.event_value)||1,f,r),e({event_id:"page-view",event_type:(h==null?void 0:h.event_type)||"engagement",event_value:h==null?void 0:h.event_value,event_value_currency:h==null?void 0:h.event_value_currency,event_value_type:(h==null?void 0:h.event_value_type)||"static",viewport_width:i,viewport_height:a,time_on_page:f,metadata:JSON.stringify({title:document.title,url:window.location.href,path:window.location.pathname,referrer:document.referrer||void 0,timestamp:Date.now(),timeOnPageMs:d})})}function $g({trackEvent:e,eventConfig:t,debug:r}){if(typeof window>"u")return;let i=()=>{if(Ho("page-unload"))return;let{viewport_width:a,viewport_height:l}=fi(),u=_f(),d=Date.now(),f=Math.max(d-u,100),h=Math.ceil(f/1e3),m=d0("page-unload",t);r&&console.log("[Analytics] Tracking page unload"),Go("page-unload",(m==null?void 0:m.event_type)||"system",(m==null?void 0:m.event_value)||1,h,r);try{e({event_id:"page-unload",event_type:(m==null?void 0:m.event_type)||"system",event_value:m==null?void 0:m.event_value,event_value_type:(m==null?void 0:m.event_value_type)||"static",viewport_width:a,viewport_height:l,time_on_page:h,metadata:JSON.stringify({total_time_on_page:f,page_title:document.title,page_url:window.location.href,timestamp:Date.now()})})}catch(y){r&&console.error("[Analytics] Failed to track page unload:",y)}};window.addEventListener("beforeunload",i)}function gl(){if(typeof window>"u")return!1;try{let e=window.location.hostname;if(e.includes("webcontainer")||e.includes("webcontainer-api")||e.includes("local-corp.webcontainer-api.io")||e.includes("stackblitz")||window.__WC_VERSION__||window.__WEBCONTAINER__)return!0;let t=window.location.port;if(e==="localhost"&&["3000","3001","4000","5173","5174"].includes(t))try{let r="__webcontainer_test__";window.localStorage.setItem(r,r),window.localStorage.removeItem(r)}catch{return!0}return!1}catch{return!1}}function Ug(){if(gl())return console.log("[Analytics] Disabled in WebContainer environment"),!0;if(typeof window<"u"){if(window.__DISABLE_ANALYTICS__)return!0;if(window.location.hostname==="localhost"&&!window.location.search.includes("analytics=true"))return!1}return!1}function JC({consentState:e,customEvents:t=[],primaryGoal:r,defaultCurrency:i="USD",enableDefaultEvents:a=!0,debug:l=!1,batching:u,externalLinkBehavior:d,sessionTimeoutMinutes:f,children:h}){let[m,y]=k.useState(!1),[w,v]=k.useState(null),[C,S]=k.useState(null),b=k.useMemo(()=>{let A=typeof window<"u"?window.__FIREBUZZ_SESSION_CONTEXT__:null;return A?{apiUrl:A.apiBaseUrl,userId:A.userId,sessionId:A.session.sessionId,campaignId:A.campaignId,workspaceId:A.workspaceId,projectId:A.projectId,landingPageId:A.landingPageId,isAnonymous:!1,isTestMode:!1,enabled:!0}:(l&&console.warn("[Analytics] No session context found - dev environment detected. Analytics disabled."),{apiUrl:"https://engine-dev.frbzz.com",userId:`anon-${ii()}`,sessionId:`anon-${ii()}`,campaignId:"unknown",workspaceId:"unknown",projectId:"unknown",landingPageId:void 0,isAnonymous:!0,isTestMode:!0,enabled:!1})},[l]);k.useEffect(()=>{b!=null&&b.enabled&&AC({userId:b.userId,sessionId:b.sessionId,campaignId:b.campaignId})},[b]),k.useEffect(()=>{if(!b.enabled||Ug()){l&&(gl()?console.log("[Analytics] Analytics disabled in WebContainer environment"):console.log("[Analytics] Analytics disabled (no session context), skipping configuration"));return}let A={enabled:!0,maxBatchSize:10,maxWaitTime:2e3,debounceTime:100,...u};TC({apiUrl:b.apiUrl,campaignId:b.campaignId,workspaceId:b.workspaceId,projectId:b.projectId,landingPageId:b.landingPageId,defaultCurrency:i,debug:l,sessionTimeoutMinutes:f,batching:A}),_C(e),l&&console.log("[Analytics] Provider configured with:",{analyticsState:b,consentState:e})},[b,e,i,l,f,u]),k.useEffect(()=>{if(!b.enabled||Ug()){l&&(gl()?console.log("[Analytics] Analytics disabled in WebContainer environment"):console.log("[Analytics] Analytics disabled (no session context), skipping initialization"));return}if(l){let M=e.hasUserInteracted?e.preferences.analytics?"granted":"rejected":"not-required";console.log(`[Analytics] Initializing analytics (consent: ${M}, cookies: ${e.preferences.analytics?"enabled":"disabled"})`)}let A=!0;async function I(){try{if(gl()){console.warn("[Analytics] WebContainer detected, skipping analytics initialization");return}l&&console.log("[Analytics] Initializing analytics with state:",b);let M=await OC();A&&M?(v(b.sessionId),S(b.userId),y(!0),l&&console.log("[Analytics] Analytics initialized successfully:",{sessionId:b.sessionId,userId:b.userId,isAnonymous:b.isAnonymous})):A&&console.warn("[Analytics] Failed to initialize analytics - this is expected in development environments")}catch(M){A&&(M instanceof TypeError&&M.message.includes("fetch")?console.warn("[Analytics] Network request failed - analytics disabled (this is normal in WebContainer/development environments)"):M instanceof Error&&M.message.includes("CORS")?console.warn("[Analytics] CORS error - analytics disabled (this is normal in development environments)"):console.warn("[Analytics] Failed to initialize analytics:",M))}}return I(),()=>{A=!1}},[b,l]),k.useEffect(()=>{b.enabled&&m&&(v(b.sessionId),S(b.userId),l&&console.log("[Analytics] Session state updated:",{sessionId:b.sessionId,userId:b.userId,isAnonymous:b.isAnonymous}))},[b,m,l]);let T=k.useCallback(async A=>{if(!b.enabled)return l&&console.log("[Analytics] Event tracking disabled (no session context), skipping:",A),!1;if(!m)return l&&console.warn("[Analytics] Attempted to track event before initialization:",A),!1;try{return await DC(A)}catch(I){return console.error("[Analytics] Track event error:",I),!1}},[b.enabled,m,l]);return k.useEffect(()=>{if(b.enabled&&m){l&&console.log("[Analytics] Setting up event tracking...");let A=FC({primaryGoal:r,customEvents:t,enableDefaultEvents:a});return l&&console.log("[Analytics] Event configuration:",A),ZC({trackEvent:T,eventConfig:A,externalLinkBehavior:d,debug:l})}},[b.enabled,m,a,r,t,d,l,T]),E.jsx(xC,{value:{trackEvent:T,sessionId:w,userId:C,isInitialized:m,debug:l},children:h})}function eE({children:e,...t}){const{consentState:r}=Ul(),a={...t,consentState:r||{analytics:!1,functional:!1,marketing:!1},children:e};return E.jsx(JC,{...a})}function f0(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Hg=p0,h0=(e,t)=>r=>{var i;if((t==null?void 0:t.variants)==null)return Hg(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:l}=t,u=Object.keys(a).map(h=>{const m=r==null?void 0:r[h],y=l==null?void 0:l[h];if(m===null)return null;const w=Wg(m)||Wg(y);return a[h][w]}),d=r&&Object.entries(r).reduce((h,m)=>{let[y,w]=m;return w===void 0||(h[y]=w),h},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,m)=>{let{class:y,className:w,...v}=m;return Object.entries(v).every(C=>{let[S,b]=C;return Array.isArray(b)?b.includes({...l,...d}[S]):{...l,...d}[S]===b})?[...h,y,w]:h},[]);return Hg(e,u,f,r==null?void 0:r.class,r==null?void 0:r.className)};/** * @license lucide-react v0.474.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),m0=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim();/** * @license lucide-react v0.474.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var nE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.474.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rE=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:a="",children:l,iconNode:u,...d},f)=>k.createElement("svg",{ref:f,...nE,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:m0("lucide",a),...d},[...u.map(([h,m])=>k.createElement(h,m)),...Array.isArray(l)?l:[l]]));/** * @license lucide-react v0.474.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pi=(e,t)=>{const r=k.forwardRef(({className:i,...a},l)=>k.createElement(rE,{ref:l,iconNode:t,className:m0(`lucide-${tE(e)}`,i),...a}));return r.displayName=`${e}`,r};/** * @license lucide-react v0.474.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const oE=[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]],g0=pi("Cookie",oE);/** * @license lucide-react v0.474.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const iE=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sE=pi("Settings",iE);/** * @license lucide-react v0.474.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const aE=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],lE=pi("Shield",aE);/** * @license lucide-react v0.474.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],cE=pi("Target",uE);/** * @license lucide-react v0.474.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fE=pi("X",dE);/** * @license lucide-react v0.474.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pE=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],hE=pi("Zap",pE);function Gg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function v0(...e){return t=>{let r=!1;const i=e.map(a=>{const l=Gg(a,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a{const{children:l,...u}=i,d=k.Children.toArray(l),f=d.find(yE);if(f){const h=f.props.children,m=d.map(y=>y===f?k.Children.count(h)>1?k.Children.only(null):k.isValidElement(h)?h.props.children:null:y);return E.jsx(t,{...u,ref:a,children:k.isValidElement(h)?k.cloneElement(h,void 0,m):null})}return E.jsx(t,{...u,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}var mE=Af("Slot");function gE(e){const t=k.forwardRef((r,i)=>{const{children:a,...l}=r;if(k.isValidElement(a)){const u=xE(a),d=wE(l,a.props);return a.type!==k.Fragment&&(d.ref=i?v0(i,u):u),k.cloneElement(a,d)}return k.Children.count(a)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y0=Symbol("radix.slottable");function vE(e){const t=({children:r})=>E.jsx(E.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=y0,t}function yE(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===y0}function wE(e,t){const r={...t};for(const i in t){const a=e[i],l=t[i];/^on[A-Z]/.test(i)?a&&l?r[i]=(...d)=>{const f=l(...d);return a(...d),f}:a&&(r[i]=a):i==="style"?r[i]={...a,...l}:i==="className"&&(r[i]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function xE(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Pf="-",SE=e=>{const t=bE(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{const d=u.split(Pf);return d[0]===""&&d.length!==1&&d.shift(),w0(d,t)||kE(u)},getConflictingClassGroupIds:(u,d)=>{const f=r[u]||[];return d&&i[u]?[...f,...i[u]]:f}}},w0=(e,t)=>{var u;if(e.length===0)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),a=i?w0(e.slice(1),i):void 0;if(a)return a;if(t.validators.length===0)return;const l=e.join(Pf);return(u=t.validators.find(({validator:d})=>d(l)))==null?void 0:u.classGroupId},Kg=/^\[(.+)\]$/,kE=e=>{if(Kg.test(e)){const t=Kg.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},bE=e=>{const{theme:t,classGroups:r}=e,i={nextPart:new Map,validators:[]};for(const a in r)Bd(r[a],i,a,t);return i},Bd=(e,t,r,i)=>{e.forEach(a=>{if(typeof a=="string"){const l=a===""?t:Yg(t,a);l.classGroupId=r;return}if(typeof a=="function"){if(CE(a)){Bd(a(i),t,r,i);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([l,u])=>{Bd(u,Yg(t,l),r,i)})})},Yg=(e,t)=>{let r=e;return t.split(Pf).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},CE=e=>e.isThemeGetter,EE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,i=new Map;const a=(l,u)=>{r.set(l,u),t++,t>e&&(t=0,i=r,r=new Map)};return{get(l){let u=r.get(l);if(u!==void 0)return u;if((u=i.get(l))!==void 0)return a(l,u),u},set(l,u){r.has(l)?r.set(l,u):a(l,u)}}},$d="!",Ud=":",TE=Ud.length,_E=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=a=>{const l=[];let u=0,d=0,f=0,h;for(let C=0;Cf?h-f:void 0;return{modifiers:l,hasImportantModifier:w,baseClassName:y,maybePostfixModifierPosition:v}};if(t){const a=t+Ud,l=i;i=u=>u.startsWith(a)?l(u.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(r){const a=i;i=l=>r({className:l,parseClassName:a})}return i},AE=e=>e.endsWith($d)?e.substring(0,e.length-1):e.startsWith($d)?e.substring(1):e,PE=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const a=[];let l=[];return i.forEach(u=>{u[0]==="["||t[u]?(a.push(...l.sort(),u),l=[]):l.push(u)}),a.push(...l.sort()),a}},IE=e=>({cache:EE(e.cacheSize),parseClassName:_E(e),sortModifiers:PE(e),...SE(e)}),RE=/\s+/,NE=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:l}=t,u=[],d=e.trim().split(RE);let f="";for(let h=d.length-1;h>=0;h-=1){const m=d[h],{isExternal:y,modifiers:w,hasImportantModifier:v,baseClassName:C,maybePostfixModifierPosition:S}=r(m);if(y){f=m+(f.length>0?" "+f:f);continue}let b=!!S,T=i(b?C.substring(0,S):C);if(!T){if(!b){f=m+(f.length>0?" "+f:f);continue}if(T=i(C),!T){f=m+(f.length>0?" "+f:f);continue}b=!1}const A=l(w).join(":"),I=v?A+$d:A,M=I+T;if(u.includes(M))continue;u.push(M);const j=a(T,b);for(let $=0;$0?" "+f:f)}return f};function ME(){let e=0,t,r,i="";for(;e{if(typeof e=="string")return e;let t,r="";for(let i=0;iy(m),e());return r=IE(h),i=r.cache.get,a=r.cache.set,l=d,d(f)}function d(f){const h=i(f);if(h)return h;const m=NE(f,r);return a(f,m),m}return function(){return l(ME.apply(null,arguments))}}const tt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},S0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jE=/^\d+\/\d+$/,OE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,FE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vo=e=>jE.test(e),Ee=e=>!!e&&!Number.isNaN(Number(e)),Pr=e=>!!e&&Number.isInteger(Number(e)),id=e=>e.endsWith("%")&&Ee(e.slice(0,-1)),er=e=>OE.test(e),BE=()=>!0,$E=e=>LE.test(e)&&!zE.test(e),b0=()=>!1,UE=e=>FE.test(e),WE=e=>VE.test(e),HE=e=>!se(e)&&!ae(e),GE=e=>hi(e,T0,b0),se=e=>S0.test(e),to=e=>hi(e,_0,$E),sd=e=>hi(e,ZE,Ee),qg=e=>hi(e,C0,b0),KE=e=>hi(e,E0,WE),tl=e=>hi(e,A0,UE),ae=e=>k0.test(e),fs=e=>mi(e,_0),YE=e=>mi(e,QE),Xg=e=>mi(e,C0),qE=e=>mi(e,T0),XE=e=>mi(e,E0),nl=e=>mi(e,A0,!0),hi=(e,t,r)=>{const i=S0.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},mi=(e,t,r=!1)=>{const i=k0.exec(e);return i?i[1]?t(i[1]):r:!1},C0=e=>e==="position"||e==="percentage",E0=e=>e==="image"||e==="url",T0=e=>e==="length"||e==="size"||e==="bg-size",_0=e=>e==="length",ZE=e=>e==="number",QE=e=>e==="family-name",A0=e=>e==="shadow",JE=()=>{const e=tt("color"),t=tt("font"),r=tt("text"),i=tt("font-weight"),a=tt("tracking"),l=tt("leading"),u=tt("breakpoint"),d=tt("container"),f=tt("spacing"),h=tt("radius"),m=tt("shadow"),y=tt("inset-shadow"),w=tt("text-shadow"),v=tt("drop-shadow"),C=tt("blur"),S=tt("perspective"),b=tt("aspect"),T=tt("ease"),A=tt("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...M(),ae,se],$=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],z=()=>[ae,se,f],Z=()=>[Vo,"full","auto",...z()],re=()=>[Pr,"none","subgrid",ae,se],ke=()=>["auto",{span:["full",Pr,ae,se]},Pr,ae,se],me=()=>[Pr,"auto",ae,se],we=()=>["auto","min","max","fr",ae,se],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],be=()=>["start","end","center","stretch","center-safe","end-safe"],ce=()=>["auto",...z()],Q=()=>[Vo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],D=()=>[e,ae,se],U=()=>[...M(),Xg,qg,{position:[ae,se]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",qE,GE,{size:[ae,se]}],V=()=>[id,fs,to],X=()=>["","none","full",h,ae,se],J=()=>["",Ee,fs,to],fe=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[Ee,id,Xg,qg],Ce=()=>["","none",C,ae,se],Te=()=>["none",Ee,ae,se],je=()=>["none",Ee,ae,se],it=()=>[Ee,ae,se],Ct=()=>[Vo,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[er],breakpoint:[er],color:[BE],container:[er],"drop-shadow":[er],ease:["in","out","in-out"],font:[HE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[er],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[er],shadow:[er],spacing:["px",Ee],text:[er],"text-shadow":[er],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vo,se,ae,b]}],container:["container"],columns:[{columns:[Ee,se,ae,d]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{start:Z()}],end:[{end:Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Pr,"auto",ae,se]}],basis:[{basis:[Vo,"full","auto",d,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,Vo,"auto","initial","none",se]}],grow:[{grow:["",Ee,ae,se]}],shrink:[{shrink:["",Ee,ae,se]}],order:[{order:[Pr,"first","last","none",ae,se]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:ke()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:ke()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":we()}],"auto-rows":[{"auto-rows":we()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...be(),"normal"]}],"justify-self":[{"justify-self":["auto",...be()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...be(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...be(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...be(),"baseline"]}],"place-self":[{"place-self":["auto",...be()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[d,"screen",...Q()]}],"min-w":[{"min-w":[d,"screen","none",...Q()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",r,fs,to]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ae,sd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",id,se]}],"font-family":[{font:[YE,se,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,ae,se]}],"line-clamp":[{"line-clamp":[Ee,"none",ae,sd]}],leading:[{leading:[l,...z()]}],"list-image":[{"list-image":["none",ae,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",ae,to]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[Ee,"auto",ae,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Pr,ae,se],radial:["",ae,se],conic:[Pr,ae,se]},XE,KE]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,ae,se]}],"outline-w":[{outline:["",Ee,fs,to]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",m,nl,tl]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",y,nl,tl]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[Ee,to]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",w,nl,tl]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[Ee,ae,se]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[ae,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,se]}],filter:[{filter:["","none",ae,se]}],blur:[{blur:Ce()}],brightness:[{brightness:[Ee,ae,se]}],contrast:[{contrast:[Ee,ae,se]}],"drop-shadow":[{"drop-shadow":["","none",v,nl,tl]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",Ee,ae,se]}],"hue-rotate":[{"hue-rotate":[Ee,ae,se]}],invert:[{invert:["",Ee,ae,se]}],saturate:[{saturate:[Ee,ae,se]}],sepia:[{sepia:["",Ee,ae,se]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,se]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,ae,se]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,ae,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,ae,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,ae,se]}],"backdrop-invert":[{"backdrop-invert":["",Ee,ae,se]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,ae,se]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,ae,se]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,ae,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",ae,se]}],ease:[{ease:["linear","initial",T,ae,se]}],delay:[{delay:[Ee,ae,se]}],animate:[{animate:["none",A,ae,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,ae,se]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:je()}],"scale-x":[{"scale-x":je()}],"scale-y":[{"scale-y":je()}],"scale-z":[{"scale-z":je()}],"scale-3d":["scale-3d"],skew:[{skew:it()}],"skew-x":[{"skew-x":it()}],"skew-y":[{"skew-y":it()}],transform:[{transform:[ae,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ct()}],"translate-x":[{"translate-x":Ct()}],"translate-y":[{"translate-y":Ct()}],"translate-z":[{"translate-z":Ct()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ae,se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae,se]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[Ee,fs,to,sd]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},eT=DE(JE);function Qe(...e){return eT(p0(e))}const tT=h0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Wt=k.forwardRef(({className:e,variant:t,size:r,asChild:i=!1,...a},l)=>{const u=i?mE:"button";return E.jsx(u,{className:Qe(tT({variant:t,size:r,className:e})),ref:l,...a})});Wt.displayName="Button";const P0=()=>{const e=typeof window<"u"?window.__FIREBUZZ_SESSION_CONTEXT__:null;return e!=null&&e.campaignEnvironment?(console.log("sessionContext.campaignEnvironment",e.campaignEnvironment),e.campaignEnvironment):"dev"};function kt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function nT(e,t){const r=k.createContext(t),i=l=>{const{children:u,...d}=l,f=k.useMemo(()=>d,Object.values(d));return E.jsx(r.Provider,{value:f,children:u})};i.displayName=e+"Provider";function a(l){const u=k.useContext(r);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[i,a]}function Hl(e,t=[]){let r=[];function i(l,u){const d=k.createContext(u),f=r.length;r=[...r,u];const h=y=>{var T;const{scope:w,children:v,...C}=y,S=((T=w==null?void 0:w[e])==null?void 0:T[f])||d,b=k.useMemo(()=>C,Object.values(C));return E.jsx(S.Provider,{value:b,children:v})};h.displayName=l+"Provider";function m(y,w){var S;const v=((S=w==null?void 0:w[e])==null?void 0:S[f])||d,C=k.useContext(v);if(C)return C;if(u!==void 0)return u;throw new Error(`\`${y}\` must be used within \`${l}\``)}return[h,m]}const a=()=>{const l=r.map(u=>k.createContext(u));return function(d){const f=(d==null?void 0:d[e])||l;return k.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return a.scopeName=e,[i,rT(a,...t)]}function rT(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const u=i.reduce((d,{useScope:f,scopeName:h})=>{const y=f(l)[`__scope${h}`];return{...d,...y}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}var oT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gt=oT.reduce((e,t)=>{const r=Af(`Primitive.${t}`),i=k.forwardRef((a,l)=>{const{asChild:u,...d}=a,f=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(f,{...d,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function iT(e,t){e&&Wl.flushSync(()=>e.dispatchEvent(t))}function si(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...r)=>{var i;return(i=t.current)==null?void 0:i.call(t,...r)},[])}function sT(e,t=globalThis==null?void 0:globalThis.document){const r=si(e);k.useEffect(()=>{const i=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[r,t])}var aT="DismissableLayer",Wd="dismissableLayer.update",lT="dismissableLayer.pointerDownOutside",uT="dismissableLayer.focusOutside",Zg,I0=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),If=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:u,onDismiss:d,...f}=e,h=k.useContext(I0),[m,y]=k.useState(null),w=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=k.useState({}),C=Gt(t,B=>y(B)),S=Array.from(h.layers),[b]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(b),A=m?S.indexOf(m):-1,I=h.layersWithOutsidePointerEventsDisabled.size>0,M=A>=T,j=fT(B=>{const z=B.target,Z=[...h.branches].some(re=>re.contains(z));!M||Z||(a==null||a(B),u==null||u(B),B.defaultPrevented||d==null||d())},w),$=pT(B=>{const z=B.target;[...h.branches].some(re=>re.contains(z))||(l==null||l(B),u==null||u(B),B.defaultPrevented||d==null||d())},w);return sT(B=>{A===h.layers.size-1&&(i==null||i(B),!B.defaultPrevented&&d&&(B.preventDefault(),d()))},w),k.useEffect(()=>{if(m)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Zg=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),Qg(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Zg)}},[m,w,r,h]),k.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),Qg())},[m,h]),k.useEffect(()=>{const B=()=>v({});return document.addEventListener(Wd,B),()=>document.removeEventListener(Wd,B)},[]),E.jsx(gt.div,{...f,ref:C,style:{pointerEvents:I?M?"auto":"none":void 0,...e.style},onFocusCapture:kt(e.onFocusCapture,$.onFocusCapture),onBlurCapture:kt(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:kt(e.onPointerDownCapture,j.onPointerDownCapture)})});If.displayName=aT;var cT="DismissableLayerBranch",dT=k.forwardRef((e,t)=>{const r=k.useContext(I0),i=k.useRef(null),a=Gt(t,i);return k.useEffect(()=>{const l=i.current;if(l)return r.branches.add(l),()=>{r.branches.delete(l)}},[r.branches]),E.jsx(gt.div,{...e,ref:a})});dT.displayName=cT;function fT(e,t=globalThis==null?void 0:globalThis.document){const r=si(e),i=k.useRef(!1),a=k.useRef(()=>{});return k.useEffect(()=>{const l=d=>{if(d.target&&!i.current){let f=function(){R0(lT,r,h,{discrete:!0})};const h={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);i.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",l),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>i.current=!0}}function pT(e,t=globalThis==null?void 0:globalThis.document){const r=si(e),i=k.useRef(!1);return k.useEffect(()=>{const a=l=>{l.target&&!i.current&&R0(uT,r,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Qg(){const e=new CustomEvent(Wd);document.dispatchEvent(e)}function R0(e,t,r,{discrete:i}){const a=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),i?iT(a,l):a.dispatchEvent(l)}var Nr=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},hT=Hy[" useId ".trim().toString()]||(()=>{}),mT=0;function vl(e){const[t,r]=k.useState(hT());return Nr(()=>{r(i=>i??String(mT++))},[e]),e||(t?`radix-${t}`:"")}const gT=["top","right","bottom","left"],Mr=Math.min,Ut=Math.max,Rl=Math.round,rl=Math.floor,zn=e=>({x:e,y:e}),vT={left:"right",right:"left",bottom:"top",top:"bottom"},yT={start:"end",end:"start"};function Hd(e,t,r){return Ut(e,Mr(t,r))}function nr(e,t){return typeof e=="function"?e(t):e}function rr(e){return e.split("-")[0]}function gi(e){return e.split("-")[1]}function Rf(e){return e==="x"?"y":"x"}function Nf(e){return e==="y"?"height":"width"}const wT=new Set(["top","bottom"]);function Ln(e){return wT.has(rr(e))?"y":"x"}function Mf(e){return Rf(Ln(e))}function xT(e,t,r){r===void 0&&(r=!1);const i=gi(e),a=Mf(e),l=Nf(a);let u=a==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=Nl(u)),[u,Nl(u)]}function ST(e){const t=Nl(e);return[Gd(e),t,Gd(t)]}function Gd(e){return e.replace(/start|end/g,t=>yT[t])}const Jg=["left","right"],ev=["right","left"],kT=["top","bottom"],bT=["bottom","top"];function CT(e,t,r){switch(e){case"top":case"bottom":return r?t?ev:Jg:t?Jg:ev;case"left":case"right":return t?kT:bT;default:return[]}}function ET(e,t,r,i){const a=gi(e);let l=CT(rr(e),r==="start",i);return a&&(l=l.map(u=>u+"-"+a),t&&(l=l.concat(l.map(Gd)))),l}function Nl(e){return e.replace(/left|right|bottom|top/g,t=>vT[t])}function TT(e){return{top:0,right:0,bottom:0,left:0,...e}}function N0(e){return typeof e!="number"?TT(e):{top:e,right:e,bottom:e,left:e}}function Ml(e){const{x:t,y:r,width:i,height:a}=e;return{width:i,height:a,top:r,left:t,right:t+i,bottom:r+a,x:t,y:r}}function tv(e,t,r){let{reference:i,floating:a}=e;const l=Ln(t),u=Mf(t),d=Nf(u),f=rr(t),h=l==="y",m=i.x+i.width/2-a.width/2,y=i.y+i.height/2-a.height/2,w=i[d]/2-a[d]/2;let v;switch(f){case"top":v={x:m,y:i.y-a.height};break;case"bottom":v={x:m,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y};break;case"left":v={x:i.x-a.width,y};break;default:v={x:i.x,y:i.y}}switch(gi(t)){case"start":v[u]-=w*(r&&h?-1:1);break;case"end":v[u]+=w*(r&&h?-1:1);break}return v}const _T=async(e,t,r)=>{const{placement:i="bottom",strategy:a="absolute",middleware:l=[],platform:u}=r,d=l.filter(Boolean),f=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y}=tv(h,i,f),w=i,v={},C=0;for(let S=0;S({name:"arrow",options:e,async fn(t){const{x:r,y:i,placement:a,rects:l,platform:u,elements:d,middlewareData:f}=t,{element:h,padding:m=0}=nr(e,t)||{};if(h==null)return{};const y=N0(m),w={x:r,y:i},v=Mf(a),C=Nf(v),S=await u.getDimensions(h),b=v==="y",T=b?"top":"left",A=b?"bottom":"right",I=b?"clientHeight":"clientWidth",M=l.reference[C]+l.reference[v]-w[v]-l.floating[C],j=w[v]-l.reference[v],$=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let B=$?$[I]:0;(!B||!await(u.isElement==null?void 0:u.isElement($)))&&(B=d.floating[I]||l.floating[C]);const z=M/2-j/2,Z=B/2-S[C]/2-1,re=Mr(y[T],Z),ke=Mr(y[A],Z),me=re,we=B-S[C]-ke,de=B/2-S[C]/2+z,be=Hd(me,de,we),ce=!f.arrow&&gi(a)!=null&&de!==be&&l.reference[C]/2-(dede<=0)){var ke,me;const de=(((ke=l.flip)==null?void 0:ke.index)||0)+1,be=B[de];if(be&&(!(y==="alignment"?A!==Ln(be):!1)||re.every(D=>Ln(D.placement)===A?D.overflows[0]>0:!0)))return{data:{index:de,overflows:re},reset:{placement:be}};let ce=(me=re.filter(Q=>Q.overflows[0]<=0).sort((Q,D)=>Q.overflows[1]-D.overflows[1])[0])==null?void 0:me.placement;if(!ce)switch(v){case"bestFit":{var we;const Q=(we=re.filter(D=>{if($){const U=Ln(D.placement);return U===A||U==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(U=>U>0).reduce((U,W)=>U+W,0)]).sort((D,U)=>D[1]-U[1])[0])==null?void 0:we[0];Q&&(ce=Q);break}case"initialPlacement":ce=d;break}if(a!==ce)return{reset:{placement:ce}}}return{}}}};function nv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rv(e){return gT.some(t=>e[t]>=0)}const IT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:i="referenceHidden",...a}=nr(e,t);switch(i){case"referenceHidden":{const l=await ks(t,{...a,elementContext:"reference"}),u=nv(l,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:rv(u)}}}case"escaped":{const l=await ks(t,{...a,altBoundary:!0}),u=nv(l,r.floating);return{data:{escapedOffsets:u,escaped:rv(u)}}}default:return{}}}}},M0=new Set(["left","top"]);async function RT(e,t){const{placement:r,platform:i,elements:a}=e,l=await(i.isRTL==null?void 0:i.isRTL(a.floating)),u=rr(r),d=gi(r),f=Ln(r)==="y",h=M0.has(u)?-1:1,m=l&&f?-1:1,y=nr(t,e);let{mainAxis:w,crossAxis:v,alignmentAxis:C}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof C=="number"&&(v=d==="end"?C*-1:C),f?{x:v*m,y:w*h}:{x:w*h,y:v*m}}const NT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,i;const{x:a,y:l,placement:u,middlewareData:d}=t,f=await RT(t,e);return u===((r=d.offset)==null?void 0:r.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:a+f.x,y:l+f.y,data:{...f,placement:u}}}}},MT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:i,placement:a}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:b=>{let{x:T,y:A}=b;return{x:T,y:A}}},...f}=nr(e,t),h={x:r,y:i},m=await ks(t,f),y=Ln(rr(a)),w=Rf(y);let v=h[w],C=h[y];if(l){const b=w==="y"?"top":"left",T=w==="y"?"bottom":"right",A=v+m[b],I=v-m[T];v=Hd(A,v,I)}if(u){const b=y==="y"?"top":"left",T=y==="y"?"bottom":"right",A=C+m[b],I=C-m[T];C=Hd(A,C,I)}const S=d.fn({...t,[w]:v,[y]:C});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[w]:l,[y]:u}}}}}},DT=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:i,placement:a,rects:l,middlewareData:u}=t,{offset:d=0,mainAxis:f=!0,crossAxis:h=!0}=nr(e,t),m={x:r,y:i},y=Ln(a),w=Rf(y);let v=m[w],C=m[y];const S=nr(d,t),b=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(f){const I=w==="y"?"height":"width",M=l.reference[w]-l.floating[I]+b.mainAxis,j=l.reference[w]+l.reference[I]-b.mainAxis;vj&&(v=j)}if(h){var T,A;const I=w==="y"?"width":"height",M=M0.has(rr(a)),j=l.reference[y]-l.floating[I]+(M&&((T=u.offset)==null?void 0:T[y])||0)+(M?0:b.crossAxis),$=l.reference[y]+l.reference[I]+(M?0:((A=u.offset)==null?void 0:A[y])||0)-(M?b.crossAxis:0);C$&&(C=$)}return{[w]:v,[y]:C}}}},jT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,i;const{placement:a,rects:l,platform:u,elements:d}=t,{apply:f=()=>{},...h}=nr(e,t),m=await ks(t,h),y=rr(a),w=gi(a),v=Ln(a)==="y",{width:C,height:S}=l.floating;let b,T;y==="top"||y==="bottom"?(b=y,T=w===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(T=y,b=w==="end"?"top":"bottom");const A=S-m.top-m.bottom,I=C-m.left-m.right,M=Mr(S-m[b],A),j=Mr(C-m[T],I),$=!t.middlewareData.shift;let B=M,z=j;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(z=I),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(B=A),$&&!w){const re=Ut(m.left,0),ke=Ut(m.right,0),me=Ut(m.top,0),we=Ut(m.bottom,0);v?z=C-2*(re!==0||ke!==0?re+ke:Ut(m.left,m.right)):B=S-2*(me!==0||we!==0?me+we:Ut(m.top,m.bottom))}await f({...t,availableWidth:z,availableHeight:B});const Z=await u.getDimensions(d.floating);return C!==Z.width||S!==Z.height?{reset:{rects:!0}}:{}}}};function Gl(){return typeof window<"u"}function vi(e){return D0(e)?(e.nodeName||"").toLowerCase():"#document"}function Ht(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wn(e){var t;return(t=(D0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function D0(e){return Gl()?e instanceof Node||e instanceof Ht(e).Node:!1}function xn(e){return Gl()?e instanceof Element||e instanceof Ht(e).Element:!1}function Un(e){return Gl()?e instanceof HTMLElement||e instanceof Ht(e).HTMLElement:!1}function ov(e){return!Gl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ht(e).ShadowRoot}const OT=new Set(["inline","contents"]);function Ms(e){const{overflow:t,overflowX:r,overflowY:i,display:a}=Sn(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!OT.has(a)}const LT=new Set(["table","td","th"]);function zT(e){return LT.has(vi(e))}const FT=[":popover-open",":modal"];function Kl(e){return FT.some(t=>{try{return e.matches(t)}catch{return!1}})}const VT=["transform","translate","scale","rotate","perspective"],BT=["transform","translate","scale","rotate","perspective","filter"],$T=["paint","layout","strict","content"];function Df(e){const t=jf(),r=xn(e)?Sn(e):e;return VT.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||BT.some(i=>(r.willChange||"").includes(i))||$T.some(i=>(r.contain||"").includes(i))}function UT(e){let t=Dr(e);for(;Un(t)&&!ai(t);){if(Df(t))return t;if(Kl(t))return null;t=Dr(t)}return null}function jf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const WT=new Set(["html","body","#document"]);function ai(e){return WT.has(vi(e))}function Sn(e){return Ht(e).getComputedStyle(e)}function Yl(e){return xn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dr(e){if(vi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ov(e)&&e.host||Wn(e);return ov(t)?t.host:t}function j0(e){const t=Dr(e);return ai(t)?e.ownerDocument?e.ownerDocument.body:e.body:Un(t)&&Ms(t)?t:j0(t)}function bs(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=j0(e),l=a===((i=e.ownerDocument)==null?void 0:i.body),u=Ht(a);if(l){const d=Kd(u);return t.concat(u,u.visualViewport||[],Ms(a)?a:[],d&&r?bs(d):[])}return t.concat(a,bs(a,[],r))}function Kd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function O0(e){const t=Sn(e);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=Un(e),l=a?e.offsetWidth:r,u=a?e.offsetHeight:i,d=Rl(r)!==l||Rl(i)!==u;return d&&(r=l,i=u),{width:r,height:i,$:d}}function Of(e){return xn(e)?e:e.contextElement}function ti(e){const t=Of(e);if(!Un(t))return zn(1);const r=t.getBoundingClientRect(),{width:i,height:a,$:l}=O0(t);let u=(l?Rl(r.width):r.width)/i,d=(l?Rl(r.height):r.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const HT=zn(0);function L0(e){const t=Ht(e);return!jf()||!t.visualViewport?HT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function GT(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ht(e)?!1:t}function lo(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),l=Of(e);let u=zn(1);t&&(i?xn(i)&&(u=ti(i)):u=ti(e));const d=GT(l,r,i)?L0(l):zn(0);let f=(a.left+d.x)/u.x,h=(a.top+d.y)/u.y,m=a.width/u.x,y=a.height/u.y;if(l){const w=Ht(l),v=i&&xn(i)?Ht(i):i;let C=w,S=Kd(C);for(;S&&i&&v!==C;){const b=ti(S),T=S.getBoundingClientRect(),A=Sn(S),I=T.left+(S.clientLeft+parseFloat(A.paddingLeft))*b.x,M=T.top+(S.clientTop+parseFloat(A.paddingTop))*b.y;f*=b.x,h*=b.y,m*=b.x,y*=b.y,f+=I,h+=M,C=Ht(S),S=Kd(C)}}return Ml({width:m,height:y,x:f,y:h})}function ql(e,t){const r=Yl(e).scrollLeft;return t?t.left+r:lo(Wn(e)).left+r}function z0(e,t){const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-ql(e,r),a=r.top+t.scrollTop;return{x:i,y:a}}function KT(e){let{elements:t,rect:r,offsetParent:i,strategy:a}=e;const l=a==="fixed",u=Wn(i),d=t?Kl(t.floating):!1;if(i===u||d&&l)return r;let f={scrollLeft:0,scrollTop:0},h=zn(1);const m=zn(0),y=Un(i);if((y||!y&&!l)&&((vi(i)!=="body"||Ms(u))&&(f=Yl(i)),Un(i))){const v=lo(i);h=ti(i),m.x=v.x+i.clientLeft,m.y=v.y+i.clientTop}const w=u&&!y&&!l?z0(u,f):zn(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-f.scrollLeft*h.x+m.x+w.x,y:r.y*h.y-f.scrollTop*h.y+m.y+w.y}}function YT(e){return Array.from(e.getClientRects())}function qT(e){const t=Wn(e),r=Yl(e),i=e.ownerDocument.body,a=Ut(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=Ut(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let u=-r.scrollLeft+ql(e);const d=-r.scrollTop;return Sn(i).direction==="rtl"&&(u+=Ut(t.clientWidth,i.clientWidth)-a),{width:a,height:l,x:u,y:d}}const iv=25;function XT(e,t){const r=Ht(e),i=Wn(e),a=r.visualViewport;let l=i.clientWidth,u=i.clientHeight,d=0,f=0;if(a){l=a.width,u=a.height;const m=jf();(!m||m&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}const h=ql(i);if(h<=0){const m=i.ownerDocument,y=m.body,w=getComputedStyle(y),v=m.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,C=Math.abs(i.clientWidth-y.clientWidth-v);C<=iv&&(l-=C)}else h<=iv&&(l+=h);return{width:l,height:u,x:d,y:f}}const ZT=new Set(["absolute","fixed"]);function QT(e,t){const r=lo(e,!0,t==="fixed"),i=r.top+e.clientTop,a=r.left+e.clientLeft,l=Un(e)?ti(e):zn(1),u=e.clientWidth*l.x,d=e.clientHeight*l.y,f=a*l.x,h=i*l.y;return{width:u,height:d,x:f,y:h}}function sv(e,t,r){let i;if(t==="viewport")i=XT(e,r);else if(t==="document")i=qT(Wn(e));else if(xn(t))i=QT(t,r);else{const a=L0(e);i={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Ml(i)}function F0(e,t){const r=Dr(e);return r===t||!xn(r)||ai(r)?!1:Sn(r).position==="fixed"||F0(r,t)}function JT(e,t){const r=t.get(e);if(r)return r;let i=bs(e,[],!1).filter(d=>xn(d)&&vi(d)!=="body"),a=null;const l=Sn(e).position==="fixed";let u=l?Dr(e):e;for(;xn(u)&&!ai(u);){const d=Sn(u),f=Df(u);!f&&d.position==="fixed"&&(a=null),(l?!f&&!a:!f&&d.position==="static"&&!!a&&ZT.has(a.position)||Ms(u)&&!f&&F0(e,u))?i=i.filter(m=>m!==u):a=d,u=Dr(u)}return t.set(e,i),i}function e_(e){let{element:t,boundary:r,rootBoundary:i,strategy:a}=e;const u=[...r==="clippingAncestors"?Kl(t)?[]:JT(t,this._c):[].concat(r),i],d=u[0],f=u.reduce((h,m)=>{const y=sv(t,m,a);return h.top=Ut(y.top,h.top),h.right=Mr(y.right,h.right),h.bottom=Mr(y.bottom,h.bottom),h.left=Ut(y.left,h.left),h},sv(t,d,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function t_(e){const{width:t,height:r}=O0(e);return{width:t,height:r}}function n_(e,t,r){const i=Un(t),a=Wn(t),l=r==="fixed",u=lo(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const f=zn(0);function h(){f.x=ql(a)}if(i||!i&&!l)if((vi(t)!=="body"||Ms(a))&&(d=Yl(t)),i){const v=lo(t,!0,l,t);f.x=v.x+t.clientLeft,f.y=v.y+t.clientTop}else a&&h();l&&!i&&a&&h();const m=a&&!i&&!l?z0(a,d):zn(0),y=u.left+d.scrollLeft-f.x-m.x,w=u.top+d.scrollTop-f.y-m.y;return{x:y,y:w,width:u.width,height:u.height}}function ad(e){return Sn(e).position==="static"}function av(e,t){if(!Un(e)||Sn(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Wn(e)===r&&(r=r.ownerDocument.body),r}function V0(e,t){const r=Ht(e);if(Kl(e))return r;if(!Un(e)){let a=Dr(e);for(;a&&!ai(a);){if(xn(a)&&!ad(a))return a;a=Dr(a)}return r}let i=av(e,t);for(;i&&zT(i)&&ad(i);)i=av(i,t);return i&&ai(i)&&ad(i)&&!Df(i)?r:i||UT(e)||r}const r_=async function(e){const t=this.getOffsetParent||V0,r=this.getDimensions,i=await r(e.floating);return{reference:n_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function o_(e){return Sn(e).direction==="rtl"}const i_={convertOffsetParentRelativeRectToViewportRelativeRect:KT,getDocumentElement:Wn,getClippingRect:e_,getOffsetParent:V0,getElementRects:r_,getClientRects:YT,getDimensions:t_,getScale:ti,isElement:xn,isRTL:o_};function B0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function s_(e,t){let r=null,i;const a=Wn(e);function l(){var d;clearTimeout(i),(d=r)==null||d.disconnect(),r=null}function u(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),l();const h=e.getBoundingClientRect(),{left:m,top:y,width:w,height:v}=h;if(d||t(),!w||!v)return;const C=rl(y),S=rl(a.clientWidth-(m+w)),b=rl(a.clientHeight-(y+v)),T=rl(m),I={rootMargin:-C+"px "+-S+"px "+-b+"px "+-T+"px",threshold:Ut(0,Mr(1,f))||1};let M=!0;function j($){const B=$[0].intersectionRatio;if(B!==f){if(!M)return u();B?u(!1,B):i=setTimeout(()=>{u(!1,1e-7)},1e3)}B===1&&!B0(h,e.getBoundingClientRect())&&u(),M=!1}try{r=new IntersectionObserver(j,{...I,root:a.ownerDocument})}catch{r=new IntersectionObserver(j,I)}r.observe(e)}return u(!0),l}function a_(e,t,r,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,h=Of(e),m=a||l?[...h?bs(h):[],...bs(t)]:[];m.forEach(T=>{a&&T.addEventListener("scroll",r,{passive:!0}),l&&T.addEventListener("resize",r)});const y=h&&d?s_(h,r):null;let w=-1,v=null;u&&(v=new ResizeObserver(T=>{let[A]=T;A&&A.target===h&&v&&(v.unobserve(t),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var I;(I=v)==null||I.observe(t)})),r()}),h&&!f&&v.observe(h),v.observe(t));let C,S=f?lo(e):null;f&&b();function b(){const T=lo(e);S&&!B0(S,T)&&r(),S=T,C=requestAnimationFrame(b)}return r(),()=>{var T;m.forEach(A=>{a&&A.removeEventListener("scroll",r),l&&A.removeEventListener("resize",r)}),y==null||y(),(T=v)==null||T.disconnect(),v=null,f&&cancelAnimationFrame(C)}}const l_=NT,u_=MT,c_=PT,d_=jT,f_=IT,lv=AT,p_=DT,h_=(e,t,r)=>{const i=new Map,a={platform:i_,...r},l={...a.platform,_c:i};return _T(e,t,{...a,platform:l})};var m_=typeof document<"u",g_=function(){},yl=m_?k.useLayoutEffect:g_;function Dl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,i,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(i=r;i--!==0;)if(!Dl(e[i],t[i]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(t,a[i]))return!1;for(i=r;i--!==0;){const l=a[i];if(!(l==="_owner"&&e.$$typeof)&&!Dl(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function $0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uv(e,t){const r=$0(e);return Math.round(t*r)/r}function ld(e){const t=k.useRef(e);return yl(()=>{t.current=e}),t}function v_(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:a,elements:{reference:l,floating:u}={},transform:d=!0,whileElementsMounted:f,open:h}=e,[m,y]=k.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[w,v]=k.useState(i);Dl(w,i)||v(i);const[C,S]=k.useState(null),[b,T]=k.useState(null),A=k.useCallback(D=>{D!==$.current&&($.current=D,S(D))},[]),I=k.useCallback(D=>{D!==B.current&&(B.current=D,T(D))},[]),M=l||C,j=u||b,$=k.useRef(null),B=k.useRef(null),z=k.useRef(m),Z=f!=null,re=ld(f),ke=ld(a),me=ld(h),we=k.useCallback(()=>{if(!$.current||!B.current)return;const D={placement:t,strategy:r,middleware:w};ke.current&&(D.platform=ke.current),h_($.current,B.current,D).then(U=>{const W={...U,isPositioned:me.current!==!1};de.current&&!Dl(z.current,W)&&(z.current=W,Wl.flushSync(()=>{y(W)}))})},[w,t,r,ke,me]);yl(()=>{h===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,y(D=>({...D,isPositioned:!1})))},[h]);const de=k.useRef(!1);yl(()=>(de.current=!0,()=>{de.current=!1}),[]),yl(()=>{if(M&&($.current=M),j&&(B.current=j),M&&j){if(re.current)return re.current(M,j,we);we()}},[M,j,we,re,Z]);const be=k.useMemo(()=>({reference:$,floating:B,setReference:A,setFloating:I}),[A,I]),ce=k.useMemo(()=>({reference:M,floating:j}),[M,j]),Q=k.useMemo(()=>{const D={position:r,left:0,top:0};if(!ce.floating)return D;const U=uv(ce.floating,m.x),W=uv(ce.floating,m.y);return d?{...D,transform:"translate("+U+"px, "+W+"px)",...$0(ce.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:U,top:W}},[r,d,ce.floating,m.x,m.y]);return k.useMemo(()=>({...m,update:we,refs:be,elements:ce,floatingStyles:Q}),[m,we,be,ce,Q])}const y_=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:a}=typeof e=="function"?e(r):e;return i&&t(i)?i.current!=null?lv({element:i.current,padding:a}).fn(r):{}:i?lv({element:i,padding:a}).fn(r):{}}}},w_=(e,t)=>({...l_(e),options:[e,t]}),x_=(e,t)=>({...u_(e),options:[e,t]}),S_=(e,t)=>({...p_(e),options:[e,t]}),k_=(e,t)=>({...c_(e),options:[e,t]}),b_=(e,t)=>({...d_(e),options:[e,t]}),C_=(e,t)=>({...f_(e),options:[e,t]}),E_=(e,t)=>({...y_(e),options:[e,t]});var T_="Arrow",U0=k.forwardRef((e,t)=>{const{children:r,width:i=10,height:a=5,...l}=e;return E.jsx(gt.svg,{...l,ref:t,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});U0.displayName=T_;var __=U0;function W0(e){const[t,r]=k.useState(void 0);return Nr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let u,d;if("borderBoxSize"in l){const f=l.borderBoxSize,h=Array.isArray(f)?f[0]:f;u=h.inlineSize,d=h.blockSize}else u=e.offsetWidth,d=e.offsetHeight;r({width:u,height:d})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}var Lf="Popper",[H0,G0]=Hl(Lf),[A_,K0]=H0(Lf),Y0=e=>{const{__scopePopper:t,children:r}=e,[i,a]=k.useState(null);return E.jsx(A_,{scope:t,anchor:i,onAnchorChange:a,children:r})};Y0.displayName=Lf;var q0="PopperAnchor",X0=k.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,l=K0(q0,r),u=k.useRef(null),d=Gt(t,u),f=k.useRef(null);return k.useEffect(()=>{const h=f.current;f.current=(i==null?void 0:i.current)||u.current,h!==f.current&&l.onAnchorChange(f.current)}),i?null:E.jsx(gt.div,{...a,ref:d})});X0.displayName=q0;var zf="PopperContent",[P_,I_]=H0(zf),Z0=k.forwardRef((e,t)=>{var ee,Ce,Te,je,it,Ct;const{__scopePopper:r,side:i="bottom",sideOffset:a=0,align:l="center",alignOffset:u=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:w=!1,updatePositionStrategy:v="optimized",onPlaced:C,...S}=e,b=K0(zf,r),[T,A]=k.useState(null),I=Gt(t,zt=>A(zt)),[M,j]=k.useState(null),$=W0(M),B=($==null?void 0:$.width)??0,z=($==null?void 0:$.height)??0,Z=i+(l!=="center"?"-"+l:""),re=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},ke=Array.isArray(h)?h:[h],me=ke.length>0,we={padding:re,boundary:ke.filter(N_),altBoundary:me},{refs:de,floatingStyles:be,placement:ce,isPositioned:Q,middlewareData:D}=v_({strategy:"fixed",placement:Z,whileElementsMounted:(...zt)=>a_(...zt,{animationFrame:v==="always"}),elements:{reference:b.anchor},middleware:[w_({mainAxis:a+z,alignmentAxis:u}),f&&x_({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?S_():void 0,...we}),f&&k_({...we}),b_({...we,apply:({elements:zt,rects:sr,availableWidth:co,availableHeight:zr})=>{const{width:Fr,height:ar}=sr.reference,bn=zt.floating.style;bn.setProperty("--radix-popper-available-width",`${co}px`),bn.setProperty("--radix-popper-available-height",`${zr}px`),bn.setProperty("--radix-popper-anchor-width",`${Fr}px`),bn.setProperty("--radix-popper-anchor-height",`${ar}px`)}}),M&&E_({element:M,padding:d}),M_({arrowWidth:B,arrowHeight:z}),w&&C_({strategy:"referenceHidden",...we})]}),[U,W]=ew(ce),N=si(C);Nr(()=>{Q&&(N==null||N())},[Q,N]);const V=(ee=D.arrow)==null?void 0:ee.x,X=(Ce=D.arrow)==null?void 0:Ce.y,J=((Te=D.arrow)==null?void 0:Te.centerOffset)!==0,[fe,ge]=k.useState();return Nr(()=>{T&&ge(window.getComputedStyle(T).zIndex)},[T]),E.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:Q?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(je=D.transformOrigin)==null?void 0:je.x,(it=D.transformOrigin)==null?void 0:it.y].join(" "),...((Ct=D.hide)==null?void 0:Ct.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:E.jsx(P_,{scope:r,placedSide:U,onArrowChange:j,arrowX:V,arrowY:X,shouldHideArrow:J,children:E.jsx(gt.div,{"data-side":U,"data-align":W,...S,ref:I,style:{...S.style,animation:Q?void 0:"none"}})})})});Z0.displayName=zf;var Q0="PopperArrow",R_={top:"bottom",right:"left",bottom:"top",left:"right"},J0=k.forwardRef(function(t,r){const{__scopePopper:i,...a}=t,l=I_(Q0,i),u=R_[l.placedSide];return E.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:E.jsx(__,{...a,ref:r,style:{...a.style,display:"block"}})})});J0.displayName=Q0;function N_(e){return e!==null}var M_=e=>({name:"transformOrigin",options:e,fn(t){var b,T,A;const{placement:r,rects:i,middlewareData:a}=t,u=((b=a.arrow)==null?void 0:b.centerOffset)!==0,d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[h,m]=ew(r),y={start:"0%",center:"50%",end:"100%"}[m],w=(((T=a.arrow)==null?void 0:T.x)??0)+d/2,v=(((A=a.arrow)==null?void 0:A.y)??0)+f/2;let C="",S="";return h==="bottom"?(C=u?y:`${w}px`,S=`${-f}px`):h==="top"?(C=u?y:`${w}px`,S=`${i.floating.height+f}px`):h==="right"?(C=`${-f}px`,S=u?y:`${v}px`):h==="left"&&(C=`${i.floating.width+f}px`,S=u?y:`${v}px`),{data:{x:C,y:S}}}});function ew(e){const[t,r="center"]=e.split("-");return[t,r]}var D_=Y0,j_=X0,O_=Z0,L_=J0,z_="Portal",Ff=k.forwardRef((e,t)=>{var d;const{container:r,...i}=e,[a,l]=k.useState(!1);Nr(()=>l(!0),[]);const u=r||a&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return u?Cf.createPortal(E.jsx(gt.div,{...i,ref:t}),u):null});Ff.displayName=z_;function F_(e,t){return k.useReducer((r,i)=>t[r][i]??r,e)}var yi=e=>{const{present:t,children:r}=e,i=V_(t),a=typeof r=="function"?r({present:i.isPresent}):k.Children.only(r),l=Gt(i.ref,B_(a));return typeof r=="function"||i.isPresent?k.cloneElement(a,{ref:l}):null};yi.displayName="Presence";function V_(e){const[t,r]=k.useState(),i=k.useRef(null),a=k.useRef(e),l=k.useRef("none"),u=e?"mounted":"unmounted",[d,f]=F_(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const h=ol(i.current);l.current=d==="mounted"?h:"none"},[d]),Nr(()=>{const h=i.current,m=a.current;if(m!==e){const w=l.current,v=ol(h);e?f("MOUNT"):v==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(m&&w!==v?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),Nr(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,y=v=>{const S=ol(i.current).includes(CSS.escape(v.animationName));if(v.target===t&&S&&(f("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},w=v=>{v.target===t&&(l.current=ol(i.current))};return t.addEventListener("animationstart",w),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",w),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:k.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function ol(e){return(e==null?void 0:e.animationName)||"none"}function B_(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var $_=Hy[" useInsertionEffect ".trim().toString()]||Nr;function Vf({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){const[a,l,u]=U_({defaultProp:t,onChange:r}),d=e!==void 0,f=d?e:a;{const m=k.useRef(e!==void 0);k.useEffect(()=>{const y=m.current;y!==d&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=d},[d,i])}const h=k.useCallback(m=>{var y;if(d){const w=W_(m)?m(e):m;w!==e&&((y=u.current)==null||y.call(u,w))}else l(m)},[d,e,l,u]);return[f,h]}function U_({defaultProp:e,onChange:t}){const[r,i]=k.useState(e),a=k.useRef(r),l=k.useRef(t);return $_(()=>{l.current=t},[t]),k.useEffect(()=>{var u;a.current!==r&&((u=l.current)==null||u.call(l,r),a.current=r)},[r,a]),[r,i,l]}function W_(e){return typeof e=="function"}var H_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),G_="VisuallyHidden",tw=k.forwardRef((e,t)=>E.jsx(gt.span,{...e,ref:t,style:{...H_,...e.style}}));tw.displayName=G_;var K_=tw,[Xl,rD]=Hl("Tooltip",[G0]),Zl=G0(),nw="TooltipProvider",Y_=700,Yd="tooltip.open",[q_,Bf]=Xl(nw),rw=e=>{const{__scopeTooltip:t,delayDuration:r=Y_,skipDelayDuration:i=300,disableHoverableContent:a=!1,children:l}=e,u=k.useRef(!0),d=k.useRef(!1),f=k.useRef(0);return k.useEffect(()=>{const h=f.current;return()=>window.clearTimeout(h)},[]),E.jsx(q_,{scope:t,isOpenDelayedRef:u,delayDuration:r,onOpen:k.useCallback(()=>{window.clearTimeout(f.current),u.current=!1},[]),onClose:k.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>u.current=!0,i)},[i]),isPointerInTransitRef:d,onPointerInTransitChange:k.useCallback(h=>{d.current=h},[]),disableHoverableContent:a,children:l})};rw.displayName=nw;var Cs="Tooltip",[X_,Ds]=Xl(Cs),ow=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:a,onOpenChange:l,disableHoverableContent:u,delayDuration:d}=e,f=Bf(Cs,e.__scopeTooltip),h=Zl(t),[m,y]=k.useState(null),w=vl(),v=k.useRef(0),C=u??f.disableHoverableContent,S=d??f.delayDuration,b=k.useRef(!1),[T,A]=Vf({prop:i,defaultProp:a??!1,onChange:B=>{B?(f.onOpen(),document.dispatchEvent(new CustomEvent(Yd))):f.onClose(),l==null||l(B)},caller:Cs}),I=k.useMemo(()=>T?b.current?"delayed-open":"instant-open":"closed",[T]),M=k.useCallback(()=>{window.clearTimeout(v.current),v.current=0,b.current=!1,A(!0)},[A]),j=k.useCallback(()=>{window.clearTimeout(v.current),v.current=0,A(!1)},[A]),$=k.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{b.current=!0,A(!0),v.current=0},S)},[S,A]);return k.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),E.jsx(D_,{...h,children:E.jsx(X_,{scope:t,contentId:w,open:T,stateAttribute:I,trigger:m,onTriggerChange:y,onTriggerEnter:k.useCallback(()=>{f.isOpenDelayedRef.current?$():M()},[f.isOpenDelayedRef,$,M]),onTriggerLeave:k.useCallback(()=>{C?j():(window.clearTimeout(v.current),v.current=0)},[j,C]),onOpen:M,onClose:j,disableHoverableContent:C,children:r})})};ow.displayName=Cs;var qd="TooltipTrigger",iw=k.forwardRef((e,t)=>{const{__scopeTooltip:r,...i}=e,a=Ds(qd,r),l=Bf(qd,r),u=Zl(r),d=k.useRef(null),f=Gt(t,d,a.onTriggerChange),h=k.useRef(!1),m=k.useRef(!1),y=k.useCallback(()=>h.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),E.jsx(j_,{asChild:!0,...u,children:E.jsx(gt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:f,onPointerMove:kt(e.onPointerMove,w=>{w.pointerType!=="touch"&&!m.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:kt(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:kt(e.onPointerDown,()=>{a.open&&a.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:kt(e.onFocus,()=>{h.current||a.onOpen()}),onBlur:kt(e.onBlur,a.onClose),onClick:kt(e.onClick,a.onClose)})})});iw.displayName=qd;var $f="TooltipPortal",[Z_,Q_]=Xl($f,{forceMount:void 0}),sw=e=>{const{__scopeTooltip:t,forceMount:r,children:i,container:a}=e,l=Ds($f,t);return E.jsx(Z_,{scope:t,forceMount:r,children:E.jsx(yi,{present:r||l.open,children:E.jsx(Ff,{asChild:!0,container:a,children:i})})})};sw.displayName=$f;var li="TooltipContent",aw=k.forwardRef((e,t)=>{const r=Q_(li,e.__scopeTooltip),{forceMount:i=r.forceMount,side:a="top",...l}=e,u=Ds(li,e.__scopeTooltip);return E.jsx(yi,{present:i||u.open,children:u.disableHoverableContent?E.jsx(lw,{side:a,...l,ref:t}):E.jsx(J_,{side:a,...l,ref:t})})}),J_=k.forwardRef((e,t)=>{const r=Ds(li,e.__scopeTooltip),i=Bf(li,e.__scopeTooltip),a=k.useRef(null),l=Gt(t,a),[u,d]=k.useState(null),{trigger:f,onClose:h}=r,m=a.current,{onPointerInTransitChange:y}=i,w=k.useCallback(()=>{d(null),y(!1)},[y]),v=k.useCallback((C,S)=>{const b=C.currentTarget,T={x:C.clientX,y:C.clientY},A=oA(T,b.getBoundingClientRect()),I=iA(T,A),M=sA(S.getBoundingClientRect()),j=lA([...I,...M]);d(j),y(!0)},[y]);return k.useEffect(()=>()=>w(),[w]),k.useEffect(()=>{if(f&&m){const C=b=>v(b,m),S=b=>v(b,f);return f.addEventListener("pointerleave",C),m.addEventListener("pointerleave",S),()=>{f.removeEventListener("pointerleave",C),m.removeEventListener("pointerleave",S)}}},[f,m,v,w]),k.useEffect(()=>{if(u){const C=S=>{const b=S.target,T={x:S.clientX,y:S.clientY},A=(f==null?void 0:f.contains(b))||(m==null?void 0:m.contains(b)),I=!aA(T,u);A?w():I&&(w(),h())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[f,m,u,h,w]),E.jsx(lw,{...e,ref:l})}),[eA,tA]=Xl(Cs,{isInside:!1}),nA=vE("TooltipContent"),lw=k.forwardRef((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:u,...d}=e,f=Ds(li,r),h=Zl(r),{onClose:m}=f;return k.useEffect(()=>(document.addEventListener(Yd,m),()=>document.removeEventListener(Yd,m)),[m]),k.useEffect(()=>{if(f.trigger){const y=w=>{const v=w.target;v!=null&&v.contains(f.trigger)&&m()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[f.trigger,m]),E.jsx(If,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:y=>y.preventDefault(),onDismiss:m,children:E.jsxs(O_,{"data-state":f.stateAttribute,...h,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[E.jsx(nA,{children:i}),E.jsx(eA,{scope:r,isInside:!0,children:E.jsx(K_,{id:f.contentId,role:"tooltip",children:a||i})})]})})});aw.displayName=li;var uw="TooltipArrow",rA=k.forwardRef((e,t)=>{const{__scopeTooltip:r,...i}=e,a=Zl(r);return tA(uw,r).isInside?null:E.jsx(L_,{...a,...i,ref:t})});rA.displayName=uw;function oA(e,t){const r=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(r,i,a,l)){case l:return"left";case a:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function iA(e,t,r=5){const i=[];switch(t){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return i}function sA(e){const{top:t,right:r,bottom:i,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:i},{x:a,y:i}]}function aA(e,t){const{x:r,y:i}=e;let a=!1;for(let l=0,u=t.length-1;li!=w>i&&r<(y-h)*(i-m)/(w-m)+h&&(a=!a)}return a}function lA(e){const t=e.slice();return t.sort((r,i)=>r.xi.x?1:r.yi.y?1:0),uA(t)}function uA(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i=2;){const l=t[t.length-1],u=t[t.length-2];if((l.x-u.x)*(a.y-u.y)>=(l.y-u.y)*(a.x-u.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let i=e.length-1;i>=0;i--){const a=e[i];for(;r.length>=2;){const l=r[r.length-1],u=r[r.length-2];if((l.x-u.x)*(a.y-u.y)>=(l.y-u.y)*(a.x-u.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var cA=rw,dA=ow,fA=iw,pA=sw,cw=aw;const hA=cA,mA=dA,gA=fA,dw=k.forwardRef(({className:e,sideOffset:t=4,...r},i)=>E.jsx(pA,{children:E.jsx(cw,{ref:i,sideOffset:t,className:Qe("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));dw.displayName=cw.displayName;var ud="focusScope.autoFocusOnMount",cd="focusScope.autoFocusOnUnmount",cv={bubbles:!1,cancelable:!0},vA="FocusScope",fw=k.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...u}=e,[d,f]=k.useState(null),h=si(a),m=si(l),y=k.useRef(null),w=Gt(t,S=>f(S)),v=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(i){let S=function(I){if(v.paused||!d)return;const M=I.target;d.contains(M)?y.current=M:Ir(y.current,{select:!0})},b=function(I){if(v.paused||!d)return;const M=I.relatedTarget;M!==null&&(d.contains(M)||Ir(y.current,{select:!0}))},T=function(I){if(document.activeElement===document.body)for(const j of I)j.removedNodes.length>0&&Ir(d)};document.addEventListener("focusin",S),document.addEventListener("focusout",b);const A=new MutationObserver(T);return d&&A.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",b),A.disconnect()}}},[i,d,v.paused]),k.useEffect(()=>{if(d){fv.add(v);const S=document.activeElement;if(!d.contains(S)){const T=new CustomEvent(ud,cv);d.addEventListener(ud,h),d.dispatchEvent(T),T.defaultPrevented||(yA(bA(pw(d)),{select:!0}),document.activeElement===S&&Ir(d))}return()=>{d.removeEventListener(ud,h),setTimeout(()=>{const T=new CustomEvent(cd,cv);d.addEventListener(cd,m),d.dispatchEvent(T),T.defaultPrevented||Ir(S??document.body,{select:!0}),d.removeEventListener(cd,m),fv.remove(v)},0)}}},[d,h,m,v]);const C=k.useCallback(S=>{if(!r&&!i||v.paused)return;const b=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,T=document.activeElement;if(b&&T){const A=S.currentTarget,[I,M]=wA(A);I&&M?!S.shiftKey&&T===M?(S.preventDefault(),r&&Ir(I,{select:!0})):S.shiftKey&&T===I&&(S.preventDefault(),r&&Ir(M,{select:!0})):T===A&&S.preventDefault()}},[r,i,v.paused]);return E.jsx(gt.div,{tabIndex:-1,...u,ref:w,onKeyDown:C})});fw.displayName=vA;function yA(e,{select:t=!1}={}){const r=document.activeElement;for(const i of e)if(Ir(i,{select:t}),document.activeElement!==r)return}function wA(e){const t=pw(e),r=dv(t,e),i=dv(t.reverse(),e);return[r,i]}function pw(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function dv(e,t){for(const r of e)if(!xA(r,{upTo:t}))return r}function xA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function SA(e){return e instanceof HTMLInputElement&&"select"in e}function Ir(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&SA(e)&&t&&e.select()}}var fv=kA();function kA(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=pv(e,t),e.unshift(t)},remove(t){var r;e=pv(e,t),(r=e[0])==null||r.resume()}}}function pv(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function bA(e){return e.filter(t=>t.tagName!=="A")}var dd=0;function CA(){k.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hv()),document.body.insertAdjacentElement("beforeend",e[1]??hv()),dd++,()=>{dd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),dd--}},[])}function hv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var On=function(){return On=Object.assign||function(t){for(var r,i=1,a=arguments.length;i"u")return BA;var t=$A(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},WA=vw(),ni="data-scroll-locked",HA=function(e,t,r,i){var a=e.left,l=e.top,u=e.right,d=e.gap;return r===void 0&&(r="margin"),` .`.concat(TA,` { overflow: hidden `).concat(i,`; padding-right: `).concat(d,"px ").concat(i,`; } body[`).concat(ni,`] { overflow: hidden `).concat(i,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&` padding-left: `.concat(a,`px; padding-top: `).concat(l,`px; padding-right: `).concat(u,`px; margin-left:0; margin-top:0; margin-right: `).concat(d,"px ").concat(i,`; `),r==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";")].filter(Boolean).join(""),` } .`).concat(wl,` { right: `).concat(d,"px ").concat(i,`; } .`).concat(xl,` { margin-right: `).concat(d,"px ").concat(i,`; } .`).concat(wl," .").concat(wl,` { right: 0 `).concat(i,`; } .`).concat(xl," .").concat(xl,` { margin-right: 0 `).concat(i,`; } body[`).concat(ni,`] { `).concat(_A,": ").concat(d,`px; } `)},gv=function(){var e=parseInt(document.body.getAttribute(ni)||"0",10);return isFinite(e)?e:0},GA=function(){k.useEffect(function(){return document.body.setAttribute(ni,(gv()+1).toString()),function(){var e=gv()-1;e<=0?document.body.removeAttribute(ni):document.body.setAttribute(ni,e.toString())}},[])},KA=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;GA();var l=k.useMemo(function(){return UA(a)},[a]);return k.createElement(WA,{styles:HA(l,!t,a,r?"":"!important")})},Xd=!1;if(typeof window<"u")try{var il=Object.defineProperty({},"passive",{get:function(){return Xd=!0,!0}});window.addEventListener("test",il,il),window.removeEventListener("test",il,il)}catch{Xd=!1}var Bo=Xd?{passive:!1}:!1,YA=function(e){return e.tagName==="TEXTAREA"},yw=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!YA(e)&&r[t]==="visible")},qA=function(e){return yw(e,"overflowY")},XA=function(e){return yw(e,"overflowX")},vv=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=ww(e,i);if(a){var l=xw(e,i),u=l[1],d=l[2];if(u>d)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},ZA=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},QA=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},ww=function(e,t){return e==="v"?qA(t):XA(t)},xw=function(e,t){return e==="v"?ZA(t):QA(t)},JA=function(e,t){return e==="h"&&t==="rtl"?-1:1},eP=function(e,t,r,i,a){var l=JA(e,window.getComputedStyle(t).direction),u=l*i,d=r.target,f=t.contains(d),h=!1,m=u>0,y=0,w=0;do{if(!d)break;var v=xw(e,d),C=v[0],S=v[1],b=v[2],T=S-b-l*C;(C||T)&&ww(e,d)&&(y+=T,w+=C);var A=d.parentNode;d=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!f&&d!==document.body||f&&(t.contains(d)||t===d));return(m&&Math.abs(y)<1||!m&&Math.abs(w)<1)&&(h=!0),h},sl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yv=function(e){return[e.deltaX,e.deltaY]},wv=function(e){return e&&"current"in e?e.current:e},tP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},nP=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},rP=0,$o=[];function oP(e){var t=k.useRef([]),r=k.useRef([0,0]),i=k.useRef(),a=k.useState(rP++)[0],l=k.useState(vw)[0],u=k.useRef(e);k.useEffect(function(){u.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var S=EA([e.lockRef.current],(e.shards||[]).map(wv),!0).filter(Boolean);return S.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var d=k.useCallback(function(S,b){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var T=sl(S),A=r.current,I="deltaX"in S?S.deltaX:A[0]-T[0],M="deltaY"in S?S.deltaY:A[1]-T[1],j,$=S.target,B=Math.abs(I)>Math.abs(M)?"h":"v";if("touches"in S&&B==="h"&&$.type==="range")return!1;var z=vv(B,$);if(!z)return!0;if(z?j=B:(j=B==="v"?"h":"v",z=vv(B,$)),!z)return!1;if(!i.current&&"changedTouches"in S&&(I||M)&&(i.current=j),!j)return!0;var Z=i.current||j;return eP(Z,b,S,Z==="h"?I:M)},[]),f=k.useCallback(function(S){var b=S;if(!(!$o.length||$o[$o.length-1]!==l)){var T="deltaY"in b?yv(b):sl(b),A=t.current.filter(function(j){return j.name===b.type&&(j.target===b.target||b.target===j.shadowParent)&&tP(j.delta,T)})[0];if(A&&A.should){b.cancelable&&b.preventDefault();return}if(!A){var I=(u.current.shards||[]).map(wv).filter(Boolean).filter(function(j){return j.contains(b.target)}),M=I.length>0?d(b,I[0]):!u.current.noIsolation;M&&b.cancelable&&b.preventDefault()}}},[]),h=k.useCallback(function(S,b,T,A){var I={name:S,delta:b,target:T,should:A,shadowParent:iP(T)};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(M){return M!==I})},1)},[]),m=k.useCallback(function(S){r.current=sl(S),i.current=void 0},[]),y=k.useCallback(function(S){h(S.type,yv(S),S.target,d(S,e.lockRef.current))},[]),w=k.useCallback(function(S){h(S.type,sl(S),S.target,d(S,e.lockRef.current))},[]);k.useEffect(function(){return $o.push(l),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",f,Bo),document.addEventListener("touchmove",f,Bo),document.addEventListener("touchstart",m,Bo),function(){$o=$o.filter(function(S){return S!==l}),document.removeEventListener("wheel",f,Bo),document.removeEventListener("touchmove",f,Bo),document.removeEventListener("touchstart",m,Bo)}},[]);var v=e.removeScrollBar,C=e.inert;return k.createElement(k.Fragment,null,C?k.createElement(l,{styles:nP(a)}):null,v?k.createElement(KA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function iP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sP=DA(gw,oP);var Sw=k.forwardRef(function(e,t){return k.createElement(Ql,On({},e,{ref:t,sideCar:sP}))});Sw.classNames=Ql.classNames;var aP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Uo=new WeakMap,al=new WeakMap,ll={},md=0,kw=function(e){return e&&(e.host||kw(e.parentNode))},lP=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=kw(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},uP=function(e,t,r,i){var a=lP(t,Array.isArray(e)?e:[e]);ll[r]||(ll[r]=new WeakMap);var l=ll[r],u=[],d=new Set,f=new Set(a),h=function(y){!y||d.has(y)||(d.add(y),h(y.parentNode))};a.forEach(h);var m=function(y){!y||f.has(y)||Array.prototype.forEach.call(y.children,function(w){if(d.has(w))m(w);else try{var v=w.getAttribute(i),C=v!==null&&v!=="false",S=(Uo.get(w)||0)+1,b=(l.get(w)||0)+1;Uo.set(w,S),l.set(w,b),u.push(w),S===1&&C&&al.set(w,!0),b===1&&w.setAttribute(r,"true"),C||w.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",w,T)}})};return m(t),d.clear(),md++,function(){u.forEach(function(y){var w=Uo.get(y)-1,v=l.get(y)-1;Uo.set(y,w),l.set(y,v),w||(al.has(y)||y.removeAttribute(i),al.delete(y)),v||y.removeAttribute(r)}),md--,md||(Uo=new WeakMap,Uo=new WeakMap,al=new WeakMap,ll={})}},cP=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=aP(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),uP(i,a,r,"aria-hidden")):function(){return null}},Jl="Dialog",[bw,oD]=Hl(Jl),[dP,kn]=bw(Jl),Cw=e=>{const{__scopeDialog:t,children:r,open:i,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,d=k.useRef(null),f=k.useRef(null),[h,m]=Vf({prop:i,defaultProp:a??!1,onChange:l,caller:Jl});return E.jsx(dP,{scope:t,triggerRef:d,contentRef:f,contentId:vl(),titleId:vl(),descriptionId:vl(),open:h,onOpenChange:m,onOpenToggle:k.useCallback(()=>m(y=>!y),[m]),modal:u,children:r})};Cw.displayName=Jl;var Ew="DialogTrigger",fP=k.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,a=kn(Ew,r),l=Gt(t,a.triggerRef);return E.jsx(gt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Hf(a.open),...i,ref:l,onClick:kt(e.onClick,a.onOpenToggle)})});fP.displayName=Ew;var Uf="DialogPortal",[pP,Tw]=bw(Uf,{forceMount:void 0}),_w=e=>{const{__scopeDialog:t,forceMount:r,children:i,container:a}=e,l=kn(Uf,t);return E.jsx(pP,{scope:t,forceMount:r,children:k.Children.map(i,u=>E.jsx(yi,{present:r||l.open,children:E.jsx(Ff,{asChild:!0,container:a,children:u})}))})};_w.displayName=Uf;var jl="DialogOverlay",Aw=k.forwardRef((e,t)=>{const r=Tw(jl,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,l=kn(jl,e.__scopeDialog);return l.modal?E.jsx(yi,{present:i||l.open,children:E.jsx(mP,{...a,ref:t})}):null});Aw.displayName=jl;var hP=Af("DialogOverlay.RemoveScroll"),mP=k.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,a=kn(jl,r);return E.jsx(Sw,{as:hP,allowPinchZoom:!0,shards:[a.contentRef],children:E.jsx(gt.div,{"data-state":Hf(a.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),uo="DialogContent",Pw=k.forwardRef((e,t)=>{const r=Tw(uo,e.__scopeDialog),{forceMount:i=r.forceMount,...a}=e,l=kn(uo,e.__scopeDialog);return E.jsx(yi,{present:i||l.open,children:l.modal?E.jsx(gP,{...a,ref:t}):E.jsx(vP,{...a,ref:t})})});Pw.displayName=uo;var gP=k.forwardRef((e,t)=>{const r=kn(uo,e.__scopeDialog),i=k.useRef(null),a=Gt(t,r.contentRef,i);return k.useEffect(()=>{const l=i.current;if(l)return cP(l)},[]),E.jsx(Iw,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:kt(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),(u=r.triggerRef.current)==null||u.focus()}),onPointerDownOutside:kt(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0;(u.button===2||d)&&l.preventDefault()}),onFocusOutside:kt(e.onFocusOutside,l=>l.preventDefault())})}),vP=k.forwardRef((e,t)=>{const r=kn(uo,e.__scopeDialog),i=k.useRef(!1),a=k.useRef(!1);return E.jsx(Iw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,d;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(i.current||(d=r.triggerRef.current)==null||d.focus(),l.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:l=>{var f,h;(f=e.onInteractOutside)==null||f.call(e,l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=l.target;((h=r.triggerRef.current)==null?void 0:h.contains(u))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}})}),Iw=k.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:l,...u}=e,d=kn(uo,r),f=k.useRef(null),h=Gt(t,f);return CA(),E.jsxs(E.Fragment,{children:[E.jsx(fw,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:l,children:E.jsx(If,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":Hf(d.open),...u,ref:h,onDismiss:()=>d.onOpenChange(!1)})}),E.jsxs(E.Fragment,{children:[E.jsx(yP,{titleId:d.titleId}),E.jsx(xP,{contentRef:f,descriptionId:d.descriptionId})]})]})}),Wf="DialogTitle",Rw=k.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,a=kn(Wf,r);return E.jsx(gt.h2,{id:a.titleId,...i,ref:t})});Rw.displayName=Wf;var Nw="DialogDescription",Mw=k.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,a=kn(Nw,r);return E.jsx(gt.p,{id:a.descriptionId,...i,ref:t})});Mw.displayName=Nw;var Dw="DialogClose",jw=k.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,a=kn(Dw,r);return E.jsx(gt.button,{type:"button",...i,ref:t,onClick:kt(e.onClick,()=>a.onOpenChange(!1))})});jw.displayName=Dw;function Hf(e){return e?"open":"closed"}var Ow="DialogTitleWarning",[iD,Lw]=nT(Ow,{contentName:uo,titleName:Wf,docsSlug:"dialog"}),yP=({titleId:e})=>{const t=Lw(Ow),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},wP="DialogDescriptionWarning",xP=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Lw(wP).contentName}}.`;return k.useEffect(()=>{var l;const a=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},SP=Cw,kP=_w,zw=Aw,Fw=Pw,Vw=Rw,Bw=Mw,bP=jw;const CP=SP,EP=kP,$w=k.forwardRef(({className:e,...t},r)=>E.jsx(zw,{ref:r,className:Qe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));$w.displayName=zw.displayName;const Uw=k.forwardRef(({className:e,children:t,...r},i)=>E.jsxs(EP,{children:[E.jsx($w,{}),E.jsxs(Fw,{ref:i,className:Qe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,E.jsxs(bP,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[E.jsx(fE,{className:"h-4 w-4"}),E.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Uw.displayName=Fw.displayName;const Ww=({className:e,...t})=>E.jsx("div",{className:Qe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ww.displayName="DialogHeader";const Hw=({className:e,...t})=>E.jsx("div",{className:Qe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Hw.displayName="DialogFooter";const Gw=k.forwardRef(({className:e,...t},r)=>E.jsx(Vw,{ref:r,className:Qe("text-lg font-semibold leading-none tracking-tight",e),...t}));Gw.displayName=Vw.displayName;const Kw=k.forwardRef(({className:e,...t},r)=>E.jsx(Bw,{ref:r,className:Qe("text-sm text-muted-foreground",e),...t}));Kw.displayName=Bw.displayName;function TP(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var eu="Switch",[_P,sD]=Hl(eu),[AP,PP]=_P(eu),Yw=k.forwardRef((e,t)=>{const{__scopeSwitch:r,name:i,checked:a,defaultChecked:l,required:u,disabled:d,value:f="on",onCheckedChange:h,form:m,...y}=e,[w,v]=k.useState(null),C=Gt(t,I=>v(I)),S=k.useRef(!1),b=w?m||!!w.closest("form"):!0,[T,A]=Vf({prop:a,defaultProp:l??!1,onChange:h,caller:eu});return E.jsxs(AP,{scope:r,checked:T,disabled:d,children:[E.jsx(gt.button,{type:"button",role:"switch","aria-checked":T,"aria-required":u,"data-state":Qw(T),"data-disabled":d?"":void 0,disabled:d,value:f,...y,ref:C,onClick:kt(e.onClick,I=>{A(M=>!M),b&&(S.current=I.isPropagationStopped(),S.current||I.stopPropagation())})}),b&&E.jsx(Zw,{control:w,bubbles:!S.current,name:i,value:f,checked:T,required:u,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});Yw.displayName=eu;var qw="SwitchThumb",Xw=k.forwardRef((e,t)=>{const{__scopeSwitch:r,...i}=e,a=PP(qw,r);return E.jsx(gt.span,{"data-state":Qw(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t})});Xw.displayName=qw;var IP="SwitchBubbleInput",Zw=k.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:i=!0,...a},l)=>{const u=k.useRef(null),d=Gt(u,l),f=TP(r),h=W0(t);return k.useEffect(()=>{const m=u.current;if(!m)return;const y=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(y,"checked").set;if(f!==r&&v){const C=new Event("click",{bubbles:i});v.call(m,r),m.dispatchEvent(C)}},[f,r,i]),E.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:d,style:{...a.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Zw.displayName=IP;function Qw(e){return e?"checked":"unchecked"}var Jw=Yw,RP=Xw;const ex=k.forwardRef(({className:e,...t},r)=>E.jsx(Jw,{className:Qe("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:E.jsx(RP,{className:Qe("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));ex.displayName=Jw.displayName;const Gf=({open:e,onOpenChange:t,privacyPolicyUrl:r,termsOfServiceUrl:i,onSave:a,onAcceptAll:l,onRejectAll:u})=>{const{texts:d,acceptAll:f,rejectAll:h,updateConsent:m}=Ul(),{preferences:y,updateCategory:w,texts:v}=Ab(),{closeModal:C}=t0(),S=[{id:"necessary",title:v.necessary.title,description:v.necessary.description,icon:lE,required:!0},{id:"functional",title:v.functional.title,description:v.functional.description,icon:hE,required:!1},{id:"analytics",title:v.analytics.title,description:v.analytics.description,icon:cE,required:!1},{id:"marketing",title:v.marketing.title,description:v.marketing.description,icon:g0,required:!1}],b=k.useCallback((M,j)=>{w(M,j)},[w]),T=k.useCallback(async()=>{await m(y),C(),a==null||a(),t(!1)},[m,y,C,a,t]),A=k.useCallback(()=>{f(),l==null||l(),t(!1)},[f,l,t]),I=k.useCallback(()=>{h(),u==null||u(),t(!1)},[h,u,t]);return E.jsx(CP,{open:e,onOpenChange:t,children:E.jsxs(Uw,{className:"max-w-2xl max-h-[90vh] overflow-y-auto p-0",onOpenAutoFocus:M=>M.preventDefault(),children:[E.jsxs(Ww,{className:"p-6 border-b",children:[E.jsx(Gw,{className:"flex gap-2 items-center",children:d.modal.title}),E.jsx(Kw,{className:"text-left",children:d.modal.description})]}),E.jsx("div",{className:"p-6 space-y-4",children:S.map(M=>{const j=y[M.id];return E.jsxs("div",{className:"flex justify-between items-start p-4 space-x-4 rounded-lg border bg-card",children:[E.jsx("div",{className:"flex flex-1 items-start space-x-3",children:E.jsxs("div",{className:"flex-1 space-y-1",children:[E.jsxs("div",{className:"flex gap-2 items-center",children:[E.jsx("h4",{className:"text-sm font-medium",children:M.title}),M.required&&E.jsx("span",{className:"text-xs bg-primary/10 text-primary px-2 py-0.5 rounded-full font-medium",children:"Required"})]}),E.jsx("p",{className:"text-xs leading-relaxed text-muted-foreground",children:M.description})]})}),E.jsx("div",{className:"flex items-center",children:E.jsx(ex,{checked:j,onCheckedChange:$=>b(M.id,$),disabled:M.required,"aria-label":`${M.title} ${M.required?"(required)":""}`})})]},M.id)})}),E.jsxs(Hw,{className:"inline-block p-6 space-y-4 border-t bg-muted/30",children:[E.jsxs("div",{className:"flex flex-col gap-3 justify-between sm:flex-row",children:[E.jsx(Wt,{onClick:T,className:"flex-1 sm:flex-none",children:d.modal.save}),E.jsxs("div",{className:"flex gap-2 items-center",children:[E.jsx(Wt,{onClick:A,variant:"outline",className:"flex-1 sm:flex-none",children:d.modal.acceptAll}),E.jsx(Wt,{onClick:I,variant:"outline",className:"flex-1 sm:flex-none",children:d.modal.rejectAll})]})]}),(r||i)&&E.jsx("div",{className:"pt-4 border-t",children:E.jsxs("p",{className:"text-xs text-center text-muted-foreground",children:["For more information, please read our"," ",r&&E.jsxs(E.Fragment,{children:[E.jsx("a",{href:r,className:"font-medium text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",children:d.footer.privacyPolicy||"Privacy Policy"}),i&&E.jsxs("span",{children:[" ","and"," "]})]}),i&&E.jsx("a",{href:i,className:"font-medium text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})]})})]})]})})};Gf.displayName="CookiePreferencesDialog";const NP=h0("transition-all duration-200",{variants:{variant:{floating:"shadow-lg hover:shadow-xl z-40",inline:""},position:{"bottom-left":"fixed bottom-4 left-4","bottom-right":"fixed bottom-4 right-4","top-left":"fixed top-4 left-4","top-right":"fixed top-4 right-4"},size:{sm:"",md:"",lg:""}},compoundVariants:[{variant:"floating",size:"sm",className:"h-10 w-10 rounded-full p-0"},{variant:"floating",size:"md",className:"h-12 w-12 rounded-full p-0"},{variant:"floating",size:"lg",className:"h-14 w-14 rounded-full p-0"},{variant:"inline",size:"sm",className:"h-8 px-3 text-xs"},{variant:"inline",size:"md",className:"h-10 px-4 py-2"},{variant:"inline",size:"lg",className:"h-11 px-8 py-2"}],defaultVariants:{variant:"floating",position:"bottom-left",size:"md"}}),tx=({variant:e="floating",position:t="bottom-left",size:r="md",className:i,privacyPolicyUrl:a,showLabel:l=!1})=>{const u=P0(),{consentState:d,isConsentRequired:f}=Ul(),[h,m]=k.useState(!1);if(!k.useMemo(()=>d!=null&&d.hasUserInteracted?u==="dev"?!0:f:!1,[d==null?void 0:d.hasUserInteracted,u,f]))return null;const w=e==="floating",v=w?g0:sE,C=E.jsxs(E.Fragment,{children:[E.jsx(v,{className:Qe("transition-transform duration-200 hover:scale-110",w?"w-5 h-5":"w-4 h-4",!w&&l&&"mr-2")}),!w&&l&&E.jsx("span",{className:"font-medium",children:"Cookie Settings"})]}),S=E.jsx(Wt,{onClick:()=>m(!0),variant:w?"default":"outline",className:Qe(NP({variant:e,position:w?t:void 0,size:r}),i),"aria-label":"Cookie Settings",children:C});return E.jsxs(E.Fragment,{children:[w?E.jsxs(mA,{children:[E.jsx(gA,{asChild:!0,children:S}),E.jsx(dw,{side:t!=null&&t.includes("top")?"bottom":"top",align:t!=null&&t.includes("left")?"start":"end",children:E.jsx("p",{children:"Cookie Settings"})})]}):S,E.jsx(Gf,{open:h,onOpenChange:m,privacyPolicyUrl:a})]})};tx.displayName="CookiePreferencesButton";const ps=["cdn-dev.getfirebuzz.com","cdn.getfirebuzz.com"],Kf=e=>{if(e.includes("/cdn-cgi/image/"))return console.warn(`Image src already contains cdn-cgi/image prefix, using as-is: ${e}`),{path:e,canTransform:!1,cdnHost:ps[0]};if(/^https?:\/\//.test(e))try{const r=new URL(e),i=ps.find(a=>r.hostname===a);return i?{path:`${r.pathname.startsWith("/")?r.pathname.slice(1):r.pathname}${r.search}${r.hash}`,canTransform:!0,cdnHost:i}:(console.warn(`External image URL cannot be transformed via CDN: ${r.hostname}`),{path:e,canTransform:!1,cdnHost:ps[0]})}catch(r){return console.warn(`Failed to parse image URL: ${e}`,r),{path:e,canTransform:!1,cdnHost:ps[0]}}return{path:e.startsWith("/")?e.slice(1):e,canTransform:!0,cdnHost:ps[0]}},MP=({src:e,width:t,quality:r=80})=>{const{path:i,canTransform:a,cdnHost:l}=Kf(e);if(!a)return i;const u=[];t&&u.push(`width=${t}`),u.push(`quality=${r}`),u.push("format=auto");const d=u.join(",");return`https://${l}/cdn-cgi/image/${d}/${i}`},DP=({src:e,width:t,quality:r=10,blur:i=50})=>{const{path:a,canTransform:l,cdnHost:u}=Kf(e);if(!l)return a;const d=[];t&&d.push(`width=${t}`),d.push(`quality=${r}`),i&&d.push(`blur=${i}`),d.push("format=auto");const f=d.join(",");return`https://${u}/cdn-cgi/image/${f}/${a}`},Yf=k.forwardRef(({src:e,alt:t,width:r,height:i,fill:a,loader:l=MP,quality:u=80,priority:d,loading:f="lazy",placeholder:h,blurDataURL:m,unoptimized:y,onLoadingComplete:w,sizes:v="100vw",className:C,style:S,objectFit:b,objectPosition:T,...A},I)=>{const[M,j]=k.useState(!1),[$,B]=k.useState(!1),z=k.useRef(),Z=typeof e=="object"?e.src:e,re=Z.toLowerCase().endsWith(".svg"),ke=!y&&!re;k.useEffect(()=>(z.current=setTimeout(()=>{!M&&!$&&(console.warn(`Image load timeout, forcing visibility: ${Z}`),j(!0))},3e3),()=>{z.current&&clearTimeout(z.current)}),[Z,M,$]);const me=typeof r=="string"?Number.parseInt(r,10):r,we=typeof i=="string"?Number.parseInt(i,10):i;let de={...S};a?de={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:b||"cover",objectPosition:T||"center",...de}:(b&&(de={...de,objectFit:b}),T&&(de={...de,objectPosition:T}));const be=typeof u=="string"?Number.parseInt(u,10):u,ce=a&&!me?1920:me||800,{canTransform:Q}=Kf(Z),U=!y&&ce&&Q?[.25,.5,.75,1,2].map(ge=>{const ee=Math.round(ce*ge);return ee<40||ee>ce*4?"":`${l({src:Z,width:ee,quality:be})} ${ee}w`}).filter(Boolean).join(", "):void 0,W=h==="blur"&&(m||Z)&&Q&&!re,N=m||(W?Z:void 0),V=W&&N?DP({src:N,width:Number(ce),quality:10,blur:50}):void 0,X=ge=>{if(z.current&&clearTimeout(z.current),j(!0),B(!1),w){const ee=ge.currentTarget;w({naturalWidth:ee.naturalWidth,naturalHeight:ee.naturalHeight})}},J=ge=>{console.error(`Failed to load image: ${Z}`,ge),B(!0),j(!0)},fe={src:ke?l({src:Z,width:ce,quality:be}):Z,srcSet:ke?U:void 0,sizes:ke?v:void 0,width:me,height:we,loading:d?"eager":f,decoding:re?"sync":"async",style:de};return E.jsxs("div",{className:Qe("relative inline-block",a&&"w-full h-full",C),style:a?{position:"relative"}:void 0,children:[W&&E.jsx("img",{"aria-hidden":"true",src:V,alt:"",className:"absolute inset-0 object-cover w-full h-full transition-opacity duration-500 ease-in-out",style:{opacity:M?0:1,transitionDelay:"500ms"}}),E.jsx("img",{...A,...fe,ref:I,alt:t??"No alt text provided",onLoad:X,onError:J,className:Qe("transition-opacity",M?"opacity-100":"opacity-0")})]})});Yf.displayName="Image";function nx({width:e=70,height:t=20}){return E.jsx(Yf,{src:"https://cdn-dev.getfirebuzz.com/jd7bnpccc10yt3afv5bwmfr35n7kvqvn/j571fy37957eq6j9xfb1fjzjxh7m7k95/3696bedf-621a-47e0-9e12-7d4dec986d34",alt:"Logo",width:e,height:t})}function rx({height:e=20,width:t=70}){return E.jsx(Yf,{src:"https://cdn-dev.getfirebuzz.com/jd7bnpccc10yt3afv5bwmfr35n7kvqvn/j571fy37957eq6j9xfb1fjzjxh7m7k95/3696bedf-621a-47e0-9e12-7d4dec986d34",alt:"Logo",width:t,height:e})}function jP(){const e=[{name:"Twitter",href:"#",icon:E.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:E.jsx("path",{d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})})},{name:"LinkedIn",href:"#",icon:E.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:E.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})},{name:"GitHub",href:"#",icon:E.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:E.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}];return E.jsx("footer",{className:"border-t bg-muted/50",children:E.jsxs("div",{className:"container px-4 py-16 mx-auto",children:[E.jsx("div",{className:"grid gap-8 md:grid-cols-2 lg:grid-cols-6",children:E.jsxs("div",{className:"lg:col-span-2",children:[E.jsxs("div",{className:"mb-4",children:[E.jsx("div",{className:"block dark:hidden",children:E.jsx(rx,{})}),E.jsx("div",{className:"hidden dark:block",children:E.jsx(nx,{})})]}),E.jsx("p",{className:"mb-6 text-muted-foreground",children:"A catchy tagline or short company description will be placed here."}),E.jsx("div",{className:"flex space-x-4",children:e.map(t=>E.jsx("a",{href:t.href,className:"transition-colors text-muted-foreground hover:text-primary","aria-label":t.name,children:t.icon},t.name))})]})}),E.jsx("div",{className:"pt-8 mt-16 border-t",children:E.jsxs("div",{className:"flex flex-col justify-between items-center md:flex-row",children:[E.jsxs("p",{className:"text-sm text-muted-foreground",children:["© ",new Date().getFullYear()," CompanyName. All rights reserved."]}),E.jsxs("div",{className:"flex mt-4 space-x-6 md:mt-0",children:[E.jsx("a",{href:"#",className:"text-sm transition-colors text-muted-foreground hover:text-primary",children:"Privacy Policy"}),E.jsx("a",{href:"#",className:"text-sm transition-colors text-muted-foreground hover:text-primary",children:"Terms of Service"}),E.jsx("a",{href:"#",className:"text-sm transition-colors text-muted-foreground hover:text-primary",children:"Cookie Policy"})]})]})})]})})}const ox=k.createContext({});function OP(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const qf=typeof window<"u",LP=qf?k.useLayoutEffect:k.useEffect,Xf=k.createContext(null);function Zf(e,t){e.indexOf(t)===-1&&e.push(t)}function Qf(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const or=(e,t,r)=>r>t?t:r{};const ir={},ix=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function sx(e){return typeof e=="object"&&e!==null}const ax=e=>/^0[^.\s]+$/u.test(e);function ep(e){let t;return()=>(t===void 0&&(t=e()),t)}const an=e=>e,zP=(e,t)=>r=>t(e(r)),js=(...e)=>e.reduce(zP),Es=(e,t,r)=>{const i=t-e;return i===0?1:(r-e)/i};class tp{constructor(){this.subscriptions=[]}add(t){return Zf(this.subscriptions,t),()=>Qf(this.subscriptions,t)}notify(t,r,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,i);else for(let l=0;le*1e3,Vn=e=>e/1e3;function lx(e,t){return t?e*(1e3/t):0}const ux=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,FP=1e-7,VP=12;function BP(e,t,r,i,a){let l,u,d=0;do u=t+(r-t)/2,l=ux(u,i,a)-e,l>0?r=u:t=u;while(Math.abs(l)>FP&&++dBP(l,0,1,e,r);return l=>l===0||l===1?l:ux(a(l),t,i)}const cx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dx=e=>t=>1-e(1-t),fx=Os(.33,1.53,.69,.99),np=dx(fx),px=cx(np),hx=e=>(e*=2)<1?.5*np(e):.5*(2-Math.pow(2,-10*(e-1))),rp=e=>1-Math.sin(Math.acos(e)),mx=dx(rp),gx=cx(rp),$P=Os(.42,0,1,1),UP=Os(0,0,.58,1),vx=Os(.42,0,.58,1),WP=e=>Array.isArray(e)&&typeof e[0]!="number",yx=e=>Array.isArray(e)&&typeof e[0]=="number",HP={linear:an,easeIn:$P,easeInOut:vx,easeOut:UP,circIn:rp,circInOut:gx,circOut:mx,backIn:np,backInOut:px,backOut:fx,anticipate:hx},GP=e=>typeof e=="string",xv=e=>{if(yx(e)){Jf(e.length===4);const[t,r,i,a]=e;return Os(t,r,i,a)}else if(GP(e))return HP[e];return e},ul=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function KP(e,t){let r=new Set,i=new Set,a=!1,l=!1;const u=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function f(m){u.has(m)&&(h.schedule(m),e()),m(d)}const h={schedule:(m,y=!1,w=!1)=>{const C=w&&a?r:i;return y&&u.add(m),C.has(m)||C.add(m),m},cancel:m=>{i.delete(m),u.delete(m)},process:m=>{if(d=m,a){l=!0;return}a=!0,[r,i]=[i,r],r.forEach(f),r.clear(),a=!1,l&&(l=!1,h.process(m))}};return h}const YP=40;function wx(e,t){let r=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>r=!0,u=ul.reduce((I,M)=>(I[M]=KP(l),I),{}),{setup:d,read:f,resolveKeyframes:h,preUpdate:m,update:y,preRender:w,render:v,postRender:C}=u,S=()=>{const I=ir.useManualTiming?a.timestamp:performance.now();r=!1,ir.useManualTiming||(a.delta=i?1e3/60:Math.max(Math.min(I-a.timestamp,YP),1)),a.timestamp=I,a.isProcessing=!0,d.process(a),f.process(a),h.process(a),m.process(a),y.process(a),w.process(a),v.process(a),C.process(a),a.isProcessing=!1,r&&t&&(i=!1,e(S))},b=()=>{r=!0,i=!0,a.isProcessing||e(S)};return{schedule:ul.reduce((I,M)=>{const j=u[M];return I[M]=($,B=!1,z=!1)=>(r||b(),j.schedule($,B,z)),I},{}),cancel:I=>{for(let M=0;M(Sl===void 0&&Ot.set(ut.isProcessing||ir.useManualTiming?ut.timestamp:performance.now()),Sl),set:e=>{Sl=e,queueMicrotask(qP)}},xx=e=>t=>typeof t=="string"&&t.startsWith(e),op=xx("--"),XP=xx("var(--"),ip=e=>XP(e)?ZP.test(e.split("/*")[0].trim()):!1,ZP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ts={...wi,transform:e=>or(0,1,e)},cl={...wi,default:1},vs=e=>Math.round(e*1e5)/1e5,sp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function QP(e){return e==null}const JP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ap=(e,t)=>r=>!!(typeof r=="string"&&JP.test(r)&&r.startsWith(e)||t&&!QP(r)&&Object.prototype.hasOwnProperty.call(r,t)),Sx=(e,t,r)=>i=>{if(typeof i!="string")return i;const[a,l,u,d]=i.match(sp);return{[e]:parseFloat(a),[t]:parseFloat(l),[r]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},e2=e=>or(0,255,e),vd={...wi,transform:e=>Math.round(e2(e))},oo={test:ap("rgb","red"),parse:Sx("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+vd.transform(e)+", "+vd.transform(t)+", "+vd.transform(r)+", "+vs(Ts.transform(i))+")"};function t2(e){let t="",r="",i="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),i=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),i=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,i+=i,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const Zd={test:ap("#"),parse:t2,transform:oo.transform},Ls=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Rr=Ls("deg"),Bn=Ls("%"),ye=Ls("px"),n2=Ls("vh"),r2=Ls("vw"),Sv={...Bn,parse:e=>Bn.parse(e)/100,transform:e=>Bn.transform(e*100)},Ko={test:ap("hsl","hue"),parse:Sx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+Bn.transform(vs(t))+", "+Bn.transform(vs(r))+", "+vs(Ts.transform(i))+")"},Ze={test:e=>oo.test(e)||Zd.test(e)||Ko.test(e),parse:e=>oo.test(e)?oo.parse(e):Ko.test(e)?Ko.parse(e):Zd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?oo.transform(e):Ko.transform(e),getAnimatableNone:e=>{const t=Ze.parse(e);return t.alpha=0,Ze.transform(t)}},o2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function i2(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(sp))==null?void 0:t.length)||0)+(((r=e.match(o2))==null?void 0:r.length)||0)>0}const kx="number",bx="color",s2="var",a2="var(",kv="${}",l2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _s(e){const t=e.toString(),r=[],i={color:[],number:[],var:[]},a=[];let l=0;const d=t.replace(l2,f=>(Ze.test(f)?(i.color.push(l),a.push(bx),r.push(Ze.parse(f))):f.startsWith(a2)?(i.var.push(l),a.push(s2),r.push(f)):(i.number.push(l),a.push(kx),r.push(parseFloat(f))),++l,kv)).split(kv);return{values:r,split:d,indexes:i,types:a}}function Cx(e){return _s(e).values}function Ex(e){const{split:t,types:r}=_s(e),i=t.length;return a=>{let l="";for(let u=0;utypeof e=="number"?0:Ze.test(e)?Ze.getAnimatableNone(e):e;function c2(e){const t=Cx(e);return Ex(e)(t.map(u2))}const Or={test:i2,parse:Cx,createTransformer:Ex,getAnimatableNone:c2};function yd(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function d2({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,t/=100,r/=100;let a=0,l=0,u=0;if(!t)a=l=u=r;else{const d=r<.5?r*(1+t):r+t-r*t,f=2*r-d;a=yd(f,d,e+1/3),l=yd(f,d,e),u=yd(f,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function Ol(e,t){return r=>r>0?t:e}const Ue=(e,t,r)=>e+(t-e)*r,wd=(e,t,r)=>{const i=e*e,a=r*(t*t-i)+i;return a<0?0:Math.sqrt(a)},f2=[Zd,oo,Ko],p2=e=>f2.find(t=>t.test(e));function bv(e){const t=p2(e);if(!t)return!1;let r=t.parse(e);return t===Ko&&(r=d2(r)),r}const Cv=(e,t)=>{const r=bv(e),i=bv(t);if(!r||!i)return Ol(e,t);const a={...r};return l=>(a.red=wd(r.red,i.red,l),a.green=wd(r.green,i.green,l),a.blue=wd(r.blue,i.blue,l),a.alpha=Ue(r.alpha,i.alpha,l),oo.transform(a))},Qd=new Set(["none","hidden"]);function h2(e,t){return Qd.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function m2(e,t){return r=>Ue(e,t,r)}function lp(e){return typeof e=="number"?m2:typeof e=="string"?ip(e)?Ol:Ze.test(e)?Cv:y2:Array.isArray(e)?Tx:typeof e=="object"?Ze.test(e)?Cv:g2:Ol}function Tx(e,t){const r=[...e],i=r.length,a=e.map((l,u)=>lp(l)(l,t[u]));return l=>{for(let u=0;u{for(const l in i)r[l]=i[l](a);return r}}function v2(e,t){const r=[],i={color:0,var:0,number:0};for(let a=0;a{const r=Or.createTransformer(t),i=_s(e),a=_s(t);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?Qd.has(e)&&!a.values.length||Qd.has(t)&&!i.values.length?h2(e,t):js(Tx(v2(i,a),a.values),r):Ol(e,t)};function _x(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Ue(e,t,r):lp(e)(e,t)}const w2=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>Ve.update(t,r),stop:()=>jr(t),now:()=>ut.isProcessing?ut.timestamp:Ot.now()}},Ax=(e,t,r=10)=>{let i="";const a=Math.max(Math.round(t/r),2);for(let l=0;l=Ll?1/0:t}function x2(e,t=100,r){const i=r({...e,keyframes:[0,t]}),a=Math.min(up(i),Ll);return{type:"keyframes",ease:l=>i.next(a*l).value/t,duration:Vn(a)}}const S2=5;function Px(e,t,r){const i=Math.max(t-S2,0);return lx(r-e(i),t-i)}const He={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},xd=.001;function k2({duration:e=He.duration,bounce:t=He.bounce,velocity:r=He.velocity,mass:i=He.mass}){let a,l,u=1-t;u=or(He.minDamping,He.maxDamping,u),e=or(He.minDuration,He.maxDuration,Vn(e)),u<1?(a=h=>{const m=h*u,y=m*e,w=m-r,v=Jd(h,u),C=Math.exp(-y);return xd-w/v*C},l=h=>{const y=h*u*e,w=y*r+r,v=Math.pow(u,2)*Math.pow(h,2)*e,C=Math.exp(-y),S=Jd(Math.pow(h,2),u);return(-a(h)+xd>0?-1:1)*((w-v)*C)/S}):(a=h=>{const m=Math.exp(-h*e),y=(h-r)*e+1;return-xd+m*y},l=h=>{const m=Math.exp(-h*e),y=(r-h)*(e*e);return m*y});const d=5/e,f=C2(a,l,d);if(e=Fn(e),isNaN(f))return{stiffness:He.stiffness,damping:He.damping,duration:e};{const h=Math.pow(f,2)*i;return{stiffness:h,damping:u*2*Math.sqrt(i*h),duration:e}}}const b2=12;function C2(e,t,r){let i=r;for(let a=1;ae[r]!==void 0)}function _2(e){let t={velocity:He.velocity,stiffness:He.stiffness,damping:He.damping,mass:He.mass,isResolvedFromDuration:!1,...e};if(!Ev(e,T2)&&Ev(e,E2))if(e.visualDuration){const r=e.visualDuration,i=2*Math.PI/(r*1.2),a=i*i,l=2*or(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:He.mass,stiffness:a,damping:l}}else{const r=k2(e);t={...t,...r,mass:He.mass},t.isResolvedFromDuration=!0}return t}function zl(e=He.visualDuration,t=He.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:a}=r;const l=r.keyframes[0],u=r.keyframes[r.keyframes.length-1],d={done:!1,value:l},{stiffness:f,damping:h,mass:m,duration:y,velocity:w,isResolvedFromDuration:v}=_2({...r,velocity:-Vn(r.velocity||0)}),C=w||0,S=h/(2*Math.sqrt(f*m)),b=u-l,T=Vn(Math.sqrt(f/m)),A=Math.abs(b)<5;i||(i=A?He.restSpeed.granular:He.restSpeed.default),a||(a=A?He.restDelta.granular:He.restDelta.default);let I;if(S<1){const j=Jd(T,S);I=$=>{const B=Math.exp(-S*T*$);return u-B*((C+S*T*b)/j*Math.sin(j*$)+b*Math.cos(j*$))}}else if(S===1)I=j=>u-Math.exp(-T*j)*(b+(C+T*b)*j);else{const j=T*Math.sqrt(S*S-1);I=$=>{const B=Math.exp(-S*T*$),z=Math.min(j*$,300);return u-B*((C+S*T*b)*Math.sinh(z)+j*b*Math.cosh(z))/j}}const M={calculatedDuration:v&&y||null,next:j=>{const $=I(j);if(v)d.done=j>=y;else{let B=j===0?C:0;S<1&&(B=j===0?Fn(C):Px(I,j,$));const z=Math.abs(B)<=i,Z=Math.abs(u-$)<=a;d.done=z&&Z}return d.value=d.done?u:$,d},toString:()=>{const j=Math.min(up(M),Ll),$=Ax(B=>M.next(j*B).value,j,30);return j+"ms "+$},toTransition:()=>{}};return M}zl.applyToOptions=e=>{const t=x2(e,100,zl);return e.ease=t.ease,e.duration=Fn(t.duration),e.type="keyframes",e};function ef({keyframes:e,velocity:t=0,power:r=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:d,max:f,restDelta:h=.5,restSpeed:m}){const y=e[0],w={done:!1,value:y},v=z=>d!==void 0&&zf,C=z=>d===void 0?f:f===void 0||Math.abs(d-z)-S*Math.exp(-z/i),I=z=>T+A(z),M=z=>{const Z=A(z),re=I(z);w.done=Math.abs(Z)<=h,w.value=w.done?T:re};let j,$;const B=z=>{v(w.value)&&(j=z,$=zl({keyframes:[w.value,C(w.value)],velocity:Px(I,z,w.value),damping:a,stiffness:l,restDelta:h,restSpeed:m}))};return B(0),{calculatedDuration:null,next:z=>{let Z=!1;return!$&&j===void 0&&(Z=!0,M(z),B(z)),j!==void 0&&z>=j?$.next(z-j):(!Z&&M(z),w)}}}function A2(e,t,r){const i=[],a=r||ir.mix||_x,l=e.length-1;for(let u=0;ut[0];if(l===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=A2(t,i,a),f=d.length,h=m=>{if(u&&m1)for(;yh(or(e[0],e[l-1],m)):h}function I2(e,t){const r=e[e.length-1];for(let i=1;i<=t;i++){const a=Es(0,t,i);e.push(Ue(r,1,a))}}function R2(e){const t=[0];return I2(t,e.length-1),t}function N2(e,t){return e.map(r=>r*t)}function M2(e,t){return e.map(()=>t||vx).splice(0,e.length-1)}function ys({duration:e=300,keyframes:t,times:r,ease:i="easeInOut"}){const a=WP(i)?i.map(xv):xv(i),l={done:!1,value:t[0]},u=N2(r&&r.length===t.length?r:R2(t),e),d=P2(u,t,{ease:Array.isArray(a)?a:M2(t,a)});return{calculatedDuration:e,next:f=>(l.value=d(f),l.done=f>=e,l)}}const D2=e=>e!==null;function cp(e,{repeat:t,repeatType:r="loop"},i,a=1){const l=e.filter(D2),d=a<0||t&&r!=="loop"&&t%2===1?0:l.length-1;return!d||i===void 0?l[d]:i}const j2={decay:ef,inertia:ef,tween:ys,keyframes:ys,spring:zl};function Ix(e){typeof e.type=="string"&&(e.type=j2[e.type])}class dp{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const O2=e=>e/100;class fp extends dp{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var i,a;const{motionValue:r}=this.options;r&&r.updatedAt!==Ot.now()&&this.tick(Ot.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(i=this.options).onStop)==null||a.call(i))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ix(t);const{type:r=ys,repeat:i=0,repeatDelay:a=0,repeatType:l,velocity:u=0}=t;let{keyframes:d}=t;const f=r||ys;f!==ys&&typeof d[0]!="number"&&(this.mixKeyframes=js(O2,_x(d[0],d[1])),d=[0,100]);const h=f({...t,keyframes:d});l==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...d].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=up(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(i+1)-a,this.generator=h}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:i,totalDuration:a,mixKeyframes:l,mirroredGenerator:u,resolvedDuration:d,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:h=0,keyframes:m,repeat:y,repeatType:w,repeatDelay:v,type:C,onUpdate:S,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const T=this.currentTime-h*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?T<0:T>a;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let I=this.currentTime,M=i;if(y){const z=Math.min(this.currentTime,a)/d;let Z=Math.floor(z),re=z%1;!re&&z>=1&&(re=1),re===1&&Z--,Z=Math.min(Z,y+1),!!(Z%2)&&(w==="reverse"?(re=1-re,v&&(re-=v/d)):w==="mirror"&&(M=u)),I=or(0,1,re)*d}const j=A?{done:!1,value:m[0]}:M.next(I);l&&(j.value=l(j.value));let{done:$}=j;!A&&f!==null&&($=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return B&&C!==ef&&(j.value=cp(m,this.options,b,this.speed)),S&&S(j.value),B&&this.finish(),j}then(t,r){return this.finished.then(t,r)}get duration(){return Vn(this.calculatedDuration)}get time(){return Vn(this.currentTime)}set time(t){var r;t=Fn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(r=this.driver)==null||r.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ot.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Vn(this.currentTime))}play(){var a,l;if(this.isStopped)return;const{driver:t=w2,startTime:r}=this.options;this.driver||(this.driver=t(u=>this.tick(u))),(l=(a=this.options).onPlay)==null||l.call(a);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=r??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ot.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(t=this.options).onComplete)==null||r.call(t)}cancel(){var t,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(t=this.options).onCancel)==null||r.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),t.observe(this)}}function L2(e){for(let t=1;te*180/Math.PI,tf=e=>{const t=io(Math.atan2(e[1],e[0]));return nf(t)},z2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:tf,rotateZ:tf,skewX:e=>io(Math.atan(e[1])),skewY:e=>io(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},nf=e=>(e=e%360,e<0&&(e+=360),e),Tv=tf,_v=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Av=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),F2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_v,scaleY:Av,scale:e=>(_v(e)+Av(e))/2,rotateX:e=>nf(io(Math.atan2(e[6],e[5]))),rotateY:e=>nf(io(Math.atan2(-e[2],e[0]))),rotateZ:Tv,rotate:Tv,skewX:e=>io(Math.atan(e[4])),skewY:e=>io(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function rf(e){return e.includes("scale")?1:0}function of(e,t){if(!e||e==="none")return rf(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,a;if(r)i=F2,a=r;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=z2,a=d}if(!a)return rf(t);const l=i[t],u=a[1].split(",").map(B2);return typeof l=="function"?l(u):u[l]}const V2=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return of(r,t)};function B2(e){return parseFloat(e.trim())}const xi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Si=new Set(xi),Pv=e=>e===wi||e===ye,$2=new Set(["x","y","z"]),U2=xi.filter(e=>!$2.has(e));function W2(e){const t=[];return U2.forEach(r=>{const i=e.getValue(r);i!==void 0&&(t.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),t}const so={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>of(t,"x"),y:(e,{transform:t})=>of(t,"y")};so.translateX=so.x;so.translateY=so.y;const ao=new Set;let sf=!1,af=!1,lf=!1;function Rx(){if(af){const e=Array.from(ao).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),r=new Map;t.forEach(i=>{const a=W2(i);a.length&&(r.set(i,a),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const a=r.get(i);a&&a.forEach(([l,u])=>{var d;(d=i.getValue(l))==null||d.set(u)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}af=!1,sf=!1,ao.forEach(e=>e.complete(lf)),ao.clear()}function Nx(){ao.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(af=!0)})}function H2(){lf=!0,Nx(),Rx(),lf=!1}class pp{constructor(t,r,i,a,l,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=i,this.motionValue=a,this.element=l,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(ao.add(this),sf||(sf=!0,Ve.read(Nx),Ve.resolveKeyframes(Rx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:i,motionValue:a}=this;if(t[0]===null){const l=a==null?void 0:a.get(),u=t[t.length-1];if(l!==void 0)t[0]=l;else if(i&&r){const d=i.readValue(r,u);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=u),a&&l===void 0&&a.set(t[0])}L2(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ao.delete(this)}cancel(){this.state==="scheduled"&&(ao.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const G2=e=>e.startsWith("--");function K2(e,t,r){G2(t)?e.style.setProperty(t,r):e.style[t]=r}const Y2=ep(()=>window.ScrollTimeline!==void 0),q2={};function X2(e,t){const r=ep(e);return()=>q2[t]??r()}const Mx=X2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ms=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,Iv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ms([0,.65,.55,1]),circOut:ms([.55,0,1,.45]),backIn:ms([.31,.01,.66,-.59]),backOut:ms([.33,1.53,.69,.99])};function Dx(e,t){if(e)return typeof e=="function"?Mx()?Ax(e,t):"ease-out":yx(e)?ms(e):Array.isArray(e)?e.map(r=>Dx(r,t)||Iv.easeOut):Iv[e]}function Z2(e,t,r,{delay:i=0,duration:a=300,repeat:l=0,repeatType:u="loop",ease:d="easeOut",times:f}={},h=void 0){const m={[t]:r};f&&(m.offset=f);const y=Dx(d,a);Array.isArray(y)&&(m.easing=y);const w={delay:i,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"};return h&&(w.pseudoElement=h),e.animate(m,w)}function jx(e){return typeof e=="function"&&"applyToOptions"in e}function Q2({type:e,...t}){return jx(e)&&Mx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class J2 extends dp{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:r,name:i,keyframes:a,pseudoElement:l,allowFlatten:u=!1,finalKeyframe:d,onComplete:f}=t;this.isPseudoElement=!!l,this.allowFlatten=u,this.options=t,Jf(typeof t.type!="string");const h=Q2(t);this.animation=Z2(r,i,a,h,l),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const m=cp(a,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(m):K2(r,i,m),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,r;(r=(t=this.animation).finish)==null||r.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,r;this.isPseudoElement||(r=(t=this.animation).commitStyles)==null||r.call(t)}get duration(){var r,i;const t=((i=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:i.call(r).duration)||0;return Vn(Number(t))}get time(){return Vn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Fn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Y2()?(this.animation.timeline=t,an):r(this)}}const Ox={anticipate:hx,backInOut:px,circInOut:gx};function eI(e){return e in Ox}function tI(e){typeof e.ease=="string"&&eI(e.ease)&&(e.ease=Ox[e.ease])}const Rv=10;class nI extends J2{constructor(t){tI(t),Ix(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:i,onComplete:a,element:l,...u}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const d=new fp({...u,autoplay:!1}),f=Fn(this.finishedTime??this.time);r.setWithVelocity(d.sample(f-Rv).value,d.sample(f).value,Rv),d.stop()}}const Nv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Or.test(e)||e==="0")&&!e.startsWith("url("));function rI(e){const t=e[0];if(e.length===1)return!0;for(let r=0;rObject.hasOwnProperty.call(Element.prototype,"animate"));function aI(e){var m;const{motionValue:t,name:r,repeatDelay:i,repeatType:a,damping:l,type:u}=e;if(!(((m=t==null?void 0:t.owner)==null?void 0:m.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=t.owner.getProps();return sI()&&r&&iI.has(r)&&(r!=="transform"||!h)&&!f&&!i&&a!=="mirror"&&l!==0&&u!=="inertia"}const lI=40;class uI extends dp{constructor({autoplay:t=!0,delay:r=0,type:i="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",keyframes:d,name:f,motionValue:h,element:m,...y}){var C;super(),this.stop=()=>{var S,b;this._animation&&(this._animation.stop(),(S=this.stopTimeline)==null||S.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=Ot.now();const w={autoplay:t,delay:r,type:i,repeat:a,repeatDelay:l,repeatType:u,name:f,motionValue:h,element:m,...y},v=(m==null?void 0:m.KeyframeResolver)||pp;this.keyframeResolver=new v(d,(S,b,T)=>this.onKeyframesResolved(S,b,w,!T),f,h,m),(C=this.keyframeResolver)==null||C.scheduleResolve()}onKeyframesResolved(t,r,i,a){this.keyframeResolver=void 0;const{name:l,type:u,velocity:d,delay:f,isHandoff:h,onUpdate:m}=i;this.resolvedAt=Ot.now(),oI(t,l,u,d)||((ir.instantAnimations||!f)&&(m==null||m(cp(t,i,r))),t[0]=t[t.length-1],uf(i),i.repeat=0);const w={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>lI?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...i,keyframes:t},v=!h&&aI(w)?new nI({...w,element:w.motionValue.owner.current}):new fp(w);v.finished.then(()=>this.notifyFinished()).catch(an),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),H2()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const cI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dI(e){const t=cI.exec(e);if(!t)return[,];const[,r,i,a]=t;return[`--${r??i}`,a]}function Lx(e,t,r=1){const[i,a]=dI(e);if(!i)return;const l=window.getComputedStyle(t).getPropertyValue(i);if(l){const u=l.trim();return ix(u)?parseFloat(u):u}return ip(a)?Lx(a,t,r+1):a}function hp(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const zx=new Set(["width","height","top","left","right","bottom",...xi]),fI={test:e=>e==="auto",parse:e=>e},Fx=e=>t=>t.test(e),Vx=[wi,ye,Bn,Rr,r2,n2,fI],Mv=e=>Vx.find(Fx(e));function pI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ax(e):!0}const hI=new Set(["brightness","contrast","saturate","opacity"]);function mI(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=r.match(sp)||[];if(!i)return e;const a=r.replace(i,"");let l=hI.has(t)?1:0;return i!==r&&(l*=100),t+"("+l+a+")"}const gI=/\b([a-z-]*)\(.*?\)/gu,cf={...Or,getAnimatableNone:e=>{const t=e.match(gI);return t?t.map(mI).join(" "):e}},Dv={...wi,transform:Math.round},vI={rotate:Rr,rotateX:Rr,rotateY:Rr,rotateZ:Rr,scale:cl,scaleX:cl,scaleY:cl,scaleZ:cl,skew:Rr,skewX:Rr,skewY:Rr,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:Ts,originX:Sv,originY:Sv,originZ:ye},mp={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,radius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,backgroundPositionX:ye,backgroundPositionY:ye,...vI,zIndex:Dv,fillOpacity:Ts,strokeOpacity:Ts,numOctaves:Dv},yI={...mp,color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:cf,WebkitFilter:cf},Bx=e=>yI[e];function $x(e,t){let r=Bx(e);return r!==cf&&(r=Or),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const wI=new Set(["auto","none","0"]);function xI(e,t,r){let i=0,a;for(;i{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function kI(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const a=(r==null?void 0:r[e])??i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const Ux=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function bI(e){return sx(e)&&"offsetHeight"in e}const jv=30,CI=e=>!isNaN(parseFloat(e));class EI{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var l;const a=Ot.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((l=this.events.change)==null||l.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Ot.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CI(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new tp);const i=this.events[t].add(r);return t==="change"?()=>{i(),Ve.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,i){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ot.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jv)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,jv);return lx(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,r;(t=this.dependents)==null||t.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ui(e,t){return new EI(e,t)}const{schedule:gp}=wx(queueMicrotask,!1),yn={x:!1,y:!1};function Wx(){return yn.x||yn.y}function TI(e){return e==="x"||e==="y"?yn[e]?null:(yn[e]=!0,()=>{yn[e]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function Hx(e,t){const r=kI(e),i=new AbortController,a={passive:!0,...t,signal:i.signal};return[r,a,()=>i.abort()]}function Ov(e){return!(e.pointerType==="touch"||Wx())}function _I(e,t,r={}){const[i,a,l]=Hx(e,r),u=d=>{if(!Ov(d))return;const{target:f}=d,h=t(f,d);if(typeof h!="function"||!f)return;const m=y=>{Ov(y)&&(h(y),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,a)};return i.forEach(d=>{d.addEventListener("pointerenter",u,a)}),l}const Gx=(e,t)=>t?e===t?!0:Gx(e,t.parentElement):!1,vp=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,AI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function PI(e){return AI.has(e.tagName)||e.tabIndex!==-1}const kl=new WeakSet;function Lv(e){return t=>{t.key==="Enter"&&e(t)}}function Sd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const II=(e,t)=>{const r=e.currentTarget;if(!r)return;const i=Lv(()=>{if(kl.has(r))return;Sd(r,"down");const a=Lv(()=>{Sd(r,"up")}),l=()=>Sd(r,"cancel");r.addEventListener("keyup",a,t),r.addEventListener("blur",l,t)});r.addEventListener("keydown",i,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),t)};function zv(e){return vp(e)&&!Wx()}function RI(e,t,r={}){const[i,a,l]=Hx(e,r),u=d=>{const f=d.currentTarget;if(!zv(d))return;kl.add(f);const h=t(f,d),m=(v,C)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",w),kl.has(f)&&kl.delete(f),zv(v)&&typeof h=="function"&&h(v,{success:C})},y=v=>{m(v,f===window||f===document||r.useGlobalTarget||Gx(f,v.target))},w=v=>{m(v,!1)};window.addEventListener("pointerup",y,a),window.addEventListener("pointercancel",w,a)};return i.forEach(d=>{(r.useGlobalTarget?window:d).addEventListener("pointerdown",u,a),bI(d)&&(d.addEventListener("focus",h=>II(h,a)),!PI(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),l}function Kx(e){return sx(e)&&"ownerSVGElement"in e}function NI(e){return Kx(e)&&e.tagName==="svg"}const ht=e=>!!(e&&e.getVelocity),MI=[...Vx,Ze,Or],DI=e=>MI.find(Fx(e)),Yx=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function jI(e=!0){const t=k.useContext(Xf);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:i,register:a}=t,l=k.useId();k.useEffect(()=>{if(e)return a(l)},[e]);const u=k.useCallback(()=>e&&i&&i(l),[l,i,e]);return!r&&i?[!1,u]:[!0]}const qx=k.createContext({strict:!1}),Fv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ci={};for(const e in Fv)ci[e]={isEnabled:t=>Fv[e].some(r=>!!t[r])};function OI(e){for(const t in e)ci[t]={...ci[t],...e[t]}}const LI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||LI.has(e)}let Xx=e=>!Fl(e);function zI(e){typeof e=="function"&&(Xx=t=>t.startsWith("on")?!Fl(t):e(t))}try{zI(require("@emotion/is-prop-valid").default)}catch{}function FI(e,t,r){const i={};for(const a in e)a==="values"&&typeof e.values=="object"||(Xx(a)||r===!0&&Fl(a)||!t&&!Fl(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}const tu=k.createContext({});function nu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function As(e){return typeof e=="string"||Array.isArray(e)}const yp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wp=["initial",...yp];function ru(e){return nu(e.animate)||wp.some(t=>As(e[t]))}function Zx(e){return!!(ru(e)||e.variants)}function VI(e,t){if(ru(e)){const{initial:r,animate:i}=e;return{initial:r===!1||As(r)?r:void 0,animate:As(i)?i:void 0}}return e.inherit!==!1?t:{}}function BI(e){const{initial:t,animate:r}=VI(e,k.useContext(tu));return k.useMemo(()=>({initial:t,animate:r}),[Vv(t),Vv(r)])}function Vv(e){return Array.isArray(e)?e.join(" "):e}const Ps={};function $I(e){for(const t in e)Ps[t]=e[t],op(t)&&(Ps[t].isCSSVariable=!0)}function Qx(e,{layout:t,layoutId:r}){return Si.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Ps[e]||e==="opacity")}const UI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WI=xi.length;function HI(e,t,r){let i="",a=!0;for(let l=0;l({style:{},transform:{},transformOrigin:{},vars:{}});function Jx(e,t,r){for(const i in t)!ht(t[i])&&!Qx(i,r)&&(e[i]=t[i])}function GI({transformTemplate:e},t){return k.useMemo(()=>{const r=Sp();return xp(r,t,e),Object.assign({},r.vars,r.style)},[t])}function KI(e,t){const r=e.style||{},i={};return Jx(i,r,e),Object.assign(i,GI(e,t)),i}function YI(e,t){const r={},i=KI(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const qI={offset:"stroke-dashoffset",array:"stroke-dasharray"},XI={offset:"strokeDashoffset",array:"strokeDasharray"};function ZI(e,t,r=1,i=0,a=!0){e.pathLength=1;const l=a?qI:XI;e[l.offset]=ye.transform(-i);const u=ye.transform(t),d=ye.transform(r);e[l.array]=`${u} ${d}`}function e1(e,{attrX:t,attrY:r,attrScale:i,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...d},f,h,m){if(xp(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:w}=e;y.transform&&(w.transform=y.transform,delete y.transform),(w.transform||y.transformOrigin)&&(w.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),w.transform&&(w.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete y.transformBox),t!==void 0&&(y.x=t),r!==void 0&&(y.y=r),i!==void 0&&(y.scale=i),a!==void 0&&ZI(y,a,l,u,!1)}const t1=()=>({...Sp(),attrs:{}}),n1=e=>typeof e=="string"&&e.toLowerCase()==="svg";function QI(e,t,r,i){const a=k.useMemo(()=>{const l=t1();return e1(l,t,n1(i),e.transformTemplate,e.style),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};Jx(l,e.style,e),a.style={...l,...a.style}}return a}const JI=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function kp(e){return typeof e!="string"||e.includes("-")?!1:!!(JI.indexOf(e)>-1||/[A-Z]/u.test(e))}function eR(e,t,r,{latestValues:i},a,l=!1){const d=(kp(e)?QI:YI)(t,i,a,e),f=FI(t,typeof e=="string",l),h=e!==k.Fragment?{...f,...d,ref:r}:{},{children:m}=t,y=k.useMemo(()=>ht(m)?m.get():m,[m]);return k.createElement(e,{...h,children:y})}function Bv(e){const t=[{},{}];return e==null||e.values.forEach((r,i)=>{t[0][i]=r.get(),t[1][i]=r.getVelocity()}),t}function bp(e,t,r,i){if(typeof t=="function"){const[a,l]=Bv(i);t=t(r!==void 0?r:e.custom,a,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,l]=Bv(i);t=t(r!==void 0?r:e.custom,a,l)}return t}function bl(e){return ht(e)?e.get():e}function tR({scrapeMotionValuesFromProps:e,createRenderState:t},r,i,a){return{latestValues:nR(r,i,a,e),renderState:t()}}function nR(e,t,r,i){const a={},l=i(e,{});for(const w in l)a[w]=bl(l[w]);let{initial:u,animate:d}=e;const f=ru(e),h=Zx(e);t&&h&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),d===void 0&&(d=t.animate));let m=r?r.initial===!1:!1;m=m||u===!1;const y=m?d:u;if(y&&typeof y!="boolean"&&!nu(y)){const w=Array.isArray(y)?y:[y];for(let v=0;v(t,r)=>{const i=k.useContext(tu),a=k.useContext(Xf),l=()=>tR(e,t,i,a);return r?l():OP(l)};function Cp(e,t,r){var l;const{style:i}=e,a={};for(const u in i)(ht(i[u])||t.style&&ht(t.style[u])||Qx(u,e)||((l=r==null?void 0:r.getValue(u))==null?void 0:l.liveStyle)!==void 0)&&(a[u]=i[u]);return a}const rR=r1({scrapeMotionValuesFromProps:Cp,createRenderState:Sp});function o1(e,t,r){const i=Cp(e,t,r);for(const a in e)if(ht(e[a])||ht(t[a])){const l=xi.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[l]=e[a]}return i}const oR=r1({scrapeMotionValuesFromProps:o1,createRenderState:t1}),iR=Symbol.for("motionComponentSymbol");function Yo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sR(e,t,r){return k.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),r&&(typeof r=="function"?r(i):Yo(r)&&(r.current=i))},[t])}const Ep=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),aR="framerAppearId",i1="data-"+Ep(aR),s1=k.createContext({});function lR(e,t,r,i,a){var S,b;const{visualElement:l}=k.useContext(tu),u=k.useContext(qx),d=k.useContext(Xf),f=k.useContext(Yx).reducedMotion,h=k.useRef(null);i=i||u.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:l,props:r,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,y=k.useContext(s1);m&&!m.projection&&a&&(m.type==="html"||m.type==="svg")&&uR(h.current,r,a,y);const w=k.useRef(!1);k.useInsertionEffect(()=>{m&&w.current&&m.update(r,d)});const v=r[i1],C=k.useRef(!!v&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,v))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,v)));return LP(()=>{m&&(w.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),C.current&&m.animationState&&m.animationState.animateChanges())}),k.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,v)}),C.current=!1),m.enteringChildren=void 0)}),m}function uR(e,t,r,i){const{layoutId:a,layout:l,drag:u,dragConstraints:d,layoutScroll:f,layoutRoot:h,layoutCrossfade:m}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:a1(e.parent)),e.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||d&&Yo(d),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,crossfade:m,layoutScroll:f,layoutRoot:h})}function a1(e){if(e)return e.options.allowProjection!==!1?e.projection:a1(e.parent)}function kd(e,{forwardMotionProps:t=!1}={},r,i){r&&OI(r);const a=kp(e)?oR:rR;function l(d,f){let h;const m={...k.useContext(Yx),...d,layoutId:cR(d)},{isStatic:y}=m,w=BI(d),v=a(d,y);if(!y&&qf){dR();const C=fR(m);h=C.MeasureLayout,w.visualElement=lR(e,v,m,i,C.ProjectionNode)}return E.jsxs(tu.Provider,{value:w,children:[h&&w.visualElement?E.jsx(h,{visualElement:w.visualElement,...m}):null,eR(e,d,sR(v,w.visualElement,f),v,y,t)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=k.forwardRef(l);return u[iR]=e,u}function cR({layoutId:e}){const t=k.useContext(ox).id;return t&&e!==void 0?t+"-"+e:e}function dR(e,t){k.useContext(qx).strict}function fR(e){const{drag:t,layout:r}=ci;if(!t&&!r)return{};const i={...t,...r};return{MeasureLayout:t!=null&&t.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function pR(e,t){if(typeof Proxy>"u")return kd;const r=new Map,i=(l,u)=>kd(l,u,e,t),a=(l,u)=>i(l,u);return new Proxy(a,{get:(l,u)=>u==="create"?i:(r.has(u)||r.set(u,kd(u,void 0,e,t)),r.get(u))})}function l1({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function hR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mR(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function bd(e){return e===void 0||e===1}function df({scale:e,scaleX:t,scaleY:r}){return!bd(e)||!bd(t)||!bd(r)}function ro(e){return df(e)||u1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function u1(e){return $v(e.x)||$v(e.y)}function $v(e){return e&&e!=="0%"}function Vl(e,t,r){const i=e-r,a=t*i;return r+a}function Uv(e,t,r,i,a){return a!==void 0&&(e=Vl(e,a,i)),Vl(e,r,i)+t}function ff(e,t=0,r=1,i,a){e.min=Uv(e.min,t,r,i,a),e.max=Uv(e.max,t,r,i,a)}function c1(e,{x:t,y:r}){ff(e.x,t.translate,t.scale,t.originPoint),ff(e.y,r.translate,r.scale,r.originPoint)}const Wv=.999999999999,Hv=1.0000000000001;function gR(e,t,r,i=!1){const a=r.length;if(!a)return;t.x=t.y=1;let l,u;for(let d=0;dWv&&(t.x=1),t.yWv&&(t.y=1)}function qo(e,t){e.min=e.min+t,e.max=e.max+t}function Gv(e,t,r,i,a=.5){const l=Ue(e.min,e.max,a);ff(e,t,r,l,i)}function Xo(e,t){Gv(e.x,t.x,t.scaleX,t.scale,t.originX),Gv(e.y,t.y,t.scaleY,t.scale,t.originY)}function d1(e,t){return l1(mR(e.getBoundingClientRect(),t))}function vR(e,t,r){const i=d1(e,r),{scroll:a}=t;return a&&(qo(i.x,a.offset.x),qo(i.y,a.offset.y)),i}const Kv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zo=()=>({x:Kv(),y:Kv()}),Yv=()=>({min:0,max:0}),Ye=()=>({x:Yv(),y:Yv()}),pf={current:null},f1={current:!1};function yR(){if(f1.current=!0,!!qf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pf.current=e.matches;e.addEventListener("change",t),t()}else pf.current=!1}const wR=new WeakMap;function xR(e,t,r){for(const i in t){const a=t[i],l=r[i];if(ht(a))e.addValue(i,a);else if(ht(l))e.addValue(i,ui(a,{owner:e}));else if(l!==a)if(e.hasValue(i)){const u=e.getValue(i);u.liveStyle===!0?u.jump(a):u.hasAnimated||u.set(a)}else{const u=e.getStaticValue(i);e.addValue(i,ui(u!==void 0?u:a,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const qv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class SR{scrapeMotionValuesFromProps(t,r,i){return{}}constructor({parent:t,props:r,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=pp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=Ot.now();this.renderScheduledAtthis.bindToMotionValue(a,i)),f1.current||yR(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pf.current,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),jr(this.notifyUpdate),jr(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const i=this.features[r];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=Si.has(t);i&&this.onBindTransform&&this.onBindTransform();const a=r.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Ve.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{a(),l&&l(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ci){const r=ci[t];if(!r)continue;const{isEnabled:i,Feature:a}=r;if(!this.features[t]&&a&&i(this.props)&&(this.features[t]=new a(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ye()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let i=0;ir.variantChildren.delete(t)}addValue(t,r){const i=this.values.get(t);r!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&r!==void 0&&(i=ui(r===null?void 0:r,{owner:this}),this.addValue(t,i)),i}readValue(t,r){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(ix(i)||ax(i))?i=parseFloat(i):!DI(i)&&Or.test(r)&&(i=$x(t,r)),this.setBaseTarget(t,ht(i)?i.get():i)),ht(i)?i.get():i}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var l;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const u=bp(this.props,r,(l=this.presenceContext)==null?void 0:l.custom);u&&(i=u[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!ht(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new tp),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){gp.render(this.render)}}class p1 extends SR{constructor(){super(...arguments),this.KeyframeResolver=SI}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:i}){delete r[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ht(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function h1(e,{style:t,vars:r},i,a){const l=e.style;let u;for(u in t)l[u]=t[u];a==null||a.applyProjectionStyles(l,i);for(u in r)l.setProperty(u,r[u])}function kR(e){return window.getComputedStyle(e)}class bR extends p1{constructor(){super(...arguments),this.type="html",this.renderInstance=h1}readValueFromInstance(t,r){var i;if(Si.has(r))return(i=this.projection)!=null&&i.isProjecting?rf(r):V2(t,r);{const a=kR(t),l=(op(r)?a.getPropertyValue(r):a[r])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(t,{transformPagePoint:r}){return d1(t,r)}build(t,r,i){xp(t,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,r,i){return Cp(t,r,i)}}const m1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function CR(e,t,r,i){h1(e,t,void 0,i);for(const a in t.attrs)e.setAttribute(m1.has(a)?a:Ep(a),t.attrs[a])}class ER extends p1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ye}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Si.has(r)){const i=Bx(r);return i&&i.default||0}return r=m1.has(r)?r:Ep(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,i){return o1(t,r,i)}build(t,r,i){e1(t,r,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,r,i,a){CR(t,r,i,a)}mount(t){this.isSVGTag=n1(t.tagName),super.mount(t)}}const TR=(e,t)=>kp(e)?new ER(t):new bR(t,{allowProjection:e!==k.Fragment});function ri(e,t,r){const i=e.getProps();return bp(i,t,r!==void 0?r:i.custom,e)}const hf=e=>Array.isArray(e);function _R(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ui(r))}function AR(e){return hf(e)?e[e.length-1]||0:e}function PR(e,t){const r=ri(e,t);let{transitionEnd:i={},transition:a={},...l}=r||{};l={...l,...i};for(const u in l){const d=AR(l[u]);_R(e,u,d)}}function IR(e){return!!(ht(e)&&e.add)}function mf(e,t){const r=e.getValue("willChange");if(IR(r))return r.add(t);if(!r&&ir.WillChange){const i=new ir.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function g1(e){return e.props[i1]}const RR=e=>e!==null;function NR(e,{repeat:t,repeatType:r="loop"},i){const a=e.filter(RR),l=t&&r!=="loop"&&t%2===1?0:a.length-1;return a[l]}const MR={type:"spring",stiffness:500,damping:25,restSpeed:10},DR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jR={type:"keyframes",duration:.8},OR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LR=(e,{keyframes:t})=>t.length>2?jR:Si.has(e)?e.startsWith("scale")?DR(t[1]):MR:OR;function zR({when:e,delay:t,delayChildren:r,staggerChildren:i,staggerDirection:a,repeat:l,repeatType:u,repeatDelay:d,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const Tp=(e,t,r,i={},a,l)=>u=>{const d=hp(i,e)||{},f=d.delay||i.delay||0;let{elapsed:h=0}=i;h=h-Fn(f);const m={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:w=>{t.set(w),d.onUpdate&&d.onUpdate(w)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:l?void 0:a};zR(d)||Object.assign(m,LR(e,m)),m.duration&&(m.duration=Fn(m.duration)),m.repeatDelay&&(m.repeatDelay=Fn(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(uf(m),m.delay===0&&(y=!0)),(ir.instantAnimations||ir.skipAnimations)&&(y=!0,uf(m),m.delay=0),m.allowFlatten=!d.type&&!d.ease,y&&!l&&t.get()!==void 0){const w=NR(m.keyframes,d);if(w!==void 0){Ve.update(()=>{m.onUpdate(w),m.onComplete()});return}}return d.isSync?new fp(m):new uI(m)};function FR({protectedKeys:e,needsAnimating:t},r){const i=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,i}function v1(e,t,{delay:r=0,transitionOverride:i,type:a}={}){let{transition:l=e.getDefaultTransition(),transitionEnd:u,...d}=t;i&&(l=i);const f=[],h=a&&e.animationState&&e.animationState.getState()[a];for(const m in d){const y=e.getValue(m,e.latestValues[m]??null),w=d[m];if(w===void 0||h&&FR(h,m))continue;const v={delay:r,...hp(l||{},m)},C=y.get();if(C!==void 0&&!y.isAnimating&&!Array.isArray(w)&&w===C&&!v.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const T=g1(e);if(T){const A=window.MotionHandoffAnimation(T,m,Ve);A!==null&&(v.startTime=A,S=!0)}}mf(e,m),y.start(Tp(m,y,w,e.shouldReduceMotion&&zx.has(m)?{type:!1}:v,e,S));const b=y.animation;b&&f.push(b)}return u&&Promise.all(f).then(()=>{Ve.update(()=>{u&&PR(e,u)})}),f}function y1(e,t,r,i=0,a=1){const l=Array.from(e).sort((h,m)=>h.sortNodePosition(m)).indexOf(t),u=e.size,d=(u-1)*i;return typeof r=="function"?r(l,u):a===1?l*i:d-l*i}function gf(e,t,r={}){var f;const i=ri(e,t,r.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(a=r.transitionOverride);const l=i?()=>Promise.all(v1(e,i,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:w}=a;return VR(e,t,h,m,y,w,r)}:()=>Promise.resolve(),{when:d}=a;if(d){const[h,m]=d==="beforeChildren"?[l,u]:[u,l];return h().then(()=>m())}else return Promise.all([l(),u(r.delay)])}function VR(e,t,r=0,i=0,a=0,l=1,u){const d=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),d.push(gf(f,t,{...u,delay:r+(typeof i=="function"?0:i)+y1(e.variantChildren,f,i,a,l)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(d)}function BR(e,t,r={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const a=t.map(l=>gf(e,l,r));i=Promise.all(a)}else if(typeof t=="string")i=gf(e,t,r);else{const a=typeof t=="function"?ri(e,t,r.custom):t;i=Promise.all(v1(e,a,r))}return i.then(()=>{e.notify("AnimationComplete",t)})}function w1(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let i=0;iPromise.all(t.map(({animation:r,options:i})=>BR(e,r,i)))}function GR(e){let t=HR(e),r=Xv(),i=!0;const a=f=>(h,m)=>{var w;const y=ri(e,m,f==="exit"?(w=e.presenceContext)==null?void 0:w.custom:void 0);if(y){const{transition:v,transitionEnd:C,...S}=y;h={...h,...S,...C}}return h};function l(f){t=f(e)}function u(f){const{props:h}=e,m=x1(e.parent)||{},y=[],w=new Set;let v={},C=1/0;for(let b=0;bC&&M,Z=!1;const re=Array.isArray(I)?I:[I];let ke=re.reduce(a(T),{});j===!1&&(ke={});const{prevResolvedValues:me={}}=A,we={...me,...ke},de=Q=>{z=!0,w.has(Q)&&(Z=!0,w.delete(Q)),A.needsAnimating[Q]=!0;const D=e.getValue(Q);D&&(D.liveStyle=!1)};for(const Q in we){const D=ke[Q],U=me[Q];if(v.hasOwnProperty(Q))continue;let W=!1;hf(D)&&hf(U)?W=!w1(D,U):W=D!==U,W?D!=null?de(Q):w.add(Q):D!==void 0&&w.has(Q)?de(Q):A.protectedKeys[Q]=!0}A.prevProp=I,A.prevResolvedValues=ke,A.isActive&&(v={...v,...ke}),i&&e.blockInitialAnimation&&(z=!1);const be=$&&B;z&&(!be||Z)&&y.push(...re.map(Q=>{const D={type:T};if(typeof Q=="string"&&i&&!be&&e.manuallyAnimateOnMount&&e.parent){const{parent:U}=e,W=ri(U,Q);if(U.enteringChildren&&W){const{delayChildren:N}=W.transition||{};D.delay=y1(U.enteringChildren,e,N)}}return{animation:Q,options:D}}))}if(w.size){const b={};if(typeof h.initial!="boolean"){const T=ri(e,Array.isArray(h.initial)?h.initial[0]:h.initial);T&&T.transition&&(b.transition=T.transition)}w.forEach(T=>{const A=e.getBaseTarget(T),I=e.getValue(T);I&&(I.liveStyle=!0),b[T]=A??null}),y.push({animation:b})}let S=!!y.length;return i&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(S=!1),i=!1,S?t(y):Promise.resolve()}function d(f,h){var y;if(r[f].isActive===h)return Promise.resolve();(y=e.variantChildren)==null||y.forEach(w=>{var v;return(v=w.animationState)==null?void 0:v.setActive(f,h)}),r[f].isActive=h;const m=u(f);for(const w in r)r[w].protectedKeys={};return m}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>r,reset:()=>{r=Xv(),i=!0}}}function KR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!w1(t,e):!1}function no(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xv(){return{animate:no(!0),whileInView:no(),whileHover:no(),whileTap:no(),whileDrag:no(),whileFocus:no(),exit:no()}}class Lr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class YR extends Lr{constructor(t){super(t),t.animationState||(t.animationState=GR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();nu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let qR=0;class XR extends Lr{constructor(){super(...arguments),this.id=qR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const ZR={animation:{Feature:YR},exit:{Feature:XR}};function Is(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r)}function zs(e){return{point:{x:e.pageX,y:e.pageY}}}const QR=e=>t=>vp(t)&&e(t,zs(t));function ws(e,t,r,i){return Is(e,t,QR(r),i)}const S1=1e-4,JR=1-S1,eN=1+S1,k1=.01,tN=0-k1,nN=0+k1;function bt(e){return e.max-e.min}function rN(e,t,r){return Math.abs(e-t)<=r}function Zv(e,t,r,i=.5){e.origin=i,e.originPoint=Ue(t.min,t.max,e.origin),e.scale=bt(r)/bt(t),e.translate=Ue(r.min,r.max,e.origin)-e.originPoint,(e.scale>=JR&&e.scale<=eN||isNaN(e.scale))&&(e.scale=1),(e.translate>=tN&&e.translate<=nN||isNaN(e.translate))&&(e.translate=0)}function xs(e,t,r,i){Zv(e.x,t.x,r.x,i?i.originX:void 0),Zv(e.y,t.y,r.y,i?i.originY:void 0)}function Qv(e,t,r){e.min=r.min+t.min,e.max=e.min+bt(t)}function oN(e,t,r){Qv(e.x,t.x,r.x),Qv(e.y,t.y,r.y)}function Jv(e,t,r){e.min=t.min-r.min,e.max=e.min+bt(t)}function Ss(e,t,r){Jv(e.x,t.x,r.x),Jv(e.y,t.y,r.y)}function rn(e){return[e("x"),e("y")]}const b1=({current:e})=>e?e.ownerDocument.defaultView:null,ey=(e,t)=>Math.abs(e-t);function iN(e,t){const r=ey(e.x,t.x),i=ey(e.y,t.y);return Math.sqrt(r**2+i**2)}class C1{constructor(t,r,{transformPagePoint:i,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Ed(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,C=iN(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!C)return;const{point:S}=w,{timestamp:b}=ut;this.history.push({...S,timestamp:b});const{onStart:T,onMove:A}=this.handlers;v||(T&&T(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,w)},this.handlePointerMove=(w,v)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=Cd(v,this.transformPagePoint),Ve.update(this.updatePoint,!0)},this.handlePointerUp=(w,v)=>{this.end();const{onEnd:C,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Ed(w.type==="pointercancel"?this.lastMoveEventInfo:Cd(v,this.transformPagePoint),this.history);this.startEvent&&C&&C(w,T),S&&S(w,T)},!vp(t))return;this.dragSnapToOrigin=l,this.handlers=r,this.transformPagePoint=i,this.distanceThreshold=u,this.contextWindow=a||window;const d=zs(t),f=Cd(d,this.transformPagePoint),{point:h}=f,{timestamp:m}=ut;this.history=[{...h,timestamp:m}];const{onSessionStart:y}=r;y&&y(t,Ed(f,this.history)),this.removeListeners=js(ws(this.contextWindow,"pointermove",this.handlePointerMove),ws(this.contextWindow,"pointerup",this.handlePointerUp),ws(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),jr(this.updatePoint)}}function Cd(e,t){return t?{point:t(e.point)}:e}function ty(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ed({point:e},t){return{point:e,delta:ty(e,E1(t)),offset:ty(e,sN(t)),velocity:aN(t,.1)}}function sN(e){return e[0]}function E1(e){return e[e.length-1]}function aN(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,i=null;const a=E1(e);for(;r>=0&&(i=e[r],!(a.timestamp-i.timestamp>Fn(t)));)r--;if(!i)return{x:0,y:0};const l=Vn(a.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(a.x-i.x)/l,y:(a.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function lN(e,{min:t,max:r},i){return t!==void 0&&er&&(e=i?Ue(r,e,i.max):Math.min(e,r)),e}function ny(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function uN(e,{top:t,left:r,bottom:i,right:a}){return{x:ny(e.x,r,a),y:ny(e.y,t,i)}}function ry(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.mini?r=Es(t.min,t.max-i,e.min):i>a&&(r=Es(e.min,e.max-a,t.min)),or(0,1,r)}function fN(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const vf=.35;function pN(e=vf){return e===!1?e=0:e===!0&&(e=vf),{x:oy(e,"left","right"),y:oy(e,"top","bottom")}}function oy(e,t,r){return{min:iy(e,t),max:iy(e,r)}}function iy(e,t){return typeof e=="number"?e:e[t]||0}const hN=new WeakMap;class mN{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ye(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:i}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=y=>{const{dragSnapToOrigin:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(zs(y).point)},u=(y,w)=>{const{drag:v,dragPropagation:C,onDragStart:S}=this.getProps();if(v&&!C&&(this.openDragLock&&this.openDragLock(),this.openDragLock=TI(v),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(T=>{let A=this.getAxisMotionValue(T).get()||0;if(Bn.test(A)){const{projection:I}=this.visualElement;if(I&&I.layout){const M=I.layout.layoutBox[T];M&&(A=bt(M)*(parseFloat(A)/100))}}this.originPoint[T]=A}),S&&Ve.postRender(()=>S(y,w)),mf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},d=(y,w)=>{this.latestPointerEvent=y,this.latestPanInfo=w;const{dragPropagation:v,dragDirectionLock:C,onDirectionLock:S,onDrag:b}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:T}=w;if(C&&this.currentDirection===null){this.currentDirection=gN(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",w.point,T),this.updateAxis("y",w.point,T),this.visualElement.render(),b&&b(y,w)},f=(y,w)=>{this.latestPointerEvent=y,this.latestPanInfo=w,this.stop(y,w),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>rn(y=>{var w;return this.getAnimationState(y)==="paused"&&((w=this.getAxisMotionValue(y).animation)==null?void 0:w.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new C1(t,{onSessionStart:l,onStart:u,onMove:d,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:i,contextWindow:b1(this.visualElement)})}stop(t,r){const i=t||this.latestPointerEvent,a=r||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!i)return;const{velocity:u}=a;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&Ve.postRender(()=>d(i,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,i){const{drag:a}=this.getProps();if(!i||!dl(t,a,this.currentDirection))return;const l=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=lN(u,this.constraints[t],this.elastic[t])),l.set(u)}resolveConstraints(){var l;const{dragConstraints:t,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(l=this.visualElement.projection)==null?void 0:l.layout,a=this.constraints;t&&Yo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=uN(i.layoutBox,t):this.constraints=!1,this.elastic=pN(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=fN(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Yo(t))return!1;const i=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=vR(i,a.root,this.visualElement.getTransformPagePoint());let u=cN(a.layout.layoutBox,l);if(r){const d=r(hR(u));this.hasMutatedConstraints=!!d,d&&(u=l1(d))}return u}startAnimation(t){const{drag:r,dragMomentum:i,dragElastic:a,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},h=rn(m=>{if(!dl(m,r,this.currentDirection))return;let y=f&&f[m]||{};u&&(y={min:0,max:0});const w=a?200:1e6,v=a?40:1e7,C={type:"inertia",velocity:i?t[m]:0,bounceStiffness:w,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...l,...y};return this.startAxisValueAnimation(m,C)});return Promise.all(h).then(d)}startAxisValueAnimation(t,r){const i=this.getAxisMotionValue(t);return mf(this.visualElement,t),i.start(Tp(t,i,0,r,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var r;return(r=this.getAxisMotionValue(t).animation)==null?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)==null?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),a=i[r];return a||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){rn(r=>{const{drag:i}=this.getProps();if(!dl(r,i,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(r);if(a&&a.layout){const{min:u,max:d}=a.layout.layoutBox[r];l.set(t[r]-Ue(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!Yo(r)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};rn(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const f=d.get();a[u]=dN({min:f,max:f},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),rn(u=>{if(!dl(u,t,null))return;const d=this.getAxisMotionValue(u),{min:f,max:h}=this.constraints[u];d.set(Ue(f,h,a[u]))})}addListeners(){if(!this.visualElement.current)return;hN.set(this.visualElement,this);const t=this.visualElement.current,r=ws(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();Yo(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Ve.read(i);const u=Is(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(rn(m=>{const y=this.getAxisMotionValue(m);y&&(this.originPoint[m]+=f[m].translate,y.set(y.get()+f[m].translate))}),this.visualElement.render())}));return()=>{u(),r(),l(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:u=vf,dragMomentum:d=!0}=t;return{...t,drag:r,dragDirectionLock:i,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function dl(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function gN(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class vN extends Lr{constructor(t){super(t),this.removeGroupControls=an,this.removeListeners=an,this.controls=new mN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||an}unmount(){this.removeGroupControls(),this.removeListeners()}}const sy=e=>(t,r)=>{e&&Ve.postRender(()=>e(t,r))};class yN extends Lr{constructor(){super(...arguments),this.removePointerDownListener=an}onPointerDown(t){this.session=new C1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:b1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:sy(t),onStart:sy(r),onMove:i,onEnd:(l,u)=>{delete this.session,a&&Ve.postRender(()=>a(l,u))}}}mount(){this.removePointerDownListener=ws(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Cl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ay(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const hs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const r=ay(e,t.target.x),i=ay(e,t.target.y);return`${r}% ${i}%`}},wN={correct:(e,{treeScale:t,projectionDelta:r})=>{const i=e,a=Or.parse(e);if(a.length>5)return i;const l=Or.createTransformer(e),u=typeof a[0]!="number"?1:0,d=r.x.scale*t.x,f=r.y.scale*t.y;a[0+u]/=d,a[1+u]/=f;const h=Ue(d,f,.5);return typeof a[2+u]=="number"&&(a[2+u]/=h),typeof a[3+u]=="number"&&(a[3+u]/=h),l(a)}};let Td=!1;class xN extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:i,layoutId:a}=this.props,{projection:l}=t;$I(SN),l&&(r.group&&r.group.add(l),i&&i.register&&a&&i.register(l),Td&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),Cl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:i,drag:a,isPresent:l}=this.props,{projection:u}=i;return u&&(u.isPresent=l,Td=!0,a||t.layoutDependency!==r||r===void 0||t.isPresent!==l?u.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?u.promote():u.relegate()||Ve.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:i}=this.props,{projection:a}=t;Td=!0,a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function T1(e){const[t,r]=jI(),i=k.useContext(ox);return E.jsx(xN,{...e,layoutGroup:i,switchLayoutGroup:k.useContext(s1),isPresent:t,safeToRemove:r})}const SN={borderRadius:{...hs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hs,borderTopRightRadius:hs,borderBottomLeftRadius:hs,borderBottomRightRadius:hs,boxShadow:wN};function kN(e,t,r){const i=ht(e)?e:ui(e);return i.start(Tp("",i,t,r)),i.animation}const bN=(e,t)=>e.depth-t.depth;class CN{constructor(){this.children=[],this.isDirty=!1}add(t){Zf(this.children,t),this.isDirty=!0}remove(t){Qf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bN),this.isDirty=!1,this.children.forEach(t)}}function EN(e,t){const r=Ot.now(),i=({timestamp:a})=>{const l=a-r;l>=t&&(jr(i),e(l-t))};return Ve.setup(i,!0),()=>jr(i)}const _1=["TopLeft","TopRight","BottomLeft","BottomRight"],TN=_1.length,ly=e=>typeof e=="string"?parseFloat(e):e,uy=e=>typeof e=="number"||ye.test(e);function _N(e,t,r,i,a,l){a?(e.opacity=Ue(0,r.opacity??1,AN(i)),e.opacityExit=Ue(t.opacity??1,0,PN(i))):l&&(e.opacity=Ue(t.opacity??1,r.opacity??1,i));for(let u=0;uit?1:r(Es(e,t,i))}function dy(e,t){e.min=t.min,e.max=t.max}function nn(e,t){dy(e.x,t.x),dy(e.y,t.y)}function fy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function py(e,t,r,i,a){return e-=t,e=Vl(e,1/r,i),a!==void 0&&(e=Vl(e,1/a,i)),e}function IN(e,t=0,r=1,i=.5,a,l=e,u=e){if(Bn.test(t)&&(t=parseFloat(t),t=Ue(u.min,u.max,t/100)-u.min),typeof t!="number")return;let d=Ue(l.min,l.max,i);e===l&&(d-=t),e.min=py(e.min,t,r,d,a),e.max=py(e.max,t,r,d,a)}function hy(e,t,[r,i,a],l,u){IN(e,t[r],t[i],t[a],t.scale,l,u)}const RN=["x","scaleX","originX"],NN=["y","scaleY","originY"];function my(e,t,r,i){hy(e.x,t,RN,r?r.x:void 0,i?i.x:void 0),hy(e.y,t,NN,r?r.y:void 0,i?i.y:void 0)}function gy(e){return e.translate===0&&e.scale===1}function P1(e){return gy(e.x)&&gy(e.y)}function vy(e,t){return e.min===t.min&&e.max===t.max}function MN(e,t){return vy(e.x,t.x)&&vy(e.y,t.y)}function yy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function I1(e,t){return yy(e.x,t.x)&&yy(e.y,t.y)}function wy(e){return bt(e.x)/bt(e.y)}function xy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class DN{constructor(){this.members=[]}add(t){Zf(this.members,t),t.scheduleRender()}remove(t){if(Qf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(a=>t===a);if(r===0)return!1;let i;for(let a=r;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){i=l;break}}return i?(this.promote(i),!0):!1}promote(t,r){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:i}=t;r.onExitComplete&&r.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jN(e,t,r){let i="";const a=e.x.translate/t.x,l=e.y.translate/t.y,u=(r==null?void 0:r.z)||0;if((a||l||u)&&(i=`translate3d(${a}px, ${l}px, ${u}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:h,rotate:m,rotateX:y,rotateY:w,skewX:v,skewY:C}=r;h&&(i=`perspective(${h}px) ${i}`),m&&(i+=`rotate(${m}deg) `),y&&(i+=`rotateX(${y}deg) `),w&&(i+=`rotateY(${w}deg) `),v&&(i+=`skewX(${v}deg) `),C&&(i+=`skewY(${C}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(i+=`scale(${d}, ${f})`),i||"none"}const _d=["","X","Y","Z"],ON=1e3;let LN=0;function Ad(e,t,r,i){const{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),i&&(i[e]=0))}function R1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=g1(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:a,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Ve,!(a||l))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&R1(i)}function N1({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(u={},d=t==null?void 0:t()){this.id=LN++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(VN),this.nodes.forEach(WN),this.nodes.forEach(HN),this.nodes.forEach(BN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;fthis.root.updateBlockedByResize=!1;Ve.read(()=>{y=window.innerWidth}),e(u,()=>{const v=window.innerWidth;v!==y&&(y=v,this.root.updateBlockedByResize=!0,m&&m(),m=EN(w,250),Cl.hasAnimatedSinceResize&&(Cl.hasAnimatedSinceResize=!1,this.nodes.forEach(by)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&h&&(d||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:y,hasRelativeLayoutChanged:w,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||h.getDefaultTransition()||XN,{onLayoutAnimationStart:S,onLayoutAnimationComplete:b}=h.getProps(),T=!this.targetLayout||!I1(this.targetLayout,v),A=!y&&w;if(this.options.layoutRoot||this.resumeFrom||A||y&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const I={...hp(C,"layout"),onPlay:S,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I),this.setAnimationOrigin(m,A)}else y||by(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),jr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(GN),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&R1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!bt(this.snapshot.measuredBox.x)&&!bt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f{const j=M/1e3;Cy(y.x,u.x,j),Cy(y.y,u.y,j),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ss(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),YN(this.relativeTarget,this.relativeTargetOrigin,w,j),I&&MN(this.relativeTarget,I)&&(this.isProjectionDirty=!1),I||(I=Ye()),nn(I,this.relativeTarget)),S&&(this.animationValues=m,_N(m,h,this.latestValues,j,A,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var d,f,h;this.notifyListeners("animationStart"),(d=this.currentAnimation)==null||d.stop(),(h=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||h.stop(),this.pendingAnimation&&(jr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ve.update(()=>{Cl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ui(0)),this.currentAnimation=kN(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),u.onUpdate&&u.onUpdate(m)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ON),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:f,layout:h,latestValues:m}=u;if(!(!d||!f||!h)){if(this!==u&&this.layout&&h&&M1(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Ye();const y=bt(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+y;const w=bt(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+w}nn(d,f),Xo(d,m),xs(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new DN),this.sharedNodes.get(u).add(d);const h=d.options.initialPromotionConfig;d.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var d;const{layoutId:u}=this.options;return u?((d=this.getStack())==null?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:u}=this.options;return u?(d=this.getStack())==null?void 0:d.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const h={};f.z&&Ad("z",u,h,this.animationValues);for(let m=0;m<_d.length;m++)Ad(`rotate${_d[m]}`,u,h,this.animationValues),Ad(`skew${_d[m]}`,u,h,this.animationValues);u.render();for(const m in h)u.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);u.scheduleRender()}applyProjectionStyles(u,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=bl(d==null?void 0:d.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=bl(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!ro(this.latestValues)&&(u.transform=f?f({},""):"none",this.hasProjected=!1);return}u.visibility="";const m=h.animationValues||h.latestValues;this.applyTransformsToTarget();let y=jN(this.projectionDeltaWithTransform,this.treeScale,m);f&&(y=f(m,y)),u.transform=y;const{x:w,y:v}=this.projectionDelta;u.transformOrigin=`${w.origin*100}% ${v.origin*100}% 0`,h.animationValues?u.opacity=h===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const C in Ps){if(m[C]===void 0)continue;const{correct:S,applyTo:b,isCSSVariable:T}=Ps[C],A=y==="none"?m[C]:S(m[C],h);if(b){const I=b.length;for(let M=0;M{var d;return(d=u.currentAnimation)==null?void 0:d.stop()}),this.root.nodes.forEach(Sy),this.root.sharedNodes.clear()}}}function zN(e){e.updateLayout()}function FN(e){var r;const t=((r=e.resumeFrom)==null?void 0:r.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=e.layout,{animationType:l}=e.options,u=t.source!==e.layout.source;l==="size"?rn(y=>{const w=u?t.measuredBox[y]:t.layoutBox[y],v=bt(w);w.min=i[y].min,w.max=w.min+v}):M1(l,t.layoutBox,i)&&rn(y=>{const w=u?t.measuredBox[y]:t.layoutBox[y],v=bt(i[y]);w.max=w.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+v)});const d=Zo();xs(d,i,t.layoutBox);const f=Zo();u?xs(f,e.applyTransform(a,!0),t.measuredBox):xs(f,i,t.layoutBox);const h=!P1(d);let m=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:w,layout:v}=y;if(w&&v){const C=Ye();Ss(C,t.layoutBox,w.layoutBox);const S=Ye();Ss(S,i,v.layoutBox),I1(C,S)||(m=!0),y.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=C,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:f,layoutDelta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function VN(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function BN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $N(e){e.clearSnapshot()}function Sy(e){e.clearMeasurements()}function ky(e){e.isLayoutDirty=!1}function UN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function by(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function WN(e){e.resolveTargetDelta()}function HN(e){e.calcProjection()}function GN(e){e.resetSkewAndRotation()}function KN(e){e.removeLeadSnapshot()}function Cy(e,t,r){e.translate=Ue(t.translate,0,r),e.scale=Ue(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Ey(e,t,r,i){e.min=Ue(t.min,r.min,i),e.max=Ue(t.max,r.max,i)}function YN(e,t,r,i){Ey(e.x,t.x,r.x,i),Ey(e.y,t.y,r.y,i)}function qN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const XN={duration:.45,ease:[.4,0,.1,1]},Ty=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_y=Ty("applewebkit/")&&!Ty("chrome/")?Math.round:an;function Ay(e){e.min=_y(e.min),e.max=_y(e.max)}function ZN(e){Ay(e.x),Ay(e.y)}function M1(e,t,r){return e==="position"||e==="preserve-aspect"&&!rN(wy(t),wy(r),.2)}function QN(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const JN=N1({attachResizeListener:(e,t)=>Is(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Pd={current:void 0},D1=N1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Pd.current){const e=new JN({});e.mount(window),e.setOptions({layoutScroll:!0}),Pd.current=e}return Pd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),eM={pan:{Feature:yN},drag:{Feature:vN,ProjectionNode:D1,MeasureLayout:T1}};function Py(e,t,r){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",r==="Start");const a="onHover"+r,l=i[a];l&&Ve.postRender(()=>l(t,zs(t)))}class tM extends Lr{mount(){const{current:t}=this.node;t&&(this.unmount=_I(t,(r,i)=>(Py(this.node,i,"Start"),a=>Py(this.node,a,"End"))))}unmount(){}}class nM extends Lr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=js(Is(this.node.current,"focus",()=>this.onFocus()),Is(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Iy(e,t,r){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",r==="Start");const a="onTap"+(r==="End"?"":r),l=i[a];l&&Ve.postRender(()=>l(t,zs(t)))}class rM extends Lr{mount(){const{current:t}=this.node;t&&(this.unmount=RI(t,(r,i)=>(Iy(this.node,i,"Start"),(a,{success:l})=>Iy(this.node,a,l?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yf=new WeakMap,Id=new WeakMap,oM=e=>{const t=yf.get(e.target);t&&t(e)},iM=e=>{e.forEach(oM)};function sM({root:e,...t}){const r=e||document;Id.has(r)||Id.set(r,{});const i=Id.get(r),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(iM,{root:e,...t})),i[a]}function aM(e,t,r){const i=sM(t);return yf.set(e,r),i.observe(e),()=>{yf.delete(e),i.unobserve(e)}}const lM={some:0,all:1};class uM extends Lr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:i,amount:a="some",once:l}=t,u={root:r?r.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:lM[a]},d=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,l&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:y}=this.node.getProps(),w=h?m:y;w&&w(f)};return aM(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(cM(t,r))&&this.startObserver()}unmount(){}}function cM({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const dM={inView:{Feature:uM},tap:{Feature:rM},focus:{Feature:nM},hover:{Feature:tM}},fM={layout:{ProjectionNode:D1,MeasureLayout:T1}},pM={...ZR,...dM,...eM,...fM},hM=pR(pM,TR);function mM(){return E.jsxs("section",{className:"relative flex-1 py-20 h-full bg-gradient-to-br lg:py-28 from-background to-muted/50",children:[E.jsx("div",{className:"container px-4 mx-auto",children:E.jsx("div",{className:"mx-auto max-w-4xl text-center",children:E.jsxs(hM.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[E.jsx("div",{className:"inline-flex items-center px-4 py-2 mb-6 text-sm font-medium rounded-full bg-primary/10 text-primary",children:"🚀 Catchy Fact or Statistic"}),E.jsxs("h1",{className:"mb-6 text-5xl font-bold tracking-tight lg:text-7xl",children:["Supporting Headline",E.jsxs("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-primary to-primary/60",children:[" ","For"]}),E.jsx("br",{}),"Your Primary Action"]}),E.jsx("p",{className:"mx-auto mb-8 max-w-3xl text-xl lg:text-2xl text-muted-foreground",children:"Supporting statement for your primary action. This is where you can add a few sentences to support your primary action."}),E.jsxs("div",{className:"flex flex-col gap-4 justify-center mb-12 sm:flex-row",children:[E.jsx(Wt,{size:"lg",className:"px-8 py-6 text-lg",children:"Primary Action"}),E.jsx(Wt,{size:"lg",variant:"outline",className:"px-8 py-6 text-lg",children:"Secondary Action"})]}),E.jsxs("div",{className:"flex flex-col gap-8 justify-center items-center text-sm sm:flex-row text-muted-foreground",children:[E.jsxs("div",{className:"flex items-center space-x-2",children:[E.jsx("div",{className:"flex",children:[...Array(5)].map((e,t)=>E.jsx("svg",{className:"w-4 h-4 text-amber-500",fill:"currentColor",viewBox:"0 0 20 20",children:E.jsx("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})},t))}),E.jsx("span",{children:"Catchy Statistic"})]}),E.jsxs("div",{className:"flex items-center space-x-2",children:[E.jsx("svg",{className:"w-4 h-4 text-emerald-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),E.jsx("span",{children:"Catchy Benefit"})]}),E.jsxs("div",{className:"flex items-center space-x-2",children:[E.jsx("svg",{className:"w-4 h-4 text-emerald-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),E.jsx("span",{children:"Catchy Benefit"})]})]})]})})}),E.jsxs("div",{className:"overflow-hidden absolute inset-0 -z-10",children:[E.jsx("div",{className:"absolute top-0 left-1/2 w-96 h-96 rounded-full blur-3xl transform -translate-x-1/2 bg-primary/5"}),E.jsx("div",{className:"absolute right-0 bottom-0 w-64 h-64 rounded-full blur-2xl bg-primary/10"})]})]})}function gM(){const[e,t]=k.useState(!1),[r,i]=k.useState("light");k.useEffect(()=>{const l=localStorage.getItem("theme"),u=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",d=l||u;i(d),document.documentElement.classList.toggle("dark",d==="dark")},[]);const a=()=>{const l=r==="light"?"dark":"light";i(l),document.documentElement.classList.toggle("dark",l==="dark"),localStorage.setItem("theme",l)};return E.jsx("nav",{className:"sticky top-0 z-50 border-b backdrop-blur-sm bg-background/80",children:E.jsxs("div",{className:"container px-4 mx-auto",children:[E.jsxs("div",{className:"flex justify-between items-center h-16",children:[E.jsxs("div",{className:"flex items-center",children:[E.jsx("div",{className:"block dark:hidden",children:E.jsx(rx,{})}),E.jsx("div",{className:"hidden dark:block",children:E.jsx(nx,{})})]}),E.jsxs("div",{className:"hidden items-center space-x-4 md:flex",children:[E.jsx("button",{onClick:a,className:"p-2 rounded-lg transition-colors hover:bg-muted","aria-label":"Toggle theme",children:r==="light"?E.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})}):E.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}),E.jsx(Wt,{variant:"ghost",size:"sm",children:"Secondary Action"}),E.jsx(Wt,{size:"sm",children:"Primary Action"})]}),E.jsxs("div",{className:"flex items-center space-x-2 md:hidden",children:[E.jsx("button",{onClick:a,className:"p-2 rounded-lg transition-colors hover:bg-muted","aria-label":"Toggle theme",children:r==="light"?E.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})}):E.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})})}),E.jsx("button",{className:"p-2",onClick:()=>t(!e),"aria-label":"Toggle menu",children:E.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})]})]}),e&&E.jsx("div",{className:"border-t md:hidden bg-background",children:E.jsxs("div",{className:"p-4 space-y-2",children:[E.jsx(Wt,{variant:"ghost",size:"sm",className:"w-full",children:"Secondary Action"}),E.jsx(Wt,{size:"sm",className:"w-full",children:"Primary Action"})]})})]})})}function vM(){return E.jsxs("div",{className:"flex flex-col min-h-screen",children:[E.jsx(gM,{}),E.jsx(mM,{}),E.jsx(jP,{}),E.jsx(tx,{variant:"floating",position:"bottom-right",privacyPolicyUrl:"/privacy-policy"})]})}const j1=k.forwardRef(({className:e,...t},r)=>E.jsx("div",{ref:r,className:Qe("rounded-xl border bg-card text-card-foreground shadow",e),...t}));j1.displayName="Card";const O1=k.forwardRef(({className:e,...t},r)=>E.jsx("div",{ref:r,className:Qe("flex flex-col space-y-1.5 p-6",e),...t}));O1.displayName="CardHeader";const L1=k.forwardRef(({className:e,...t},r)=>E.jsx("div",{ref:r,className:Qe("font-semibold leading-none tracking-tight",e),...t}));L1.displayName="CardTitle";const yM=k.forwardRef(({className:e,...t},r)=>E.jsx("div",{ref:r,className:Qe("text-sm text-muted-foreground",e),...t}));yM.displayName="CardDescription";const z1=k.forwardRef(({className:e,...t},r)=>E.jsx("div",{ref:r,className:Qe("p-6 pt-0",e),...t}));z1.displayName="CardContent";const F1=k.forwardRef(({className:e,...t},r)=>E.jsx("div",{ref:r,className:Qe("flex items-center p-6 pt-0",e),...t}));F1.displayName="CardFooter";const V1=()=>{const[e,t]=k.useState(!1),r=P0();k.useEffect(()=>{t(!0)},[]);const{isConsentRequired:i,privacyPolicyUrl:a,termsOfServiceUrl:l}=Ul(),{showBanner:u,acceptAll:d,rejectAll:f,openModal:h,texts:m}=_b(),{showModal:y,setShowModal:w}=t0(),v=k.useRef(null),C=k.useRef(null),S=k.useRef(null);k.useEffect(()=>{if(u||y){const $=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${$}px`,document.body.style.width="100%",document.body.style.overflow="hidden",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",window.scrollTo(0,$)}}},[u,y]),k.useEffect(()=>{u&&v.current&&setTimeout(()=>{var j;(j=C.current)==null||j.focus()},100)},[u]);const b=k.useCallback(j=>{var $;if(j.key==="Tab"){const B=($=v.current)==null?void 0:$.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!B||B.length===0)return;const z=B[0],Z=B[B.length-1];j.shiftKey&&document.activeElement===z?(j.preventDefault(),Z.focus()):!j.shiftKey&&document.activeElement===Z&&(j.preventDefault(),z.focus())}else j.key==="Escape"&&A()},[]),T=k.useCallback(()=>{d()},[d]),A=k.useCallback(()=>{f()},[f]),I=k.useCallback(()=>{h()},[h]),M=k.useMemo(()=>(r==="dev"||i)&&u,[r,i,u]);return!e||!M&&!y?null:E.jsxs(E.Fragment,{children:[M&&E.jsx("div",{ref:v,onKeyDown:b,className:"flex fixed inset-0 bottom-0 z-50 justify-center items-end p-4 border-t shadow-lg bg-background/80",role:"dialog","aria-label":"Cookie consent banner","aria-describedby":"cookie-banner-description",children:E.jsx("div",{className:"mx-auto max-w-lg",children:E.jsxs(j1,{className:"overflow-hidden border-border",children:[E.jsx(O1,{className:"pb-0",children:E.jsx(L1,{className:"flex gap-2 items-center text-lg",children:m.title})}),E.jsx(z1,{className:"space-y-4",children:E.jsx("p",{id:"cookie-banner-description",className:"text-sm leading-relaxed text-muted-foreground",children:m.description})}),E.jsxs(F1,{className:"flex gap-2 items-center py-4 border-t bg-muted",children:[E.jsx(Wt,{ref:C,onClick:T,size:"sm",children:m.acceptAll}),E.jsx(Wt,{ref:S,onClick:I,variant:"outline",size:"sm",children:m.manageCookies})]})]})})}),E.jsx(Gf,{open:y,onOpenChange:w,privacyPolicyUrl:a,termsOfServiceUrl:l})]})};V1.displayName="CookieBanner";var wM=(e,t,r,i,a,l,u,d)=>{let f=document.documentElement,h=["light","dark"];function m(v){(Array.isArray(e)?e:[e]).forEach(C=>{let S=C==="class",b=S&&l?a.map(T=>l[T]||T):a;S?(f.classList.remove(...b),f.classList.add(l&&l[v]?l[v]:v)):f.setAttribute(C,v)}),y(v)}function y(v){d&&h.includes(v)&&(f.style.colorScheme=v)}function w(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)m(i);else try{let v=localStorage.getItem(t)||r,C=u&&v==="system"?w():v;m(C)}catch{}},xM=k.createContext(void 0),SM={setTheme:e=>{},themes:[]},kM=()=>{var e;return(e=k.useContext(xM))!=null?e:SM};k.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:i,enableColorScheme:a,defaultTheme:l,value:u,themes:d,nonce:f,scriptProps:h})=>{let m=JSON.stringify([r,t,l,e,d,u,i,a]).slice(1,-1);return k.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${wM.toString()})(${m})`}})});var bM=e=>{switch(e){case"success":return TM;case"info":return AM;case"warning":return _M;case"error":return PM;default:return null}},CM=Array(12).fill(0),EM=({visible:e,className:t})=>q.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},q.createElement("div",{className:"sonner-spinner"},CM.map((r,i)=>q.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),TM=q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},q.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),_M=q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},q.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),AM=q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},q.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),PM=q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},q.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),IM=q.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},q.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),q.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),RM=()=>{let[e,t]=q.useState(document.hidden);return q.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},wf=1,NM=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...i}=e,a=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:wf++,l=this.toasts.find(d=>d.id===a),u=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),l?this.toasts=this.toasts.map(d=>d.id===a?(this.publish({...d,...e,id:a,title:r}),{...d,...e,id:a,dismissible:u,title:r}):d):this.addToast({title:r,...i,dismissible:u,id:a}),a},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let i=e instanceof Promise?e:e(),a=r!==void 0,l,u=i.then(async f=>{if(l=["resolve",f],q.isValidElement(f))a=!1,this.create({id:r,type:"default",message:f});else if(DM(f)&&!f.ok){a=!1;let h=typeof t.error=="function"?await t.error(`HTTP error! status: ${f.status}`):t.error,m=typeof t.description=="function"?await t.description(`HTTP error! status: ${f.status}`):t.description;this.create({id:r,type:"error",message:h,description:m})}else if(t.success!==void 0){a=!1;let h=typeof t.success=="function"?await t.success(f):t.success,m=typeof t.description=="function"?await t.description(f):t.description;this.create({id:r,type:"success",message:h,description:m})}}).catch(async f=>{if(l=["reject",f],t.error!==void 0){a=!1;let h=typeof t.error=="function"?await t.error(f):t.error,m=typeof t.description=="function"?await t.description(f):t.description;this.create({id:r,type:"error",message:h,description:m})}}).finally(()=>{var f;a&&(this.dismiss(r),r=void 0),(f=t.finally)==null||f.call(t)}),d=()=>new Promise((f,h)=>u.then(()=>l[0]==="reject"?h(l[1]):f(l[1])).catch(h));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||wf++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},jt=new NM,MM=(e,t)=>{let r=(t==null?void 0:t.id)||wf++;return jt.addToast({title:e,...t,id:r}),r},DM=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",jM=MM,OM=()=>jt.toasts,LM=()=>jt.getActiveToasts();Object.assign(jM,{success:jt.success,info:jt.info,warning:jt.warning,error:jt.error,custom:jt.custom,message:jt.message,promise:jt.promise,dismiss:jt.dismiss,loading:jt.loading},{getHistory:OM,getToasts:LM});function zM(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}zM(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function fl(e){return e.label!==void 0}var FM=3,VM="32px",BM="16px",Ry=4e3,$M=356,UM=14,WM=20,HM=200;function vn(...e){return e.filter(Boolean).join(" ")}function GM(e){let[t,r]=e.split("-"),i=[];return t&&i.push(t),r&&i.push(r),i}var KM=e=>{var t,r,i,a,l,u,d,f,h,m,y;let{invert:w,toast:v,unstyled:C,interacting:S,setHeights:b,visibleToasts:T,heights:A,index:I,toasts:M,expanded:j,removeToast:$,defaultRichColors:B,closeButton:z,style:Z,cancelButtonStyle:re,actionButtonStyle:ke,className:me="",descriptionClassName:we="",duration:de,position:be,gap:ce,loadingIcon:Q,expandByDefault:D,classNames:U,icons:W,closeButtonAriaLabel:N="Close toast",pauseWhenPageIsHidden:V}=e,[X,J]=q.useState(null),[fe,ge]=q.useState(null),[ee,Ce]=q.useState(!1),[Te,je]=q.useState(!1),[it,Ct]=q.useState(!1),[zt,sr]=q.useState(!1),[co,zr]=q.useState(!1),[Fr,ar]=q.useState(0),[bn,lr]=q.useState(0),Kt=q.useRef(v.duration||de||Ry),fo=q.useRef(null),Cn=q.useRef(null),Fs=I===0,Vs=I+1<=T,vt=v.type,En=v.dismissible!==!1,po=v.className||"",Bs=v.descriptionClassName||"",Tn=q.useMemo(()=>A.findIndex(Se=>Se.toastId===v.id)||0,[A,v.id]),Vr=q.useMemo(()=>{var Se;return(Se=v.closeButton)!=null?Se:z},[v.closeButton,z]),$s=q.useMemo(()=>v.duration||de||Ry,[v.duration,de]),ho=q.useRef(0),Hn=q.useRef(0),Us=q.useRef(0),_n=q.useRef(null),[ki,bi]=be.split("-"),mo=q.useMemo(()=>A.reduce((Se,Ne,De)=>De>=Tn?Se:Se+Ne.height,0),[A,Tn]),go=RM(),ur=v.invert||w,An=vt==="loading";Hn.current=q.useMemo(()=>Tn*ce+mo,[Tn,mo]),q.useEffect(()=>{Kt.current=$s},[$s]),q.useEffect(()=>{Ce(!0)},[]),q.useEffect(()=>{let Se=Cn.current;if(Se){let Ne=Se.getBoundingClientRect().height;return lr(Ne),b(De=>[{toastId:v.id,height:Ne,position:v.position},...De]),()=>b(De=>De.filter(yt=>yt.toastId!==v.id))}},[b,v.id]),q.useLayoutEffect(()=>{if(!ee)return;let Se=Cn.current,Ne=Se.style.height;Se.style.height="auto";let De=Se.getBoundingClientRect().height;Se.style.height=Ne,lr(De),b(yt=>yt.find(Et=>Et.toastId===v.id)?yt.map(Et=>Et.toastId===v.id?{...Et,height:De}:Et):[{toastId:v.id,height:De,position:v.position},...yt])},[ee,v.title,v.description,b,v.id]);let ln=q.useCallback(()=>{je(!0),ar(Hn.current),b(Se=>Se.filter(Ne=>Ne.toastId!==v.id)),setTimeout(()=>{$(v)},HM)},[v,$,b,Hn]);q.useEffect(()=>{if(v.promise&&vt==="loading"||v.duration===1/0||v.type==="loading")return;let Se;return j||S||V&&go?(()=>{if(Us.current{var Ne;(Ne=v.onAutoClose)==null||Ne.call(v,v),ln()},Kt.current)),()=>clearTimeout(Se)},[j,S,v,vt,V,go,ln]),q.useEffect(()=>{v.delete&&ln()},[ln,v.delete]);function Ws(){var Se,Ne,De;return W!=null&&W.loading?q.createElement("div",{className:vn(U==null?void 0:U.loader,(Se=v==null?void 0:v.classNames)==null?void 0:Se.loader,"sonner-loader"),"data-visible":vt==="loading"},W.loading):Q?q.createElement("div",{className:vn(U==null?void 0:U.loader,(Ne=v==null?void 0:v.classNames)==null?void 0:Ne.loader,"sonner-loader"),"data-visible":vt==="loading"},Q):q.createElement(EM,{className:vn(U==null?void 0:U.loader,(De=v==null?void 0:v.classNames)==null?void 0:De.loader),visible:vt==="loading"})}return q.createElement("li",{tabIndex:0,ref:Cn,className:vn(me,po,U==null?void 0:U.toast,(t=v==null?void 0:v.classNames)==null?void 0:t.toast,U==null?void 0:U.default,U==null?void 0:U[vt],(r=v==null?void 0:v.classNames)==null?void 0:r[vt]),"data-sonner-toast":"","data-rich-colors":(i=v.richColors)!=null?i:B,"data-styled":!(v.jsx||v.unstyled||C),"data-mounted":ee,"data-promise":!!v.promise,"data-swiped":co,"data-removed":Te,"data-visible":Vs,"data-y-position":ki,"data-x-position":bi,"data-index":I,"data-front":Fs,"data-swiping":it,"data-dismissible":En,"data-type":vt,"data-invert":ur,"data-swipe-out":zt,"data-swipe-direction":fe,"data-expanded":!!(j||D&&ee),style:{"--index":I,"--toasts-before":I,"--z-index":M.length-I,"--offset":`${Te?Fr:Hn.current}px`,"--initial-height":D?"auto":`${bn}px`,...Z,...v.style},onDragEnd:()=>{Ct(!1),J(null),_n.current=null},onPointerDown:Se=>{An||!En||(fo.current=new Date,ar(Hn.current),Se.target.setPointerCapture(Se.pointerId),Se.target.tagName!=="BUTTON"&&(Ct(!0),_n.current={x:Se.clientX,y:Se.clientY}))},onPointerUp:()=>{var Se,Ne,De,yt;if(zt||!En)return;_n.current=null;let Et=Number(((Se=Cn.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tt=Number(((Ne=Cn.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),un=new Date().getTime()-((De=fo.current)==null?void 0:De.getTime()),st=X==="x"?Et:Tt,Pn=Math.abs(st)/un;if(Math.abs(st)>=WM||Pn>.11){ar(Hn.current),(yt=v.onDismiss)==null||yt.call(v,v),ge(X==="x"?Et>0?"right":"left":Tt>0?"down":"up"),ln(),sr(!0),zr(!1);return}Ct(!1),J(null)},onPointerMove:Se=>{var Ne,De,yt,Et;if(!_n.current||!En||((Ne=window.getSelection())==null?void 0:Ne.toString().length)>0)return;let Tt=Se.clientY-_n.current.y,un=Se.clientX-_n.current.x,st=(De=e.swipeDirections)!=null?De:GM(be);!X&&(Math.abs(un)>1||Math.abs(Tt)>1)&&J(Math.abs(un)>Math.abs(Tt)?"x":"y");let Pn={x:0,y:0};X==="y"?(st.includes("top")||st.includes("bottom"))&&(st.includes("top")&&Tt<0||st.includes("bottom")&&Tt>0)&&(Pn.y=Tt):X==="x"&&(st.includes("left")||st.includes("right"))&&(st.includes("left")&&un<0||st.includes("right")&&un>0)&&(Pn.x=un),(Math.abs(Pn.x)>0||Math.abs(Pn.y)>0)&&zr(!0),(yt=Cn.current)==null||yt.style.setProperty("--swipe-amount-x",`${Pn.x}px`),(Et=Cn.current)==null||Et.style.setProperty("--swipe-amount-y",`${Pn.y}px`)}},Vr&&!v.jsx?q.createElement("button",{"aria-label":N,"data-disabled":An,"data-close-button":!0,onClick:An||!En?()=>{}:()=>{var Se;ln(),(Se=v.onDismiss)==null||Se.call(v,v)},className:vn(U==null?void 0:U.closeButton,(a=v==null?void 0:v.classNames)==null?void 0:a.closeButton)},(l=W==null?void 0:W.close)!=null?l:IM):null,v.jsx||k.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:q.createElement(q.Fragment,null,vt||v.icon||v.promise?q.createElement("div",{"data-icon":"",className:vn(U==null?void 0:U.icon,(u=v==null?void 0:v.classNames)==null?void 0:u.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||Ws():null,v.type!=="loading"?v.icon||(W==null?void 0:W[vt])||bM(vt):null):null,q.createElement("div",{"data-content":"",className:vn(U==null?void 0:U.content,(d=v==null?void 0:v.classNames)==null?void 0:d.content)},q.createElement("div",{"data-title":"",className:vn(U==null?void 0:U.title,(f=v==null?void 0:v.classNames)==null?void 0:f.title)},typeof v.title=="function"?v.title():v.title),v.description?q.createElement("div",{"data-description":"",className:vn(we,Bs,U==null?void 0:U.description,(h=v==null?void 0:v.classNames)==null?void 0:h.description)},typeof v.description=="function"?v.description():v.description):null),k.isValidElement(v.cancel)?v.cancel:v.cancel&&fl(v.cancel)?q.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||re,onClick:Se=>{var Ne,De;fl(v.cancel)&&En&&((De=(Ne=v.cancel).onClick)==null||De.call(Ne,Se),ln())},className:vn(U==null?void 0:U.cancelButton,(m=v==null?void 0:v.classNames)==null?void 0:m.cancelButton)},v.cancel.label):null,k.isValidElement(v.action)?v.action:v.action&&fl(v.action)?q.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||ke,onClick:Se=>{var Ne,De;fl(v.action)&&((De=(Ne=v.action).onClick)==null||De.call(Ne,Se),!Se.defaultPrevented&&ln())},className:vn(U==null?void 0:U.actionButton,(y=v==null?void 0:v.classNames)==null?void 0:y.actionButton)},v.action.label):null))};function Ny(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function YM(e,t){let r={};return[e,t].forEach((i,a)=>{let l=a===1,u=l?"--mobile-offset":"--offset",d=l?BM:VM;function f(h){["top","right","bottom","left"].forEach(m=>{r[`${u}-${m}`]=typeof h=="number"?`${h}px`:h})}typeof i=="number"||typeof i=="string"?f(i):typeof i=="object"?["top","right","bottom","left"].forEach(h=>{i[h]===void 0?r[`${u}-${h}`]=d:r[`${u}-${h}`]=typeof i[h]=="number"?`${i[h]}px`:i[h]}):f(d)}),r}var qM=k.forwardRef(function(e,t){let{invert:r,position:i="bottom-right",hotkey:a=["altKey","KeyT"],expand:l,closeButton:u,className:d,offset:f,mobileOffset:h,theme:m="light",richColors:y,duration:w,style:v,visibleToasts:C=FM,toastOptions:S,dir:b=Ny(),gap:T=UM,loadingIcon:A,icons:I,containerAriaLabel:M="Notifications",pauseWhenPageIsHidden:j}=e,[$,B]=q.useState([]),z=q.useMemo(()=>Array.from(new Set([i].concat($.filter(V=>V.position).map(V=>V.position)))),[$,i]),[Z,re]=q.useState([]),[ke,me]=q.useState(!1),[we,de]=q.useState(!1),[be,ce]=q.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Q=q.useRef(null),D=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=q.useRef(null),W=q.useRef(!1),N=q.useCallback(V=>{B(X=>{var J;return(J=X.find(fe=>fe.id===V.id))!=null&&J.delete||jt.dismiss(V.id),X.filter(({id:fe})=>fe!==V.id)})},[]);return q.useEffect(()=>jt.subscribe(V=>{if(V.dismiss){B(X=>X.map(J=>J.id===V.id?{...J,delete:!0}:J));return}setTimeout(()=>{Cf.flushSync(()=>{B(X=>{let J=X.findIndex(fe=>fe.id===V.id);return J!==-1?[...X.slice(0,J),{...X[J],...V},...X.slice(J+1)]:[V,...X]})})})}),[]),q.useEffect(()=>{if(m!=="system"){ce(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ce("dark"):ce("light")),typeof window>"u")return;let V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:X})=>{ce(X?"dark":"light")})}catch{V.addListener(({matches:J})=>{try{ce(J?"dark":"light")}catch(fe){console.error(fe)}})}},[m]),q.useEffect(()=>{$.length<=1&&me(!1)},[$]),q.useEffect(()=>{let V=X=>{var J,fe;a.every(ge=>X[ge]||X.code===ge)&&(me(!0),(J=Q.current)==null||J.focus()),X.code==="Escape"&&(document.activeElement===Q.current||(fe=Q.current)!=null&&fe.contains(document.activeElement))&&me(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[a]),q.useEffect(()=>{if(Q.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,W.current=!1)}},[Q.current]),q.createElement("section",{ref:t,"aria-label":`${M} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},z.map((V,X)=>{var J;let[fe,ge]=V.split("-");return $.length?q.createElement("ol",{key:V,dir:b==="auto"?Ny():b,tabIndex:-1,ref:Q,className:d,"data-sonner-toaster":!0,"data-theme":be,"data-y-position":fe,"data-lifted":ke&&$.length>1&&!l,"data-x-position":ge,style:{"--front-toast-height":`${((J=Z[0])==null?void 0:J.height)||0}px`,"--width":`${$M}px`,"--gap":`${T}px`,...v,...YM(f,h)},onBlur:ee=>{W.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(W.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||W.current||(W.current=!0,U.current=ee.relatedTarget)},onMouseEnter:()=>me(!0),onMouseMove:()=>me(!0),onMouseLeave:()=>{we||me(!1)},onDragEnd:()=>me(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||de(!0)},onPointerUp:()=>de(!1)},$.filter(ee=>!ee.position&&X===0||ee.position===V).map((ee,Ce)=>{var Te,je;return q.createElement(KM,{key:ee.id,icons:I,index:Ce,toast:ee,defaultRichColors:y,duration:(Te=S==null?void 0:S.duration)!=null?Te:w,className:S==null?void 0:S.className,descriptionClassName:S==null?void 0:S.descriptionClassName,invert:r,visibleToasts:C,closeButton:(je=S==null?void 0:S.closeButton)!=null?je:u,interacting:we,position:V,style:S==null?void 0:S.style,unstyled:S==null?void 0:S.unstyled,classNames:S==null?void 0:S.classNames,cancelButtonStyle:S==null?void 0:S.cancelButtonStyle,actionButtonStyle:S==null?void 0:S.actionButtonStyle,removeToast:N,toasts:$.filter(it=>it.position==ee.position),heights:Z.filter(it=>it.position==ee.position),setHeights:re,expandByDefault:l,gap:T,loadingIcon:A,expanded:ke,pauseWhenPageIsHidden:j,swipeDirections:e.swipeDirections})})):null}))});const XM=({...e})=>{const{theme:t="system"}=kM();return E.jsx(qM,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},My={primaryGoal:{event_id:"external-link-click",event_type:"engagement",event_value:1,event_value_type:"static",event_value_currency:"USD",isCustom:!1},customEvents:[]},Qo={googleTagManagerId:null,googleAnalyticsId:null,googleSiteVerificationId:null,facebookPixelId:null},St={title:"en",description:"Erkek giyim ve kadın giyim modasına yön veren modelleri ile mont, sweatshirt, ayakkabı, tişört, ceket, gömlek, pantolon çeşitleri Lufian’da sizi bekliyor ",canonical:"https://lufian.com",iconType:"image/png",icon:"https://cdn-dev.getfirebuzz.com/jd7bnpccc10yt3afv5bwmfr35n7kvqvn/j571fy37957eq6j9xfb1fjzjxh7m7k95/38ab22a5-3532-4e04-be5a-dbbdfec0c51c",openGraph:{url:"https://lufian.com"},twitter:{title:"en",description:"Erkek giyim ve kadın giyim modasına yön veren modelleri ile mont, sweatshirt, ayakkabı, tişört, ceket, gömlek, pantolon çeşitleri Lufian’da sizi bekliyor ",url:"https://lufian.com"}};function ZM(){return E.jsxs(gC,{children:[E.jsx("meta",{charSet:"UTF-8"}),E.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),E.jsx("meta",{name:"robots",content:"index, follow"}),E.jsx("meta",{name:"description",content:St.description}),E.jsx("title",{children:St.title}),E.jsx("link",{rel:"icon",type:St.iconType,href:St.icon}),E.jsx("link",{rel:"canonical",href:St.canonical}),E.jsx("meta",{property:"og:title",content:St.title}),E.jsx("meta",{property:"og:description",content:St.description}),E.jsx("meta",{property:"og:image",content:St.openGraph.image}),E.jsx("meta",{property:"og:url",content:St.openGraph.url}),E.jsx("meta",{property:"og:type",content:St.openGraph.type}),E.jsx("meta",{property:"twitter:card",content:St.twitter.card}),E.jsx("meta",{property:"twitter:title",content:St.twitter.title}),E.jsx("meta",{property:"twitter:description",content:St.twitter.description}),E.jsx("meta",{property:"twitter:image",content:St.twitter.image}),E.jsx("meta",{property:"twitter:url",content:St.twitter.url}),Qo.googleSiteVerificationId,Qo.googleTagManagerId,Qo.googleAnalyticsId,Qo.facebookPixelId]})}yC(E.jsxs(E.Fragment,{children:[Qo.googleTagManagerId,E.jsx(Rb,{translations:{language:"en"},gtm:{consentDefaults:{analytics_storage:"denied",ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted"}},debug:!1,children:E.jsxs(eE,{customEvents:My.customEvents,primaryGoal:My.primaryGoal,debug:!1,children:[E.jsxs(hA,{children:[E.jsx(ZM,{}),E.jsx(vM,{}),E.jsx(XM,{})]}),E.jsx(V1,{})]})}),Qo.facebookPixelId]}),async()=>{},{});export{di as g,uC as r};