+
    ¿Ìj
¥  ã                   óv  € R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt]P                  P                  ]P                  P                  ]P                  P                  ]4      4      4      t]P                  P                  ]P                  P                  ]R4      4      t]]P                  9  d   ]P                  P#                  ^ ]4       ^ 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t]P<                  ^ ,          ^8¼  d   ]t Rt!Rt"Rs#]!]"3 U u. uF  p RV ,          NK  	  up t$]!]"3 U u. uF  p RV ,          NK  	  up t%]!]"3 U u. uF  p RV ,          NK  	  up t&]!]"3 U u. uF  p RV ,          NK  	  up t']!]"3 U u. uF  p RV ,          NK  	  up t(]!]"3 U u. uF  p RV ,          NK  	  up t)]!]"3 U u. uF  p RV ,          NK  	  up t*R;t+R<t,]PZ                  ! R]P\                  4      t/Rt0Rt1Rt2]1t3R],          t4Rt5]Pl                  ! R4      t7 ! R R]Pp                  4      t9R t:R=R  lt;R! t<^t=^t>^t?R"t@R# tAR$ tBR% tCR=R& ltDR' tE]PZ                  ! R(4      tF]G;QJ d    . R) ], 4       F  NK  	  5M! R) ], 4       4      tH]PZ                  ! R*4      tIR+ tJR, tK ! R- R.]P˜                  4      tMR/tNR=R0 ltOR1tP]PZ                  ! R24      tQR3tRR4 tSR5 tT]QtUR6 tVR=R7 ltWR>R8 ltXR=R9 ltY]ZR:8X  d   ]P¶                  ! ]Y! 4       4       R# R# u up i u up i u up i u up i u up i u up i u up i )?a?  
msodde.py

msodde is a script to parse MS Office documents
(e.g. Word, Excel, RTF), to detect and extract DDE links.

Supported formats:
- Word 97-2003 (.doc, .dot), Word 2007+ (.docx, .dotx, .docm, .dotm)
- Excel 97-2003 (.xls), Excel 2007+ (.xlsx, .xlsm, .xlsb)
- RTF
- CSV (exported from / imported into Excel)
- XML (exported from Word 2003, Word 2007+, Excel 2003, (Excel 2007+?)

Author: Philippe Lagadec - http://www.decalage.info
License: BSD, see source code or documentation

msodde is part of the python-oletools package:
http://www.decalage.info/python/oletools
)Úprint_functionNz..)Úooxml)Ú
xls_parser)Úrtfobj)Úis_ppt)Úcrypto)Úensure_stdout_handles_unicode)Ú
log_helperz0.60.2z<http://schemas.openxmlformats.org/wordprocessingml/2006/mainz4http://schemas.microsoft.com/office/word/2003/wordmlFz{%s}instrTextz{%s}fldSimplez{%s}fldCharz{%s}pz{%s}rz	{%s}instrz{%s}fldCharTypez^\s*dde(auto)?\s+zonly ddezexclude blacklistedzkeep allz­msodde %s - http://decalage.info/python/oletools
THIS IS WORK IN PROGRESS - Check updates regularly!
Please report any issue at https://github.com/decalage2/oletools/issues
ÚwarningÚmsoddec                   ó6   a a€ ] tR t^òt oRtV 3R ltRtVtV ;t# )ÚArgParserWithBannerz&Print banner before showing any error c                óL   <€ \        \        4       \        \        V `  V4       R # ©N)ÚprintÚBANNERÚsuperr   Úerror)ÚselfÚmessageÚ	__class__s   &&€Úi/home/l0st/web/w4ttz.lol/public_html/toolz/MsgDoxxer/venv/lib/python3.14/site-packages/oletools/msodde.pyr   ÚArgParserWithBanner.errorô   s   ø€ ÜŒfŒÜÔ! 4Ñ.¨wÖ7ó    © )	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r   Ú__classdict__s   @@r   r   r   ò   s   ù‡ € Ù1÷8õ 8r   r   c                óš   € \         P                  P                  V 4      '       g&   \        P                  ! RP                  V 4      4      hV # )z;called by argument parser to see whether given file exists zFile {0} does not exist.)ÚosÚpathÚexistsÚargparseÚArgumentTypeErrorÚformat)Úfilenames   &r   Úexisting_filer-   ù   s:   € ä�7‰7�>‰>˜(×#Ò#Ü×(Ò(Ð)Cß*0©&°Ó*:ó<ð 	<à€Or   c           	     ó  € \        RR7      pVP                  RR\        RR7       VP                  RRR	R
R7       VP                  RRR	R7       VP                  RRRR\        RR7       VP                  RR\        RRR7       VP                  RRR7      pVP                  RRRR \        R!R"7       VP                  R#R$RR \        R%R"7       VP                  R&R'RR \        R(R"7       VP                  \        R)7       VP                  V 4      # )*zBparse command line arguments (given ones or per default sys.argv) z@A python tool to detect and extract DDE links in MS Office files)ÚdescriptionÚfilepathzpath of the file to be analyzedÚFILE)ÚhelpÚtypeÚmetavarz-jz--jsonÚ
store_truez.Output in json format. Do not use with -ldebug)Úactionr2   z--nounquotezdon't unquote values)r2   r6   z-lz
--loglevelÚloglevelÚstorezElogging level debug/info/warning/error/critical (default=%(default)s))Údestr6   Údefaultr2   z-pz
--passwordÚappendz^if encrypted office files are encountered, try decryption with this password. May be repeated.)r3   r6   r2   z0Filter which OpenXML field commands are returnedz¥Only applies to OpenXML (e.g. docx) and rtf, not to OLE (e.g. .doc). These options are mutually exclusive, last option found on command line overwrites earlier ones.)Útitler/   z-dz
--dde-onlyÚstore_constÚfield_filter_modez"Return only DDE and DDEAUTO fields)r6   r9   Úconstr2   z-fz--filterz&Return all fields except harmless onesz-az--all-fieldsz1Return all fields, irrespective of their contents©r>   )r   Úadd_argumentr-   ÚDEFAULT_LOG_LEVELÚstrÚadd_argument_groupÚFIELD_FILTER_DDEÚFIELD_FILTER_BLACKLISTÚFIELD_FILTER_ALLÚset_defaultsÚFIELD_FILTER_DEFAULTÚ
parse_args)Úcmd_line_argsÚparserÚfilter_groups   &  r   Úprocess_argsrN     se  € ä ð .Hô I€Fà
×Ñ˜
Ð)JÜ*°Fð ô <à
×Ñ˜˜h¨|ØMð ô Oà
×Ñ˜Ð,BØ+ð ô -à
×Ñ˜˜l°ÀGÜ 1ð5ð ô 6ð ×Ñ˜˜l´¸XðOð ô Pð ×,Ñ,Ø@ðLð -ó M€Lð
 ×Ñ˜d L¸Ø#6Ô>NØ#Gð ô Ið ×Ñ˜d J°}Ø#6Ü$:Ø#Kð ô Mð ×Ñ˜d N¸=Ø#6Ô>Nð$.ð ô /ð ×ÑÔ*>ÐÔ?à×Ñ˜]Ó+Ð+r   c                ó"  € \         P                  RP                  V 4      4       V P                  4       P	                  4       P                  R4      '       d   V # V P                  4       P	                  4       P                  R4      '       d   V # R# )zmcheck if field instructions start with DDE

expects unicode input, returns unicode output (empty if not dde) zprocessing field '{0}'Úddez d d e Ú )ÚloggerÚdebugr+   ÚlstripÚlowerÚ
startswith)Údatas   &r   Úprocess_doc_fieldrX   9  sj   € ô ‡L�LÐ,×3Ñ3°DÓ9Ô:à‡{�{ƒ}×ÑÓ×'Ñ'¨×/Ò/ØˆØ‡{�{ƒ}×ÑÓ×'Ñ'Ð(>×?Ò?ØˆÙr   iè  c                óð  € RpRpRp. pRpRp V^,          pV P                  ^4      p\        V4      ^ 8X  d   EMq\        V4      pV\        8X  d0   V'       d   V'       d   \        P                  R4       RpRpRpRpKr  V'       g   K|  V\        8X  d"   V'       d   \        P                  R4       RpK¨  V\        8X  d-   \        V4      pV'       d   VP                  V4       RpRpRpKß  V'       d   Ké  V'       d   Kó  \        V4      \        8”  d.   \        P                  RP                  \        4      4       RpEK4  V^ 8X  d   V\        V4      ,          pEKP  VR9   d   VR,          pEKc  V^ 8  d   VR	,          pEKv  V^€8  d   V\        V4      ,          pEK’  VR	,          pEKž  V'       d   \        P                  R4       \        P                  R
P                  V\        V4      4      4       V# )z«find dde links in single word ole stream

since word ole file stream are subclasses of io.BytesIO, they are buffered,
so reading char-wise is not that bad performanc-wise FNTz#big field was not a field after allrQ   z*unexpected field: has multiple separators!z*field exceeds max size of {0}. Ignore restÚ
Ú?z(Checked {0} characters, found {1} fieldséÿÿÿÿ)é
   é   )ÚreadÚlenÚordÚOLE_FIELD_STARTrR   rS   ÚOLE_FIELD_SEPÚOLE_FIELD_ENDrX   r;   ÚOLE_FIELD_MAX_SIZEr+   Úunichr)	ÚstreamÚ
have_startÚhave_sepÚfield_contentsÚresult_partsÚmax_size_exceededÚidxÚcharÚ
new_results	   &        r   Úprocess_doc_streamrp   L  s«  € ð €JØ€HØ€NØ€LØÐØ
€CØ
Øˆq�ˆØ�{‰{˜1‹~ˆÜˆt‹9˜Œ>Ùä�t“9ˆDà”?Ô"ß×/Ü—‘ÐBÔCØˆJØˆHØ %ÐØ ˆNÙßÙð ”=Ô ßÜ—‘ÐIÔJØŠHØ”]Ô"ä*¨>Ó:ˆJßØ×#Ñ# JÔ/ð ˆJØˆHØ!ŠNß‘÷ !ÙÜ�^Ó$Ô'9Ô9Ü—‘ÐIß$™fÔ%7Ó8ô:à$(Ó!ð ˜”à¤&¨£,Õ.“Ø˜Ô!Ø %Õ'“Ø˜”Ø $Õ&“Ø˜”Ø¤&¨£,Õ.“à $Õ&“çÜ�‰Ð:Ô;ä
‡L�LÐ;ß‘&˜œc ,Ó/Ó0ô2ð Ðr   c           
     óâ  € \         P                  R4       . p\        V P                  4       EF.  w  r#VRJ pV'       d   V P	                  V4      pVP
                  \        P                  8H  p\         P                  RP                  Y$'       d   RMVP                  V'       d   RP                  VP                  4      MRP                  VP
                  4      4      4       V'       g   K¿  \        V P                  VP                  VP                  4      4      pV'       d(   \         P                  RVP                  : RV: 24       VP                  V4       EK1  	  R	P                  V4      # )
ae  
find dde links in word ole (.doc/.dot) file

Checks whether files is ppt and returns empty immediately in that case
(ppt files cannot contain DDE-links to my knowledge)

like process_xml, returns a concatenated unicode string of dde links or
empty if none were found. dde-links will still begin with the dde[auto] key
word (possibly after some whitespace)
Úprocess_docNzdirentry {:2d} {}: {}z[orphan]zis stream of size {}zno stream ({})zstream ú: rZ   )rR   rS   Ú	enumerateÚ
direntriesÚ_load_direntryÚ
entry_typeÚolefileÚSTGTY_STREAMr+   ÚnameÚsizerp   Ú_openÚ
isectStartÚextendÚjoin)ÚoleÚlinksÚsidÚdirentryÚ	is_orphanÚ	is_streamÚ	new_partss   &      r   rr   rr   ›  s  € ô ‡L�L�ÔØ€EÜ" 3§>¡>×2‰ˆØ Ð$ˆ	ßà×)Ñ)¨#Ó.ˆHØ×'Ñ'¬7×+?Ñ+?Ñ?ˆ	Ü�‰Ð,ß‘f˜S¶	¡*¸x¿}¹}ç )ð 4×:Ñ:¸8¿=¹=ÔIà-×4Ñ4°X×5HÑ5HÓIóKô	L÷
 ‰9Ü*Ø—	‘	˜(×-Ñ-¨x¯}©}Ó=ó?ˆIçÜ—’°·´ºyÐIÔJØ�L‰L˜×#ñ! 3ð& �:‰:�eÓÐr   c                ó|  € . pRp \         P                  ! V 4      pVP                  4        FÎ  p\        V\         P                  4      '       g   K%  VP                  4        F•  p\        V\         P                  4      '       g   K%  VP                  \         P                  P                  \         P                  P                  39   g   Kj  VP                  VP                  P                  RR4      4       K—  	  KÐ  	  RP                  V4      Ve   VP                  4        # #   Te   TP                  4        i i ; i)z!find dde links in excel ole file NÚÚ rZ   )r   ÚXlsFileÚiter_streamsÚ
isinstanceÚWorkbookStreamÚiter_recordsÚXlsRecordSupBookÚsupport_link_typeÚLINK_TYPE_OLE_DDEÚLINK_TYPE_EXTERNALr;   Ú	virt_pathÚreplacer   Úclose)r0   ÚresultÚxls_filerg   Úrecords   &    r   Úprocess_xlsr™   ¾  s  € ð €FØ€HðÜ×%Ò% hÓ/ˆØ×+Ñ+Ö-ˆFÜ˜f¤j×&?Ñ&?×@Ò@ÙØ ×-Ñ-Ö/�Ü! &¬*×*EÑ*E×FÒFÙØ×+Ñ+Ü"×3Ñ3×EÑEÜ"×3Ñ3×FÑFð0Hö Hð —M‘M &×"2Ñ"2×":Ñ":¸9ÀdÓ"KÖLó 0ñ .ð �z‰z˜&Ó!àÒØ�N‰NÕð  øˆ8ÒØ�N‰NÕð  ús   †C D$ ÃAD$ Ä$D;c                ó&  € \         P                  ! V 4      p. p^ pRpVP                  \        \        ,           R7       EFï  w  rgpV^ 8X  d   ^ pVP
                  \        9   du   VP                  P                  \        ^ ,          4      ;'       g'    VP                  P                  \        ^,          4      p	V	e   VP                  \        V	4      4       K™  V EFO  p
RpV
P
                  \        9   d?   V
 F1  pVP
                  \        9   g   VP
                  \        9   g   K/  Tp M	  Vf   KX  MT
pVf   \         P                  ! V R4      hVP                  P                  \        ^ ,          4      ;'       g'    VP                  P                  \        ^,          4      pVe=   VR8X  d
   V^,          pVR8X  d&   V^,          pVR
9   d   VP                  V4       Rp^ pVP
                  \        9   g   EK"  VP                   f   EK3  V\        VP                   4      ,          pEKR  	  EKò  	  \"        P%                  RP'                  V4      4       V\(        R39   d   TpM’V\*        8X  d0   V Uu. uF"  p\,        P/                  V4      '       g   K   VNK$  	  ppMXV\0        8X  d4   V Uu. uF&  p\3        VP5                  4       4      '       d   K$  VNK(  	  ppM\7        RP'                  V4      4      hR	P9                  V4      # u upi u upi )z6find dde-links (and other fields) in Word 2007+ files rQ   )ÚtagsNz Got "None"-Element from iter_xmlÚbeginÚendzfiltering with mode "{0}"ú#Unexpected field_filter_mode: "{0}"rZ   )é    r\   )r   Ú	XmlParserÚiter_xmlÚTAG_W_PÚTAG_W_FLDSIMPLEÚtagÚattribÚgetÚATTR_W_INSTRr;   ÚunquoteÚTAG_W_RÚTAG_W_FLDCHARÚTAG_W_INSTRTEXTÚBadOOXMLÚATTR_W_FLDCHARTYPEÚtextrR   rS   r+   rG   rE   ÚFIELD_DDE_REGEXÚmatchrF   Úfield_is_blacklistedÚstripÚ
ValueErrorr   )r0   r>   rL   Ú
all_fieldsÚlevelÚddetextÚ_ÚsubsÚdepthÚattrib_instrÚ	curr_elemÚelemÚchildÚattrib_typeÚclean_fieldsÚfields   &&              r   Úprocess_docxrÁ   Õ  s«  € ä�_Š_˜XÓ&€FØ€JØ€EØ€GØ Ÿ/™/¬w¼Õ/H˜/×I‰ˆ�Ø�AŒ:ØˆEØ�8‰8”Ô&àŸ;™;Ÿ?™?¬<¸­?Ó;÷ <ð <ØŸ;™;Ÿ?™?¬<¸­?Ó;ð àÒ'Ø×!Ñ!¤'¨,Ó"7Ô8Ùô ˆIàˆDØ�}‰}¤Ô'Û&�EØ—y‘y¤MÔ1Ø!ŸI™I¬Ö8Ø$˜Ùñ	 'ð
 ’<Ùð  ð !�ØŠ|Ü—n’n XØ%GóIð Ið Ÿ+™+Ÿ/™/Ô*<¸QÕ*?Ó@÷ Að AØŸ+™+Ÿ/™/Ô*<¸QÕ*?Ó@ð àÒ&Ø 'Ô)Ø˜Q•J�EØ %Ô'Ø˜Q•J�EØ Ô'Ø"×)Ñ)¨'Ô2Ø"%˜Ø !˜ð �x‰xœ?×*¨t¯y©yÕ/Dàœ7 4§9¡9Ó-Õ-“ôC ñ Jô` ‡L�LÐ,×3Ñ3Ð4EÓFÔGØÔ-¨tÐ4Ô4Ø!‰Ø	Ô.Ô	.Ù+5ó 9©: %Ü*×0Ñ0°×7÷ ˜©:ˆð 9ˆà	Ô4Ô	4á+5ó D©: %Ü3°E·K±K³M×B÷ ˜©:ˆð Dˆô Ð>ß ™&Ð!2Ó3ó5ð 	5ð �:‰:�lÓ#Ð#ùò9ùòDs   É5L	ÊL	Ê/!LËLc                óò   € RV 9  g   \         '       d   V # V P                  4       P                  R4      pRpVR,           F   p \        \	        V4      4      pW$,          pK"  	  V#   \
         d    Tp Li ; i)z0TODO: document what exactly is happening here...ÚQUOTEr‰   rQ   ºé   NN)Ú	NO_QUOTESr²   ÚsplitÚchrÚintr³   )rÀ   ÚpartsÚddestrÚpartÚ	characters   &    r   r¨   r¨     sw   € à�eÔŸy›yØˆà�K‰K‹M×Ñ Ó$€EØ€FØ�b—	�	ˆð	ÜœC ›I›ˆIð 	ÕŠñ ð €Møô ô 	ØŠIð	ús   ÁA&Á&A6Á5A6z"[^"]*"|\S+c              #   óN   "  € T F  q^ ,          P                  4       x € K  	  R# 5i)rŸ   N)rU   )Ú.0rÀ   s   & r   Ú	<genexpr>rÐ   .  s   é € ÐK¹?°% 1�XŸ^™^×-Ð-»?ùs   ‚#%z^\\[\w#*@]$c                óÀ  € \         P                  V 4      pV'       g   R#  \        P                  V^ ,          P	                  4       4      p\        P                  RP                  T \        T,          4      4       \        T,          w  r4rVrx^ p	TR,           F  p
T
^ ,          R8X  d    MT	^,          p	K  	  Y”8  d(   \        P                  RP                  Y”T 4      4       R# Y”T,           8”  d(   \        P                  RP                  Y”YP4      4       R# Rp. pT^T	,           R  EF  p
T'       d<   T'       d.   Y¬9  d(   \        P                  RP                  Y 4      4        R# Rp. pKG  \        P                  T
4      '       g(   \        P                  R	P                  Y 4      4        R# T
^,          pY×9   d   Kš  YÖ9   d   R
pK¤  TR8X  d   RT9   d   R
pK¶  TR8X  d   RT9   d   R
pKÈ  TR8X  d-   R
pTRR.,          pRT9   d   T. RO,          pRT9   d   . pKù  Kû  \        P                  RP                  YÐ4      4        R# 	  R
#   \
         d     R# i ; i)aÆ  Check if given field contents matches any in FIELD_BLACKLIST

A complete parser of field contents would be really complicated, so this
function has to make a trade-off. There may be valid constructs that this
simple parser cannot comprehend. Most arguments are not tested for validity
since that would make this test much more complicated. However, if this
parser accepts some field contents, then office is very likely to not
complain about it, either.
Fz.trying to match "{0}" to blacklist command {1}rÄ   Ú\z7too few args: found {0}, but need at least {1} in "{2}"z;too many args: found {0}, but need at most {1}+{2} in "{3}"Nz,Found invalid switch argument "{0}" in "{1}"z%expected switch, found "{0}" in "{1}"TÚ#ÚnumericÚ@ÚdatetimeÚ*Ú
CHARFORMATÚMERGEFORMATÚstringzunexpected switch {0} in "{1}")ÚCapsÚFirstCapÚLowerÚUpper)ÚFIELD_WORD_REGEXÚfindallÚFIELD_BLACKLIST_CMDSÚindexrU   r³   rR   rS   r+   ÚFIELD_BLACKLISTÚFIELD_SWITCH_REGEXr°   )ÚcontentsÚwordsrâ   r·   Únargs_requiredÚnargs_optionalÚsw_with_argÚsw_soloÚ	sw_formatÚnargsÚwordÚ
expect_argÚarg_choicesÚswitchs   &             r   r±   r±   2  s2  € ô ×$Ñ$ XÓ.€EßÙðÜ$×*Ñ*¨5°­8¯>©>Ó+;Ó<ˆô ‡L�LÐBß‘&˜¤?°5Õ#9Ó:ô<ô ˜%Õ
 ñ G€A�~°Gð €EØ�b—	�	ˆØ��7�dŒ?ÙØ��
Šñ ð ÔÜ�‰ÐOß‘f˜U°HÓ=ô	?áØ Õ.Ô.Ü�‰ð ç‘f˜U°NÓMô	Oñ ð €JØ€KØ�a˜•g�h”ˆßß Ô 7Ü—‘ÐLß$™f TÓ4ô6âØˆJØˆKÙÜ#×)Ñ)¨$×/Ò/Ü�L‰LÐAß ™& Ó0ô2âà�a•ˆàÔÙØÔ"ØŠJØ�sŒ]˜y¨IÔ5ØŠJØ�sŒ]˜z¨YÔ6ØŠJØ�sŒ]ØˆJØ˜L¨-Ð8Õ8ˆKØ˜9Ô$ØÒEÕE�Ø˜IÔ%Ø ’ñ &ô �L‰LÐ:ß ™& Ó2ô4âñE  ñJ øô ô Úðús   ¡*I ÉIÉIc                óÔ  € . p\         P                  ! V 4      pVP                  4        Fò  w  r4pVP                  P	                  4       pVR8X  g   VP                  R4      '       g   K@  . pRVP                  9   d#   VP                  VP                  R,          4       RVP                  9   d#   VP                  VP                  R,          4       VP                  RP                  V4      4       \        P                  RV: RV: R\        V4      : 24       Kô  	  VP                  4        Fí  w  r‰p
 \        P                  R	P                  W‰4      4       \        P                   ! W©V4       F§  p\        P                  R
P                  W‹4      4       \#        V\        P$                  4      '       g   KI  VP&                  \        P$                  P(                  8X  g   Kt  VP                  VP*                  R,           VP,                  ,           4       K©  	  Kï  	  RP                  V4      #   \.         d¬   pT	P1                  R4      '       g   T	P1                  R4      '       d   \        P2                  pM?T	P1                  R4      '       g   T	R8X  d   \        P                  pM\        P                  pT! RP                  Y‰\5        T4      4      4        Rp?EK³  Rp?ii ; i)z;process an OOXML excel file (e.g. .xlsx or .xlsb or .xlsm) Úddelinkz}ddelinkÚ
ddeServiceÚddeTopicr‰   zFound tag "z
" in file rs   z1Parsing non-xml subfile {0} with content type {1}z{0}: {1}zapplication/vnd.ms-excel.zapplication/vnd.ms-office.zimage/z/Failed to parse {0} of content type {1} ("{2}")NrZ   zKapplication/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings)r   r    r¡   r¤   rU   Úendswithr¥   r;   r   rR   rS   ÚreprÚiter_non_xmlÚinfor+   r   Úparse_xlsb_partrŒ   ÚXlsbBeginSupBookÚ	link_typeÚLINK_TYPE_DDEÚstring1Ústring2Ú	ExceptionrV   r
   rC   )r0   Ú	dde_linksrL   Úsubfilenamer¼   r·   r¤   Ú	link_infoÚsubfileÚcontent_typeÚhandler˜   ÚexcÚlog_funcs   &             r   Úprocess_xlsxr  ‡  s&  € à€IÜ�_Š_˜XÓ&€FØ &§¡Ö 1Ñˆ˜1Ø�h‰h�n‰nÓˆØ�)Ô˜sŸ|™|¨J×7Ô7àˆIØ˜tŸ{™{Ô*Ø× Ñ  §¡¨\Õ!:Ô;Ø˜TŸ[™[Ô(Ø× Ñ  §¡¨ZÕ!8Ô9Ø×Ñ˜TŸY™Y yÓ1Ô2Ü�LŠL»CÃÌdÐS\ÍoÐ^Ö_ñ !2ð *0×)<Ñ)<Ö)>Ñ%ˆ˜vð	?Ü�K‰KÐKß™ Ó6ô8ä$×4Ò4°VØ5<ö>�ä—‘˜Z×.Ñ.¨wÓ?Ô@Ü˜f¤j×&AÑ&A×BÔBØ×(Ñ(Ü"×3Ñ3×AÑAöBà×$Ñ$ V§^¡^°cÕ%9¸F¿N¹NÕ%JÖKó>ñ	 *?ð6 �:‰:�iÓ Ð øô! ô 	?Ø×&Ñ&Ð'B×CÒCØ×&Ñ&Ð'C×DÒDä!Ÿ>™>‘Ø×(Ñ(¨×2Ò2°lð4ô74ô "Ÿ<™<‘ä!Ÿ;™;�ÙÐFß‘f˜W´C¸³HÓ=÷?ó ?ûð	?ús2   Ä6A?H1Æ:&H1Ç%7H1È1K'È<-K"É*'K"ÊA	K"Ë"K'c                   óH   a a€ ] tR tRt oRtV 3R ltR tR tR tRt	Vt
V ;t# )ÚRtfFieldParseri¶  z:
Specialized RTF parser to extract fields such as DDEAUTO
c                ó<   <€ \         \        V `  V4       . V n        R # r   )r   r
  Ú__init__Úfields)r   rW   r   s   &&€r   r  ÚRtfFieldParser.__init__»  s   ø€ ÜŒn˜dÑ,¨TÔ2àˆŽr   c                óx   € VP                   R 8X  d)   \        P                  RVP                  ,          4       R# R# )ó   fldinstz!*** Start field data at index %XhN)ÚcwordrR   rS   Ústart)r   Údestinations   &&r   Úopen_destinationÚRtfFieldParser.open_destinationÀ  s2   € Ø×Ñ 
Ô*Ü�L‰LÐ<Ø&×,Ñ,õ-ö .ñ +r   c                ó†  € VP                   R 8X  d°   \        P                  RV P                  ,          4       \        P                  RVP                  ,          4       VP                  P                  RR4      P                  4       p\        P                  RV,          4       V P                  P                  V4       R# R# )r  z!*** Close field data at index %XhzField text: %rNs   
zCleaned Field text: %r)	r  rR   rS   râ   rW   Ú	translater²   r  r;   )r   r  Úfield_cleans   && r   Úclose_destinationÚ RtfFieldParser.close_destinationÅ  sˆ   € Ø×Ñ 
Ô*Ü�L‰LÐ<¸t¿z¹zÕIÔJÜ�L‰LÐ)¨K×,<Ñ,<Õ<Ô=à%×*Ñ*×4Ñ4°T¸7ÓC×IÑIÓKˆKÜ�L‰LÐ1°KÕ?Ô@Ø�K‰K×Ñ˜{Ö+ñ +r   c                óv   € V P                   ;P                  VP                  4       R ,          ,          un        R# ):rÅ   é   NN)Úcurrent_destinationrW   Úgroup)r   Úmatchobjects   &&r   Úcontrol_symbolÚRtfFieldParser.control_symbolÎ  s)   € ð 	× Ñ ×%Ò%¨×):Ñ):Ó)<¸SÕ)AÕA×%r   )r  )r   r   r   r   r   r  r  r  r   r    r!   r"   r#   s   @@r   r
  r
  ¶  s%   ù‡ € ñõò
.ò
,÷Bò Br   r
  s   {\rtc                óÄ  € . p\         V P                  4       ,           pV P                  4        \        V4      pVP	                  4        VP
                   Uu. uF  qUP                  R4      NK  	  pp\        P                  RP                  V\        V4      4      4       V\        R39   d   TpM’V\        8X  d0   V Uu. uF"  p\        P                  V4      '       g   K   VNK$  	  ppMXV\        8X  d4   V Uu. uF&  p\!        VP#                  4       4      '       d   K$  VNK(  	  ppM\%        RP                  V4      4      hRP'                  V4      # u upi u upi u upi )z+find dde links or other fields in rtf file Úasciiz+found {1} fields, filtering with mode "{0}"Nrž   rZ   )Ú	RTF_STARTr_   r•   r
  Úparser  ÚdecoderR   rS   r+   r`   rG   rE   r¯   r°   rF   r±   r²   r³   r   )Úfile_handler>   r´   rW   Ú	rtfparserrÀ   r¿   s   &&     r   Úprocess_rtfr)  Ø  s=  € à€JÜ�{×'Ñ'Ó)Õ)€DØ×ÑÔÜ˜tÓ$€IØ‡O�OÔØ5>×5EÒ5EÓFÑ5E¨E—,‘,˜wÖ'Ñ5E€JÐFä
‡L�LÐ>ß‘&Ð*¬C°
«OÓ<ô>àÔ-¨tÐ4Ô4Ø!‰Ø	Ô.Ô	.Ù+5ó 9©: %Ü*×0Ñ0°×7÷ ˜©:ˆð 9ˆà	Ô4Ô	4á+5ó D©: %Ü3°E·K±K³M×B÷ ˜©:ˆð Dˆô Ð>ß ™&Ð!2Ó3ó5ð 	5ð �:‰:�lÓ#Ð#ùò# Gùò9ùòDs   ÁEÂ?EÃ!EÃ9!EÄEi   z\s*"?[=+-@](.+)\|(.+)!(.*)\s*z,	 ;|^c           	     óþ  € . p\         P                  P                  ^8:  d   \        RR7      pM\        RR7      p\	        V 3/ VB ;_uu_ 4       p\        V\        4      w  rVP                  4       \        8  pV'       dw   V'       go   \        P                  R4       VP                  ^ 4       \        P                  VP                  R4      pV F"  p VP                  ^ 4       \        W74      w  rK$  	  V'       d”   V'       gŒ   \        P                  R4       VP                  ^ 4       \"        P%                  VP'                  \        4      4      p	V	'       d6   VP)                  RP+                  V	P-                  4       R	,          4      4       R
R
R
4       RP+                  V4      #   \        P                   d*    \        P                  RP!                  T4      4        EK  i ; i  + '       g   i     Lb; i)a´  find dde in csv text

finds text parts like =cmd|'/k ..\..\..\Windows\System32\calc.exe'! or
=MSEXCEL|'\..\..\..\Windows\System32\regsvr32 [...]

Hoping here that the :py:class:`csv.Sniffer` determines quote and delimiter
chars the same way that excel does. Tested to some extend in unittests.

This can only find DDE-links, no other "suspicious" constructs (yet).

Cannot deal with unicode files yet (need more than just use uopen()).
Úrb)ÚmoderQ   )Únewlinez*small file, no results; try all delimitersz(failed to csv-parse with delimiter {0!r}z5last attempt: take whole file as single unquoted cellr‰   ºNr  NNrZ   )ÚsysÚversion_infoÚmajorÚdictÚopenÚprocess_csv_dialectÚCSV_DELIMITERSÚtellÚCSV_SMALL_THRESHrR   rS   Úseekr”   Ú	delimiterÚcsvÚErrorr+   ÚCSV_DDE_FORMATr°   r_   r;   r   Úgroups)
r0   ÚresultsÚopen_argr'  ÚdialectÚis_smallÚother_delimÚdelimr·   r°   s
   &         r   Úprocess_csvrD  ÿ  s~  € ð €GÜ
×Ñ×Ñ Ô"Ü˜T”?‰ä Ô#ˆÜ	ˆhÑ	#˜(×	#Ò	# {ä.¨{¼NÓKÑˆØ×#Ñ#Ó%Ô(8Ñ8ˆçŸGä�L‰LÐEÔFØ×Ñ˜QÔÜ(×0Ñ0°×1BÑ1BÀBÓGˆKÛ$�ð1Ø×$Ñ$ QÔ'Ü!4°[Ó!H‘J�G™Qñ %÷ ŸGä�L‰Lð  ô !à×Ñ˜QÔÜ"×(Ñ(¨×)9Ñ)9Ô:JÓ)KÓLˆEßØ—‘˜tŸy™y¨¯©«¸Õ);Ó<Ô=÷3 
$ð6 �:‰:�gÓÐøô —y‘yô 1Ü—L‘LÐ!Kß"(¡&¨£-÷1ð 1ð1ú÷ 
$×	#úsJ   Á9G,Â	AG,ÃF+Ã3G,Ã?G,ÄAG,Å5G,Æ+9G)	Ç$G,Ç(G)	Ç)G,Ç,G<	c                ó  € \         P                  ! 4       P                  V P                  \        4      VR7      pRVn        \        P                  RP                  VP                  VP                  4      4       V P                  ^ 4       . p\         P                  ! W4      pV F`  pV FW  p\        P                  V4      pV'       g   K"  VP                  RP!                  VP#                  4       R,          4      4       KY  	  Kb  	  W23# )z<helper for process_csv: process with a specific csv dialect )Ú
delimitersFz=sniffed csv dialect with delimiter {0!r} and quote char {1!r}r‰   r.  )r:  ÚSnifferÚsniffr_   r7  ÚstrictrR   rS   r+   r9  Ú	quotecharr8  Úreaderr<  r°   r;   r   r=  )r'  rF  r@  r>  rK  ÚrowÚcellr°   s   &&      r   r4  r4  /  sÚ   € ô �kŠk‹m×!Ñ! +×"2Ñ"2Ô3CÓ"DØ-7ð "ó 9€Gà€G„NÜ
‡L�Lð (ç‘&˜×*Ñ*¨G×,=Ñ,=Ó>ô@ð
 ×Ñ�QÔð €GÜ�ZŠZ˜Ó-€FÛˆÛˆDä"×(Ñ(¨Ó.ˆEß‰uØ—‘˜tŸy™y¨¯©«¸Õ);Ó<Ö=ó	 ñ ð ÐÐr   c                óÔ  € . p\         P                  ! V 4      pVP                  4        EF+  w  r4pVP                  P	                  4       pVR8w  d   VP                  R4      '       g   KA  RpVP                  4        FP  pVP	                  4       R8X  g(   VP	                  4       P                  R4      '       g   K?  VP                  V4      p M	  Vf   K­  \        P                  RP                  V4      4       \        P                  ! \        V4      pV'       g   Kö  VP                  RP                  VP!                  4       R,          4      4       EK.  	  R	P                  V4      # )
zÑfind dde links in xml files created with excel 2003 or excel 2007+

TODO: did not manage to create dde-link in the 2007+-xml-format. Find out
      whether this is possible at all. If so, extend this function
rM  z}cellNÚformulaz}formulazfound cell with formula {0}r‰   r.  rZ   )r   r    r¡   r¤   rU   rõ   Úkeysr¦   rR   rS   r+   Úrer°   ÚXML_DDE_FORMATr;   r   r=  )	r0   r   rL   r·   r¼   r¤   rO  Úkeyr°   s	   &        r   Úprocess_excel_xmlrT  L  s  € ð €IÜ�_Š_˜XÓ&€FØ—o‘o×'‰
ˆ�Ø�h‰h�n‰nÓˆØ�&Œ= §¡¨g×!6Ò!6ÙØˆØ—9‘9–;ˆCØ�y‰y‹{˜iÔ'¨3¯9©9«;×+?Ñ+?À
×+KÔ+KØŸ(™( 3›-�Ùñ ð Š?ÙÜ�‰Ð3×:Ñ:¸7ÓCÔDÜ—’œ¨Ó1ˆß‰5Ø×Ñ˜TŸY™Y u§|¡|£~°bÕ'9Ó:×;ñ (ð �:‰:�iÓ Ð r   c                óÐ  € \         P                  ! V 4      '       dÅ   \        P                  R4       \        P
                  ! V 4      '       d!   \        P                  R4       \        V 4      # \        V 4      '       d   \        P                  R4       R# \        P                  R4       \         P                  ! V RR7      ;_uu_ 4       p\        V4      uuRRR4       # \        V R4      ;_uu_ 4       pVP                  ^4      \        8X  d+   \        P                  R	4       \        W14      uuRRR4       #  RRR4        \        P                  ! V 4      p\        P                  R
P!                  V4      4       V\        P$                  8X  d!   \        P                  R4       \'        V 4      # V\        P(                  \        P*                  39   d!   \        P                  R4       \-        V 4      # V\        P.                  \        P0                  39   d!   \        P                  R4       \3        V 4      # Vf!   \        P                  R4       \5        V 4      # \        P                  R4       \3        W4      #   + '       g   i     EL±; i  + '       g   i     ELc; i  \"         d2   p\        P                  RP!                  T4      4       Rp Rp?ELbRp?ii ; i)z1decides which of the process_* functions to call z3Is OLE. Checking streams to see whether this is xlsz Process file as excel 2003 (xls)zis ppt - cannot have DDErQ   zProcess file as word 2003 (doc)N)Úpath_encodingr+  zProcess file as rtfzDetected file type: {0}z'Exception trying to xml-parse file: {0}z"Process file as excel 2007+ (xlsx)z)Process file as xml from excel 2003/2007+z(Process file as xml from word 2003/2007+zProcess file as csvz!Process file as word 2007+ (docx))rx   Ú	isOleFilerR   rS   r   Úis_xlsr™   r   Ú	OleFileIOrr   r3  r_   r$  r)  r   Úget_typer+   rÿ   ÚDOCTYPE_EXCELr  ÚDOCTYPE_EXCEL_XMLÚDOCTYPE_EXCEL_XML2003rT  ÚDOCTYPE_WORD_XMLÚDOCTYPE_WORD_XML2003rÁ   rD  )r0   r>   r€   r'  Údoctyper  s   &&    r   Úprocess_filera  f  s  € ä×Ò˜×"Ò"Ü�‰ÐJÔKÜ×Ò˜X×&Ò&Ü�L‰LÐ;Ô<Ü˜xÓ(Ð(Ü�(×ÒÜ�L‰LÐ3Ô4ÙÜ�‰Ð6Ô7Ü×Ò˜x°t×<Õ<ÀÜ˜sÓ#÷ =Ò<ô 
ˆh˜×	Ô	 à×Ñ˜AÓ¤)Ô+Ü�L‰LÐ.Ô/Ü˜{Ó>÷	 
Ò	à+÷ 
ðÜ—.’. Ó*ˆÜ�‰Ð.×5Ñ5°gÓ>Ô?ð
 ”%×%Ñ%Ô%Ü�‰Ð9Ô:Ü˜HÓ%Ð%Ø”5×*Ñ*¬E×,GÑ,GÐHÔHÜ�‰Ð@ÔAÜ  Ó*Ð*Ø”5×)Ñ)¬5×+EÑ+EÐFÔFÜ�‰Ð?Ô@Ü˜HÓ%Ð%Ø‚Ü�‰Ð*Ô+Ü˜8Ó$Ð$ä
‡L�LÐ4Ô5Ü˜Ó4Ð4÷= =×<Ð<ú÷ 
×	Ð	ûô ô Ü�‰Ð>×EÑEÀcÓJÔKØŽûðús0   ÃJÃ5:JÅ:J) ÊJ	ÊJ&	Ê)K%Ê4&K Ë K%c                óÊ  € Rp \        V 3/ VB p\        P                  ! V 4      '       g   V#  V\        P                  8¼  d   \        P                  ! W 4      hRpVf   \        P                  pM \        V4      \        P                  ,           p \        P                  R4       \        P                  ! W4      pV'       g,   \        P                  R4       \        P                  ! V 4      h\        P                  R4       \        WQV^,           3/ VB p \        P                   ! V4       V#   \         d9    \        P                  RRR7       \        P                  ! T 4      '       g   h  ELEi ; i  \         d    \        P                  R	RR7        T# i ; i   \        P                   ! T4       i   \         d    \        P                  R	RR7        i i ; i; i)
a  
Process a file that might be encrypted.

Calls :py:func:`process_file` and if that fails tries to decrypt and
process the result. Based on recommendation in module doc string of
:py:mod:`oletools.crypto`.

:param str filepath: path to file on disc.
:param passwords: list of passwords (str) to try for decryption or None
:param int crypto_nesting: How many decryption layers were already used to
                           get the given file.
:param kwargs: same as :py:func:`process_file`
:returns: same as :py:func:`process_file`
rQ   zIgnoring exception:T)Úexc_infoNzTrying to decrypt filez4Decrypt failed, run with debug output to get detailszAnalyze decrypted filez*Ignoring exception closing decrypted file:)ra  r   Úis_encryptedrÿ   rR   rS   ÚMAX_NESTING_DEPTHÚMaxCryptoNestingReachedÚDEFAULT_PASSWORDSÚlistÚdecryptr   ÚWrongEncryptionPasswordrø   Úprocess_maybe_encryptedr&   Úunlink)r0   Ú	passwordsÚcrypto_nestingÚkwargsr–   Údecrypted_files   &&&,  r   rk  rk  •  s¥  € ð" €FðÜ˜hÑ1¨&Ñ1ˆÜ×"Ò" 8×,Ò,ØˆMð -ð œ×1Ñ1Ô1Ü×,Ò,¨^ÓFÐFà€NØÒÜ×,Ñ,‰	ä˜“O¤f×&>Ñ&>Õ>ˆ	ð(Ü�‰Ð-Ô.ÜŸš¨Ó<ˆßÜ�L‰LÐOÔPÜ×0Ò0°Ó:Ð:Ü�‰Ð,Ô-Ü(¨Ø)7¸Õ)9ñEØ=CñEˆð	(Ü�IŠI�nÔ%ð €Møô= ô Ü�‰Ð*°TˆÔ:Ü×"Ò" 8×,Ò,Øò -ðûô6 ô 	(Ü�L‰LÐEØ"&ð õ (à€Mð	(ûð	(Ü�IŠI�nÕ%øÜô 	(Ü�L‰LÐEØ"&ð ö (ð	(ýsZ   „)D2 ÂBF! ÄE8 Ä2=E5Å0E5Å4E5Å8"FÆFÆ!G"Æ#F:Æ9G"Æ:"GÇG"ÇGÇG"c                óº  € \        V 4      p\        P                  ! VP                  VP                  \
        P                  R7       VP                  '       d   Rs\        P                  \        4       \        P                  RVP                  ,          4       Rp^p \        VP                  VP                  VP                  R7      p^ p\        P                  R4       VP'                  4        F  p\        P                  VRR	7       K  	  \        P(                  ! 4        V#   \          d)   p\        P#                  \%        T4      4        Rp?LˆRp?ii ; i)
zðMain function, called if this file is called as a script

Optional argument: command line arguments to be forwarded to ArgumentParser
in process_args. Per default (cmd_line_args=None), sys.argv is used. Option
mainly added for unit-testing
)rg   TzOpening file: %srQ   r@   Nz
DDE Links:zdde-link)r3   )rN   r	   Úenable_loggingÚjsonr7   r/  ÚstdoutÚ	nounquoterÆ   rR   Ú	print_strr   r0   rk  Úpasswordr>   rÿ   Ú	exceptionrC   Ú
splitlinesÚend_logging)rK   Úargsr®   Úreturn_coder  Úlinks   &     r   Úmainr~  Ì  s  € ô ˜Ó&€Dô
 ×Ò˜dŸi™i¨¯©¼s¿z¹zÕJà‡~‡~€~àˆ	ä
×Ñ”VÔÜ
×ÑÐ'¨$¯-©-Õ7Ô8à€DØ€Kð#Ü&Ø�M‰M˜4Ÿ=™=Ø"×4Ñ4ô6ˆð ˆô ×Ñ�\Ô"Ø—‘Ö!ˆÜ×Ñ˜ JÐÖ/ñ "ô ×ÒÔàÐøô ô #Ü×Ñœ˜S›×"Ñ"ûð#ús   Â.D' Ä'EÄ2EÅEÚ__main__)zword/document.xmlzword/endnotes.xmlzword/footnotes.xmlzword/header1.xmlzword/footer1.xmlzword/header2.xmlzword/footer2.xmlzword/comments.xml)-)Ú
CREATEDATErŸ   rŸ   rQ   ÚhsrÖ   )ÚDATErŸ   rŸ   rQ   ÚhlsrÖ   )ÚEDITTIMErŸ   rŸ   rQ   rQ   rÔ   )Ú	PRINTDATErŸ   rŸ   rQ   r�  rÖ   )ÚSAVEDATErŸ   rŸ   rQ   r�  rÖ   )ÚTIMErŸ   rŸ   rQ   rQ   rÖ   )ÚAUTHORrŸ   rÅ   rQ   rQ   rÚ   )ÚCOMMENTSrŸ   rÅ   rQ   rQ   rÚ   )ÚDOCPROPERTYrÅ   rŸ   rQ   rQ   zstring/numeric/datetime)ÚFILENAMErŸ   rŸ   rQ   ÚprÚ   )ÚFILESIZErŸ   rŸ   rQ   ÚkmrÔ   )ÚKEYWORDSrŸ   rÅ   rQ   rQ   rÚ   )ÚLASTSAVEDBYrŸ   rŸ   rQ   rQ   rÚ   )ÚNUMCHARSrŸ   rŸ   rQ   rQ   rÔ   )ÚNUMPAGESrŸ   rŸ   rQ   rQ   rÔ   )ÚNUMWORDSrŸ   rŸ   rQ   rQ   rÔ   )ÚSUBJECTrŸ   rÅ   rQ   rQ   rÚ   )ÚTEMPLATErŸ   rŸ   rQ   rŒ  rÚ   )ÚTITLErŸ   rÅ   rQ   rQ   rÚ   )ÚADVANCErŸ   rŸ   ÚdlruxyrQ   rQ   )ÚSYMBOLrÅ   rŸ   ÚfsÚahjurQ   )ÚFORMCHECKBOXrŸ   rŸ   rQ   rQ   rQ   )ÚFORMDROPDOWNrŸ   rŸ   rQ   rQ   rQ   )ÚFORMTEXTrŸ   rŸ   rQ   rQ   rQ   )ÚINDEXrŸ   rŸ   ÚbcdefghklpszÚryrQ   )ÚTArŸ   rŸ   ÚclrsÚbirQ   )ÚTCrÅ   rŸ   ÚflÚnrQ   )ÚTOArŸ   rŸ   ÚbcdeglsÚfhprQ   )ÚTOCrŸ   rŸ   ÚabcdflnopstÚhuwxzrQ   )ÚXErÅ   rŸ   Úfrtyr¤  rQ   )ÚBIBLIOGRAPHYrŸ   rŸ   ÚlfmrQ   rQ   )ÚCITATIONrÅ   rŸ   ÚlfspvmÚntyrQ   )ÚNOTEREFrÅ   rŸ   rQ   rª  rQ   )ÚPAGEREFrÅ   rŸ   rQ   ÚhprQ   )rÃ   rÅ   rŸ   rQ   rQ   rÖ   )ÚSTYLEREFrÅ   rŸ   rQ   ÚlnprtwrQ   )ÚLISTNUMrŸ   rÅ   ÚlsrQ   rQ   )ÚPAGErŸ   rŸ   rQ   rQ   rÔ   )ÚREVNUMrŸ   rŸ   rQ   rQ   rQ   )ÚSECTIONrŸ   rŸ   rQ   rQ   rÔ   )ÚSECTIONPAGESrŸ   rŸ   rQ   rQ   rÔ   )ÚSEQrÅ   rÅ   ÚrsÚchnrÔ   )ÚUSERADDRESSrŸ   rÅ   rQ   rQ   rÚ   )ÚUSERINITIALSrŸ   rÅ   rQ   rQ   rÚ   )ÚUSERNAMErŸ   rÅ   rQ   rQ   rÚ   r   )NrŸ   )\r   Ú
__future__r   r)   r&   r/  rQ  r:  rx   r'   ÚnormpathÚabspathÚdirnameÚ__file__Ú_thismodule_dirr   Ú_parent_dirÚinsertÚoletoolsr   r   r   Úoletools.ppt_record_parserr   r   Úoletools.common.io_encodingr   Úoletools.common.log_helperr	   Ú__version__r0  rÈ   rf   ÚNS_WORDÚNS_WORD_2003rÆ   r«   r£   rª   r¢   r©   r§   r­   Ú	LOCATIONSrã   ÚcompileÚIr¯   rE   rF   rG   rI   r   rB   Úget_or_create_silent_loggerrR   ÚArgumentParserr   r-   rN   rX   rb   rc   rd   re   rp   rr   r™   rÁ   r¨   rß   Útuplerá   rä   r±   r  Ú	RtfParserr
  r$  r)  r7  r<  r5  rD  r4  rR  rT  ra  rk  r~  r   Úexit)Únss   0r   Ú<module>rÞ     s|  ðñõ` &ã Û 	Û 
Û 	Û 
ã ð —'‘'×"Ñ" 2§7¡7§?¡?°2·7±7·?±?À8Ó3LÓ#MÓN€à�g‰g×Ñ˜rŸw™wŸ|™|¨O¸TÓBÓC€à�c—h‘hÔØ‡H�H‡O�O�A�{Ô#å Ý Ý Ý -Ý Ý EÝ 1ð8 €ð" ×Ñ�AÕ˜!ÔØ€Fð
 I€ØE€Ø€	à3:¸LÑ2IÓJÑ2I¨B�? R×'Ð'Ñ2IÑJ€Ø3:¸LÑ2IÓJÑ2I¨B�? R×'Ð'Ñ2IÑJ€Ø/6¸Ñ.EÓFÑ.E¨� ×#Ð#Ñ.EÑF€Ø#*¨LÑ"9Ó
:Ñ"9˜Bˆ7�R�<ˆ<Ñ"9Ñ
:€Ø#*¨LÑ"9Ó
:Ñ"9˜Bˆ7�R�<ˆ<Ñ"9Ñ
:€Ø,3°\Ñ+BÓCÑ+B R�˜b× Ð Ñ+BÑC€Ø8?ÀÑ7NÓOÑ7N°Ð'¨"×,Ð,Ñ7NÑOÐ ð6€	ðA€ðF —*’*Ð1°2·4±4Ó8€ð Ð Ø.Ð ØÐ Ø-Ð ð
ð õ
€ð Ð ð 
×	/Ò	/°Ó	9€ô
8˜(×1Ñ1ô 8òô#,òp
ð €Ø€Ø€ØÐ òLò^ òFô.D$òNð" —:’:˜nÓ-Ð ß�uÑK¹?ÓK—u‘uÑK¹?ÓKÓKÐ Ø—Z’Z Ó/Ð òRòj,!ô^B�V×%Ñ%ô Bð>  €	ô$ð8 Ð ð —’Ð<Ó=€ð €ò-ò`ð4  €ò!ô4)5ô^4ôn%ðP ˆzÔØ‡H‚H‰T‹VÖñ ùò_ KùÚJùÚFùÚ
:ùÚ
:ùÚCùÚOs*   Ä"LÄ=LÅL"Å3L'ÆL,Æ)L1ÇL6