
    x7#h                     ~    d dl m Z 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)_get_all_sundays)ChristianHolidaysInternationalHolidays)HolidayBasec                   <     e Zd ZdZdZdZdZddef fdZd Z	 xZ
S )	Norwaya  Norway holidays.

    References:
        * <https://lovdata.no/dokument/NL/lov/1947-04-26-1>
        * <https://no.wikipedia.org/wiki/Helligdager_i_Norge>
        * <https://www.timeanddate.no/merkedag/norge/>

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

    In Norway, ALL sundays are considered a holiday (https://snl.no/helligdag).
    Initialize this class with `include_sundays=False` to not include sundays as a holiday.
    NOno)en_USr   thukinclude_sundaysc                     || _         t        j                  |        t        j                  |        t	        |   |i | y)z
        Args:
            include_sundays:
                Whether to consider sundays as a holiday (which they are in Norway)
        N)r   r   __init__r   super)selfr   argskwargs	__class__s       Y/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/holidays/countries/norway.pyr   zNorway.__init__'   s;      /""4(&&t,$)&)    c                    | j                  t        d             | j                  t        d             | j                  t        d             | j	                  t        d             | j                  t        d             | j                  dk\  r4| j                  t        d             | j                  t        d             | j                  t        d	             | j                  t        d
             | j                  t        d             | j                  t        d             | j                  t        d             | j                  r6t        | j                        D ]  }| j!                  t        d      |        y y )Nu   Første nyttårsdagu   Skjærtorsdag
Langfredagu   Første påskedagu   Andre påskedagi  zArbeidernes dagGrunnlovsdagzKristi himmelfartsdagu   Første pinsedagzAndre pinsedagu   Første juledagzAndre juledagu   Søndag)_add_new_years_daytr_add_holy_thursday_add_good_friday_add_easter_sunday_add_easter_monday_year_add_labor_day_add_holiday_may_17_add_ascension_thursday_add_whit_sunday_add_whit_monday_add_christmas_day_add_christmas_day_twor   r   _add_holiday)r   dts     r   _populate_public_holidaysz Norway._populate_public_holidays2   sE   #8 9: 	? 34 	b./ 	#6 78 	#4 56 ::#4 56 $$R%78 	$$R(?%@A 	b!345 	b!123 	#4 56 	##B$78&tzz2!!"Y-4 3  r   )F)__name__
__module____qualname____doc__countrydefault_languagesupported_languagesboolr   r,   __classcell__)r   s   @r   r	   r	      s,     G5	* 	*/5r   r	   c                       e Zd Zy)r
   Nr-   r.   r/    r   r   r
   r
   d       r   r
   c                       e Zd Zy)NORNr7   r8   r   r   r;   r;   h   r9   r   r;   N)r   r   holidays.calendars.gregorianr   holidays.groupsr   r   holidays.holiday_baser   r	   r
   r;   r8   r   r   <module>r?      s@    " 9 D -M5[+-B M5`	 		& 	r   