
    ih%                    &   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	m
Z
mZmZmZmZmZmZmZmZmZmZmZ d dlmZmZmZ d dlmZmZmZ d dlmZ erd d	l m!Z!  G d
 deeee      Z" G d de"      Z# G d de"      Z$ G d de      Z% G d d      Z&y)    )annotations)gettext)TYPE_CHECKING)_CustomIslamicHolidays)FEBAPRMAYJUNJULAUGSEPOCTNOVDECFRISATSUN)
GOVERNMENTOPTIONALPUBLIC)InternationalHolidaysIslamicHolidaysStaticHolidays)HolidayBase)datec                  b     e Zd ZdZdZdZ ed      Zee	e
fZdZdZddd fd	Zdd
Zd Z xZS )UnitedArabEmiratesa  United Arab Emirates holidays.

    References:
    * [2017](https://web.archive.org/web/20230209125034/https://www.khaleejtimes.com/nation/uae-official-public-holidays-list-2017)
    * [2018](https://web.archive.org/web/20201111212817/https://www.khaleejtimes.com/nation/Here-are-the-holidays-remaining-in-2018-in-UAE)
    * [2019](https://web.archive.org/web/20240513133929/https://www.thenational.ae/uae/government/uae-public-holidays-for-2019-and-2020-announced-by-cabinet-1.833425)
    * [2020](https://web.archive.org/web/20250424164934/https://u.ae/en/information-and-services/public-holidays-and-religious-affairs/public-holidays)
    * [2021](https://web.archive.org/web/20210928140451/http://wam.ae/en/details/1395302957696)
    * [2022](https://web.archive.org/web/20250207171255/https://www.khaleejtimes.com/ramadan/eid-al-fitr-holiday-announced-in-uae-3)
    * 2023:
        * <https://web.archive.org/web/20231207191645/https://www.timeoutdubai.com/news/uae-public-holidays-in-2023>
        * <https://web.archive.org/web/20250125141309/https://www.khaleejtimes.com/uae/islamic-new-year-2023-uae-announces-official-holiday-for-public-sector>
    * [2024](https://web.archive.org/web/20241001104607/https://www.timeoutdubai.com/news/uae-public-holidays-in-2024)
    * [2025](https://web.archive.org/web/20250415131512/https://www.timeoutdubai.com/news/uae-public-holidays-2025)

    Holidays are regulated by the Article 74 of [Federal Law No.
    08](https://web.archive.org/web/20250304004437/https://www.ilo.org/dyn/natlex/docs/ELECTRONIC/11956/69376/F417089305/ARE11956.pdf)
    for the year 1980.

    However the law is not applied literally, and was amended often in the past few years.
    AEaru   %s (المقدرة))r   en_USthi  T)islamic_show_estimatedc                   t        j                  |        t        j                  | t        |       t	        j                  | t
               t        |   |i | y)z
        Args:
            islamic_show_estimated:
                Whether to add "estimated" label to Islamic holidays name
                if holiday date is estimated.
        )clsshow_estimatedN)r   __init__r   !UnitedArabEmiratesIslamicHolidaysr    UnitedArabEmiratesStaticHolidayssuper)selfr"   argskwargs	__class__s       g/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/holidays/countries/united_arab_emirates.pyr&   zUnitedArabEmirates.__init__J   sO     	&&t,  7H^	
 	&FG$)&)    c                P    |j                   dk\  rt        t        hS t        t        hS )N  )yearr   r   r   )r*   dts     r.   _get_weekendzUnitedArabEmirates._get_weekendX   s!      WW_Sz<3*<r/   c                   | j                  t        d             d| j                  cxk  rdk  r@n n=t        d      }| j                  dk\  r| j                  |       n| j	                  |       t        d      }| j                  |       | j                  |       | j                  t        d             t        d      }| j                  |       | j                  |       d| j                  cxk  rd	k  rn n| j                  |       | j                  t        d
             | j                  t        d             t        d      }| j                  |       | j                  |       | j                  t        d             | j                  dk  r| j!                  t        d             | j#                  t        d             y )Nu$   رأس السنة الميلاديةi    u   يوم الشهيد     اليوم الوطنيu   عيد الفطر   عطلة عيد الفطر  u   وقفة عرفةu   عيد الأضحىu   عطلة عيد الأضحىu    رأس السنة الهجرية  u   ليلة المعراجu    عيد المولد النبوي)_add_new_years_daytr_year_add_holiday_dec_1_add_holiday_nov_30_add_holiday_dec_2_add_holiday_dec_3_add_eid_al_fitr_day_add_eid_al_fitr_day_two_add_eid_al_fitr_day_three_add_eid_al_fitr_eve_add_arafah_day_add_eid_al_adha_day_add_eid_al_adha_day_two_add_eid_al_adha_day_three_add_islamic_new_year_day_add_isra_and_miraj_day_add_mawlid_day)r*   namenational_dayeid_al_fitr_holidayeid_al_adha_holidays        r.   _populate_public_holidaysz,UnitedArabEmirates._populate_public_holidays]   s   #I JK4::%%+,DzzT!''-((. 34-- 	!!"%8"9: !!=>%%&9:''(;<4::%%%%&9: 	R 345 	!!"%:";< !!?@%%&9:''(;< 	&&r*L'MN::((,E)FG 	R BCDr/   )r"   bool)r3   r   returnzset[int])__name__
__module____qualname____doc__countrydefault_languager=   estimated_labelr   r   r   supported_categoriessupported_languages
start_yearr&   r4   rR   __classcell__)r-   s   @r.   r   r   *   sK    , G./O&&9/J=A *=
/Er/   r   c                      e Zd Zy)r   NrU   rV   rW    r/   r.   r   r          r/   r   c                      e Zd Zy)ARENra   rb   r/   r.   re   re      rc   r/   re   c                      e Zd ZdZedfedfdZdZdZe	dfedfedfe
dfdZd	Zedfed
fd	ZdZedfedfe	dfe	dfdZy)r'   )          )r;   rh            )rg       r6   )rg   r;               )r;   ro   r6   rh   N)rU   rV   rW   !EID_AL_ADHA_DATES_CONFIRMED_YEARSr   r
   EID_AL_ADHA_DATES!EID_AL_FITR_DATES_CONFIRMED_YEARS$HIJRI_NEW_YEAR_DATES_CONFIRMED_YEARSr   r   HIJRI_NEW_YEAR_DATES$ISRA_AND_MIRAJ_DATES_CONFIRMED_YEARSr   ISRA_AND_MIRAJ_DATESMAWLID_DATES_CONFIRMED_YEARSr   r   MAWLID_DATESrb   r/   r.   r'   r'      s    (4%BiAh
 )5%+7(BiBiBiBi	 ,8(BiBi
 $0 BiBiBiAh	Lr/   r'   c                      e Zd ZdZ ed      Z ed      Zedefedefedefedeffed ed	      fd
Z	de
d ed      fiZedefedefedefedefedefedeffedefdZy)r(   us  United Arab Emirates special holidays.

    Special Eid al-Fitr entries for Ramadan 29 from 2020 onwards:
        * [2019](https://web.archive.org/web/20250429081745/https://www.mohre.gov.ae/en/media-centre/news/30/1/2019/عطلة-رسمية-يوم-زيارة-البابا-للمشاركين-في-فعالياته-من-القطاع-الخاص.aspx?DisableResponsive=1)
        * [2020](https://web.archive.org/web/20210804023600/https://gulfbusiness.com/revealed-uae-private-sector-holidays-for-eid-al-fitr-2020/)
        * [2021](https://web.archive.org/web/20220508191126/https://www.timeoutdubai.com/news/466278-eid-al-fitr-holiday-2021-dubai)
        * 2022:
            * <https://web.archive.org/web/20241210072332/https://gulfnews.com/uae/eid-al-fitr-2022-holidays-for-private-and-public-sectors-in-uae-explained-1.1650951429432>
            * <https://web.archive.org/web/20220616134156/https://www.arabianbusiness.com/gcc/uae/uae-suspends-work-for-three-days-marks-40-days-of-mourning-over-sheikh-khalifas-death>
        * [2023](https://web.archive.org/web/20240301231911/https://hrme.economictimes.indiatimes.com/news/industry/uae-cabinet-announces-national-day-holiday-for-federal-government-from-2-to-4-december/105455071)
        * [2024](https://web.archive.org/web/20240720085937/http://www.timeoutdubai.com/news/eid-al-fitr-2024-expected-dates-ramadan)
        * [2025](https://web.archive.org/web/20250415131512/https://www.timeoutdubai.com/news/uae-public-holidays-2025)

    Cross-Checked With:
        * <https://web.archive.org/web/20250429081729/https://www.timeanddate.com/holidays/united-arab-emirates/2021?hol=134217729>
    r9   u<   وفاة الشيخ خليفة بن زايد آل نهيانrs            rj   r8   )r1   r6   r7   u+   يوم زيارة البابا فرنسيسri         rp         )rn   ro   r1   r:   N)rU   rV   rW   rX   r=   rP   sheikh_khalifa_bin_zayed_deathr	   r   special_government_holidaysr   special_optional_holidaysr   special_public_holidaysrb   r/   r.   r(   r(      s    $ 9:%'(f%g" !()!()!()!()	
 Ar345	# 	sArGHI!
 B+,B+,")*"45"45"45	
 A*+
r/   r(   N)'
__future__r   r   r=   typingr   holidays.calendarsr   holidays.calendars.gregorianr   r   r	   r
   r   r   r   r   r   r   r   r   r   holidays.constantsr   r   r   holidays.groupsr   r   r   holidays.holiday_baser   datetimer   r   r   re   r'   r(   rb   r/   r.   <module>r      s    # !   5    < ; R R -bE&;_n bEJ		 		
 	(> @/ /r/   