
    BhC                     F    S r SSKJrJr  SSKJr  SSKJrJr  S r	S r
S rg	)
zLayout for columns.    )floorinf   )absolute_layout)
percentageresolve_percentagesc	                 `   SSK Jn	Jn
JnJnJn  UR                  nUS   nUS   nUS   nUnSU l        US   S:X  a  / nUR                  UR                  5      nU=R                  U" U5      UR                  -
  -  sl
        US	:w  a[  UR                  S
:w  aK  UR                  S:X  d   eSnU R                  UR                  5       -
  UR                  -
  n[!        UU5      nOSnU" X5        US   S:X  a  US   nO[#        US   UR$                  5      nUS	:X  a)  US	:w  a#  [!        SUR$                  US-
  U-  -
  5      U-  nOUS	:w  aD  US	:X  a>  [!        S['        UR$                  U-   UU-   -  5      5      nUR$                  U-   U-  U-
  nOG[!        S[)        U['        UR$                  U-   UU-   -  5      5      5      nUR$                  U-   U-  U-
  n/ n/ nU(       a  UR+                  5       OSu  n[-        UR                  US US9 H  u  nnUR                  S   S:X  aK  U(       a  UR/                  U[1        U5      -
  U45        UR/                  UUR3                  5       45        / nMd  UR/                  UR3                  5       5        M     U(       a"  UR/                  WS-   [1        U5      -
  U45        U(       a  SUU   0nUR                  (       d  SSS.nSn/ nUR                  5       n/ nSnSnSn U R4                  R6                  S	:X  a  SOU R4                  R9                  5       /n!Sn"U GH&  u  n#n$[;        U$[<        5      (       d  U$n%[?        U%U5        URA                  5       U%l!        UU%l
        U
" U U%UUXEUXx5	      u  n&n'nn  n(SnU&c  SnSn   GOUR/                  U&5        U&RE                  5       U&RG                  5       -   nUR/                  U&RH                  5        U'(       a	  SnSn U'n  GOgSnM  U$nUU" U5      -  n/ n[K        XUUU5      n)U R                  U-
  U-
  =nn*Un[L        n+U RN                  SS n,Un-S=n=n.n/ [1        U RN                  5      [1        U,5      :  a>  U RN                  RQ                  5         [1        U RN                  5      [1        U,5      :  a  M>  Un/ n0/ n1[S        U5       GHW  nU	" U U)U R                  U-
  U-
  UUU=(       d    U/(       + / / / SSS9u  n2n'n    n(U2c  SS0n  GOU1R/                  U25        U'nU2R                   Vs/ s H  nURU                  5       (       d  M  UPM     n3nU3(       a  U3S   R9                  5       U3S   R                  -   U-
  n4UU4-
  nU(       a^  U	" U U)[L        UUS/ / / SSS9S   n5U5R                   H*  nURU                  5       (       d  M  UR9                  5       n6  O   U" U U5// / 5        O	Sn6OS=n4=nn6U0R/                  U45        W6U-
  S:  a  [)        U+U6U-
  5      n+U'b  GMX    O   U R4                  R6                  S	:X  a  SOU R4                  R9                  5       n"U" U U1/ / 5        U(       a  OU/(       a#  Uc  OU+[L        :X  a  SOU+n7UU7-  nUU*:  a  U*nSn.OOU"U!;  a  UU"U!S   -
  -  nU!R/                  U"5        GMf  U(       + =(       a    [!        U05      U*:*  n8U8(       a,  U*U"-  n*US   S:X  d  U#US   S   :  a  Sn/[W        U05      U-  nO/O1UU!S   -  n[1        U!5      S:  a  [)        U"U!S   5      n"UU"-  nSn.OGM  [!        X R                  U-
  U-
  5      nSnSn9/ n: [K        XUUU5      n)US   S:X  a/  U)=RB                  UR$                  US-   U-  -
  UU-  -
  -  sl!        OU)=RB                  UUU-   -  -  sl!        U	" U U)X#UU-UUSSSS9u  n&nn;    n(U&c  / n:Sn OJU;nUnU:R/                  U&5        [!        U9U&R9                  5       5      n9Uc  UnOUS-  nUU:X  a  U(       d  OM  U[)        U*U95      -  nU: H  n<U9U<l        UR/                  U<5        M     SnSnU.(       d  GM'    O   [Y        U U"5        UR                  (       a  U(       d  SU l        SSSSS./ S4$ UUl	        UU" U5      -  nUUR                  5       -
  nUR6                  S	:X  a
  UUl        Sn=OUR6                  U-
  n=URZ                  S	:w  aG  URZ                  UR6                  :  a-  U=URZ                  UR6                  -
  -  n=URZ                  Ul        USSS2    H+  nUR\                  (       a  U=R6                  U=-  sl        M+    O   US   S:X  a  U H  n>[_        U U>XUSS 9  M     U(       a  UR+                  5       u  nW#U-   UU   0nOU (       a  W#S0nU R4                  R6                  S	:w  aE  U =R                  U!S   -  sl        U =R                  U R4                  R9                  5       -  sl        SU l        XW/ S4$ s  snf )!zLay out a multi-column ``box``.r   )block_box_layoutblock_level_layoutblock_level_widthcollapse_marginremove_placeholderscolumn_widthcolumn_countheightTpositionrelativeauto%pxF
column_gapnormal	font_sizer   )r   N)startcolumn_spanallany)breakpage)discard	max_linescolumn_fillbalance   	directionrtl)r   N)
skip_stack)0blockr
   r   r   r   r   style	in_columncopy_with_childrenchildren
position_y
margin_topunitpage_bottomcontent_box_yvaluemaxr   widthr   minkeys	enumerateappendlencopycurrent_footnote_arear   margin_height
isinstancelistr   content_box_x
position_xborder_heightborder_box_ymargin_bottom_create_column_boxr   excluded_shapespoprangeis_in_normal_flowsum_report_footnotes
min_height	is_columnr   )?contextboxbottom_spacer(   containing_blockpage_is_emptyabsolute_boxesfixed_boxesadjoining_marginsr
   r   r   r   r   r*   r5   countr   original_bottom_spaceheight_definedempty_spacegapcolumns_and_blockscolumn_childrenskipichild	next_pagecurrent_position_ynew_childrencolumn_skip_stack	last_loop
break_pagefootnote_area_heightslast_footnotes_heightindexcolumn_children_or_blockr)   	new_child	resume_at_
column_box
max_height
lost_spaceoriginal_excluded_shapesoriginal_page_is_emptystop_rendering	balancingconsumed_heights	new_boxesnew_boxin_flow_childrenconsumed_heightnext_boxnext_box_height
add_heighteverything_fitsmax_column_heightcolumnscolumn_next_pagecolumnheight_differenceabsolute_boxs?                                                                  J/var/www/html/env/lib/python3.13/site-packages/weasyprint/layout/column.pycolumns_layoutr   	   s   . . IIE.!E.!E8_F(GZJ&

 
 
.CNNo&783>>IIN FKK3.{{d"""))C,=,=,??&,,N<5 c,\h&K |,cii8 5F?AsyyEAI#445=	&Uf_Aucii#o%#+>?@SE)C/As5%SUS[(I"JKLSE)C/ O!+JOOEDcll451>5;;}%."))_--?A%%q%**,&78 Ouzz|, ? !!US))?;	= D)*
<<#T2	
 **,LIJ**11V;**88:< +=''2D99,E'78"002E1E"U$9:$^4 EIy)->1
 J  	!
	*'')I,B,B,DD $$Y%<%<= 	!
$-!!M 3 	o.?@@'?E;MO
 "447LL	N
 '
#*#:#:1#= !.5:::g--.5M1NN''++- g--.5M1NN !+!I5\9IZ''*<<vE%'7!2]BB!T:36Iq!Q ?)*D	%  )$-! (/'7'7$2'7e..0 '7 ! $2 $ ),::<(,778:LM $ #)?":K )#3#Z6G,dBB$)T$; <=$> &.%6%6E$6688272E2E2G % &7 ,GhZRH*+FGGOGkO ''8 #[014!$Z;1N!OJ ${ "B 2299VC22@@B "  B;$, #-"3Q
*$J&'F%)N	 ' )0EE 36KB6OOOF)001FG *) 8()Z7   # "77Jm,	9!$6r$:1$==$(	!$%5!6!> 3B77F01A50313H3L1N-33F%)N{ @ --0BBVKM +"$J [!U*%%a!eu_)Dq3w)NN%%%eck)::% Z$&<nuF DI(*:Aq!
  !
(I*JNN9% #!9#:#:#<!>!4FAEz.
 ? D 	c*.?@@F-FM'  
>C ,>H g45
||L!Y% >EII  CL/*;<<#"3"3"55F
zzV
JJ/ ~~CNNSZZ$?S^^cjj88^^
dd#??LL--L	 $ ZJ&*Ls! + !&&(dl$5d$;<
	T]
 $$++v54Q77w<<JJLLGIr500W$2s   #h+ h+c                 F   U R                   (       d  gSnU R                  R                  5       U:  aC  U R                  U R                   S   5        US-  nU R                  R                  5       U:  a  MC  US:  a&  U R                  SU* S-
  S2   nX0R                  U* S& gg)z4Report footnotes above the defined footnotes height.Nr   r"   r   r%   )current_page_footnotesr<   r=   report_footnotereported_footnotes)rN   footnotes_heightr   extras       r   rK   rK     s    )) 

'
'
5
5
7:J
J > >r BCa 
'
'
5
5
7:J
J Q**2/A.A!.CB+FG;@""$6#6#78     c                     U R                  XS9n[        XQ5        SUl        X5l        U R	                  5       Ul        XEl        U$ )z-Create a column box including given children.)r-   T)anonymous_fromr   rM   r5   r@   rA   r.   )rO   rQ   r-   r5   r.   rm   s         r   rE   rE     sH    ##C#;J
5J--/J&r   N)__doc__mathr   r   absoluter   percentr   r   r   rK   rE    r   r   <module>r      s#      % 4z1zA$r   