Ë
    lê
jˆ  ã                  óî   — d Z ddlmZ ddlZddlZddlmZmZmZ  ej                  e
j                  dd¬«      d   «      Zej                   ej                  «       «       dd„Z e«         G d	„ d
«      Zy)a�  Multicast DNS Service Discovery for Python, v0.14-wmcbrine
    )
Copyright 2003 Paul Scott-Murphy, 2014 William McBrine

This module provides a framework for the use of DNS Service Discovery
using IP multicast.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
é    )ÚannotationsN)ÚAnyÚClassVarÚcastú.é   )Úmaxsplitc                 óŽ   — t         j                  t        j                  k(  r$t         j	                  t        j
                  «       y y )N)ÚlogÚlevelÚloggingÚNOTSETÚsetLevelÚWARN© ó    ú+/usr/libexec/warpinator/zeroconf/_logger.pyÚset_logger_level_if_unsetr   "   s'   € Ü
‡y�y”G—N‘NÒ"Ü�‰”W—\‘\Õ"ð #r   c                  ód   — e Zd ZU i Zded<   edd„«       Zedd„«       Zed	d„«       Zed
d„«       Z	y)ÚQuietLoggerz ClassVar[dict[str, int | tuple]]Ú
_seen_logsc                óÞ   — t        j                  «       }t        |d   «      }|| j                  vr || j                  |<   t        j
                  }nt        j                  } ||xs dgddiŽ y )Nr   úException occurredÚexc_infoT)Úsysr   Ústrr   r   ÚwarningÚdebug)ÚclsÚlogger_datar   Úexc_strÚloggers        r   Úlog_exception_warningz!QuietLogger.log_exception_warning-   s]   € ä—<‘<“>ˆÜ�h˜q‘kÓ"ˆØ˜#Ÿ.™.Ñ(à&.ˆC�N‰N˜7Ñ#Ü—[‘[‰Fä—Y‘YˆFÙ�Ò6Ð!5Ð 6ÐGÀ$ÓGr   c                ó¾   — d}t        j                  «       }t        |d   «      }|| j                  vr|| j                  |<   d}t	        j
                  |xs dgd|iŽ y )NFr   Tr   r   )r   r   r   r   r   r   )r   r    Úlog_exc_infor   r!   s        r   Úlog_exception_debugzQuietLogger.log_exception_debug9   sY   € àˆÜ—<‘<“>ˆÜ�h˜q‘kÓ"ˆØ˜#Ÿ.™.Ñ(à&.ˆC�N‰N˜7Ñ#ØˆLÜ�	‰	�KÒ9Ð$8Ð#9ÐRÀ\ÓRr   c                óî   — |d   }|| j                   vr d| j                   |<   t        j                  }nt        j                  }t	        t
        | j                   |   «      dz   | j                   |<    ||Ž  y )Nr   r   ©r   r   r   r   r   Úint)r   ÚargsÚmsg_strr"   s       r   Úlog_warning_oncezQuietLogger.log_warning_onceD   sa   € à�q‘'ˆØ˜#Ÿ.™.Ñ(Ø&'ˆC�N‰N˜7Ñ#Ü—[‘[‰Fä—Y‘YˆFÜ"&¤s¨C¯N©N¸7Ñ,CÓ"DÀqÑ"Hˆ�‰�wÑÙ�Šr   c                óô   — |d   }|| j                   vr d| j                   |<   t        j                  }nt        j                  }t	        t
        | j                   |   «      dz   | j                   |<    ||d|iŽ y )Nr   r   r   r(   )r   Úexcr*   r+   r"   s        r   Úlog_exception_oncezQuietLogger.log_exception_onceO   sg   € à�q‘'ˆØ˜#Ÿ.™.Ñ(Ø&'ˆC�N‰N˜7Ñ#Ü—[‘[‰Fä—Y‘YˆFÜ"&¤s¨C¯N©N¸7Ñ,CÓ"DÀqÑ"Hˆ�‰�wÑÙ�Ð#˜sÓ#r   N)r    r   ÚreturnÚNone)r*   r   r0   r1   )r.   Ú	Exceptionr*   r   r0   r1   )
Ú__name__Ú
__module__Ú__qualname__r   Ú__annotations__Úclassmethodr#   r&   r,   r/   r   r   r   r   r   *   s_   … Ø35€JÐ0Ó5àò	Hó ð	Hð òSó ðSð òó ðð ò$ó ñ$r   r   )r0   r1   )Ú__doc__Ú
__future__r   r   r   Útypingr   r   r   Ú	getLoggerr3   Úsplitr   Ú
addHandlerÚNullHandlerr   r   r   r   r   ú<module>r?      sn   ðñõ. #ã Û 
ß &Ñ &à€g×Ñ˜Ÿ™ s°Q˜Ó7¸Ñ:Ó;€Ø ‡�Ð"ˆw×"Ñ"Ó$Ô %ó#ñ
 Ô ÷.$ò .$r   