Ë
    }D™jœ  ã                  ór   — d Z ddlmZ ddlmZ ddlmZmZmZm	Z	 ddl
mZ eeeef      Zddd„Zdd	„Zg d
¢Zy)zí
Utilities for loading Kerykeion configuration settings from Python sources.

The translation strings are now stored directly in :mod:`translation_strings`,
so the loader simply wraps those dictionaries (or any user-provided overrides).
é    )Úannotations)Údeepcopy)ÚAnyÚMappingÚOptionalÚcasté   )ÚLANGUAGE_SETTINGSNc                óÆ   — t        t        «      }| rMt        t        t        t
        f   | «      }d|v r t        t        t        t
        f   |d   «      }t        ||«      }d|iS )am  
    Resolve the configuration mapping from the provided source.

    Args:
        settings_source (Mapping | None): Optional overrides for the bundled
            language settings. When provided, keys and nested dictionaries are
            merged on top of the default values.

    Returns:
        Mapping[str, Any]: The resolved configuration dictionary.
    Úlanguage_settings)r   r
   r   r   Ústrr   Ú_deep_merge)Úsettings_sourcer   Ú	overridess      úq/var/www/html/Astrologybackend/backend/venv/lib/python3.12/site-packages/kerykeion/settings/kerykeion_settings.pyÚload_settings_mappingr      se   € ô !Ô!2Ó3ÐáÜœ¤¤c Ñ*¨OÓ<ˆ	Ø )Ñ+ÜœW¤S¬# XÑ.°	Ð:MÑ0NÓOˆIÜ'Ð(9¸9ÓEÐàÐ!2Ð3Ð3ó    c           	     ó–  — | j                  «       D ��ci c]  \  }}|t        |«      “Œ }}}|j                  «       D ]ƒ  \  }}||v rlt        ||   t        «      rYt        |t        «      rIt	        t        t        t        t        f   ||   «      t        t        t        t        f   |«      «      ||<   Œvt        |«      ||<   Œ… |S c c}}w ©N)Úitemsr   Ú
isinstancer   r   r   r   r   )Úbaser   ÚkeyÚvalueÚmergeds        r   r   r   )   s³   € ØEIÇZÁZÃ\×R±z°s¸E˜c¤8¨E£?Ñ2ÐR€FÑRØ—o‘oÓ'ò *‰
ˆˆUØ�&‰=œZ¨¨s©´WÔ=Ä*ÈUÔT[ÔB\Ü%¤d¬7´3¼°8Ñ+<¸fÀS¹kÓ&JÌDÔQXÔY\Ô^aÐYaÑQbÐdiÓLjÓkˆF�3ŠKä" 5›/ˆF�3ŠKð	*ð
 €Mùó Ss   ”C)ÚSettingsSourcer   r
   r   )r   zOptional[SettingsSource]ÚreturnúMapping[str, Any])r   r   r   r   r   zdict[str, Any])Ú__doc__Ú
__future__r   Úcopyr   Útypingr   r   r   r   Útranslation_stringsr
   r   r   r   r   Ú__all__© r   r   ú<module>r&      s@   ðñõ #å ß /Ó /å 2à˜' # s (Ñ+Ñ,€ô4ó.ò K�r   