+
    Ĝi#                        ^ RI H t  ^ RIHt ^ RIHtHtHtHt ^ RIH	t	 ^ RI
HtHtHtHtHtHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHt  ! R
 R]]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )    )copy)safe_string)get_column_letterget_column_intervalcolumn_index_from_stringrange_boundaries)DEFAULT_COLUMN_WIDTH)IntegerFloatBoolStrictStringAlias)Serialisable)StyleableObject)BoundDictionary)Elementc                      a a ] tR t^t oRtRt]! 4       t]! 4       t	]! RR7      t
]! R4      t]! 4       t]! R4      tRV 3R lltR tR tR	 tR
tVtV ;t# )	Dimensionz<Information about the display properties of a row or column.outlineLevelT
allow_nonestyle_idc                X   < \         SV `  WWR 7       Wn        W n        W0n        W@n        R# ))sheetstyle_arrayN)super__init__indexhiddenr   	collapsed)	selfr   r    r   r!   	worksheetvisiblestyle	__class__s	   &&&&&&&&f/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/openpyxl/worksheet/dimensions.pyr   Dimension.__init__)   s(    y<
("    c              #  ~   "   V P                    F(  p\        WR 4      pV'       g   K  V\        V4      3x  K*  	  R # 5iN)
__fields__getattrr   )r"   keyvalues   &  r'   __iter__Dimension.__iter__2   s4     ??CDt,Eu;u--- #s   !==c                    V P                  V P                  4      pV P                  pV P                  VR &   VP                  ! R/ VB  \        V P                  4      Vn        V# )r#    )__new__r&   __dict__parentr   r   _style)r"   cpattribs   &  r'   __copy__Dimension.__copy__9   sO    \\$..)"kk{
f%		r)   c                N    R V P                   P                   R\        V 4       R2# )<z Instance, Attributes=>)r&   __name__dictr"   s   &r'   __repr__Dimension.__repr__B   s'    4>>**++A$t*QOOr)   )r!   r    r   r   )r    r   r!   )TN)r?   
__module____qualname____firstlineno____doc__r,   r
   r   r   r    r   r   outline_levelr!   r%   r   r0   r:   rB   __static_attributes____classdictcell____classcell__r&   __classdict__s   @@r'   r   r      s_     FJ IEVFd+L.)MI*E#.P Pr)   r   c                      a a ] tR t^Ft oRt]P                  R,           t]! R4      t]! R4      t	]
! RR7      t]! R4      t]! 4       t]! 4       tRV 3R llt]R 4       t]R	 4       tR
tVtV ;t# )RowDimensionz2Information about the display properties of a row.htr   r   Tr   c           	        < Ve   TpVe   TpW0n         Ve   V'       * pV	e   T	pWn        VV n        \        SV `  W'VWVR7       R # N)r%   )rP   thickBotthickTopr   r   )r"   r#   r   rP   customHeightscustomFormatr    r   rH   r!   r$   heightrspansrS   rT   kwr&   s   &&&&&&&&&&&&&&&&&,r'   r   RowDimension.__init__R   s_    & =EB [F$(L  +4q 	 	Jr)   c                    V P                   # )z+Always true if there is a style for the row)	has_stylerA   s   &r'   rW   RowDimension.customFormats   s     ~~r)   c                    V P                   RJ# )z,Always true if there is a height for the rowN)rP   rA   s   &r'   rU   RowDimension.customHeightx   s     wwd""r)   )rP   rS   rT   )rP   rW   rU   rV   rS   rT   )r   NNNNFr   NFNNNNNN)r?   rD   rE   rF   rG   r   r,   r   rY   rV   r   rP   rX   r   rS   rT   r   propertyrW   rU   rI   rJ   rK   rL   s   @@r'   rO   rO   F   s     <%% )A AJgAjA	$	B4[FvHvHJB   # # #r)   rO   c                     a a ] tR t^~t oRt]! 4       t]! 4       t]	! R4      t
]! 4       t]! RR7      t]! RR7      t]! 4       t]P$                  R,           tR]RR^ RRRRRRRR3V 3R llt]R	 4       tR
 t]R 4       tR tRtVtV ;t# )ColumnDimensionz5Information about the display properties of a column.bestFitTr   AFNc           	        < W0n         Wn        Wn        Ve   V'       * pVe   TpW@n        Ve   TpWn        \
        SV `  W%VWV	R7       R # rR   )widthminmaxre   r!   r   r   )r"   r#   r   rh   re   r    r   rH   r!   r%   ri   rj   customWidthr$   	auto_sizer&   s   &&&&&&&&&&&&&&&r'   r   ColumnDimension.__init__   s]     
 [F G$(L".7% 	 	Qr)   c                ,    \        V P                  4      # )z.Always true if there is a width for the column)boolrh   rA   s   &r'   rk   ColumnDimension.customWidth   s     DJJr)   c                    \        V P                  V P                  .4      '       g$   \        V P                  4      ;V n        V n        R# R# )z&
Set boundaries for column definition
N)allri   rj   r   r   rA   s   &r'   reindexColumnDimension.reindex   s8     DHHdhh'((":4::"FFDHtx )r)   c                \    \        V P                  4       R\        V P                  4       2# )z*Return the range of cells actually covered:)r   ri   rj   rA   s   &r'   rangeColumnDimension.range   s*     $DHH-.a0A$((0K/LMMr)   c                `    \        V 4      pVP                  4       R R08w  d   \        R/ VB # R# )ri   rj   N)col)r@   keysr   )r"   attrss   & r'   to_treeColumnDimension.to_tree   s0    T
::<E5>)*E** *r)   )re   r!   rj   ri   rh   )rh   re   rk   r%   ri   rj   )r?   rD   rE   rF   rG   r   rh   r   re   r   rl   r   r   r
   ri   rj   r!   r   r,   r	   r   rb   rk   rs   rw   r}   rI   rJ   rK   rL   s   @@r'   rd   rd   ~   s     ?GEfGi IHE
T
"C
T
"CI%% )7 7J
 +# "Q<    
G N N
+ +r)   rd   c                   J   a a ] tR t^t oRtRV 3R lltRR ltR tRtVt	V ;t
# )DimensionHolderz
Allow columns to be grouped
c                L   < Wn         R V n        W0n        \        SV `  W#4       R # r+   )r#   max_outlinedefault_factoryr   r   )r"   r#   	referencer   r&   s   &&&&r'   r   DimensionHolder.__init__   s#    ".4r)   c                   Vf   Tp\        V P                  4       \        4      '       dZ   W,          pW5n        WEn        \        W4      R,          pV F  pWp9   g   K  W K  	  \        \        W34      w  Vn        Vn	        R# \        V P                  4       \        4      '       dE   \        W^,           4       F,  pV P                  P                  V,          pW5n        WEn        K.  	  R# R# )a,  allow grouping a range of consecutive rows or columns together

:param start: first row or column to be grouped (mandatory)
:param end: last row or column to be grouped (optional, default to start)
:param outline_level: outline level
:param hidden: should the group be hidden on workbook open or not
N:   NN)
isinstancer   rd   rH   r    r   mapr   ri   rj   rO   rw   r#   row_dimensions)	r"   startendrH   r    new_dimwork_sequencecolumn_letterels	   &&&&&    r'   groupDimensionHolder.group   s     ;Cd**,o>>kG$1!#N/;B?M!. (+ "/ (++Ce\'R$GK,,.==E7+..77;(5%!' , >r)   c                T   R  p\        R4      p\        4       p\        V P                  4       VR7       FE  pVP	                  4       pVf   K  VP                  VP                  4       VP                  V4       KG  	  V'       d   \        V4      V n	        \        V4      '       d   V# R# )c                 :    V P                  4        V P                  # r+   )rs   ri   )r/   s   &r'   sorter'DimensionHolder.to_tree.<locals>.sorter   s    MMO99r)   cols)r.   N)r   setsortedvaluesr}   addr   appendrj   r   len)r"   r   r   outlinesrz   objs   &     r'   r}   DimensionHolder.to_tree   s    	 V_5$++-V4C++-CS--.		#	 5 "8}Dr77I r)   )r   r   r#   )r   N)Nr   F)r?   rD   rE   rF   rG   r   r   r}   rI   rJ   rK   rL   s   @@r'   r   r      s     5(6 r)   r   c                      a  ] tR tRt o Rt]! RR7      t]! RR7      t]! 4       t	]
! RR7      t]
! RR7      t]
! RR7      t]
! RR7      t]! RR7      t]! RR7      tRR ltRtV tR# )	SheetFormatProperties   sheetFormatPrTr   Nc
                r    Wn         W n        W0n        W@n        WPn        W`n        Wpn        Wn        Wn        R # r+   )	baseColWidthdefaultColWidthdefaultRowHeightrU   
zeroHeightrT   thickBottomoutlineLevelRowoutlineLevelCol)
r"   r   r   r   rU   r   rT   r   r   r   s
   &&&&&&&&&&r'   r   SheetFormatProperties.__init__  s8     ). 0($ &..r)   )	r   rU   r   r   r   r   r   rT   r   )	   N   NNNNNN)r?   rD   rE   rF   tagnamer
   r   r   r   r   r   rU   r   rT   r   r   r   r   rI   rJ   rM   s   @r'   r   r      sl     Gd+Lt,Ow4(L&Jt$H$'K.O.O/ /r)   r   c                   L   a  ] tR tRt o Rt]! 4       tRR lt]R 4       t	Rt
V tR# )SheetDimensioni$  	dimensionNc                    Wn         R # r+   ref)r"   r   s   &&r'   r   SheetDimension.__init__*  s	     r)   c                ,    \        V P                  4      # r+   )r   r   rA   s   &r'   
boundariesSheetDimension.boundaries0  s    ))r)   r   r+   )r?   rD   rE   rF   r   r   r   r   rb   r   rI   rJ   r   s   @r'   r   r   $  s*     G
(C * *r)   r   N)r   openpyxl.compatr   openpyxl.utilsr   r   r   r   openpyxl.utils.unitsr	   openpyxl.descriptorsr
   r   r   r   r   r   !openpyxl.descriptors.serialisabler   openpyxl.styles.styleabler   openpyxl.utils.bound_dictionaryr   openpyxl.xml.functionsr   r   rO   rd   r   r   r   r3   r)   r'   <module>r      s     '  6  ; 5 ; *(P (PV5#9 5#pB+i B+J:o :z!/L !/H*\ *r)   