ó
    Ãu„j÷  ã            	       ó^   • S SK JrJr  S SKJr  S SKJr  S SKJr  S\\   S\S\	S\\   4S	 jr
g
)é    )ÚIterableÚcast)ÚSegment)ÚStyle)ÚColorÚsegmentsÚbase_backgroundÚopacityÚreturnc              #   óœ  #   • [         n[        R                  n[        R                  nUR
                  n[        SU 5      nU H„  u  p‰n
U	nU	R                  b,  U" U	R                  5      nU" XÂ5      nXµ" UR                  S9-  nU	R                  b,  U" U	R                  5      nU" Xâ5      nXµ" UR                  S9-  nU" X‹5      v •  M†     g7f)aÄ  Takes an iterable of foreground Segments and blends them into the supplied
background color, yielding copies of the Segments with blended foreground and
background colors applied.

Args:
    segments: The segments in the foreground.
    base_background: The background color to blend foreground into.
    opacity: The blending factor. A value of 1.0 means output segments will
        have identical foreground and background colors to input segments.
z#Iterable[tuple[str, Style, object]]N)Úcolor)Úbgcolor)
r   r   Úfrom_rich_colorr   Ú
from_colorÚblendr   r   Ú
rich_colorr   )r   r	   r
   Ú_Segmentr   r   r   Ústyled_segmentsÚtextÚstyleÚ_Úblended_styler   Úblended_foregroundr   Úblended_backgrounds                   ÚžC:\Users\johnn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\textual/_opacity.pyÚ_apply_opacityr   	   sÊ   é € ô €HÜ×+Ñ+€OÜ×!Ñ!€JØ×!Ñ!€EÜÐ@À(ÓK€OÛ)‰ˆ�QØˆà�;‰;Ñ"Ù# E§K¡KÓ0ˆEÙ!& uÓ!6ÐØ˜ZÐ.@×.KÑ.KÑLÑLˆMà�=‰=Ñ$Ù% e§m¡mÓ4ˆGÙ!& wÓ!8ÐØ˜ZÐ0B×0MÑ0MÑNÑNˆMá�tÓ+Ô+ò *ùs   ‚C
CN)Útypingr   r   Úrich.segmentr   Ú
rich.styler   Útextual.colorr   Úfloatr   © ó    r   Ú<module>r$      sD   ðß !å  Ý å ð!,Ø�wÑð!,àð!,ð ð!,ð ˆgÑõ	!,r#   