
    ih                     H    d dl mZ d dlmZ d dlmZ d dlmZ  G d d      Zy)    )Iterable)date)Optional)
_timedeltac                       e Zd ZdZ	 	 ddedeee   ef   dede	dee   f
dZ
	 	 ddedeeeef      dede	dee   f
d	Zy
)EasternCalendarHolidaysz/
    Eastern calendar holidays base class.
    namedt_estimatedshow_estimated
days_deltareturnc                     |\  }}|r|rt        ||      }|rH| j                  |r4|r2| j                  | j                        | j                  |      z  |      S ||      S dS )z
        Add Eastern (Buddhist, Chinese, Hindu, Islamic, Mongolian) calendar holiday.

        Adds customizable estimation label to holiday name if holiday date is an estimation.
        N)r   _add_holidaytrestimated_label)selfr	   r
   r   r   dtis_estimateds          W/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/holidays/groups/eastern.py_add_eastern_calendar_holidayz5EasternCalendarHolidays._add_eastern_calendar_holiday   s     (L"B
+B  N ,,-= 			
 			
 		
    dts_estimatedc           	      X    |D ch c]  }| j                  ||||      x}r| c}S c c}w )z
        Add Eastern (Buddhist, Chinese, Hindu, Islamic, Mongolian) calendar holidays.

        Adds customizable estimation label to holiday name if holiday date is an estimation.
        )r   )r   r	   r   r   r   r
   r   s          r   !_add_eastern_calendar_holiday_setz9EasternCalendarHolidays._add_eastern_calendar_holiday_set4   sL     !.
 -88,
    -
 	
 
s   'N)Tr   )__name__
__module____qualname____doc__strtupler   r   boolintr   r   setr    r   r   r   r      s      $

 HTND01
 	

 
 
$
>  $

  dDj 12
 	

 
 
T
r   r   N)	collections.abcr   datetimer   typingr   holidays.calendars.gregorianr   r   r$   r   r   <module>r)      s    %   35
 5
r   