
    c?1i0                     4    d dl mZ d dlmZmZmZmZ d Zd Z	y)    N)	add_inputadd_n_digits	get_input
round_listc                 f    t        | d       t        |        | j                  dt        dd       y )NF)pagesz--max-depth   zFMaximum recursion depth to consider when parsing the table of contents)typedefaulthelp)r   r   add_argumentint)parsers    \/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/pypdfium2/_cli/toc.pyattachr      s3    fE"
W	      c           
         t        |       }|j                  | j                        }|D ]  }|j                         |j	                         }}d|j
                  z  }|d|dk7  r|dndd|j                         dz  }|rm|j                         |j                         c}\  }}	||d k7  r|d	z   nd
dt        j                  j                  |      dt        |	| j                        z  }n|dz  }t        |        y )N)	max_depthz    [r   +*z] z ->    ?z  #  _)r   get_tocr   	get_countget_destlevel	get_title	get_indexget_viewpdfium_iViewmodeToStrgetr   n_digitsprint)
argspdftocbmcountdestoutindex	view_modeview_poss
             r   mainr2      s    
D/C
+++
/C llnbkkmtrxx!QJuQiC/LLN
 	

 +/>>+;T]]_(E(Ix D=ac1&&**958T]]3 C 3JCc
#r   )
pypdfium2.internalinternalr#   pypdfium2._cli._parsersr   r   r   r   r   r2    r   r   <module>r7      s    & r   