+
    ^eòjº  ã                   ó  € R t ^ RIt^ RIt^ RIHt ]P                  P                  ^ ]P                  P                  4      tRt	Rt
]P                  ! R]P                  4      tR tR
R lt ! R R	]P                  4      tR# )zHelpers for :mod:`datetime`.N)Útimestamp_pb2z%Y-%m-%dT%H:%M:%S.%fZz%Y-%m-%dT%H:%M:%Sah  
    (?P<no_fraction>
        \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}  # YYYY-MM-DDTHH:MM:SS
    )
    (                                        # Optional decimal part
     \.                                      # decimal point
     (?P<nanos>\d{1,9})                      # nanoseconds, maybe truncated
    )?
    Z                                        # Zulu
c                óF   € \         \        P                  ! V R7      ,           # )zêConvert timestamp in microseconds since the unix epoch to datetime.

Args:
    value (float): The timestamp to convert, in microseconds.

Returns:
    datetime.datetime: The datetime object equivalent to the timestamp in
        UTC.
)Úmicroseconds)Ú
_UTC_EPOCHÚdatetimeÚ	timedelta)Úvalues   &Ú�/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/proto/datetime_helpers.pyÚ_from_microsecondsr
   *   s   € ô œ×*Ò*¸Ô>Õ>Ð>ó    c                ó¦   € V'       g6   V P                   e(   V P                  RR7      V P                  4       ,
          p V P                  \        4      # )ag  Convert a datetime to an RFC3339 timestamp string.

Args:
    value (datetime.datetime):
        The datetime object to be converted to a string.
    ignore_zone (bool): If True, then the timezone (if any) of the
        datetime object is ignored and the datetime is treated as UTC.

Returns:
    str: The RFC3339 formatted string representing the datetime.
N©Útzinfo)r   ÚreplaceÚ	utcoffsetÚstrftimeÚ_RFC3339_MICROS)r   Úignore_zones   &&r	   Ú_to_rfc3339r   7   s;   € ÷ ˜5Ÿ<™<Ò3à—‘ T�Ó*¨U¯_©_Ó->Õ>ˆà�>‰>œ/Ó*Ð*r   c                   ó|   a a€ ] tR t^Jt oRtR
tR tV 3R lt]R 4       t	R t
]R 4       tR t]R 4       tR	tVtV ;t# )ÚDatetimeWithNanosecondszmTrack nanosecond in addition to normal datetime attrs.

Nanosecond can be passed only as a keyword argument.
c                óÞ   € VP                  R ^ 4      pV^ 8”  d   RV9   d   \        R4      hVR,          VR&   \        P                  P                  ! V .VO5/ VB pT;'       g    ^ Vn        V# )Ú
nanosecondÚmicrosecondú1Specify only one of 'microsecond' or 'nanosecond'éè  )ÚpopÚ	TypeErrorr   Ú__new__Ú_nanosecond)ÚclsÚargsÚkwÚnanosÚinsts   &*,  r	   r   ÚDatetimeWithNanoseconds.__new__S   sn   € Ø—‘�| QÓ'ˆØ�1Œ9Ø Ô"ÜÐ SÓTÐTØ %¨¥ˆBˆ}ÑÜ× Ñ ×(Ò(¨Ð:¨tÒ:°rÑ:ˆØ Ÿ:˜: AˆÔØˆr   c                óF  <€ RV9   pRV9   pVP                  R^ 4      pV P                  pV'       d   V'       d   \        R4      hV'       d   VR,          VR&   \        SV `  ! V/ VB pV'       d   VP
                  R,          Vn        V# V'       d	   WWn        V# Wgn        V# )a  Return a date with the same value, except for those parameters given
new values by whichever keyword arguments are specified. For example,
if d == date(2002, 12, 31), then
d.replace(day=26) == date(2002, 12, 26).
NOTE: nanosecond and microsecond are mutually exclusive arguments.
r   r   r   r   )r   r   r   Úsuperr   r   r   )	Úselfr!   r"   Úms_providedÚns_providedÚprovided_nsÚ
prev_nanosr$   Ú	__class__s	   &*,     €r	   r   ÚDatetimeWithNanoseconds.replace^   s¤   ø€ ð $ rÑ)ˆØ" bÑ(ˆØ—f‘f˜\¨1Ó-ˆà—_‘_ˆ
çŸ;ÜÐOÓPÐPçà +¨tÕ 3ˆBˆ}ÑÜ‰wŠ Ð+¨Ñ+ˆçà#×/Ñ/°$Õ6ˆDÔð ˆ÷ à*Ôð
 ˆð  *Ôàˆr   c                óP   € V P                   ;'       g    V P                  R,          # )z Read-only: nanosecond precision.r   )r   r   )r(   s   &r	   r   Ú"DatetimeWithNanoseconds.nanosecond€   s#   € ð ×Ñ×:Ð: 4×#3Ñ#3°dÕ#:Ð:r   c                óì   € V P                   ^ 8X  d   \        V 4      # \        V P                   4      P                  ^	R4      P	                  R4      pRP                  V P                  \        4      V4      # )zhReturn an RFC3339-compliant timestamp.

Returns:
    (str): Timestamp string according to RFC3339 spec.
Ú0z{}.{}Z)r   r   ÚstrÚrjustÚrstripÚformatr   Ú_RFC3339_NO_FRACTION)r(   r#   s   & r	   Úrfc3339ÚDatetimeWithNanoseconds.rfc3339…   s`   € ð ×Ñ˜qÔ Ü˜tÓ$Ð$Ü�D×$Ñ$Ó%×+Ñ+¨A¨sÓ3×:Ñ:¸3Ó?ˆØ�‰˜tŸ}™}Ô-AÓBÀEÓJÐJr   c                ó:  € \         P                  V4      pVf*   \        RP                  V\         P                  4      4      h\
        P
                  P                  VP                  R4      \        4      pVP                  R4      pVf   ^ pM+^	\        V4      ,
          p\        V4      ^
V,          ,          pV ! VP                  VP                  VP                  VP                  VP                  VP                   V\
        P"                  P$                  R7      # )a+  Parse RFC3339-compliant timestamp, preserving nanoseconds.

Args:
    stamp (str): RFC3339 stamp, with up to nanosecond precision

Returns:
    :class:`DatetimeWithNanoseconds`:
        an instance matching the timestamp string

Raises:
    ValueError: if `stamp` does not match the expected format
z)Timestamp: {}, does not match pattern: {}Úno_fractionr#   ©r   r   )Ú_RFC3339_NANOSÚmatchÚ
ValueErrorr6   Úpatternr   ÚstrptimeÚgroupr7   ÚlenÚintÚyearÚmonthÚdayÚhourÚminuteÚsecondÚtimezoneÚutc)r    ÚstampÚ
with_nanosÚbareÚfractionr#   Úscales   &&     r	   Úfrom_rfc3339Ú$DatetimeWithNanoseconds.from_rfc3339�   sï   € ô $×)Ñ)¨%Ó0ˆ
ØÒÜØ;×BÑBØœ>×1Ñ1óóð ô
 × Ñ ×)Ñ)Ø×Ñ˜]Ó+Ô-Aó
ˆð ×#Ñ# GÓ,ˆØÒØ‰Eàœ˜H›Õ%ˆEÜ˜“M R¨¥YÕ/ˆEÙØ�I‰IØ�J‰JØ�H‰HØ�I‰IØ�K‰KØ�K‰KØÜ×$Ñ$×(Ñ(ô	
ð 		
r   c                ó>  € V P                   e   T M)V P                  \        P                  P                  R7      pV\
        ,
          p\        VP                  4       4      pV P                  ;'       g    V P                  R,          p\        P                  ! W4R7      # )zqReturn a timestamp message.

Returns:
    (:class:`~google.protobuf.timestamp_pb2.Timestamp`): Timestamp message
r   r   )Úsecondsr#   )r   r   r   rK   rL   r   rD   Útotal_secondsr   r   r   Ú	Timestamp)r(   r$   ÚdeltarU   r#   s   &    r	   Útimestamp_pbÚ$DatetimeWithNanoseconds.timestamp_pb¹   s€   € ð �{‰{Ò&ñ à—‘¤X×%6Ñ%6×%:Ñ%:�Ó;ð 	ð
 ”zÕ!ˆÜ�e×)Ñ)Ó+Ó,ˆØ× Ñ ×;Ð; D×$4Ñ$4°tÕ$;ˆÜ×&Ò&¨wÔDÐDr   c                ó,  € \        VP                  R,          4      p\        V4      pV ! VP                  VP                  VP
                  VP                  VP                  VP                  VP                  \        P                  P                  R7      # )zöParse RFC3339-compliant timestamp, preserving nanoseconds.

Args:
    stamp (:class:`~google.protobuf.timestamp_pb2.Timestamp`): timestamp message

Returns:
    :class:`DatetimeWithNanoseconds`:
        an instance matching the timestamp message
g    €„.Ar<   )rD   rU   r
   rE   rF   rG   rH   rI   rJ   r#   r   rK   rL   )r    rM   r   rO   s   &&  r	   Úfrom_timestamp_pbÚ)DatetimeWithNanoseconds.from_timestamp_pbÉ   sn   € ô ˜5Ÿ=™=¨3Õ.Ó/ˆÜ! ,Ó/ˆÙØ�I‰IØ�J‰JØ�H‰HØ�I‰IØ�K‰KØ�K‰KØ—{‘{Ü×$Ñ$×(Ñ(ô	
ð 		
r   © )r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r   r   Úpropertyr   r8   ÚclassmethodrR   rY   r\   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r-   Ú__classdict__s   @@r	   r   r   J   sj   ù‡ € ñð
 !€Iòõ ðD ñ;ó ð;ò	Kð ñ&
ó ð&
òPEð  ñ
ó ÷
ð 
r   r   )T)rc   r   ÚreÚgoogle.protobufr   ÚfromtimestamprK   rL   r   r   r7   ÚcompileÚVERBOSEr=   r
   r   r   r^   r   r	   Ú<module>rp      s|   ðñ #ã Û 	å )à×Ñ×,Ñ,¨Q°×0AÑ0A×0EÑ0EÓF€
à)€Ø*Ð à—’ð	ð ‡J�Jó€ò
?ô+ô&U
˜h×/Ñ/ö U
r   