https://rentflatpoland.com/_next/static/chunks/2g4o-3vokwgxx.js?dpl=dpl_HFVJHSxUAAWmtF3B2brfGQjL244x
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22027,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(18566),i=e.i(74080),a=e.i(63676);let s=(0,e.i(56420).default)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]);var o=e.i(32781),l=e.i(96315),u=e.i(62864);let c={missing_credentials:"Please enter your username and password.",invalid_credentials:"Incorrect username or password.",backend_unreachable:"The server is unreachable. Please try again."};function d({next:e="/dashboard",onSuccess:i}){let a=(0,r.useRouter)(),[h,p]=(0,n.useTransition)(),[f,m]=(0,n.useState)(""),[g,v]=(0,n.useState)(""),[y,x]=(0,n.useState)(!1),[b,w]=(0,n.useState)(!1),[E,k]=(0,n.useState)(null),[S,C]=(0,n.useState)("login"),[P,T]=(0,n.useState)("");async function j(e){e.preventDefault(),k(null),x(!0);try{let e=await fetch("/api/auth/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:P})}),t=await e.json();if(!t.ok)return void k("invalid_email"===t.error?"Please enter a valid email address.":"Something went wrong. Please try again.");C("sent")}catch{k("Network error. Please try again.")}finally{x(!1)}}function M(e){k(null),C(e)}async function A(t){t.preventDefault(),k(null),x(!0);try{let t=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:f,password:g})}),n=await t.json();if(!n.ok){k(c[n.error]??"Sign in failed. Please try again."),x(!1);return}w(!0),p(()=>{a.replace(e),a.refresh()})}catch{k("Network error. Please try again."),x(!1)}}(0,n.useEffect)(()=>{b&&!h&&i?.()},[b,h,i]);let R=y||b;return b?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3 py-10 text-center",children:[(0,t.jsx)(o.Loader2,{className:"h-8 w-8 animate-spin text-primary"}),(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Signing you inâ¦"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Taking you to your dashboard."})]}):"sent"===S?(0,t.jsxs)("div",{className:"space-y-5 text-center",children:[(0,t.jsx)(l.Mail,{className:"mx-auto h-8 w-8 text-primary"}),(0,t.jsxs)("p",{className:"text-sm text-foreground",children:["If an account exists for ",(0,t.jsx)("span",{className:"font-semibold",children:P}),", you will receive an email with a link to reset your password."]}),(0,t.jsx)("button",{type:"button",onClick:()=>M("login"),className:"text-sm font-medium text-primary hover:underline",children:"Back to sign in"})]}):"forgot"===S?(0,t.jsxs)("form",{onSubmit:j,className:"space-y-5",children:[(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Enter the email address of your account. We will send you a link to choose a new password."}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"forgot-email",className:"mb-1.5 block text-sm font-medium text-foreground",children:"Email"}),(0,t.jsx)("input",{id:"forgot-email",type:"email",autoComplete:"email",required:!0,value:P,onChange:e=>T(e.target.value),className:"w-full rounded-xl border border-gray-border bg-white/70 px-4 py-3 text-sm text-foreground outline-none transition focus:border-primary focus:ring-2 focus:ring-primary/30"})]}),E&&(0,t.jsx)("p",{className:"rounded-lg bg-primary/10 px-4 py-3 text-sm font-medium text-primary",children:E}),(0,t.jsxs)(u.Button,{type:"submit",disabled:y,className:"w-full",children:[y?(0,t.jsx)(o.Loader2,{className:"h-4 w-4 animate-spin"}):(0,t.jsx)(l.Mail,{className:"h-4 w-4"}),y?"Sendingâ¦":"Send reset link"]}),(0,t.jsx)("button",{type:"button",onClick:()=>M("login"),className:"block w-full text-center text-sm font-medium text-muted-foreground hover:text-foreground",children:"Back to sign in"})]}):(0,t.jsxs)("form",{onSubmit:A,className:"space-y-5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"username",className:"mb-1.5 block text-sm font-medium text-foreground",children:"Username or email"}),(0,t.jsx)("input",{id:"username",type:"text",autoComplete:"username",required:!0,value:f,onChange:e=>m(e.target.value),className:"w-full rounded-xl border border-gray-border bg-white/70 px-4 py-3 text-sm text-foreground outline-none transition focus:border-primary focus:ring-2 focus:ring-primary/30"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-1.5 flex items-center justify-between",children:[(0,t.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-foreground",children:"Password"}),(0,t.jsx)("button",{type:"button",onClick:()=>M("forgot"),className:"text-xs font-medium text-primary hover:underline",children:"Forgot password?"})]}),(0,t.jsx)("input",{id:"password",type:"password",autoComplete:"current-password",required:!0,value:g,onChange:e=>v(e.target.value),className:"w-full rounded-xl border border-gray-border bg-white/70 px-4 py-3 text-sm text-foreground outline-none transition focus:border-primary focus:ring-2 focus:ring-primary/30"})]}),E&&(0,t.jsx)("p",{className:"rounded-lg bg-primary/10 px-4 py-3 text-sm font-medium text-primary",children:E}),(0,t.jsxs)(u.Button,{type:"submit",disabled:R,className:"w-full",children:[R?(0,t.jsx)(o.Loader2,{className:"h-4 w-4 animate-spin"}):(0,t.jsx)(s,{className:"h-4 w-4"}),R?"Signing inâ¦":"Sign in"]})]})}function h({next:e="/dashboard",onClose:r}){return(0,n.useEffect)(()=>{let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=e=>"Escape"===e.key&&r();return window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}},[r]),(0,i.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 z-100 flex items-center justify-center bg-ink/50 p-4 backdrop-blur-md",onClick:r,role:"dialog","aria-modal":"true","aria-label":"Sign in",children:(0,t.jsxs)("div",{className:"max-h-[90vh] w-full max-w-md overflow-y-auto rounded-3xl border border-white/40 bg-white/60 shadow-2xl ring-1 ring-white/30 backdrop-blur-2xl",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"sticky top-0 z-10 flex items-start justify-between gap-4 border-b border-white/40 bg-white/50 px-6 py-4 backdrop-blur-xl",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("p",{className:"flex items-center gap-1.5 text-xs font-medium text-brand",children:[(0,t.jsx)(s,{className:"h-3.5 w-3.5","aria-hidden":!0}),"Sign in"]}),(0,t.jsx)("h2",{className:"mt-0.5 text-lg font-bold tracking-tight text-ink",children:"Access your dashboard"})]}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":"Close",className:"grid h-9 w-9 shrink-0 place-items-center rounded-full border border-white/50 bg-white/60 text-ink transition-colors hover:bg-white",children:(0,t.jsx)(a.X,{className:"h-4.5 w-4.5"})})]}),(0,t.jsx)("div",{className:"px-6 py-6",children:(0,t.jsx)(d,{next:e,onSuccess:r})})]})}),document.body)}let p=(0,n.createContext)(null);function f(e){return e&&e.startsWith("/")&&!e.startsWith("//")?e:"/dashboard"}function m({onTrigger:e}){let t=(0,r.useRouter)(),i=(0,r.usePathname)(),a=(0,r.useSearchParams)();return(0,n.useEffect)(()=>{"1"===a.get("login")&&(e(f(a.get("next"))),t.replace(i,{scroll:!1}))},[a,e,t,i]),null}e.s(["LoginModalProvider",0,function({children:e}
1){let[r,i]=(0,n.useState)(!1),[a,s]=(0,n.useState)("/dashboard"),o=(0,n.useCallback)(e=>{s(f(e)),i(!0)},[]),l=(0,n.useCallback)(()=>i(!1),[]);return(0,t.jsxs)(p.Provider,{value:{openLogin:o,closeLogin:l},children:[e,(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(m,{onTrigger:o})}),r&&(0,t.jsx)(h,{next:a,onClose:l})]})},"useLoginModal",0,function(){let e=(0,n.useContext)(p);if(!e)throw Error("useLoginModal must be used within a LoginModalProvider");return e}],22027)},2411,10260,26330,3536,65491,10772,74606,86312,85369,55146,67176,e=>{"use strict";let t,n;function r(e,t,n,r,i,a){return{pageSlug:e,citySlug:t,cityName:n,cityDisplay:r,metaTitle:`${r} - Erasmus flat. Find your Erasmus accommodation in ${r}`,metaDescription:`Coming to ${r} for Erasmus? Browse our list of Erasmus-friendly flats for rent in ${r}. Furnished apartments near the universities, you can even book in advance.`,intro:`Are you coming to ${r} for your Erasmus semester? Check out below our list of Erasmus-friendly flats in ${r}, furnished, well located and ready for international students.`,whyText:i,areas:a}}let i={warsaw:r("warsaw-erasmus-flat","warsaw","Warsaw","Warsaw","Warsaw hosts some of Poland's largest universities (University of Warsaw, SGH, Warsaw University of Technology) and a huge international community. We help Erasmus students find safe, furnished flats with clear contracts in English, no surprises, no scams.",[{name:"ÅródmieÅcie",text:"The central district, walking distance to the University of Warsaw and packed with cafés, bars and tram lines."},{name:"Mokotów",text:"A green, well-connected residential area popular with students for its calm streets and good value."},{name:"Wola",text:"A fast-growing, modern district with new apartments and quick metro access to the campuses."}]),krakow:r("krakow-erasmus-flat","krakow","Krakow","Kraków","Kraków is the #1 Erasmus destination in Poland, home to the Jagiellonian University and AGH. Its compact, walkable centre makes student life easy. We list furnished flats with English-language lease agreements so you can settle in stress-free.",[{name:"Stare Miasto",text:"The Old Town, right in the heart of student life, surrounded by historic sights and nightlife."},{name:"Kazimierz",text:"The trendy former Jewish quarter, full of bars, street food and a vibrant Erasmus crowd."},{name:"Krowodrza",text:"Close to AGH and the university campuses, quieter and great value for a semester stay."}]),wroclaw:r("wroclaw-erasmus-flat","wroclaw","Wroclaw","WrocÅaw","WrocÅaw is one of Poland's friendliest student cities, with the University of WrocÅaw and a lively Erasmus scene. Our local team (in WrocÅaw since 2016) helps you book a furnished flat near campus, even before you arrive.",[{name:"Stare Miasto",text:"The Old Town and Market Square, central, beautiful and minutes from the main faculties."},{name:"Krzyki",text:"A popular southern district mixing tenement charm with green spaces and good transport."},{name:"Nadodrze",text:"An up-and-coming artsy neighbourhood with affordable rents and a creative vibe."}]),lodz:r("lodz-erasmus-flat","lodz","Lodz","Åódź","Åódź is a budget-friendly student hub in the centre of Poland, home to the University of Åódź and the famous Film School. We help Erasmus students find affordable, furnished flats with transparent contracts in English.",[{name:"ÅródmieÅcie",text:"Central Åódź around Piotrkowska Street, the city's lively pedestrian heart."},{name:"BaÅuty",text:"A large, affordable northern district with easy access to the universities."},{name:"Górna",text:"A residential area offering good value and quick tram links to the campuses."}]),poznan:r("poznan-erasmus-flat","poznan","Poznan","PoznaÅ","PoznaÅ is a dynamic academic city with Adam Mickiewicz University and a strong Erasmus tradition. We list furnished apartments close to campus, with English lease agreements and support throughout your stay.",[{name:"Stare Miasto",text:"The historic centre around the Old Market Square, central and full of student life."},{name:"Jeżyce",text:"A characterful district with cafés and tenement flats, very popular with students."},{name:"Grunwald",text:"A calm, well-connected residential area close to several faculties."}]),gdansk:r("gdansk-erasmus-flat","gdansk","Gdansk","GdaÅsk","GdaÅsk, on the Baltic coast, combines the University of GdaÅsk and GdaÅsk Tech with a relaxed seaside lifestyle. We help Erasmus students rent furnished flats near campus or the beach, with clear English contracts.",[{name:"ÅródmieÅcie",text:"The main town and central districts, historic, walkable and close to the university."}
1,{name:"Wrzeszcz",text:"A lively student district between the campuses, with great transport and amenities."},{name:"Oliwa",text:"A green, calm neighbourhood near GdaÅsk Tech and the seaside park."}])};Object.values(i).map(e=>e.pageSlug);let a=Object.values(i).map(e=>({href:`/${e.pageSlug}/`,label:`Erasmus flat in ${e.cityDisplay}`}));function s(e,t,n,r,i){return{metaTitle:r.metaTitle(e),metaDescription:r.metaDescription(e),intro:r.intro(e),whyText:t,areas:i.map((e,t)=>({name:e,text:n[t]}))}}let o={metaTitle:e=>`${e} - Appartement Erasmus. Trouvez votre logement Erasmus \xe0 ${e}`,metaDescription:e=>`Vous venez \xe0 ${e} pour Erasmus ? Parcourez notre liste d'appartements adapt\xe9s aux \xe9tudiants Erasmus \xe0 louer \xe0 ${e}. Logements meubl\xe9s pr\xe8s des universit\xe9s, vous pouvez m\xeame r\xe9server \xe0 l'avance.`,intro:e=>`Vous venez \xe0 ${e} pour votre semestre Erasmus ? D\xe9couvrez ci-dessous notre liste d'appartements Erasmus \xe0 ${e}, meubl\xe9s, bien situ\xe9s et pr\xeats pour les \xe9tudiants internationaux.`},l={metaTitle:e=>`${e} - Appartamento Erasmus. Trova il tuo alloggio Erasmus a ${e}`,metaDescription:e=>`Vieni a ${e} per l'Erasmus? Sfoglia la nostra lista di appartamenti adatti agli studenti Erasmus in affitto a ${e}. Appartamenti arredati vicino alle universit\xe0, puoi anche prenotare in anticipo.`,intro:e=>`Vieni a ${e} per il tuo semestre Erasmus? Scopri qui sotto la nostra lista di appartamenti Erasmus a ${e}, arredati, ben posizionati e pronti per gli studenti internazionali.`};s("Varsovie","Varsovie accueille certaines des plus grandes universités de Pologne (Université de Varsovie, SGH, Ãcole polytechnique de Varsovie) et une immense communauté internationale. Nous aidons les étudiants Erasmus à trouver des logements meublés et sûrs, avec des contrats clairs en anglais, sans surprises ni arnaques.",["Le quartier central, à quelques pas de l'Université de Varsovie, rempli de cafés, de bars et de lignes de tram.","Un quartier résidentiel vert et bien desservi, apprécié des étudiants pour ses rues calmes et son bon rapport qualité-prix.","Un quartier moderne en plein essor, avec de nouveaux appartements et un accès rapide en métro aux campus."],o,["ÅródmieÅcie","Mokotów","Wola"]),s("Cracovie","Cracovie est la destination Erasmus n°1 en Pologne, abritant l'Université Jagellonne et l'AGH. Son centre compact et piétonnier facilite la vie étudiante. Nous proposons des appartements meublés avec des baux en anglais pour vous installer sans stress.",["La vieille ville, au cÅur de la vie étudiante, entourée de sites historiques et de vie nocturne.","L'ancien quartier juif branché, plein de bars, de street food et d'une scène Erasmus animée.","Proche de l'AGH et des campus, plus calme et d'un excellent rapport qualité-prix pour un semestre."],o,["Stare Miasto","Kazimierz","Krowodrza"]),s("WrocÅaw","WrocÅaw est l'une des villes étudiantes les plus accueillantes de Pologne, avec l'Université de WrocÅaw et une scène Erasmus animée. Notre équipe locale (à WrocÅaw depuis 2016) vous aide à réserver un appartement meublé près du campus, m
1ême avant votre arrivée.",["La vieille ville et la place du marché, centrale, magnifique et à quelques minutes des principales facultés.","Un quartier sud populaire mêlant le charme des immeubles anciens à des espaces verts et de bons transports.","Un quartier artistique en devenir, avec des loyers abordables et une ambiance créative."],o,["Stare Miasto","Krzyki","Nadodrze"]),s("Åódź","Åódź est un pôle étudiant économique au centre de la Pologne, abritant l'Université de Åódź et la célèbre Ãcole de cinéma. Nous aidons les étudiants Erasmus à trouver des logements meublés abordables avec des contrats transparents en anglais.",["Le centre de Åódź autour de la rue Piotrkowska, le cÅur piéton animé de la ville.","Un grand quartier nord abordable, avec un accès facile aux universités.","Un quartier résidentiel offrant un bon rapport qualité-prix et des liaisons rapides en tram vers les campus."],o,["ÅródmieÅcie","BaÅuty","Górna"]),s("PoznaÅ","PoznaÅ est une ville universitaire dynamique avec l'Université Adam Mickiewicz et une forte tradition Erasmus. Nous proposons des appartements meublés proches du campus, avec des baux en anglais et un accompagnement tout au long de votre séjour.",["Le centre historique autour de la place du Vieux Marché, central et plein de vie étudiante.","Un quartier de caractère, avec des cafés et des immeubles anciens, très prisé des étudiants.","Un quartier résidentiel calme et bien desservi, proche de plusieurs facultés."],o,["Stare Miasto","Jeżyce","Grunwald"]),s("GdaÅsk","GdaÅsk, sur la côte baltique, allie l'Université de GdaÅsk et l'Ãcole polytechnique de GdaÅsk à un mode de vie balnéaire détendu. Nous aidons les étudiants Erasmus à louer des appartements meublés près du campus ou de la plage, avec des contrats clairs en anglais.",["La ville principale et les quartiers centraux, historiques, piétonniers et proches de l'université.","Un quartier étudiant animé entre les campus, avec de bons transports et commodités.","Un quartier vert et calme près de l'Ãcole polytechnique de GdaÅsk et du parc en bord de mer."],o,["ÅródmieÅcie","Wrzeszcz","Oliwa"]),s("Varsavia","Varsavia ospita alcune delle più grandi università della Polonia (Università di Varsavia, SGH, Politecnico di Varsavia) e un'enorme comunità internazionale. Aiutiamo gli studenti Erasmus a trovare appartamenti arredati e sicuri, con contratti chiari in inglese, senza sorprese né truffe.",["Il quartiere centrale, a pochi passi dall'Università di Varsavia, pieno di caffè, bar e linee del tram.","Un quartiere residenziale verde e ben collegato, amato dagli studenti per le sue strade tranquille e il buon rapporto qualità -prezzo.","Un quartiere moderno in rapida crescita, con nuovi appartamenti e rapido accesso ai campus con la metro."],l,["ÅródmieÅcie","Mokotów","Wola"]),s("Cracovia","Cracovia è la destinazione Erasmus n°1 in Polonia, sede dell'Università Jagellonica e dell'AGH. Il suo centro compatto e pedonale rende facile la vita studentesca. Proponiamo appartamenti arredati con contratti in inglese per sistemarti senza stress.",["La città vecchia, nel cuore della vita studentesca, circondata da luoghi storici e vita notturna.","L'ex quartiere ebraico trendy, pieno di bar, street food e una vivace scena Erasmus.","Vicino all'AGH e ai campus, più tranquillo e ottimo rapporto qualità -prezzo per un semestre."],l,["Stare Miasto","Kazimierz","Krowodrza"]),s("Breslavia","Breslavia è una delle città studentesche più accoglienti della Polonia, con l'Università di Breslavia e una vivace scena Erasmus. Il nostro team locale (a Breslavia dal 2016) ti aiuta a prenotare un appartamento arredato vicino al campus, anche prima del tuo arrivo.",["La città vecchia e la piazza del mercato, centrale, bellissima e a pochi minuti dalle principali facoltà .","Un popolare quartiere meridionale che unisce il fascino degli edifici d'epoca a spazi verdi e buoni trasporti.","Un quartiere artistico emergente, con affitti accessibili e un'atmosfera creativa."],l,["Stare Miasto","Krzyki","Nadodrze"]),s("Åódź","Åódź è un polo studentesco economico nel centro della Polonia, sede dell'
1Università di Åódź e della famosa Scuola di Cinema. Aiutiamo gli studenti Erasmus a trovare appartamenti arredati a prezzi accessibili con contratti trasparenti in inglese.",["Il centro di Åódź intorno a via Piotrkowska, il vivace cuore pedonale della città .","Un grande quartiere settentrionale economico, con facile accesso alle università .","Un quartiere residenziale che offre un buon rapporto qualità -prezzo e rapidi collegamenti tranviari verso i campus."],l,["ÅródmieÅcie","BaÅuty","Górna"]),s("PoznaÅ","PoznaŠè una dinamica città universitaria con l'Università Adam Mickiewicz e una forte tradizione Erasmus. Proponiamo appartamenti arredati vicino al campus, con contratti in inglese e supporto per tutto il tuo soggiorno.",["Il centro storico intorno alla Piazza del Vecchio Mercato, centrale e pieno di vita studentesca.","Un quartiere caratteristico con caffè ed edifici d'epoca, molto amato dagli studenti.","Un quartiere residenziale tranquillo e ben collegato, vicino a diverse facoltà ."],l,["Stare Miasto","Jeżyce","Grunwald"]),s("Danzica","Danzica, sulla costa baltica, unisce l'Università di Danzica e il Politecnico di Danzica a uno stile di vita balneare rilassato. Aiutiamo gli studenti Erasmus ad affittare appartamenti arredati vicino al campus o alla spiaggia, con contratti chiari in inglese.",["La città principale e i quartieri centrali, storici, pedonali e vicini all'università .","Un vivace quartiere studentesco tra i campus, con ottimi trasporti e servizi.","Un quartiere verde e tranquillo vicino al Politecnico di Danzica e al parco sul mare."],l,["ÅródmieÅcie","Wrzeszcz","Oliwa"]),e.s(["ERASMUS_FOOTER_LINKS",0,a],2411);let u=Object.values({warsaw:{pageSlug:"real-estate-agency-in-warsaw",citySlug:"warsaw",cityDisplay:"Warsaw",metaTitle:"Real Estate Agency in Warsaw: Find your flat now in Warsaw, Poland",metaDescription:"Looking for a Real Estate Agency in Warsaw? Tell us what you need, and we will find the property that matches your criteria. Hire us now!",body:["Are you relocating to Warsaw or just looking to move to a better place? RentFlatPoland is the 1st rental platform for foreigners made by foreigners. What's more, we are a team of awesome real estate agents in Warsaw.","Our real estate agency in Warsaw was set up in July 2015 because we received more and more requests for the capital city of Poland. We have helped hundreds of people from all over the world, with all kinds of needs and backgrounds. To verify the quality of our services, you can check our clients' reviews on our testimonial pages or on our Facebook page."]},wroclaw:{pageSlug:"real-estate-agency-in-wroclaw",citySlug:"wroclaw",cityDisplay:"WrocÅaw",metaTitle:"Real Estate Agency in Wroclaw: Find your flat now in Wroclaw, Poland",metaDescription:"Looking for a Real Estate Agency in WrocÅaw? Tell us what you need, and we will find the property that matches your criteria. Hire us now!",body:["Are you relocating to WrocÅaw or just looking to move to a wonderful place? RentFlatPoland is the 1st rental platform for foreigners made by foreigners. What's more, we are a team of awesome real estate agents motivated to support you in this crucial move!","Our real estate agency was set up in July 2015. We have helped hundreds of people from all over the world, with all kinds of needs and backgrounds. In October 2016 we expanded to beautiful WrocÅaw. To verify the quality of our services, you can check our clients' reviews on our testimonial pages or on our Facebook page."]}}).map(e=>({href:`/${e.pageSlug}/`,label:`Real estate agency in ${e.cityDisplay}`}));e.s(["AGENCY_FOOTER_LINKS",0,u],10260);var c,d,h,p,f,m,g,v,y=e.i(43476),x=e.i(22016),b=e.i(18566),w=e.i(89664);let E=(0,e.i(56420).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);var k=e.i(29121),S=e.i(80981),C=e.i(34875),P=e.i(71645),T=e.i(81140),j=e.i(20783),M=e.i(30030),A=e.i(69340),R=e.i(48425),D=e.i(91918);function L(e){let t=e+"CollectionProvider",[n,r]=(0,M.createContextScope)(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=P.useRef(null),a=P.useRef(new Map).current;return(0,y.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};s.displayName=t;let o=e+"CollectionSlot",l=(0,D.createSlot)(o),u=P.forwardRef((e,t)=>
1{let{scope:n,children:r}=e,i=a(o,n),s=(0,j.useComposedRefs)(t,i.collectionRef);return(0,y.jsx)(l,{ref:s,children:r})});u.displayName=o;let c=e+"CollectionItemSlot",d="data-radix-collection-item",h=(0,D.createSlot)(c),p=P.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,s=P.useRef(null),o=(0,j.useComposedRefs)(t,s),l=a(c,n);return P.useEffect(()=>(l.itemMap.set(s,{ref:s,...i}),()=>void l.itemMap.delete(s))),(0,y.jsx)(h,{...{[d]:""},ref:o,children:r})});return p.displayName=c,[{Provider:s,Slot:u,ItemSlot:p},function(t){let n=a(e+"CollectionConsumer",t);return P.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var N=new WeakMap;function O(e,t){var n,r;let i,a,s;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let o=(n=e,r=t,i=n.length,(s=(a=V(r))>=0?a:i+a)<0||s>=i?-1:s);return -1===o?void 0:e[o]}function V(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],N.set(this,!0)}set(e,t){return N.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),a=this.#e.length,s=V(e),o=s>=0?s:a+s,l=o<0||o>=a?-1:o;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,n),this;let u=this.size+ +!i;s<0&&o++;let c=[...this.#e],d=!1;for(let e=o;e<u;e++)if(o===e){let a=c[e];c[e]===t&&(a=c[e+1]),i&&this.delete(t),r=this.get(a),this.set(t,n)}else{d||c[e-1]!==t||(d=!0);let n=c[d?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=O(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=O(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return O(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}});var I=P.createContext(void 0);function F(e){let t=P.useContext(I);return e||t||"ltr"}var z=e.i(30207),B="dismissableLayer.update",U=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),W=P.forwardRef((e,t)=>
1{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...l}=e,u=P.useContext(U),[c,d]=P.useState(null),h=c?.ownerDocument??globalThis?.document,[,p]=P.useState({}),f=(0,j.useComposedRefs)(t,e=>d(e)),m=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(v),b=c?m.indexOf(c):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=b>=x,k=function(e,t=globalThis?.document){let n=(0,z.useCallbackRef)(e),r=P.useRef(!1),i=P.useRef(()=>{});return P.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){H("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));E&&!n&&(i?.(e),s?.(e),e.defaultPrevented||o?.())},h),S=function(e,t=globalThis?.document){let n=(0,z.useCallbackRef)(e),r=P.useRef(!1);return P.useEffect(()=>{let e=e=>{e.target&&!r.current&&H("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...u.branches].some(e=>e.contains(t))&&(a?.(e),s?.(e),e.defaultPrevented||o?.())},h);return!function(e,t=globalThis?.document){let n=(0,z.useCallbackRef)(e);P.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{b===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&o&&(e.preventDefault(),o()))},h),P.useEffect(()=>{if(c)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(g=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),_(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(c),0===u.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=g))}},[c,h,n,u]),P.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),_())},[c,u]),P.useEffect(()=>{let e=()=>p({});return document.addEventListener(B,e),()=>document.removeEventListener(B,e)},[]),(0,y.jsx)(R.Primitive.div,{...l,ref:f,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:(0,T.composeEventHandlers)(e.onFocusCapture,S.onFocusCapture),onBlurCapture:(0,T.composeEventHandlers)(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:(0,T.composeEventHandlers)(e.onPointerDownCapture,k.onPointerDownCapture)})});function _(){let e=new CustomEvent(B);document.dispatchEvent(e)}function H(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,R.dispatchDiscreteCustomEvent)(i,a):i.dispatchEvent(a)}W.displayName="DismissableLayer",P.forwardRef((e,t)=>{let n=P.useContext(U),r=P.useRef(null),i=(0,j.useComposedRefs)(t,r);return P.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,y.jsx)(R.Primitive.div,{...e,ref:i})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",0,W],26330);var $=0,q=null;function K(){P.useEffect(()=>{q||(q={start:G(),end:G()});let{start:e,end:t}=q;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),$++,()=>{1===$&&(q?.start.remove(),q?.end.remove(),q=null),$=Math.max(0,$-1)}},[])}function G(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}e.s(["useFocusGuards",0,K],3536);var Y="focusScope.autoFocusOnMount",X="focusScope.autoFocusOnUnmount",Z={bubbles:!1,cancelable:!0},J=P.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[o,l]=P.useState(null),u=(0,z.useCallbackRef)(i),c=(0,z.useCallbackRef)(a),d=P.useRef(null),h=(0,j.useComposedRefs)(t,e=>l(e)),p=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(r){let e=function(e){if(p.paused||!o)return;let t=e.target;o.contains(t)?d.current=t:et(d.current,{select:!0})},t=function(e){if(p.paused||!o)return;let t=e.relatedTarget;null!==t&&(o.contains(t)||et(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&et(o)});return o&&n.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,o,p.paused]),P.useEffect(()=>{if(o){en.add(p);let e=document.activeElement;if(!o.contains(e)){let t=new CustomEvent(Y,Z);o.addEventListener(Y,u),o.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(et(r,{select:t}),document.activeElement!==n)return}(Q(o).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&et(o))}return()=>{o.removeEventListener(Y,u),setTimeout(()=>{let t=new CustomEvent(X,Z);o.addEventListener(X,c),o.dispatchEvent(t),t.defaultPrevented||et(e??document.body,{select:!0}),o.removeEventListener(X,c),en.remove(p)},0)}}},[o,u,c,p]);let f=P.useCallback(e=>{if(!n&&!r||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){var a;let t,r=e.currentTarget,[s,o]=[ee(t=Q(a=r),a),ee(t.reverse(),a)];s&&o?e.shiftKey||i!==o?e.shiftKey&&i===s&&(e.preventDefault(),n&&et(o,{select:!0})):(e.preventDefault(),n&&et(s,{select:!0})):i===r&&e.preventDefault()}},[n,r,p.paused]);return(0,y.jsx)(R.Primitive.div,{tabIndex:-1,...s,ref:h,onKeyDown:f})});function Q(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ee(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function et(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}J.displayName="FocusScope";var en=(n=[],{add(e){let t=n[0];e!==t&&t?.pause(),(n=er(n,e)).unshift(e)},remove(e){n=er(n,e),n[0]?.resume()}});function er(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}e.s(["FocusScope",0,J],65491);var ei=e.i(34620),ea=P[" useId ".trim().toString()]||(()=>void 0),es=0;function eo(e){let[t,n]=P.useState(ea());return(0,ei.useLayoutEffect)(()=>{e||n(e=>e??String(es++))},[e]),e||(t?`radix-${t}`:"")}e.s(["useId",0,eo],10772);let el=["top","right","bottom","left"],eu=Math.min,ec=Math.max,ed=Math.round,eh=Math.floor,ep=e=>({x:e,y:e}
1),ef={left:"right",right:"left",bottom:"top",top:"bottom"};function em(e,t){return"function"==typeof e?e(t):e}function eg(e){return e.split("-")[0]}function ev(e){return e.split("-")[1]}function ey(e){return"x"===e?"y":"x"}function ex(e){return"y"===e?"height":"width"}function eb(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function ew(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let eE=["left","right"],ek=["right","left"],eS=["top","bottom"],eC=["bottom","top"];function eP(e){let t=eg(e);return ef[t]+e.slice(t.length)}function eT(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function ej(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function eM(e,t,n){let r,{reference:i,floating:a}=e,s=eb(t),o=ey(eb(t)),l=ex(o),u=eg(t),c="y"===s,d=i.x+i.width/2-a.width/2,h=i.y+i.height/2-a.height/2,p=i[l]/2-a[l]/2;switch(u){case"top":r={x:d,y:i.y-a.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-a.width,y:h};break;default:r={x:i.x,y:i.y}}switch(ev(t)){case"start":r[o]-=p*(n&&c?-1:1);break;case"end":r[o]+=p*(n&&c?-1:1)}return r}async function eA(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:a,rects:s,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=em(t,e),f=eT(p),m=o[h?"floating"===d?"reference":"floating":d],g=ej(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(m)))||n?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await (null==a.getOffsetParent?void 0:a.getOffsetParent(o.floating)),x=await (null==a.isElement?void 0:a.isElement(y))&&await (null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},b=ej(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+f.top)/x.y,bottom:(b.bottom-g.bottom+f.bottom)/x.y,left:(g.left-b.left+f.left)/x.x,right:(b.right-g.right+f.right)/x.x}}let eR=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=s.detectOverflow?s:{...s,detectOverflow:eA},l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=eM(u,r,l),h=r,p=0,f={};for(let n=0;n<a.length;n++){let m=a[n];if(!m)continue;let{name:g,fn:v}=m,{x:y,y:x,data:b,reset:w}=await v({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,re
1cts:u,platform:o,elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=x?x:d,f[g]={...f[g],...b},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(u=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:d}=eM(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};function eD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eL(e){return el.some(t=>e[t]>=0)}let eN=new Set(["left","top"]);async function eO(e,t){let{placement:n,platform:r,elements:i}=e,a=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=eg(n),o=ev(n),l="y"===eb(n),u=eN.has(s)?-1:1,c=a&&l?-1:1,d=em(t,e),{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&"number"==typeof f&&(p="end"===o?-1*f:f),l?{x:p*c,y:h*u}:{x:h*u,y:p*c}}function eV(){return"u">typeof window}function eI(e){return eB(e)?(e.nodeName||"").toLowerCase():"#document"}function eF(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ez(e){var t;return null==(t=(eB(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eB(e){return!!eV()&&(e instanceof Node||e instanceof eF(e).Node)}function eU(e){return!!eV()&&(e instanceof Element||e instanceof eF(e).Element)}function eW(e){return!!eV()&&(e instanceof HTMLElement||e instanceof eF(e).HTMLElement)}function e_(e){return!(!eV()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof eF(e).ShadowRoot)}function eH(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=eJ(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function e$(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let eq=/transform|translate|scale|rotate|perspective|filter/,eK=/paint|layout|strict|content/,eG=e=>!!e&&"none"!==e;function eY(e){let t=eU(e)?eJ(e):e;return eG(t.transform)||eG(t.translate)||eG(t.scale)||eG(t.rotate)||eG(t.perspective)||!eX()&&(eG(t.backdropFilter)||eG(t.filter))||eq.test(t.willChange||"")||eK.test(t.contain||"")}function eX(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function eZ(e){return/^(html|body|#document)$/.test(eI(e))}function eJ(e){return eF(e).getComputedStyle(e)}function eQ(e){return eU(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function e0(e){if("html"===eI(e))return e;let t=e.assignedSlot||e.parentNode||e_(e)&&e.host||ez(e);return e_(t)?t.host:t}function e1(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=e0(t);return eZ(n)?t.ownerDocument?t.ownerDocument.body:t.body:eW(n)&&eH(n)?n:e(n)}(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),s=eF(i);if(!a)return t.concat(i,e1(i,[],n));{let e=e2(s);return t.concat(s,s.visualViewport||[],eH(i)?i:[],e&&n?e1(e):[])}}function e2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function e5(e){let t=eJ(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=eW(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,o=ed(n)!==a||ed(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function e3(e){return eU(e)?e:e.contextElement}function e4(e){let t=e3(e);if(!eW(t))return ep(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=e5(t),s=(a?ed(n.width):n.width)/r,o=(a?ed(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),o&&Number.isFinite(o)||(o=1),{x:s,y:o}}let e6=ep(0);function e8(e){let t=eF(e);return eX()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:e6}function e9(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),s=e3(e),o=ep(1);t&&(r?eU(r)&&(o=e4(r)):o=e4(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===eF(s))&&i)?e8(s):ep(0),u=(a.left+l.x)/o.x,c=(a.top+l.y)/o.y,d=a.width/o.x,h=a.height/o.y;if(s){let e=eF(s),t=r&&eU(r)?eF(r):r,n=e,i=e2(n);for(;i&&r&&t!==n;){let e=e4(i),t=i.getBoundingClientRect(),r=eJ(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,h*=e.y,u+=a,c+=s,i=e2(n=eF(i))}}return ej({width:d,height:h,x:u,y:c})}function e7(e,t){let n=eQ(e).scrollLeft;return t?t.left+n:e9(ez(e)).left+n}function te(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-e7(e,n),y:n.top+t.scrollTop}}function tt(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=eF(e),r=ez(e),i=n.visualVie
1wport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;let e=eX();(!e||e&&"fixed"===t)&&(o=i.offsetLeft,l=i.offsetTop)}let u=e7(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=25&&(a-=s)}else u<=25&&(a+=u);return{width:a,height:s,x:o,y:l}}(e,n);else if("document"===t){let t,n,a,s,o,l,u;r=ez(e),t=ez(r),n=eQ(r),a=r.ownerDocument.body,s=ec(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=ec(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),l=-n.scrollLeft+e7(r),u=-n.scrollTop,"rtl"===eJ(a).direction&&(l+=ec(t.clientWidth,a.clientWidth)-s),i={width:s,height:o,x:l,y:u}}else if(eU(t)){let e,r,a,s,o,l;r=(e=e9(t,!0,"fixed"===n)).top+t.clientTop,a=e.left+t.clientLeft,s=eW(t)?e4(t):ep(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,i={width:o,height:l,x:a*s.x,y:r*s.y}}else{let n=e8(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ej(i)}function tn(e){return"static"===eJ(e).position}function tr(e,t){if(!eW(e)||"fixed"===eJ(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ez(e)===n&&(n=n.ownerDocument.body),n}function ti(e,t){var n;let r=eF(e);if(e$(e))return r;if(!eW(e)){let t=e0(e);for(;t&&!eZ(t);){if(eU(t)&&!tn(t))return t;t=e0(t)}return r}let i=tr(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(eI(n)))&&tn(i);)i=tr(i,t);return i&&eZ(i)&&tn(i)&&!eY(i)?r:i||function(e){let t=e0(e);for(;eW(t)&&!eZ(t);){if(eY(t))return t;if(e$(t))break;t=e0(t)}return null}(e)||r}let ta=async function(e){let t=this.getOffsetParent||ti,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eW(t),i=ez(t),a="fixed"===n,s=e9(e,!0,a,t),o={scrollLeft:0,scrollTop:0},l=ep(0);if(r||!r&&!a)if(("body"!==eI(t)||eH(i))&&(o=eQ(t)),r){let e=e9(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=e7(i));a&&!r&&i&&(l.x=e7(i));let u=!i||r||a?ep(0):te(i,o);return{x:s.left+o.scrollLeft-l.x-u.x,y:s.top+o.scrollTop-l.y-u.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ts={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a="fixed"===i,s=ez(r),o=!!t&&e$(t.floating);if(r===s||o&&a)return n;let l={scrollLeft:0,scrollTop:0},u=ep(1),c=ep(0),d=eW(r);if((d||!d&&!a)&&(("body"!==eI(r)||eH(s))&&(l=eQ(r)),d)){let e=e9(r);u=e4(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let h=!s||d||a?ep(0):te(s,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}},getDocumentElement:ez,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?e$(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=e1(e,[],!1).filter(e=>eU(e)&&"body"!==eI(e)),i=null,a="fixed"===eJ(e).position,s=a?e0(e):e;for(;eU(s)&&!eZ(s);){let t=eJ(s),n=eY(s);n||"fixed"!==t.position||(i=null),(a?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||eH(s)&&!n&&function e(t,n){let r=e0(t);return!(r===n||!eU(r)||eZ(r))&&("fixed"===eJ(r).position||e(r,n))}(e,s)))?i=t:r=r.filter(e=>e!==s),s=e0(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=tt(t,a[0],i),o=s.top,l=s.right,u=s.bottom,c=s.left;for(let e=1;e<a.length;e++){let n=tt(t,a[e],i);o=ec(n.top,o),l=eu(n.right,l),u=eu(n.bottom,u),c=ec(n.left,c)}return{width:l-c,height:u-o,x:c,y:o}},getOffsetParent:ti,getElementRects:ta,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=e5(e);return{width:t,height:n}},getScale:e4,isElement:eU,isRTL:function(e){return"rtl"===eJ(e).direction}};function to(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let tl=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:s,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=em(e,t)||{};if(null==u)return{};let d=eT(c),h={x:n,y:r},p=ey(eb(i)),f=ex(p),m=await s.getDimensions(u),g="y"===p,v=g?"clientHeight":"clientWidth",y=a.reference[f]+a.reference[p]-h[p]-a.floating[f],x=h[p]-a.reference[p],b=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),w=b?b[v]:0;w&&await (null==s.isElement?void 0:s.isElement(b))||(w=o.floating[v]||a.floating[f]);let E=w/2-m[f]/2-1,k=eu(d[g?"top":"left"],E),S=eu(d[g?"bottom":"right"],E),C=w-m[f]-S,P=w/2-m[f]/2+(y/2-x/2),T=ec(k,eu(P,C)),j=!l.arrow&&null!=ev(i)&&P!==T&&a.reference[f]/2-(P<k?k:S)-m[f]/2<0,M=j?P<k?P-k:P-C:0;return{[p]:h[p]+M,data:{[p]:T,centerOffset:P-T-M,...j&&{alignmentOffset:M}},reset:j}}});var tu=e.i(74080),tc="u">typeof document?P.useLayoutEffect:function(){};function td(e,t){let n,r,i;if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!td(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!td(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function th(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tp(e,t){let n=th(e);return Math.round(t*n)/n}function tf(e){let t=P.useRef(e);return tc(()=>{t.current=e}),t}var tm=P.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,y.jsx)(R.Primitive.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,y.jsx)("polygon",{points:"0,0 30,0 15,10"})})});tm.displayName="Arrow";var tg=e.i(35804),tv="Popper",[ty,tx]=(0,M.createContextScope)(tv),[tb,tw]=ty(tv),tE=e=>{let{__scopePopper:t,children:n}=e,[r,i]=P.useState(null),[a,s]=P.useState(void 0);return(0,y.jsx)(tb,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:s,children:n})};tE.displayName=tv;var tk="PopperAnchor",tS=P.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=tw(tk,n),s=P.useRef(null),o=a.onAnchorChange,l=P.useCallback(e=>{s.current=e,e&&o(e)},[o]),u=(0,j.useComposedRefs)(t,l),c=P.useRef(null);P.useEffect(()=>{if(!r)return;let e=c.current;c.current=r.current,e!==c.current&&o(c.current)});let d=a.placementState&&tN(a.placementState),h=d?.[0],p=d?.[1];return r?null:(0,y.jsx)(R.Primitive.div,{"data-radix-popper-side":h,"data-radix-popper-align":p,...i,ref:u})});tS.displayName=tk;var tC="PopperContent",[tP,tT]=ty(tC),tj=P.forwardRef((e,t)=>{var n,r,i,a,s,o,l,u,c,d,h,p,f,m,g,v,x,b,w,E,k;let S,C,T,M,A,D,{__scopePopper:L,side:N="bottom",sideOffset:O=0,align:V="center",alignOffset:I=0,arrowPadding:F=0,avoidCollisions:B=!0,collisionBoundary:U,collisionPadding:W=0,sticky:_="partial",hideWhenDetached:H=!1,updatePositionStrategy:$="optimized",onPlaced:q,...K}=e,G=tw(tC,L),[Y,X]=P.useState(null),Z=(0,j.useComposedRefs)(t,e=>X(e)),[J,Q]=P.useState(null),ee=(0,tg.useSize)(J),et=ee?.width??0,en=ee?.height??0,er="number"==typeof W?W:{top:0,right:0,bottom:0,left:0,...W},ea=U?Array.isArray(U)?U:[U]:void 0,es=void 0!==ea&&ea.length>0,eo={padding:er,boundary:ea?.filter(tD),altBoundary:es},{refs:el,floatingStyles:ed,placement:ep,isPositioned:ef,middlewareData:eT}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[c,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=P.useState(r);td(h,r)||p(r);let[f,m]=P.useState(null),[g,v]=P.useState(null),y=P.useCallback(e=>{e!==E.current&&(E.current=e,m(e))},[]),x=P.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),b=a||f,w=s||g,E=P.useRef(null),k=P.useRef(null),S=P.useRef(c),C=null!=l,T=tf(l),j=tf(i),M=tf(u),A=P.useCallback(()=>{var e,r;let i,a,s;if(!E.current||!k.current)return;let o={placement:t,strategy:n,middleware:h};j.current&&(o.platform=j.current),(e=E.current,r=k.current,i=new Map,s={...(a={platform:ts,...o}).platform,_c:i},eR(e,r,{...a,platform:s})).then(e=>{let t={...e,isPositioned:!1!==M.current};R.current&&!td(S.current,t)&&(S.current=t,tu.flushSync(()=>{d(t)}))})},[h,t,n,j,M]);tc(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let R=P.useRef(!1);tc(()=>(R.current=!0,()=>{R.current=!1}),[]),tc(()=>{if(b&&(E.current=b),w&&(k.current=w),b&&w){if(T.current)return T.current(b,w,A);A()}},[b,w,A,T,C]);let D=P.useMemo(()=>({reference:E,floating:k,setReference:y,setFloating:x}),[y,x]),L=P.useMemo(()=>({reference:b,floating:w}),[b,w]),N=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=tp(L.floating,c.x),r=tp(L.floating,c.y);return o?{...e,transform:"translate("+t+"px, "+r+"px)",...th(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,o,L.floating,c.x,c.y]);return P.useMemo(()=>({...c,update:A,refs:D,elements:L,floatingStyles:N}),[c,A,D,L,N])}({strategy:"fixed",placement:N+("center"!==V?"-"+V:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=e3(e),d=a||s?[...c?e1(c):[],...t?e1(t):[]]:[];
1d.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let h=c&&l?function(e,t){let n,r=null,i=ez(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(o,l){void 0===o&&(o=!1),void 0===l&&(l=1),a();let u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:p}=u;if(o||t(),!h||!p)return;let f={rootMargin:-eh(d)+"px "+-eh(i.clientWidth-(c+h))+"px "+-eh(i.clientHeight-(d+p))+"px "+-eh(c)+"px",threshold:ec(0,eu(1,l))||1},m=!0;function g(t){let r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||to(u,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(g,{...f,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),a}(c,n):null,p=-1,f=null;o&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),c&&!u&&f.observe(c),t&&f.observe(t));let m=u?e9(e):null;return u&&function t(){let r=e9(e);m&&!to(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===$}),elements:{reference:G.anchor},middleware:[{name:(S={name:"offset",options:i=n={mainAxis:O+en,alignmentAxis:I},async fn(e){var t,n;let{x:r,y:a,placement:s,middlewareData:o}=e,l=await eO(e,i);return s===(null==(t=o.offset)?void 0:t.placement)&&null!=(n=o.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:a+l.y,data:{...l,placement:s}}}}).name,fn:S.fn,options:[n,r]},B&&{name:(C={name:"shift",options:c=l={mainAxis:!0,crossAxis:!1,limiter:"partial"===_?{fn:(void 0===(o=a)&&(o={}),{options:o,fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=em(o,e),c={x:t,y:n},d=eb(r),h=ey(d),p=c[h],f=c[d],m=em(s,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+g.mainAxis,n=i.reference[h]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,y;let e="y"===h?"width":"height",t=eN.has(eg(r)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),s=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);f<n?f=n:f>s&&(f=s)}return{[h]:p,[d]:f}}}).fn,options:[a,s]}:void 0,...eo},async fn(e){let{x:t,y:n,placement:r,platform:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=em(c,e),u={x:t,y:n},d=await i.detectOverflow(e,l),h=eb(eg(r)),p=ey(h),f=u[p],m=u[h];
1if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=f+d[e],r=f-d[t];f=ec(n,eu(f,r))}if(s){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=m+d[e],r=m-d[t];m=ec(n,eu(m,r))}let g=o.fn({...e,[p]:f,[h]:m});return{...g,data:{x:g.x-t,y:g.y-n,enabled:{[p]:a,[h]:s}}}}}).name,fn:C.fn,options:[l,u]},B&&{name:(T={name:"flip",options:p=d={...eo},async fn(e){var t,n,r,i,a,s,o,l;let u,c,d,{placement:h,middlewareData:f,rects:m,initialPlacement:g,platform:v,elements:y}=e,{mainAxis:x=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,...C}=em(p,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let P=eg(h),T=eb(g),j=eg(g)===g,M=await (null==v.isRTL?void 0:v.isRTL(y.floating)),A=w||(j||!S?[eP(g)]:(u=eP(g),[ew(g),u,ew(u)])),R="none"!==k;!w&&R&&A.push(...(c=ev(g),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?ek:eE;return t?eE:ek;case"left":case"right":return t?eS:eC;default:return[]}}(eg(g),"start"===k,M),c&&(d=d.map(e=>e+"-"+c),S&&(d=d.concat(d.map(ew)))),d));let D=[g,...A],L=await v.detectOverflow(e,C),N=[],O=(null==(n=f.flip)?void 0:n.overflows)||[];if(x&&N.push(L[P]),b){let e,t,n,r,i=(s=h,o=m,void 0===(l=M)&&(l=!1),e=ev(s),n=ex(t=ey(eb(s))),r="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",o.reference[n]>o.floating[n]&&(r=eP(r)),[r,eP(r)]);N.push(L[i[0]],L[i[1]])}if(O=[...O,{placement:h,overflows:N}],!N.every(e=>e<=0)){let e=((null==(r=f.flip)?void 0:r.index)||0)+1,t=D[e];if(t&&("alignment"!==b||T===eb(t)||O.every(e=>eb(e.placement)!==T||e.overflows[0]>0)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(i=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(E){case"bestFit":{let e=null==(a=O.filter(e=>{if(R){let t=eb(e.placement);return t===T||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=g}if(h!==n)return{reset:{placement:n}}}return{}}}).name,fn:T.fn,options:[d,h]},{name:(M={name:"size",options:g=f={...eo,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${a}px`)}},async fn(e){var t,n;let r,i,{placement:a,rects:s,platform:o,elements:l}=e,{apply:u=()=>{},...c}=em(g,e),d=await o.detectOverflow(e,c),h=eg(a),p=ev(a),f="y"===eb(a),{width:m,height:v}=s.floating;"top"===h||"bottom"===h?(r=h,i=p===(await (null==o.isRTL?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(i=h,r="end"===p?"top":"bottom");let y=v-d.top-d.bottom,x=m-d.left-d.right,b=eu(v-d[r],y),w=eu(m-d[i],x),E=!e.middlewareData.shift,k=b,S=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=x),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(k=y),E&&!p){let e=ec(d.left,0),t=ec(d.right,0),n=ec(d.top,0),r=ec(d.bottom,0);f?S=m-2*(0!==e||0!==t?e+t:ec(d.left,d.right)):k=v-2*(0!==n||0!==r?n+r:ec(d.top,d.bottom))}await u({...e,availableWidth:S,availableHeight:k});let C=await o.getDimensions(l.floating);return m!==C.width||v!==C.height?{reset:{rects:!0}}:{}}}).name,fn:M.fn,options:[f,m]},J&&{name:(A={name:"arrow",options:b=v={element:J,padding:F},fn(e){let{element:t,padding:n}="function"==typeof b?b(e):b;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?tl({element:t.current,padding:n}).fn(e):{}:t?tl({element:t,padding:n}).fn(e):{}}}).name,fn:A.fn,options:[v,x]},tL({arrowWidth:et,arrowHeight:en}),H&&{name:(D={name:"hide",options:k=w={strategy:"referenceHidden",...eo},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...i}=em(k,e);switch(r){case"referenceHidden":{let r=eD(await n.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:eL(r)}}}case"escaped":{let r=eD(await n.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:eL(r)}}}default:return{}}}}).name,fn:D.fn,options:[w,E]}]}),ej=G.setPlacementState;(0,ei.useLayoutEffect)(()=>(ej(ep),()=>{ej(void 0)}),[ep,ej]);let[eM,eA]=tN(ep),eV=(0,z.useCallbackRef)(q);(0,ei.useLayoutEffect)(()=>{ef&&eV?.()},[ef,eV]);let eI=eT.arrow?.x,eF=eT.arrow?.y,eB=eT.arrow?.centerOffset!==0,[eU,eW]=P.useState();return(0,ei.useLayoutEffect)(()=>{Y&&eW(window.getComputedStyle(Y).zIndex)},[Y]),(0,y.jsx)("div",{ref:el.setFloating,"data-radix-popper-content-wrapper":"",style:{...ed,transform:ef?ed.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eU,"--radix-popper-transform-origin":[eT.transformOrigin?.x,eT.transformOrigin?.y].join(" "),...eT.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,y.jsx)(tP,{scope:L,placedSide:eM,placedAlign:eA,onArrowChange:Q,arrowX:eI,arrowY:eF,shouldHideArrow:eB,children:(0,y.jsx)(R.Primitive.div,{"data-side":eM,"data-align":eA,...K,ref:Z,style:{...K.style,animation:ef?void 0:"none"}})})})});tj.displayName=tC;
1var tM="PopperArrow",tA={top:"bottom",right:"left",bottom:"top",left:"right"},tR=P.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=tT(tM,n),a=tA[i.placedSide];return(0,y.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,y.jsx)(tm,{...r,ref:t,style:{...r.style,display:"block"}})})});function tD(e){return null!==e}tR.displayName=tM;var tL=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,s=a?0:e.arrowWidth,o=a?0:e.arrowHeight,[l,u]=tN(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+s/2,h=(i.arrow?.y??0)+o/2,p="",f="";return"bottom"===l?(p=a?c:`${d}px`,f=`${-o}px`):"top"===l?(p=a?c:`${d}px`,f=`${r.floating.height+o}px`):"right"===l?(p=`${-o}px`,f=a?c:`${h}px`):"left"===l&&(p=`${r.floating.width+o}px`,f=a?c:`${h}px`),{data:{x:p,y:f}}}});function tN(e){let[t,n="center"]=e.split("-");return[t,n]}var tO=P.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=P.useState(!1);(0,ei.useLayoutEffect)(()=>a(!0),[]);let s=n||i&&globalThis?.document?.body;return s?tu.createPortal((0,y.jsx)(R.Primitive.div,{...r,ref:t}),s):null});tO.displayName="Portal",e.s(["Portal",0,tO],74606);var tV=e.i(96626),tI="rovingFocusGroup.onEntryFocus",tF={bubbles:!1,cancelable:!0},tz="RovingFocusGroup",[tB,tU,tW]=L(tz),[t_,tH]=(0,M.createContextScope)(tz,[tW]),[t$,tq]=t_(tz),tK=P.forwardRef((e,t)=>(0,y.jsx)(tB.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,y.jsx)(tB.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,y.jsx)(tG,{...e,ref:t})})}));tK.displayName=tz;var tG=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:o,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,h=P.useRef(null),p=(0,j.useComposedRefs)(t,h),f=F(a),[m,g]=(0,A.useControllableState)({prop:s,defaultProp:o??null,onChange:l,caller:tz}),[v,x]=P.useState(!1),b=(0,z.useCallbackRef)(u),w=tU(n),E=P.useRef(!1),[k,S]=P.useState(0);return P.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(tI,b),()=>e.removeEventListener(tI,b)},[b]),(0,y.jsx)(t$,{scope:n,orientation:r,dir:f,loop:i,currentTabStopId:m,onItemFocus:P.useCallback(e=>g(e),[g]),onItemShiftTab:P.useCallback(()=>x(!0),[]),onFocusableItemAdd:P.useCallback(()=>S(e=>e+1),[]),onFocusableItemRemove:P.useCallback(()=>S(e=>e-1),[]),children:(0,y.jsx)(R.Primitive.div,{tabIndex:v||0===k?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:(0,T.composeEventHandlers)(e.onMouseDown,()=>{E.current=!0}),onFocus:(0,T.composeEventHandlers)(e.onFocus,e=>{let t=!E.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(tI,tF);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=w().filter(e=>e.focusable);tJ([e.find(e=>e.active),e.find(e=>e.id===m),...e].filter(Boolean).map(e=>e.ref.current),c)}}E.current=!1}),onBlur:(0,T.composeEventHandlers)(e.onBlur,()=>x(!1))})})}),tY="RovingFocusGroupItem",tX=P.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:s,...o}=e,l=eo(),u=a||l,c=tq(tY,n),d=c.currentTabStopId===u,h=tU(n),{onFocusableItemAdd:p,onFocusableItemRemove:f,currentTabStopId:m}=c;return P.useEffect(()=>{if(r)return p(),()=>f()}
1,[r,p,f]),(0,y.jsx)(tB.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:(0,y.jsx)(R.Primitive.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...o,ref:t,onMouseDown:(0,T.composeEventHandlers)(e.onMouseDown,e=>{r?c.onItemFocus(u):e.preventDefault()}),onFocus:(0,T.composeEventHandlers)(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:(0,T.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return tZ[i]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=c.loop?(n=i,r=a+1,n.map((e,t)=>n[(r+t)%n.length])):i.slice(a+1)}setTimeout(()=>tJ(i))}}),children:"function"==typeof s?s({isCurrentTabStop:d,hasTabStop:null!=m}):s})})});tX.displayName=tY;var tZ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tJ(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var tQ=new WeakMap,t0=new WeakMap,t1={},t2=0,t5=function(e){return e&&(e.host||t5(e.parentNode))},t3=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=t5(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});t1[n]||(t1[n]=new WeakMap);var a=t1[n],s=[],o=new Set,l=new Set(i),u=function(e){!e||o.has(e)||(o.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(o.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(tQ.get(e)||0)+1,u=(a.get(e)||0)+1;tQ.set(e,l),a.set(e,u),s.push(e),1===l&&i&&t0.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),o.clear(),t2++,function(){s.forEach(function(e){var t=tQ.get(e)-1,i=a.get(e)-1;tQ.set(e,t),a.set(e,i),t||(t0.has(e)||e.removeAttribute(r),t0.delete(e)),i||e.removeAttribute(n)}),--t2||(tQ=new WeakMap,tQ=new WeakMap,t0=new WeakMap,t1={})}},t4=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),t3(r,i,n,"aria-hidden")):function(){return null}};e.s(["hideOthers",0,t4],86312);var t6=function(){return(t6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function t8(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var t9=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),t7="width-before-scroll-bar";function ne(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var nt="u">typeof window?P.useLayoutEffect:P.useEffect,nn=new WeakMap,nr=(void 0===c&&(c={}),(void 0===d&&(d=function(e){return e}),h=[],p=!1,f={read:function(){if(p)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return h.length?h[h.length-1]:null},useMedium:function(e){var t=d(e,p);return h.push(t),function(){h=h.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(p=!0;h.length;){var t=h;h=[],t.forEach(e)}
1h={push:function(t){return e(t)},filter:function(){return h}}},assignMedium:function(e){p=!0;var t=[];if(h.length){var n=h;h=[],n.forEach(e),t=h}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),h={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),h}}}}).options=t6({async:!0,ssr:!1},c),f),ni=function(){},na=P.forwardRef(function(e,t){var n,r,i,a,s=P.useRef(null),o=P.useState({onScrollCapture:ni,onWheelCapture:ni,onTouchMoveCapture:ni}),l=o[0],u=o[1],c=e.forwardProps,d=e.children,h=e.className,p=e.removeScrollBar,f=e.enabled,m=e.shards,g=e.sideCar,v=e.noRelative,y=e.noIsolation,x=e.inert,b=e.allowPinchZoom,w=e.as,E=e.gapMode,k=t8(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[s,t],r=function(e){return n.forEach(function(t){return ne(t,e)})},(i=(0,P.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,a=i.facade,nt(function(){var e=nn.get(a);if(e){var t=new Set(e),r=new Set(n),i=a.current;t.forEach(function(e){r.has(e)||ne(e,null)}),r.forEach(function(e){t.has(e)||ne(e,i)})}nn.set(a,n)},[n]),a),C=t6(t6({},k),l);return P.createElement(P.Fragment,null,f&&P.createElement(g,{sideCar:nr,removeScrollBar:p,shards:m,noRelative:v,noIsolation:y,inert:x,setCallbacks:u,allowPinchZoom:!!b,lockRef:s,gapMode:E}),c?P.cloneElement(P.Children.only(d),t6(t6({},C),{ref:S})):P.createElement(void 0===w?"div":w,t6({},C,{className:h,ref:S}),d))});na.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},na.classNames={fullWidth:t7,zeroRight:t9};var ns=function(e){var t=e.sideCar,n=t8(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return P.createElement(r,t6({},n))};ns.isSideCarExport=!0;var no=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=v||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,i;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nl=function(){var e=no();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nu=function(){var e=nl();return function(t){return e(t.styles,t.dynamic),null}},nc={left:0,top:0,right:0,gap:0},nd=function(e){return parseInt(e||"",10)||0},nh=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[nd(n),nd(r),nd(i)]},np=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return nc;var t=nh(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nf=nu(),nm="data-scroll-locked",ng=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,o=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(o,"px ").concat(r,";\n }\n body[").concat(nm,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(o,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(t9," {\n right: ").concat(o,"px ").concat(r,";\n }\n \n .").concat(t7," {\n margin-right: ").concat(o,"px ").concat(r,";\n }\n \n .").concat(t9," .").concat(t9," {\n right: 0 ").concat(r,";\n }\n \n .").concat(t7," .").concat(t7," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(nm,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(o,"px;\n }\n")},nv=function(){var e=parseInt(document.body.getAttribute(nm)||"0",10);return isFinite(e)?e:0},ny=function(){P.useEffect(function(){return document.body.setAttribute(nm,(nv()+1).toString()),function(){var e=nv()-1;e<=0?document.body.removeAttribute(nm):document.body.setAttribute(nm,e.toString())}},[])},nx=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;ny();var a=P.useMemo(function(){return np(i)},[i]);return P.createElement(nf,{styles:ng(a,!t,i,n?"":"!important")})},nb=!1;if("u">typeof window)try{var nw=Object.defineProperty({},"passive",{get:function(){return nb=!0,!0}});window.addEventListener("test",nw,nw),window.removeEventListener("test",nw,nw)}catch(e){nb=!1}var nE=!!nb&&{passive:!1},nk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},nS=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),nC(e,r)){var i=nP(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},nC=function(e,t){return"v"===e?nk(t,"overflowY"):nk(t,"overflowX")},nP=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},nT=function(e,t,n,r,i){var a,s=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),o=s*r,l=n.target,u=t.contains(l),c=!1,d=o>0,h=0,p=0;
1do{if(!l)break;var f=nP(e,l),m=f[0],g=f[1]-f[2]-s*m;(m||g)&&nC(e,l)&&(h+=g,p+=m);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!u&&l!==document.body||u&&(t.contains(l)||t===l))return d&&(i&&1>Math.abs(h)||!i&&o>h)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-o>p)&&(c=!0),c},nj=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nM=function(e){return[e.deltaX,e.deltaY]},nA=function(e){return e&&"current"in e?e.current:e},nR=0,nD=[];let nL=(m=function(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),i=P.useState(nR++)[0],a=P.useState(nu)[0],s=P.useRef(e);P.useEffect(function(){s.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(nA),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=P.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,a=nj(e),o=n.current,l="deltaX"in e?e.deltaX:o[0]-a[0],u="deltaY"in e?e.deltaY:o[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=window.getSelection(),p=h&&h.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var f=nS(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=nS(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var m=r.current||i;return nT(m,t,e,"h"===m?l:u,!0)},[]),l=P.useCallback(function(e){if(nD.length&&nD[nD.length-1]===a){var n="deltaY"in e?nM(e):nj(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(nA).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?o(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=P.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=P.useCallback(function(e){n.current=nj(e),r.current=void 0},[]),d=P.useCallback(function(t){u(t.type,nM(t),t.target,o(t,e.lockRef.current))},[]),h=P.useCallback(function(t){u(t.type,nj(t),t.target,o(t,e.lockRef.current))},[]);P.useEffect(function(){return nD.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,nE),document.addEventListener("touchmove",l,nE),document.addEventListener("touchstart",c,nE),function(){nD=nD.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,nE),document.removeEventListener("touchmove",l,nE),document.removeEventListener("touchstart",c,nE)}},[]);var p=e.removeScrollBar,f=e.inert;return P.createElement(P.Fragment,null,f?P.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?P.createElement(nx,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},nr.useMedium(m),ns);var nN=P.forwardRef(function(e,t){return P.createElement(na,t6({},e,{ref:t,sideCar:nL}))});nN.classNames=na.classNames,e.s(["RemoveScroll",0,nN],85369);var nO=["Enter"," "],nV=["ArrowUp","PageDown","End"],nI=["ArrowDown","PageUp","Home",...nV],nF={ltr:[...nO,"ArrowRight"],rtl:[...nO,"ArrowLeft"]},nz={ltr:["ArrowLeft"],rtl:["ArrowRight"]},nB="Menu",[nU,nW,n_]=L(nB),[nH,n$]=(0,M.createContextScope)(nB,[n_,tx,tH]),nq=tx(),nK=tH(),[nG,nY]=nH(nB),[nX,nZ]=nH(nB),nJ=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:s=!0}=e,o=nq(t),[l,u]=P.useState(null),c=P.useRef(!1),d=(0,z.useCallbackRef)(a),h=F(i);return P.useEffect(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,y.jsx)(tE,{...o,children:(0,y.jsx)(nG,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:(0,y.jsx)(nX,{scope:t,onClose:P.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:h,modal:s,children:r})})})};nJ.displayName=nB;var nQ=P.forwardRef((e,t)=>
1{let{__scopeMenu:n,...r}=e,i=nq(n);return(0,y.jsx)(tS,{...i,...r,ref:t})});nQ.displayName="MenuAnchor";var n0="MenuPortal",[n1,n2]=nH(n0,{forceMount:void 0}),n5=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=nY(n0,t);return(0,y.jsx)(n1,{scope:t,forceMount:n,children:(0,y.jsx)(tV.Presence,{present:n||a.open,children:(0,y.jsx)(tO,{asChild:!0,container:i,children:r})})})};n5.displayName=n0;var n3="MenuContent",[n4,n6]=nH(n3),n8=P.forwardRef((e,t)=>{let n=n2(n3,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=nY(n3,e.__scopeMenu),s=nZ(n3,e.__scopeMenu);return(0,y.jsx)(nU.Provider,{scope:e.__scopeMenu,children:(0,y.jsx)(tV.Presence,{present:r||a.open,children:(0,y.jsx)(nU.Slot,{scope:e.__scopeMenu,children:s.modal?(0,y.jsx)(n9,{...i,ref:t}):(0,y.jsx)(n7,{...i,ref:t})})})})}),n9=P.forwardRef((e,t)=>{let n=nY(n3,e.__scopeMenu),r=P.useRef(null),i=(0,j.useComposedRefs)(t,r);return P.useEffect(()=>{let e=r.current;if(e)return t4(e)},[]),(0,y.jsx)(rt,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,T.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),n7=P.forwardRef((e,t)=>{let n=nY(n3,e.__scopeMenu);return(0,y.jsx)(rt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),re=(0,D.createSlot)("MenuContent.ScrollLock"),rt=P.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:o,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:h,onDismiss:p,disableOutsideScroll:f,...m}=e,g=nY(n3,n),v=nZ(n3,n),x=nq(n),b=nK(n),w=nW(n),[E,k]=P.useState(null),S=P.useRef(null),C=(0,j.useComposedRefs)(t,S,g.onContentChange),M=P.useRef(0),A=P.useRef(""),R=P.useRef(0),D=P.useRef(null),L=P.useRef("right"),N=P.useRef(0),O=f?nN:P.Fragment;P.useEffect(()=>()=>window.clearTimeout(M.current),[]),K();let V=P.useCallback(e=>{var t,n;return L.current===D.current?.side&&(t=e,!!(n=D.current?.area)&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let s=t[e],o=t[a],l=s.x,u=s.y,c=o.x,d=o.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}({x:t.clientX,y:t.clientY},n))},[]);return(0,y.jsx)(n4,{scope:n,searchRef:A,onItemEnter:P.useCallback(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:P.useCallback(e=>{V(e)||(S.current?.focus(),k(null))},[V]),onTriggerLeave:P.useCallback(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:R,onPointerGraceIntentChange:P.useCallback(e=>{D.current=e},[]),children:(0,y.jsx)(O,{...f?{as:re,allowPinchZoom:!0}:void 0,children:(0,y.jsx)(J,{asChild:!0,trapped:i,onMountAutoFocus:(0,T.composeEventHandlers)(a,e=>{e.preventDefault(),S.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,y.jsx)(W,{asChild:!0,disableOutsidePointerEvents:o,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:h,onDismiss:p,children:(0,y.jsx)(tK,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:k,onEntryFocus:(0,T.composeEventHandlers)(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,y.jsx)(tj,{role:"menu","aria-orientation":"vertical","data-state":rM(g.open),"data-radix-menu-content":"",dir:v.dir,...x,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:(0,T.composeEventHandlers)(m.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;if(t){var i;let t,a,s,o,l,u;"Tab"===e.key&&e.preventDefault(),!n&&r&&(i=e.key,t=A.current+i,a=w().filter(e=>!e.disabled),s=document.activeElement,o=a.find(e=>e.ref.current===s)?.textValue,l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(s=s.filter(e=>e!==n));let o=s.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return o!==n?o:void 0}(a.map(e=>e.textValue),t,o),u=a.find(e=>e.textValue===l)?.ref.current,function e(t){A.current=t,window.clearTimeout(
1M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let a=S.current;if(e.target!==a||!nI.includes(e.key))return;e.preventDefault();let s=w().filter(e=>!e.disabled).map(e=>e.ref.current);nV.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,T.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),A.current="")}),onPointerMove:(0,T.composeEventHandlers)(e.onPointerMove,rD(e=>{let t=e.target,n=N.current!==e.clientX;e.currentTarget.contains(t)&&n&&(L.current=e.clientX>N.current?"right":"left",N.current=e.clientX)}))})})})})})})});n8.displayName=n3;var rn=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,y.jsx)(R.Primitive.div,{role:"group",...r,ref:t})});rn.displayName="MenuGroup";var rr=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,y.jsx)(R.Primitive.div,{...r,ref:t})});rr.displayName="MenuLabel";var ri="MenuItem",ra="menu.itemSelect",rs=P.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=P.useRef(null),s=nZ(ri,e.__scopeMenu),o=n6(ri,e.__scopeMenu),l=(0,j.useComposedRefs)(t,a),u=P.useRef(!1);return(0,y.jsx)(ro,{...i,ref:l,disabled:n,onClick:(0,T.composeEventHandlers)(e.onClick,()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(ra,{bubbles:!0,cancelable:!0});e.addEventListener(ra,e=>r?.(e),{once:!0}),(0,R.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?u.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:(0,T.composeEventHandlers)(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:(0,T.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==o.searchRef.current;n||t&&" "===e.key||nO.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});rs.displayName=ri;var ro=P.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,s=n6(ri,n),o=nK(n),l=P.useRef(null),u=(0,j.useComposedRefs)(t,l),[c,d]=P.useState(!1),[h,p]=P.useState("");return P.useEffect(()=>{let e=l.current;e&&p((e.textContent??"").trim())},[a.children]),(0,y.jsx)(nU.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:(0,y.jsx)(tX,{asChild:!0,...o,focusable:!r,children:(0,y.jsx)(R.Primitive.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:(0,T.composeEventHandlers)(e.onPointerMove,rD(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,T.composeEventHandlers)(e.onPointerLeave,rD(e=>s.onItemLeave(e))),onFocus:(0,T.composeEventHandlers)(e.onFocus,()=>d(!0)),onBlur:(0,T.composeEventHandlers)(e.onBlur,()=>d(!1))})})})}),rl=P.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,y.jsx)(rg,{scope:e.__scopeMenu,checked:n,children:(0,y.jsx)(rs,{role:"menuitemcheckbox","aria-checked":rA(n)?"mixed":n,...i,ref:t,"data-state":rR(n),onSelect:(0,T.composeEventHandlers)(i.onSelect,()=>r?.(!!rA(n)||!n),{checkForDefaultPrevented:!1})})})});rl.displayName="MenuCheckboxItem";var ru="MenuRadioGroup",[rc,rd]=nH(ru,{value:void 0,onValueChange:()=>{}}),rh=P.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=(0,z.useCallbackRef)(r);return(0,y.jsx)(rc,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,y.jsx)(rn,{...i,ref:t})})});rh.displayName=ru;var rp="MenuRadioItem",rf=P.forwardRef((e,t)=>{let{value:n,...r}=e,i=rd(rp,e.__scopeMenu),a=n===i.value;return(0,y.jsx)(rg,{scope:e.__scopeMenu,checked:a,children:(0,y.jsx)(rs,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":rR(a),onSelect:(0,T.composeEventHandlers)(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});rf.displayName=rp;var rm="MenuItemIndicator",[rg,rv]=nH(rm,{checked:!1}),ry=P.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=rv(rm,n);return(0,y.jsx)(tV.Presence,{present:r||rA(a.checked)||!0===a.checked,children:(0,y.jsx)(R.Primitive.span,{...i,ref:t,"data-state":rR(a.checked)})})});ry.displayName=rm;var rx=P.forwardRef((e,t)=>
1{let{__scopeMenu:n,...r}=e;return(0,y.jsx)(R.Primitive.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});rx.displayName="MenuSeparator";var rb=P.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=nq(n);return(0,y.jsx)(tR,{...i,...r,ref:t})});rb.displayName="MenuArrow";var rw="MenuSub",[rE,rk]=nH(rw),rS=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=nY(rw,t),s=nq(t),[o,l]=P.useState(null),[u,c]=P.useState(null),d=(0,z.useCallbackRef)(i);return P.useEffect(()=>(!1===a.open&&d(!1),()=>d(!1)),[a.open,d]),(0,y.jsx)(tE,{...s,children:(0,y.jsx)(nG,{scope:t,open:r,onOpenChange:d,content:u,onContentChange:c,children:(0,y.jsx)(rE,{scope:t,contentId:eo(),triggerId:eo(),trigger:o,onTriggerChange:l,children:n})})})};rS.displayName=rw;var rC="MenuSubTrigger",rP=P.forwardRef((e,t)=>{let n=nY(rC,e.__scopeMenu),r=nZ(rC,e.__scopeMenu),i=rk(rC,e.__scopeMenu),a=n6(rC,e.__scopeMenu),s=P.useRef(null),{pointerGraceTimerRef:o,onPointerGraceIntentChange:l}=a,u={__scopeMenu:e.__scopeMenu},c=P.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return P.useEffect(()=>c,[c]),P.useEffect(()=>{let e=o.current;return()=>{window.clearTimeout(e),l(null)}},[o,l]),(0,y.jsx)(nQ,{asChild:!0,...u,children:(0,y.jsx)(ro,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":rM(n.open),...e,ref:(0,j.composeRefs)(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,T.composeEventHandlers)(e.onPointerMove,rD(t=>{a.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100)))})),onPointerLeave:(0,T.composeEventHandlers)(e.onPointerLeave,rD(e=>{c();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i="right"===r,s=t[i?"left":"right"],l=t[i?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(o.current),o.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,T.composeEventHandlers)(e.onKeyDown,t=>{let i=""!==a.searchRef.current;e.disabled||i&&" "===t.key||nF[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});rP.displayName=rC;var rT="MenuSubContent",rj=P.forwardRef((e,t)=>{let n=n2(n3,e.__scopeMenu),{forceMount:r=n.forceMount,align:i="start",...a}=e,s=nY(n3,e.__scopeMenu),o=nZ(n3,e.__scopeMenu),l=rk(rT,e.__scopeMenu),u=P.useRef(null),c=(0,j.useComposedRefs)(t,u);return(0,y.jsx)(nU.Provider,{scope:e.__scopeMenu,children:(0,y.jsx)(tV.Presence,{present:r||s.open,children:(0,y.jsx)(nU.Slot,{scope:e.__scopeMenu,children:(0,y.jsx)(rt,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:c,align:i,side:"rtl"===o.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&u.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,T.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,T.composeEventHandlers)(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:(0,T.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=nz[o.dir].includes(e.key);t&&n&&(s.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})});function rM(e){return e?"open":"closed"}function rA(e){return"indeterminate"===e}function rR(e){return rA(e)?"indeterminate":e?"checked":"unchecked"}function rD(e){return t=>"mouse"===t.pointerType?e(t):void 0}rj.displayName=rT;var rL="DropdownMenu",[rN,rO]=(0,M.createContextScope)(rL,[n$]),rV=n$(),[rI,rF]=rN(rL),rz=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:s,modal:o=!0}=e,l=rV(t),u=P.useRef(null),[c,d]=(0,A.useControllableState)({prop:i,defaultProp:a??!1,onChange:s,caller:rL});return(0,y.jsx)(rI,{scope:t,triggerId:eo(),triggerRef:u,contentId:eo(),open:c,onOpenChange:d,onOpenToggle:P.useCallback(()=>d(e=>!e),[d]),modal:o,children:(0,y.jsx)(nJ,{...l,open:c,onOpenChange:d,dir:r,modal:o,children:n})})};rz.displayName=rL;var rB="DropdownMenuTrigger",rU=P.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=rF(rB,n),s=rV(n);return(0,y.jsx)(nQ,{asChild:!0,...s,children:(0,y.jsx)(R.Primitive.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:(0,j.composeRefs)(t,a.triggerRef),onPointerDown:(0,T.composeEventHandlers)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,T.composeEventHandlers)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});rU.displayName=rB;var rW=e=>{let{__scopeDropdownMenu:t,...n}=e,r=rV(t);return(0,y.jsx)(n5,{...r,...n})};rW.displayName="DropdownMenuPortal";var r_="DropdownMenuContent",rH=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rF(r_,n),a=rV(n),s=P.useRef(!1);return(0,y.jsx)(n8,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:(0,T.composeEventHandlers)(e.onCloseAutoFocus,e=>{s.current||i.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,T.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});rH.displayName=r_;var r$=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rV(n);return(0,y.jsx)(rn,{...i,...r,ref:t})});r$.displayName="DropdownMenuGroup";var rq=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rV(n);return(0,y.jsx)(rr,{...i,...r,ref:t})});rq.displayName="DropdownMenuLabel";var rK=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rV(n);return(0,y.jsx)(rs,{...i,...r,ref:t})});rK.displayName="DropdownMenuItem";var rG=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rV(n);return(0,y.jsx)(rl,{...i,...r,ref:t})});rG.displayName="DropdownMenuCheckboxItem";var rY=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rV(n);return(0,y.jsx)(rh,{...i,...r,ref:t})});rY.displayName="DropdownMenuRadioGroup";var rX=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rV(n);return(0,y.jsx)(rf,{...i,...r,ref:t})});rX.displayName="DropdownMenuRadioItem";var rZ=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rV(n);return(0,y.jsx)(ry,{...i,...r,ref:t})});rZ.displayName="DropdownMenuItemIndicator";var rJ=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rV(n);return(0,y.jsx)(rx,{...i,...r,ref:t})});rJ.displayName="DropdownMenuSeparator";var rQ=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rV(n);return(0,y.jsx)(rb,{...i,...r,ref:t})});rQ.displayName="DropdownMenuArrow";var r0=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,s=rV(t),[o,l]=(0,A.useControllableState)({prop:r,defaultProp:a??!1,onChange:i,caller:"DropdownMenuSub"});return(0,y.jsx)(rS,{...s,open:o,onOpenChange:l,children:n})},r1=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rV(n);return(0,y.jsx)(rP,{...i,...r,ref:t})});r1.displayName="DropdownMenuSubTrigger";var r2=P.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=rV(n);return(0,y.jsx)(rj,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});r2.displayName="DropdownMenuSubContent",e.s(["Arrow",0,rQ,"CheckboxItem",0,rG,"Content",0,rH,"DropdownMenu",0,rz,"DropdownMenuArrow",0,rQ,"DropdownMenuCheckboxItem",0,rG,"DropdownMenuContent",0,rH,"DropdownMenuGroup",0,r$,"DropdownMenuItem",0,rK,"DropdownMenuItemIndicator",0,rZ,"DropdownMenuLabel",0,rq,"DropdownMenuPortal",0,rW,"DropdownMenuRadioGroup",0,rY,"DropdownMenuRadioItem",0,rX,"DropdownMenuSeparator",0,rJ,"DropdownMenuSub",0,r0,"DropdownMenuSubContent",0,r2,"DropdownMenuSubTrigger",0,r1,"DropdownMenuTrigger",0,rU,"Group",0,r$,"Item",0,rK,"ItemIndicator",0,rZ,"Label",0,rq,"Portal",0,rW,"RadioGroup",0,rY,"RadioItem",0,rX,"Root",0,rz,"Separator",0,rJ,"Sub",0,r0,"SubContent",0,r2,"SubTrigger",0,r1,"Trigger",0,rU,"createDropdownMenuScope",0,rO],40666);var r5=e.i(40666),r5=r5,r3=e.i(75157);function r4({...e}){return(0,y.jsx)(r5.Root,{"data-slot":"dropdown-menu",...e})}function r6({...e}){return(0,y.jsx)(r5.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function r8({className:e,align:t="start",sideOffset:n=4,...r}){return(0,y.jsx)(r5.Portal,{children:(0,y.jsx)(r5.Content,{"data-slot":"dropdown-menu-content",sideOffset:n,align:t,className:(0,r3.cn)("z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground
1/10 duration-100 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 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})}function r9({className:e,inset:t,variant:n="default",...r}){return(0,y.jsx)(r5.Item,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:(0,r3.cn)("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e),...r})}e.i(93698),e.i(86253),e.s(["DropdownMenu",0,r4,"DropdownMenuContent",0,r8,"DropdownMenuItem",0,r9,"DropdownMenuLabel",0,function({className:e,inset:t,...n}){return(0,y.jsx)(r5.Label,{"data-slot":"dropdown-menu-label","data-inset":t,className:(0,r3.cn)("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",e),...n})},"DropdownMenuSeparator",0,function({className:e,...t}){return(0,y.jsx)(r5.Separator,{"data-slot":"dropdown-menu-separator",className:(0,r3.cn)("-mx-1 my-1 h-px bg-border",e),...t})},"DropdownMenuTrigger",0,r6],55146);var r7=e.i(45060);let ie={en:"English",fr:"Français",it:"Italiano"};e.s(["LanguageSwitcher",0,function({className:e}){let t=(0,b.usePathname)()??"/",n=(0,C.localeFromPath)(t),r=(0,S.pathsForCurrent)(t);return(0,y.jsxs)(r4,{children:[(0,y.jsx)(r6,{asChild:!0,children:(0,y.jsxs)("button",{type:"button","aria-label":"Language",className:(0,r7.cn)("inline-flex items-center gap-1.5 rounded-full border border-gray-border bg-white px-3 py-2 text-sm font-medium text-ink transition-colors hover:border-brand hover:text-brand",e),children:[(0,y.jsx)(E,{className:"h-4 w-4"}),(0,y.jsx)("span",{children:k.LOCALE_LABEL[n]})]})}),(0,y.jsx)(r8,{align:"end",sideOffset:8,className:"w-44",children:k.LOCALES.map(e=>(0,y.jsx)(r9,{asChild:!0,children:(0,y.jsxs)(x.default,{href:r[e],hrefLang:e,"aria-current":e===n?"true":void 0,className:"flex items-center justify-between",children:[(0,y.jsxs)("span",{className:"flex items-center gap-2",children:[(0,y.jsx)("span",{className:"text-xs font-semibold text-gray-text",children:k.LOCALE_LABEL[e]}),ie[e]]}),e===n&&(0,y.jsx)(w.Check,{className:"h-4 w-4 text-brand"})]})},e))})]})}],67176)},3374,e=>{"use strict";let t,n,r,i,a;var s,o=e.i(43476),l=e.i(71645),u=e.i(22016),c=e.i(68109),d=e.i(77071),h=e.i(28540),p=e.i(18566),f=e.i(65649),m=e.i(94105),g=e.i(46387),v=e.i(36566),y=e.i(79551),x=e.i(80087),b=e.i(66595),w=e.i(67784),E=e.i(16327),k=e.i(55146),S=e.i(99676),C=e.i(22027);let P=[{href:"/dashboard",label:"Dashboard",icon:m.LayoutDashboard},{href:"/dashboard/properties",label:"My listings",icon:g.Building2},{href:"/dashboard/properties/new",label:"Add listing",icon:v.PlusCircle},{href:"/dashboard/enquiries",label:"Enquiries",icon:y.Mails},{href:"/dashboard/contacts",label:"Contacts",icon:x.Contact},{href:"/dashboard/profile",label:"My profile",icon:f.UserRound}],T=[{href:"/dashboard",label:"Dashboard",icon:m.LayoutDashboard},{href:"/dashboard/favorites",label:"Favorites",icon:c.Heart},{href:"/dashboard/saved-searches",label:"Saved searches",icon:b.Search},{href:"/dashboard/profile",label:"My profile",icon:f.UserRound}];function j(){let e=(0,p.usePathname)(),{openLogin:t}=(0,C.useLoginModal)(),[n,r]=(0,l.useState)(null),[i,a]=(0,l.useState)(!1);async function s(){a(!0);try{await fetch("/api/auth/logout",{method:"POST"})}finally{r({authenticated:!1}),a(!1),window.location.assign("/")}}if((0,l.useEffect)(()=>{let e=!0;return fetch("/api/auth/me",{cache:"no-store"}).then(e=>e.json()).then(t=>{e&&r(t)}).catch(()=>{e&&r({authenticated:!1})}),()=>{e=!1}},[e]),!n||!n.authenticated)return(0,o.jsxs)("button",{type:"button",onClick:()=>t(),className:"hidden items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium text-ink hover:bg-gray-bg sm:inline-flex",children:[(0,o.jsx)(f.UserRound,{className:"h-4 w-4"}),"Sign in"]});let c="agent"===n.role?P:T,d=(n.name??"?").charAt(0).toUpperCase();return(0,o.jsxs)(k.DropdownMenu,{children:[(0,o.jsx)(k.DropdownMenuTrigger,{asChild:!0,children:(0,o.jsxs)("button",{type:"button",className:"flex items-center gap-2 rounded-full py-1 pl-1 pr-2 text-sm font-medium text-ink transition-colors hover:bg-gray-bg",children:[(0,o.jsxs)(S.Avatar,{className:"size-8",children:[n.avatarUrl?(0,o.jsx)(S.AvatarImage,{src:n.avatarUrl,alt:n.name??""}):null,(0,o.jsx)(S.AvatarFallback,{className:"bg-primary/10 text-xs font-bold text-primary",children:d})]}),(0,o.jsx)("span",{className:"hidden max-w-40 truncate sm:inline",children:n.name}),(0,o.jsx)(E.ChevronDown,{className:"h-4 w-4 text-gray-text"})]})}),(0,o.jsxs)(k.DropdownMenuContent,{align:"end",sideOffset:8,className:"w-56",children:[(0,o.jsx)(k.DropdownMenuLabel,{className:"font-normal",children:(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)("span",{className:"truncate text-sm font-medium",children:n.name}),(0,o.jsx)("span",{className:"truncate text-xs capitalize text-muted-foreground",children:n.role})]})}),(0,o.jsx)(k.DropdownMenuSeparator,{}),c.map(e=>{let t=e.icon;return(0,o.jsx)(k.DropdownMenuItem,{asChild:!0,children:(0,o.jsxs)(u.default,{href:e.href,children:[(0,o.jsx)(t,{}),e.label]})},e.href)}),(0,o.jsx)(k.DropdownMenuSeparator,{}),(0,o.jsxs)(k.DropdownMenuItem,{onClick:s,disabled:i,children:[(0,o.jsx)(w.LogOut,{}),i?"Signing outâ¦":"Logout"]})]})]})}var M=e.i(57688),A=e.i(31338),R=e.i(80981),D=e.i(34875);function L({className:e}){let t=(0,p.usePathname)(),n=(0,p.useRouter)(),r=(0,D.localeFromPath)(t??"/"),i=(0,R.localizedStaticPath)("home",r);return(0,o.jsx)(u.default,{href:i,onClick:function(e){e.metaKey||e.ctrlKey||e.shiftKey||0!==e.button||(e.preventDefault(),t===i?window.location.assign(i):n.push(i))},className:e,"aria-label":A.SITE.name,children:(0,o.jsx)(M.default,{src:"/logo.png",alt:A.SITE.name,width:360,height:96,priority:!0,className:"h-16 w-auto"})})}var N=e.i(67176),O=e.i(47167);let V=(0,l.createContext)({});function I(e){let t=(0,l.useRef)(null);return null===t.current&&(t.current=e()),t.current}let F="u">typeof window?l.useLayoutEffect:l.useEffect,z=(0,l.createContext)(null),B=e=>"object"==typeof e&&null!==e;function U(e){return B(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var W=l;let _=(0,l.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function H(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class $ extends W.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(U(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=U(e)&&e.offsetWidth||0,r=U(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function q({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let s=(0,W.useId)(),u=(0,W.useRef)(null),c=(0,W.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=(0,W.useContext)(_),h=function(...e){return l.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=H(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():H(e[t],null)}}}}(...e),e)}(u,e.props?.ref??e?.ref);return(0,W.useInsertionEffect)(()=>{let{width:e,height:o,top:l,left:h,right:p,bottom:f,direction:m}=c.current;if(t||!1===a||!u.current||!e||!o)return;
1let g="rtl"===m,v="left"===n?g?`right: ${p}`:`left: ${h}`:g?`left: ${h}`:`right: ${p}`,y="bottom"===r?`bottom: ${f}`:`top: ${l}`;u.current.dataset.motionPopId=s;let x=document.createElement("style");d&&(x.nonce=d);let b=i??document.head;return b.appendChild(x),x.sheet&&x.sheet.insertRule(` 2 [data-motion-pop-id="${s}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${o}px !important; 6 ${v}px !important; 7 ${y}px !important; 8 } 9 `),()=>{u.current?.removeAttribute("data-motion-pop-id"),b.contains(x)&&b.removeChild(x)}},[t]),(0,o.jsx)($,{isPresent:t,childRef:u,sizeRef:c,pop:a,children:!1===a?e:W.cloneElement(e,{ref:h})})}let K=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:s,anchorX:u,anchorY:c,root:d})=>{let h=I(G),p=(0,l.useId)(),f=!0,m=(0,l.useMemo)(()=>(f=!1,{id:p,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(h.set(e,!0),h.values()))if(!t)return;r&&r()},register:e=>(h.set(e,!1),()=>h.delete(e))}),[n,h,r]);return a&&f&&(m={...m}),(0,l.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[n]),l.useEffect(()=>{n||h.size||!r||r()},[n]),e=(0,o.jsx)(q,{pop:"popLayout"===s,isPresent:n,anchorX:u,anchorY:c,root:d,children:e}),(0,o.jsx)(z.Provider,{value:m,children:e})};function G(){return new Map}function Y(e=!0){let t=(0,l.useContext)(z);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,l.useId)();(0,l.useEffect)(()=>{if(e)return i(a)},[e]);let s=(0,l.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}let X=e=>e.key||"";function Z(e){let t=[];return l.Children.forEach(e,e=>{(0,l.isValidElement)(e)&&t.push(e)}),t}let J=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:s=!1,anchorX:u="left",anchorY:c="top",root:d})=>{let[h,p]=Y(s),f=(0,l.useMemo)(()=>Z(e),[e]),m=s&&!h?[]:f.map(X),g=(0,l.useRef)(!0),v=(0,l.useRef)(f),y=I(()=>new Map),x=(0,l.useRef)(new Set),[b,w]=(0,l.useState)(f),[E,k]=(0,l.useState)(f);F(()=>{g.current=!1,v.current=f;for(let e=0;e<E.length;e++){let t=X(E[e]);m.includes(t)?(y.delete(t),x.current.delete(t)):!0!==y.get(t)&&y.set(t,!1)}},[E,m.length,m.join("-")]);let S=[];if(f!==b){let e=[...f];for(let t=0;t<E.length;t++){let n=E[t],r=X(n);m.includes(r)||(e.splice(t,0,n),S.push(n))}return"wait"===a&&S.length&&(e=S),k(Z(e)),w(f),null}let{forceRender:C}=(0,l.useContext)(V);return(0,o.jsx)(o.Fragment,{children:E.map(e=>{let l=X(e),b=(!s||!!h)&&(f===E||m.includes(l));return(0,o.jsx)(K,{isPresent:b,initial:(!g.current||!!n)&&void 0,custom:t,presenceAffectsLayout:i,mode:a,root:d,onExitComplete:b?void 0:()=>{if(x.current.has(l)||!y.has(l))return;x.current.add(l),y.set(l,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(C?.(),k(v.current),s&&p?.(),r&&r())},anchorX:u,anchorY:c,children:e},l)})})},Q=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ee=new Set([...Q,"pathRotation"]),et=(e,t,n)=>n>t?t:n<e?e:n,en={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},er={...en,transform:e=>et(0,1,e)},ei={...en,default:1},ea=e=>Math.round(1e5*e)/1e5,es=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,el=(e,t)=>n=>!!("string"==typeof n&&eo.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),eu=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,a,s,o]=r.match(es);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==o?parseFloat(o):1}},ec={...en,transform:e=>Math.round(et(0,255,e))},ed={test:el("rgb","red"),parse:eu("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ec.transform(e)+", "+ec.transform(t)+", "+ec.transform(n)+", "+ea(er.transform(r))+")"},eh={test:el("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
9a:i?parseInt(i,16)/255:1}},transform:ed.transform},ep=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ef=ep("deg"),em=ep("%"),eg=ep("px"),ev=ep("vh"),ey=ep("vw"),ex={...em,parse:e=>em.parse(e)/100,transform:e=>em.transform(100*e)},eb={test:el("hsl","hue"),parse:eu("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+em.transform(ea(t))+", "+em.transform(ea(n))+", "+ea(er.transform(r))+")"},ew={test:e=>ed.test(e)||eh.test(e)||eb.test(e),parse:e=>ed.test(e)?ed.parse(e):eb.test(e)?eb.parse(e):eh.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ed.transform(e):eb.transform(e),getAnimatableNone:e=>{let t=ew.parse(e);return t.alpha=0,ew.transform(t)}},eE=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ek="number",eS="color",eC=/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 eP(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0,s=t.replace(eC,e=>(ew.test(e)?(r.color.push(a),i.push(eS),n.push(ew.parse(e))):e.startsWith("var(")?(r.var.push(a),i.push("var"),n.push(e)):(r.number.push(a),i.push(ek),n.push(parseFloat(e))),++a,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function eT({split:e,types:t}){let n=e.length;return r=>{let i="";for(let a=0;a<n;a++)if(i+=e[a],void 0!==r[a]){let e=t[a];e===ek?i+=ea(r[a]):e===eS?i+=ew.transform(r[a]):i+=r[a]}return i}}let ej={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(es)?.length||0)+(e.match(eE)?.length||0)>0},parse:function(e){return eP(e).values},createTransformer:function(e){return eT(eP(e))},getAnimatableNone:function(e){let t=eP(e);return eT(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:ew.test(e)?ew.getAnimatableNone(e):e)(e,t.split[n])))}},eM=new Set(["brightness","contrast","saturate","opacity"]);function eA(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(es)||[];if(!r)return e;let i=n.replace(r,""),a=+!!eM.has(t);return r!==n&&(a*=100),t+"("+a+i+")"}let eR=/\b([a-z-]*)\(.*?\)/gu,eD={...ej,getAnimatableNone:e=>{let t=e.match(eR);return t?t.map(eA).join(" "):e}},eL={...ej,getAnimatableNone:e=>{let t=ej.parse(e);return ej.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},eN={...en,transform:Math.round},eO={borderWidth:eg,borderTopWidth:eg,borderRightWidth:eg,borderBottomWidth:eg,borderLeftWidth:eg,borderRadius:eg,borderTopLeftRadius:eg,borderTopRightRadius:eg,borderBottomRightRadius:eg,borderBottomLeftRadius:eg,width:eg,maxWidth:eg,height:eg,maxHeight:eg,top:eg,right:eg,bottom:eg,left:eg,inset:eg,insetBlock:eg,insetBlockStart:eg,insetBlockEnd:eg,insetInline:eg,insetInlineStart:eg,insetInlineEnd:eg,padding:eg,paddingTop:eg,paddingRight:eg,paddingBottom:eg,paddingLeft:eg,paddingBlock:eg,paddingBlockStart:eg,paddingBlockEnd:eg,paddingInline:eg,paddingInlineStart:eg,paddingInlineEnd:eg,margin:eg,marginTop:eg,marginRight:eg,marginBottom:eg,marginLeft:eg,marginBlock:eg,marginBlockStart:eg,marginBlockEnd:eg,marginInline:eg,marginInlineStart:eg,marginInlineEnd:eg,fontSize:eg,backgroundPositionX:eg,backgroundPositionY:eg,rotate:ef,pathRotation:ef,rotateX:ef,rotateY:ef,rotateZ:ef,scale:ei,scaleX:ei,scaleY:ei,scaleZ:ei,skew:ef,skewX:ef,skewY:ef,distance:eg,translateX:eg,translateY:eg,translateZ:eg,x:eg,y:eg,z:eg,perspective:eg,transformPerspective:eg,opacity:er,originX:ex,originY:ex,originZ:eg,zIndex:eN,fillOpacity:er,strokeOpacity:er,numOctaves:eN},eV={...eO,color:ew,backgroundColor:ew,outlineColor:ew,fill:ew,stroke:ew,borderColor:ew,borderTopColor:ew,borderRightColor:ew,borderBottomColor:ew,borderLeftColor:ew,filter:eD,WebkitFilter:eD,mask:eL,WebkitMask:eL},eI=e=>eV[e],eF=()=>({translate:0,scale:1,origin:0,originPoint:0}),ez=()=>({x:eF(),y:eF()}),eB=()=>({min:0,max:0}),eU=()=>({x:eB(),y:eB()}),eW=e=>!!(e&&e.getVelocity),e_=new Set(["width","height","top","left","right","bottom",...Q]),eH=e=>t=>t.test(e),e$=[en,eg,em,ef,ey,ev,{test:e=>"auto"===e,parse:e=>e}],eq=e=>e$.find(eH(e)),eK=()=>{},eG=()=>{};O.default;let eY=e=>t=>"string"==typeof t&&t.startsWith(e),eX=eY("--"),eZ=eY("var(--"),eJ=e=>!!eZ(e)&&eQ.test(e.split("/*")[0].trim()),eQ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function e0(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let e1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,e2=e=>180*e/Math.PI,e5=e=>e4(e2(Math.atan2(e[1],e[0]))),e3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:e5,rotateZ:e5,skewX:e=>e2(Math.atan(e[1])),skewY:e=>e2(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},e4=e=>((e%=360)<0&&(e+=360),e),e6=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),e8=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),e9={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:e6,scaleY:e8,scale:e=>(e6(e)+e8(e))/2,rotateX:e=>e4(e2(Math.atan2(e[6],e[5]))),rotateY:e=>e4(e2(Math.atan2(-e[2],e[0]))),rotateZ:e5,rotate:e5,skewX:e=>e2(Math.atan(e[4])),skewY:e=>e2(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function e7(e){return+!!e.includes("scale")}function te(e,t){let n,r;if(!e||"none"===e)return e7(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=e9,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=e3,r=t}if(!r)return e7(t);let a=n[t],s=r[1].split(",").map(tt);return"function"==typeof a?a(s):s[a]}function tt(e){return parseFloat(e.trim())}let tn=e=>e===en||e===eg,tr=new Set(["x","y","z"]),ti=Q.filter(e=>!tr.has(e)),ta={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},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})=>te(t,"x"),y:(e,{transform:t})=>te(t,"y")};ta.translateX=ta.x,ta.translateY=ta.y;let ts=e=>e,to={},tl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tu(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=tl.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,a=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){s.has(t)&&(c.schedule(t),e()),l++,t(o)}let c={schedule:(e,t=!1,a=!1)=>{let o=a&&i?n:r;return t&&s.add(e),o.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{if(o=e,i){a=!0;return}i=!0;let s=n;
9n=r,r=s,n.forEach(u),t,l=0,n.clear(),i=!1,a&&(a=!1,c.process(e))}};return c}(a,t?n:void 0),e),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:p,postRender:f}=s,m=()=>{let a=to.useManualTiming,s=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),p.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:tl.reduce((t,a)=>{let o=s[a];return t[a]=(t,a=!1,s=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(m)),o.schedule(t,a,s)),t},{}),cancel:e=>{for(let t=0;t<tl.length;t++)s[tl[t]].cancel(e)},state:i,steps:s}}let{schedule:tc,cancel:td,state:th,steps:tp}=tu("u">typeof requestAnimationFrame?requestAnimationFrame:ts,!0),tf=new Set,tm=!1,tg=!1,tv=!1;function ty(){if(tg){let e=Array.from(tf).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],ti.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}tg=!1,tm=!1,tf.forEach(e=>e.complete(tv)),tf.clear()}function tx(){tf.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tg=!0)})}class tb{constructor(e,t,n,r,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(tf.add(this),tm||(tm=!0,tc.read(tx),tc.resolveKeyframes(ty))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,a);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=a),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),tf.delete(this)}cancel(){"scheduled"===this.state&&(tf.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tw=new Set([eD,eL]);function tE(e,t){let n=eI(e);return tw.has(n)||(n=ej),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let tk=new Set(["auto","none","0"]);class tS extends tb{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&eJ(r=r.trim())){let i=function e(t,n,r=1){eG(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,a]=function(e){let t=e1.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return eJ(a)?e(a,n,r+1):a}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!e_.has(n)||2!==e.length)return;let[r,i]=e,a=eq(r),s=eq(i);if(e0(r)!==e0(i)&&ta[n]){this.needsMeasurement=!0;return}if(a!==s)if(tn(a)&&tn(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else ta[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!tk.has(t)&&eP(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=tE(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ta[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=ta[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let tC=e=>1e3*e;function tP(e,t){-1===e.indexOf(t)&&e.push(t)}function tT(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class tj{constructor(){this.subscriptions=[]}add(e){return tP(this.subscriptions,e),()=>tT(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tM(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function tA(e){let t;return()=>(void 0===t&&(t=e()),t)}let tR={};function tD(e,t){let n=tA(e);return()=>tR[t]??n()}let tL=tD(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tN=e=>null!==e;function tO(e,{repeat:t,repeatType:n="loop"},r,i=1){let a=e.filter(tN),s=i<0||t&&"loop"!==n&&t%2==1?0:a.length-1;return s&&void 0!==r?r:a[s]}class tV{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let tI={layout:0,mainThread:0,waapi:0},tF=e=>Array.isArray(e)&&"number"==typeof e[0],tz=tD(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tB=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},tU=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,tW={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tU([0,.65,.55,1]),circOut:tU([.55,0,1,.45]),backIn:tU([.31,.01,.66,-.59]),backOut:tU([.33,1.53,.69,.99])};function t_(e){return"function"==typeof e&&"applyToOptions"in e}class tH extends tV{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:s,onComplete:o}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,eG("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return t_(e)&&tz()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?tz()?tB(t,n):"ease-out":tF(t)?tU(t):Array.isArray(t)?t.map(t=>e(t,n)||tW.easeOut):tW[t]}(o,i);Array.isArray(d)&&(c.easing=d);let h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"};u&&(h.pseudoElement=u);let p=e.animate(c,h);return p}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=tO(r,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),tM(t,n,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tC(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&tL())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),ts):r(this)}}let t$=new Set(["opacity","clipPath","filter","transform"]),{schedule:tq}=tu(queueMicrotask,!1);function tK(){t=void 0}let tG={now:()=>(void 0===t&&tG.set(th.isProcessing||to.useManualTiming?th.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tK)}},tY=(e,t)=>t?1e3/t*e:0,tX;class tZ{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tG.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tG.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new tj);let n=this.events[e].add(t);return"change"===e?()=>{n(),tc.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
9setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tX&&tX.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tG.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tY(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tJ(e,t){return new tZ(e,t)}let tQ=[...e$,ew,ej],t0=new WeakMap;function t1(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function t2(e){return"string"==typeof e||Array.isArray(e)}let t5=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t3=["initial",...t5];function t4(e){return t1(e.animate)||t3.some(t=>t2(e[t]))}function t6(e){return!!(t4(e)||e.variants)}let t8={current:null},t9={current:!1},t7="u">typeof window;function ne(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function nt(e,t,n,r){if("function"==typeof t){let[i,a]=ne(r);t=t(void 0!==n?n:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,a]=ne(r);t=t(void 0!==n?n:e.custom,i,a)}return t}let nn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nr={};class ni{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tG.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,tc.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=t4(t),this.isVariantNode=t6(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&eW(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,t0.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
9h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(t9.current||function(){if(t9.current=!0,t7)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>t8.current=e.matches;e.addEventListener("change",t),t()}else t8.current=!1}(),this.shouldReduceMotion=t8.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),td(this.notifyUpdate),td(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&t$.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:s}=t.accelerate,o=new tH({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:tC(s)}),l=n(o);this.valueSubscriptions.set(e,()=>{l(),o.cancel()});return}let r=ee.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&tc.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in nr){let t=nr[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):eU()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<nn.length;t++){let n=nn[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],a=n[r];if(eW(i))e.addValue(r,i);else if(eW(a))e.addValue(r,tJ(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,tJ(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=tJ(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!tQ.find(eH(r))&&ej.test(t)&&(n=tE(e,t))}this.setBaseTarget(e,eW(n)?n.get():n)}return eW(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=nt(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||eW(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new tj),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tq.render(this.render)}}class na extends ni{constructor(){super(...arguments),this.KeyframeResolver=tS}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eW(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function ns(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let no=(e,t)=>t&&"number"==typeof e?t.transform(e):e,nl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nu=Q.length;function nc(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,s=!1,o=!1;for(let e in t){let n=t[e];if(ee.has(e)){s=!0;continue}if(eX(e)){i[e]=n;continue}{let t=no(n,eO[e]);e.startsWith("origin")?(o=!0,a[e]=t):r[e]=t}}if(!t.transform&&(s||n?r.transform=function(e,t,n){let r="",i=!0;for(let a=0;a<nu;a++){let s=Q[a],o=e[s];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!s.startsWith("scale");else{let e=parseFloat(o);l=s.startsWith("scale")?1===e:0===e}if(!l||n){let e=no(o,eO[s]);if(!l){i=!1;let t=nl[s]||s;r+=`${t}(${e}) `}n&&(t[s]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${no(a,eO.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}let nd={offset:"stroke-dashoffset",array:"stroke-dasharray"},nh={offset:"strokeDashoffset",array:"strokeDasharray"},np=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function nf(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o}
9,l,u,c){if(nc(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;for(let e of(d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),np))void 0!==d[e]&&(h[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?nd:nh;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}(d,i,a,s,!1)}let nm=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"]),ng=e=>"string"==typeof e&&"svg"===e.toLowerCase();function nv(e,{style:t,vars:n},r,i){let a,s=e.style;for(a in t)s[a]=t[a];for(a in i?.applyProjectionStyles(s,r),n)s.setProperty(a,n[a])}function ny(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nx={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!eg.test(e))return e;else e=parseFloat(e);let n=ny(e,t.target.x),r=ny(e,t.target.y);return`${n}% ${r}%`}},nb=(e,t,n)=>e+(t-e)*n,nw={borderRadius:{...nx,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nx,borderTopRightRadius:nx,borderBottomLeftRadius:nx,borderBottomRightRadius:nx,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=ej.parse(e);if(r.length>5)return e;let i=ej.createTransformer(e),a=+("number"!=typeof r[0]),s=n.x.scale*t.x,o=n.y.scale*t.y;r[0+a]/=s,r[1+a]/=o;let l=nb(s,o,.5);return"number"==typeof r[2+a]&&(r[2+a]/=l),"number"==typeof r[3+a]&&(r[3+a]/=l),i(r)}}};function nE(e,{layout:t,layoutId:n}){return ee.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!nw[e]||"opacity"===e)}function nk(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(eW(r[t])||i&&eW(i[t])||nE(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function nS(e,t,n){let r=nk(e,t,n);for(let n in e)(eW(e[n])||eW(t[n]))&&(r[-1!==Q.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class nC extends na{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eU}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ee.has(t)){let e=eI(t);return e&&e.default||0}return t=nm.has(t)?t:ns(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return nS(e,t,n)}
9build(e,t,n){nf(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in nv(e,t,void 0,r),t.attrs)e.setAttribute(nm.has(n)?n:ns(n),t.attrs[n])}mount(e){this.isSVGTag=ng(e.tagName),super.mount(e)}}function nP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nT(e){return void 0===e||1===e}function nj({scale:e,scaleX:t,scaleY:n}){return!nT(e)||!nT(t)||!nT(n)}function nM(e){return nj(e)||nA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nA(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function nR(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function nD(e,t=0,n=1,r,i){e.min=nR(e.min,t,n,r,i),e.max=nR(e.max,t,n,r,i)}function nL(e,{x:t,y:n}){nD(e.x,t.translate,t.scale,t.originPoint),nD(e.y,n.translate,n.scale,n.originPoint)}function nN(e,t){e.min+=t,e.max+=t}function nO(e,t,n,r,i=.5){let a=nb(e.min,e.max,i);nD(e,t,n,a,r)}function nV(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function nI(e,t,n){let r=n??e;nO(e.x,nV(t.x,r.x),t.scaleX,t.scale,t.originX),nO(e.y,nV(t.y,r.y),t.scaleY,t.scale,t.originY)}function nF(e,t){return nP(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class nz extends na{constructor(){super(...arguments),this.type="html",this.renderInstance=nv}readValueFromInstance(e,t){if(ee.has(t))return this.projection?.isProjecting?e7(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return te(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(eX(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nF(e,t)}build(e,t,n){nc(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return nk(e,t,n)}}let nB=["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 nU(e){if("string"!=typeof e||e.includes("-"));else if(nB.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let nW=(0,l.createContext)({strict:!1}),n_=(0,l.createContext)({});function nH(e){return Array.isArray(e)?e.join(" "):e}let n$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nq(e,t,n){for(let r in t)eW(t[r])||nE(r,n)||(e[r]=t[r])}let nK=()=>({...n$(),attrs:{}}),nG=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function nY(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nG.has(e)}let nX=e=>!nY(e);try{s=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof s&&(nX=e=>e.startsWith("on")?!nY(e):s(e))}catch{}function nZ(e){return eW(e)?e.get():e}let nJ=e=>(t,n)=>{let r=(0,l.useContext)(n_),i=(0,l.useContext)(z),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=nZ(a[e]);let{initial:s,animate:o}=e,l=t4(e),u=t6(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===o&&(o=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===s)?o:s;if(d&&"boolean"!=typeof d&&!t1(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=nt(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?a():I(a)},nQ=nJ({scrapeMotionValuesFromProps:nk,createRenderState:n$}),n0=nJ({scrapeMotionValuesFromProps:nS,createRenderState:nK}),n1={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"]},n2=!1;function n5(){return!function(){if(n2)return;let e={};for(let t in n1)e[t]={isEnabled:e=>n1[t].some(t=>!!e[t])};nr=e,n2=!0}(),nr}let n3=Symbol.for("motionComponentSymbol"),n4="data-"+ns("framerAppearId"),n6=(0,l.createContext)({});function n8(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function n9(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=n5();for(let n in e)t[n]={...t[n],...e[n]};nr=t}(r);let a=n?"svg"===n:nU(e),s=a?n0:nQ;function u(n,r){var u;
9let c,d,h,p={...(0,l.useContext)(_),...n,layoutId:function({layoutId:e}){let t=(0,l.useContext)(V).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:f}=p,m=function(e){let{initial:t,animate:n}=function(e,t){if(t4(e)){let{initial:t,animate:n}=e;return{initial:!1===t||t2(t)?t:void 0,animate:t2(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,l.useContext)(n_));return(0,l.useMemo)(()=>({initial:t,animate:n}),[nH(t),nH(n)])}(n),g=s(n,f);if(!f&&"u">typeof window){(0,l.useContext)(nW).strict;let t=function(e){let{drag:t,layout:n}=n5();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(p);c=t.MeasureLayout,m.visualElement=function(e,t,n,r,i,a){let{visualElement:s}=(0,l.useContext)(n_),o=(0,l.useContext)(nW),u=(0,l.useContext)(z),c=(0,l.useContext)(_),d=c.reducedMotion,h=c.skipAnimations,p=(0,l.useRef)(null),f=(0,l.useRef)(!1);r=r||o.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d,skipAnimations:h,isSVG:a}),f.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let m=p.current,g=(0,l.useContext)(n6);m&&!m.projection&&i&&("html"===m.type||"svg"===m.type)&&function(e,t,n,r){let{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&n8(o),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(p.current,n,i,g);let v=(0,l.useRef)(!1);(0,l.useInsertionEffect)(()=>{m&&v.current&&m.update(n,u)});let y=n[n4],x=(0,l.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return F(()=>{f.current=!0,m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),(0,l.useEffect)(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),x.current=!1),m.enteringChildren=void 0)}),m}(e,g,p,i,t.ProjectionNode,a)}return(0,o.jsxs)(n_.Provider,{value:m,children:[c&&m.visualElement?(0,o.jsx)(c,{visualElement:m.visualElement,...p}):null,function(e,t,n,{latestValues:r},i,a=!1,s){let o=(s??nU(e)?function(e,t,n,r){let i=(0,l.useMemo)(()=>{let n=nK();return nf(n,t,ng(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};nq(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},a=(n=e.style||{},nq(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,l.useMemo)(()=>{let n=n$();return nc(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=a,i})(t,r,i,e),u=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&!eW(e[i])&&(nX(i)||!0===n&&nY(i)||!t&&!nY(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,a),c=e!==l.Fragment?{...u,...o,ref:n}:{},{children:d}=t,h=(0,l.useMemo)(()=>eW(d)?d.get():d,[d]);return(0,l.createElement)(e,{...c,children:h})}(e,n,(u=m.visualElement,d=(0,l.useRef)(r),(0,l.useInsertionEffect)(()=>{d.current=r}),h=(0,l.useRef)(null),(0,l.useCallback)(e=>{e&&g.onMount?.(e),u&&(e?u.mount(e):u.unmount());let t=d.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(h.current=n)}else h.current?(h.current(),h.current=null):t(e);else t&&(t.current=e)},[u])),g,f,t,a)]})}u.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let c=(0,l.forwardRef)(u);return c[n3]=e,c}class n7{constructor(e){this.isMounted=!1,this.node=e}update(){}}function re(e,t,n){let r=e.getProps();return nt(r,t,void 0!==n?n:r.custom,e)}function rt(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function rn(e,t){let n=e?.[t]??e?.default??e;return n!==e?rt(n,e):n}let rr=e=>Array.isArray(e);function ri(e,t){let n=e.getValue("willChange");if(eW(n)&&n.add)return n.add(t);if(!n&&to.WillChange){let n=new to.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let ra=(...e)=>e.reduce((e,t)=>
9n=>t(e(n)));function rs(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ro(e,t){return n=>n>0?t:e}let rl=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ru=[eh,ed,eb];function rc(e){let t=ru.find(t=>t.test(e));if(eK(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===eb&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,o=2*n-r;i=rs(o,r,e+1/3),a=rs(o,r,e),s=rs(o,r,e-1/3)}else i=a=s=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*s),alpha:r}}(n)),n}let rd=(e,t)=>{let n=rc(e),r=rc(t);if(!n||!r)return ro(e,t);let i={...n};return e=>(i.red=rl(n.red,r.red,e),i.green=rl(n.green,r.green,e),i.blue=rl(n.blue,r.blue,e),i.alpha=nb(n.alpha,r.alpha,e),ed.transform(i))},rh=new Set(["none","hidden"]);function rp(e,t){return n=>nb(e,t,n)}function rf(e){return"number"==typeof e?rp:"string"==typeof e?eJ(e)?ro:ew.test(e)?rd:rv:Array.isArray(e)?rm:"object"==typeof e?ew.test(e)?rd:rg:ro}function rm(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>rf(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function rg(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=rf(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let rv=(e,t)=>{let n=ej.createTransformer(t),r=eP(e),i=eP(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return eK(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ro(e,t);if(rh.has(e)&&!i.values.length||rh.has(t)&&!r.values.length)return rh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return ra(rm(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],s=e.indexes[a][r[a]],o=e.values[s]??0;n[i]=o,r[a]++}return n}(r,i),i.values),n)};function ry(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?nb(e,t,n):rf(e)(e,t)}let rx=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>tc.update(t,e),stop:()=>td(t),now:()=>th.isProcessing?th.timestamp:tG.now()}};function rb(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let rw=.01,rE=2,rk=.005,rS=.5;function rC(e,t){return e*Math.sqrt(1-t*t)}let rP=["duration","bounce"],rT=["stiffness","damping","mass"];function rj(e,t){return t.some(t=>void 0!==e[t])}function rM(e=.3,t=.3){let n,r,i,a,s,o,l="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:c}=l,d=l.keyframes[0],h=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:f,damping:m,mass:g,duration:v,velocity:y,isResolvedFromDuration:x}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!rj(e,rT)&&rj(e,rP))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*et(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,a;eK(e<=tC(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=et(.05,1,s),e=et(.01,10,e/1e3),s<1?(i=t=>{let r=t*s,i=r*e;return .001-(r-n)/rC(t,s)*Math.exp(-i)},a=t=>{let r=t*s*e,a=Math.pow(s,2)*Math.pow(t,2)*e,o=Math.exp(-r),l=rC(Math.pow(t,2),s);return(r*n+n-a)*o*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let o=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,a,5/e);if(e=tC(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...l,velocity:-((l.velocity||0)/1e3)}),b=y||0,w=m/(2*Math.sqrt(f*g)),E=h-d,k=Math.sqrt(f/g)/1e3,S=5>Math.abs(E);if(u||(u=S?rw:rE),c||(c=S?rk:rS),w<1)i=rC(k,w),a=(b+w*k*E)/i,n=e=>h-Math.exp(-w*k*e)*(a*Math.sin(i*e)+E*Math.cos(i*e)),s=w*k*a+E*i,o=w*k*E-a*i,r=e=>Math.exp(-w*k*e)*(s*Math.sin(i*e)+o*Math.cos(i*e));else if(1===w){n=e=>h-Math.exp(-k*e)*(E+(b+k*E)*e);let e=b+k*E;r=t=>Math.exp(-k*t)*(k*e*t-b)}else{let e=k*Math.sqrt(w*w-1);n=t=>{let n=Math.exp(-w*k*t),r=Math.min(e*t,300);return h-n*((b+w*k*E)*Math.sinh(r)+e*E*Math.cosh(r))/e};let t=(b+w*k*E)/e,i=w*k*t-E*e,a=w*k*E-t*e;r=t=>{let n=Math.exp(-w*k*t),r=Math.min(e*t,300);return n*(i*Math.sinh(r)+a*Math.cosh(r))}}let C={calculatedDuration:x&&v||null,velocity:e=>tC(r(e)),next:e=>{if(!x&&w<1){let t=Math.exp(-w*k*e),n=Math.sin(i*e),r=Math.cos(i*e),l=h-t*(a*n+E*r);return p.done=Math.abs(tC(t*(s*n+o*r)))<=u&&Math.abs(h-l)<=c,p.value=p.done?h:l,p}let t=n(e);return x?p.done=e>=v:p.done=Math.abs(tC(r(e)))<=u&&Math.abs(h-t)<=c,p.value=p.done?h:t,p},toString:()=>{let e=Math.min(rb(C),2e4),t=tB(t=>C.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return C}function rA(e,t,n){let r=Math.max(t-5,0);return tY(n-e(r),t-r)}function rR({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=
9500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){let d,h,p=e[0],f={done:!1,value:p},m=n*t,g=p+m,v=void 0===s?g:s(g);v!==g&&(m=v-p);let y=e=>-m*Math.exp(-e/r),x=e=>v+y(e),b=e=>{let t=y(e),n=x(e);f.done=Math.abs(t)<=u,f.value=f.done?v:n},w=e=>{let t;if(t=f.value,void 0!==o&&t<o||void 0!==l&&t>l){var n;d=e,h=rM({keyframes:[f.value,(n=f.value,void 0===o?l:void 0===l||Math.abs(o-n)<Math.abs(l-n)?o:l)],velocity:rA(x,e,f.value),damping:i,stiffness:a,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,b(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||b(e),f)}}}rM.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(rb(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,rM);return e.ease=t.ease,e.duration=tC(t.duration),e.type="keyframes",e};let rD=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function rL(e,t,n,r){return e===t&&n===r?ts:i=>0===i||1===i?i:rD(function(e,t,n,r,i){let a,s,o=0;do(a=rD(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++o<12)return s}(i,0,1,e,n),t,r)}let rN=rL(.42,0,1,1),rO=rL(0,0,.58,1),rV=rL(.42,0,.58,1),rI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rF=e=>t=>1-e(1-t),rz=rL(.33,1.53,.69,.99),rB=rF(rz),rU=rI(rB),rW=e=>e>=1?1:(e*=2)<1?.5*rB(e):.5*(2-Math.pow(2,-10*(e-1))),r_=e=>1-Math.sin(Math.acos(e)),rH=rF(r_),r$=rI(r_),rq={linear:ts,easeIn:rN,easeInOut:rV,easeOut:rO,circIn:r_,circInOut:r$,circOut:rH,backIn:rB,backInOut:rU,backOut:rz,anticipate:rW},rK=e=>{if(tF(e)){eG(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return rL(t,n,r,i)}return"string"==typeof e?(eG(void 0!==rq[e],`Invalid easing type '${e}'`,"invalid-easing-type"),rq[e]):e},rG=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function rY({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let a,s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(rK):rK(r),o={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(eG(a===t.length,"Both input and output ranges must be the same length","range-length"),1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,n){let r=[],i=n||to.mix||ry,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=ra(Array.isArray(t)?t[n]||ts:t,a)),r.push(a)}return r}(t,r,i),l=o.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=rG(e[r],e[r+1],n);return o[r](i)};return n?t=>u(et(e[0],e[a-1],t)):u}((i=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=rG(0,t,r);e.push(nb(n,1,i))}}(a=[0],t.length-1),a),i.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||rV).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let rX={decay:rR,inertia:rR,tween:rY,keyframes:rY,spring:rM};function rZ(e){"string"==typeof e.type&&(e.type=rX[e.type])}let rJ=e=>e/100;class rQ extends tV{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tG.now()&&this.tick(tG.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},tI.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rZ(e);let{type:t=rY,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:s}=e,o=t||rY;o!==rY&&"number"!=typeof s[0]&&(this.mixKeyframes=ra(rJ,ry(s[0],s[1])),s=[0,100]);let l=o({...e,keyframes:s});"mirror"===i&&(this.mirroredGenerator=o({...e,keyframes:[...s].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=rb(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:p,type:f,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let x=this.currentTime,b=r;if(d){let e=Math.min(this.currentTime,i)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===h?(n=1-n,p&&(n-=p/o)):"mirror"===h&&(b=s)),x=et(0,1,n)*o}y?(this.delayState.value=c[0],n=this.delayState):n=b.next(x),a&&!y&&(n.value=a(n.value));let{done:w}=n;y||null===l||(w=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return E&&f!==rR&&(n.value=tO(c,this.options,g,this.speed)),m&&m(n.value),E&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=tC(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return rA(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tG.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=rx,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tG.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,tI.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let r0={anticipate:rW,backInOut:rU,circInOut:r$};class r1 extends tH{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in r0&&(e.ease=r0[e.ease])}(e),rZ(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new rQ({...a,autoplay:!1}),o=Math.max(10,tG.now()-this.startTime),l=et(0,10,o-10),u=s.sample(o).value,{name:c}=this.options;i&&c&&tM(i,c,u),t.setWithVelocity(s.sample(Math.max(0,o-l)).value,u,l),s.stop()}}let r2=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ej.test(e)||"0"===e)&&!e.startsWith("url("));function r5(e){e.duration=0,e.type="keyframes"}let r3=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,r4=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),r6=tA(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class r8 extends tV{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",keyframes:s,name:o,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tG.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:o,motionValue:l,element:u,...c},h=u?.KeyframeResolver||tb;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let i;this.keyframeResolver=void 0;let{name:a,type:s,velocity:o,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=tG.now();let d=!0;!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],s=r2(i,t),o=r2(a,t);return eK(s===o,`You are trying to animate ${t} from "${i}" to "${a}". "${s?a:i}" is not an animatable value.`,"value-not-animatable"),!!s&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||t_(n))&&r)}(e,a,s,o)&&(d=!1,(to.instantAnimations||!l)&&c?.(tO(e,n,t)),e[0]=e[e.length-1],r5(n),n.repeat=0);let h={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=d&&!u&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s,keyframes:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
9let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return r6()&&n&&(t$.has(n)||r4.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&r3.test(e[t]))return!0;return!1}(o))&&("transform"!==n||!u)&&!l&&!r&&"mirror"!==i&&0!==a&&"inertia"!==s}(h),f=h.motionValue?.owner?.current;if(p)try{i=new r1({...h,element:f})}catch{i=new rQ(h)}else i=new rQ(h);i.finished.then(()=>{this.notifyFinished()}).catch(ts),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tv=!0,tx(),ty(),tv=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let r9={type:"spring",stiffness:500,damping:25,restSpeed:10},r7={type:"keyframes",duration:.8},ie={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},it=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),ir=(e,t,n,r={},i,a)=>s=>{let o=rn(r,e)||{},l=o.delay||r.delay||0,{elapsed:u=0}=r;u-=tC(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};!function(e){for(let t in e)if(!it.has(t))return!0;return!1}(o)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?r7:ee.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:r9:ie)(e,c)),c.duration&&(c.duration=tC(c.duration)),c.repeatDelay&&(c.repeatDelay=tC(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(r5(c),0===c.delay&&(d=!0)),(to.instantAnimations||to.skipAnimations||i?.shouldSkipAnimations||o.skipAnimations)&&(d=!0,r5(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&void 0!==t.get()){let e=tO(c.keyframes,o);if(void 0!==e)return void tc.update(()=>{c.onUpdate(e),c.onComplete()})}return o.isSync?new rQ(c):new r8(c)};function ii(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:s,...o}=t,l=e.getDefaultTransition();a=a?rt(a,l):l;let u=a?.reduceMotion,c=a?.skipAnimations;r&&(a=r);let d=[],h=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;for(let t in p&&p.animateVisualElement(e,o,a,n,d),o){let r=e.getValue(t,e.latestValues[t]??null),i=o[t];if(void 0===i||h&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(h,t))continue;let s={delay:n,...rn(a||{},t)};c&&(s.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!s.velocity){tc.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=e.props[n4];if(n){let e=window.MotionHandoffAnimation(n,t,tc);null!==e&&(s.startTime=e,p=!0)}}ri(e,t);let f=u??e.shouldReduceMotion;r.start(ir(t,r,i,f&&e_.has(t)?{type:!1}:s,e,p));let m=r.animation;m&&d.push(m)}if(s){let t=()=>tc.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=re(e,t)||{};for(let t in i={...i,...n}){var a;let n=rr(a=i[t])?a[a.length-1]||0:a;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tJ(n))}}(e,s)});d.length?Promise.all(d).then(t):t()}return d}function ia(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>
9e.sortNodePosition(t)).indexOf(t),s=e.size,o=(s-1)*r;return"function"==typeof n?n(a,s):1===i?a*r:o-a*r}function is(e,t,n={}){let r=re(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(ii(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:s,staggerDirection:o}=i;return function(e,t,n=0,r=0,i=0,a=1,s){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(is(l,t,{...s,delay:n+("function"==typeof r?0:r)+ia(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,r,a,s,o,n)}:()=>Promise.resolve(),{when:o}=i;if(!o)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===o?[a,s]:[s,a];return e().then(()=>t())}}let io=t3.length;function il(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let iu=[...t5].reverse(),ic=t5.length;function id(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ih(){return{animate:id(!0),whileInView:id(),whileHover:id(),whileTap:id(),whileDrag:id(),whileFocus:id(),exit:id()}}let ip=0;function im(e){return[e("x"),e("y")]}function ig(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let iv={x:!1,y:!1};function iy(e){return e.max-e.min}function ix(e,t,n,r=.5){e.origin=r,e.originPoint=nb(t.min,t.max,e.origin),e.scale=iy(n)/iy(t),e.translate=nb(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function ib(e,t,n,r){ix(e.x,t.x,n.x,r?r.originX:void 0),ix(e.y,t.y,n.y,r?r.originY:void 0)}function iw(e,t,n,r=0){e.min=(r?nb(n.min,n.max,r):n.min)+t.min,e.max=e.min+iy(t)}function iE(e,t,n,r=0){let i=r?nb(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+iy(t)}function ik(e,t,n,r){iE(e.x,t.x,n.x,r?.x),iE(e.y,t.y,n.y,r?.y)}function iS(e){return B(e)&&"ownerSVGElement"in e}function iC(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let iP=new WeakMap,iT=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:iS(r)&&"getBBox"in r?r.getBBox()[t]:r[n],ij=iT("inline","width","offsetWidth"),iM=iT("block","height","offsetHeight");function iA({target:e,borderBoxSize:t}){iP.get(e)?.forEach(n=>{n(e,{get width(){return ij(e,t)},get height(){return iM(e,t)}})})}function iR(e){e.forEach(iA)}let iD=new Set;function iL(e,t){let i;return"function"==typeof e?(iD.add(e),r||(r=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};iD.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{iD.delete(e),iD.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):(!n&&"u">typeof ResizeObserver&&(n=new ResizeObserver(iR)),(i=iC(e)).forEach(e=>{let r=iP.get(e);r||(r=new Set,iP.set(e,r)),r.add(t),n?.observe(e)}),()=>{i.forEach(e=>{let r=iP.get(e);r?.delete(t),r?.size||n?.unobserve(e)})})}let iN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),iO=new Set(["INPUT","SELECT","TEXTAREA"]),iV=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function iI(e){return{point:{x:e.pageX,y:e.pageY}}}function iF(e,t,n,r){return ig(e,t,e=>iV(e)&&n(e,iI(e)),r)}let iz=({current:e})=>e?e.ownerDocument.defaultView:null,iB=(e,t)=>Math.abs(e-t),iU=new Set(["auto","scroll"]);class iW{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=i_(this.lastRawMoveEventInfo,this.transformPagePoint));let n=i$(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(iB(e.x,t.x)**2+iB(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:a}=n,{timestamp:s}=th;this.history.push({...a,timestamp:s});
9let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=i_(t,this.transformPagePoint),tc.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=i$("pointercancel"===e.type?this.lastMoveEventInfo:i_(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!iV(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;const o=i_(iI(e),this.transformPagePoint),{point:l}=o,{timestamp:u}=th;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,i$(o,this.history)),this.removeListeners=ra(iF(this.contextWindow,"pointermove",this.handlePointerMove),iF(this.contextWindow,"pointerup",this.handlePointerUp),iF(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(iU.has(e.overflowX)||iU.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),tc.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),td(this.updatePoint)}}function i_(e,t){return t?{point:t(e.point)}:e}function iH(e,t){return{x:e.x-t.x,y:e.y-t.y}}function i$({point:e},t){return{point:e,delta:iH(e,iq(t)),offset:iH(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=iq(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>tC(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*tC(.1)&&(n=e[1]);let i=(r.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};let a={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t)}}function iq(e){return e[e.length-1]}function iK(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function iG(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function iY(e,t,n){return{min:iX(e,t),max:iX(e,n)}}function iX(e,t){return"number"==typeof e?e:e[t]||0}let iZ=new WeakMap;class iJ{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=eU(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{t&&this.snapToCursor(iI(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(iv[e])return null;else return iv[e]=!0,()=>{iv[e]=!1};return iv.x||iv.y?null:(iv.x=iv.y=!0,()=>{iv.x=iv.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),im(e=>{let t=this.getAxisMotionValue(e).get()||0;if(em.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=iy(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&tc.update(()=>i(e,t),!1,!0),ri(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&tc.update(()=>a(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new iW(e,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:iz(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:s}=this.getProps();s&&tc.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!i0(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?nb(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?nb(n,e,r.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&n8(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:iK(e.x,n,i),y:iK(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:iY(e,"left","right"),y:iY(e,"top","bottom")}}(t),r!==this.constraints&&!n8(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&im(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!n8(t))return!1;let r=t.current;eG(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let a=function(e,t,n){let r=nF(e,n),{scroll:i}=t;return i&&(nN(r.x,i.offset.x),nN(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s=(e=i.layout.layoutBox,{x:iG(e.x,a.x),y:iG(e.y,a.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=nP(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),o=this.constraints||{};return Promise.all(im(s=>{if(!i0(s,t,this.currentDirection))return;let l=o&&o[s]||{};(!0===a||a===s)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ri(this.visualElement,e),n.start(ir(e,n,0,t,this.visualElement,!1))}stopAnimation(){im(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){im(t=>{let{drag:n}=this.getProps();if(!i0(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],s=i.get()||0;i.set(e[t]-nb(n,a,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!n8(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};im(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let a,s,o,l=t.get();r[e]=(n={min:l,max:l},i=this.constraints[e],a=.5,s=iy(n),(o=iy(i))>s?a=rG(i.min,i.max-s,n.min):s>o&&(a=rG(n.min,n.max-o,i.min)),et(0,1,a))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),im(t=>{if(!i0(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(nb(i,a,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;iZ.set(this.visualElement,this);let t=this.visualElement.current,n=iF(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,a=i!==t&&(iO.has(i.tagName)||!0===i.isContentEditable);n&&r&&!a&&this.start(e)}),r=()=>{var n,r,i;let a,s,{dragConstraints:o}=this.getProps();n8(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=o.current,a=iL(n,iQ(i=()=>this.scalePositionWithinConstraints())),s=iL(r,iQ(i)),e=()=>{a(),s()}))},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tc.read(r);let s=ig(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(im(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function iQ(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function i0(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let i1=e=>(t,n)=>{e&&tc.update(()=>e(t,n),!1,!0)},i2={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var i5=l;let i3=!1;class i4 extends i5.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i3&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),i2.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),i3=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||tc.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),tq.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;i3=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}
9function i6(e){let[t,n]=Y(),r=(0,i5.useContext)(V);return(0,o.jsx)(i4,{...e,layoutGroup:r,switchLayoutGroup:(0,i5.useContext)(n6),isPresent:t,safeToRemove:n})}let i8=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],i9=i8.length,i7=e=>"string"==typeof e?parseFloat(e):e,ae=e=>"number"==typeof e||eg.test(e);function at(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let an=ai(0,.5,rH),ar=ai(.5,.95,ts);function ai(e,t,n){return r=>r<e?0:r>t?1:n(rG(e,t,r))}function aa(e,t){e.min=t.min,e.max=t.max}function as(e,t){aa(e.x,t.x),aa(e.y,t.y)}function ao(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function al(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function au(e,t,[n,r,i],a,s){!function(e,t=0,n=1,r=.5,i,a=e,s=e){if(em.test(t)&&(t=parseFloat(t),t=nb(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let o=nb(a.min,a.max,r);e===a&&(o-=t),e.min=al(e.min,t,n,o,i),e.max=al(e.max,t,n,o,i)}(e,t[n],t[r],t[i],t.scale,a,s)}let ac=["x","scaleX","originX"],ad=["y","scaleY","originY"];function ah(e,t,n,r){au(e.x,t,ac,n?n.x:void 0,r?r.x:void 0),au(e.y,t,ad,n?n.y:void 0,r?r.y:void 0)}function ap(e){return 0===e.translate&&1===e.scale}function af(e){return ap(e.x)&&ap(e.y)}function am(e,t){return e.min===t.min&&e.max===t.max}function ag(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function av(e,t){return ag(e.x,t.x)&&ag(e.y,t.y)}function ay(e){return iy(e.x)/iy(e.y)}function ax(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ab{constructor(){this.members=[]}add(e){tP(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(tT(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(tT(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let aw=(e,t)=>e.depth-t.depth;class aE{constructor(){this.children=[],this.isDirty=!1}add(e){tP(this.children,e),this.isDirty=!0}remove(e){tT(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(aw),this.isDirty=!1,this.children.forEach(e)}}let ak=["","X","Y","Z"],aS=0;function aC(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function aP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=aS++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
9{this.projectionUpdateScheduled=!1,this.nodes.forEach(aM),this.nodes.forEach(aF),this.nodes.forEach(az),this.nodes.forEach(aA)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new aE)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tj),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=iS(t)&&!(iS(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;tc.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,a;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=tG.now(),a=({timestamp:e})=>{let n=e-t;n>=250&&(td(a),i(n-250))},tc.setup(a,!0),n=()=>td(a),i2.hasAnimatedSinceResize&&(i2.hasAnimatedSinceResize=!1,this.nodes.forEach(aI))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||a$,{onLayoutAnimationStart:s,onLayoutAnimationComplete:o}=i.getProps(),l=!this.targetLayout||!av(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...rn(a,"layout"),onPlay:s,onComplete:o};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u,t.path)}else t||aI(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),td(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(aB),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[n4];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",tc,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEac
9h(aL),this.nodes.forEach(aD);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(aN);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(aO),this.nodes.forEach(aV),this.nodes.forEach(aT),this.nodes.forEach(aj)):this.nodes.forEach(aN),this.clearAllSnapshots();let e=tG.now();th.delta=et(0,1e3/60,e-th.timestamp),th.timestamp=e,th.isProcessing=!0,tp.update.process(th),tp.preRender.process(th),tp.render.process(th),th.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tq.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aR),this.sharedNodes.forEach(aU)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tc.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tc.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iy(this.snapshot.measuredBox.x)||iy(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=eU()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!af(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||nM(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),aG((t=r).x),aG(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return eU();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(aX))){let{scroll:e}=this.root;e&&(nN(t.x,e.offset.x),nN(t.y,e.offset.y))}return t}removeElementScroll(e){let t=eU();if(as(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&as(t,e),nN(t.x,i.offset.x),nN(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||eU();as(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(nN(r.x,-n.scroll.offset.x),nN(r.y,-n.scroll.offset.y)),nM(n.latestValues)&&nI(r,n.latestValues,n.layout?.layoutBox)}return nM(this.latestValues)&&nI(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=eU();as(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];nM(r.latestValues)&&(r.instance&&(nj(r.latestValues)&&r.updateSnapshot(),as(n=eU(),r.measurePageBox())),ah(t,r.latestValues,r.snapshot?.layoutBox,n))}return nM(this.latestValues)&&ah(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==th.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
9isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=th.timestamp;let a=this.getClosestProjectingParent();if(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=eU(),this.targetWithTransforms=eU()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,o,l,u;this.forceRelativeParentToResolveTarget(),s=this.target,o=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,iw(s.x,o.x,l.x,u?.x),iw(s.y,o.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):as(this.target,this.layout.layoutBox),nL(this.target,this.targetDelta)):as(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||nj(this.parent.latestValues)||nA(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eU(),this.relativeTargetOrigin=eU(),ik(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),as(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===th.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;as(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,a,s=n.length;if(s){t.x=t.y=1;for(let o=0;o<s;o++){a=(i=n[o]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(nN(e.x,-i.scroll.offset.x),nN(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,nL(e,a)),r&&nM(i.latestValues)&&nI(e,i.latestValues,i.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=eU());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ao(this.prevProjectionDelta.x,this.projectionDelta.x),ao(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ib(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&ax(this.projectionDelta.x,this.prevProjectionDelta.x)&&ax(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ez(),this.projectionDelta=ez(),this.projectionDeltaWithTransform=ez()}setAnimationOrigin(e,t=!1,n){let r,i=this.snapshot,a=i?i.latestValues:{},s={...this.latestValues},o=ez();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=eU(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,h=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(aH));this.animationProgress=0;let p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=p?.(n);if(i?(o.x.translate=i.x,o.x.scale=nb(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=i.y,o.y.scale=nb(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(aW(o.x,e.x,n),aW(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,f,m,g,v,y;ik(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,g=this.relativeTargetOrigin,v=l,y=n,a_(m.x,g.x,v.x,y),a_(m.y,g.y,v.y,y),r&&(c=this.relativeTarget,f=r,am(c.x,f.x)&&am(c.y,f.y))&&(this.isProjectionDirty=!1),r||(r=eU()),as(r,this.relativeTarget)}u&&(this.animationValues=s,function(e,t,n,r,i,a){i?(e.opacity=nb(0,n.opacity??1,an(r)),e.opacityExit=nb(t.opacity??1,0,ar(r))):a&&(e.opacity=nb(t.opacity??1,n.opacity??1,r));for(let i=0;i<i9;i++){let a=i8[i],s=at(t,a),o=at(n,a);(void 0!==s||void 0!==o)&&(s||(s=0),o||(o=0),0===s||0===o||ae(s)===ae(o)?(e[a]=Math.max(nb(i7(s),i7(o),r),0),(em.test(o)||em.test(s))&&(e[a]+="%")):e[a]=o)}(t.rotate||n.rotate)&&(e.rotate=nb(t.rotate||0,n.rotate||0,r))}(s,a,this.latestValues,n,h,d)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=s),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(td(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tc.update(()=>{var t,n,r;let i;i2.hasAnimatedSinceResize=!0,tI.layout++,this.motionValue||(this.motionValue=tJ(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{tI.layout--},onComplete:()=>{tI.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=eW(t)?t:tJ(t)).start(ir("",i,n,r)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&aY(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||eU();let t=iy(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=iy(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}
9as(t,n),nI(t,i),ib(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ab),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&aC("z",e,r,this.animationValues);for(let t=0;t<ak.length;t++)aC(`rotate${ak[t]}`,e,r,this.animationValues),aC(`skew${ak[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=nZ(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nZ(t?.pointerEvents)||""),this.hasProjected&&!nM(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=function(e,t,n){let r="",i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:s,skewX:o,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),l&&(r+=`skewY(${l}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:s,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*o.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,nw){if(void 0===i[t])continue;let{correct:n,applyTo:s,isCSSVariable:o}=nw[t],l="none"===a?i[t]:n(i[t],r);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?nZ(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(aD),this.root.sharedNodes.clear()}}}function aT(e){e.updateLayout()}function aj(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if("size"===i)im(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=iy(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";aa(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else aY(i,t.layoutBox,n)&&im(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],s=iy(n[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=ez();ib(s,n,t.layoutBox);let o=ez();a?ib(o,e.applyTransform(r,!0),t.measuredBox):ib(o,n,t.layoutBox);let l=!af(s),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let s=e.options.layoutAnchor||void 0,o=eU();ik(o,t.layoutBox,i.layoutBox,s);let l=eU();ik(l,n,a.layoutBox,s),av(o,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function aM(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 aA(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aR(e){e.clearSnapshot()}function aD(e){e.clearMeasurements()}function aL(e){e.isLayoutDirty=!0,e.updateLayout()}function aN(e){e.isLayoutDirty=!1}function aO(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function aV(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function aI(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aF(e){e.resolveTargetDelta()}function az(e){e.calcProjection()}
9function aB(e){e.resetSkewAndRotation()}function aU(e){e.removeLeadSnapshot()}function aW(e,t,n){e.translate=nb(t.translate,0,n),e.scale=nb(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function a_(e,t,n,r){e.min=nb(t.min,n.min,r),e.max=nb(t.max,n.max,r)}function aH(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let a$={duration:.45,ease:[.4,0,.1,1]},aq=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),aK=aq("applewebkit/")&&!aq("chrome/")?Math.round:ts;function aG(e){e.min=aK(e.min),e.max=aK(e.max)}function aY(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(ay(t)-ay(n)))}function aX(e){return e!==e.root&&e.scroll?.wasRoot}let aZ=aP({attachResizeListener:(e,t)=>ig(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),aJ={current:void 0},aQ=aP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!aJ.current){let e=new aZ({});e.mount(window),e.setOptions({layoutScroll:!0}),aJ.current=e}return aJ.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function a0(e,t){let n=iC(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function a1(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&tc.postRender(()=>i(t,iI(t)))}let a2=(e,t)=>!!t&&(e===t||a2(e,t.parentElement)),a5=new WeakSet;function a3(e){return t=>{"Enter"===t.key&&e(t)}}function a4(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function a6(e){return iV(e)&&!(iv.x||iv.y)}let a8=new WeakSet;function a9(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&tc.postRender(()=>i(t,iI(t)))}let a7=new WeakMap,se=new WeakMap,st=e=>{let t=a7.get(e.target);t&&t(e)},sn=e=>{e.forEach(st)},sr={some:0,all:1},si=function(e,t){if("u"<typeof Proxy)return n9;let n=new Map,r=(n,r)=>n9(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>"create"===a?r:(n.has(a)||n.set(a,n9(a,void 0,e,t)),n.get(a))})}({animation:{Feature:class extends n7{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>is(e,t,n)));else if("string"==typeof t)r=is(e,t,n);else{let i="function"==typeof t?re(e,t,n.custom):t;r=Promise.all(ii(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=ih(),r=!0,i=!1,a=t=>(n,r)=>{let i=re(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function s(s){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<io;e++){let r=t3[e],i=t.props[r];(t2(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},u=[],c=new Set,d={},h=1/0;for(let t=0;t<ic;t++){var p,f;let m=iu[t],g=n[m],v=void 0!==o[m]?o[m]:l[m],y=t2(v),x=m===s?g.isActive:null;!1===x&&(h=t);let b=v===l[m]&&v!==o[m]&&y;if(b&&(r||i)&&e.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...d},!g.isActive&&null===x||!v&&!g.prevProp||t1(v)||"boolean"==typeof v)continue;if("exit"===m&&g.isActive&&!0!==x){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(f=v)?f!==p:!!Array.isArray(f)&&!il(f,p)),E=w||m===s&&g.isActive&&!b&&y||t>h&&y,k=!1,S=Array.isArray(v)?v:[v],C=S.reduce(a(m),{});!1===x&&(C={});let{prevResolvedValues:P={}}=g,T={...P,...C},j=t=>{E=!0,c.has(t)&&(k=!0,c.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=P[e];if(!d.hasOwnProperty(e))(rr(t)&&rr(n)?!il(t,n)||w:t!==n)?null!=t?j(e):c.add(e):void 0!==t&&c.has(e)?j(e):g.protectedKeys[e]=!0}g.prevProp=v,g.prevResolvedValues=C,g.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(E=!1);let M=b&&w,A=!M||k;E&&A&&u.push(...S.map(t=>{let n={type:m};if("string"==typeof t&&(r||i)&&!M&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=re(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=ia(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof o.initial){let n=re(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),u.push({animation:t})}let m=!!u.length;return r&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,i=!1,m?t(u):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();
9e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ih(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();t1(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends n7{constructor(){super(...arguments),this.id=ip++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=re(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends n7{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:a="some",once:s}=n,o={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof a?a:sr[a]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,s&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;se.has(n)||se.set(n,{});let r=se.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(sn,{root:e,...t})),r[i]}(o),a7.set(e,l),t.observe(e),()=>{a7.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends n7{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,a]=a0(e,n),s=e=>{let r=e.currentTarget;if(!a6(e)||a8.has(e))return;a5.add(r),n.stopPropagation&&a8.add(e);let a=t(r,e),s=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),a5.has(r)&&a5.delete(r),a6(e)&&"function"==typeof a&&a(e,{success:t})},o=e=>{s(e,r===window||r===document||n.useGlobalTarget||a2(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",o,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),U(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=a3(()=>{if(a5.has(n))return;a4(n,"down");let e=a3(()=>{a4(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>a4(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),iN.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}(e,(e,t)=>(a9(this.node,t,"Start"),(e,{success:t})=>a9(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends n7{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ra(ig(this.node.current,"focus",()=>this.onFocus()),ig(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends n7{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,a]=a0(e,n);
9return r.forEach(e=>{let n,r=!1,a=!1,s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},o=e=>{r=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),a&&(a=!1,s(e))},l=e=>{if("touch"!==e.pointerType){if(r){a=!0;return}s(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||iv.x||iv.y)return;a=!1;let s=t(e,r);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",o,i),window.addEventListener("pointercancel",o,i)},i)}),a}(e,(e,t)=>(a1(this.node,t,"Start"),e=>a1(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends n7{constructor(){super(...arguments),this.removePointerDownListener=ts}onPointerDown(e){this.session=new iW(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iz(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:i1(e),onStart:i1(t),onMove:i1(n),onEnd:(e,t)=>{delete this.session,r&&tc.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=iF(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends n7{constructor(e){super(e),this.removeGroupControls=ts,this.removeListeners=ts,this.controls=new iJ(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ts}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:aQ,MeasureLayout:i6},layout:{ProjectionNode:aQ,MeasureLayout:i6}},(e,t)=>t.isSVG??nU(e)?new nC(t):new nz(t,{allowProjection:e!==l.Fragment}));var sa=e.i(68877),ss=e.i(45060);function so({sections:e,simpleLinks:t}){let[n,r]=(0,l.useState)(null),i=(0,l.useRef)(null);function a(e){i.current&&clearTimeout(i.current),r(e)}function s(){i.current&&clearTimeout(i.current),i.current=setTimeout(()=>r(null),140)}function c(){i.current&&clearTimeout(i.current),r(null)}(0,l.useEffect)(()=>{function e(e){"Escape"===e.key&&c()}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let d=e.find(e=>e.id===n)??null;return(0,o.jsxs)("div",{className:"relative",onMouseLeave:s,children:[(0,o.jsxs)("nav",{className:"flex items-center gap-1",children:[e.map(e=>(0,o.jsxs)("button",{type:"button","aria-expanded":n===e.id,"aria-haspopup":"true",onMouseEnter:()=>a(e.id),onFocus:()=>a(e.id),onClick:()=>n===e.id?c():a(e.id),className:(0,ss.cn)("inline-flex items-center gap-1 rounded-full px-3.5 py-2 text-sm font-medium transition-colors",n===e.id?"bg-gray-bg text-brand":"text-ink hover:bg-gray-bg"),children:[e.label,(0,o.jsx)(E.ChevronDown,{className:(0,ss.cn)("h-3.5 w-3.5 transition-transform",n===e.id&&"rotate-180")})]},e.id)),t.map(e=>(0,o.jsx)(u.default,{href:e.href,onMouseEnter:s,className:"rounded-full px-3.5 py-2 text-sm font-medium text-ink transition-colors hover:bg-gray-bg",children:e.label},e.href))]}),(0,o.jsx)(J,{children:d&&(0,o.jsx)(si.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.16,ease:"easeOut"},onMouseEnter:()=>a(d.id),className:"absolute left-1/2 top-full z-50 mt-5 w-[min(60rem,90vw)] -translate-x-1/2",children:(0,o.jsx)(sl,{section:d,onNavigate:c})},d.id)})]})}function sl({section:e,onNavigate:t}){return(0,o.jsx)("div",{className:"overflow-hidden rounded-3xl border border-gray-border bg-white p-3 shadow-2xl shadow-black/10",children:(0,o.jsxs)("div",{className:"grid gap-3 md:grid-cols-[1fr_1.3fr]",children:[(0,o.jsxs)(u.default,{href:e.feature.href,onClick:t,className:"group relative flex min-h-56 flex-col justify-end overflow-hidden rounded-2xl p-6 text-white",children:[e.feature.image?(0,o.jsx)(M.default,{src:e.feature.image,alt:"",fill:!0,sizes:"(max-width: 1024px) 90vw, 26rem",className:"object-cover"}):(0,o.jsx)("div",{className:"dot-grid-brand absolute inset-0 bg-linear-to-br from-brand via-brand-dark to-ink"}),(0,o.jsx)("div",{className:"absolute inset-0 bg-linear-to-t from-black/55 to-transparent"}),(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("h3",{className:"text-lg font-semibold leading-snug",children:e.feature.title}),(0,o.jsx)("p",{className:"mt-1 text-sm text-white/85",children:e.feature.subtitle}),(0,o.jsxs)("span",{className:"mt-3 inline-flex items-center gap-1 text-sm font-medium opacity-90 transition-opacity group-hover:opacity-100",children:["Explore",(0,o.jsx)(sa.ArrowRight,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]})]}),(0,o.jsxs)("div",{className:"flex flex-col justify-between gap-4 p-3",children:[(0,o.jsx)("div",{className:"grid gap-x-6 gap-y-1 sm:grid-cols-2",children:e.columns.flatMap(e=>e.links).map(e=>{let n=e.icon;return(0,o.jsxs)(u.default,{href:e.href,onClick:t,className:"group/link flex items-center gap-2.5 rounded-lg px-3 py-2 text-sm text-gray-text transition-colors hover:bg-gray-bg hover:text-brand",children:[(0,o.jsx)("span",{className:"grid h-7 w-7 shrink-0 place-items-center rounded-lg border border-gray-border bg-white text-gray-text transition-colors group-hover/link:border-brand group-hover/link:text-brand",children:(0,o.jsx)(n,{className:"h-4 w-4"})}),e.label]},e.href+e.label)})}),(0,o.jsxs)("div",{className:"flex items-center justify-between gap-4 roun
9ded-2xl bg-gray-bg px-5 py-4",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"text-sm font-semibold text-ink",children:e.cta.title}),(0,o.jsx)("p",{className:"text-xs text-gray-text",children:e.cta.subtitle})]}),(0,o.jsxs)(u.default,{href:e.cta.href,onClick:t,className:"inline-flex shrink-0 items-center gap-1.5 rounded-full bg-ink px-4 py-2 text-xs font-semibold text-white transition-colors hover:bg-brand",children:[e.cta.label,(0,o.jsx)(sa.ArrowRight,{className:"h-3.5 w-3.5"})]})]})]})]})})}var su=e.i(56420);let sc=(0,su.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var sd=e.i(81140),sh=e.i(20783),sp=e.i(30030),sf=e.i(10772),sm=e.i(69340),sg=e.i(26330),sv=e.i(65491),sy=e.i(74606),sx=e.i(96626),sb=e.i(48425),sw=e.i(3536),sE=e.i(85369),sk=e.i(86312),sS=e.i(91918),sC="Dialog",[sP,sT]=(0,sp.createContextScope)(sC),[sj,sM]=sP(sC),sA=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,u=l.useRef(null),c=l.useRef(null),[d,h]=(0,sm.useControllableState)({prop:r,defaultProp:i??!1,onChange:a,caller:sC});return(0,o.jsx)(sj,{scope:t,triggerRef:u,contentRef:c,contentId:(0,sf.useId)(),titleId:(0,sf.useId)(),descriptionId:(0,sf.useId)(),open:d,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(e=>!e),[h]),modal:s,children:n})};sA.displayName=sC;var sR="DialogTrigger",sD=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=sM(sR,n),a=(0,sh.useComposedRefs)(t,i.triggerRef);return(0,o.jsx)(sb.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":sJ(i.open),...r,ref:a,onClick:(0,sd.composeEventHandlers)(e.onClick,i.onOpenToggle)})});sD.displayName=sR;var sL="DialogPortal",[sN,sO]=sP(sL,{forceMount:void 0}),sV=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=sM(sL,t);return(0,o.jsx)(sN,{scope:t,forceMount:n,children:l.Children.map(r,e=>(0,o.jsx)(sx.Presence,{present:n||a.open,children:(0,o.jsx)(sy.Portal,{asChild:!0,container:i,children:e})}))})};sV.displayName=sL;var sI="DialogOverlay",sF=l.forwardRef((e,t)=>{let n=sO(sI,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=sM(sI,e.__scopeDialog);return a.modal?(0,o.jsx)(sx.Presence,{present:r||a.open,children:(0,o.jsx)(sB,{...i,ref:t})}):null});sF.displayName=sI;var sz=(0,sS.createSlot)("DialogOverlay.RemoveScroll"),sB=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=sM(sI,n);return(0,o.jsx)(sE.RemoveScroll,{as:sz,allowPinchZoom:!0,shards:[i.contentRef],children:(0,o.jsx)(sb.Primitive.div,{"data-state":sJ(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),sU="DialogContent",sW=l.forwardRef((e,t)=>{let n=sO(sU,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=sM(sU,e.__scopeDialog);return(0,o.jsx)(sx.Presence,{present:r||a.open,children:a.modal?(0,o.jsx)(s_,{...i,ref:t}):(0,o.jsx)(sH,{...i,ref:t})})});sW.displayName=sU;var s_=l.forwardRef((e,t)=>{let n=sM(sU,e.__scopeDialog),r=l.useRef(null),i=(0,sh.useComposedRefs)(t,n.contentRef,r);return l.useEffect(()=>{let e=r.current;if(e)return(0,sk.hideOthers)(e)},[]),(0,o.jsx)(s$,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,sd.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,sd.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,sd.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})}),sH=l.forwardRef((e,t)=>{let n=sM(sU,e.__scopeDialog),r=l.useRef(!1),i=l.useRef(!1);return(0,o.jsx)(s$,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),s$=l.forwardRef((e,t)=>
9{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,u=sM(sU,n),c=l.useRef(null),d=(0,sh.useComposedRefs)(t,c);return(0,sw.useFocusGuards)(),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(sv.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,o.jsx)(sg.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":sJ(u.open),...s,ref:d,onDismiss:()=>u.onOpenChange(!1)})}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s2,{titleId:u.titleId}),(0,o.jsx)(s5,{contentRef:c,descriptionId:u.descriptionId})]})]})}),sq="DialogTitle",sK=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=sM(sq,n);return(0,o.jsx)(sb.Primitive.h2,{id:i.titleId,...r,ref:t})});sK.displayName=sq;var sG="DialogDescription",sY=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=sM(sG,n);return(0,o.jsx)(sb.Primitive.p,{id:i.descriptionId,...r,ref:t})});sY.displayName=sG;var sX="DialogClose",sZ=l.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=sM(sX,n);return(0,o.jsx)(sb.Primitive.button,{type:"button",...r,ref:t,onClick:(0,sd.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})});function sJ(e){return e?"open":"closed"}sZ.displayName=sX;var sQ="DialogTitleWarning",[s0,s1]=(0,sp.createContext)(sQ,{contentName:sU,titleName:sq,docsSlug:"dialog"}),s2=({titleId:e})=>{let t=s1(sQ),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 10 11If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 12 13For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},s5=({contentRef:e,descriptionId:t})=>{let n=s1("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return l.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null};e.s(["Close",0,sZ,"Content",0,sW,"Description",0,sY,"Dialog",0,sA,"DialogClose",0,sZ,"DialogContent",0,sW,"DialogDescription",0,sY,"DialogOverlay",0,sF,"DialogPortal",0,sV,"DialogTitle",0,sK,"DialogTrigger",0,sD,"Overlay",0,sF,"Portal",0,sV,"Root",0,sA,"Title",0,sK,"Trigger",0,sD,"WarningProvider",0,s0,"createDialogScope",0,sT],26999);var s3=e.i(26999),s3=s3,s4=e.i(75157),s6=e.i(7670);let s8=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s9=s6.clsx,s7=(i="group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a={variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;if((null==a?void 0:a.variants)==null)return s9(i,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:n,defaultVariants:r}=a,s=Object.keys(n).map(t=>{let i=null==e?void 0:e[t],a=null==r?void 0:r[t];if(null===i)return null;let s=s8(i)||s8(a);return n[t][s]}),o=e&&Object.entries(e).reduce((e,t)=>
13{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return s9(i,s,null==a||null==(t=a.compoundVariants)?void 0:t.reduce((e,t)=>{let{class:n,className:i,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...r,...o}[t]):({...r,...o})[t]===n})?[...e,n,i]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)});function oe({className:e,variant:t="default",size:n="default",asChild:r=!1,...i}){let a=r?sS.Root:"button";return(0,o.jsx)(a,{"data-slot":"button","data-variant":t,"data-size":n,className:(0,s4.cn)(s7({variant:t,size:n,className:e})),...i})}var ot=e.i(14387),ot=ot;function on({...e}){return(0,o.jsx)(s3.Root,{"data-slot":"sheet",...e})}function or({...e}){return(0,o.jsx)(s3.Trigger,{"data-slot":"sheet-trigger",...e})}function oi({...e}){return(0,o.jsx)(s3.Portal,{"data-slot":"sheet-portal",...e})}function oa({className:e,...t}){return(0,o.jsx)(s3.Overlay,{"data-slot":"sheet-overlay",className:(0,s4.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function os({className:e,children:t,side:n="right",showCloseButton:r=!0,...i}){return(0,o.jsxs)(oi,{children:[(0,o.jsx)(oa,{}),(0,o.jsxs)(s3.Content,{"data-slot":"sheet-content","data-side":n,className:(0,s4.cn)("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",e),...i,children:[t,r&&(0,o.jsx)(s3.Close,{"data-slot":"sheet-close",asChild:!0,children:(0,o.jsxs)(oe,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm",children:[(0,o.jsx)(ot.default,{}),(0,o.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})}function oo({className:e,...t}){return(0,o.jsx)(s3.Title,{"data-slot":"sheet-title",className:(0,s4.cn)("font-heading text-base font-medium text-foreground",e),...t})}function ol({sections:e,simpleLinks:t,dict:n,locale:r}){let[i,a]=(0,l.useState)(!1),[s,h]=(0,l.useState)(null),[g,v]=(0,l.useState)(null),y=(0,p.usePathname)(),{openLogin:x}=(0,C.useLoginModal)(),b=n.header;async function k(){try{await fetch("/api/auth/logout",{method:"POST"})}finally{a(!1),window.location.assign("/")}}(0,l.useEffect)(()=>{let e=!0;return fetch("/api/auth/me",{cache:"no-store"}).then(e=>e.json()).then(t=>{e&&v(t)}).catch(()=>{e&&v({authenticated:!1})}),()=>{e=!1}},[y]);let S=()=>a(!1),P=!!g?.authenticated;return(0,o.jsxs)(on,{open:i,onOpenChange:a,children:[(0,o.jsx)(or,{asChild:!0,children:(0,o.jsx)("button",{type:"button","aria-label":n.megaMenu.openMenu,className:"grid h-10 w-10 place-items-center rounded-full border border-gray-border bg-white text-ink lg:hidden",children:(0,o.jsx)(sc,{className:"h-5 w-5"})})}),(0,o.jsxs)(os,{side:"right",className:"w-[88%] gap-0 bg-white p-0 sm:max-w-sm",children:[(0,o.jsx)(oo,{className:"px-5 pb-3 pt-4 text-base font-semibold text-ink",children:b.menu}),(0,o.jsx)("div",{className:"flex-1 overflow-y-auto px-4 pb-4",children:(0,o.jsxs)("div",{className:"space-y-2",children:[e.map(e=>{let t=s===e.id;return(0,o.jsxs)("div",{className:"rounded-2xl border border-gray-border",children:[(0,o.jsxs)("button",{type:"button",onClick:()=>h(t?null:e.id),"aria-expanded":t,className:"flex w-full items-center justify-between px-4 py-3 text-left text-base font-semibold text-ink",children:[e.label,(0,o.jsx)(E.ChevronDown,{className:(0,ss.cn)("h-4 w-4 transition-transform",t&&"rotate-180")}
13)]}),(0,o.jsx)(J,{initial:!1,children:t&&(0,o.jsx)(si.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:(0,o.jsx)("div",{className:"flex flex-col px-2 pb-2",children:e.columns.flatMap(e=>e.links).map(e=>{let t=e.icon;return(0,o.jsxs)(u.default,{href:e.href,onClick:S,className:"flex items-center gap-2.5 rounded-lg px-3 py-2 text-sm text-gray-text hover:bg-gray-bg hover:text-brand",children:[(0,o.jsx)(t,{className:"h-4 w-4 shrink-0 text-brand"}),e.label]},e.href+e.label)})})})})]},e.id)}),t.map(e=>(0,o.jsx)(u.default,{href:e.href,onClick:S,className:"block rounded-2xl border border-gray-border px-4 py-3 text-base font-semibold text-ink",children:e.label},e.href)),(0,o.jsxs)(u.default,{href:(0,R.localizeHref)("/favorites/",r),onClick:S,className:"flex items-center gap-2.5 rounded-2xl border border-gray-border px-4 py-3 text-base font-semibold text-ink",children:[(0,o.jsx)(c.Heart,{className:"h-5 w-5 text-brand"}),b.favorites]})]})}),(0,o.jsxs)("div",{className:"mt-auto space-y-3 border-t border-gray-border bg-white p-4",children:[P?(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsxs)(u.default,{href:"/dashboard",onClick:S,className:"flex items-center gap-2.5 rounded-xl bg-gray-bg px-4 py-3 text-sm font-semibold text-ink",children:[(0,o.jsx)(m.LayoutDashboard,{className:"h-5 w-5 text-brand"}),b.dashboard]}),(0,o.jsxs)("button",{type:"button",onClick:k,className:"flex w-full items-center gap-2.5 rounded-xl px-4 py-3 text-sm font-medium text-gray-text hover:bg-gray-bg",children:[(0,o.jsx)(w.LogOut,{className:"h-5 w-5"}),b.logout]})]}):(0,o.jsxs)("button",{type:"button",onClick:()=>{S(),x()},className:"flex w-full items-center justify-center gap-2 rounded-xl border border-gray-border px-4 py-3 text-sm font-semibold text-ink hover:bg-gray-bg",children:[(0,o.jsx)(f.UserRound,{className:"h-4 w-4"}),b.signIn]}),(0,o.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,o.jsx)(N.LanguageSwitcher,{}),(0,o.jsxs)(u.default,{href:P?"/dashboard/properties/new":(0,R.localizeHref)("/list-your-property/",r),onClick:S,className:"inline-flex items-center gap-2 rounded-full bg-brand px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-brand-dark",children:[(0,o.jsx)(d.Plus,{className:"h-4 w-4"}),b.listProperty]})]})]})]})]})}var ou=e.i(57229);let oc=(0,su.default)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);var od=e.i(75153),oh=e.i(6501);let op=(0,su.default)("calendar-range",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]]);var of=e.i(80546),om=e.i(23482);let og=(0,su.default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),ov=(0,su.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var oy=e.i(96315),ox=e.i(20865);let ob=(0,su.default)("square-plus",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);var ow=e.i(17497),oE=e.i(2411),ok=e.i(10260);e.s(["Header",0,function(){let e,t,n,r,i,a=(0,D.useLocale)(),s=(0,ou.getDictionary)(a),p=(e=s.megaMenu,t=s.footer.links,n=e=>(0,R.localizeHref)(e,a),r=e=>(0,R.localizedStaticPath)(e,a),i={title:e.cta.title,subtitle:e.cta.subtitle,label:e.cta.label,href:r("contact")},[{id:"cities",label:e.sections.cities.label,feature:{title:e.sections.cities.featureTitle,subtitle:e.sections.cities.featureSubtitle,href:r("longTerm"),image:"/images/content/menu-cities.webp"},columns:[{links:A.FEATURED_CITIES.map(e=>({href:n(`/city/${e.slug}
13/`),label:(0,ow.localizedCityName)(e.slug,e.name,a),icon:ox.MapPin}))}],cta:i},{id:"rent",label:e.sections.rent.label,feature:{title:e.sections.rent.featureTitle,subtitle:e.sections.rent.featureSubtitle,href:r("longTerm"),image:"/images/content/menu-rent.webp"},columns:[{links:[{href:r("longTerm"),label:t.longTerm,icon:op},{href:r("shortTerm"),label:t.shortTerm,icon:oh.CalendarClock},{href:r("booking"),label:t.booking,icon:od.CalendarCheck},{href:r("studio"),label:t.studio,icon:of.DoorOpen},{href:r("owners"),label:t.listProperty,icon:ob}]}],cta:i},{id:"erasmus",label:e.sections.erasmus.label,feature:{title:e.sections.erasmus.featureTitle,subtitle:e.sections.erasmus.featureSubtitle,href:n(oE.ERASMUS_FOOTER_LINKS[0]?.href??"/"),image:"/images/content/menu-erasmus.webp"},columns:[{links:oE.ERASMUS_FOOTER_LINKS.map(e=>({href:n(e.href),label:e.label,icon:om.GraduationCap}))}],cta:i},{id:"company",label:e.sections.company.label,feature:{title:e.sections.company.featureTitle,subtitle:e.sections.company.featureSubtitle,href:r("about"),image:"/images/content/menu-company.webp"},columns:[{links:[{href:r("about"),label:t.about,icon:ov},{href:r("contact"),label:t.contact,icon:oy.Mail},...ok.AGENCY_FOOTER_LINKS.map(e=>({href:n(e.href),label:e.label,icon:g.Building2})),{href:r("careers"),label:t.careers,icon:oc},{href:r("faq"),label:t.faq,icon:og}]}],cta:i}]),f=[{href:(0,R.localizedStaticPath)("blog",a),label:s.footer.links.blog},{href:(0,R.localizedStaticPath)("contact",a),label:s.footer.links.contact}],[m,v]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=()=>v(window.scrollY>8);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);let[y,x]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=!0;return fetch("/api/auth/me",{cache:"no-store"}).then(e=>e.json()).then(t=>{e&&x(!!t?.authenticated)}).catch(()=>{e&&x(!1)}),()=>{e=!1}},[]);let b=y?"/dashboard/properties/new":(0,R.localizeHref)("/list-your-property/",a);return(0,o.jsxs)("header",{className:"sticky top-0 z-40 pt-3",children:[(0,o.jsx)("div",{className:`absolute inset-0 -z-10 border-b border-gray-border bg-white/95 shadow-sm backdrop-blur transition-opacity duration-200 ${m?"opacity-100":"opacity-0"}`,"aria-hidden":!0}),(0,o.jsx)(h.Container,{children:(0,o.jsxs)("div",{className:`flex h-16 items-center justify-between gap-4 rounded-full pl-5 pr-3 transition-all ${m?"border border-transparent":"border border-gray-border bg-white/90 shadow-lg shadow-black/5 backdrop-blur"}`,children:[(0,o.jsx)(L,{className:"flex shrink-0 items-center"}),(0,o.jsx)("div",{className:"hidden lg:flex",children:(0,o.jsx)(so,{sections:p,simpleLinks:f})}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(u.default,{href:(0,R.localizeHref)("/favorites/",a),"aria-label":s.header.favorites,className:"hidden h-10 w-10 place-items-center rounded-full text-ink hover:bg-gray-bg sm:grid",children:(0,o.jsx)(c.Heart,{className:"h-5 w-5"})}),(0,o.jsx)("div",{className:"hidden sm:block",children:(0,o.jsx)(N.LanguageSwitcher,{})}),(0,o.jsx)(j,{}),(0,o.jsxs)(u.default,{href:b,className:"inline-flex items-center gap-2 rounded-full bg-brand px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-brand-dark",children:[(0,o.jsx)(d.Plus,{className:"h-4 w-4"}),(0,o.jsx)("span",{className:"hidden sm:inline",children:s.header.listProperty}),(0,o.jsx)("span",{className:"sm:hidden",children:s.header.listShort})]}),(0,o.jsx)(ol,{sections:p,simpleLinks:f,dict:s,locale:a})]})]})})]})}],3374)},58234,e=>{"use strict";var t=e.i(43476),n=e.i(22016),r=e.i(57688),i=e.i(18566),a=e.i(28540),s=e.i(71645),o=e.i(68877),l=e.i(89664),u=e.i(9520),c=e.i(57229),d=e.i(34875),h=e.i(45828);function p(){let e=(0,d.useLocale)(),n=(0,c.getDictionary)(e).footer.newsletter,[r,i]=(0,s.useState)(""),[a,p]=(0,s.use
13State)("idle");async function f(t){if(t.preventDefault(),"loading"!==a){p("loading");try{if(!(await fetch("/api/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r,locale:e})})).ok)throw Error("request_failed");p("success"),(0,h.trackNewsletterSignup)(e),i("")}catch{p("error")}}}return(0,t.jsxs)("form",{onSubmit:f,className:"flex w-full max-w-sm flex-col gap-2",children:[(0,t.jsx)("label",{htmlFor:"newsletter-email",className:"sr-only",children:n.emailLabel}),(0,t.jsxs)("div",{className:"flex items-center rounded-full border border-gray-border bg-white pl-5 pr-1.5 focus-within:border-brand",children:[(0,t.jsx)("input",{id:"newsletter-email",type:"email",name:"email",required:!0,value:r,onChange:e=>{i(e.target.value),"idle"!==a&&p("idle")},placeholder:n.placeholder,className:"h-11 min-w-0 flex-1 bg-transparent text-sm text-ink outline-none placeholder:text-gray-text"}),(0,t.jsx)("button",{type:"submit",disabled:"loading"===a,"aria-label":n.subscribe,className:"grid h-8 w-8 shrink-0 place-items-center rounded-full bg-brand text-white transition-colors hover:bg-brand-dark disabled:opacity-60",children:"success"===a?(0,t.jsx)(l.Check,{className:"h-4 w-4"}):(0,t.jsx)(o.ArrowRight,{className:"h-4 w-4"})})]}),"success"===a&&(0,t.jsx)("p",{className:"text-left text-sm text-brand",role:"status",children:n.success}),"error"===a&&(0,t.jsx)("p",{className:"text-left text-sm text-red-600",role:"alert",children:n.error}),(0,t.jsx)(u.FormPrivacyNote,{className:"mt-2 max-w-sm text-left"})]})}var f=e.i(31338),m=e.i(2411),g=e.i(10260),v=e.i(80981),y=e.i(17497),x=e.i(67176),b=e.i(29121);let w={Facebook:"https://www.facebook.com/rentflatpoland/",LinkedIn:"https://www.linkedin.com/company/rentflatpoland/",Instagram:"https://www.instagram.com/rentflatpoland/",YouTube:"https://www.youtube.com/channel/UCtQnSpoCcpcag34uTqGezKQ"};function E({path:e,className:n}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:n,"aria-hidden":!0,focusable:"false",children:(0,t.jsx)("path",{d:e})})}let k=Object.entries({Facebook:"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987H7.898v-2.89h2.54V9.797c0-2.507 1.493-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z",LinkedIn:"M4.98 3.5C4.98 4.881 3.87 6 2.5 6S.02 4.881.02 3.5C.02 2.12 1.13 1 2.5 1s2.48 1.12 2.48 2.5zM.24 8h4.52v14H.24V8zM8.24 8h4.33v1.92h.06c.6-1.14 2.07-2.34 4.27-2.34 4.57 0 5.41 3.01 5.41 6.92V22h-4.52v-6.16c0-1.47-.03-3.36-2.05-3.36-2.05 0-2.36 1.6-2.36 3.25V22H8.24V8z",Instagram:"M12 2.16c3.2 0 3.58.01 4.85.07 1.17.05 1.8.25 2.23.41.56.22.96.48 1.38.9.42.42.68.82.9 1.38.16.42.36 1.06.41 2.23.06 1.27.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.05 1.17-.25 1.8-.41 2.23-.22.56-.48.96-.9 1.38-.42.42-.82.68-1.38.9-.42.16-1.06.36-2.23.41-1.27.06-1.65.07-4.85.07s-3.58-.01-4.85-.07c-1.17-.05-1.8-.25-2.23-.41a3.7 3.7 0 01-1.38-.9 3.7 3.7 0 01-.9-1.38c-.16-.42-.36-1.06-.41-2.23-.06-1.27-.07-1.65-.07-4.85s.01-3.58.07-4.85c.05-1.17.25-1.8.41-2.23.22-.56.48-.96.9-1.38.42-.42.82-.68 1.38-.9.42-.16 1.06-.36 2.23-.41C8.42 2.17 8.8 2.16 12 2.16zm0 3.68A6.16 6.16 0 1018.16 12 6.16 6.16 0 0012 5.84zm0 10.16A4 4 0 1116 12a4 4 0 01-4 4zm6.41-10.4a1.44 1.44 0 11-1.44-1.44 1.44 1.44 0 011.44 1.44z",YouTube:"M23.5 6.2a3.02 3.02 0 00-2.12-2.14C19.5 3.55 12 3.55 12 3.55s-7.5 0-9.38.51A3.02 3.02 0 00.5 6.2 31.5 31.5 0 000 12a31.5 31.5 0 00.5 5.8 3.02 3.02 0 002.12 2.14c1.88.51 9.38.51 9.38.51s7.5 0 9.38-.51a3.02 3.02 0 002.12-2.14A31.5 31.5 0 0024 12a31.5 31.5 0 00-.5-5.8zM9.6 15.6V8.4l6.2 3.6z"}).map(([e,t])=>({href:w[e]??"#",label:e,path:t}));e.s(["Footer",0,function(){let e=(0,d.useLocale)(),s=(0,c.getDictionary)(e).footer,o=(0,i.usePathname)(),l=/^\/(?:fr\/|it\/)?properties\//.test(o??""),u=(0,v.pathsForCurrent)(o??"/"),h=[{title:s.columns.popularCities,links:f.FEATURED_CITIES.map(t=>({href:`/city/${t.slug}/`,label:(0,y.localizedCityName)(t.slug,t.name,e)}))},{title:s.columns.browse,links:[{href:"/action/long-term-rentals/",label:s.links.longTerm},{href:"/action/short-term-rentals/",label:s.links.shortTerm},{href:"/booking-in-advance/",label:s.links.booking},{href:"/studio-for-rent-in-warsaw/",label:s.links.studio},{href:"/list-your-property/",label:s.links.listProperty}]},{title:s.columns.erasmus,links:m.ERASMUS_FOOTER_LINKS},{title:s.columns.company,links:[{href:"/about-us/",label:s.links.about},{href:"/contact-us/",label:s.links.contact},...g.AGENCY_FOOTER_LINKS,{href:"/careers/",label:s.links.careers},{href:"/faq/",label:s.links.faq},{href:"/blog/",label:s.links.blog}]},{title:s.columns.legal,links:[{href:"/privacy-policy/",label:s.links.privacy},{href:"/terms-of-use/",label:s.links.terms}]}];return(0,t.jsx)("footer",{className:`border-t border-gray-border bg-gray-bg${l?" pb-20 lg:pb-0":""}`,children:(0,t.jsxs)(a.Container,{className:"py-14",children:[(0,t.jsxs)("div",{className:"grid items-center gap-8 border-b border-gray-border pb-10 lg:grid-cols-[auto_1fr_auto]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.default,{href:(0,v.localizedStaticPath)("home",e),"aria-label":f.SITE.name,className:"inline-flex items-center",children:(0,t.jsx)(r.default,{src:"/logo.png",alt:f.SITE.name,width:360,height:96,className:"h-12 w-auto"})}),(0,t.jsx)("div",{className:"mt-4 flex items-center gap-3",children:k.map(e=>(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.label,className:"grid h-9 w-9 place-items-center rounded-full border border-gray-border bg-white text-gray-text transition-colors hover:border-brand hover:text-brand",children:(0,t.jsx)(E,{path:e.path,className:"h-4 w-4"})},e.label))})]}),(0,t.jsxs)("p",{className:"max-w-md text-sm text-gray-text lg:text-base",children:[(0,t.jsx)("span",{className:"font-semibold text-ink",children:s.newsletter.title}
13)," ",s.newsletter.subtitle]}),(0,t.jsx)(p,{})]}),(0,t.jsx)("div",{className:"mt-12 grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-5",children:h.map(r=>(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-semibold uppercase tracking-wide text-ink",children:r.title}),(0,t.jsx)("ul",{className:"mt-4 space-y-2",children:r.links.map(r=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:(0,v.localizeHref)(r.href,e),className:"text-sm text-gray-text transition-colors hover:text-brand",children:r.label})},r.href))})]},r.title))}),(0,t.jsxs)("div",{className:"mt-12 flex flex-col items-center justify-between gap-4 border-t border-gray-border pt-6 text-sm text-gray-text md:flex-row",children:[(0,t.jsx)("p",{children:s.copyright}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("nav",{"aria-label":"Language versions",className:"flex items-center gap-3",children:b.LOCALES.map(r=>(0,t.jsx)(n.default,{href:u[r],hrefLang:r,"aria-current":r===e?"true":void 0,className:`text-xs font-semibold uppercase tracking-wide transition-colors hover:text-brand ${r===e?"text-brand":"text-gray-text"}`,children:b.LOCALE_LABEL[r]},r))}),(0,t.jsx)(x.LanguageSwitcher,{})]})]})]})})}],58234)},99147,e=>{"use strict";var t=e.i(71645),n=e.i(18566),r=e.i(26817);let i=["SG"];e.s(["AnalyticsRouteGuard",0,function(){let e=(0,n.usePathname)(),a=(0,t.useRef)(!0);return(0,t.useEffect)(()=>{let t;if(!r.GA_ID)return;let n=RegExp(`^${r.GA_DISABLED_PREFIX}(/|$)`).test(e)||(t=function(){if("u"<typeof document)return"";try{let e=new URLSearchParams(window.location.search).get("geo");if(e)return e.toUpperCase()}catch{}let e=document.cookie.match(/(?:^|; )rfp_geo=([^;]*)/);return e?decodeURIComponent(e[1]).toUpperCase():""}(),i.includes(t));if(window[`ga-disable-${r.GA_ID}`]=n,a.current){a.current=!1;return}n||"function"!=typeof window.gtag||window.gtag("event","page_view",{page_path:e,page_location:window.location.href,page_title:document.title})},[e]),null}],99147)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.