Ë
    ¶�/j©#  ã                   ó|  — d Z ddlmZmZmZmZ ddlZddlZddl	Zddl
ZddlZddlZ G d„ dej                  j                  «      Z	 	 	 	 ddej                   j"                  ez  dedej(                  j*                  ez  d	ej,                  j.                  ez  d
ee   dej                   j0                  dz  dej                   j"                  dz  dedej                   j"                  dz  defd„Zdej                   j"                  ez  dedej(                  j*                  ez  d	ej,                  j.                  ez  d
edefd„Z	 ddej                   j"                  ez  dedeej8                  j:                     dej                   j0                  dz  def
d„Zdej                   j"                  ez  dededefd„Zy)z)DNS RRsets (an RRset is a named rdataset)é    )ÚAnyÚ
CollectionÚDictÚcastNc                   ó„  ‡ — e Zd ZdZddgZej                  j                  dfdej                  j                  dej                  j                  dej                  j                  dej                  j                  dej                  j                  dz  f
ˆ fd„Zˆ fd	„Zd
„ Zd„ Zˆ fd„Zdededefˆ fd„Z	 ddej                  j                  dej                  j                  dej                  j                  dej                  j                  dej                  j                  dz  defˆ fd„Z	 	 ddej                  j                  dz  dedeeef   defˆ fd„Z	 	 ddedej                  j2                  dz  dej                  j                  dz  deeef   def
ˆ fd„Zdej8                  j:                  fd„Zˆ xZS )ÚRRseta6  A DNS RRset (named rdataset).

    RRset inherits from Rdataset, and RRsets can be treated as
    Rdatasets in most cases.  There are, however, a few notable
    exceptions.  RRsets have different to_wire() and to_text() method
    arguments, reflecting the fact that RRsets always have an owner
    name.
    ÚnameÚdeletingNÚrdclassÚrdtypeÚcoversc                 óD   •— t         ‰| �  |||«       || _        || _        y)zCreate a new RRset.N)ÚsuperÚ__init__r	   r
   ©Úselfr	   r   r   r   r
   Ú	__class__s         €úKC:\xampp\htdocs\tradingbinance\backend\.venv\Lib\site-packages\dns/rrset.pyr   zRRset.__init__*   s$   ø€ ô 	‰Ñ˜ &¨&Ô1ØˆŒ	Ø ˆ�ó    c                 ó„   •— t        t        t        ‰| �  «       «      }| j                  |_        | j
                  |_        |S ©N)r   r   r   Ú_cloner	   r
   )r   Úobjr   s     €r   r   zRRset._clone8   s1   ø€ Ü”5œ%™'™.Ó*Ó+ˆØ—9‘9ˆŒØ—}‘}ˆŒØˆ
r   c                 ó  — | j                   dk(  rd}n/dt        j                  j                  | j                   «      z   dz   }| j                  �-dt        j
                  j                  | j                  «      z   }nd}dt        | j                  «      z   dz   t        j
                  j                  | j                  «      z   dz   t        j                  j                  | j                  «      z   |z   |z   dz   | j                  «       z   d	z   S )
Nr   Ú Ú(Ú)z delete=z<DNS Ú z RRset: Ú>)r   ÚdnsÚ	rdatatypeÚto_textr
   Ú
rdataclassÚstrr	   r   r   Ú_rdata_repr)r   ÚctextÚdtexts      r   Ú__repr__zRRset.__repr__>   s   € Ø�;‰;˜!ÒØ‰Eàœ#Ÿ-™-×/Ñ/°·±Ó<Ñ<¸sÑBˆEØ�=‰=Ð$Ø¤§¡×!7Ñ!7¸¿¹Ó!FÑF‰EàˆEàÜ�$—)‘)‹nñàñô �n‰n×$Ñ$ T§\¡\Ó2ñ3ð ñ	ô
 �m‰m×#Ñ# D§K¡KÓ0ñ1ð ñð ñð ñð ×ÑÓ ñ	!ð ñ
ð	
r   c                 ó"   — | j                  «       S r   )r"   ©r   s    r   Ú__str__zRRset.__str__U   s   € Ø�|‰|‹~Ðr   c                 óÀ   •— t        |t        «      r| j                  |j                  k7  r&yt        |t        j                  j
                  «      syt        ‰| �  |«      S )NF)Ú
isinstancer   r	   r    ÚrdatasetÚRdatasetr   Ú__eq__)r   Úotherr   s     €r   r0   zRRset.__eq__X   sF   ø€ Ü�eœUÔ#Ø�y‰y˜EŸJ™JÒ&ØÜ˜E¤3§<¡<×#8Ñ#8Ô9ØÜ‰w‰~˜eÓ$Ð$r   ÚargsÚkwargsÚreturnc                 ó”   •— t        |d   t        j                  j                  «      r | j                  |i |¤ŽS t        ‰| �  |i |¤ŽS )aÐ  Does this rrset match the specified attributes?

        Behaves as :py:func:`full_match()` if the first argument is a
        ``dns.name.Name``, and as :py:func:`dns.rdataset.Rdataset.match()`
        otherwise.

        (This behavior fixes a design mistake where the signature of this
        method became incompatible with that of its superclass.  The fix
        makes RRsets matchable as Rdatasets while preserving backwards
        compatibility.)
        r   )r-   r    r	   ÚNameÚ
full_matchr   Úmatch)r   r2   r3   r   s      €r   r8   zRRset.match`   sE   ø€ ô �d˜1‘gœsŸx™xŸ}™}Ô-Ø"�4—?‘? DÐ3¨FÑ3Ð3ä‘7‘= $Ð1¨&Ñ1Ð1r   c                 óh   •— t         ‰| �  |||«      sy| j                  |k7  s| j                  |k7  ryy)ztReturns ``True`` if this rrset matches the specified name, class,
        type, covers, and deletion state.
        FT)r   r8   r	   r
   r   s         €r   r7   zRRset.full_matchq   s5   ø€ ô ‰w‰}˜W f¨fÔ5ØØ�9‰9˜Ò §¡°Ò 9ØØr   ÚoriginÚ
relativizeÚkwc                 óR   •— t        ‰| �  | j                  ||| j                  fi |¤ŽS )aï  Convert the RRset into DNS zone file format.

        See ``dns.name.Name.choose_relativity`` for more information
        on how *origin* and *relativize* determine the way names
        are emitted.

        Any additional keyword arguments are passed on to the rdata
        ``to_text()`` method.

        *origin*, a ``dns.name.Name`` or ``None``, the origin for relative
        names.

        *relativize*, a ``bool``.  If ``True``, names will be relativized
        to *origin*.
        )r   r"   r	   r
   )r   r:   r;   r<   r   s       €r   r"   zRRset.to_text„   s/   ø€ ô, ‰w‰Ø�I‰I�v˜z¨4¯=©=ñ
Ø<>ñ
ð 	
r   ÚfileÚcompressc                 óT   •— t        ‰| �  | j                  |||| j                  fi |¤ŽS )zÖConvert the RRset to wire format.

        All keyword arguments are passed to ``dns.rdataset.to_wire()``; see
        that function for details.

        Returns an ``int``, the number of records emitted.
        )r   Úto_wirer	   r
   )r   r>   r?   r:   r<   r   s        €r   rA   zRRset.to_wirež   s1   ø€ ô ‰w‰Ø�I‰I�t˜X v¨t¯}©}ñ
Ø@Bñ
ð 	
r   c                 óh   — t         j                  j                  | j                  t	        | «      «      S )zYConvert an RRset into an Rdataset.

        Returns a ``dns.rdataset.Rdataset``.
        )r    r.   Úfrom_rdata_listÚttlÚlistr*   s    r   Úto_rdatasetzRRset.to_rdataset³   s#   € ô
 �|‰|×+Ñ+¨D¯H©H´d¸4³jÓAÐAr   r   )NT)NN) Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r    r!   ÚNONEr	   r6   r#   Ú
RdataClassÚ	RdataTyper   r   r(   r+   r0   r   Úboolr8   r7   r   r$   r"   ÚCompressTypeÚintrA   r.   r/   rF   Ú__classcell__)r   s   @r   r   r      sø  ø„ ñð ˜Ð$€Ið +.¯-©-×*<Ñ*<Ø59ñ!à�h‰h�m‰mð!ð —‘×*Ñ*ð!ð —‘×'Ñ'ð	!ð
 —‘×'Ñ'ð!ð —.‘.×+Ñ+¨dÑ2õ!ôò
ò.ô%ð2˜3ð 2¨#ð 2°$õ 2ð. 6:ñà�h‰h�m‰mðð —‘×*Ñ*ðð —‘×'Ñ'ð	ð
 —‘×'Ñ'ðð —.‘.×+Ñ+¨dÑ2ðð 
õð* (,Øñ
à—‘—‘ Ñ$ð
ð ð
ð �3˜�8‰nð	
ð
 
õ
ð: 26Ø'+ñ	
àð
ð —(‘(×'Ñ'¨$Ñ.ð
ð —‘—‘ Ñ$ð	
ð
 �3˜�8‰nð
ð 
õ
ð*B˜SŸ\™\×2Ñ2÷ Br   r   r	   rD   r   r   Útext_rdatasÚ
idna_codecr:   r;   Úrelativize_tor4   c	           
      óì  — t        | t        «      r"t        j                  j	                  | d|¬«      } t        j
                  j                  j                  |«      }t        j                  j                  j                  |«      }t        | ||«      }	|	j                  |«       |D ]L  }
t        j                  j	                  |	j                  |	j                  |
||||«      }|	j                  |«       ŒN |	S )ay  Create an RRset with the specified name, TTL, class, and type, and with
    the specified list of rdatas in text format.

    *idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA
    encoder/decoder to use; if ``None``, the default IDNA 2003
    encoder/decoder is used.

    *origin*, a ``dns.name.Name`` (or ``None``), the
    origin to use for relative names.

    *relativize*, a ``bool``.  If true, name will be relativized.

    *relativize_to*, a ``dns.name.Name`` (or ``None``), the origin to use
    when relativizing names.  If not set, the *origin* value will be used.

    Returns a ``dns.rrset.RRset`` object.
    N©rT   )r-   r$   r    r	   Ú	from_textr#   rM   Úmaker!   rN   r   Ú
update_ttlÚrdatar   r   Úadd)r	   rD   r   r   rS   rT   r:   r;   rU   ÚrÚtÚrds               r   Úfrom_text_listr`   »   sÀ   € ô: �$œÔÜ�x‰x×!Ñ! $¨¸Ð!ÓDˆÜ�n‰n×'Ñ'×,Ñ,¨WÓ5€GÜ�]‰]×$Ñ$×)Ñ)¨&Ó1€FÜˆd�G˜VÓ$€AØ‡L�L�ÔÛˆÜ�Y‰Y× Ñ Ø�I‰I�q—x‘x  F¨J¸Àzó
ˆð 	
�‰ˆb�	ð	 ð
 €Hr   c           
      óJ   — t        | |||t        t        t           |«      «      S )zŸCreate an RRset with the specified name, TTL, class, and type and with
    the specified rdatas in text format.

    Returns a ``dns.rrset.RRset`` object.
    )r`   r   r   r$   )r	   rD   r   r   rS   s        r   rX   rX   æ   s'   € ô Øˆc�7˜F¤D¬´C©¸+Ó$Fóð r   Úrdatasc                 ó@  — t        | t        «      r"t        j                  j	                  | d|¬«      } t        |«      dk(  rt        d«      ‚d}|D ]G  }|€2t        | |j                  |j                  «      }|j                  |«       |j                  |«       ŒI |€J ‚|S )a/  Create an RRset with the specified name and TTL, and with
    the specified list of rdata objects.

    *idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA
    encoder/decoder to use; if ``None``, the default IDNA 2003
    encoder/decoder is used.

    Returns a ``dns.rrset.RRset`` object.

    NrW   r   zrdata list must not be empty)r-   r$   r    r	   rX   ÚlenÚ
ValueErrorr   r   r   rZ   r\   )r	   rD   rb   rT   r]   r_   s         r   rC   rC   ø   s“   € ô" �$œÔÜ�x‰x×!Ñ! $¨¸Ð!ÓDˆä
ˆ6ƒ{�aÒÜÐ7Ó8Ð8Ø€AÛˆØˆ9Ü�d˜BŸJ™J¨¯	©	Ó2ˆAØ�L‰L˜ÔØ	�‰ˆb�	ð	 ð
 ˆ=Ðˆ=Ø€Hr   c                 ón   — t        | |t        t        t        j                  j
                     |«      «      S )zŠCreate an RRset with the specified name and TTL, and with
    the specified rdata objects.

    Returns a ``dns.rrset.RRset`` object.
    )rC   r   r   r    r[   ÚRdata)r	   rD   rb   s      r   Ú
from_rdatarh     s'   € ô ˜4 ¤d¬:´c·i±i·o±oÑ+FÈÓ&OÓPÐPr   )NNTNr   ) rJ   Útypingr   r   r   r   Údns.namer    Ú	dns.rdataÚdns.rdataclassÚdns.rdatasetÚdns.rdatatypeÚdns.rendererr.   r/   r   r	   r6   r$   rQ   r#   rM   r!   rN   Ú	IDNACodecrO   r`   rX   r[   rg   rC   rh   © r   r   Ú<module>rr      s  ðñ$ 0ç .Ó .ã Û Û Û Û Û ôZBˆC�L‰L×!Ñ!ô ZBðF -1Ø#'ØØ*.ñ(Ø
�(‰(�-‰-˜#Ñ
ð(à	ð(ð �^‰^×&Ñ&¨Ñ,ð(ð �M‰M×#Ñ# cÑ)ð	(ð
 ˜C‘ð(ð —‘×"Ñ" TÑ)ð(ð �H‰H�M‰M˜DÑ ð(ð ð(ð —8‘8—=‘= 4Ñ'ð(ð ó(ðVØ
�(‰(�-‰-˜#Ñ
ðà	ðð �^‰^×&Ñ&¨Ñ,ðð �M‰M×#Ñ# cÑ)ð	ð
 ðð óð, -1ñ	Ø
�(‰(�-‰-˜#Ñ
ðà	ðð �s—y‘y—‘Ñ'ðð —‘×"Ñ" TÑ)ð	ð
 óð@Q�S—X‘X—]‘] SÑ(ð Q¨sð Q¸Sð QÀUô Qr   