o �J�hK�@svddlmZddlmZmZmZddlmZddlm Z dd d �Z Gd d �d ej �Z e�e je e �e�e jd�dS)�)� annotations�)�BmpImagePlugin�Image� ImageFile)�i16le)�i32le�prefix�bytes�return�boolcCs|dd�dkS)N�s�)r rr�PC:\pinokio\api\whisper-webui.git\app\env\lib\site-packages\PIL\CurImagePlugin.py�_acceptsrc@seZdZdZdZddd�ZdS) � CurImageFileZCURzWindows Cursorr �Nonec Cs�|j��}|j�d�}t|�sd}t|��d}tt|d��D]}|j�d�}|s+|}q|d|dkr=|d|dkr=|}q|sFd}t|��|�t |d �|�|j d|j dd f|_ |j d\}}}} t �|d |j || �|j d<dS) N�znot a CUR file�r �rrzNo cursors were found� �)rr)�fp�tell�readr� SyntaxError�range�i16� TypeError�_bitmap�i32�size�_size�tiler�_Tile) �self�offset�s�msg�m�i�d�e�o�arrr�_open(s(    � zCurImageFile._openN)r r)�__name__� __module__� __qualname__�format�format_descriptionr/rrrrr$srz.curN)r r r r )� __future__r�rrr�_binaryrrrr r� BmpImageFiler� register_openr3�register_extensionrrrr�<module>s    %
Memory