Ë
    {�hY&  ã                   óB   — d „ Z d„ Zd„ Zd„ Zd„ Zdd„Zd„ Zd„ Zd„ Zd	„ Z	y
)c                 ót   — t        | «      dk(  rt        d«      ‚t        t        | «      «      t        | «      z  S )Né    zx must have positive length)ÚlenÚ
ValueErrorÚfloatÚsum©Úxs    úT/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/plotly/shapeannotation.pyÚ_meanr      s0   € Ü
ˆ1ƒv�‚{ÜÐ6Ó7Ð7Ü”�Q“‹=œ3˜q›6Ñ!Ð!ó    c                 ó<   — t        t        | «      d„ ¬«      d   d   S )Nc                 ó   — | d   S ©Né   © ©Úts    r
   ú<lambda>z_argmin.<locals>.<lambda>   ó
   € ¨a°©d€ r   )Úkeyr   ©ÚsortedÚ	enumerater   s    r
   Ú_argminr   
   s   € Ü”)˜A“,¡NÔ3°AÑ6°qÑ9Ð9r   c                 ó>   — t        t        | «      d„ d¬«      d   d   S )Nc                 ó   — | d   S r   r   r   s    r
   r   z_argmax.<locals>.<lambda>   r   r   T)r   Úreverser   r   r   s    r
   Ú_argmaxr      s   € Ü”)˜A“,¡N¸DÔAÀ!ÑDÀQÑGÐGr   c                 ó"   — t        | |||d¬«      S )zDefault annotation parametersF)ÚxanchorÚyanchorr	   ÚyÚ	showarrow)Údict)r    r!   r	   r"   s       r
   Ú_df_annor%      s   € ä˜¨°A¸ÀeÔLÐLr   c                 ó8   — d| v sd| v s| j                  d«       | S )NÚinsideÚoutside)Úadd)Úposs    r
   Ú_add_inside_to_positionr+      s!   € Ø˜‰O˜y¨CÑ/Ø�‰�ÔØ€Jr   c                 ód   — | €d} | }t        | j                  d«      «      } |rt        | «      } | |fS )Nz	top rightú )ÚsetÚsplitr+   )ÚpositionÚprepend_insideÚpos_strs      r
   Ú_prepare_positionr3      s=   € ØÐØˆØ€GÜ�8—>‘> #Ó&Ó'€HÙÜ*¨8Ó4ˆØ�WÐÐr   c                 óv  — |d   }|d   }|d   }|d   }||g}||g}d}	d}
d}d}d	}d
}t        |«      }t        |«      }t        |«      }t        |«      }t	        |«      }t        |«      }t        |«      }t        |«      }t        |«      }t	        |«      }t        |«      \  }}| dk(  rÿ|t        ddg«      k(  rt        |	|
||   |«      S |t        ddg«      k(  rt        ||
||   |«      S |t        dg«      k(  rt        ||||   |«      S |t        d	dg«      k(  rt        |	|||   |«      S |t        d	dg«      k(  rt        ||||   |«      S |t        d	g«      k(  rt        ||
||   |«      S |t        dg«      k(  rt        |	|||«      S |t        dg«      k(  �rt        ||||«      S | dk(  rþ|t        ddg«      k(  rt        |||||   «      S |t        ddg«      k(  rt        |	||||   «      S |t        dg«      k(  rt        ||||«      S |t        d	dg«      k(  rt        ||
|||   «      S |t        d	dg«      k(  rt        |	|
|||   «      S |t        d	g«      k(  rt        ||
||«      S |t        dg«      k(  rt        |	||||   «      S |t        dg«      k(  rt        |||||   «      S t        d|›d�«      ‚)NÚx0Úx1Úy0Úy1ÚrightÚtopÚleftÚcenterÚbottomÚmiddleÚvlineÚhlinezInvalid annotation position "ú")	ÚmaxÚminr   r   r   r3   r.   r%   r   )Ú
shape_typeÚ
shape_argsr0   r5   r6   r7   r8   ÚXÚYÚRÚTÚLÚCÚBÚMÚaYÚiYÚeYÚaaYÚaiYÚaXÚiXÚeXÚaaXÚaiXr2   s                             r
   Úannotation_params_for_linerX   '   s!  € ð
 
�DÑ	€BØ	�DÑ	€BØ	�DÑ	€BØ	�DÑ	€BØ	ˆRˆ€AØ	ˆRˆ€AØ€AØ€AØ€AØ€AØ€AØ€AÜ	ˆQ‹€BÜ	ˆQ‹€BÜ	ˆq‹€BÜ
�!‹*€CÜ
�!‹*€CÜ	ˆQ‹€BÜ	ˆQ‹€BÜ	ˆq‹€BÜ
�!‹*€CÜ
�!‹*€CÜ)¨(Ó3Ñ€HˆgØ�WÒØ”s˜E 6˜?Ó+Ò+Ü˜A˜q ! C¡&¨"Ó-Ð-Ø”s˜E 7Ð+Ó,Ò,Ü˜A˜q ! C¡&¨"Ó-Ð-Ø”s˜E˜7“|Ò#Ü˜A˜q ! C¡&¨"Ó-Ð-Ø”s˜H fÐ-Ó.Ò.Ü˜A˜q ! C¡&¨"Ó-Ð-Ø”s˜H gÐ.Ó/Ò/Ü˜A˜q ! C¡&¨"Ó-Ð-Ø”s˜H˜:“Ò&Ü˜A˜q ! C¡&¨"Ó-Ð-Ø”s˜F˜8“}Ò$Ü˜A˜q " bÓ)Ð)Ø”s˜G˜9“~Ó%Ü˜A˜q " bÓ)Ð)Ø	�wÒ	Ø”s˜E 6˜?Ó+Ò+Ü˜A˜q " a¨¡fÓ-Ð-Ø”s˜E 7Ð+Ó,Ò,Ü˜A˜q " a¨¡fÓ-Ð-Ø”s˜E˜7“|Ò#Ü˜A˜q " bÓ)Ð)Ø”s˜H fÐ-Ó.Ò.Ü˜A˜q " a¨¡fÓ-Ð-Ø”s˜H gÐ.Ó/Ò/Ü˜A˜q " a¨¡fÓ-Ð-Ø”s˜H˜:“Ò&Ü˜A˜q " bÓ)Ð)Ø”s˜F˜8“}Ò$Ü˜A˜q " a¨¡fÓ-Ð-Ø”s˜G˜9“~Ò%Ü˜A˜q " a¨¡fÓ-Ð-Ý
º7ÐDÓ
EÐEr   c           	      ó¼  — |d   }|d   }|d   }|d   }t        |d¬«      \  }}|t        g d¢«      k(  r$t        dd	t        ||g«      t	        ||g«      «      S |t        g d
¢«      k(  r$t        dd	t	        ||g«      t	        ||g«      «      S |t        dd	g«      k(  r$t        dd	t        ||g«      t	        ||g«      «      S |t        g d¢«      k(  r$t        ddt        ||g«      t        ||g«      «      S |t        g d¢«      k(  r$t        ddt	        ||g«      t        ||g«      «      S |t        ddg«      k(  r$t        ddt        ||g«      t        ||g«      «      S |t        ddg«      k(  r$t        ddt        ||g«      t        ||g«      «      S |t        ddg«      k(  r$t        ddt	        ||g«      t        ||g«      «      S |t        dg«      k(  r$t        ddt        ||g«      t        ||g«      «      S |t        g d¢«      k(  r2t        | dk(  rdnd| dk(  rdnd	t        ||g«      t	        ||g«      «      S |t        g d¢«      k(  r2t        | dk(  rdnd| dk(  rdnd	t	        ||g«      t	        ||g«      «      S |t        dd	g«      k(  r$t        ddt        ||g«      t	        ||g«      «      S |t        g d¢«      k(  r2t        | dk(  rdnd| dk(  rd	ndt        ||g«      t        ||g«      «      S |t        g d¢«      k(  r2t        | dk(  rdnd| dk(  rd	ndt	        ||g«      t        ||g«      «      S |t        ddg«      k(  r$t        dd	t        ||g«      t        ||g«      «      S |t        ddg«      k(  r$t        ddt        ||g«      t        ||g«      «      S |t        ddg«      k(  r$t        ddt	        ||g«      t        ||g«      «      S t        d|›�«      ‚)Nr5   r6   r7   r8   T)r1   )r'   r:   r;   r;   r:   )r'   r:   r9   r9   r'   r<   )r'   r=   r;   r=   )r'   r=   r9   r>   )r(   r:   r;   ÚvrectÚhrect)r(   r:   r9   r(   )r(   r=   r;   )r(   r=   r9   zInvalid annotation position )r3   r.   r%   rC   rB   r   r   )rD   rE   r0   r5   r6   r7   r8   r2   s           r
   Úannotation_params_for_rectr\   h   sø  € Ø	�DÑ	€BØ	�DÑ	€BØ	�DÑ	€BØ	�DÑ	€Bä)¨(À4ÔHÑ€HˆgØ”3Ò0Ó1Ò1Ü˜ ¤s¨B°¨8£}´c¸2¸r¸(³mÓDÐDØ”3Ò1Ó2Ò2Ü˜ ¬¨R°¨H«´s¸BÀ¸8³}ÓEÐEØ”3˜ %Ð(Ó)Ò)Ü˜ %¬°°B¨x«¼#¸rÀ2¸h»-ÓHÐHØ”3Ò3Ó4Ò4Ü˜ ¬#¨r°2¨h«-¼¸bÀ"¸X»ÓGÐGØ”3Ò4Ó5Ò5Ü˜ ¬3°°B¨x«=¼#¸rÀ2¸h»-ÓHÐHØ”3˜ (Ð+Ó,Ò,Ü˜ (¬E°2°r°(«O¼SÀ"ÀbÀ»]ÓKÐKØ”3˜ &Ð)Ó*Ò*Ü˜ ¬#¨r°2¨h«-¼ÀÀB¸x»ÓIÐIØ”3˜ 'Ð*Ó+Ò+Ü˜ ¬3°°B¨x«=¼%ÀÀRÀ»/ÓJÐJØ”3˜�z“?Ò"ä˜ (¬E°2°r°(«O¼UÀBÈÀ8»_ÓMÐMØ”3Ò1Ó2Ò2ÜØ! WÒ,‰G°&Ø" gÒ-‰H°5Ü��R�‹MÜ��R�‹Mó	
ð 	
ð ”3Ò2Ó3Ò3ÜØ  GÒ+‰F°Ø" gÒ-‰H°5Ü��R�‹MÜ��R�‹Mó	
ð 	
ð ”3˜	 5Ð)Ó*Ò*Ü˜ (¬E°2°r°(«O¼SÀ"ÀbÀ»]ÓKÐKØ”3Ò4Ó5Ò5ÜØ! WÒ,‰G°&Ø 7Ò*‰E°Ü��R�‹MÜ��R�‹Mó	
ð 	
ð ”3Ò5Ó6Ò6ÜØ  GÒ+‰F°Ø 7Ò*‰E°Ü��R�‹MÜ��R�‹Mó	
ð 	
ð ”3˜	 8Ð,Ó-Ò-Ü˜ %¬°°B¨x«¼#¸rÀ2¸h»-ÓHÐHØ”3˜	 6Ð*Ó+Ò+Ü˜ ¬3°°B¨x«=¼%ÀÀRÀ»/ÓJÐJØ”3˜	 7Ð+Ó,Ò,Ü˜ ¬#¨r°2¨h«-¼ÀÀB¸x»ÓIÐIÝ
¹ÐBÓ
CÐCr   c                 óÖ  ‡
— dŠ
t        ‰
«      }t        t        ˆ
fd„|j                  «       «      «      }| €t        |«      dk(  ry| €
t	        «       } |D ]  }|dk(  rŒ	||d }||   | |<   Œ d}d|j                  «       v r|d   }|j                  d«      rt        |||«      }	n|j                  d«      rt        |||«      }		j                  «       D ]  }|| vs| |   �Œ|	|   | |<   Œ | S )a8  
    annotation: a go.layout.Annotation object, a dict describing an annotation, or None
    shape_type: one of 'vline', 'hline', 'vrect', 'hrect' and determines how the
                x, y, xanchor, and yanchor values are set.
    shape_args: the parameters used to draw the shape, which are used to place the annotation
    kwargs:     a dictionary that was the kwargs of a
                _process_multiple_axis_spanning_shapes spanning shapes call. Items in this
                dict whose keys start with 'annotation_' will be extracted and the keys with
                the 'annotation_' part stripped off will be used to assign properties of the
                new annotation.

    Property precedence:
    The annotation's x, y, xanchor, and yanchor properties are set based on the
    shape_type argument. Each property already specified in the annotation or
    through kwargs will be left as is (not replaced by the value computed using
    shape_type). Note that the xref and yref properties will in general get
    overwritten if the result of this function is passed to an add_annotation
    called with the row and col parameters specified.

    Returns an annotation populated with fields based on the
    annotation_position, annotation_ prefixed kwargs or the original annotation
    passed in to this function.
    Úannotation_c                 ó&   •— | j                  ‰«      S )N)Ú
startswith)ÚkÚprefixs    €r
   r   z0axis_spanning_shape_annotation.<locals>.<lambda>Ä   s   ø€ ¨A¯L©L¸Ó,@€ r   Nr   Úannotation_positionÚlineÚrect)r   ÚlistÚfilterÚkeysr$   ÚendswithrX   r\   )Ú
annotationrD   rE   ÚkwargsÚ
len_prefixÚannotation_keysra   Úsubkrc   Ú
shape_dictrb   s             @r
   Úaxis_spanning_shape_annotationrp   ©   s)  ø€ ð2 €FÜ�V“€JÜœ6Ó"@À&Ç+Á+Ã-ÓPÓQ€Oð Ðœc /Ó2°aÒ7Øð ÐÜ“Vˆ
Øò %ˆØÐ%Ò%àØ��ˆ~ˆØ! !™9ˆ
�4Òð%ð ÐØ §¡£Ñ-Ø$Ð%:Ñ;ÐØ×Ñ˜6Ô"Ü/Ø˜
Ð$7ó
‰
ð 
×	Ñ	˜VÔ	$Ü/Ø˜
Ð$7ó
ˆ
ð �_‰_Óò *ˆð
 �ZÑ Z°¡]Ñ%:Ø& q™MˆJ�qŠMð*ð Ðr   c                 ó    — t        «       }t        «       }| j                  «       D ]$  }|j                  |«      r	| |   ||<   Œ| |   ||<   Œ& ||fS )zë
    Returns two dictionaries, one containing all the items whose keys do not
    start with a prefix and another containing all the items whose keys do start
    with the prefix. Note that the prefix is not removed from the keys.
    )r$   rh   r`   )Údrb   Ú	no_prefixÚwith_prefixra   s        r
   Úsplit_dict_by_key_prefixru   é   sZ   € ô “€IÜ“&€KØ�V‰V‹Xò  ˆØ�<‰<˜ÔØ˜q™TˆK˜ŠNà˜Q™4ˆI�aŠLð	 ð
 �{Ð#Ð#r   N)F)
r   r   r   r%   r+   r3   rX   r\   rp   ru   r   r   r
   ú<module>rv      s>   ðò"ò:òHòMò
óò>FòB>DòB=ó@$r   