+
    R<Âj  ã                   óV   € R t ^ RIt^ RIt^ RIHt ^ RIt^ RIHt R tR t	R t
RR ltR# )	ae  Module that contains the command line app.

Why does this file exist, and why not put this in __main__?
  You might be tempted to import things from __main__ later, but that will
  cause problems: the code will get executed twice:
  - When you run `python -m sqlparse` python will execute
    ``__main__.py`` as a script. That means there won't be any
    ``sqlparse.__main__`` in ``sys.modules``.
  - When you import __main__ it will get executed again (as a module) because
    there's no ``sqlparse.__main__`` in ``sys.modules``.
  Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration
N)ÚTextIOWrapper)ÚSQLParseErrorc                  óL  € . RSOp \         P                  ! RRRR7      pVP                  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R\        P                  R7       VP                  R4      pVP                  RRRRV RP                  RP                  R V  4       4      4      R 7       VP                  R!R"RR#V R$P                  RP                  R% V  4       4      4      R 7       VP                  R&R'R(R)R*R+.R,R 7       VP                  R-R.RRR/R7       VP                  R0R1R2RRR3R7       VP                  R4R5^\        R6R77       VP                  R8R9RRR:R7       VP                  R;R<RRR=R7       VP                  R>R?RRR@RA7       VP                  RBRCRRRDRA7       VP                  RERF^ \        RGR77       VP                  RHRIR\        RJR77       VP                  RKRLR\        RMR77       VP                  RNRORPRQRR7       V# )TÚupperÚ	sqlformatzEFormat FILE according to OPTIONS. Use "-" as FILE to read from stdin.z"%(prog)s [OPTIONS] FILE [FILE ...])ÚprogÚdescriptionÚusageÚfilenameÚ+z%file(s) to format (use "-" for stdin))ÚnargsÚhelpz-oz	--outfileÚoutfileÚFILEz)write output to FILE (defaults to stdout))ÚdestÚmetavarr   z
--in-placeÚinplaceÚ
store_trueFz0format files in-place (overwrite existing files))r   ÚactionÚdefaultr   z	--versionÚversion)r   r   zFormatting Optionsz-kz
--keywordsÚCHOICEÚkeyword_casez,change case of keywords, CHOICE is one of {}z, c              3   ó.   "  € T F  pR V R 2x € K  	  R# 5i©Ú"N© ©Ú.0Úxs   & ÚL/var/www/html/data_capital/venv/lib/python3.14/site-packages/sqlparse/cli.pyÚ	<genexpr>Ú create_parser.<locals>.<genexpr>G   ó   é € Ð6© 1˜˜!˜˜A•h«ùó   ‚)r   r   Úchoicesr   z-iz--identifiersÚidentifier_casez/change case of identifiers, CHOICE is one of {}c              3   ó.   "  € T F  pR V R 2x € K  	  R# 5ir   r   r   s   & r    r!   r"   O   r#   r$   z-lz
--languageÚLANGÚoutput_formatÚpythonÚphpzJoutput a snippet in programming language LANG, choices are "python", "php"z--strip-commentsÚstrip_commentszremove commentsz-rz
--reindentÚreindentzreindent statementsz--indent_widthÚindent_widthz(indentation width (defaults to 2 spaces))r   r   Útyper   z--indent_after_firstÚindent_after_firstz2indent after first line of statement (e.g. SELECT)z--indent_columnsÚindent_columnsz<indent all columns by indent_width instead of keyword lengthz-az--reindent_alignedz%reindent statements to aligned format)r   r   r   z-sz--use_space_around_operatorsz*place spaces around mathematical operatorsz--wrap_afterÚ
wrap_afterz*Column after which lists should be wrappedz--comma_firstÚcomma_firstz-Insert linebreak before comma (default False)z	--compactÚcompactz2Try to produce more compact output (default False)z
--encodingÚencodingzutf-8z*Specify the input encoding (default utf-8))r   r   r   )r   ÚlowerÚ
capitalize)
ÚargparseÚArgumentParserÚadd_argumentÚsqlparseÚ__version__Úadd_argument_groupÚformatÚjoinÚintÚbool)Ú_CASE_CHOICESÚparserÚgroups      r    Úcreate_parserrE      s  € Ú4€Mä×$Ò$Øð*à2ô	€Fð ×ÑØØØ4ð ô 6ð
 ×ÑØˆkØØØ8ð	 ô :ð ×ÑØØØØØ?ð ô Að ×ÑØØÜ×$Ñ$ð ô &ð
 ×%Ñ%Ð&:Ó;€Eà	×ÑØˆlØØØØ;×BÑBØ�I‰IÑ6©Ó6Ó6ó8ð ô 9ð 
×ÑØˆoØØØØ>×EÑEØ�I‰IÑ6©Ó6Ó6ó8ð ô 9ð 
×ÑØˆlØØØ˜5Ð!ð+ð ô ,ð 
×ÑØØØØØð ô  ð 
×ÑØˆlØØØØ"ð ô $ð 
×ÑØØØÜØ7ð ô 9ð 
×ÑØØ!ØØØAð ô Cð 
×ÑØØØØØKð ô Mð 
×ÑØÐ"ØØØ4ð	 ô 6ð 
×ÑØÐ,ØØØ9ð	 ô ;ð 
×ÑØØØÜØ9ð ô ;ð 
×ÑØØØÜØ<ð ô >ð 
×ÑØØØÜØAð ô Cð 
×ÑØØØØ9ð	 ô ;ð €Mó    c                óL   € \         P                  P                  RV  R24       ^# )z5Print msg and optionally exit with return code exit_.z[ERROR] Ú
)ÚsysÚstderrÚwrite)Úmsgs   &r    Ú_errorrM   ¦   s    € ä‡J�J×Ñ�x ˜u BÐ'Ô(ÙrF   c                ó  € V R8X  d   VP                   '       d   \        R4      # V R8X  dR   \        \        P                  P
                  VP                  R7      p VP                  4       pVP                  4        MG \        WP                  R7      ;_uu_ 4       pRP                  VP                  4       4      pRRR4       RpVP                   '       d    \        V R	VP                  R7      pR
pMHVP                  '       d'    \        VP                  R	VP                  R7      pR
pM\        P                  p\        V4      p \         P"                  P%                  V4      p\         P(                  ! X3/ TB p	TP+                  T	4       TP-                  4        T'       d   TP/                  4        ^ #   TP                  4        i ; i  + '       g   i     EL; i  \         d   p\        RT  RT 24      u Rp?# Rp?ii ; i  \         d   p\        RT  RT 24      u Rp?# Rp?ii ; i  \         d&   p\        RTP                   RT 24      u Rp?# Rp?ii ; i  \&         d   p\        RT 24      u Rp?# Rp?ii ; i)z\Process a single file with the given formatting options.

Returns 0 on success, 1 on error.
Ú-z Cannot use --in-place with stdin)r5   Ú NzFailed to read z: FÚwTzFailed to open zInvalid options: )r   rM   r   rI   ÚstdinÚbufferr5   ÚreadÚdetachÚopenr?   Ú	readlinesÚOSErrorr   ÚstdoutÚvarsr;   Ú	formatterÚvalidate_optionsr   r>   rK   ÚflushÚclose)
r
   ÚargsÚwrapperÚdataÚfÚeÚclose_streamÚstreamÚformatter_optsÚss
   &&        r    Ú_process_filerh   ¬   s
  € ð �3„˜4Ÿ<Ÿ<˜<ÜÐ8Ó9Ð9ð �3„Ü¤§	¡	× 0Ñ 0¸4¿=¹=ÔIˆð	Ø—<‘<“>ˆDà�N‰NÕð	=Ü�h¯©×7Õ7¸1Ø—w‘w˜qŸ{™{›}Ó-�÷ 8ð €LØ‡|‡|€|ð	=Ü˜( C°$·-±-Ô@ˆFØ‰Lð 
��ˆð	AÜ˜$Ÿ,™,¨°d·m±mÔDˆFØ‰Lô —‘ˆô ˜$“Z€Nð/Ü!×+Ñ+×<Ñ<¸^ÓLˆô 	�Š˜Ñ/ Ñ/€AØ
‡L�L�„OØ
‡L�L„NßØ�‰ŒÙøðK �N‰NÕú÷ 8×7Ð7ûäô 	=Ü˜O¨H¨:°R¸°sÐ;Ó<Õ<ûð	=ûô ô 	=Ü˜O¨H¨:°R¸°sÐ;Ó<Õ<ûð	=ûô ô 	AÜ˜O¨D¯L©L¨>¸¸A¸3Ð?Ó@Õ@ûð	Aûô ô /ÜÐ)¨!¨Ð-Ó.Õ.ûð/ús¢   ÁF9 Á>G" Â GÂ<G" ÃH Ä$H4 ÅI' Æ9GÇG	ÇG" ÇG" Ç"HÇ-HÇ=HÈHÈH1ÈH,È&H1È,H1È4I$È?IÉI$ÉI$É'J
É2JÉ?J
ÊJ
c                 ó:  € \        4       pVP                  V 4      p \        V P                  4      ^8”  d;   V P                  '       d   \        R4      # V P                  '       g   \        R4      # ^ pV P                   F  p\        W04      pV^ 8w  g   K  TpK  	  V# )é   z+Cannot use -o/--outfile with multiple filesz&Multiple files require --in-place flag)rE   Ú
parse_argsÚlenr
   r   rM   r   rh   )r_   rC   Ú	exit_coder
   Úresults   &    r    Úmainro   ã   s‰   € Ü‹_€FØ×Ñ˜TÓ"€Dô ˆ4�=‰=Ó˜AÔØ�<�<ˆ<ÜÐGÓHÐHØ�|�|ˆ|ÜÐBÓCÐCð €IØ—M”MˆÜ˜xÓ.ˆØ�QŽ;ØŠIñ "ð ÐrF   )N)Ú__doc__r8   rI   Úior   r;   Úsqlparse.exceptionsr   rE   rM   rh   ro   r   rF   r    Ú<module>rs      s2   ðñó Û 
Ý ã Ý -ò
EòPò4önrF   