§
   óA:XÌƒÝ½ã                   óŽ   — d Z ddlmZ g d¢d„ ej        D ¦   «         ddgz   dœZdej        iZdd
„Zd„ Zdd„Z	d„ Z
d„ Zdd„Zd„ Zd	S )uì  The settings of the genre widgets in the widget manager (docs/plan/genre-browser/030). Pure: no Kodi.

Every option of a row type is defined here once, with its choices and its default (the defaults come from the headless
tests, docs/plan/genre-browser/900-decisions.md). The skin string `mil.<sec>.<n>.opts` holds only what the user changed
('key=value,key=value'); the code never writes a default into it.

The quality thresholds of the listing (VÃ½pis) are the global setting Kvalita nÃ¡vrhÅ¯'s (wcs/quality/settings.py): its
values are the `base` of these options, so an option the user did not touch follows the global setting and one they
changed is that genre page's own (Standa 2026-10-29: the genre page never changes the global setting).
é    )Úsettings))Ú	w_libraryiÔŠ  ©g        ç      à?ç      ð?g      ø?g       @r   )Ú	w_watchediÕŠ  r   r   )Úw_likeiÖŠ  r   r   )Ú	w_dislikei×Š  r   r   )Ú	thresholdiØŠ  )gš™™™™™¹?çš™™™™™É?g333333Ó?gš™™™™™Ù?r   g333333ã?r   )Útv_onlyiÙŠ  )FTFc                 óJ   — g | ] }|ft           j        |         d d…         z   ‘Œ!S )é   N)Úquality_settingsÚSETTINGS)Ú.0Úkeys     ú`/Users/chudy/Library/Application Support/Kodi/addons/plugin.video.milionar/wcs/genres/options.pyú
<listcomp>r      s1   € ÐcÐcÐcÀ��Õ)Ô2°3Ô7¸¸¸Ô;Ñ;ÐcÐcÐcó    )ÚstariàŠ  )g      @ç      @g       @g      !@r   )Úrating_votesiáŠ  )é
   é2   éd   i,  iè  r   )Ú	fy_genresÚgn_listr   Nc                 óÆ   ‡— d„ t                                | d¦  «        D ¦   «         }|                     ˆfd„t                               | d¦  «        D ¦   «         ¦  «         |S )zhThe options a widget has without changes; `base` the global values ({key: value}) of its GLOBAL options.c                 ó   — i | ]
\  }}}}||“ŒS © r!   )r   r   Ú_labelÚ_choicesÚdefaults        r   ú
<dictcomp>zdefaults.<locals>.<dictcomp>$   s#   € Ð
SÐ
SÐ
SÑ:˜C ¨°7ˆ3�Ð
SÐ
SÐ
Sr   r!   c                 ó.   •— i | ]}‰¯|‰v ¯|‰|         “ŒS r!   r!   )r   r   Úbases     €r   r%   zdefaults.<locals>.<dictcomp>%   s*   ø€ ÐVÐVÐV 3ÀÐVÈ#ÐQUÈ+È+��T˜#”YÈ+È+È+r   )ÚOPTIONSÚgetÚupdateÚGLOBAL)Úrowr'   Úouts    ` r   Údefaultsr.   "   s^   ø€ à
SÐ
S½g¿kºkÈ#ÈrÑ>RÔ>RÐ
SÑ
SÔ
S€CØ‡J‚JÐVÐVÐVÐV­&¯*ª*°S¸"Ñ*=Ô*=ÐVÑVÔVÑWÔWÐWØ€Jr   c                 óÈ   — t          |t          ¦  «        r| dv rdS | dv rdS t          | ¦  «        ‚t          |t          ¦  «        rt          | ¦  «        S t	          | ¦  «        S )N)Ú1ÚtrueÚTrueT)Ú0ÚfalseÚFalseF)Ú
isinstanceÚboolÚ
ValueErrorÚintÚfloat)Úrawr$   s     r   Ú_parser<   )   sk   € Ý�'�4Ñ Ô ð ØÐ'Ð'Ð'Ø�4ØÐ)Ð)Ð)Ø�5Ý˜‰oŒoÐÝ�'�3ÑÔð Ý�3‰xŒxˆÝ�‰:Œ:Ðr   c                 óê   — t          | |¦  «        }|pd                     d¦  «        D ]J}|                     d¦  «        \  }}}||v r+	 t          |||         ¦  «        ||<   Œ:# t          $ r Y ŒFw xY wŒK|S )zˆThe options of a widget: its defaults (the global ones under `base`) with the stored changes (a broken or
    unknown value is ignored).Ú ú,ú=)r.   ÚsplitÚ	partitionr<   r8   )r,   Útextr'   ÚresultÚpartr   Ú_sepr;   s           r   ÚvaluesrG   5   sž   € õ �c˜4Ñ Ô €FØ�˜×"Ò" 3Ñ'Ô'ð ð ˆØŸš¨Ñ,Ô,‰ˆˆT�3Ø�&ˆ=ˆ=ðÝ$ S¨&°¬+Ñ6Ô6��s‘�øÝð ð ð Ø�ðøøøð ð
 €Ms   ÁA"Á"
A/Á.A/c                 óž   — t          | t          ¦  «        r| rdndS t          | t          ¦  «        rt          | ¦  «        nt	          | ¦  «        S )Nr0   r3   )r6   r7   r:   ÚreprÚstr©Úvalues    r   Ú_textrM   C   sH   € Ý�%�ÑÔð %ØÐ$ˆsˆs Ð$Ý$ U­EÑ2Ô2ÐB�4�‰;Œ;ˆ;½¸E¹
¼
ÐBr   c                 ó”   ‡— d„ |pd                      d¦  «        D ¦   «         Šˆfd„t                               | d¦  «        D ¦   «         S )zAThe keys the user set on this widget (stored in its skin string).c                 óD   — h | ]}|                      d ¦  «        d         ’ŒS )r@   r   )rB   )r   rE   s     r   ú	<setcomp>zchanged.<locals>.<setcomp>K   s)   € ÐIÐIÐI¨ˆd�nŠn˜SÑ!Ô! !Ô$ÐIÐIÐIr   r>   r?   c                 ó&   •— h | ]\  }}}}|‰v ¯|’ŒS r!   r!   )r   r   Ú_lÚ_cÚ_dÚstoreds        €r   rP   zchanged.<locals>.<setcomp>L   s&   ø€ ÐMÐMÐM‘O�C˜˜R ¸sÀf¸}¸}ˆC¸}¸}¸}r   r!   )rA   r(   r)   )r,   rC   rU   s     @r   ÚchangedrV   I   sP   ø€ àIÐI°$°*¸"×1CÒ1CÀCÑ1HÔ1HÐIÑIÔI€FØMÐMÐMÐM¥w§{¢{°3¸Ñ';Ô';ÐMÑMÔMÐMr   c                 óœ   ‡‡— t          | ‰¦  «        Šd                     ˆˆfd„t                               | d¦  «        D ¦   «         ¦  «        S )u¶   'key=value,â€¦' of the options that differ from their defaults (the global ones under `base`): choosing the
    global value again removes the widget's own ('' when nothing differs).r?   c              3   ó    •K  — | ]H\  }}}}|‰v ¯‰|         ‰|         k    ¯d                       |t          ‰|         ¦  «        ¦  «        V — ŒIdS )z{}={}N)ÚformatrM   )r   r   rR   rS   rT   r'   Úchosens        €€r   ú	<genexpr>zencode.<locals>.<genexpr>S   so   øè è € ð Cð CÁÀÀRÈÈRØ˜f�}�}¨°¬¸¸S¼	Ò)AÐ)Að —N’N 3­¨f°S¬kÑ(:Ô(:Ñ;Ô;Ø)AÐ)AÐ)AÐ)AðCð Cr   r!   )r.   Újoinr(   r)   )r,   rZ   r'   s    ``r   Úencoder]   O   ss   øø€ õ �C˜ÑÔ€DØ�8Š8ð Cð Cð Cð Cð CÕSZ×S^ÒS^Ð_bÐdfÑSgÔSgð Cñ Cô Cñ Cô Cð Cr   c                 óT   — t          | t          ¦  «        rd| z  S t          | ¦  «        S )zŽA value as the manager shows it: 7.5, 6.0, 20 (one decimal for a rating, like the addon settings);
    Zapnuto/Vypnuto is the caller's (bool).z%.1f)r6   r:   rJ   rK   s    r   Úshowr_   W   s,   € õ �%�ÑÔð Ø˜‰~ÐÝˆu‰:Œ:Ðr   )N)Ú__doc__Úwcs.qualityr   r   Ú
THRESHOLDSr(   r+   r.   r<   rG   rM   rV   r]   r_   r!   r   r   ú<module>rc      s  ðð	ð 	ð 5Ð 4Ð 4Ð 4Ð 4Ð 4ðð ð ð dÐcÐGWÔGbÐcÑcÔcØ2Ø>ðgñ ðð €ð  Ð%Ô0Ð	1€ðð ð ð ð	ð 	ð 	ðð ð ð ðCð Cð CðNð Nð NðCð Cð Cð Cðð ð ð ð r   