diff --git a/dist/assets/about-Bzxa7wEe.js b/dist/assets/about-Bzxa7wEe.js deleted file mode 100644 index acd1593..0000000 --- a/dist/assets/about-Bzxa7wEe.js +++ /dev/null @@ -1 +0,0 @@ -import{j as s,f as o,C as t,A as a,g as e,h as r,i as u,k as i}from"./ui-library-DAxvtEhC.js";import"./react-vendor-DnK_KZAP.js";import{u as x}from"./use-scroll-top-DE9Ps7OH.js";function l(){return x(),s.jsxs("div",{className:o(""),children:[s.jsx(t,{title:"О выставке"}),s.jsx(a,{}),s.jsx(e,{}),s.jsx(r,{}),s.jsx(u,{}),s.jsx(i,{})]})}export{l as default}; diff --git a/dist/assets/about-CfupYjxN.js b/dist/assets/about-CfupYjxN.js new file mode 100644 index 0000000..b4941db --- /dev/null +++ b/dist/assets/about-CfupYjxN.js @@ -0,0 +1 @@ +import{u as t,j as s,f as e,C as u,L as n,A as r,g as i,h as x,i as j,k as l}from"./ui-library-HZBIYpKi.js";import"./react-vendor-OnsDvTPE.js";import{u as m}from"./use-scroll-top-ByehxtTO.js";function f(){m();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(j,{}),s.jsx(l,{})]})}export{f as default}; diff --git a/dist/assets/b2b-0AjR145U.js b/dist/assets/b2b-0AjR145U.js deleted file mode 100644 index 3d89872..0000000 --- a/dist/assets/b2b-0AjR145U.js +++ /dev/null @@ -1 +0,0 @@ -import{u as h,j as e,m as j,l as S,n as x,o as g,p as u,q as n,B as m,L as w,r as k,s as C,t as _,v as G,C as P,w as D}from"./ui-library-DAxvtEhC.js";import{a as v}from"./react-vendor-DnK_KZAP.js";import{z as t,t as V,a as q}from"./index-DenciP1O.js";import{R as E,a as N}from"./radio-group-l9zuvveu.js";import{u as R}from"./use-scroll-top-DE9Ps7OH.js";const J=t.object({type:t.string(),company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:t.string().min(1,{message:"Укажите количество участников"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:t.string().email({message:"Укажите корректный email"}),phone_number:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),meeting_objective:t.string().min(3,{message:"Укажите цель встречи"}),proposal_description:t.string().optional(),government_agency:t.string().optional(),sector_industry:t.string().optional(),key_services:t.string().optional(),government_experience:t.string().optional(),preferred_meeting_datetime:t.string().optional(),meeting_mode:t.string().optional(),language_preference:t.string().optional(),technical_requirements:t.string().optional(),company_profile:t.custom(r=>r instanceof File,{message:"Выберите корректный файл"}).refine(r=>r&&["image/jpeg","image/png","application/pdf"].includes(r.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:t.custom(r=>r instanceof File,{message:"Выберите корректный файл"}).refine(r=>r&&["image/jpeg","image/png","application/pdf"].includes(r.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:t.custom(r=>r instanceof File,{message:"Выберите корректный файл"}).refine(r=>r&&["image/jpeg","image/png","application/pdf"].includes(r.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),L={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""},T=({handleNext:r})=>{const{control:s,formState:a}=h();return e.jsxs(j.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[e.jsx("h3",{className:"h2 mb-8",children:"Информация об экспоненте:"}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(S,{defaultValue:1,control:s,name:"type",render:({field:i})=>e.jsxs(x,{className:"space-y-3",children:[e.jsx(g,{className:"text-xl",children:"Тип:"}),e.jsx(u,{children:e.jsxs(E,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(x,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(u,{children:e.jsx(N,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(g,{className:"text-base",children:"B2B"})]}),e.jsxs(x,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(u,{children:e.jsx(N,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(g,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(n,{control:s,name:"company_name",error:a.errors.company_name,placeholder:"",label:"Название компании/организации"}),e.jsx(n,{control:s,name:"representative_name",error:a.errors.representative_name,placeholder:"",label:"Имя представителя"}),e.jsx(n,{control:s,name:"job_title",error:a.errors.job_title,placeholder:"",label:"Название должности/позиция"}),e.jsx(n,{control:s,name:"participants_number",error:a.errors.participants_number,placeholder:"",label:"Количество участников"}),e.jsx(n,{control:s,name:"country",error:a.errors.country,placeholder:"",label:"Страна"}),e.jsx(n,{control:s,name:"email_address",error:a.errors.email_address,placeholder:"",label:"E-mail адрес"}),e.jsx(n,{control:s,name:"phone_number",error:a.errors.phone_number,placeholder:"",label:"Номер телефона"}),e.jsx(n,{control:s,name:"website",placeholder:"",label:"Вебсайт"})]}),e.jsx(m,{variant:"secondary",type:"button",onClick:r,className:"w-full mt-10",children:"Далее"})]})},z=({handleNext:r,handlePrev:s})=>{const{control:a,formState:i}=h();return e.jsxs(j.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[e.jsx("h3",{className:"h2 mb-8",children:"Цели встречи:"}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(n,{control:a,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:"Основная цель встречи"}),e.jsx(n,{control:a,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:"Краткое описание вашего предложения/проекта/запроса"}),e.jsx(n,{control:a,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:"Соответствующее государственное учреждение/департамент"}),e.jsx("h3",{className:"h2 mt-4",children:"Информация о компании/организации:"}),e.jsx(n,{control:a,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:"Отраслевая промышленность"}),e.jsx(n,{control:a,name:"key_services",error:i.errors.key_services,placeholder:"",label:"Ключевые услуги/продукты"}),e.jsx(n,{control:a,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:"Предыдущий опыт работы с правительствами (если применимо)"})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(m,{type:"button",onClick:s,variant:"outline",className:"text-on_surface",children:"Вернуться назад"}),e.jsx(m,{variant:"secondary",type:"button",onClick:r,className:"w-full",children:"Далее"})]})]})},I=({handlePrev:r})=>{const{control:s,formState:a}=h();return e.jsxs(j.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[e.jsx("h3",{className:"h2 mb-8",children:"Логистика встречи:"}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(n,{control:s,name:"preferred_meeting_datetime",error:a.errors.preferred_meeting_datetime,placeholder:"",label:"Предпочтительная дата и время "}),e.jsx(n,{control:s,name:"preferred_mode",error:a.errors.preferred_mode,placeholder:"",label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"}),e.jsx(n,{control:s,name:"language_preference",error:a.errors.language_preference,placeholder:"",label:"Предпочитаемый язык (английский, туркменский, русский, другой)"}),e.jsx(n,{control:s,name:"additional_technical",error:a.errors.additional_technical,placeholder:"",label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"})]}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{className:"",children:[e.jsx("h3",{className:"h2 mt-10",children:"Приложения:"}),e.jsx("h5",{className:"text-on_surface_v",children:"(Пожалуйста приложите следующие документы, если это необходимо)"})]}),e.jsx(n,{control:s,name:"company_profile",label:"Название компании/организации",type:"file",textDark:!0}),e.jsx(n,{control:s,name:"proposal_presentation",label:"Предложение/презентация",type:"file",textDark:!0}),e.jsx(n,{control:s,name:"relevant_certification",label:"Соответствующие сертификаты/лицензии",type:"file",textDark:!0})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(m,{type:"button",onClick:r,variant:"outline",className:"text-on_surface",children:"Вернуться назад"}),e.jsx(m,{disabled:a.isSubmitting,type:"submit",className:"w-full",children:a.isSubmitting?e.jsx(w,{className:"animate-spin"}):"Отправить"})]})]})},O=({stage:r,setStage:s,success:a,setSuccess:i})=>{const d=k({resolver:V(J),defaultValues:L,mode:"onChange"}),B=o=>{switch(o){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},f=async()=>{const o=B(r);await d.trigger(o)&&s(y=>y+1)},b=()=>s(o=>o-1),F=async o=>{try{const l=new FormData;Object.entries(o).forEach(([p,c])=>{c instanceof File?(console.log(`Добавляем файл: ${p}`,c),l.append(p,c)):c!==void 0&&(console.log(`Добавляем поле: ${p}`,c),l.append(p,c))}),(await q.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",l,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&(console.log("Форма успешно отправлена!"),i(!0))}catch(l){console.error("Ошибка при отправке B2B формы:",l)}};return e.jsx(C,{...d,children:e.jsx("form",{onSubmit:d.handleSubmit(F),children:e.jsxs("div",{className:"relative",children:[e.jsx(_,{children:r===1&&e.jsx(T,{handleNext:f})}),e.jsx(_,{children:r===2&&e.jsx(z,{handleNext:f,handlePrev:b})}),e.jsx(_,{children:r===3&&a===!1&&e.jsx(I,{handlePrev:b})}),a&&e.jsx(G,{})]})})})};function Q(){R();const[r,s]=v.useState(1),[a,i]=v.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(P,{title:"B2B | B2G встречи"}),!a&&r!==0&&e.jsx(D,{stage:r}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx(O,{success:a,setSuccess:i,stage:r,setStage:s})})]})}export{Q as default}; diff --git a/dist/assets/b2b-3Ngqsip1.js b/dist/assets/b2b-3Ngqsip1.js new file mode 100644 index 0000000..d54f1d8 --- /dev/null +++ b/dist/assets/b2b-3Ngqsip1.js @@ -0,0 +1 @@ +import{l as B,u as f,j as e,m as S,n as r,o as R,p as j,q as y,L as u,r as v,s as o,B as h,t as V,v as D,w as q,x as N,y as z,C as E,z as L}from"./ui-library-HZBIYpKi.js";import{a as w}from"./react-vendor-OnsDvTPE.js";import{z as l,t as H,a as U}from"./index-D9auPpG5.js";import{R as A,a as C}from"./radio-group-Ct1srp1J.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";const I=l.object({type:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.string().min(1,{message:"Укажите количество участников"}),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:l.string().email({message:"Укажите корректный email"}),phone_number:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),meeting_objective:l.string().min(3,{message:"Укажите цель встречи"}),proposal_description:l.string().optional(),government_agency:l.string().optional(),sector_industry:l.string().optional(),key_services:l.string().optional(),government_experience:l.string().optional(),preferred_meeting_datetime:l.string().optional(),meeting_mode:l.string().optional(),language_preference:l.string().optional(),technical_requirements:l.string().optional(),company_profile:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),J={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""},m=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"E-mail адрес"},{label:"Номер телефона"},{label:"Вебсайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"E-mail address"},{label:"Phone number"},{label:"Website"}]}],p=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],c=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Meeting Logistics:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"}],O=({handleNext:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[e.jsx("h2",{className:"h2 mb-8",children:m[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(R,{defaultValue:1,control:n,name:"type",render:({field:i})=>e.jsxs(j,{className:"space-y-3",children:[e.jsx(y,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(v,{children:e.jsxs(A,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(y,{className:"text-base",children:"B2B"})]}),e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(y,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:n,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:n,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:n,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:n,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:n,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:n,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:n,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:n,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},M=({handleNext:s,handlePrev:n})=>{const t=f(x=>x.lang),{control:a,formState:i}=B();return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[e.jsx("h2",{className:"h2 mb-8",children:p[r(t)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(o,{control:a,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:p[r(t)].data[0].label}),e.jsx(o,{control:a,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:p[r(t)].data[1].label}),e.jsx(o,{control:a,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:p[r(t)].data[2].label}),e.jsx("h2",{className:"h2 mt-4",children:p[r(t)].secondH2}),e.jsx(o,{control:a,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:p[r(t)].data[3].label}),e.jsx(o,{control:a,name:"key_services",error:i.errors.key_services,placeholder:"",label:p[r(t)].data[4].label}),e.jsx(o,{control:a,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:p[r(t)].data[5].label})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},$=({handlePrev:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[e.jsx("h2",{className:"h2 mb-8",children:c[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(o,{control:n,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:n,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:n,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:n,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:c[r(a)].data[3].label})]}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"h2 mt-10",children:c[r(a)].secondH2}),e.jsx("h5",{className:"text-on_surface_v",children:c[r(a)].subtitle})]}),e.jsx(o,{control:n,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"relevant_certification",label:c[r(a)].data[6].label,type:"file",textDark:!0})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:s,variant:"outline",className:"text-on_surface",children:a===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?e.jsx(V,{className:"animate-spin"}):c[r(a)].button})]})]})},K=({stage:s,setStage:n,success:t,setSuccess:a})=>{const i=D({resolver:H(I),defaultValues:J,mode:"onChange"}),x=d=>{switch(d){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},P=async()=>{const d=x(s);await i.trigger(d)&&n(k=>k+1)},F=()=>n(d=>d-1),G=async d=>{try{const b=new FormData;Object.entries(d).forEach(([_,g])=>{g instanceof File?(console.log(`Добавляем файл: ${_}`,g),b.append(_,g)):g!==void 0&&(console.log(`Добавляем поле: ${_}`,g),b.append(_,g))}),(await U.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",b,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&a(!0)}catch(b){console.error("Ошибка при отправке B2B формы:",b)}};return e.jsx(q,{...i,children:e.jsx("form",{onSubmit:i.handleSubmit(G),children:e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:s===1&&e.jsx(O,{handleNext:P})}),e.jsx(N,{children:s===2&&e.jsx(M,{handleNext:P,handlePrev:F})}),e.jsx(N,{children:s===3&&t===!1&&e.jsx($,{handlePrev:F})}),t&&e.jsx(z,{})]})})})};function ee(){T();const s=f(x=>x.lang),[n,t]=w.useState(1),[a,i]=w.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(E,{title:s===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&n!==0&&e.jsx(L,{stage:n}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx(K,{success:a,setSuccess:i,stage:n,setStage:t})})]})}export{ee as default}; diff --git a/dist/assets/become-sponsor-COS0bgw0.js b/dist/assets/become-sponsor-COS0bgw0.js new file mode 100644 index 0000000..044ea74 --- /dev/null +++ b/dist/assets/become-sponsor-COS0bgw0.js @@ -0,0 +1 @@ +import{u as h,v as _,j as e,C as g,L as f,x as y,w as S,m as v,s as l,n as o,o as F,p as c,q as i,r as p,B as N,t as w,y as C}from"./ui-library-HZBIYpKi.js";import{a as L}from"./react-vendor-OnsDvTPE.js";import{R,a as j}from"./radio-group-Ct1srp1J.js";import{z as t,t as B}from"./index-D9auPpG5.js";import{p as V}from"./service-CiRbXqJ6.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";import{s as r}from"./stend.data-MYN6KI5Y.js";const k=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),D={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function O(){T();const a=h(n=>n.lang),[x,b]=L.useState(!1),s=_({resolver:B(k),defaultValues:D}),d=async n=>{try{await V(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===f.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(y,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(R,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{O as default}; diff --git a/dist/assets/become-sponsor-DX8gKwYu.js b/dist/assets/become-sponsor-DX8gKwYu.js deleted file mode 100644 index faa82b9..0000000 --- a/dist/assets/become-sponsor-DX8gKwYu.js +++ /dev/null @@ -1 +0,0 @@ -import{r as j,j as e,C as d,t as b,s as h,m as f,q as o,l as y,n,o as l,p as m,B as g,L as S,v as _}from"./ui-library-DAxvtEhC.js";import{a as v}from"./react-vendor-DnK_KZAP.js";import{R as F,a as p}from"./radio-group-l9zuvveu.js";import{z as a,t as N}from"./index-DenciP1O.js";import{p as w}from"./service-WVB2lPgs.js";import{u as C}from"./use-scroll-top-DE9Ps7OH.js";const R=a.object({company_name:a.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:a.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:a.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:a.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:a.string().email({message:"Укажите корректный email"}),phone:a.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:a.string().optional(),visa_support:a.string().optional()}),V={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function P(){C();const[c,x]=v.useState(!1),s=j({resolver:N(R),defaultValues:V}),u=async t=>{try{await w(t)&&x(!0)}catch(i){console.error("POST sponsor error",i)}},{errors:r}=s.formState;return e.jsxs("div",{children:[e.jsx(d,{title:"Стать спонсором"}),e.jsx(b,{children:!c&&e.jsx(h,{...s,children:e.jsxs(f.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(u),children:[e.jsx(o,{label:"Название компании/организации",name:"company_name",control:s.control,error:r.company_name}),e.jsx(o,{label:"Имя представителя",name:"rep_name",control:s.control,error:r.rep_name}),e.jsx(o,{label:"Название должности/позиция",name:"job_title",control:s.control,error:r.job_title}),e.jsx(o,{label:"Страна",name:"country",control:s.control,error:r.country}),e.jsx(o,{label:"E-mail адрес",name:"email",control:s.control,error:r.email}),e.jsx(o,{label:"Номер телефона",name:"phone",control:s.control,error:r.phone}),e.jsx(o,{label:"Вебсайт",name:"website",control:s.control}),e.jsx(y,{control:s.control,name:"visa_support",render:({field:t})=>e.jsxs(n,{className:"space-y-5",children:[e.jsx(l,{className:"text-xl",children:"Визовая поддержка:"}),e.jsx(m,{children:e.jsxs(F,{onValueChange:t.onChange,defaultValue:t.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(n,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(m,{children:e.jsx(p,{value:"yes",checked:t.value==="yes"})}),e.jsx(l,{className:"text-base",children:"Да"})]}),e.jsxs(n,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(m,{children:e.jsx(p,{value:"no",checked:t.value==="no"})}),e.jsx(l,{className:"text-base",children:"Нет"})]})]})})]})}),e.jsx(g,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(S,{className:"animate-spin"}):"Отправить"})]})})}),c&&e.jsx(_,{delay:.3})]})}export{P as default}; diff --git a/dist/assets/contacts-Bi8plfw4.js b/dist/assets/contacts-CPhyw4sb.js similarity index 92% rename from dist/assets/contacts-Bi8plfw4.js rename to dist/assets/contacts-CPhyw4sb.js index 79028ca..6477b52 100644 --- a/dist/assets/contacts-Bi8plfw4.js +++ b/dist/assets/contacts-CPhyw4sb.js @@ -1 +1 @@ -import{r as x,j as s,f as d,s as h,q as l,B as u,K as p,M as g}from"./ui-library-DAxvtEhC.js";import{a as f}from"./react-vendor-DnK_KZAP.js";import{z as a,t as j}from"./index-DenciP1O.js";import{b}from"./service-WVB2lPgs.js";import{u as N}from"./use-scroll-top-DE9Ps7OH.js";const v=a.object({name:a.string().min(2,"error"),email:a.string().email(),phone:a.string().min(8,"error"),company:a.string().min(2,"error"),msg:a.string().min(5,"error")}),C={name:"",email:"",phone:"",company:"",msg:""},w=({className:n})=>{const[c,o]=f.useState(!1),e=x({resolver:j(v),defaultValues:C});async function m(i){try{const t=await b(i);o(t)}catch(t){console.error("POST contact",t)}}const{errors:r}=e.formState;return s.jsx("div",{className:d("bg-primary rounded-[8px] py-8 px-6 ",n),children:s.jsx(h,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(m),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:"Связаться с нами"}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(l,{onPrimary:!0,name:"name",control:e.control,label:"Имя",error:r.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(l,{onPrimary:!0,name:"email",control:e.control,label:"E-mail",error:r.email}),s.jsx(l,{onPrimary:!0,name:"phone",control:e.control,label:"Телефон",error:r.phone})]}),s.jsx(l,{onPrimary:!0,name:"company",control:e.control,label:"Название компании",error:r.name}),s.jsx(l,{onPrimary:!0,textArea:!0,name:"msg",label:"Сообщение",control:e.control,error:r.msg}),s.jsx(u,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?"Форма отправлена":e.formState.isSubmitting?s.jsx(p,{className:"animate-spin text-white"}):"Отправить"})]})]})})})};function F(){return N(),s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(g,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(w,{}),s.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:"Контакты"}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Адрес офиса:"}),s.jsx("address",{className:"text-base normal not-italic",children:"744000, г. Ашхабад, просп. Битарап Туркменистан, 183"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Телефон:"}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/fax.svg",alt:"fax"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Факс:"}),s.jsx("h4",{className:"text-base normal",children:"+99312454111"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"E-mail:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{F as default}; +import{v as x,j as s,f as d,w as h,s as l,B as u,O as p,Q as g}from"./ui-library-HZBIYpKi.js";import{a as f}from"./react-vendor-OnsDvTPE.js";import{z as a,t as j}from"./index-D9auPpG5.js";import{b}from"./service-CiRbXqJ6.js";import{u as N}from"./use-scroll-top-ByehxtTO.js";const v=a.object({name:a.string().min(2,"error"),email:a.string().email(),phone:a.string().min(8,"error"),company:a.string().min(2,"error"),msg:a.string().min(5,"error")}),C={name:"",email:"",phone:"",company:"",msg:""},w=({className:n})=>{const[c,o]=f.useState(!1),e=x({resolver:j(v),defaultValues:C});async function m(i){try{const t=await b(i);o(t)}catch(t){console.error("POST contact",t)}}const{errors:r}=e.formState;return s.jsx("div",{className:d("bg-primary rounded-[8px] py-8 px-6 ",n),children:s.jsx(h,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(m),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:"Связаться с нами"}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(l,{onPrimary:!0,name:"name",control:e.control,label:"Имя",error:r.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(l,{onPrimary:!0,name:"email",control:e.control,label:"E-mail",error:r.email}),s.jsx(l,{onPrimary:!0,name:"phone",control:e.control,label:"Телефон",error:r.phone})]}),s.jsx(l,{onPrimary:!0,name:"company",control:e.control,label:"Название компании",error:r.name}),s.jsx(l,{onPrimary:!0,textArea:!0,name:"msg",label:"Сообщение",control:e.control,error:r.msg}),s.jsx(u,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?"Форма отправлена":e.formState.isSubmitting?s.jsx(p,{className:"animate-spin text-white"}):"Отправить"})]})]})})})};function F(){return N(),s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(g,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(w,{}),s.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:"Контакты"}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Адрес офиса:"}),s.jsx("address",{className:"text-base normal not-italic",children:"744000, г. Ашхабад, просп. Битарап Туркменистан, 183"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Телефон:"}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/fax.svg",alt:"fax"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Факс:"}),s.jsx("h4",{className:"text-base normal",children:"+99312454111"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"E-mail:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{F as default}; diff --git a/dist/assets/home-DbmcW5nR.js b/dist/assets/home-CFkUoKEe.js similarity index 76% rename from dist/assets/home-DbmcW5nR.js rename to dist/assets/home-CFkUoKEe.js index d9ff393..a1bcb83 100644 --- a/dist/assets/home-DbmcW5nR.js +++ b/dist/assets/home-CFkUoKEe.js @@ -1 +1 @@ -import{j as e,a as s,b as o,c as m,d as a,e as x}from"./ui-library-DAxvtEhC.js";import"./react-vendor-DnK_KZAP.js";function j(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{j as default}; +import{j as e,a as s,b as o,c as m,d as a,e as x}from"./ui-library-HZBIYpKi.js";import"./react-vendor-OnsDvTPE.js";function j(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{j as default}; diff --git a/dist/assets/index-B17XTBbe.css b/dist/assets/index-B17XTBbe.css new file mode 100644 index 0000000..6d77a46 --- /dev/null +++ b/dist/assets/index-B17XTBbe.css @@ -0,0 +1 @@ +@font-face{font-family:Gilroy-Regular;src:local("Gilroy-Regular"),url(../fonts/Gilroy-Regular.woff2) format("woff2");font-weight:400}@font-face{font-family:Gilroy-Medium;src:local("Gilroy-Medium"),url(../fonts/Gilroy-Medium.woff2) format("woff2");font-weight:500}@font-face{font-family:Gilroy-Semibold;src:local("Gilroy-Semibold"),url(../fonts/Gilroy-Semibold.woff2) format("woff2");font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{box-sizing:border-box}body{font-family:Gilroy-Medium;--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-5{bottom:-1.25rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/3{left:33.333333%}.left-2\.5{left:.625rem}.left-\[20\%\]{left:20%}.right-0{right:0}.right-4{right:1rem}.right-\[17\%\]{right:17%}.top-0{top:0}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-8{top:2rem}.top-\[55\%\]{top:55%}.-z-10,.-z-\[10\]{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[3\]{z-index:3}.z-\[5\]{z-index:5}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-\[120px\]{margin-bottom:120px}.ml-3{margin-left:.75rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-\[184px\]{width:184px;height:184px}.size-full{width:100%;height:100%}.h-0\.5{height:.125rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-40{height:10rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[124px\]{height:124px}.h-\[160px\]{height:160px}.h-\[216px\]{height:216px}.h-\[296px\]{height:296px}.h-\[300px\]{height:300px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-1\/2{width:50%}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[18px\]{width:18px}.w-\[20\%\]{width:20%}.w-\[300px\]{width:300px}.w-\[75\%\]{width:75%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[1240px\]{max-width:1240px}.max-w-\[360px\]{max-width:360px}.max-w-\[444px\]{max-width:444px}.max-w-\[808px\]{max-width:808px}.max-w-\[828px\]{max-width:828px}.flex-\[0_0_184px\]{flex:0 0 184px}.flex-\[0_0_288px\]{flex:0 0 288px}.flex-auto{flex:1 1 auto}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\!cursor-pointer{cursor:pointer!important}.cursor-pointer{cursor:pointer}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-20{gap:5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded-\[2px\]{border-radius:2px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-b-\[2px\]{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.rounded-t-\[4px\]{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-\[2px\]{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-\[\#BA1A1A\]{--tw-border-opacity: 1;border-color:rgb(186 26 26 / var(--tw-border-opacity, 1))}.border-on_surface{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.border-outline{--tw-border-opacity: 1;border-color:rgb(161 167 178 / var(--tw-border-opacity, 1))}.border-primary{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.border-primary_outline_reverse{--tw-border-opacity: 1;border-color:rgb(238 101 114 / var(--tw-border-opacity, 1))}.border-slate-500\/20{border-color:#64748b33}.border-white\/50{border-color:#ffffff80}.\!bg-\[\#F5F4F4\]{--tw-bg-opacity: 1 !important;background-color:rgb(245 244 244 / var(--tw-bg-opacity, 1))!important}.\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-\[\#D0D3D8\]{--tw-bg-opacity: 1;background-color:rgb(208 211 216 / var(--tw-bg-opacity, 1))}.bg-\[\#D9D9D9\]{--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.bg-\[\#FDEDEE\]{--tw-bg-opacity: 1;background-color:rgb(253 237 238 / var(--tw-bg-opacity, 1))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.bg-bg_surface_container{--tw-bg-opacity: 1;background-color:rgb(238 237 244 / var(--tw-bg-opacity, 1))}.bg-black\/80{background-color:#000c}.bg-primary,.bg-primary_09{--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.bg-reverse_primary{--tw-bg-opacity: 1;background-color:rgb(246 178 184 / var(--tw-bg-opacity, 1))}.bg-secondary_container{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.bg-surface_container{--tw-bg-opacity: 1;background-color:rgb(240 239 239 / var(--tw-bg-opacity, 1))}.bg-surface_high{--tw-bg-opacity: 1;background-color:rgb(232 231 239 / var(--tw-bg-opacity, 1))}.bg-teritary{--tw-bg-opacity: 1;background-color:rgb(241 112 13 / var(--tw-bg-opacity, 1))}.bg-teritary_04{--tw-bg-opacity: 1;background-color:rgb(255 206 127 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-0{--tw-bg-opacity: 0}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-primary{--tw-gradient-from: #99101D var(--tw-gradient-from-position);--tw-gradient-to: rgb(153 16 29 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-25\%{--tw-gradient-from-position: 25%}.to-primary\/20{--tw-gradient-to: rgb(153 16 29 / .2) var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-20{padding-bottom:5rem}.pb-\[120px\]{padding-bottom:120px}.pl-8{padding-left:2rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[18px\]{font-size:18px}.text-\[32px\]{font-size:32px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-\[130\%\]{line-height:130%}.leading-\[140\%\]{line-height:140%}.leading-none{line-height:1}.\!text-on_primary{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.\!text-primary_09{--tw-text-opacity: 1 !important;color:rgb(153 16 29 / var(--tw-text-opacity, 1))!important}.text-\[\#171717\]{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-\[\#454545\]{--tw-text-opacity: 1;color:rgb(69 69 69 / var(--tw-text-opacity, 1))}.text-\[\#BA1A1A\]{--tw-text-opacity: 1;color:rgb(186 26 26 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-on_primary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-on_secondary_container{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.text-on_surface{--tw-text-opacity: 1;color:rgb(44 40 40 / var(--tw-text-opacity, 1))}.text-on_surface_v{--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}.text-on_teritary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-primary_03{--tw-text-opacity: 1;color:rgb(246 178 184 / var(--tw-text-opacity, 1))}.text-primary_09{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-teritary_04{--tw-text-opacity: 1;color:rgb(255 206 127 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: #F9F9FA}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.normal{font-family:Gilroy-Regular;font-weight:400}.semibold{font-family:Gilroy-Semibold;font-weight:600}.h1{font-size:28px;font-weight:500;line-height:130%}.h2{font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.h2{font-size:1.875rem;line-height:2.25rem}}.p{font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.p{font-size:1.125rem;line-height:1.75rem}}@layer utilities{.text-18{font-family:Gilroy-Regular;font-weight:400}}.text-18{font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1));font-family:Gilroy-Regular;font-weight:400}.dot{height:.25rem;width:1.25rem;cursor:pointer;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(111 100 102 / var(--tw-bg-opacity, 1))}.dot-active{height:.25rem;width:1.25rem;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(44 40 40 / var(--tw-bg-opacity, 1))}.nav-btn{display:flex;width:3rem;height:3rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.progress-circle{z-index:10;width:3.5rem;height:3.5rem;border-radius:9999px;font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(95 102 116 / var(--tw-text-opacity, 1))}.file\:w-fit::file-selector-button{width:-moz-fit-content;width:fit-content}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-secondary_container::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-on_secondary_container::file-selector-button{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.file\:outline-none::file-selector-button{outline:2px solid transparent;outline-offset:2px}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:-left-3:before{content:var(--tw-content);left:-.75rem}.before\:-top-3:before{content:var(--tw-content);top:-.75rem}.before\:size-10:before{content:var(--tw-content);width:2.5rem;height:2.5rem}.before\:scale-0:before{content:var(--tw-content);--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:bg-on_surface\/\[8\%\]:before{content:var(--tw-content);background-color:#2c282814}.before\:transition-all:before{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:size-\[9px\]:after{content:var(--tw-content);width:9px;height:9px}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-primary:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.after\:bg-opacity-0:after{content:var(--tw-content);--tw-bg-opacity: 0}.hover\:border-on_surface:hover{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.hover\:bg-primary\/90:hover{background-color:#99101de6}.hover\:bg-reverse_primary\/90:hover{background-color:#f6b2b8e6}.hover\:bg-secondary_container\/80:hover{background-color:#ddcbcdcc}.hover\:bg-teritary\/90:hover{background-color:#f1700de6}.hover\:bg-teritary_surface_container:hover{--tw-bg-opacity: 1;background-color:rgb(255 243 224 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/90:hover{background-color:#ffffffe6}.hover\:opacity-100:hover{opacity:1}.hover\:before\:scale-100:hover:before{content:var(--tw-content);--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:border-\[3px\]:focus{border-width:3px}.focus\:border-primary:focus{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.focus\:border-white:focus{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[state\=open\]\:bg-secondary[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(73 95 137 / var(--tw-bg-opacity, 1))}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}@media (min-width: 640px){.sm\:h-\[350px\]{height:350px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}.sm\:text-center{text-align:center}}@media (min-width: 768px){.md\:left-1\/2{left:50%}.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:my-20{margin-top:5rem;margin-bottom:5rem}.md\:mb-3{margin-bottom:.75rem}.md\:mb-\[120px\]{margin-bottom:120px}.md\:mt-20{margin-top:5rem}.md\:mt-6{margin-top:1.5rem}.md\:size-\[84px\]{width:84px;height:84px}.md\:size-auto{width:auto;height:auto}.md\:h-\[224px\]{height:224px}.md\:h-\[38px\]{height:38px}.md\:h-\[400px\]{height:400px}.md\:w-1{width:.25rem}.md\:w-fit{width:-moz-fit-content;width:fit-content}.md\:w-full{width:100%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:justify-between{justify-content:space-between}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-\[160px\]{padding-top:160px;padding-bottom:160px}.md\:pt-20{padding-top:5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1024px){.lg\:mb-8{margin-bottom:2rem}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-\[600px\]{height:600px}.lg\:h-\[88px\]{height:88px}.lg\:max-h-\[600px\]{max-height:600px}.lg\:min-h-\[320px\]{min-height:320px}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:gap-6{gap:1.5rem}}@media (min-width: 1280px){.xl\:mb-8{margin-bottom:2rem}.xl\:block{display:block}.xl\:hidden{display:none}.xl\:w-\[650px\]{width:650px}.xl\:max-w-\[496px\]{max-width:496px}}@media (min-width: 1536px){.\32xl\:w-\[850px\]{width:850px}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0} diff --git a/dist/assets/index-DenciP1O.js b/dist/assets/index-D9auPpG5.js similarity index 96% rename from dist/assets/index-DenciP1O.js rename to dist/assets/index-D9auPpG5.js index e2515f2..2de99cf 100644 --- a/dist/assets/index-DenciP1O.js +++ b/dist/assets/index-D9auPpG5.js @@ -1,6 +1,6 @@ -import{N as lt,O as at,Q as Rn}from"./ui-library-DAxvtEhC.js";const Ot=(t,e,n)=>{if(t&&"reportValidity"in t){const r=lt(n,e);t.setCustomValidity(r&&r.message||""),t.reportValidity()}},qt=(t,e)=>{for(const n in e.fields){const r=e.fields[n];r&&r.ref&&"reportValidity"in r.ref?Ot(r.ref,n,t):r.refs&&r.refs.forEach(s=>Ot(s,n,t))}},On=(t,e)=>{e.shouldUseNativeValidation&&qt(t,e);const n={};for(const r in t){const s=lt(e.fields,r),a=Object.assign(t[r]||{},{ref:s&&s.ref});if(An(e.names||Object.keys(t),r)){const i=Object.assign({},lt(n,r));at(i,"root",a),at(n,r,i)}else at(n,r,a)}return n},An=(t,e)=>t.some(n=>n.startsWith(e+"."));var Cn=function(t,e){for(var n={};t.length;){var r=t[0],s=r.code,a=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var o=r.unionErrors[0].errors[0];n[i]={message:o.message,type:o.code}}else n[i]={message:a,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(l){return l.errors.forEach(function(p){return t.push(p)})}),e){var u=n[i].types,c=u&&u[r.code];n[i]=Rn(i,e,n,s,c?[].concat(c,r.message):r.message)}t.shift()}return n},ma=function(t,e,n){return n===void 0&&(n={}),function(r,s,a){try{return Promise.resolve(function(i,o){try{var u=Promise.resolve(t[n.mode==="sync"?"parse":"parseAsync"](r,e)).then(function(c){return a.shouldUseNativeValidation&&qt({},a),{errors:{},values:n.raw?r:c}})}catch(c){return o(c)}return u&&u.then?u.then(void 0,o):u}(0,function(i){if(function(o){return Array.isArray(o==null?void 0:o.errors)}(i))return{values:{},errors:On(Cn(i.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw i}))}catch(i){return Promise.reject(i)}}};function Ht(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nn}=Object.prototype,{getPrototypeOf:xt}=Object,Ye=(t=>e=>{const n=Nn.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),V=t=>(t=t.toLowerCase(),e=>Ye(e)===t),Qe=t=>e=>typeof e===t,{isArray:ge}=Array,xe=Qe("undefined");function jn(t){return t!==null&&!xe(t)&&t.constructor!==null&&!xe(t.constructor)&&M(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wt=V("ArrayBuffer");function Pn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wt(t.buffer),e}const Zn=Qe("string"),M=Qe("function"),Jt=Qe("number"),et=t=>t!==null&&typeof t=="object",In=t=>t===!0||t===!1,Fe=t=>{if(Ye(t)!=="object")return!1;const e=xt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ln=V("Date"),Dn=V("File"),Mn=V("Blob"),Un=V("FileList"),Fn=t=>et(t)&&M(t.pipe),Bn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||M(t.append)&&((e=Ye(t))==="formdata"||e==="object"&&M(t.toString)&&t.toString()==="[object FormData]"))},$n=V("URLSearchParams"),[Vn,zn,qn,Hn]=["ReadableStream","Request","Response","Headers"].map(V),Wn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Le(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),ge(t))for(r=0,s=t.length;r0;)if(s=n[r],e===s.toLowerCase())return s;return null}const se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gt=t=>!xe(t)&&t!==se;function ft(){const{caseless:t}=Gt(this)&&this||{},e={},n=(r,s)=>{const a=t&&Kt(e,s)||s;Fe(e[a])&&Fe(r)?e[a]=ft(e[a],r):Fe(r)?e[a]=ft({},r):ge(r)?e[a]=r.slice():e[a]=r};for(let r=0,s=arguments.length;r(Le(e,(s,a)=>{n&&M(s)?t[a]=Ht(s,n):t[a]=s},{allOwnKeys:r}),t),Kn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Gn=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Xn=(t,e,n,r)=>{let s,a,i;const o={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),a=s.length;a-- >0;)i=s[a],(!r||r(i,t,e))&&!o[i]&&(e[i]=t[i],o[i]=!0);t=n!==!1&&xt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Yn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Qn=t=>{if(!t)return null;if(ge(t))return t;let e=t.length;if(!Jt(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},er=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xt(Uint8Array)),tr=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const a=s.value;e.call(t,a[0],a[1])}},nr=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},rr=V("HTMLFormElement"),sr=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),At=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ar=V("RegExp"),Xt=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Le(n,(s,a)=>{let i;(i=e(s,a,t))!==!1&&(r[a]=i||s)}),Object.defineProperties(t,r)},ir=t=>{Xt(t,(e,n)=>{if(M(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(M(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},or=(t,e)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return ge(t)?r(t):r(String(t).split(e)),n},cr=()=>{},ur=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,it="abcdefghijklmnopqrstuvwxyz",Ct="0123456789",Yt={DIGIT:Ct,ALPHA:it,ALPHA_DIGIT:it+it.toUpperCase()+Ct},dr=(t=16,e=Yt.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function lr(t){return!!(t&&M(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const fr=t=>{const e=new Array(10),n=(r,s)=>{if(et(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const a=ge(r)?[]:{};return Le(r,(i,o)=>{const u=n(i,s+1);!xe(u)&&(a[o]=u)}),e[s]=void 0,a}}return r};return n(t,0)},hr=V("AsyncFunction"),pr=t=>t&&(et(t)||M(t))&&M(t.then)&&M(t.catch),Qt=((t,e)=>t?setImmediate:e?((n,r)=>(se.addEventListener("message",({source:s,data:a})=>{s===se&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),se.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",M(se.postMessage)),mr=typeof queueMicrotask<"u"?queueMicrotask.bind(se):typeof process<"u"&&process.nextTick||Qt,d={isArray:ge,isArrayBuffer:Wt,isBuffer:jn,isFormData:Bn,isArrayBufferView:Pn,isString:Zn,isNumber:Jt,isBoolean:In,isObject:et,isPlainObject:Fe,isReadableStream:Vn,isRequest:zn,isResponse:qn,isHeaders:Hn,isUndefined:xe,isDate:Ln,isFile:Dn,isBlob:Mn,isRegExp:ar,isFunction:M,isStream:Fn,isURLSearchParams:$n,isTypedArray:er,isFileList:Un,forEach:Le,merge:ft,extend:Jn,trim:Wn,stripBOM:Kn,inherits:Gn,toFlatObject:Xn,kindOf:Ye,kindOfTest:V,endsWith:Yn,toArray:Qn,forEachEntry:tr,matchAll:nr,isHTMLForm:rr,hasOwnProperty:At,hasOwnProp:At,reduceDescriptors:Xt,freezeMethods:ir,toObjectSet:or,toCamelCase:sr,noop:cr,toFiniteNumber:ur,findKey:Kt,global:se,isContextDefined:Gt,ALPHABET:Yt,generateString:dr,isSpecCompliantForm:lr,toJSONObject:fr,isAsyncFn:hr,isThenable:pr,setImmediate:Qt,asap:mr};function w(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}d.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:d.toJSONObject(this.config),code:this.code,status:this.status}}});const en=w.prototype,tn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{tn[t]={value:t}});Object.defineProperties(w,tn);Object.defineProperty(en,"isAxiosError",{value:!0});w.from=(t,e,n,r,s,a)=>{const i=Object.create(en);return d.toFlatObject(t,i,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),w.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,a&&Object.assign(i,a),i};const yr=null;function ht(t){return d.isPlainObject(t)||d.isArray(t)}function nn(t){return d.endsWith(t,"[]")?t.slice(0,-2):t}function Nt(t,e,n){return t?t.concat(e).map(function(s,a){return s=nn(s),!n&&a?"["+s+"]":s}).join(n?".":""):e}function gr(t){return d.isArray(t)&&!t.some(ht)}const _r=d.toFlatObject(d,{},null,function(e){return/^is[A-Z]/.test(e)});function tt(t,e,n){if(!d.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=d.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,_){return!d.isUndefined(_[k])});const r=n.metaTokens,s=n.visitor||l,a=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(e);if(!d.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(d.isDate(g))return g.toISOString();if(!u&&d.isBlob(g))throw new w("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(g)||d.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function l(g,k,_){let A=g;if(g&&!_&&typeof g=="object"){if(d.endsWith(k,"{}"))k=r?k:k.slice(0,-2),g=JSON.stringify(g);else if(d.isArray(g)&&gr(g)||(d.isFileList(g)||d.endsWith(k,"[]"))&&(A=d.toArray(g)))return k=nn(k),A.forEach(function(j,J){!(d.isUndefined(j)||j===null)&&e.append(i===!0?Nt([k],J,a):i===null?k:k+"[]",c(j))}),!1}return ht(g)?!0:(e.append(Nt(_,k,a),c(g)),!1)}const p=[],S=Object.assign(_r,{defaultVisitor:l,convertValue:c,isVisitable:ht});function R(g,k){if(!d.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+k.join("."));p.push(g),d.forEach(g,function(A,C){(!(d.isUndefined(A)||A===null)&&s.call(e,A,d.isString(C)?C.trim():C,k,S))===!0&&R(A,k?k.concat(C):[C])}),p.pop()}}if(!d.isObject(t))throw new TypeError("data must be an object");return R(t),e}function jt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function kt(t,e){this._pairs=[],t&&tt(t,this,e)}const rn=kt.prototype;rn.append=function(e,n){this._pairs.push([e,n])};rn.toString=function(e){const n=e?function(r){return e.call(this,r,jt)}:jt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function vr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sn(t,e,n){if(!e)return t;const r=n&&n.encode||vr;d.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(e,n):a=d.isURLSearchParams(e)?e.toString():new kt(e,n).toString(r),a){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Pt{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){d.forEach(this.handlers,function(r){r!==null&&e(r)})}}const an={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},br=typeof URLSearchParams<"u"?URLSearchParams:kt,wr=typeof FormData<"u"?FormData:null,xr=typeof Blob<"u"?Blob:null,kr={isBrowser:!0,classes:{URLSearchParams:br,FormData:wr,Blob:xr},protocols:["http","https","file","blob","url","data"]},Tt=typeof window<"u"&&typeof document<"u",pt=typeof navigator=="object"&&navigator||void 0,Tr=Tt&&(!pt||["ReactNative","NativeScript","NS"].indexOf(pt.product)<0),Er=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sr=Tt&&window.location.href||"http://localhost",Rr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tt,hasStandardBrowserEnv:Tr,hasStandardBrowserWebWorkerEnv:Er,navigator:pt,origin:Sr},Symbol.toStringTag,{value:"Module"})),P={...Rr,...kr};function Or(t,e){return tt(t,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,a){return P.isNode&&d.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Ar(t){return d.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Cr(t){const e={},n=Object.keys(t);let r;const s=n.length;let a;for(r=0;r=n.length;return i=!i&&d.isArray(s)?s.length:i,u?(d.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!o):((!s[i]||!d.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],a)&&d.isArray(s[i])&&(s[i]=Cr(s[i])),!o)}if(d.isFormData(t)&&d.isFunction(t.entries)){const n={};return d.forEachEntry(t,(r,s)=>{e(Ar(r),s,n,0)}),n}return null}function Nr(t,e,n){if(d.isString(t))try{return(e||JSON.parse)(t),d.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const De={transitional:an,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=d.isObject(e);if(a&&d.isHTMLForm(e)&&(e=new FormData(e)),d.isFormData(e))return s?JSON.stringify(on(e)):e;if(d.isArrayBuffer(e)||d.isBuffer(e)||d.isStream(e)||d.isFile(e)||d.isBlob(e)||d.isReadableStream(e))return e;if(d.isArrayBufferView(e))return e.buffer;if(d.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Or(e,this.formSerializer).toString();if((o=d.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return tt(o?{"files[]":e}:e,u&&new u,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),Nr(e)):e}],transformResponse:[function(e){const n=this.transitional||De.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(d.isResponse(e)||d.isReadableStream(e))return e;if(e&&d.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?w.from(o,w.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],t=>{De.headers[t]={}});const jr=d.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pr=t=>{const e={};let n,r,s;return t&&t.split(` +import{R as lt,T as at,U as Rn}from"./ui-library-HZBIYpKi.js";const Ot=(t,e,n)=>{if(t&&"reportValidity"in t){const r=lt(n,e);t.setCustomValidity(r&&r.message||""),t.reportValidity()}},qt=(t,e)=>{for(const n in e.fields){const r=e.fields[n];r&&r.ref&&"reportValidity"in r.ref?Ot(r.ref,n,t):r.refs&&r.refs.forEach(s=>Ot(s,n,t))}},On=(t,e)=>{e.shouldUseNativeValidation&&qt(t,e);const n={};for(const r in t){const s=lt(e.fields,r),a=Object.assign(t[r]||{},{ref:s&&s.ref});if(An(e.names||Object.keys(t),r)){const i=Object.assign({},lt(n,r));at(i,"root",a),at(n,r,i)}else at(n,r,a)}return n},An=(t,e)=>t.some(n=>n.startsWith(e+"."));var Cn=function(t,e){for(var n={};t.length;){var r=t[0],s=r.code,a=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var o=r.unionErrors[0].errors[0];n[i]={message:o.message,type:o.code}}else n[i]={message:a,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(l){return l.errors.forEach(function(p){return t.push(p)})}),e){var u=n[i].types,c=u&&u[r.code];n[i]=Rn(i,e,n,s,c?[].concat(c,r.message):r.message)}t.shift()}return n},ma=function(t,e,n){return n===void 0&&(n={}),function(r,s,a){try{return Promise.resolve(function(i,o){try{var u=Promise.resolve(t[n.mode==="sync"?"parse":"parseAsync"](r,e)).then(function(c){return a.shouldUseNativeValidation&&qt({},a),{errors:{},values:n.raw?r:c}})}catch(c){return o(c)}return u&&u.then?u.then(void 0,o):u}(0,function(i){if(function(o){return Array.isArray(o==null?void 0:o.errors)}(i))return{values:{},errors:On(Cn(i.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw i}))}catch(i){return Promise.reject(i)}}};function Ht(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nn}=Object.prototype,{getPrototypeOf:xt}=Object,Ye=(t=>e=>{const n=Nn.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),V=t=>(t=t.toLowerCase(),e=>Ye(e)===t),Qe=t=>e=>typeof e===t,{isArray:ge}=Array,xe=Qe("undefined");function jn(t){return t!==null&&!xe(t)&&t.constructor!==null&&!xe(t.constructor)&&U(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wt=V("ArrayBuffer");function Pn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wt(t.buffer),e}const Zn=Qe("string"),U=Qe("function"),Jt=Qe("number"),et=t=>t!==null&&typeof t=="object",In=t=>t===!0||t===!1,Fe=t=>{if(Ye(t)!=="object")return!1;const e=xt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ln=V("Date"),Dn=V("File"),Un=V("Blob"),Mn=V("FileList"),Fn=t=>et(t)&&U(t.pipe),Bn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||U(t.append)&&((e=Ye(t))==="formdata"||e==="object"&&U(t.toString)&&t.toString()==="[object FormData]"))},$n=V("URLSearchParams"),[Vn,zn,qn,Hn]=["ReadableStream","Request","Response","Headers"].map(V),Wn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Le(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),ge(t))for(r=0,s=t.length;r0;)if(s=n[r],e===s.toLowerCase())return s;return null}const se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gt=t=>!xe(t)&&t!==se;function ft(){const{caseless:t}=Gt(this)&&this||{},e={},n=(r,s)=>{const a=t&&Kt(e,s)||s;Fe(e[a])&&Fe(r)?e[a]=ft(e[a],r):Fe(r)?e[a]=ft({},r):ge(r)?e[a]=r.slice():e[a]=r};for(let r=0,s=arguments.length;r(Le(e,(s,a)=>{n&&U(s)?t[a]=Ht(s,n):t[a]=s},{allOwnKeys:r}),t),Kn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Gn=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Xn=(t,e,n,r)=>{let s,a,i;const o={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),a=s.length;a-- >0;)i=s[a],(!r||r(i,t,e))&&!o[i]&&(e[i]=t[i],o[i]=!0);t=n!==!1&&xt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Yn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Qn=t=>{if(!t)return null;if(ge(t))return t;let e=t.length;if(!Jt(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},er=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xt(Uint8Array)),tr=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const a=s.value;e.call(t,a[0],a[1])}},nr=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},rr=V("HTMLFormElement"),sr=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),At=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ar=V("RegExp"),Xt=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Le(n,(s,a)=>{let i;(i=e(s,a,t))!==!1&&(r[a]=i||s)}),Object.defineProperties(t,r)},ir=t=>{Xt(t,(e,n)=>{if(U(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(U(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},or=(t,e)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return ge(t)?r(t):r(String(t).split(e)),n},cr=()=>{},ur=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,it="abcdefghijklmnopqrstuvwxyz",Ct="0123456789",Yt={DIGIT:Ct,ALPHA:it,ALPHA_DIGIT:it+it.toUpperCase()+Ct},dr=(t=16,e=Yt.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function lr(t){return!!(t&&U(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const fr=t=>{const e=new Array(10),n=(r,s)=>{if(et(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const a=ge(r)?[]:{};return Le(r,(i,o)=>{const u=n(i,s+1);!xe(u)&&(a[o]=u)}),e[s]=void 0,a}}return r};return n(t,0)},hr=V("AsyncFunction"),pr=t=>t&&(et(t)||U(t))&&U(t.then)&&U(t.catch),Qt=((t,e)=>t?setImmediate:e?((n,r)=>(se.addEventListener("message",({source:s,data:a})=>{s===se&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),se.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",U(se.postMessage)),mr=typeof queueMicrotask<"u"?queueMicrotask.bind(se):typeof process<"u"&&process.nextTick||Qt,d={isArray:ge,isArrayBuffer:Wt,isBuffer:jn,isFormData:Bn,isArrayBufferView:Pn,isString:Zn,isNumber:Jt,isBoolean:In,isObject:et,isPlainObject:Fe,isReadableStream:Vn,isRequest:zn,isResponse:qn,isHeaders:Hn,isUndefined:xe,isDate:Ln,isFile:Dn,isBlob:Un,isRegExp:ar,isFunction:U,isStream:Fn,isURLSearchParams:$n,isTypedArray:er,isFileList:Mn,forEach:Le,merge:ft,extend:Jn,trim:Wn,stripBOM:Kn,inherits:Gn,toFlatObject:Xn,kindOf:Ye,kindOfTest:V,endsWith:Yn,toArray:Qn,forEachEntry:tr,matchAll:nr,isHTMLForm:rr,hasOwnProperty:At,hasOwnProp:At,reduceDescriptors:Xt,freezeMethods:ir,toObjectSet:or,toCamelCase:sr,noop:cr,toFiniteNumber:ur,findKey:Kt,global:se,isContextDefined:Gt,ALPHABET:Yt,generateString:dr,isSpecCompliantForm:lr,toJSONObject:fr,isAsyncFn:hr,isThenable:pr,setImmediate:Qt,asap:mr};function w(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}d.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:d.toJSONObject(this.config),code:this.code,status:this.status}}});const en=w.prototype,tn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{tn[t]={value:t}});Object.defineProperties(w,tn);Object.defineProperty(en,"isAxiosError",{value:!0});w.from=(t,e,n,r,s,a)=>{const i=Object.create(en);return d.toFlatObject(t,i,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),w.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,a&&Object.assign(i,a),i};const yr=null;function ht(t){return d.isPlainObject(t)||d.isArray(t)}function nn(t){return d.endsWith(t,"[]")?t.slice(0,-2):t}function Nt(t,e,n){return t?t.concat(e).map(function(s,a){return s=nn(s),!n&&a?"["+s+"]":s}).join(n?".":""):e}function gr(t){return d.isArray(t)&&!t.some(ht)}const _r=d.toFlatObject(d,{},null,function(e){return/^is[A-Z]/.test(e)});function tt(t,e,n){if(!d.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=d.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,_){return!d.isUndefined(_[k])});const r=n.metaTokens,s=n.visitor||l,a=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(e);if(!d.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(d.isDate(g))return g.toISOString();if(!u&&d.isBlob(g))throw new w("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(g)||d.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function l(g,k,_){let A=g;if(g&&!_&&typeof g=="object"){if(d.endsWith(k,"{}"))k=r?k:k.slice(0,-2),g=JSON.stringify(g);else if(d.isArray(g)&&gr(g)||(d.isFileList(g)||d.endsWith(k,"[]"))&&(A=d.toArray(g)))return k=nn(k),A.forEach(function(j,J){!(d.isUndefined(j)||j===null)&&e.append(i===!0?Nt([k],J,a):i===null?k:k+"[]",c(j))}),!1}return ht(g)?!0:(e.append(Nt(_,k,a),c(g)),!1)}const p=[],S=Object.assign(_r,{defaultVisitor:l,convertValue:c,isVisitable:ht});function R(g,k){if(!d.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+k.join("."));p.push(g),d.forEach(g,function(A,C){(!(d.isUndefined(A)||A===null)&&s.call(e,A,d.isString(C)?C.trim():C,k,S))===!0&&R(A,k?k.concat(C):[C])}),p.pop()}}if(!d.isObject(t))throw new TypeError("data must be an object");return R(t),e}function jt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function kt(t,e){this._pairs=[],t&&tt(t,this,e)}const rn=kt.prototype;rn.append=function(e,n){this._pairs.push([e,n])};rn.toString=function(e){const n=e?function(r){return e.call(this,r,jt)}:jt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function vr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sn(t,e,n){if(!e)return t;const r=n&&n.encode||vr;d.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(e,n):a=d.isURLSearchParams(e)?e.toString():new kt(e,n).toString(r),a){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Pt{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){d.forEach(this.handlers,function(r){r!==null&&e(r)})}}const an={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},br=typeof URLSearchParams<"u"?URLSearchParams:kt,wr=typeof FormData<"u"?FormData:null,xr=typeof Blob<"u"?Blob:null,kr={isBrowser:!0,classes:{URLSearchParams:br,FormData:wr,Blob:xr},protocols:["http","https","file","blob","url","data"]},Tt=typeof window<"u"&&typeof document<"u",pt=typeof navigator=="object"&&navigator||void 0,Tr=Tt&&(!pt||["ReactNative","NativeScript","NS"].indexOf(pt.product)<0),Er=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sr=Tt&&window.location.href||"http://localhost",Rr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tt,hasStandardBrowserEnv:Tr,hasStandardBrowserWebWorkerEnv:Er,navigator:pt,origin:Sr},Symbol.toStringTag,{value:"Module"})),P={...Rr,...kr};function Or(t,e){return tt(t,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,a){return P.isNode&&d.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Ar(t){return d.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Cr(t){const e={},n=Object.keys(t);let r;const s=n.length;let a;for(r=0;r=n.length;return i=!i&&d.isArray(s)?s.length:i,u?(d.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!o):((!s[i]||!d.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],a)&&d.isArray(s[i])&&(s[i]=Cr(s[i])),!o)}if(d.isFormData(t)&&d.isFunction(t.entries)){const n={};return d.forEachEntry(t,(r,s)=>{e(Ar(r),s,n,0)}),n}return null}function Nr(t,e,n){if(d.isString(t))try{return(e||JSON.parse)(t),d.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const De={transitional:an,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=d.isObject(e);if(a&&d.isHTMLForm(e)&&(e=new FormData(e)),d.isFormData(e))return s?JSON.stringify(on(e)):e;if(d.isArrayBuffer(e)||d.isBuffer(e)||d.isStream(e)||d.isFile(e)||d.isBlob(e)||d.isReadableStream(e))return e;if(d.isArrayBufferView(e))return e.buffer;if(d.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Or(e,this.formSerializer).toString();if((o=d.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return tt(o?{"files[]":e}:e,u&&new u,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),Nr(e)):e}],transformResponse:[function(e){const n=this.transitional||De.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(d.isResponse(e)||d.isReadableStream(e))return e;if(e&&d.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?w.from(o,w.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],t=>{De.headers[t]={}});const jr=d.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pr=t=>{const e={};let n,r,s;return t&&t.split(` `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&jr[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Zt=Symbol("internals");function ve(t){return t&&String(t).trim().toLowerCase()}function Be(t){return t===!1||t==null?t:d.isArray(t)?t.map(Be):String(t)}function Zr(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Ir=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ot(t,e,n,r,s){if(d.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!d.isString(e)){if(d.isString(r))return e.indexOf(r)!==-1;if(d.isRegExp(r))return r.test(e)}}function Lr(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Dr(t,e){const n=d.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,a,i){return this[r].call(this,e,s,a,i)},configurable:!0})})}class D{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function a(o,u,c){const l=ve(u);if(!l)throw new Error("header name must be a non-empty string");const p=d.findKey(s,l);(!p||s[p]===void 0||c===!0||c===void 0&&s[p]!==!1)&&(s[p||u]=Be(o))}const i=(o,u)=>d.forEach(o,(c,l)=>a(c,l,u));if(d.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(d.isString(e)&&(e=e.trim())&&!Ir(e))i(Pr(e),n);else if(d.isHeaders(e))for(const[o,u]of e.entries())a(u,o,r);else e!=null&&a(n,e,r);return this}get(e,n){if(e=ve(e),e){const r=d.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Zr(s);if(d.isFunction(n))return n.call(this,s,r);if(d.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ve(e),e){const r=d.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ot(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function a(i){if(i=ve(i),i){const o=d.findKey(r,i);o&&(!n||ot(r,r[o],o,n))&&(delete r[o],s=!0)}}return d.isArray(e)?e.forEach(a):a(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const a=n[r];(!e||ot(this,this[a],a,e,!0))&&(delete this[a],s=!0)}return s}normalize(e){const n=this,r={};return d.forEach(this,(s,a)=>{const i=d.findKey(r,a);if(i){n[i]=Be(s),delete n[a];return}const o=e?Lr(a):String(a).trim();o!==a&&delete n[a],n[o]=Be(s),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return d.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&d.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[Zt]=this[Zt]={accessors:{}}).accessors,s=this.prototype;function a(i){const o=ve(i);r[o]||(Dr(s,i),r[o]=!0)}return d.isArray(e)?e.forEach(a):a(e),this}}D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);d.reduceDescriptors(D.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});d.freezeMethods(D);function ct(t,e){const n=this||De,r=e||n,s=D.from(r.headers);let a=r.data;return d.forEach(t,function(o){a=o.call(n,a,s.normalize(),e?e.status:void 0)}),s.normalize(),a}function cn(t){return!!(t&&t.__CANCEL__)}function _e(t,e,n){w.call(this,t??"canceled",w.ERR_CANCELED,e,n),this.name="CanceledError"}d.inherits(_e,w,{__CANCEL__:!0});function un(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Mr(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ur(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,a=0,i;return e=e!==void 0?e:1e3,function(u){const c=Date.now(),l=r[a];i||(i=c),n[s]=u,r[s]=c;let p=a,S=0;for(;p!==s;)S+=n[p++],p=p%t;if(s=(s+1)%t,s===a&&(a=(a+1)%t),c-i{n=l,s=null,a&&(clearTimeout(a),a=null),t.apply(null,c)};return[(...c)=>{const l=Date.now(),p=l-n;p>=r?i(c,l):(s=c,a||(a=setTimeout(()=>{a=null,i(s)},r-p)))},()=>s&&i(s)]}const Ve=(t,e,n=3)=>{let r=0;const s=Ur(50,250);return Fr(a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,u=i-r,c=s(u),l=i<=o;r=i;const p={loaded:i,total:o,progress:o?i/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o&&l?(o-i)/c:void 0,event:a,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},n)},It=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Lt=t=>(...e)=>d.asap(()=>t(...e)),Br=P.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,P.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(P.origin),P.navigator&&/(msie|trident)/i.test(P.navigator.userAgent)):()=>!0,$r=P.hasStandardBrowserEnv?{write(t,e,n,r,s,a){const i=[t+"="+encodeURIComponent(e)];d.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),d.isString(r)&&i.push("path="+r),d.isString(s)&&i.push("domain="+s),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function zr(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function dn(t,e){return t&&!Vr(e)?zr(t,e):e}const Dt=t=>t instanceof D?{...t}:t;function oe(t,e){e=e||{};const n={};function r(c,l,p,S){return d.isPlainObject(c)&&d.isPlainObject(l)?d.merge.call({caseless:S},c,l):d.isPlainObject(l)?d.merge({},l):d.isArray(l)?l.slice():l}function s(c,l,p,S){if(d.isUndefined(l)){if(!d.isUndefined(c))return r(void 0,c,p,S)}else return r(c,l,p,S)}function a(c,l){if(!d.isUndefined(l))return r(void 0,l)}function i(c,l){if(d.isUndefined(l)){if(!d.isUndefined(c))return r(void 0,c)}else return r(void 0,l)}function o(c,l,p){if(p in e)return r(c,l);if(p in t)return r(void 0,c)}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(c,l,p)=>s(Dt(c),Dt(l),p,!0)};return d.forEach(Object.keys(Object.assign({},t,e)),function(l){const p=u[l]||s,S=p(t[l],e[l],l);d.isUndefined(S)&&p!==o||(n[l]=S)}),n}const ln=t=>{const e=oe({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:i,auth:o}=e;e.headers=i=D.from(i),e.url=sn(dn(e.baseURL,e.url),t.params,t.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let u;if(d.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[c,...l]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...l].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&d.isFunction(r)&&(r=r(e)),r||r!==!1&&Br(e.url))){const c=s&&a&&$r.read(a);c&&i.set(s,c)}return e},qr=typeof XMLHttpRequest<"u",Hr=qr&&function(t){return new Promise(function(n,r){const s=ln(t);let a=s.data;const i=D.from(s.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:c}=s,l,p,S,R,g;function k(){R&&R(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let _=new XMLHttpRequest;_.open(s.method.toUpperCase(),s.url,!0),_.timeout=s.timeout;function A(){if(!_)return;const j=D.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),L={data:!o||o==="text"||o==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:j,config:t,request:_};un(function(re){n(re),k()},function(re){r(re),k()},L),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(r(new w("Request aborted",w.ECONNABORTED,t,_)),_=null)},_.onerror=function(){r(new w("Network Error",w.ERR_NETWORK,t,_)),_=null},_.ontimeout=function(){let J=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||an;s.timeoutErrorMessage&&(J=s.timeoutErrorMessage),r(new w(J,L.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,t,_)),_=null},a===void 0&&i.setContentType(null),"setRequestHeader"in _&&d.forEach(i.toJSON(),function(J,L){_.setRequestHeader(L,J)}),d.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),o&&o!=="json"&&(_.responseType=s.responseType),c&&([S,g]=Ve(c,!0),_.addEventListener("progress",S)),u&&_.upload&&([p,R]=Ve(u),_.upload.addEventListener("progress",p),_.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=j=>{_&&(r(!j||j.type?new _e(null,t,_):j),_.abort(),_=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const C=Mr(s.url);if(C&&P.protocols.indexOf(C)===-1){r(new w("Unsupported protocol "+C+":",w.ERR_BAD_REQUEST,t));return}_.send(a||null)})},Wr=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const a=function(c){if(!s){s=!0,o();const l=c instanceof Error?c:this.reason;r.abort(l instanceof w?l:new _e(l instanceof Error?l.message:l))}};let i=e&&setTimeout(()=>{i=null,a(new w(`timeout ${e} of ms exceeded`,w.ETIMEDOUT))},e);const o=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),t=null)};t.forEach(c=>c.addEventListener("abort",a));const{signal:u}=r;return u.unsubscribe=()=>d.asap(o),u}},Jr=function*(t,e){let n=t.byteLength;if(n{const s=Kr(t,e);let a=0,i,o=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:l}=await s.next();if(c){o(),u.close();return}let p=l.byteLength;if(n){let S=a+=p;n(S)}u.enqueue(new Uint8Array(l))}catch(c){throw o(c),c}},cancel(u){return o(u),s.return()}},{highWaterMark:2})},nt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fn=nt&&typeof ReadableStream=="function",Xr=nt&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),hn=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Yr=fn&&hn(()=>{let t=!1;const e=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Ut=64*1024,mt=fn&&hn(()=>d.isReadableStream(new Response("").body)),ze={stream:mt&&(t=>t.body)};nt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ze[e]&&(ze[e]=d.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new w(`Response type '${e}' is not supported`,w.ERR_NOT_SUPPORT,r)})})})(new Response);const Qr=async t=>{if(t==null)return 0;if(d.isBlob(t))return t.size;if(d.isSpecCompliantForm(t))return(await new Request(P.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(d.isArrayBufferView(t)||d.isArrayBuffer(t))return t.byteLength;if(d.isURLSearchParams(t)&&(t=t+""),d.isString(t))return(await Xr(t)).byteLength},es=async(t,e)=>{const n=d.toFiniteNumber(t.getContentLength());return n??Qr(e)},ts=nt&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:a,timeout:i,onDownloadProgress:o,onUploadProgress:u,responseType:c,headers:l,withCredentials:p="same-origin",fetchOptions:S}=ln(t);c=c?(c+"").toLowerCase():"text";let R=Wr([s,a&&a.toAbortSignal()],i),g;const k=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let _;try{if(u&&Yr&&n!=="get"&&n!=="head"&&(_=await es(l,r))!==0){let L=new Request(e,{method:"POST",body:r,duplex:"half"}),Y;if(d.isFormData(r)&&(Y=L.headers.get("content-type"))&&l.setContentType(Y),L.body){const[re,Ue]=It(_,Ve(Lt(u)));r=Mt(L.body,Ut,re,Ue)}}d.isString(p)||(p=p?"include":"omit");const A="credentials"in Request.prototype;g=new Request(e,{...S,signal:R,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:A?p:void 0});let C=await fetch(g);const j=mt&&(c==="stream"||c==="response");if(mt&&(o||j&&k)){const L={};["status","statusText","headers"].forEach(Rt=>{L[Rt]=C[Rt]});const Y=d.toFiniteNumber(C.headers.get("content-length")),[re,Ue]=o&&It(Y,Ve(Lt(o),!0))||[];C=new Response(Mt(C.body,Ut,re,()=>{Ue&&Ue(),k&&k()}),L)}c=c||"text";let J=await ze[d.findKey(ze,c)||"text"](C,t);return!j&&k&&k(),await new Promise((L,Y)=>{un(L,Y,{data:J,headers:D.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:g})})}catch(A){throw k&&k(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,t,g),{cause:A.cause||A}):w.from(A,A&&A.code,t,g)}}),yt={http:yr,xhr:Hr,fetch:ts};d.forEach(yt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ft=t=>`- ${t}`,ns=t=>d.isFunction(t)||t===null||t===!1,pn={getAdapter:t=>{t=d.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let a=0;a`adapter ${o} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=e?a.length>1?`since : +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[Zt]=this[Zt]={accessors:{}}).accessors,s=this.prototype;function a(i){const o=ve(i);r[o]||(Dr(s,i),r[o]=!0)}return d.isArray(e)?e.forEach(a):a(e),this}}D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);d.reduceDescriptors(D.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});d.freezeMethods(D);function ct(t,e){const n=this||De,r=e||n,s=D.from(r.headers);let a=r.data;return d.forEach(t,function(o){a=o.call(n,a,s.normalize(),e?e.status:void 0)}),s.normalize(),a}function cn(t){return!!(t&&t.__CANCEL__)}function _e(t,e,n){w.call(this,t??"canceled",w.ERR_CANCELED,e,n),this.name="CanceledError"}d.inherits(_e,w,{__CANCEL__:!0});function un(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ur(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Mr(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,a=0,i;return e=e!==void 0?e:1e3,function(u){const c=Date.now(),l=r[a];i||(i=c),n[s]=u,r[s]=c;let p=a,S=0;for(;p!==s;)S+=n[p++],p=p%t;if(s=(s+1)%t,s===a&&(a=(a+1)%t),c-i{n=l,s=null,a&&(clearTimeout(a),a=null),t.apply(null,c)};return[(...c)=>{const l=Date.now(),p=l-n;p>=r?i(c,l):(s=c,a||(a=setTimeout(()=>{a=null,i(s)},r-p)))},()=>s&&i(s)]}const Ve=(t,e,n=3)=>{let r=0;const s=Mr(50,250);return Fr(a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,u=i-r,c=s(u),l=i<=o;r=i;const p={loaded:i,total:o,progress:o?i/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o&&l?(o-i)/c:void 0,event:a,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},n)},It=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Lt=t=>(...e)=>d.asap(()=>t(...e)),Br=P.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,P.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(P.origin),P.navigator&&/(msie|trident)/i.test(P.navigator.userAgent)):()=>!0,$r=P.hasStandardBrowserEnv?{write(t,e,n,r,s,a){const i=[t+"="+encodeURIComponent(e)];d.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),d.isString(r)&&i.push("path="+r),d.isString(s)&&i.push("domain="+s),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function zr(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function dn(t,e){return t&&!Vr(e)?zr(t,e):e}const Dt=t=>t instanceof D?{...t}:t;function oe(t,e){e=e||{};const n={};function r(c,l,p,S){return d.isPlainObject(c)&&d.isPlainObject(l)?d.merge.call({caseless:S},c,l):d.isPlainObject(l)?d.merge({},l):d.isArray(l)?l.slice():l}function s(c,l,p,S){if(d.isUndefined(l)){if(!d.isUndefined(c))return r(void 0,c,p,S)}else return r(c,l,p,S)}function a(c,l){if(!d.isUndefined(l))return r(void 0,l)}function i(c,l){if(d.isUndefined(l)){if(!d.isUndefined(c))return r(void 0,c)}else return r(void 0,l)}function o(c,l,p){if(p in e)return r(c,l);if(p in t)return r(void 0,c)}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(c,l,p)=>s(Dt(c),Dt(l),p,!0)};return d.forEach(Object.keys(Object.assign({},t,e)),function(l){const p=u[l]||s,S=p(t[l],e[l],l);d.isUndefined(S)&&p!==o||(n[l]=S)}),n}const ln=t=>{const e=oe({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:i,auth:o}=e;e.headers=i=D.from(i),e.url=sn(dn(e.baseURL,e.url),t.params,t.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let u;if(d.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[c,...l]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...l].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&d.isFunction(r)&&(r=r(e)),r||r!==!1&&Br(e.url))){const c=s&&a&&$r.read(a);c&&i.set(s,c)}return e},qr=typeof XMLHttpRequest<"u",Hr=qr&&function(t){return new Promise(function(n,r){const s=ln(t);let a=s.data;const i=D.from(s.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:c}=s,l,p,S,R,g;function k(){R&&R(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let _=new XMLHttpRequest;_.open(s.method.toUpperCase(),s.url,!0),_.timeout=s.timeout;function A(){if(!_)return;const j=D.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),L={data:!o||o==="text"||o==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:j,config:t,request:_};un(function(re){n(re),k()},function(re){r(re),k()},L),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(r(new w("Request aborted",w.ECONNABORTED,t,_)),_=null)},_.onerror=function(){r(new w("Network Error",w.ERR_NETWORK,t,_)),_=null},_.ontimeout=function(){let J=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||an;s.timeoutErrorMessage&&(J=s.timeoutErrorMessage),r(new w(J,L.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,t,_)),_=null},a===void 0&&i.setContentType(null),"setRequestHeader"in _&&d.forEach(i.toJSON(),function(J,L){_.setRequestHeader(L,J)}),d.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),o&&o!=="json"&&(_.responseType=s.responseType),c&&([S,g]=Ve(c,!0),_.addEventListener("progress",S)),u&&_.upload&&([p,R]=Ve(u),_.upload.addEventListener("progress",p),_.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=j=>{_&&(r(!j||j.type?new _e(null,t,_):j),_.abort(),_=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const C=Ur(s.url);if(C&&P.protocols.indexOf(C)===-1){r(new w("Unsupported protocol "+C+":",w.ERR_BAD_REQUEST,t));return}_.send(a||null)})},Wr=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const a=function(c){if(!s){s=!0,o();const l=c instanceof Error?c:this.reason;r.abort(l instanceof w?l:new _e(l instanceof Error?l.message:l))}};let i=e&&setTimeout(()=>{i=null,a(new w(`timeout ${e} of ms exceeded`,w.ETIMEDOUT))},e);const o=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),t=null)};t.forEach(c=>c.addEventListener("abort",a));const{signal:u}=r;return u.unsubscribe=()=>d.asap(o),u}},Jr=function*(t,e){let n=t.byteLength;if(n{const s=Kr(t,e);let a=0,i,o=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:l}=await s.next();if(c){o(),u.close();return}let p=l.byteLength;if(n){let S=a+=p;n(S)}u.enqueue(new Uint8Array(l))}catch(c){throw o(c),c}},cancel(u){return o(u),s.return()}},{highWaterMark:2})},nt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fn=nt&&typeof ReadableStream=="function",Xr=nt&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),hn=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Yr=fn&&hn(()=>{let t=!1;const e=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Mt=64*1024,mt=fn&&hn(()=>d.isReadableStream(new Response("").body)),ze={stream:mt&&(t=>t.body)};nt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ze[e]&&(ze[e]=d.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new w(`Response type '${e}' is not supported`,w.ERR_NOT_SUPPORT,r)})})})(new Response);const Qr=async t=>{if(t==null)return 0;if(d.isBlob(t))return t.size;if(d.isSpecCompliantForm(t))return(await new Request(P.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(d.isArrayBufferView(t)||d.isArrayBuffer(t))return t.byteLength;if(d.isURLSearchParams(t)&&(t=t+""),d.isString(t))return(await Xr(t)).byteLength},es=async(t,e)=>{const n=d.toFiniteNumber(t.getContentLength());return n??Qr(e)},ts=nt&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:a,timeout:i,onDownloadProgress:o,onUploadProgress:u,responseType:c,headers:l,withCredentials:p="same-origin",fetchOptions:S}=ln(t);c=c?(c+"").toLowerCase():"text";let R=Wr([s,a&&a.toAbortSignal()],i),g;const k=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let _;try{if(u&&Yr&&n!=="get"&&n!=="head"&&(_=await es(l,r))!==0){let L=new Request(e,{method:"POST",body:r,duplex:"half"}),Y;if(d.isFormData(r)&&(Y=L.headers.get("content-type"))&&l.setContentType(Y),L.body){const[re,Me]=It(_,Ve(Lt(u)));r=Ut(L.body,Mt,re,Me)}}d.isString(p)||(p=p?"include":"omit");const A="credentials"in Request.prototype;g=new Request(e,{...S,signal:R,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:A?p:void 0});let C=await fetch(g);const j=mt&&(c==="stream"||c==="response");if(mt&&(o||j&&k)){const L={};["status","statusText","headers"].forEach(Rt=>{L[Rt]=C[Rt]});const Y=d.toFiniteNumber(C.headers.get("content-length")),[re,Me]=o&&It(Y,Ve(Lt(o),!0))||[];C=new Response(Ut(C.body,Mt,re,()=>{Me&&Me(),k&&k()}),L)}c=c||"text";let J=await ze[d.findKey(ze,c)||"text"](C,t);return!j&&k&&k(),await new Promise((L,Y)=>{un(L,Y,{data:J,headers:D.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:g})})}catch(A){throw k&&k(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,t,g),{cause:A.cause||A}):w.from(A,A&&A.code,t,g)}}),yt={http:yr,xhr:Hr,fetch:ts};d.forEach(yt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ft=t=>`- ${t}`,ns=t=>d.isFunction(t)||t===null||t===!1,pn={getAdapter:t=>{t=d.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let a=0;a`adapter ${o} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=e?a.length>1?`since : `+a.map(Ft).join(` `):" "+Ft(a[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:yt};function ut(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new _e(null,t)}function Bt(t){return ut(t),t.headers=D.from(t.headers),t.data=ct.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),pn.getAdapter(t.adapter||De.adapter)(t).then(function(r){return ut(t),r.data=ct.call(t,t.transformResponse,r),r.headers=D.from(r.headers),r},function(r){return cn(r)||(ut(t),r&&r.response&&(r.response.data=ct.call(t,t.transformResponse,r.response),r.response.headers=D.from(r.response.headers))),Promise.reject(r)})}const mn="1.7.9",rt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{rt[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const $t={};rt.transitional=function(e,n,r){function s(a,i){return"[Axios v"+mn+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,o)=>{if(e===!1)throw new w(s(i," has been removed"+(n?" in "+n:"")),w.ERR_DEPRECATED);return n&&!$t[i]&&($t[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,i,o):!0}};rt.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function rs(t,e,n){if(typeof t!="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const a=r[s],i=e[a];if(i){const o=t[a],u=o===void 0||i(o,a,t);if(u!==!0)throw new w("option "+a+" must be "+u,w.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new w("Unknown option "+a,w.ERR_BAD_OPTION)}}const $e={assertOptions:rs,validators:rt},z=$e.validators;class ae{constructor(e){this.defaults=e,this.interceptors={request:new Pt,response:new Pt}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=oe(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:a}=n;r!==void 0&&$e.assertOptions(r,{silentJSONParsing:z.transitional(z.boolean),forcedJSONParsing:z.transitional(z.boolean),clarifyTimeoutError:z.transitional(z.boolean)},!1),s!=null&&(d.isFunction(s)?n.paramsSerializer={serialize:s}:$e.assertOptions(s,{encode:z.function,serialize:z.function},!0)),$e.assertOptions(n,{baseUrl:z.spelling("baseURL"),withXsrfToken:z.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&d.merge(a.common,a[n.method]);a&&d.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=D.concat(i,a);const o=[];let u=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(u=u&&k.synchronous,o.unshift(k.fulfilled,k.rejected))});const c=[];this.interceptors.response.forEach(function(k){c.push(k.fulfilled,k.rejected)});let l,p=0,S;if(!u){const g=[Bt.bind(this),void 0];for(g.unshift.apply(g,o),g.push.apply(g,c),S=g.length,l=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const i=new Promise(o=>{r.subscribe(o),a=o}).then(s);return i.cancel=function(){r.unsubscribe(a)},i},e(function(a,i,o){r.reason||(r.reason=new _e(a,i,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Et(function(s){e=s}),cancel:e}}}function ss(t){return function(n){return t.apply(null,n)}}function as(t){return d.isObject(t)&&t.isAxiosError===!0}const gt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gt).forEach(([t,e])=>{gt[e]=t});function yn(t){const e=new ae(t),n=Ht(ae.prototype.request,e);return d.extend(n,ae.prototype,e,{allOwnKeys:!0}),d.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return yn(oe(t,s))},n}const N=yn(De);N.Axios=ae;N.CanceledError=_e;N.CancelToken=Et;N.isCancel=cn;N.VERSION=mn;N.toFormData=tt;N.AxiosError=w;N.Cancel=N.CanceledError;N.all=function(e){return Promise.all(e)};N.spread=ss;N.isAxiosError=as;N.mergeConfig=oe;N.AxiosHeaders=D;N.formToJSON=t=>on(d.isHTMLForm(t)?new FormData(t):t);N.getAdapter=pn.getAdapter;N.HttpStatusCode=gt;N.default=N;var E;(function(t){t.assertEqual=s=>s;function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const a={};for(const i of s)a[i]=i;return a},t.getValidEnumValues=s=>{const a=t.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),i={};for(const o of a)i[o]=s[o];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(a){return s[a]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const a=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&a.push(i);return a},t.find=(s,a)=>{for(const i of s)if(a(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,a=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}t.joinValues=r,t.jsonStringifyReplacer=(s,a)=>typeof a=="bigint"?a.toString():a})(E||(E={}));var _t;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(_t||(_t={}));const m=E.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),G=t=>{switch(typeof t){case"undefined":return m.undefined;case"string":return m.string;case"number":return isNaN(t)?m.nan:m.number;case"boolean":return m.boolean;case"function":return m.function;case"bigint":return m.bigint;case"symbol":return m.symbol;case"object":return Array.isArray(t)?m.array:t===null?m.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?m.promise:typeof Map<"u"&&t instanceof Map?m.map:typeof Set<"u"&&t instanceof Set?m.set:typeof Date<"u"&&t instanceof Date?m.date:m.object;default:return m.unknown}},f=E.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),is=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class U extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(a){return a.message},r={_errors:[]},s=a=>{for(const i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let o=r,u=0;for(;un.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(e(s))):r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}U.create=t=>new U(t);const pe=(t,e)=>{let n;switch(t.code){case f.invalid_type:t.received===m.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case f.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,E.jsonStringifyReplacer)}`;break;case f.unrecognized_keys:n=`Unrecognized key(s) in object: ${E.joinValues(t.keys,", ")}`;break;case f.invalid_union:n="Invalid input";break;case f.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${E.joinValues(t.options)}`;break;case f.invalid_enum_value:n=`Invalid enum value. Expected ${E.joinValues(t.options)}, received '${t.received}'`;break;case f.invalid_arguments:n="Invalid function arguments";break;case f.invalid_return_type:n="Invalid function return type";break;case f.invalid_date:n="Invalid date";break;case f.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:E.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case f.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case f.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case f.custom:n="Invalid input";break;case f.invalid_intersection_types:n="Intersection results could not be merged";break;case f.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case f.not_finite:n="Number must be finite";break;default:n=e.defaultError,E.assertNever(t)}return{message:n}};let gn=pe;function os(t){gn=t}function qe(){return gn}const He=t=>{const{data:e,path:n,errorMaps:r,issueData:s}=t,a=[...n,...s.path||[]],i={...s,path:a};if(s.message!==void 0)return{...s,path:a,message:s.message};let o="";const u=r.filter(c=>!!c).slice().reverse();for(const c of u)o=c(i,{data:e,defaultError:o}).message;return{...s,path:a,message:o}},cs=[];function h(t,e){const n=qe(),r=He({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===pe?void 0:pe].filter(s=>!!s)});t.common.issues.push(r)}class Z{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return b;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const a=await s.key,i=await s.value;r.push({key:a,value:i})}return Z.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:a,value:i}=s;if(a.status==="aborted"||i.status==="aborted")return b;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[a.value]=i.value)}return{status:e.value,value:r}}}const b=Object.freeze({status:"aborted"}),fe=t=>({status:"dirty",value:t}),I=t=>({status:"valid",value:t}),vt=t=>t.status==="aborted",bt=t=>t.status==="dirty",ce=t=>t.status==="valid",ke=t=>typeof Promise<"u"&&t instanceof Promise;function We(t,e,n,r){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function _n(t,e,n,r,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}var y;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(y||(y={}));var be,we;class H{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Vt=(t,e)=>{if(ce(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new U(t.common.issues);return this._error=n,this._error}}};function x(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,o)=>{var u,c;const{message:l}=t;return i.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:(u=l??r)!==null&&u!==void 0?u:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(c=l??n)!==null&&c!==void 0?c:o.defaultError}},description:s}}class T{get description(){return this._def.description}_getType(e){return G(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:G(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Z,ctx:{common:e.parent.common,data:e.data,parsedType:G(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(ke(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const s={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:G(e)},a=this._parseSync({data:e,path:s.path,parent:s});return Vt(s,a)}"~validate"(e){var n,r;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:G(e)};if(!this["~standard"].async)try{const a=this._parseSync({data:e,path:[],parent:s});return ce(a)?{value:a.value}:{issues:s.common.issues}}catch(a){!((r=(n=a==null?void 0:a.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:s}).then(a=>ce(a)?{value:a.value}:{issues:s.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:G(e)},s=this._parse({data:e,path:r.path,parent:r}),a=await(ke(s)?s:Promise.resolve(s));return Vt(r,a)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,a)=>{const i=e(s),o=()=>a.addIssue({code:f.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new $({schema:this,typeName:v.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return q.create(this,this._def)}nullable(){return ne.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return B.create(this)}promise(){return ye.create(this,this._def)}or(e){return Re.create([this,e],this._def)}and(e){return Oe.create(this,e,this._def)}transform(e){return new $({...x(this._def),schema:this,typeName:v.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Pe({...x(this._def),innerType:this,defaultValue:n,typeName:v.ZodDefault})}brand(){return new St({typeName:v.ZodBranded,type:this,...x(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Ze({...x(this._def),innerType:this,catchValue:n,typeName:v.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Me.create(this,e)}readonly(){return Ie.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const us=/^c[^\s-]{8,}$/i,ds=/^[0-9a-z]+$/,ls=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fs=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,hs=/^[a-z0-9_-]{21}$/i,ps=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ms=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ys=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,gs="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let dt;const _s=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vs=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,bs=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ws=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xs=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ks=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vn="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Ts=new RegExp(`^${vn}$`);function bn(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function Es(t){return new RegExp(`^${bn(t)}$`)}function wn(t){let e=`${vn}T${bn(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function Ss(t,e){return!!((e==="v4"||!e)&&_s.test(t)||(e==="v6"||!e)&&bs.test(t))}function Rs(t,e){if(!ps.test(t))return!1;try{const[n]=t.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||!s.typ||!s.alg||e&&s.alg!==e)}catch{return!1}}function Os(t,e){return!!((e==="v4"||!e)&&vs.test(t)||(e==="v6"||!e)&&ws.test(t))}class F extends T{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==m.string){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.string,received:a.parsedType}),b}const r=new Z;let s;for(const a of this._def.checks)if(a.kind==="min")e.data.lengtha.value&&(s=this._getOrReturnCtx(e,s),h(s,{code:f.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const i=e.data.length>a.value,o=e.data.lengthe.test(s),{validation:n,code:f.invalid_string,...y.errToObj(r)})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...y.errToObj(e)})}url(e){return this._addCheck({kind:"url",...y.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...y.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...y.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...y.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...y.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...y.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...y.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...y.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...y.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...y.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...y.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...y.errToObj(e)})}datetime(e){var n,r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,local:(r=e==null?void 0:e.local)!==null&&r!==void 0?r:!1,...y.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...y.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...y.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...y.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...y.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...y.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...y.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...y.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...y.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...y.errToObj(n)})}nonempty(e){return this.min(1,y.errToObj(e))}trim(){return new F({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new F({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new F({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new F({checks:[],typeName:v.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...x(t)})};function As(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,a=parseInt(t.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return a%i/Math.pow(10,s)}class Q extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==m.number){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.number,received:a.parsedType}),b}let r;const s=new Z;for(const a of this._def.checks)a.kind==="int"?E.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),h(r,{code:f.invalid_type,expected:"integer",received:"float",message:a.message}),s.dirty()):a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?As(e.data,a.value)!==0&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_finite,message:a.message}),s.dirty()):E.assertNever(a);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,y.toString(n))}gt(e,n){return this.setLimit("min",e,!1,y.toString(n))}lte(e,n){return this.setLimit("max",e,!0,y.toString(n))}lt(e,n){return this.setLimit("max",e,!1,y.toString(n))}setLimit(e,n,r,s){return new Q({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:y.toString(s)}]})}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:y.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:y.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:y.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:y.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:y.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:y.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:y.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:y.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:y.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuee.kind==="int"||e.kind==="multipleOf"&&E.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.valuenew Q({checks:[],typeName:v.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...x(t)});class ee extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==m.bigint)return this._getInvalidInput(e);let r;const s=new Z;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):E.assertNever(a);return{status:s.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return h(n,{code:f.invalid_type,expected:m.bigint,received:n.parsedType}),b}gte(e,n){return this.setLimit("min",e,!0,y.toString(n))}gt(e,n){return this.setLimit("min",e,!1,y.toString(n))}lte(e,n){return this.setLimit("max",e,!0,y.toString(n))}lt(e,n){return this.setLimit("max",e,!1,y.toString(n))}setLimit(e,n,r,s){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:y.toString(s)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:y.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:y.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:y.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:y.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:y.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new ee({checks:[],typeName:v.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...x(t)})};class Te extends T{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==m.boolean){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.boolean,received:r.parsedType}),b}return I(e.data)}}Te.create=t=>new Te({typeName:v.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...x(t)});class ue extends T{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==m.date){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.date,received:a.parsedType}),b}if(isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_date}),b}const r=new Z;let s;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()a.value&&(s=this._getOrReturnCtx(e,s),h(s,{code:f.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):E.assertNever(a);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ue({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:y.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:y.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuenew ue({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:v.ZodDate,...x(t)});class Je extends T{_parse(e){if(this._getType(e)!==m.symbol){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.symbol,received:r.parsedType}),b}return I(e.data)}}Je.create=t=>new Je({typeName:v.ZodSymbol,...x(t)});class Ee extends T{_parse(e){if(this._getType(e)!==m.undefined){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.undefined,received:r.parsedType}),b}return I(e.data)}}Ee.create=t=>new Ee({typeName:v.ZodUndefined,...x(t)});class Se extends T{_parse(e){if(this._getType(e)!==m.null){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.null,received:r.parsedType}),b}return I(e.data)}}Se.create=t=>new Se({typeName:v.ZodNull,...x(t)});class me extends T{constructor(){super(...arguments),this._any=!0}_parse(e){return I(e.data)}}me.create=t=>new me({typeName:v.ZodAny,...x(t)});class ie extends T{constructor(){super(...arguments),this._unknown=!0}_parse(e){return I(e.data)}}ie.create=t=>new ie({typeName:v.ZodUnknown,...x(t)});class X extends T{_parse(e){const n=this._getOrReturnCtx(e);return h(n,{code:f.invalid_type,expected:m.never,received:n.parsedType}),b}}X.create=t=>new X({typeName:v.ZodNever,...x(t)});class Ke extends T{_parse(e){if(this._getType(e)!==m.undefined){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.void,received:r.parsedType}),b}return I(e.data)}}Ke.create=t=>new Ke({typeName:v.ZodVoid,...x(t)});class B extends T{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==m.array)return h(n,{code:f.invalid_type,expected:m.array,received:n.parsedType}),b;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,o=n.data.lengths.maxLength.value&&(h(n,{code:f.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,o)=>s.type._parseAsync(new H(n,i,n.path,o)))).then(i=>Z.mergeArray(r,i));const a=[...n.data].map((i,o)=>s.type._parseSync(new H(n,i,n.path,o)));return Z.mergeArray(r,a)}get element(){return this._def.type}min(e,n){return new B({...this._def,minLength:{value:e,message:y.toString(n)}})}max(e,n){return new B({...this._def,maxLength:{value:e,message:y.toString(n)}})}length(e,n){return new B({...this._def,exactLength:{value:e,message:y.toString(n)}})}nonempty(e){return this.min(1,e)}}B.create=(t,e)=>new B({type:t,minLength:null,maxLength:null,exactLength:null,typeName:v.ZodArray,...x(e)});function le(t){if(t instanceof O){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=q.create(le(r))}return new O({...t._def,shape:()=>e})}else return t instanceof B?new B({...t._def,type:le(t.element)}):t instanceof q?q.create(le(t.unwrap())):t instanceof ne?ne.create(le(t.unwrap())):t instanceof W?W.create(t.items.map(e=>le(e))):t}class O extends T{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=E.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==m.object){const c=this._getOrReturnCtx(e);return h(c,{code:f.invalid_type,expected:m.object,received:c.parsedType}),b}const{status:r,ctx:s}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof X&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||o.push(c);const u=[];for(const c of i){const l=a[c],p=s.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new H(s,p,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof X){const c=this._def.unknownKeys;if(c==="passthrough")for(const l of o)u.push({key:{status:"valid",value:l},value:{status:"valid",value:s.data[l]}});else if(c==="strict")o.length>0&&(h(s,{code:f.unrecognized_keys,keys:o}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const l of o){const p=s.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new H(s,p,s.path,l)),alwaysSet:l in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const l of u){const p=await l.key,S=await l.value;c.push({key:p,value:S,alwaysSet:l.alwaysSet})}return c}).then(c=>Z.mergeObjectSync(r,c)):Z.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(e){return y.errToObj,new O({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var s,a,i,o;const u=(i=(a=(s=this._def).errorMap)===null||a===void 0?void 0:a.call(s,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(o=y.errToObj(e).message)!==null&&o!==void 0?o:u}:{message:u}}}:{}})}strip(){return new O({...this._def,unknownKeys:"strip"})}passthrough(){return new O({...this._def,unknownKeys:"passthrough"})}extend(e){return new O({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new O({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:v.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new O({...this._def,catchall:e})}pick(e){const n={};return E.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new O({...this._def,shape:()=>n})}omit(e){const n={};return E.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new O({...this._def,shape:()=>n})}deepPartial(){return le(this)}partial(e){const n={};return E.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}),new O({...this._def,shape:()=>n})}required(e){const n={};return E.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof q;)a=a._def.innerType;n[r]=a}}),new O({...this._def,shape:()=>n})}keyof(){return xn(E.objectKeys(this.shape))}}O.create=(t,e)=>new O({shape:()=>t,unknownKeys:"strip",catchall:X.create(),typeName:v.ZodObject,...x(e)});O.strictCreate=(t,e)=>new O({shape:()=>t,unknownKeys:"strict",catchall:X.create(),typeName:v.ZodObject,...x(e)});O.lazycreate=(t,e)=>new O({shape:t,unknownKeys:"strip",catchall:X.create(),typeName:v.ZodObject,...x(e)});class Re extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const i=a.map(o=>new U(o.ctx.common.issues));return h(n,{code:f.invalid_union,unionErrors:i}),b}if(n.common.async)return Promise.all(r.map(async a=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let a;const i=[];for(const u of r){const c={...n,common:{...n.common,issues:[]},parent:null},l=u._parseSync({data:n.data,path:n.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!a&&(a={result:l,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(u=>new U(u));return h(n,{code:f.invalid_union,unionErrors:o}),b}}get options(){return this._def.options}}Re.create=(t,e)=>new Re({options:t,typeName:v.ZodUnion,...x(e)});const K=t=>t instanceof Ce?K(t.schema):t instanceof $?K(t.innerType()):t instanceof Ne?[t.value]:t instanceof te?t.options:t instanceof je?E.objectValues(t.enum):t instanceof Pe?K(t._def.innerType):t instanceof Ee?[void 0]:t instanceof Se?[null]:t instanceof q?[void 0,...K(t.unwrap())]:t instanceof ne?[null,...K(t.unwrap())]:t instanceof St||t instanceof Ie?K(t.unwrap()):t instanceof Ze?K(t._def.innerType):[];class st extends T{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.object)return h(n,{code:f.invalid_type,expected:m.object,received:n.parsedType}),b;const r=this.discriminator,s=n.data[r],a=this.optionsMap.get(s);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(h(n,{code:f.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),b)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const s=new Map;for(const a of n){const i=K(a.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const o of i){if(s.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);s.set(o,a)}}return new st({typeName:v.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:s,...x(r)})}}function wt(t,e){const n=G(t),r=G(e);if(t===e)return{valid:!0,data:t};if(n===m.object&&r===m.object){const s=E.objectKeys(e),a=E.objectKeys(t).filter(o=>s.indexOf(o)!==-1),i={...t,...e};for(const o of a){const u=wt(t[o],e[o]);if(!u.valid)return{valid:!1};i[o]=u.data}return{valid:!0,data:i}}else if(n===m.array&&r===m.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let a=0;a{if(vt(a)||vt(i))return b;const o=wt(a.value,i.value);return o.valid?((bt(a)||bt(i))&&n.dirty(),{status:n.value,value:o.data}):(h(r,{code:f.invalid_intersection_types}),b)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,i])=>s(a,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Oe.create=(t,e,n)=>new Oe({left:t,right:e,typeName:v.ZodIntersection,...x(n)});class W extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.array)return h(r,{code:f.invalid_type,expected:m.array,received:r.parsedType}),b;if(r.data.lengththis._def.items.length&&(h(r,{code:f.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((i,o)=>{const u=this._def.items[o]||this._def.rest;return u?u._parse(new H(r,i,r.path,o)):null}).filter(i=>!!i);return r.common.async?Promise.all(a).then(i=>Z.mergeArray(n,i)):Z.mergeArray(n,a)}get items(){return this._def.items}rest(e){return new W({...this._def,rest:e})}}W.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new W({items:t,typeName:v.ZodTuple,rest:null,...x(e)})};class Ae extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.object)return h(r,{code:f.invalid_type,expected:m.object,received:r.parsedType}),b;const s=[],a=this._def.keyType,i=this._def.valueType;for(const o in r.data)s.push({key:a._parse(new H(r,o,r.path,o)),value:i._parse(new H(r,r.data[o],r.path,o)),alwaysSet:o in r.data});return r.common.async?Z.mergeObjectAsync(n,s):Z.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof T?new Ae({keyType:e,valueType:n,typeName:v.ZodRecord,...x(r)}):new Ae({keyType:F.create(),valueType:e,typeName:v.ZodRecord,...x(n)})}}class Ge extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.map)return h(r,{code:f.invalid_type,expected:m.map,received:r.parsedType}),b;const s=this._def.keyType,a=this._def.valueType,i=[...r.data.entries()].map(([o,u],c)=>({key:s._parse(new H(r,o,r.path,[c,"key"])),value:a._parse(new H(r,u,r.path,[c,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const u of i){const c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return b;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),o.set(c.value,l.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const u of i){const c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return b;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),o.set(c.value,l.value)}return{status:n.value,value:o}}}}Ge.create=(t,e,n)=>new Ge({valueType:e,keyType:t,typeName:v.ZodMap,...x(n)});class de extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.set)return h(r,{code:f.invalid_type,expected:m.set,received:r.parsedType}),b;const s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(h(r,{code:f.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const a=this._def.valueType;function i(u){const c=new Set;for(const l of u){if(l.status==="aborted")return b;l.status==="dirty"&&n.dirty(),c.add(l.value)}return{status:n.value,value:c}}const o=[...r.data.values()].map((u,c)=>a._parse(new H(r,u,r.path,c)));return r.common.async?Promise.all(o).then(u=>i(u)):i(o)}min(e,n){return new de({...this._def,minSize:{value:e,message:y.toString(n)}})}max(e,n){return new de({...this._def,maxSize:{value:e,message:y.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}de.create=(t,e)=>new de({valueType:t,minSize:null,maxSize:null,typeName:v.ZodSet,...x(e)});class he extends T{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.function)return h(n,{code:f.invalid_type,expected:m.function,received:n.parsedType}),b;function r(o,u){return He({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,qe(),pe].filter(c=>!!c),issueData:{code:f.invalid_arguments,argumentsError:u}})}function s(o,u){return He({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,qe(),pe].filter(c=>!!c),issueData:{code:f.invalid_return_type,returnTypeError:u}})}const a={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof ye){const o=this;return I(async function(...u){const c=new U([]),l=await o._def.args.parseAsync(u,a).catch(R=>{throw c.addIssue(r(u,R)),c}),p=await Reflect.apply(i,this,l);return await o._def.returns._def.type.parseAsync(p,a).catch(R=>{throw c.addIssue(s(p,R)),c})})}else{const o=this;return I(function(...u){const c=o._def.args.safeParse(u,a);if(!c.success)throw new U([r(u,c.error)]);const l=Reflect.apply(i,this,c.data),p=o._def.returns.safeParse(l,a);if(!p.success)throw new U([s(l,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new he({...this._def,args:W.create(e).rest(ie.create())})}returns(e){return new he({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new he({args:e||W.create([]).rest(ie.create()),returns:n||ie.create(),typeName:v.ZodFunction,...x(r)})}}class Ce extends T{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Ce.create=(t,e)=>new Ce({getter:t,typeName:v.ZodLazy,...x(e)});class Ne extends T{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return h(n,{received:n.data,code:f.invalid_literal,expected:this._def.value}),b}return{status:"valid",value:e.data}}get value(){return this._def.value}}Ne.create=(t,e)=>new Ne({value:t,typeName:v.ZodLiteral,...x(e)});function xn(t,e){return new te({values:t,typeName:v.ZodEnum,...x(e)})}class te extends T{constructor(){super(...arguments),be.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return h(n,{expected:E.joinValues(r),received:n.parsedType,code:f.invalid_type}),b}if(We(this,be)||_n(this,be,new Set(this._def.values)),!We(this,be).has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return h(n,{received:n.data,code:f.invalid_enum_value,options:r}),b}return I(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return te.create(e,{...this._def,...n})}exclude(e,n=this._def){return te.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}be=new WeakMap;te.create=xn;class je extends T{constructor(){super(...arguments),we.set(this,void 0)}_parse(e){const n=E.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==m.string&&r.parsedType!==m.number){const s=E.objectValues(n);return h(r,{expected:E.joinValues(s),received:r.parsedType,code:f.invalid_type}),b}if(We(this,we)||_n(this,we,new Set(E.getValidEnumValues(this._def.values))),!We(this,we).has(e.data)){const s=E.objectValues(n);return h(r,{received:r.data,code:f.invalid_enum_value,options:s}),b}return I(e.data)}get enum(){return this._def.values}}we=new WeakMap;je.create=(t,e)=>new je({values:t,typeName:v.ZodNativeEnum,...x(e)});class ye extends T{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.promise&&n.common.async===!1)return h(n,{code:f.invalid_type,expected:m.promise,received:n.parsedType}),b;const r=n.parsedType===m.promise?n.data:Promise.resolve(n.data);return I(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ye.create=(t,e)=>new ye({type:t,typeName:v.ZodPromise,...x(e)});class $ extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===v.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,a={addIssue:i=>{h(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),s.type==="preprocess"){const i=s.transform(r.data,a);if(r.common.async)return Promise.resolve(i).then(async o=>{if(n.value==="aborted")return b;const u=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return u.status==="aborted"?b:u.status==="dirty"||n.value==="dirty"?fe(u.value):u});{if(n.value==="aborted")return b;const o=this._def.schema._parseSync({data:i,path:r.path,parent:r});return o.status==="aborted"?b:o.status==="dirty"||n.value==="dirty"?fe(o.value):o}}if(s.type==="refinement"){const i=o=>{const u=s.refinement(o,a);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?b:(o.status==="dirty"&&n.dirty(),i(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?b:(o.status==="dirty"&&n.dirty(),i(o.value).then(()=>({status:n.value,value:o.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ce(i))return i;const o=s.transform(i.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>ce(i)?Promise.resolve(s.transform(i.value,a)).then(o=>({status:n.value,value:o})):i);E.assertNever(s)}}$.create=(t,e,n)=>new $({schema:t,typeName:v.ZodEffects,effect:e,...x(n)});$.createWithPreprocess=(t,e,n)=>new $({schema:e,effect:{type:"preprocess",transform:t},typeName:v.ZodEffects,...x(n)});class q extends T{_parse(e){return this._getType(e)===m.undefined?I(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}q.create=(t,e)=>new q({innerType:t,typeName:v.ZodOptional,...x(e)});class ne extends T{_parse(e){return this._getType(e)===m.null?I(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ne.create=(t,e)=>new ne({innerType:t,typeName:v.ZodNullable,...x(e)});class Pe extends T{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===m.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Pe.create=(t,e)=>new Pe({innerType:t,typeName:v.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...x(e)});class Ze extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ke(s)?s.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new U(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new U(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ze.create=(t,e)=>new Ze({innerType:t,typeName:v.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...x(e)});class Xe extends T{_parse(e){if(this._getType(e)!==m.nan){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.nan,received:r.parsedType}),b}return{status:"valid",value:e.data}}}Xe.create=t=>new Xe({typeName:v.ZodNaN,...x(t)});const Cs=Symbol("zod_brand");class St extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Me extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?b:a.status==="dirty"?(n.dirty(),fe(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?b:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new Me({in:e,out:n,typeName:v.ZodPipeline})}}class Ie extends T{_parse(e){const n=this._def.innerType._parse(e),r=s=>(ce(s)&&(s.value=Object.freeze(s.value)),s);return ke(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Ie.create=(t,e)=>new Ie({innerType:t,typeName:v.ZodReadonly,...x(e)});function kn(t,e={},n){return t?me.create().superRefine((r,s)=>{var a,i;if(!t(r)){const o=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,u=(i=(a=o.fatal)!==null&&a!==void 0?a:n)!==null&&i!==void 0?i:!0,c=typeof o=="string"?{message:o}:o;s.addIssue({code:"custom",...c,fatal:u})}}):me.create()}const Ns={object:O.lazycreate};var v;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(v||(v={}));const js=(t,e={message:`Input not instance of ${t.name}`})=>kn(n=>n instanceof t,e),Tn=F.create,En=Q.create,Ps=Xe.create,Zs=ee.create,Sn=Te.create,Is=ue.create,Ls=Je.create,Ds=Ee.create,Ms=Se.create,Us=me.create,Fs=ie.create,Bs=X.create,$s=Ke.create,Vs=B.create,zs=O.create,qs=O.strictCreate,Hs=Re.create,Ws=st.create,Js=Oe.create,Ks=W.create,Gs=Ae.create,Xs=Ge.create,Ys=de.create,Qs=he.create,ea=Ce.create,ta=Ne.create,na=te.create,ra=je.create,sa=ye.create,zt=$.create,aa=q.create,ia=ne.create,oa=$.createWithPreprocess,ca=Me.create,ua=()=>Tn().optional(),da=()=>En().optional(),la=()=>Sn().optional(),fa={string:t=>F.create({...t,coerce:!0}),number:t=>Q.create({...t,coerce:!0}),boolean:t=>Te.create({...t,coerce:!0}),bigint:t=>ee.create({...t,coerce:!0}),date:t=>ue.create({...t,coerce:!0})},ha=b;var ya=Object.freeze({__proto__:null,defaultErrorMap:pe,setErrorMap:os,getErrorMap:qe,makeIssue:He,EMPTY_PATH:cs,addIssueToContext:h,ParseStatus:Z,INVALID:b,DIRTY:fe,OK:I,isAborted:vt,isDirty:bt,isValid:ce,isAsync:ke,get util(){return E},get objectUtil(){return _t},ZodParsedType:m,getParsedType:G,ZodType:T,datetimeRegex:wn,ZodString:F,ZodNumber:Q,ZodBigInt:ee,ZodBoolean:Te,ZodDate:ue,ZodSymbol:Je,ZodUndefined:Ee,ZodNull:Se,ZodAny:me,ZodUnknown:ie,ZodNever:X,ZodVoid:Ke,ZodArray:B,ZodObject:O,ZodUnion:Re,ZodDiscriminatedUnion:st,ZodIntersection:Oe,ZodTuple:W,ZodRecord:Ae,ZodMap:Ge,ZodSet:de,ZodFunction:he,ZodLazy:Ce,ZodLiteral:Ne,ZodEnum:te,ZodNativeEnum:je,ZodPromise:ye,ZodEffects:$,ZodTransformer:$,ZodOptional:q,ZodNullable:ne,ZodDefault:Pe,ZodCatch:Ze,ZodNaN:Xe,BRAND:Cs,ZodBranded:St,ZodPipeline:Me,ZodReadonly:Ie,custom:kn,Schema:T,ZodSchema:T,late:Ns,get ZodFirstPartyTypeKind(){return v},coerce:fa,any:Us,array:Vs,bigint:Zs,boolean:Sn,date:Is,discriminatedUnion:Ws,effect:zt,enum:na,function:Qs,instanceof:js,intersection:Js,lazy:ea,literal:ta,map:Xs,nan:Ps,nativeEnum:ra,never:Bs,null:Ms,nullable:ia,number:En,object:zs,oboolean:la,onumber:da,optional:aa,ostring:ua,pipeline:ca,preprocess:oa,promise:sa,record:Gs,set:Ys,strictObject:qs,string:Tn,symbol:Ls,transformer:zt,tuple:Ks,undefined:Ds,union:Hs,unknown:Fs,void:$s,NEVER:ha,ZodIssueCode:f,quotelessJson:is,ZodError:U});export{N as a,ma as t,ya as z}; +`+a):r.stack=a}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=oe(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:a}=n;r!==void 0&&$e.assertOptions(r,{silentJSONParsing:z.transitional(z.boolean),forcedJSONParsing:z.transitional(z.boolean),clarifyTimeoutError:z.transitional(z.boolean)},!1),s!=null&&(d.isFunction(s)?n.paramsSerializer={serialize:s}:$e.assertOptions(s,{encode:z.function,serialize:z.function},!0)),$e.assertOptions(n,{baseUrl:z.spelling("baseURL"),withXsrfToken:z.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&d.merge(a.common,a[n.method]);a&&d.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=D.concat(i,a);const o=[];let u=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(u=u&&k.synchronous,o.unshift(k.fulfilled,k.rejected))});const c=[];this.interceptors.response.forEach(function(k){c.push(k.fulfilled,k.rejected)});let l,p=0,S;if(!u){const g=[Bt.bind(this),void 0];for(g.unshift.apply(g,o),g.push.apply(g,c),S=g.length,l=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const i=new Promise(o=>{r.subscribe(o),a=o}).then(s);return i.cancel=function(){r.unsubscribe(a)},i},e(function(a,i,o){r.reason||(r.reason=new _e(a,i,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Et(function(s){e=s}),cancel:e}}}function ss(t){return function(n){return t.apply(null,n)}}function as(t){return d.isObject(t)&&t.isAxiosError===!0}const gt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gt).forEach(([t,e])=>{gt[e]=t});function yn(t){const e=new ae(t),n=Ht(ae.prototype.request,e);return d.extend(n,ae.prototype,e,{allOwnKeys:!0}),d.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return yn(oe(t,s))},n}const N=yn(De);N.Axios=ae;N.CanceledError=_e;N.CancelToken=Et;N.isCancel=cn;N.VERSION=mn;N.toFormData=tt;N.AxiosError=w;N.Cancel=N.CanceledError;N.all=function(e){return Promise.all(e)};N.spread=ss;N.isAxiosError=as;N.mergeConfig=oe;N.AxiosHeaders=D;N.formToJSON=t=>on(d.isHTMLForm(t)?new FormData(t):t);N.getAdapter=pn.getAdapter;N.HttpStatusCode=gt;N.default=N;var E;(function(t){t.assertEqual=s=>s;function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const a={};for(const i of s)a[i]=i;return a},t.getValidEnumValues=s=>{const a=t.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),i={};for(const o of a)i[o]=s[o];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(a){return s[a]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const a=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&a.push(i);return a},t.find=(s,a)=>{for(const i of s)if(a(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,a=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}t.joinValues=r,t.jsonStringifyReplacer=(s,a)=>typeof a=="bigint"?a.toString():a})(E||(E={}));var _t;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(_t||(_t={}));const m=E.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),G=t=>{switch(typeof t){case"undefined":return m.undefined;case"string":return m.string;case"number":return isNaN(t)?m.nan:m.number;case"boolean":return m.boolean;case"function":return m.function;case"bigint":return m.bigint;case"symbol":return m.symbol;case"object":return Array.isArray(t)?m.array:t===null?m.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?m.promise:typeof Map<"u"&&t instanceof Map?m.map:typeof Set<"u"&&t instanceof Set?m.set:typeof Date<"u"&&t instanceof Date?m.date:m.object;default:return m.unknown}},f=E.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),is=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class M extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(a){return a.message},r={_errors:[]},s=a=>{for(const i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let o=r,u=0;for(;un.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(e(s))):r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}M.create=t=>new M(t);const pe=(t,e)=>{let n;switch(t.code){case f.invalid_type:t.received===m.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case f.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,E.jsonStringifyReplacer)}`;break;case f.unrecognized_keys:n=`Unrecognized key(s) in object: ${E.joinValues(t.keys,", ")}`;break;case f.invalid_union:n="Invalid input";break;case f.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${E.joinValues(t.options)}`;break;case f.invalid_enum_value:n=`Invalid enum value. Expected ${E.joinValues(t.options)}, received '${t.received}'`;break;case f.invalid_arguments:n="Invalid function arguments";break;case f.invalid_return_type:n="Invalid function return type";break;case f.invalid_date:n="Invalid date";break;case f.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:E.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case f.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case f.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case f.custom:n="Invalid input";break;case f.invalid_intersection_types:n="Intersection results could not be merged";break;case f.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case f.not_finite:n="Number must be finite";break;default:n=e.defaultError,E.assertNever(t)}return{message:n}};let gn=pe;function os(t){gn=t}function qe(){return gn}const He=t=>{const{data:e,path:n,errorMaps:r,issueData:s}=t,a=[...n,...s.path||[]],i={...s,path:a};if(s.message!==void 0)return{...s,path:a,message:s.message};let o="";const u=r.filter(c=>!!c).slice().reverse();for(const c of u)o=c(i,{data:e,defaultError:o}).message;return{...s,path:a,message:o}},cs=[];function h(t,e){const n=qe(),r=He({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===pe?void 0:pe].filter(s=>!!s)});t.common.issues.push(r)}class Z{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return b;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const a=await s.key,i=await s.value;r.push({key:a,value:i})}return Z.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:a,value:i}=s;if(a.status==="aborted"||i.status==="aborted")return b;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[a.value]=i.value)}return{status:e.value,value:r}}}const b=Object.freeze({status:"aborted"}),fe=t=>({status:"dirty",value:t}),I=t=>({status:"valid",value:t}),vt=t=>t.status==="aborted",bt=t=>t.status==="dirty",ce=t=>t.status==="valid",ke=t=>typeof Promise<"u"&&t instanceof Promise;function We(t,e,n,r){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function _n(t,e,n,r,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}var y;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(y||(y={}));var be,we;class H{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Vt=(t,e)=>{if(ce(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new M(t.common.issues);return this._error=n,this._error}}};function x(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,o)=>{var u,c;const{message:l}=t;return i.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:(u=l??r)!==null&&u!==void 0?u:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(c=l??n)!==null&&c!==void 0?c:o.defaultError}},description:s}}class T{get description(){return this._def.description}_getType(e){return G(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:G(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Z,ctx:{common:e.parent.common,data:e.data,parsedType:G(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(ke(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const s={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:G(e)},a=this._parseSync({data:e,path:s.path,parent:s});return Vt(s,a)}"~validate"(e){var n,r;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:G(e)};if(!this["~standard"].async)try{const a=this._parseSync({data:e,path:[],parent:s});return ce(a)?{value:a.value}:{issues:s.common.issues}}catch(a){!((r=(n=a==null?void 0:a.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:s}).then(a=>ce(a)?{value:a.value}:{issues:s.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:G(e)},s=this._parse({data:e,path:r.path,parent:r}),a=await(ke(s)?s:Promise.resolve(s));return Vt(r,a)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,a)=>{const i=e(s),o=()=>a.addIssue({code:f.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new $({schema:this,typeName:v.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return q.create(this,this._def)}nullable(){return ne.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return B.create(this)}promise(){return ye.create(this,this._def)}or(e){return Re.create([this,e],this._def)}and(e){return Oe.create(this,e,this._def)}transform(e){return new $({...x(this._def),schema:this,typeName:v.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Pe({...x(this._def),innerType:this,defaultValue:n,typeName:v.ZodDefault})}brand(){return new St({typeName:v.ZodBranded,type:this,...x(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Ze({...x(this._def),innerType:this,catchValue:n,typeName:v.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Ue.create(this,e)}readonly(){return Ie.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const us=/^c[^\s-]{8,}$/i,ds=/^[0-9a-z]+$/,ls=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fs=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,hs=/^[a-z0-9_-]{21}$/i,ps=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ms=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ys=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,gs="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let dt;const _s=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vs=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,bs=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ws=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xs=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ks=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vn="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Ts=new RegExp(`^${vn}$`);function bn(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function Es(t){return new RegExp(`^${bn(t)}$`)}function wn(t){let e=`${vn}T${bn(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function Ss(t,e){return!!((e==="v4"||!e)&&_s.test(t)||(e==="v6"||!e)&&bs.test(t))}function Rs(t,e){if(!ps.test(t))return!1;try{const[n]=t.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||!s.typ||!s.alg||e&&s.alg!==e)}catch{return!1}}function Os(t,e){return!!((e==="v4"||!e)&&vs.test(t)||(e==="v6"||!e)&&ws.test(t))}class F extends T{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==m.string){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.string,received:a.parsedType}),b}const r=new Z;let s;for(const a of this._def.checks)if(a.kind==="min")e.data.lengtha.value&&(s=this._getOrReturnCtx(e,s),h(s,{code:f.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const i=e.data.length>a.value,o=e.data.lengthe.test(s),{validation:n,code:f.invalid_string,...y.errToObj(r)})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...y.errToObj(e)})}url(e){return this._addCheck({kind:"url",...y.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...y.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...y.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...y.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...y.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...y.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...y.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...y.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...y.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...y.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...y.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...y.errToObj(e)})}datetime(e){var n,r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,local:(r=e==null?void 0:e.local)!==null&&r!==void 0?r:!1,...y.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...y.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...y.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...y.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...y.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...y.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...y.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...y.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...y.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...y.errToObj(n)})}nonempty(e){return this.min(1,y.errToObj(e))}trim(){return new F({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new F({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new F({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new F({checks:[],typeName:v.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...x(t)})};function As(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,a=parseInt(t.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return a%i/Math.pow(10,s)}class Q extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==m.number){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.number,received:a.parsedType}),b}let r;const s=new Z;for(const a of this._def.checks)a.kind==="int"?E.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),h(r,{code:f.invalid_type,expected:"integer",received:"float",message:a.message}),s.dirty()):a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?As(e.data,a.value)!==0&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_finite,message:a.message}),s.dirty()):E.assertNever(a);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,y.toString(n))}gt(e,n){return this.setLimit("min",e,!1,y.toString(n))}lte(e,n){return this.setLimit("max",e,!0,y.toString(n))}lt(e,n){return this.setLimit("max",e,!1,y.toString(n))}setLimit(e,n,r,s){return new Q({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:y.toString(s)}]})}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:y.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:y.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:y.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:y.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:y.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:y.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:y.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:y.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:y.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuee.kind==="int"||e.kind==="multipleOf"&&E.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.valuenew Q({checks:[],typeName:v.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...x(t)});class ee extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==m.bigint)return this._getInvalidInput(e);let r;const s=new Z;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):E.assertNever(a);return{status:s.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return h(n,{code:f.invalid_type,expected:m.bigint,received:n.parsedType}),b}gte(e,n){return this.setLimit("min",e,!0,y.toString(n))}gt(e,n){return this.setLimit("min",e,!1,y.toString(n))}lte(e,n){return this.setLimit("max",e,!0,y.toString(n))}lt(e,n){return this.setLimit("max",e,!1,y.toString(n))}setLimit(e,n,r,s){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:y.toString(s)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:y.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:y.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:y.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:y.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:y.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new ee({checks:[],typeName:v.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...x(t)})};class Te extends T{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==m.boolean){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.boolean,received:r.parsedType}),b}return I(e.data)}}Te.create=t=>new Te({typeName:v.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...x(t)});class ue extends T{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==m.date){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.date,received:a.parsedType}),b}if(isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_date}),b}const r=new Z;let s;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()a.value&&(s=this._getOrReturnCtx(e,s),h(s,{code:f.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):E.assertNever(a);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ue({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:y.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:y.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuenew ue({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:v.ZodDate,...x(t)});class Je extends T{_parse(e){if(this._getType(e)!==m.symbol){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.symbol,received:r.parsedType}),b}return I(e.data)}}Je.create=t=>new Je({typeName:v.ZodSymbol,...x(t)});class Ee extends T{_parse(e){if(this._getType(e)!==m.undefined){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.undefined,received:r.parsedType}),b}return I(e.data)}}Ee.create=t=>new Ee({typeName:v.ZodUndefined,...x(t)});class Se extends T{_parse(e){if(this._getType(e)!==m.null){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.null,received:r.parsedType}),b}return I(e.data)}}Se.create=t=>new Se({typeName:v.ZodNull,...x(t)});class me extends T{constructor(){super(...arguments),this._any=!0}_parse(e){return I(e.data)}}me.create=t=>new me({typeName:v.ZodAny,...x(t)});class ie extends T{constructor(){super(...arguments),this._unknown=!0}_parse(e){return I(e.data)}}ie.create=t=>new ie({typeName:v.ZodUnknown,...x(t)});class X extends T{_parse(e){const n=this._getOrReturnCtx(e);return h(n,{code:f.invalid_type,expected:m.never,received:n.parsedType}),b}}X.create=t=>new X({typeName:v.ZodNever,...x(t)});class Ke extends T{_parse(e){if(this._getType(e)!==m.undefined){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.void,received:r.parsedType}),b}return I(e.data)}}Ke.create=t=>new Ke({typeName:v.ZodVoid,...x(t)});class B extends T{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==m.array)return h(n,{code:f.invalid_type,expected:m.array,received:n.parsedType}),b;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,o=n.data.lengths.maxLength.value&&(h(n,{code:f.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,o)=>s.type._parseAsync(new H(n,i,n.path,o)))).then(i=>Z.mergeArray(r,i));const a=[...n.data].map((i,o)=>s.type._parseSync(new H(n,i,n.path,o)));return Z.mergeArray(r,a)}get element(){return this._def.type}min(e,n){return new B({...this._def,minLength:{value:e,message:y.toString(n)}})}max(e,n){return new B({...this._def,maxLength:{value:e,message:y.toString(n)}})}length(e,n){return new B({...this._def,exactLength:{value:e,message:y.toString(n)}})}nonempty(e){return this.min(1,e)}}B.create=(t,e)=>new B({type:t,minLength:null,maxLength:null,exactLength:null,typeName:v.ZodArray,...x(e)});function le(t){if(t instanceof O){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=q.create(le(r))}return new O({...t._def,shape:()=>e})}else return t instanceof B?new B({...t._def,type:le(t.element)}):t instanceof q?q.create(le(t.unwrap())):t instanceof ne?ne.create(le(t.unwrap())):t instanceof W?W.create(t.items.map(e=>le(e))):t}class O extends T{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=E.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==m.object){const c=this._getOrReturnCtx(e);return h(c,{code:f.invalid_type,expected:m.object,received:c.parsedType}),b}const{status:r,ctx:s}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof X&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||o.push(c);const u=[];for(const c of i){const l=a[c],p=s.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new H(s,p,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof X){const c=this._def.unknownKeys;if(c==="passthrough")for(const l of o)u.push({key:{status:"valid",value:l},value:{status:"valid",value:s.data[l]}});else if(c==="strict")o.length>0&&(h(s,{code:f.unrecognized_keys,keys:o}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const l of o){const p=s.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new H(s,p,s.path,l)),alwaysSet:l in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const l of u){const p=await l.key,S=await l.value;c.push({key:p,value:S,alwaysSet:l.alwaysSet})}return c}).then(c=>Z.mergeObjectSync(r,c)):Z.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(e){return y.errToObj,new O({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var s,a,i,o;const u=(i=(a=(s=this._def).errorMap)===null||a===void 0?void 0:a.call(s,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(o=y.errToObj(e).message)!==null&&o!==void 0?o:u}:{message:u}}}:{}})}strip(){return new O({...this._def,unknownKeys:"strip"})}passthrough(){return new O({...this._def,unknownKeys:"passthrough"})}extend(e){return new O({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new O({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:v.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new O({...this._def,catchall:e})}pick(e){const n={};return E.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new O({...this._def,shape:()=>n})}omit(e){const n={};return E.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new O({...this._def,shape:()=>n})}deepPartial(){return le(this)}partial(e){const n={};return E.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}),new O({...this._def,shape:()=>n})}required(e){const n={};return E.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof q;)a=a._def.innerType;n[r]=a}}),new O({...this._def,shape:()=>n})}keyof(){return xn(E.objectKeys(this.shape))}}O.create=(t,e)=>new O({shape:()=>t,unknownKeys:"strip",catchall:X.create(),typeName:v.ZodObject,...x(e)});O.strictCreate=(t,e)=>new O({shape:()=>t,unknownKeys:"strict",catchall:X.create(),typeName:v.ZodObject,...x(e)});O.lazycreate=(t,e)=>new O({shape:t,unknownKeys:"strip",catchall:X.create(),typeName:v.ZodObject,...x(e)});class Re extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const i=a.map(o=>new M(o.ctx.common.issues));return h(n,{code:f.invalid_union,unionErrors:i}),b}if(n.common.async)return Promise.all(r.map(async a=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let a;const i=[];for(const u of r){const c={...n,common:{...n.common,issues:[]},parent:null},l=u._parseSync({data:n.data,path:n.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!a&&(a={result:l,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(u=>new M(u));return h(n,{code:f.invalid_union,unionErrors:o}),b}}get options(){return this._def.options}}Re.create=(t,e)=>new Re({options:t,typeName:v.ZodUnion,...x(e)});const K=t=>t instanceof Ce?K(t.schema):t instanceof $?K(t.innerType()):t instanceof Ne?[t.value]:t instanceof te?t.options:t instanceof je?E.objectValues(t.enum):t instanceof Pe?K(t._def.innerType):t instanceof Ee?[void 0]:t instanceof Se?[null]:t instanceof q?[void 0,...K(t.unwrap())]:t instanceof ne?[null,...K(t.unwrap())]:t instanceof St||t instanceof Ie?K(t.unwrap()):t instanceof Ze?K(t._def.innerType):[];class st extends T{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.object)return h(n,{code:f.invalid_type,expected:m.object,received:n.parsedType}),b;const r=this.discriminator,s=n.data[r],a=this.optionsMap.get(s);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(h(n,{code:f.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),b)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const s=new Map;for(const a of n){const i=K(a.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const o of i){if(s.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);s.set(o,a)}}return new st({typeName:v.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:s,...x(r)})}}function wt(t,e){const n=G(t),r=G(e);if(t===e)return{valid:!0,data:t};if(n===m.object&&r===m.object){const s=E.objectKeys(e),a=E.objectKeys(t).filter(o=>s.indexOf(o)!==-1),i={...t,...e};for(const o of a){const u=wt(t[o],e[o]);if(!u.valid)return{valid:!1};i[o]=u.data}return{valid:!0,data:i}}else if(n===m.array&&r===m.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let a=0;a{if(vt(a)||vt(i))return b;const o=wt(a.value,i.value);return o.valid?((bt(a)||bt(i))&&n.dirty(),{status:n.value,value:o.data}):(h(r,{code:f.invalid_intersection_types}),b)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,i])=>s(a,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Oe.create=(t,e,n)=>new Oe({left:t,right:e,typeName:v.ZodIntersection,...x(n)});class W extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.array)return h(r,{code:f.invalid_type,expected:m.array,received:r.parsedType}),b;if(r.data.lengththis._def.items.length&&(h(r,{code:f.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((i,o)=>{const u=this._def.items[o]||this._def.rest;return u?u._parse(new H(r,i,r.path,o)):null}).filter(i=>!!i);return r.common.async?Promise.all(a).then(i=>Z.mergeArray(n,i)):Z.mergeArray(n,a)}get items(){return this._def.items}rest(e){return new W({...this._def,rest:e})}}W.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new W({items:t,typeName:v.ZodTuple,rest:null,...x(e)})};class Ae extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.object)return h(r,{code:f.invalid_type,expected:m.object,received:r.parsedType}),b;const s=[],a=this._def.keyType,i=this._def.valueType;for(const o in r.data)s.push({key:a._parse(new H(r,o,r.path,o)),value:i._parse(new H(r,r.data[o],r.path,o)),alwaysSet:o in r.data});return r.common.async?Z.mergeObjectAsync(n,s):Z.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof T?new Ae({keyType:e,valueType:n,typeName:v.ZodRecord,...x(r)}):new Ae({keyType:F.create(),valueType:e,typeName:v.ZodRecord,...x(n)})}}class Ge extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.map)return h(r,{code:f.invalid_type,expected:m.map,received:r.parsedType}),b;const s=this._def.keyType,a=this._def.valueType,i=[...r.data.entries()].map(([o,u],c)=>({key:s._parse(new H(r,o,r.path,[c,"key"])),value:a._parse(new H(r,u,r.path,[c,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const u of i){const c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return b;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),o.set(c.value,l.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const u of i){const c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return b;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),o.set(c.value,l.value)}return{status:n.value,value:o}}}}Ge.create=(t,e,n)=>new Ge({valueType:e,keyType:t,typeName:v.ZodMap,...x(n)});class de extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.set)return h(r,{code:f.invalid_type,expected:m.set,received:r.parsedType}),b;const s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(h(r,{code:f.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const a=this._def.valueType;function i(u){const c=new Set;for(const l of u){if(l.status==="aborted")return b;l.status==="dirty"&&n.dirty(),c.add(l.value)}return{status:n.value,value:c}}const o=[...r.data.values()].map((u,c)=>a._parse(new H(r,u,r.path,c)));return r.common.async?Promise.all(o).then(u=>i(u)):i(o)}min(e,n){return new de({...this._def,minSize:{value:e,message:y.toString(n)}})}max(e,n){return new de({...this._def,maxSize:{value:e,message:y.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}de.create=(t,e)=>new de({valueType:t,minSize:null,maxSize:null,typeName:v.ZodSet,...x(e)});class he extends T{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.function)return h(n,{code:f.invalid_type,expected:m.function,received:n.parsedType}),b;function r(o,u){return He({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,qe(),pe].filter(c=>!!c),issueData:{code:f.invalid_arguments,argumentsError:u}})}function s(o,u){return He({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,qe(),pe].filter(c=>!!c),issueData:{code:f.invalid_return_type,returnTypeError:u}})}const a={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof ye){const o=this;return I(async function(...u){const c=new M([]),l=await o._def.args.parseAsync(u,a).catch(R=>{throw c.addIssue(r(u,R)),c}),p=await Reflect.apply(i,this,l);return await o._def.returns._def.type.parseAsync(p,a).catch(R=>{throw c.addIssue(s(p,R)),c})})}else{const o=this;return I(function(...u){const c=o._def.args.safeParse(u,a);if(!c.success)throw new M([r(u,c.error)]);const l=Reflect.apply(i,this,c.data),p=o._def.returns.safeParse(l,a);if(!p.success)throw new M([s(l,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new he({...this._def,args:W.create(e).rest(ie.create())})}returns(e){return new he({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new he({args:e||W.create([]).rest(ie.create()),returns:n||ie.create(),typeName:v.ZodFunction,...x(r)})}}class Ce extends T{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Ce.create=(t,e)=>new Ce({getter:t,typeName:v.ZodLazy,...x(e)});class Ne extends T{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return h(n,{received:n.data,code:f.invalid_literal,expected:this._def.value}),b}return{status:"valid",value:e.data}}get value(){return this._def.value}}Ne.create=(t,e)=>new Ne({value:t,typeName:v.ZodLiteral,...x(e)});function xn(t,e){return new te({values:t,typeName:v.ZodEnum,...x(e)})}class te extends T{constructor(){super(...arguments),be.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return h(n,{expected:E.joinValues(r),received:n.parsedType,code:f.invalid_type}),b}if(We(this,be)||_n(this,be,new Set(this._def.values)),!We(this,be).has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return h(n,{received:n.data,code:f.invalid_enum_value,options:r}),b}return I(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return te.create(e,{...this._def,...n})}exclude(e,n=this._def){return te.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}be=new WeakMap;te.create=xn;class je extends T{constructor(){super(...arguments),we.set(this,void 0)}_parse(e){const n=E.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==m.string&&r.parsedType!==m.number){const s=E.objectValues(n);return h(r,{expected:E.joinValues(s),received:r.parsedType,code:f.invalid_type}),b}if(We(this,we)||_n(this,we,new Set(E.getValidEnumValues(this._def.values))),!We(this,we).has(e.data)){const s=E.objectValues(n);return h(r,{received:r.data,code:f.invalid_enum_value,options:s}),b}return I(e.data)}get enum(){return this._def.values}}we=new WeakMap;je.create=(t,e)=>new je({values:t,typeName:v.ZodNativeEnum,...x(e)});class ye extends T{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.promise&&n.common.async===!1)return h(n,{code:f.invalid_type,expected:m.promise,received:n.parsedType}),b;const r=n.parsedType===m.promise?n.data:Promise.resolve(n.data);return I(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ye.create=(t,e)=>new ye({type:t,typeName:v.ZodPromise,...x(e)});class $ extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===v.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,a={addIssue:i=>{h(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),s.type==="preprocess"){const i=s.transform(r.data,a);if(r.common.async)return Promise.resolve(i).then(async o=>{if(n.value==="aborted")return b;const u=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return u.status==="aborted"?b:u.status==="dirty"||n.value==="dirty"?fe(u.value):u});{if(n.value==="aborted")return b;const o=this._def.schema._parseSync({data:i,path:r.path,parent:r});return o.status==="aborted"?b:o.status==="dirty"||n.value==="dirty"?fe(o.value):o}}if(s.type==="refinement"){const i=o=>{const u=s.refinement(o,a);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?b:(o.status==="dirty"&&n.dirty(),i(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?b:(o.status==="dirty"&&n.dirty(),i(o.value).then(()=>({status:n.value,value:o.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ce(i))return i;const o=s.transform(i.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>ce(i)?Promise.resolve(s.transform(i.value,a)).then(o=>({status:n.value,value:o})):i);E.assertNever(s)}}$.create=(t,e,n)=>new $({schema:t,typeName:v.ZodEffects,effect:e,...x(n)});$.createWithPreprocess=(t,e,n)=>new $({schema:e,effect:{type:"preprocess",transform:t},typeName:v.ZodEffects,...x(n)});class q extends T{_parse(e){return this._getType(e)===m.undefined?I(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}q.create=(t,e)=>new q({innerType:t,typeName:v.ZodOptional,...x(e)});class ne extends T{_parse(e){return this._getType(e)===m.null?I(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ne.create=(t,e)=>new ne({innerType:t,typeName:v.ZodNullable,...x(e)});class Pe extends T{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===m.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Pe.create=(t,e)=>new Pe({innerType:t,typeName:v.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...x(e)});class Ze extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ke(s)?s.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new M(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new M(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ze.create=(t,e)=>new Ze({innerType:t,typeName:v.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...x(e)});class Xe extends T{_parse(e){if(this._getType(e)!==m.nan){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.nan,received:r.parsedType}),b}return{status:"valid",value:e.data}}}Xe.create=t=>new Xe({typeName:v.ZodNaN,...x(t)});const Cs=Symbol("zod_brand");class St extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ue extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?b:a.status==="dirty"?(n.dirty(),fe(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?b:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new Ue({in:e,out:n,typeName:v.ZodPipeline})}}class Ie extends T{_parse(e){const n=this._def.innerType._parse(e),r=s=>(ce(s)&&(s.value=Object.freeze(s.value)),s);return ke(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Ie.create=(t,e)=>new Ie({innerType:t,typeName:v.ZodReadonly,...x(e)});function kn(t,e={},n){return t?me.create().superRefine((r,s)=>{var a,i;if(!t(r)){const o=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,u=(i=(a=o.fatal)!==null&&a!==void 0?a:n)!==null&&i!==void 0?i:!0,c=typeof o=="string"?{message:o}:o;s.addIssue({code:"custom",...c,fatal:u})}}):me.create()}const Ns={object:O.lazycreate};var v;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(v||(v={}));const js=(t,e={message:`Input not instance of ${t.name}`})=>kn(n=>n instanceof t,e),Tn=F.create,En=Q.create,Ps=Xe.create,Zs=ee.create,Sn=Te.create,Is=ue.create,Ls=Je.create,Ds=Ee.create,Us=Se.create,Ms=me.create,Fs=ie.create,Bs=X.create,$s=Ke.create,Vs=B.create,zs=O.create,qs=O.strictCreate,Hs=Re.create,Ws=st.create,Js=Oe.create,Ks=W.create,Gs=Ae.create,Xs=Ge.create,Ys=de.create,Qs=he.create,ea=Ce.create,ta=Ne.create,na=te.create,ra=je.create,sa=ye.create,zt=$.create,aa=q.create,ia=ne.create,oa=$.createWithPreprocess,ca=Ue.create,ua=()=>Tn().optional(),da=()=>En().optional(),la=()=>Sn().optional(),fa={string:t=>F.create({...t,coerce:!0}),number:t=>Q.create({...t,coerce:!0}),boolean:t=>Te.create({...t,coerce:!0}),bigint:t=>ee.create({...t,coerce:!0}),date:t=>ue.create({...t,coerce:!0})},ha=b;var ya=Object.freeze({__proto__:null,defaultErrorMap:pe,setErrorMap:os,getErrorMap:qe,makeIssue:He,EMPTY_PATH:cs,addIssueToContext:h,ParseStatus:Z,INVALID:b,DIRTY:fe,OK:I,isAborted:vt,isDirty:bt,isValid:ce,isAsync:ke,get util(){return E},get objectUtil(){return _t},ZodParsedType:m,getParsedType:G,ZodType:T,datetimeRegex:wn,ZodString:F,ZodNumber:Q,ZodBigInt:ee,ZodBoolean:Te,ZodDate:ue,ZodSymbol:Je,ZodUndefined:Ee,ZodNull:Se,ZodAny:me,ZodUnknown:ie,ZodNever:X,ZodVoid:Ke,ZodArray:B,ZodObject:O,ZodUnion:Re,ZodDiscriminatedUnion:st,ZodIntersection:Oe,ZodTuple:W,ZodRecord:Ae,ZodMap:Ge,ZodSet:de,ZodFunction:he,ZodLazy:Ce,ZodLiteral:Ne,ZodEnum:te,ZodNativeEnum:je,ZodPromise:ye,ZodEffects:$,ZodTransformer:$,ZodOptional:q,ZodNullable:ne,ZodDefault:Pe,ZodCatch:Ze,ZodNaN:Xe,BRAND:Cs,ZodBranded:St,ZodPipeline:Ue,ZodReadonly:Ie,custom:kn,Schema:T,ZodSchema:T,late:Ns,get ZodFirstPartyTypeKind(){return v},coerce:fa,any:Ms,array:Vs,bigint:Zs,boolean:Sn,date:Is,discriminatedUnion:Ws,effect:zt,enum:na,function:Qs,instanceof:js,intersection:Js,lazy:ea,literal:ta,map:Xs,nan:Ps,nativeEnum:ra,never:Bs,null:Us,nullable:ia,number:En,object:zs,oboolean:la,onumber:da,optional:aa,ostring:ua,pipeline:ca,preprocess:oa,promise:sa,record:Gs,set:Ys,strictObject:qs,string:Tn,symbol:Ls,transformer:zt,tuple:Ks,undefined:Ds,union:Hs,unknown:Fs,void:$s,NEVER:ha,ZodIssueCode:f,quotelessJson:is,ZodError:M});export{N as a,ma as t,ya as z}; diff --git a/dist/assets/index-Dki-_pUb.css b/dist/assets/index-Dki-_pUb.css deleted file mode 100644 index f143b72..0000000 --- a/dist/assets/index-Dki-_pUb.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:Gilroy-Regular;src:local("Gilroy-Regular"),url(../fonts/Gilroy-Regular.woff2) format("woff2");font-weight:400}@font-face{font-family:Gilroy-Medium;src:local("Gilroy-Medium"),url(../fonts/Gilroy-Medium.woff2) format("woff2");font-weight:500}@font-face{font-family:Gilroy-Semibold;src:local("Gilroy-Semibold"),url(../fonts/Gilroy-Semibold.woff2) format("woff2");font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{box-sizing:border-box}body{font-family:Gilroy-Medium;--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-5{bottom:-1.25rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/3{left:33.333333%}.left-2\.5{left:.625rem}.left-\[20\%\]{left:20%}.right-0{right:0}.right-4{right:1rem}.right-\[17\%\]{right:17%}.top-0{top:0}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-8{top:2rem}.top-\[55\%\]{top:55%}.-z-10,.-z-\[10\]{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[3\]{z-index:3}.z-\[5\]{z-index:5}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-\[120px\]{margin-bottom:120px}.ml-3{margin-left:.75rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-\[184px\]{width:184px;height:184px}.size-full{width:100%;height:100%}.h-0\.5{height:.125rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-40{height:10rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[124px\]{height:124px}.h-\[160px\]{height:160px}.h-\[216px\]{height:216px}.h-\[296px\]{height:296px}.h-\[300px\]{height:300px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-1\/2{width:50%}.w-3\/4{width:75%}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[18px\]{width:18px}.w-\[20\%\]{width:20%}.w-\[300px\]{width:300px}.w-\[75\%\]{width:75%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[1240px\]{max-width:1240px}.max-w-\[360px\]{max-width:360px}.max-w-\[444px\]{max-width:444px}.max-w-\[808px\]{max-width:808px}.max-w-\[828px\]{max-width:828px}.flex-\[0_0_184px\]{flex:0 0 184px}.flex-\[0_0_288px\]{flex:0 0 288px}.flex-\[0_0_300px\]{flex:0 0 300px}.flex-auto{flex:1 1 auto}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\!cursor-pointer{cursor:pointer!important}.cursor-pointer{cursor:pointer}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-20{gap:5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded-\[2px\]{border-radius:2px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-b-\[2px\]{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.rounded-t-\[4px\]{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-\[2px\]{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-\[\#BA1A1A\]{--tw-border-opacity: 1;border-color:rgb(186 26 26 / var(--tw-border-opacity, 1))}.border-on_surface{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.border-outline{--tw-border-opacity: 1;border-color:rgb(161 167 178 / var(--tw-border-opacity, 1))}.border-primary{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.border-primary_outline_reverse{--tw-border-opacity: 1;border-color:rgb(238 101 114 / var(--tw-border-opacity, 1))}.border-slate-500\/20{border-color:#64748b33}.border-white\/50{border-color:#ffffff80}.\!bg-\[\#F5F4F4\]{--tw-bg-opacity: 1 !important;background-color:rgb(245 244 244 / var(--tw-bg-opacity, 1))!important}.\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-\[\#D0D3D8\]{--tw-bg-opacity: 1;background-color:rgb(208 211 216 / var(--tw-bg-opacity, 1))}.bg-\[\#D9D9D9\]{--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.bg-\[\#FDEDEE\]{--tw-bg-opacity: 1;background-color:rgb(253 237 238 / var(--tw-bg-opacity, 1))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.bg-bg_surface_container{--tw-bg-opacity: 1;background-color:rgb(238 237 244 / var(--tw-bg-opacity, 1))}.bg-black\/80{background-color:#000c}.bg-primary,.bg-primary_09{--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.bg-reverse_primary{--tw-bg-opacity: 1;background-color:rgb(246 178 184 / var(--tw-bg-opacity, 1))}.bg-secondary_container{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.bg-surface_container{--tw-bg-opacity: 1;background-color:rgb(240 239 239 / var(--tw-bg-opacity, 1))}.bg-surface_high{--tw-bg-opacity: 1;background-color:rgb(232 231 239 / var(--tw-bg-opacity, 1))}.bg-teritary{--tw-bg-opacity: 1;background-color:rgb(241 112 13 / var(--tw-bg-opacity, 1))}.bg-teritary_04{--tw-bg-opacity: 1;background-color:rgb(255 206 127 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-0{--tw-bg-opacity: 0}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-primary{--tw-gradient-from: #99101D var(--tw-gradient-from-position);--tw-gradient-to: rgb(153 16 29 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-25\%{--tw-gradient-from-position: 25%}.to-primary\/20{--tw-gradient-to: rgb(153 16 29 / .2) var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-20{padding-bottom:5rem}.pb-\[120px\]{padding-bottom:120px}.pl-8{padding-left:2rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[18px\]{font-size:18px}.text-\[32px\]{font-size:32px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-\[130\%\]{line-height:130%}.leading-\[140\%\]{line-height:140%}.leading-none{line-height:1}.\!text-on_primary{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.\!text-primary_09{--tw-text-opacity: 1 !important;color:rgb(153 16 29 / var(--tw-text-opacity, 1))!important}.text-\[\#171717\]{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-\[\#454545\]{--tw-text-opacity: 1;color:rgb(69 69 69 / var(--tw-text-opacity, 1))}.text-\[\#BA1A1A\]{--tw-text-opacity: 1;color:rgb(186 26 26 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-on_primary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-on_secondary_container{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.text-on_surface{--tw-text-opacity: 1;color:rgb(44 40 40 / var(--tw-text-opacity, 1))}.text-on_surface_v{--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}.text-on_teritary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-primary_03{--tw-text-opacity: 1;color:rgb(246 178 184 / var(--tw-text-opacity, 1))}.text-primary_09{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-teritary_04{--tw-text-opacity: 1;color:rgb(255 206 127 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: #F9F9FA}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.normal{font-family:Gilroy-Regular;font-weight:400}.semibold{font-family:Gilroy-Semibold;font-weight:600}.h1{font-size:28px;font-weight:500;line-height:130%}.h2{font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.h2{font-size:1.875rem;line-height:2.25rem}}.p{font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.p{font-size:1.125rem;line-height:1.75rem}}@layer utilities{.text-18{font-family:Gilroy-Regular;font-weight:400}}.text-18{font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1));font-family:Gilroy-Regular;font-weight:400}.dot{height:.25rem;width:1.25rem;cursor:pointer;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(111 100 102 / var(--tw-bg-opacity, 1))}.dot-active{height:.25rem;width:1.25rem;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(44 40 40 / var(--tw-bg-opacity, 1))}.nav-btn{display:flex;width:3rem;height:3rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.progress-circle{z-index:10;width:3.5rem;height:3.5rem;border-radius:9999px;font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(95 102 116 / var(--tw-text-opacity, 1))}.file\:w-fit::file-selector-button{width:-moz-fit-content;width:fit-content}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-secondary_container::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-on_secondary_container::file-selector-button{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.file\:outline-none::file-selector-button{outline:2px solid transparent;outline-offset:2px}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:-left-3:before{content:var(--tw-content);left:-.75rem}.before\:-top-3:before{content:var(--tw-content);top:-.75rem}.before\:size-10:before{content:var(--tw-content);width:2.5rem;height:2.5rem}.before\:scale-0:before{content:var(--tw-content);--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:bg-on_surface\/\[8\%\]:before{content:var(--tw-content);background-color:#2c282814}.before\:transition-all:before{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:size-\[9px\]:after{content:var(--tw-content);width:9px;height:9px}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-primary:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.after\:bg-opacity-0:after{content:var(--tw-content);--tw-bg-opacity: 0}.hover\:border-on_surface:hover{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.hover\:bg-primary\/90:hover{background-color:#99101de6}.hover\:bg-reverse_primary\/90:hover{background-color:#f6b2b8e6}.hover\:bg-secondary_container\/80:hover{background-color:#ddcbcdcc}.hover\:bg-teritary\/90:hover{background-color:#f1700de6}.hover\:bg-teritary_surface_container:hover{--tw-bg-opacity: 1;background-color:rgb(255 243 224 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/90:hover{background-color:#ffffffe6}.hover\:opacity-100:hover{opacity:1}.hover\:before\:scale-100:hover:before{content:var(--tw-content);--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:border-\[3px\]:focus{border-width:3px}.focus\:border-primary:focus{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.focus\:border-white:focus{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[state\=open\]\:bg-secondary[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(73 95 137 / var(--tw-bg-opacity, 1))}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}@media (min-width: 640px){.sm\:h-\[350px\]{height:350px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}.sm\:text-center{text-align:center}}@media (min-width: 768px){.md\:left-1\/2{left:50%}.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:my-20{margin-top:5rem;margin-bottom:5rem}.md\:mb-3{margin-bottom:.75rem}.md\:mb-\[120px\]{margin-bottom:120px}.md\:mt-20{margin-top:5rem}.md\:mt-6{margin-top:1.5rem}.md\:size-\[84px\]{width:84px;height:84px}.md\:size-auto{width:auto;height:auto}.md\:h-\[224px\]{height:224px}.md\:h-\[38px\]{height:38px}.md\:h-\[400px\]{height:400px}.md\:w-1{width:.25rem}.md\:w-fit{width:-moz-fit-content;width:fit-content}.md\:w-full{width:100%}.md\:flex-\[0_0_600px\]{flex:0 0 600px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:justify-between{justify-content:space-between}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-\[160px\]{padding-top:160px;padding-bottom:160px}.md\:pt-20{padding-top:5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1024px){.lg\:mb-8{margin-bottom:2rem}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-\[600px\]{height:600px}.lg\:h-\[88px\]{height:88px}.lg\:max-h-\[600px\]{max-height:600px}.lg\:min-h-\[320px\]{min-height:320px}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:gap-6{gap:1.5rem}}@media (min-width: 1280px){.xl\:mb-8{margin-bottom:2rem}.xl\:block{display:block}.xl\:hidden{display:none}.xl\:w-\[650px\]{width:650px}.xl\:max-w-\[496px\]{max-width:496px}}@media (min-width: 1536px){.\32xl\:w-\[850px\]{width:850px}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0} diff --git a/dist/assets/index-MxywsT5y.js b/dist/assets/index-Dz01aari.js similarity index 58% rename from dist/assets/index-MxywsT5y.js rename to dist/assets/index-Dz01aari.js index 268ce46..13bc171 100644 --- a/dist/assets/index-MxywsT5y.js +++ b/dist/assets/index-Dz01aari.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-DbmcW5nR.js","assets/ui-library-DAxvtEhC.js","assets/react-vendor-DnK_KZAP.js","assets/about-Bzxa7wEe.js","assets/use-scroll-top-DE9Ps7OH.js","assets/b2b-0AjR145U.js","assets/index-DenciP1O.js","assets/radio-group-l9zuvveu.js","assets/become-sponsor-DX8gKwYu.js","assets/service-WVB2lPgs.js","assets/stend-form-Cgf9luOJ.js","assets/contacts-Bi8plfw4.js"])))=>i.map(i=>d[i]); -import{j as o,H as R,F as j}from"./ui-library-DAxvtEhC.js";import{f as P,O as v,a as c,g,h as O}from"./react-vendor-DnK_KZAP.js";(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))p(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const t of r.addedNodes)t.tagName==="LINK"&&t.rel==="modulepreload"&&p(t)}).observe(document,{childList:!0,subtree:!0});function d(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function p(e){if(e.ep)return;e.ep=!0;const r=d(e);fetch(e.href,r)}})();const L="modulepreload",b=function(l){return"/"+l},h={},a=function(u,d,p){let e=Promise.resolve();if(d&&d.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),n=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));e=Promise.allSettled(d.map(s=>{if(s=b(s),s in h)return;h[s]=!0;const m=s.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${y}`))return;const i=document.createElement("link");if(i.rel=m?"stylesheet":L,m||(i.as="script"),i.crossOrigin="",i.href=s,n&&i.setAttribute("nonce",n),document.head.appendChild(i),m)return new Promise((E,x)=>{i.addEventListener("load",E),i.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${s}`)))})}))}function r(t){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=t,window.dispatchEvent(n),!n.defaultPrevented)throw t}return e.then(t=>{for(const n of t||[])n.status==="rejected"&&r(n.reason);return u().catch(r)})};var f={},_;function A(){if(_)return f;_=1;var l=P();return f.createRoot=l.createRoot,f.hydrateRoot=l.hydrateRoot,f}var S=A();function w(){return o.jsxs("main",{className:"flex flex-col min-h-screen",children:[o.jsx(R,{}),o.jsx("div",{className:"flex-auto",children:o.jsx(v,{})}),o.jsx(j,{})]})}const B=c.lazy(()=>a(()=>import("./home-DbmcW5nR.js"),__vite__mapDeps([0,1,2]))),I=c.lazy(()=>a(()=>import("./about-Bzxa7wEe.js"),__vite__mapDeps([3,1,2,4]))),D=c.lazy(()=>a(()=>import("./b2b-0AjR145U.js"),__vite__mapDeps([5,1,2,6,7,4]))),T=c.lazy(()=>a(()=>import("./become-sponsor-DX8gKwYu.js"),__vite__mapDeps([8,1,2,7,6,9,4]))),q=c.lazy(()=>a(()=>import("./stend-form-Cgf9luOJ.js"),__vite__mapDeps([10,1,2,7,6,9]))),z=c.lazy(()=>a(()=>import("./contacts-Bi8plfw4.js"),__vite__mapDeps([11,1,2,6,9,4]))),C=g([{element:o.jsx(w,{}),path:"/",children:[{element:o.jsx(B,{}),path:""},{element:o.jsx(I,{}),path:"/about"},{element:o.jsx(D,{}),path:"/B2B-B2G"},{element:o.jsx(T,{}),path:"/become-sponsor"},{element:o.jsx(q,{}),path:"/stend-form"},{element:o.jsx(z,{}),path:"/contacts"}]}]);S.createRoot(document.getElementById("root")).render(o.jsx(c.StrictMode,{children:o.jsx(O,{router:C})})); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-CFkUoKEe.js","assets/ui-library-HZBIYpKi.js","assets/react-vendor-OnsDvTPE.js","assets/about-CfupYjxN.js","assets/use-scroll-top-ByehxtTO.js","assets/b2b-3Ngqsip1.js","assets/index-D9auPpG5.js","assets/radio-group-Ct1srp1J.js","assets/become-sponsor-COS0bgw0.js","assets/service-CiRbXqJ6.js","assets/stend.data-MYN6KI5Y.js","assets/stend-form-DJrpeXnE.js","assets/contacts-CPhyw4sb.js"])))=>i.map(i=>d[i]); +import{j as o,H as R,F as j}from"./ui-library-HZBIYpKi.js";import{f as P,O as v,a as c,g,h as O}from"./react-vendor-OnsDvTPE.js";(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))p(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const t of r.addedNodes)t.tagName==="LINK"&&t.rel==="modulepreload"&&p(t)}).observe(document,{childList:!0,subtree:!0});function d(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function p(e){if(e.ep)return;e.ep=!0;const r=d(e);fetch(e.href,r)}})();const L="modulepreload",b=function(l){return"/"+l},h={},a=function(u,d,p){let e=Promise.resolve();if(d&&d.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),n=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));e=Promise.allSettled(d.map(s=>{if(s=b(s),s in h)return;h[s]=!0;const m=s.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${y}`))return;const i=document.createElement("link");if(i.rel=m?"stylesheet":L,m||(i.as="script"),i.crossOrigin="",i.href=s,n&&i.setAttribute("nonce",n),document.head.appendChild(i),m)return new Promise((E,x)=>{i.addEventListener("load",E),i.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${s}`)))})}))}function r(t){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=t,window.dispatchEvent(n),!n.defaultPrevented)throw t}return e.then(t=>{for(const n of t||[])n.status==="rejected"&&r(n.reason);return u().catch(r)})};var f={},_;function A(){if(_)return f;_=1;var l=P();return f.createRoot=l.createRoot,f.hydrateRoot=l.hydrateRoot,f}var S=A();function w(){return o.jsxs("main",{className:"flex flex-col min-h-screen",children:[o.jsx(R,{}),o.jsx("div",{className:"flex-auto",children:o.jsx(v,{})}),o.jsx(j,{})]})}const B=c.lazy(()=>a(()=>import("./home-CFkUoKEe.js"),__vite__mapDeps([0,1,2]))),I=c.lazy(()=>a(()=>import("./about-CfupYjxN.js"),__vite__mapDeps([3,1,2,4]))),D=c.lazy(()=>a(()=>import("./b2b-3Ngqsip1.js"),__vite__mapDeps([5,1,2,6,7,4]))),T=c.lazy(()=>a(()=>import("./become-sponsor-COS0bgw0.js"),__vite__mapDeps([8,1,2,7,6,9,4,10]))),q=c.lazy(()=>a(()=>import("./stend-form-DJrpeXnE.js"),__vite__mapDeps([11,1,2,7,6,9,10]))),z=c.lazy(()=>a(()=>import("./contacts-CPhyw4sb.js"),__vite__mapDeps([12,1,2,6,9,4]))),C=g([{element:o.jsx(w,{}),path:"/",children:[{element:o.jsx(B,{}),path:""},{element:o.jsx(I,{}),path:"/about"},{element:o.jsx(D,{}),path:"/B2B-B2G"},{element:o.jsx(T,{}),path:"/become-sponsor"},{element:o.jsx(q,{}),path:"/stend-form"},{element:o.jsx(z,{}),path:"/contacts"}]}]);S.createRoot(document.getElementById("root")).render(o.jsx(c.StrictMode,{children:o.jsx(O,{router:C})})); diff --git a/dist/assets/radio-group-Ct1srp1J.js b/dist/assets/radio-group-Ct1srp1J.js new file mode 100644 index 0000000..937dfe5 --- /dev/null +++ b/dist/assets/radio-group-Ct1srp1J.js @@ -0,0 +1 @@ +import{D as N,E as F,j as d,S as L,G as K,I as fe,P as A,J as y,K as pe,M as me,N as ve,f as U}from"./ui-library-HZBIYpKi.js";import{d as w,a as s}from"./react-vendor-OnsDvTPE.js";function Re(e){const o=e+"CollectionProvider",[t,n]=N(o),[a,i]=t(o,{collectionRef:{current:null},itemMap:new Map}),p=c=>{const{scope:r,children:l}=c,m=w.useRef(null),v=w.useRef(new Map).current;return d.jsx(a,{scope:r,itemMap:v,collectionRef:m,children:l})};p.displayName=o;const C=e+"CollectionSlot",f=w.forwardRef((c,r)=>{const{scope:l,children:m}=c,v=i(C,l),I=F(r,v.collectionRef);return d.jsx(L,{ref:I,children:m})});f.displayName=C;const u=e+"CollectionItemSlot",g="data-radix-collection-item",R=w.forwardRef((c,r)=>{const{scope:l,children:m,...v}=c,I=w.useRef(null),h=F(r,I),S=i(u,l);return w.useEffect(()=>(S.itemMap.set(I,{ref:I,...v}),()=>void S.itemMap.delete(I))),d.jsx(L,{[g]:"",ref:h,children:m})});R.displayName=u;function b(c){const r=i(e+"CollectionConsumer",c);return w.useCallback(()=>{const m=r.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((S,_)=>v.indexOf(S.ref.current)-v.indexOf(_.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:p,Slot:f,ItemSlot:R},b,n]}var be=s.createContext(void 0);function V(e){const o=s.useContext(be);return e||o||"ltr"}var G="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[k,B,Ce]=Re(P),[ge,q]=N(P,[Ce]),[xe,ye]=ge(P),z=s.forwardRef((e,o)=>d.jsx(k.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(k.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=P;var Ee=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:a=!1,dir:i,currentTabStopId:p,defaultCurrentTabStopId:C,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:g=!1,...R}=e,b=s.useRef(null),c=F(o,b),r=V(i),[l=null,m]=K({prop:p,defaultProp:C,onChange:f}),[v,I]=s.useState(!1),h=fe(u),S=B(t),_=s.useRef(!1),[ae,j]=s.useState(0);return s.useEffect(()=>{const x=b.current;if(x)return x.addEventListener(G,h),()=>x.removeEventListener(G,h)},[h]),d.jsx(xe,{scope:t,orientation:n,dir:r,loop:a,currentTabStopId:l,onItemFocus:s.useCallback(x=>m(x),[m]),onItemShiftTab:s.useCallback(()=>I(!0),[]),onFocusableItemAdd:s.useCallback(()=>j(x=>x+1),[]),onFocusableItemRemove:s.useCallback(()=>j(x=>x-1),[]),children:d.jsx(A.div,{tabIndex:v||ae===0?-1:0,"data-orientation":n,...R,ref:c,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{_.current=!0}),onFocus:y(e.onFocus,x=>{const ie=!_.current;if(x.target===x.currentTarget&&ie&&!v){const O=new CustomEvent(G,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=S().filter(E=>E.focusable),ue=T.find(E=>E.active),de=T.find(E=>E.id===l),le=[ue,de,...T].filter(Boolean).map(E=>E.ref.current);H(le,g)}}_.current=!1}),onBlur:y(e.onBlur,()=>I(!1))})})}),Y="RovingFocusGroupItem",$=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:a=!1,tabStopId:i,...p}=e,C=pe(),f=i||C,u=ye(Y,t),g=u.currentTabStopId===f,R=B(t),{onFocusableItemAdd:b,onFocusableItemRemove:c}=u;return s.useEffect(()=>{if(n)return b(),()=>c()},[n,b,c]),d.jsx(k.ItemSlot,{scope:t,id:f,focusable:n,active:a,children:d.jsx(A.span,{tabIndex:g?0:-1,"data-orientation":u.orientation,...p,ref:o,onMouseDown:y(e.onMouseDown,r=>{n?u.onItemFocus(f):r.preventDefault()}),onFocus:y(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:y(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=Se(r,u.orientation,u.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let v=R().filter(I=>I.focusable).map(I=>I.ref.current);if(l==="last")v.reverse();else if(l==="prev"||l==="next"){l==="prev"&&v.reverse();const I=v.indexOf(r.currentTarget);v=u.loop?_e(v,I+1):v.slice(I+1)}setTimeout(()=>H(v))}})})})});$.displayName=Y;var we={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function he(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Se(e,o,t){const n=he(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return we[n]}function H(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function _e(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Fe=z,Ae=$;function Ne(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var M="Radio",[Pe,J]=N(M),[Te,Ge]=Pe(M),W=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:a=!1,required:i,disabled:p,value:C="on",onCheck:f,form:u,...g}=e,[R,b]=s.useState(null),c=F(o,m=>b(m)),r=s.useRef(!1),l=R?u||!!R.closest("form"):!0;return d.jsxs(Te,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Z(a),"data-disabled":p?"":void 0,disabled:p,value:C,...g,ref:c,onClick:y(e.onClick,m=>{a||f==null||f(),l&&(r.current=m.isPropagationStopped(),r.current||m.stopPropagation())})}),l&&d.jsx(ke,{control:R,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});W.displayName=M;var X="RadioIndicator",Q=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=Ge(X,t);return d.jsx(me,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Z(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});Q.displayName=X;var ke=e=>{const{control:o,checked:t,bubbles:n=!0,...a}=e,i=s.useRef(null),p=Ne(t),C=ve(o);return s.useEffect(()=>{const f=i.current,u=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(u,"checked").set;if(p!==t&&R){const b=new Event("click",{bubbles:n});R.call(f,t),f.dispatchEvent(b)}},[p,t,n]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:i,style:{...e.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Z(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,J]),ee=q(),oe=J(),[je,Oe]=De(D),te=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:a,value:i,required:p=!1,disabled:C=!1,orientation:f,dir:u,loop:g=!0,onValueChange:R,...b}=e,c=ee(t),r=V(u),[l,m]=K({prop:i,defaultProp:a,onChange:R});return d.jsx(je,{scope:t,name:n,required:p,disabled:C,value:l,onValueChange:m,children:d.jsx(Fe,{asChild:!0,...c,orientation:f,dir:r,loop:g,children:d.jsx(A.div,{role:"radiogroup","aria-required":p,"aria-orientation":f,"data-disabled":C?"":void 0,dir:r,...b,ref:o})})})});te.displayName=D;var re="RadioGroupItem",ne=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...a}=e,i=Oe(re,t),p=i.disabled||n,C=ee(t),f=oe(t),u=s.useRef(null),g=F(o,u),R=i.value===a.value,b=s.useRef(!1);return s.useEffect(()=>{const c=l=>{Me.includes(l.key)&&(b.current=!0)},r=()=>b.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",r)}},[]),d.jsx(Ae,{asChild:!0,...C,focusable:!p,active:R,children:d.jsx(W,{disabled:p,required:i.required,checked:R,...f,...a,name:i.name,ref:g,onCheck:()=>i.onValueChange(a.value),onKeyDown:y(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:y(a.onFocus,()=>{var c;b.current&&((c=u.current)==null||c.click())})})})});ne.displayName=re;var Le="RadioGroupIndicator",Ke=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,a=oe(t);return d.jsx(Q,{...a,...n,ref:o})});Ke.displayName=Le;var se=te,ce=ne;const Ue=s.forwardRef(({className:e,...o},t)=>d.jsx(se,{className:U("grid gap-2",e),...o,ref:t}));Ue.displayName=se.displayName;const Ve=s.forwardRef(({className:e,...o},t)=>d.jsx(ce,{ref:t,className:U(o.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...o}));Ve.displayName=ce.displayName;export{Ue as R,Ve as a}; diff --git a/dist/assets/radio-group-l9zuvveu.js b/dist/assets/radio-group-l9zuvveu.js deleted file mode 100644 index 151dac3..0000000 --- a/dist/assets/radio-group-l9zuvveu.js +++ /dev/null @@ -1 +0,0 @@ -import{x as N,y as _,j as f,S as L,z,D as fe,P as F,E as y,G as pe,I as me,J as ve,f as K}from"./ui-library-DAxvtEhC.js";import{e as S,a as s}from"./react-vendor-DnK_KZAP.js";function Re(e){const o=e+"CollectionProvider",[t,n]=N(o),[c,a]=t(o,{collectionRef:{current:null},itemMap:new Map}),l=d=>{const{scope:r,children:p}=d,v=S.useRef(null),R=S.useRef(new Map).current;return f.jsx(c,{scope:r,itemMap:R,collectionRef:v,children:p})};l.displayName=o;const m=e+"CollectionSlot",u=S.forwardRef((d,r)=>{const{scope:p,children:v}=d,R=a(m,p),g=_(r,R.collectionRef);return f.jsx(L,{ref:g,children:v})});u.displayName=m;const i=e+"CollectionItemSlot",C="data-radix-collection-item",b=S.forwardRef((d,r)=>{const{scope:p,children:v,...R}=d,g=S.useRef(null),E=_(r,g),w=a(i,p);return S.useEffect(()=>(w.itemMap.set(g,{ref:g,...R}),()=>void w.itemMap.delete(g))),f.jsx(L,{[C]:"",ref:E,children:v})});b.displayName=i;function I(d){const r=a(e+"CollectionConsumer",d);return S.useCallback(()=>{const v=r.collectionRef.current;if(!v)return[];const R=Array.from(v.querySelectorAll(`[${C}]`));return Array.from(r.itemMap.values()).sort((w,A)=>R.indexOf(w.ref.current)-R.indexOf(A.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:l,Slot:u,ItemSlot:b},I,n]}var be=s.createContext(void 0);function U(e){const o=s.useContext(be);return e||o||"ltr"}var k="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[G,B,ge]=Re(P),[Ce,V]=N(P,[ge]),[xe,ye]=Ce(P),q=s.forwardRef((e,o)=>f.jsx(G.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsx(G.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsx(he,{...e,ref:o})})}));q.displayName=P;var he=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:c=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:u,onEntryFocus:i,preventScrollOnEntryFocus:C=!1,...b}=e,I=s.useRef(null),d=_(o,I),r=U(a),[p=null,v]=z({prop:l,defaultProp:m,onChange:u}),[R,g]=s.useState(!1),E=fe(i),w=B(t),A=s.useRef(!1),[ae,O]=s.useState(0);return s.useEffect(()=>{const x=I.current;if(x)return x.addEventListener(k,E),()=>x.removeEventListener(k,E)},[E]),f.jsx(xe,{scope:t,orientation:n,dir:r,loop:c,currentTabStopId:p,onItemFocus:s.useCallback(x=>v(x),[v]),onItemShiftTab:s.useCallback(()=>g(!0),[]),onFocusableItemAdd:s.useCallback(()=>O(x=>x+1),[]),onFocusableItemRemove:s.useCallback(()=>O(x=>x-1),[]),children:f.jsx(F.div,{tabIndex:R||ae===0?-1:0,"data-orientation":n,...b,ref:d,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{A.current=!0}),onFocus:y(e.onFocus,x=>{const ie=!A.current;if(x.target===x.currentTarget&&ie&&!R){const j=new CustomEvent(k,Ie);if(x.currentTarget.dispatchEvent(j),!j.defaultPrevented){const T=w().filter(h=>h.focusable),ue=T.find(h=>h.active),de=T.find(h=>h.id===p),le=[ue,de,...T].filter(Boolean).map(h=>h.ref.current);$(le,C)}}A.current=!1}),onBlur:y(e.onBlur,()=>g(!1))})})}),H="RovingFocusGroupItem",Y=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:c=!1,tabStopId:a,...l}=e,m=pe(),u=a||m,i=ye(H,t),C=i.currentTabStopId===u,b=B(t),{onFocusableItemAdd:I,onFocusableItemRemove:d}=i;return s.useEffect(()=>{if(n)return I(),()=>d()},[n,I,d]),f.jsx(G.ItemSlot,{scope:t,id:u,focusable:n,active:c,children:f.jsx(F.span,{tabIndex:C?0:-1,"data-orientation":i.orientation,...l,ref:o,onMouseDown:y(e.onMouseDown,r=>{n?i.onItemFocus(u):r.preventDefault()}),onFocus:y(e.onFocus,()=>i.onItemFocus(u)),onKeyDown:y(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){i.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const p=we(r,i.orientation,i.dir);if(p!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let R=b().filter(g=>g.focusable).map(g=>g.ref.current);if(p==="last")R.reverse();else if(p==="prev"||p==="next"){p==="prev"&&R.reverse();const g=R.indexOf(r.currentTarget);R=i.loop?Ae(R,g+1):R.slice(g+1)}setTimeout(()=>$(R))}})})})});Y.displayName=H;var Se={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ee(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function we(e,o,t){const n=Ee(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Se[n]}function $(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function Ae(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var _e=q,Fe=Y;function Ne(e){const[o,t]=s.useState(void 0);return me(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const a=c[0];let l,m;if("borderBoxSize"in a){const u=a.borderBoxSize,i=Array.isArray(u)?u[0]:u;l=i.inlineSize,m=i.blockSize}else l=e.offsetWidth,m=e.offsetHeight;t({width:l,height:m})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else t(void 0)},[e]),o}function Pe(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var M="Radio",[Te,W]=N(M),[ke,Ge]=Te(M),J=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:c=!1,required:a,disabled:l,value:m="on",onCheck:u,form:i,...C}=e,[b,I]=s.useState(null),d=_(o,v=>I(v)),r=s.useRef(!1),p=b?i||!!b.closest("form"):!0;return f.jsxs(ke,{scope:t,checked:c,disabled:l,children:[f.jsx(F.button,{type:"button",role:"radio","aria-checked":c,"data-state":Z(c),"data-disabled":l?"":void 0,disabled:l,value:m,...C,ref:d,onClick:y(e.onClick,v=>{c||u==null||u(),p&&(r.current=v.isPropagationStopped(),r.current||v.stopPropagation())})}),p&&f.jsx(Me,{control:b,bubbles:!r.current,name:n,value:m,checked:c,required:a,disabled:l,form:i,style:{transform:"translateX(-100%)"}})]})});J.displayName=M;var X="RadioIndicator",Q=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...c}=e,a=Ge(X,t);return f.jsx(ve,{present:n||a.checked,children:f.jsx(F.span,{"data-state":Z(a.checked),"data-disabled":a.disabled?"":void 0,...c,ref:o})})});Q.displayName=X;var Me=e=>{const{control:o,checked:t,bubbles:n=!0,...c}=e,a=s.useRef(null),l=Pe(t),m=Ne(o);return s.useEffect(()=>{const u=a.current,i=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(i,"checked").set;if(l!==t&&b){const I=new Event("click",{bubbles:n});b.call(u,t),u.dispatchEvent(I)}},[l,t,n]),f.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...c,tabIndex:-1,ref:a,style:{...e.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Z(e){return e?"checked":"unchecked"}var De=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[Oe,Ye]=N(D,[V,W]),ee=V(),oe=W(),[je,Le]=Oe(D),te=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:c,value:a,required:l=!1,disabled:m=!1,orientation:u,dir:i,loop:C=!0,onValueChange:b,...I}=e,d=ee(t),r=U(i),[p,v]=z({prop:a,defaultProp:c,onChange:b});return f.jsx(je,{scope:t,name:n,required:l,disabled:m,value:p,onValueChange:v,children:f.jsx(_e,{asChild:!0,...d,orientation:u,dir:r,loop:C,children:f.jsx(F.div,{role:"radiogroup","aria-required":l,"aria-orientation":u,"data-disabled":m?"":void 0,dir:r,...I,ref:o})})})});te.displayName=D;var re="RadioGroupItem",ne=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...c}=e,a=Le(re,t),l=a.disabled||n,m=ee(t),u=oe(t),i=s.useRef(null),C=_(o,i),b=a.value===c.value,I=s.useRef(!1);return s.useEffect(()=>{const d=p=>{De.includes(p.key)&&(I.current=!0)},r=()=>I.current=!1;return document.addEventListener("keydown",d),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",d),document.removeEventListener("keyup",r)}},[]),f.jsx(Fe,{asChild:!0,...m,focusable:!l,active:b,children:f.jsx(J,{disabled:l,required:a.required,checked:b,...u,...c,name:a.name,ref:C,onCheck:()=>a.onValueChange(c.value),onKeyDown:y(d=>{d.key==="Enter"&&d.preventDefault()}),onFocus:y(c.onFocus,()=>{var d;I.current&&((d=i.current)==null||d.click())})})})});ne.displayName=re;var ze="RadioGroupIndicator",Ke=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,c=oe(t);return f.jsx(Q,{...c,...n,ref:o})});Ke.displayName=ze;var se=te,ce=ne;const Ue=s.forwardRef(({className:e,...o},t)=>f.jsx(se,{className:K("grid gap-2",e),...o,ref:t}));Ue.displayName=se.displayName;const Be=s.forwardRef(({className:e,...o},t)=>f.jsx(ce,{ref:t,className:K(o.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...o}));Be.displayName=ce.displayName;export{Ue as R,Be as a}; diff --git a/dist/assets/react-vendor-DnK_KZAP.js b/dist/assets/react-vendor-OnsDvTPE.js similarity index 99% rename from dist/assets/react-vendor-DnK_KZAP.js rename to dist/assets/react-vendor-OnsDvTPE.js index 8d414f3..db9c65d 100644 --- a/dist/assets/react-vendor-DnK_KZAP.js +++ b/dist/assets/react-vendor-OnsDvTPE.js @@ -50,4 +50,4 @@ Please change the parent to (await s.post(`${o}/book_stand_form`,t)).status===201,e=async t=>(await s.post(`${o}/become_sponsor_form`,t)).status===201,p=async t=>(await s.post(`${o}/contact_form`,t)).status===201;export{n as a,p as b,e as p}; +import{a as s}from"./index-D9auPpG5.js";const o="https://turkmentextile.turkmenexpo.com/app/api/v1",n=async t=>(await s.post(`${o}/book_stand_form`,t)).status===201,e=async t=>(await s.post(`${o}/become_sponsor_form`,t)).status===201,p=async t=>(await s.post(`${o}/contact_form`,t)).status===201;export{n as a,p as b,e as p}; diff --git a/dist/assets/stend-form-Cgf9luOJ.js b/dist/assets/stend-form-Cgf9luOJ.js deleted file mode 100644 index 92fe9bd..0000000 --- a/dist/assets/stend-form-Cgf9luOJ.js +++ /dev/null @@ -1 +0,0 @@ -import{r as h,j as e,C as b,t as g,s as f,m as y,l as p,n as o,o as c,p as l,q as r,B as _,L as v,v as N}from"./ui-library-DAxvtEhC.js";import{a as x}from"./react-vendor-DnK_KZAP.js";import{R as u,a as i}from"./radio-group-l9zuvveu.js";import{z as a,t as S}from"./index-DenciP1O.js";import{a as F}from"./service-WVB2lPgs.js";const k=a.object({space_package:a.string(),company_name:a.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:a.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:a.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:a.preprocess(m=>Number(m),a.number().min(1,"Укажите количество участников")),country:a.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:a.string().email({message:"Укажите корректный email"}),phone:a.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:a.string().optional(),visa_support:a.string().optional()}),w={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function G(){const[m,j]=x.useState(!1),s=h({resolver:S(k),defaultValues:w}),d=async t=>{await F(t)&&j(!0)};x.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:n}=s.formState;return e.jsxs("div",{children:[e.jsx(b,{title:"Забронировать стенд"}),e.jsx(g,{children:!m&&e.jsx(f,{...s,children:e.jsxs(y.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(p,{control:s.control,name:"space_package",render:({field:t})=>e.jsxs(o,{className:"space-y-5",children:[e.jsx(c,{className:"text-xl",children:"Выберите один из вариантов:"}),e.jsx(l,{children:e.jsxs(u,{onValueChange:t.onChange,defaultValue:t.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(o,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(l,{children:e.jsx(i,{value:"space",checked:t.value==="space"})}),e.jsx(c,{className:"text-base",children:"Только стенд"})]}),e.jsxs(o,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(l,{children:e.jsx(i,{value:"package",checked:t.value==="package"})}),e.jsx(c,{className:"text-base",children:"Комплексное предложение"})]})]})})]})}),e.jsx(r,{label:"Название компании/организации",name:"company_name",control:s.control,error:n.company_name}),e.jsx(r,{label:"Имя представителя",name:"rep_name",control:s.control,error:n.rep_name}),e.jsx(r,{label:"Название должности/позиция",name:"job_title",control:s.control,error:n.job_title}),e.jsx(r,{label:"Количество участников",type:"number",name:"participants_number",control:s.control,error:n.participants_number}),e.jsx(r,{label:"Страна",name:"country",control:s.control,error:n.country}),e.jsx(r,{label:"E-mail адрес",name:"email",control:s.control,error:n.email}),e.jsx(r,{label:"Номер телефона",name:"phone",control:s.control,error:n.phone}),e.jsx(r,{label:"Вебсайт",name:"website",control:s.control}),e.jsx(p,{control:s.control,name:"visa_support",render:({field:t})=>e.jsxs(o,{className:"space-y-5",children:[e.jsx(c,{className:"text-xl",children:"Визовая поддержка:"}),e.jsx(l,{children:e.jsxs(u,{onValueChange:t.onChange,defaultValue:t.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(o,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(l,{children:e.jsx(i,{value:"yes",checked:t.value==="yes"})}),e.jsx(c,{className:"text-base",children:"Да"})]}),e.jsxs(o,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(l,{children:e.jsx(i,{value:"no",checked:t.value==="no"})}),e.jsx(c,{className:"text-base",children:"Нет"})]})]})})]})}),e.jsx(_,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(v,{className:"animate-spin"}):"Отправить"})]})})}),m&&e.jsx(N,{delay:.3})]})}export{G as default}; diff --git a/dist/assets/stend-form-DJrpeXnE.js b/dist/assets/stend-form-DJrpeXnE.js new file mode 100644 index 0000000..f46efe5 --- /dev/null +++ b/dist/assets/stend-form-DJrpeXnE.js @@ -0,0 +1 @@ +import{u as g,v as f,j as e,C as y,n as s,x as v,w as N,m as S,o as d,p as m,q as i,r as p,s as l,B as F,t as k,y as w}from"./ui-library-HZBIYpKi.js";import{a as j}from"./react-vendor-OnsDvTPE.js";import{R as b,a as x}from"./radio-group-Ct1srp1J.js";import{z as o,t as C}from"./index-D9auPpG5.js";import{a as V}from"./service-CiRbXqJ6.js";import{s as t}from"./stend.data-MYN6KI5Y.js";const R=o.object({space_package:o.string(),company_name:o.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:o.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:o.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:o.preprocess(a=>Number(a),o.number().min(1,"Укажите количество участников")),country:o.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:o.string().email({message:"Укажите корректный email"}),phone:o.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:o.string().optional(),visa_support:o.string().optional()}),E={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function z(){const a=g(n=>n.lang),[u,h]=j.useState(!1),r=f({resolver:C(R),defaultValues:E}),_=async n=>{await V(n)&&h(!0)};j.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:c}=r.formState;return e.jsxs("div",{children:[e.jsx(y,{title:t[s(a)].cover}),e.jsx(v,{children:!u&&e.jsx(N,{...r,children:e.jsxs(S.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:r.handleSubmit(_),children:[e.jsx(d,{control:r.control,name:"space_package",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].h2}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"space",checked:n.value==="space"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"package",checked:n.value==="package"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio_2})]})]})})]})}),e.jsx(l,{label:t[s(a)].label_1,name:"company_name",control:r.control,error:c.company_name}),e.jsx(l,{label:t[s(a)].label_2,name:"rep_name",control:r.control,error:c.rep_name}),e.jsx(l,{label:t[s(a)].label_3,name:"job_title",control:r.control,error:c.job_title}),e.jsx(l,{label:t[s(a)].number_of_participants,type:"number",name:"participants_number",control:r.control,error:c.participants_number}),e.jsx(l,{label:t[s(a)].label_4,name:"country",control:r.control,error:c.country}),e.jsx(l,{label:t[s(a)].label_5,name:"email",control:r.control,error:c.email}),e.jsx(l,{label:t[s(a)].label_6,name:"phone",control:r.control,error:c.phone}),e.jsx(l,{label:t[s(a)].label_7,name:"website",control:r.control}),e.jsx(d,{control:r.control,name:"visa_support",render:({field:n})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].visa}),e.jsx(p,{children:e.jsxs(b,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(x,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio_2})]})]})})]})}),e.jsx(F,{disabled:r.formState.isSubmitting,className:"mt-5",children:r.formState.isSubmitting?e.jsx(k,{className:"animate-spin"}):t[s(a)].button})]})})}),u&&e.jsx(w,{delay:.3})]})}export{z as default}; diff --git a/dist/assets/stend.data-MYN6KI5Y.js b/dist/assets/stend.data-MYN6KI5Y.js new file mode 100644 index 0000000..1881d8d --- /dev/null +++ b/dist/assets/stend.data-MYN6KI5Y.js @@ -0,0 +1 @@ +const a=[{cover:"Забронировать стенд",h2:"Выберите один из вариантов:",radio:"Только стенд",radio_2:"Комплексное предложение",label_1:"Название компании/организации",label_2:"Имя представителя",label_3:"Название должности/позиция",number_of_participants:"Количество участников",label_4:"Страна",label_5:"E-mail адрес",label_6:"Номер телефона",label_7:"Вебсайт",visa:"Визовая поддержка:",visa_radio:"Да",visa_radio_2:"Нет",button:"Отправить"},{cover:"Book your stand",h2:"Select one of the options:",radio:"Space Only",radio_2:"Stand Package",label_1:"Company/Organization Name",label_2:"Name of Representative",label_3:"Job title/Position",number_of_participants:"Number of the participants",label_4:"Country",label_5:"E-mail address",label_6:"Phone number",label_7:"Website",visa:"Visa support:",visa_radio:"Yes",visa_radio_2:"No",button:"Send"}];export{a as s}; diff --git a/dist/assets/ui-library-DAxvtEhC.js b/dist/assets/ui-library-DAxvtEhC.js deleted file mode 100644 index 2aa3d92..0000000 --- a/dist/assets/ui-library-DAxvtEhC.js +++ /dev/null @@ -1,116 +0,0 @@ -import{r as Su,a as g,R as Tu,b as Au,c as Cu,L as Ae,d as Dn,e as J}from"./react-vendor-DnK_KZAP.js";var yr={exports:{}},Kt={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var gi;function Pu(){if(gi)return Kt;gi=1;var e=Su(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var u,d={},f=null,p=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(p=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:p,props:d,_owner:s.current}}return Kt.Fragment=n,Kt.jsx=o,Kt.jsxs=o,Kt}var yi;function Eu(){return yi||(yi=1,yr.exports=Pu()),yr.exports}var h=Eu();function ct(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function vi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ma(...e){return t=>{let n=!1;const r=e.map(s=>{const i=vi(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:o,...a}=i,l=g.useMemo(()=>a,Object.values(a));return h.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=g.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function ju(e,t=[]){let n=[];function r(i,o){const a=g.createContext(o),l=n.length;n=[...n,o];const c=d=>{var v;const{scope:f,children:p,...y}=d,m=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,x=g.useMemo(()=>y,Object.values(y));return h.jsx(m.Provider,{value:x,children:p})};c.displayName=i+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,y=g.useContext(p);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>g.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,Nu(s,...t)]}function Nu(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var Gn=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},Vu=Tu.useId||(()=>{}),Mu=0;function vr(e){const[t,n]=g.useState(Vu());return Gn(()=>{n(r=>r??String(Mu++))},[e]),t?`radix-${t}`:""}function wt(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ru({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=ku({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,a=wt(n),l=g.useCallback(c=>{if(i){const d=typeof c=="function"?c(e):c;d!==e&&a(d)}else s(c)},[i,e,s,a]);return[o,l]}function ku({defaultProp:e,onChange:t}){const n=g.useState(e),[r]=n,s=g.useRef(r),i=wt(t);return g.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var xn=g.forwardRef((e,t)=>{const{children:n,...r}=e,s=g.Children.toArray(n),i=s.find(Fu);if(i){const o=i.props.children,a=s.map(l=>l===i?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:l);return h.jsx(Wr,{...r,ref:t,children:g.isValidElement(o)?g.cloneElement(o,void 0,a):null})}return h.jsx(Wr,{...r,ref:t,children:n})});xn.displayName="Slot";var Wr=g.forwardRef((e,t)=>{const{children:n,...r}=e;if(g.isValidElement(n)){const s=Ou(n);return g.cloneElement(n,{...Lu(r,n.props),ref:t?ma(t,s):s})}return g.Children.count(n)>1?g.Children.only(null):null});Wr.displayName="SlotClone";var _u=({children:e})=>h.jsx(h.Fragment,{children:e});function Fu(e){return g.isValidElement(e)&&e.type===_u}function Lu(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Ou(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Iu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ze=Iu.reduce((e,t)=>{const n=g.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?xn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Bu(e,t){e&&Au.flushSync(()=>e.dispatchEvent(t))}function Uu(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e);g.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var zu="DismissableLayer",$r="dismissableLayer.update",Wu="dismissableLayer.pointerDownOutside",$u="dismissableLayer.focusOutside",xi,pa=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ga=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=g.useContext(pa),[u,d]=g.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=g.useState({}),y=At(t,D=>d(D)),m=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(x),w=u?m.indexOf(u):-1,A=c.layersWithOutsidePointerEventsDisabled.size>0,E=w>=v,S=Hu(D=>{const j=D.target,_=[...c.branches].some(F=>F.contains(j));!E||_||(s==null||s(D),o==null||o(D),D.defaultPrevented||a==null||a())},f),P=qu(D=>{const j=D.target;[...c.branches].some(F=>F.contains(j))||(i==null||i(D),o==null||o(D),D.defaultPrevented||a==null||a())},f);return Uu(D=>{w===c.layers.size-1&&(r==null||r(D),!D.defaultPrevented&&a&&(D.preventDefault(),a()))},f),g.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(xi=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),bi(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xi)}},[u,f,n,c]),g.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),bi())},[u,c]),g.useEffect(()=>{const D=()=>p({});return document.addEventListener($r,D),()=>document.removeEventListener($r,D)},[]),h.jsx(Ze.div,{...l,ref:y,style:{pointerEvents:A?E?"auto":"none":void 0,...e.style},onFocusCapture:ct(e.onFocusCapture,P.onFocusCapture),onBlurCapture:ct(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:ct(e.onPointerDownCapture,S.onPointerDownCapture)})});ga.displayName=zu;var Gu="DismissableLayerBranch",Ku=g.forwardRef((e,t)=>{const n=g.useContext(pa),r=g.useRef(null),s=At(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(Ze.div,{...e,ref:s})});Ku.displayName=Gu;function Hu(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e),r=g.useRef(!1),s=g.useRef(()=>{});return g.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){ya(Wu,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function qu(e,t=globalThis==null?void 0:globalThis.document){const n=wt(e),r=g.useRef(!1);return g.useEffect(()=>{const s=i=>{i.target&&!r.current&&ya($u,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function bi(){const e=new CustomEvent($r);document.dispatchEvent(e)}function ya(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Bu(s,i):s.dispatchEvent(i)}var xr="focusScope.autoFocusOnMount",br="focusScope.autoFocusOnUnmount",wi={bubbles:!1,cancelable:!0},Xu="FocusScope",va=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=g.useState(null),c=wt(s),u=wt(i),d=g.useRef(null),f=At(t,m=>l(m)),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let m=function(A){if(p.paused||!a)return;const E=A.target;a.contains(E)?d.current=E:ot(d.current,{select:!0})},x=function(A){if(p.paused||!a)return;const E=A.relatedTarget;E!==null&&(a.contains(E)||ot(d.current,{select:!0}))},v=function(A){if(document.activeElement===document.body)for(const S of A)S.removedNodes.length>0&&ot(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const w=new MutationObserver(v);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),w.disconnect()}}},[r,a,p.paused]),g.useEffect(()=>{if(a){Ti.add(p);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(xr,wi);a.addEventListener(xr,c),a.dispatchEvent(v),v.defaultPrevented||(Yu(td(xa(a)),{select:!0}),document.activeElement===m&&ot(a))}return()=>{a.removeEventListener(xr,c),setTimeout(()=>{const v=new CustomEvent(br,wi);a.addEventListener(br,u),a.dispatchEvent(v),v.defaultPrevented||ot(m??document.body,{select:!0}),a.removeEventListener(br,u),Ti.remove(p)},0)}}},[a,c,u,p]);const y=g.useCallback(m=>{if(!n&&!r||p.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(x&&v){const w=m.currentTarget,[A,E]=Zu(w);A&&E?!m.shiftKey&&v===E?(m.preventDefault(),n&&ot(A,{select:!0})):m.shiftKey&&v===A&&(m.preventDefault(),n&&ot(E,{select:!0})):v===w&&m.preventDefault()}},[n,r,p.paused]);return h.jsx(Ze.div,{tabIndex:-1,...o,ref:f,onKeyDown:y})});va.displayName=Xu;function Yu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ot(r,{select:t}),document.activeElement!==n)return}function Zu(e){const t=xa(e),n=Si(t,e),r=Si(t.reverse(),e);return[n,r]}function xa(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Si(e,t){for(const n of e)if(!Ju(n,{upTo:t}))return n}function Ju(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Qu(e){return e instanceof HTMLInputElement&&"select"in e}function ot(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Qu(e)&&t&&e.select()}}var Ti=ed();function ed(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ai(e,t),e.unshift(t)},remove(t){var n;e=Ai(e,t),(n=e[0])==null||n.resume()}}}function Ai(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function td(e){return e.filter(t=>t.tagName!=="A")}var nd="Portal",ba=g.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=g.useState(!1);Gn(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Cu.createPortal(h.jsx(Ze.div,{...r,ref:t}),o):null});ba.displayName=nd;function rd(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var sr=e=>{const{present:t,children:n}=e,r=sd(t),s=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=At(r.ref,id(s));return typeof n=="function"||r.isPresent?g.cloneElement(s,{ref:i}):null};sr.displayName="Presence";function sd(e){const[t,n]=g.useState(),r=g.useRef({}),s=g.useRef(e),i=g.useRef("none"),o=e?"mounted":"unmounted",[a,l]=rd(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=jn(r.current);i.current=a==="mounted"?c:"none"},[a]),Gn(()=>{const c=r.current,u=s.current;if(u!==e){const f=i.current,p=jn(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),Gn(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=p=>{const m=jn(r.current).includes(p.animationName);if(p.target===t&&m&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=p=>{p.target===t&&(i.current=jn(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function jn(e){return(e==null?void 0:e.animationName)||"none"}function id(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wr=0;function od(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ci()),document.body.insertAdjacentElement("beforeend",e[1]??Ci()),wr++,()=>{wr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wr--}},[])}function Ci(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ke=function(){return Ke=Object.assign||function(t){for(var n,r=1,s=arguments.length;r"u")return Td;var t=Ad(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])}},Pd=Aa(),Ft="data-scroll-locked",Ed=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(ld,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(a,"px ").concat(r,`; - } - body[`).concat(Ft,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(s,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(o,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(On,` { - right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(In,` { - margin-right: `).concat(a,"px ").concat(r,`; - } - - .`).concat(On," .").concat(On,` { - right: 0 `).concat(r,`; - } - - .`).concat(In," .").concat(In,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(Ft,`] { - `).concat(cd,": ").concat(a,`px; - } -`)},Ei=function(){var e=parseInt(document.body.getAttribute(Ft)||"0",10);return isFinite(e)?e:0},Dd=function(){g.useEffect(function(){return document.body.setAttribute(Ft,(Ei()+1).toString()),function(){var e=Ei()-1;e<=0?document.body.removeAttribute(Ft):document.body.setAttribute(Ft,e.toString())}},[])},jd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;Dd();var i=g.useMemo(function(){return Cd(s)},[s]);return g.createElement(Pd,{styles:Ed(i,!t,s,n?"":"!important")})},Gr=!1;if(typeof window<"u")try{var Nn=Object.defineProperty({},"passive",{get:function(){return Gr=!0,!0}});window.addEventListener("test",Nn,Nn),window.removeEventListener("test",Nn,Nn)}catch{Gr=!1}var Et=Gr?{passive:!1}:!1,Nd=function(e){return e.tagName==="TEXTAREA"},Ca=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Nd(e)&&n[t]==="visible")},Vd=function(e){return Ca(e,"overflowY")},Md=function(e){return Ca(e,"overflowX")},Di=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Pa(e,r);if(s){var i=Ea(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Rd=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},kd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Pa=function(e,t){return e==="v"?Vd(t):Md(t)},Ea=function(e,t){return e==="v"?Rd(t):kd(t)},_d=function(e,t){return e==="h"&&t==="rtl"?-1:1},Fd=function(e,t,n,r,s){var i=_d(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,f=0;do{var p=Ea(e,a),y=p[0],m=p[1],x=p[2],v=m-x-i*y;(y||v)&&Pa(e,a)&&(d+=v,f+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},Vn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ji=function(e){return[e.deltaX,e.deltaY]},Ni=function(e){return e&&"current"in e?e.current:e},Ld=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Od=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Id=0,Dt=[];function Bd(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),s=g.useState(Id++)[0],i=g.useState(Aa)[0],o=g.useRef(e);g.useEffect(function(){o.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var m=ad([e.lockRef.current],(e.shards||[]).map(Ni),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var v=Vn(m),w=n.current,A="deltaX"in m?m.deltaX:w[0]-v[0],E="deltaY"in m?m.deltaY:w[1]-v[1],S,P=m.target,D=Math.abs(A)>Math.abs(E)?"h":"v";if("touches"in m&&D==="h"&&P.type==="range")return!1;var j=Di(D,P);if(!j)return!0;if(j?S=D:(S=D==="v"?"h":"v",j=Di(D,P)),!j)return!1;if(!r.current&&"changedTouches"in m&&(A||E)&&(r.current=S),!S)return!0;var _=r.current||S;return Fd(_,x,m,_==="h"?A:E)},[]),l=g.useCallback(function(m){var x=m;if(!(!Dt.length||Dt[Dt.length-1]!==i)){var v="deltaY"in x?ji(x):Vn(x),w=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&Ld(S.delta,v)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var A=(o.current.shards||[]).map(Ni).filter(Boolean).filter(function(S){return S.contains(x.target)}),E=A.length>0?a(x,A[0]):!o.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),c=g.useCallback(function(m,x,v,w){var A={name:m,delta:x,target:v,should:w,shadowParent:Ud(v)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(E){return E!==A})},1)},[]),u=g.useCallback(function(m){n.current=Vn(m),r.current=void 0},[]),d=g.useCallback(function(m){c(m.type,ji(m),m.target,a(m,e.lockRef.current))},[]),f=g.useCallback(function(m){c(m.type,Vn(m),m.target,a(m,e.lockRef.current))},[]);g.useEffect(function(){return Dt.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Et),document.addEventListener("touchmove",l,Et),document.addEventListener("touchstart",u,Et),function(){Dt=Dt.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Et),document.removeEventListener("touchmove",l,Et),document.removeEventListener("touchstart",u,Et)}},[]);var p=e.removeScrollBar,y=e.inert;return g.createElement(g.Fragment,null,y?g.createElement(i,{styles:Od(s)}):null,p?g.createElement(jd,{gapMode:e.gapMode}):null)}function Ud(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zd=gd(Ta,Bd);var Da=g.forwardRef(function(e,t){return g.createElement(ir,Ke({},e,{ref:t,sideCar:zd}))});Da.classNames=ir.classNames;var Wd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},jt=new WeakMap,Mn=new WeakMap,Rn={},Cr=0,ja=function(e){return e&&(e.host||ja(e.parentNode))},$d=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ja(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Gd=function(e,t,n,r){var s=$d(t,Array.isArray(e)?e:[e]);Rn[n]||(Rn[n]=new WeakMap);var i=Rn[n],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(r),y=p!==null&&p!=="false",m=(jt.get(f)||0)+1,x=(i.get(f)||0)+1;jt.set(f,m),i.set(f,x),o.push(f),m===1&&y&&Mn.set(f,!0),x===1&&f.setAttribute(n,"true"),y||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),Cr++,function(){o.forEach(function(d){var f=jt.get(d)-1,p=i.get(d)-1;jt.set(d,f),i.set(d,p),f||(Mn.has(d)||d.removeAttribute(r),Mn.delete(d)),p||d.removeAttribute(n)}),Cr--,Cr||(jt=new WeakMap,jt=new WeakMap,Mn=new WeakMap,Rn={})}},Kd=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=Wd(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),Gd(r,s,n,"aria-hidden")):function(){return null}},ps="Dialog",[Na,Gv]=ju(ps),[Hd,ze]=Na(ps),Va=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=g.useRef(null),l=g.useRef(null),[c=!1,u]=Ru({prop:r,defaultProp:s,onChange:i});return h.jsx(Hd,{scope:t,triggerRef:a,contentRef:l,contentId:vr(),titleId:vr(),descriptionId:vr(),open:c,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Va.displayName=ps;var Ma="DialogTrigger",Ra=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=ze(Ma,n),i=At(t,s.triggerRef);return h.jsx(Ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":vs(s.open),...r,ref:i,onClick:ct(e.onClick,s.onOpenToggle)})});Ra.displayName=Ma;var gs="DialogPortal",[qd,ka]=Na(gs,{forceMount:void 0}),_a=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=ze(gs,t);return h.jsx(qd,{scope:t,forceMount:n,children:g.Children.map(r,o=>h.jsx(sr,{present:n||i.open,children:h.jsx(ba,{asChild:!0,container:s,children:o})}))})};_a.displayName=gs;var Kn="DialogOverlay",Fa=g.forwardRef((e,t)=>{const n=ka(Kn,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=ze(Kn,e.__scopeDialog);return i.modal?h.jsx(sr,{present:r||i.open,children:h.jsx(Xd,{...s,ref:t})}):null});Fa.displayName=Kn;var Xd=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=ze(Kn,n);return h.jsx(Da,{as:xn,allowPinchZoom:!0,shards:[s.contentRef],children:h.jsx(Ze.div,{"data-state":vs(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),St="DialogContent",La=g.forwardRef((e,t)=>{const n=ka(St,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=ze(St,e.__scopeDialog);return h.jsx(sr,{present:r||i.open,children:i.modal?h.jsx(Yd,{...s,ref:t}):h.jsx(Zd,{...s,ref:t})})});La.displayName=St;var Yd=g.forwardRef((e,t)=>{const n=ze(St,e.__scopeDialog),r=g.useRef(null),s=At(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return Kd(i)},[]),h.jsx(Oa,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ct(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ct(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:ct(e.onFocusOutside,i=>i.preventDefault())})}),Zd=g.forwardRef((e,t)=>{const n=ze(St,e.__scopeDialog),r=g.useRef(!1),s=g.useRef(!1);return h.jsx(Oa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Oa=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=ze(St,n),l=g.useRef(null),c=At(t,l);return od(),h.jsxs(h.Fragment,{children:[h.jsx(va,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:h.jsx(ga,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":vs(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(Jd,{titleId:a.titleId}),h.jsx(ef,{contentRef:l,descriptionId:a.descriptionId})]})]})}),ys="DialogTitle",Ia=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=ze(ys,n);return h.jsx(Ze.h2,{id:s.titleId,...r,ref:t})});Ia.displayName=ys;var Ba="DialogDescription",Ua=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=ze(Ba,n);return h.jsx(Ze.p,{id:s.descriptionId,...r,ref:t})});Ua.displayName=Ba;var za="DialogClose",Wa=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=ze(za,n);return h.jsx(Ze.button,{type:"button",...r,ref:t,onClick:ct(e.onClick,()=>s.onOpenChange(!1))})});Wa.displayName=za;function vs(e){return e?"open":"closed"}var $a="DialogTitleWarning",[Kv,Ga]=Du($a,{contentName:St,titleName:ys,docsSlug:"dialog"}),Jd=({titleId:e})=>{const t=Ga($a),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Qd="DialogDescriptionWarning",ef=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ga(Qd).contentName}}.`;return g.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tf=Va,nf=Ra,rf=_a,Ka=Fa,Ha=La,qa=Ia,Xa=Ua,Ya=Wa;function Za(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Mi=Ja,xs=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Mi(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const f=Vi(u)||Vi(d);return s[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(y=>{let[m,x]=y;return Array.isArray(x)?x.includes({...i,...a}[m]):{...i,...a}[m]===x})?[...c,d,f]:c},[]);return Mi(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const sf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qa=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var of={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const af=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>g.createElement("svg",{ref:l,...of,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Qa("lucide",s),...a},[...o.map(([c,u])=>g.createElement(c,u)),...Array.isArray(i)?i:[i]]));/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ct=(e,t)=>{const n=g.forwardRef(({className:r,...s},i)=>g.createElement(af,{ref:i,iconNode:t,className:Qa(`lucide-${sf(e)}`,r),...s}));return n.displayName=`${e}`,n};/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const lf=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],cf=Ct("ArrowUpRight",lf);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const uf=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Hv=Ct("LoaderCircle",uf);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const df=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],qv=Ct("Loader",df);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ff=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],hf=Ct("MapPin",ff);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const mf=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],pf=Ct("Smartphone",mf);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const gf=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],yf=Ct("Upload",gf);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const vf=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xf=Ct("X",vf),bs="-",bf=e=>{const t=Sf(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(bs);return a[0]===""&&a.length!==1&&a.shift(),el(a,t)||wf(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},el=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?el(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(bs);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Ri=/^\[(.+)\]$/,wf=e=>{if(Ri.test(e)){const t=Ri.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Sf=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Af(Object.entries(e.classGroups),n).forEach(([i,o])=>{Kr(o,r,i,t)}),r},Kr=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:ki(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(Tf(s)){Kr(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Kr(o,ki(t,i),n,r)})})},ki=(e,t)=>{let n=e;return t.split(bs).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Tf=e=>e.isThemeGetter,Af=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,Cf=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},tl="!",Pf=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let x=0;xu?d-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}};return n?a=>n({className:a,parseClassName:o}):o},Ef=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Df=e=>({cache:Cf(e.cacheSize),parseClassName:Pf(e),...bf(e)}),jf=/\s+/,Nf=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(jf);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(c);let y=!!p,m=r(y?f.substring(0,p):f);if(!m){if(!y){a=c+(a.length>0?" "+a:a);continue}if(m=r(f),!m){a=c+(a.length>0?" "+a:a);continue}y=!1}const x=Ef(u).join(":"),v=d?x+tl:x,w=v+m;if(i.includes(w))continue;i.push(w);const A=s(m,y);for(let E=0;E0?" "+a:a)}return a};function Vf(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(u),e());return n=Df(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=Nf(l,n);return s(l,u),u}return function(){return i(Vf.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},rl=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rf=/^\d+\/\d+$/,kf=new Set(["px","full","screen"]),_f=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ff=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Of=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,If=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qe=e=>Lt(e)||kf.has(e)||Rf.test(e),st=e=>Ut(e,"length",Hf),Lt=e=>!!e&&!Number.isNaN(Number(e)),Pr=e=>Ut(e,"number",Lt),Ht=e=>!!e&&Number.isInteger(Number(e)),Bf=e=>e.endsWith("%")&&Lt(e.slice(0,-1)),K=e=>rl.test(e),it=e=>_f.test(e),Uf=new Set(["length","size","percentage"]),zf=e=>Ut(e,Uf,sl),Wf=e=>Ut(e,"position",sl),$f=new Set(["image","url"]),Gf=e=>Ut(e,$f,Xf),Kf=e=>Ut(e,"",qf),qt=()=>!0,Ut=(e,t,n)=>{const r=rl.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Hf=e=>Ff.test(e)&&!Lf.test(e),sl=()=>!1,qf=e=>Of.test(e),Xf=e=>If.test(e),Yf=()=>{const e=se("colors"),t=se("spacing"),n=se("blur"),r=se("brightness"),s=se("borderColor"),i=se("borderRadius"),o=se("borderSpacing"),a=se("borderWidth"),l=se("contrast"),c=se("grayscale"),u=se("hueRotate"),d=se("invert"),f=se("gap"),p=se("gradientColorStops"),y=se("gradientColorStopPositions"),m=se("inset"),x=se("margin"),v=se("opacity"),w=se("padding"),A=se("saturate"),E=se("scale"),S=se("sepia"),P=se("skew"),D=se("space"),j=se("translate"),_=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",K,t],N=()=>[K,t],O=()=>["",Qe,st],z=()=>["auto",Lt,K],q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",K],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[Lt,K];return{cacheSize:500,separator:":",theme:{colors:[qt],spacing:[Qe,st],blur:["none","",it,K],brightness:ne(),borderColor:[e],borderRadius:["none","","full",it,K],borderSpacing:N(),borderWidth:O(),contrast:ne(),grayscale:ee(),hueRotate:ne(),invert:ee(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[Bf,st],inset:U(),margin:U(),opacity:ne(),padding:N(),saturate:ne(),scale:ne(),sepia:ee(),skew:ne(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[it]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...q(),K]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ht,K]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",Ht,K]}],"grid-cols":[{"grid-cols":[qt]}],"col-start-end":[{col:["auto",{span:["full",Ht,K]},K]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[qt]}],"row-start-end":[{row:["auto",{span:[Ht,K]},K]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[it]},it]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",it,st]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Pr]}],"font-family":[{font:[qt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",K]}],"line-clamp":[{"line-clamp":["none",Lt,Pr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qe,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qe,st]}],"underline-offset":[{"underline-offset":["auto",Qe,K]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...q(),Wf]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zf]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Gf]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:Y()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[Qe,K]}],"outline-w":[{outline:[Qe,st]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Qe,st]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",it,Kf]}],"shadow-color":[{shadow:[qt]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",it,K]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[A]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",K]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Ht,K]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qe,st,Pr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Zf=Mf(Yf);function $(...e){return Zf(Ja(e))}const Jf=tf,Qf=nf,eh=Ya,th=rf,il=g.forwardRef(({className:e,...t},n)=>h.jsx(Ka,{className:$("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));il.displayName=Ka.displayName;const nh=xs("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),ol=g.forwardRef(({side:e="right",className:t,children:n,...r},s)=>h.jsxs(th,{children:[h.jsx(il,{}),h.jsxs(Ha,{ref:s,className:$(nh({side:e}),t),...r,children:[h.jsxs(Ya,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary",children:[h.jsx(xf,{className:"size-8"}),h.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));ol.displayName=Ha.displayName;const al=({className:e,...t})=>h.jsx("div",{className:$("flex flex-col space-y-2 text-center sm:text-left",e),...t});al.displayName="SheetHeader";const rh=g.forwardRef(({className:e,...t},n)=>h.jsx(qa,{ref:n,className:$("text-lg font-semibold text-foreground",e),...t}));rh.displayName=qa.displayName;const sh=g.forwardRef(({className:e,...t},n)=>h.jsx(Xa,{ref:n,className:$("text-sm text-muted-foreground",e),...t}));sh.displayName=Xa.displayName;const ih=xs("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-[18px] leading-[140%] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-on_primary shadow hover:bg-primary/90",teritary:"bg-teritary hover:bg-teritary/90 text-on_surface",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-outline text-on_surface",secondary:"bg-secondary_container hover:bg-secondary_container/80 text-on_secondary_container",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-white h-8"},size:{default:"h-12 px-5 py-2 rounded-[2px]",sm:"h-10 text-base px-4 rounded-[2px]",lg:"lg:h-[88px] h-12 rounded-[2px] px-8 ",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Fe=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?xn:"button";return h.jsx(o,{className:$(ih({variant:t,size:n,className:e})),ref:i,...s})});Fe.displayName="Button";const ll=({className:e})=>h.jsx("div",{className:$("",e),children:h.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),cl=({className:e,img:t,title:n,iconClassName:r})=>h.jsxs("article",{className:$("bg-bg_surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[h.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),h.jsx("div",{className:$("md:size-[84px] size-12 bg-teritary p-3",r),children:h.jsx("img",{src:t,alt:"theme icon"})}),h.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),oh=({className:e,nums:t,text:n})=>h.jsxs("article",{className:$("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[h.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),h.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:t}),h.jsx("h4",{className:"text-on_surface normal text-base",children:n})]}),_i=({className:e,title:t,text:n,img:r,link:s,btnText:i})=>h.jsxs("article",{className:$("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[h.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),h.jsx("img",{src:r,className:"absolute size-full top-0 right-0 object-cover"}),h.jsxs("div",{className:"relative z-20 h-full",children:[h.jsxs("div",{className:"",children:[h.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),h.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),h.jsx(Ae,{className:"absolute bottom-0 left-0",target:"_blank",to:s,children:h.jsxs(Fe,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",h.jsx(cf,{})]})})]})]}),ul=({className:e,name:t,date:n,bottomClassName:r})=>h.jsxs("div",{className:$("rounded-t-[4px] overflow-hidden",e),children:[h.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),h.jsx("div",{className:$("h-14 bg-bg_surface_container semibold flex items-center text-lg px-4",r),children:n})]}),ah=({className:e,subtitle:t,title:n,img:r})=>h.jsxs("div",{className:$("flex items-center gap-4",e),children:[h.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:h.jsx("img",{src:r,alt:"contact icon",className:"size-full"})}),h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsx("h5",{className:"text-sm text-[#454545]",children:t}),h.jsx("h4",{className:"text-[#171717] semibold",children:n})]})]}),ws=g.createContext({});function Ss(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const or=g.createContext(null),Ts=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class lh extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ch({children:e,isPresent:t,anchorX:n}){const r=g.useId(),s=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=g.useContext(Ts);return g.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u,right:d}=i.current;if(t||!s.current||!a||!l)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;s.current.dataset.motionPopId=r;const p=document.createElement("style");return o&&(p.nonce=o),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${a}px !important; - height: ${l}px !important; - ${f}px !important; - top: ${c}px !important; - } - `),()=>{document.head.removeChild(p)}},[t]),h.jsx(lh,{isPresent:t,childRef:s,sizeRef:i,children:g.cloneElement(e,{ref:s})})}const uh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const l=Ss(dh),c=g.useId(),u=g.useCallback(f=>{l.set(f,!0);for(const p of l.values())if(!p)return;r&&r()},[l,r]),d=g.useMemo(()=>({id:c,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),u]:[n,u]);return g.useMemo(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),g.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=h.jsx(ch,{isPresent:n,anchorX:a,children:e})),h.jsx(or.Provider,{value:d,children:e})};function dh(){return new Map}function dl(e=!0){const t=g.useContext(or);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=g.useId();g.useEffect(()=>{e&&s(i)},[e]);const o=g.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const kn=e=>e.key||"";function Fi(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const As=typeof window<"u",fl=As?g.useLayoutEffect:g.useEffect,Xv=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[l,c]=dl(o),u=g.useMemo(()=>Fi(e),[e]),d=o&&!l?[]:u.map(kn),f=g.useRef(!0),p=g.useRef(u),y=Ss(()=>new Map),[m,x]=g.useState(u),[v,w]=g.useState(u);fl(()=>{f.current=!1,p.current=u;for(let S=0;S{const P=kn(S),D=o&&!l?!1:u===v||d.includes(P),j=()=>{if(y.has(P))y.set(P,!0);else return;let _=!0;y.forEach(F=>{F||(_=!1)}),_&&(E==null||E(),w(p.current),o&&(c==null||c()),r&&r())};return h.jsx(uh,{isPresent:D,initial:!f.current||n?void 0:!1,custom:D?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:D?void 0:j,anchorX:a,children:S},P)})})},Ve=e=>e;let Hr=Ve;const fh={skipAnimations:!1,useManualTiming:!1};function hh(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const p=d&&r?t:n;return u&&i.add(c),p.has(c)||p.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const _n=["read","resolveKeyframes","update","preRender","render","postRender"],mh=40;function hl(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=_n.reduce((v,w)=>(v[w]=hh(i),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=o,p=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,mh),1),s.timestamp=v,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(p))},y=()=>{n=!0,r=!0,s.isProcessing||e(p)};return{schedule:_n.reduce((v,w)=>{const A=o[w];return v[w]=(E,S=!1,P=!1)=>(n||y(),A.schedule(E,S,P)),v},{}),cancel:v=>{for(let w=0;w<_n.length;w++)o[_n[w]].cancel(v)},state:s,steps:o}}const{schedule:ie,cancel:ut,state:xe,steps:Er}=hl(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ve,!0),ml=g.createContext({strict:!1}),Li={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"]},Ot={};for(const e in Li)Ot[e]={isEnabled:t=>Li[e].some(n=>!!t[n])};function ph(e){for(const t in e)Ot[t]={...Ot[t],...e[t]}}const gh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Hn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||gh.has(e)}let pl=e=>!Hn(e);function yh(e){e&&(pl=t=>t.startsWith("on")?!Hn(t):e(t))}try{yh(require("@emotion/is-prop-valid").default)}catch{}function vh(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(pl(s)||n===!0&&Hn(s)||!t&&!Hn(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function xh(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const ar=g.createContext({});function un(e){return typeof e=="string"||Array.isArray(e)}function lr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Cs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ps=["initial",...Cs];function cr(e){return lr(e.animate)||Ps.some(t=>un(e[t]))}function gl(e){return!!(cr(e)||e.variants)}function bh(e,t){if(cr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||un(n)?n:void 0,animate:un(r)?r:void 0}}return e.inherit!==!1?t:{}}function wh(e){const{initial:t,animate:n}=bh(e,g.useContext(ar));return g.useMemo(()=>({initial:t,animate:n}),[Oi(t),Oi(n)])}function Oi(e){return Array.isArray(e)?e.join(" "):e}const Sh=Symbol.for("motionComponentSymbol");function Vt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Th(e,t,n){return g.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vt(n)&&(n.current=r))},[t])}const Es=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ah="framerAppearId",yl="data-"+Es(Ah),{schedule:Ds,cancel:Yv}=hl(queueMicrotask,!1),vl=g.createContext({});function Ch(e,t,n,r,s){var i,o;const{visualElement:a}=g.useContext(ar),l=g.useContext(ml),c=g.useContext(or),u=g.useContext(Ts).reducedMotion,d=g.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,p=g.useContext(vl);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&Ph(d.current,n,s,p);const y=g.useRef(!1);g.useInsertionEffect(()=>{f&&y.current&&f.update(n,c)});const m=n[yl],x=g.useRef(!!m&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,m))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,m)));return fl(()=>{f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Ds.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),g.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,m)}),x.current=!1))}),f}function Ph(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:xl(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Vt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function xl(e){if(e)return e.options.allowProjection!==!1?e.projection:xl(e.parent)}function Eh({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&ph(e);function a(c,u){let d;const f={...g.useContext(Ts),...c,layoutId:Dh(c)},{isStatic:p}=f,y=wh(c),m=r(c,p);if(!p&&As){jh();const x=Nh(f);d=x.MeasureLayout,y.visualElement=Ch(s,m,f,t,x.ProjectionNode)}return h.jsxs(ar.Provider,{value:y,children:[d&&y.visualElement?h.jsx(d,{visualElement:y.visualElement,...f}):null,n(s,c,Th(m,y.visualElement,u),m,p,y.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const l=g.forwardRef(a);return l[Sh]=s,l}function Dh({layoutId:e}){const t=g.useContext(ws).id;return t&&e!==void 0?t+"-"+e:e}function jh(e,t){g.useContext(ml).strict}function Nh(e){const{drag:t,layout:n}=Ot;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Vh=["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 js(e){return typeof e!="string"||e.includes("-")?!1:!!(Vh.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ii(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ns(e,t,n,r){if(typeof t=="function"){const[s,i]=Ii(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Ii(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const qr=e=>Array.isArray(e),Mh=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Rh=e=>qr(e)?e[e.length-1]||0:e,Se=e=>!!(e&&e.getVelocity);function Bn(e){const t=Se(e)?e.get():e;return Mh(t)?t.toValue():t}function kh({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:_h(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const bl=e=>(t,n)=>{const r=g.useContext(ar),s=g.useContext(or),i=()=>kh(e,t,r,s);return n?i():Ss(i)};function _h(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=Bn(i[f]);let{initial:o,animate:a}=e;const l=cr(e),c=gl(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!lr(d)){const f=Array.isArray(d)?d:[d];for(let p=0;pt=>typeof t=="string"&&t.startsWith(e),Vs=wl("--"),Fh=wl("var(--"),Ms=e=>Fh(e)?Lh.test(e.split("/*")[0].trim()):!1,Lh=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Sl=(e,t)=>t&&typeof e=="number"?t.transform(e):e,rt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},dn={...Wt,transform:e=>rt(0,1,e)},Fn={...Wt,default:1},bn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),at=bn("deg"),Xe=bn("%"),B=bn("px"),Oh=bn("vh"),Ih=bn("vw"),Bi={...Xe,parse:e=>Xe.parse(e)/100,transform:e=>Xe.transform(e*100)},Bh={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,backgroundPositionX:B,backgroundPositionY:B},Uh={rotate:at,rotateX:at,rotateY:at,rotateZ:at,scale:Fn,scaleX:Fn,scaleY:Fn,scaleZ:Fn,skew:at,skewX:at,skewY:at,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:dn,originX:Bi,originY:Bi,originZ:B},Ui={...Wt,transform:Math.round},Rs={...Bh,...Uh,zIndex:Ui,size:B,fillOpacity:dn,strokeOpacity:dn,numOctaves:Ui},zh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wh=zt.length;function $h(e,t,n){let r="",s=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),Tl=()=>({...Fs(),attrs:{}}),Ls=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Al(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Cl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Pl(e,t,n,r){Al(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Cl.has(s)?s:Es(s),t.attrs[s])}const fn={};function Xh(e){for(const t in e)fn[t]=e[t],Vs(t)&&(fn[t].isCSSVariable=!0)}function El(e,{layout:t,layoutId:n}){return Pt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!fn[e]||e==="opacity")}function Os(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(Se(s[o])||t.style&&Se(t.style[o])||El(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function Dl(e,t,n){const r=Os(e,t,n);for(const s in e)if(Se(e[s])||Se(t[s])){const i=zt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function Yh(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Wi=["x","y","width","height","cx","cy","r"],Zh={useVisualState:bl({scrapeMotionValuesFromProps:Dl,createRenderState:Tl,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(Pt.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{Yh(n,r),ie.render(()=>{_s(r,s,Ls(n.tagName),e.transformTemplate),Pl(n,r)})})}})},Jh={useVisualState:bl({scrapeMotionValuesFromProps:Os,createRenderState:Fs})};function jl(e,t,n){for(const r in t)!Se(t[r])&&!El(r,n)&&(e[r]=t[r])}function Qh({transformTemplate:e},t){return g.useMemo(()=>{const n=Fs();return ks(n,t,e),Object.assign({},n.vars,n.style)},[t])}function em(e,t){const n=e.style||{},r={};return jl(r,n,e),Object.assign(r,Qh(e,t)),r}function tm(e,t){const n={},r=em(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function nm(e,t,n,r){const s=g.useMemo(()=>{const i=Tl();return _s(i,t,Ls(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};jl(i,e.style,e),s.style={...i,...s.style}}return s}function rm(e=!1){return(n,r,s,{latestValues:i},o)=>{const l=(js(n)?nm:tm)(r,i,o,n),c=vh(r,typeof n=="string",e),u=n!==g.Fragment?{...c,...l,ref:s}:{},{children:d}=r,f=g.useMemo(()=>Se(d)?d.get():d,[d]);return g.createElement(n,{...u,children:f})}}function sm(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...js(r)?Zh:Jh,preloadedFeatures:e,useRender:rm(s),createVisualElement:t,Component:r};return Eh(o)}}function Nl(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r(Un===void 0&&Ye.set(xe.isProcessing||fh.useManualTiming?xe.timestamp:performance.now()),Un),set:e=>{Un=e,queueMicrotask(im)}};function Bs(e,t){e.indexOf(t)===-1&&e.push(t)}function Us(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zs{constructor(){this.subscriptions=[]}add(t){return Bs(this.subscriptions,t),()=>Us(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class am{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=Ye.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=om(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new zs);const r=this.events[t].add(n);return t==="change"?()=>{r(),ie.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>$i)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,$i);return Ml(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hn(e,t){return new am(e,t)}function lm(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hn(n))}function cm(e,t){const n=ur(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=Rh(i[o]);lm(e,o,a)}}function um(e){return!!(Se(e)&&e.add)}function Xr(e,t){const n=e.getValue("willChange");if(um(n))return n.add(t)}function Rl(e){return e.props[yl]}function Ws(e){let t;return()=>(t===void 0&&(t=e()),t)}const dm=Ws(()=>window.ScrollTimeline!==void 0);class fm{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(dm()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class hm extends fm{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const tt=e=>e*1e3,nt=e=>e/1e3;function $s(e){return typeof e=="function"}function Gi(e,t){e.timeline=t,e.onfinish=null}const Gs=e=>Array.isArray(e)&&typeof e[0]=="number",mm={linearEasing:void 0};function pm(e,t){const n=Ws(e);return()=>{var r;return(r=mm[t])!==null&&r!==void 0?r:n()}}const qn=pm(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),It=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},kl=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jt([0,.65,.55,1]),circOut:Jt([.55,0,1,.45]),backIn:Jt([.31,.01,.66,-.59]),backOut:Jt([.33,1.53,.69,.99])};function Fl(e,t){if(e)return typeof e=="function"&&qn()?kl(e,t):Gs(e)?Jt(e):Array.isArray(e)?e.map(n=>Fl(n,t)||Yr.easeOut):Yr[e]}const Ll=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gm=1e-7,ym=12;function vm(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Ll(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>gm&&++avm(i,0,1,e,n);return i=>i===0||i===1?i:Ll(s(i),t,r)}const Ol=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Il=e=>t=>1-e(1-t),Bl=wn(.33,1.53,.69,.99),Ks=Il(Bl),Ul=Ol(Ks),zl=e=>(e*=2)<1?.5*Ks(e):.5*(2-Math.pow(2,-10*(e-1))),Hs=e=>1-Math.sin(Math.acos(e)),Wl=Il(Hs),$l=Ol(Hs),Gl=e=>/^0[^.\s]+$/u.test(e);function xm(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Gl(e):!0}const nn=e=>Math.round(e*1e5)/1e5,qs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bm(e){return e==null}const wm=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xs=(e,t)=>n=>!!(typeof n=="string"&&wm.test(n)&&n.startsWith(e)||t&&!bm(n)&&Object.prototype.hasOwnProperty.call(n,t)),Kl=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(qs);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Sm=e=>rt(0,255,e),Dr={...Wt,transform:e=>Math.round(Sm(e))},vt={test:Xs("rgb","red"),parse:Kl("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Dr.transform(e)+", "+Dr.transform(t)+", "+Dr.transform(n)+", "+nn(dn.transform(r))+")"};function Tm(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Zr={test:Xs("#"),parse:Tm,transform:vt.transform},Mt={test:Xs("hsl","hue"),parse:Kl("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xe.transform(nn(t))+", "+Xe.transform(nn(n))+", "+nn(dn.transform(r))+")"},we={test:e=>vt.test(e)||Zr.test(e)||Mt.test(e),parse:e=>vt.test(e)?vt.parse(e):Mt.test(e)?Mt.parse(e):Zr.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vt.transform(e):Mt.transform(e)},Am=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Cm(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(qs))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Am))===null||n===void 0?void 0:n.length)||0)>0}const Hl="number",ql="color",Pm="var",Em="var(",Ki="${}",Dm=/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 mn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Dm,l=>(we.test(l)?(r.color.push(i),s.push(ql),n.push(we.parse(l))):l.startsWith(Em)?(r.var.push(i),s.push(Pm),n.push(l)):(r.number.push(i),s.push(Hl),n.push(parseFloat(l))),++i,Ki)).split(Ki);return{values:n,split:a,indexes:r,types:s}}function Xl(e){return mn(e).values}function Yl(e){const{split:t,types:n}=mn(e),r=t.length;return s=>{let i="";for(let o=0;otypeof e=="number"?0:e;function Nm(e){const t=Xl(e);return Yl(e)(t.map(jm))}const dt={test:Cm,parse:Xl,createTransformer:Yl,getAnimatableNone:Nm},Vm=new Set(["brightness","contrast","saturate","opacity"]);function Mm(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qs)||[];if(!r)return e;const s=n.replace(r,"");let i=Vm.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const Rm=/\b([a-z-]*)\(.*?\)/gu,Jr={...dt,getAnimatableNone:e=>{const t=e.match(Rm);return t?t.map(Mm).join(" "):e}},km={...Rs,color:we,backgroundColor:we,outlineColor:we,fill:we,stroke:we,borderColor:we,borderTopColor:we,borderRightColor:we,borderBottomColor:we,borderLeftColor:we,filter:Jr,WebkitFilter:Jr},Ys=e=>km[e];function Zl(e,t){let n=Ys(e);return n!==Jr&&(n=dt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _m=new Set(["auto","none","0"]);function Fm(e,t,n){let r=0,s;for(;re===Wt||e===B,qi=(e,t)=>parseFloat(e.split(", ")[t]),Xi=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return qi(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?qi(i[1],e):0}},Lm=new Set(["x","y","z"]),Om=zt.filter(e=>!Lm.has(e));function Im(e){const t=[];return Om.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Bt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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:Xi(4,13),y:Xi(5,14)};Bt.translateX=Bt.x;Bt.translateY=Bt.y;const bt=new Set;let Qr=!1,es=!1;function Jl(){if(es){const e=Array.from(bt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=Im(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}es=!1,Qr=!1,bt.forEach(e=>e.complete()),bt.clear()}function Ql(){bt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(es=!0)})}function Bm(){Ql(),Jl()}class Zs{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(bt.add(this),Qr||(Qr=!0,ie.read(Ql),ie.resolveKeyframes(Jl))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Um=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zm(e){const t=Um.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function tc(e,t,n=1){const[r,s]=zm(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return ec(o)?parseFloat(o):o}return Ms(s)?tc(s,t,n+1):s}const nc=e=>t=>t.test(e),Wm={test:e=>e==="auto",parse:e=>e},rc=[Wt,B,Xe,at,Ih,Oh,Wm],Yi=e=>rc.find(nc(e));class sc extends Zs{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Zi=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(dt.test(e)||e==="0")&&!e.startsWith("url("));function $m(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function dr(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(Km),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const Hm=40;class ic{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ye.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Hm?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Bm(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ye.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Gm(t,r,s,i))if(o)this.options.duration=0;else{l&&l(dr(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ts=2e4;function oc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=ts?1/0:t}const ae=(e,t,n)=>e+(t-e)*n;function jr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qm({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=jr(l,a,e+1/3),i=jr(l,a,e),o=jr(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Xn(e,t){return n=>n>0?t:e}const Nr=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Xm=[Zr,vt,Mt],Ym=e=>Xm.find(t=>t.test(e));function Ji(e){const t=Ym(e);if(!t)return!1;let n=t.parse(e);return t===Mt&&(n=qm(n)),n}const Qi=(e,t)=>{const n=Ji(e),r=Ji(t);if(!n||!r)return Xn(e,t);const s={...n};return i=>(s.red=Nr(n.red,r.red,i),s.green=Nr(n.green,r.green,i),s.blue=Nr(n.blue,r.blue,i),s.alpha=ae(n.alpha,r.alpha,i),vt.transform(s))},Zm=(e,t)=>n=>t(e(n)),Sn=(...e)=>e.reduce(Zm),ns=new Set(["none","hidden"]);function Jm(e,t){return ns.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Qm(e,t){return n=>ae(e,t,n)}function Js(e){return typeof e=="number"?Qm:typeof e=="string"?Ms(e)?Xn:we.test(e)?Qi:np:Array.isArray(e)?ac:typeof e=="object"?we.test(e)?Qi:ep:Xn}function ac(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Js(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function tp(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i{const n=dt.createTransformer(t),r=mn(e),s=mn(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?ns.has(e)&&!s.values.length||ns.has(t)&&!r.values.length?Jm(e,t):Sn(ac(tp(r,s),s.values),n):Xn(e,t)};function lc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ae(e,t,n):Js(e)(e,t)}const rp=5;function cc(e,t,n){const r=Math.max(t-rp,0);return Ml(n-e(r),t-r)}const ce={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},eo=.001;function sp({duration:e=ce.duration,bounce:t=ce.bounce,velocity:n=ce.velocity,mass:r=ce.mass}){let s,i,o=1-t;o=rt(ce.minDamping,ce.maxDamping,o),e=rt(ce.minDuration,ce.maxDuration,nt(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,p=rs(c,o),y=Math.exp(-d);return eo-f/p*y},i=c=>{const d=c*o*e,f=d*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-d),m=rs(Math.pow(c,2),o);return(-s(c)+eo>0?-1:1)*((f-p)*y)/m}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-.001+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=op(s,i,a);if(e=tt(e),isNaN(l))return{stiffness:ce.stiffness,damping:ce.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const ip=12;function op(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function cp(e){let t={velocity:ce.velocity,stiffness:ce.stiffness,damping:ce.damping,mass:ce.mass,isResolvedFromDuration:!1,...e};if(!to(e,lp)&&to(e,ap))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*rt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ce.mass,stiffness:s,damping:i}}else{const n=sp(e);t={...t,...n,mass:ce.mass},t.isResolvedFromDuration=!0}return t}function uc(e=ce.visualDuration,t=ce.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=cp({...n,velocity:-nt(n.velocity||0)}),y=f||0,m=c/(2*Math.sqrt(l*u)),x=o-i,v=nt(Math.sqrt(l/u)),w=Math.abs(x)<5;r||(r=w?ce.restSpeed.granular:ce.restSpeed.default),s||(s=w?ce.restDelta.granular:ce.restDelta.default);let A;if(m<1){const S=rs(v,m);A=P=>{const D=Math.exp(-m*v*P);return o-D*((y+m*v*x)/S*Math.sin(S*P)+x*Math.cos(S*P))}}else if(m===1)A=S=>o-Math.exp(-v*S)*(x+(y+v*x)*S);else{const S=v*Math.sqrt(m*m-1);A=P=>{const D=Math.exp(-m*v*P),j=Math.min(S*P,300);return o-D*((y+m*v*x)*Math.sinh(j)+S*x*Math.cosh(j))/S}}const E={calculatedDuration:p&&d||null,next:S=>{const P=A(S);if(p)a.done=S>=d;else{let D=0;m<1&&(D=S===0?tt(y):cc(A,S,P));const j=Math.abs(D)<=r,_=Math.abs(o-P)<=s;a.done=j&&_}return a.value=a.done?o:P,a},toString:()=>{const S=Math.min(oc(E),ts),P=kl(D=>E.next(S*D).value,S,30);return S+"ms "+P}};return E}function no({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=j=>a!==void 0&&jl,y=j=>a===void 0?l:l===void 0||Math.abs(a-j)-m*Math.exp(-j/r),A=j=>v+w(j),E=j=>{const _=w(j),F=A(j);f.done=Math.abs(_)<=c,f.value=f.done?v:F};let S,P;const D=j=>{p(f.value)&&(S=j,P=uc({keyframes:[f.value,y(f.value)],velocity:cc(A,j,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:j=>{let _=!1;return!P&&S===void 0&&(_=!0,E(j),D(j)),S!==void 0&&j>=S?P.next(j-S):(!_&&E(j),f)}}}const up=wn(.42,0,1,1),dp=wn(0,0,.58,1),dc=wn(.42,0,.58,1),fp=e=>Array.isArray(e)&&typeof e[0]!="number",ro={linear:Ve,easeIn:up,easeInOut:dc,easeOut:dp,circIn:Hs,circInOut:$l,circOut:Wl,backIn:Ks,backInOut:Ul,backOut:Bl,anticipate:zl},so=e=>{if(Gs(e)){Hr(e.length===4);const[t,n,r,s]=e;return wn(t,n,r,s)}else if(typeof e=="string")return Hr(ro[e]!==void 0),ro[e];return e};function hp(e,t,n){const r=[],s=n||lc,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=hp(t,r,s),l=a.length,c=u=>{if(o&&u1)for(;dc(rt(e[0],e[i-1],u)):c}function pp(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=It(0,t,r);e.push(ae(n,1,s))}}function gp(e){const t=[0];return pp(t,e.length-1),t}function yp(e,t){return e.map(n=>n*t)}function vp(e,t){return e.map(()=>t||dc).splice(0,e.length-1)}function Yn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=fp(r)?r.map(so):so(r),i={done:!1,value:t[0]},o=yp(n&&n.length===t.length?n:gp(t),e),a=mp(o,t,{ease:Array.isArray(s)?s:vp(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const xp=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ie.update(t,!0),stop:()=>ut(t),now:()=>xe.isProcessing?xe.timestamp:Ye.now()}},bp={decay:no,inertia:no,tween:Yn,keyframes:Yn,spring:uc},wp=e=>e/100;class Qs extends ic{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Zs,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=$s(n)?n:bp[n]||Yn;let l,c;a!==Yn&&typeof t[0]!="number"&&(l=Sn(wp,lc(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=oc(u));const{calculatedDuration:d}=u,f=d+s,p=f*(r+1)-s;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:y,repeatDelay:m,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),w=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let A=this.currentTime,E=i;if(p){const j=Math.min(this.currentTime,u)/d;let _=Math.floor(j),F=j%1;!F&&j>=1&&(F=1),F===1&&_--,_=Math.min(_,p+1),!!(_%2)&&(y==="reverse"?(F=1-F,m&&(F-=m/d)):y==="mirror"&&(E=o)),A=rt(0,1,F)*d}const S=w?{done:!1,value:l[0]}:E.next(A);a&&(S.value=a(S.value));let{done:P}=S;!w&&c!==null&&(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return D&&s!==void 0&&(S.value=dr(l,this.options,s)),x&&x(S.value),D&&this.finish(),S}get duration(){const{resolved:t}=this;return t?nt(t.calculatedDuration):0}get time(){return nt(this.currentTime)}set time(t){t=tt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=nt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=xp,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Sp=new Set(["opacity","clipPath","filter","transform"]);function Tp(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Fl(a,s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const Ap=Ws(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Zn=10,Cp=2e4;function Pp(e){return $s(e.type)||e.type==="spring"||!_l(e.ease)}function Ep(e,t){const n=new Qs({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&qn()&&Dp(i)&&(i=fc[i]),Pp(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,element:y,...m}=this.options,x=Ep(t,m);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,s=x.times,i=x.ease,o="keyframes"}const u=Tp(a.owner.current,l,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Gi(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(dr(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return nt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return nt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=tt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ve;const{animation:r}=n;Gi(r,t)}return Ve}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...p}=this.options,y=new Qs({...p,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),m=tt(this.time);c.setWithVelocity(y.sample(m-Zn).value,y.sample(m).value,Zn)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Ap()&&r&&Sp.has(r)&&!l&&!c&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const jp={type:"spring",stiffness:500,damping:25,restSpeed:10},Np=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Vp={type:"keyframes",duration:.8},Mp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Rp=(e,{keyframes:t})=>t.length>2?Vp:Pt.has(e)?e.startsWith("scale")?Np(t[1]):jp:Mp;function kp({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const ei=(e,t,n,r={},s,i)=>o=>{const a=Is(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-tt(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};kp(a)||(u={...u,...Rp(e,u)}),u.duration&&(u.duration=tt(u.duration)),u.repeatDelay&&(u.repeatDelay=tt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=dr(u.keyframes,a);if(f!==void 0)return ie.update(()=>{u.onUpdate(f),u.onComplete()}),new hm([])}return!i&&io.supports(u)?new io(u):new Qs(u)};function _p({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function hc(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const c=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||u&&_p(u,d))continue;const y={delay:n,...Is(o||{},d)};let m=!1;if(window.MotionHandoffAnimation){const v=Rl(e);if(v){const w=window.MotionHandoffAnimation(v,d,ie);w!==null&&(y.startTime=w,m=!0)}}Xr(e,d),f.start(ei(d,f,p,e.shouldReduceMotion&&Vl.has(d)?{type:!1}:y,e,m));const x=f.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{ie.update(()=>{a&&cm(e,a)})}),c}function ss(e,t,n={}){var r;const s=ur(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(hc(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return Fp(e,t,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Fp(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,l=s===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(Lp).forEach((c,u)=>{c.notify("AnimationStart",t),o.push(ss(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function Lp(e,t){return e.sortNodePosition(t)}function Op(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>ss(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=ss(e,t,n);else{const s=typeof t=="function"?ur(e,t,n.custom):t;r=Promise.all(hc(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Ip=Ps.length;function mc(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?mc(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>Op(e,n,r)))}function Wp(e){let t=zp(e),n=oo(),r=!0;const s=l=>(c,u)=>{var d;const f=ur(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:y,...m}=f;c={...c,...m,...y}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=mc(e.parent)||{},d=[],f=new Set;let p={},y=1/0;for(let x=0;xy&&E,_=!1;const F=Array.isArray(A)?A:[A];let U=F.reduce(s(v),{});S===!1&&(U={});const{prevResolvedValues:N={}}=w,O={...N,...U},z=W=>{j=!0,f.has(W)&&(_=!0,f.delete(W)),w.needsAnimating[W]=!0;const X=e.getValue(W);X&&(X.liveStyle=!1)};for(const W in O){const X=U[W],ee=N[W];if(p.hasOwnProperty(W))continue;let me=!1;qr(X)&&qr(ee)?me=!Nl(X,ee):me=X!==ee,me?X!=null?z(W):f.add(W):X!==void 0&&f.has(W)?z(W):w.protectedKeys[W]=!0}w.prevProp=A,w.prevResolvedValues=U,w.isActive&&(p={...p,...U}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(P&&D)||_)&&d.push(...F.map(W=>({animation:W,options:{type:v}})))}if(f.size){const x={};f.forEach(v=>{const w=e.getBaseTarget(v),A=e.getValue(v);A&&(A.liveStyle=!0),x[v]=w??null}),d.push({animation:x})}let m=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=oo(),r=!0}}}function $p(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Nl(t,e):!1}function pt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oo(){return{animate:pt(!0),whileInView:pt(),whileHover:pt(),whileTap:pt(),whileDrag:pt(),whileFocus:pt(),exit:pt()}}class ft{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Gp extends ft{constructor(t){super(t),t.animationState||(t.animationState=Wp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();lr(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Kp=0;class Hp extends ft{constructor(){super(...arguments),this.id=Kp++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const qp={animation:{Feature:Gp},exit:{Feature:Hp}},Ie={x:!1,y:!1};function pc(){return Ie.x||Ie.y}function Xp(e){return e==="x"||e==="y"?Ie[e]?null:(Ie[e]=!0,()=>{Ie[e]=!1}):Ie.x||Ie.y?null:(Ie.x=Ie.y=!0,()=>{Ie.x=Ie.y=!1})}const ti=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function pn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Tn(e){return{point:{x:e.pageX,y:e.pageY}}}const Yp=e=>t=>ti(t)&&e(t,Tn(t));function rn(e,t,n,r){return pn(e,t,Yp(n),r)}const ao=(e,t)=>Math.abs(e-t);function Zp(e,t){const n=ao(e.x,t.x),r=ao(e.y,t.y);return Math.sqrt(n**2+r**2)}class gc{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Mr(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=Zp(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:y}=d,{timestamp:m}=xe;this.history.push({...y,timestamp:m});const{onStart:x,onMove:v}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Vr(f,this.transformPagePoint),ie.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Mr(d.type==="pointercancel"?this.lastMoveEventInfo:Vr(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),y&&y(d,x)},!ti(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Tn(t),a=Vr(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=xe;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,Mr(a,this.history)),this.removeListeners=Sn(rn(this.contextWindow,"pointermove",this.handlePointerMove),rn(this.contextWindow,"pointerup",this.handlePointerUp),rn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ut(this.updatePoint)}}function Vr(e,t){return t?{point:t(e.point)}:e}function lo(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mr({point:e},t){return{point:e,delta:lo(e,yc(t)),offset:lo(e,Jp(t)),velocity:Qp(t,.1)}}function Jp(e){return e[0]}function yc(e){return e[e.length-1]}function Qp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=yc(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>tt(t)));)n--;if(!r)return{x:0,y:0};const i=nt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const vc=1e-4,eg=1-vc,tg=1+vc,xc=.01,ng=0-xc,rg=0+xc;function Ce(e){return e.max-e.min}function sg(e,t,n){return Math.abs(e-t)<=n}function co(e,t,n,r=.5){e.origin=r,e.originPoint=ae(t.min,t.max,e.origin),e.scale=Ce(n)/Ce(t),e.translate=ae(n.min,n.max,e.origin)-e.originPoint,(e.scale>=eg&&e.scale<=tg||isNaN(e.scale))&&(e.scale=1),(e.translate>=ng&&e.translate<=rg||isNaN(e.translate))&&(e.translate=0)}function sn(e,t,n,r){co(e.x,t.x,n.x,r?r.originX:void 0),co(e.y,t.y,n.y,r?r.originY:void 0)}function uo(e,t,n){e.min=n.min+t.min,e.max=e.min+Ce(t)}function ig(e,t,n){uo(e.x,t.x,n.x),uo(e.y,t.y,n.y)}function fo(e,t,n){e.min=t.min-n.min,e.max=e.min+Ce(t)}function on(e,t,n){fo(e.x,t.x,n.x),fo(e.y,t.y,n.y)}function og(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ae(n,e,r.max):Math.min(e,n)),e}function ho(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ag(e,{top:t,left:n,bottom:r,right:s}){return{x:ho(e.x,n,s),y:ho(e.y,t,r)}}function mo(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=It(t.min,t.max-r,e.min):r>s&&(n=It(e.min,e.max-s,t.min)),rt(0,1,n)}function ug(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const is=.35;function dg(e=is){return e===!1?e=0:e===!0&&(e=is),{x:po(e,"left","right"),y:po(e,"top","bottom")}}function po(e,t,n){return{min:go(e,t),max:go(e,n)}}function go(e,t){return typeof e=="number"?e:e[t]||0}const yo=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rt=()=>({x:yo(),y:yo()}),vo=()=>({min:0,max:0}),de=()=>({x:vo(),y:vo()});function ke(e){return[e("x"),e("y")]}function bc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function fg({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hg(e,t){if(!t)return e;const 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}}function Rr(e){return e===void 0||e===1}function os({scale:e,scaleX:t,scaleY:n}){return!Rr(e)||!Rr(t)||!Rr(n)}function gt(e){return os(e)||wc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wc(e){return xo(e.x)||xo(e.y)}function xo(e){return e&&e!=="0%"}function Jn(e,t,n){const r=e-n,s=t*r;return n+s}function bo(e,t,n,r,s){return s!==void 0&&(e=Jn(e,s,r)),Jn(e,n,r)+t}function as(e,t=0,n=1,r,s){e.min=bo(e.min,t,n,r,s),e.max=bo(e.max,t,n,r,s)}function Sc(e,{x:t,y:n}){as(e.x,t.translate,t.scale,t.originPoint),as(e.y,n.translate,n.scale,n.originPoint)}const wo=.999999999999,So=1.0000000000001;function mg(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;awo&&(t.x=1),t.ywo&&(t.y=1)}function kt(e,t){e.min=e.min+t,e.max=e.max+t}function To(e,t,n,r,s=.5){const i=ae(e.min,e.max,s);as(e,t,n,i,r)}function _t(e,t){To(e.x,t.x,t.scaleX,t.scale,t.originX),To(e.y,t.y,t.scaleY,t.scale,t.originY)}function Tc(e,t){return bc(hg(e.getBoundingClientRect(),t))}function pg(e,t,n){const r=Tc(e,n),{scroll:s}=t;return s&&(kt(r.x,s.offset.x),kt(r.y,s.offset.y)),r}const Ac=({current:e})=>e?e.ownerDocument.defaultView:null,gg=new WeakMap;class yg{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=de(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Tn(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:p,onDragStart:y}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Xp(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ke(x=>{let v=this.getAxisMotionValue(x).get()||0;if(Xe.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const A=w.layout.layoutBox[x];A&&(v=Ce(A)*(parseFloat(v)/100))}}this.originPoint[x]=v}),y&&ie.postRender(()=>y(u,d)),Xr(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:y,onDrag:m}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(p&&this.currentDirection===null){this.currentDirection=vg(x),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),m&&m(u,d)},a=(u,d)=>this.stop(u,d),l=()=>ke(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new gc(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Ac(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&ie.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Ln(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=og(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Vt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=ag(s.layoutBox,n):this.constraints=!1,this.elastic=dg(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ke(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=ug(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vt(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=pg(r,s.root,this.visualElement.getTransformPagePoint());let o=lg(s.layout.layoutBox,i);if(n){const a=n(fg(o));this.hasMutatedConstraints=!!a,a&&(o=bc(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ke(u=>{if(!Ln(u,n,this.currentDirection))return;let d=l[u]||{};o&&(d={min:0,max:0});const f=s?200:1e6,p=s?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Xr(this.visualElement,t),r.start(ei(t,r,0,n,this.visualElement,!1))}stopAnimation(){ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ke(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ke(n=>{const{drag:r}=this.getProps();if(!Ln(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-ae(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vt(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ke(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=cg({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ke(o=>{if(!Ln(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(ae(l,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;gg.set(this.visualElement,this);const t=this.visualElement.current,n=rn(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ie.read(r);const o=pn(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(ke(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=is,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Ln(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class xg extends ft{constructor(t){super(t),this.removeGroupControls=Ve,this.removeListeners=Ve,this.controls=new yg(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ve}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ao=e=>(t,n)=>{e&&ie.postRender(()=>e(t,n))};class bg extends ft{constructor(){super(...arguments),this.removePointerDownListener=Ve}onPointerDown(t){this.session=new gc(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ac(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ao(t),onStart:Ao(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&ie.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=rn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const zn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Co(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Xt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=Co(e,t.target.x),r=Co(e,t.target.y);return`${n}% ${r}%`}},wg={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=dt.parse(e);if(s.length>5)return r;const i=dt.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=ae(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}};class Sg extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;Xh(Tg),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),zn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ie.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ds.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Cc(e){const[t,n]=dl(),r=g.useContext(ws);return h.jsx(Sg,{...e,layoutGroup:r,switchLayoutGroup:g.useContext(vl),isPresent:t,safeToRemove:n})}const Tg={borderRadius:{...Xt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Xt,borderTopRightRadius:Xt,borderBottomLeftRadius:Xt,borderBottomRightRadius:Xt,boxShadow:wg};function Ag(e,t,n){const r=Se(e)?e:hn(e);return r.start(ei("",r,t,n)),r.animation}function Cg(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Pg=(e,t)=>e.depth-t.depth;class Eg{constructor(){this.children=[],this.isDirty=!1}add(t){Bs(this.children,t),this.isDirty=!0}remove(t){Us(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Pg),this.isDirty=!1,this.children.forEach(t)}}function Dg(e,t){const n=Ye.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(ut(r),e(i-t))};return ie.read(r,!0),()=>ut(r)}const Pc=["TopLeft","TopRight","BottomLeft","BottomRight"],jg=Pc.length,Po=e=>typeof e=="string"?parseFloat(e):e,Eo=e=>typeof e=="number"||B.test(e);function Ng(e,t,n,r,s,i){s?(e.opacity=ae(0,n.opacity!==void 0?n.opacity:1,Vg(r)),e.opacityExit=ae(t.opacity!==void 0?t.opacity:1,0,Mg(r))):i&&(e.opacity=ae(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(It(e,t,r))}function jo(e,t){e.min=t.min,e.max=t.max}function Re(e,t){jo(e.x,t.x),jo(e.y,t.y)}function No(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vo(e,t,n,r,s){return e-=t,e=Jn(e,1/n,r),s!==void 0&&(e=Jn(e,1/s,r)),e}function Rg(e,t=0,n=1,r=.5,s,i=e,o=e){if(Xe.test(t)&&(t=parseFloat(t),t=ae(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ae(i.min,i.max,r);e===i&&(a-=t),e.min=Vo(e.min,t,n,a,s),e.max=Vo(e.max,t,n,a,s)}function Mo(e,t,[n,r,s],i,o){Rg(e,t[n],t[r],t[s],t.scale,i,o)}const kg=["x","scaleX","originX"],_g=["y","scaleY","originY"];function Ro(e,t,n,r){Mo(e.x,t,kg,n?n.x:void 0,r?r.x:void 0),Mo(e.y,t,_g,n?n.y:void 0,r?r.y:void 0)}function ko(e){return e.translate===0&&e.scale===1}function Dc(e){return ko(e.x)&&ko(e.y)}function _o(e,t){return e.min===t.min&&e.max===t.max}function Fg(e,t){return _o(e.x,t.x)&&_o(e.y,t.y)}function Fo(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function jc(e,t){return Fo(e.x,t.x)&&Fo(e.y,t.y)}function Lo(e){return Ce(e.x)/Ce(e.y)}function Oo(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Lg{constructor(){this.members=[]}add(t){Bs(this.members,t),t.scheduleRender()}remove(t){if(Us(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Og(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:p,skewY:y}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const yt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Qt=typeof window<"u"&&window.MotionDebug!==void 0,kr=["","X","Y","Z"],Ig={visibility:"hidden"},Io=1e3;let Bg=0;function _r(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Nc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Rl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ie,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Nc(r)}function Vc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Bg++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qt&&(yt.totalNodes=yt.resolvedTargetDeltas=yt.recalculatedProjection=0),this.nodes.forEach(Wg),this.nodes.forEach(qg),this.nodes.forEach(Xg),this.nodes.forEach($g),Qt&&window.MotionDebug.record(yt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Dg(f,250),zn.hasAnimatedSinceResize&&(zn.hasAnimatedSinceResize=!1,this.nodes.forEach(Uo))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||ey,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),w=!this.targetLayout||!jc(this.targetLayout,y),A=!f&&p;if(this.options.layoutRoot||this.resumeFrom||A||f&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,A);const E={...Is(m,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else f||Uo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ut(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(Yg),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Nc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ce(this.snapshot.measuredBox.x)&&!Ce(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 l=0;l{const S=E/1e3;zo(d.x,o.x,S),zo(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(on(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Jg(this.relativeTarget,this.relativeTargetOrigin,f,S),A&&Fg(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=de()),Re(A,this.relativeTarget)),m&&(this.animationValues=u,Ng(u,c,this.latestValues,S,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ut(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ie.update(()=>{zn.hasAnimatedSinceResize=!0,this.currentAnimation=Ag(0,Io,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Io),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Mc(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||de();const d=Ce(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=Ce(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}Re(a,l),_t(a,u),sn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Lg),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&_r("z",o,c,this.animationValues);for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Bo),this.root.sharedNodes.clear()}}}function Ug(e){e.updateLayout()}function zg(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?ke(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=Ce(f);f.min=r[d].min,f.max=f.min+p}):Mc(i,n.layoutBox,r)&&ke(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=Ce(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=Rt();sn(a,r,n.layoutBox);const l=Rt();o?sn(l,e.applyTransform(s,!0),n.measuredBox):sn(l,r,n.layoutBox);const c=!Dc(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const y=de();on(y,n.layoutBox,f.layoutBox);const m=de();on(m,r,p.layoutBox),jc(y,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Wg(e){Qt&&yt.totalNodes++,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 $g(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Gg(e){e.clearSnapshot()}function Bo(e){e.clearMeasurements()}function Kg(e){e.isLayoutDirty=!1}function Hg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uo(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qg(e){e.resolveTargetDelta()}function Xg(e){e.calcProjection()}function Yg(e){e.resetSkewAndRotation()}function Zg(e){e.removeLeadSnapshot()}function zo(e,t,n){e.translate=ae(t.translate,0,n),e.scale=ae(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Wo(e,t,n,r){e.min=ae(t.min,n.min,r),e.max=ae(t.max,n.max,r)}function Jg(e,t,n,r){Wo(e.x,t.x,n.x,r),Wo(e.y,t.y,n.y,r)}function Qg(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ey={duration:.45,ease:[.4,0,.1,1]},$o=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Go=$o("applewebkit/")&&!$o("chrome/")?Math.round:Ve;function Ko(e){e.min=Go(e.min),e.max=Go(e.max)}function ty(e){Ko(e.x),Ko(e.y)}function Mc(e,t,n){return e==="position"||e==="preserve-aspect"&&!sg(Lo(t),Lo(n),.2)}function ny(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const ry=Vc({attachResizeListener:(e,t)=>pn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fr={current:void 0},Rc=Vc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fr.current){const e=new ry({});e.mount(window),e.setOptions({layoutScroll:!0}),Fr.current=e}return Fr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sy={pan:{Feature:bg},drag:{Feature:xg,ProjectionNode:Rc,MeasureLayout:Cc}};function iy(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function kc(e,t){const n=iy(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Ho(e){return!(e.pointerType==="touch"||pc())}function oy(e,t,n={}){const[r,s,i]=kc(e,n),o=a=>{if(!Ho(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{Ho(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function qo(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ie.postRender(()=>i(t,Tn(t)))}class ay extends ft{mount(){const{current:t}=this.node;t&&(this.unmount=oy(t,(n,r)=>(qo(this.node,r,"Start"),s=>qo(this.node,s,"End"))))}unmount(){}}class ly extends ft{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Sn(pn(this.node.current,"focus",()=>this.onFocus()),pn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _c=(e,t)=>t?e===t?!0:_c(e,t.parentElement):!1,cy=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uy(e){return cy.has(e.tagName)||e.tabIndex!==-1}const en=new WeakSet;function Xo(e){return t=>{t.key==="Enter"&&e(t)}}function Lr(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dy=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xo(()=>{if(en.has(n))return;Lr(n,"down");const s=Xo(()=>{Lr(n,"up")}),i=()=>Lr(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Yo(e){return ti(e)&&!pc()}function fy(e,t,n={}){const[r,s,i]=kc(e,n),o=a=>{const l=a.currentTarget;if(!Yo(a)||en.has(l))return;en.add(l);const c=t(l,a),u=(p,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!Yo(p)||!en.has(l))&&(en.delete(l),typeof c=="function"&&c(p,{success:y}))},d=p=>{u(p,n.useGlobalTarget||_c(l,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",f,s)};return r.forEach(a=>{!uy(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",c=>dy(c,s),s)}),i}function Zo(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ie.postRender(()=>i(t,Tn(t)))}class hy extends ft{mount(){const{current:t}=this.node;t&&(this.unmount=fy(t,(n,r)=>(Zo(this.node,r,"Start"),(s,{success:i})=>Zo(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ls=new WeakMap,Or=new WeakMap,my=e=>{const t=ls.get(e.target);t&&t(e)},py=e=>{e.forEach(my)};function gy({root:e,...t}){const n=e||document;Or.has(n)||Or.set(n,{});const r=Or.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(py,{root:e,...t})),r[s]}function yy(e,t,n){const r=gy(t);return ls.set(e,n),r.observe(e),()=>{ls.delete(e),r.unobserve(e)}}const vy={some:0,all:1};class xy extends ft{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:vy[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return yy(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(by(t,n))&&this.startObserver()}unmount(){}}function by({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const wy={inView:{Feature:xy},tap:{Feature:hy},focus:{Feature:ly},hover:{Feature:ay}},Sy={layout:{ProjectionNode:Rc,MeasureLayout:Cc}},cs={current:null},Fc={current:!1};function Ty(){if(Fc.current=!0,!!As)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cs.current=e.matches;e.addListener(t),t()}else cs.current=!1}const Ay=[...rc,we,dt],Cy=e=>Ay.find(nc(e)),Jo=new WeakMap;function Py(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Se(s))e.addValue(r,s);else if(Se(i))e.addValue(r,hn(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,hn(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qo=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ey{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Ye.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Fc.current||Ty(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cs.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Jo.delete(this.current),this.projection&&this.projection.unmount(),ut(this.notifyUpdate),ut(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Pt.has(t),s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ie.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ot){const n=Ot[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):de()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=hn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(ec(s)||Gl(s))?s=parseFloat(s):!Cy(s)&&dt.test(n)&&(s=Zl(t,n)),this.setBaseTarget(t,Se(s)?s.get():s)),Se(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Ns(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Se(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new zs),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Lc extends Ey{constructor(){super(...arguments),this.KeyframeResolver=sc}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Se(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Dy(e){return window.getComputedStyle(e)}class jy extends Lc{constructor(){super(...arguments),this.type="html",this.renderInstance=Al}readValueFromInstance(t,n){if(Pt.has(n)){const r=Ys(n);return r&&r.default||0}else{const r=Dy(t),s=(Vs(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Tc(t,n)}build(t,n,r){ks(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Os(t,n,r)}}class Ny extends Lc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=de}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Pt.has(n)){const r=Ys(n);return r&&r.default||0}return n=Cl.has(n)?n:Es(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Dl(t,n,r)}build(t,n,r){_s(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Pl(t,n,r,s)}mount(t){this.isSVGTag=Ls(t.tagName),super.mount(t)}}const Vy=(e,t)=>js(e)?new Ny(t):new jy(t,{allowProjection:e!==g.Fragment}),My=sm({...qp,...wy,...sy,...Sy},Vy),Wn=xh(My);var Ir,ea;function Ry(){if(ea)return Ir;ea=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l=typeof Dn=="object"&&Dn&&Dn.Object===Object&&Dn,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,f=d.toString,p=Math.max,y=Math.min,m=function(){return u.Date.now()};function x(S,P,D){var j,_,F,U,N,O,z=0,q=!1,Y=!1,W=!0;if(typeof S!="function")throw new TypeError(e);P=E(P)||0,v(D)&&(q=!!D.leading,Y="maxWait"in D,F=Y?p(E(D.maxWait)||0,P):F,W="trailing"in D?!!D.trailing:W);function X(H){var Q=j,ye=_;return j=_=void 0,z=H,U=S.apply(ye,Q),U}function ee(H){return z=H,N=setTimeout(Pe,P),q?X(H):U}function me(H){var Q=H-O,ye=H-z,ve=P-Q;return Y?y(ve,F-ye):ve}function ne(H){var Q=H-O,ye=H-z;return O===void 0||Q>=P||Q<0||Y&&ye>=F}function Pe(){var H=m();if(ne(H))return Le(H);N=setTimeout(Pe,me(H))}function Le(H){return N=void 0,W&&j?X(H):(j=_=void 0,U)}function Ee(){N!==void 0&&clearTimeout(N),z=0,j=O=_=N=void 0}function Je(){return N===void 0?U:Le(m())}function Ne(){var H=m(),Q=ne(H);if(j=arguments,_=this,O=H,Q){if(N===void 0)return ee(O);if(Y)return N=setTimeout(Pe,P),X(O)}return N===void 0&&(N=setTimeout(Pe,P)),U}return Ne.cancel=Ee,Ne.flush=Je,Ne}function v(S){var P=typeof S;return!!S&&(P=="object"||P=="function")}function w(S){return!!S&&typeof S=="object"}function A(S){return typeof S=="symbol"||w(S)&&f.call(S)==n}function E(S){if(typeof S=="number")return S;if(A(S))return t;if(v(S)){var P=typeof S.valueOf=="function"?S.valueOf():S;S=v(P)?P+"":P}if(typeof S!="string")return S===0?S:+S;S=S.replace(r,"");var D=i.test(S);return D||o.test(S)?a(S.slice(2),D?2:8):s.test(S)?t:+S}return Ir=x,Ir}Ry();var ky=typeof window<"u"?g.useLayoutEffect:g.useEffect,_y=typeof window>"u";function us(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>_y?t:window.matchMedia(a).matches,[s,i]=g.useState(()=>n?r(e):t);function o(){i(r(e))}return ky(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),s}const Jv=({className:e,stage:t})=>{const n=us("(min-width: 768px");return h.jsx("div",{className:e,children:h.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:h.jsxs("div",{className:"relative h-14 w-full",children:[h.jsx("div",{className:$("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),h.jsx(Wn.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:$("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-0 bg-opacity-0":t===1,"w-[20%]":t===2,"w-[75%]":t===3})}),h.jsx(Wn.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:$("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),h.jsx(Wn.div,{className:$("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),h.jsx("div",{className:$("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),h.jsx("div",{className:$("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var An=e=>e.type==="checkbox",xt=e=>e instanceof Date,Te=e=>e==null;const Oc=e=>typeof e=="object";var he=e=>!Te(e)&&!Array.isArray(e)&&Oc(e)&&!xt(e),Ic=e=>he(e)&&e.target?An(e.target)?e.target.checked:e.target.value:e,Fy=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Bc=(e,t)=>e.has(Fy(t)),Ly=e=>{const t=e.constructor&&e.constructor.prototype;return he(t)&&t.hasOwnProperty("isPrototypeOf")},ni=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function De(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(ni&&(e instanceof Blob||r))&&(n||he(e)))if(t=n?[]:{},!n&&!Ly(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=De(e[s]));else return e;return t}var fr=e=>Array.isArray(e)?e.filter(Boolean):[],fe=e=>e===void 0,k=(e,t,n)=>{if(!t||!he(e))return n;const r=fr(t.split(/[,[\].]+?/)).reduce((s,i)=>Te(s)?s:s[i],e);return fe(r)||r===e?fe(e[t])?n:e[t]:r},_e=e=>typeof e=="boolean",ri=e=>/^\w*$/.test(e),Uc=e=>fr(e.replace(/["|']|\]/g,"").split(/\.|\[/)),te=(e,t,n)=>{let r=-1;const s=ri(t)?[t]:Uc(t),i=s.length,o=i-1;for(;++rJ.useContext(zc),Oy=e=>{const{children:t,...n}=e;return J.createElement(zc.Provider,{value:n},t)};var Wc=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Be.all&&(t._proxyFormState[o]=!r||Be.all),n&&(n[o]=!0),e[o]}});return s},je=e=>he(e)&&!Object.keys(e).length,$c=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return je(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||Be.all))},an=e=>Array.isArray(e)?e:[e],Gc=(e,t,n)=>!e||!t||e===t||an(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function si(e){const t=J.useRef(e);t.current=e,J.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Iy(e){const t=hr(),{control:n=t.control,disabled:r,name:s,exact:i}=e,[o,a]=J.useState(n._formState),l=J.useRef(!0),c=J.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=J.useRef(s);return u.current=s,si({disabled:r,next:d=>l.current&&Gc(u.current,d.name,i)&&$c(d,c.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),J.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),J.useMemo(()=>Wc(o,n,c.current,!1),[o,n])}var qe=e=>typeof e=="string",Kc=(e,t,n,r,s)=>qe(e)?(r&&t.watch.add(e),k(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),k(n,i))):(r&&(t.watchAll=!0),n);function By(e){const t=hr(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e,a=J.useRef(r);a.current=r,si({disabled:i,subject:n._subjects.values,next:u=>{Gc(a.current,u.name,o)&&c(De(Kc(a.current,n._names,u.values||n._formValues,!1,s)))}});const[l,c]=J.useState(n._getWatch(r,s));return J.useEffect(()=>n._removeUnmounted()),l}function Uy(e){const t=hr(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=Bc(s._names.array,n),a=By({control:s,name:n,defaultValue:k(s._formValues,n,k(s._defaultValues,n,e.defaultValue)),exact:!0}),l=Iy({control:s,name:n,exact:!0}),c=J.useRef(s.register(n,{...e.rules,value:a,..._e(e.disabled)?{disabled:e.disabled}:{}})),u=J.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!k(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!k(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!k(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!k(l.validatingFields,n)},error:{enumerable:!0,get:()=>k(l.errors,n)}}),[l,n]),d=J.useMemo(()=>({name:n,value:a,..._e(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:f=>c.current.onChange({target:{value:Ic(f),name:n},type:Qn.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:k(s._formValues,n),name:n},type:Qn.BLUR}),ref:f=>{const p=k(s._fields,n);p&&f&&(p._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:y=>f.setCustomValidity(y),reportValidity:()=>f.reportValidity()})}}),[n,s._formValues,r,l.disabled,a,s._fields]);return J.useEffect(()=>{const f=s._options.shouldUnregister||i,p=(y,m)=>{const x=k(s._fields,y);x&&x._f&&(x._f.mount=m)};if(p(n,!0),f){const y=De(k(s._options.defaultValues,n));te(s._defaultValues,n,y),fe(k(s._formValues,n))&&te(s._formValues,n,y)}return!o&&s.register(n),()=>{(o?f&&!s._state.action:f)?s.unregister(n):p(n,!1)}},[n,s,o,i]),J.useEffect(()=>{s._updateDisabledField({disabled:r,fields:s._fields,name:n})},[r,n,s]),J.useMemo(()=>({field:d,formState:l,fieldState:u}),[d,l,u])}const zy=e=>e.render(Uy(e));var Wy=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},ta=e=>({isOnSubmit:!e||e===Be.onSubmit,isOnBlur:e===Be.onBlur,isOnChange:e===Be.onChange,isOnAll:e===Be.all,isOnTouch:e===Be.onTouched}),na=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ln=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=k(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(ln(a,t))break}else if(he(a)&&ln(a,t))break}}};var $y=(e,t,n)=>{const r=an(k(e,n));return te(r,"root",t[n]),te(e,n,r),e},ii=e=>e.type==="file",He=e=>typeof e=="function",er=e=>{if(!ni)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},$n=e=>qe(e),oi=e=>e.type==="radio",tr=e=>e instanceof RegExp;const ra={value:!1,isValid:!1},sa={value:!0,isValid:!0};var Hc=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!fe(e[0].attributes.value)?fe(e[0].value)||e[0].value===""?sa:{value:e[0].value,isValid:!0}:sa:ra}return ra};const ia={isValid:!1,value:null};var qc=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ia):ia;function oa(e,t,n="validate"){if($n(e)||Array.isArray(e)&&e.every($n)||_e(e)&&!e)return{type:n,message:$n(e)?e:"",ref:t}}var Nt=e=>he(e)&&!tr(e)?e:{value:e,message:""},aa=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:p,validate:y,name:m,valueAsNumber:x,mount:v}=e._f,w=k(n,m);if(!v||t.has(m))return{};const A=a?a[0]:o,E=N=>{s&&A.reportValidity&&(A.setCustomValidity(_e(N)?"":N||""),A.reportValidity())},S={},P=oi(o),D=An(o),j=P||D,_=(x||ii(o))&&fe(o.value)&&fe(w)||er(o)&&o.value===""||w===""||Array.isArray(w)&&!w.length,F=Wy.bind(null,m,r,S),U=(N,O,z,q=et.maxLength,Y=et.minLength)=>{const W=N?O:z;S[m]={type:N?q:Y,message:W,ref:o,...F(N?q:Y,W)}};if(i?!Array.isArray(w)||!w.length:l&&(!j&&(_||Te(w))||_e(w)&&!w||D&&!Hc(a).isValid||P&&!qc(a).isValid)){const{value:N,message:O}=$n(l)?{value:!!l,message:l}:Nt(l);if(N&&(S[m]={type:et.required,message:O,ref:A,...F(et.required,O)},!r))return E(O),S}if(!_&&(!Te(d)||!Te(f))){let N,O;const z=Nt(f),q=Nt(d);if(!Te(w)&&!isNaN(w)){const Y=o.valueAsNumber||w&&+w;Te(z.value)||(N=Y>z.value),Te(q.value)||(O=Ynew Date(new Date().toDateString()+" "+me),X=o.type=="time",ee=o.type=="week";qe(z.value)&&w&&(N=X?W(w)>W(z.value):ee?w>z.value:Y>new Date(z.value)),qe(q.value)&&w&&(O=X?W(w)+N.value,q=!Te(O.value)&&w.length<+O.value;if((z||q)&&(U(z,N.message,O.message),!r))return E(S[m].message),S}if(p&&!_&&qe(w)){const{value:N,message:O}=Nt(p);if(tr(N)&&!w.match(N)&&(S[m]={type:et.pattern,message:O,ref:o,...F(et.pattern,O)},!r))return E(O),S}if(y){if(He(y)){const N=await y(w,n),O=oa(N,A);if(O&&(S[m]={...O,...F(et.validate,O.message)},!r))return E(O.message),S}else if(he(y)){let N={};for(const O in y){if(!je(N)&&!r)break;const z=oa(await y[O](w,n),A,O);z&&(N={...z,...F(O,z.message)},E(z.message),r&&(S[m]=N))}if(!je(N)&&(S[m]={ref:A,...N},!r))return S}}return E(!0),S};function Gy(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},ds=e=>Te(e)||!Oc(e);function lt(e,t){if(ds(e)||ds(t))return e===t;if(xt(e)&&xt(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(xt(i)&&xt(o)||he(i)&&he(o)||Array.isArray(i)&&Array.isArray(o)?!lt(i,o):i!==o)return!1}}return!0}var Xc=e=>e.type==="select-multiple",Hy=e=>oi(e)||An(e),Ur=e=>er(e)&&e.isConnected,Yc=e=>{for(const t in e)if(He(e[t]))return!0;return!1};function nr(e,t={}){const n=Array.isArray(e);if(he(e)||n)for(const r in e)Array.isArray(e[r])||he(e[r])&&!Yc(e[r])?(t[r]=Array.isArray(e[r])?[]:{},nr(e[r],t[r])):Te(e[r])||(t[r]=!0);return t}function Zc(e,t,n){const r=Array.isArray(e);if(he(e)||r)for(const s in e)Array.isArray(e[s])||he(e[s])&&!Yc(e[s])?fe(t)||ds(n[s])?n[s]=Array.isArray(e[s])?nr(e[s],[]):{...nr(e[s])}:Zc(e[s],Te(t)?{}:t[s],n[s]):n[s]=!lt(e[s],t[s]);return n}var Yt=(e,t)=>Zc(e,t,nr(t)),Jc=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>fe(e)?e:t?e===""?NaN:e&&+e:n&&qe(e)?new Date(e):r?r(e):e;function zr(e){const t=e.ref;return ii(t)?t.files:oi(t)?qc(e.refs).value:Xc(t)?[...t.selectedOptions].map(({value:n})=>n):An(t)?Hc(e.refs).value:Jc(fe(t.value)?e.ref.value:t.value,e)}var qy=(e,t,n,r)=>{const s={};for(const i of e){const o=k(t,i);o&&te(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Zt=e=>fe(e)?e:tr(e)?e.source:he(e)?tr(e.value)?e.value.source:e.value:e;const la="AsyncFunction";var Xy=e=>!!e&&!!e.validate&&!!(He(e.validate)&&e.validate.constructor.name===la||he(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===la)),Yy=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ca(e,t,n){const r=k(e,n);if(r||ri(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=k(t,i),a=k(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var Zy=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,Jy=(e,t)=>!fr(k(e,t)).length&&ge(e,t);const Qy={mode:Be.onSubmit,reValidateMode:Be.onChange,shouldFocusError:!0};function ev(e={}){let t={...Qy,...e},n={submitCount:0,isDirty:!1,isLoading:He(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=he(t.defaultValues)||he(t.values)?De(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:De(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Br(),array:Br(),state:Br()},f=ta(t.mode),p=ta(t.reValidateMode),y=t.criteriaMode===Be.all,m=b=>T=>{clearTimeout(c),c=setTimeout(b,T)},x=async b=>{if(!t.disabled&&(u.isValid||b)){const T=t.resolver?je((await j()).errors):await F(r,!0);T!==n.isValid&&d.state.next({isValid:T})}},v=(b,T)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((b||Array.from(a.mount)).forEach(C=>{C&&(T?te(n.validatingFields,C,T):ge(n.validatingFields,C))}),d.state.next({validatingFields:n.validatingFields,isValidating:!je(n.validatingFields)}))},w=(b,T=[],C,R,M=!0,V=!0)=>{if(R&&C&&!t.disabled){if(o.action=!0,V&&Array.isArray(k(r,b))){const I=C(k(r,b),R.argA,R.argB);M&&te(r,b,I)}if(V&&Array.isArray(k(n.errors,b))){const I=C(k(n.errors,b),R.argA,R.argB);M&&te(n.errors,b,I),Jy(n.errors,b)}if(u.touchedFields&&V&&Array.isArray(k(n.touchedFields,b))){const I=C(k(n.touchedFields,b),R.argA,R.argB);M&&te(n.touchedFields,b,I)}u.dirtyFields&&(n.dirtyFields=Yt(s,i)),d.state.next({name:b,isDirty:N(b,T),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else te(i,b,T)},A=(b,T)=>{te(n.errors,b,T),d.state.next({errors:n.errors})},E=b=>{n.errors=b,d.state.next({errors:n.errors,isValid:!1})},S=(b,T,C,R)=>{const M=k(r,b);if(M){const V=k(i,b,fe(C)?k(s,b):C);fe(V)||R&&R.defaultChecked||T?te(i,b,T?V:zr(M._f)):q(b,V),o.mount&&x()}},P=(b,T,C,R,M)=>{let V=!1,I=!1;const G={name:b};if(!t.disabled){const pe=!!(k(r,b)&&k(r,b)._f&&k(r,b)._f.disabled);if(!C||R){u.isDirty&&(I=n.isDirty,n.isDirty=G.isDirty=N(),V=I!==G.isDirty);const ue=pe||lt(k(s,b),T);I=!!(!pe&&k(n.dirtyFields,b)),ue||pe?ge(n.dirtyFields,b):te(n.dirtyFields,b,!0),G.dirtyFields=n.dirtyFields,V=V||u.dirtyFields&&I!==!ue}if(C){const ue=k(n.touchedFields,b);ue||(te(n.touchedFields,b,C),G.touchedFields=n.touchedFields,V=V||u.touchedFields&&ue!==C)}V&&M&&d.state.next(G)}return V?G:{}},D=(b,T,C,R)=>{const M=k(n.errors,b),V=u.isValid&&_e(T)&&n.isValid!==T;if(t.delayError&&C?(l=m(()=>A(b,C)),l(t.delayError)):(clearTimeout(c),l=null,C?te(n.errors,b,C):ge(n.errors,b)),(C?!lt(M,C):M)||!je(R)||V){const I={...R,...V&&_e(T)?{isValid:T}:{},errors:n.errors,name:b};n={...n,...I},d.state.next(I)}},j=async b=>{v(b,!0);const T=await t.resolver(i,t.context,qy(b||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(b),T},_=async b=>{const{errors:T}=await j(b);if(b)for(const C of b){const R=k(T,C);R?te(n.errors,C,R):ge(n.errors,C)}else n.errors=T;return T},F=async(b,T,C={valid:!0})=>{for(const R in b){const M=b[R];if(M){const{_f:V,...I}=M;if(V){const G=a.array.has(V.name),pe=M._f&&Xy(M._f);pe&&u.validatingFields&&v([R],!0);const ue=await aa(M,a.disabled,i,y,t.shouldUseNativeValidation&&!T,G);if(pe&&u.validatingFields&&v([R]),ue[V.name]&&(C.valid=!1,T))break;!T&&(k(ue,V.name)?G?$y(n.errors,ue,V.name):te(n.errors,V.name,ue[V.name]):ge(n.errors,V.name))}!je(I)&&await F(I,T,C)}}return C.valid},U=()=>{for(const b of a.unMount){const T=k(r,b);T&&(T._f.refs?T._f.refs.every(C=>!Ur(C)):!Ur(T._f.ref))&&Ne(b)}a.unMount=new Set},N=(b,T)=>!t.disabled&&(b&&T&&te(i,b,T),!lt(ne(),s)),O=(b,T,C)=>Kc(b,a,{...o.mount?i:fe(T)?s:qe(b)?{[b]:T}:T},C,T),z=b=>fr(k(o.mount?i:s,b,t.shouldUnregister?k(s,b,[]):[])),q=(b,T,C={})=>{const R=k(r,b);let M=T;if(R){const V=R._f;V&&(!V.disabled&&te(i,b,Jc(T,V)),M=er(V.ref)&&Te(T)?"":T,Xc(V.ref)?[...V.ref.options].forEach(I=>I.selected=M.includes(I.value)):V.refs?An(V.ref)?V.refs.length>1?V.refs.forEach(I=>(!I.defaultChecked||!I.disabled)&&(I.checked=Array.isArray(M)?!!M.find(G=>G===I.value):M===I.value)):V.refs[0]&&(V.refs[0].checked=!!M):V.refs.forEach(I=>I.checked=I.value===M):ii(V.ref)?V.ref.value="":(V.ref.value=M,V.ref.type||d.values.next({name:b,values:{...i}})))}(C.shouldDirty||C.shouldTouch)&&P(b,M,C.shouldTouch,C.shouldDirty,!0),C.shouldValidate&&me(b)},Y=(b,T,C)=>{for(const R in T){const M=T[R],V=`${b}.${R}`,I=k(r,V);(a.array.has(b)||he(M)||I&&!I._f)&&!xt(M)?Y(V,M,C):q(V,M,C)}},W=(b,T,C={})=>{const R=k(r,b),M=a.array.has(b),V=De(T);te(i,b,V),M?(d.array.next({name:b,values:{...i}}),(u.isDirty||u.dirtyFields)&&C.shouldDirty&&d.state.next({name:b,dirtyFields:Yt(s,i),isDirty:N(b,V)})):R&&!R._f&&!Te(V)?Y(b,V,C):q(b,V,C),na(b,a)&&d.state.next({...n}),d.values.next({name:o.mount?b:void 0,values:{...i}})},X=async b=>{o.mount=!0;const T=b.target;let C=T.name,R=!0;const M=k(r,C),V=()=>T.type?zr(M._f):Ic(b),I=G=>{R=Number.isNaN(G)||xt(G)&&isNaN(G.getTime())||lt(G,k(i,C,G))};if(M){let G,pe;const ue=V(),$e=b.type===Qn.BLUR||b.type===Qn.FOCUS_OUT,$t=!Yy(M._f)&&!t.resolver&&!k(n.errors,C)&&!M._f.deps||Zy($e,k(n.touchedFields,C),n.isSubmitted,p,f),Ge=na(C,a,$e);te(i,C,ue),$e?(M._f.onBlur&&M._f.onBlur(b),l&&l(0)):M._f.onChange&&M._f.onChange(b);const ht=P(C,ue,$e,!1),Gt=!je(ht)||Ge;if(!$e&&d.values.next({name:C,type:b.type,values:{...i}}),$t)return u.isValid&&(t.mode==="onBlur"&&$e?x():$e||x()),Gt&&d.state.next({name:C,...Ge?{}:ht});if(!$e&&Ge&&d.state.next({...n}),t.resolver){const{errors:mt}=await j([C]);if(I(ue),R){const gr=ca(n.errors,r,C),En=ca(mt,r,gr.name||C);G=En.error,C=En.name,pe=je(mt)}}else v([C],!0),G=(await aa(M,a.disabled,i,y,t.shouldUseNativeValidation))[C],v([C]),I(ue),R&&(G?pe=!1:u.isValid&&(pe=await F(r,!0)));R&&(M._f.deps&&me(M._f.deps),D(C,pe,G,ht))}},ee=(b,T)=>{if(k(n.errors,T)&&b.focus)return b.focus(),1},me=async(b,T={})=>{let C,R;const M=an(b);if(t.resolver){const V=await _(fe(b)?b:M);C=je(V),R=b?!M.some(I=>k(V,I)):C}else b?(R=(await Promise.all(M.map(async V=>{const I=k(r,V);return await F(I&&I._f?{[V]:I}:I)}))).every(Boolean),!(!R&&!n.isValid)&&x()):R=C=await F(r);return d.state.next({...!qe(b)||u.isValid&&C!==n.isValid?{}:{name:b},...t.resolver||!b?{isValid:C}:{},errors:n.errors}),T.shouldFocus&&!R&&ln(r,ee,b?M:a.mount),R},ne=b=>{const T={...o.mount?i:s};return fe(b)?T:qe(b)?k(T,b):b.map(C=>k(T,C))},Pe=(b,T)=>({invalid:!!k((T||n).errors,b),isDirty:!!k((T||n).dirtyFields,b),error:k((T||n).errors,b),isValidating:!!k(n.validatingFields,b),isTouched:!!k((T||n).touchedFields,b)}),Le=b=>{b&&an(b).forEach(T=>ge(n.errors,T)),d.state.next({errors:b?n.errors:{}})},Ee=(b,T,C)=>{const R=(k(r,b,{_f:{}})._f||{}).ref,M=k(n.errors,b)||{},{ref:V,message:I,type:G,...pe}=M;te(n.errors,b,{...pe,...T,ref:R}),d.state.next({name:b,errors:n.errors,isValid:!1}),C&&C.shouldFocus&&R&&R.focus&&R.focus()},Je=(b,T)=>He(b)?d.values.subscribe({next:C=>b(O(void 0,T),C)}):O(b,T,!0),Ne=(b,T={})=>{for(const C of b?an(b):a.mount)a.mount.delete(C),a.array.delete(C),T.keepValue||(ge(r,C),ge(i,C)),!T.keepError&&ge(n.errors,C),!T.keepDirty&&ge(n.dirtyFields,C),!T.keepTouched&&ge(n.touchedFields,C),!T.keepIsValidating&&ge(n.validatingFields,C),!t.shouldUnregister&&!T.keepDefaultValue&&ge(s,C);d.values.next({values:{...i}}),d.state.next({...n,...T.keepDirty?{isDirty:N()}:{}}),!T.keepIsValid&&x()},H=({disabled:b,name:T,field:C,fields:R})=>{(_e(b)&&o.mount||b||a.disabled.has(T))&&(b?a.disabled.add(T):a.disabled.delete(T),P(T,zr(C?C._f:k(R,T)._f),!1,!1,!0))},Q=(b,T={})=>{let C=k(r,b);const R=_e(T.disabled)||_e(t.disabled);return te(r,b,{...C||{},_f:{...C&&C._f?C._f:{ref:{name:b}},name:b,mount:!0,...T}}),a.mount.add(b),C?H({field:C,disabled:_e(T.disabled)?T.disabled:t.disabled,name:b}):S(b,!0,T.value),{...R?{disabled:T.disabled||t.disabled}:{},...t.progressive?{required:!!T.required,min:Zt(T.min),max:Zt(T.max),minLength:Zt(T.minLength),maxLength:Zt(T.maxLength),pattern:Zt(T.pattern)}:{},name:b,onChange:X,onBlur:X,ref:M=>{if(M){Q(b,T),C=k(r,b);const V=fe(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,I=Hy(V),G=C._f.refs||[];if(I?G.find(pe=>pe===V):V===C._f.ref)return;te(r,b,{_f:{...C._f,...I?{refs:[...G.filter(Ur),V,...Array.isArray(k(s,b))?[{}]:[]],ref:{type:V.type,name:b}}:{ref:V}}}),S(b,!1,void 0,V)}else C=k(r,b,{}),C._f&&(C._f.mount=!1),(t.shouldUnregister||T.shouldUnregister)&&!(Bc(a.array,b)&&o.action)&&a.unMount.add(b)}}},ye=()=>t.shouldFocusError&&ln(r,ee,a.mount),ve=b=>{_e(b)&&(d.state.next({disabled:b}),ln(r,(T,C)=>{const R=k(r,C);R&&(T.disabled=R._f.disabled||b,Array.isArray(R._f.refs)&&R._f.refs.forEach(M=>{M.disabled=R._f.disabled||b}))},0,!1))},re=(b,T)=>async C=>{let R;C&&(C.preventDefault&&C.preventDefault(),C.persist&&C.persist());let M=De(i);if(a.disabled.size)for(const V of a.disabled)te(M,V,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:V,values:I}=await j();n.errors=V,M=I}else await F(r);if(ge(n.errors,"root"),je(n.errors)){d.state.next({errors:{}});try{await b(M,C)}catch(V){R=V}}else T&&await T({...n.errors},C),ye(),setTimeout(ye);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:je(n.errors)&&!R,submitCount:n.submitCount+1,errors:n.errors}),R)throw R},L=(b,T={})=>{k(r,b)&&(fe(T.defaultValue)?W(b,De(k(s,b))):(W(b,T.defaultValue),te(s,b,De(T.defaultValue))),T.keepTouched||ge(n.touchedFields,b),T.keepDirty||(ge(n.dirtyFields,b),n.isDirty=T.defaultValue?N(b,De(k(s,b))):N()),T.keepError||(ge(n.errors,b),u.isValid&&x()),d.state.next({...n}))},Z=(b,T={})=>{const C=b?De(b):s,R=De(C),M=je(b),V=M?s:R;if(T.keepDefaultValues||(s=C),!T.keepValues){if(T.keepDirtyValues){const I=new Set([...a.mount,...Object.keys(Yt(s,i))]);for(const G of Array.from(I))k(n.dirtyFields,G)?te(V,G,k(i,G)):W(G,k(V,G))}else{if(ni&&fe(b))for(const I of a.mount){const G=k(r,I);if(G&&G._f){const pe=Array.isArray(G._f.refs)?G._f.refs[0]:G._f.ref;if(er(pe)){const ue=pe.closest("form");if(ue){ue.reset();break}}}}r={}}i=t.shouldUnregister?T.keepDefaultValues?De(s):{}:De(V),d.array.next({values:{...V}}),d.values.next({values:{...V}})}a={mount:T.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!T.keepIsValid||!!T.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:T.keepSubmitCount?n.submitCount:0,isDirty:M?!1:T.keepDirty?n.isDirty:!!(T.keepDefaultValues&&!lt(b,s)),isSubmitted:T.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:M?{}:T.keepDirtyValues?T.keepDefaultValues&&i?Yt(s,i):n.dirtyFields:T.keepDefaultValues&&b?Yt(s,b):T.keepDirty?n.dirtyFields:{},touchedFields:T.keepTouched?n.touchedFields:{},errors:T.keepErrors?n.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},oe=(b,T)=>Z(He(b)?b(i):b,T);return{control:{register:Q,unregister:Ne,getFieldState:Pe,handleSubmit:re,setError:Ee,_executeSchema:j,_getWatch:O,_getDirty:N,_updateValid:x,_removeUnmounted:U,_updateFieldArray:w,_updateDisabledField:H,_getFieldArray:z,_reset:Z,_resetDefaultValues:()=>He(t.defaultValues)&&t.defaultValues().then(b=>{oe(b,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:b=>{n={...n,...b}},_disableForm:ve,_subjects:d,_proxyFormState:u,_setErrors:E,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(b){o=b},get _defaultValues(){return s},get _names(){return a},set _names(b){a=b},get _formState(){return n},set _formState(b){n=b},get _options(){return t},set _options(b){t={...t,...b}}},trigger:me,register:Q,handleSubmit:re,watch:Je,setValue:W,getValues:ne,reset:oe,resetField:L,clearErrors:Le,unregister:Ne,setError:Ee,setFocus:(b,T={})=>{const C=k(r,b),R=C&&C._f;if(R){const M=R.refs?R.refs[0]:R.ref;M.focus&&(M.focus(),T.shouldSelect&&He(M.select)&&M.select())}},getFieldState:Pe}}function Qv(e={}){const t=J.useRef(void 0),n=J.useRef(void 0),[r,s]=J.useState({isDirty:!1,isValidating:!1,isLoading:He(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:He(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...ev(e),formState:r});const i=t.current.control;return i._options=e,si({subject:i._subjects.state,next:o=>{$c(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),J.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),J.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),J.useEffect(()=>{e.values&&!lt(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),J.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),J.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),J.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=Wc(r,i),t.current}var tv="Label",Qc=g.forwardRef((e,t)=>h.jsx(Ze.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Qc.displayName=tv;var eu=Qc;const nv=xs("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),tu=g.forwardRef(({className:e,...t},n)=>h.jsx(eu,{ref:n,className:$(nv(),e),...t}));tu.displayName=eu.displayName;const ex=Oy,nu=g.createContext({}),rv=({...e})=>h.jsx(nu.Provider,{value:{name:e.name},children:h.jsx(zy,{...e})}),mr=()=>{const e=g.useContext(nu),t=g.useContext(ru),{getFieldState:n,formState:r}=hr(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},ru=g.createContext({}),su=g.forwardRef(({className:e,...t},n)=>{const r=g.useId();return h.jsx(ru.Provider,{value:{id:r},children:h.jsx("div",{ref:n,className:$("space-y-2",e),...t})})});su.displayName="FormItem";const iu=g.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=mr();return h.jsx(tu,{ref:n,className:$(r&&"text-destructive",e),htmlFor:s,...t})});iu.displayName="FormLabel";const ou=g.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=mr();return h.jsx(xn,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});ou.displayName="FormControl";const sv=g.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=mr();return h.jsx("p",{ref:n,id:r,className:$("text-[0.8rem] text-muted-foreground",e),...t})});sv.displayName="FormDescription";const au=g.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=mr(),o=s?String(s==null?void 0:s.message):t;return o?h.jsx("p",{ref:r,id:i,className:$("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});au.displayName="FormMessage";const fs=g.forwardRef(({className:e,type:t,...n},r)=>t!=="file"?h.jsx("input",{type:t,className:$("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}):h.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[h.jsx("input",{ref:r,accept:".pdf, .png, .jpeg, .jpg",type:t,className:$("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),h.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[h.jsx(yf,{className:"cursor-pointer",size:16})," Upload file"]})]}));fs.displayName="Input";const lu=g.forwardRef(({className:e,...t},n)=>h.jsx("textarea",{className:$("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));lu.displayName="Textarea";const tx=({control:e,name:t,label:n,placeholder:r,error:s,type:i="text",className:o,disabled:a,textArea:l=!1,textDark:c,supporText:u,handleChange:d,onPrimary:f=!1})=>h.jsx(rv,{control:e,name:t,render:({field:p})=>h.jsxs(su,{className:$(o,"flex flex-col w-full relative"),children:[h.jsx(iu,{className:$("text-xl",f&&"!text-on_primary",c?"text-on_surface":"text-on_surface_v"),children:n}),h.jsx(ou,{children:h.jsx(h.Fragment,{children:l?h.jsx(lu,{rows:3,...p,placeholder:r,className:$(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?h.jsx(fs,{...p,type:i,placeholder:r,disabled:a,className:$(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):h.jsxs("div",{className:"relative",children:[h.jsx(fs,{type:"file",placeholder:r,onChange:y=>{var x;const m=((x=y.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",m),p.onChange(m),d&&d(y)},disabled:a}),p.value&&h.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",p.value.name]})]})})}),h.jsx(au,{className:$("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",s&&f?"text-teritary_04":"text-[#BA1A1A]"),children:s?s.message:u})]})}),nx=({className:e,delay:t=.15})=>h.jsxs(Wn.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:$("flex flex-col gap-8 my-16",e),children:[h.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),h.jsx(Ae,{className:"w-fit mx-auto",to:"/",children:h.jsx(Fe,{variant:"outline",children:"Вернуться на главную"})})]}),iv=({className:e,slides:t,active:n,scrollTo:r})=>h.jsx("div",{className:$("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((s,i)=>h.jsx("span",{onClick:()=>r==null?void 0:r(i),className:$(n===i?"dot-active":"dot")},i))}),cu=[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}],rx=()=>h.jsx("section",{className:"",children:h.jsxs(Me,{children:[h.jsx("h2",{className:"h2 mb-10 text-center",children:"Тематические направления выставки"}),h.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:cu.map(e=>h.jsx(cl,{...e,iconClassName:"bg-teritary_04"},e.title))})]})}),sx=({className:e})=>h.jsx("section",{className:$("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:h.jsxs(Me,{children:[h.jsx("h3",{className:"h2 mb-4",children:"Отрасли"}),h.jsx("p",{className:"text-lg text-primary_09 mb-6",children:"Мероприятие объединит ключевых игроков в таких отраслях, как:"}),h.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:cu.map(t=>h.jsx(cl,{className:"!bg-[#F5F4F4]",...t},t.title))}),h.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[h.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-primary_09"}),h.jsx("p",{className:"text-18 !text-primary_09",children:"Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки."})]})]})}),uu=[{name:"Монтаж выставки",date:"12 мая – 10 июня 2025 года"},{name:"Работа",date:"11–13 июня 2025 года"},{name:"Демонтаж",date:"13–14 июня 2025 года"}],ov=[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/home/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/home/mobile.svg"}],ix=({className:e})=>h.jsx("section",{className:$("bg-surface_high pt-10 pb-20",e),children:h.jsxs(Me,{children:[h.jsx("h2",{className:"h2 mb-10",children:"Время выставки"}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:uu.map(t=>g.createElement(ul,{...t,key:t.name,className:"w-full"}))}),h.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:ov.map(t=>g.createElement(ah,{...t,key:t.title,className:"w-full"}))}),h.jsx(Ae,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:h.jsx(Fe,{className:"w-full",children:"Забронируйте стенд "})})]})]})}),ox=({className:e})=>h.jsx("section",{className:$("bg-bg_surface_container py-10 md:py-[160px]",e),children:h.jsxs(Me,{children:[h.jsx("h3",{className:"h2 mb-6",children:"Время выставки"}),h.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:uu.map(t=>g.createElement(ul,{bottomClassName:"!bg-white rounded-b-[2px]",...t,key:t.name,className:"w-full"}))})]})}),ax=({className:e})=>h.jsxs("section",{className:$(" gap-6 relative overflow-hidden",e),children:[h.jsxs(Me,{className:"md:py-20 py-10 ",children:[h.jsx("h3",{className:"h2 mb-6 xl:max-w-[496px]",children:"Место проведения"}),h.jsx("p",{className:"text-lg text-on_surface_v normal xl:max-w-[496px] mb-10",children:"Торгово-промышленная палата Туркменистана создана в целях содействия развитию экономики Туркменистана, ее интегрированию в мировую хозяйственную систему, формированию современной промышленной, финансовой и торговой инфраструктуры, создания благоприятных условий для предпринимательской деятельности, оказания содействия в установлении торгово-экономических, научных и технических связей с зарубежными партнерами."}),h.jsx("div",{className:"size-full xl:hidden",children:h.jsx("img",{src:"/map.png",alt:"map",className:"size-full object-cover"})})]}),h.jsx("div",{className:"h-full 2xl:w-[850px] xl:w-[650px] xl:block hidden absolute top-0 right-0",children:h.jsx("img",{src:"/map.png",alt:"",className:"size-full object-cover"})})]}),lx=({className:e})=>h.jsxs("section",{className:$("md:py-20 py-10 relative overflow-hidden",e),children:[h.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),h.jsxs(Me,{children:[h.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:"Приглашение к участию"}),h.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:"Торгово-промышленная палата Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана на глобальной экономической арене."}),h.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[h.jsx(Ae,{to:"/stend-form",className:"w-full",children:h.jsx(Fe,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:"Забронировать стенд"})}),h.jsx(Ae,{to:"/B2B-B2G",className:"w-full",children:h.jsx(Fe,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:"B2B | B2G встречи"})})]})]})]}),cx=()=>h.jsxs(Me,{className:"flex flex-col md:my-20 my-10 gap-16",children:[h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Выставка-ярмарка «TurkmenTextile Expo 2025» "}),h.jsxs("p",{className:"p",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Перспективы"}),h.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 открывает широкие перспективы для участников:"}),h.jsxs("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 p",children:[h.jsx("li",{children:"Расширение деловых связей — уникальная возможность для B2B и B2G-встреч, заключения торговых соглашений и установления стратегических партнёрств."}),h.jsx("li",{children:"Доступ к инновациям — знакомство с передовыми технологиями текстильного производства, экологичными материалами и трендами устойчивого дизайна."}),h.jsx("li",{children:"Повышение экспортного потенциала — участие в форумах и семинарах, посвящённых продвижению продукции на новые рынки."}),h.jsx("li",{children:"Обучение и развитие — мастер-классы и лекции от ведущих мировых экспертов помогут участникам углубить знания и освоить современные подходы в области текстильной индустрии."}),h.jsx("li",{children:"Культурный обмен — возможность продемонстрировать богатое текстильное наследие Туркменистана и вдохновиться культурными традициями других стран."})]})]}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Направления"}),h.jsx("h4",{className:"p",children:"Выставка охватывает ключевые аспекты текстильной и модной индустрии, включая:"}),h.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[h.jsx("li",{children:"Традиционный текстиль: экспозиции, шёлковым изделиям и ремесленным техникам Туркменистана."}),h.jsx("li",{children:"Инновационные материалы и технологии: зоны, где демонстрируются устойчивые материалы, 3D-ткацкие технологии и экологически чистые красители."}),h.jsx("li",{children:"Модные показы: ежедневные подиумные шоу с участием местных и международных дизайнеров, включая зарубежных модельеров."}),h.jsx("li",{children:"Маркетплейс для переговоров: пространство для встреч между экспортёрами и импортёрами."}),h.jsx("li",{children:"Оборудование для текстильной промышленности: современные технологии и машины для повышения эффективности и конкурентоспособности."}),h.jsx("li",{children:"Образовательные зоны: интерактивные экспозиции и семинары на тему устойчивости, дизайна и переработки."})]}),h.jsx("p",{className:"text-18",children:"Участники смогут обсудить современные технологии, лучшие практики и эффективные стратегии для устойчивого бизнеса."})]}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Партнёрство и спонсорство"}),h.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 приглашает к сотрудничеству международные организации, ассоциации и бренды для продвижения своих продуктов и услуг. Партнёры получат:"}),h.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[h.jsx("li",{children:"Признание на международной арене — участие в масштабном событии, привлекающем ведущих игроков текстильной и модной индустрий."}),h.jsx("li",{children:"Рекламные возможности — интеграция бренда в маркетинговую кампанию выставки, включая digital и офлайн-каналы."}),h.jsx("li",{children:"Вклад в развитие индустрии — поддержка инноваций, устойчивых практик и культурного наследия."})]})]})]});function av(e){return Object.prototype.toString.call(e)==="[object Object]"}function ua(e){return av(e)||Array.isArray(e)}function lv(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ai(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],l=t[o];return typeof a=="function"?`${a}`==`${l}`:!ua(a)||!ua(l)?a===l:ai(a,l)})}function da(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function cv(e,t){if(e.length!==t.length)return!1;const n=da(e),r=da(t);return n.every((s,i)=>{const o=r[i];return ai(s,o)})}function li(e){return typeof e=="number"}function hs(e){return typeof e=="string"}function pr(e){return typeof e=="boolean"}function fa(e){return Object.prototype.toString.call(e)==="[object Object]"}function le(e){return Math.abs(e)}function ci(e){return Math.sign(e)}function cn(e,t){return le(e-t)}function uv(e,t){if(e===0||t===0||le(e)<=le(t))return 0;const n=cn(le(e),le(t));return le(n/e)}function dv(e){return Math.round(e*100)/100}function gn(e){return yn(e).map(Number)}function Ue(e){return e[Cn(e)]}function Cn(e){return Math.max(0,e.length-1)}function ui(e,t){return t===Cn(e)}function ha(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function yn(e){return Object.keys(e)}function du(e,t){return[e,t].reduce((n,r)=>(yn(r).forEach(s=>{const i=n[s],o=r[s],a=fa(i)&&fa(o);n[s]=a?du(i,o):o}),n),{})}function ms(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function fv(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(l){return i(l)/2}function i(l){return t-l}function o(l,c){return hs(e)?n[e](l):e(t,l,c)}return{measure:o}}function vn(){let e=[];function t(s,i,o,a={passive:!0}){let l;if("addEventListener"in s)s.addEventListener(i,o,a),l=()=>s.removeEventListener(i,o,a);else{const c=s;c.addListener(o),l=()=>c.removeListener(o)}return e.push(l),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function hv(e,t,n,r){const s=vn(),i=1e3/60;let o=null,a=0,l=0;function c(){s.add(e,"visibilitychange",()=>{e.hidden&&y()})}function u(){p(),s.clear()}function d(x){if(!l)return;o||(o=x,n(),n());const v=x-o;for(o=x,a+=v;a>=i;)n(),a-=i;const w=a/i;r(w),l&&(l=t.requestAnimationFrame(d))}function f(){l||(l=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(l),o=null,a=0,l=0}function y(){o=null,a=0}return{init:c,destroy:u,start:f,stop:p,update:n,render:r}}function mv(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),l=d();function c(y){const{height:m,width:x}=y;return r?m:x}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(y){return y*o}return{scroll:s,cross:i,startEdge:a,endEdge:l,measureSize:c,direction:f}}function Tt(e=0,t=0){const n=le(e-t);function r(c){return ct}function i(c){return r(c)||s(c)}function o(c){return i(c)?r(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}function fu(e,t,n){const{constrain:r}=Tt(0,e),s=e+1;let i=o(t);function o(f){return n?le((s+f)%s):r(f)}function a(){return i}function l(f){return i=o(f),d}function c(f){return u().set(a()+f)}function u(){return fu(e,a(),n)}const d={get:a,set:l,add:c,clone:u};return d}function pv(e,t,n,r,s,i,o,a,l,c,u,d,f,p,y,m,x,v,w){const{cross:A,direction:E}=e,S=["INPUT","SELECT","TEXTAREA"],P={passive:!1},D=vn(),j=vn(),_=Tt(50,225).constrain(p.measure(20)),F={mouse:300,touch:400},U={mouse:500,touch:600},N=y?43:25;let O=!1,z=0,q=0,Y=!1,W=!1,X=!1,ee=!1;function me(L){if(!w)return;function Z(be){(pr(w)||w(L,be))&&Ne(be)}const oe=t;D.add(oe,"dragstart",be=>be.preventDefault(),P).add(oe,"touchmove",()=>{},P).add(oe,"touchend",()=>{}).add(oe,"touchstart",Z).add(oe,"mousedown",Z).add(oe,"touchcancel",Q).add(oe,"contextmenu",Q).add(oe,"click",ye,!0)}function ne(){D.clear(),j.clear()}function Pe(){const L=ee?n:t;j.add(L,"touchmove",H,P).add(L,"touchend",Q).add(L,"mousemove",H,P).add(L,"mouseup",Q)}function Le(L){const Z=L.nodeName||"";return S.includes(Z)}function Ee(){return(y?U:F)[ee?"mouse":"touch"]}function Je(L,Z){const oe=d.add(ci(L)*-1),be=u.byDistance(L,!y).distance;return y||le(L)<_?be:x&&Z?be*.5:u.byIndex(oe.get(),0).distance}function Ne(L){const Z=ms(L,r);ee=Z,X=y&&Z&&!L.buttons&&O,O=cn(s.get(),o.get())>=2,!(Z&&L.button!==0)&&(Le(L.target)||(Y=!0,i.pointerDown(L),c.useFriction(0).useDuration(0),s.set(o),Pe(),z=i.readPoint(L),q=i.readPoint(L,A),f.emit("pointerDown")))}function H(L){if(!ms(L,r)&&L.touches.length>=2)return Q(L);const oe=i.readPoint(L),be=i.readPoint(L,A),Oe=cn(oe,z),We=cn(be,q);if(!W&&!ee&&(!L.cancelable||(W=Oe>We,!W)))return Q(L);const b=i.pointerMove(L);Oe>m&&(X=!0),c.useFriction(.3).useDuration(.75),a.start(),s.add(E(b)),L.preventDefault()}function Q(L){const oe=u.byDistance(0,!1).index!==d.get(),be=i.pointerUp(L)*Ee(),Oe=Je(E(be),oe),We=uv(be,Oe),b=N-10*We,T=v+We/50;W=!1,Y=!1,j.clear(),c.useDuration(b).useFriction(T),l.distance(Oe,!y),ee=!1,f.emit("pointerUp")}function ye(L){X&&(L.stopPropagation(),L.preventDefault(),X=!1)}function ve(){return Y}return{init:me,destroy:ne,pointerDown:ve}}function gv(e,t){let r,s;function i(d){return d.timeStamp}function o(d,f){const y=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(ms(d,t)?d:d.touches[0])[y]}function a(d){return r=d,s=d,o(d)}function l(d){const f=o(d)-o(s),p=i(d)-i(r)>170;return s=d,p&&(r=d),f}function c(d){if(!r||!s)return 0;const f=o(s)-o(r),p=i(d)-i(r),y=i(d)-i(s)>170,m=f/p;return p&&!y&&le(m)>.1?m:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:o}}function yv(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function vv(e){function t(r){return e*(r/100)}return{measure:t}}function xv(e,t,n,r,s,i,o){const a=[e].concat(r);let l,c,u=[],d=!1;function f(x){return s.measureSize(o.measure(x))}function p(x){if(!i)return;c=f(e),u=r.map(f);function v(w){for(const A of w){if(d)return;const E=A.target===e,S=r.indexOf(A.target),P=E?c:u[S],D=f(E?e:r[S]);if(le(D-P)>=.5){x.reInit(),t.emit("resize");break}}}l=new ResizeObserver(w=>{(pr(i)||i(x,w))&&v(w)}),n.requestAnimationFrame(()=>{a.forEach(w=>l.observe(w))})}function y(){d=!0,l&&l.disconnect()}return{init:p,destroy:y}}function bv(e,t,n,r,s,i){let o=0,a=0,l=s,c=i,u=e.get(),d=0;function f(){const P=r.get()-e.get(),D=!l;let j=0;return D?(o=0,n.set(r),e.set(r),j=P):(n.set(e),o+=P/l,o*=c,u+=o,e.add(o),j=u-d),a=ci(j),d=u,S}function p(){const P=r.get()-t.get();return le(P)<.001}function y(){return l}function m(){return a}function x(){return o}function v(){return A(s)}function w(){return E(i)}function A(P){return l=P,S}function E(P){return c=P,S}const S={direction:m,duration:y,velocity:x,seek:f,settled:p,useBaseFriction:w,useBaseDuration:v,useFriction:E,useDuration:A};return S}function wv(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=Tt(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(p){if(!c())return;const y=e.reachedMin(t.get())?"min":"max",m=le(e[y]-t.get()),x=n.get()-t.get(),v=a.constrain(m/o);n.subtract(x*v),!p&&le(x){const{min:x,max:v}=i,w=i.constrain(y),A=!m,E=ui(n,m);return A?v:E||c(x,w)?x:c(v,w)?v:w}).map(y=>parseFloat(y.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:y,max:m}=a;return o.slice(y,m)}return{snapsContained:l,scrollContainLimit:a}}function Tv(e,t,n){const r=t[0],s=n?r-e:Ue(t);return{limit:Tt(s,r)}}function Av(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:l}=Tt(i,o);function c(f){return f===1?l(n.get()):f===-1?a(n.get()):!1}function u(f){if(!c(f))return;const p=e*(f*-1);r.forEach(y=>y.add(p))}return{loop:u}}function Cv(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function Pv(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,l=d().map(t.measure),c=f(),u=p();function d(){return a(r).map(m=>Ue(m)[o]-m[0][i]).map(le)}function f(){return r.map(m=>n[i]-m[i]).map(m=>-le(m))}function p(){return a(c).map(m=>m[0]).map((m,x)=>m+l[x])}return{snaps:c,snapsAligned:u}}function Ev(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:l}=r,c=u();function u(){const f=o(i),p=!e||t==="keepSnaps";return n.length===1?[i]:p?f:f.slice(a,l).map((y,m,x)=>{const v=!m,w=ui(x,m);if(v){const A=Ue(x[0])+1;return ha(A)}if(w){const A=Cn(i)-Ue(x)[0]+1;return ha(A,Ue(x)[0])}return y})}return{slideRegistry:c}}function Dv(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function l(y){return y.concat().sort((m,x)=>le(m)-le(x))[0]}function c(y){const m=e?o(y):a(y),x=t.map((w,A)=>({diff:u(w-m,0),index:A})).sort((w,A)=>le(w.diff)-le(A.diff)),{index:v}=x[0];return{index:v,distance:m}}function u(y,m){const x=[y,y+n,y-n];if(!e)return y;if(!m)return l(x);const v=x.filter(w=>ci(w)===m);return v.length?l(v):Ue(x)-n}function d(y,m){const x=t[y]-s.get(),v=u(x,m);return{index:y,distance:v}}function f(y,m){const x=s.get()+y,{index:v,distance:w}=c(x),A=!e&&i(x);if(!m||A)return{index:v,distance:y};const E=t[v]-w,S=y+u(E,0);return{index:v,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function jv(e,t,n,r,s,i,o){function a(d){const f=d.distance,p=d.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function l(d,f){const p=s.byDistance(d,f);a(p)}function c(d,f){const p=t.clone().set(d),y=s.byIndex(p.get(),f);a(y)}return{distance:l,index:c}}function Nv(e,t,n,r,s,i,o,a){const l={passive:!0,capture:!0};let c=0;function u(p){if(!a)return;function y(m){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const w=n.findIndex(A=>A.includes(m));li(w)&&(s.useDuration(0),r.index(w,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((m,x)=>{i.add(m,"focus",v=>{(pr(a)||a(p,v))&&y(x)},l)})}function d(p){p.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function tn(e){let t=e;function n(){return t}function r(l){t=o(l)}function s(l){t+=o(l)}function i(l){t-=o(l)}function o(l){return li(l)?l:l.get()}return{get:n,set:r,add:s,subtract:i}}function hu(e,t){const n=e.scroll==="x"?o:a,r=t.style;let s=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(i)return;const p=dv(e.direction(f));p!==s&&(r.transform=n(p),s=p)}function c(f){i=!f}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function Vv(e,t,n,r,s,i,o,a,l){const u=gn(s),d=gn(s).reverse(),f=v().concat(w());function p(D,j){return D.reduce((_,F)=>_-s[F],j)}function y(D,j){return D.reduce((_,F)=>p(_,j)>0?_.concat([F]):_,[])}function m(D){return i.map((j,_)=>({start:j-r[_]+.5+D,end:j+t-.5+D}))}function x(D,j,_){const F=m(j);return D.map(U=>{const N=_?0:-n,O=_?n:0,z=_?"end":"start",q=F[U][z];return{index:U,loopPoint:q,slideLocation:tn(-1),translate:hu(e,l[U]),target:()=>a.get()>q?N:O}})}function v(){const D=o[0],j=y(d,D);return x(j,n,!1)}function w(){const D=t-o[0]-1,j=y(u,D);return x(j,-n,!0)}function A(){return f.every(({index:D})=>{const j=u.filter(_=>_!==D);return p(j,t)<=.1})}function E(){f.forEach(D=>{const{target:j,translate:_,slideLocation:F}=D,U=j();U!==F.get()&&(_.to(U),F.set(U))})}function S(){f.forEach(D=>D.translate.clear())}return{canLoop:A,clear:S,loop:E,loopPoints:f}}function Mv(e,t,n){let r,s=!1;function i(l){if(!n)return;function c(u){for(const d of u)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(pr(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function Rv(e,t,n,r){const s={};let i=null,o=null,a,l=!1;function c(){a=new IntersectionObserver(y=>{l||(y.forEach(m=>{const x=t.indexOf(m.target);s[x]=m}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(y=>a.observe(y))}function u(){a&&a.disconnect(),l=!0}function d(y){return yn(s).reduce((m,x)=>{const v=parseInt(x),{isIntersecting:w}=s[v];return(y&&w||!y&&!w)&&m.push(v),m},[])}function f(y=!0){if(y&&i)return i;if(!y&&o)return o;const m=d(y);return y&&(i=m),y||(o=m),m}return{init:c,destroy:u,get:f}}function kv(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:l}=e,c=n[0]&&s,u=y(),d=m(),f=n.map(o),p=x();function y(){if(!c)return 0;const w=n[0];return le(t[a]-w[a])}function m(){if(!c)return 0;const w=i.getComputedStyle(Ue(r));return parseFloat(w.getPropertyValue(`margin-${l}`))}function x(){return n.map((w,A,E)=>{const S=!A,P=ui(E,A);return S?f[A]+u:P?f[A]+d:E[A+1][a]-w[a]}).map(le)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function _v(e,t,n,r,s,i,o,a,l){const{startEdge:c,endEdge:u,direction:d}=e,f=li(n);function p(v,w){return gn(v).filter(A=>A%w===0).map(A=>v.slice(A,A+w))}function y(v){return v.length?gn(v).reduce((w,A,E)=>{const S=Ue(w)||0,P=S===0,D=A===Cn(v),j=s[c]-i[S][c],_=s[c]-i[A][u],F=!r&&P?d(o):0,U=!r&&D?d(a):0,N=le(_-U-(j+F));return E&&N>t+l&&w.push(A),D&&w.push(v.length),w},[]).map((w,A,E)=>{const S=Math.max(E[A-1]||0);return v.slice(S,w)}):[]}function m(v){return f?p(v,n):y(v)}return{groupSlides:m}}function Fv(e,t,n,r,s,i,o){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:y,inViewThreshold:m,slidesToScroll:x,skipSnaps:v,containScroll:w,watchResize:A,watchSlides:E,watchDrag:S,watchFocus:P}=i,D=2,j=yv(),_=j.measure(t),F=n.map(j.measure),U=mv(l,c),N=U.measureSize(_),O=vv(N),z=fv(a,N),q=!d&&!!w,Y=d||!!w,{slideSizes:W,slideSizesWithGaps:X,startGap:ee,endGap:me}=kv(U,_,F,n,Y,s),ne=_v(U,N,x,d,_,F,ee,me,D),{snaps:Pe,snapsAligned:Le}=Pv(U,z,_,F,ne),Ee=-Ue(Pe)+Ue(X),{snapsContained:Je,scrollContainLimit:Ne}=Sv(N,Ee,Le,w,D),H=q?Je:Le,{limit:Q}=Tv(Ee,H,d),ye=fu(Cn(H),u,d),ve=ye.clone(),re=gn(n),L=({dragHandler:Ge,scrollBody:ht,scrollBounds:Gt,options:{loop:mt}})=>{mt||Gt.constrain(Ge.pointerDown()),ht.seek()},Z=({scrollBody:Ge,translate:ht,location:Gt,offsetLocation:mt,previousLocation:gr,scrollLooper:En,slideLooper:gu,dragHandler:yu,animation:vu,eventHandler:di,scrollBounds:xu,options:{loop:fi}},hi)=>{const mi=Ge.settled(),bu=!xu.shouldConstrain(),pi=fi?mi:mi&&bu;pi&&!yu.pointerDown()&&(vu.stop(),di.emit("settle")),pi||di.emit("scroll");const wu=Gt.get()*hi+gr.get()*(1-hi);mt.set(wu),fi&&(En.loop(Ge.direction()),gu.loop()),ht.to(mt.get())},oe=hv(r,s,()=>L($t),Ge=>Z($t,Ge)),be=.68,Oe=H[ye.get()],We=tn(Oe),b=tn(Oe),T=tn(Oe),C=tn(Oe),R=bv(We,T,b,C,f,be),M=Dv(d,H,Ee,Q,C),V=jv(oe,ye,ve,R,M,C,o),I=Cv(Q),G=vn(),pe=Rv(t,n,o,m),{slideRegistry:ue}=Ev(q,w,H,Ne,ne,re),$e=Nv(e,n,ue,V,R,G,o,P),$t={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:_,slideRects:F,animation:oe,axis:U,dragHandler:pv(U,e,r,s,C,gv(U,s),We,oe,V,R,M,ye,o,O,p,y,v,be,S),eventStore:G,percentOfView:O,index:ye,indexPrevious:ve,limit:Q,location:We,offsetLocation:T,previousLocation:b,options:i,resizeHandler:xv(t,o,s,n,U,A,j),scrollBody:R,scrollBounds:wv(Q,T,C,R,O),scrollLooper:Av(Ee,Q,T,[We,T,b,C]),scrollProgress:I,scrollSnapList:H.map(I.get),scrollSnaps:H,scrollTarget:M,scrollTo:V,slideLooper:Vv(U,N,Ee,W,X,Pe,H,T,n),slideFocus:$e,slidesHandler:Mv(t,o,E),slidesInView:pe,slideIndexes:re,slideRegistry:ue,slidesToScroll:ne,target:C,translate:hu(U,t)};return $t}function Lv(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function s(c){return r(c).forEach(u=>u(t,c)),l}function i(c,u){return e[c]=r(c).concat([u]),l}function o(c,u){return e[c]=r(c).filter(d=>d!==u),l}function a(){e={}}const l={init:n,emit:s,off:o,on:i,clear:a};return l}const Ov={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Iv(e){function t(i,o){return du(i,o||{})}function n(i){const o=i.breakpoints||{},a=yn(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(i,a)}function r(i){return i.map(o=>yn(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Bv(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function rr(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=Iv(s),o=Bv(i),a=vn(),l=Lv(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:p,emit:y}=l,m=U;let x=!1,v,w=c(Ov,rr.globalOptions),A=c(w),E=[],S,P,D;function j(){const{container:re,slides:L}=A;P=(hs(re)?e.querySelector(re):re)||e.children[0];const oe=hs(L)?P.querySelectorAll(L):L;D=[].slice.call(oe||P.children)}function _(re){const L=Fv(e,P,D,r,s,re,l);if(re.loop&&!L.slideLooper.canLoop()){const Z=Object.assign({},re,{loop:!1});return _(Z)}return L}function F(re,L){x||(w=c(w,re),A=u(w),E=L||E,j(),v=_(A),d([w,...E.map(({options:Z})=>Z)]).forEach(Z=>a.add(Z,"change",U)),A.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(ve),v.eventHandler.init(ve),v.resizeHandler.init(ve),v.slidesHandler.init(ve),v.options.loop&&v.slideLooper.loop(),P.offsetParent&&D.length&&v.dragHandler.init(ve),S=o.init(ve,E)))}function U(re,L){const Z=ne();N(),F(c({startIndex:Z},re),L),l.emit("reInit")}function N(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),a.clear()}function O(){x||(x=!0,a.clear(),N(),l.emit("destroy"),l.clear())}function z(re,L,Z){!A.active||x||(v.scrollBody.useBaseFriction().useDuration(L===!0?0:A.duration),v.scrollTo.index(re,Z||0))}function q(re){const L=v.index.add(1).get();z(L,re,-1)}function Y(re){const L=v.index.add(-1).get();z(L,re,1)}function W(){return v.index.add(1).get()!==ne()}function X(){return v.index.add(-1).get()!==ne()}function ee(){return v.scrollSnapList}function me(){return v.scrollProgress.get(v.location.get())}function ne(){return v.index.get()}function Pe(){return v.indexPrevious.get()}function Le(){return v.slidesInView.get()}function Ee(){return v.slidesInView.get(!1)}function Je(){return S}function Ne(){return v}function H(){return e}function Q(){return P}function ye(){return D}const ve={canScrollNext:W,canScrollPrev:X,containerNode:Q,internalEngine:Ne,destroy:O,off:p,on:f,emit:y,plugins:Je,previousScrollSnap:Pe,reInit:m,rootNode:H,scrollNext:q,scrollPrev:Y,scrollProgress:me,scrollSnapList:ee,scrollTo:z,selectedScrollSnap:ne,slideNodes:ye,slidesInView:Le,slidesNotInView:Ee};return F(t,n),setTimeout(()=>l.emit("init"),0),ve}rr.globalOptions=void 0;function Pn(e={},t=[]){const n=g.useRef(e),r=g.useRef(t),[s,i]=g.useState(),[o,a]=g.useState(),l=g.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return g.useEffect(()=>{ai(n.current,e)||(n.current=e,l())},[e,l]),g.useEffect(()=>{cv(r.current,t)||(r.current=t,l())},[t,l]),g.useEffect(()=>{if(lv()&&o){rr.globalOptions=Pn.globalOptions;const c=rr(o,n.current,r.current);return i(c),()=>c.destroy()}else i(void 0)},[o,i]),[a,s]}Pn.globalOptions=void 0;const Uv=[{title:"План выставки",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Забронировать стенд",link:"/stend-form"},{title:"Список участников ",link:""},{title:"B2B | B2G встречи",link:"/B2B-B2G"}],ux=()=>{const[e]=Pn(),t=us("(min-width: 1024px)"),n=us("(min-width: 768px)");function r(){return t?"/banners/ru/l.jpg":n?"/banners/ru/m.jpg":"/banners/ru/s.jpg"}return h.jsxs("section",{className:"flex flex-col gap-5",children:[h.jsx("div",{ref:e,className:"embla",children:h.jsx("div",{className:"embla__container",children:h.jsx("div",{className:"embla__slide",children:h.jsx("img",{src:r(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),h.jsx(Me,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:Uv.map(({title:s,link:i,blank:o})=>h.jsx(Ae,{target:o?"_blank":"",to:i,className:"w-full",children:h.jsx(Fe,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:s})},s))})]})},zv=[{nums:"8,400 m²",text:"выставочной площади"},{nums:"10000+",text:"Посетители посетят выставку"},{nums:"100+",text:"Экспоненты из более чем 30 стран"},{nums:"80%",text:"Участники принимают участие в принятии решений о закупках"}],dx=()=>{const[e]=Pn();return h.jsx("section",{children:h.jsxs(Me,{className:"flex flex-col gap-6",children:[h.jsxs("div",{className:"text-center",children:[h.jsxs("h2",{className:"h2 md:mb-3 mb-6 text-left sm:text-center",children:["Выставка-ярмарка «TurkmenTextile Expo 2025» в Ашхабаде"," "]}),h.jsxs("p",{className:"md:text-base text-sm normal text-left sm:text-center text-[#454545]",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),h.jsx("div",{ref:e,className:"embla overflow-hidden",children:h.jsx("div",{className:"flex embla__container items-center gap-6",children:zv.map(t=>h.jsx(oh,{...t,className:"embla__slide flex-[0_0_288px]"},t.text))})}),h.jsx(Ae,{to:"/about",className:"mx-auto",children:h.jsx(Fe,{variant:"outline",children:"Подробнее о выставке"})})]})})},fx=()=>{const[e,t]=Pn({align:"start"}),[n,r]=g.useState(0),s=g.useCallback(i=>{t&&t.scrollTo(i)},[t]);return g.useEffect(()=>{if(!t)return;const i=()=>{r(t.selectedScrollSnap())};return t.on("select",i),()=>{t.off("select",i)}},[t]),h.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:h.jsx(Me,{children:h.jsxs("div",{ref:e,className:"embla ",children:[h.jsxs("div",{className:"mb-2 flex gap-6 embla__container",children:[h.jsx(_i,{btnText:"Скачать путеводитель",img:"/offer-1.png",className:"embla__slide flex-[0_0_300px] md:flex-[0_0_600px]",title:"Гостиницы, трансфер, визы",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем"}),h.jsx(_i,{btnText:"Скачать план выставки",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",img:"/offer-2.png",className:"embla__slide flex-[0_0_300px] md:flex-[0_0_600px]",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов"})]}),h.jsx(iv,{className:"xl:hidden",scrollTo:s,active:n,slides:2})]})})})},mu=[{title:"Медиа",link:""},{title:"Контакты",link:"/contacts"}],pu=[{title:"О выставке",link:"/about"},{title:"Посетителям",link:""},{title:"Экспонентам",link:""}],hx=()=>h.jsxs("header",{children:[h.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:h.jsxs(Me,{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(hf,{}),h.jsx("h4",{className:"text-sm",children:"Ашхабад, Туркменистан"})]}),h.jsx("nav",{className:"flex items-center gap-6",children:mu.map(({title:e,link:t})=>h.jsx(Ae,{className:"py-2",to:t,children:e},e))})]}),h.jsx("div",{className:"flex items-center gap-6",children:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(pf,{size:16,strokeWidth:"3px"}),h.jsx("h4",{className:"text-sm ",children:"+99371871812"})]})})]})}),h.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:h.jsxs(Me,{className:"flex items-center justify-between ",children:[h.jsxs("div",{className:"flex items-center gap-8",children:[h.jsx(Ae,{to:"/",children:h.jsx(ll,{})}),h.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:pu.map(({title:e,link:t})=>h.jsxs(Ae,{to:t,className:"flex items-center gap-2",children:[e," ",h.jsx("img",{src:"/chevron.svg"})]},e))})]}),h.jsx("div",{className:"flex items-center",children:h.jsx(Wv,{})}),h.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[h.jsx(Ae,{to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf",target:"_blank",children:h.jsx(Fe,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:"Официальная поддержка"})}),h.jsx(Ae,{to:"/become-sponsor",children:h.jsxs(Fe,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:["Стать спонсором"," "]})})]})]})})]}),Wv=()=>{const[e,t]=g.useState(!1);return h.jsxs(Jf,{onOpenChange:()=>t(!e),open:e,children:[h.jsx(Qf,{children:h.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),h.jsxs(ol,{className:"overflow-y-auto",children:[h.jsx(eh,{}),h.jsxs(al,{className:"mt-16 flex flex-col gap-2",children:[h.jsx(Ae,{to:"",children:h.jsx(Fe,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),h.jsx(Ae,{to:"/B2B-B2G",onClick:()=>t(!1),children:h.jsx(Fe,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),h.jsx("hr",{className:"border-slate-500/20 my-8"}),h.jsx("div",{className:"flex flex-col gap-6",children:mu.concat(pu).map(n=>h.jsx(Ae,{onClick:()=>t(!1),className:"h-10 text-on_surface",to:n.link,children:n.title},n.title))})]})]})},mx=()=>h.jsx("footer",{className:"py-5 bg-primary",children:h.jsxs(Me,{className:"flex flex-col gap-6",children:[h.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[h.jsx(ll,{}),h.jsxs("div",{className:"flex items-center gap-6",children:[h.jsx("img",{src:"/inst.svg"}),h.jsx("img",{src:"/in.svg"}),h.jsx("img",{src:"/x.svg"})]})]}),h.jsx("hr",{className:"border-white/50"}),h.jsx("h5",{className:"text-base text-center normal text-white",children:"©2025 Все права защищены"})]})}),Me=({className:e,children:t})=>h.jsx("div",{className:$("w-full mx-auto max-w-[1240px] px-4",e),children:t}),px=({title:e})=>h.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[h.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),h.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{cx as A,Fe as B,px as C,wt as D,ct as E,mx as F,vr as G,hx as H,Gn as I,sr as J,Hv as K,qv as L,Me as M,k as N,te as O,Ze as P,Wy as Q,xn as S,ux as a,dx as b,fx as c,rx as d,ix as e,$ as f,sx as g,ox as h,ax as i,h as j,lx as k,rv as l,Wn as m,su as n,iu as o,ou as p,tx as q,Qv as r,ex as s,Xv as t,hr as u,nx as v,Jv as w,ju as x,At as y,Ru as z}; diff --git a/dist/assets/ui-library-HZBIYpKi.js b/dist/assets/ui-library-HZBIYpKi.js new file mode 100644 index 0000000..8dcfe68 --- /dev/null +++ b/dist/assets/ui-library-HZBIYpKi.js @@ -0,0 +1,118 @@ +import{r as hf,a as y,R as mf,b as Rl,c as pf,d as ne,L as Re,e as nr}from"./react-vendor-OnsDvTPE.js";var es={exports:{}},vn={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var wo;function gf(){if(wo)return vn;wo=1;var e=hf(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var u,d={},f=null,m=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(m=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:m,props:d,_owner:s.current}}return vn.Fragment=n,vn.jsx=o,vn.jsxs=o,vn}var So;function yf(){return So||(So=1,es.exports=gf()),es.exports}var h=yf();function _e(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Ao(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Dl(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Ao(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:o,...a}=i,l=y.useMemo(()=>a,Object.values(a));return h.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function ri(e,t=[]){let n=[];function r(i,o){const a=y.createContext(o),l=n.length;n=[...n,o];const c=d=>{var v;const{scope:f,children:m,...g}=d,p=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,x=y.useMemo(()=>g,Object.values(g));return h.jsx(p.Provider,{value:x,children:m})};c.displayName=i+"Provider";function u(d,f){var p;const m=((p=f==null?void 0:f[e])==null?void 0:p[l])||a,g=y.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>y.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,xf(s,...t)]}function xf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var It=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},bf=mf.useId||(()=>{}),wf=0;function hr(e){const[t,n]=y.useState(bf());return It(()=>{n(r=>r??String(wf++))},[e]),t?`radix-${t}`:""}function At(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function jl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=Sf({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,a=At(n),l=y.useCallback(c=>{if(i){const d=typeof c=="function"?c(e):c;d!==e&&a(d)}else s(c)},[i,e,s,a]);return[o,l]}function Sf({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,s=y.useRef(r),i=At(t);return y.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var cn=y.forwardRef((e,t)=>{const{children:n,...r}=e,s=y.Children.toArray(n),i=s.find(Cf);if(i){const o=i.props.children,a=s.map(l=>l===i?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:l);return h.jsx(Es,{...r,ref:t,children:y.isValidElement(o)?y.cloneElement(o,void 0,a):null})}return h.jsx(Es,{...r,ref:t,children:n})});cn.displayName="Slot";var Es=y.forwardRef((e,t)=>{const{children:n,...r}=e;if(y.isValidElement(n)){const s=Tf(n);return y.cloneElement(n,{...Pf(r,n.props),ref:t?Dl(t,s):s})}return y.Children.count(n)>1?y.Children.only(null):null});Es.displayName="SlotClone";var Af=({children:e})=>h.jsx(h.Fragment,{children:e});function Cf(e){return y.isValidElement(e)&&e.type===Af}function Pf(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Tf(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ef=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],je=Ef.reduce((e,t)=>{const n=y.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?cn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Rf(e,t){e&&Rl.flushSync(()=>e.dispatchEvent(t))}function Df(e,t=globalThis==null?void 0:globalThis.document){const n=At(e);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var jf="DismissableLayer",Rs="dismissableLayer.update",Nf="dismissableLayer.pointerDownOutside",Mf="dismissableLayer.focusOutside",Co,Nl=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),si=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=y.useContext(Nl),[u,d]=y.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=y.useState({}),g=Qe(t,E=>d(E)),p=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(x),b=u?p.indexOf(u):-1,A=c.layersWithOutsidePointerEventsDisabled.size>0,P=b>=v,S=Of(E=>{const D=E.target,M=[...c.branches].some(k=>k.contains(D));!P||M||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},f),T=_f(E=>{const D=E.target;[...c.branches].some(k=>k.contains(D))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},f);return Df(E=>{b===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),y.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Co=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Po(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Co)}},[u,f,n,c]),y.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Po())},[u,c]),y.useEffect(()=>{const E=()=>m({});return document.addEventListener(Rs,E),()=>document.removeEventListener(Rs,E)},[]),h.jsx(je.div,{...l,ref:g,style:{pointerEvents:A?P?"auto":"none":void 0,...e.style},onFocusCapture:_e(e.onFocusCapture,T.onFocusCapture),onBlurCapture:_e(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_e(e.onPointerDownCapture,S.onPointerDownCapture)})});si.displayName=jf;var Vf="DismissableLayerBranch",kf=y.forwardRef((e,t)=>{const n=y.useContext(Nl),r=y.useRef(null),s=Qe(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(je.div,{...e,ref:s})});kf.displayName=Vf;function Of(e,t=globalThis==null?void 0:globalThis.document){const n=At(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ml(Nf,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _f(e,t=globalThis==null?void 0:globalThis.document){const n=At(e),r=y.useRef(!1);return y.useEffect(()=>{const s=i=>{i.target&&!r.current&&Ml(Mf,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Po(){const e=new CustomEvent(Rs);document.dispatchEvent(e)}function Ml(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Rf(s,i):s.dispatchEvent(i)}var ts="focusScope.autoFocusOnMount",ns="focusScope.autoFocusOnUnmount",To={bubbles:!1,cancelable:!0},Ff="FocusScope",ii=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=y.useState(null),c=At(s),u=At(i),d=y.useRef(null),f=Qe(t,p=>l(p)),m=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let p=function(A){if(m.paused||!a)return;const P=A.target;a.contains(P)?d.current=P:bt(d.current,{select:!0})},x=function(A){if(m.paused||!a)return;const P=A.relatedTarget;P!==null&&(a.contains(P)||bt(d.current,{select:!0}))},v=function(A){if(document.activeElement===document.body)for(const S of A)S.removedNodes.length>0&&bt(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",x);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",x),b.disconnect()}}},[r,a,m.paused]),y.useEffect(()=>{if(a){Ro.add(m);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(ts,To);a.addEventListener(ts,c),a.dispatchEvent(v),v.defaultPrevented||(Lf(zf(Vl(a)),{select:!0}),document.activeElement===p&&bt(a))}return()=>{a.removeEventListener(ts,c),setTimeout(()=>{const v=new CustomEvent(ns,To);a.addEventListener(ns,u),a.dispatchEvent(v),v.defaultPrevented||bt(p??document.body,{select:!0}),a.removeEventListener(ns,u),Ro.remove(m)},0)}}},[a,c,u,m]);const g=y.useCallback(p=>{if(!n&&!r||m.paused)return;const x=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(x&&v){const b=p.currentTarget,[A,P]=If(b);A&&P?!p.shiftKey&&v===P?(p.preventDefault(),n&&bt(A,{select:!0})):p.shiftKey&&v===A&&(p.preventDefault(),n&&bt(P,{select:!0})):v===b&&p.preventDefault()}},[n,r,m.paused]);return h.jsx(je.div,{tabIndex:-1,...o,ref:f,onKeyDown:g})});ii.displayName=Ff;function Lf(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bt(r,{select:t}),document.activeElement!==n)return}function If(e){const t=Vl(e),n=Eo(t,e),r=Eo(t.reverse(),e);return[n,r]}function Vl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Eo(e,t){for(const n of e)if(!Bf(n,{upTo:t}))return n}function Bf(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Uf(e){return e instanceof HTMLInputElement&&"select"in e}function bt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Uf(e)&&t&&e.select()}}var Ro=$f();function $f(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Do(e,t),e.unshift(t)},remove(t){var n;e=Do(e,t),(n=e[0])==null||n.resume()}}}function Do(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zf(e){return e.filter(t=>t.tagName!=="A")}var Wf="Portal",oi=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=y.useState(!1);It(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?pf.createPortal(h.jsx(je.div,{...r,ref:t}),o):null});oi.displayName=Wf;function Hf(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var un=e=>{const{present:t,children:n}=e,r=Gf(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=Qe(r.ref,Kf(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:i}):null};un.displayName="Presence";function Gf(e){const[t,n]=y.useState(),r=y.useRef({}),s=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[a,l]=Hf(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=rr(r.current);i.current=a==="mounted"?c:"none"},[a]),It(()=>{const c=r.current,u=s.current;if(u!==e){const f=i.current,m=rr(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),It(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=m=>{const p=rr(r.current).includes(m.animationName);if(m.target===t&&p&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=m=>{m.target===t&&(i.current=rr(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function rr(e){return(e==null?void 0:e.animationName)||"none"}function Kf(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rs=0;function kl(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jo()),document.body.insertAdjacentElement("beforeend",e[1]??jo()),rs++,()=>{rs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),rs--}},[])}function jo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var rt=function(){return rt=Object.assign||function(t){for(var n,r=1,s=arguments.length;r"u")return uh;var t=dh(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])}},hh=Ll(),en="data-scroll-locked",mh=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(Xf,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(a,"px ").concat(r,`; + } + body[`).concat(en,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(s,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(o,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(mr,` { + right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(pr,` { + margin-right: `).concat(a,"px ").concat(r,`; + } + + .`).concat(mr," .").concat(mr,` { + right: 0 `).concat(r,`; + } + + .`).concat(pr," .").concat(pr,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(en,`] { + `).concat(Yf,": ").concat(a,`px; + } +`)},Mo=function(){var e=parseInt(document.body.getAttribute(en)||"0",10);return isFinite(e)?e:0},ph=function(){y.useEffect(function(){return document.body.setAttribute(en,(Mo()+1).toString()),function(){var e=Mo()-1;e<=0?document.body.removeAttribute(en):document.body.setAttribute(en,e.toString())}},[])},gh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;ph();var i=y.useMemo(function(){return fh(s)},[s]);return y.createElement(hh,{styles:mh(i,!t,s,n?"":"!important")})},Ds=!1;if(typeof window<"u")try{var sr=Object.defineProperty({},"passive",{get:function(){return Ds=!0,!0}});window.addEventListener("test",sr,sr),window.removeEventListener("test",sr,sr)}catch{Ds=!1}var Ht=Ds?{passive:!1}:!1,yh=function(e){return e.tagName==="TEXTAREA"},Il=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!yh(e)&&n[t]==="visible")},vh=function(e){return Il(e,"overflowY")},xh=function(e){return Il(e,"overflowX")},Vo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Bl(e,r);if(s){var i=Ul(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bh=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},wh=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Bl=function(e,t){return e==="v"?vh(t):xh(t)},Ul=function(e,t){return e==="v"?bh(t):wh(t)},Sh=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ah=function(e,t,n,r,s){var i=Sh(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,f=0;do{var m=Ul(e,a),g=m[0],p=m[1],x=m[2],v=p-x-i*g;(g||v)&&Bl(e,a)&&(d+=v,f+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},ir=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ko=function(e){return[e.deltaX,e.deltaY]},Oo=function(e){return e&&"current"in e?e.current:e},Ch=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ph=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},Th=0,Gt=[];function Eh(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(Th++)[0],i=y.useState(Ll)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=qf([e.lockRef.current],(e.shards||[]).map(Oo),!0).filter(Boolean);return p.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(p,x){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var v=ir(p),b=n.current,A="deltaX"in p?p.deltaX:b[0]-v[0],P="deltaY"in p?p.deltaY:b[1]-v[1],S,T=p.target,E=Math.abs(A)>Math.abs(P)?"h":"v";if("touches"in p&&E==="h"&&T.type==="range")return!1;var D=Vo(E,T);if(!D)return!0;if(D?S=E:(S=E==="v"?"h":"v",D=Vo(E,T)),!D)return!1;if(!r.current&&"changedTouches"in p&&(A||P)&&(r.current=S),!S)return!0;var M=r.current||S;return Ah(M,x,p,M==="h"?A:P)},[]),l=y.useCallback(function(p){var x=p;if(!(!Gt.length||Gt[Gt.length-1]!==i)){var v="deltaY"in x?ko(x):ir(x),b=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&Ch(S.delta,v)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var A=(o.current.shards||[]).map(Oo).filter(Boolean).filter(function(S){return S.contains(x.target)}),P=A.length>0?a(x,A[0]):!o.current.noIsolation;P&&x.cancelable&&x.preventDefault()}}},[]),c=y.useCallback(function(p,x,v,b){var A={name:p,delta:x,target:v,should:b,shadowParent:Rh(v)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(P){return P!==A})},1)},[]),u=y.useCallback(function(p){n.current=ir(p),r.current=void 0},[]),d=y.useCallback(function(p){c(p.type,ko(p),p.target,a(p,e.lockRef.current))},[]),f=y.useCallback(function(p){c(p.type,ir(p),p.target,a(p,e.lockRef.current))},[]);y.useEffect(function(){return Gt.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ht),document.addEventListener("touchmove",l,Ht),document.addEventListener("touchstart",u,Ht),function(){Gt=Gt.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,Ht),document.removeEventListener("touchmove",l,Ht),document.removeEventListener("touchstart",u,Ht)}},[]);var m=e.removeScrollBar,g=e.inert;return y.createElement(y.Fragment,null,g?y.createElement(i,{styles:Ph(s)}):null,m?y.createElement(gh,{gapMode:e.gapMode}):null)}function Rh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Dh=rh(Fl,Eh);var ai=y.forwardRef(function(e,t){return y.createElement(Ir,rt({},e,{ref:t,sideCar:Dh}))});ai.classNames=Ir.classNames;var jh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,or=new WeakMap,ar={},as=0,$l=function(e){return e&&(e.host||$l(e.parentNode))},Nh=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=$l(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Mh=function(e,t,n,r){var s=Nh(t,Array.isArray(e)?e:[e]);ar[n]||(ar[n]=new WeakMap);var i=ar[n],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var m=f.getAttribute(r),g=m!==null&&m!=="false",p=(Kt.get(f)||0)+1,x=(i.get(f)||0)+1;Kt.set(f,p),i.set(f,x),o.push(f),p===1&&g&&or.set(f,!0),x===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),as++,function(){o.forEach(function(d){var f=Kt.get(d)-1,m=i.get(d)-1;Kt.set(d,f),i.set(d,m),f||(or.has(d)||d.removeAttribute(r),or.delete(d)),m||d.removeAttribute(n)}),as--,as||(Kt=new WeakMap,Kt=new WeakMap,or=new WeakMap,ar={})}},zl=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=jh(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),Mh(r,s,n,"aria-hidden")):function(){return null}},li="Dialog",[Wl,l0]=ri(li),[Vh,et]=Wl(li),Hl=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=y.useRef(null),l=y.useRef(null),[c=!1,u]=jl({prop:r,defaultProp:s,onChange:i});return h.jsx(Vh,{scope:t,triggerRef:a,contentRef:l,contentId:hr(),titleId:hr(),descriptionId:hr(),open:c,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Hl.displayName=li;var Gl="DialogTrigger",Kl=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(Gl,n),i=Qe(t,s.triggerRef);return h.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":di(s.open),...r,ref:i,onClick:_e(e.onClick,s.onOpenToggle)})});Kl.displayName=Gl;var ci="DialogPortal",[kh,ql]=Wl(ci,{forceMount:void 0}),Xl=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=et(ci,t);return h.jsx(kh,{scope:t,forceMount:n,children:y.Children.map(r,o=>h.jsx(un,{present:n||i.open,children:h.jsx(oi,{asChild:!0,container:s,children:o})}))})};Xl.displayName=ci;var Sr="DialogOverlay",Yl=y.forwardRef((e,t)=>{const n=ql(Sr,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=et(Sr,e.__scopeDialog);return i.modal?h.jsx(un,{present:r||i.open,children:h.jsx(Oh,{...s,ref:t})}):null});Yl.displayName=Sr;var Oh=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(Sr,n);return h.jsx(ai,{as:cn,allowPinchZoom:!0,shards:[s.contentRef],children:h.jsx(je.div,{"data-state":di(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Bt="DialogContent",Zl=y.forwardRef((e,t)=>{const n=ql(Bt,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=et(Bt,e.__scopeDialog);return h.jsx(un,{present:r||i.open,children:i.modal?h.jsx(_h,{...s,ref:t}):h.jsx(Fh,{...s,ref:t})})});Zl.displayName=Bt;var _h=y.forwardRef((e,t)=>{const n=et(Bt,e.__scopeDialog),r=y.useRef(null),s=Qe(t,n.contentRef,r);return y.useEffect(()=>{const i=r.current;if(i)return zl(i)},[]),h.jsx(Jl,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_e(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:_e(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:_e(e.onFocusOutside,i=>i.preventDefault())})}),Fh=y.forwardRef((e,t)=>{const n=et(Bt,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return h.jsx(Jl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Jl=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=et(Bt,n),l=y.useRef(null),c=Qe(t,l);return kl(),h.jsxs(h.Fragment,{children:[h.jsx(ii,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:h.jsx(si,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":di(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(Lh,{titleId:a.titleId}),h.jsx(Bh,{contentRef:l,descriptionId:a.descriptionId})]})]})}),ui="DialogTitle",Ql=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(ui,n);return h.jsx(je.h2,{id:s.titleId,...r,ref:t})});Ql.displayName=ui;var ec="DialogDescription",tc=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(ec,n);return h.jsx(je.p,{id:s.descriptionId,...r,ref:t})});tc.displayName=ec;var nc="DialogClose",rc=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(nc,n);return h.jsx(je.button,{type:"button",...r,ref:t,onClick:_e(e.onClick,()=>s.onOpenChange(!1))})});rc.displayName=nc;function di(e){return e?"open":"closed"}var sc="DialogTitleWarning",[c0,ic]=vf(sc,{contentName:Bt,titleName:ui,docsSlug:"dialog"}),Lh=({titleId:e})=>{const t=ic(sc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ih="DialogDescriptionWarning",Bh=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ic(Ih).contentName}}.`;return y.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Uh=Hl,$h=Kl,zh=Xl,oc=Yl,ac=Zl,lc=Ql,cc=tc,uc=rc;function dc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Fo=fc,fi=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Fo(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const f=_o(u)||_o(d);return s[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...m}=u;return Object.entries(m).every(g=>{let[p,x]=g;return Array.isArray(x)?x.includes({...i,...a}[p]):{...i,...a}[p]===x})?[...c,d,f]:c},[]);return Fo(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Hh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gh=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>y.createElement("svg",{ref:l,...Hh,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:hc("lucide",s),...a},[...o.map(([c,u])=>y.createElement(c,u)),...Array.isArray(i)?i:[i]]));/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zt=(e,t)=>{const n=y.forwardRef(({className:r,...s},i)=>y.createElement(Gh,{ref:i,iconNode:t,className:hc(`lucide-${Wh(e)}`,r),...s}));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kh=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],qh=zt("ArrowUpRight",Kh);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xh=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],u0=zt("LoaderCircle",Xh);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yh=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],d0=zt("Loader",Yh);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zh=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Jh=zt("MapPin",Zh);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qh=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],em=zt("Smartphone",Qh);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tm=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],nm=zt("Upload",tm);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],sm=zt("X",rm),hi="-",im=e=>{const t=am(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(hi);return a[0]===""&&a.length!==1&&a.shift(),mc(a,t)||om(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},mc=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?mc(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(hi);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Lo=/^\[(.+)\]$/,om=e=>{if(Lo.test(e)){const t=Lo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},am=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return cm(Object.entries(e.classGroups),n).forEach(([i,o])=>{js(o,r,i,t)}),r},js=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Io(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(lm(s)){js(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{js(o,Io(t,i),n,r)})})},Io=(e,t)=>{let n=e;return t.split(hi).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},lm=e=>e.isThemeGetter,cm=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,um=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},pc="!",dm=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let x=0;xu?d-u:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},fm=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},hm=e=>({cache:um(e.cacheSize),parseClassName:dm(e),...im(e)}),mm=/\s+/,pm=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(mm);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:m}=n(c);let g=!!m,p=r(g?f.substring(0,m):f);if(!p){if(!g){a=c+(a.length>0?" "+a:a);continue}if(p=r(f),!p){a=c+(a.length>0?" "+a:a);continue}g=!1}const x=fm(u).join(":"),v=d?x+pc:x,b=v+p;if(i.includes(b))continue;i.push(b);const A=s(p,g);for(let P=0;P0?" "+a:a)}return a};function gm(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(u),e());return n=hm(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=pm(l,n);return s(l,u),u}return function(){return i(gm.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},yc=/^\[(?:([a-z-]+):)?(.+)\]$/i,vm=/^\d+\/\d+$/,xm=new Set(["px","full","screen"]),bm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Am=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dt=e=>tn(e)||xm.has(e)||vm.test(e),vt=e=>dn(e,"length",Mm),tn=e=>!!e&&!Number.isNaN(Number(e)),ls=e=>dn(e,"number",tn),xn=e=>!!e&&Number.isInteger(Number(e)),Pm=e=>e.endsWith("%")&&tn(e.slice(0,-1)),Y=e=>yc.test(e),xt=e=>bm.test(e),Tm=new Set(["length","size","percentage"]),Em=e=>dn(e,Tm,vc),Rm=e=>dn(e,"position",vc),Dm=new Set(["image","url"]),jm=e=>dn(e,Dm,km),Nm=e=>dn(e,"",Vm),bn=()=>!0,dn=(e,t,n)=>{const r=yc.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Mm=e=>wm.test(e)&&!Sm.test(e),vc=()=>!1,Vm=e=>Am.test(e),km=e=>Cm.test(e),Om=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),s=oe("borderColor"),i=oe("borderRadius"),o=oe("borderSpacing"),a=oe("borderWidth"),l=oe("contrast"),c=oe("grayscale"),u=oe("hueRotate"),d=oe("invert"),f=oe("gap"),m=oe("gradientColorStops"),g=oe("gradientColorStopPositions"),p=oe("inset"),x=oe("margin"),v=oe("opacity"),b=oe("padding"),A=oe("saturate"),P=oe("scale"),S=oe("sepia"),T=oe("skew"),E=oe("space"),D=oe("translate"),M=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Y,t],j=()=>[Y,t],F=()=>["",dt,vt],L=()=>["auto",tn,Y],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",Y],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[tn,Y];return{cacheSize:500,separator:":",theme:{colors:[bn],spacing:[dt,vt],blur:["none","",xt,Y],brightness:ee(),borderColor:[e],borderRadius:["none","","full",xt,Y],borderSpacing:j(),borderWidth:F(),contrast:ee(),grayscale:K(),hueRotate:ee(),invert:K(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[Pm,vt],inset:I(),margin:I(),opacity:ee(),padding:j(),saturate:ee(),scale:ee(),sepia:K(),skew:ee(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[xt]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...G(),Y]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xn,Y]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",xn,Y]}],"grid-cols":[{"grid-cols":[bn]}],"col-start-end":[{col:["auto",{span:["full",xn,Y]},Y]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[bn]}],"row-start-end":[{row:["auto",{span:[xn,Y]},Y]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[xt]},xt]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xt,vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ls]}],"font-family":[{font:[bn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",tn,ls]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dt,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dt,vt]}],"underline-offset":[{"underline-offset":["auto",dt,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...G(),Rm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Em]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[dt,Y]}],"outline-w":[{outline:[dt,vt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[dt,vt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xt,Nm]}],"shadow-color":[{shadow:[bn]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xt,Y]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[A]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[xn,Y]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[dt,vt,ls]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},_m=ym(Om);function q(...e){return _m(fc(e))}const Fm=Uh,Lm=$h,Im=uc,Bm=zh,xc=y.forwardRef(({className:e,...t},n)=>h.jsx(oc,{className:q("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));xc.displayName=oc.displayName;const Um=fi("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),bc=y.forwardRef(({side:e="right",className:t,children:n,...r},s)=>h.jsxs(Bm,{children:[h.jsx(xc,{}),h.jsxs(ac,{ref:s,className:q(Um({side:e}),t),...r,children:[h.jsxs(uc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary",children:[h.jsx(sm,{className:"size-8"}),h.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));bc.displayName=ac.displayName;const wc=({className:e,...t})=>h.jsx("div",{className:q("flex flex-col space-y-2 text-center sm:text-left",e),...t});wc.displayName="SheetHeader";const $m=y.forwardRef(({className:e,...t},n)=>h.jsx(lc,{ref:n,className:q("text-lg font-semibold text-foreground",e),...t}));$m.displayName=lc.displayName;const zm=y.forwardRef(({className:e,...t},n)=>h.jsx(cc,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));zm.displayName=cc.displayName;const Wm=fi("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-[18px] leading-[140%] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-on_primary shadow hover:bg-primary/90",teritary:"bg-teritary hover:bg-teritary/90 text-on_surface",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-outline text-on_surface",secondary:"bg-secondary_container hover:bg-secondary_container/80 text-on_secondary_container",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-white h-8"},size:{default:"h-12 px-5 py-2 rounded-[2px]",sm:"h-10 text-base px-4 rounded-[2px]",lg:"lg:h-[88px] h-12 rounded-[2px] px-8 ",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),He=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?cn:"button";return h.jsx(o,{className:q(Wm({variant:t,size:n,className:e})),ref:i,...s})});He.displayName="Button";const Bo=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(m=>m(t,f))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,s,a);return a},Hm=e=>e?Bo(e):Bo,Gm=e=>e;function Km(e,t=Gm){const n=ne.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return ne.useDebugValue(n),n}const qm=e=>{const t=Hm(e),n=r=>Km(t,r);return Object.assign(n,t),n},Xm=e=>qm;var be=(e=>(e.EN="en",e.RU="ru",e))(be||{});const Ye=Xm()(e=>({lang:"ru",setLang:t=>e({lang:t})})),Ns=[{lang:be.RU,data:[{title:"Медиа",link:""},{title:"Контакты",link:"/contacts"},{title:"О выставке",link:"/about"},{title:"Посетителям",link:""},{title:"Экспонентам",link:""}]},{lang:be.EN,data:[{title:"Media",link:""},{title:"Contacts",link:"/contacts"},{title:"About exhibition",link:"/about"},{title:"To the Visitors",link:""},{title:"To the Exhibitors",link:""}]}],Fe=e=>e===be.RU?0:1,Ym=()=>{const[e,t]=y.useState(!1),n=Ye(r=>r.lang);return h.jsxs(Fm,{onOpenChange:()=>t(!e),open:e,children:[h.jsx(Lm,{children:h.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),h.jsxs(bc,{className:"overflow-y-auto",children:[h.jsx(Im,{}),h.jsxs(wc,{className:"mt-16 flex flex-col gap-2",children:[h.jsx(Re,{to:"",children:h.jsx(He,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),h.jsx(Re,{to:"/B2B-B2G",onClick:()=>t(!1),children:h.jsx(He,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),h.jsx("hr",{className:"border-slate-500/20 my-8"}),h.jsx("div",{className:"flex flex-col gap-6",children:Ns[Fe(n)].data.map(r=>h.jsx(Re,{onClick:()=>t(!1),className:"h-10 text-on_surface",to:r.link,children:r.title},r.title))})]})]})},Sc=({className:e})=>h.jsx("div",{className:q("",e),children:h.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),Ac=({className:e,img:t,title:n,iconClassName:r})=>h.jsxs("article",{className:q("bg-bg_surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[h.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),h.jsx("div",{className:q("md:size-[84px] size-12 bg-teritary p-3",r),children:h.jsx("img",{src:t,alt:"theme icon"})}),h.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),Zm=({className:e,nums:t,text:n})=>h.jsxs("article",{className:q("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[h.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),h.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:t}),h.jsx("h4",{className:"text-on_surface normal text-base",children:n})]}),Jm=({className:e,title:t,text:n,img:r,link:s,btnText:i})=>h.jsxs("article",{className:q("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[h.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),h.jsx("img",{src:r,className:"absolute size-full top-0 right-0 object-cover"}),h.jsxs("div",{className:"relative z-20 h-full",children:[h.jsxs("div",{className:"",children:[h.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),h.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),h.jsx(Re,{className:"absolute bottom-0 left-0",target:"_blank",to:s,children:h.jsxs(He,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",h.jsx(qh,{})]})})]})]}),Cc=({className:e,name:t,date:n,bottomClassName:r})=>h.jsxs("div",{className:q("rounded-t-[4px] overflow-hidden",e),children:[h.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),h.jsx("div",{className:q("h-14 bg-bg_surface_container semibold flex items-center text-lg px-4",r),children:n})]}),Qm=({className:e,subtitle:t,title:n,img:r})=>h.jsxs("div",{className:q("flex items-center gap-4",e),children:[h.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:h.jsx("img",{src:r,alt:"contact icon",className:"size-full"})}),h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsx("h5",{className:"text-sm text-[#454545]",children:t}),h.jsx("h4",{className:"text-[#171717] semibold",children:n})]})]}),mi=y.createContext({});function pi(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const Br=y.createContext(null),gi=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class ep extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function tp({children:e,isPresent:t,anchorX:n}){const r=y.useId(),s=y.useRef(null),i=y.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=y.useContext(gi);return y.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u,right:d}=i.current;if(t||!s.current||!a||!l)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;s.current.dataset.motionPopId=r;const m=document.createElement("style");return o&&(m.nonce=o),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${a}px !important; + height: ${l}px !important; + ${f}px !important; + top: ${c}px !important; + } + `),()=>{document.head.removeChild(m)}},[t]),h.jsx(ep,{isPresent:t,childRef:s,sizeRef:i,children:y.cloneElement(e,{ref:s})})}const np=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const l=pi(rp),c=y.useId(),u=y.useCallback(f=>{l.set(f,!0);for(const m of l.values())if(!m)return;r&&r()},[l,r]),d=y.useMemo(()=>({id:c,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),u]:[n,u]);return y.useMemo(()=>{l.forEach((f,m)=>l.set(m,!1))},[n]),y.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=h.jsx(tp,{isPresent:n,anchorX:a,children:e})),h.jsx(Br.Provider,{value:d,children:e})};function rp(){return new Map}function Pc(e=!0){const t=y.useContext(Br);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=y.useId();y.useEffect(()=>{e&&s(i)},[e]);const o=y.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const lr=e=>e.key||"";function Uo(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const yi=typeof window<"u",Tc=yi?y.useLayoutEffect:y.useEffect,f0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[l,c]=Pc(o),u=y.useMemo(()=>Uo(e),[e]),d=o&&!l?[]:u.map(lr),f=y.useRef(!0),m=y.useRef(u),g=pi(()=>new Map),[p,x]=y.useState(u),[v,b]=y.useState(u);Tc(()=>{f.current=!1,m.current=u;for(let S=0;S{const T=lr(S),E=o&&!l?!1:u===v||d.includes(T),D=()=>{if(g.has(T))g.set(T,!0);else return;let M=!0;g.forEach(k=>{k||(M=!1)}),M&&(P==null||P(),b(m.current),o&&(c==null||c()),r&&r())};return h.jsx(np,{isPresent:E,initial:!f.current||n?void 0:!1,custom:E?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:E?void 0:D,anchorX:a,children:S},T)})})},Le=e=>e;let Ms=Le;const sp={skipAnimations:!1,useManualTiming:!1};function ip(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const m=d&&r?t:n;return u&&i.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const cr=["read","resolveKeyframes","update","preRender","render","postRender"],op=40;function Ec(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=cr.reduce((v,b)=>(v[b]=ip(i),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=o,m=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,op),1),s.timestamp=v,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:cr.reduce((v,b)=>{const A=o[b];return v[b]=(P,S=!1,T=!1)=>(n||g(),A.schedule(P,S,T)),v},{}),cancel:v=>{for(let b=0;b$o[e].some(n=>!!t[n])};function ap(e){for(const t in e)rn[t]={...rn[t],...e[t]}}const lp=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ar(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lp.has(e)}let Dc=e=>!Ar(e);function cp(e){e&&(Dc=t=>t.startsWith("on")?!Ar(t):e(t))}try{cp(require("@emotion/is-prop-valid").default)}catch{}function up(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(Dc(s)||n===!0&&Ar(s)||!t&&!Ar(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function dp(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Ur=y.createContext({});function On(e){return typeof e=="string"||Array.isArray(e)}function $r(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const vi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xi=["initial",...vi];function zr(e){return $r(e.animate)||xi.some(t=>On(e[t]))}function jc(e){return!!(zr(e)||e.variants)}function fp(e,t){if(zr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||On(n)?n:void 0,animate:On(r)?r:void 0}}return e.inherit!==!1?t:{}}function hp(e){const{initial:t,animate:n}=fp(e,y.useContext(Ur));return y.useMemo(()=>({initial:t,animate:n}),[zo(t),zo(n)])}function zo(e){return Array.isArray(e)?e.join(" "):e}const mp=Symbol.for("motionComponentSymbol");function Xt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pp(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Xt(n)&&(n.current=r))},[t])}const bi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gp="framerAppearId",Nc="data-"+bi(gp),{schedule:wi,cancel:h0}=Ec(queueMicrotask,!1),Mc=y.createContext({});function yp(e,t,n,r,s){var i,o;const{visualElement:a}=y.useContext(Ur),l=y.useContext(Rc),c=y.useContext(Br),u=y.useContext(gi).reducedMotion,d=y.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,m=y.useContext(Mc);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&vp(d.current,n,s,m);const g=y.useRef(!1);y.useInsertionEffect(()=>{f&&g.current&&f.update(n,c)});const p=n[Nc],x=y.useRef(!!p&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,p))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,p)));return Tc(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),wi.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),y.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,p)}),x.current=!1))}),f}function vp(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Vc(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Xt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function Vc(e){if(e)return e.options.allowProjection!==!1?e.projection:Vc(e.parent)}function xp({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&ap(e);function a(c,u){let d;const f={...y.useContext(gi),...c,layoutId:bp(c)},{isStatic:m}=f,g=hp(c),p=r(c,m);if(!m&&yi){wp();const x=Sp(f);d=x.MeasureLayout,g.visualElement=yp(s,p,f,t,x.ProjectionNode)}return h.jsxs(Ur.Provider,{value:g,children:[d&&g.visualElement?h.jsx(d,{visualElement:g.visualElement,...f}):null,n(s,c,pp(p,g.visualElement,u),p,m,g.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const l=y.forwardRef(a);return l[mp]=s,l}function bp({layoutId:e}){const t=y.useContext(mi).id;return t&&e!==void 0?t+"-"+e:e}function wp(e,t){y.useContext(Rc).strict}function Sp(e){const{drag:t,layout:n}=rn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Ap=["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 Si(e){return typeof e!="string"||e.includes("-")?!1:!!(Ap.indexOf(e)>-1||/[A-Z]/u.test(e))}function Wo(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ai(e,t,n,r){if(typeof t=="function"){const[s,i]=Wo(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Wo(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const Vs=e=>Array.isArray(e),Cp=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Pp=e=>Vs(e)?e[e.length-1]||0:e,Pe=e=>!!(e&&e.getVelocity);function gr(e){const t=Pe(e)?e.get():e;return Cp(t)?t.toValue():t}function Tp({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:Ep(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const kc=e=>(t,n)=>{const r=y.useContext(Ur),s=y.useContext(Br),i=()=>Tp(e,t,r,s);return n?i():pi(i)};function Ep(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=gr(i[f]);let{initial:o,animate:a}=e;const l=zr(e),c=jc(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!$r(d)){const f=Array.isArray(d)?d:[d];for(let m=0;mt=>typeof t=="string"&&t.startsWith(e),Ci=Oc("--"),Rp=Oc("var(--"),Pi=e=>Rp(e)?Dp.test(e.split("/*")[0].trim()):!1,Dp=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_c=(e,t)=>t&&typeof e=="number"?t.transform(e):e,pt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},_n={...hn,transform:e=>pt(0,1,e)},ur={...hn,default:1},Gn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wt=Gn("deg"),ot=Gn("%"),H=Gn("px"),jp=Gn("vh"),Np=Gn("vw"),Ho={...ot,parse:e=>ot.parse(e)/100,transform:e=>ot.transform(e*100)},Mp={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H},Vp={rotate:wt,rotateX:wt,rotateY:wt,rotateZ:wt,scale:ur,scaleX:ur,scaleY:ur,scaleZ:ur,skew:wt,skewX:wt,skewY:wt,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:_n,originX:Ho,originY:Ho,originZ:H},Go={...hn,transform:Math.round},Ti={...Mp,...Vp,zIndex:Go,size:H,fillOpacity:_n,strokeOpacity:_n,numOctaves:Go},kp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Op=fn.length;function _p(e,t,n){let r="",s=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),Fc=()=>({...Di(),attrs:{}}),ji=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Lc(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Ic=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Bc(e,t,n,r){Lc(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Ic.has(s)?s:bi(s),t.attrs[s])}const Fn={};function Up(e){for(const t in e)Fn[t]=e[t],Ci(t)&&(Fn[t].isCSSVariable=!0)}function Uc(e,{layout:t,layoutId:n}){return Wt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Fn[e]||e==="opacity")}function Ni(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(Pe(s[o])||t.style&&Pe(t.style[o])||Uc(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function $c(e,t,n){const r=Ni(e,t,n);for(const s in e)if(Pe(e[s])||Pe(t[s])){const i=fn.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function $p(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const qo=["x","y","width","height","cx","cy","r"],zp={useVisualState:kc({scrapeMotionValuesFromProps:$c,createRenderState:Fc,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(Wt.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{$p(n,r),ae.render(()=>{Ri(r,s,ji(n.tagName),e.transformTemplate),Bc(n,r)})})}})},Wp={useVisualState:kc({scrapeMotionValuesFromProps:Ni,createRenderState:Di})};function zc(e,t,n){for(const r in t)!Pe(t[r])&&!Uc(r,n)&&(e[r]=t[r])}function Hp({transformTemplate:e},t){return y.useMemo(()=>{const n=Di();return Ei(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Gp(e,t){const n=e.style||{},r={};return zc(r,n,e),Object.assign(r,Hp(e,t)),r}function Kp(e,t){const n={},r=Gp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function qp(e,t,n,r){const s=y.useMemo(()=>{const i=Fc();return Ri(i,t,ji(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};zc(i,e.style,e),s.style={...i,...s.style}}return s}function Xp(e=!1){return(n,r,s,{latestValues:i},o)=>{const l=(Si(n)?qp:Kp)(r,i,o,n),c=up(r,typeof n=="string",e),u=n!==y.Fragment?{...c,...l,ref:s}:{},{children:d}=r,f=y.useMemo(()=>Pe(d)?d.get():d,[d]);return y.createElement(n,{...u,children:f})}}function Yp(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Si(r)?zp:Wp,preloadedFeatures:e,useRender:Xp(s),createVisualElement:t,Component:r};return xp(o)}}function Wc(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r(yr===void 0&&at.set(we.isProcessing||sp.useManualTiming?we.timestamp:performance.now()),yr),set:e=>{yr=e,queueMicrotask(Zp)}};function Vi(e,t){e.indexOf(t)===-1&&e.push(t)}function ki(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Oi{constructor(){this.subscriptions=[]}add(t){return Vi(this.subscriptions,t),()=>ki(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class Qp{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=at.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=at.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Jp(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Oi);const r=this.events[t].add(n);return t==="change"?()=>{r(),ae.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=at.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Xo)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Xo);return Gc(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ln(e,t){return new Qp(e,t)}function eg(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ln(n))}function tg(e,t){const n=Wr(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=Pp(i[o]);eg(e,o,a)}}function ng(e){return!!(Pe(e)&&e.add)}function ks(e,t){const n=e.getValue("willChange");if(ng(n))return n.add(t)}function Kc(e){return e.props[Nc]}function _i(e){let t;return()=>(t===void 0&&(t=e()),t)}const rg=_i(()=>window.ScrollTimeline!==void 0);class sg{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(rg()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class ig extends sg{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const ht=e=>e*1e3,mt=e=>e/1e3;function Fi(e){return typeof e=="function"}function Yo(e,t){e.timeline=t,e.onfinish=null}const Li=e=>Array.isArray(e)&&typeof e[0]=="number",og={linearEasing:void 0};function ag(e,t){const n=_i(e);return()=>{var r;return(r=og[t])!==null&&r!==void 0?r:n()}}const Cr=ag(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),sn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},qc=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Os={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cn([0,.65,.55,1]),circOut:Cn([.55,0,1,.45]),backIn:Cn([.31,.01,.66,-.59]),backOut:Cn([.33,1.53,.69,.99])};function Yc(e,t){if(e)return typeof e=="function"&&Cr()?qc(e,t):Li(e)?Cn(e):Array.isArray(e)?e.map(n=>Yc(n,t)||Os.easeOut):Os[e]}const Zc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,lg=1e-7,cg=12;function ug(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Zc(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>lg&&++aug(i,0,1,e,n);return i=>i===0||i===1?i:Zc(s(i),t,r)}const Jc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qc=e=>t=>1-e(1-t),eu=Kn(.33,1.53,.69,.99),Ii=Qc(eu),tu=Jc(Ii),nu=e=>(e*=2)<1?.5*Ii(e):.5*(2-Math.pow(2,-10*(e-1))),Bi=e=>1-Math.sin(Math.acos(e)),ru=Qc(Bi),su=Jc(Bi),iu=e=>/^0[^.\s]+$/u.test(e);function dg(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||iu(e):!0}const Rn=e=>Math.round(e*1e5)/1e5,Ui=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fg(e){return e==null}const hg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$i=(e,t)=>n=>!!(typeof n=="string"&&hg.test(n)&&n.startsWith(e)||t&&!fg(n)&&Object.prototype.hasOwnProperty.call(n,t)),ou=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Ui);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},mg=e=>pt(0,255,e),us={...hn,transform:e=>Math.round(mg(e))},_t={test:$i("rgb","red"),parse:ou("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+us.transform(e)+", "+us.transform(t)+", "+us.transform(n)+", "+Rn(_n.transform(r))+")"};function pg(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const _s={test:$i("#"),parse:pg,transform:_t.transform},Yt={test:$i("hsl","hue"),parse:ou("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ot.transform(Rn(t))+", "+ot.transform(Rn(n))+", "+Rn(_n.transform(r))+")"},Ce={test:e=>_t.test(e)||_s.test(e)||Yt.test(e),parse:e=>_t.test(e)?_t.parse(e):Yt.test(e)?Yt.parse(e):_s.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_t.transform(e):Yt.transform(e)},gg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yg(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ui))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(gg))===null||n===void 0?void 0:n.length)||0)>0}const au="number",lu="color",vg="var",xg="var(",Zo="${}",bg=/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 In(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(bg,l=>(Ce.test(l)?(r.color.push(i),s.push(lu),n.push(Ce.parse(l))):l.startsWith(xg)?(r.var.push(i),s.push(vg),n.push(l)):(r.number.push(i),s.push(au),n.push(parseFloat(l))),++i,Zo)).split(Zo);return{values:n,split:a,indexes:r,types:s}}function cu(e){return In(e).values}function uu(e){const{split:t,types:n}=In(e),r=t.length;return s=>{let i="";for(let o=0;otypeof e=="number"?0:e;function Sg(e){const t=cu(e);return uu(e)(t.map(wg))}const Pt={test:yg,parse:cu,createTransformer:uu,getAnimatableNone:Sg},Ag=new Set(["brightness","contrast","saturate","opacity"]);function Cg(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ui)||[];if(!r)return e;const s=n.replace(r,"");let i=Ag.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const Pg=/\b([a-z-]*)\(.*?\)/gu,Fs={...Pt,getAnimatableNone:e=>{const t=e.match(Pg);return t?t.map(Cg).join(" "):e}},Tg={...Ti,color:Ce,backgroundColor:Ce,outlineColor:Ce,fill:Ce,stroke:Ce,borderColor:Ce,borderTopColor:Ce,borderRightColor:Ce,borderBottomColor:Ce,borderLeftColor:Ce,filter:Fs,WebkitFilter:Fs},zi=e=>Tg[e];function du(e,t){let n=zi(e);return n!==Fs&&(n=Pt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Eg=new Set(["auto","none","0"]);function Rg(e,t,n){let r=0,s;for(;re===hn||e===H,Qo=(e,t)=>parseFloat(e.split(", ")[t]),ea=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Qo(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Qo(i[1],e):0}},Dg=new Set(["x","y","z"]),jg=fn.filter(e=>!Dg.has(e));function Ng(e){const t=[];return jg.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const on={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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:ea(4,13),y:ea(5,14)};on.translateX=on.x;on.translateY=on.y;const Lt=new Set;let Ls=!1,Is=!1;function fu(){if(Is){const e=Array.from(Lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=Ng(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Is=!1,Ls=!1,Lt.forEach(e=>e.complete()),Lt.clear()}function hu(){Lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Is=!0)})}function Mg(){hu(),fu()}class Wi{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Lt.add(this),Ls||(Ls=!0,ae.read(hu),ae.resolveKeyframes(fu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Vg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kg(e){const t=Vg.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function pu(e,t,n=1){const[r,s]=kg(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return mu(o)?parseFloat(o):o}return Pi(s)?pu(s,t,n+1):s}const gu=e=>t=>t.test(e),Og={test:e=>e==="auto",parse:e=>e},yu=[hn,H,ot,wt,Np,jp,Og],ta=e=>yu.find(gu(e));class vu extends Wi{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const na=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pt.test(e)||e==="0")&&!e.startsWith("url("));function _g(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Hr(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(Lg),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const Ig=40;class xu{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=at.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Ig?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Mg(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=at.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Fg(t,r,s,i))if(o)this.options.duration=0;else{l&&l(Hr(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Bs=2e4;function bu(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Bs?1/0:t}const le=(e,t,n)=>e+(t-e)*n;function ds(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Bg({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=ds(l,a,e+1/3),i=ds(l,a,e),o=ds(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Pr(e,t){return n=>n>0?t:e}const fs=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Ug=[_s,_t,Yt],$g=e=>Ug.find(t=>t.test(e));function ra(e){const t=$g(e);if(!t)return!1;let n=t.parse(e);return t===Yt&&(n=Bg(n)),n}const sa=(e,t)=>{const n=ra(e),r=ra(t);if(!n||!r)return Pr(e,t);const s={...n};return i=>(s.red=fs(n.red,r.red,i),s.green=fs(n.green,r.green,i),s.blue=fs(n.blue,r.blue,i),s.alpha=le(n.alpha,r.alpha,i),_t.transform(s))},zg=(e,t)=>n=>t(e(n)),qn=(...e)=>e.reduce(zg),Us=new Set(["none","hidden"]);function Wg(e,t){return Us.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Hg(e,t){return n=>le(e,t,n)}function Hi(e){return typeof e=="number"?Hg:typeof e=="string"?Pi(e)?Pr:Ce.test(e)?sa:qg:Array.isArray(e)?wu:typeof e=="object"?Ce.test(e)?sa:Gg:Pr}function wu(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Hi(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function Kg(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i{const n=Pt.createTransformer(t),r=In(e),s=In(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Us.has(e)&&!s.values.length||Us.has(t)&&!r.values.length?Wg(e,t):qn(wu(Kg(r,s),s.values),n):Pr(e,t)};function Su(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?le(e,t,n):Hi(e)(e,t)}const Xg=5;function Au(e,t,n){const r=Math.max(t-Xg,0);return Gc(n-e(r),t-r)}const ue={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ia=.001;function Yg({duration:e=ue.duration,bounce:t=ue.bounce,velocity:n=ue.velocity,mass:r=ue.mass}){let s,i,o=1-t;o=pt(ue.minDamping,ue.maxDamping,o),e=pt(ue.minDuration,ue.maxDuration,mt(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,m=$s(c,o),g=Math.exp(-d);return ia-f/m*g},i=c=>{const d=c*o*e,f=d*n+n,m=Math.pow(o,2)*Math.pow(c,2)*e,g=Math.exp(-d),p=$s(Math.pow(c,2),o);return(-s(c)+ia>0?-1:1)*((f-m)*g)/p}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-.001+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=Jg(s,i,a);if(e=ht(e),isNaN(l))return{stiffness:ue.stiffness,damping:ue.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Zg=12;function Jg(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function ty(e){let t={velocity:ue.velocity,stiffness:ue.stiffness,damping:ue.damping,mass:ue.mass,isResolvedFromDuration:!1,...e};if(!oa(e,ey)&&oa(e,Qg))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*pt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ue.mass,stiffness:s,damping:i}}else{const n=Yg(e);t={...t,...n,mass:ue.mass},t.isResolvedFromDuration=!0}return t}function Cu(e=ue.visualDuration,t=ue.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=ty({...n,velocity:-mt(n.velocity||0)}),g=f||0,p=c/(2*Math.sqrt(l*u)),x=o-i,v=mt(Math.sqrt(l/u)),b=Math.abs(x)<5;r||(r=b?ue.restSpeed.granular:ue.restSpeed.default),s||(s=b?ue.restDelta.granular:ue.restDelta.default);let A;if(p<1){const S=$s(v,p);A=T=>{const E=Math.exp(-p*v*T);return o-E*((g+p*v*x)/S*Math.sin(S*T)+x*Math.cos(S*T))}}else if(p===1)A=S=>o-Math.exp(-v*S)*(x+(g+v*x)*S);else{const S=v*Math.sqrt(p*p-1);A=T=>{const E=Math.exp(-p*v*T),D=Math.min(S*T,300);return o-E*((g+p*v*x)*Math.sinh(D)+S*x*Math.cosh(D))/S}}const P={calculatedDuration:m&&d||null,next:S=>{const T=A(S);if(m)a.done=S>=d;else{let E=0;p<1&&(E=S===0?ht(g):Au(A,S,T));const D=Math.abs(E)<=r,M=Math.abs(o-T)<=s;a.done=D&&M}return a.value=a.done?o:T,a},toString:()=>{const S=Math.min(bu(P),Bs),T=qc(E=>P.next(S*E).value,S,30);return S+"ms "+T}};return P}function aa({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},m=D=>a!==void 0&&Dl,g=D=>a===void 0?l:l===void 0||Math.abs(a-D)-p*Math.exp(-D/r),A=D=>v+b(D),P=D=>{const M=b(D),k=A(D);f.done=Math.abs(M)<=c,f.value=f.done?v:k};let S,T;const E=D=>{m(f.value)&&(S=D,T=Cu({keyframes:[f.value,g(f.value)],velocity:Au(A,D,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:D=>{let M=!1;return!T&&S===void 0&&(M=!0,P(D),E(D)),S!==void 0&&D>=S?T.next(D-S):(!M&&P(D),f)}}}const ny=Kn(.42,0,1,1),ry=Kn(0,0,.58,1),Pu=Kn(.42,0,.58,1),sy=e=>Array.isArray(e)&&typeof e[0]!="number",la={linear:Le,easeIn:ny,easeInOut:Pu,easeOut:ry,circIn:Bi,circInOut:su,circOut:ru,backIn:Ii,backInOut:tu,backOut:eu,anticipate:nu},ca=e=>{if(Li(e)){Ms(e.length===4);const[t,n,r,s]=e;return Kn(t,n,r,s)}else if(typeof e=="string")return Ms(la[e]!==void 0),la[e];return e};function iy(e,t,n){const r=[],s=n||Su,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=iy(t,r,s),l=a.length,c=u=>{if(o&&u1)for(;dc(pt(e[0],e[i-1],u)):c}function ay(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=sn(0,t,r);e.push(le(n,1,s))}}function ly(e){const t=[0];return ay(t,e.length-1),t}function cy(e,t){return e.map(n=>n*t)}function uy(e,t){return e.map(()=>t||Pu).splice(0,e.length-1)}function Tr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=sy(r)?r.map(ca):ca(r),i={done:!1,value:t[0]},o=cy(n&&n.length===t.length?n:ly(t),e),a=oy(o,t,{ease:Array.isArray(s)?s:uy(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const dy=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ae.update(t,!0),stop:()=>Ct(t),now:()=>we.isProcessing?we.timestamp:at.now()}},fy={decay:aa,inertia:aa,tween:Tr,keyframes:Tr,spring:Cu},hy=e=>e/100;class Gi extends xu{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Wi,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=Fi(n)?n:fy[n]||Tr;let l,c;a!==Tr&&typeof t[0]!="number"&&(l=qn(hy,Su(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=bu(u));const{calculatedDuration:d}=u,f=d+s,m=f*(r+1)-s;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:D}=this.options;return{done:!0,value:D[D.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:m,repeatType:g,repeatDelay:p,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),b=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let A=this.currentTime,P=i;if(m){const D=Math.min(this.currentTime,u)/d;let M=Math.floor(D),k=D%1;!k&&D>=1&&(k=1),k===1&&M--,M=Math.min(M,m+1),!!(M%2)&&(g==="reverse"?(k=1-k,p&&(k-=p/d)):g==="mirror"&&(P=o)),A=pt(0,1,k)*d}const S=b?{done:!1,value:l[0]}:P.next(A);a&&(S.value=a(S.value));let{done:T}=S;!b&&c!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return E&&s!==void 0&&(S.value=Hr(l,this.options,s)),x&&x(S.value),E&&this.finish(),S}get duration(){const{resolved:t}=this;return t?mt(t.calculatedDuration):0}get time(){return mt(this.currentTime)}set time(t){t=ht(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=mt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=dy,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const my=new Set(["opacity","clipPath","filter","transform"]);function py(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Yc(a,s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const gy=_i(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Er=10,yy=2e4;function vy(e){return Fi(e.type)||e.type==="spring"||!Xc(e.ease)}function xy(e,t){const n=new Gi({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&Cr()&&by(i)&&(i=Tu[i]),vy(this.options)){const{onComplete:d,onUpdate:f,motionValue:m,element:g,...p}=this.options,x=xy(t,p);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,s=x.times,i=x.ease,o="keyframes"}const u=py(a.owner.current,l,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Yo(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Hr(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return mt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return mt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ht(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Le;const{animation:r}=n;Yo(r,t)}return Le}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...m}=this.options,g=new Gi({...m,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),p=ht(this.time);c.setWithVelocity(g.sample(p-Er).value,g.sample(p).value,Er)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return gy()&&r&&my.has(r)&&!l&&!c&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const wy={type:"spring",stiffness:500,damping:25,restSpeed:10},Sy=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ay={type:"keyframes",duration:.8},Cy={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Py=(e,{keyframes:t})=>t.length>2?Ay:Wt.has(e)?e.startsWith("scale")?Sy(t[1]):wy:Cy;function Ty({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Ki=(e,t,n,r={},s,i)=>o=>{const a=Mi(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-ht(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};Ty(a)||(u={...u,...Py(e,u)}),u.duration&&(u.duration=ht(u.duration)),u.repeatDelay&&(u.repeatDelay=ht(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=Hr(u.keyframes,a);if(f!==void 0)return ae.update(()=>{u.onUpdate(f),u.onComplete()}),new ig([])}return!i&&ua.supports(u)?new ua(u):new Gi(u)};function Ey({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Eu(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const c=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),m=l[d];if(m===void 0||u&&Ey(u,d))continue;const g={delay:n,...Mi(o||{},d)};let p=!1;if(window.MotionHandoffAnimation){const v=Kc(e);if(v){const b=window.MotionHandoffAnimation(v,d,ae);b!==null&&(g.startTime=b,p=!0)}}ks(e,d),f.start(Ki(d,f,m,e.shouldReduceMotion&&Hc.has(d)?{type:!1}:g,e,p));const x=f.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{ae.update(()=>{a&&tg(e,a)})}),c}function zs(e,t,n={}){var r;const s=Wr(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Eu(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return Ry(e,t,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Ry(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,l=s===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(Dy).forEach((c,u)=>{c.notify("AnimationStart",t),o.push(zs(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function Dy(e,t){return e.sortNodePosition(t)}function jy(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>zs(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=zs(e,t,n);else{const s=typeof t=="function"?Wr(e,t,n.custom):t;r=Promise.all(Eu(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Ny=xi.length;function Ru(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ru(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>jy(e,n,r)))}function Oy(e){let t=ky(e),n=da(),r=!0;const s=l=>(c,u)=>{var d;const f=Wr(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:m,transitionEnd:g,...p}=f;c={...c,...p,...g}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=Ru(e.parent)||{},d=[],f=new Set;let m={},g=1/0;for(let x=0;xg&&P,M=!1;const k=Array.isArray(A)?A:[A];let I=k.reduce(s(v),{});S===!1&&(I={});const{prevResolvedValues:j={}}=b,F={...j,...I},L=U=>{D=!0,f.has(U)&&(M=!0,f.delete(U)),b.needsAnimating[U]=!0;const B=e.getValue(U);B&&(B.liveStyle=!1)};for(const U in F){const B=I[U],K=j[U];if(m.hasOwnProperty(U))continue;let Q=!1;Vs(B)&&Vs(K)?Q=!Wc(B,K):Q=B!==K,Q?B!=null?L(U):f.add(U):B!==void 0&&f.has(U)?L(U):b.protectedKeys[U]=!0}b.prevProp=A,b.prevResolvedValues=I,b.isActive&&(m={...m,...I}),r&&e.blockInitialAnimation&&(D=!1),D&&(!(T&&E)||M)&&d.push(...k.map(U=>({animation:U,options:{type:v}})))}if(f.size){const x={};f.forEach(v=>{const b=e.getBaseTarget(v),A=e.getValue(v);A&&(A.liveStyle=!0),x[v]=b??null}),d.push({animation:x})}let p=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=da(),r=!0}}}function _y(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Wc(t,e):!1}function Vt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function da(){return{animate:Vt(!0),whileInView:Vt(),whileHover:Vt(),whileTap:Vt(),whileDrag:Vt(),whileFocus:Vt(),exit:Vt()}}class Dt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Fy extends Dt{constructor(t){super(t),t.animationState||(t.animationState=Oy(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();$r(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Ly=0;class Iy extends Dt{constructor(){super(...arguments),this.id=Ly++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const By={animation:{Feature:Fy},exit:{Feature:Iy}},Ke={x:!1,y:!1};function Du(){return Ke.x||Ke.y}function Uy(e){return e==="x"||e==="y"?Ke[e]?null:(Ke[e]=!0,()=>{Ke[e]=!1}):Ke.x||Ke.y?null:(Ke.x=Ke.y=!0,()=>{Ke.x=Ke.y=!1})}const qi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Bn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xn(e){return{point:{x:e.pageX,y:e.pageY}}}const $y=e=>t=>qi(t)&&e(t,Xn(t));function Dn(e,t,n,r){return Bn(e,t,$y(n),r)}const fa=(e,t)=>Math.abs(e-t);function zy(e,t){const n=fa(e.x,t.x),r=fa(e.y,t.y);return Math.sqrt(n**2+r**2)}class ju{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=ms(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=zy(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:g}=d,{timestamp:p}=we;this.history.push({...g,timestamp:p});const{onStart:x,onMove:v}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=hs(f,this.transformPagePoint),ae.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ms(d.type==="pointercancel"?this.lastMoveEventInfo:hs(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,x),g&&g(d,x)},!qi(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Xn(t),a=hs(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=we;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,ms(a,this.history)),this.removeListeners=qn(Dn(this.contextWindow,"pointermove",this.handlePointerMove),Dn(this.contextWindow,"pointerup",this.handlePointerUp),Dn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ct(this.updatePoint)}}function hs(e,t){return t?{point:t(e.point)}:e}function ha(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ms({point:e},t){return{point:e,delta:ha(e,Nu(t)),offset:ha(e,Wy(t)),velocity:Hy(t,.1)}}function Wy(e){return e[0]}function Nu(e){return e[e.length-1]}function Hy(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Nu(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>ht(t)));)n--;if(!r)return{x:0,y:0};const i=mt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Mu=1e-4,Gy=1-Mu,Ky=1+Mu,Vu=.01,qy=0-Vu,Xy=0+Vu;function De(e){return e.max-e.min}function Yy(e,t,n){return Math.abs(e-t)<=n}function ma(e,t,n,r=.5){e.origin=r,e.originPoint=le(t.min,t.max,e.origin),e.scale=De(n)/De(t),e.translate=le(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Gy&&e.scale<=Ky||isNaN(e.scale))&&(e.scale=1),(e.translate>=qy&&e.translate<=Xy||isNaN(e.translate))&&(e.translate=0)}function jn(e,t,n,r){ma(e.x,t.x,n.x,r?r.originX:void 0),ma(e.y,t.y,n.y,r?r.originY:void 0)}function pa(e,t,n){e.min=n.min+t.min,e.max=e.min+De(t)}function Zy(e,t,n){pa(e.x,t.x,n.x),pa(e.y,t.y,n.y)}function ga(e,t,n){e.min=t.min-n.min,e.max=e.min+De(t)}function Nn(e,t,n){ga(e.x,t.x,n.x),ga(e.y,t.y,n.y)}function Jy(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?le(n,e,r.max):Math.min(e,n)),e}function ya(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Qy(e,{top:t,left:n,bottom:r,right:s}){return{x:ya(e.x,n,s),y:ya(e.y,t,r)}}function va(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=sn(t.min,t.max-r,e.min):r>s&&(n=sn(e.min,e.max-s,t.min)),pt(0,1,n)}function nv(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ws=.35;function rv(e=Ws){return e===!1?e=0:e===!0&&(e=Ws),{x:xa(e,"left","right"),y:xa(e,"top","bottom")}}function xa(e,t,n){return{min:ba(e,t),max:ba(e,n)}}function ba(e,t){return typeof e=="number"?e:e[t]||0}const wa=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zt=()=>({x:wa(),y:wa()}),Sa=()=>({min:0,max:0}),he=()=>({x:Sa(),y:Sa()});function ze(e){return[e("x"),e("y")]}function ku({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function sv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function iv(e,t){if(!t)return e;const 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}}function ps(e){return e===void 0||e===1}function Hs({scale:e,scaleX:t,scaleY:n}){return!ps(e)||!ps(t)||!ps(n)}function kt(e){return Hs(e)||Ou(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ou(e){return Aa(e.x)||Aa(e.y)}function Aa(e){return e&&e!=="0%"}function Rr(e,t,n){const r=e-n,s=t*r;return n+s}function Ca(e,t,n,r,s){return s!==void 0&&(e=Rr(e,s,r)),Rr(e,n,r)+t}function Gs(e,t=0,n=1,r,s){e.min=Ca(e.min,t,n,r,s),e.max=Ca(e.max,t,n,r,s)}function _u(e,{x:t,y:n}){Gs(e.x,t.translate,t.scale,t.originPoint),Gs(e.y,n.translate,n.scale,n.originPoint)}const Pa=.999999999999,Ta=1.0000000000001;function ov(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;aPa&&(t.x=1),t.yPa&&(t.y=1)}function Jt(e,t){e.min=e.min+t,e.max=e.max+t}function Ea(e,t,n,r,s=.5){const i=le(e.min,e.max,s);Gs(e,t,n,i,r)}function Qt(e,t){Ea(e.x,t.x,t.scaleX,t.scale,t.originX),Ea(e.y,t.y,t.scaleY,t.scale,t.originY)}function Fu(e,t){return ku(iv(e.getBoundingClientRect(),t))}function av(e,t,n){const r=Fu(e,n),{scroll:s}=t;return s&&(Jt(r.x,s.offset.x),Jt(r.y,s.offset.y)),r}const Lu=({current:e})=>e?e.ownerDocument.defaultView:null,lv=new WeakMap;class cv{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=he(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xn(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:m,onDragStart:g}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Uy(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ze(x=>{let v=this.getAxisMotionValue(x).get()||0;if(ot.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const A=b.layout.layoutBox[x];A&&(v=De(A)*(parseFloat(v)/100))}}this.originPoint[x]=v}),g&&ae.postRender(()=>g(u,d)),ks(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:g,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(m&&this.currentDirection===null){this.currentDirection=uv(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),p&&p(u,d)},a=(u,d)=>this.stop(u,d),l=()=>ze(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ju(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Lu(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&ae.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!dr(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Jy(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Xt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Qy(s.layoutBox,n):this.constraints=!1,this.elastic=rv(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ze(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=nv(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xt(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=av(r,s.root,this.visualElement.getTransformPagePoint());let o=ev(s.layout.layoutBox,i);if(n){const a=n(sv(o));this.hasMutatedConstraints=!!a,a&&(o=ku(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ze(u=>{if(!dr(u,n,this.currentDirection))return;let d=l[u]||{};o&&(d={min:0,max:0});const f=s?200:1e6,m=s?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ks(this.visualElement,t),r.start(Ki(t,r,0,n,this.visualElement,!1))}stopAnimation(){ze(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ze(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ze(n=>{const{drag:r}=this.getProps();if(!dr(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-le(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xt(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ze(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=tv({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ze(o=>{if(!dr(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(le(l,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;lv.set(this.visualElement,this);const t=this.visualElement.current,n=Dn(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Xt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ae.read(r);const o=Bn(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(ze(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Ws,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function dr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uv(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class dv extends Dt{constructor(t){super(t),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new cv(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ra=e=>(t,n)=>{e&&ae.postRender(()=>e(t,n))};class fv extends Dt{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(t){this.session=new ju(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Lu(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Ra(t),onStart:Ra(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&ae.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Dn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const vr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Da(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(H.test(e))e=parseFloat(e);else return e;const n=Da(e,t.target.x),r=Da(e,t.target.y);return`${n}% ${r}%`}},hv={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Pt.parse(e);if(s.length>5)return r;const i=Pt.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=le(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}};class mv extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;Up(pv),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),vr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ae.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),wi.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Iu(e){const[t,n]=Pc(),r=y.useContext(mi);return h.jsx(mv,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(Mc),isPresent:t,safeToRemove:n})}const pv={borderRadius:{...wn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wn,borderTopRightRadius:wn,borderBottomLeftRadius:wn,borderBottomRightRadius:wn,boxShadow:hv};function gv(e,t,n){const r=Pe(e)?e:Ln(e);return r.start(Ki("",r,t,n)),r.animation}function yv(e){return e instanceof SVGElement&&e.tagName!=="svg"}const vv=(e,t)=>e.depth-t.depth;class xv{constructor(){this.children=[],this.isDirty=!1}add(t){Vi(this.children,t),this.isDirty=!0}remove(t){ki(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vv),this.isDirty=!1,this.children.forEach(t)}}function bv(e,t){const n=at.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Ct(r),e(i-t))};return ae.read(r,!0),()=>Ct(r)}const Bu=["TopLeft","TopRight","BottomLeft","BottomRight"],wv=Bu.length,ja=e=>typeof e=="string"?parseFloat(e):e,Na=e=>typeof e=="number"||H.test(e);function Sv(e,t,n,r,s,i){s?(e.opacity=le(0,n.opacity!==void 0?n.opacity:1,Av(r)),e.opacityExit=le(t.opacity!==void 0?t.opacity:1,0,Cv(r))):i&&(e.opacity=le(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(sn(e,t,r))}function Va(e,t){e.min=t.min,e.max=t.max}function $e(e,t){Va(e.x,t.x),Va(e.y,t.y)}function ka(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Oa(e,t,n,r,s){return e-=t,e=Rr(e,1/n,r),s!==void 0&&(e=Rr(e,1/s,r)),e}function Pv(e,t=0,n=1,r=.5,s,i=e,o=e){if(ot.test(t)&&(t=parseFloat(t),t=le(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=le(i.min,i.max,r);e===i&&(a-=t),e.min=Oa(e.min,t,n,a,s),e.max=Oa(e.max,t,n,a,s)}function _a(e,t,[n,r,s],i,o){Pv(e,t[n],t[r],t[s],t.scale,i,o)}const Tv=["x","scaleX","originX"],Ev=["y","scaleY","originY"];function Fa(e,t,n,r){_a(e.x,t,Tv,n?n.x:void 0,r?r.x:void 0),_a(e.y,t,Ev,n?n.y:void 0,r?r.y:void 0)}function La(e){return e.translate===0&&e.scale===1}function $u(e){return La(e.x)&&La(e.y)}function Ia(e,t){return e.min===t.min&&e.max===t.max}function Rv(e,t){return Ia(e.x,t.x)&&Ia(e.y,t.y)}function Ba(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zu(e,t){return Ba(e.x,t.x)&&Ba(e.y,t.y)}function Ua(e){return De(e.x)/De(e.y)}function $a(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Dv{constructor(){this.members=[]}add(t){Vi(this.members,t),t.scheduleRender()}remove(t){if(ki(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jv(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:m,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Ot={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Pn=typeof window<"u"&&window.MotionDebug!==void 0,gs=["","X","Y","Z"],Nv={visibility:"hidden"},za=1e3;let Mv=0;function ys(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Wu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Kc(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ae,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Wu(r)}function Hu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Mv++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pn&&(Ot.totalNodes=Ot.resolvedTargetDeltas=Ot.recalculatedProjection=0),this.nodes.forEach(Ov),this.nodes.forEach(Bv),this.nodes.forEach(Uv),this.nodes.forEach(_v),Pn&&window.MotionDebug.record(Ot)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=bv(f,250),vr.hasAnimatedSinceResize&&(vr.hasAnimatedSinceResize=!1,this.nodes.forEach(Ha))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Gv,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!zu(this.targetLayout,g),A=!f&&m;if(this.options.layoutRoot||this.resumeFrom||A||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,A);const P={...Mi(p,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else f||Ha(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ct(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($v),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Wu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!De(this.snapshot.measuredBox.x)&&!De(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 l=0;l{const S=P/1e3;Ga(d.x,o.x,S),Ga(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Nn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Wv(this.relativeTarget,this.relativeTargetOrigin,f,S),A&&Rv(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=he()),$e(A,this.relativeTarget)),p&&(this.animationValues=u,Sv(u,c,this.latestValues,S,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ct(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ae.update(()=>{vr.hasAnimatedSinceResize=!0,this.currentAnimation=gv(0,za,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(za),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Gu(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||he();const d=De(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=De(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}$e(a,l),Qt(a,u),jn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Dv),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&ys("z",o,c,this.animationValues);for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Wa),this.root.sharedNodes.clear()}}}function Vv(e){e.updateLayout()}function kv(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?ze(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],m=De(f);f.min=r[d].min,f.max=f.min+m}):Gu(i,n.layoutBox,r)&&ze(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],m=De(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=Zt();jn(a,r,n.layoutBox);const l=Zt();o?jn(l,e.applyTransform(s,!0),n.measuredBox):jn(l,r,n.layoutBox);const c=!$u(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const g=he();Nn(g,n.layoutBox,f.layoutBox);const p=he();Nn(p,r,m.layoutBox),zu(g,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Ov(e){Pn&&Ot.totalNodes++,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 _v(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Fv(e){e.clearSnapshot()}function Wa(e){e.clearMeasurements()}function Lv(e){e.isLayoutDirty=!1}function Iv(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ha(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Bv(e){e.resolveTargetDelta()}function Uv(e){e.calcProjection()}function $v(e){e.resetSkewAndRotation()}function zv(e){e.removeLeadSnapshot()}function Ga(e,t,n){e.translate=le(t.translate,0,n),e.scale=le(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ka(e,t,n,r){e.min=le(t.min,n.min,r),e.max=le(t.max,n.max,r)}function Wv(e,t,n,r){Ka(e.x,t.x,n.x,r),Ka(e.y,t.y,n.y,r)}function Hv(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Gv={duration:.45,ease:[.4,0,.1,1]},qa=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Xa=qa("applewebkit/")&&!qa("chrome/")?Math.round:Le;function Ya(e){e.min=Xa(e.min),e.max=Xa(e.max)}function Kv(e){Ya(e.x),Ya(e.y)}function Gu(e,t,n){return e==="position"||e==="preserve-aspect"&&!Yy(Ua(t),Ua(n),.2)}function qv(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Xv=Hu({attachResizeListener:(e,t)=>Bn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vs={current:void 0},Ku=Hu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vs.current){const e=new Xv({});e.mount(window),e.setOptions({layoutScroll:!0}),vs.current=e}return vs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Yv={pan:{Feature:fv},drag:{Feature:dv,ProjectionNode:Ku,MeasureLayout:Iu}};function Zv(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function qu(e,t){const n=Zv(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Za(e){return!(e.pointerType==="touch"||Du())}function Jv(e,t,n={}){const[r,s,i]=qu(e,n),o=a=>{if(!Za(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{Za(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function Ja(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ae.postRender(()=>i(t,Xn(t)))}class Qv extends Dt{mount(){const{current:t}=this.node;t&&(this.unmount=Jv(t,(n,r)=>(Ja(this.node,r,"Start"),s=>Ja(this.node,s,"End"))))}unmount(){}}class ex extends Dt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=qn(Bn(this.node.current,"focus",()=>this.onFocus()),Bn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Xu=(e,t)=>t?e===t?!0:Xu(e,t.parentElement):!1,tx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nx(e){return tx.has(e.tagName)||e.tabIndex!==-1}const Tn=new WeakSet;function Qa(e){return t=>{t.key==="Enter"&&e(t)}}function xs(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const rx=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Qa(()=>{if(Tn.has(n))return;xs(n,"down");const s=Qa(()=>{xs(n,"up")}),i=()=>xs(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function el(e){return qi(e)&&!Du()}function sx(e,t,n={}){const[r,s,i]=qu(e,n),o=a=>{const l=a.currentTarget;if(!el(a)||Tn.has(l))return;Tn.add(l);const c=t(l,a),u=(m,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!el(m)||!Tn.has(l))&&(Tn.delete(l),typeof c=="function"&&c(m,{success:g}))},d=m=>{u(m,n.useGlobalTarget||Xu(l,m.target))},f=m=>{u(m,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",f,s)};return r.forEach(a=>{!nx(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",c=>rx(c,s),s)}),i}function tl(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ae.postRender(()=>i(t,Xn(t)))}class ix extends Dt{mount(){const{current:t}=this.node;t&&(this.unmount=sx(t,(n,r)=>(tl(this.node,r,"Start"),(s,{success:i})=>tl(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ks=new WeakMap,bs=new WeakMap,ox=e=>{const t=Ks.get(e.target);t&&t(e)},ax=e=>{e.forEach(ox)};function lx({root:e,...t}){const n=e||document;bs.has(n)||bs.set(n,{});const r=bs.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(ax,{root:e,...t})),r[s]}function cx(e,t,n){const r=lx(t);return Ks.set(e,n),r.observe(e),()=>{Ks.delete(e),r.unobserve(e)}}const ux={some:0,all:1};class dx extends Dt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:ux[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return cx(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(fx(t,n))&&this.startObserver()}unmount(){}}function fx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const hx={inView:{Feature:dx},tap:{Feature:ix},focus:{Feature:ex},hover:{Feature:Qv}},mx={layout:{ProjectionNode:Ku,MeasureLayout:Iu}},qs={current:null},Yu={current:!1};function px(){if(Yu.current=!0,!!yi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>qs.current=e.matches;e.addListener(t),t()}else qs.current=!1}const gx=[...yu,Ce,Pt],yx=e=>gx.find(gu(e)),nl=new WeakMap;function vx(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Pe(s))e.addValue(r,s);else if(Pe(i))e.addValue(r,Ln(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Ln(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const rl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xx{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Wi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=at.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Yu.current||px(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:qs.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){nl.delete(this.current),this.projection&&this.projection.unmount(),Ct(this.notifyUpdate),Ct(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Wt.has(t),s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ae.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in rn){const n=rn[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):he()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ln(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(mu(s)||iu(s))?s=parseFloat(s):!yx(s)&&Pt.test(n)&&(s=du(t,n)),this.setBaseTarget(t,Pe(s)?s.get():s)),Pe(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Ai(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Pe(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Oi),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Zu extends xx{constructor(){super(...arguments),this.KeyframeResolver=vu}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Pe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function bx(e){return window.getComputedStyle(e)}class wx extends Zu{constructor(){super(...arguments),this.type="html",this.renderInstance=Lc}readValueFromInstance(t,n){if(Wt.has(n)){const r=zi(n);return r&&r.default||0}else{const r=bx(t),s=(Ci(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Fu(t,n)}build(t,n,r){Ei(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ni(t,n,r)}}class Sx extends Zu{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=he}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wt.has(n)){const r=zi(n);return r&&r.default||0}return n=Ic.has(n)?n:bi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return $c(t,n,r)}build(t,n,r){Ri(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Bc(t,n,r,s)}mount(t){this.isSVGTag=ji(t.tagName),super.mount(t)}}const Ax=(e,t)=>Si(e)?new Sx(t):new wx(t,{allowProjection:e!==y.Fragment}),Cx=Yp({...By,...hx,...Yv,...mx},Ax),xr=dp(Cx);var ws,sl;function Px(){if(sl)return ws;sl=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l=typeof nr=="object"&&nr&&nr.Object===Object&&nr,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,f=d.toString,m=Math.max,g=Math.min,p=function(){return u.Date.now()};function x(S,T,E){var D,M,k,I,j,F,L=0,G=!1,W=!1,U=!0;if(typeof S!="function")throw new TypeError(e);T=P(T)||0,v(E)&&(G=!!E.leading,W="maxWait"in E,k=W?m(P(E.maxWait)||0,T):k,U="trailing"in E?!!E.trailing:U);function B(Z){var te=D,de=M;return D=M=void 0,L=Z,I=S.apply(de,te),I}function K(Z){return L=Z,j=setTimeout(Se,T),G?B(Z):I}function Q(Z){var te=Z-F,de=Z-L,ge=T-te;return W?g(ge,k-de):ge}function ee(Z){var te=Z-F,de=Z-L;return F===void 0||te>=T||te<0||W&&de>=k}function Se(){var Z=p();if(ee(Z))return Ve(Z);j=setTimeout(Se,Q(Z))}function Ve(Z){return j=void 0,U&&D?B(Z):(D=M=void 0,I)}function Ae(){j!==void 0&&clearTimeout(j),L=0,D=F=M=j=void 0}function Ge(){return j===void 0?I:Ve(p())}function Te(){var Z=p(),te=ee(Z);if(D=arguments,M=this,F=Z,te){if(j===void 0)return K(F);if(W)return j=setTimeout(Se,T),B(F)}return j===void 0&&(j=setTimeout(Se,T)),I}return Te.cancel=Ae,Te.flush=Ge,Te}function v(S){var T=typeof S;return!!S&&(T=="object"||T=="function")}function b(S){return!!S&&typeof S=="object"}function A(S){return typeof S=="symbol"||b(S)&&f.call(S)==n}function P(S){if(typeof S=="number")return S;if(A(S))return t;if(v(S)){var T=typeof S.valueOf=="function"?S.valueOf():S;S=v(T)?T+"":T}if(typeof S!="string")return S===0?S:+S;S=S.replace(r,"");var E=i.test(S);return E||o.test(S)?a(S.slice(2),E?2:8):s.test(S)?t:+S}return ws=x,ws}Px();var Tx=typeof window<"u"?y.useLayoutEffect:y.useEffect,Ex=typeof window>"u";function Xs(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>Ex?t:window.matchMedia(a).matches,[s,i]=y.useState(()=>n?r(e):t);function o(){i(r(e))}return Tx(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),s}const p0=({className:e,stage:t})=>{const n=Xs("(min-width: 768px");return h.jsx("div",{className:e,children:h.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:h.jsxs("div",{className:"relative h-14 w-full",children:[h.jsx("div",{className:q("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),h.jsx(xr.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:q("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-0 bg-opacity-0":t===1,"w-[20%]":t===2,"w-[75%]":t===3})}),h.jsx(xr.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:q("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),h.jsx(xr.div,{className:q("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),h.jsx("div",{className:q("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),h.jsx("div",{className:q("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var Yn=e=>e.type==="checkbox",Ft=e=>e instanceof Date,Ee=e=>e==null;const Ju=e=>typeof e=="object";var pe=e=>!Ee(e)&&!Array.isArray(e)&&Ju(e)&&!Ft(e),Qu=e=>pe(e)&&e.target?Yn(e.target)?e.target.checked:e.target.value:e,Rx=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ed=(e,t)=>e.has(Rx(t)),Dx=e=>{const t=e.constructor&&e.constructor.prototype;return pe(t)&&t.hasOwnProperty("isPrototypeOf")},Xi=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ne(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Xi&&(e instanceof Blob||r))&&(n||pe(e)))if(t=n?[]:{},!n&&!Dx(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=Ne(e[s]));else return e;return t}var Gr=e=>Array.isArray(e)?e.filter(Boolean):[],me=e=>e===void 0,_=(e,t,n)=>{if(!t||!pe(e))return n;const r=Gr(t.split(/[,[\].]+?/)).reduce((s,i)=>Ee(s)?s:s[i],e);return me(r)||r===e?me(e[t])?n:e[t]:r},We=e=>typeof e=="boolean",Yi=e=>/^\w*$/.test(e),td=e=>Gr(e.replace(/["|']|\]/g,"").split(/\.|\[/)),se=(e,t,n)=>{let r=-1;const s=Yi(t)?[t]:td(t),i=s.length,o=i-1;for(;++rne.useContext(nd),jx=e=>{const{children:t,...n}=e;return ne.createElement(nd.Provider,{value:n},t)};var rd=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==qe.all&&(t._proxyFormState[o]=!r||qe.all),n&&(n[o]=!0),e[o]}});return s},Me=e=>pe(e)&&!Object.keys(e).length,sd=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Me(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||qe.all))},Mn=e=>Array.isArray(e)?e:[e],id=(e,t,n)=>!e||!t||e===t||Mn(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Zi(e){const t=ne.useRef(e);t.current=e,ne.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Nx(e){const t=Kr(),{control:n=t.control,disabled:r,name:s,exact:i}=e,[o,a]=ne.useState(n._formState),l=ne.useRef(!0),c=ne.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=ne.useRef(s);return u.current=s,Zi({disabled:r,next:d=>l.current&&id(u.current,d.name,i)&&sd(d,c.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),ne.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),ne.useMemo(()=>rd(o,n,c.current,!1),[o,n])}var it=e=>typeof e=="string",od=(e,t,n,r,s)=>it(e)?(r&&t.watch.add(e),_(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),_(n,i))):(r&&(t.watchAll=!0),n);function Mx(e){const t=Kr(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e,a=ne.useRef(r);a.current=r,Zi({disabled:i,subject:n._subjects.values,next:u=>{id(a.current,u.name,o)&&c(Ne(od(a.current,n._names,u.values||n._formValues,!1,s)))}});const[l,c]=ne.useState(n._getWatch(r,s));return ne.useEffect(()=>n._removeUnmounted()),l}function Vx(e){const t=Kr(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=ed(s._names.array,n),a=Mx({control:s,name:n,defaultValue:_(s._formValues,n,_(s._defaultValues,n,e.defaultValue)),exact:!0}),l=Nx({control:s,name:n,exact:!0}),c=ne.useRef(s.register(n,{...e.rules,value:a,...We(e.disabled)?{disabled:e.disabled}:{}})),u=ne.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!_(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!_(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!_(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!_(l.validatingFields,n)},error:{enumerable:!0,get:()=>_(l.errors,n)}}),[l,n]),d=ne.useMemo(()=>({name:n,value:a,...We(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:f=>c.current.onChange({target:{value:Qu(f),name:n},type:Dr.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:_(s._formValues,n),name:n},type:Dr.BLUR}),ref:f=>{const m=_(s._fields,n);m&&f&&(m._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:g=>f.setCustomValidity(g),reportValidity:()=>f.reportValidity()})}}),[n,s._formValues,r,l.disabled,a,s._fields]);return ne.useEffect(()=>{const f=s._options.shouldUnregister||i,m=(g,p)=>{const x=_(s._fields,g);x&&x._f&&(x._f.mount=p)};if(m(n,!0),f){const g=Ne(_(s._options.defaultValues,n));se(s._defaultValues,n,g),me(_(s._formValues,n))&&se(s._formValues,n,g)}return!o&&s.register(n),()=>{(o?f&&!s._state.action:f)?s.unregister(n):m(n,!1)}},[n,s,o,i]),ne.useEffect(()=>{s._updateDisabledField({disabled:r,fields:s._fields,name:n})},[r,n,s]),ne.useMemo(()=>({field:d,formState:l,fieldState:u}),[d,l,u])}const kx=e=>e.render(Vx(e));var Ox=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},il=e=>({isOnSubmit:!e||e===qe.onSubmit,isOnBlur:e===qe.onBlur,isOnChange:e===qe.onChange,isOnAll:e===qe.all,isOnTouch:e===qe.onTouched}),ol=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Vn=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=_(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(Vn(a,t))break}else if(pe(a)&&Vn(a,t))break}}};var _x=(e,t,n)=>{const r=Mn(_(e,n));return se(r,"root",t[n]),se(e,n,r),e},Ji=e=>e.type==="file",st=e=>typeof e=="function",jr=e=>{if(!Xi)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},br=e=>it(e),Qi=e=>e.type==="radio",Nr=e=>e instanceof RegExp;const al={value:!1,isValid:!1},ll={value:!0,isValid:!0};var ad=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!me(e[0].attributes.value)?me(e[0].value)||e[0].value===""?ll:{value:e[0].value,isValid:!0}:ll:al}return al};const cl={isValid:!1,value:null};var ld=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,cl):cl;function ul(e,t,n="validate"){if(br(e)||Array.isArray(e)&&e.every(br)||We(e)&&!e)return{type:n,message:br(e)?e:"",ref:t}}var qt=e=>pe(e)&&!Nr(e)?e:{value:e,message:""},dl=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:m,validate:g,name:p,valueAsNumber:x,mount:v}=e._f,b=_(n,p);if(!v||t.has(p))return{};const A=a?a[0]:o,P=j=>{s&&A.reportValidity&&(A.setCustomValidity(We(j)?"":j||""),A.reportValidity())},S={},T=Qi(o),E=Yn(o),D=T||E,M=(x||Ji(o))&&me(o.value)&&me(b)||jr(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,k=Ox.bind(null,p,r,S),I=(j,F,L,G=ft.maxLength,W=ft.minLength)=>{const U=j?F:L;S[p]={type:j?G:W,message:U,ref:o,...k(j?G:W,U)}};if(i?!Array.isArray(b)||!b.length:l&&(!D&&(M||Ee(b))||We(b)&&!b||E&&!ad(a).isValid||T&&!ld(a).isValid)){const{value:j,message:F}=br(l)?{value:!!l,message:l}:qt(l);if(j&&(S[p]={type:ft.required,message:F,ref:A,...k(ft.required,F)},!r))return P(F),S}if(!M&&(!Ee(d)||!Ee(f))){let j,F;const L=qt(f),G=qt(d);if(!Ee(b)&&!isNaN(b)){const W=o.valueAsNumber||b&&+b;Ee(L.value)||(j=W>L.value),Ee(G.value)||(F=Wnew Date(new Date().toDateString()+" "+Q),B=o.type=="time",K=o.type=="week";it(L.value)&&b&&(j=B?U(b)>U(L.value):K?b>L.value:W>new Date(L.value)),it(G.value)&&b&&(F=B?U(b)+j.value,G=!Ee(F.value)&&b.length<+F.value;if((L||G)&&(I(L,j.message,F.message),!r))return P(S[p].message),S}if(m&&!M&&it(b)){const{value:j,message:F}=qt(m);if(Nr(j)&&!b.match(j)&&(S[p]={type:ft.pattern,message:F,ref:o,...k(ft.pattern,F)},!r))return P(F),S}if(g){if(st(g)){const j=await g(b,n),F=ul(j,A);if(F&&(S[p]={...F,...k(ft.validate,F.message)},!r))return P(F.message),S}else if(pe(g)){let j={};for(const F in g){if(!Me(j)&&!r)break;const L=ul(await g[F](b,n),A,F);L&&(j={...L,...k(F,L.message)},P(L.message),r&&(S[p]=j))}if(!Me(j)&&(S[p]={ref:A,...j},!r))return S}}return P(!0),S};function Fx(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},Ys=e=>Ee(e)||!Ju(e);function St(e,t){if(Ys(e)||Ys(t))return e===t;if(Ft(e)&&Ft(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(Ft(i)&&Ft(o)||pe(i)&&pe(o)||Array.isArray(i)&&Array.isArray(o)?!St(i,o):i!==o)return!1}}return!0}var cd=e=>e.type==="select-multiple",Ix=e=>Qi(e)||Yn(e),As=e=>jr(e)&&e.isConnected,ud=e=>{for(const t in e)if(st(e[t]))return!0;return!1};function Mr(e,t={}){const n=Array.isArray(e);if(pe(e)||n)for(const r in e)Array.isArray(e[r])||pe(e[r])&&!ud(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Mr(e[r],t[r])):Ee(e[r])||(t[r]=!0);return t}function dd(e,t,n){const r=Array.isArray(e);if(pe(e)||r)for(const s in e)Array.isArray(e[s])||pe(e[s])&&!ud(e[s])?me(t)||Ys(n[s])?n[s]=Array.isArray(e[s])?Mr(e[s],[]):{...Mr(e[s])}:dd(e[s],Ee(t)?{}:t[s],n[s]):n[s]=!St(e[s],t[s]);return n}var Sn=(e,t)=>dd(e,t,Mr(t)),fd=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>me(e)?e:t?e===""?NaN:e&&+e:n&&it(e)?new Date(e):r?r(e):e;function Cs(e){const t=e.ref;return Ji(t)?t.files:Qi(t)?ld(e.refs).value:cd(t)?[...t.selectedOptions].map(({value:n})=>n):Yn(t)?ad(e.refs).value:fd(me(t.value)?e.ref.value:t.value,e)}var Bx=(e,t,n,r)=>{const s={};for(const i of e){const o=_(t,i);o&&se(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},An=e=>me(e)?e:Nr(e)?e.source:pe(e)?Nr(e.value)?e.value.source:e.value:e;const fl="AsyncFunction";var Ux=e=>!!e&&!!e.validate&&!!(st(e.validate)&&e.validate.constructor.name===fl||pe(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===fl)),$x=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function hl(e,t,n){const r=_(e,n);if(r||Yi(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=_(t,i),a=_(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var zx=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,Wx=(e,t)=>!Gr(_(e,t)).length&&ve(e,t);const Hx={mode:qe.onSubmit,reValidateMode:qe.onChange,shouldFocusError:!0};function Gx(e={}){let t={...Hx,...e},n={submitCount:0,isDirty:!1,isLoading:st(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=pe(t.defaultValues)||pe(t.values)?Ne(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ne(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Ss(),array:Ss(),state:Ss()},f=il(t.mode),m=il(t.reValidateMode),g=t.criteriaMode===qe.all,p=w=>C=>{clearTimeout(c),c=setTimeout(w,C)},x=async w=>{if(!t.disabled&&(u.isValid||w)){const C=t.resolver?Me((await D()).errors):await k(r,!0);C!==n.isValid&&d.state.next({isValid:C})}},v=(w,C)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((w||Array.from(a.mount)).forEach(R=>{R&&(C?se(n.validatingFields,R,C):ve(n.validatingFields,R))}),d.state.next({validatingFields:n.validatingFields,isValidating:!Me(n.validatingFields)}))},b=(w,C=[],R,O,V=!0,N=!0)=>{if(O&&R&&!t.disabled){if(o.action=!0,N&&Array.isArray(_(r,w))){const z=R(_(r,w),O.argA,O.argB);V&&se(r,w,z)}if(N&&Array.isArray(_(n.errors,w))){const z=R(_(n.errors,w),O.argA,O.argB);V&&se(n.errors,w,z),Wx(n.errors,w)}if(u.touchedFields&&N&&Array.isArray(_(n.touchedFields,w))){const z=R(_(n.touchedFields,w),O.argA,O.argB);V&&se(n.touchedFields,w,z)}u.dirtyFields&&(n.dirtyFields=Sn(s,i)),d.state.next({name:w,isDirty:j(w,C),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else se(i,w,C)},A=(w,C)=>{se(n.errors,w,C),d.state.next({errors:n.errors})},P=w=>{n.errors=w,d.state.next({errors:n.errors,isValid:!1})},S=(w,C,R,O)=>{const V=_(r,w);if(V){const N=_(i,w,me(R)?_(s,w):R);me(N)||O&&O.defaultChecked||C?se(i,w,C?N:Cs(V._f)):G(w,N),o.mount&&x()}},T=(w,C,R,O,V)=>{let N=!1,z=!1;const X={name:w};if(!t.disabled){const ye=!!(_(r,w)&&_(r,w)._f&&_(r,w)._f.disabled);if(!R||O){u.isDirty&&(z=n.isDirty,n.isDirty=X.isDirty=j(),N=z!==X.isDirty);const fe=ye||St(_(s,w),C);z=!!(!ye&&_(n.dirtyFields,w)),fe||ye?ve(n.dirtyFields,w):se(n.dirtyFields,w,!0),X.dirtyFields=n.dirtyFields,N=N||u.dirtyFields&&z!==!fe}if(R){const fe=_(n.touchedFields,w);fe||(se(n.touchedFields,w,R),X.touchedFields=n.touchedFields,N=N||u.touchedFields&&fe!==R)}N&&V&&d.state.next(X)}return N?X:{}},E=(w,C,R,O)=>{const V=_(n.errors,w),N=u.isValid&&We(C)&&n.isValid!==C;if(t.delayError&&R?(l=p(()=>A(w,R)),l(t.delayError)):(clearTimeout(c),l=null,R?se(n.errors,w,R):ve(n.errors,w)),(R?!St(V,R):V)||!Me(O)||N){const z={...O,...N&&We(C)?{isValid:C}:{},errors:n.errors,name:w};n={...n,...z},d.state.next(z)}},D=async w=>{v(w,!0);const C=await t.resolver(i,t.context,Bx(w||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(w),C},M=async w=>{const{errors:C}=await D(w);if(w)for(const R of w){const O=_(C,R);O?se(n.errors,R,O):ve(n.errors,R)}else n.errors=C;return C},k=async(w,C,R={valid:!0})=>{for(const O in w){const V=w[O];if(V){const{_f:N,...z}=V;if(N){const X=a.array.has(N.name),ye=V._f&&Ux(V._f);ye&&u.validatingFields&&v([O],!0);const fe=await dl(V,a.disabled,i,g,t.shouldUseNativeValidation&&!C,X);if(ye&&u.validatingFields&&v([O]),fe[N.name]&&(R.valid=!1,C))break;!C&&(_(fe,N.name)?X?_x(n.errors,fe,N.name):se(n.errors,N.name,fe[N.name]):ve(n.errors,N.name))}!Me(z)&&await k(z,C,R)}}return R.valid},I=()=>{for(const w of a.unMount){const C=_(r,w);C&&(C._f.refs?C._f.refs.every(R=>!As(R)):!As(C._f.ref))&&Te(w)}a.unMount=new Set},j=(w,C)=>!t.disabled&&(w&&C&&se(i,w,C),!St(ee(),s)),F=(w,C,R)=>od(w,a,{...o.mount?i:me(C)?s:it(w)?{[w]:C}:C},R,C),L=w=>Gr(_(o.mount?i:s,w,t.shouldUnregister?_(s,w,[]):[])),G=(w,C,R={})=>{const O=_(r,w);let V=C;if(O){const N=O._f;N&&(!N.disabled&&se(i,w,fd(C,N)),V=jr(N.ref)&&Ee(C)?"":C,cd(N.ref)?[...N.ref.options].forEach(z=>z.selected=V.includes(z.value)):N.refs?Yn(N.ref)?N.refs.length>1?N.refs.forEach(z=>(!z.defaultChecked||!z.disabled)&&(z.checked=Array.isArray(V)?!!V.find(X=>X===z.value):V===z.value)):N.refs[0]&&(N.refs[0].checked=!!V):N.refs.forEach(z=>z.checked=z.value===V):Ji(N.ref)?N.ref.value="":(N.ref.value=V,N.ref.type||d.values.next({name:w,values:{...i}})))}(R.shouldDirty||R.shouldTouch)&&T(w,V,R.shouldTouch,R.shouldDirty,!0),R.shouldValidate&&Q(w)},W=(w,C,R)=>{for(const O in C){const V=C[O],N=`${w}.${O}`,z=_(r,N);(a.array.has(w)||pe(V)||z&&!z._f)&&!Ft(V)?W(N,V,R):G(N,V,R)}},U=(w,C,R={})=>{const O=_(r,w),V=a.array.has(w),N=Ne(C);se(i,w,N),V?(d.array.next({name:w,values:{...i}}),(u.isDirty||u.dirtyFields)&&R.shouldDirty&&d.state.next({name:w,dirtyFields:Sn(s,i),isDirty:j(w,N)})):O&&!O._f&&!Ee(N)?W(w,N,R):G(w,N,R),ol(w,a)&&d.state.next({...n}),d.values.next({name:o.mount?w:void 0,values:{...i}})},B=async w=>{o.mount=!0;const C=w.target;let R=C.name,O=!0;const V=_(r,R),N=()=>C.type?Cs(V._f):Qu(w),z=X=>{O=Number.isNaN(X)||Ft(X)&&isNaN(X.getTime())||St(X,_(i,R,X))};if(V){let X,ye;const fe=N(),tt=w.type===Dr.BLUR||w.type===Dr.FOCUS_OUT,gn=!$x(V._f)&&!t.resolver&&!_(n.errors,R)&&!V._f.deps||zx(tt,_(n.touchedFields,R),n.isSubmitted,m,f),nt=ol(R,a,tt);se(i,R,fe),tt?(V._f.onBlur&&V._f.onBlur(w),l&&l(0)):V._f.onChange&&V._f.onChange(w);const Nt=T(R,fe,tt,!1),yn=!Me(Nt)||nt;if(!tt&&d.values.next({name:R,type:w.type,values:{...i}}),gn)return u.isValid&&(t.mode==="onBlur"&&tt?x():tt||x()),yn&&d.state.next({name:R,...nt?{}:Nt});if(!tt&&nt&&d.state.next({...n}),t.resolver){const{errors:Mt}=await D([R]);if(z(fe),O){const Qr=hl(n.errors,r,R),tr=hl(Mt,r,Qr.name||R);X=tr.error,R=tr.name,ye=Me(Mt)}}else v([R],!0),X=(await dl(V,a.disabled,i,g,t.shouldUseNativeValidation))[R],v([R]),z(fe),O&&(X?ye=!1:u.isValid&&(ye=await k(r,!0)));O&&(V._f.deps&&Q(V._f.deps),E(R,ye,X,Nt))}},K=(w,C)=>{if(_(n.errors,C)&&w.focus)return w.focus(),1},Q=async(w,C={})=>{let R,O;const V=Mn(w);if(t.resolver){const N=await M(me(w)?w:V);R=Me(N),O=w?!V.some(z=>_(N,z)):R}else w?(O=(await Promise.all(V.map(async N=>{const z=_(r,N);return await k(z&&z._f?{[N]:z}:z)}))).every(Boolean),!(!O&&!n.isValid)&&x()):O=R=await k(r);return d.state.next({...!it(w)||u.isValid&&R!==n.isValid?{}:{name:w},...t.resolver||!w?{isValid:R}:{},errors:n.errors}),C.shouldFocus&&!O&&Vn(r,K,w?V:a.mount),O},ee=w=>{const C={...o.mount?i:s};return me(w)?C:it(w)?_(C,w):w.map(R=>_(C,R))},Se=(w,C)=>({invalid:!!_((C||n).errors,w),isDirty:!!_((C||n).dirtyFields,w),error:_((C||n).errors,w),isValidating:!!_(n.validatingFields,w),isTouched:!!_((C||n).touchedFields,w)}),Ve=w=>{w&&Mn(w).forEach(C=>ve(n.errors,C)),d.state.next({errors:w?n.errors:{}})},Ae=(w,C,R)=>{const O=(_(r,w,{_f:{}})._f||{}).ref,V=_(n.errors,w)||{},{ref:N,message:z,type:X,...ye}=V;se(n.errors,w,{...ye,...C,ref:O}),d.state.next({name:w,errors:n.errors,isValid:!1}),R&&R.shouldFocus&&O&&O.focus&&O.focus()},Ge=(w,C)=>st(w)?d.values.subscribe({next:R=>w(F(void 0,C),R)}):F(w,C,!0),Te=(w,C={})=>{for(const R of w?Mn(w):a.mount)a.mount.delete(R),a.array.delete(R),C.keepValue||(ve(r,R),ve(i,R)),!C.keepError&&ve(n.errors,R),!C.keepDirty&&ve(n.dirtyFields,R),!C.keepTouched&&ve(n.touchedFields,R),!C.keepIsValidating&&ve(n.validatingFields,R),!t.shouldUnregister&&!C.keepDefaultValue&&ve(s,R);d.values.next({values:{...i}}),d.state.next({...n,...C.keepDirty?{isDirty:j()}:{}}),!C.keepIsValid&&x()},Z=({disabled:w,name:C,field:R,fields:O})=>{(We(w)&&o.mount||w||a.disabled.has(C))&&(w?a.disabled.add(C):a.disabled.delete(C),T(C,Cs(R?R._f:_(O,C)._f),!1,!1,!0))},te=(w,C={})=>{let R=_(r,w);const O=We(C.disabled)||We(t.disabled);return se(r,w,{...R||{},_f:{...R&&R._f?R._f:{ref:{name:w}},name:w,mount:!0,...C}}),a.mount.add(w),R?Z({field:R,disabled:We(C.disabled)?C.disabled:t.disabled,name:w}):S(w,!0,C.value),{...O?{disabled:C.disabled||t.disabled}:{},...t.progressive?{required:!!C.required,min:An(C.min),max:An(C.max),minLength:An(C.minLength),maxLength:An(C.maxLength),pattern:An(C.pattern)}:{},name:w,onChange:B,onBlur:B,ref:V=>{if(V){te(w,C),R=_(r,w);const N=me(V.value)&&V.querySelectorAll&&V.querySelectorAll("input,select,textarea")[0]||V,z=Ix(N),X=R._f.refs||[];if(z?X.find(ye=>ye===N):N===R._f.ref)return;se(r,w,{_f:{...R._f,...z?{refs:[...X.filter(As),N,...Array.isArray(_(s,w))?[{}]:[]],ref:{type:N.type,name:w}}:{ref:N}}}),S(w,!1,void 0,N)}else R=_(r,w,{}),R._f&&(R._f.mount=!1),(t.shouldUnregister||C.shouldUnregister)&&!(ed(a.array,w)&&o.action)&&a.unMount.add(w)}}},de=()=>t.shouldFocusError&&Vn(r,K,a.mount),ge=w=>{We(w)&&(d.state.next({disabled:w}),Vn(r,(C,R)=>{const O=_(r,R);O&&(C.disabled=O._f.disabled||w,Array.isArray(O._f.refs)&&O._f.refs.forEach(V=>{V.disabled=O._f.disabled||w}))},0,!1))},re=(w,C)=>async R=>{let O;R&&(R.preventDefault&&R.preventDefault(),R.persist&&R.persist());let V=Ne(i);if(a.disabled.size)for(const N of a.disabled)se(V,N,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:N,values:z}=await D();n.errors=N,V=z}else await k(r);if(ve(n.errors,"root"),Me(n.errors)){d.state.next({errors:{}});try{await w(V,R)}catch(N){O=N}}else C&&await C({...n.errors},R),de(),setTimeout(de);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Me(n.errors)&&!O,submitCount:n.submitCount+1,errors:n.errors}),O)throw O},$=(w,C={})=>{_(r,w)&&(me(C.defaultValue)?U(w,Ne(_(s,w))):(U(w,C.defaultValue),se(s,w,Ne(C.defaultValue))),C.keepTouched||ve(n.touchedFields,w),C.keepDirty||(ve(n.dirtyFields,w),n.isDirty=C.defaultValue?j(w,Ne(_(s,w))):j()),C.keepError||(ve(n.errors,w),u.isValid&&x()),d.state.next({...n}))},J=(w,C={})=>{const R=w?Ne(w):s,O=Ne(R),V=Me(w),N=V?s:O;if(C.keepDefaultValues||(s=R),!C.keepValues){if(C.keepDirtyValues){const z=new Set([...a.mount,...Object.keys(Sn(s,i))]);for(const X of Array.from(z))_(n.dirtyFields,X)?se(N,X,_(i,X)):U(X,_(N,X))}else{if(Xi&&me(w))for(const z of a.mount){const X=_(r,z);if(X&&X._f){const ye=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(jr(ye)){const fe=ye.closest("form");if(fe){fe.reset();break}}}}r={}}i=t.shouldUnregister?C.keepDefaultValues?Ne(s):{}:Ne(N),d.array.next({values:{...N}}),d.values.next({values:{...N}})}a={mount:C.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!C.keepIsValid||!!C.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:C.keepSubmitCount?n.submitCount:0,isDirty:V?!1:C.keepDirty?n.isDirty:!!(C.keepDefaultValues&&!St(w,s)),isSubmitted:C.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:V?{}:C.keepDirtyValues?C.keepDefaultValues&&i?Sn(s,i):n.dirtyFields:C.keepDefaultValues&&w?Sn(s,w):C.keepDirty?n.dirtyFields:{},touchedFields:C.keepTouched?n.touchedFields:{},errors:C.keepErrors?n.errors:{},isSubmitSuccessful:C.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ie=(w,C)=>J(st(w)?w(i):w,C);return{control:{register:te,unregister:Te,getFieldState:Se,handleSubmit:re,setError:Ae,_executeSchema:D,_getWatch:F,_getDirty:j,_updateValid:x,_removeUnmounted:I,_updateFieldArray:b,_updateDisabledField:Z,_getFieldArray:L,_reset:J,_resetDefaultValues:()=>st(t.defaultValues)&&t.defaultValues().then(w=>{ie(w,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:w=>{n={...n,...w}},_disableForm:ge,_subjects:d,_proxyFormState:u,_setErrors:P,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(w){o=w},get _defaultValues(){return s},get _names(){return a},set _names(w){a=w},get _formState(){return n},set _formState(w){n=w},get _options(){return t},set _options(w){t={...t,...w}}},trigger:Q,register:te,handleSubmit:re,watch:Ge,setValue:U,getValues:ee,reset:ie,resetField:$,clearErrors:Ve,unregister:Te,setError:Ae,setFocus:(w,C={})=>{const R=_(r,w),O=R&&R._f;if(O){const V=O.refs?O.refs[0]:O.ref;V.focus&&(V.focus(),C.shouldSelect&&st(V.select)&&V.select())}},getFieldState:Se}}function g0(e={}){const t=ne.useRef(void 0),n=ne.useRef(void 0),[r,s]=ne.useState({isDirty:!1,isValidating:!1,isLoading:st(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:st(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Gx(e),formState:r});const i=t.current.control;return i._options=e,Zi({subject:i._subjects.state,next:o=>{sd(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),ne.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ne.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),ne.useEffect(()=>{e.values&&!St(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),ne.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),ne.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),ne.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=rd(r,i),t.current}var Kx="Label",hd=y.forwardRef((e,t)=>h.jsx(je.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));hd.displayName=Kx;var md=hd;const qx=fi("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),pd=y.forwardRef(({className:e,...t},n)=>h.jsx(md,{ref:n,className:q(qx(),e),...t}));pd.displayName=md.displayName;const y0=jx,gd=y.createContext({}),Xx=({...e})=>h.jsx(gd.Provider,{value:{name:e.name},children:h.jsx(kx,{...e})}),qr=()=>{const e=y.useContext(gd),t=y.useContext(yd),{getFieldState:n,formState:r}=Kr(),s=n(e.name,r);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},yd=y.createContext({}),vd=y.forwardRef(({className:e,...t},n)=>{const r=y.useId();return h.jsx(yd.Provider,{value:{id:r},children:h.jsx("div",{ref:n,className:q("space-y-2",e),...t})})});vd.displayName="FormItem";const xd=y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=qr();return h.jsx(pd,{ref:n,className:q(r&&"text-destructive",e),htmlFor:s,...t})});xd.displayName="FormLabel";const bd=y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=qr();return h.jsx(cn,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});bd.displayName="FormControl";const Yx=y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=qr();return h.jsx("p",{ref:n,id:r,className:q("text-[0.8rem] text-muted-foreground",e),...t})});Yx.displayName="FormDescription";const wd=y.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=qr(),o=s?String(s==null?void 0:s.message):t;return o?h.jsx("p",{ref:r,id:i,className:q("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});wd.displayName="FormMessage";const Zs=y.forwardRef(({className:e,type:t,...n},r)=>t!=="file"?h.jsx("input",{type:t,className:q("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}):h.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[h.jsx("input",{ref:r,accept:".pdf, .png, .jpeg, .jpg",type:t,className:q("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),h.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[h.jsx(nm,{className:"cursor-pointer",size:16})," Upload file"]})]}));Zs.displayName="Input";const Sd=y.forwardRef(({className:e,...t},n)=>h.jsx("textarea",{className:q("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Sd.displayName="Textarea";const v0=({control:e,name:t,label:n,placeholder:r,error:s,type:i="text",className:o,disabled:a,textArea:l=!1,textDark:c,supporText:u,handleChange:d,onPrimary:f=!1})=>h.jsx(Xx,{control:e,name:t,render:({field:m})=>h.jsxs(vd,{className:q(o,"flex flex-col w-full relative"),children:[h.jsx(xd,{className:q("text-xl",f&&"!text-on_primary",c?"text-on_surface":"text-on_surface_v"),children:n}),h.jsx(bd,{children:h.jsx(h.Fragment,{children:l?h.jsx(Sd,{rows:3,...m,placeholder:r,className:q(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?h.jsx(Zs,{...m,type:i,placeholder:r,disabled:a,className:q(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):h.jsxs("div",{className:"relative",children:[h.jsx(Zs,{type:"file",placeholder:r,onChange:g=>{var x;const p=((x=g.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",p),m.onChange(p),d&&d(g)},disabled:a}),m.value&&h.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",m.value.name]})]})})}),h.jsx(wd,{className:q("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",s&&f?"text-teritary_04":"text-[#BA1A1A]"),children:s?s.message:u})]})}),x0=({className:e,delay:t=.15})=>h.jsxs(xr.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:q("flex flex-col gap-8 my-16",e),children:[h.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),h.jsx(Re,{className:"w-fit mx-auto",to:"/",children:h.jsx(He,{variant:"outline",children:"Вернуться на главную"})})]}),Zx=({className:e,slides:t,active:n,scrollTo:r})=>h.jsx("div",{className:q("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((s,i)=>h.jsx("span",{onClick:()=>r==null?void 0:r(i),className:q(n===i?"dot-active":"dot")},i))}),Jx=["top","right","bottom","left"],Tt=Math.min,Oe=Math.max,Vr=Math.round,fr=Math.floor,lt=e=>({x:e,y:e}),Qx={left:"right",right:"left",bottom:"top",top:"bottom"},eb={start:"end",end:"start"};function Js(e,t,n){return Oe(e,Tt(t,n))}function gt(e,t){return typeof e=="function"?e(t):e}function yt(e){return e.split("-")[0]}function mn(e){return e.split("-")[1]}function eo(e){return e==="x"?"y":"x"}function to(e){return e==="y"?"height":"width"}function Et(e){return["top","bottom"].includes(yt(e))?"y":"x"}function no(e){return eo(Et(e))}function tb(e,t,n){n===void 0&&(n=!1);const r=mn(e),s=no(e),i=to(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=kr(o)),[o,kr(o)]}function nb(e){const t=kr(e);return[Qs(e),t,Qs(t)]}function Qs(e){return e.replace(/start|end/g,t=>eb[t])}function rb(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function sb(e,t,n,r){const s=mn(e);let i=rb(yt(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Qs)))),i}function kr(e){return e.replace(/left|right|bottom|top/g,t=>Qx[t])}function ib(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ad(e){return typeof e!="number"?ib(e):{top:e,right:e,bottom:e,left:e}}function Or(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function ml(e,t,n){let{reference:r,floating:s}=e;const i=Et(t),o=no(t),a=to(o),l=yt(t),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-s.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-s.width,y:d};break;default:m={x:r.x,y:r.y}}switch(mn(t)){case"start":m[o]-=f*(n&&c?-1:1);break;case"end":m[o]+=f*(n&&c?-1:1);break}return m}const ob=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=ml(c,r,l),f=r,m={},g=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=gt(e,t)||{};if(c==null)return{};const d=Ad(u),f={x:n,y:r},m=no(s),g=to(m),p=await o.getDimensions(c),x=m==="y",v=x?"top":"left",b=x?"bottom":"right",A=x?"clientHeight":"clientWidth",P=i.reference[g]+i.reference[m]-f[m]-i.floating[g],S=f[m]-i.reference[m],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let E=T?T[A]:0;(!E||!await(o.isElement==null?void 0:o.isElement(T)))&&(E=a.floating[A]||i.floating[g]);const D=P/2-S/2,M=E/2-p[g]/2-1,k=Tt(d[v],M),I=Tt(d[b],M),j=k,F=E-p[g]-I,L=E/2-p[g]/2+D,G=Js(j,L,F),W=!l.arrow&&mn(s)!=null&&L!==G&&i.reference[g]/2-(LL<=0)){var I,j;const L=(((I=i.flip)==null?void 0:I.index)||0)+1,G=E[L];if(G)return{data:{index:L,overflows:k},reset:{placement:G}};let W=(j=k.filter(U=>U.overflows[0]<=0).sort((U,B)=>U.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!W)switch(m){case"bestFit":{var F;const U=(F=k.filter(B=>{if(T){const K=Et(B.placement);return K===b||K==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(K=>K>0).reduce((K,Q)=>K+Q,0)]).sort((B,K)=>B[1]-K[1])[0])==null?void 0:F[0];U&&(W=U);break}case"initialPlacement":W=a;break}if(s!==W)return{reset:{placement:W}}}return{}}}};function pl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gl(e){return Jx.some(t=>e[t]>=0)}const cb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=gt(e,t);switch(r){case"referenceHidden":{const i=await Un(t,{...s,elementContext:"reference"}),o=pl(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:gl(o)}}}case"escaped":{const i=await Un(t,{...s,altBoundary:!0}),o=pl(i,n.floating);return{data:{escapedOffsets:o,escaped:gl(o)}}}default:return{}}}}};async function ub(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=yt(n),a=mn(n),l=Et(n)==="y",c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=gt(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),l?{x:m*u,y:f*c}:{x:f*c,y:m*u}}const db=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await ub(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},fb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:v,y:b}=x;return{x:v,y:b}}},...l}=gt(e,t),c={x:n,y:r},u=await Un(t,l),d=Et(yt(s)),f=eo(d);let m=c[f],g=c[d];if(i){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=m+u[x],A=m-u[v];m=Js(b,m,A)}if(o){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=g+u[x],A=g-u[v];g=Js(b,g,A)}const p=a.fn({...t,[f]:m,[d]:g});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[f]:i,[d]:o}}}}}},hb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=gt(e,t),u={x:n,y:r},d=Et(s),f=eo(d);let m=u[f],g=u[d];const p=gt(a,t),x=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const A=f==="y"?"height":"width",P=i.reference[f]-i.floating[A]+x.mainAxis,S=i.reference[f]+i.reference[A]-x.mainAxis;mS&&(m=S)}if(c){var v,b;const A=f==="y"?"width":"height",P=["top","left"].includes(yt(s)),S=i.reference[d]-i.floating[A]+(P&&((v=o.offset)==null?void 0:v[d])||0)+(P?0:x.crossAxis),T=i.reference[d]+i.reference[A]+(P?0:((b=o.offset)==null?void 0:b[d])||0)-(P?x.crossAxis:0);gT&&(g=T)}return{[f]:m,[d]:g}}}},mb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=gt(e,t),u=await Un(t,c),d=yt(s),f=mn(s),m=Et(s)==="y",{width:g,height:p}=i.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,x=f==="end"?"top":"bottom");const b=p-u.top-u.bottom,A=g-u.left-u.right,P=Tt(p-u[x],b),S=Tt(g-u[v],A),T=!t.middlewareData.shift;let E=P,D=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=b),T&&!f){const k=Oe(u.left,0),I=Oe(u.right,0),j=Oe(u.top,0),F=Oe(u.bottom,0);m?D=g-2*(k!==0||I!==0?k+I:Oe(u.left,u.right)):E=p-2*(j!==0||F!==0?j+F:Oe(u.top,u.bottom))}await l({...t,availableWidth:D,availableHeight:E});const M=await o.getDimensions(a.floating);return g!==M.width||p!==M.height?{reset:{rects:!0}}:{}}}};function Xr(){return typeof window<"u"}function pn(e){return Cd(e)?(e.nodeName||"").toLowerCase():"#document"}function Ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(Cd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cd(e){return Xr()?e instanceof Node||e instanceof Ie(e).Node:!1}function Ze(e){return Xr()?e instanceof Element||e instanceof Ie(e).Element:!1}function ct(e){return Xr()?e instanceof HTMLElement||e instanceof Ie(e).HTMLElement:!1}function yl(e){return!Xr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ie(e).ShadowRoot}function Zn(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function pb(e){return["table","td","th"].includes(pn(e))}function Yr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ro(e){const t=so(),n=Ze(e)?Je(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function gb(e){let t=Rt(e);for(;ct(t)&&!an(t);){if(ro(t))return t;if(Yr(t))return null;t=Rt(t)}return null}function so(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function an(e){return["html","body","#document"].includes(pn(e))}function Je(e){return Ie(e).getComputedStyle(e)}function Zr(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if(pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yl(e)&&e.host||ut(e);return yl(t)?t.host:t}function Pd(e){const t=Rt(e);return an(t)?e.ownerDocument?e.ownerDocument.body:e.body:ct(t)&&Zn(t)?t:Pd(t)}function $n(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Pd(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Ie(s);if(i){const a=ei(o);return t.concat(o,o.visualViewport||[],Zn(s)?s:[],a&&n?$n(a):[])}return t.concat(s,$n(s,[],n))}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Td(e){const t=Je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=ct(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=Vr(n)!==i||Vr(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function io(e){return Ze(e)?e:e.contextElement}function nn(e){const t=io(e);if(!ct(t))return lt(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Td(t);let o=(i?Vr(n.width):n.width)/r,a=(i?Vr(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const yb=lt(0);function Ed(e){const t=Ie(e);return!so()||!t.visualViewport?yb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ie(e)?!1:t}function Ut(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=io(e);let o=lt(1);t&&(r?Ze(r)&&(o=nn(r)):o=nn(e));const a=vb(i,n,r)?Ed(i):lt(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const f=Ie(i),m=r&&Ze(r)?Ie(r):r;let g=f,p=ei(g);for(;p&&r&&m!==g;){const x=nn(p),v=p.getBoundingClientRect(),b=Je(p),A=v.left+(p.clientLeft+parseFloat(b.paddingLeft))*x.x,P=v.top+(p.clientTop+parseFloat(b.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=A,c+=P,g=Ie(p),p=ei(g)}}return Or({width:u,height:d,x:l,y:c})}function oo(e,t){const n=Zr(e).scrollLeft;return t?t.left+n:Ut(ut(e)).left+n}function Rd(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:oo(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function xb(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=ut(r),a=t?Yr(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=lt(1);const u=lt(0),d=ct(r);if((d||!d&&!i)&&((pn(r)!=="body"||Zn(o))&&(l=Zr(r)),ct(r))){const m=Ut(r);c=nn(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const f=o&&!d&&!i?Rd(o,l,!0):lt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function bb(e){return Array.from(e.getClientRects())}function wb(e){const t=ut(e),n=Zr(e),r=e.ownerDocument.body,s=Oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+oo(e);const a=-n.scrollTop;return Je(r).direction==="rtl"&&(o+=Oe(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function Sb(e,t){const n=Ie(e),r=ut(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=so();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function Ab(e,t){const n=Ut(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=ct(e)?nn(e):lt(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function vl(e,t,n){let r;if(t==="viewport")r=Sb(e,n);else if(t==="document")r=wb(ut(e));else if(Ze(t))r=Ab(t,n);else{const s=Ed(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Or(r)}function Dd(e,t){const n=Rt(e);return n===t||!Ze(n)||an(n)?!1:Je(n).position==="fixed"||Dd(n,t)}function Cb(e,t){const n=t.get(e);if(n)return n;let r=$n(e,[],!1).filter(a=>Ze(a)&&pn(a)!=="body"),s=null;const i=Je(e).position==="fixed";let o=i?Rt(e):e;for(;Ze(o)&&!an(o);){const a=Je(o),l=ro(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Zn(o)&&!l&&Dd(e,o))?r=r.filter(u=>u!==o):s=a,o=Rt(o)}return t.set(e,r),r}function Pb(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Yr(t)?[]:Cb(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=vl(t,u,s);return c.top=Oe(d.top,c.top),c.right=Tt(d.right,c.right),c.bottom=Tt(d.bottom,c.bottom),c.left=Oe(d.left,c.left),c},vl(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Tb(e){const{width:t,height:n}=Td(e);return{width:t,height:n}}function Eb(e,t,n){const r=ct(t),s=ut(t),i=n==="fixed",o=Ut(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=lt(0);if(r||!r&&!i)if((pn(t)!=="body"||Zn(s))&&(a=Zr(t)),r){const f=Ut(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&(l.x=oo(s));const c=s&&!r&&!i?Rd(s,a):lt(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function Ps(e){return Je(e).position==="static"}function xl(e,t){if(!ct(e)||Je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function jd(e,t){const n=Ie(e);if(Yr(e))return n;if(!ct(e)){let s=Rt(e);for(;s&&!an(s);){if(Ze(s)&&!Ps(s))return s;s=Rt(s)}return n}let r=xl(e,t);for(;r&&pb(r)&&Ps(r);)r=xl(r,t);return r&&an(r)&&Ps(r)&&!ro(r)?n:r||gb(e)||n}const Rb=async function(e){const t=this.getOffsetParent||jd,n=this.getDimensions,r=await n(e.floating);return{reference:Eb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Db(e){return Je(e).direction==="rtl"}const jb={convertOffsetParentRelativeRectToViewportRelativeRect:xb,getDocumentElement:ut,getClippingRect:Pb,getOffsetParent:jd,getElementRects:Rb,getClientRects:bb,getDimensions:Tb,getScale:nn,isElement:Ze,isRTL:Db};function Nd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Nb(e,t){let n=null,r;const s=ut(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=c;if(a||t(),!f||!m)return;const g=fr(d),p=fr(s.clientWidth-(u+f)),x=fr(s.clientHeight-(d+m)),v=fr(u),A={rootMargin:-g+"px "+-p+"px "+-x+"px "+-v+"px",threshold:Oe(0,Tt(1,l))||1};let P=!0;function S(T){const E=T[0].intersectionRatio;if(E!==l){if(!P)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!Nd(c,e.getBoundingClientRect())&&o(),P=!1}try{n=new IntersectionObserver(S,{...A,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,A)}n.observe(e)}return o(!0),i}function Mb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=io(e),u=s||i?[...c?$n(c):[],...$n(t)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=c&&a?Nb(c,n):null;let f=-1,m=null;o&&(m=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var A;(A=m)==null||A.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let g,p=l?Ut(e):null;l&&x();function x(){const v=Ut(e);p&&!Nd(p,v)&&n(),p=v,g=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(b=>{s&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const Vb=db,kb=fb,Ob=lb,_b=mb,Fb=cb,bl=ab,Lb=hb,Ib=(e,t,n)=>{const r=new Map,s={platform:jb,...n},i={...s.platform,_c:r};return ob(e,t,{...s,platform:i})};var wr=typeof document<"u"?y.useLayoutEffect:y.useEffect;function _r(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_r(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!_r(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Md(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wl(e,t){const n=Md(e);return Math.round(t*n)/n}function Ts(e){const t=y.useRef(e);return wr(()=>{t.current=e}),t}function Bb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=y.useState(r);_r(f,r)||m(r);const[g,p]=y.useState(null),[x,v]=y.useState(null),b=y.useCallback(B=>{B!==T.current&&(T.current=B,p(B))},[]),A=y.useCallback(B=>{B!==E.current&&(E.current=B,v(B))},[]),P=i||g,S=o||x,T=y.useRef(null),E=y.useRef(null),D=y.useRef(u),M=l!=null,k=Ts(l),I=Ts(s),j=Ts(c),F=y.useCallback(()=>{if(!T.current||!E.current)return;const B={placement:t,strategy:n,middleware:f};I.current&&(B.platform=I.current),Ib(T.current,E.current,B).then(K=>{const Q={...K,isPositioned:j.current!==!1};L.current&&!_r(D.current,Q)&&(D.current=Q,Rl.flushSync(()=>{d(Q)}))})},[f,t,n,I,j]);wr(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,d(B=>({...B,isPositioned:!1})))},[c]);const L=y.useRef(!1);wr(()=>(L.current=!0,()=>{L.current=!1}),[]),wr(()=>{if(P&&(T.current=P),S&&(E.current=S),P&&S){if(k.current)return k.current(P,S,F);F()}},[P,S,F,k,M]);const G=y.useMemo(()=>({reference:T,floating:E,setReference:b,setFloating:A}),[b,A]),W=y.useMemo(()=>({reference:P,floating:S}),[P,S]),U=y.useMemo(()=>{const B={position:n,left:0,top:0};if(!W.floating)return B;const K=wl(W.floating,u.x),Q=wl(W.floating,u.y);return a?{...B,transform:"translate("+K+"px, "+Q+"px)",...Md(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:Q}},[n,a,W.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:F,refs:G,elements:W,floatingStyles:U}),[u,F,G,W,U])}const Ub=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?bl({element:r.current,padding:s}).fn(n):{}:r?bl({element:r,padding:s}).fn(n):{}}}},$b=(e,t)=>({...Vb(e),options:[e,t]}),zb=(e,t)=>({...kb(e),options:[e,t]}),Wb=(e,t)=>({...Lb(e),options:[e,t]}),Hb=(e,t)=>({...Ob(e),options:[e,t]}),Gb=(e,t)=>({..._b(e),options:[e,t]}),Kb=(e,t)=>({...Fb(e),options:[e,t]}),qb=(e,t)=>({...Ub(e),options:[e,t]});var Xb="Arrow",Vd=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return h.jsx(je.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vd.displayName=Xb;var Yb=Vd;function Zb(e){const[t,n]=y.useState(void 0);return It(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ao="Popper",[kd,Od]=ri(ao),[Jb,_d]=kd(ao),Fd=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return h.jsx(Jb,{scope:t,anchor:r,onAnchorChange:s,children:n})};Fd.displayName=ao;var Ld="PopperAnchor",Id=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=_d(Ld,n),o=y.useRef(null),a=Qe(t,o);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:h.jsx(je.div,{...s,ref:a})});Id.displayName=Ld;var lo="PopperContent",[Qb,ew]=kd(lo),Bd=y.forwardRef((e,t)=>{var Z,te,de,ge,re,$;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:g,...p}=e,x=_d(lo,n),[v,b]=y.useState(null),A=Qe(t,J=>b(J)),[P,S]=y.useState(null),T=Zb(P),E=(T==null?void 0:T.width)??0,D=(T==null?void 0:T.height)??0,M=r+(i!=="center"?"-"+i:""),k=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(c)?c:[c],j=I.length>0,F={padding:k,boundary:I.filter(nw),altBoundary:j},{refs:L,floatingStyles:G,placement:W,isPositioned:U,middlewareData:B}=Bb({strategy:"fixed",placement:M,whileElementsMounted:(...J)=>Mb(...J,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[$b({mainAxis:s+D,alignmentAxis:o}),l&&zb({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Wb():void 0,...F}),l&&Hb({...F}),Gb({...F,apply:({elements:J,rects:ie,availableWidth:xe,availableHeight:ke})=>{const{width:Ue,height:w}=ie.reference,C=J.floating.style;C.setProperty("--radix-popper-available-width",`${xe}px`),C.setProperty("--radix-popper-available-height",`${ke}px`),C.setProperty("--radix-popper-anchor-width",`${Ue}px`),C.setProperty("--radix-popper-anchor-height",`${w}px`)}}),P&&qb({element:P,padding:a}),rw({arrowWidth:E,arrowHeight:D}),f&&Kb({strategy:"referenceHidden",...F})]}),[K,Q]=zd(W),ee=At(g);It(()=>{U&&(ee==null||ee())},[U,ee]);const Se=(Z=B.arrow)==null?void 0:Z.x,Ve=(te=B.arrow)==null?void 0:te.y,Ae=((de=B.arrow)==null?void 0:de.centerOffset)!==0,[Ge,Te]=y.useState();return It(()=>{v&&Te(window.getComputedStyle(v).zIndex)},[v]),h.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:U?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ge,"--radix-popper-transform-origin":[(ge=B.transformOrigin)==null?void 0:ge.x,(re=B.transformOrigin)==null?void 0:re.y].join(" "),...(($=B.hide)==null?void 0:$.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(Qb,{scope:n,placedSide:K,onArrowChange:S,arrowX:Se,arrowY:Ve,shouldHideArrow:Ae,children:h.jsx(je.div,{"data-side":K,"data-align":Q,...p,ref:A,style:{...p.style,animation:U?void 0:"none"}})})})});Bd.displayName=lo;var Ud="PopperArrow",tw={top:"bottom",right:"left",bottom:"top",left:"right"},$d=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=ew(Ud,r),o=tw[i.placedSide];return h.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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:h.jsx(Yb,{...s,ref:n,style:{...s.style,display:"block"}})})});$d.displayName=Ud;function nw(e){return e!==null}var rw=e=>({name:"transformOrigin",options:e,fn(t){var x,v,b;const{placement:n,rects:r,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=zd(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,m=(((b=s.arrow)==null?void 0:b.y)??0)+l/2;let g="",p="";return c==="bottom"?(g=o?d:`${f}px`,p=`${-l}px`):c==="top"?(g=o?d:`${f}px`,p=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,p=o?d:`${m}px`):c==="left"&&(g=`${r.floating.width+l}px`,p=o?d:`${m}px`),{data:{x:g,y:p}}}});function zd(e){const[t,n="center"]=e.split("-");return[t,n]}var sw=Fd,Wd=Id,iw=Bd,ow=$d,co="Popover",[Hd,b0]=ri(co,[Od]),Jn=Od(),[aw,jt]=Hd(co),Gd=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=Jn(t),l=y.useRef(null),[c,u]=y.useState(!1),[d=!1,f]=jl({prop:r,defaultProp:s,onChange:i});return h.jsx(sw,{...a,children:h.jsx(aw,{scope:t,contentId:hr(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:c,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:o,children:n})})};Gd.displayName=co;var Kd="PopoverAnchor",lw=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=jt(Kd,n),i=Jn(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return y.useEffect(()=>(o(),()=>a()),[o,a]),h.jsx(Wd,{...i,...r,ref:t})});lw.displayName=Kd;var qd="PopoverTrigger",Xd=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=jt(qd,n),i=Jn(n),o=Qe(t,s.triggerRef),a=h.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ef(s.open),...r,ref:o,onClick:_e(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:h.jsx(Wd,{asChild:!0,...i,children:a})});Xd.displayName=qd;var uo="PopoverPortal",[cw,uw]=Hd(uo,{forceMount:void 0}),Yd=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=jt(uo,t);return h.jsx(cw,{scope:t,forceMount:n,children:h.jsx(un,{present:n||i.open,children:h.jsx(oi,{asChild:!0,container:s,children:r})})})};Yd.displayName=uo;var ln="PopoverContent",Zd=y.forwardRef((e,t)=>{const n=uw(ln,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=jt(ln,e.__scopePopover);return h.jsx(un,{present:r||i.open,children:i.modal?h.jsx(dw,{...s,ref:t}):h.jsx(fw,{...s,ref:t})})});Zd.displayName=ln;var dw=y.forwardRef((e,t)=>{const n=jt(ln,e.__scopePopover),r=y.useRef(null),s=Qe(t,r),i=y.useRef(!1);return y.useEffect(()=>{const o=r.current;if(o)return zl(o)},[]),h.jsx(ai,{as:cn,allowPinchZoom:!0,children:h.jsx(Jd,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_e(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:_e(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:_e(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),fw=y.forwardRef((e,t)=>{const n=jt(ln,e.__scopePopover),r=y.useRef(!1),s=y.useRef(!1);return h.jsx(Jd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Jd=y.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=jt(ln,n),m=Jn(n);return kl(),h.jsx(ii,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:h.jsx(si,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:h.jsx(iw,{"data-state":ef(f.open),role:"dialog",id:f.contentId,...m,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Qd="PopoverClose",hw=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=jt(Qd,n);return h.jsx(je.button,{type:"button",...r,ref:t,onClick:_e(e.onClick,()=>s.onOpenChange(!1))})});hw.displayName=Qd;var mw="PopoverArrow",pw=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Jn(n);return h.jsx(ow,{...s,...r,ref:t})});pw.displayName=mw;function ef(e){return e?"open":"closed"}var gw=Gd,yw=Xd,vw=Yd,tf=Zd;const xw=gw,bw=yw,nf=y.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>h.jsx(vw,{children:h.jsx(tf,{ref:s,align:t,sideOffset:n,className:q("z-50 w-32 rounded-[2px] s bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));nf.displayName=tf.displayName;const Sl=[{lang:be.RU},{lang:be.EN}],ww=({className:e})=>{const t=Ye(i=>i.lang),n=Ye(i=>i.setLang),[r,s]=y.useState(!1);return console.log(Sl.filter(i=>i.lang===t)),h.jsxs(xw,{open:r,onOpenChange:()=>s(!r),children:[h.jsxs(bw,{className:q("flex items-center gap-2",e),children:[h.jsx("img",{src:t===be.RU?"/ru.svg":"/en.svg",alt:""}),t===be.RU?"Ру":"En",h.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:"#2C2828"})})]}),h.jsx(nf,{className:"flex flex-col gap-6",children:Sl.filter(i=>i.lang!==t).map((i,o)=>h.jsxs("div",{onClick:()=>{n(i.lang),s(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[h.jsx("img",{src:i.lang===be.RU?"/ru.svg":"/en.svg",alt:"flag"}),h.jsx("h5",{children:i.lang===be.RU?"Русский":"English"})]},o))})]})},Al=[{h1:"Тематические направления выставки",data:[{title:"Пищевая продукция и сельское хозяйство",img:"/theme/1.svg"},{title:"Товары и услуги",img:"/theme/2.svg"},{title:"E-commerce",img:"/theme/3.svg"},{title:"Волокна, текстиль и одежда",img:"/theme/4.svg"},{title:"Продукция промышленного производства",img:"/theme/5.svg"},{title:"Профессиональные услуги",img:"/theme/6.svg"},{title:"Ремесленные производства",img:"/theme/7.svg"},{title:"Креативные индустрии",img:"/theme/8.svg"}]},{title:"Thematic areas of the exhibition",data:[{title:"Пищевая продукция и сельское хозяйство",img:"/theme/1.svg"},{title:"Товары и услуги",img:"/theme/2.svg"},{title:"E-commerce",img:"/theme/3.svg"},{title:"Волокна, текстиль и одежда",img:"/theme/4.svg"},{title:"Продукция промышленного производства",img:"/theme/5.svg"},{title:"Профессиональные услуги",img:"/theme/6.svg"},{title:"Ремесленные производства",img:"/theme/7.svg"},{title:"Креативные индустрии",img:"/theme/8.svg"}]}],Sw=[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}],w0=()=>{const e=Ye(t=>t.lang);return h.jsx("section",{className:"",children:h.jsxs(Be,{children:[h.jsx("h2",{className:"h2 mb-10 text-center",children:Al[Fe(e)].title}),h.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Al[Fe(e)].data.map(t=>h.jsx(Ac,{...t,iconClassName:"bg-teritary_04"},t.title))})]})})},S0=({className:e})=>h.jsx("section",{className:q("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:h.jsxs(Be,{children:[h.jsx("h3",{className:"h2 mb-4",children:"Отрасли"}),h.jsx("p",{className:"text-lg text-primary_09 mb-6",children:"Мероприятие объединит ключевых игроков в таких отраслях, как:"}),h.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Sw.map(t=>h.jsx(Ac,{className:"!bg-[#F5F4F4]",...t},t.title))}),h.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[h.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-primary_09"}),h.jsx("p",{className:"text-18 !text-primary_09",children:"Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки."})]})]})}),Fr=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 мая – 10 июня 2025 года"},{name:"Работа",date:"11–13 июня 2025 года"},{name:"Демонтаж",date:"13–14 июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"1 — 27 april 2025"},{name:"Exhibition days",date:"29 — 1 may 2025"},{name:"Exhibition dismantling",date:"1 — 2 may 2025"}]}],A0=({className:e})=>{const t=Ye(n=>n.lang);return h.jsx("section",{className:q("bg-bg_surface_container py-10 md:py-[160px]",e),children:h.jsxs(Be,{children:[h.jsx("h2",{className:"h2 mb-6",children:Fr[Fe(t)].title}),h.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Fr[Fe(t)].data.map(n=>y.createElement(Cc,{bottomClassName:"!bg-white rounded-b-[2px]",...n,key:n.name,className:"w-full"}))})]})})},C0=({className:e})=>h.jsxs("section",{className:q(" gap-6 relative overflow-hidden",e),children:[h.jsxs(Be,{className:"md:py-20 py-10 ",children:[h.jsx("h3",{className:"h2 mb-6 xl:max-w-[496px]",children:"Место проведения"}),h.jsx("p",{className:"text-lg text-on_surface_v normal xl:max-w-[496px] mb-10",children:"Торгово-промышленная палата Туркменистана создана в целях содействия развитию экономики Туркменистана, ее интегрированию в мировую хозяйственную систему, формированию современной промышленной, финансовой и торговой инфраструктуры, создания благоприятных условий для предпринимательской деятельности, оказания содействия в установлении торгово-экономических, научных и технических связей с зарубежными партнерами."}),h.jsx("div",{className:"size-full xl:hidden",children:h.jsx("img",{src:"/map.png",alt:"map",className:"size-full object-cover"})})]}),h.jsx("div",{className:"h-full 2xl:w-[850px] xl:w-[650px] xl:block hidden absolute top-0 right-0",children:h.jsx("img",{src:"/map.png",alt:"",className:"size-full object-cover"})})]}),P0=({className:e})=>h.jsxs("section",{className:q("md:py-20 py-10 relative overflow-hidden",e),children:[h.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),h.jsxs(Be,{children:[h.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:"Приглашение к участию"}),h.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:"Торгово-промышленная палата Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана на глобальной экономической арене."}),h.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[h.jsx(Re,{to:"/stend-form",className:"w-full",children:h.jsx(He,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:"Забронировать стенд"})}),h.jsx(Re,{to:"/B2B-B2G",className:"w-full",children:h.jsx(He,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:"B2B | B2G встречи"})})]})]})]}),T0=()=>h.jsxs(Be,{className:"flex flex-col md:my-20 my-10 gap-16",children:[h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Выставка-ярмарка «TurkmenTextile Expo 2025» "}),h.jsxs("p",{className:"p",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Перспективы"}),h.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 открывает широкие перспективы для участников:"}),h.jsxs("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 p",children:[h.jsx("li",{children:"Расширение деловых связей — уникальная возможность для B2B и B2G-встреч, заключения торговых соглашений и установления стратегических партнёрств."}),h.jsx("li",{children:"Доступ к инновациям — знакомство с передовыми технологиями текстильного производства, экологичными материалами и трендами устойчивого дизайна."}),h.jsx("li",{children:"Повышение экспортного потенциала — участие в форумах и семинарах, посвящённых продвижению продукции на новые рынки."}),h.jsx("li",{children:"Обучение и развитие — мастер-классы и лекции от ведущих мировых экспертов помогут участникам углубить знания и освоить современные подходы в области текстильной индустрии."}),h.jsx("li",{children:"Культурный обмен — возможность продемонстрировать богатое текстильное наследие Туркменистана и вдохновиться культурными традициями других стран."})]})]}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Направления"}),h.jsx("h4",{className:"p",children:"Выставка охватывает ключевые аспекты текстильной и модной индустрии, включая:"}),h.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[h.jsx("li",{children:"Традиционный текстиль: экспозиции, шёлковым изделиям и ремесленным техникам Туркменистана."}),h.jsx("li",{children:"Инновационные материалы и технологии: зоны, где демонстрируются устойчивые материалы, 3D-ткацкие технологии и экологически чистые красители."}),h.jsx("li",{children:"Модные показы: ежедневные подиумные шоу с участием местных и международных дизайнеров, включая зарубежных модельеров."}),h.jsx("li",{children:"Маркетплейс для переговоров: пространство для встреч между экспортёрами и импортёрами."}),h.jsx("li",{children:"Оборудование для текстильной промышленности: современные технологии и машины для повышения эффективности и конкурентоспособности."}),h.jsx("li",{children:"Образовательные зоны: интерактивные экспозиции и семинары на тему устойчивости, дизайна и переработки."})]}),h.jsx("p",{className:"text-18",children:"Участники смогут обсудить современные технологии, лучшие практики и эффективные стратегии для устойчивого бизнеса."})]}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:"Партнёрство и спонсорство"}),h.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 приглашает к сотрудничеству международные организации, ассоциации и бренды для продвижения своих продуктов и услуг. Партнёры получат:"}),h.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[h.jsx("li",{children:"Признание на международной арене — участие в масштабном событии, привлекающем ведущих игроков текстильной и модной индустрий."}),h.jsx("li",{children:"Рекламные возможности — интеграция бренда в маркетинговую кампанию выставки, включая digital и офлайн-каналы."}),h.jsx("li",{children:"Вклад в развитие индустрии — поддержка инноваций, устойчивых практик и культурного наследия."})]})]})]});function Aw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Cl(e){return Aw(e)||Array.isArray(e)}function Cw(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function fo(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],l=t[o];return typeof a=="function"?`${a}`==`${l}`:!Cl(a)||!Cl(l)?a===l:fo(a,l)})}function Pl(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Pw(e,t){if(e.length!==t.length)return!1;const n=Pl(e),r=Pl(t);return n.every((s,i)=>{const o=r[i];return fo(s,o)})}function ho(e){return typeof e=="number"}function ti(e){return typeof e=="string"}function Jr(e){return typeof e=="boolean"}function Tl(e){return Object.prototype.toString.call(e)==="[object Object]"}function ce(e){return Math.abs(e)}function mo(e){return Math.sign(e)}function kn(e,t){return ce(e-t)}function Tw(e,t){if(e===0||t===0||ce(e)<=ce(t))return 0;const n=kn(ce(e),ce(t));return ce(n/e)}function Ew(e){return Math.round(e*100)/100}function zn(e){return Wn(e).map(Number)}function Xe(e){return e[Qn(e)]}function Qn(e){return Math.max(0,e.length-1)}function po(e,t){return t===Qn(e)}function El(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Wn(e){return Object.keys(e)}function rf(e,t){return[e,t].reduce((n,r)=>(Wn(r).forEach(s=>{const i=n[s],o=r[s],a=Tl(i)&&Tl(o);n[s]=a?rf(i,o):o}),n),{})}function ni(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Rw(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(l){return i(l)/2}function i(l){return t-l}function o(l,c){return ti(e)?n[e](l):e(t,l,c)}return{measure:o}}function Hn(){let e=[];function t(s,i,o,a={passive:!0}){let l;if("addEventListener"in s)s.addEventListener(i,o,a),l=()=>s.removeEventListener(i,o,a);else{const c=s;c.addListener(o),l=()=>c.removeListener(o)}return e.push(l),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function Dw(e,t,n,r){const s=Hn(),i=1e3/60;let o=null,a=0,l=0;function c(){s.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){m(),s.clear()}function d(x){if(!l)return;o||(o=x,n(),n());const v=x-o;for(o=x,a+=v;a>=i;)n(),a-=i;const b=a/i;r(b),l&&(l=t.requestAnimationFrame(d))}function f(){l||(l=t.requestAnimationFrame(d))}function m(){t.cancelAnimationFrame(l),o=null,a=0,l=0}function g(){o=null,a=0}return{init:c,destroy:u,start:f,stop:m,update:n,render:r}}function jw(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),l=d();function c(g){const{height:p,width:x}=g;return r?p:x}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(g){return g*o}return{scroll:s,cross:i,startEdge:a,endEdge:l,measureSize:c,direction:f}}function $t(e=0,t=0){const n=ce(e-t);function r(c){return ct}function i(c){return r(c)||s(c)}function o(c){return i(c)?r(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}function sf(e,t,n){const{constrain:r}=$t(0,e),s=e+1;let i=o(t);function o(f){return n?ce((s+f)%s):r(f)}function a(){return i}function l(f){return i=o(f),d}function c(f){return u().set(a()+f)}function u(){return sf(e,a(),n)}const d={get:a,set:l,add:c,clone:u};return d}function Nw(e,t,n,r,s,i,o,a,l,c,u,d,f,m,g,p,x,v,b){const{cross:A,direction:P}=e,S=["INPUT","SELECT","TEXTAREA"],T={passive:!1},E=Hn(),D=Hn(),M=$t(50,225).constrain(m.measure(20)),k={mouse:300,touch:400},I={mouse:500,touch:600},j=g?43:25;let F=!1,L=0,G=0,W=!1,U=!1,B=!1,K=!1;function Q($){if(!b)return;function J(xe){(Jr(b)||b($,xe))&&Te(xe)}const ie=t;E.add(ie,"dragstart",xe=>xe.preventDefault(),T).add(ie,"touchmove",()=>{},T).add(ie,"touchend",()=>{}).add(ie,"touchstart",J).add(ie,"mousedown",J).add(ie,"touchcancel",te).add(ie,"contextmenu",te).add(ie,"click",de,!0)}function ee(){E.clear(),D.clear()}function Se(){const $=K?n:t;D.add($,"touchmove",Z,T).add($,"touchend",te).add($,"mousemove",Z,T).add($,"mouseup",te)}function Ve($){const J=$.nodeName||"";return S.includes(J)}function Ae(){return(g?I:k)[K?"mouse":"touch"]}function Ge($,J){const ie=d.add(mo($)*-1),xe=u.byDistance($,!g).distance;return g||ce($)=2,!(J&&$.button!==0)&&(Ve($.target)||(W=!0,i.pointerDown($),c.useFriction(0).useDuration(0),s.set(o),Se(),L=i.readPoint($),G=i.readPoint($,A),f.emit("pointerDown")))}function Z($){if(!ni($,r)&&$.touches.length>=2)return te($);const ie=i.readPoint($),xe=i.readPoint($,A),ke=kn(ie,L),Ue=kn(xe,G);if(!U&&!K&&(!$.cancelable||(U=ke>Ue,!U)))return te($);const w=i.pointerMove($);ke>p&&(B=!0),c.useFriction(.3).useDuration(.75),a.start(),s.add(P(w)),$.preventDefault()}function te($){const ie=u.byDistance(0,!1).index!==d.get(),xe=i.pointerUp($)*Ae(),ke=Ge(P(xe),ie),Ue=Tw(xe,ke),w=j-10*Ue,C=v+Ue/50;U=!1,W=!1,D.clear(),c.useDuration(w).useFriction(C),l.distance(ke,!g),K=!1,f.emit("pointerUp")}function de($){B&&($.stopPropagation(),$.preventDefault(),B=!1)}function ge(){return W}return{init:Q,destroy:ee,pointerDown:ge}}function Mw(e,t){let r,s;function i(d){return d.timeStamp}function o(d,f){const g=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(ni(d,t)?d:d.touches[0])[g]}function a(d){return r=d,s=d,o(d)}function l(d){const f=o(d)-o(s),m=i(d)-i(r)>170;return s=d,m&&(r=d),f}function c(d){if(!r||!s)return 0;const f=o(s)-o(r),m=i(d)-i(r),g=i(d)-i(s)>170,p=f/m;return m&&!g&&ce(p)>.1?p:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:o}}function Vw(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function kw(e){function t(r){return e*(r/100)}return{measure:t}}function Ow(e,t,n,r,s,i,o){const a=[e].concat(r);let l,c,u=[],d=!1;function f(x){return s.measureSize(o.measure(x))}function m(x){if(!i)return;c=f(e),u=r.map(f);function v(b){for(const A of b){if(d)return;const P=A.target===e,S=r.indexOf(A.target),T=P?c:u[S],E=f(P?e:r[S]);if(ce(E-T)>=.5){x.reInit(),t.emit("resize");break}}}l=new ResizeObserver(b=>{(Jr(i)||i(x,b))&&v(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>l.observe(b))})}function g(){d=!0,l&&l.disconnect()}return{init:m,destroy:g}}function _w(e,t,n,r,s,i){let o=0,a=0,l=s,c=i,u=e.get(),d=0;function f(){const T=r.get()-e.get(),E=!l;let D=0;return E?(o=0,n.set(r),e.set(r),D=T):(n.set(e),o+=T/l,o*=c,u+=o,e.add(o),D=u-d),a=mo(D),d=u,S}function m(){const T=r.get()-t.get();return ce(T)<.001}function g(){return l}function p(){return a}function x(){return o}function v(){return A(s)}function b(){return P(i)}function A(T){return l=T,S}function P(T){return c=T,S}const S={direction:p,duration:g,velocity:x,seek:f,settled:m,useBaseFriction:b,useBaseDuration:v,useFriction:P,useDuration:A};return S}function Fw(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=$t(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(m){if(!c())return;const g=e.reachedMin(t.get())?"min":"max",p=ce(e[g]-t.get()),x=n.get()-t.get(),v=a.constrain(p/o);n.subtract(x*v),!m&&ce(x){const{min:x,max:v}=i,b=i.constrain(g),A=!p,P=po(n,p);return A?v:P||c(x,b)?x:c(v,b)?v:b}).map(g=>parseFloat(g.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:g,max:p}=a;return o.slice(g,p)}return{snapsContained:l,scrollContainLimit:a}}function Iw(e,t,n){const r=t[0],s=n?r-e:Xe(t);return{limit:$t(s,r)}}function Bw(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:l}=$t(i,o);function c(f){return f===1?l(n.get()):f===-1?a(n.get()):!1}function u(f){if(!c(f))return;const m=e*(f*-1);r.forEach(g=>g.add(m))}return{loop:u}}function Uw(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function $w(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,l=d().map(t.measure),c=f(),u=m();function d(){return a(r).map(p=>Xe(p)[o]-p[0][i]).map(ce)}function f(){return r.map(p=>n[i]-p[i]).map(p=>-ce(p))}function m(){return a(c).map(p=>p[0]).map((p,x)=>p+l[x])}return{snaps:c,snapsAligned:u}}function zw(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:l}=r,c=u();function u(){const f=o(i),m=!e||t==="keepSnaps";return n.length===1?[i]:m?f:f.slice(a,l).map((g,p,x)=>{const v=!p,b=po(x,p);if(v){const A=Xe(x[0])+1;return El(A)}if(b){const A=Qn(i)-Xe(x)[0]+1;return El(A,Xe(x)[0])}return g})}return{slideRegistry:c}}function Ww(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function l(g){return g.concat().sort((p,x)=>ce(p)-ce(x))[0]}function c(g){const p=e?o(g):a(g),x=t.map((b,A)=>({diff:u(b-p,0),index:A})).sort((b,A)=>ce(b.diff)-ce(A.diff)),{index:v}=x[0];return{index:v,distance:p}}function u(g,p){const x=[g,g+n,g-n];if(!e)return g;if(!p)return l(x);const v=x.filter(b=>mo(b)===p);return v.length?l(v):Xe(x)-n}function d(g,p){const x=t[g]-s.get(),v=u(x,p);return{index:g,distance:v}}function f(g,p){const x=s.get()+g,{index:v,distance:b}=c(x),A=!e&&i(x);if(!p||A)return{index:v,distance:g};const P=t[v]-b,S=g+u(P,0);return{index:v,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function Hw(e,t,n,r,s,i,o){function a(d){const f=d.distance,m=d.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function l(d,f){const m=s.byDistance(d,f);a(m)}function c(d,f){const m=t.clone().set(d),g=s.byIndex(m.get(),f);a(g)}return{distance:l,index:c}}function Gw(e,t,n,r,s,i,o,a){const l={passive:!0,capture:!0};let c=0;function u(m){if(!a)return;function g(p){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(A=>A.includes(p));ho(b)&&(s.useDuration(0),r.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((p,x)=>{i.add(p,"focus",v=>{(Jr(a)||a(m,v))&&g(x)},l)})}function d(m){m.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function En(e){let t=e;function n(){return t}function r(l){t=o(l)}function s(l){t+=o(l)}function i(l){t-=o(l)}function o(l){return ho(l)?l:l.get()}return{get:n,set:r,add:s,subtract:i}}function of(e,t){const n=e.scroll==="x"?o:a,r=t.style;let s=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(i)return;const m=Ew(e.direction(f));m!==s&&(r.transform=n(m),s=m)}function c(f){i=!f}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function Kw(e,t,n,r,s,i,o,a,l){const u=zn(s),d=zn(s).reverse(),f=v().concat(b());function m(E,D){return E.reduce((M,k)=>M-s[k],D)}function g(E,D){return E.reduce((M,k)=>m(M,D)>0?M.concat([k]):M,[])}function p(E){return i.map((D,M)=>({start:D-r[M]+.5+E,end:D+t-.5+E}))}function x(E,D,M){const k=p(D);return E.map(I=>{const j=M?0:-n,F=M?n:0,L=M?"end":"start",G=k[I][L];return{index:I,loopPoint:G,slideLocation:En(-1),translate:of(e,l[I]),target:()=>a.get()>G?j:F}})}function v(){const E=o[0],D=g(d,E);return x(D,n,!1)}function b(){const E=t-o[0]-1,D=g(u,E);return x(D,-n,!0)}function A(){return f.every(({index:E})=>{const D=u.filter(M=>M!==E);return m(D,t)<=.1})}function P(){f.forEach(E=>{const{target:D,translate:M,slideLocation:k}=E,I=D();I!==k.get()&&(M.to(I),k.set(I))})}function S(){f.forEach(E=>E.translate.clear())}return{canLoop:A,clear:S,loop:P,loopPoints:f}}function qw(e,t,n){let r,s=!1;function i(l){if(!n)return;function c(u){for(const d of u)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(Jr(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function Xw(e,t,n,r){const s={};let i=null,o=null,a,l=!1;function c(){a=new IntersectionObserver(g=>{l||(g.forEach(p=>{const x=t.indexOf(p.target);s[x]=p}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>a.observe(g))}function u(){a&&a.disconnect(),l=!0}function d(g){return Wn(s).reduce((p,x)=>{const v=parseInt(x),{isIntersecting:b}=s[v];return(g&&b||!g&&!b)&&p.push(v),p},[])}function f(g=!0){if(g&&i)return i;if(!g&&o)return o;const p=d(g);return g&&(i=p),g||(o=p),p}return{init:c,destroy:u,get:f}}function Yw(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:l}=e,c=n[0]&&s,u=g(),d=p(),f=n.map(o),m=x();function g(){if(!c)return 0;const b=n[0];return ce(t[a]-b[a])}function p(){if(!c)return 0;const b=i.getComputedStyle(Xe(r));return parseFloat(b.getPropertyValue(`margin-${l}`))}function x(){return n.map((b,A,P)=>{const S=!A,T=po(P,A);return S?f[A]+u:T?f[A]+d:P[A+1][a]-b[a]}).map(ce)}return{slideSizes:f,slideSizesWithGaps:m,startGap:u,endGap:d}}function Zw(e,t,n,r,s,i,o,a,l){const{startEdge:c,endEdge:u,direction:d}=e,f=ho(n);function m(v,b){return zn(v).filter(A=>A%b===0).map(A=>v.slice(A,A+b))}function g(v){return v.length?zn(v).reduce((b,A,P)=>{const S=Xe(b)||0,T=S===0,E=A===Qn(v),D=s[c]-i[S][c],M=s[c]-i[A][u],k=!r&&T?d(o):0,I=!r&&E?d(a):0,j=ce(M-I-(D+k));return P&&j>t+l&&b.push(A),E&&b.push(v.length),b},[]).map((b,A,P)=>{const S=Math.max(P[A-1]||0);return v.slice(S,b)}):[]}function p(v){return f?m(v,n):g(v)}return{groupSlides:p}}function Jw(e,t,n,r,s,i,o){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:m,dragThreshold:g,inViewThreshold:p,slidesToScroll:x,skipSnaps:v,containScroll:b,watchResize:A,watchSlides:P,watchDrag:S,watchFocus:T}=i,E=2,D=Vw(),M=D.measure(t),k=n.map(D.measure),I=jw(l,c),j=I.measureSize(M),F=kw(j),L=Rw(a,j),G=!d&&!!b,W=d||!!b,{slideSizes:U,slideSizesWithGaps:B,startGap:K,endGap:Q}=Yw(I,M,k,n,W,s),ee=Zw(I,j,x,d,M,k,K,Q,E),{snaps:Se,snapsAligned:Ve}=$w(I,L,M,k,ee),Ae=-Xe(Se)+Xe(B),{snapsContained:Ge,scrollContainLimit:Te}=Lw(j,Ae,Ve,b,E),Z=G?Ge:Ve,{limit:te}=Iw(Ae,Z,d),de=sf(Qn(Z),u,d),ge=de.clone(),re=zn(n),$=({dragHandler:nt,scrollBody:Nt,scrollBounds:yn,options:{loop:Mt}})=>{Mt||yn.constrain(nt.pointerDown()),Nt.seek()},J=({scrollBody:nt,translate:Nt,location:yn,offsetLocation:Mt,previousLocation:Qr,scrollLooper:tr,slideLooper:af,dragHandler:lf,animation:cf,eventHandler:go,scrollBounds:uf,options:{loop:yo}},vo)=>{const xo=nt.settled(),df=!uf.shouldConstrain(),bo=yo?xo:xo&&df;bo&&!lf.pointerDown()&&(cf.stop(),go.emit("settle")),bo||go.emit("scroll");const ff=yn.get()*vo+Qr.get()*(1-vo);Mt.set(ff),yo&&(tr.loop(nt.direction()),af.loop()),Nt.to(Mt.get())},ie=Dw(r,s,()=>$(gn),nt=>J(gn,nt)),xe=.68,ke=Z[de.get()],Ue=En(ke),w=En(ke),C=En(ke),R=En(ke),O=_w(Ue,C,w,R,f,xe),V=Ww(d,Z,Ae,te,R),N=Hw(ie,de,ge,O,V,R,o),z=Uw(te),X=Hn(),ye=Xw(t,n,o,p),{slideRegistry:fe}=zw(G,b,Z,Te,ee,re),tt=Gw(e,n,fe,N,O,X,o,T),gn={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:M,slideRects:k,animation:ie,axis:I,dragHandler:Nw(I,e,r,s,R,Mw(I,s),Ue,ie,N,O,V,de,o,F,m,g,v,xe,S),eventStore:X,percentOfView:F,index:de,indexPrevious:ge,limit:te,location:Ue,offsetLocation:C,previousLocation:w,options:i,resizeHandler:Ow(t,o,s,n,I,A,D),scrollBody:O,scrollBounds:Fw(te,C,R,O,F),scrollLooper:Bw(Ae,te,C,[Ue,C,w,R]),scrollProgress:z,scrollSnapList:Z.map(z.get),scrollSnaps:Z,scrollTarget:V,scrollTo:N,slideLooper:Kw(I,j,Ae,U,B,Se,Z,C,n),slideFocus:tt,slidesHandler:qw(t,o,P),slidesInView:ye,slideIndexes:re,slideRegistry:fe,slidesToScroll:ee,target:R,translate:of(I,t)};return gn}function Qw(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function s(c){return r(c).forEach(u=>u(t,c)),l}function i(c,u){return e[c]=r(c).concat([u]),l}function o(c,u){return e[c]=r(c).filter(d=>d!==u),l}function a(){e={}}const l={init:n,emit:s,off:o,on:i,clear:a};return l}const e0={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function t0(e){function t(i,o){return rf(i,o||{})}function n(i){const o=i.breakpoints||{},a=Wn(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(i,a)}function r(i){return i.map(o=>Wn(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function n0(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function Lr(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=t0(s),o=n0(i),a=Hn(),l=Qw(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:m,emit:g}=l,p=I;let x=!1,v,b=c(e0,Lr.globalOptions),A=c(b),P=[],S,T,E;function D(){const{container:re,slides:$}=A;T=(ti(re)?e.querySelector(re):re)||e.children[0];const ie=ti($)?T.querySelectorAll($):$;E=[].slice.call(ie||T.children)}function M(re){const $=Jw(e,T,E,r,s,re,l);if(re.loop&&!$.slideLooper.canLoop()){const J=Object.assign({},re,{loop:!1});return M(J)}return $}function k(re,$){x||(b=c(b,re),A=u(b),P=$||P,D(),v=M(A),d([b,...P.map(({options:J})=>J)]).forEach(J=>a.add(J,"change",I)),A.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(ge),v.eventHandler.init(ge),v.resizeHandler.init(ge),v.slidesHandler.init(ge),v.options.loop&&v.slideLooper.loop(),T.offsetParent&&E.length&&v.dragHandler.init(ge),S=o.init(ge,P)))}function I(re,$){const J=ee();j(),k(c({startIndex:J},re),$),l.emit("reInit")}function j(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),a.clear()}function F(){x||(x=!0,a.clear(),j(),l.emit("destroy"),l.clear())}function L(re,$,J){!A.active||x||(v.scrollBody.useBaseFriction().useDuration($===!0?0:A.duration),v.scrollTo.index(re,J||0))}function G(re){const $=v.index.add(1).get();L($,re,-1)}function W(re){const $=v.index.add(-1).get();L($,re,1)}function U(){return v.index.add(1).get()!==ee()}function B(){return v.index.add(-1).get()!==ee()}function K(){return v.scrollSnapList}function Q(){return v.scrollProgress.get(v.location.get())}function ee(){return v.index.get()}function Se(){return v.indexPrevious.get()}function Ve(){return v.slidesInView.get()}function Ae(){return v.slidesInView.get(!1)}function Ge(){return S}function Te(){return v}function Z(){return e}function te(){return T}function de(){return E}const ge={canScrollNext:U,canScrollPrev:B,containerNode:te,internalEngine:Te,destroy:F,off:m,on:f,emit:g,plugins:Ge,previousScrollSnap:Se,reInit:p,rootNode:Z,scrollNext:G,scrollPrev:W,scrollProgress:Q,scrollSnapList:K,scrollTo:L,selectedScrollSnap:ee,slideNodes:de,slidesInView:Ve,slidesNotInView:Ae};return k(t,n),setTimeout(()=>l.emit("init"),0),ge}Lr.globalOptions=void 0;function er(e={},t=[]){const n=y.useRef(e),r=y.useRef(t),[s,i]=y.useState(),[o,a]=y.useState(),l=y.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return y.useEffect(()=>{fo(n.current,e)||(n.current=e,l())},[e,l]),y.useEffect(()=>{Pw(r.current,t)||(r.current=t,l())},[t,l]),y.useEffect(()=>{if(Cw()&&o){Lr.globalOptions=er.globalOptions;const c=Lr(o,n.current,r.current);return i(c),()=>c.destroy()}else i(void 0)},[o,i]),[a,s]}er.globalOptions=void 0;const r0=[{lang:be.RU,data:[{title:"План выставки",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Забронировать стенд",link:"/stend-form"},{title:"Список участников",link:""},{title:"B2B | B2G встречи",link:"/B2B-B2G"}]},{lang:be.EN,data:[{title:"Floor Plan",link:"https://itse.turkmenexpo.com/app/storage/app/media/Floor%20plan/Floor%20plan.pdf",blank:!0},{title:"Book a stand",link:"/stend-form"},{title:"Participants list",link:"/"},{title:"B2B | B2G meetings",link:"/B2B-B2G"}]}],E0=()=>{const[e]=er(),t=Ye(o=>o.lang),n=Xs("(min-width: 1024px)"),r=Xs("(min-width: 768px)"),s=t===be.RU?be.RU:be.EN;function i(){return n?`/banners/${s}/l.jpg`:r?`/banners/${s}/m.jpg`:`/banners/${s}/s.jpg`}return h.jsxs("section",{className:"flex flex-col gap-5",children:[h.jsx("div",{ref:e,className:"embla",children:h.jsx("div",{className:"embla__container",children:h.jsx("div",{className:"embla__slide",children:h.jsx("img",{src:i(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),h.jsx(Be,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:r0[Fe(t)].data.map(({title:o,link:a,blank:l})=>h.jsx(Re,{target:l?"_blank":"",to:a,className:"w-full",children:h.jsx(He,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:o})},o))})]})},s0=[{data:[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/home/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/home/mobile.svg"}]},{data:[{title:"contact@turkmenexpo.com",subtitle:"E-mail Address",img:"/contacts/home/mail.svg"},{title:"Building of the CCI of Turkmenistan",subtitle:"Exhibition address",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Contact Number",img:"/contacts/home/mobile.svg"}]}],R0=({className:e})=>{const t=Ye(n=>n.lang);return h.jsx("section",{className:q("bg-surface_high pt-10 pb-20",e),children:h.jsxs(Be,{children:[h.jsx("h2",{className:"h2 mb-6",children:Fr[Fe(t)].title}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Fr[Fe(t)].data.map(n=>y.createElement(Cc,{...n,key:n.name,className:"w-full"}))}),h.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:s0[Fe(t)].data.map(n=>y.createElement(Qm,{...n,key:n.title,className:"w-full"}))}),h.jsx(Re,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:h.jsx(He,{className:"w-full",children:t===be.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},i0=[{data:[{nums:"8,400 m²",text:"выставочной площади"},{nums:"10000+",text:"Посетители посетят выставку"},{nums:"100+",text:"Экспоненты из более чем 30 стран"},{nums:"80%",text:"Участники принимают участие в принятии решений о закупках"}]},{data:[{nums:"8,400 m²",text:"Of the exhibition area"},{nums:"10000+",text:"Visitors and specialists attend the exhibition"},{nums:"100+",text:"More than 100 exhibitors from 30 countries "},{nums:"80%",text:"Visitors are involved in procurement decisions"}]}],D0=()=>{const[e]=er(),t=Ye(n=>n.lang);return h.jsx("section",{children:h.jsxs(Be,{className:"flex flex-col gap-6",children:[h.jsxs("div",{className:"text-center",children:[h.jsx("h2",{className:"h2 md:mb-3 mb-6 text-left sm:text-center",children:"Выставка-ярмарка «TurkmenTextile Expo 2025» в Ашхабаде"}),h.jsxs("p",{className:"md:text-base text-sm normal text-left sm:text-center text-[#454545]",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),h.jsx("div",{ref:e,className:"embla overflow-hidden",children:h.jsx("div",{className:"flex embla__container items-center gap-6",children:i0[Fe(t)].data.map(n=>h.jsx(Zm,{...n,className:"embla__slide flex-[0_0_288px]"},n.text))})}),h.jsx(Re,{to:"/about",className:"mx-auto",children:h.jsx(He,{variant:"outline",children:t===be.RU?"Подробнее о выставке":"More about the exhibition"})})]})})},o0=[{data:[{img:"/offer-1.png",title:"Гостиницы, трансфер, визы",btnText:"Скачать путеводитель",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",btnText:"Скачать план выставки",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-2.png",title:"Hotels, transfers, visa",btnText:"Download the Travel guide",text:`Regarding hotel accommodation, visa support, + transportation and excursion services you can check out the Travel guide`,link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Check out the Turkmen Textile 2025 Exhibition plan ",btnText:"Download the Floor plan",text:`How to choose the best place in the exhibition? + You should always remember that the good location of the exhibition increases your chance to attract the attention of your potential customers…`,link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],j0=()=>{const[e,t]=er({align:"start"}),[n,r]=y.useState(0),s=Ye(o=>o.lang),i=y.useCallback(o=>{t&&t.scrollTo(o)},[t]);return y.useEffect(()=>{if(!t)return;const o=()=>{r(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),h.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:h.jsx(Be,{children:h.jsxs("div",{ref:e,className:"embla ",children:[h.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:o0[Fe(s)].data.map(o=>y.createElement(Jm,{...o,key:o.title}))}),h.jsx(Zx,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},N0=()=>{const e=Ye(t=>t.lang);return h.jsxs("header",{children:[h.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:h.jsxs(Be,{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Jh,{}),h.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),h.jsx("nav",{className:"flex items-center gap-6",children:Ns[Fe(e)].data.slice(0,2).map(({title:t,link:n})=>h.jsx(Re,{className:"py-2",to:n,children:t},t))})]}),h.jsxs("div",{className:"flex items-center gap-6",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(em,{size:16,strokeWidth:"3px"}),h.jsx("h4",{className:"text-sm ",children:"+99371871812"})]}),h.jsx(ww,{})]})]})}),h.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:h.jsxs(Be,{className:"flex items-center justify-between ",children:[h.jsxs("div",{className:"flex items-center gap-8",children:[h.jsx(Re,{to:"/",children:h.jsx(Sc,{})}),h.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:Ns[Fe(e)].data.slice(2,5).map(({title:t,link:n})=>h.jsxs(Re,{to:n,className:"flex items-center gap-2",children:[t," ",h.jsx("img",{src:"/chevron.svg"})]},t))})]}),h.jsx("div",{className:"flex items-center",children:h.jsx(Ym,{})}),h.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[h.jsx(Re,{to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf",target:"_blank",children:h.jsx(He,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),h.jsx(Re,{to:"/become-sponsor",children:h.jsx(He,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},M0=()=>{const e=Ye(t=>t.lang);return h.jsx("footer",{className:"py-5 bg-primary",children:h.jsxs(Be,{className:"flex flex-col gap-6",children:[h.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[h.jsx(Sc,{}),h.jsxs("div",{className:"flex items-center gap-6",children:[h.jsx("img",{src:"/inst.svg"}),h.jsx("img",{src:"/in.svg"}),h.jsx("img",{src:"/x.svg"})]})]}),h.jsx("hr",{className:"border-white/50"}),h.jsx("h5",{className:"text-base text-center normal text-white",children:e===be.RU?"©2025 Все права защищены":"All rights reserved"})]})})},Be=({className:e,children:t})=>h.jsx("div",{className:q("w-full mx-auto max-w-[1240px] px-4",e),children:t}),V0=({title:e})=>h.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[h.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),h.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{T0 as A,He as B,V0 as C,ri as D,Qe as E,M0 as F,jl as G,N0 as H,At as I,_e as J,hr as K,be as L,un as M,Zb as N,u0 as O,je as P,Be as Q,_ as R,cn as S,se as T,Ox as U,E0 as a,D0 as b,j0 as c,w0 as d,R0 as e,q as f,S0 as g,A0 as h,C0 as i,h as j,P0 as k,Kr as l,xr as m,Fe as n,Xx as o,vd as p,xd as q,bd as r,v0 as s,d0 as t,Ye as u,g0 as v,y0 as w,f0 as x,x0 as y,p0 as z}; diff --git a/dist/assets/use-scroll-top-DE9Ps7OH.js b/dist/assets/use-scroll-top-ByehxtTO.js similarity index 54% rename from dist/assets/use-scroll-top-DE9Ps7OH.js rename to dist/assets/use-scroll-top-ByehxtTO.js index a9c97cd..c24baca 100644 --- a/dist/assets/use-scroll-top-DE9Ps7OH.js +++ b/dist/assets/use-scroll-top-ByehxtTO.js @@ -1 +1 @@ -import{a as r}from"./react-vendor-DnK_KZAP.js";const t=o=>{r.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[o])};export{t as u}; +import{a as r}from"./react-vendor-OnsDvTPE.js";const t=o=>{r.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[o])};export{t as u}; diff --git a/dist/banners/en/l.jpg b/dist/banners/en/l.jpg new file mode 100644 index 0000000..57e3b7b Binary files /dev/null and b/dist/banners/en/l.jpg differ diff --git a/dist/banners/en/m.jpg b/dist/banners/en/m.jpg new file mode 100644 index 0000000..838757a Binary files /dev/null and b/dist/banners/en/m.jpg differ diff --git a/dist/banners/en/s.jpg b/dist/banners/en/s.jpg new file mode 100644 index 0000000..da2f656 Binary files /dev/null and b/dist/banners/en/s.jpg differ diff --git a/dist/en.svg b/dist/en.svg new file mode 100644 index 0000000..946bd9a --- /dev/null +++ b/dist/en.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dist/index.html b/dist/index.html index fc38338..e987274 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,10 +5,10 @@ Turkmen Textile - - - - + + + +
diff --git a/dist/ru.svg b/dist/ru.svg new file mode 100644 index 0000000..743ebc7 --- /dev/null +++ b/dist/ru.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/public/banners/en/l.jpg b/public/banners/en/l.jpg new file mode 100644 index 0000000..57e3b7b Binary files /dev/null and b/public/banners/en/l.jpg differ diff --git a/public/banners/en/m.jpg b/public/banners/en/m.jpg new file mode 100644 index 0000000..838757a Binary files /dev/null and b/public/banners/en/m.jpg differ diff --git a/public/banners/en/s.jpg b/public/banners/en/s.jpg new file mode 100644 index 0000000..da2f656 Binary files /dev/null and b/public/banners/en/s.jpg differ diff --git a/src/components/shared/home/home-hero.tsx b/src/components/shared/home/home-hero.tsx index 9666399..63cca5e 100644 --- a/src/components/shared/home/home-hero.tsx +++ b/src/components/shared/home/home-hero.tsx @@ -6,7 +6,7 @@ import { Container } from "@/components/layout"; import { useMediaQuery } from "usehooks-ts"; import { btns } from "@/data/home/home-hero.data"; import { useTranslate } from "@/hooks/use-translate"; -import { useLangStore } from "@/store/lang"; +import { Language, useLangStore } from "@/store/lang"; export const HomeHero: FC = () => { const [embalRef] = useEmblaCarousel(); @@ -15,10 +15,12 @@ export const HomeHero: FC = () => { const lg = useMediaQuery("(min-width: 1024px)"); const md = useMediaQuery("(min-width: 768px)"); + const folder = lang === Language.RU ? Language.RU : Language.EN; + function getBanner() { - if (lg) return "/banners/ru/l.jpg"; - else if (md) return "/banners/ru/m.jpg"; - else return "/banners/ru/s.jpg"; + if (lg) return `/banners/${folder}/l.jpg`; + else if (md) return `/banners/${folder}/m.jpg`; + else return `/banners/${folder}/s.jpg`; } return (