%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/reportlab/pdfbase/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/reportlab/pdfbase/__pycache__/acroform.cpython-312.pyc

�

��dp����dZddlmZmZmZmZmZmZmZm	Z	m
Z
ddlmZddl
mZmZmZmZmZddlmZddlmZmZddlZedddd��Zggggd	�Zed`id
d�dd
�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d!�d"d#�d$d�d%d&�d'd(�d)d*�d+d,�d-d.��Zedd
d/d0d1d2d3d4d5�6�	Zded7<ed8d9d:d;d<�=�Zd>�Zd?�Z efd@�Z!GdA�dBe�Z"GdC�dDe�Z#dE�Z$GdF�dGe�Z%GdH�dI�Z&ee&gdJ�gdK�dL�e&gdM�gdN�dO�e&gdP�gdQ�dR�e&gdS�gdT�dU�e&gdV�gdW�dX��Y�Z'edZd[d\d]d^�Y�Z(e)d_k(rddl*Z*e*jV�yy)a)�AcroForm�)	�	PDFObject�PDFArray�
PDFDictionary�	PDFString�	pdfdocEnc�PDFName�	PDFStream�PDFStreamFilterZCompress�	escapePDF)�stringWidth)�Color�	CMYKColor�Whiter�Blacker�opaqueColor��fp_str)�isStr�asNativeN)�visible�hidden�visibleNonPrinting�hiddenPrintable)r�Z�i�readOnly��required��noExport��
noToggleToOffi@�radioi��
pushButtoni�radiosInUnisoni�	multilinei�passwordi �
fileSelecti�doNotSpellChecki@�doNotScrolli��combi�richText�comboi�editi�sorti�multiSelecti �commitOnSelChangei��� �@��i)	�	invisibler�nozoom�norotate�noview�readonly�locked�togglenoview�lockedcontents�print�S�D�B�I�U)�solid�dashed�bevelled�inset�
underlinedc��t|tt|���}|dk(r-|sdg}nt|tt
f�s|g}t
|�|d<t|�S)N)�WrBrH�rC)�dictr	�	_bsStyles�
isinstance�list�tuplerr)�borderWidth�borderStyle�dashLen�ds    �</usr/lib/python3/dist-packages/reportlab/pdfbase/acroform.py�bsPDFrYGsX���{�W�Y�{�%;�<�=�A��H����c�G��G�T�%�L�1��i�G��'�"��#������c�8�t|�jdd�S)N�%z\045)r�replace)�ss rX�escPDFr_Qs���Q�<����G�,�,rZc�h�t|t�s!|}d}|j�D]
}|||z}�|S)Nr)rQ�int�split)r^rW�v�xs    rX�	makeFlagsreTs=���a���
��
������	�A�
��1��I�A�	��HrZc��eZdZd�Zd�Zy)�
PDFFromStringc�D�t|�std|z��||_y)Nz$need a unicode/bytes argument not %r)r�
ValueError�_s)�selfr^s  rX�__init__zPDFFromString.__init__]s!���Q�x��C�a�G�H�H���rZc�,�t|j�S�N)rrj)rk�documents  rX�formatzPDFFromString.formatbs������!�!rZN��__name__�
__module__�__qualname__rlrp�rZrXrgrg\s���
"rZrgc��eZdZdd�Zd�Zy)�
RadioGroupc��|std��||_t|t�|_g|_||_d|_y)NzRadioGroup created with no name)ri�TUre�fieldFlagValues�Ff�kids�T�V)rk�name�tooltip�
fieldFlagss    rXrlzRadioGroup.__init__fs;����>�?�?�����J��7�����	������rZc	���|j}t|�}|dkrtd|j|fz��t	|j
t
|jD�cgc]}|��c}�td�t|j���}|jrt|j�|d<|jrt|j�|d<t|�j|�}|Scc}w)Nr z#RadioGroup:%s has %d < 2 RadioBoxes�Btn)r{�Kids�FTr}r~ry)
r|�lenrir}rOr{rr	rr~ryrrp)rk�docr|rW�k�rs      rXrpzRadioGroup.formatos����y�y����I���Q�3�j�!F�$�&�&�QR��!S�T�T���7�7��D�I�I� 6�q�� 6�7��U�^��d�f�f�%�	
���6�6�G�D�F�F�O�1�S�6��7�7�Y�t�w�w�/�A�d�G��!��#�#�C�(�����!7s�	C1N)��noToggleToOff required radiorqrurZrXrwrwes���rZrwc��t|t�r%ddjd�|jD��zSt|t�r|j
St
|�S)Nz[%s]r�c3�2K�|]}t|����y�wrn��_pdfObjToStr)�.0�es  rX�	<genexpr>z_pdfObjToStr.<locals>.<genexpr>�s���� G�Q��a�� G�s�)rQr�join�sequencergrj�str)�objs rXr�r��sF���#�h������ G�#�,�,� G�H�H�H��#�m�$��v�v�
��s�8�OrZc�B�eZdZddddddddd	d
ddd
�Zd�Zed��Zd�Zd�Zd�Z	d�Z
d�Z									d;d�Ze
d<d��Zd�Zd�Zd�Ze
d ��Ze
d!��Zd"�Z																		d=d%�Z																			d>d&�Zd'�Zddddddd(d)dd*ggd+d,fd-�Zd.�Z																						d?d0�Z																				d@d1�Zd/dddddd(d)d#d#ddd$d/ddddddgfd2�Zd/dddddd(d)d#d#ddd$d3ddddddgfd4�Zd5�Zd6�Zd7�Z d8�Z!d9�Z"ed:��Z#y)Ar�Helv�HeBo�Cour�CoBo�CoOb�CoBO�HeOb�HeBO�Time�TiBo�TiIt�TiBI)�	HelveticazHelvetica-Bold�CourierzCourier-BoldzCourier-ObliquezCourier-BoldObliquezHelvetica-ObliquezHelvetica-BoldObliquezTimes-Romanz
Times-BoldzTimes-ItaliczTimes-BoldItalicc��i|_tj|�|_i|_g|_i|_i|_i|_d|_	i|_
yrn)�referenceMap�weakref�ref�_canv�fonts�fields�_radios�_refMap�
_pdfdocenc�sigFlags�extras)rk�canv�kwdss   rXrlzAcroForm.__init__�sK������[�[��&��
���
���������������
���rZc�n�|j�}|�"td|jjz��|S)Nz%s.canv is no longer available)r�ri�	__class__rr)rkr�s  rXr�z
AcroForm.canv�s2���
�
����=��=����@W�@W�W�X�X��rZc�.�d|�d|j|�d�S)Nz
/Font << /� � >>)r�)rk�fs  rX�fontRefzAcroForm.fontRef�s��'(����A��7�7rZc
�b�tt|jD�cgc]}|j|���c}���}|jr|j|d<|j
r�t
t|j
j���}|D�cgc]}|j|���}}td|dz�|d<td|j�ddj|��d	��|d
<|j|j�t!|�j#|�}|Scc}wcc}w)N)�Fields�SigFlagsz/%s 0 Tf 0 gr�DAz<< /Encoding
<<
/RLAFencoding
z
>>
�
z
>>�DR)rOrr��getRefr�r�rR�sorted�keysr�rrg�	encRefStrr��updater�rrp)rkr�r�rW�FK�Fr�s       rXrpzAcroForm.format�s����!�4�;�;�"G�a�4�;�;�q�>�"G�H�
���=�=�$�-�-�!�J�-��:�:��f�T�Z�Z�_�_�.�/�0�B�*,�-�Q����a��-�A�-����A�� 6�7�A�d�G�#�Y]�Yg�Yg�hl�hq�hq�rs�ht�$u�v�A�d�G�	��������!��#�#�C�(�����#H��
.s�D'�D,c��|�|jdk(ryt|t�r|j�S|j	�S)Nrru)�alpharQr�cmyk�rgb)rk�cs  rX�
colorTuplezAcroForm.colorTuple�s6��
�9����1���%�a�	�2�q�v�v�x�?�����?rZc�^�|j|�}t|�t|�dk(rdzSdzS)Nr"z kz rg�r�rr��rkr��ts   rX�streamFillColorzAcroForm.streamFillColor��1���O�O�A����q�z�3�q�6�1�9�4�8�8�%�8�8rZc�^�|j|�}t|�t|�dk(rdzSdzS)Nr"z Kz RGr�r�s   rX�streamStrokeColorzAcroForm.streamStrokeColor�r�rZ�squareNrrGrNc	�V��
�gj}�
}
|dk(r�|d��j|�}|d�|dk7r��j|�}|dz}�
|z
}|}
|	dk(r	|d�n"|	dvr|	dk(rd	t|�z}nd
}|d�|	dvrMd
|z}�
|z
}|}
t	|d�}|}|dk7r||}}�j|�}�j|�}|d�|d��nT|dk(�rN��
fd�}�
dz}�j|�}|d�|||��|d�|d�|dk7�r|d��j|�}|dz}�
|z
}
|	dk(r	|d�n/|	dvr+|	dk(rd}nd
}|d�||||z
��|d�|d�|	dvr�d|z}�
|z
}
t	|d�}t|d�}d}d}|	dk(r||}}|dk7r||}}�j|�}�j|�}|d�||||z
d|���|d �||||z
d|���|d!�|d"k(r��j|�}�j|�}|d#�t|}|dk(r/|dk(r*|t�
|
z
z
d$�dz��|d�n||j�
�
|
z
��|d�d%j|j�t�zjd&d'�jd(d%�}�j�
�
|td)��*�S)+Nr��qz11 g 1 G %(streamFill)s 0 0 %(size)s %(size)s re f��?rKzC%(streamStroke)s %(borderWidth)s w 0 %(hbw)s m %(size)s %(hbw)s l s�rHrJrIrGrHz
 [%s ] 0 dr�zQ%(streamStroke)s%(dash)s %(borderWidth)s w %(hbw)s %(hbw)s %(smbw)s %(smbw)s re s�rIrJr rCa5%(bbs0)s %(borderWidth)s %(borderWidth)s m %(borderWidth)s %(smbw)s l %(smbw)s %(smbw)s l %(sm2bw)s %(sm2bw)s l %(_2bw)s %(sm2bw)s l %(_2bw)s %(_2bw)s l f %(bbs1)s %(smbw)s %(smbw)s m %(smbw)s %(borderWidth)s l %(borderWidth)s %(borderWidth)s l %(_2bw)s %(_2bw)s l %(sm2bw)s %(_2bw)s l %(sm2bw)s %(sm2bw)s l f�Q�circlec�,���j�|fi|��Srn)�circleArcStream)�_r�_casKwdsrk�sizes  ��rX�<lambda>z%AcroForm.checkboxAP.<locals>.<lambda>�s���(<��(<�(<�T�"�(P�x�(P�rZzq 1 g 1 G %(streamFill)sr�zGq %(streamStroke)s %(borderWidth)s w 0 %(hbw)s m %(size)s %(hbw)s l s Qz	 [3 ] 0 dz*%(streamStroke)s%(dash)s %(borderWidth)s wr^rN)rr)r rNrJzq %(bbs0)s %(borderWidth)s wT)�rotated�arcszS Q %(bbs1)s qzS Q�Yesz'q %(textFillColor)s %(textStrokeColor)srr��  r��

z<< /ProcSet [/PDF] >>��	Resources)�appendr�r�rrr�cbmarks�max�scaledRenderr��__self__�varsr]�
makeStreamrg)rk�key�value�buttonStyle�shape�	fillColor�borderColor�	textColorrTrUr�rV�stream�ds�
streamFill�streamStroke�hbw�smbw�dash�_2bw�sm2bw�bbs0�bbs1�casr��_3bwh�a0�a1�
textFillColor�textStrokeColor�cbms`         `                    rX�
checkboxAPzAcroForm.checkboxAP�s��������
���(�?��3�K��-�-�i�8�J��F�G��D� �#�5�5�k�B��!�#�o���k�)������,��`�a� �$I�I�"�H�,�+�f�W�o�=��!���n�o��"6�6��[�=�D� �4�K�E��B�"�9�S�1�D�$�D��C�x�%)�4�d���/�/��5�D��/�/��5�D��S�T��3�K�
�H�_�P�C��S��A��-�-�i�8�J��-�.��3�q�6�N��3�K��3�K��D� ��s��#�5�5�k�B��!�#�o���K�'����,��d�e� �$I�I�"�H�,�*��!���G�H��3�q��u�:�&��3�K��s���"6�6��c�E�E����B�"�9�S�1�D�!�)�C�0�D��B��B�"�G�+�%)�4�d���C�x�%)�4�d���1�1�$�7�D��1�1�$�7�D��9�:��3�q��w�t��<�=��+�,��3�q��w�t��<�=��5�M��%�<� �0�0��;�M�"�4�4�Y�?�O��<�=��+�&�C��h��;��#8��s�C��4��7��A�.��3�4�5��s���s�'�'��T�"�W�5�6��3�K��)�)�F�O�O�,�t�v�5�>�>�t�C�H�P�P�QW�X\�]������d�F�)�*A�B���	rZFc��gj}|jj}|dz}|dz}||z}||z}||z}td|z�}t|�}t|�}|rdnd}	|d�d|vr|�dk(r|d	�|d
�d|vr|�dk(r|d�|d�d
|vr|�dk(r|d�|d�d|vr|�dk(r|d�|d�dj	|j�t�zS)Nr�g4@g�h���?z0.7071 0.7071 -0.7071 0.7071z1 0 0 1z%(mx)s %(hsize)s %(hsize)s cmrrz	%(r)s 0 mz#%(r)s %(cp)s %(cp)s %(r)s 0 %(r)s cz	0 %(r)s mz&-%(cp)s %(r)s -%(r)s %(cp)s -%(r)s 0 cr z
-%(r)s 0 mz(-%(r)s -%(cp)s -%(cp)s -%(r)s 0 -%(r)s crNz
0 -%(r)s mz%%(cp)s -%(r)s %(r)s -%(cp)s %(r)s 0 cr�)r�r��__len__rr�r�)
r�r�r�r��R�rlen�hsizer��cp�mxs
          rXr�zAcroForm.circleArcStream4s���I�I���z�z�!�!���s�
���4�K����	��
��
��	�Q���
�G�a�K�
 ���1�I���u�
��/6�
+�I��	�
)�*���9��v�q�y�!�K�.�
�3�4���9��v�q�y�!�K�.�
�6�7���9��v�q�y�!�L�/�
�8�9���9��v�q�y�!�L�/�
�5�6��y�y����$�t�v�-�-rZc��t|}||z
x}}|dz}tt|d|��}||kDr|||zz}|d||z
zz}	d}
dt�zS)N�333333�?�ZapfDingbatsr�rzCBT %(iFontName)s %(fs)s Tf %(dx)s %(dy)s Td %(fs)s TL (%(c)s) Tj ET)�ZDSyms�floatr
r�)rkr�r�r��	iFontNamerM�H�fs�w�dx�dys           rX�zdMarkzAcroForm.zdMarkPsm���1�I���R����A�
�s�U���+�a��r�2�3���Q�3��!�A�#�I�B�
�#�q��s�)�^��
��T�W[�W]�]�]rZc�L�|jjj|�Srn)r��_doc�	Reference�rkr�s  rXr�zAcroForm.getRef\s���y�y�~�~�'�'��,�,rZc�|�t|j|�j|jj��Srn)rr�rpr�r r"s  rX�	getRefStrzAcroForm.getRefStr_s)������C�(�/�/��	�	���?�@�@rZc�0�t|t�s t|t�st|t�r5|xstdddd�|xstdddd�|xstdddd�fS|xs
tddd�|xs
tddd�|xs
tddd�fS)	Nr��������?g���Q��?gj�t��?g�������?g�������?g`��"��?r)rQrr)r��br�s   rX�	stdColorszAcroForm.stdColorsbs����a�	�"�j��9�&=��A�i�AX��-��1�Q�q��-�q�/I�Y�q��1�S�5I�1�Ki�PY�Z^�_d�ef�gh�Pi�j�j��+��s�3�s�+�Q�-D�%��C��2D�a�F]�5�QT�UZ�[\�K]�^�^rZc�~�|dk7r/|dk(rtnt}|||fD�cgc]}||d���
c}\}}}|||fScc}w)N�Nrr&)rr)r�r�r'r��funcr�s      rX�
varyColorszAcroForm.varyColorsisH����8� �#�X�6�7�D�+,�Q�q�'�2�Q�T�!�C�[�2�E�A�a����1�u���3s�:c���|r�|j}|j�|j�|dk7r*d|z}|j|�|j	|	�d}
ndx}
}|d|zz}|d|zz}||z
}||z
}|j|
�|dk(r|j
|||||
d��n+t||�dz}|j||z||z||
d��|j�yy)Nr�rrr r�)�stroke�fill)
r��	saveState�resetTransforms�setLineWidth�setStrokeColor�setFillColor�rect�minr��restoreState)rkrd�y�width�height�forceBorderr�rUrTr�r�r�r�r^r�s               rX�checkForceBorderzAcroForm.checkForceBorderps�����9�9�D��N�N��� � �"��D� ��+�o���!�!�+�.��#�#�K�0������C��Q�s�U�N�E��a��e�O�F�
��H�A�
��H�A����i�(��h���	�	�!�A�e�F�!��	�;���f�%��+�����A�a�C��!��A�Q�A��6�����+rZrrAc�T�|rdnd}|j|||�\}}}|j}|r|jj|
|�\}
}|j}i}dD]�}i}|j	||||�\}}}dD]}|j||||||||||	|��}|j|jvr|j|j}n*|j|�}||j|j<|||<��t|�||<~��ttd�|j�t|�t|�t|
||
|	z||	zf�t|�td�td�t|t�t|t �td	��
�}|rt#|�|d<|
sdt%|j&�z}
|rt)|||�|d
<t#|
�|d<tdt*|zt|j-|��t|j-|����} t| �|d<t|�}|jj/|�|j&j1|j|��|j3|
||	|	||||||�
y)Nr��Off�NDR)r�r>�	r�r�r�r�r�rTrUr�rVr��Widget�Annotr*)r��Pr~�AS�Rect�AP�Subtype�Typer�r{rry�AFF%03d�BSr}�(%s)��CA�BC�BG�MK)r(r��absolutePositionr r,r�
_af_refstrr�r�rrOr	�thisPageRefrre�annotationFlagValuesrzrr�r�rYrr��_addAnnotationr�r<)!rk�checkedr�r�r�r�r�rTrUr�rdr8r�r�annotationFlagsr�r;�relativerV�initialValuer�r�rFr��APV�tC�bC�fCr��apr��CBrPs!                                 rX�checkboxzAcroForm.checkbox�s���(!(�u�U��(,���y��Y�(W�'�	�+�i��y�y����9�9�-�-�a��2�D�A�q��i�i��
���	�C��C����s�9�[��K�H�B�r�"�&�
���_�_�$'�$)�0;�*/�.0�02�.0�0;�0;�)-�,3�%�&���=�=�D�L�L�0��,�,�r�}�}�5�C��+�+�b�/�C�25�D�L�L����/���E�
�'
�($�C�(�B�s�G��1	�2��U�^��O�O�%��L�)��\�*���1�Q�t�V�A�d�F� 3�4�"�2�&�!�(�+��w�'��o�.B�C��z�/�:��#�,�
��� ��)�B�t�H���s�4�;�;�/�/�D��5��[��#I��4���D�/��3��
��F�;�/�/��D�O�O�K�8�9��D�O�O�I�6�7���
!��$��4��
�2�
���	�	� � ��$������4�;�;�r�?�+����a��$�t�K��k�+�Va�bk�lrZc���||jvrYt||
|��}|j|�|_||j|<|jj|j�n@|j|}t
|t�}||jk7rtd|�d|�d���|std|�d|����|r|nd}|j|||�\}}}||k(r@|j�-|j|k7r%td|�d|�d|j����||_|j}|r|jj||�\}}|j}i}d	D]�}i}|j||||�\}}}|dfD]�}|j!|||k(rd
nd|||||||	|
|��}|j"|j$vr|j$|j"} n*|j|�} | |j$|j"<| ||<��t'|�||<~��t)t+d�|j-�t+|�t/||||
z||
zf�t'|�t+d
�t+d�t
|t0�|jt+d���
}!t)dt2|zt/|j5|��t/|j5|����}"|rt7||	|�|!d<t'|"�|!d<t'|!�}!|jj9|!�|j:j|j|!��|j=|||
|
|||	|||�
y)N)r�r�zradio.�.z created with different flagsz
bad value z for radio.r>z% sets initial value conflicting with r?r�r@r�rArBr*)
r�rCrDrErFrGrHr��ParentrrKrLrJrP)r�rwr��_refr�r�rerzr{rir(r~r�rQr r,rrRr�rrOr	rSrrTrr�rYrUr|r<)#rkr��selectedr�r�r�r�r�rTrUr�rdr8r�rrWr�r;rXrV�grouprYr�r�rFr�rZr[r\r]rcr^r��RBrPs#                                   rXr$zAcroForm.radio�s3��*�t�|�|�#��t�G�z�J�E����U�+�E�J�!&�D�L�L����K�K���u�z�z�*��L�L��&�E�"�:�o�>�J��5�8�8�#� �t�TY�!Z�[�[���E�$�G�H�H� (�u�e��(,���y��Y�(W�'�	�+�i�����w�w�"��7�7�E�>�$�[_�`e�fk�fm�fm�%n�o�o�����y�y����9�9�-�-�a��2�D�A�q��i�i��
���	�C��C����s�9�[��K�H�B�r�"��E�]�
���_�_�$'�-.��X�E�5�0;�*/�.0�02�.0�0;�0;�)-�,3�%�&���=�=�D�L�L�0��,�,�r�}�}�5�C��+�+�b�/�C�25�D�L�L����/���A��'
�($�C�(�B�s�G��1	�2��U�^��O�O�%��\�*���1�Q�t�V�A�d�F� 3�4�"�2�&�!�(�+��w�'��o�.B�C�����#�,�
����F�;�/�/��D�O�O�K�8�9��D�O�O�I�6�7���
�5��[��#I��4�� ��$��4��
�2�
���	�	� � ��$�
�
�
���$�+�+�b�/�*����a��$�t�K��k�+�Va�bk�lrZc�~�tgd��|d<tdd||g�|d<td�|d<td�|d<d	|d
<tt|�||jj
jrt�gnd��}|djd
�t|j��D��z|_|S)N)��?�rjrirjrj�Matrixr�BBox�FormrG�XObjectrHr�FormType)�filtersr�c3�BK�|]\}}|�dt|������y�w)�=Nr�)r�r�rcs   rXr�z&AcroForm.makeStream.<locals>.<genexpr>Ps����(d�3�1�Q�A�l�1�o�)F�(d�s�)rr	r
rr�r �compressionrr�r��itemsrR)rkr9r:r�rCr^s      rXr�zAcroForm.makeStream>s����8�9��(���a��%��/�0��&�	��v���)���I�&��&�	���*�
���a� ��:>�)�)�.�.�:T�:T�3�5�6�Z^�
���d�i�i�(d�RX�YZ�Y`�Y`�Yb�Rc�(d�e�e����rZ�x�$�	textfieldz0.600006 0.756866 0.854904 rgz0 gc
��gj}t|�r|j|�}|d�|
dk7rP|
dkDrKt|�r@|
dz}||
z
}|
|
z
}d|
z}|dvr2||z
}|
|z
}|dk(rd}|s|rd}nd	}nd
}d	}|d�n
dx}x}}
|}|
}d}t|�rH|
rF|j|�}|d
k(r	|d�n'|dvr#|dk(rdt	|�z} d}nd|
z} |d�d|
z}!||!z
}"|
|!z
}#|j|	�}$|d�d|z}%|dk(�r`t|#|%z�}&|#t
|&�z}%|&t|�kDrd}'t|�}&nGt|�dkr)|r|dnd}'|'r.|'|&krd}'n&t|�|&z
}(|'|(k\r|(}'n|d|&krd}'n|d}'t|�})|'|&z}(|(|)kDr|(|)z
}'t|)|'|&z�}*|r?|'}(|
|z
|%z
})||�|(|*kr(|(|vr|dt	|)�z�|)|%z})|(dz
}(|(|*kr�(|'}(|
|z
|z
})|d�|(|*kr�|d�|(|'k(r|d�||(|vr|nd�|dt	|)��d t||(��d!��|)|%z})|(dz
}(|d"�|(|*kr�_nS|d�|
|z
|z
})|d#�|jd$�D]}+|d|)�d t|+��d!��|)|%z})�!|d"�t	|%�}%|d%�d$j|j�t�zjd&d'�jd(d$�}|j||
|t!d)t�z��*�S)+Nz,%(streamFill)s
0 0 %(width)s %(height)s re
frr�r r�rIz1 gz-0.250977 0.749023 -0.250977 rgz.75293 gz	.501953 ga)%(bbs0)s
%(borderWidth)s %(borderWidth)s m
%(borderWidth)s %(bwh)s l
%(bww)s %(bwh)s l
%(bw2w)s %(bw2h)s l
%(_2bw)s %(bw2h)s l
%(_2bw)s %(_2bw)s l
f
%(bbs1)s
%(bww)s %(bwh)s m
%(bww)s %(borderWidth)s l
%(borderWidth)s %(borderWidth)s l
%(_2bw)s %(_2bw)s l
%(bw2w)s %(_2bw)s l
%(bw2w)s %(bw2h)s l
fr�rKzD%(streamStroke)s %(borderWidth)s w 0 %(hbw)s m %(width)s %(hbw)s l sr�rHz
[%s ] 0 d
z[] 0 dz
%s wz>%(streamStroke)s
%(dash)s
%(hbw)s %(hbw)s %(bww)s %(bwh)s re
sr"z5/Tx BMC 
q
%(_2bw)s %(_2bw)s %(w4bw)s %(h4bw)s re
W
nr�listboxrz(%%(_2bw)s %s %%(w4bw)s %%(leading)s re
fz0 g
0 G
%(undash)s�BTz/%(iFontName)s %(fontSize)s Tfz%(textFill)sz	%(_4bw)s z Td
(z) Tj�ETz.BT
/%(iFontName)s %(fontSize)s Tf
%(textFill)sr�zQ
EMC
r�r�r�z/<< /ProcSet [/PDF /Text] /Font %(rFontName)s >>r�)r�rr�r�rrarr�r6r_rbr�r�r�r]r�rg),rkr�r�r�	rFontName�fontSizer�r�r�r�rTrUr9r:rV�wkind�labelsrE�sel_bg�sel_fgr�r�r��bww�bwhr�bw2w�bw2hrr�undashr�r��_4bw�w4bw�h4bw�textFill�leading�nopts�i0�ir8�ilim�lines,                                            rX�txAPz
AcroForm.txAPSs���*�����y�!��-�-�i�8�J��C�D�����Q��;�{�3K��c�/�C��+�%�C��;�&�C��[�=�D��2�2��t�|����}���*�,� �D� �K�@��)��&�D�%�D��R�S�'(�(�C�(�$���C��C����{�#���1�1�+�>�L��L�(��]�^�� E�E���(�*�V�G�_�<�D�%�F�#�k�1�D��Z�[���}���t�|����}���'�'�	�2���J�K���.���)����W��%�E��5��<�'�G��S��[� ����F����Q�����Q�q�T�A����%�x�����K�%�/���q�5�!"�B��Q�4��:��B��1��B��F��A��U�
�A���s��Q��B��q��E��?�D�����T�M�G�+���v����f��A�v��J�V�TU�Y�V�W���L�A���F�A���f��A���
��(�A��)�*��D�&��t���b�5��;�<���a��v�^�<��V�A�Y�v�f�Q�i�?P�Q�R��W����Q����t���D�&�
�)�*���!�D�(�A��E�F����D�)�
���Q�v�d�|�D�E��W���
�
�4�L���/���z���)�)�F�O�O�,�t�v�5�>�>�t�C�H�P�P�QW�X\�]������v�v�)�*[�^b�^d�*d�e���	rZc��|�d}||jvrtd|z��|j|}|jtd|�d|�d|j�d���}||j
vr||j
|<||fS)Nr�z7form font name, %r, is not one of the standard 14 fontsz<< /BaseFont /z /Subtype /Type1 /Name /z /Type /Font /Encoding r�)�
formFontNamesrir$rgr�r�)rk�fontName�fnr�s    rX�makeFontzAcroForm.makeFont�s�����"�H��4�-�-�-��V�Ya�a�b�b�
�
�
��
)���n�n�]� ��D�N�N�,4�5�6��
�T�Z�Z�� �D�J�J�r�N��B�w�rZr�c�2
�|j|�\}}|�d}|j|||�\}}}|j}|r|jj|	|
�\}	}
|j}d|�d|�d�}t|t�}|dk7�rd}|dk(r|tdz}g}g}g}g} g}!t|ttf�st|�d	|�d
���|D]�}"t|"�r|jt|"��|"}#nqt|"ttf�rJt|"�dk(r|"dx}"}#n|"\}#}"|jtt|"�t|#�g��nt|�d
|"�d
���|j|"�|!j|#���t|�}|r�t|ttf�s|g}|D]n}"|"|vr.|"|!vrt!|�d|"�d|�d|!����||!j#|"�}"| j|j#|"��|jt|"���p| j%�|tdzrt|�dk(r|dk(r	|!| d}n|dd}|dd}t|�dk(r|dn
t|�}t'|!| |��}$n8t|�}n,gx} }i}$d}t|�std|z��t|�}i}dD]�}%|j)|%|||�\}&}'}(|j*|%||||f|(|'|&|||||d�$��})|)j,|j.vr|j.|)j,}*n*|j1|)�}*|*|j.|)j,<|*||%<��t't3|�|j5�||t|	|
|	|z|
|zf�t7|�t3d�t3d�t|
t8�|td|||j;|�fz���}!|r||!d<| rt| �|!d<|r||!d<|rt|�|!d<|sdt|j<�z}t|�|!d <t't|j?|���!�}+|r-tA|||�|!d"<t|j?|��|+d#<t7|+�|!d$<t7|!�}!|jjC|!�|j<j|j1|!��|jE|	|
|||d%||||�
y)&N�z<</r�z>>rw�Ch�choicer.z	 options=z is wrong typerrz option z value z is not in option
values z
or labels r1)rrEr~�Txz textfield value=%r is wrong typer*)r�r�r�rTrUr9r:rVrArBz/%s %d Tf %s)r�rCr~�DVrErFrGrHr�r{r��OptrE�MaxLenryrIr})rOrJrNrPr�)#r�r(r�rQr rerzrQrRrS�	TypeErrorrr�rr�rri�indexr0rOr,r�rRr�r�r	rSrrTr�r�r�rYrUr<),rkr�r�r�r�rTrUr9r:rdr8r�rrWr�r;rX�maxlenr�r}r~�optionsrVr|rr�r�r{r�r~r�rFrE�TFrc�l�lbextrasr�r[r\r]r^r�rPs,                                            rX�
_textfieldzAcroForm._textfield�s	��0 $�}�}�X�6��	�9����H�(,���y��Y�(W�'�	�+�i��y�y����9�9�-�-�a��2�D�A�q��i�i��$-�i�8�	�
�z�/�
2���+���B��h���o�g�.�.���A��C��B��A��B��g�t�E�l�3���w� O�P�P��

����8��J�J�y��|�,��A���4��,�/��1�v�q�y��a�D���!����!��J�J�x��1��i��l�(C�D�E�#�E�!�$L�M�M��	�	�!���	�	�!��

��3�-�C��!�%��e��5�"�G�E��+�A���{��B�;�",�hm�no�pr�su�-v�"w�w� "�2�8�8�A�;��A��H�H�R�X�X�a�[�)��H�H�Y�q�\�*�+������_�]�;�;��E�
�A�
��h�� "�1�Q�4��� %�b�q�	���"�1��A���F�A�I�A�a�D�8�A�;���r�A�E�:���e�$���L�A���H��B���<�� B�U� J�K�K��%� �A�
���	�C����s�9�[��K�H�B�r�"������!�%�%�$��')�(*�&(�(3�(3�"'�#)�&-��'��B� �}�}����,��l�l�2�=�=�1���k�k�"�o��.1����R�]�]�+��B�s�G�/	�2��R�[��O�O�%�����1�Q�u�W�Q�v�X� 6�7�"�2�&�!�(�+��w�'��o�.B�C���^�y��4�CW�CW�Xa�Cb�.c�c�d����C��5�	�����b��g��!�B�x�L�� ��)�B�t�H���s�4�;�;�/�/�D��D�/��3��
��D�O�O�I�6�7���
��[��W�=�B�t�H������ <�=�B�t�H� ��$��4��
�2�
���	�	� � ��$������4�;�;�r�?�+����a��%��{�8�K�P[�\g�hq�rrZc�N�|j|||||||||	|
|||
|||||||d��S)Nrw)r�r�r�r�rTrUr9r:rdr8r�rrWr�r;rXr�r�r}rVr~�r�)rkr�r�r�r�rTrUr9r:rdr8r�rrWr�r;rXr�r�r}rVs                     rXrwzAcroForm.textfieldzsY��,����#�'�#�'�'������� /�%�'�!��!�!��!�+��	rZc�P�|j|||||||||	|
|||
|||||||d|��S)Nry�r�r�r�r�rTrUr9r:rdr8r�rrWr�r;rXr�r�r}rVr~r�r��rkr�r�r�r�rTrUr9r:rdr8r�rrWr�r;rXr�r}rVr�r�s                      rXryzAcroForm.listbox�s\��.����#�'�#�'�'������� /�%�'�!��!�!���!�-��	rZr.c�P�|j|||||||||	|
|||
|||||||d|��S)Nr�r�r�r�s                      rXr�zAcroForm.choice�s\��.����#�'�#�'�'������� /�%�'�!��!�!���!�-��	rZc�2�d|d<|jdi|��y)zSsame as checkbox except the x and y are relative to the canvas coordinate transformTrXNru)r`�rkr�s  rX�checkboxRelativezAcroForm.checkboxRelatives����Z����
�
���rZc�2�d|d<|jdi|��y)zPsame as radio except the x and y are relative to the canvas coordinate transformTrXNru)r$r�s  rX�
radioRelativezAcroForm.radioRelatives����Z����
�
��T�rZc�2�d|d<|jdi|��y�zTsame as textfield except the x and y are relative to the canvas coordinate transformTrXNru�rwr�s  rX�textfieldRelativezAcroForm.textfieldRelative�����Z��������rZc�2�d|d<|jdi|��yr�r�r�s  rX�listboxRelativezAcroForm.listboxRelativer�rZc�2�d|d<|jdi|��yr�r�r�s  rX�choiceRelativezAcroForm.choiceRelativer�rZc�p�|jstd�|_|j|j�S)Na<</Type /Encoding /Differences [24 /breve /caron /circumflex /dotaccent /hungarumlaut /ogonek /ring /tilde 39 /quotesingle 96 /grave 128 /bullet /dagger /daggerdbl /ellipsis /emdash /endash /florin /fraction /guilsinglleft /guilsinglright /minus /perthousand /quotedblbase /quotedblleft /quotedblright /quoteleft /quoteright /quotesinglbase /trademark /fi /fl /Lslash /OE /Scaron /Ydieresis /Zcaron /dotlessi /lslash /oe /scaron /zcaron 160 /Euro 164 /currency 166 /brokenbar 168 /dieresis /copyright /ordfeminine 172 /logicalnot /.notdef /registered /macron /degree /plusminus /twosuperior /threesuperior /acute /mu 183 /periodcentered /cedilla /onesuperior /ordmasculine 188 /onequarter /onehalf /threequarters 192 /Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla /Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis /Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply /Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute /Thorn /germandbls /agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla /egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis /eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide /oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis]>>)r�rgr$)rks rXr�zAcroForm.encRefStrs/�����+�-M�N�D�O��~�~�d�o�o�.�.rZ)	r�r�NNNrrG�rN))rrr rNF)F�checkr�NNNrrGr�rrNNrArFFrN)NFr�r�NNNrrGr�rrNNrAr�FFrN)r�NNNrrGrurvrrNNrAr�FF�dNNNNrN)r�NNNrrGrurvrrNNrAr�FFr�NNrN)$rrrsrtr�rl�propertyr�r�rpr�r�r�r�staticmethodr�rr�r$r(r,r<r`r$r�r�r�r�rwryr�r�r�r�r�r�r�rurZrXrr�s���� ���!�%�#�!'����"�

�M�	�����8��@�9�9�%��� ���#���f�P�.��.�6	^�-�A��_��_����� �2�#��� ���#������ '�%�!���%Qm�h��$��� ���#������ '�9�!���'am�F�6�� ���#����!���6��'}�~
��� ���#������� '��!��������-Zs�z�� ���#������� '��!������),�^�� ���#������� '��!�������+.�`�� ���#������� '�"�!�������+.�`�
�
�
��
�/��/rZrc�@�eZdZdj�ZdZdd�Zdd�Zy)�CBMarkzm l c h)rrrNrc�d�||_|\|_|_|_|_||_||_yrn)�ops�xmin�ymin�xmax�ymax�points�slack)rkr�r��boundsr�s     rXrlzCBMark.__init__)s-�����28�/��	�$�)�D�I�d�i������
rZc	���������|d|zz
x}}|j�|j�|j�z
}|j�z
}|jt||�z}|d|zz
t
|�z�|d|zz
t
|�z�t���x��|�z}|�z}|||z
dzz�|||z
dzz����fd�}���fd�}	|j}
|j}gj}d}
|j}|jD]L}||}t|�D],}||||
��||	||
dz��|
dz
}
�.||
|��N|d�dj|j�S)	a�
        >>> print(cbmarks['check'].scaledRender(20))
        12.97075 14.68802 m 15.00139 17.16992 l 15.9039 18.1727 17.93454 18.67409 19.2883 18.67409 c 19.46379 18.27298 l 17.13231 15.51532 l 11.91783 8.62117 l 8.307799 3.030641 l 7.430362 1.526462 l 7.305014 1.275766 7.154596 .97493 6.9039 .824513 c 6.577994 .674095 5.825905 .674095 5.47493 .674095 c 4.672702 .674095 4.497214 .674095 4.321727 .799443 c 4.071031 .97493 3.945682 1.325905 3.770195 1.67688 c 3.218663 2.830084 2.240947 5.337047 2.240947 6.590529 c 2.240947 7.016713 2.491643 7.21727 2.817549 7.442897 c 3.344011 7.818942 4.0961 8.245125 4.747911 8.245125 c 5.249304 8.245125 5.299443 7.818942 5.449861 7.417827 c 5.951253 6.239554 l 6.026462 6.038997 6.252089 5.337047 6.527855 5.337047 c 6.778552 5.337047 7.079387 5.913649 7.179666 6.089136 c 12.97075 14.68802 l h f
        >>> print(cbmarks['cross'].scaledRender(20))
        19.9104 17.43931 m 12.41908 10 l 19.9104 2.534682 l 18.37572 1 l 10.9104 8.491329 l 3.445087 1 l 1.910405 2.534682 l 9.427746 10 l 1.910405 17.46532 l 3.445087 19 l 10.9104 11.50867 l 18.37572 19 l 19.9104 17.43931 l h f
        >>> print(cbmarks['circle'].scaledRender(20))
        1.872576 9.663435 m 1.872576 14.64958 5.936288 18.61357 10.89751 18.61357 c 15.8338 18.61357 19.87258 14.59972 19.87258 9.663435 c 19.87258 4.727147 15.8338 .688366 10.89751 .688366 c 5.936288 .688366 1.872576 4.677285 1.872576 9.663435 c h f
        >>> print(cbmarks['star'].scaledRender(20))
        10.85542 18.3253 m 12.90361 11.84337 l 19.84337 11.84337 l 14.25301 7.650602 l 16.42169 1 l 10.85542 5.096386 l 5.289157 1 l 7.481928 7.650602 l 1.843373 11.84337 l 8.759036 11.84337 l 10.85542 18.3253 l h f
        >>> print(cbmarks['diamond'].scaledRender(20))
        17.43533 9.662031 m 15.63282 7.484006 l 10.85118 .649513 l 8.422809 4.329624 l 5.919332 7.659249 l 4.267038 9.662031 l 6.16968 12.0153 l 10.85118 18.64951 l 12.75382 15.4701 15.00695 12.49096 17.43533 9.662031 c h f
        r r�c�,��t|�z
�z�z�Srnr)rcr�sxr�s ���rXr�z%CBMark.scaledRender.<locals>.<lambda>J������$���{�2�~�.�rZc�,��t|�z
�z�z�Srnr)rcr�syr�s ���rXr�z%CBMark.scaledRender.<locals>.<lambda>Kr�rZrrr�r�)r�r�r�r�r�r6r�opNames�opCountr�r�r��ranger�r�)rkr�r�rMrr�hr��xsc�yscr�r��Cr�r��opr��_rrr�r�r�r�s                  @@@@@@rXr�zCBMark.scaledRender/s�����q��t����A��y�y���y�y���I�I�d�N���I�I�d�N���
�
�3�q��8�#���!�E�'�k�5��8�
#���!�E�'�k�5��8�
#���b��*���R�	�R���	�R���
��Q����^��
��Q����^��.��.���,�,���,�,���I�I��
�������(�(�	�B����A��1�X�
���#�f�Q�i�.�!��#�f�Q�q�S�k�"�#��Q���
�
�g�b�k�N�
	�	
�#���x�x��
�
�#�#rZN)g�������?)r)rrrsrtrbr�r�rlr�rurZrXr�r�%s���o�o��G��G��+$rZr�)rrr rrrrrr r r r r r r r rr r rrN)T���"ii��Ci�i��i�r���i�itr�i�i0i�Q�������������i���������r��r��r��|r��ui�����kr��f�
�_��Ir��"�r���r����,��9i�N��l�!�r��r��r��r8��������r���r���r���������r�r�)r�i�r�i�)rrrrrrrrrrrrrrN)���xi��Zr�;�r�}i �^r�#riDrriyr�ri�rrrr)rrrr)rr r r r rN)rrrr���r��r��Sr��i rrr�r��rrrrr�rr)rrrr�)rrrrrrrrrrrrN)�r�i���r i&�i�rrr�ri
r"rr iBr rr�)rrr!r�)
rrrrrrrrr rN)�0ri�i�)r���r�i
r�r�ni�r%r�iuiBi�i�r$r)r�rr$r�)r��crossr��star�diamond�4�5r�r*�u�__main__ru),�__all__�reportlab.pdfbase.pdfdocrrrrrr	r
rr�reportlab.pdfbase.pdfmetricsr
�reportlab.lib.colorsrrrrr�reportlab.lib.rl_accelr�reportlab.lib.utilsrrr�rO�visibilities�orientationsrzrTrPrYr_rergrwr�rr�r�rrr�doctest�testmodrurZrX�<module>r:s`����]�]�]�4�O�O�)�/�����#$� !�	������	�������� ��!&�	�
��#�
�"'��"��!��#��#(��$����!��$�%�&�'�(�)�*$�+�,%*�-��2�"���!��!��!%�#'�
��#��W��������
�	��-�'�
�"�I�"����8�[/�y�[/�z5$�5$�n��S�g�$��
�>�M�"��
�&�S�$��
�8�B�$��
�2�B�$��+
��6�#�C�s��C�@���z����G�O�O��rZ

Zerion Mini Shell 1.0