ó
    0/¡j©#  ã                   óˆ  • S r SSKJrJrJrJr  SSKrSSKrSSK	rSSK
rSSKrSSKr " S S\R                  R                  5      r    SS\R                   R"                  \-  S\S\R(                  R*                  \-  S	\R,                  R.                  \-  S
\\   S\R                   R0                  S-  S\R                   R"                  S-  S\S\R                   R"                  S-  S\4S jjrS\R                   R"                  \-  S\S\R(                  R*                  \-  S	\R,                  R.                  \-  S
\S\4S jr SS\R                   R"                  \-  S\S\\R8                  R:                     S\R                   R0                  S-  S\4
S jjrS\R                   R"                  \-  S\S\S\4S jrg)z)DNS RRsets (an RRset is a named rdataset)é    )ÚAnyÚ
CollectionÚDictÚcastNc                   ó®  ^ • \ rS rSrSrSS/r\R                  R                  S4S\R                  R                  S\R                  R                  S\R                  R                  S\R                  R                  S\R                  R                  S-  4
U 4S	 jjjrU 4S
 jrS rS rU 4S jrS\S\S\4U 4S jjr SS\R                  R                  S\R                  R                  S\R                  R                  S\R                  R                  S\R                  R                  S-  S\4U 4S jjjr  SS\R                  R                  S-  S\S\\\4   S\4U 4S jjjr  SS\S\R                  R4                  S-  S\R                  R                  S-  S\\\4   S\4
U 4S jjjrS\R:                  R<                  4S jrSr U =r!$ )ÚRRseté   a  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                 ó>   >• [         TU ]  X#U5        Xl        XPl        g)zCreate a new RRset.N)ÚsuperÚ__init__r
   r   ©Úselfr
   r   r   r   r   Ú	__class__s         €Úb/var/www/html/health-monitoring.indevconsultancy.in/venv/lib/python3.13/site-packages/dns/rrset.pyr   ÚRRset.__init__*   s   ø€ ô 	‰Ñ˜¨&Ô1ØŒ	Ø �ó    c                 ó„   >• [        [        [        TU ]  5       5      nU R                  Ul        U R
                  Ul        U$ ©N)r   r   r   Ú_cloner
   r   )r   Úobjr   s     €r   r   ÚRRset._clone8   s1   ø€ Ü”5œ%™'™.Ó*Ó+ˆØ—9‘9ˆŒØ—}‘}ˆŒØˆ
r   c                 ó  • U R                   S:X  a  SnO/S[        R                  R                  U R                   5      -   S-   nU R                  b-  S[        R
                  R                  U R                  5      -   nOSnS[        U R                  5      -   S-   [        R
                  R                  U R                  5      -   S-   [        R                  R                  U R                  5      -   U-   U-   S-   U R                  5       -   S	-   $ )
Nr   Ú Ú(Ú)z delete=z<DNS Ú z RRset: Ú>)r   ÚdnsÚ	rdatatypeÚto_textr   Ú
rdataclassÚstrr
   r   r   Ú_rdata_repr)r   ÚctextÚdtexts      r   Ú__repr__Ú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                 ó"   • U R                  5       $ r   )r%   ©r   s    r   Ú__str__ÚRRset.__str__U   s   € Ø�|‰|‹~Ðr   c                 óØ   >• [        U[        5      (       a  U R                  UR                  :w  a  gO*[        U[        R                  R
                  5      (       d  g[        TU ]  U5      $ )NF)Ú
isinstancer   r
   r#   ÚrdatasetÚRdatasetr   Ú__eq__)r   Úotherr   s     €r   r5   ÚRRset.__eq__X   sQ   ø€ Ü�eœU×#Ñ#Ø�y‰y˜EŸJ™JÓ&Øð 'ä˜E¤3§<¡<×#8Ñ#8×9Ñ9ØÜ‰w‰~˜eÓ$Ð$r   ÚargsÚkwargsÚreturnc                 ó    >• [        US   [        R                  R                  5      (       a  U R                  " U0 UD6$ [
        TU ]  " U0 UD6$ )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   )r2   r#   r
   ÚNameÚ
full_matchr   Úmatch)r   r8   r9   r   s      €r   r>   ÚRRset.match`   sF   ø€ ô �d˜1‘gœsŸx™xŸ}™}×-Ñ-Ø—?’? DÐ3¨FÑ3Ð3ä‘7’= $Ð1¨&Ñ1Ð1r   c                 ót   >• [         TU ]  X#U5      (       d  gU R                  U:w  d  U R                  U:w  a  gg)zdReturns ``True`` if this rrset matches the specified name, class,
type, covers, and deletion state.
FT)r   r>   r
   r   r   s         €r   r=   ÚRRset.full_matchq   s6   ø€ ô ‰w‰}˜W¨f×5Ñ5ØØ�9‰9˜Ó §¡°Ó 9ØØr   ÚoriginÚ
relativizeÚkwc                 óR   >• [         TU ]  " U R                  XU R                  40 UD6$ )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   rB   rC   rD   r   s       €r   r%   ÚRRset.to_text„   s-   ø€ ô, ‰wŠØ�I‰I�v¨4¯=©=ñ
Ø<>ñ
ð 	
r   ÚfileÚcompressc                 óR   >• [         TU ]  " U R                  XX0R                  40 UD6$ )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   rG   rH   rB   rD   r   s        €r   rJ   ÚRRset.to_wirež   s-   ø€ ô ‰wŠØ�I‰I�t v¯}©}ñ
Ø@Bñ
ð 	
r   c                 óh   • [         R                  R                  U R                  [	        U 5      5      $ )zIConvert an RRset into an Rdataset.

Returns a ``dns.rdataset.Rdataset``.
)r#   r3   Úfrom_rdata_listÚttlÚlistr.   s    r   Úto_rdatasetÚRRset.to_rdataset³   s#   € ô
 �|‰|×+Ñ+¨D¯H©H´d¸4³jÓAÐAr   )r   r
   r   )NT)NN)"Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r#   r$   ÚNONEr
   r<   r&   Ú
RdataClassÚ	RdataTyper   r   r+   r/   r5   r   Úboolr>   r=   r   r'   r%   ÚCompressTypeÚintrJ   r3   r4   rP   Ú__static_attributes__Ú__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ò Br   r   r
   rN   r   r   Útext_rdatasÚ
idna_codecrB   rC   Úrelativize_tor:   c	           
      óî  • [        U [        5      (       a  [        R                  R	                  U SUS9n [        R
                  R                  R                  U5      n[        R                  R                  R                  U5      n[        XU5      n	U	R                  U5        U HK  n
[        R                  R	                  U	R                  U	R                  X¦XxU5      nU	R                  U5        MM     U	$ )aM  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©ra   )r2   r'   r#   r
   Ú	from_textr&   rY   Úmaker$   rZ   r   Ú
update_ttlÚrdatar   r   Úadd)r
   rN   r   r   r`   ra   rB   rC   rb   ÚrÚtÚrds               r   Úfrom_text_listrm   »   s½   € ô: �$œ×ÑÜ�x‰x×!Ñ! $¨¸Ð!ÐDˆÜ�n‰n×'Ñ'×,Ñ,¨WÓ5€GÜ�]‰]×$Ñ$×)Ñ)¨&Ó1€FÜˆd˜VÓ$€AØ‡L�L�ÔÛˆÜ�Y‰Y× Ñ Ø�I‰I�q—x‘x ¨JÀzó
ˆð 	
�‰ˆbŽ	ñ	 ð
 €Hr   c           
      óF   • [        XX#[        [        [           U5      5      $ )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.
)rm   r   r   r'   )r
   rN   r   r   r`   s        r   re   re   æ   s#   € ô Ø�7¤D¬´C©¸+Ó$Fóð r   Úrdatasc                 óL  • [        U [        5      (       a  [        R                  R	                  U SUS9n [        U5      S:X  a  [        S5      eSnU HH  nUc1  [        XR                  UR                  5      nUR                  U5        UR                  U5        MJ     Uc   eU$ )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.

Nrd   r   zrdata list must not be empty)r2   r'   r#   r
   re   ÚlenÚ
ValueErrorr   r   r   rg   ri   )r
   rN   ro   ra   rj   rl   s         r   rM   rM   ø   s”   € ô" �$œ×ÑÜ�x‰x×!Ñ! $¨¸Ð!ÐDˆä
ˆ6ƒ{�aÓÜÐ7Ó8Ð8Ø€AÛˆØ‰9Ü�dŸJ™J¨¯	©	Ó2ˆAØ�L‰L˜ÔØ	�‰ˆbŽ	ñ	 ð
 ‰=Ðˆ=Ø€Hr   c                 ól   • [        X[        [        [        R                  R
                     U5      5      $ )z~Create an RRset with the specified name and TTL, and with
the specified rdata objects.

Returns a ``dns.rrset.RRset`` object.
)rM   r   r   r#   rh   ÚRdata)r
   rN   ro   s      r   Ú
from_rdataru     s%   € ô ˜4¤d¬:´c·i±i·o±oÑ+FÈÓ&OÓPÐPr   )NNTNr   ) rV   Útypingr   r   r   r   Údns.namer#   Ú	dns.rdataÚdns.rdataclassÚdns.rdatasetÚdns.rdatatypeÚdns.rendererr3   r4   r   r
   r<   r'   r]   r&   rY   r$   rZ   Ú	IDNACodecr[   rm   re   rh   rt   rM   ru   © r   r   Ú<module>r      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   