
    /P@i                        d Z ddlZi Zded<   ded<   ded<   d	ed
<   ded<   ded<    edd      D  cg c]
  }  e|        c} Zej                         D ]
  \  ZZeee<     edd      D  cg c]  } d| z  	 c}  edd      D  cg c]
  }  e|        c} z    edd      D  cg c]  } d| z  	 c} z   Z	ej                         D ]
  \  ZZee	e<    [[de
fdZ ej                  d      Zde
defdZyc c} w c c} w c c} w c c} w )zEncoding related utilities.    Nz\t	   z\n
   z\r   z\""   z\''   z\\\          z\%03o   returnc                     t        | t              }|r|r| j                  t              S |rt        nd |rdj                  fd| D              S dj                  fd| D              S )am  Escape a bytes string for use in an text protocol buffer.

  Args:
    text: A byte string to be escaped.
    as_utf8: Specifies if result may contain non-ASCII characters.
        In Python 3 this allows unescaped non-ASCII Unicode characters.
        In Python 2 the return value will be valid UTF-8 rather than only ASCII.
  Returns:
    Escaped string (str).
  c                     | S N )xs    g/home/www/lebenam.kofcorporation.com/venv/lib/python3.12/site-packages/google/protobuf/text_encoding.py<lambda>zCEscape.<locals>.<lambda>5   s    q      c              3   <   K   | ]  }t          |           y wr   )_cescape_unicode_to_str.0cord_s     r   	<genexpr>zCEscape.<locals>.<genexpr>7   s     B*473B   c              3   <   K   | ]  }t          |           y wr   )_cescape_byte_to_strr   s     r   r   zCEscape.<locals>.<genexpr>8   s     =1%d1g.=r   )
isinstancestr	translate_cescape_chr_to_symbol_mapordjoin)textas_utf8text_is_unicoder   s      @r   CEscaper)   !   s\      tS)/>>455[$77BTBBB	==	==r   z"(\\+)x([0-9a-fA-F])(?![0-9a-fA-F])r&   c                     d }t         j                  ||       }|j                  d      j                  d      j                  d      S )zUnescape a text string with C-style escape sequences to UTF-8 bytes.

  Args:
    text: The data to parse in a str.
  Returns:
    A byte string.
  c                     t        | j                  d            dz  r&| j                  d      dz   | j                  d      z   S | j                  d      S )N   x0   r   )lengroup)ms    r   
ReplaceHexzCUnescape.<locals>.ReplaceHexG   sF     1771:WWQZ$++771:r   zutf-8unicode_escaperaw_unicode_escape)_CUNESCAPE_HEXsubencodedecode)r&   r2   results      r   	CUnescaper:   >   sB     j$/&
--
 6"#6&')r   )__doc__rer#   rangechrr   itemsbytestringr   r!   r)   compiler5   bytesr:   )is   0r   <module>rE      sb   " 	  % 1 !& 2 !& 2 !& 2 !& 2 !& 2  ,1C=9a3q69 .446 )LD&"($) 05Q|<!A<).r38AQ89/4S#?!A?@  /446 &LD&%t&&>c >4 AB)C )E )U :
 =8?s   C4,C9C>#D