
    ih-              
          d dl m Z d dlmZ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 d dlmZmZ d dlmZmZmZmZmZ d dlmZ  G d deeeeee      Z G d	 d
e      Z G d de      Z G d de      Z G d de      Z  G d d      Z!y)    )gettext)_CustomChineseHolidays_CustomIslamicHolidays)JANFEBAPRMAYJUNJULAUGSEPOCTNOVDEC)PUBLICWORKDAY)ChineseCalendarHolidaysChristianHolidaysInternationalHolidaysIslamicHolidaysStaticHolidays)HolidayBasec                   b     e Zd ZdZdZeefZdZ e	d      Z
dZdZddd	ef fd
Zd Zd Z xZS )PhilippinesaW	  Philippines holidays.

    References:
        * <https://en.wikipedia.org/wiki/Public_holidays_in_the_Philippines>
        * [Revised Administrative Code of 1987](https://web.archive.org/web/20241203234427/https://www.officialgazette.gov.ph/1987/07/25/executive-order-no-292-book-ichapter-7-regular-holidays-and-nationwide-special-days/)
        * [Republic Act No. 9177](https://web.archive.org/web/20230930164310/https://www.officialgazette.gov.ph/2002/11/13/republic-act-no-9177/)
        * [Republic Act No. 9256](https://web.archive.org/web/20240706140401/https://www.officialgazette.gov.ph/2004/02/25/republic-act-no-9256/)
        * [Republic Act No. 9492](https://web.archive.org/web/20250413180041/http://www.officialgazette.gov.ph/2007/07/24/republic-act-no-9492/)
        * [Republic Act No. 9645](https://web.archive.org/web/20231014172648/https://www.officialgazette.gov.ph/2009/06/12/republic-act-no-9645/)
        * [Republic Act No. 9849](https://web.archive.org/web/20250424053703/http://officialgazette.gov.ph/2009/12/11/republic-act-no-9849/)
        * [Republic Act No. 10966](https://web.archive.org/web/20250419183417/http://www.officialgazette.gov.ph/2017/12/28/republic-act-no-10966/)
        * [Proclamation No. 944/2020](https://web.archive.org/web/20250428055016/https://www.officialgazette.gov.ph/2020/05/19/proclamation-no-944-s-2020/)
        * [Proclamation No. 985/2020](https://web.archive.org/web/20230901112559/https://www.officialgazette.gov.ph/2020/07/29/proclamation-no-985-s-2020/)
        * [Proclamation No. 90/2022](https://web.archive.org/web/20231026052921/https://www.officialgazette.gov.ph/2022/11/09/proclamation-no-90-s-2022/)
        * [Proclamation No. 665/2024](https://archive.org/details/20241015-proc-665-frm)
        * [Proclamation No. 729/2024](https://archive.org/details/20241030-proc-729-frm)
        * [Nationwide holidays 2018-2025](https://web.archive.org/web/20240515022447/https://www.officialgazette.gov.ph/nationwide-holidays/2018/)
        * [Proclamation No. 839/2025](https://archive.org/details/20250320-proc-839-frm_202506)
        * [Proclamation No. 878/2025](https://archive.org/details/20250506-proc-878-frm_202506)
        * [Proclamation No. 911/2025](https://archive.org/details/20250521-proc-911-frm_20250606_1800)
        * [Proclamation No. 1006/2025](https://archive.org/details/20250903-proc-1006-frm)
    PHen_PHz%s (estimated))r   en_USfilthi  T)islamic_show_estimatedr    c                   t        j                  | t               t        j                  |        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)r"   show_estimatedN)
r   __init__PhilippinesChineseHolidaysr   r   r   PhilippinesIslamicHolidaysr   PhilippinesStaticHolidayssuper)selfr    argskwargs	__class__s       ^/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/holidays/countries/philippines.pyr$   zPhilippines.__init__C   sn     	 ((3MN""4(&&t,  0AW	
 	*CD$)&)    c                    | j                  t        d             | j                  dk\  r)| j                  dk7  r| j                  t        d             d| j                  cxk  rdk  rWn nT| j                  dk7  rEdt        dfi}| j                  t        d      |j                  | j                  t        d	f             | j                  t        d
             | j                  t        d             | j                  dk\  r| j                  t        d             t        dft        dft        dfd}| j                  t        d      |j                  | j                  t        df             | j                  t        d             t        dft        dft        dfd}| j                  t        d      |j                  | j                  t        df             | j                  dk\  rZt        dft        dft        dft        dfd}| j                  t        d      |j                  | j                  t        d f             t        d!      }| j                  d"k\  r| j                  |       n| j                  |       | j!                  t        d#             t"        d$ft$        d%ft$        d&fd'}| j                  t        d(      |j                  | j                  t$        d)f             | j                  d*k\  r| j'                  t        d+             | j)                  t        d,             d-t"        d&fi}| j                  t        d.      |j                  | j                  t"        d)f             | j                  d/vr| j+                  t        d0             | j                  d1k\  r| j-                  t        d2             | j                  d-k\  r| j/                  t        d3             y y )4NzNew Year's Day    zChinese New Year       (EDSA People Power Revolution Anniversary   zMaundy ThursdayzGood Friday  zBlack Saturday      
   )    r1   zAraw ng Kagitingan	   z	Labor Day      )  r;     zIndependence Day   i           )r@   r;   rA     zNinoy Aquino Day   zNational Heroes Dayr@   zAll Saints' Day         )r;   rA   r1   zBonifacio Day     z*Feast of the Immaculate Conception of MaryzChristmas DayrA   z	Rizal Day>       zLast Day of the Year  z
Eid'l Fitrz
Eid'l Adha)_add_new_years_daytr_year_add_chinese_new_years_dayr   _add_holidayget_add_holy_thursday_add_good_friday_add_holy_saturdayr   _add_labor_dayr
   r   _add_holiday_last_mon_of_aug_add_holiday_last_sun_of_aug_add_all_saints_dayr   r   _add_immaculate_conception_day_add_christmas_day_add_new_years_eve_add_eid_al_fitr_day_add_eid_al_adha_day)r)   	dates_obsnames      r-   _populate_public_holidaysz%Philippines._populate_public_holidaysS   sR   #3 45::$**"4++B/A,BC4::%%$***<sBiI =>djj3)4 	#4 56 	b/0::##B'7$89 (()
	 	"12IMM$**sTUh4WX 	B{O, )()
	 	"/0)--

SRTI2VW::BiBiBiBi	I b!34immDJJQTVXPY6Z[ '(::--d3--d3 	  $5!67 ())
	 	"_-y}}TZZ#r/ST:://3_0`a 	? 34 3)
	 	"[/9==c2Y+OP::\)##B'=$>?::%%b&67::%%b&67 r.   c                     | j                   dk\  r)| j                   dk7  r| j                  t        d             | j                   dk\  r| j                  t        d             y y )Nr<     z)Founding Anniversary of Iglesia ni Cristor5   )rR   _add_holiday_jul_27rQ   _add_holiday_feb_25)r)   s    r-   _populate_workday_holidaysz&Philippines._populate_workday_holidays   sT    ::$**"4$$R(S%TU ::$$R(R%ST r.   )__name__
__module____qualname____doc__countryr   r   supported_categoriesdefault_languagerQ   estimated_labelsupported_languages
start_yearboolr$   rd   ri   __classcell__)r,   s   @r-   r   r      sR    . G"G,)*O9J=A *d * b8H
Ur.   r   c                       e Zd Zy)r   Nrj   rk   rl    r.   r-   r   r          r.   r   c                       e Zd Zy)PHLNrw   rx   r.   r-   r{   r{      ry   r.   r{   c                       e Zd ZdZy)r%   )r0   rf   N)rj   rk   rl   $LUNAR_NEW_YEAR_DATES_CONFIRMED_YEARSrx   r.   r-   r%   r%      s    +7(r.   r%   c                       e Zd ZdZedfedfedfedfedfedfedfedfd	Z	d
Z
edfedfedfedfedfedfedfedfedfedfedfedfedfedfedfdZy)r&   )rA   rf      r8   r9   r6   r:      rB   )rA   i      r2   r3   rL   rF   )rO   rf         r4   rG   rC   r=   rI         rH   )rO   i  i  i  r@   r<   r0   r7   r   r2   r3   rL     rN   rf   N)rj   rk   rl   !EID_AL_ADHA_DATES_CONFIRMED_YEARSr   r   r   r   r
   EID_AL_ADHA_DATES!EID_AL_FITR_DATES_CONFIRMED_YEARSr   r   r	   r   EID_AL_FITR_DATESrx   r.   r-   r&   r&      s    (4%BiAhAhBiBiAhBiBi	 )5%AhBiAhBiBiBiBiAhBiAhBiAhBiAhAhr.   r&   c            	          e Zd Z ed      Z ed      Z ed      Zi dedefedeffdedefed	effd
ed	efdedefdedefed	effded	efedeffde	defed	effde	defe
defed	effde	defe
deffdedefedefed	effdedefedefed	effdedefed	effdedefe
deffde	defe
defedefedeffdedefedefed	effdedefedefe
d ed      fed	effd ed ed!      fed	effZy")#r'   z$Additional special (non-working) dayz#Elections special (non-working) dayzChristmas Ever;   r   rI   r<   r   r4   rA   r0   r7   r   r   r2      r3   i  r?   rL      r   rN   r=   r1   rK   rF   rf   rB   rJ   zAll Saints' Day Evei  zAll Souls' DayN)rj   rk   rl   rQ   additional_specialelection_specialchristmas_ever   r   r   r   r	   r   r   special_public_holidaysrx   r.   r-   r'   r'      s   BC ?@ 'MI"()"()
I
 	!'("()
I 	sB*+I 	sA)*I 	!'("()
I 	"()"()
I& 	!'("()
'I. 	!'("()"()
/I8 	!'("()
9I@ 	"&'!'("()
AIJ 	"&'!'("()
KIT 	!'("()
UI\ 	!%&"()
]Id 	!'("&'!'("()	
eIp 	!'(!'("()
qIz 	"&'"()"b./0"m$
{IH 	!R()*"m$
IIr.   r'   N)"r   rQ   holidays.calendarsr   r   holidays.calendars.gregorianr   r   r   r	   r
   r   r   r   r   r   r   holidays.constantsr   r   holidays.groupsr   r   r   r   r   holidays.holiday_baser   r   r   r{   r%   r&   r'   rx   r.   r-   <module>r      s    " M ^ ^ ^ ^ .  .eUeUP	 		+ 	8!7 8!7 BS Sr.   