+
    *Qj                         ^ RI t ^ RIHt  ^ RIt^ RIt^ RIHt ^ RIH	t	 Rs
Rs] P                  ! R4      tR tR tR tR	 R
 ltR R ltR R ltR#   ] d    ^ RIt LPi ; i)    N)datetime)utils)win_tztzlocalc                    / p\         P                  ! V 4      ^,          p\        V4       F+  p\         P                  ! W4      pV^,          W^ ,          &   K-  	  V# )z0Convert a registry key's values to a dictionary.)winregQueryInfoKeyrange	EnumValue)keyresultsizeidatas   &    f/Users/ahmed/devFolder/Ultron/claude-voice/gateway/.venv/lib/python3.14/site-packages/tzlocal/win32.pyvaluestodictr      sP    Fs#A&D4['q'Aw  M    c                 "   R ;rRp\         P                  ! 4       P                  p\        V^^4      \        V^^4      3 FJ  pV P                  V4      P	                  4       R8X  d"   V P                  V4      P	                  4       pKH  RpKL  	  W2V3# )NFg        T)r   nowyeardsttotal_seconds	utcoffset)tz
dst_offset
std_offsethas_dstr   dts   &     r   _get_dst_infor      s    ""JG<<>Da#XdAq%9:66":##%,b)779JG ; 
**r   c                  X   \         P                  ! 4       p V '       d   V # \        P                  R 4       \        P
                  ! R\        P                  4      pRp\        P                  ! W4      p\        V4      pVP                  4        RV9   d"   VR,          P                  R^4      ^ ,          pM\        R4      h\        P                  ! V4      pVf   \        P                  ! VR,           4      pVf   \        P                  ! V4      hVP                  R^ 4      ^8X  d   \        P                   ! V4      p\#        V4      w  rp
V'       g   V# V	f   \        P                  ! V R24      hV	R	,          '       d   \        P                  ! R
V R24      hRV	) R	,          R 2# V# )z'Looking up time zone info from registryNz4SYSTEM\CurrentControlSet\Control\TimeZoneInformationTimeZoneKeyName z+Can not find Windows timezone configurationz Standard TimeDynamicDaylightTimeDisabledz$ claims to not have a non-DST time!?i  z+tzlocal can't support disabling DST in the z zone.zEtc/GMTz+.0f)r   _tz_name_from_envlogdebugr   ConnectRegistryHKEY_LOCAL_MACHINEOpenKeyr   ClosesplitLookupErrorr   getzoneinfoZoneInfoNotFoundErrorZoneInfor   )tzenvhandleTZLOCALKEYNAMElocaltz	keyvalues	tzkeynametimezoner   r   r   r   s              r   _get_localzone_namer8   -   s    ##%EII78##D&*C*CDFLNnnV4GW%IMMOI% /066vqA!D	 GHHzz)$H ::i*::; ,,Y77}}2A6!; x(*7*;'Z O00I;>b1cdd003^_g^hhn1opp *,T233Or   c                $    V ^8  d   QhR\         /#    return)str)formats   "r   __annotate__r?   l   s      C r   c                 2    \         f   \        4       s \         # )zLGet the zoneinfo timezone name that matches the Windows-configured timezone.)_cache_tz_namer8    r   r   get_localzone_namerC   l   s     ,.r   c                8    V ^8  d   QhR\         P                  /# r:   r.   r0   )r>   s   "r   r?   r?   u   s      x(( r   c                     \         f   \        P                  ! \        4       4      s \        P
                  ! 4       '       g   \        P                  ! \         RR7       \         # )zVReturns the zoneinfo-based tzinfo object that matches the Windows-configured timezone.Ferror)	_cache_tzr.   r0   rC   r   r$   assert_tz_offsetrB   r   r   get_localzonerK   u   sE     %%&8&:;	""$$ 	y6r   c                8    V ^8  d   QhR\         P                  /# r:   rE   )r>   s   "r   r?   r?      s      (++ r   c                     \        4       s\        P                  ! \        4      s\
        P                  ! \        RR7       \        # )zOReload the cached localzone. You need to call this if the timezone has changed.FrG   )r8   rA   r.   r0   rI   r   rJ   rB   r   r   reload_localzonerN      s2     )*N!!.1I	9E2r   )loggingr   _winregr   ImportErrorr.   r   r   tzlocal.windows_tzr   rI   rA   	getLoggerr%   r   r   r8   rC   rK   rN   rB   r   r   <module>rT      sl        %		"+<~   s   A A! A!