ó
    2j�  ã                   ó¶  • S r SrS rSSSSSS.S	 jr\S
:X  a°  SSKr\R                  R                  \R                  R                  \R                  R                  \
5      SS5      5      r\R                  " \SS9  \" SSS9r\" \R                  R                  \S5      SSS9 r\R!                  \5        SSS5        \" S5        gg! , (       d  f       N= f)uw  Single-line branded SVG for an equation under a bar model.

Used by `solution_block.py`, also usable standalone (one equation per call).
The `algebra` field is recorded on the data side so the future P5â€“P6 algebra
toggle can re-render the same step as an algebraic equation without a retrofit.

generate(text, *, algebra=None, width=860, height=44, emphasize=False) -> str
zƒ<style>svg{--crimson:#960000;--gold:#BF9237;--lime:#88C808;--steel:#4A6488;--cream:#FAF5EE;--ink:#2A2A2A;--border:#D0ACAC;}</style>c                 óx   • [        U 5      R                  SS5      R                  SS5      R                  SS5      $ )NÚ&z&amp;Ú<z&lt;Ú>z&gt;)ÚstrÚreplace)Úss    Ú>C:\allgifted\mathapi11v2\tools\svg_generators\equation_line.pyÚ_escr
      s2   € Ü�‹F�N‰N˜3 Ó(×0Ñ0°°fÓ=ß‰W�S˜&Ó!ð#ó    Ni\  é,   FT)ÚalgebraÚwidthÚheightÚ	emphasizeÚborderc                óT  • U(       a  SOSnSU SU SU SU SU(       a  [        U5      OS S	3[        /nU(       a  UR                  S
US-
   SUS-
   S35        UR                  SUS-   SUS-   SU S[        U 5       S3	5        UR                  S5        SR                  U5      $ )uÃ   Render one equation line as SVG.

`algebra` is captured (data-only) but not yet rendered â€” it carries the
algebraic form of `text` for a future toggle. e.g. text="1 unit = 4",
algebra="u = 4".
zvar(--crimson)z
var(--ink)z/<svg xmlns="http://www.w3.org/2000/svg" width="z
" height="z" viewBox="0 0 Ú z" data-algebra="Ú z">z<rect x="3" y="3" width="é   z>" rx="6" fill="none" stroke="var(--border)" stroke-width="2"/>z	<text x="é   z" y="zC" font-family="sans-serif" font-size="17" font-weight="bold" fill="z3" text-anchor="middle" dominant-baseline="central">z</text>z</svg>Ú
)r
   ÚSTYLEÚappendÚjoin)Útextr   r   r   r   r   ÚfillÚpartss           r	   Úgenerater      så   € ö  )Ñ¨l€Dà
9¸%¸ð AØ�(˜/¨%¨°°&°ð :Þ*1œ˜gœ°rÐ:¸"ð	>ô 	ð	€Eö Ø�‰Ø'¨¨a© y°
¸6À!¹8¸*ð EDð Eô	
ð 
‡L�LØ
�E˜!‘G�9˜E &¨¡( ð ,3Ø37°&ð 9<Ü<@À»J¸<Àwð	Pôð
 
‡L�L�ÔØ�9‰9�UÓÐr   Ú__main__é    z..Úsamples)Úexist_okz-Number of teddy bears Jenny has = 8 + 10 = 18zJ = S + 10 = 8 + 10 = 18)r   zequation_line.svgÚwzutf-8)Úencodingzwrote equation_line.svg)Ú__doc__r   r
   r   Ú__name__ÚosÚpathÚabspathr   ÚdirnameÚ__file__ÚoutÚmakedirsr   ÚopenÚfÚwriteÚprint© r   r	   Ú<module>r3      s×   ðñðOð ò#ð
 #¨#°bØ Tõð: ˆzÓÛØ
�'‰'�/‰/˜"Ÿ'™'Ÿ,™, r§w¡w§¡°xÓ'@À$È	ÓRÓ
S€CØ‡K‚K�˜dÒ#ÙØ7Ø*ñ	€Añ 
ˆb�g‰g�l‰l˜3Ð 3Ó4°cØò
 Ø#$Ø	�‰�Œ
÷
 ñ 
Ð
#Õ$ð ÷
 õ 
 ús   Â&C
Ã

C