+
    Ĝi                     $   ^ RI Ht ^ RI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O4      tRP)                  ]4      t]P,                  ! R	P/                  ]4      4      t ! R
 R]4      t ! R R]4      t ! R R]4      tR# )    )defaultdictN)Serialisable)AliasStringIntegerBoolSequence
Descriptor)safe_string)	Tokenizer)SHEETRANGE_RE|z^_xlnm\.(?P<name>{0})c                     a  ] tR t^t o R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7      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7      t]! 4       t]! R4      tRR lt]R 4       t]R 4       t]R	 4       t]R
 4       t R t!Rt"V t#R# )DefinedNamedefinedNameT)
allow_none	attr_textNc                    Wn         W n        W0n        W@n        WPn        W`n        Wpn        Wn        Wn        Wn	        Wn
        Wn        Wn        Wn        Wn        VV n        R # N)namecomment
customMenudescriptionhelp	statusBarlocalSheetIdhiddenfunctionvbProcedurexlmfunctionGroupIdshortcutKeypublishToServerworkbookParameterr   )selfr   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r   s   &&&&&&&&&&&&&&&&&g/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/openpyxl/workbook/defined_name.py__init__DefinedName.__init__2   s]    $ 	$&	"( &.&.!2"    c                    \        R V P                  ,           4      pVP                  ^ ,          pVP                  R8X  d   VP                  # VP                  # )=OPERAND)r   valueitemstypesubtype)r%   tokparseds   &  r&   r/   DefinedName.typeV   sB    djj()1;;)#>>!{{r)   c              #  t  "   V P                   R 8X  d   \        RV P                  ,           4      pVP                   Ft  pVP                  R 8X  g   K  \
        P                  ! VP                  4      pVP                  R4      ;'       g    VP                  R4      pWCP                  R4      3x  Kv  	  R# R# 5i)RANGEr+   	notquotedquotedcellsN)r/   r   r-   r.   r0   r   matchgroup)r%   r1   partm	sheetnames   &    r&   destinationsDefinedName.destinations_   s     99C$**,-C		<<7*%++DJJ7A ! 4 I I8II#WWW%555	 "  s   AB87B8
.B8c                v    \         P                  V P                  4      pV'       d   VP                  R 4      # R# )r   N)RESERVED_REGEXr9   r   r:   )r%   r<   s   & r&   is_reservedDefinedName.is_reservedj   s,      +776?" r)   c                d    \         P                  ! R 4      P                  V P                  4      RJ# )z
^\[\d+\].*N)recompiler9   r-   r%   s   &r&   is_externalDefinedName.is_externalq   s%    zz-(..tzz:$FFr)   c              #     "   V P                    F@  pVR 8X  d   K  \        W4      pVf   K  V\        9   d
   RV,           pV\        V4      3x  KB  	  R# 5i)r   Nz_xlnm.)	__attrs__getattrRESERVEDr   )r%   keyvs   &  r&   __iter__DefinedName.__iter__v   sL     >>Ck!"A}= 1A;q>)) "s
   %A)A)r   r   r   r   r   r!   r   r   r   r   r#   r"   r   r   r$   r    )NNNNNNNNNNNNNNNN)$__name__
__module____qualname____firstlineno__tagnamer   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r
   r   r   r-   r'   propertyr/   r>   rB   rH   rP   __static_attributes____classdictcell____classdict__s   @r&   r   r      s    G8D%G4(JD)KT"D$'Id+LT"Ft$H$'K
$
C.OD)Kd+O-I+E!#H   6 6 # # G G* *r)   r   c                   <   a a ] tR t^t oRtV 3R ltR tRtVtV ;t	# )DefinedNameDictzj
Utility class for storing defined names.
Allows access by name and separation of global and scoped names
c                   < \        V\        4      '       g   \        R 4      hVP                  V8w  d   \	        R4      h\
        SV `  W4       R# )z*Value must be a an instance of DefinedNamez Key must be the same as the nameN)
isinstancer   	TypeErrorr   
ValueErrorsuper__setitem__)r%   rN   r-   	__class__s   &&&r&   rc   DefinedNameDict.__setitem__   sA    %--HIIZZ3?@@C'r)   c                "    WVP                   &   R# )z9
Add names without worrying about key and name matching.
N)r   )r%   r-   s   &&r&   addDefinedNameDict.add   s     !UZZr)    )
rR   rS   rT   rU   __doc__rc   rg   rX   rY   __classcell__)rd   r[   s   @@r&   r]   r]      s     
(! !r)   r]   c                   R   a  ] tR t^t o Rt]! ]R7      tR	R ltR t	R t
R tRtV tR# )
DefinedNameListdefinedNames)expected_typec                    Wn         R # r   r   )r%   r   s   &&r&   r'   DefinedNameList.__init__   s    &r)   c                   \        \        4      pV P                   Fe  pVP                  f+   VP                  R9   d   K$  W!R,          VP                  &   K;  \        VP                  4      pW!V,          VP                  &   Kg  	  V# )z0
Break names down into sheet locals and globals
global)z_xlnm.Print_Titlesz_xlnm.Print_Areaz_xlnm._FilterDatabase)r   r]   r   r   r   int)r%   namesdefnsheets   &   r&   by_sheetDefinedNameList.by_sheet   sq     O,$$D  (99 cc-1h		*D--.*.eTYY' % r)   c                    V P                    F>  pVP                  VP                  8X  g   K   VP                  VP                  8X  g   K=   R# 	  R# )zK
Check for whether DefinedName with the same name and scope already
exists
TN)r   r   r   )r%   rw   ds   && r&   
_duplicateDefinedNameList._duplicate   s8    
 !!Avv"q~~9J9J'J "r)   c                ,    \        V P                  4      # r   )lenr   rG   s   &r&   __len__DefinedNameList.__len__   s    4##$$r)   rq   N)ri   )rR   rS   rT   rU   rV   r	   r   r   r'   ry   r}   r   rX   rY   rZ   s   @r&   rm   rm      s-     G5K' % %r)   rm   )
Print_AreaPrint_TitlesCriteria_FilterDatabaseExtractConsolidate_AreaSheet_Title)collectionsr   rE   !openpyxl.descriptors.serialisabler   openpyxl.descriptorsr   r   r   r   r	   r
   openpyxl.compatr   openpyxl.formular   openpyxl.utils.cellr   	frozensetrM   join_namesrF   formatrA   r   dictr]   rm   ri   r)   r&   <module>r      s    $ 	 :  ( & - % & 
(	4;;FCDc*, c*L!d !,&%l &%r)   