�
J�gs � � � d Z ddlmZ ddlmZmZmZmZmZm Z ddl
mZ ddlm
Z
mZmZmZ ddlmZ ddlmZmZ dd lmZ d
ZdZdZg d
�Zd� e� � ZdZdZdZ G d� d� � Z! G d� de!� � Z" G d� de� � Z# G d� de� � Z$ G d� de� � Z% G d� d� � Z& G d� d� � Z'd S )!a%
Routines for organizing lines and larger blocks of text, with manual and
automatic line wrapping.
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.
� )�Number)�
NamedTuple�Any�List�Optional�Union�Sequence)�uuid4� )�Align�CharVPos�
TextDirection�WrapMode)�
FPDFException)�CoreFont�TTFFont)�
escape_parens� �-� )r u u u u u u u u u u u u u � � � �
�c �� � e Zd ZdZ d4deeef dedede ee
ef fd�Zd� Ze
d eeef fd
�� � Zej d� � � Ze
d� � � Ze
d
� � � Ze
d� � � Ze
d� � � Ze
d� � � Ze
d� � � Ze
d� � � Ze
d� � � Ze
d� � � Ze
d� � � Ze
d� � � Ze
d� � � Ze
d� � � Ze
d� � � Ze
d� � � Z e
d� � � Z!e
d� � � Z"e
d� � � Z#e
d� � � Z$e
d� � � Z%d e
fd!�Z&d"e'fd#�Z(d$� Z) d5d'e
d(e
d)ed*e*fd+�Z+d6d,�Z,d7d.efd/�Z-d0� Z.d1� Z/d2� Z0d3� Z1dS )8�FragmentzS
A fragment of text with font/size/style and other associated information.
N�
characters�graphics_state�k�linkc � � t |t � � rt |� � | _ n|| _ || _ || _ || _ d S �N)�
isinstance�str�listr r r r! )�selfr r r r! s �_/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fpdf/line_break.py�__init__zFragment.__init__2 sH � � �j�#�&�&� )�"�:�.�.�D�O�O�(�D�O�,�������� � � � c �H � d| j � d| j � d| j � d| j � d� S )NzFragment(characters=z, graphics_state=z, k=z, link=�)�r r r r! �r'