import { $ as Oe } from "./Button-C9AKe3Kt.es.js";
import { $ as Ee, a as Pe, e as je, c as Ie } from "./utils-CrjF8U_E.es.js";
import { $ as Se } from "./RSPContexts-DLgb84PF.es.js";
import { $ as Ke } from "./Text-DOcU1ycg.es.js";
import { e as X, f as y, g as Fe, h as le, i as de, d as Te, j as Aa, k as wa, l as xe, m as Ue, n as ke, a as M, o as Ae, p as Ia, $ as za, q as L, r as Va, s as Na, t as Ma, u as _e, v as Ze, w as Oa } from "./useDateFormatter-C0T2-xr7.es.js";
import { c as ja, $ as U } from "./mergeProps-B-cqsBhL.es.js";
import { $ as _ } from "./filterDOMProps-Cxz9cAAv.es.js";
import p, { useMemo as C, useState as j, useRef as q, useEffect as Ka, forwardRef as Z, createContext as ue, useContext as K } from "react";
import { $ as re } from "./context-BfHy4NgG.es.js";
import { $ as be } from "./useControlledState-3TGZUXux.es.js";
import { $ as se } from "./useLocalizedStringFormatter-CYDf7GZk.es.js";
import { $ as ze } from "./LiveAnnouncer-CsPyaceH.es.js";
import { $ as He } from "./useLabels-BOBP8-HM.es.js";
import { $ as Ve } from "./useUpdateEffect-CxkSZ4PM.es.js";
import { $ as $e } from "./useEvent-CKoH5wGJ.es.js";
import { $ as Ta } from "./focusWithoutScrolling-CDw3JYiq.es.js";
import { $ as Ua } from "./getScrollParent-vifdmp1X.es.js";
import { a as _a, c as Za } from "./scrollIntoView-Btu7DgIo.es.js";
import { b as Ha } from "./useFocusVisible-_CKiSck5.es.js";
import { $ as Wa } from "./usePress-UxAvyvOO.es.js";
import { $ as oe } from "./VisuallyHidden-BW_C1pFq.es.js";
import { $ as La } from "./useHover-BiPYlZr_.es.js";
import { $ as Ga } from "./useFocusRing-CZQUsztf.es.js";
var We = {};
We = {
  dateRange: (e) => `${e.startDate} إلى ${e.endDate}`,
  dateSelected: (e) => `${e.date} المحدد`,
  finishRangeSelectionPrompt: "انقر لإنهاء عملية تحديد نطاق التاريخ",
  maximumDate: "آخر تاريخ متاح",
  minimumDate: "أول تاريخ متاح",
  next: "التالي",
  previous: "السابق",
  selectedDateDescription: (e) => `تاريخ محدد: ${e.date}`,
  selectedRangeDescription: (e) => `المدى الزمني المحدد: ${e.dateRange}`,
  startRangeSelectionPrompt: "انقر لبدء عملية تحديد نطاق التاريخ",
  todayDate: (e) => `اليوم، ${e.date}`,
  todayDateSelected: (e) => `اليوم، ${e.date} محدد`
};
var Le = {};
Le = {
  dateRange: (e) => `${e.startDate} до ${e.endDate}`,
  dateSelected: (e) => `Избрано е ${e.date}`,
  finishRangeSelectionPrompt: "Натиснете, за да довършите избора на времеви интервал",
  maximumDate: "Последна налична дата",
  minimumDate: "Първа налична дата",
  next: "Напред",
  previous: "Назад",
  selectedDateDescription: (e) => `Избрана дата: ${e.date}`,
  selectedRangeDescription: (e) => `Избран диапазон: ${e.dateRange}`,
  startRangeSelectionPrompt: "Натиснете, за да пристъпите към избора на времеви интервал",
  todayDate: (e) => `Днес, ${e.date}`,
  todayDateSelected: (e) => `Днес, ${e.date} са избрани`
};
var Ge = {};
Ge = {
  dateRange: (e) => `${e.startDate} až ${e.endDate}`,
  dateSelected: (e) => `Vybráno ${e.date}`,
  finishRangeSelectionPrompt: "Kliknutím dokončíte výběr rozsahu dat",
  maximumDate: "Poslední dostupné datum",
  minimumDate: "První dostupné datum",
  next: "Další",
  previous: "Předchozí",
  selectedDateDescription: (e) => `Vybrané datum: ${e.date}`,
  selectedRangeDescription: (e) => `Vybrané období: ${e.dateRange}`,
  startRangeSelectionPrompt: "Kliknutím zahájíte výběr rozsahu dat",
  todayDate: (e) => `Dnes, ${e.date}`,
  todayDateSelected: (e) => `Dnes, vybráno ${e.date}`
};
var qe = {};
qe = {
  dateRange: (e) => `${e.startDate} til ${e.endDate}`,
  dateSelected: (e) => `${e.date} valgt`,
  finishRangeSelectionPrompt: "Klik for at fuldføre valg af datoområde",
  maximumDate: "Sidste ledige dato",
  minimumDate: "Første ledige dato",
  next: "Næste",
  previous: "Forrige",
  selectedDateDescription: (e) => `Valgt dato: ${e.date}`,
  selectedRangeDescription: (e) => `Valgt interval: ${e.dateRange}`,
  startRangeSelectionPrompt: "Klik for at starte valg af datoområde",
  todayDate: (e) => `I dag, ${e.date}`,
  todayDateSelected: (e) => `I dag, ${e.date} valgt`
};
var Je = {};
Je = {
  dateRange: (e) => `${e.startDate} bis ${e.endDate}`,
  dateSelected: (e) => `${e.date} ausgewählt`,
  finishRangeSelectionPrompt: "Klicken, um die Auswahl des Datumsbereichs zu beenden",
  maximumDate: "Letztes verfügbares Datum",
  minimumDate: "Erstes verfügbares Datum",
  next: "Weiter",
  previous: "Zurück",
  selectedDateDescription: (e) => `Ausgewähltes Datum: ${e.date}`,
  selectedRangeDescription: (e) => `Ausgewählter Bereich: ${e.dateRange}`,
  startRangeSelectionPrompt: "Klicken, um die Auswahl des Datumsbereichs zu beginnen",
  todayDate: (e) => `Heute, ${e.date}`,
  todayDateSelected: (e) => `Heute, ${e.date} ausgewählt`
};
var Qe = {};
Qe = {
  dateRange: (e) => `${e.startDate} έως ${e.endDate}`,
  dateSelected: (e) => `Επιλέχθηκε ${e.date}`,
  finishRangeSelectionPrompt: "Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",
  maximumDate: "Τελευταία διαθέσιμη ημερομηνία",
  minimumDate: "Πρώτη διαθέσιμη ημερομηνία",
  next: "Επόμενο",
  previous: "Προηγούμενο",
  selectedDateDescription: (e) => `Επιλεγμένη ημερομηνία: ${e.date}`,
  selectedRangeDescription: (e) => `Επιλεγμένο εύρος: ${e.dateRange}`,
  startRangeSelectionPrompt: "Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",
  todayDate: (e) => `Σήμερα, ${e.date}`,
  todayDateSelected: (e) => `Σήμερα, επιλέχτηκε ${e.date}`
};
var Xe = {};
Xe = {
  previous: "Previous",
  next: "Next",
  selectedDateDescription: (e) => `Selected Date: ${e.date}`,
  selectedRangeDescription: (e) => `Selected Range: ${e.dateRange}`,
  todayDate: (e) => `Today, ${e.date}`,
  todayDateSelected: (e) => `Today, ${e.date} selected`,
  dateSelected: (e) => `${e.date} selected`,
  startRangeSelectionPrompt: "Click to start selecting date range",
  finishRangeSelectionPrompt: "Click to finish selecting date range",
  minimumDate: "First available date",
  maximumDate: "Last available date",
  dateRange: (e) => `${e.startDate} to ${e.endDate}`
};
var Ye = {};
Ye = {
  dateRange: (e) => `${e.startDate} a ${e.endDate}`,
  dateSelected: (e) => `${e.date} seleccionado`,
  finishRangeSelectionPrompt: "Haga clic para terminar de seleccionar rango de fechas",
  maximumDate: "Última fecha disponible",
  minimumDate: "Primera fecha disponible",
  next: "Siguiente",
  previous: "Anterior",
  selectedDateDescription: (e) => `Fecha seleccionada: ${e.date}`,
  selectedRangeDescription: (e) => `Intervalo seleccionado: ${e.dateRange}`,
  startRangeSelectionPrompt: "Haga clic para comenzar a seleccionar un rango de fechas",
  todayDate: (e) => `Hoy, ${e.date}`,
  todayDateSelected: (e) => `Hoy, ${e.date} seleccionado`
};
var ea = {};
ea = {
  dateRange: (e) => `${e.startDate} kuni ${e.endDate}`,
  dateSelected: (e) => `${e.date} valitud`,
  finishRangeSelectionPrompt: "Klõpsake kuupäevavahemiku valimise lõpetamiseks",
  maximumDate: "Viimane saadaolev kuupäev",
  minimumDate: "Esimene saadaolev kuupäev",
  next: "Järgmine",
  previous: "Eelmine",
  selectedDateDescription: (e) => `Valitud kuupäev: ${e.date}`,
  selectedRangeDescription: (e) => `Valitud vahemik: ${e.dateRange}`,
  startRangeSelectionPrompt: "Klõpsake kuupäevavahemiku valimiseks",
  todayDate: (e) => `Täna, ${e.date}`,
  todayDateSelected: (e) => `Täna, ${e.date} valitud`
};
var aa = {};
aa = {
  dateRange: (e) => `${e.startDate} – ${e.endDate}`,
  dateSelected: (e) => `${e.date} valittu`,
  finishRangeSelectionPrompt: "Lopeta päivämääräalueen valinta napsauttamalla tätä.",
  maximumDate: "Viimeinen varattavissa oleva päivämäärä",
  minimumDate: "Ensimmäinen varattavissa oleva päivämäärä",
  next: "Seuraava",
  previous: "Edellinen",
  selectedDateDescription: (e) => `Valittu päivämäärä: ${e.date}`,
  selectedRangeDescription: (e) => `Valittu aikaväli: ${e.dateRange}`,
  startRangeSelectionPrompt: "Aloita päivämääräalueen valinta napsauttamalla tätä.",
  todayDate: (e) => `Tänään, ${e.date}`,
  todayDateSelected: (e) => `Tänään, ${e.date} valittu`
};
var ta = {};
ta = {
  dateRange: (e) => `${e.startDate} à ${e.endDate}`,
  dateSelected: (e) => `${e.date} sélectionné`,
  finishRangeSelectionPrompt: "Cliquer pour finir de sélectionner la plage de dates",
  maximumDate: "Dernière date disponible",
  minimumDate: "Première date disponible",
  next: "Suivant",
  previous: "Précédent",
  selectedDateDescription: (e) => `Date sélectionnée : ${e.date}`,
  selectedRangeDescription: (e) => `Plage sélectionnée : ${e.dateRange}`,
  startRangeSelectionPrompt: "Cliquer pour commencer à sélectionner la plage de dates",
  todayDate: (e) => `Aujourd'hui, ${e.date}`,
  todayDateSelected: (e) => `Aujourd’hui, ${e.date} sélectionné`
};
var ua = {};
ua = {
  dateRange: (e) => `${e.startDate} עד ${e.endDate}`,
  dateSelected: (e) => `${e.date} נבחר`,
  finishRangeSelectionPrompt: "חץ כדי לסיים את בחירת טווח התאריכים",
  maximumDate: "תאריך פנוי אחרון",
  minimumDate: "תאריך פנוי ראשון",
  next: "הבא",
  previous: "הקודם",
  selectedDateDescription: (e) => `תאריך נבחר: ${e.date}`,
  selectedRangeDescription: (e) => `טווח נבחר: ${e.dateRange}`,
  startRangeSelectionPrompt: "לחץ כדי להתחיל בבחירת טווח התאריכים",
  todayDate: (e) => `היום, ${e.date}`,
  todayDateSelected: (e) => `היום, ${e.date} נבחר`
};
var ia = {};
ia = {
  dateRange: (e) => `${e.startDate} do ${e.endDate}`,
  dateSelected: (e) => `${e.date} odabran`,
  finishRangeSelectionPrompt: "Kliknite da dovršite raspon odabranih datuma",
  maximumDate: "Posljednji raspoloživi datum",
  minimumDate: "Prvi raspoloživi datum",
  next: "Sljedeći",
  previous: "Prethodni",
  selectedDateDescription: (e) => `Odabrani datum: ${e.date}`,
  selectedRangeDescription: (e) => `Odabrani raspon: ${e.dateRange}`,
  startRangeSelectionPrompt: "Kliknite da započnete raspon odabranih datuma",
  todayDate: (e) => `Danas, ${e.date}`,
  todayDateSelected: (e) => `Danas, odabran ${e.date}`
};
var na = {};
na = {
  dateRange: (e) => `${e.startDate}–${e.endDate}`,
  dateSelected: (e) => `${e.date} kiválasztva`,
  finishRangeSelectionPrompt: "Kattintson a dátumtartomány kijelölésének befejezéséhez",
  maximumDate: "Utolsó elérhető dátum",
  minimumDate: "Az első elérhető dátum",
  next: "Következő",
  previous: "Előző",
  selectedDateDescription: (e) => `Kijelölt dátum: ${e.date}`,
  selectedRangeDescription: (e) => `Kijelölt tartomány: ${e.dateRange}`,
  startRangeSelectionPrompt: "Kattintson a dátumtartomány kijelölésének indításához",
  todayDate: (e) => `Ma, ${e.date}`,
  todayDateSelected: (e) => `Ma, ${e.date} kijelölve`
};
var la = {};
la = {
  dateRange: (e) => `Da ${e.startDate} a ${e.endDate}`,
  dateSelected: (e) => `${e.date} selezionata`,
  finishRangeSelectionPrompt: "Fai clic per completare la selezione dell’intervallo di date",
  maximumDate: "Ultima data disponibile",
  minimumDate: "Prima data disponibile",
  next: "Successivo",
  previous: "Precedente",
  selectedDateDescription: (e) => `Data selezionata: ${e.date}`,
  selectedRangeDescription: (e) => `Intervallo selezionato: ${e.dateRange}`,
  startRangeSelectionPrompt: "Fai clic per selezionare l’intervallo di date",
  todayDate: (e) => `Oggi, ${e.date}`,
  todayDateSelected: (e) => `Oggi, ${e.date} selezionata`
};
var da = {};
da = {
  dateRange: (e) => `${e.startDate} から ${e.endDate}`,
  dateSelected: (e) => `${e.date} を選択`,
  finishRangeSelectionPrompt: "クリックして日付範囲の選択を終了",
  maximumDate: "最終利用可能日",
  minimumDate: "最初の利用可能日",
  next: "次へ",
  previous: "前へ",
  selectedDateDescription: (e) => `選択した日付 : ${e.date}`,
  selectedRangeDescription: (e) => `選択範囲 : ${e.dateRange}`,
  startRangeSelectionPrompt: "クリックして日付範囲の選択を開始",
  todayDate: (e) => `本日、${e.date}`,
  todayDateSelected: (e) => `本日、${e.date} を選択`
};
var ra = {};
ra = {
  dateRange: (e) => `${e.startDate} ~ ${e.endDate}`,
  dateSelected: (e) => `${e.date} 선택됨`,
  finishRangeSelectionPrompt: "날짜 범위 선택을 완료하려면 클릭하십시오.",
  maximumDate: "마지막으로 사용 가능한 일자",
  minimumDate: "처음으로 사용 가능한 일자",
  next: "다음",
  previous: "이전",
  selectedDateDescription: (e) => `선택 일자: ${e.date}`,
  selectedRangeDescription: (e) => `선택 범위: ${e.dateRange}`,
  startRangeSelectionPrompt: "날짜 범위 선택을 시작하려면 클릭하십시오.",
  todayDate: (e) => `오늘, ${e.date}`,
  todayDateSelected: (e) => `오늘, ${e.date} 선택됨`
};
var oa = {};
oa = {
  dateRange: (e) => `Nuo ${e.startDate} iki ${e.endDate}`,
  dateSelected: (e) => `Pasirinkta ${e.date}`,
  finishRangeSelectionPrompt: "Spustelėkite, kad baigtumėte pasirinkti datų intervalą",
  maximumDate: "Paskutinė galima data",
  minimumDate: "Pirmoji galima data",
  next: "Paskesnis",
  previous: "Ankstesnis",
  selectedDateDescription: (e) => `Pasirinkta data: ${e.date}`,
  selectedRangeDescription: (e) => `Pasirinktas intervalas: ${e.dateRange}`,
  startRangeSelectionPrompt: "Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",
  todayDate: (e) => `Šiandien, ${e.date}`,
  todayDateSelected: (e) => `Šiandien, pasirinkta ${e.date}`
};
var sa = {};
sa = {
  dateRange: (e) => `No ${e.startDate} līdz ${e.endDate}`,
  dateSelected: (e) => `Atlasīts: ${e.date}`,
  finishRangeSelectionPrompt: "Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",
  maximumDate: "Pēdējais pieejamais datums",
  minimumDate: "Pirmais pieejamais datums",
  next: "Tālāk",
  previous: "Atpakaļ",
  selectedDateDescription: (e) => `Atlasītais datums: ${e.date}`,
  selectedRangeDescription: (e) => `Atlasītais diapazons: ${e.dateRange}`,
  startRangeSelectionPrompt: "Noklikšķiniet, lai sāktu datumu diapazona atlasi",
  todayDate: (e) => `Šodien, ${e.date}`,
  todayDateSelected: (e) => `Atlasīta šodiena, ${e.date}`
};
var ca = {};
ca = {
  dateRange: (e) => `${e.startDate} til ${e.endDate}`,
  dateSelected: (e) => `${e.date} valgt`,
  finishRangeSelectionPrompt: "Klikk for å fullføre valg av datoområde",
  maximumDate: "Siste tilgjengelige dato",
  minimumDate: "Første tilgjengelige dato",
  next: "Neste",
  previous: "Forrige",
  selectedDateDescription: (e) => `Valgt dato: ${e.date}`,
  selectedRangeDescription: (e) => `Valgt område: ${e.dateRange}`,
  startRangeSelectionPrompt: "Klikk for å starte valg av datoområde",
  todayDate: (e) => `I dag, ${e.date}`,
  todayDateSelected: (e) => `I dag, ${e.date} valgt`
};
var Da = {};
Da = {
  dateRange: (e) => `${e.startDate} tot ${e.endDate}`,
  dateSelected: (e) => `${e.date} geselecteerd`,
  finishRangeSelectionPrompt: "Klik om de selectie van het datumbereik te voltooien",
  maximumDate: "Laatste beschikbare datum",
  minimumDate: "Eerste beschikbare datum",
  next: "Volgende",
  previous: "Vorige",
  selectedDateDescription: (e) => `Geselecteerde datum: ${e.date}`,
  selectedRangeDescription: (e) => `Geselecteerd bereik: ${e.dateRange}`,
  startRangeSelectionPrompt: "Klik om het datumbereik te selecteren",
  todayDate: (e) => `Vandaag, ${e.date}`,
  todayDateSelected: (e) => `Vandaag, ${e.date} geselecteerd`
};
var fa = {};
fa = {
  dateRange: (e) => `${e.startDate} do ${e.endDate}`,
  dateSelected: (e) => `Wybrano ${e.date}`,
  finishRangeSelectionPrompt: "Kliknij, aby zakończyć wybór zakresu dat",
  maximumDate: "Ostatnia dostępna data",
  minimumDate: "Pierwsza dostępna data",
  next: "Dalej",
  previous: "Wstecz",
  selectedDateDescription: (e) => `Wybrana data: ${e.date}`,
  selectedRangeDescription: (e) => `Wybrany zakres: ${e.dateRange}`,
  startRangeSelectionPrompt: "Kliknij, aby rozpocząć wybór zakresu dat",
  todayDate: (e) => `Dzisiaj, ${e.date}`,
  todayDateSelected: (e) => `Dzisiaj wybrano ${e.date}`
};
var ma = {};
ma = {
  dateRange: (e) => `${e.startDate} a ${e.endDate}`,
  dateSelected: (e) => `${e.date} selecionado`,
  finishRangeSelectionPrompt: "Clique para concluir a seleção do intervalo de datas",
  maximumDate: "Última data disponível",
  minimumDate: "Primeira data disponível",
  next: "Próximo",
  previous: "Anterior",
  selectedDateDescription: (e) => `Data selecionada: ${e.date}`,
  selectedRangeDescription: (e) => `Intervalo selecionado: ${e.dateRange}`,
  startRangeSelectionPrompt: "Clique para iniciar a seleção do intervalo de datas",
  todayDate: (e) => `Hoje, ${e.date}`,
  todayDateSelected: (e) => `Hoje, ${e.date} selecionado`
};
var $a = {};
$a = {
  dateRange: (e) => `${e.startDate} a ${e.endDate}`,
  dateSelected: (e) => `${e.date} selecionado`,
  finishRangeSelectionPrompt: "Clique para terminar de selecionar o intervalo de datas",
  maximumDate: "Última data disponível",
  minimumDate: "Primeira data disponível",
  next: "Próximo",
  previous: "Anterior",
  selectedDateDescription: (e) => `Data selecionada: ${e.date}`,
  selectedRangeDescription: (e) => `Intervalo selecionado: ${e.dateRange}`,
  startRangeSelectionPrompt: "Clique para começar a selecionar o intervalo de datas",
  todayDate: (e) => `Hoje, ${e.date}`,
  todayDateSelected: (e) => `Hoje, ${e.date} selecionado`
};
var ga = {};
ga = {
  dateRange: (e) => `De la ${e.startDate} până la ${e.endDate}`,
  dateSelected: (e) => `${e.date} selectată`,
  finishRangeSelectionPrompt: "Apăsaţi pentru a finaliza selecţia razei pentru dată",
  maximumDate: "Ultima dată disponibilă",
  minimumDate: "Prima dată disponibilă",
  next: "Următorul",
  previous: "Înainte",
  selectedDateDescription: (e) => `Dată selectată: ${e.date}`,
  selectedRangeDescription: (e) => `Interval selectat: ${e.dateRange}`,
  startRangeSelectionPrompt: "Apăsaţi pentru a începe selecţia razei pentru dată",
  todayDate: (e) => `Astăzi, ${e.date}`,
  todayDateSelected: (e) => `Azi, ${e.date} selectată`
};
var pa = {};
pa = {
  dateRange: (e) => `С ${e.startDate} по ${e.endDate}`,
  dateSelected: (e) => `Выбрано ${e.date}`,
  finishRangeSelectionPrompt: "Щелкните, чтобы завершить выбор диапазона дат",
  maximumDate: "Последняя доступная дата",
  minimumDate: "Первая доступная дата",
  next: "Далее",
  previous: "Назад",
  selectedDateDescription: (e) => `Выбранная дата: ${e.date}`,
  selectedRangeDescription: (e) => `Выбранный диапазон: ${e.dateRange}`,
  startRangeSelectionPrompt: "Щелкните, чтобы начать выбор диапазона дат",
  todayDate: (e) => `Сегодня, ${e.date}`,
  todayDateSelected: (e) => `Сегодня, выбрано ${e.date}`
};
var xa = {};
xa = {
  dateRange: (e) => `Od ${e.startDate} do ${e.endDate}`,
  dateSelected: (e) => `Vybratý dátum ${e.date}`,
  finishRangeSelectionPrompt: "Kliknutím dokončíte výber rozsahu dátumov",
  maximumDate: "Posledný dostupný dátum",
  minimumDate: "Prvý dostupný dátum",
  next: "Nasledujúce",
  previous: "Predchádzajúce",
  selectedDateDescription: (e) => `Vybratý dátum: ${e.date}`,
  selectedRangeDescription: (e) => `Vybratý rozsah: ${e.dateRange}`,
  startRangeSelectionPrompt: "Kliknutím spustíte výber rozsahu dátumov",
  todayDate: (e) => `Dnes ${e.date}`,
  todayDateSelected: (e) => `Vybratý dnešný dátum ${e.date}`
};
var ba = {};
ba = {
  dateRange: (e) => `${e.startDate} do ${e.endDate}`,
  dateSelected: (e) => `${e.date} izbrano`,
  finishRangeSelectionPrompt: "Kliknite za dokončanje izbire datumskega obsega",
  maximumDate: "Zadnji razpoložljivi datum",
  minimumDate: "Prvi razpoložljivi datum",
  next: "Naprej",
  previous: "Nazaj",
  selectedDateDescription: (e) => `Izbrani datum: ${e.date}`,
  selectedRangeDescription: (e) => `Izbrano območje: ${e.dateRange}`,
  startRangeSelectionPrompt: "Kliknite za začetek izbire datumskega obsega",
  todayDate: (e) => `Danes, ${e.date}`,
  todayDateSelected: (e) => `Danes, ${e.date} izbrano`
};
var va = {};
va = {
  dateRange: (e) => `${e.startDate} do ${e.endDate}`,
  dateSelected: (e) => `${e.date} izabran`,
  finishRangeSelectionPrompt: "Kliknite da dovršite opseg izabranih datuma",
  maximumDate: "Zadnji raspoloživi datum",
  minimumDate: "Prvi raspoloživi datum",
  next: "Sledeći",
  previous: "Prethodni",
  selectedDateDescription: (e) => `Izabrani datum: ${e.date}`,
  selectedRangeDescription: (e) => `Izabrani period: ${e.dateRange}`,
  startRangeSelectionPrompt: "Kliknite da započnete opseg izabranih datuma",
  todayDate: (e) => `Danas, ${e.date}`,
  todayDateSelected: (e) => `Danas, izabran ${e.date}`
};
var ha = {};
ha = {
  dateRange: (e) => `${e.startDate} till ${e.endDate}`,
  dateSelected: (e) => `${e.date} har valts`,
  finishRangeSelectionPrompt: "Klicka för att avsluta val av datumintervall",
  maximumDate: "Sista tillgängliga datum",
  minimumDate: "Första tillgängliga datum",
  next: "Nästa",
  previous: "Föregående",
  selectedDateDescription: (e) => `Valt datum: ${e.date}`,
  selectedRangeDescription: (e) => `Valt intervall: ${e.dateRange}`,
  startRangeSelectionPrompt: "Klicka för att välja datumintervall",
  todayDate: (e) => `Idag, ${e.date}`,
  todayDateSelected: (e) => `Idag, ${e.date} har valts`
};
var Ba = {};
Ba = {
  dateRange: (e) => `${e.startDate} - ${e.endDate}`,
  dateSelected: (e) => `${e.date} seçildi`,
  finishRangeSelectionPrompt: "Tarih aralığı seçimini tamamlamak için tıklayın",
  maximumDate: "Son müsait tarih",
  minimumDate: "İlk müsait tarih",
  next: "Sonraki",
  previous: "Önceki",
  selectedDateDescription: (e) => `Seçilen Tarih: ${e.date}`,
  selectedRangeDescription: (e) => `Seçilen Aralık: ${e.dateRange}`,
  startRangeSelectionPrompt: "Tarih aralığı seçimini başlatmak için tıklayın",
  todayDate: (e) => `Bugün, ${e.date}`,
  todayDateSelected: (e) => `Bugün, ${e.date} seçildi`
};
var Ra = {};
Ra = {
  dateRange: (e) => `${e.startDate} — ${e.endDate}`,
  dateSelected: (e) => `Вибрано ${e.date}`,
  finishRangeSelectionPrompt: "Натисніть, щоб завершити вибір діапазону дат",
  maximumDate: "Остання доступна дата",
  minimumDate: "Перша доступна дата",
  next: "Наступний",
  previous: "Попередній",
  selectedDateDescription: (e) => `Вибрана дата: ${e.date}`,
  selectedRangeDescription: (e) => `Вибраний діапазон: ${e.dateRange}`,
  startRangeSelectionPrompt: "Натисніть, щоб почати вибір діапазону дат",
  todayDate: (e) => `Сьогодні, ${e.date}`,
  todayDateSelected: (e) => `Сьогодні, вибрано ${e.date}`
};
var Ca = {};
Ca = {
  dateRange: (e) => `${e.startDate} 至 ${e.endDate}`,
  dateSelected: (e) => `已选择 ${e.date}`,
  finishRangeSelectionPrompt: "单击以完成选择日期范围",
  maximumDate: "最后一个可用日期",
  minimumDate: "第一个可用日期",
  next: "下一页",
  previous: "上一页",
  selectedDateDescription: (e) => `选定的日期：${e.date}`,
  selectedRangeDescription: (e) => `选定的范围：${e.dateRange}`,
  startRangeSelectionPrompt: "单击以开始选择日期范围",
  todayDate: (e) => `今天，即 ${e.date}`,
  todayDateSelected: (e) => `已选择今天，即 ${e.date}`
};
var ya = {};
ya = {
  dateRange: (e) => `${e.startDate} 至 ${e.endDate}`,
  dateSelected: (e) => `已選取 ${e.date}`,
  finishRangeSelectionPrompt: "按一下以完成選取日期範圍",
  maximumDate: "最後一個可用日期",
  minimumDate: "第一個可用日期",
  next: "下一頁",
  previous: "上一頁",
  selectedDateDescription: (e) => `選定的日期：${e.date}`,
  selectedRangeDescription: (e) => `選定的範圍：${e.dateRange}`,
  startRangeSelectionPrompt: "按一下以開始選取日期範圍",
  todayDate: (e) => `今天，${e.date}`,
  todayDateSelected: (e) => `已選取今天，${e.date}`
};
var ie = {};
ie = {
  "ar-AE": We,
  "bg-BG": Le,
  "cs-CZ": Ge,
  "da-DK": qe,
  "de-DE": Je,
  "el-GR": Qe,
  "en-US": Xe,
  "es-ES": Ye,
  "et-EE": ea,
  "fi-FI": aa,
  "fr-FR": ta,
  "he-IL": ua,
  "hr-HR": ia,
  "hu-HU": na,
  "it-IT": la,
  "ja-JP": da,
  "ko-KR": ra,
  "lt-LT": oa,
  "lv-LV": sa,
  "nb-NO": ca,
  "nl-NL": Da,
  "pl-PL": fa,
  "pt-BR": ma,
  "pt-PT": $a,
  "ro-RO": ga,
  "ru-RU": pa,
  "sk-SK": xa,
  "sl-SI": ba,
  "sr-SP": va,
  "sv-SE": ha,
  "tr-TR": Ba,
  "uk-UA": Ra,
  "zh-CN": Ca,
  "zh-TW": ya
};
function Ea(e) {
  return e && e.__esModule ? e.default : e;
}
const we = /* @__PURE__ */ new WeakMap();
function ae(e) {
  return e?.calendar.identifier === "gregory" && e.era === "BC" ? "short" : void 0;
}
function qa(e) {
  let a = se(Ea(ie), "@react-aria/calendar"), i, t;
  var d;
  "highlightedRange" in e ? { start: i, end: t } = e.highlightedRange || {} : i = t = (d = e.value) !== null && d !== void 0 ? d : void 0;
  let u = X({
    weekday: "long",
    month: "long",
    year: "numeric",
    day: "numeric",
    era: ae(i) || ae(t),
    timeZone: e.timeZone
  }), l = "anchorDate" in e ? e.anchorDate : null;
  return C(() => {
    if (!l && i && t)
      if (y(i, t)) {
        let n = u.format(i.toDate(e.timeZone));
        return a.format("selectedDateDescription", {
          date: n
        });
      } else {
        let n = he(u, a, i, t, e.timeZone);
        return a.format("selectedRangeDescription", {
          dateRange: n
        });
      }
    return "";
  }, [
    i,
    t,
    l,
    e.timeZone,
    a,
    u
  ]);
}
function ve(e, a, i, t) {
  let d = se(Ea(ie), "@react-aria/calendar"), u = ae(e) || ae(a), l = X({
    month: "long",
    year: "numeric",
    era: u,
    calendar: e.calendar.identifier,
    timeZone: i
  }), n = X({
    month: "long",
    year: "numeric",
    day: "numeric",
    era: u,
    calendar: e.calendar.identifier,
    timeZone: i
  });
  return C(() => {
    if (y(e, Fe(e))) {
      let D = e, s = a;
      if (e.calendar.getFormattableMonth && (D = e.calendar.getFormattableMonth(e)), a.calendar.getFormattableMonth && (s = a.calendar.getFormattableMonth(a)), y(a, le(e))) return l.format(D.toDate(i));
      if (y(a, le(a))) return t ? he(l, d, D, s, i) : l.formatRange(D.toDate(i), s.toDate(i));
    }
    return t ? he(n, d, e, a, i) : n.formatRange(e.toDate(i), a.toDate(i));
  }, [
    e,
    a,
    l,
    n,
    d,
    i,
    t
  ]);
}
function he(e, a, i, t, d) {
  let u = e.formatRangeToParts(i.toDate(d), t.toDate(d)), l = -1;
  for (let s = 0; s < u.length; s++) {
    let o = u[s];
    if (o.source === "shared" && o.type === "literal") l = s;
    else if (o.source === "endRange") break;
  }
  let n = "", D = "";
  for (let s = 0; s < u.length; s++)
    s < l ? n += u[s].value : s > l && (D += u[s].value);
  return a.format("dateRange", {
    startDate: n,
    endDate: D
  });
}
function Ja(e) {
  return e && e.__esModule ? e.default : e;
}
function Pa(e, a) {
  let i = se(Ja(ie), "@react-aria/calendar"), t = _(e), d = ve(a.visibleRange.start, a.visibleRange.end, a.timeZone, !1), u = ve(a.visibleRange.start, a.visibleRange.end, a.timeZone, !0);
  Ve(() => {
    a.isFocused || ze(u);
  }, [
    u
  ]);
  let l = qa(a);
  Ve(() => {
    l && ze(l, "polite", 4e3);
  }, [
    l
  ]);
  let n = ja([
    !!e.errorMessage,
    e.isInvalid,
    e.validationState
  ]);
  we.set(a, {
    ariaLabel: e["aria-label"],
    ariaLabelledBy: e["aria-labelledby"],
    errorMessageId: n,
    selectedDateDescription: l
  });
  let [D, s] = j(!1), o = e.isDisabled || a.isNextVisibleRangeInvalid();
  o && D && (s(!1), a.setFocused(!0));
  let [b, f] = j(!1), v = e.isDisabled || a.isPreviousVisibleRangeInvalid();
  v && b && (f(!1), a.setFocused(!0));
  let $ = He({
    id: e.id,
    "aria-label": [
      e["aria-label"],
      u
    ].filter(Boolean).join(", "),
    "aria-labelledby": e["aria-labelledby"]
  });
  return {
    calendarProps: U(t, $, {
      role: "application",
      "aria-details": e["aria-details"] || void 0,
      "aria-describedby": e["aria-describedby"] || void 0
    }),
    nextButtonProps: {
      onPress: () => a.focusNextPage(),
      "aria-label": i.format("next"),
      isDisabled: o,
      onFocusChange: s
    },
    prevButtonProps: {
      onPress: () => a.focusPreviousPage(),
      "aria-label": i.format("previous"),
      isDisabled: v,
      onFocusChange: f
    },
    errorMessageProps: {
      id: n
    },
    title: d
  };
}
function Qa(e, a) {
  return Pa(e, a);
}
function Xa(e, a, i) {
  let t = Pa(e, a), d = q(!1), u = q(typeof window < "u" ? window : null);
  return $e(u, "pointerdown", (n) => {
    d.current = n.width === 0 && n.height === 0;
  }), $e(u, "pointerup", (n) => {
    if (d.current) {
      d.current = !1;
      return;
    }
    if (a.setDragging(!1), !a.anchorDate) return;
    let D = n.target;
    i.current && i.current.contains(document.activeElement) && (!i.current.contains(D) || !D.closest('button, [role="button"]')) && a.selectFocusedDate();
  }), t.calendarProps.onBlur = (n) => {
    i.current && (!n.relatedTarget || !i.current.contains(n.relatedTarget)) && a.anchorDate && a.selectFocusedDate();
  }, $e(i, "touchmove", (n) => {
    a.isDragging && n.preventDefault();
  }, {
    passive: !1,
    capture: !0
  }), t;
}
function Ya(e, a) {
  let { startDate: i = a.visibleRange.start, endDate: t = a.visibleRange.end, firstDayOfWeek: d } = e, { direction: u } = re(), l = (m) => {
    switch (m.key) {
      case "Enter":
      case " ":
        m.preventDefault(), a.selectFocusedDate();
        break;
      case "PageUp":
        m.preventDefault(), m.stopPropagation(), a.focusPreviousSection(m.shiftKey);
        break;
      case "PageDown":
        m.preventDefault(), m.stopPropagation(), a.focusNextSection(m.shiftKey);
        break;
      case "End":
        m.preventDefault(), m.stopPropagation(), a.focusSectionEnd();
        break;
      case "Home":
        m.preventDefault(), m.stopPropagation(), a.focusSectionStart();
        break;
      case "ArrowLeft":
        m.preventDefault(), m.stopPropagation(), u === "rtl" ? a.focusNextDay() : a.focusPreviousDay();
        break;
      case "ArrowUp":
        m.preventDefault(), m.stopPropagation(), a.focusPreviousRow();
        break;
      case "ArrowRight":
        m.preventDefault(), m.stopPropagation(), u === "rtl" ? a.focusPreviousDay() : a.focusNextDay();
        break;
      case "ArrowDown":
        m.preventDefault(), m.stopPropagation(), a.focusNextRow();
        break;
      case "Escape":
        "setAnchorDate" in a && (m.preventDefault(), a.setAnchorDate(null));
        break;
    }
  }, n = ve(i, t, a.timeZone, !0), { ariaLabel: D, ariaLabelledBy: s } = we.get(a), o = He({
    "aria-label": [
      D,
      n
    ].filter(Boolean).join(", "),
    "aria-labelledby": s
  }), b = X({
    weekday: e.weekdayStyle || "narrow",
    timeZone: a.timeZone
  }), { locale: f } = re(), v = C(() => {
    let m = de(Te(a.timeZone), f, d);
    return [
      ...new Array(7).keys()
    ].map((x) => {
      let F = m.add({
        days: x
      }).toDate(a.timeZone);
      return b.format(F);
    });
  }, [
    f,
    a.timeZone,
    b,
    d
  ]), $ = Aa(i, f, d);
  return {
    gridProps: U(o, {
      role: "grid",
      "aria-readonly": a.isReadOnly || void 0,
      "aria-disabled": a.isDisabled || void 0,
      "aria-multiselectable": "highlightedRange" in a || void 0,
      onKeyDown: l,
      onFocus: () => a.setFocused(!0),
      onBlur: () => a.setFocused(!1)
    }),
    headerProps: {
      // Column headers are hidden to screen readers to make navigating with a touch screen reader easier.
      // The day names are already included in the label of each cell, so there's no need to announce them twice.
      "aria-hidden": !0
    },
    weekDays: v,
    weeksInMonth: $
  };
}
function et(e) {
  return e && e.__esModule ? e.default : e;
}
function at(e, a, i) {
  let { date: t, isDisabled: d } = e, { errorMessageId: u, selectedDateDescription: l } = we.get(a), n = se(et(ie), "@react-aria/calendar"), D = X({
    weekday: "long",
    day: "numeric",
    month: "long",
    year: "numeric",
    era: ae(t),
    timeZone: a.timeZone
  }), s = a.isSelected(t), o = a.isCellFocused(t) && !e.isOutsideMonth;
  d = d || a.isCellDisabled(t);
  let b = a.isCellUnavailable(t), f = !d && !b, v = a.isValueInvalid && !!("highlightedRange" in a ? !a.anchorDate && a.highlightedRange && t.compare(a.highlightedRange.start) >= 0 && t.compare(a.highlightedRange.end) <= 0 : a.value && y(a.value, t));
  v && (s = !0), t = wa(t, xe);
  let $ = C(() => t.toDate(a.timeZone), [
    t,
    a.timeZone
  ]), m = Ue(t, a.timeZone), x = C(() => {
    let g = "";
    return "highlightedRange" in a && a.value && !a.anchorDate && (y(t, a.value.start) || y(t, a.value.end)) && (g = l + ", "), g += D.format($), m ? g = n.format(s ? "todayDateSelected" : "todayDate", {
      date: g
    }) : s && (g = n.format("dateSelected", {
      date: g
    })), a.minValue && y(t, a.minValue) ? g += ", " + n.format("minimumDate") : a.maxValue && y(t, a.maxValue) && (g += ", " + n.format("maximumDate")), g;
  }, [
    D,
    $,
    n,
    s,
    m,
    t,
    a,
    l
  ]), S = "";
  "anchorDate" in a && o && !a.isReadOnly && f && (a.anchorDate ? S = n.format("finishRangeSelectionPrompt") : S = n.format("startRangeSelectionPrompt"));
  let F = _a(S), A = q(!1), r = q(!1), P = q(void 0), { pressProps: R, isPressed: I } = Wa({
    // When dragging to select a range, we don't want dragging over the original anchor
    // again to trigger onPressStart. Cancel presses immediately when the pointer exits.
    shouldCancelOnPointerExit: "anchorDate" in a && !!a.anchorDate,
    preventFocusOnPress: !0,
    isDisabled: !f || a.isReadOnly,
    onPressStart(g) {
      if (a.isReadOnly) {
        a.setFocusedDate(t);
        return;
      }
      if ("highlightedRange" in a && !a.anchorDate && (g.pointerType === "mouse" || g.pointerType === "touch")) {
        if (a.highlightedRange && !v) {
          if (y(t, a.highlightedRange.start)) {
            a.setAnchorDate(a.highlightedRange.end), a.setFocusedDate(t), a.setDragging(!0), r.current = !0;
            return;
          } else if (y(t, a.highlightedRange.end)) {
            a.setAnchorDate(a.highlightedRange.start), a.setFocusedDate(t), a.setDragging(!0), r.current = !0;
            return;
          }
        }
        let V = () => {
          a.setDragging(!0), P.current = void 0, a.selectDate(t), a.setFocusedDate(t), A.current = !0;
        };
        g.pointerType === "touch" ? P.current = setTimeout(V, 200) : V();
      }
    },
    onPressEnd() {
      r.current = !1, A.current = !1, clearTimeout(P.current), P.current = void 0;
    },
    onPress() {
      !("anchorDate" in a) && !a.isReadOnly && (a.selectDate(t), a.setFocusedDate(t));
    },
    onPressUp(g) {
      if (!a.isReadOnly && ("anchorDate" in a && P.current && (a.selectDate(t), a.setFocusedDate(t)), "anchorDate" in a))
        if (r.current)
          a.setAnchorDate(t);
        else if (a.anchorDate && !A.current)
          a.selectDate(t), a.setFocusedDate(t);
        else if (g.pointerType === "keyboard" && !a.anchorDate) {
          a.selectDate(t);
          let V = t.add({
            days: 1
          });
          a.isInvalid(V) && (V = t.subtract({
            days: 1
          })), a.isInvalid(V) || a.setFocusedDate(V);
        } else g.pointerType === "virtual" && (a.selectDate(t), a.setFocusedDate(t));
    }
  }), O;
  d || (O = y(t, a.focusedDate) ? 0 : -1), Ka(() => {
    o && i.current && (Ta(i.current), Ha() !== "pointer" && document.activeElement === i.current && Za(i.current, {
      containingElement: Ua(i.current)
    }));
  }, [
    o,
    i
  ]);
  let N = X({
    day: "numeric",
    timeZone: a.timeZone,
    calendar: t.calendar.identifier
  }), z = C(() => N.formatToParts($).find((g) => g.type === "day").value, [
    N,
    $
  ]);
  return {
    cellProps: {
      role: "gridcell",
      "aria-disabled": !f || void 0,
      "aria-selected": s || void 0,
      "aria-invalid": v || void 0
    },
    buttonProps: U(R, {
      onFocus() {
        d || a.setFocusedDate(t);
      },
      tabIndex: O,
      role: "button",
      "aria-disabled": !f || void 0,
      "aria-label": x,
      "aria-invalid": v || void 0,
      "aria-describedby": [
        v ? u : void 0,
        F["aria-describedby"]
      ].filter(Boolean).join(" ") || void 0,
      onPointerEnter(g) {
        "highlightDate" in a && (g.pointerType !== "touch" || a.isDragging) && f && a.highlightDate(t);
      },
      onPointerDown(g) {
        "releasePointerCapture" in g.target && g.target.releasePointerCapture(g.pointerId);
      },
      onContextMenu(g) {
        g.preventDefault();
      }
    }),
    isPressed: I,
    isFocused: o,
    isSelected: s,
    isDisabled: d,
    isUnavailable: b,
    isOutsideVisibleRange: t.compare(a.visibleRange.start) < 0 || t.compare(a.visibleRange.end) > 0,
    isInvalid: v,
    formattedDate: z
  };
}
function Q(e, a, i) {
  return a != null && e.compare(a) < 0 || i != null && e.compare(i) > 0;
}
function Be(e, a, i, t, d) {
  let u = {};
  for (let n in a)
    u[n] = Math.floor(a[n] / 2), u[n] > 0 && a[n] % 2 === 0 && u[n]--;
  let l = G(e, a, i).subtract(u);
  return te(e, l, a, i, t, d);
}
function G(e, a, i, t, d) {
  let u = e;
  return a.years ? u = Ia(e) : a.months ? u = Fe(e) : a.weeks && (u = de(e, i)), te(e, u, a, i, t, d);
}
function Re(e, a, i, t, d) {
  let u = {
    ...a
  };
  u.days ? u.days-- : u.weeks ? u.weeks-- : u.months ? u.months-- : u.years && u.years--;
  let l = G(e, a, i).subtract(u);
  return te(e, l, a, i, t, d);
}
function te(e, a, i, t, d, u) {
  if (d && e.compare(d) >= 0) {
    let l = ke(a, G(M(d), i, t));
    l && (a = l);
  }
  if (u && e.compare(u) <= 0) {
    let l = Ae(a, Re(M(u), i, t));
    l && (a = l);
  }
  return a;
}
function T(e, a, i) {
  if (a) {
    let t = ke(e, M(a));
    t && (e = t);
  }
  if (i) {
    let t = Ae(e, M(i));
    t && (e = t);
  }
  return e;
}
function Sa(e, a, i) {
  if (!i) return e;
  for (; e.compare(a) >= 0 && i(e); ) e = e.subtract({
    days: 1
  });
  return e.compare(a) >= 0 ? e : null;
}
function Fa(e) {
  let a = C(() => new za(e.locale), [
    e.locale
  ]), i = C(() => a.resolvedOptions(), [
    a
  ]), { locale: t, createCalendar: d, visibleDuration: u = {
    months: 1
  }, minValue: l, maxValue: n, selectionAlignment: D, isDateUnavailable: s, pageBehavior: o = "visible", firstDayOfWeek: b } = e, f = C(() => d(i.calendar), [
    d,
    i.calendar
  ]);
  var v;
  let [$, m] = be(e.value, (v = e.defaultValue) !== null && v !== void 0 ? v : null, e.onChange), x = C(() => $ ? L(M($), f) : null, [
    $,
    f
  ]), S = C(() => $ && "timeZone" in $ ? $.timeZone : i.timeZone, [
    $,
    i.timeZone
  ]), F = C(() => e.focusedValue ? T(L(M(e.focusedValue), f), l, n) : void 0, [
    e.focusedValue,
    f,
    l,
    n
  ]), A = C(() => T(e.defaultFocusedValue ? L(M(e.defaultFocusedValue), f) : x || L(Te(S), f), l, n), [
    e.defaultFocusedValue,
    x,
    S,
    f,
    l,
    n
  ]), [r, P] = be(F, A, e.onFocusChange), [R, I] = j(() => {
    switch (D) {
      case "start":
        return G(r, u, t, l, n);
      case "end":
        return Re(r, u, t, l, n);
      case "center":
      default:
        return Be(r, u, t, l, n);
    }
  }), [O, N] = j(e.autoFocus || !1), z = C(() => {
    let c = {
      ...u
    };
    return c.days ? c.days-- : c.days = -1, R.add(c);
  }, [
    R,
    u
  ]), [g, V] = j(f);
  if (!Va(f, g)) {
    let c = L(r, f);
    I(Be(c, u, t, l, n)), P(c), V(f);
  }
  Q(r, l, n) ? P(T(r, l, n)) : r.compare(R) < 0 ? I(Re(r, u, t, l, n)) : r.compare(z) > 0 && I(G(r, u, t, l, n));
  function h(c) {
    c = T(c, l, n), P(c);
  }
  function Y(c) {
    if (!e.isDisabled && !e.isReadOnly) {
      let w = c;
      if (w === null) {
        m(null);
        return;
      }
      if (w = T(w, l, n), w = Sa(w, R, s), !w) return;
      w = L(w, $?.calendar || new _e()), $ && "hour" in $ ? m($.set(w)) : m(w);
    }
  }
  let ne = C(() => x ? s && s(x) ? !0 : Q(x, l, n) : !1, [
    x,
    s,
    l,
    n
  ]), me = e.isInvalid || e.validationState === "invalid" || ne, B = me ? "invalid" : null, E = C(() => o === "visible" ? u : ge(u), [
    o,
    u
  ]);
  var k, H;
  return {
    isDisabled: (k = e.isDisabled) !== null && k !== void 0 ? k : !1,
    isReadOnly: (H = e.isReadOnly) !== null && H !== void 0 ? H : !1,
    value: x,
    setValue: Y,
    visibleRange: {
      start: R,
      end: z
    },
    minValue: l,
    maxValue: n,
    focusedDate: r,
    timeZone: S,
    validationState: B,
    isValueInvalid: me,
    setFocusedDate(c) {
      h(c), N(!0);
    },
    focusNextDay() {
      h(r.add({
        days: 1
      }));
    },
    focusPreviousDay() {
      h(r.subtract({
        days: 1
      }));
    },
    focusNextRow() {
      u.days ? this.focusNextPage() : (u.weeks || u.months || u.years) && h(r.add({
        weeks: 1
      }));
    },
    focusPreviousRow() {
      u.days ? this.focusPreviousPage() : (u.weeks || u.months || u.years) && h(r.subtract({
        weeks: 1
      }));
    },
    focusNextPage() {
      let c = R.add(E);
      P(T(r.add(E), l, n)), I(G(te(r, c, E, t, l, n), E, t));
    },
    focusPreviousPage() {
      let c = R.subtract(E);
      P(T(r.subtract(E), l, n)), I(G(te(r, c, E, t, l, n), E, t));
    },
    focusSectionStart() {
      u.days ? h(R) : u.weeks ? h(de(r, t)) : (u.months || u.years) && h(Fe(r));
    },
    focusSectionEnd() {
      u.days ? h(z) : u.weeks ? h(Ma(r, t)) : (u.months || u.years) && h(le(r));
    },
    focusNextSection(c) {
      if (!c && !u.days) {
        h(r.add(ge(u)));
        return;
      }
      u.days ? this.focusNextPage() : u.weeks ? h(r.add({
        months: 1
      })) : (u.months || u.years) && h(r.add({
        years: 1
      }));
    },
    focusPreviousSection(c) {
      if (!c && !u.days) {
        h(r.subtract(ge(u)));
        return;
      }
      u.days ? this.focusPreviousPage() : u.weeks ? h(r.subtract({
        months: 1
      })) : (u.months || u.years) && h(r.subtract({
        years: 1
      }));
    },
    selectFocusedDate() {
      s && s(r) || Y(r);
    },
    selectDate(c) {
      Y(c);
    },
    isFocused: O,
    setFocused: N,
    isInvalid(c) {
      return Q(c, l, n);
    },
    isSelected(c) {
      return x != null && y(c, x) && !this.isCellDisabled(c) && !this.isCellUnavailable(c);
    },
    isCellFocused(c) {
      return O && r && y(c, r);
    },
    isCellDisabled(c) {
      return e.isDisabled || c.compare(R) < 0 || c.compare(z) > 0 || this.isInvalid(c);
    },
    isCellUnavailable(c) {
      return e.isDateUnavailable ? e.isDateUnavailable(c) : !1;
    },
    isPreviousVisibleRangeInvalid() {
      let c = R.subtract({
        days: 1
      });
      return y(c, R) || this.isInvalid(c);
    },
    isNextVisibleRangeInvalid() {
      let c = z.add({
        days: 1
      });
      return y(c, z) || this.isInvalid(c);
    },
    getDatesInWeek(c, w = R) {
      let W = w.add({
        weeks: c
      }), J = [];
      W = de(W, t, b);
      let ka = Na(W, t, b);
      for (let ee = 0; ee < ka; ee++) J.push(null);
      for (; J.length < 7; ) {
        J.push(W);
        let ee = W.add({
          days: 1
        });
        if (y(W, ee)) break;
        W = ee;
      }
      for (; J.length < 7; ) J.push(null);
      return J;
    }
  };
}
function ge(e) {
  let a = {
    ...e
  };
  for (let i in e) a[i] = 1;
  return a;
}
function tt(e) {
  let { value: a, defaultValue: i, onChange: t, createCalendar: d, locale: u, visibleDuration: l = {
    months: 1
  }, minValue: n, maxValue: D, ...s } = e, [o, b] = be(a, i || null, t), [f, v] = j(null), $ = "center";
  if (o && o.start && o.end) {
    let E = Be(M(o.start), l, u, n, D).add(l).subtract({
      days: 1
    });
    o.end.compare(E) > 0 && ($ = "start");
  }
  let m = q(null), [x, S] = j(null), F = C(() => ke(n, x?.start), [
    n,
    x
  ]), A = C(() => Ae(D, x?.end), [
    D,
    x
  ]), r = Fa({
    ...s,
    value: o && o.start,
    createCalendar: d,
    locale: u,
    visibleDuration: l,
    minValue: F,
    maxValue: A,
    selectionAlignment: e.selectionAlignment || $
  }), P = (B) => {
    if (B && e.isDateUnavailable && !e.allowsNonContiguousRanges) {
      const E = Me(B, r, -1), k = Me(B, r, 1);
      m.current = {
        start: E,
        end: k
      }, S(m.current);
    } else
      m.current = null, S(null);
  }, [R, I] = j(r.visibleRange);
  (!xe(r.visibleRange.start, R.start) || !xe(r.visibleRange.end, R.end)) && (P(f), I(r.visibleRange));
  let O = (B) => {
    B ? (v(B), P(B)) : (v(null), P(null));
  }, N = f ? pe(f, r.focusedDate) : o && pe(o.start, o.end), z = (B) => {
    if (e.isReadOnly) return;
    const E = T(B, F, A), k = Sa(E, r.visibleRange.start, e.isDateUnavailable);
    if (k)
      if (!f) O(k);
      else {
        let H = pe(f, k);
        H && b({
          start: Ne(H.start, o?.start),
          end: Ne(H.end, o?.end)
        }), O(null);
      }
  }, [g, V] = j(!1), { isDateUnavailable: h } = e, Y = C(() => !o || f ? !1 : h && (h(o.start) || h(o.end)) ? !0 : Q(o.start, n, D) || Q(o.end, n, D), [
    h,
    o,
    f,
    n,
    D
  ]), ne = e.isInvalid || e.validationState === "invalid" || Y;
  return {
    ...r,
    value: o,
    setValue: b,
    anchorDate: f,
    setAnchorDate: O,
    highlightedRange: N,
    validationState: ne ? "invalid" : null,
    isValueInvalid: ne,
    selectFocusedDate() {
      z(r.focusedDate);
    },
    selectDate: z,
    highlightDate(B) {
      f && r.setFocusedDate(B);
    },
    isSelected(B) {
      return !!(N && B.compare(N.start) >= 0 && B.compare(N.end) <= 0 && !r.isCellDisabled(B) && !r.isCellUnavailable(B));
    },
    isInvalid(B) {
      var E, k;
      return r.isInvalid(B) || Q(B, (E = m.current) === null || E === void 0 ? void 0 : E.start, (k = m.current) === null || k === void 0 ? void 0 : k.end);
    },
    isDragging: g,
    setDragging: V
  };
}
function pe(e, a) {
  return !e || !a ? null : (a.compare(e) < 0 && ([e, a] = [
    a,
    e
  ]), {
    start: M(e),
    end: M(a)
  });
}
function Ne(e, a) {
  return e = L(e, a?.calendar || new _e()), a && "hour" in a ? a.set(e) : e;
}
function Me(e, a, i) {
  let t = e.add({
    days: i
  });
  for (; (i < 0 ? t.compare(a.visibleRange.start) >= 0 : t.compare(a.visibleRange.end) <= 0) && !a.isCellUnavailable(t); ) t = t.add({
    days: i
  });
  if (a.isCellUnavailable(t)) return t.add({
    days: -i
  });
}
const Ce = /* @__PURE__ */ ue(null), ye = /* @__PURE__ */ ue(null), ce = /* @__PURE__ */ ue(null), De = /* @__PURE__ */ ue(null), wt = /* @__PURE__ */ Z(function(a, i) {
  [a, i] = Ee(a, i, Ce);
  let { locale: t } = re(), d = Fa({
    ...a,
    locale: t,
    createCalendar: a.createCalendar || Ze
  }), { calendarProps: u, prevButtonProps: l, nextButtonProps: n, errorMessageProps: D, title: s } = Qa(a, d), o = Pe({
    ...a,
    values: {
      state: d,
      isDisabled: a.isDisabled || !1,
      isInvalid: d.isValueInvalid
    },
    defaultClassName: "react-aria-Calendar"
  }), b = _(a, {
    global: !0
  });
  return /* @__PURE__ */ p.createElement("div", {
    ...U(b, o, u),
    ref: i,
    slot: a.slot || void 0,
    "data-disabled": a.isDisabled || void 0,
    "data-invalid": d.isValueInvalid || void 0
  }, /* @__PURE__ */ p.createElement(je, {
    values: [
      [
        Oe,
        {
          slots: {
            previous: l,
            next: n
          }
        }
      ],
      [
        Se,
        {
          "aria-hidden": !0,
          level: 2,
          children: s
        }
      ],
      [
        ce,
        d
      ],
      [
        Ce,
        a
      ],
      [
        Ke,
        {
          slots: {
            errorMessage: D
          }
        }
      ]
    ]
  }, /* @__PURE__ */ p.createElement(oe, null, /* @__PURE__ */ p.createElement("h2", null, u["aria-label"])), o.children, /* @__PURE__ */ p.createElement(oe, null, /* @__PURE__ */ p.createElement("button", {
    "aria-label": n["aria-label"],
    disabled: n.isDisabled,
    onClick: () => d.focusNextPage(),
    tabIndex: -1
  }))));
}), It = /* @__PURE__ */ Z(function(a, i) {
  [a, i] = Ee(a, i, ye);
  let { locale: t } = re(), d = tt({
    ...a,
    locale: t,
    createCalendar: a.createCalendar || Ze
  }), { calendarProps: u, prevButtonProps: l, nextButtonProps: n, errorMessageProps: D, title: s } = Xa(a, d, i), o = Pe({
    ...a,
    values: {
      state: d,
      isDisabled: a.isDisabled || !1,
      isInvalid: d.isValueInvalid
    },
    defaultClassName: "react-aria-RangeCalendar"
  }), b = _(a, {
    global: !0
  });
  return /* @__PURE__ */ p.createElement("div", {
    ...U(o, b, u),
    ref: i,
    slot: a.slot || void 0,
    "data-disabled": a.isDisabled || void 0,
    "data-invalid": d.isValueInvalid || void 0
  }, /* @__PURE__ */ p.createElement(je, {
    values: [
      [
        Oe,
        {
          slots: {
            previous: l,
            next: n
          }
        }
      ],
      [
        Se,
        {
          "aria-hidden": !0,
          level: 2,
          children: s
        }
      ],
      [
        De,
        d
      ],
      [
        ye,
        a
      ],
      [
        Ke,
        {
          slots: {
            errorMessage: D
          }
        }
      ]
    ]
  }, /* @__PURE__ */ p.createElement(oe, null, /* @__PURE__ */ p.createElement("h2", null, u["aria-label"])), o.children, /* @__PURE__ */ p.createElement(oe, null, /* @__PURE__ */ p.createElement("button", {
    "aria-label": n["aria-label"],
    disabled: n.isDisabled,
    onClick: () => d.focusNextPage(),
    tabIndex: -1
  }))));
}), fe = /* @__PURE__ */ ue(null), zt = /* @__PURE__ */ Z(function(a, i) {
  let t = K(ce), d = K(De), u = Ie(Ce), l = Ie(ye), n = t ?? d, D = n.visibleRange.start;
  a.offset && (D = D.add(a.offset));
  var s;
  let o = (s = u?.firstDayOfWeek) !== null && s !== void 0 ? s : l?.firstDayOfWeek, { gridProps: b, headerProps: f, weekDays: v, weeksInMonth: $ } = Ya({
    startDate: D,
    endDate: le(D),
    weekdayStyle: a.weekdayStyle,
    firstDayOfWeek: o
  }, n), m = _(a, {
    global: !0
  });
  var x;
  return /* @__PURE__ */ p.createElement(fe.Provider, {
    value: {
      headerProps: f,
      weekDays: v,
      startDate: D,
      weeksInMonth: $
    }
  }, /* @__PURE__ */ p.createElement("table", {
    ...U(m, b),
    ref: i,
    style: a.style,
    cellPadding: 0,
    className: (x = a.className) !== null && x !== void 0 ? x : "react-aria-CalendarGrid"
  }, typeof a.children != "function" ? a.children : /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement(it, null, (S) => /* @__PURE__ */ p.createElement(lt, null, S)), /* @__PURE__ */ p.createElement(rt, null, a.children))));
});
function ut(e, a) {
  let { children: i, style: t, className: d } = e, { headerProps: u, weekDays: l } = K(fe), n = _(e, {
    global: !0
  });
  return /* @__PURE__ */ p.createElement("thead", {
    ...U(n, u),
    ref: a,
    style: t,
    className: d ?? "react-aria-CalendarGridHeader"
  }, /* @__PURE__ */ p.createElement("tr", null, l.map((D, s) => /* @__PURE__ */ p.cloneElement(i(D), {
    key: s
  }))));
}
const it = /* @__PURE__ */ Z(ut);
function nt(e, a) {
  let { children: i, style: t, className: d } = e, u = _(e, {
    global: !0
  });
  return /* @__PURE__ */ p.createElement("th", {
    ...u,
    ref: a,
    style: t,
    className: d || "react-aria-CalendarHeaderCell"
  }, i);
}
const lt = /* @__PURE__ */ Z(nt);
function dt(e, a) {
  let { children: i, style: t, className: d } = e, u = K(ce), l = K(De), n = u ?? l, { startDate: D, weeksInMonth: s } = K(fe), o = _(e, {
    global: !0
  });
  return /* @__PURE__ */ p.createElement("tbody", {
    ...o,
    ref: a,
    style: t,
    className: d ?? "react-aria-CalendarGridBody"
  }, [
    ...new Array(s).keys()
  ].map((b) => /* @__PURE__ */ p.createElement("tr", {
    key: b
  }, n.getDatesInWeek(b, D).map((f, v) => f ? /* @__PURE__ */ p.cloneElement(i(f), {
    key: v
  }) : /* @__PURE__ */ p.createElement("td", {
    key: v
  })))));
}
const rt = /* @__PURE__ */ Z(dt), Vt = /* @__PURE__ */ Z(function({ date: a, ...i }, t) {
  let d = K(ce), u = K(De), l = d ?? u;
  var n;
  let { startDate: D } = (n = K(fe)) !== null && n !== void 0 ? n : {
    startDate: l.visibleRange.start
  }, s = !Oa(D, a), o = Ue(a, l.timeZone), b = q(null), { cellProps: f, buttonProps: v, ...$ } = at({
    date: a,
    isOutsideMonth: s
  }, l, b), { hoverProps: m, isHovered: x } = La({
    ...i,
    isDisabled: $.isDisabled
  }), { focusProps: S, isFocusVisible: F } = Ga();
  F && (F = $.isFocused);
  let A = !1, r = !1;
  "highlightedRange" in l && l.highlightedRange && (A = y(a, l.highlightedRange.start), r = y(a, l.highlightedRange.end));
  let P = Pe({
    ...i,
    defaultChildren: $.formattedDate,
    defaultClassName: "react-aria-CalendarCell",
    values: {
      date: a,
      isHovered: x,
      isOutsideMonth: s,
      isFocusVisible: F,
      isSelectionStart: A,
      isSelectionEnd: r,
      isToday: o,
      ...$
    }
  }), R = {
    "data-focused": $.isFocused || void 0,
    "data-hovered": x || void 0,
    "data-pressed": $.isPressed || void 0,
    "data-unavailable": $.isUnavailable || void 0,
    "data-disabled": $.isDisabled || void 0,
    "data-focus-visible": F || void 0,
    "data-outside-visible-range": $.isOutsideVisibleRange || void 0,
    "data-outside-month": s || void 0,
    "data-selected": $.isSelected || void 0,
    "data-selection-start": A || void 0,
    "data-selection-end": r || void 0,
    "data-invalid": $.isInvalid || void 0,
    "data-today": o || void 0
  }, I = _(i, {
    global: !0
  });
  return /* @__PURE__ */ p.createElement("td", {
    ...f,
    ref: t
  }, /* @__PURE__ */ p.createElement("div", {
    ...U(I, v, S, m, R, P),
    ref: b
  }));
}), Nt = /* @__PURE__ */ Z(function(a, i) {
  [a, i] = Ee(a, i, Se);
  let { children: t, level: d = 3, className: u, ...l } = a, n = `h${d}`;
  return /* @__PURE__ */ p.createElement(n, {
    ...l,
    ref: i,
    className: u ?? "react-aria-Heading"
  }, t);
});
export {
  ye as $,
  Ce as a,
  De as b,
  Nt as c,
  zt as d,
  it as e,
  lt as f,
  rt as g,
  Vt as h,
  It as i,
  ce as j,
  wt as k
};
//# sourceMappingURL=Heading-C0SIgP_B.es.js.map
