
    HAi              
          S SK r S SKrS SKJr  S SKJr  S SKJrJrJrJ	r	J
r
JrJrJrJrJrJr  SSKJr  SSKJrJr  SSKJr  SS	KJrJrJr  SS
KJr  SSKJ r!  SSKJ"r"J#r#J$r$  SSKJ%r&  SSKJ'r(  SSKJ)r*  SSKJ+r,  SSKJ-r.  SSK/J0r0J1r1  SSK2J3r3J4r4J5r5J6r6J7r7J8r8J9r9J:r:J;r;J<r<J=r=J>r>J?r?J@r@JArAJBrBJCrCJDrDJErE  SSKFJGrG  SSKHJIrIJJrJ  SSKKJLrL  S\MS\NS\\N\\S4   4   4S jrO " S S\75      rP " S S5      rQ " S  S!\\\4   5      rRg)"    N)abstractmethod)datetime)AnyDict	GeneratorIterableIteratorListMappingOptionalTupleUnioncast   )
Encryption)
PageObject_VirtualList)index2label)deprecate_with_replacementlogger_warningparse_iso8824_date)CatalogAttributes)CatalogDictionary)CheckboxRadioButtonAttributesGoToActionArgumentsUserAccessPermissions)Core)DocumentInformationAttributes)FieldDictionaryAttributes)PageAttributes)PagesAttributes)PdfReadError
PyPdfError)ArrayObjectBooleanObjectByteStringObjectDestinationDictionaryObjectEncodedStreamObjectFieldFitFloatObjectIndirectObject
NameObject
NullObjectNumberObject	PdfObjectTextStringObject
TreeObjectViewerPreferencescreate_string_objectis_null_or_none)EmbeddedFile)OutlineTypePagemodeType)XmpInformationdsizereturn.c                 l    US:  a  [        S5      eSU -   n U SS  n [        R                  " SU 5      S   $ )N   zInvalid size in convert_to_ints           iz>qr   )r"   structunpack)r;   r<   s     M/var/www/html/land-ocr/venv/lib/python3.13/site-packages/pypdf/_doc_common.pyconvert_to_intrC   `   s@    ax;<<+a/A	"#A==q!!$$    c                      \ rS rSrSrSS jrS\S\\   4S jr\	S\\   4S j5       r
\	S\\   4S	 j5       r\	S\\   4S
 j5       r\	S\\   4S j5       r\	S\\   4S j5       r\	S\\   4S j5       r\	S\\   4S j5       r\	S\\   4S j5       r\	S\\   4S j5       r\	S\\   4S j5       r\	S\\   4S j5       r\	S\\   4S j5       r\	S\\   4S j5       r\	S\\   4S j5       r\	S\\   4S j5       r\	S\\   4S j5       rSrg)DocumentInformationh   aY  
A class representing the basic document metadata provided in a PDF File.
This class is accessible through
:py:class:`PdfReader.metadata<pypdf.PdfReader.metadata>`.

All text properties of the document metadata have
*two* properties, e.g. author and author_raw. The non-raw property will
always return a ``TextStringObject``, making it ideal for a case where the
metadata is being displayed. The raw property can sometimes return a
``ByteStringObject``, if pypdf was unable to decode the string's text
encoding; this requires additional safety in the caller and therefore is not
as commonly accessed.
r=   Nc                 0    [         R                  " U 5        g N)r(   __init__selfs    rB   rJ   DocumentInformation.__init__w   s    !!$'rD   keyc                     U R                  US 5      n[        U[        5      (       a  U$ [        U[        5      (       a  [	        U5      $ g rI   )get
isinstancer2   r&   str)rL   rN   retvals      rB   	_get_textDocumentInformation._get_textz   s@    #t$f.//Mf.//v;rD   c                     U R                  [        R                  5      (       aS  U R                  [        R                  5      =(       d-    U R                  [        R                  5      R	                  5       $ S$ )z
Read-only property accessing the document's title.

Returns a ``TextStringObject`` or ``None`` if the title is not
specified.
N)rP   DITITLErT   
get_objectrK   s    rB   titleDocumentInformation.title   sS     xx!! NN288$G(:(E(E(G	
 	
rD   c                 @    U R                  [        R                  5      $ )z>The "raw" version of title; can return a ``ByteStringObject``.)rP   rW   rX   rK   s    rB   	title_rawDocumentInformation.title_raw   s     xx!!rD   c                 @    U R                  [        R                  5      $ )z
Read-only property accessing the document's author.

Returns a ``TextStringObject`` or ``None`` if the author is not
specified.
)rT   rW   AUTHORrK   s    rB   authorDocumentInformation.author   s     ~~bii((rD   c                 @    U R                  [        R                  5      $ )z?The "raw" version of author; can return a ``ByteStringObject``.)rP   rW   r`   rK   s    rB   
author_rawDocumentInformation.author_raw   s     xx		""rD   c                 @    U R                  [        R                  5      $ )z
Read-only property accessing the document's subject.

Returns a ``TextStringObject`` or ``None`` if the subject is not
specified.
)rT   rW   SUBJECTrK   s    rB   subjectDocumentInformation.subject   s     ~~bjj))rD   c                 @    U R                  [        R                  5      $ )z@The "raw" version of subject; can return a ``ByteStringObject``.)rP   rW   rg   rK   s    rB   subject_rawDocumentInformation.subject_raw        xx

##rD   c                 @    U R                  [        R                  5      $ )a3  
Read-only property accessing the document's creator.

If the document was converted to PDF from another format, this is the
name of the application (e.g. OpenOffice) that created the original
document from which it was converted. Returns a ``TextStringObject`` or
``None`` if the creator is not specified.
)rT   rW   CREATORrK   s    rB   creatorDocumentInformation.creator   s     ~~bjj))rD   c                 @    U R                  [        R                  5      $ )z@The "raw" version of creator; can return a ``ByteStringObject``.)rP   rW   ro   rK   s    rB   creator_rawDocumentInformation.creator_raw   rm   rD   c                 @    U R                  [        R                  5      $ )a  
Read-only property accessing the document's producer.

If the document was converted to PDF from another format, this is the
name of the application (for example, macOS Quartz) that converted it to
PDF. Returns a ``TextStringObject`` or ``None`` if the producer is not
specified.
)rT   rW   PRODUCERrK   s    rB   producerDocumentInformation.producer   s     ~~bkk**rD   c                 @    U R                  [        R                  5      $ )zAThe "raw" version of producer; can return a ``ByteStringObject``.)rP   rW   rv   rK   s    rB   producer_raw DocumentInformation.producer_raw        xx$$rD   c                 R    [        U R                  [        R                  5      5      $ )z:Read-only property accessing the document's creation date.)r   rT   rW   CREATION_DATErK   s    rB   creation_date!DocumentInformation.creation_date   s     "$..1A1A"BCCrD   c                 @    U R                  [        R                  5      $ )z
The "raw" version of creation date; can return a ``ByteStringObject``.

Typically in the format ``D:YYYYMMDDhhmmss[+Z-]hh'mm`` where the suffix
is the offset from UTC.
)rP   rW   r~   rK   s    rB   creation_date_raw%DocumentInformation.creation_date_raw   s     xx(())rD   c                 R    [        U R                  [        R                  5      5      $ )z|
Read-only property accessing the document's modification date.

The date and time the document was most recently modified.
)r   rT   rW   MOD_DATErK   s    rB   modification_date%DocumentInformation.modification_date   s     "$.."=>>rD   c                 @    U R                  [        R                  5      $ )z
The "raw" version of modification date; can return a
``ByteStringObject``.

Typically in the format ``D:YYYYMMDDhhmmss[+Z-]hh'mm`` where the suffix
is the offset from UTC.
)rP   rW   r   rK   s    rB   modification_date_raw)DocumentInformation.modification_date_raw   s     xx$$rD   c                 @    U R                  [        R                  5      $ )z
Read-only property accessing the document's keywords.

Returns a ``TextStringObject`` or ``None`` if keywords are not
specified.
)rT   rW   KEYWORDSrK   s    rB   keywordsDocumentInformation.keywords   s     ~~bkk**rD   c                 @    U R                  [        R                  5      $ )zAThe "raw" version of keywords; can return a ``ByteStringObject``.)rP   rW   r   rK   s    rB   keywords_raw DocumentInformation.keywords_raw  r|   rD    )r=   N)__name__
__module____qualname____firstlineno____doc__rJ   rR   r   rT   propertyrZ   r]   ra   rd   rh   rk   rp   rs   rw   rz   r   r   r   r   r   r   r   __static_attributes__r   rD   rB   rF   rF   h   s   (S Xc]  
x} 
 
 "8C= " " ) ) ) #HSM # # *# * * $Xc] $ $ 	*# 	* 	* $Xc] $ $ 	+(3- 	+ 	+ %hsm % % Dx1 D D *8C= * * ?8H#5 ? ? %x} % % +(3- + + %hsm % %rD   rF   c                   Z   \ rS rSr% SrSr\\S'   Sr\	\
\      \S'   Sr\	\   \S'   Sr\\S'   \\S	\4S
 j5       5       r\\S	\4S j5       5       r\S\\\4   S	\	\   4S j5       r\S\S\S	\4S j5       r\\S	\	\   4S j5       5       r\S	\	\   4S j5       r\S	\	\   4S j5       r\S	\	\    4S j5       r!S	\4S jr"S\S	\4S jr#S\S	\$\\4   4S jr%\S	\&\\'4   4S j5       r(S	\)4S jr*  SYS\\+S4   S\	\&\\'4      S	\&\\'4   4S jjr,    SZS\	\+   S\	\&\-\-4      S\	\-   S\	\
\      S	\	\&\\-4      4
S  jjr.S!\S	\4S" jr/S#\\+\4   S\&\-\-4   S\-S$\-S\
\   S	S4S% jr0S\\+\4   S\-S\-S\
\   S	S4
S& jr1S\-S#\-S$\-S	S4S' jr2S[S(\S	\&\\-4   4S) jjr3S#\\4\\4   S	\
\   4S* jr5\S	\S\'\6\74   4S+ j5       r8\8Rr                  S,\S\\'\4   S	S4S- j5       r8\S	\:4S. j5       r; SYS/\	\   S0\	\-   S	\:4S1 jjr<\S	\	\)   4S2 j5       r=\S\S\\>\4   S	\	\   4S3 j5       r?S4\S	\	\   4S5 jr@S6\'S	\	\   4S7 jrAS8\S9\	\
\\B\S\>\4         S	\'4S: jrCS/\S	\	\'   4S; jrD\S	\
\   4S< j5       rE\S	\
\   4S= j5       rF\S	\	\   4S> j5       rG\S	\	\H   4S? j5       rI    S\S@\SA\S\\4   SB\	\&\\-4      S\	\   S	S4
SC jjrJ S[S4\\\\4   SD\S	S4SE jjrKSF\SG\S	\	\   4SH jrLSI\S	\&\\4   4SJ jrM\S	\	\N   4SK j5       rO\\S	\4SL j5       5       rP\S	\	\&\\-4      4SM j5       rQ\S	\R\\
\S   4   4SN j5       rT\S	\U\VSS4   4SO j5       rWS	\
\   4SP jrXSQ\S	\
\S   4SR jrY S]SS\	\   S	\&\\\S\
\S   4   4   4ST jjrZ\  SYSU\S\[\   4   SV\S\[\   4   S	\&\\-4   4SW jj5       r\SXr]g)^PdfDocCommoni  za
Common functions from PdfWriter and PdfReader objects.

This root class is strongly abstracted.
FstrictNflattened_pages_encryption	_readonlyr=   c                     g rI   r   rK   s    rB   root_objectPdfDocCommon.root_object       	rD   c                     g rI   r   rK   s    rB   
pdf_headerPdfDocCommon.pdf_header  r   rD   indirect_referencec                     g rI   r   rL   r   s     rB   rY   PdfDocCommon.get_object!       	rD   indirectobjc                     g rI   r   )rL   r   r   s      rB   _replace_objectPdfDocCommon._replace_object'      rD   c                     g rI   r   rK   s    rB   _infoPdfDocCommon._info+  r   rD   c                 l    [        5       nU R                  c  gUR                  U R                  5        U$ )z
Retrieve the PDF file's document information dictionary, if it exists.

Note that some PDF files use metadata streams instead of document
information dictionaries, and these metadata streams will not be
accessed by this function.
N)rF   r   update)rL   rS   s     rB   metadataPdfDocCommon.metadata0  s.     %&::djj!rD   c                     g rI   r   rK   s    rB   xmp_metadataPdfDocCommon.xmp_metadata?  r   rD   c                    U R                   R                  [        R                  S5      nUc  gUR	                  5       n[        U[        5      (       dl  [        U5      n[        US5      (       a+  UR                  b  U R                  UR                  U5        U$ XR                   [        [        R                  5      '   U$ )zCReturns the existing ViewerPreferences as an overloaded dictionary.Nr   )r   rP   CDVIEWER_PREFERENCESrY   rQ   r4   hasattrr   r   r.   )rL   os     rB   viewer_preferencesPdfDocCommon.viewer_preferencesC  s       !6!6=9LLN!.//!!$Aq.//A4H4H4T$$Q%9%91=  GH  B,A,A!BCrD   c                     U R                   (       a  U R                  S   S   $ U R                  c  U R                  U R                  5        U R                  c   e[        U R                  5      $ )z
Calculate the number of pages in this PDF file.

Returns:
    The number of pages of the parsed PDF file.

Raises:
    PdfReadError: If restrictions prevent this action.

/Pages/Count)is_encryptedr   r   _flattenr   lenrK   s    rB   get_num_pagesPdfDocCommon.get_num_pagesR  sb     ##H-h77'MM$..)##///4''((rD   page_numberc                     U R                   c  U R                  U R                  5        U R                   c   S5       eU R                   U   $ )z
Retrieve a page by number from this PDF file.
Most of the time ``.pages[page_number]`` is preferred.

Args:
    page_number: The page number to retrieve
        (pages begin at zero)

Returns:
    A :class:`PageObject<pypdf._page.PageObject>` instance.

zhint for mypy)r   r   r   )rL   r   s     rB   get_pagePdfDocCommon.get_pageg  sH     'MM$..)##/@@/##K00rD   c                    ^^^ [        [        U R                  S   5      mS[        S[        S[        [
        [           [        4   4UUU4S jjmT" TS5      u  p#[        U[        5      (       d   S5       eX#4$ )z
Retrieve the node and position within the /Kids containing the page.
If page_number is greater than the number of pages, it returns the top node, -1.
r   nodemir=   c                   > [        [        U R                  SS5      5      nU S   S:X  a  TU:X  a  U S4$ S US-   4$ TU-
  U:  a  U T	:X  a  T	S4$ S X-   4$ [        [        [        U S   5      5       HB  u  p4[        [
        UR                  5       5      nT" XA5      u  pVUb  US:  a  X4s  $ XV4s  $ UnMD     [        S5      e)	Nr   r   z/Type/Page/Kidsr   z"Unexpectedly cannot find the node.)r   intrP   	enumerater$   r(   rY   r#   )
r   r   maidxkidnir   recursive_calltops
          rB   r   6PdfDocCommon._get_page_in_node.<locals>.recursive_call  s     c488Ha01BG}'"$8OR!V|#b R'3;7NRW}$%d;W&FG+S^^-=>%c.=1u#y(4K H ABBrD   r   mypy)r   r(   r   r   r   r   r1   rQ   )rL   r   r   r   r   r   s    `  @@rB   _get_page_in_nodePdfDocCommon._get_page_in_nodey  s     #T%5%5h%?@	C"	C(+	C8I&+,	C 	C. #3*	$ 0119691yrD   c                 "    U R                  5       $ )z8A read-only dictionary which maps names to destinations.)_get_named_destinationsrK   s    rB   named_destinationsPdfDocCommon.named_destinations  s     ++--rD   c                    [        5       n[        R                  U R                  ;   Ga  [	        U R                  [        R                     [
        5      (       GaU  [        [
        U R                  [        R                     5      n[        R                  U;   a  [	        U[        R                     [
        5      (       a  [        [
        U[        R                     5      nUR                  n[        R                  U;   a#  [        [         U[        R                     5      nU$ [        5       nX[        [        R                  5      '    U$ [        U S5      (       aQ  [        5       nU R                  U5      nXB[        [        R                  5      '   X[        [        R                  5      '   U$ [        U S5      (       a  [        5       nU R                  U5      nXPR                  [        [        R                  5      '   [        5       nU R                  U5      nXB[        [        R                  5      '   X[        [        R                  5      '   U$ )N_add_object)r$   CANAMESr   rQ   r(   r   DESTSr   r.   r   r   )rL   
named_destnamesdests	dests_ref	names_refs         rB   get_named_dest_root PdfDocCommon.get_named_dest_root  s    ]
88t'''JRXX&(8-
 -
 )4+;+;BHH+EFExx5 ZbhhAQ%R%R-uRXX?!44	88u$!%k5?!CJ& # "-J2<*RXX./   }--(* ,,U3	.7j*+.8j*+  T=))$&E((/I5>Z12$&E((/I*3*RXX&'*4*RXX&'rD   treerS   c                 <   Uc  0 nU R                   n[        R                  U;   a"  [        [        U[        R                     5      nOj[        R
                  U;   aV  [        [        U[        R
                     5      n[        R                  U;   a!  [        [        U[        R                     5      n[        U5      (       a  U$ Uc   S5       e[        R                  U;   aJ  [        [        U[        R                     5       H#  nU R                  UR                  5       U5        M%     U$ [        R
                  U;   a  [        [        U[        R
                     5      nSnU[        U5      :  a  XF   R                  5       nUS-  n[        U[        [         45      (       d  MC  [!        U5      n XF   R                  5       n	US-  n[        U	[        5      (       a  SU	;   a  U	S   n	OM  U R%                  X5      n
U
b  XU'   U[        U5      :  a  M  U$ UR'                  5        H`  u  pUR                  5       n[        U[        5      (       a  SU;   a  US   R                  5       nOMF  U R%                  X5      n
U
c  M\  XU'   Mb     U$ ! ["         a     U$ f = f)z
Retrieve the named destinations present in the document.

Args:
    tree: The current tree.
    retval: The previously retrieved destinations for nested calls.

Returns:
    A dictionary which maps names to destinations.

r   r   r   /D)r   r   r   r   r3   r   r(   r6   PAKIDSr$   r   rY   r   rQ   bytesrR   
IndexError_build_destinationitems)rL   r   rS   catalogr   r   r   original_keyrN   valuedestk__v__vals                 rB   r   $PdfDocCommon._get_named_destinations  sH     >F&&G xx7"J(9:W$-wrxx/@A88u$
E"((O<D4  M''77d?Kbgg7,,S^^-=vF 8H C XX)4>:EAc%j.$x224Q!,==,'!H//1E Qe%566u} %d ..s:#"&3K% c%j.<  !JJLnn&c#344s{!$i224 ..s8#"&3K ) - " * -s   2J 
JJfileobjstackc                   ^ [         R                  " 5       nUR                  [        R                  " 5       5        UcN  0 nU R                  n/ n[
        R                  U;   a)  [        [        [           U[
        R                     5      mOgTc  U$ Uc   eST;   aA  [        [        TS   5      nU H&  nUR                  5       n	U R                  XX5U5        M(     U$ [        U4S jU 5       5      (       a  U R                  TX#XT5        U$ )aW  
Extract field data if this PDF contains interactive form fields.

The *tree*, *retval*, *stack* parameters are for recursive use.

Args:
    tree: Current object to parse.
    retval: In-progress list of fields.
    fileobj: A file object (usually a text file) to write
        a report to on all interactive form fields found.
    stack: List of already parsed objects.

Returns:
    A dictionary where each key is a field name, and each
    value is a :class:`Field<pypdf.generic.Field>` object. By
    default, the mapping name is used for keys.
    ``None`` if form data could not be located.

Nz/Fieldsc              3   ,   >#    U  H	  oT;   v   M     g 7frI   r   ).0attrr   s     rB   	<genexpr>*PdfDocCommon.get_fields.<locals>.<genexpr>=  s     ;*:$*:   )FAattributes_dictr   r   r   r   	ACRO_FORMr   r   r3   r$   rY   _build_fieldany)
rL   r   rS   r  r  field_attributesr   fieldsffields
    `        rB   
get_fieldsPdfDocCommon.get_fields  s    4 --/ = M M OP>F&&GE||w&HZ0'",,2GH<M   +tI7F!!%ER   ;*:;;;dF5EMrD   parentc                    SU;   a  [        [        US   5      $ SU;   aF  U R                  [        [        US   5      5      S-   [        [        UR	                  SS5      5      -   $ [        [        UR	                  SS5      5      $ )N/TM/Parent./T )r   rR   _get_qualified_field_namer(   rP   )rL   r  s     rB   r  &PdfDocCommon._get_qualified_field_nameB  s    F?VE]++..)6)+<=  sFJJtR01	2 CD"-..rD   r  r  c                   ^ [        U4S jS 5       5      (       a  g U R                  T5      nU(       a$  U R                  UTU5        UR                  S5        [	        T5      X&'   X&   R
                  R                  5       nUR                  [        R                  S5      S:X  a*  U[        [        R                  5         X&   [        S5      '   UR                  [        R                  S5      S:X  aq  SU;   ak  [        [        US   S	   R                  5       5      5      X&   [        S5      '   S
X&   S   ;  a(  X&   [        S5         R                  [        S
5      5        GOtUR                  [        R                  S5      S:X  GaO  UR                  [        R                   S5      [        R"                  R$                  -  S:w  Ga  / n[        U5      X&   [        S5      '   UR                  [        R&                  0 5       Hj  n	U	R                  5       n	[        U	S   S	   R                  5       5       H  n
X;  d  M
  UR                  U
5        M     [        U5      X&   [        S5      '   Ml     UR                  [        R                   S5      [        R"                  R(                  -  S:w  a'  S
X&   S   ;   a  X&   S   X&   S   R+                  S
5      	 U R-                  TX#U5        g )Nc              3   ,   >#    U  H	  oT;  v   M     g 7frI   r   )r  r	  r  s     rB   r
  ,PdfDocCommon._build_field.<locals>.<genexpr>W  s     ;]T5 ]r  )r  r  
r  /Chz	/_States_/Btnz/APz/Nz/Offr   )allr  _write_fieldwriter*   r   rY   rP   r  FTr.   Optr$   listkeysappendFfFfBitsRadioKidsNoToggleToOffindex_check_kids)rL   r  rS   r  r  r  rN   r   stateskss    `         rB   r  PdfDocCommon._build_fieldO  sN    ;];;;,,U3gu.>?MM$Elk,,77977255"&36z"&&7I3JFK
;/077255"'ESL3>SZ%**,-4FK
;/0 V[55J{34;;Jv<NOWWRUUB6)cggbeeQ.?"))//.QUV.V "F3>v3FFK
;/0WWRWWb)LLNahtn1134Aa( 5 8C67JJ{34 * q!BII$;$;;q@fk+66K,V[-E-K-KF-ST7rD   c                    X;   a#  [        U R                  U5       S3[        5        g UR                  U5        [        R
                  U;   a=  U[        R
                      H%  nUR                  5       nU R                  XRX45        M'     g g )Nz already parsed)r   r  r   r.  r   r   rY   r  )rL   r   rS   r  r  r   s         rB   r5  PdfDocCommon._check_kidsy  sv     =11$78H( T77d?BGG}nn&W< % rD   c                 r   [         R                  " 5       nU[        R                  " 5       -   nU H  nU[         R                  [         R                  4;   a  M)  X5   n U[         R
                  :X  a/  SSSSS.nX%   U;   a  UR                  U SXrU       S35        Mo  Mq  U[         R                  :X  a/   X%   [         R                     nUR                  U SU S35        M  UR                  U SX%    S35        M     g ! [         a    X%   [         R                     n NXf = f! [         a     GM  f = f)NButtonTextChoice	Signature)r&  /Txr%  z/Sig: r$  )r  
attributesr   r2  AAr*  r)  ParentTMKeyErrorT)	rL   r  r  r  field_attributes_tupler	  	attr_nametypesnames	            rB   r(  PdfDocCommon._write_field  s;   !#"%B%M%M%OO 	 +D  (.I255= !)%' +	E {e+2e$K6H5I&LM ,RYY&1${2551 MMYKr$r":;MMYKr%+b"AB5 +, $ 1${24401
  sB   ?D'!D'6DD'$D'D$!D'#D$$D''
D65D6full_qualified_namec           
      j   S[         S[        [        [        4   S[         4S jnU R                  5       nUc  0 $ 0 nUR	                  5        Hc  u  pVUR                  S5      S:X  d  M  U(       a  UR                  S5      XE'   M8  UR                  S5      XB" [        [         US   5      U5      '   Me     U$ )	a_  
Retrieve form fields from the document with textual data.

Args:
    full_qualified_name: to get full name

Returns:
    A dictionary. The key is the name of the form field,
    the value is the content of the field.

    If the document contains multiple form fields with the same name, the
    second and following will get the suffix .2, .3, ...

r7  r  r=   c                 b   ^  T U;  a  T $ T S-   [        [        U 4S jU 5       5      S-   5      -   $ )Nr  c              3   \   >#    U  H!  oR                  TS -   5      (       d  M  Sv   M#     g7f)r  r   N)
startswith)r  kkr7  s     rB   r
  IPdfDocCommon.get_form_text_fields.<locals>.indexed_key.<locals>.<genexpr>  s      Gfa#g0F!!fs   ,	,   )rR   sum)r7  r  s   ` rB   indexed_key6PdfDocCommon.get_form_text_fields.<locals>.indexed_key  s=    cGfGG!KLMrD   /FTrA  z/Vr  )rR   r   r   r  r   rP   r   )rL   rN  rW  
formfieldsffr  r   s          rB   get_form_text_fields!PdfDocCommon.get_form_text_fields  s     	3 	S#X 	3 	 __&
I&,,.LEyy5(& %		$BIBG))D/B{4U4[#92>? / 	rD   c           
        ^ S[         S[        S[        4U4S jjm [        [         UR                  R                  5       5      n[        T" US5      5      (       a  [        S5      e/ nUR                  S	S
5      S:X  aZ  SU;   a  US   R                  5       /nOU R                   Vs/ s H'  nUR                  UR                  SS
5      ;   d  M%  UPM)     nnOUR                  SS5      nU H  nUR                  5       nUR                  S	S
5      S:X  d  M+  SU;  d  M3  SU;   a  X6S   R                  5       /-  nMQ  UU R                   Vs/ s H'  nUR                  UR                  SS
5      ;   d  M%  UPM)     sn-  nM     U Vs/ s HB  n[        U[        5      (       a  UO'U R                  U R                  UR                  5         PMD     sn$ ! [         a  n[        S5      UeSnAff = fs  snf s  snf s  snf )a  
Provides list of pages where the field is called.

Args:
    field: Field Object, PdfObject or IndirectObject referencing a Field

Returns:
    List of pages:
        - Empty list:
            The field has no widgets attached
            (either hidden field or ancestor field).
        - Single page list:
            Page where the widget is present
            (most common).
        - Multi-page list:
            Field with multiple kids widgets
            (example: radio buttons, field repeated on multiple pages).

r   rN   r=   c                 t   > X;   a  X   $ SU ;   a(  T" [        [        U S   R                  5       5      U5      $ g )Nr  )r   r(   rY   )r   rN   _get_inheriteds     rB   r`  <PdfDocCommon.get_pages_showing_field.<locals>._get_inherited  sC    zxC%)3y>+D+D+FG  rD   zField type is invalidNrY  zField is not validz/Subtyper  z/Widgetz/Pz/Annotsr   r   r  )r(   rR   r   r   r   rY   	Exception
ValueErrorr6   rP   pagesrQ   r   _get_page_number_by_indirect)	rL   r  excretpkidsr7  xr`  s	           @rB   get_pages_showing_field$PdfDocCommon.get_pages_showing_field  s   .	 0 	s 	s 		?)5+C+C+N+N+PQE >%78812299Z$	1u}T{--/0 "ZZ'//155B3GG '   99Wb)DLLNEE*b)Y6T]qy$ 2 2 455%)ZZ %/ 33quuY7KK %/     	
  !Z(( **T>>q?S?STUW 	
 	
9  	?453>	? 

s6   (G ($G2G2$G75G7A	G<
G/G**G/c                    SU R                   ;  a  gU R                   S   n[        U[        5      (       a  UR                  5       n[        U[        5      (       a  [        U5      $ [        U[        5      (       a&   Utp#n[        U[        U5      5      n[        SX%5      $ g! [         a  n[        SU SU 35      eSnAff = f)z
Property to access the opening destination (``/OpenAction`` entry in
the PDF catalog). It returns ``None`` if the entry does not exist
or is not set.

Raises:
    Exception: If a destination is invalid.

z/OpenActionN
OpenActionzInvalid Destination rB  )r   rQ   r   decoderR   r5   r$   r+   tupler'   rb  )rL   oapagetyparrayfitrf  s          rB   open_destinationPdfDocCommon.open_destination  s      0 00""=1b%  Bb#'++b+&&D$&!E#uU|,"<;;   D"6rd"SE BCCDs   <$B" "
C,B==Cr   c                     [        S5      e)NzNo setter for open_destination)NotImplementedError)rL   r   s     rB   rv  rw  ;  s    !"BCCrD   c                 "    U R                  5       $ )z
Read-only property for the outline present in the document
(i.e., a collection of 'outline items' which are also known as
'bookmarks').
)_get_outlinerK   s    rB   outlinePdfDocCommon.outline?  s       ""rD   r   r|  c                 X   Uc  / nU R                   n[        R                  U;   aa  [        [        U[        R                     5      n[        U[        5      (       a  U$ [        U5      (       d  SU;   a  [        [        US   5      nU R                  5       U l	        Uc  U$  U R                  U5      nU(       a  UR                  U5        SU;   a=  / nU R                  [        [        US   5      U5        U(       a  UR                  U5        SU;  a   U$ [        [        US   5      nM  )Nz/Firstz/Next)r   COOUTLINESr   r(   rQ   r/   r6   r   _named_destinations_build_outline_itemr.  r{  )rL   r   r|  r   linesoutline_objsub_outlines          rB   r{  PdfDocCommon._get_outlineH  s    ?G&&G {{g%-wr{{/CDeZ00"N 'u--(e2C 0%/BD'+'C'C'ED$<N 2248K{+ 4)+!!$'7h"H+VNN;/d"  ($w-8D rD   c                 ~    U R                   n[        R                  U;   a  [        SU[        R                     5      $ g)u  
Read-only property for the list of threads.

See §12.4.3 from the PDF 1.7 or 2.0 specification.

It is an array of dictionaries with "/F" (the first bead in the thread)
and "/I" (a thread information dictionary containing information about
the thread, such as its title, author, and creation date) properties or
None if there are no articles.

Since PDF 2.0 it can also contain an indirect reference to a metadata
stream containing information about the thread, such as its title,
author, and creation date.
r$   N)r   r  THREADSr   )rL   r   s     rB   threadsPdfDocCommon.threadsq  s4      "":: wrzz':;;rD   c                     g rI   r   r   s     rB   re  )PdfDocCommon._get_page_number_by_indirect  r   rD   rr  c                 8    U R                  UR                  5      $ )z
Retrieve page number of a given PageObject.

Args:
    page: The page to get page number. Should be
        an instance of :class:`PageObject<pypdf._page.PageObject>`

Returns:
    The page number or None if page is not found

)re  r   )rL   rr  s     rB   get_page_numberPdfDocCommon.get_page_number  s     001H1HIIrD   destinationc                 8    U R                  UR                  5      $ )z
Retrieve page number of a given Destination object.

Args:
    destination: The destination to get page number.

Returns:
    The page number or None if page is not found

)re  rr  )rL   r  s     rB   get_destination_page_number(PdfDocCommon.get_destination_page_number  s     001A1ABBrD   rZ   rt  c           	         Su  p4[        U[        [        45      (       d'  [        U[        5      (       a  [	        U5      S:X  d  Uc)  [        5       n[        X[        R                  " 5       5      $ Utp4n [        X[        XBS95      $ ! [         ar    [        SU SU 3[        5        U R                  (       a  e U R                  S   R                  nUc
  [        5       OUn[        X[        R                  " 5       5      s $ f = f)NNNr   )fit_typefit_argszUnknown destination:  )rQ   r/   rR   r$   r   r'   r+   ru  r"   r   r   r   rd  r   )rL   rZ   rt  rr  rs  tmpr   s          rB   r   PdfDocCommon._build_destination  s     	 uz3/005+..3u:?}<DuCGGI66!E		EuC,MNN 	E25'5'BHM{{**Q-22C14#u#'')DD	Es   5B A9DDc                 $   Su  p#n [        SUS   5      nSU;   a  [        [        US   5      n[        [
        U[        R                     5      nUS:X  aH  [        R                  U;   a  U[        R                     nOLU R                  (       a  [        SU< 35      eO+S	U;   a%  US	   n[        U[        5      (       a  S
U;   a  US
   n[        U[        5      (       a  U R                  X25      nO[        U[        5      (       a*   U R                  X0R                  U   R                  5      nO\Uc  U R                  X25      nOGU R                  (       a  [        SU< 35      e[        SU< S3[         5        U R                  US 5      nU(       a  SU;   a!  [        S US    5       5      U[        S5      '   SU;   a  US   U[        S5      '   SU;   a  US   U[        S5      '   [#        UR%                  SS5      S:  5      U[        S5      '   Xl         UR(                  Ul        U$ ! [         a&    U R                  (       a  [        SU< 35      eSn GNEf = f! [         a    U R                  US 5      n Nf = f! [*         a     U$ f = f)N)NNNrR   z/Titlez(Outline Entry Missing /Title attribute: r  z/Az/GoToz%Outline Action Missing /D attribute: z/Destr   zUnexpected destination zRemoved unexpected destination z from destinationz/Cc              3   8   #    U  H  n[        U5      v   M     g 7frI   )r,   )r  cs     rB   r
  3PdfDocCommon._build_outline_item.<locals>.<genexpr>  s     <`U_PQ[^^U_s   z/Fr   r   z
/%is_open%)r   rG  r   r"   r(   r.   r   SDrQ   r$   r   rR   r  
dest_arrayr   r   r%   rP   r   r   AttributeError)rL   r   r   rZ   outline_itemactionaction_types          rB   r   PdfDocCommon._build_outline_item  s   $4!\	X/E 4<*DJ7Fz62E2G2G+HIKg%&((F2!"5"7"78D[[&)Nth'WXX_=D$ 011ddlDzdK((225?Lc""D#6633D9DD  \  225?L{{"%<TH#EFF1$9JK  225$?L t|1<<`UYZ^U_<`1`Z-.t| 26dZ-.4 6:(^Z125B1%*6LL12 !	.2.E.EL+ I  	{{"%MdX#VWWE	<  D#66udCDH  		s5   H, (I J ,,III>=I>
JJc                 B    [        U R                  U R                  5      $ )a  
Property that emulates a list of :class:`PageObject<pypdf._page.PageObject>`.
This property allows to get a page or a range of pages.

Note:
    For PdfWriter only: Provides the capability to remove a page/range of
    page from the list (using the del operator). Remember: Only the page
    entry is removed, as the objects beneath can be used elsewhere. A
    solution to completely remove them - if they are not used anywhere - is
    to write to a buffer/temporary file and then load it into a new
    PdfWriter.

)r   r   r   rK   s    rB   rd  PdfDocCommon.pages  s     D..>>rD   c                 |    [        [        U R                  5      5       Vs/ s H  n[        X5      PM     sn$ s  snf )z
A list of labels for the pages in this document.

This property is read-only. The labels are in the order that the pages
appear in the document.
)ranger   rd  page_index2page_label)rL   r   s     rB   page_labelsPdfDocCommon.page_labels#  s1     9>c$**o8NO8N1%d.8NOOOs   9c                 z     [        [        U R                  [        R                     5      $ ! [
         a     gf = f)a_  
Get the page layout currently being used.

.. list-table:: Valid ``layout`` values
   :widths: 50 200

   * - /NoLayout
     - Layout explicitly not specified
   * - /SinglePage
     - Show one page at a time
   * - /OneColumn
     - Show one column at a time
   * - /TwoColumnLeft
     - Show pages in two columns, odd-numbered pages on the left
   * - /TwoColumnRight
     - Show pages in two columns, odd-numbered pages on the right
   * - /TwoPageLeft
     - Show two pages at a time, odd-numbered pages on the left
   * - /TwoPageRight
     - Show two pages at a time, odd-numbered pages on the right
N)r   r.   r   r   PAGE_LAYOUTrG  rK   s    rB   page_layoutPdfDocCommon.page_layout-  s5    .	
D$4$4R^^$DEE 		s   *- 
::c                 B     U R                   S   $ ! [         a     gf = f)a  
Get the page mode currently being used.

.. list-table:: Valid ``mode`` values
   :widths: 50 200

   * - /UseNone
     - Do not show outline or thumbnails panels
   * - /UseOutlines
     - Show outline (aka bookmarks) panel
   * - /UseThumbs
     - Show page thumbnails panel
   * - /FullScreen
     - Fullscreen view
   * - /UseOC
     - Show Optional Content Group (OCG) panel
   * - /UseAttachments
     - Show attachments panel
z	/PageModeN)r   rG  rK   s    rB   	page_modePdfDocCommon.page_modeI  s*    *	##K00 		s    
	list_onlyrd  inheritc                 :   [        [        R                  5      [        [        R                  5      [        [        R                  5      [        [        R
                  5      4nUc  0 nUcR  U R                  nUR                  S5      R                  5       n[        U[        5      (       d  [        S5      e/ U l        [        R                  U;   a"  [        [         U[        R                     5      nO[        R"                  U;  a  SnOSnUS:X  a  U H  nX;   d  M
  X(   X8'   M     [        [$        U[        R"                     5       HL  n	0 n
[        U	[&        5      (       a  XS'   U	R                  5       nU(       d  M7   U R(                  " XU40 U
D6  MN     gUS:X  ac  UR-                  5        H  u  pX;  d  M  XU'   M     [/        X5      nU(       d  UR1                  U5        U R                  R3                  U5        gg! [*         a    [        S5      ef = f)aJ  
Process the document pages to ease searching.

Attributes of a page may inherit from ancestor nodes
in the page tree. Flattening means moving
any inheritance data into descendant nodes,
effectively removing the inheritance dependency.

Note: It is distinct from another use of "flattening" applied to PDFs.
Flattening a PDF also means combining all the contents into one single layer
and making the file less editable.

Args:
    list_only: Will only list the pages within _flatten_pages.
    pages:
    inherit:
    indirect_reference: Used recursively to flatten the /Pages object.

Nr   zInvalid object in /Pagesr   r   z7Maximum recursion depth reached during page flattening.)r.   PG	RESOURCESMEDIABOXCROPBOXROTATEr   rP   rY   rQ   r(   r"   r   r   TYPEr   rR   r   r$   r-   r   RecursionErrorr   r   r   r.  )rL   r  rd  r  r   inheritable_page_attributesr   tr	  rr  addtr   attr_inr   page_objs                  rB   r   PdfDocCommon._flattenc  s   6 r||$r{{#rzz"ryy!	'
# ?G= &&GKK)446Ee%566"#=>>#%D 77eS%.)AWWE!AA=3=$)KGM 4 [%.9dN3315-.oo'3igFF : '\")--/ '%*'N	 #2
 "$;H&   ''1 	 * *U s   HHcleanc                    U R                   c  U R                  U R                  5        U R                   c   e[        U[        5      (       a8  UR                  5       n[        U[        5      (       d  [        S[        5        gUn[        U[        5      (       d   U R                   R                  U5      nSUs=::  a  [        U R                   5      :  d  O  [        S[        5        gU R                  U   R                  nU R                  U	 U(       a  Ub  U R                  U[!        5       5        ggg! [         a    [        S[        5         gf = f)a  
Remove page from pages list.

Args:
    page:
        * :class:`int`: Page number to be removed.
        * :class:`~pypdf._page.PageObject`: page to be removed. If the page appears many times
          only the first one will be removed.
        * :class:`~pypdf.generic.IndirectObject`: Reference to page to be removed.

    clean: replace PageObject with NullObject to prevent annotations
        or destinations to reference a detached page.

Nz(IndirectObject is not referencing a pagezCannot find page in pagesr   zPage number is out of range)r   r   r   rQ   r-   rY   r   r   r   r   r4  rc  r   rd  r   r   r/   )rL   rr  r  rh  inds        rB   remove_pagePdfDocCommon.remove_page  s   & 'MM$..)##///dN++!Aa,,I8TD$$$++11$7 T5C 4 4558(Cjj11JJtS_  jl3 %5  :HEs   D6 6EEnumgenc                 6    [        XU 5      R                  5       $ )z
Used to ease development.

This is equivalent to generic.IndirectObject(num,gen,self).get_object()

Args:
    num: The object number of the indirect object.
    gen: The generation number of the indirect object.

Returns:
    A PdfObject

)r-   rY   )rL   r  r  s      rB   _get_indirect_object!PdfDocCommon._get_indirect_object  s     c-88::rD   permissions_codec           	      p   [        SSSS9  [        R                  [        R                  [        R                  [        R
                  [        R                  [        R                  [        R                  [        R                  S.nUR                  5        VVs0 s H  u  p4X1U-  S:g  _M     snn$ s  snnf )z>Take the permissions as an integer, return the allowed access.decode_permissionsuser_access_permissionsz5.0.0)old_namenew_name
removed_in)printmodifycopyannotationsformsaccessabilityassembleprint_high_qualityr   )r   r   PRINTMODIFYEXTRACTADD_OR_MODIFYFILL_FORM_FIELDSEXTRACT_TEXT_AND_GRAPHICSASSEMBLE_DOCPRINT_TO_REPRESENTATIONr   )rL   r  permissions_mappingrN   flags        rB   r  PdfDocCommon.decode_permissions  s     	#).	
 +00+22)110>>*;;2LL-::"7"O"O

 1668
8	 D(A--8
 	
 
s   B2c                 \    U R                   c  g[        U R                   R                  5      $ )zWGet the user access permissions for encrypted documents. Returns None if not encrypted.N)r   r   PrK   s    rB   r  $PdfDocCommon.user_access_permissions  s*     #$T%5%5%7%788rD   c                     g)z
Read-only boolean property showing whether this PDF file is encrypted.

Note that this property, if true, will remain true even after the
:meth:`decrypt()<pypdf.PdfReader.decrypt>` method is called.
Nr   rK   s    rB   r   PdfDocCommon.is_encrypted  s     	rD   c                    S n0 nU R                   nSU;  d
  US   (       d  g [        [        US   5      nSU;   a  [        [        US   5      n[	        U5      nU Hy  nUn[        U5      n[        U[        5      (       d  M'  [        [        [           UR                  5       5      nU(       d  MU  [        R                  " UR                  5      n	XU'   M{     U$ )Nz	/AcroFormz/XFA)r   r   r3   r$   iternextrQ   r-   r   r)   rY   zlib
decompress_data)
rL   r   rS   r   r  r   r  tagr  ess
             rB   xfaPdfDocCommon.xfa  s    %)!#""g%W[-AJ 45T>+tF|4FVAGa00 *=!>OEu!__U[[9&(s  rD   c                 x    [        U R                  5        Vs0 s H  nXR                  U4_M     sn5      $ s  snf )z1Mapping of attachment filenames to their content.)LazyDict_list_attachments_get_attachment_list)rL   rL  s     rB   attachmentsPdfDocCommon.attachments5  sJ      !2244D 00$774
 	
s   7c              #   `   #    [         R                  " U R                  5       Sh  vN   g N7f)zIterable of attachment objects.N)r7   _loadr   rK   s    rB   attachment_listPdfDocCommon.attachment_list?  s!       %%d&6&6777s   $.,.c                     / nU R                    HU  nUR                  UR                  5        UR                  =o2R                  :w  d  M;  U(       d  MD  UR                  U5        MW     U$ )zW
Retrieves the list of filenames of file attachments.

Returns:
    list of filenames

)r   r.  rL  alternative_name)rL   r   entryrL  s       rB   r  PdfDocCommon._list_attachmentsD  sU     ))ELL$...::=$$T" * rD   rL  c                 ^    U R                  U5      U   n[        U[        5      (       a  U$ U/$ rI   )_get_attachmentsrQ   r,  )rL   rL  outs      rB   r  !PdfDocCommon._get_attachment_listS  s0    ##D)$/c4  JurD   filenamec                    0 nU R                    H  n[        5       nUR                  nUbB  XR                  U1;   a/  XR                  :X  a  UR                  OUnUR	                  U5        OM^  UR                  U1nU HX  nUc  M  Xb;   a=  [        X&   [        5      (       d  X&   /X&'   X&   R                  UR                  5        MJ  UR                  X&'   MZ     M     U$ )a;  
Retrieves all or selected file attachments of the PDF as a dictionary of file names
and the file data as a bytestring.

Args:
    filename: If filename is None, then a dictionary of all attachments
        will be returned, where the key is the filename and the value
        is the content. Otherwise, a dictionary with just a single key
        - the filename - and its content will be returned.

Returns:
    dictionary of filename -> Union[bytestring or List[ByteString]]
    If the filename exists multiple times a list of the different versions will be provided.

)	r   setr  rL  addrQ   r,  r.  content)rL   r
  r  r  r   r  rL  s          rB   r  PdfDocCommon._get_attachmentsY  s    $ =?))EEE$55#

,<==)1ZZ)?5::EUDIIdO%56<&%k&7>>-8->,?)%,,U]];(-K%  ** rD   includeexcludec                     g)z
Integration into Jupyter Notebooks.

This method returns a dictionary that maps a mime-type to its
representation.

.. seealso::

    https://ipython.readthedocs.io/en/stable/config/integrating.html
Nr   )rL   r  r  s      rB   _repr_mimebundle_PdfDocCommon._repr_mimebundle_  s      	rD   )r  r   r  )NNNN)F)FNNNrI   )^r   r   r   r   r   r   bool__annotations__r   r   r
   r   r   r   r   r   r   r(   r   rR   r   r   r   r-   r1   rY   r   r   rF   r   r:   r   r4   r   r   r   r   r   r   r'   r   r$   r   r3   r   r   r  r  r  r5  r(  r\  r*   rk  r2   r&   rv  setterr8   r|  r{  r  r/   re  r  r  r0   r   r  rd  r  r  r9   r  r   r  r  r  r   r  r   r  r   r   r  r   r7   r   r  r  r  r   r  r   r   rD   rB   r   r     s'    FD26OXd:./6(,K*%,It-    C    "'^(;"<	)	 
  Y 9   x 01    (#67   h~6   H->$?  )s )*1C 1J 1$## 
$	%#J .Dk)9$: . .[ H )-37FJ$%F c;./0F 
c;		FZ &*+/!%+/0z"0 c3h(0 #	0
 Y(0 
$sCx.	!0d/0@ /S /(8Z!112(8 S#X(8 	(8
 (8 I(8 
(8T=J 001= = 	=
 I= 
=&#C # #s #t #J$ $cSVh $LD
5)^;<D
	j	D
L 	t["24DD	E : DU4k:+M%N DSW D D # # # QU'-.'@H'	'R +.  ( "'c:~(M"N	# 
JJ J8C= JC{ CxPS} CEE lND*FVVW
E 
E<K(8 KXk=R KZ ?tJ' ? ?  PT#Y P P Xc]  6 8L1  6  ;?,07;O2O2 T+Z78O2 $sCx.)	O2
 %^4O2 
O2h *4C^34*4 *4 
	*4X; ;# ;(9:M ; 
 #
	c4i
6 92G)H 9 9 d    Xd38n-  . 
WS$u+%56 
 
 8<t+C!D 8 849  e  )-( (	c5U+,,	-(T  /3.2tXc]*+ tXc]*+ 
c3h	 rD   r   c                   l    \ rS rSrS\S\SS4S jrS\S\4S jrS\\   4S	 jr	S\
4S
 jrS\4S jrSrg)r  i  argskwargsr=   Nc                 $    [        U0 UD6U l        g rI   )dict	_raw_dict)rL   r  r  s      rB   rJ   LazyDict.__init__  s    t.v.rD   rN   c                 L    U R                   R                  U5      u  p#U" U5      $ rI   )r  __getitem__)rL   rN   funcargs       rB   r   LazyDict.__getitem__  s"    NN..s3	CyrD   c                 ,    [        U R                  5      $ rI   )r  r  rK   s    rB   __iter__LazyDict.__iter__  s    DNN##rD   c                 ,    [        U R                  5      $ rI   )r   r  rK   s    rB   __len__LazyDict.__len__  s    4>>""rD   c                 <    S[        U R                  5       5       S3$ )NzLazyDict(keys=))r,  r-  rK   s    rB   __str__LazyDict.__str__  s    TYY[ 12!44rD   )r  )r   r   r   r   r   rJ   rR   r   r	   r%  r   r(  r,  r   r   rD   rB   r  r    sW    /c /S /T /s s $(3- $# #5 5rD   r  )Sr@   r  abcr   r   typingr   r   r   r   r	   r
   r   r   r   r   r   r   r   _pager   r   _page_labelsr   r  _utilsr   r   r   	constantsr   r   r   r   r   r   r   r   r  r   rW   r   r  r    r  r!   r   errorsr"   r#   genericr$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   generic._filesr7   rK  r8   r9   xmpr:   r   r   rC   rF   r   r  r   rD   rB   <module>r8     s   >        $ + > 
 / . 
 " : 6 + , ,     * ) , %e %3 %5eCHo1E+F %]%* ]%@K K\$5wsCx  5rD   