+
    UBi@                      a  0 t $ ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	H
t
 ^RIHtHt ^RIHt ]P"                  ! R4      t]P"                  ! R4      tRsR]R	&   RsR
 R ltRR R lltR R lt ! R R]P                  4      tRR R llt]P8                  ! ]P:                  ]]4       ]P<                  ! ]P:                  ]4       ]P>                  ! ]P:                  RR.4       ]P@                  ! ]P:                  R4       R# )    )annotationsN)IO)Image	ImageFile)i32lez^%%([^:]*):[ \t]*(.*)[ \t]*$z^%[%!\w]([^:]*)[ \t]*$zstr | bool | None	gs_binaryc                   V ^8  d   QhRR/# )   returnbool )formats   "7/usr/lib/python3.14/site-packages/PIL/EpsImagePlugin.py__annotate__r   -   s     " " "    c                 ~   \         f   \        P                  P                  R4      '       d=   \        f'   ^ R Ip R F  pV P                  V4      f   K  Vs M	  Rs\        s \         RJ#  \        P                  ! RR.\        P                  R7       Rs \         RJ# \         RJ#   \         d    Rs  \         RJ# i ; i)NwingsFz	--version)stdout)gswin32cgswin64cr   )r   sysplatform
startswithgs_windows_binaryshutilwhich
subprocess
check_callDEVNULLOSError)r   binarys     r   has_ghostscriptr#   -   s    <<""5)) (<F||F+7,2) =
 ).%)I E!!"%%t[&9*BTBTU 	 E!!9E!!  "!	E!!"s   +*B% %B<;B<c               0    V ^8  d   QhRRRRRRRRR	R
RR/# )r
   tilezlist[ImageFile._Tile]sizetuple[int, int]fp	IO[bytes]scaleinttransparencyr   r   zImage.core.ImagingCorer   )r   s   "r   r   r   D   sL     e e
e
e 	e 	e
 e er   c                   \        4       '       g   Rp\        V4      h\        \        \        4      '       g   Q hV ^ ,          P
                  p\        V\        4      '       g   Q hVw  rx\        V4      ;'       g    ^pV^ ,          V,          p	V^,          V,          p
RV	,          V^,          V^ ,          ,
          ,          pRV
,          V^,          V^,          ,
          ,          p\        P                  ! 4       w  r\        P                  ! V4       Rp\        VR4      '       d=   \        P                  P                  VP                  4      '       d   VP                  pM\        P                  ! 4       w  pp\        P                  ! V4       Tp\!        VR4      ;_uu_ 4       pVP#                  ^ \$        P&                  4       VP)                  4       pVP#                  ^ 4       TpV^ 8  dJ   VP+                  \-        VR4      4      pV'       g   M%V\/        V4      ,          pVP1                  V4       KP  RRR4       V'       d   RpMRp\        RR	V	R
 RV
R
 2RVR RVR 2RRRRV 2RV 2RV^ ,          )  RV^,          )  R2RVRR.p Rp\2        P4                  P7                  R4      '       d=   \8        P:                  ! 4       pV;P<                  \8        P>                  ,          un        \8        P@                  ! VVR7       \B        P                   ! V4      ;_uu_ 4       pVPE                  4        VPF                  PI                  4       uuRRR4        \        PJ                  ! V4       V'       d   \        PJ                  ! V4       # #   + '       g   i     ELd; i  \         d     # i ; i  + '       g   i     M; i  \        PJ                  ! T4       T'       d   \        PJ                  ! T4       R# R#   \         d     R# i ; i   \        PJ                  ! T4       T'       d   \        PJ                  ! T4       i i   \         d     i i ; i; i)z!Render an image using Ghostscriptz%Unable to locate Ghostscript on pathsg      R@Nnamewbpngalphapnmrawz-qz-gdxz-rfz-dBATCHz	-dNOPAUSEz-dSAFERz	-sDEVICE=z-sOutputFile=z-c z
 translatez-fshowpager   )startupinfoi  )&r#   r!   
isinstancer   strargstupler+   tempfilemkstemposclosehasattrpathexistsr.   openseekioSEEK_ENDtellreadminlenwriter   r   r   r   STARTUPINFOdwFlagsSTARTF_USESHOWWINDOWr   r   loadimcopyunlink)r%   r&   r(   r*   r,   msgr:   lengthbboxwidthheightres_xres_yout_fdoutfileinfile_tempinfilein_fdr4   fsize
lengthfilesdevicecommandr7   out_ims   &&&&&                     r   Ghostscriptre   D   s}    5cli%%%% 7<<DdE""""LF JOO!EGeOE!Wu_F5LDGd1g-.E6MT!WtAw./E&&(OFHHVKr6rww~~bgg66%--/{

 +t$$GGAr{{#GGIE GGAJJq.GGC
J78c!f$

 %   	
U1IQvaj!
U1IQuQi 
F8
y!G8*AtAwhZz*#G*<<""5))$002K:#B#BBg;?ZZ  FKKM99>># ! 	IIg		+& s %$$v  		 !  	IIg		+&  				IIg		+&  		s   )BN&P ;A2P -*N=
P "4N,N)	,N:9N:=O	P P
 0P
 
PPQ%4QQ%Q"Q%!Q""Q%c                    V ^8  d   QhRRRR/# )r
   prefixbytesr   r   r   )r   s   "r   r   r      s      E d r   c                |    V P                  R 4      ;'       g%    \        V 4      ^8  ;'       d    \        V 4      R8H  # )   %!PS   P )r   rJ   i32)rg   s   &r   _acceptrm      s<    W%  Fq66S[J6r   c                  j    ] tR t^tRtRtRt^R^R^R^R/tR R	 ltR
 R lt	RR R llt
R R ltRtR# )EpsImageFilez.EPS File Parser for the Python Imaging LibraryEPSzEncapsulated PostscriptLLABRGBCMYKc                   V ^8  d   QhRR/# r
   r   Noner   )r   s   "r   r   EpsImageFile.__annotate__   s     y
 y
t y
r   c                	F  a aaa S P                  S P                  4      w  rS P                  P                  V4       R S n        RoRp\	        ^4      p\        V4      p^ pRpRoRoR V 3R llpR VVV V3R llp	 S P                  P                  ^4      p
V
R8X  d   V^ 8X  d   V'       d   V! 4        EMVMeV
R	9   d   V^ 8X  d   KL  MTV^8  d8   V^ ,          \        R
4      8X  d   Rp\        V4      hV'       d
   V! 4        Rp^ pV
^ ,          WF&   V^,          pK  V'       d   V^ ,          \        R
4      8w  g   VR,          R8X  d   V! 4        RpK  \        VRV R4      pV	! V4      '       g   \        P                  V4      pV'       dR   VP                  ^4      pVP                  R4      '       d   VR,          S P                  R&   EM9RS P                  V&   EM(V^ ,          R
8X  d   EMRp\        V4      hEM	VR,          R8X  dn   V'       d   ^ pEK  V^V P!                  R^4      pR VR,           4       w  ppppV^8X  d	   RS n        M"V^8X  d    S P"                  V,          S n        MMVV3pMVR,          R8X  d   MS'       d!   S'       d   \        VRV R4      pV	! V4       MWVR,          R8X  d   RoMFVR,          R8X  d9   \'        V^V 4      pS P                  P                  V\(        P*                  4       ^ pEK  S'       g   Rp\        V4      hT;'       g/    S^,          S^ ,          ,
          S^,          S^,          ,
          3S n        \.        P0                  ! RR S P2                  ,           W!S34      .S n        R#   \$         d     K  i ; i)!rs   NTFc                   V ^8  d   QhRR/# rv   r   )r   s   "r   r   (EpsImageFile._open.<locals>.__annotate__   s     	' 	' 	'r   c                    < RSP                   9  d   Rp \        V 4      hRSP                   9  d   Rp \        V 4      hR# )z
The EPS specification requires that some headers exist.
This should be checked when the header comments formally end,
when image data starts, or when the file ends, whichever comes first.
PS-Adobez'EPS header missing "%!PS-Adobe" commentBoundingBoxz*EPS header missing "%%BoundingBox" commentN)infoSyntaxError)rS   selfs    r   check_required_header_comments:EpsImageFile._open.<locals>.check_required_header_comments   sB     *?!#&&DII-B!#&& .r   c                    V ^8  d   QhRRRR/# )r
   ra   r9   r   r   r   )r   s   "r   r   r{      s     	 	C 	D 	r   c                  <  \         P                  V 4      pT'       g   R# TP                  ^^4      w  rETS	P                  T&   TR8X  dY   TR8X  d   RoR# S'       d   S
'       d>   S'       d6    TP                  4        Uu. uF  p\        \        T4      4      NK  	  upoR# R#   \        P                   d   pR p\	        T4      ThRp?ii ; iu upi   \         d     R# i ; i)not an EPS fileNFr~   z(atend)T)
splitmatchreerrorr   groupr   r+   float	Exception)ra   merS   kvibounding_boxreading_trailer_commentsr   trailer_reacheds   &      r   read_comment(EpsImageFile._open.<locals>.read_comment   s    .KKN
 771a=DADIIaLM!	>/3,  &/>V @Awwy'Iy!E!Hy'I ) 88 .'!#&A-." (J$ s;   B& 0C CC &C;C		CC C%$C%r   s   
%r   :N   Ns   %%EndCommentszlatin-1r}   :	   NN zbad EPS header:N   Ns   %ImageData:c              3  8   "   T F  p\        V4      x  K  	  R # 5iN)r+   ).0values   & r   	<genexpr>%EpsImageFile._open.<locals>.<genexpr>L  s      5,A5CJJ,As   :N   N1:N   Ns   %%EOF:Nr   Ns	   %%Trailer:N   Ns   %%BeginBinary:z!cannot determine EPS bounding boxepsr   r   )_find_offsetr(   rD   _mode	bytearray
memoryviewrH   ordr   r9   fieldr   r   r   r   r!   r   mode_map
ValueErrorr+   r>   SEEK_CUR_sizer   _Tiler&   r%   )r   rT   offsetimagedata_sizebyte_arrbytes_mv
bytes_readreading_header_commentsr   r   byterS   ra   r   r   image_data_valuescolumnsrows	bit_depthmode_id	bytecountr   r   r   s   f                    @@@r   _openEpsImageFile._open   ss   ,,TWW5 	V
 *.15S>h'
"&#( 	' 	'	 	4 77<<?Ds{?.68 #  ? #
 $  {c#h./)#..2:<6;3 &'
'+Aw$a
& A;#c(*hsm?O.O24.3+*-y9#AAAGGAJ<<
3345bEDIIj1+-DIIaL1 .%cl* ' #.0 "!"J %-R
$;$A$A$$J!5,=b,A51y' >!$DJ!^%)]]7%;
  ")$") %=*-y9Q"-"&#"33J 78	Y4J 5C#, $ 
 
Ol1o-Ol1o-(

 OOE6DII#5v?UV
	C & s   N N N c                    V ^8  d   QhRRRR/# )r
   r(   r)   r   r'   r   )r   s   "r   r   rx   z  s      y _ r   c                	,   VP                  ^4      pVR8X  d6   VP                  ^ \        P                  4       VP	                  4       p^ pW43# \        V4      R8X  d,   VP                  ^4      p\        V4      p\        V^4      pW43# Rp\        V4      h)r   rj   rk   r   )rH   rD   rE   rF   rG   rl   r   )r   r(   ra   rT   r   rS   s   &&    r   r   EpsImageFile._find_offsetz  s    GGAJ<GGAr{{#WWYFF ~ Vz! 
AVFAYF
 ~ $Cc""r   c               $    V ^8  d   QhRRRRRR/# )r
   r*   r+   r,   r   r   zImage.core.PixelAccess | Noner   )r   s   "r   r   rx     s$     	& 	&	&,0	&	&	&r   c                	@   V P                   '       do   \        V P                   V P                  V P                  W4      V n        V P                  P
                  V n        V P                  P                  V n        . V n         \        P                  P                  V 4      # r   )
r%   re   r&   r(   rP   moder   r   r   rO   )r   r*   r,   s   &&&r   rO   EpsImageFile.load  se     999!$))TYYUDGDJDJDI{{%%r   c                    V ^8  d   QhRRRR/# )r
   posr+   r   rw   r   )r   s   "r   r   rx     s      S T r   c                	    R # r   r   )r   r   s   &&r   	load_seekEpsImageFile.load_seek  s     	r   )r   r   rP   r%   N   F)__name__
__module____qualname____firstlineno____doc__r   format_descriptionr   r   r   rO   r   __static_attributes__r   r   r   ro   ro      sA    8F235!UAv6Hy
v.	& r   ro   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r
   rP   zImage.Imager(   r)   filenamezstr | bytesr   r+   r   rw   r   )r   s   "r   r   r     s0     . .k .y .K .c .RV .r   c           	        V P                  4        V P                  R8X  d   RpM5V P                  R8X  d   RpM!V P                  R8X  d   RpMRp\        V4      hV'       d   VP                  R4       VP                  R4       VP                  RV P                  ,          4       VP                  R4       VP                  R	4       VP                  R
4       VP                  RV P                  ,          4       VP                  RV,          4       VP                  R4       VP                  R4       VP                  RV P                  ^ ,          V^,          ,          ,          4       VP                  RV P                  ,          4       VP                  RV P                  ,          4       VP                  RV P                  ^ ,          V P                  ^,          V P                  ^,          3,          4       VP                  R4       VP                  V^,          R,           4       \        VR4      '       d   VP                  4        \        P                  ! W\        P                  ! RRV P                  ,           4      .4       VP                  R4       VP                  R4       \        VR4      '       d   VP                  4        R# R# )z*EPS Writer for the Python Imaging Library.rq   rs   rt   zimage mode is not supporteds   %!PS-Adobe-3.0 EPSF-3.0
s   %%Creator: PIL 0.1 EpsEncode
s   %%%%BoundingBox: 0 0 %d %d
s   %%Pages: 1
s   %%EndComments
s   %%Page: 1 1
s   %%ImageData: %d %d s   %d %d 0 1 1 "%s"
s   gsave
s   10 dict begin
s   /buf %d string def
s   %d %d scale
s   %d %d 8
s   [%d 0 0 -%d 0 %d]
s+   { currentfile buf readhexstring pop } bind
   
flushr   s   
%%%%EndBinary
s   grestore end
N)   r   s   image)r      s   false 3 colorimage)r   r   s   false 4 colorimager   )
rO   r   r   rK   r&   r@   r   r   _saver   )rP   r(   r   r   operatorrS   s   &&&&  r   r   r     s    GGI 
ww#~#	E	0	F	0+o

-.
23
0277:;
!
#$
!"
'"''12
&12 HHZHH HH$
Xa[(@ABHH'(HH\BGG#$HH#rwwqz2771:rwwqz&JJKHH<=HHXa[5 !r7

OOBY__UFRWW4DEFGHH!"HHr7

 r   z.psz.epszapplication/postscriptr   )r   )!__conditional_annotations__
__future__r   rE   r>   r   r   r   r<   typingr   r   r   r   _binaryr   rl   compiler   r   r   __annotations__r   r#   re   rm   ro   r   register_openr   register_saveregister_extensionsregister_mime)r   s   @r   <module>r      s   , # " 	 	 	  
    !
 	

23


,-#	 # ".ePh9&& h\.h   L''w ?   L'' /   ,--v ?   L'')A Br   