
    !gc                      r    d dl m Z d dlmZmZ d dlmZ  G d deee      Z G d de      Z G d d	e      Z	y
)    )gettext)ChristianHolidaysInternationalHolidays)HolidayBasec                        e Zd ZdZdZdZdZdZdddddd	d
dddddddZdZ	dZ
 fdZd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd  Z xZS )!Franceu  Official French holidays.

    Some provinces have specific holidays, only those are included in the
    PROVINCES, because these provinces have different administrative status,
    which makes it difficult to enumerate.

    For religious holidays usually happening on Sundays (Easter, Pentecost),
    only the following Monday is considered a holiday.

    Primary sources:
        https://fr.wikipedia.org/wiki/Fêtes_et_jours_fériés_en_France
        https://www.service-public.fr/particuliers/vosdroits/F2405
    FRfr)en_USr
   uk)BLGESGPGYMFMQNCPFREWFYTr   r   r   r   r   r   r   r   r   r   r   )u   Saint-BarthélemyAlsacezChampagne-ArdenneLorraine
GuadeloupeGuyaneSaint-Martin
Martinique   Nouvelle-Calédonie   Polynésie Française   La RéunionWallis-et-FutunaMayotte)Alsace-Moseller   r   r    r   r"   u
   Métropoler   r      Saint-Barthélémyr   r!   i	  c                 x    t        j                  |        t        j                  |        t        |   |i | y )N)r   __init__r   super)selfargskwargs	__class__s      V/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/holidays/countries/france.pyr&   zFrance.__init__R   s1    ""4(&&t,$)&)    c                 P   | j                   dk\  r| j                  t        d             | j                   dk\  r4| j                  | j                   dk\  rt        d      n
t        d             d| j                   cxk  rdk  sn | j                   d	k\  r| j	                  t        d
             | j                   dk\  r| j                  t        d             | j                   dk\  r| j                  t        d             | j                   dk\  rB| j                  t        d             | j                   dvr| j                  t        d             | j                   dk\  rh| j                  t        d             | j                  t        d             | j                  t        d             | j                  t        d             | j                  dk(  r| j                          y | j                  dk(  r| j                          y | j                  dk(  r| j!                          y | j                  dk(  r| j#                          y | j                  dk(  r| j%                          y | j                  dk(  r| j'                          y | j                  dk(  r| j)                          y | j                  dk(  r| j+                          y | j                  d k(  r| j-                          y | j                  d!k(  r| j/                          y | j                  d"k(  r| j1                          y y )#Ni  zJour de l'ani  i  u   Fête du Travailu*   Fête du Travail et de la Concorde socialei  i  i  u   Fête de la VictoireiX  u   Fête nationalei~  	Armisticei^  u   Lundi de Pâques>         u   Lundi de Pentecôtei
  	Ascension
Assomption	Toussaintu   Noëlr#   r   r   r    r   r"   r   r   r$   r   r!   )_year_add_new_years_daytr_add_labor_day_add_world_war_two_victory_day_add_holiday_jul_14_add_holiday_nov_11_add_easter_monday_add_whit_monday_add_ascension_thursday_add_assumption_of_mary_day_add_all_saints_day_add_christmas_daysubdiv$_populate_subdiv_ges_public_holidays#_populate_subdiv_gp_public_holidays#_populate_subdiv_gy_public_holidays#_populate_subdiv_re_public_holidays#_populate_subdiv_mq_public_holidays#_populate_subdiv_yt_public_holidays#_populate_subdiv_nc_public_holidays#_populate_subdiv_pf_public_holidays#_populate_subdiv_bl_public_holidays#_populate_subdiv_mf_public_holidays#_populate_subdiv_wf_public_holidaysr(   s    r,   _populate_public_holidaysz France._populate_public_holidaysW   sy   ::##B~$67:: ::% %& DE 4::%%t);//3I0JK::$$R(9%:;::$$R_5 ::##B'9$:;zz!33%%b)>&?@::((K9,,R-=>$$R_5##BwK0;;**557[[L(446[[H$446[[M)446[[L(446[[I%446[[11446[[33446[[00446[[N*446[[..446 /r-   c                 8    | j                  t        d             y NAbolition de l'esclavage)_add_holiday_oct_9r8   rO   s    r,   rL   z*France._populate_subdiv_bl_public_holidays   s    #= >?r-   c                 l    | j                  t        d             | j                  t        d             y )NVendredi saintu   Saint Étienne)_add_good_fridayr8   _add_christmas_day_tworO   s    r,   rD   z+France._populate_subdiv_ges_public_holidays   s,    b!123 	##B'7$89r-   c                     | j                  t        d             | j                  t        d             | j                  t        d             | j	                  t        d             y )NrV   u
   Mi-CarêmerS      Fête de Victor Schoelcher)rW   r8   !_add_holiday_24_days_prior_easter_add_holiday_may_27_add_holiday_jul_21rO   s    r,   rE   z*France._populate_subdiv_gp_public_holidays   sW    b!123 	..r,/?@ 	  $>!?@ 	  $@!ABr-   c                 8    | j                  t        d             y rR   )_add_holiday_jun_10r8   rO   s    r,   rF   z*France._populate_subdiv_gy_public_holidays         $>!?@r-   c                 X    | j                   dk\  r| j                  t        d             y y )Ni  rS   )r6   _add_holiday_may_28r8   rO   s    r,   rM   z*France._populate_subdiv_mf_public_holidays   '    ::$$R(B%CD r-   c                     | j                  t        d             | j                  t        d             | j                  t        d             y )NrV   rS   rZ   )rW   r8   _add_holiday_may_22r]   rO   s    r,   rH   z*France._populate_subdiv_mq_public_holidays   sB    b!123 	  $>!?@ 	  $@!ABr-   c                 8    | j                  t        d             y )Nu   Fête de la Citoyenneté)_add_holiday_sep_24r8   rO   s    r,   rJ   z*France._populate_subdiv_nc_public_holidays   r`   r-   c                     | j                  t        d             | j                  t        d             | j                  t        d             y )NrV   u   Arrivée de l'Évangileu   Fête de l'autonomie)rW   r8   _add_holiday_mar_5_add_holiday_jun_29rO   s    r,   rK   z*France._populate_subdiv_pf_public_holidays   sB    b!123 	#< => 	  $:!;<r-   c                 X    | j                   dk\  r| j                  t        d             y y )Ni  rS   )r6   _add_holiday_dec_20r8   rO   s    r,   rG   z*France._populate_subdiv_re_public_holidays   rc   r-   c                 l    | j                  t        d             | j                  t        d             y )NzSaint Pierre Chanelu   Fête du Territoire)_add_holiday_apr_28r8   _add_holiday_jul_29rO   s    r,   rN   z*France._populate_subdiv_wf_public_holidays   s,      $9!:; 	  $9!:;r-   c                 8    | j                  t        d             y rR   )_add_holiday_apr_27r8   rO   s    r,   rI   z*France._populate_subdiv_yt_public_holidays   r`   r-   )__name__
__module____qualname____doc__countrydefault_languagesupported_languagessubdivisionssubdivisions_aliases_deprecated_subdivisions
start_yearr&   rP   rL   rD   rE   rF   rM   rH   rJ   rK   rG   rN   rI   __classcell__)r+   s   @r,   r   r      s     G/L ""#!%    J*
D7N@
:CA
ECA
=E<Ar-   r   c                       e Zd ZdZy)r	   zBFR is also used by dateutil (Friday), so be careful with this one.N)rr   rs   rt   ru    r-   r,   r	   r	      s    Lr-   r	   c                       e Zd Zy)FRAN)rr   rs   rt   r   r-   r,   r   r      s    r-   r   N)
r   r8   holidays.groupsr   r   holidays.holiday_baser   r   r	   r   r   r-   r,   <module>r      s?    " D -\A[+-B \A~	 		& 	r-   