+
    ~jJ                         ^ RI t ^ RIt]P                  ! R4      t]P                  ! R4      t]P                  ! R4      tR R lt]! 4       sR R ltR	 t	R
 t
R R ltR R ltR R ltR tR R ltR tR tR# )    Nz^[a-zA-Z_:][a-zA-Z0-9_:]*$z^[a-zA-Z_][a-zA-Z0-9_]*$z^__.*$c                $    V ^8  d   QhR\         /#    returnbool)formats   "q/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/prometheus_client/validation.py__annotate__r   	   s     f f f    c                 d    \         P                  P                  RR4      P                  4       R9   # )z2Retrieve name validation setting from environment.!PROMETHEUS_LEGACY_NAME_VALIDATIONFalse)true1t)osenvirongetlower r   r
   _init_legacy_validationr   	   s'    ::>>=wGMMOSeeer   c                $    V ^8  d   QhR\         /# r   r   )r	   s   "r
   r   r      s      t r   c                     \         # )z;Return the current status of the legacy validation setting._legacy_validationr   r   r
   get_legacy_validationr      s    r   c                 
    Rs R# )zEDisable legacy name validation, instead allowing all UTF8 characters.FNr   r   r   r
   disable_legacy_validationr      s
     r   c                 
    Rs R# )zFEnable legacy name validation instead of allowing all UTF8 characters.TNr   r   r   r
   enable_legacy_validationr!      s
     r   c                (    V ^8  d   QhR\         RR/# )r   namer   Nstr)r	   s   "r
   r   r   "   s     8 8 8 8r   c                   V '       g   \        R4      h\        '       d.   \        P                  V 4      '       g   \        RV ,           4      h V P	                  R4       R#   \
         d    \        RT ,           4      hi ; i)zRaises ValueError if the provided name is not a valid metric name.

This check uses the global legacy validation setting to determine the validation scheme.
zmetric name cannot be emptyzinvalid metric name utf-8N)
ValueErrorr   METRIC_NAME_REmatchencodeUnicodeDecodeErrorr#   s   &r
   _validate_metric_namer.   "   sl    
 677##D))3d:;;8G 8/$6778s   A! !A?c                0    V ^8  d   QhR\         R\        /# )r   r#   r   r%   r   )r	   s   "r
   r   r   2   s     2 2s 2t 2r   c                T    \        V 4      ^ 8X  d   R# \        P                  V 4      RJ# )zRReturns true if the provided metric name conforms to the legacy validation scheme.FN)lenr)   r*   r-   s   &r
   _is_valid_legacy_metric_namer3   2   s&    
4yA~%T11r   c                (    V ^8  d   QhR\         RR/# )r   tokr   Nr$   )r	   s   "r
   r   r   9   s     < <3 <4 <r   c                f   V '       g   \        RV ,           4      hV ^ ,          R8H  ;'       d    V R,          R8H  pV'       d   \        '       d0   \        P                  V 4      '       g   \        RV ,           4      hR#  V P	                  R4       R#   \
         d    \        RT ,           4      hi ; i)zYRaises ValueError if a parsed label name token is invalid. 

UTF-8 names must be quoted.
zinvalid label name token "Nr'   )r(   r   METRIC_LABEL_NAME_REr*   r+   r,   )r5   quoteds   & r
   !_validate_metric_label_name_tokenr;   9   s    
 4s:;;Vs]--s2w#~F''#))#..83>??<

7 <4s:;;<s   ?B B0c                   \        4       '       d]   \        P                  V 4      '       g   \        RV ,           4      h\        P                  V 4      '       d   \        RV ,           4      hR#  V P                  R4       \        P                  T 4      '       d   \        RT ,           4      hR#   \         d    \        RT ,           4      hi ; i)zRaises ValueError if the provided name is not a valid label name.

This check uses the global legacy validation setting to determine the validation scheme.
zInvalid label metric name: zReserved label metric name: r'   N)r   r9   r*   r(   RESERVED_METRIC_LABEL_NAME_REr+   r,   ls   &r
   _validate_labelnamer@   K   s    
 #))!,,:Q>??(..q11;a?@@ 2	@HHW )..q11;a?@@ 2 " 	@:Q>??	@s   .B. .Cc                0    V ^8  d   QhR\         R\        /# )r   r?   r   r0   )r	   s   "r
   r   r   ^   s     : :# :$ :r   c                    \        V 4      ^ 8X  d   R# \        P                  V 4      f   R# \        P                  V 4      RJ # )zQReturns true if the provided label name conforms to the legacy validation scheme.FN)r2   r9   r*   r=   r>   s   &r
   _is_valid_legacy_labelnamerC   ^   s:    
1v{!!!$,(..q1T99r   c                    \        V4      pV F0  p\        V4       W P                  9   g   K   \        RV,           4      h	  V# )zRaises ValueError if any of the provided names is not a valid label name.

This check uses the global legacy validation setting to determine the validation scheme.
z Reserved label methe fric name: )tupler@   _reserved_labelnamesr(   )cls
labelnamesr?   s   && r
   _validate_labelnamesrI   g   sE    
 z"JA(((?!CDD  r   c                    ^ pV P                  4        F4  w  r#\        V4       V\        V4      ,          pV\        V4      ,          pK6  	  V^8  d   \        R4      hR# )z-Raises ValueError if the exemplar is invalid.zDExemplar labels have %d UTF-8 characters, exceeding the limit of 128N)itemsr@   r2   r(   )exemplarruneskvs   &   r
   _validate_exemplarrP   t   sV    E AQQ ! s{_`` r   )r   recompiler)   r9   r=   r   r   r   r   r!   r.   r3   r;   r@   rC   rI   rP   r   r   r
   <module>rS      s~    	 	9:zz"=>  "

9 5 f
 -. 
8 2<$A&:
ar   