
    ihU                         d dl m Z d dl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mZmZmZmZmZ  G d dee
ee      Z G d d	e      Z G d
 de      Z G d d      Zy)    )gettext)MAYSEP)
GOVERNMENTPUBLICWORKDAY)ChristianHolidaysInternationalHolidaysStaticHolidays)ObservedHolidayBaseSAT_TO_NEXT_MONSAT_TO_NEXT_TUESUN_TO_NEXT_TUESUN_TO_NEXT_WEDSAT_SUN_TO_NEXT_MONc                   ^     e Zd ZdZdZdZ ed      ZdZe	e
efZdZ fdZd Zd	 Zd
 Z xZS )FalklandIslandsa  Falkland Islands holidays.

    References:
        * <https://en.wikipedia.org/wiki/Public_holidays_in_the_Falkland_Islands>
        * [January 31st, 2023 Amendment](https://web.archive.org/web/20250704040815/https://www.falklands.gov.fk/legalservices/statute-law-commissioner/gazettes-supplements/2023/supplements-2023?task=download.send&id=140)
        * <https://web.archive.org/web/20241201174202/https://www.timeanddate.com/holidays/falkland-islands/2025>
        * [Falkland Day](https://web.archive.org/web/20250325025508/https://www.daysoftheyear.com/days/falklands-day/)
        * [Peat Cutting Day](https://en.wikipedia.org/wiki/Peat_Cutting_Monday)
        * [HM The King's Birthday](https://web.archive.org/web/20230329063159/https://en.mercopress.com/2022/11/03/falklands-appoints-14-november-as-a-public-holiday-to-celebrate-birthday-of-king-charles-iii)
        * [Governor's Office Stanley](https://web.archive.org/web/20250704040807/https://www.gov.uk/world/organisations/governors-office-stanley/office/governors-office-stanley)
        * [2020-2023](https://web.archive.org/web/20220805134148/http://www.falklands.gov.fk/policy/jdownloads/Reports%20&%20Publications/Public%20Health,%20Social%20and%20Community%20Publications/Falkland%20Islands%20Public%20Holidays%202020-2023.pdf)
        * [2023-2026](https://web.archive.org/web/20250402143330/https://www.falklands.gov.fk/policy/downloads?task=download.send&id=186:falkland-islands-public-holidays-2023-2026&catid=12)
    FKen_GBz%s (observed)i  )r   en_USc                     t        j                  |        t        j                  |        t        j                  | t               |j                  dt               t        |   |i | y )N)clsobserved_rule)r	   __init__r
   r   FalklandIslandsStaticHolidays
setdefaultr   super)selfargskwargs	__class__s      c/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/holidays/countries/falkland_islands.pyr   zFalklandIslands.__init__6   sS    ""4(&&t,*GH/+>?$)&)    c                    | j                  | j                  t        d                   | j                  t        d             | j                  dk  r)| j                  | j                  t        d                   | j                  | j                  t        d                   | j                  dk  r*| j                  | j                  t        d                   n| j                  t        d             | j                  dk\  r)| j                  | j                  t        d	                   | j                  | j                  t        d
            t        t        z          | j                  | j                  t        d            t        t        z          | j                  | j                  t        d            t        t         z          y )NzNew Year's DayzGood Friday  zHM The Queen's BirthdayzLiberation Dayi  Falkland DayzPeat Cutting DayzHM The King's BirthdayzChristmas Day)rulez
Boxing DayzChristmas Holiday)_add_observed_add_new_years_daytr_add_good_friday_year_add_holiday_apr_21_add_holiday_jun_14_add_holiday_aug_14_add_holiday_1st_mon_of_oct_add_holiday_nov_14_add_christmas_dayr   r   _add_christmas_day_twor   _add_christmas_day_threer   r   s    r"   _populate_public_holidaysz)FalklandIslands._populate_public_holidays=   s|   42226F3GHI 	b/0::t77;T8UVW 	433B7G4HIJ::t77>8JKL ,,R0B-CD::t77;S8TUV##B$78 ?2 	 	
 	''<(89 ?2 	 	
 	))"-@*AB ?2 	 	
r#   c                     t        d      }| j                  || j                  | j                  d            }| j                  || j                  |d             y )NzGovernment Holiday)r*   _add_holiday_get_next_workday_next_year_new_years_day)r   namelast_workdays      r"   _populate_government_holidaysz-FalklandIslands._populate_government_holidaysh   sT    &'(($(()F)FK
 	$ 6 6|R HIr#   c                     | j                  t        d             | j                  dk\  r| j                  t        d             y y )NzMargaret Thatcher Dayi  r&   )_add_holiday_jan_10r*   r,   r/   r5   s    r"   _populate_workday_holidaysz*FalklandIslands._populate_workday_holidaysp   s:      $;!<=::$$R%78 r#   )__name__
__module____qualname____doc__countrydefault_languager*   observed_label
start_yearr   r   r   supported_categoriessupported_languagesr   r6   r>   rA   __classcell__)r!   s   @r"   r   r      sM     G(NJ&8,*)
VJ9r#   r   c                       e Zd Zy)r   NrB   rC   rD    r#   r"   r   r   y       r#   r   c                       e Zd Zy)FLKNrN   rO   r#   r"   rR   rR   }   rP   r#   rR   c                   >    e Zd ZdZed ed      fed ed      fdZy)r   zFalkland Islands special holidays.

    References:
        * <https://web.archive.org/web/20231004165250/https://en.mercopress.com/2022/09/14/falklands-public-holiday-and-national-two-minute-s-silence-for-queen-elizabeth-ii>
       zQueen Elizabeth II's Funeral   zHM The King's Coronation)r%   i  N)rB   rC   rD   rE   r   r*   r   special_public_holidaysrO   r#   r"   r   r      s1     B9:;Ar456	r#   r   N)r   r*   holidays.calendars.gregorianr   r   holidays.constantsr   r   r   holidays.groupsr	   r
   r   holidays.observed_holiday_baser   r   r   r   r   r   r   r   rR   r   rO   r#   r"   <module>r[      s]    " 1 : : T T Z9*,A>Z9z	 		/ 	 r#   