
    .i0                     6    d dl mZ d dlmZmZmZmZ d Zd Z	dS )    N)	add_inputadd_n_digits	get_input
round_listc                     t          | d           t          |            |                     dt          dd           d S )NF)pagesz--max-depth   zFMaximum recursion depth to consider when parsing the table of contents)typedefaulthelp)r   r   add_argumentint)parsers    N/var/www/html/analyses/venv/lib/python3.11/site-packages/pypdfium2/_cli/toc.pyattachr      sV    fE""""
W	          c           
      .   t          |           }|                    | j                  }|D ]}|                                |                                }}d|j        z  }|d|dk    r|dndd|                                dz  }|ru|                                |                                c}\  }}	||d k    r|d	z   nd
dt          j
                            |          dt          |	| j                  z  }n|dz  }t          |           d S )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      s4   
D//C
+++
/
/C  llnnbkkmmtrx!QJJuLLLC//LLNNNN
 	

  	+/>>+;+;T]]__(E(Ix D==ac11&**955558T]333 CC 3JCc



# r   )
pypdfium2.internalinternalr#   pypdfium2._cli._parsersr   r   r   r   r   r2    r   r   <module>r7      s}    & % % % % %                 r   