use crate::Resolved;
use crate::data::YearFact;
use crate::raw_date::RawDate;
use crate::data::months;
pub(crate) const FIRST_YEAR: i32 = 2000;
pub(crate) const Y2000: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2001: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2002: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2003: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2004: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2005: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2006: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2007: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2008: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2009: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2010: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2011: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2012: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2013: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2014: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2015: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2016: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2017: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2018: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2019: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2020: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2021: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2022: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2023: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2024: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2025: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2026: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
static YEARS: [YearFact; 27] = [
Y2000, Y2001, Y2002, Y2003, Y2004, Y2005, Y2006, Y2007, Y2008, Y2009, Y2010, Y2011, Y2012,
Y2013, Y2014, Y2015, Y2016, Y2017, Y2018, Y2019, Y2020, Y2021, Y2022, Y2023, Y2024, Y2025,
Y2026,
];
static PREDICT: YearFact = YearFact {
holidays: months! {
Jun: [24],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
#[inline]
pub(crate) fn flags(date: RawDate) -> Resolved<crate::DayFlags> {
super::resolve(date, FIRST_YEAR, &YEARS, &PREDICT)
}