�
J�g � � � d Z ddlmZ ddlmZmZ ddlmZmZm Z G d� de� � Z
G d� d e� � Z G d
� de� � Z G d� d
� � Z
dS )u�
Quoting the PDF spec:
> PDF’s logical _structure facilities_ provide a mechanism for incorporating
> structural information about a document’s content into a PDF file.
> The logical structure of a document is described by a hierarchy of objects called
> the _structure hierarchy_ or _structure tree_.
> At the root of the hierarchy is a dictionary object called the _structure tree root_,
> located by means of the **StructTreeRoot** entry in the document catalog.
The contents of this module are internal to fpdf2, and not part of the public API.
They may change at any time without prior warning or any deprecation period,
in non-backward-compatible ways.
� )�defaultdict)�List�Union� )� PDFObject� PDFString�PDFArrayc �2 � � e Zd ZdZdZ� fd�Zd� fd� Z� xZS )�
NumberTreeu� A number tree is similar to a name tree, except that its keys are integers
instead of strings and are sorted in ascending numerical order.
A name tree serves a similar purpose to a dictionary—associating keys and
values—but by different means.
The values associated with the keys may be objects of any type. Stream objects
are required to be specified by indirect object references. It is recommended,
though not required, that dictionary, array, and string objects be specified by
indirect object references, and other PDF objects (nulls, numbers, booleans,
and names) be specified as direct objects
)�_id�numsc �z �� t � � � � � t t � � | _ d S �N)�super�__init__r �listr
��self� __class__s ��c/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fpdf/structure_tree.pyr zNumberTree.__init__&