
    ih}                         d dl mZ d dlmZ d dlmZ d dl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mZ d dl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e      Z G d d      Zy)    )date)gettext)_CustomIslamicHolidays)	JANMARAPRMAYJUNJULAUGSEPDEC)InternationalHolidaysIslamicHolidaysStaticHolidays)ObservedHolidayBaseSAT_SUN_TO_NEXT_WORKDAYc                        e Zd ZdZdZdZ ed      Z ed      Z ed      Z	dZ
dZd	d
def fdZdedefdZd Z xZS )
UzbekistanaG  Uzbekistan holidays.

    References:
        * <https://en.wikipedia.org/wiki/Public_holidays_in_Uzbekistan>
        * [Labor Code 21.12.1995](https://web.archive.org/web/20250422170827/https://lex.uz/docs/-142859)
        * [Labor Code 28.10.2022](https://web.archive.org/web/20250424164306/https://lex.uz/docs/-6257288)
    UZuzz%s (taxminiy)u   %s (ko‘chirilgan)u   %s (ko‘chirilgan, taxminiy))en_USukr   i  T)islamic_show_estimatedr   c                    t        j                  |        t        j                  | t        |       t	        j                  | t
               |j                  dt               t        |   |i | y)z
        Args:
            islamic_show_estimated:
                Whether to add "estimated" label to Islamic holidays name
                if holiday date is estimated.
        )clsshow_estimatedobserved_ruleN)	r   __init__r   UzbekistanIslamicHolidaysr   UzbekistanStaticHolidays
setdefaultr   super)selfr   argskwargs	__class__s       ]/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/holidays/countries/uzbekistan.pyr   zUzbekistan.__init__*   s`     	&&t,  /@V	
 	&>?/+BC$)&)    dtreturnc                 *    |t        dt        d      k\  S )N     )r   r   )r$   r*   s     r(   _is_observedzUzbekistan._is_observed9   s    T$R(((r)   c                    t               }|j                  | j                  t        d                   |j                  | j	                  t        d                   |j                  | j                  t        d                   |j                  | j                  | j                  dk\  rt        d      n
t        d      d             |j                  | j                  t        d	                   | j                  d
k\  r)|j                  | j                  t        d                   | j                  dk\  r)|j                  | j                  t        d                   |j                  | j                  t        d                   |j                  | j                  t        d                   | j                  r"| j                  dk\  r| j                  |       y y y )Nz	Yangi yilzXotin-qizlar kuniu   Navro‘z bayramii  zXotira va qadrlash kuniu   G‘alaba kuniF)
is_westernzMustaqillik kunii  u    O‘qituvchi va murabbiylar kunii  u/   O‘zbekiston Respublikasi Konstitutsiyasi kuniu   Ro‘za hayitzQurbon hayitr-   )setadd_add_new_years_daytr_add_womens_day_add_holiday_mar_21_add_world_war_two_victory_day_year_add_holiday_sep_1_add_holiday_oct_1_add_holiday_dec_8update_add_eid_al_fitr_day_add_eid_al_adha_dayobserved_populate_observed)r$   dts_observeds     r(   _populate_public_holidaysz$Uzbekistan._populate_public_holidays=   s   u 	00KAB 	--b1D.EFG 	11"5H2IJK// ::% ,- ()  0 		
 	004F1GHI::T44R8Z5[\]::''+\(]^ 	D55b6IJK 	D55b6HIJ==TZZ4/##L1 0=r)   )__name__
__module____qualname____doc__countrydefault_languager5   estimated_labelobserved_labelobserved_estimated_labelsupported_languages
start_yearboolr   r   r/   rC   __classcell__)r'   s   @r(   r   r      sh     G)O-.N!"AB/J=A *d *)t ) )+2r)   r   c                       e Zd Zy)r   NrD   rE   rF    r)   r(   r   r   k       r)   r   c                       e Zd Zy)UZBNrR   rS   r)   r(   rV   rV   o   rT   r)   rV   c                   d    e Zd ZdZedfedf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dZy)r    )    
   r.            )rX   i    i        	            )i  i  i  r^   i    N)rD   rE   rF   !EID_AL_ADHA_DATES_CONFIRMED_YEARSr   r   r   EID_AL_ADHA_DATES!EID_AL_FITR_DATES_CONFIRMED_YEARSr   r   r
   EID_AL_FITR_DATESrS   r)   r(   r    r    s   so    (4%Ry3)$BiBiBi	 )5%BiBiAhBiBiAhr)   r    c                   2   e Zd ZdZ ed      Z ed      Z ed      Zedefededfe	de	d	fe	d
e	dfe	defe
de
dfe
de
dfe
defededfededfededffedefededfe	d
efededfedefededfededffededfe	defe
de
dffe	d
e	dfedefeded	fed
edfedefedefedeffedefededfe	d
efe	defedefededfedefededfedeff	edefededfe	de	dfe	d
e	dfedefedefedeffededfe	d
efedefeded fed!efedefededfedeffededfd"Zy#)$r!   a  Uzbekistan special holidays.

    References:
        * [2018](https://web.archive.org/web/20250610012705/https://lex.uz/ru/docs/3479237)
        * [2019](https://web.archive.org/web/20250521124231/https://lex.uz/docs/-4054698)
        * [2020](https://web.archive.org/web/20250522053834/https://lex.uz/docs/-4595638)
        * [2021](https://web.archive.org/web/20250522053822/https://lex.uz/docs/-5137156)
        * [2022](https://web.archive.org/web/20250522053831/https://lex.uz/docs/-5784917)
        * [2023](https://web.archive.org/web/20250522053822/https://lex.uz/docs/-6324664)
        * [2024](https://web.archive.org/web/20250522053835/https://lex.uz/docs/-6704048)
        * [2025](https://web.archive.org/web/20250422135040/https://lex.uz/docs/-7275687)
    z%d/%m %Yu&   Dam olish kuni (%s dan ko‘chirilgan)u8   Prezidentining farmoni bilan qo‘shimcha dam olish kuni         r[         r\            rc   r`               rd                  r_      r]      r.      rb   )i  re   i  i  i  r-   i  rY   N)rD   rE   rF   rG   r5   substituted_date_formatsubstituted_labeladditional_day_offr   r   r   r   r   r
   r	   r   r   special_public_holidaysrS   r)   r(   r!   r!      s    !nCD VW !'(!S!"c2"c2"()"c2"c2"()!S!!S""c2
 !'(!S!"()!S!!'(!S!"c2
 !S!"()"c2
 "c2"()"c2"c2!'(!'("()
 !'(!S!"()"()!'(!S!"()"c2!'(

 !'(!S!"c2"c2"()"()"()
 !S!"()"()"c2"()!'("c2"()	
 AsAGDr)   r!   N)datetimer   r   r5   holidays.calendarsr   holidays.calendars.gregorianr   r   r   r	   r
   r   r   r   r   holidays.groupsr   r   r   holidays.observed_holiday_baser   r   r   r   rV   r    r!   rS   r)   r(   <module>r      sj     ! 5 T T T R R WR2$&;_n R2j	 		* 	 6 (Y Yr)   