use crate::Resolved;
use crate::data::YearFact;
use crate::raw_date::RawDate;
use crate::data::months;
pub(crate) const FIRST_YEAR: i32 = 1995;
pub(crate) const Y1995: YearFact = YearFact {
holidays: months! {
Mar: [2],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y1996: YearFact = YearFact {
holidays: months! {
Feb: [19],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y1997: YearFact = YearFact {
holidays: months! {
Feb: [8],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y1998: YearFact = YearFact {
holidays: months! {
Jan: [29],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y1999: YearFact = YearFact {
holidays: months! {
Jan: [18],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2000: YearFact = YearFact {
holidays: months! {
Jan: [8],
Oct: [5],
Dec: [27],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2001: YearFact = YearFact {
holidays: months! {
Oct: [5],
Dec: [16],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2002: YearFact = YearFact {
holidays: months! {
Oct: [5],
Dec: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2003: YearFact = YearFact {
holidays: months! {
Oct: [5],
Nov: [25],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2004: YearFact = YearFact {
holidays: months! {
Oct: [5],
Nov: [14],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2005: YearFact = YearFact {
holidays: months! {
Oct: [5],
Nov: [3],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2006: YearFact = YearFact {
holidays: months! {
Oct: [5, 23],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2007: YearFact = YearFact {
holidays: months! {
Oct: [5, 13],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2008: YearFact = YearFact {
holidays: months! {
Oct: [1, 5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2009: YearFact = YearFact {
holidays: months! {
Sep: [20],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2010: YearFact = YearFact {
holidays: months! {
Sep: [10],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2011: YearFact = YearFact {
holidays: months! {
Aug: [30],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2012: YearFact = YearFact {
holidays: months! {
Aug: [19],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2013: YearFact = YearFact {
holidays: months! {
Aug: [8],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2014: YearFact = YearFact {
holidays: months! {
Jul: [28],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2015: YearFact = YearFact {
holidays: months! {
Jul: [17],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2016: YearFact = YearFact {
holidays: months! {
Jul: [6],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2017: YearFact = YearFact {
holidays: months! {
Jun: [25],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2018: YearFact = YearFact {
holidays: months! {
Jun: [15],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2019: YearFact = YearFact {
holidays: months! {
Jun: [4],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2020: YearFact = YearFact {
holidays: months! {
May: [24],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2021: YearFact = YearFact {
holidays: months! {
May: [11, 13],
Jul: [20],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2022: YearFact = YearFact {
holidays: months! {
May: [2, 3],
Jul: [9],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2023: YearFact = YearFact {
holidays: months! {
Apr: [21, 25],
Jun: [28],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2024: YearFact = YearFact {
holidays: months! {
Apr: [10],
May: [14],
Jun: [16],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2025: YearFact = YearFact {
holidays: months! {
Mar: [30],
Apr: [29],
Jun: [6],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
pub(crate) const Y2026: YearFact = YearFact {
holidays: months! {
Mar: [20],
Apr: [21],
May: [27],
Oct: [5],
},
extra_days_off: months! {},
working_days: months! {},
short_days: months! {},
transferred_days: months! {},
};
static YEARS: [YearFact; 32] = [
Y1995, Y1996, Y1997, Y1998, Y1999, 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! {
Oct: [5],
},
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)
}