
    +g`                       S SK Jr  SSKJrJr  S SKJr  S SKrS SKrSSK	J
r
  SSK	Jr  SSK	Jr  \ " S	 S
5      5       r\ " S S5      5       r " S S\R                  5      r\ " S S5      5       r " S S\R                  5      rS2S jrS2S jr    S3           S4S jjrS2S jr  S5       S6S jjr    S3           S7S jjr  S5       S8S jjr  S5             S9S jjr S:     S;S jjr    S<S jr S:   S=S jjr    S<S jr    S<S jr    S>S  jr     S>S! jr!    S<S" jr"    S<S# jr#    S<S$ jr$ S:   S?S% jjr%\" S&5      \ " S' S(5      5       5       r&\" S)5      \ " S* S+5      5       5       r'\" S,5      \ " S- S.5      5       5       r(\" S/5      \ " S0 S15      5       5       r)g)@    )annotations   )event_classT_JSON_DICT)	dataclassN)dom)page)runtimec                      \ rS rSr% SrSrS\S'   SrS\S'   SrS\S'   Sr	S\S	'   Sr
S\S
'   SrS\S'   SrS\S'   SrS\S'   SrS\S'   SrS\S'   SrS\S'   S r\S 5       rSrg)GridHighlightConfig   z;
Configuration data for the highlighting of Grid elements.
Ntyping.Optional[bool]show_grid_extension_linesshow_positive_line_numbersshow_negative_line_numberstyping.Optional[dom.RGBA]grid_border_colorcell_border_colorgrid_border_dashcell_border_dashrow_gap_colorrow_hatch_colorcolumn_gap_colorcolumn_hatch_colorc                *   [        5       nU R                  b  U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US	'   U R                  b  U R                  R                  5       US
'   U R                  b  U R                  R                  5       US'   U$ )NshowGridExtensionLinesshowPositiveLineNumbersshowNegativeLineNumbersgridBorderColorcellBorderColorgridBorderDashcellBorderDashrowGapColorrowHatchColorcolumnGapColorcolumnHatchColor)dictr   r   r   r   to_jsonr   r   r   r   r   r   r   selfjsons     v/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v85/overlay.pyr(   GridHighlightConfig.to_json7   s   v))5-1-K-KD)***6.2.M.MD*+**6.2.M.MD*+!!-&*&<&<&D&D&FD"#!!-&*&<&<&D&D&FD"#  ,%)%:%:D!"  ,%)%:%:D!")"&"4"4"<"<">D+$($8$8$@$@$BD!  ,%)%:%:%B%B%DD!""".'+'>'>'F'F'HD#$    c                   U " SU;   a  [        US   5      OS SU;   a  [        US   5      OS SU;   a  [        US   5      OS SU;   a"  [        R                  R                  US   5      OS SU;   a"  [        R                  R                  US   5      OS SU;   a  [        US   5      OS SU;   a  [        US   5      OS SU;   a"  [        R                  R                  US   5      OS S	U;   a"  [        R                  R                  US	   5      OS S
U;   a"  [        R                  R                  US
   5      OS SU;   a$  [        R                  R                  US   5      S9$ S S9$ )Nr   r   r   r   r    r!   r"   r#   r$   r%   r&   )r   r   r   r   r   r   r   r   r   r   r   )boolr   RGBA	from_jsonclsr+   s     r,   r2   GridHighlightConfig.from_jsonQ   sj   NfjnNnd40H+I&JtxPimqPqtD1J,K'Lw{PimqPqtD1J,K'Lw{M^bfMfchh006G1HIlpM^bfMfchh006G1HIlp=MQU=UT$'7"89[_=MQU=UT$'7"89[_ERVZEZ#((,,T--@A`dIX\`I`CHH..tO/DEfjK[_cKcSXX//5E0FGimOaeiOisxx11$7I2JK
 	
 pt
 	
r.    )__name__
__module____qualname____firstlineno____doc__r   __annotations__r   r   r   r   r   r   r   r   r   r   r(   classmethodr2   __static_attributes__r6   r.   r,   r   r      s     8<4; 9= 5< 9= 5< 4807 4807 /3+2 /3+2 04M,3 26O.5 37/6 59184 
 
r.   r   c                     \ rS rSr% SrSrS\S'   SrS\S'   SrS\S'   Sr	S\S'   Sr
S\S	'   SrS
\S'   SrS
\S'   SrS
\S'   SrS
\S'   SrS
\S'   SrS
\S'   SrS
\S'   SrS
\S'   SrS\S'   SrS\S'   S r\S 5       rSrg)HighlightConfigb   z;
Configuration data for the highlighting of page elements.
Nr   	show_infoshow_stylesshow_rulersshow_accessibility_infoshow_extension_linesr   content_colorpadding_colorborder_colormargin_colorevent_target_colorshape_colorshape_margin_colorcss_grid_colortyping.Optional[ColorFormat]color_formatz$typing.Optional[GridHighlightConfig]grid_highlight_configc                z   [        5       nU R                  b  U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U R                  b  U R                  US'   U R
                  b  U R
                  US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US	'   U R                  b  U R                  R                  5       US
'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U R                   b  U R                   R                  5       US'   U$ )NshowInfo
showStyles
showRulersshowAccessibilityInfoshowExtensionLinescontentColorpaddingColorborderColormarginColoreventTargetColor
shapeColorshapeMarginColorcssGridColorcolorFormatgridHighlightConfig)r'   rB   rC   rD   rE   rF   rG   r(   rH   rI   rJ   rK   rL   rM   rN   rP   rQ   r)   s     r,   r(   HighlightConfig.to_json   s   v>>%#~~D'!%!1!1D'!%!1!1D''3,0,H,HD()$$0)-)B)BD%&)#'#5#5#=#=#?D )#'#5#5#=#=#?D ("&"3"3";";"=D("&"3"3";";"=D"".'+'>'>'F'F'HD#$'!%!1!1!9!9!;D"".'+'>'>'F'F'HD#$*#'#6#6#>#>#@D ("&"3"3";";"=D%%1*.*D*D*L*L*ND&'r.   c                   U " SU;   a  [        US   5      OS SU;   a  [        US   5      OS SU;   a  [        US   5      OS SU;   a  [        US   5      OS SU;   a  [        US   5      OS SU;   a"  [        R                  R                  US   5      OS SU;   a"  [        R                  R                  US   5      OS SU;   a"  [        R                  R                  US   5      OS S	U;   a"  [        R                  R                  US	   5      OS S
U;   a"  [        R                  R                  US
   5      OS SU;   a"  [        R                  R                  US   5      OS SU;   a"  [        R                  R                  US   5      OS SU;   a"  [        R                  R                  US   5      OS SU;   a  [        R                  US   5      OS SU;   a  [
        R                  US   5      S9$ S S9$ )NrS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   )rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rP   rQ   )r0   r   r1   r2   ColorFormatr   r3   s     r,   r2   HighlightConfig.from_json   s   0:d0Bd4
+,4@D4HT,/0d4@D4HT,/0dKbfjKjD.E)F$GptEY]aEad+?&@!AgkFTX\F\#((,,T.-ABbfFTX\F\#((,,T.-ABbfDQUYDY++D,?@_cDQUYDY++D,?@_cOaeiOisxx11$7I2JKosBNRVBV**4+=>\`OaeiOisxx11$7I2JKosGUY]G]388--d>.BCcgGTX\G\..tM/BCbf`uy}`}"5"?"?EZ@["\
 	
 DH
 	
r.   r6   )r7   r8   r9   r:   r;   rB   r<   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rP   rQ   r(   r=   r2   r>   r6   r.   r,   r@   r@   b   s     (,I$+ *.K&- *.K&- 6:29 37/6 04M,3 04M,3 /3L+2 /3L+2 5918 .2K*1 5918 15N-4 26L.5 CG?F D 
 
r.   r@   c                  6    \ rS rSrSrSrSrS r\S 5       r	Sr
g)	rd      rgbhslhexc                    U R                   $ Nvaluer*   s    r,   r(   ColorFormat.to_json       zzr.   c                    U " U5      $ rl   r6   r3   s     r,   r2   ColorFormat.from_json       4yr.   r6   N)r7   r8   r9   r:   RGBHSLHEX_r(   r=   r2   r>   r6   r.   r,   rd   rd      s*    
C
CD  r.   rd   c                  V    \ rS rSr% SrS\S'   SrS\S'   SrS\S'   S	 r\	S
 5       r
Srg)HingeConfig   z%
Configuration for dual screen hinge
zdom.RectrectNr   rG   outline_colorc                    [        5       nU R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  R                  5       US'   U$ )Nr{   rX   outlineColor)r'   r{   r(   rG   r|   r)   s     r,   r(   HingeConfig.to_json   sn    vyy((*V)#'#5#5#=#=#?D )#'#5#5#=#=#?D r.   c                    U " [         R                  R                  US   5      SU;   a"  [         R                  R                  US   5      OS SU;   a$  [         R                  R                  US   5      S9$ S S9$ )Nr{   rX   r~   )r{   rG   r|   )r   Rectr2   r1   r3   s     r,   r2   HingeConfig.from_json   sw    ##DL1FTX\F\#((,,T.-ABbfFTX\F\#((,,T.-AB
 	
 cg
 	
r.   r6   )r7   r8   r9   r:   r;   r<   rG   r|   r(   r=   r2   r>   r6   r.   r,   ry   ry      sA     N 04M,3 04M,3 
 
r.   ry   c                  >    \ rS rSrSrSrSrSrSrS r	\
S 5       rS	rg
)InspectMode   searchForNodesearchForUAShadowDOMcaptureAreaScreenshotshowDistancesnonec                    U R                   $ rl   rm   ro   s    r,   r(   InspectMode.to_json   rq   r.   c                    U " U5      $ rl   r6   r3   s     r,   r2   InspectMode.from_json  rt   r.   r6   N)r7   r8   r9   r:   SEARCH_FOR_NODESEARCH_FOR_UA_SHADOW_DOMCAPTURE_AREA_SCREENSHOTSHOW_DISTANCESNONEr(   r=   r2   r>   r6   r.   r,   r   r      s6    %O55$ND  r.   r   c               #     #    SS0n U v ng7f)z 
Disables domain notifications.
methodzOverlay.disableNr6   cmd_dictr+   s     r,   disabler     s     
 	#H >D   
c               #     #    SS0n U v ng7f)z
Enables domain notifications.
r   zOverlay.enableNr6   r   s     r,   enabler     s     
 	"H >Dr   c              #     #    [        5       nU R                  5       US'   Ub  XS'   Ub  X%S'   Ub  UR                  5       US'   Ub  XES'   SUS.nUv n[        US   5      $ 7f)	a  
For testing.

:param node_id: Id of the node to get highlight object for.
:param include_distance: *(Optional)* Whether to include distance info.
:param include_style: *(Optional)* Whether to include style info.
:param color_format: *(Optional)* The color format to get config with (default: hex).
:param show_accessibility_info: *(Optional)* Whether to show accessibility info (default: true).
:returns: Highlight data for the node.
nodeIdincludeDistanceincludeStyler`   rV   z!Overlay.getHighlightObjectForTestr   params	highlightr'   r(   )node_idinclude_distanceinclude_stylerP   rE   r   r   r+   s           r,   get_highlight_object_for_testr     s     " &F(F8#$4 ! !.~ , 4 4 6}**A&'5H >D[!""s   A A"c               #     #    SS0n U v ng7f)z
Hides any highlight.
r   zOverlay.hideHighlightNr6   r   s     r,   hide_highlightr   >  s     
 	)H >Dr   c              #     #    [        5       nU R                  5       US'   Ub  UR                  5       US'   Ub  UR                  5       US'   SUS.nUv ng7f)a9  
Highlights owner element of the frame with given id.

:param frame_id: Identifier of the frame to highlight.
:param content_color: *(Optional)* The content box highlight fill color (default: transparent).
:param content_outline_color: *(Optional)* The content box highlight outline color (default: transparent).
frameIdNrX   contentOutlineColorzOverlay.highlightFramer   r   )frame_idrG   content_outline_colorr   r   r+   s         r,   highlight_framer   H  sj      &F ((*F9 !.!6!6!8~((=(E(E(G$%*H >D   AAc              #     #    [        5       nU R                  5       US'   Ub  UR                  5       US'   Ub  UR                  5       US'   Ub  UR                  5       US'   Ub  XES'   SUS.nUv ng7f)	a  
Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or
objectId must be specified.

:param highlight_config: A descriptor for the highlight appearance.
:param node_id: *(Optional)* Identifier of the node to highlight.
:param backend_node_id: *(Optional)* Identifier of the backend node to highlight.
:param object_id: *(Optional)* JavaScript object id of the node to be highlighted.
:param selector: *(Optional)* Selectors to highlight relevant nodes.
highlightConfigNr   backendNodeIdobjectIdselectorzOverlay.highlightNoder   r   )highlight_configr   backend_node_id	object_idr   r   r   r+   s           r,   highlight_noder   a  s     " &F 0 8 8 :F"??,x""1"9"9";&..0z%z)H >Ds   A1A3c              #     #    [        5       nU R                  5       US'   Ub  UR                  5       US'   Ub  UR                  5       US'   SUS.nUv ng7f)a  
Highlights given quad. Coordinates are absolute with respect to the main frame viewport.

:param quad: Quad to highlight
:param color: *(Optional)* The highlight fill color (default: transparent).
:param outline_color: *(Optional)* The highlight outline color (default: transparent).
quadNcolorr~   zOverlay.highlightQuadr   r   )r   r   r|   r   r   r+   s         r,   highlight_quadr     sa      &F\\^F6N--/w !.!6!6!8~)H >Dr   c              #     #    [        5       nXS'   XS'   X&S'   X6S'   Ub  UR                  5       US'   Ub  UR                  5       US'   SUS	.nUv ng7f)
ao  
Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.

:param x: X coordinate
:param y: Y coordinate
:param width: Rectangle width
:param height: Rectangle height
:param color: *(Optional)* The highlight fill color (default: transparent).
:param outline_color: *(Optional)* The highlight outline color (default: transparent).
xywidthheightNr   r~   zOverlay.highlightRectr   r   )	r   r   r   r   r   r|   r   r   r+   s	            r,   highlight_rectr     so     $ &F3K3K7O8--/w !.!6!6!8~)H >Ds   AAc              #     #    [        5       nU R                  5       US'   Ub  UR                  5       US'   SUS.nUv ng7f)ab  
Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.
Backend then generates 'inspectNodeRequested' event upon element selection.

:param mode: Set an inspection mode.
:param highlight_config: *(Optional)* A descriptor for the highlight appearance of hovered-over nodes. May be omitted if ```enabled == false```.
modeNr   zOverlay.setInspectModer   r   )r   r   r   r   r+   s        r,   set_inspect_moder     sM      &F\\^F6N#$4$<$<$> !*H >Ds   >A c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zi
Highlights owner element of all frames detected to be ads.

:param show: True for showing ad highlights
showzOverlay.setShowAdHighlightsr   Nr'   r   r   r   r+   s       r,   set_show_ad_highlightsr     +      &F6N/H >D   c              #  @   #    [        5       nU b  XS'   SUS.nUv ng7f)zc
:param message: *(Optional)* The message to display, also triggers resume and step over controls.
Nmessagez"Overlay.setPausedInDebuggerMessager   r   )r   r   r   r+   s       r,   set_paused_in_debugger_messager     s2      &F#y6H >Ds   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zb
Requests that backend shows debug borders on layers

:param show: True for showing debug borders
r   zOverlay.setShowDebugBordersr   Nr   r   s       r,   set_show_debug_bordersr     r   r   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z\
Requests that backend shows the FPS counter

:param show: True for showing the FPS counter
r   zOverlay.setShowFPSCounterr   Nr   r   s       r,   set_show_fps_counterr     s+      &F6N-H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z`
Requests that backend shows paint rectangles

:param result: True for showing paint rectangles
resultzOverlay.setShowPaintRectsr   Nr   r   r   r   r+   s       r,   set_show_paint_rectsr     s,      &F8-H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zh
Requests that backend shows layout shift regions

:param result: True for showing layout shift regions
r   z!Overlay.setShowLayoutShiftRegionsr   Nr   r   s       r,   set_show_layout_shift_regionsr   (  s,      &F85H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zl
Requests that backend shows scroll bottleneck rects

:param show: True for showing scroll bottleneck rects
r   z$Overlay.setShowScrollBottleneckRectsr   Nr   r   s       r,    set_show_scroll_bottleneck_rectsr   9  s+      &F6N8H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zh
Requests that backend shows hit-test borders on layers

:param show: True for showing hit-test borders
r   zOverlay.setShowHitTestBordersr   Nr   r   s       r,   set_show_hit_test_bordersr   J  s+      &F6N1H >Dr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zZ
Paints viewport size upon main frame resize.

:param show: Whether to paint size or not.
r   z#Overlay.setShowViewportSizeOnResizer   Nr   r   s       r,    set_show_viewport_size_on_resizer   [  s+      &F6N7H >Dr   c              #  ^   #    [        5       nU b  U R                  5       US'   SUS.nUv ng7f)zd
Add a dual screen device hinge

:param hinge_config: *(Optional)* hinge data, null means hideHinge
NhingeConfigzOverlay.setShowHinger   r   )hinge_configr   r   r+   s       r,   set_show_hinger   l  s=      &F , 4 4 6}(H >Ds   +-zOverlay.inspectNodeRequestedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	InspectNodeRequestedi~  z
Fired when the node should be inspected. This happens after call to ``setInspectMode`` or when
user manually inspects an element.
zdom.BackendNodeIdr   c                N    U " [         R                  R                  US   5      S9$ )Nr   )r   )r   BackendNodeIdr2   r3   s     r,   r2   InspectNodeRequested.from_json  s(    --77_8MN
 	
r.   r6   N)r+   r   returnr   	r7   r8   r9   r:   r;   r<   r=   r2   r>   r6   r.   r,   r   r   ~  s!    
 '&
 
r.   r   zOverlay.nodeHighlightRequestedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	NodeHighlightRequestedi  z[
Fired when the node should be highlighted. This happens after call to ``setInspectMode``.

dom.NodeIdr   c                N    U " [         R                  R                  US   5      S9$ )Nr   )r   )r   NodeIdr2   r3   s     r,   r2    NodeHighlightRequested.from_json  s%    JJ((h8
 	
r.   r6   N)r+   r   r   r   r   r6   r.   r,   r   r     s!     
 
r.   r   zOverlay.screenshotRequestedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	ScreenshotRequestedi  zF
Fired when user asks to capture screenshot of some area on the page.
zpage.Viewportviewportc                N    U " [         R                  R                  US   5      S9$ )Nr   )r   )r	   Viewportr2   r3   s     r,   r2   ScreenshotRequested.from_json  s&    ]],,T*-=>
 	
r.   r6   N)r+   r   r   r   r   r6   r.   r,   r   r     s!     
 
r.   r   zOverlay.inspectModeCanceledc                  ,    \ rS rSrSr\SS j5       rSrg)InspectModeCanceledi  z+
Fired when user cancels the inspect mode.
c                    U " 5       $ rl   r6   r3   s     r,   r2   InspectModeCanceled.from_json  s     
 	
r.   r6   N)r+   r   r   r   )r7   r8   r9   r:   r;   r=   r2   r>   r6   r.   r,   r   r     s    
 
 
r.   r   )r   0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])NNNN)r   r   r   r   r   r   rP   rO   rE   r   r   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, dict])NN)r   zpage.FrameIdrG   r   r   r   r   r   )r   r@   r   ztyping.Optional[dom.NodeId]r   z"typing.Optional[dom.BackendNodeId]r   z'typing.Optional[runtime.RemoteObjectId]r   typing.Optional[str]r   r   )r   zdom.Quadr   r   r|   r   r   r   )r   intr   r   r   r   r   r   r   r   r|   r   r   r   rl   )r   r   r   z typing.Optional[HighlightConfig]r   r   )r   r0   r   r   )r   r   r   r   )r   r0   r   r   )r   ztyping.Optional[HingeConfig]r   r   )*
__future__r   utilr   r   dataclassesr   enumtyping r   r	   r
   r   r@   Enumrd   ry   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r6   r.   r,   <module>r     s   # * !      M
 M
 M
` e
 e
 e
P
$)) 
 
 
 
>$))  37/3599= # #/ # - # 3	 #
 "7 # 
8 #F 48;?0  9 
8	6 04>B=A)-), < ;	
 ' 
8H ,037( 1 
8	< ,037  	
 ) 1 
8H >B: 
8,	7$ )-%	7 	7"	7"	7"	7"	7"	7"	7$ 6:2	7$ +,

 
  -
 -.


 

  /

 *+

 
  ,
 *+


 

  ,

r.   