+
    ^eòjè  ã                  ó„   € R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHtHt  ! R	 R
]
4      tR# )z<Styles object, container for all objects in the styles part.)Úannotations)Úwarn)ÚWD_STYLE_TYPE)Ú	CT_Styles)ÚElementProxy)Ú	BabelFish)ÚLatentStyles)Ú	BaseStyleÚStyleFactoryc                  ó¬   a € ] tR t^tRtR V 3R lltR tR R ltR tR t	RR	 lt
R
 R ltR R ltR t]R 4       tR R ltR R ltR R ltRtV ;t# )ÚStylesz¶Provides access to the styles defined in a document.

Accessed using the :attr:`.Document.styles` property. Supports ``len()``, iteration,
and dictionary-style access by style name.
c               ó   € V ^8„  d   QhRR/# )é   Ústylesr   © )Úformats   "Ú‰/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/docx/styles/styles.pyÚ__annotate__ÚStyles.__annotate__   s   € ÷ ñ ˜yñ ó    c                	ó2   <€ \         SV `  V4       Wn        R # ©N)ÚsuperÚ__init__Ú_element)Úselfr   Ú	__class__s   &&€r   r   ÚStyles.__init__   s   ø€ Ü‰Ñ˜Ô ØŽr   c                óô   a€ \         P                  ! V4      o\        ;QJ d3    V3R lV P                  P                   4       F  '       g   K   R# 	  R# ! V3R lV P                  P                   4       4      # )z$Enables `in` operator on style name.c              3  ó@   <"  € T F  qP                   S8H  x € K  	  R # 5ir   )Úname_val)Ú.0ÚstyleÚinternal_names   & €r   Ú	<genexpr>Ú&Styles.__contains__.<locals>.<genexpr>   s   øé € ÐXÑ@W°u—>‘> ]Ö2Ó@Wùs   ƒTF)r   Úui2internalÚanyr   Ú	style_lst)r   Únamer#   s   &&@r   Ú__contains__ÚStyles.__contains__   sP   ø€ ä!×-Ò-¨dÓ3ˆß‹sÔXÀÇÁ×@WÒ@WÓX�sŒsÐXŠsÐXˆsÔXÀÇÁ×@WÒ@WÓXÓXÐXr   c               ó   € V ^8„  d   QhRR/# )r   ÚkeyÚstrr   )r   s   "r   r   r      s   € ÷ 8ñ 8˜sñ 8r   c                ó  € V P                   P                  \        P                  ! V4      4      pVe   \	        V4      # V P                   P                  V4      pVe    Rp\        V\        ^R7       \	        V4      # \        RV,          4      h)z‘Enables dictionary-style access by UI name.

Lookup by style id is deprecated, triggers a warning, and will be removed in a
near-future release.
zFstyle lookup by style_id is deprecated. Use style name as key instead.)Ú
stacklevelzno style with name '%s')	r   Úget_by_namer   r&   r
   Ú	get_by_idr   ÚUserWarningÚKeyError)r   r-   Ú	style_elmÚmsgs   &&  r   Ú__getitem__ÚStyles.__getitem__   s{   € ð —M‘M×-Ñ-¬i×.CÒ.CÀCÓ.HÓIˆ	ØÒ Ü 	Ó*Ð*à—M‘M×+Ñ+¨CÓ0ˆ	ØÒ ØZˆCÜ�”k¨aÕ0Ü 	Ó*Ð*äÐ0°3Õ6Ó7Ð7r   c                	ó<   € R  V P                   P                   4       # )c              3  ó8   "  € T F  p\        V4      x € K  	  R # 5ir   )r
   )r!   r"   s   & r   r$   Ú"Styles.__iter__.<locals>.<genexpr>2   s   é € ÐIÑ1H¨”˜U×#Ð#Ó1Hùs   ‚)r   r(   ©r   s   &r   Ú__iter__ÚStyles.__iter__1   s   € ÙI°·±×1HÒ1HÓIÐIr   c                	ó@   € \        V P                  P                  4      # r   )Úlenr   r(   r<   s   &r   Ú__len__ÚStyles.__len__4   s   € Ü�4—=‘=×*Ñ*Ó+Ð+r   c                ó¬   € \         P                  ! V4      pW@9   d   \        RV,          4      hV P                  P	                  WBV4      p\        V4      # )z¡Return a newly added style object of `style_type` and identified by `name`.

A builtin style can be defined by passing True for the optional `builtin`
argument.
z$document already contains style '%s')r   r&   Ú
ValueErrorr   Úadd_style_of_typer
   )r   r)   Ú
style_typeÚbuiltinÚ
style_namer"   s   &&&&  r   Ú	add_styleÚStyles.add_style7   sL   € ô ×*Ò*¨4Ó0ˆ
ØÔÜÐCÀdÕJÓKÐKØ—‘×/Ñ/°
ÈÓPˆÜ˜EÓ"Ð"r   c               ó   € V ^8„  d   QhRR/# )r   rF   r   r   )r   s   "r   r   r   C   s   € ÷ #ñ # -ñ #r   c                óZ   € V P                   P                  V4      pVf   R# \        V4      # )zhReturn the default style for `style_type` or |None| if no default is defined
for that type (not common).N)r   Údefault_forr
   )r   rF   r"   s   && r   ÚdefaultÚStyles.defaultC   s+   € ð —‘×)Ñ)¨*Ó5ˆØŠ=ÙÜ˜EÓ"Ð"r   c               ó    € V ^8„  d   QhRRRR/# ©r   Ústyle_idú
str | NonerF   r   r   )r   s   "r   r   r   K   s   € ÷ 5ñ 5 *ð 5¸-ñ 5r   c                óN   € Vf   V P                  V4      # V P                  W4      # )z¿Return the style of `style_type` matching `style_id`.

Returns the default for `style_type` if `style_id` is not found or is |None|, or
if the style having `style_id` is not of `style_type`.
)rN   Ú
_get_by_id)r   rR   rF   s   &&&r   r2   ÚStyles.get_by_idK   s(   € ð ÒØ—<‘< 
Ó+Ð+Ø�‰˜xÓ4Ð4r   c                ó~   € Vf   R# \        V\        4      '       d   V P                  W4      # V P                  W4      # )aJ  Return the id of the style corresponding to `style_or_name`, or |None| if
`style_or_name` is |None|.

If `style_or_name` is not a style object, the style is looked up using
`style_or_name` as a style name, raising |ValueError| if no style with that name
is defined. Raises |ValueError| if the target style is not of `style_type`.
N)Ú
isinstancer	   Ú_get_style_id_from_styleÚ_get_style_id_from_name)r   Ústyle_or_namerF   s   &&&r   Úget_style_idÚStyles.get_style_idU   s<   € ð Ò ÙÜ˜¤y×1Ò1Ø×0Ñ0°ÓKÐKà×/Ñ/°ÓJÐJr   c                óH   € \        V P                  P                  4       4      # )zÍA |LatentStyles| object providing access to the default behaviors for latent
styles and the collection of |_LatentStyle| objects that define overrides of
those defaults for a particular named latent style.)r   r   Úget_or_add_latentStylesr<   s   &r   Úlatent_stylesÚStyles.latent_stylesd   s   € ô
 ˜DŸM™M×AÑAÓCÓDÐDr   c               ó    € V ^8„  d   QhRRRR/# rQ   r   )r   s   "r   r   r   k   s   € ÷ 	#ñ 	# :ð 	#¸=ñ 	#r   c                ó®   € V'       d   V P                   P                  V4      MRpVe   VP                  V8w  d   V P                  V4      # \	        V4      # )z±Return the style of `style_type` matching `style_id`.

Returns the default for `style_type` if `style_id` is not found or if the style
having `style_id` is not of `style_type`.
N)r   r2   ÚtyperN   r
   )r   rR   rF   r"   s   &&& r   rU   ÚStyles._get_by_idk   sF   € ÷ 6>�—‘×'Ñ'¨Ô1À4ˆØŠ=˜EŸJ™J¨*Ô4Ø—<‘< 
Ó+Ð+Ü˜EÓ"Ð"r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   rH   r.   rF   r   ÚreturnrS   r   )r   s   "r   r   r   v   s'   € ÷ Kñ K°#ð KÀ=ð KÐU_ñ Kr   c                ó2   € V P                  W,          V4      # )zóReturn the id of the style of `style_type` corresponding to `style_name`.

Returns |None| if that style is the default style for `style_type`. Raises
|ValueError| if the named style is not found in the document or does not match
`style_type`.
)rY   )r   rH   rF   s   &&&r   rZ   ÚStyles._get_style_id_from_namev   s   € ð ×,Ñ,¨TÕ-=¸zÓJÐJr   c               ó$   € V ^8„  d   QhRRRRRR/# )r   r"   r	   rF   r   rg   rS   r   )r   s   "r   r   r      s"   € ÷ 	ñ 	¨ið 	À]ð 	ÐWañ 	r   c                ó¤   € VP                   V8w  d   \        RVP                   : RV: 24      hWP                  V4      8X  d   R# VP                  # )z{Id of `style`, or |None| if it is the default style of `style_type`.

Raises |ValueError| if style is not of `style_type`.
zassigned style is type z, need type N)rd   rD   rN   rR   )r   r"   rF   s   &&&r   rY   ÚStyles._get_style_id_from_style   sA   € ð
 �:‰:˜Ô#ÝÈ%Ï*Ì*ÒV`ÐaÓbÐbØ—L‘L Ó,Ô,ÙØ�~‰~Ðr   )r   )F)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r*   r7   r=   rA   rI   rN   r2   r\   Úpropertyr`   rU   rZ   rY   Ú__static_attributes__Ú__classcell__)r   s   @r   r   r      sh   ø† ñ÷ð òYõ
8ò$Jò,ô
#õ#õ5òKð ñEó ðEõ	#õK÷	ó 	r   r   N)rq   Ú
__future__r   Úwarningsr   Údocx.enum.styler   Údocx.oxml.stylesr   Údocx.sharedr   Údocx.stylesr   Údocx.styles.latentr   Údocx.styles.styler	   r
   r   r   r   r   Ú<module>r}      s.   ðÙ Bå "å å )Ý &Ý $Ý !Ý +ß 5ôyˆ\ö yr   