
    +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	\5      r " S
 S\R                  5      r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S S5      5       r\ " S  S!5      5       r\ " S" S#5      5       r\ " S$ S%5      5       r\ " S& S'5      5       r\ " S( S)5      5       r\ " S* S+5      5       r\ " S, S-5      5       r \ " S. S/5      5       r!\ " S0 S15      5       r"\ " S2 S35      5       r#\ " S4 S55      5       r$        S[S6 jr%    S\S7 jr&    S]S8 jr'S^S9 jr(S^S: jr)      S_S; jr*    S`S< jr+    SaS= jr,    SbS> jr-    ScS? jr.SdS@ jr/    SeSA jr0    SfSB jr1        SgSC jr2        ShSD jr3        SiSE jr4        SjSF jr5      SkSG jr6    SlSH jr7S^SI jr8SmSJ jr9SnSK jr:\" SL5      \ " SM SN5      5       5       r;\" SO5      \ " SP SQ5      5       5       r<\" SR5      \ " SS ST5      5       5       r=\" SU5      \ " SV SW5      5       5       r>\" SX5      \ " SY SZ5      5       5       r?g)o    )annotations   )event_classT_JSON_DICT)	dataclassN)dom)pagec                  F   ^  \ rS rSrSS jr\SS j5       rU 4S jrSrU =r	$ )StyleSheetId   c                    U $ N selfs    r/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v85/css.pyto_jsonStyleSheetId.to_json   s        c                    U " U5      $ r   r   clsjsons     r   	from_jsonStyleSheetId.from_json       4yr   c                >   > SR                  [        TU ]	  5       5      $ )NzStyleSheetId({}))formatsuper__repr__)r   	__class__s    r   r    StyleSheetId.__repr__   s    !(()9);<<r   r   )returnstr)r   r$   r#   r   )
__name__
__module____qualname____firstlineno__r   classmethodr   r    __static_attributes____classcell__)r!   s   @r   r   r      s&      = =r   r   c                  >    \ rS rSrSrSrSrSrSrS r	\
S 5       rS	rg
)StyleSheetOrigin   z
Stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent
stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via
inspector" rules), "regular" for regular stylesheets.
injectedz
user-agent	inspectorregularc                    U R                   $ r   )valuer   s    r   r   StyleSheetOrigin.to_json'   s    zzr   c                    U " U5      $ r   r   r   s     r   r   StyleSheetOrigin.from_json*   r   r   r   N)r%   r&   r'   r(   __doc__INJECTED
USER_AGENT	INSPECTORREGULARr   r)   r   r*   r   r   r   r-   r-      s6    
 HJIG  r   r-   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)PseudoElementMatches/   z0
CSS rule collection for a single pseudo style.
zdom.PseudoTypepseudo_typetyping.List[RuleMatch]matchesc                    [        5       nU R                  R                  5       US'   U R                   Vs/ s H  o"R                  5       PM     snUS'   U$ s  snf )N
pseudoTyperA   )dictr?   r   rA   r   r   is      r   r   PseudoElementMatches.to_json:   sL    v!--557\04=199;=Y >   Ac           	         U " [         R                  R                  US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )NrC   rA   )r?   rA   )r   
PseudoTyper   	RuleMatchr   r   rF   s      r   r   PseudoElementMatches.from_json@   sJ    00l1CD59)_E_Y((+_E
 	
Es   A
r   N
r%   r&   r'   r(   r7   __annotations__r   r)   r   r*   r   r   r   r=   r=   /   s0       $# 
 
r   r=   c                  H    \ rS rSr% SrS\S'   SrS\S'   S r\S	 5       r	S
r
g)InheritedStyleEntryH   z3
Inherited CSS rule collection from ancestor node.
r@   matched_css_rulesNztyping.Optional[CSSStyle]inline_stylec                    [        5       nU R                   Vs/ s H  o"R                  5       PM     snUS'   U R                  b  U R                  R                  5       US'   U$ s  snf )NmatchedCSSRulesinlineStyle)rD   rS   r   rT   rE   s      r   r   InheritedStyleEntry.to_jsonS   s_    v8<8N8N"O8N199;8N"O("&"3"3";";"=D #Ps   A$c                    U " US    Vs/ s H  n[         R                  U5      PM     snSU;   a  [        R                  US   5      S9$ S S9$ s  snf )NrV   rW   )rS   rT   )rK   r   CSSStylerL   s      r   r   InheritedStyleEntry.from_jsonZ   s_    ?CDU?VW?V!y2215?VWDQUYDY++D,?@
 	
_c
 	
Ws   Ar   )r%   r&   r'   r(   r7   rO   rT   r   r)   r   r*   r   r   r   rQ   rQ   H   s5     .- /3L+2 
 
r   rQ   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)rK   b   z
Match data for a CSS rule.
CSSRuleruleztyping.List[int]matching_selectorsc                    [        5       nU R                  R                  5       US'   U R                   Vs/ s H  o"PM     snUS'   U$ s  snf )Nr_   matchingSelectors)rD   r_   r   r`   rE   s      r   r   RuleMatch.to_jsonm   sL    vyy((*V040G0G$H0G1Q0G$H ! %Is   A	c           	         U " [         R                  US   5      US    Vs/ s H  n[        U5      PM     snS9$ s  snf )Nr_   rb   )r_   r`   )r^   r   intrL   s      r   r   RuleMatch.from_jsons   sB    ""4<0045H0IJ0I1A0IJ
 	
Js   ;
r   NrN   r   r   r   rK   rK   b   s/     M )( 
 
r   rK   c                  H    \ rS rSr% SrS\S'   SrS\S'   S r\S	 5       r	S
r
g)Value{   zP
Data for a simple selector (these are delimited by commas in a selector list).
r$   textNtyping.Optional[SourceRange]range_c                    [        5       nU R                  US'   U R                  b  U R                  R                  5       US'   U$ )Nrj   range)rD   rj   rl   r   r   r   s     r   r   Value.to_json   s;    vyyV;;" KK//1DMr   c                h    U " [        US   5      SU;   a  [        R                  US   5      S9$ S S9$ )Nrj   rn   )rj   rl   )r$   SourceRanger   r   s     r   r   Value.from_json   s@    T&\";Bd?;((g7
 	
PT
 	
r   r   )r%   r&   r'   r(   r7   rO   rl   r   r)   r   r*   r   r   r   rh   rh   {   s4     I ,0F(/ 
 
r   rh   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)SelectorList   z
Selector list data.
ztyping.List[Value]	selectorsr$   rj   c                    [        5       nU R                   Vs/ s H  o"R                  5       PM     snUS'   U R                  US'   U$ s  snf )Nrw   rj   )rD   rw   r   rj   rE   s      r   r   SelectorList.to_json   sB    v26..A.QYY[.A[yyV B   A	c                    U " US    Vs/ s H  n[         R                  U5      PM     sn[        US   5      S9$ s  snf )Nrw   rj   )rw   rj   )rh   r   r$   rL   s      r   r   SelectorList.from_json   s@    373DE3Dauq)3DET&\"
 	
E   ;r   NrN   r   r   r   ru   ru      s/     "! I 
 
r   ru   c                      \ rS rSr% SrS\S'   S\S'   S\S'   S	\S
'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   S\S'   SrS\S'   SrS\S'   SrS\S'   S r	\
S 5       rSrg) CSSStyleSheetHeader   z!
CSS stylesheet metainformation.
r   style_sheet_idpage.FrameIdframe_idr$   
source_urlr-   origintitlebooldisabled	is_inline
is_mutablefloat
start_linestart_columnlengthend_line
end_columnNtyping.Optional[str]source_map_urlz"typing.Optional[dom.BackendNodeId]
owner_nodetyping.Optional[bool]has_source_urlc                   [        5       nU R                  R                  5       US'   U R                  R                  5       US'   U R                  US'   U R
                  R                  5       US'   U R                  US'   U R                  US'   U R                  US'   U R                  US'   U R                  US	'   U R                  US
'   U R                  US'   U R                  US'   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"                  US'   U$ )NstyleSheetIdframeId	sourceURLr   r   r   isInline	isMutable	startLinestartColumnr   endLine	endColumnsourceMapURL	ownerNodehasSourceURL)rD   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ro   s     r   r   CSSStyleSheetHeader.to_json   s7   v#22::<^--//1Y OO[,,.X

W==Z>>Z OO[ OO["//]X--Y OO[*#'#6#6D ??& $ 7 7 9D*#'#6#6D r   c           	        U " S0 S[         R                  US   5      _S[        R                  R                  US   5      _S[	        US   5      _S[
        R                  US   5      _S[	        US   5      _S	[        US	   5      _S
[        US   5      _S[        US   5      _S[        US   5      _S[        US   5      _S[        US   5      _S[        US   5      _S[        US   5      _SSU;   a  [	        US   5      OS _SSU;   a"  [        R                  R                  US   5      OS _SSU;   a  [        US   5      _6$ S _6$ )Nr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )
r   r   r	   FrameIdr$   r-   r   r   r   BackendNodeIdr   s     r   r   CSSStyleSheetHeader.from_json   s    
'11$~2FG
\\++DO<
 4,-
 $--d8n=	

 d7m$
 $z*+
 4
+,
 D-.
 T+./
 tM23
 h(
 4	?+
 T+./
 9G$8N3tN34TX
 JUX\I\s((2243DEbf
  :H49O4^ 45!
 	
  VZ!
 	
r   r   )r%   r&   r'   r(   r7   rO   r   r   r   r   r)   r   r*   r   r   r   r   r      s     !   O  J N O    M O  ,0N(/ 6:J29 -1N)0. 
 
r   r   c                  j    \ rS rSr% SrS\S'   S\S'   S\S'   S	rS
\S'   S	rS\S'   S r\	S 5       r
Srg	)r^   i  z
CSS rule representation.
ru   selector_listr-   r   rZ   styleNtyping.Optional[StyleSheetId]r   z&typing.Optional[typing.List[CSSMedia]]mediac                   [        5       nU R                  R                  5       US'   U R                  R                  5       US'   U R                  R                  5       US'   U R
                  b  U R
                  R                  5       US'   U R                  b-  U R                   Vs/ s H  o"R                  5       PM     snUS'   U$ s  snf )NselectorListr   r   r   r   )rD   r   r   r   r   r   r   rE   s      r   r   CSSRule.to_json*  s    v#1199;^,,.X

**,W*#'#6#6#>#>#@D ::!26**=*QYY[*=DM >s   'Cc                B   U " [         R                  US   5      [        R                  US   5      [        R                  US   5      SU;   a  [        R                  US   5      OS SU;   a+  US    Vs/ s H  n[
        R                  U5      PM     snS9$ S S9$ s  snf )Nr   r   r   r   r   )r   r   r   r   r   )ru   r   r-   rZ   r   CSSMediarL   s      r   r   CSSRule.from_json5  s    &00n1EF#--d8n=$$T']3KY]aKa<11$~2FGgkDKtO$w-@-Q8%%a(-@
 	

 Z^
 	

 As   4Br   )r%   r&   r'   r(   r7   rO   r   r   r   r)   r   r*   r   r   r   r^   r^     sQ        O 59N18 59E18	 
 
r   r^   c                  X    \ rS rSr% SrS\S'   S\S'   S\S'   S\S	'   S
 r\S 5       rSr	g)	RuleUsagei@  z
CSS coverage information.
r   r   r   start_offset
end_offsetr   usedc                    [        5       nU R                  R                  5       US'   U R                  US'   U R                  US'   U R
                  US'   U$ )Nr   startOffset	endOffsetr   )rD   r   r   r   r   r   ro   s     r   r   RuleUsage.to_jsonR  sR    v#22::<^"//] OO[yyVr   c           	         U " [         R                  US   5      [        US   5      [        US   5      [        US   5      S9$ )Nr   r   r   r   )r   r   r   r   )r   r   r   r   r   s     r   r   RuleUsage.from_jsonZ  sH    '11$~2FGtM23T+./d6l#	
 	
r   r   NrN   r   r   r   r   r   @  s?    
 !    J 
 
r   r   c                  X    \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S r\S	 5       rS
r	g)rr   id  z;
Text range within a resource. All numbers are zero-based.
re   r   r   r   r   c                    [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  US'   U$ )Nr   r   r   r   )rD   r   r   r   r   ro   s     r   r   SourceRange.to_jsonu  sG    v OO["//]--Y OO[r   c           	     t    U " [        US   5      [        US   5      [        US   5      [        US   5      S9$ )Nr   r   r   r   )r   r   r   r   )re   r   s     r   r   SourceRange.from_json}  sB    4,-T-01i)4,-	
 	
r   r   NrN   r   r   r   rr   rr   d  s=     O  M O 
 
r   rr   c                  N    \ rS rSr% S\S'   S\S'   SrS\S'   S r\S	 5       rS
r	g)ShorthandEntryi  r$   namer3   Nr   	importantc                    [        5       nU R                  US'   U R                  US'   U R                  b  U R                  US'   U$ )Nr   r3   r   )rD   r   r3   r   ro   s     r   r   ShorthandEntry.to_json  s@    vyyV

W>>% $Dr   c                n    U " [        US   5      [        US   5      SU;   a  [        US   5      S9$ S S9$ )Nr   r3   r   )r   r3   r   )r$   r   r   s     r   r   ShorthandEntry.from_json  sL    T&\"d7m$1<1Dd4,-
 	
 KO
 	
r   r   )
r%   r&   r'   r(   rO   r   r   r)   r   r*   r   r   r   r   r     s6     I J (,I$+ 
 
r   r   c                  @    \ rS rSr% S\S'   S\S'   S r\S 5       rSrg)	CSSComputedStylePropertyi  r$   r   r3   c                V    [        5       nU R                  US'   U R                  US'   U$ )Nr   r3   )rD   r   r3   ro   s     r   r    CSSComputedStyleProperty.to_json  s(    vyyV

Wr   c                @    U " [        US   5      [        US   5      S9$ )Nr   r3   )r   r3   r$   r   s     r   r   "CSSComputedStyleProperty.from_json  s'    T&\"d7m$
 	
r   r   N)	r%   r&   r'   r(   rO   r   r)   r   r*   r   r   r   r   r     s)     I J 
 
r   r   c                  n    \ rS rSr% SrS\S'   S\S'   SrS\S	'   SrS
\S'   SrS\S'   S r	\
S 5       rSrg)rZ   i  z
CSS style representation.
ztyping.List[CSSProperty]css_propertiesztyping.List[ShorthandEntry]shorthand_entriesNr   r   r   css_textrk   rl   c                   [        5       nU R                   Vs/ s H  o"R                  5       PM     snUS'   U R                   Vs/ s H  o"R                  5       PM     snUS'   U R                  b  U R                  R                  5       US'   U R
                  b  U R
                  US'   U R                  b  U R                  R                  5       US'   U$ s  snf s  snf )NcssPropertiesshorthandEntriesr   cssTextrn   )rD   r   r   r   r   r   rl   rE   s      r   r   CSSStyle.to_json  s    v6:6I6I J6I6I J_9=9O9O#P9OAIIK9O#P *#'#6#6#>#>#@D ==$"mmDO;;" KK//1DM !K#Ps   CCc           
     j   U " US    Vs/ s H  n[         R                  U5      PM     snUS    Vs/ s H  n[        R                  U5      PM     snSU;   a  [        R                  US   5      OS SU;   a  [	        US   5      OS SU;   a  [
        R                  US   5      S9$ S S9$ s  snf s  snf )Nr   r   r   r   rn   )r   r   r   r   rl   )CSSPropertyr   r   r   r$   rr   rL   s      r   r   CSSStyle.from_json  s    >B?>ST>SK11!4>STDHI[D\]D\q~77:D\]KY]aKa<11$~2FGgk-6$->Si)D;Bd?;((g7
 	

 QU
 	
T]s
   B+B0
r   )r%   r&   r'   r(   r7   rO   r   r   rl   r   r)   r   r*   r   r   r   rZ   rZ     sW     -, 32 59N18 &*H") ,0F(/
 
 
r   rZ   c                      \ rS rSr% SrS\S'   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)r   i  z 
CSS property declaration data.
r$   r   r3   Nr   r   implicitr   rj   	parsed_okr   rk   rl   c                   [        5       nU R                  US'   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                  US'   U R                  b  U R                  R                  5       US'   U$ )	Nr   r3   r   r   rj   parsedOkr   rn   )
rD   r   r3   r   r   rj   r   r   rl   r   ro   s     r   r   CSSProperty.to_json  s    vyyV

W>>% $D==$#}}D99 99DL>>%#~~D==$#}}D;;" KK//1DMr   c                T   U " [        US   5      [        US   5      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                  US   5      S	9$ S S	9$ )
Nr   r3   r   r   rj   r   r   rn   )r   r3   r   r   rj   r   r   rl   )r$   r   rr   r   r   s     r   r   CSSProperty.from_json  s    T&\"d7m$1<1Dd4,-$/9T/AT$z*+t&,nT&\"$0:d0Bd4
+,/9T/AT$z*+t;Bd?;((g7	
 		
 QU	
 		
r   r   )r%   r&   r'   r(   r7   rO   r   r   rj   r   r   rl   r   r)   r   r*   r   r   r   r   r     s|     I J (,I$+ '+H#* "&D
% (,I$+ '+H#* ,0F(/$ 

 

r   r   c                  |    \ rS rSr% SrS\S'   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)r   i"  z
CSS media rule descriptor.
r$   rj   sourceNr   r   rk   rl   r   r   z(typing.Optional[typing.List[MediaQuery]]
media_listc                   [        5       nU R                  US'   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                   Vs/ s H  o"R                  5       PM     snUS'   U$ s  snf )Nrj   r   r   rn   r   	mediaList)rD   rj   r   r   rl   r   r   r   rE   s      r   r   CSSMedia.to_json=  s    vyyVX??& $D;;" KK//1DM*#'#6#6#>#>#@D ??&6:oo Foo FD !Gs   4Cc                T   U " [        US   5      [        US   5      SU;   a  [        US   5      OS SU;   a  [        R                  US   5      OS SU;   a  [        R                  US   5      OS SU;   a+  US    Vs/ s H  n[        R                  U5      PM     snS9$ S S9$ s  snf )Nrj   r   r   rn   r   r   )rj   r   r   rl   r   r   )r$   rr   r   r   
MediaQueryrL   s      r   r   CSSMedia.from_jsonK  s    T&\"tH~&1<1Ds4,-$;Bd?;((g7PTKY]aKa<11$~2FGgkOZ^bObk9JK9JA
,,Q/9JK
 	
 im
 	
 Ls   =B%r   )r%   r&   r'   r(   r7   rO   r   rl   r   r   r   r)   r   r*   r   r   r   r   r   "  sc     I K (,J$+ ,0F(/ 59N18 <@J8? 
 
r   r   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)r   iW  z
Media query descriptor.
z!typing.List[MediaQueryExpression]expressionsr   activec                    [        5       nU R                   Vs/ s H  o"R                  5       PM     snUS'   U R                  US'   U$ s  snf )Nr   r   )rD   r   r   r   rE   s      r   r   MediaQuery.to_jsonb  sF    v484D4DE4Dqyy{4DE]X Frz   c                    U " US    Vs/ s H  n[         R                  U5      PM     sn[        US   5      S9$ s  snf )Nr   r   )r   r   )MediaQueryExpressionr   r   rL   s      r   r   MediaQuery.from_jsonh  sC    DHDWXDWq-77:DWXX'
 	
Xr}   r   NrN   r   r   r   r   r   W  s/     32 L 
 
r   r   c                  j    \ rS rSr% SrS\S'   S\S'   S\S'   SrS	\S
'   SrS\S'   S r\	S 5       r
Srg)r   ip  z$
Media query expression descriptor.
r   r3   r$   unitfeatureNrk   value_rangeztyping.Optional[float]computed_lengthc                    [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  b  U R                  R                  5       US'   U R                  b  U R                  US'   U$ )Nr3   r   r   
valueRangecomputedLength)rD   r3   r   r   r   r   r   ro   s     r   r   MediaQueryExpression.to_json  sw    v

WyyV,,Y'!%!1!1!9!9!;D+%)%9%9D!"r   c           
         U " [        US   5      [        US   5      [        US   5      SU;   a  [        R                  US   5      OS SU;   a  [        US   5      S9$ S S9$ )Nr3   r   r   r   r   )r3   r   r   r   r   )r   r$   rr   r   r   s     r   r   MediaQueryExpression.from_json  sx    W&T&\"Y(EQUYEY--d<.@A_c=MQU=UE$'7"89
 	

 \`
 	
r   r   )r%   r&   r'   r(   r7   rO   r   r   r   r)   r   r*   r   r   r   r   r   p  sO     L I L 15K-4 /3O+2	 
 
r   r   c                  N    \ rS rSr% SrS\S'   S\S'   S\S'   S	 r\S
 5       rSr	g)PlatformFontUsagei  zH
Information about amount of glyphs that were rendered with given font.
r$   family_namer   is_custom_fontr   glyph_countc                t    [        5       nU R                  US'   U R                  US'   U R                  US'   U$ )N
familyNameisCustomFont
glyphCount)rD   r  r  r  ro   s     r   r   PlatformFontUsage.to_json  s>    v!--\#22^!--\r   c                Z    U " [        US   5      [        US   5      [        US   5      S9$ )Nr  r	  r
  )r  r  r  )r$   r   r   r   s     r   r   PlatformFontUsage.from_json  s6    D./^ 45d<01
 	
r   r   NrN   r   r   r   r  r    s8        
 
r   r  c                      \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S\S'   S\S	'   S\S
'   S\S'   S r\S 5       rSr	g)FontFacei  ze
Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions
r$   font_family
font_stylefont_variantfont_weightfont_stretchunicode_rangesrcplatform_font_familyc                
   [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  US'   U R
                  US'   U R                  US'   U R                  US'   U R                  US'   U$ )	N
fontFamily	fontStylefontVariant
fontWeightfontStretchunicodeRanger  platformFontFamily)	rD   r  r  r  r  r  r  r  r  ro   s     r   r   FontFace.to_json  s    v!--\ OO["//]!--\"//]#11^hhU%)%>%>!"r   c                    U " [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      S	9$ )
Nr  r  r  r  r  r  r  r  )r  r  r  r  r  r  r  r  r   r   s     r   r   FontFace.from_json  sw    D./4,-T-01D./T-01d>23DK !$T*>%?!@	
 		
r   r   NrN   r   r   r   r  r    s^      O     
H 
 

 

r   r  c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)CSSKeyframesRulei  z$
CSS keyframes rule representation.
rh   animation_nameztyping.List[CSSKeyframeRule]	keyframesc                    [        5       nU R                  R                  5       US'   U R                   Vs/ s H  o"R                  5       PM     snUS'   U$ s  snf )NanimationNamer&  )rD   r%  r   r&  rE   s      r   r   CSSKeyframesRule.to_json  sN    v $ 3 3 ; ; =_26..A.QYY[.A[ BrH   c           	         U " [         R                  US   5      US    Vs/ s H  n[        R                  U5      PM     snS9$ s  snf )Nr(  r&  )r%  r&  )rh   r   CSSKeyframeRulerL   s      r   r   CSSKeyframesRule.from_json   sG     ??4+@A=A+=NO=N003=NO
 	
Os   A
r   NrN   r   r   r   r$  r$    s0      ,+ 
 
r   r$  c                  \    \ rS rSr% SrS\S'   S\S'   S\S'   S	rS
\S'   S r\S 5       r	Sr
g	)r+  i  z#
CSS keyframe rule representation.
r-   r   rh   key_textrZ   r   Nr   r   c                   [        5       nU R                  R                  5       US'   U R                  R                  5       US'   U R                  R                  5       US'   U R
                  b  U R
                  R                  5       US'   U$ )Nr   keyTextr   r   )rD   r   r   r.  r   r   ro   s     r   r   CSSKeyframeRule.to_json  su    v,,.X--//1Y

**,W*#'#6#6#>#>#@D r   c           	         U " [         R                  US   5      [        R                  US   5      [        R                  US   5      SU;   a  [        R                  US   5      S9$ S S9$ )Nr   r0  r   r   )r   r.  r   r   )r-   r   rh   rZ   r   r   s     r   r   CSSKeyframeRule.from_json#  so    #--d8n=__T)_5$$T']3KY]aKa<11$~2FG	
 	
 hl	
 	
r   r   )r%   r&   r'   r(   r7   rO   r   r   r)   r   r*   r   r   r   r+  r+    sC      O O 59N18 
 
r   r+  c                  N    \ rS rSr% SrS\S'   S\S'   S\S'   S	 r\S
 5       rSr	g)StyleDeclarationEditi-  z=
A descriptor of operation to mutate style declaration text.
r   r   rr   rl   r$   rj   c                    [        5       nU R                  R                  5       US'   U R                  R                  5       US'   U R                  US'   U$ )Nr   rn   rj   )rD   r   r   rl   rj   ro   s     r   r   StyleDeclarationEdit.to_json;  sJ    v#22::<^++-WyyVr   c                    U " [         R                  US   5      [        R                  US   5      [        US   5      S9$ )Nr   rn   rj   )r   rl   rj   )r   r   rr   r$   r   s     r   r   StyleDeclarationEdit.from_jsonB  s@    '11$~2FG((g7T&\"
 	
r   r   NrN   r   r   r   r5  r5  -  s7     !   I 
 
r   r5  c              #     #    [        5       nU R                  5       US'   XS'   UR                  5       US'   SUS.nUv n[        R                  US   5      $ 7f)ax  
Inserts a new rule with the given ``ruleText`` in a stylesheet with given ``styleSheetId``, at the
position specified by ``location``.

:param style_sheet_id: The css style sheet identifier where a new rule should be inserted.
:param rule_text: The text of a new rule.
:param location: Text position of a new rule in the target style sheet.
:returns: The newly created rule.
r   ruleTextlocationzCSS.addRulemethodparamsr_   )rD   r   r^   r   )r   	rule_textr<  r?  cmd_dictr   s         r   add_rulerB  K  sg      &F+335F>":!))+F:H >DT&\**   AAc              #     #    [        5       nU R                  5       US'   SUS.nUv nUS    Vs/ s H  n[        U5      PM     sn$ s  snf 7f)zg
Returns all class names from specified stylesheet.

:param style_sheet_id:
:returns: Class name list.
r   zCSS.collectClassNamesr=  
classNamesrD   r   r$   )r   r?  rA  r   rF   s        r   collect_class_namesrG  e  sZ      &F+335F>)H >D ./.qCF.///s   .AAAc              #     #    [        5       nU R                  5       US'   SUS.nUv n[        R                  US   5      $ 7f)z
Creates a new special "via-inspector" stylesheet in the frame with given ``frameId``.

:param frame_id: Identifier of the frame where "via-inspector" stylesheet should be created.
:returns: Identifier of the created "via-inspector" stylesheet.
r   zCSS.createStyleSheetr=  r   )rD   r   r   r   )r   r?  rA  r   s       r   create_style_sheetrI  x  sM      &F ((*F9(H >D!!$~"677s   ?Ac               #     #    SS0n U v ng7f)z,
Disables the CSS agent for the given page.
r>  zCSS.disableNr   rA  r   s     r   disablerL    s     
 	-H >D   
c               #     #    SS0n U v ng7f)z
Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been
enabled until the result of this command is received.
r>  z
CSS.enableNr   rK  s     r   enablerO    s      	,H >DrM  c              #     #    [        5       nU R                  5       US'   U Vs/ s H  o3PM     snUS'   SUS.nUv ngs  snf 7f)a  
Ensures that the given node will have specified pseudo-classes whenever its style is computed by
the browser.

:param node_id: The element id for which to force the pseudo state.
:param forced_pseudo_classes: Element pseudo classes to force when computing the element's style.
nodeIdforcedPseudoClasseszCSS.forcePseudoStater=  NrD   r   )node_idforced_pseudo_classesr?  rF   rA  r   s         r   force_pseudo_staterV    sW      &F(F80E$F0E1Q0E$FF !(H >D %Gs   "A?Ac              #    #    [        5       nU R                  5       US'   SUS.nUv nSU;   a  US    Vs/ s H  n[        U5      PM     snOSSU;   a  [        US   5      OSSU;   a  [        US   5      4$ S4$ s  snf 7f)aA  
:param node_id: Id of the node to get background colors for.
:returns: A tuple with the following items:

    0. **backgroundColors** - *(Optional)* The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).
    1. **computedFontSize** - *(Optional)* The computed font size for this node, as a CSS computed value string (e.g. '12px').
    2. **computedFontWeight** - *(Optional)* The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').
rQ  zCSS.getBackgroundColorsr=  backgroundColorsNcomputedFontSizecomputedFontWeightrF  rT  r?  rA  r   rF   s        r   get_background_colorsr\    s      &F(F8+H >D6HD6P0121AQ12VZ);t)CD#$%+?4+GD%&'  NR 2s   4BA<6Bc              #     #    [        5       nU R                  5       US'   SUS.nUv nUS    Vs/ s H  n[        R                  U5      PM     sn$ s  snf 7f)z
Returns the computed style for a DOM node identified by ``nodeId``.

:param node_id:
:returns: Computed style for the specified DOM node.
rQ  zCSS.getComputedStyleForNoder=  computedStyle)rD   r   r   r   r[  s        r   get_computed_style_for_noder_    s`      &F(F8/H >D;?;PQ;Pa$..q1;PQQQ   .AAAc              #     #    [        5       nU R                  5       US'   SUS.nUv nSU;   a  [        R                  US   5      OSSU;   a  [        R                  US   5      4$ S4$ 7f)a  
Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM
attributes) for a DOM node identified by ``nodeId``.

:param node_id:
:returns: A tuple with the following items:

    0. **inlineStyle** - *(Optional)* Inline style for the specified DOM node.
    1. **attributesStyle** - *(Optional)* Attribute-defined element style (e.g. resulting from "width=20 height=100%").
rQ  zCSS.getInlineStylesForNoder=  rW   NattributesStylerD   r   rZ   r   )rT  r?  rA  r   s       r   get_inline_styles_for_noderd    s      &F(F8.H >D3@D3H4./d7HD7P4 123 VZ s   A(A*c              #    #    [        5       nU R                  5       US'   SUS.nUv nSU;   a  [        R                  US   5      OSSU;   a  [        R                  US   5      OSSU;   a)  US    Vs/ s H  n[        R                  U5      PM     snOSSU;   a)  US    Vs/ s H  n[
        R                  U5      PM     snOSS	U;   a)  US	    Vs/ s H  n[        R                  U5      PM     snOSS
U;   a*  US
    Vs/ s H  n[        R                  U5      PM     sn4$ S4$ s  snf s  snf s  snf s  snf 7f)a  
Returns requested styles for a DOM node identified by ``nodeId``.

:param node_id:
:returns: A tuple with the following items:

    0. **inlineStyle** - *(Optional)* Inline style for the specified DOM node.
    1. **attributesStyle** - *(Optional)* Attribute-defined element style (e.g. resulting from "width=20 height=100%").
    2. **matchedCSSRules** - *(Optional)* CSS rules matching this node, from all applicable stylesheets.
    3. **pseudoElements** - *(Optional)* Pseudo style matches for this node.
    4. **inherited** - *(Optional)* A chain of inherited styles (from the immediate node parent up to the DOM tree root).
    5. **cssKeyframesRules** - *(Optional)* A list of CSS keyframed animations matching this node.
rQ  zCSS.getMatchedStylesForNoder=  rW   Nrb  rV   pseudoElements	inheritedcssKeyframesRules)rD   r   rZ   r   rK   r=   rQ   r$  r[  s        r   get_matched_styles_for_noderi    sX      &F(F8/H >D3@D3H4./d7HD7P4 123VZEVZ^E^.?)@A)@A		Q	)@AdhO_cgOgD9I4JK4Jq		'	'	*4JKmqITX\I\43DE3Da		&	&q	)3DEbfNaeiNi5H0IJ0I1		#	#A	&0IJ  pt  	BKEJs6   A2D>4D*D>$D/
D>D43D>D9#D>c               #  v   #    SS0n U v nUS    Vs/ s H  n[         R                  U5      PM     sn$ s  snf 7f)zG
Returns all media queries parsed by the rendering engine.

:returns: 
r>  zCSS.getMediaQueriesmedias)r   r   rA  r   rF   s      r   get_media_queriesrm    sD      	'H >D+/>:>aHq!>:::   949c              #     #    [        5       nU R                  5       US'   SUS.nUv nUS    Vs/ s H  n[        R                  U5      PM     sn$ s  snf 7f)z
Requests information about platform fonts which we used to render child TextNodes in the given
node.

:param node_id:
:returns: Usage statistics for every employed platform font.
rQ  zCSS.getPlatformFontsForNoder=  fonts)rD   r   r  r   r[  s        r   get_platform_fonts_for_noderq  )  s]      &F(F8/H >D48MBMq''*MBBBr`  c              #  r   #    [        5       nU R                  5       US'   SUS.nUv n[        US   5      $ 7f)zn
Returns the current textual content for a stylesheet.

:param style_sheet_id:
:returns: The stylesheet text.
r   zCSS.getStyleSheetTextr=  rj   rF  )r   r?  rA  r   s       r   get_style_sheet_textrs  =  sF      &F+335F>)H >DtF|s   57c              #  h   #    [        5       nU R                  5       US'   XS'   X#S'   SUS.nUv ng7f)z
Find a rule with the given active property for the given node and set the new value for this
property

:param node_id: The element id for which to set property.
:param property_name:
:param value:
rQ  propertyNamer3   z$CSS.setEffectivePropertyValueForNoder=  NrS  )rT  property_namer3   r?  rA  r   s         r   %set_effective_property_value_for_noderw  P  sD      &F(F8*>7O8H >Ds   02c              #     #    [        5       nU R                  5       US'   UR                  5       US'   X#S'   SUS.nUv n[        R                  US   5      $ 7f)z
Modifies the keyframe rule key text.

:param style_sheet_id:
:param range_:
:param key_text:
:returns: The resulting key text after modification.
r   rn   r0  zCSS.setKeyframeKeyr=  )rD   r   rh   r   )r   rl   r.  r?  rA  r   s         r   set_keyframe_keyry  h  sb      &F+335F>nn&F7O 9&H >D??4	?++rC  c              #     #    [        5       nU R                  5       US'   UR                  5       US'   X#S'   SUS.nUv n[        R                  US   5      $ 7f)z
Modifies the rule selector.

:param style_sheet_id:
:param range_:
:param text:
:returns: The resulting CSS media rule after modification.
r   rn   rj   zCSS.setMediaTextr=  r   )rD   r   r   r   )r   rl   rj   r?  rA  r   s         r   set_media_textr{    sc      &F+335F>nn&F7O6N$H >Dd7m,,rC  c              #     #    [        5       nU R                  5       US'   UR                  5       US'   X#S'   SUS.nUv n[        R                  US   5      $ 7f)z
Modifies the rule selector.

:param style_sheet_id:
:param range_:
:param selector:
:returns: The resulting selector list after modification.
r   rn   selectorzCSS.setRuleSelectorr=  r   )rD   r   ru   r   )r   rl   r}  r?  rA  r   s         r   set_rule_selectorr~    se      &F+335F>nn&F7O!:'H >D!!$~"677rC  c              #     #    [        5       nU R                  5       US'   XS'   SUS.nUv nSU;   a  [        US   5      $ S$ 7f)z
Sets the new stylesheet text.

:param style_sheet_id:
:param text:
:returns: *(Optional)* URL of source map associated with script (if any).
r   rj   zCSS.setStyleSheetTextr=  r   NrF  )r   rj   r?  rA  r   s        r   set_style_sheet_textr    sZ      &F+335F>6N)H >D(6$(>3tN#$HDHs   AAc              #     #    [        5       nU  Vs/ s H  o"R                  5       PM     snUS'   SUS.nUv nUS    Vs/ s H  n[        R                  U5      PM     sn$ s  snf s  snf 7f)z
Applies specified style edits one after another in the given order.

:param edits:
:returns: The resulting styles after modification.
editszCSS.setStyleTextsr=  stylesrc  )r  r?  rF   rA  r   s        r   set_style_textsr    sn      &F,12Eqyy{E2F7O%H >D+/>:>aHq!>:: 3 ;s   A,A"A, A'A,c               #     #    SS0n U v ng7f)z!
Enables the selector recording.
r>  zCSS.startRuleUsageTrackingNr   rK  s     r   start_rule_usage_trackingr    s     
 	.H >DrM  c               #  v   #    SS0n U v nUS    Vs/ s H  n[         R                  U5      PM     sn$ s  snf 7f)z
Stop tracking rule usage and return the list of rules that were used since last call to
``takeCoverageDelta`` (or since start of coverage instrumentation)

:returns: 
r>  zCSS.stopRuleUsageTracking	ruleUsage)r   r   rl  s      r   stop_rule_usage_trackingr    sG      	-H >D,0,=>,=qI",=>>>rn  c               #     #    SS0n U v nUS    Vs/ s H  n[         R                  U5      PM     sn[        US   5      4$ s  snf 7f)z
Obtain list of rules that became used since last call to this method (or since start of coverage
instrumentation)

:returns: A tuple with the following items:

    0. **coverage** - 
    1. **timestamp** - Monotonically increasing time, in seconds.
r>  zCSS.takeCoverageDeltacoverage	timestamp)r   r   r   rl  s      r   take_coverage_deltar    s[      	)H >D)-j)9:)9A		Q	)9:d;  :s   AAAzCSS.fontsUpdatedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	FontsUpdatedi  zl
Fires whenever a web font is updated.  A non-empty font parameter indicates a successfully loaded
web font
ztyping.Optional[FontFace]fontc                N    U " SU;   a  [         R                  US   5      S9$ S S9$ )Nr  )r  )r  r   r   s     r   r   FontsUpdated.from_json  s4    5;t^##DL1
 	
IM
 	
r   r   N)r   r   r#   r  	r%   r&   r'   r(   r7   rO   r)   r   r*   r   r   r   r  r    s!    
 $#
 
r   r  zCSS.mediaQueryResultChangedc                  ,    \ rS rSrSr\SS j5       rSrg)MediaQueryResultChangedi  z
Fires whenever a MediaQuery result changes (for example, after a browser window has been
resized.) The current implementation considers only viewport-dependent media features.
c                    U " 5       $ r   r   r   s     r   r   !MediaQueryResultChanged.from_json"  s     
 	
r   r   N)r   r   r#   r  )r%   r&   r'   r(   r7   r)   r   r*   r   r   r   r  r    s     
 
r   r  zCSS.styleSheetAddedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	StyleSheetAddedi)  z8
Fired whenever an active document stylesheet is added.
r   headerc                :    U " [         R                  US   5      S9$ )Nr  )r  )r   r   r   s     r   r   StyleSheetAdded.from_json2  s!    &00h@
 	
r   r   N)r   r   r#   r  r  r   r   r   r  r  )  s!      
 
r   r  zCSS.styleSheetChangedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	StyleSheetChangedi9  zM
Fired whenever a stylesheet is changed as a result of the client operation.
r   r   c                :    U " [         R                  US   5      S9$ Nr   )r   r   r   r   s     r   r   StyleSheetChanged.from_jsonA  "    '11$~2FG
 	
r   r   N)r   r   r#   r  r  r   r   r   r  r  9  s!     ! 
 
r   r  zCSS.styleSheetRemovedc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	StyleSheetRemovediH  z:
Fired whenever an active document stylesheet is removed.
r   r   c                :    U " [         R                  US   5      S9$ r  r  r   s     r   r   StyleSheetRemoved.from_jsonQ  r  r   r   N)r   r   r#   r  r  r   r   r   r  r  H  s!     ! 
 
r   r  )r   r   r@  r$   r<  rr   r#   z3typing.Generator[T_JSON_DICT, T_JSON_DICT, CSSRule])r   r   r#   z<typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[str]])r   r   r#   z8typing.Generator[T_JSON_DICT, T_JSON_DICT, StyleSheetId])r#   0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])rT  
dom.NodeIdrU  ztyping.List[str]r#   r  )rT  r  r#   ztyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.Optional[typing.List[str]], typing.Optional[str], typing.Optional[str]]])rT  r  r#   zQtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[CSSComputedStyleProperty]])rT  r  r#   zntyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.Optional[CSSStyle], typing.Optional[CSSStyle]]])rT  r  r#   a.  typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.Optional[CSSStyle], typing.Optional[CSSStyle], typing.Optional[typing.List[RuleMatch]], typing.Optional[typing.List[PseudoElementMatches]], typing.Optional[typing.List[InheritedStyleEntry]], typing.Optional[typing.List[CSSKeyframesRule]]]])r#   zAtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[CSSMedia]])rT  r  r#   zJtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[PlatformFontUsage]])r   r   r#   z/typing.Generator[T_JSON_DICT, T_JSON_DICT, str])rT  r  rv  r$   r3   r$   r#   r  )r   r   rl   rr   r.  r$   r#   z1typing.Generator[T_JSON_DICT, T_JSON_DICT, Value])r   r   rl   rr   rj   r$   r#   z4typing.Generator[T_JSON_DICT, T_JSON_DICT, CSSMedia])r   r   rl   rr   r}  r$   r#   z8typing.Generator[T_JSON_DICT, T_JSON_DICT, SelectorList])r   r   rj   r$   r#   z@typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.Optional[str]])r  z!typing.List[StyleDeclarationEdit]r#   zAtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[CSSStyle]])r#   zBtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[RuleUsage]])r#   zWtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[typing.List[RuleUsage], float]])@
__future__r   utilr   r   dataclassesr   enumtyping r   r	   r$   r   Enumr-   r=   rQ   rK   rh   ru   r   r^   r   rr   r   r   rZ   r   r   r   r   r  r  r$  r+  r5  rB  rG  rI  rL  rO  rV  r\  r_  rd  ri  rm  rq  rs  rw  ry  r{  r~  r  r  r  r  r  r  r  r  r  r  r   r   r   <module>r     s   # * !    	=3 	=tyy & 
 
 
0 
 
 
2 
 
 
0 
 
 
2 
 
 
0 b
 b
 b
J (
 (
 (
V  
  
  
F 
 
 
D 
 
 
6 
 
 
* (
 (
 (
V 9
 9
 9
x 1
 1
 1
h 
 
 
0 &
 &
 &
R 
 
 
: 3
 3
 3
l 
 
 
0 !
 !
 !
H 
 
 
:+$++ + 
;	+40$0	C0&88	?8&/ 
8* 
O2RR	XR&	u4 
vB
;CC	QC($	6&  
8	0,$,, , 
9	,2-$-- - 
<	-28$88 8 
@	82I$II 
HI,;0;	H;&?(  

 
  !
 *+

 
  ,
 "#

 
  $
 $%


 

  &

 $%

 
  &
r   