
    \hk                         S SK J r  S SKJrJr  S SKJrJr  S SKJ	r	   " S S\	\\5      r
 " S S\
5      r " S	 S
\
5      rg)    )gettext)
_timedelta_get_all_sundays)ChristianHolidaysInternationalHolidays)HolidayBasec                   J   ^  \ rS rSrSrSrSrSrS
S\4U 4S jjjr	S r
S	rU =r$ )Sweden   u  Sweden holidays.

References:
    * <https://sv.wikipedia.org/wiki/Helgdagar_i_Sverige>
    * <https://web.archive.org/web/20250414065223/https://www.riksdagen.se/sv/dokument-lagar/dokument/svensk-forfattningssamling/lag-1989253-om-allmanna-helgdagar_sfs-1989-253>
    * <https://sv.wikipedia.org/wiki/Första_maj>
    * <https://sv.wikipedia.org/wiki/Sveriges_nationaldag>
    * <https://sv.wikipedia.org/wiki/Midsommarafton>


Note that holidays falling on a sunday is "lost", it will not be moved
to another day to make up for the collision.

In Sweden, ALL sundays are considered a holiday.
Initialize this class with `include_sundays=False` to not include sundays as a holiday.
SEsv)en_USr   thukinclude_sundaysc                    > Xl         [        R                  " U 5        [        R                  " U 5        [        TU ]  " U0 UD6  g)zh
Args:
    include_sundays:
        Whether to consider sundays as a holiday (which they are in Sweden)
N)r   r   __init__r   super)selfr   argskwargs	__class__s       lC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\holidays/countries/sweden.pyr   Sweden.__init__*   s9      /""4(&&t,$)&)    c                 :   U R                  [        S5      5        U R                  [        S5      5        U R                  S::  a  U R	                  [        S5      5        U R                  [        S5      5        U R                  [        S5      5        U R                  [        S5      5        U R                  S:  a  U R                  [        S	5      5        U R                  [        S
5      5        U R                  S:  a  U R                  [        S5      5        U R                  [        S5      5        U R                  S::  a  U R                  [        S5      5        [        S5      nU R                  S:  a  U R                  U5      OU R                  U5      nU R                  [        S5      [!        US5      5        U R                  S:  a  U R#                  [        S5      5        U R%                  [        S5      5        U R'                  [        S5      5        U R)                  [        S5      5        U R+                  [        S5      5        U R,                  (       a8  [/        U R                  5       H  nU R                  [        S5      U5        M      g g )Nu   NyårsdagenzTrettondedag juli  u   Jungfru Marie bebådelsedagu   Långfredagenu
   Påskdagenu   Annandag påski  u   Första maju   Kristi himmelsfärdsdagi  zSveriges nationaldagPingstdageni  zAnnandag pingstMidsommaraftonMidsommardagen   zAlla helgons dagJulaftonJuldagenzAnnandag julu   Nyårsaftonu   Söndag)_add_new_years_daytr_add_epiphany_day_year_add_holiday_mar_25_add_good_friday_add_easter_sunday_add_easter_monday_add_labor_day_add_ascension_thursday_add_holiday_jun_6_add_whit_sunday_add_whit_monday _add_holiday_1st_fri_from_jun_19_add_holiday_jun_23_add_holidayr    _add_holiday_1st_sat_from_oct_31_add_christmas_eve_add_christmas_day_add_christmas_day_two_add_new_years_ever   r   )r   namedts      r   _populate_public_holidays Sweden._populate_public_holidays5   s   = 12 	r"456::$$R(E%FG 	b12 	< 01 	#3 45::= 12 	$$R(A%BC::##B'=$>? 	b/0::!!"%6"78 "# zzT! 11$7))$/ 	 	"-.
2r0BC::11"5G2HI 	:/ 	:/ 	##B~$67 	= 12 &tzz2!!"Y-4 3  r   )r   )T)__name__
__module____qualname____firstlineno____doc__countrydefault_languagesupported_languagesboolr   r:   __static_attributes____classcell__)r   s   @r   r
   r
      s8    " G5	* 	* 	*E5 E5r   r
   c                       \ rS rSrSrg)r   }    Nr<   r=   r>   r?   rE   rI   r   r   r   r   }       r   r   c                       \ rS rSrSrg)SWE   rI   NrJ   rI   r   r   rM   rM      rK   r   rM   N)r   r$   holidays.calendars.gregorianr   r   holidays.groupsr   r   holidays.holiday_baser   r
   r   rM   rI   r   r   <module>rR      s@    " E D -f5[+-B f5R	 		& 	r   