zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
U
H=®dÂÉã@sddlmZmZmZddlmZmZddlZddlm    Z    ddlm
Z
ddlm Z ddl m Z dd    lmZdd
lmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z d d d„Z!d!dd„Z"dd„Z#Gdd„de$ƒZ%ej&dd„ƒZ'dd„Z(d"dd„Z)Gdd„de*ƒZ+dS)#é)Úabsolute_importÚdivisionÚunicode_literals)Úwith_metaclassÚviewkeysNé)Ú _inputstream)Ú
_tokenizer)Ú treebuilders)ÚMarker)Ú_utils)ÚspaceCharactersÚasciiUpper2LowerÚspecialElementsÚheadingElementsÚ cdataElementsÚrcdataElementsÚ
tokenTypesÚ tagTokenTypesÚ
namespacesÚhtmlIntegrationPointElementsÚ"mathmlTextIntegrationPointElementsÚadjustForeignAttributesÚadjustMathMLAttributesÚadjustSVGAttributesÚEÚ_ReparseExceptionÚetreeTcKs$t |¡}t||d}|j|f|ŽS)aòParse an HTML document as a string or file-like object into a tree
 
    :arg doc: the document to parse as a string or file-like object
 
    :arg treebuilder: the treebuilder to use when parsing
 
    :arg namespaceHTMLElements: whether or not to namespace HTML elements
 
    :returns: parsed tree
 
    Example:
 
    >>> from html5lib.html5parser import parse
    >>> parse('<html><body><p>This is a doc</p></body></html>')
    <Element u'{http://www.w3.org/1999/xhtml}html' at 0x7feac4909db0>
 
    ©ÚnamespaceHTMLElements)r
ÚgetTreeBuilderÚ
HTMLParserÚparse)ÚdocÚ treebuilderrÚkwargsÚtbÚp©r(úWD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_vendor/html5lib/html5parser.pyr"s
 r"ÚdivcKs,t |¡}t||d}|j|fd|i|—ŽS)a#Parse an HTML fragment as a string or file-like object into a tree
 
    :arg doc: the fragment to parse as a string or file-like object
 
    :arg container: the container context to parse the fragment in
 
    :arg treebuilder: the treebuilder to use when parsing
 
    :arg namespaceHTMLElements: whether or not to namespace HTML elements
 
    :returns: parsed tree
 
    Example:
 
    >>> from html5lib.html5libparser import parseFragment
    >>> parseFragment('<b>this is a fragment</b>')
    <Element u'DOCUMENT_FRAGMENT' at 0x7feac484b090>
 
    rÚ    container)r
r r!Ú parseFragment)r#r+r$rr%r&r'r(r(r)r,1s
 r,csG‡fdd„dtƒ}|S)NcseZdZ‡fdd„ZdS)z-method_decorator_metaclass.<locals>.Decoratedcs>| ¡D]$\}}t|tjƒr$ˆ|ƒ}|||<qt ||||¡S©N)ÚitemsÚ
isinstanceÚtypesÚ FunctionTypeÚtypeÚ__new__)ÚmetaÚ    classnameÚbasesÚ    classDictÚ attributeNameÚ    attribute©Úfunctionr(r)r3Ls
 
z5method_decorator_metaclass.<locals>.Decorated.__new__N)Ú__name__Ú
__module__Ú __qualname__r3r(r:r(r)Ú    DecoratedKsr?)r2)r;r?r(r:r)Úmethod_decorator_metaclassJsr@c@sšeZdZdZd'dd„Zd(dd    „Zd
d „Zed d „ƒZdd„Z    dd„Z
dd„Z dd„Z dd„Z d)dd„Zdd„Zdd„Zdd „Zd!d"„Zd#d$„Zd%d&„ZdS)*r!z]HTML parser
 
    Generates a tree structure from a stream of (possibly malformed) HTML.
 
    NFTcsH|ˆ_|dkrt d¡}||ƒˆ_gˆ_‡fdd„t|ƒ ¡Dƒˆ_dS)aÑ
        :arg tree: a treebuilder class controlling the type of tree that will be
            returned. Built in treebuilders can be accessed through
            html5lib.treebuilders.getTreeBuilder(treeType)
 
        :arg strict: raise an exception when a parse error is encountered
 
        :arg namespaceHTMLElements: whether or not to namespace HTML elements
 
        :arg debug: whether or not to enable debug mode which logs things
 
        Example:
 
        >>> from html5lib.html5parser import HTMLParser
        >>> parser = HTMLParser()                     # generates parser with etree builder
        >>> parser = HTMLParser('lxml', strict=True)  # generates parser with lxml builder which is strict
 
        Nrcsi|]\}}||ˆˆjƒ“qSr()Útree)Ú.0ÚnameÚcls©Úselfr(r)Ú
<dictcomp>ysz'HTMLParser.__init__.<locals>.<dictcomp>)Ústrictr
r rAÚerrorsÚ    getPhasesr.Úphases)rFrArHrÚdebugr(rEr)Ú__init__]s
 
 
 
ÿzHTMLParser.__init__r*cKsh||_||_||_tj|fd|i|—Ž|_| ¡z | ¡Wn$tk
rb| ¡| ¡YnXdS)NÚparser)    Ú innerHTMLModer+Ú    scriptingr    Ú HTMLTokenizerÚ    tokenizerÚresetÚmainLoopr)rFÚstreamÚ    innerHTMLr+rPr%r(r(r)Ú_parse|s zHTMLParser._parsecCsÄ|j ¡d|_g|_g|_d|_|jrœ|j ¡|_    |j    t
krL|j j |j _ n0|j    tkrd|j j|j _ n|j    dkr||j j|j _ n|jd|_|j ¡| ¡nd|_    |jd|_d|_d|_d|_dS)NFz    no quirksÚ    plaintextÚ
beforeHtmlÚinitialT)rArSÚ firstStartTagrIÚlogÚ
compatModerOr+ÚlowerrVrrRÚ rcdataStateÚstaterÚ rawtextStateÚplaintextStaterKÚphaseÚinsertHtmlElementÚresetInsertionModeÚ    lastPhaseÚbeforeRCDataPhaseÚ
framesetOKrEr(r(r)rSŠs*
 
 
 
 
 
 zHTMLParser.resetcCst|dƒsdS|jjjdjS)z‡Name of the character encoding that was used to decode the input stream, or
        :obj:`None` if that is not determined yet
 
        rRNr)ÚhasattrrRrUÚ charEncodingrCrEr(r(r)ÚdocumentEncoding¬s
zHTMLParser.documentEncodingcCsJ|jdkr6|jtdkr6d|jko4|jd t¡dkS|j|jftkSdS)Núannotation-xmlÚmathmlÚencoding)z    text/htmlzapplication/xhtml+xml)rCÚ    namespacerÚ
attributesÚ    translaterr©rFÚelementr(r(r)ÚisHTMLIntegrationPoint¶s
 ÿ
 
ÿþÿz!HTMLParser.isHTMLIntegrationPointcCs|j|jftkSr-)rorCrrrr(r(r)ÚisMathMLTextIntegrationPointÀsz'HTMLParser.isMathMLTextIntegrationPointcCsftd}td}td}td}td}td}td}|jD]â}d}    |}
|
dk    rö|
}    |jjrn|jjdnd} | r|| jnd} | rŠ| jnd} |
d    }||kr¼| |
d
|
 d i¡¡d}
qLt|jjƒd ksb| |jj    ksb| 
| ¡r||kr|d t ddgƒksb|||fksb| t dkrF| dkrF||krF|d dksb|  | ¡rj||||fkrj|j}n
|jd}||krŠ| |
¡}
qL||kr | |
¡}
qL||kr¶| |
¡}
qL||krÌ| |
¡}
qL||krâ| |
¡}
qL||krL| |
¡}
qL||kr>|    dr>|    ds>| dd |    d i¡q>d}g}|rb| |j¡|j ¡}|r,|j|ks,t‚q,dS)NÚ
CharactersÚSpaceCharactersÚStartTagÚEndTagÚCommentÚDoctypeÚ
ParseErroréÿÿÿÿr2ÚdataÚdatavarsrrCÚmglyphÚ
malignmarkrmrlÚsvgÚinForeignContentÚ selfClosingÚselfClosingAcknowledgedz&non-void-element-with-trailing-solidusT)rrRrAÚ openElementsrorCÚ
parseErrorÚgetÚlenÚdefaultNamespaceruÚ    frozensetrrtrcrKÚprocessCharactersÚprocessSpaceCharactersÚprocessStartTagÚ processEndTagÚprocessCommentÚprocessDoctypeÚappendÚ
processEOFÚAssertionError)rFÚCharactersTokenÚSpaceCharactersTokenÚ StartTagTokenÚ EndTagTokenÚ CommentTokenÚ DoctypeTokenÚParseErrorTokenÚtokenÚ
prev_tokenÚ    new_tokenÚ currentNodeÚcurrentNodeNamespaceÚcurrentNodeNamer2rcÚ    reprocessrKr(r(r)rTÃsŠ 
 
ÿþýü
û
úùø    
÷
ö õ 
 
 
 
 
 
  ÿ
ÿ 
zHTMLParser.mainLoopcOs |j|ddf|ž|Ž|j ¡S)aîParse a HTML document into a well-formed tree
 
        :arg stream: a file-like object or string containing the HTML to be parsed
 
            The optional encoding parameter must be a string that indicates
            the encoding.  If specified, that encoding will be used,
            regardless of any BOM or later declaration (such as in a meta
            element).
 
        :arg scripting: treat noscript elements as if JavaScript was turned on
 
        :returns: parsed tree
 
        Example:
 
        >>> from html5lib.html5parser import HTMLParser
        >>> parser = HTMLParser()
        >>> parser.parse('<html><body><p>This is a doc</p></body></html>')
        <Element u'{http://www.w3.org/1999/xhtml}html' at 0x7feac4909db0>
 
        FN)rWrAÚ getDocument©rFrUÚargsr%r(r(r)r"szHTMLParser.parsecOs|j|df|ž|Ž|j ¡S)aZParse a HTML fragment into a well-formed tree fragment
 
        :arg container: name of the element we're setting the innerHTML
            property if set to None, default to 'div'
 
        :arg stream: a file-like object or string containing the HTML to be parsed
 
            The optional encoding parameter must be a string that indicates
            the encoding.  If specified, that encoding will be used,
            regardless of any BOM or later declaration (such as in a meta
            element)
 
        :arg scripting: treat noscript elements as if JavaScript was turned on
 
        :returns: parsed tree
 
        Example:
 
        >>> from html5lib.html5libparser import HTMLParser
        >>> parser = HTMLParser()
        >>> parser.parseFragment('<b>this is a fragment</b>')
        <Element u'DOCUMENT_FRAGMENT' at 0x7feac484b090>
 
        T)rWrAÚ getFragmentr¤r(r(r)r,szHTMLParser.parseFragmentúXXX-undefined-errorcCs@|dkr i}|j |jj ¡||f¡|jr<tt||ƒ‚dSr-)rIr’rRrUÚpositionrHr|r)rFÚ    errorcoderr(r(r)r‡;s
zHTMLParser.parseErrorcCst|tƒdSr-)Úadjust_attributesr©rFrœr(r(r)rCsz!HTMLParser.adjustMathMLAttributescCst|tƒdSr-)rªrr«r(r(r)rFszHTMLParser.adjustSVGAttributescCst|tƒdSr-)rªÚadjustForeignAttributesMapr«r(r(r)rIsz"HTMLParser.adjustForeignAttributescCs|j ¡dSr-)rNrcr«r(r(r)ÚreparseTokenNormalLszHTMLParser.reparseTokenNormalcCsÊd}ddddddddddd    d    d
d d œ}|jjddd …D]†}|j}d}||jjdkrj|js`t‚d}|j}|dkr||js|t‚|s|j|jjkrq8||kr¬|j||}qÀq8|r8|jd    }qÀq8||_dS)NFÚinSelectÚinCellÚinRowÚ inTableBodyÚ    inCaptionÚ inColumnGroupÚinTableÚinBodyÚ
inFramesetÚ
beforeHead)ÚselectÚtdÚthÚtrÚtbodyÚtheadÚtfootÚcaptionÚcolgroupÚtableÚheadÚbodyÚframesetÚhtmlr}rT)r¸rÀrÂrÅ)    rAr†rCrVr”rorŠrKrc)rFÚlastÚnewModesÚnodeÚnodeNameÚ    new_phaser(r(r)rePsDò
 
 
zHTMLParser.resetInsertionModecCsR|dks t‚|j |¡|dkr.|jj|j_n |jj|j_|j|_|j    d|_dS)N)ÚRAWTEXTÚRCDATArËÚtext)
r”rAÚ insertElementrRrar`r_rcÚ originalPhaserK)rFrœÚ contentTyper(r(r)ÚparseRCDataRawtext|s   zHTMLParser.parseRCDataRawtext)NFTF)Fr*F)r§N)r<r=r>Ú__doc__rMrWrSÚpropertyrkrtrurTr"r,r‡rrrr­rerÑr(r(r(r)r!Vs$
 
"
    
C
,r!csdd„}dd„}Gdd„dt|||ƒƒƒ‰Gdd„dˆƒ}Gd    d
„d
ˆƒ}Gd d „d ˆƒ}Gd d„dˆƒ}Gdd„dˆƒ}Gdd„dˆƒ}G‡‡fdd„dˆƒ‰Gdd„dˆƒ}    G‡fdd„dˆƒ}
G‡fdd„dˆƒ‰G‡fdd„dˆƒ} G‡fdd„dˆƒ} G‡fdd „d ˆƒ} G‡fd!d"„d"ˆƒ}G‡fd#d$„d$ˆƒ}G‡fd%d&„d&ˆƒ}Gd'd(„d(ˆƒ}G‡fd)d*„d*ˆƒ}Gd+d,„d,ˆƒ}G‡fd-d.„d.ˆƒ}G‡fd/d0„d0ˆƒ}Gd1d2„d2ˆƒ}Gd3d4„d4ˆƒ}||||||ˆ|    |
ˆ| | | ||||||||||d5œS)6Ncs$dd„t ¡Dƒ‰‡‡fdd„}|S)z4Logger that records which phase processes each tokencSsi|]\}}||“qSr(r()rBÚkeyÚvaluer(r(r)rGsz*getPhases.<locals>.log.<locals>.<dictcomp>csšˆj d¡r†t|ƒdkr†|d}dˆ|di}|dtkrH|d|d<|jj |jjjj|jj    j
j|j
jˆj|f¡ˆ|f|ž|ŽSˆ|f|ž|ŽSdS)NÚprocessrr2rC) r<Ú
startswithr‰rrNr\r’rRr`rcÚ    __class__)rFr¥r%rœÚinfo©r;Ú
type_namesr(r)Úwrapped’s  
üz'getPhases.<locals>.log.<locals>.wrapped)rr.)r;rÜr(rÚr)r\ŽszgetPhases.<locals>.logcSs|r t|ƒStSdSr-)r@r2)Ú use_metaclassÚmetaclass_funcr(r(r)Ú getMetaclass£szgetPhases.<locals>.getMetaclassc@s\eZdZdZdZdd„Zdd„Zdd„Zd    d
„Zd d „Z    d d„Z
dd„Z dd„Z dd„Z dS)zgetPhases.<locals>.PhasezNBase class for helper object that implements each phase of processing
        )rNrAÚ__startTagCacheÚ __endTagCachecSs||_||_i|_i|_dSr-)rNrAÚ_Phase__startTagCacheÚ_Phase__endTagCache)rFrNrAr(r(r)rM¯sz!getPhases.<locals>.Phase.__init__cSst‚dSr-)ÚNotImplementedErrorrEr(r(r)r“µsz#getPhases.<locals>.Phase.processEOFcSs|j ||jjd¡dS)Nr}©rAÚ insertCommentr†r«r(r(r)r¸sz'getPhases.<locals>.Phase.processCommentcSs|j d¡dS)Nzunexpected-doctype©rNr‡r«r(r(r)r‘½sz'getPhases.<locals>.Phase.processDoctypecSs|j |d¡dS©Nr~©rAÚ
insertTextr«r(r(r)rŒÀsz*getPhases.<locals>.Phase.processCharacterscSs|j |d¡dSrèrér«r(r(r)rÃsz/getPhases.<locals>.Phase.processSpaceCharacterscSsj|d}||jkr|j|}nD|j|}|j|<t|jƒt|jƒdkrb|j tt|jƒƒ¡q2||ƒS©NrCgš™™™™™ñ?)râÚstartTagHandlerr‰ÚpopÚnextÚiter©rFrœrCÚfuncr(r(r)rŽÆs
 z(getPhases.<locals>.Phase.processStartTagcSsf|jjs |ddkr |j d¡|d ¡D],\}}||jjdjkr,||jjdj|<q,d|j_dS)NrCrÅz non-html-rootr~rF)rNr[r‡r.rAr†rp©rFrœÚattrrÕr(r(r)Ú startTagHtml×s  z%getPhases.<locals>.Phase.startTagHtmlcSsj|d}||jkr|j|}nD|j|}|j|<t|jƒt|jƒdkrb|j tt|jƒƒ¡q2||ƒSrë)rãÚ endTagHandlerr‰rírîrïrðr(r(r)rás
 z&getPhases.<locals>.Phase.processEndTagN)r<r=r>rÒÚ    __slots__rMr“rr‘rŒrrŽrôrr(r(r(r)ÚPhaseªs
r÷c@sReZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z dS)zgetPhases.<locals>.InitialPhasecSsdSr-r(r«r(r(r)rõsz6getPhases.<locals>.InitialPhase.processSpaceCharacterscSs|j ||jj¡dSr-©rAræÚdocumentr«r(r(r)røsz.getPhases.<locals>.InitialPhase.processCommentcSsü|d}|d}|d}|d}|dks@|dk    s@|dk    rL|dkrL|j d¡|dkrXd}|j |¡|dkrv| t¡}|rº|ddksº| d    ¡sº|d
ksº| d ¡rª|dksº|rÄ| ¡d krÄd |j_n$| d¡sà| d ¡rè|dk    rèd|j_|jj    d|j_
dS)NrCÚpublicIdÚsystemIdÚcorrectrÅzabout:legacy-compatzunknown-doctypeÚ)7z*+//silmaril//dtd html pro v0r11 19970101//z4-//advasoft ltd//dtd html 3.0 aswedit + extensions//z*-//as//dtd html 3.0 aswedit + extensions//z-//ietf//dtd html 2.0 level 1//z-//ietf//dtd html 2.0 level 2//z&-//ietf//dtd html 2.0 strict level 1//z&-//ietf//dtd html 2.0 strict level 2//z-//ietf//dtd html 2.0 strict//z-//ietf//dtd html 2.0//z-//ietf//dtd html 2.1e//z-//ietf//dtd html 3.0//z-//ietf//dtd html 3.2 final//z-//ietf//dtd html 3.2//z-//ietf//dtd html 3//z-//ietf//dtd html level 0//z-//ietf//dtd html level 1//z-//ietf//dtd html level 2//z-//ietf//dtd html level 3//z"-//ietf//dtd html strict level 0//z"-//ietf//dtd html strict level 1//z"-//ietf//dtd html strict level 2//z"-//ietf//dtd html strict level 3//z-//ietf//dtd html strict//z-//ietf//dtd html//z(-//metrius//dtd metrius presentational//z5-//microsoft//dtd internet explorer 2.0 html strict//z.-//microsoft//dtd internet explorer 2.0 html//z0-//microsoft//dtd internet explorer 2.0 tables//z5-//microsoft//dtd internet explorer 3.0 html strict//z.-//microsoft//dtd internet explorer 3.0 html//z0-//microsoft//dtd internet explorer 3.0 tables//z#-//netscape comm. corp.//dtd html//z*-//netscape comm. corp.//dtd strict html//z*-//o'reilly and associates//dtd html 2.0//z3-//o'reilly and associates//dtd html extended 1.0//z;-//o'reilly and associates//dtd html extended relaxed 1.0//zN-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//zE-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//z$-//spyglass//dtd html 2.0 extended//z+-//sq//dtd html 2.0 hotmetal + extensions//z--//sun microsystems corp.//dtd hotjava html//z4-//sun microsystems corp.//dtd hotjava strict html//z-//w3c//dtd html 3 1995-03-24//z-//w3c//dtd html 3.2 draft//z-//w3c//dtd html 3.2 final//z-//w3c//dtd html 3.2//z-//w3c//dtd html 3.2s draft//z-//w3c//dtd html 4.0 frameset//z#-//w3c//dtd html 4.0 transitional//z(-//w3c//dtd html experimental 19960712//z&-//w3c//dtd html experimental 970421//z-//w3c//dtd w3 html//z-//w3o//dtd w3 html 3.0//z#-//webtechs//dtd mozilla html 2.0//z-//webtechs//dtd mozilla html//)z$-//w3o//dtd w3 html strict 3.0//en//z"-/w3c/dtd html 4.0 transitional/enrÅ)z -//w3c//dtd html 4.01 frameset//z$-//w3c//dtd html 4.01 transitional//z:http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtdÚquirks)z -//w3c//dtd xhtml 1.0 frameset//z$-//w3c//dtd xhtml 1.0 transitional//zlimited quirksrY) rNr‡rAÚ insertDoctyperqrr×r^r]rKrc)rFrœrCrúrûrür(r(r)r‘ûsXÿÿ  
ÿÿ9Ç<ÿÄ?Á@À@
ÀA
ÿÿýúz.getPhases.<locals>.InitialPhase.processDoctypecSsd|j_|jjd|j_dS)NrþrY)rNr]rKrcrEr(r(r)Ú anythingElseZsz,getPhases.<locals>.InitialPhase.anythingElsecSs|j d¡| ¡|S)Nzexpected-doctype-but-got-chars©rNr‡rr«r(r(r)rŒ^s z1getPhases.<locals>.InitialPhase.processCharacterscSs"|j dd|di¡| ¡|S)Nz"expected-doctype-but-got-start-tagrCrr«r(r(r)rŽcs
 
ÿz/getPhases.<locals>.InitialPhase.processStartTagcSs"|j dd|di¡| ¡|S)Nz expected-doctype-but-got-end-tagrCrr«r(r(r)ris
 
ÿz-getPhases.<locals>.InitialPhase.processEndTagcSs|j d¡| ¡dS)Nzexpected-doctype-but-got-eofTrrEr(r(r)r“os z*getPhases.<locals>.InitialPhase.processEOFN) r<r=r>Útuplerörrr‘rrŒrŽrr“r(r(r(r)Ú InitialPhaseòs_rc@sJeZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dS)z"getPhases.<locals>.BeforeHtmlPhasecSs&|j tddƒ¡|jjd|j_dS)NrÅrxr·)rAÚ
insertRootÚimpliedTagTokenrNrKrcrEr(r(r)rdxsz4getPhases.<locals>.BeforeHtmlPhase.insertHtmlElementcSs | ¡dS©NT©rdrEr(r(r)r“}sz-getPhases.<locals>.BeforeHtmlPhase.processEOFcSs|j ||jj¡dSr-rør«r(r(r)rsz1getPhases.<locals>.BeforeHtmlPhase.processCommentcSsdSr-r(r«r(r(r)r„sz9getPhases.<locals>.BeforeHtmlPhase.processSpaceCharacterscSs | ¡|Sr-rr«r(r(r)rŒ‡sz4getPhases.<locals>.BeforeHtmlPhase.processCharacterscSs |ddkrd|j_| ¡|S)NrCrÅT)rNr[rdr«r(r(r)rŽ‹s z2getPhases.<locals>.BeforeHtmlPhase.processStartTagcSs4|ddkr$|j dd|di¡n | ¡|SdS)NrC©rÂrÃrÅÚbrzunexpected-end-tag-before-html)rNr‡rdr«r(r(r)r‘s  
ÿz0getPhases.<locals>.BeforeHtmlPhase.processEndTagN) r<r=r>rrördr“rrrŒrŽrr(r(r(r)ÚBeforeHtmlPhasetsr
c@s„eZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z e  defde    fg¡Ze
e_e  de fg¡Ze e_dS)z"getPhases.<locals>.BeforeHeadPhasecSs| tddƒ¡dS)NrÂrxT©Ú startTagHeadrrEr(r(r)r“œsz-getPhases.<locals>.BeforeHeadPhase.processEOFcSsdSr-r(r«r(r(r)r sz9getPhases.<locals>.BeforeHeadPhase.processSpaceCharacterscSs| tddƒ¡|S©NrÂrxr r«r(r(r)rŒ£sz4getPhases.<locals>.BeforeHeadPhase.processCharacterscSs|jjd |¡S©Nrµ©rNrKrŽr«r(r(r)rô§sz/getPhases.<locals>.BeforeHeadPhase.startTagHtmlcSs0|j |¡|jjd|j_|jjd|j_dS)Nr}ÚinHead)rArÎr†Ú headPointerrNrKrcr«r(r(r)r ªs z/getPhases.<locals>.BeforeHeadPhase.startTagHeadcSs| tddƒ¡|Sr r r«r(r(r)Ú startTagOther¯sz0getPhases.<locals>.BeforeHeadPhase.startTagOthercSs| tddƒ¡|Sr r r«r(r(r)ÚendTagImplyHead³sz2getPhases.<locals>.BeforeHeadPhase.endTagImplyHeadcSs|j dd|di¡dS)Nzend-tag-after-implied-rootrCrçr«r(r(r)Ú endTagOther·s
ÿz.getPhases.<locals>.BeforeHeadPhase.endTagOtherrÅrÂrN)r<r=r>rrör“rrŒrôr rrrr ÚMethodDispatcherrìÚdefaultrõr(r(r(r)ÚBeforeHeadPhase™s$þÿrc @sæeZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zdd„Ze defd e fd!e fd"e fd#efd$e    fd%e
fd&efg¡Zee_e d&efd'efg¡Zee_d(S))zgetPhases.<locals>.InHeadPhasecSs | ¡dSr©rrEr(r(r)r“Êsz)getPhases.<locals>.InHeadPhase.processEOFcSs | ¡|Sr-rr«r(r(r)rŒÎsz0getPhases.<locals>.InHeadPhase.processCharacterscSs|jjd |¡Srrr«r(r(r)rôÒsz+getPhases.<locals>.InHeadPhase.startTagHtmlcSs|j d¡dS)Nz!two-heads-are-not-better-than-onerçr«r(r(r)r Õsz+getPhases.<locals>.InHeadPhase.startTagHeadcSs$|j |¡|jj ¡d|d<dS©NTr…©rArÎr†rír«r(r(r)ÚstartTagBaseLinkCommandØs  z6getPhases.<locals>.InHeadPhase.startTagBaseLinkCommandcSs´|j |¡|jj ¡d|d<|d}|jjjjddkr°d|krZ|jjj |d¡nVd|kr°d|kr°|d     ¡d    kr°t
  |d  d
¡¡}t
  |¡}| ¡}|jjj |¡dS) NTr…r~rÚ    tentativeÚcharsetÚcontentz
http-equivz content-typezutf-8)rArÎr†rírNrRrUrjÚchangeEncodingr^rÚ EncodingBytesÚencodeÚContentAttrParserr")rFrœrpr~rNÚcodecr(r(r)Ú startTagMetaÝs   ÿþ
z+getPhases.<locals>.InHeadPhase.startTagMetacSs|j |d¡dS)NrÌ©rNrÑr«r(r(r)Ú startTagTitleòsz,getPhases.<locals>.InHeadPhase.startTagTitlecSs|j |d¡dS)NrËr%r«r(r(r)ÚstartTagNoFramesStyleõsz4getPhases.<locals>.InHeadPhase.startTagNoFramesStylecSs8|jjr|j |d¡n|j |¡|jjd|j_dS)NrËÚinHeadNoscript)rNrPrÑrArÎrKrcr«r(r(r)ÚstartTagNoscriptùs z/getPhases.<locals>.InHeadPhase.startTagNoscriptcSs<|j |¡|jjj|jj_|jj|j_|jjd|j_dS)NrÍ)    rArÎrNrRÚscriptDataStater`rcrÏrKr«r(r(r)ÚstartTagScripts  z-getPhases.<locals>.InHeadPhase.startTagScriptcSs | ¡|Sr-rr«r(r(r)rsz,getPhases.<locals>.InHeadPhase.startTagOthercSs:|jjj ¡}|jdks&td|jƒ‚|jjd|j_dS)NrÂzExpected head got %sÚ    afterHead©rNrAr†rírCr”rKrc©rFrœrÈr(r(r)Ú
endTagHead
sz)getPhases.<locals>.InHeadPhase.endTagHeadcSs | ¡|Sr-rr«r(r(r)ÚendTagHtmlBodyBrsz/getPhases.<locals>.InHeadPhase.endTagHtmlBodyBrcSs|j dd|di¡dS©Núunexpected-end-tagrCrçr«r(r(r)rsz*getPhases.<locals>.InHeadPhase.endTagOthercSs| tdƒ¡dS)NrÂ)r/rrEr(r(r)rsz+getPhases.<locals>.InHeadPhase.anythingElserÅÚtitle)ÚnoframesÚstyleÚnoscriptÚscript)ÚbaseÚbasefontÚbgsoundÚcommandÚlinkr4rÂ)r    rÅrÃN)r<r=r>rrör“rŒrôr rr$r&r'r)r+rr/r0rrr rrìrrõr(r(r(r)Ú InHeadPhaseÆsDÿ÷ þr=c@s°eZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z dd„Z dd„Zdd„Zdd„Ze de    fde
fde fg¡Ze e_e de fdefg¡Zee_dS)z&getPhases.<locals>.InHeadNoscriptPhasecSs|j d¡| ¡dS)Nzeof-in-head-noscriptTrrEr(r(r)r“/s z1getPhases.<locals>.InHeadNoscriptPhase.processEOFcSs|jjd |¡S©Nr)rNrKrr«r(r(r)r4sz5getPhases.<locals>.InHeadNoscriptPhase.processCommentcSs|j d¡| ¡|S)Nzchar-in-head-noscriptrr«r(r(r)rŒ7s z8getPhases.<locals>.InHeadNoscriptPhase.processCharacterscSs|jjd |¡Sr>©rNrKrr«r(r(r)r<sz=getPhases.<locals>.InHeadNoscriptPhase.processSpaceCharacterscSs|jjd |¡Srrr«r(r(r)rô?sz3getPhases.<locals>.InHeadNoscriptPhase.startTagHtmlcSs|jjd |¡Sr>rr«r(r(r)rBsz>getPhases.<locals>.InHeadNoscriptPhase.startTagBaseLinkCommandcSs|j dd|di¡dS©Núunexpected-start-tagrCrçr«r(r(r)ÚstartTagHeadNoscriptEsz;getPhases.<locals>.InHeadNoscriptPhase.startTagHeadNoscriptcSs"|j dd|di¡| ¡|S©Nzunexpected-inhead-noscript-tagrCrr«r(r(r)rHsz4getPhases.<locals>.InHeadNoscriptPhase.startTagOthercSs:|jjj ¡}|jdks&td|jƒ‚|jjd|j_dS)Nr6zExpected noscript got %srr-r.r(r(r)ÚendTagNoscriptMsz5getPhases.<locals>.InHeadNoscriptPhase.endTagNoscriptcSs"|j dd|di¡| ¡|SrCrr«r(r(r)ÚendTagBrRsz/getPhases.<locals>.InHeadNoscriptPhase.endTagBrcSs|j dd|di¡dSr1rçr«r(r(r)rWsz2getPhases.<locals>.InHeadNoscriptPhase.endTagOthercSs| tdƒ¡dS)Nr6)rDrrEr(r(r)rZsz3getPhases.<locals>.InHeadNoscriptPhase.anythingElserÅ)r9r:r<r4r4r5)rÂr6r6r    N)r<r=r>rrör“rrŒrrôrrBrrDrErrr rrìrrõr(r(r(r)ÚInHeadNoscriptPhase,s0ýþrFc@s®eZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z dd„Z dd„Zdd„Ze defdefde    fde
fde fg¡Ze e_e de fg¡Zee_dS)z!getPhases.<locals>.AfterHeadPhasecSs | ¡dSrrrEr(r(r)r“nsz,getPhases.<locals>.AfterHeadPhase.processEOFcSs | ¡|Sr-rr«r(r(r)rŒrsz3getPhases.<locals>.AfterHeadPhase.processCharacterscSs|jjd |¡Srrr«r(r(r)rôvsz.getPhases.<locals>.AfterHeadPhase.startTagHtmlcSs(d|j_|j |¡|jjd|j_dS)NFrµ)rNrhrArÎrKrcr«r(r(r)Ú startTagBodyys z.getPhases.<locals>.AfterHeadPhase.startTagBodycSs |j |¡|jjd|j_dS)Nr¶)rArÎrNrKrcr«r(r(r)ÚstartTagFrameset~s z2getPhases.<locals>.AfterHeadPhase.startTagFramesetcSsr|j dd|di¡|jj |jj¡|jjd |¡|jjddd…D] }|jdkrL|jj     |¡qnqLdS)Nz#unexpected-start-tag-out-of-my-headrCrr}rÂ)
rNr‡rAr†r’rrKrŽrCÚremover.r(r(r)ÚstartTagFromHead‚s
ÿ
z2getPhases.<locals>.AfterHeadPhase.startTagFromHeadcSs|j dd|di¡dSr@rçr«r(r(r)r Œsz.getPhases.<locals>.AfterHeadPhase.startTagHeadcSs | ¡|Sr-rr«r(r(r)rsz/getPhases.<locals>.AfterHeadPhase.startTagOthercSs | ¡|Sr-rr«r(r(r)r0“sz2getPhases.<locals>.AfterHeadPhase.endTagHtmlBodyBrcSs|j dd|di¡dSr1rçr«r(r(r)r—sz-getPhases.<locals>.AfterHeadPhase.endTagOthercSs.|j tddƒ¡|jjd|j_d|j_dS)NrÃrxrµT)rArÎrrNrKrcrhrEr(r(r)ršsz.getPhases.<locals>.AfterHeadPhase.anythingElserÅrÃrÄ)    r8r9r:r<r4r4r7r5r3rÂ)rÃrÅr    N)r<r=r>rrör“rŒrôrGrHrJr rr0rrr rrìrrõr(r(r(r)ÚAfterHeadPhaseks4
þù    ÿrKc$sÖeZdZdZ‡‡fdd„Zdd„Zdd„Zdd    „Zd
d „Zd d „Z    dd„Z
dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zd d!„Zd"d#„Zd$d%„Zd&d'„Zd(d)„Zd*d+„Zd,d-„Zd.d/„Zd0d1„Zd2d3„Zd4d5„Zd6d7„Zd8d9„Zd:d;„Z d<d=„Z!d>d?„Z"d@dA„Z#dBdC„Z$dDdE„Z%dFdG„Z&dHdI„Z'dJdK„Z(dLdM„Z)dNdO„Z*dPdQ„Z+dRdS„Z,dTdU„Z-dVdW„Z.dXdY„Z/dZd[„Z0d\d]„Z1d^d_„Z2d`da„Z3dbdc„Z4ddde„Z5dfdg„Z6e7 8dh”j9fdie fdje fdke fdlefe:efdmefdnefdoefdpefdqefdrefdsefdtefduefdvefdwefdxefdyefdzefd{efd|efd}e fd~e!fde"fd€e#fde$fd‚e&fdƒe'fd„e%fd…e(fd†e)fd‡e*fg!¡Z;e+e;_<e7 8dje-fdhe.fdˆe/fdne0fd‰e,fdŠe1fe:e2fd‹e3fdue4fdŒe5fg
¡Z=e6e=_<‡Z>S)zgetPhases.<locals>.InBodyPhase)rcstˆ|ƒj||Ž|j|_dSr-)ÚsuperrMÚprocessSpaceCharactersNonPrer©rFr¥r%)Ú InBodyPhaserØr(r)rM²sz'getPhases.<locals>.InBodyPhase.__init__cSs$|j|jko"|j|jko"|j|jkSr-)rCrorp)rFÚnode1Únode2r(r(r)ÚisMatchingFormattingElement·s
 
ÿ
þz:getPhases.<locals>.InBodyPhase.isMatchingFormattingElementcSs˜|j |¡|jjd}g}|jjddd…D](}|tkr@qXq.| ||¡r.| |¡q.t|ƒdksht‚t|ƒdkr†|jj     |d¡|jj |¡dS)Nr}é)
rArÎr†ÚactiveFormattingElementsr rRr’r‰r”rI)rFrœrsÚmatchingElementsrÈr(r(r)ÚaddFormattingElement½s     z3getPhases.<locals>.InBodyPhase.addFormattingElementcSs>tdƒ}|jjddd…D]}|j|kr|j d¡q:qdS)N) ÚddÚdtÚlir'r¼r¹r¾rºr½r»rÃrÅr}z expected-closing-tag-but-got-eof)r‹rAr†rCrNr‡)rFÚallowed_elementsrÈr(r(r)r“Îs
 
 z)getPhases.<locals>.InBodyPhase.processEOFcSsf|d}|j|_| d¡rH|jjdjdkrH|jjd ¡sH|dd…}|rb|j ¡|j |¡dS)Nr~Ú
r})ÚpreÚlistingÚtextarear)    rMrr×rAr†rCÚ
hasContentÚ#reconstructActiveFormattingElementsrê)rFrœr~r(r(r)Ú!processSpaceCharactersDropNewlineØs
ÿþ 
z@getPhases.<locals>.InBodyPhase.processSpaceCharactersDropNewlinecSsT|ddkrdS|j ¡|j |d¡|jjrPtdd„|dDƒƒrPd|j_dS)Nr~úcSsg|] }|tk‘qSr(©r ©rBÚcharr(r(r)Ú
<listcomp>ísÿzDgetPhases.<locals>.InBodyPhase.processCharacters.<locals>.<listcomp>F)rAr`rêrNrhÚanyr«r(r(r)rŒås 
ÿÿz0getPhases.<locals>.InBodyPhase.processCharacterscSs|j ¡|j |d¡dSrè)rAr`rêr«r(r(r)rMñs
z;getPhases.<locals>.InBodyPhase.processSpaceCharactersNonPrecSs|jjd |¡Sr>rr«r(r(r)ÚstartTagProcessInHeadõsz4getPhases.<locals>.InBodyPhase.startTagProcessInHeadcSsˆ|j dddi¡t|jjƒdks4|jjdjdkrB|jjs„t‚nBd|j_|d     ¡D],\}}||jjdj
krV||jjdj
|<qVdS)NrArCrÃrFr~) rNr‡r‰rAr†rCrVr”rhr.rpròr(r(r)rGøsÿz+getPhases.<locals>.InBodyPhase.startTagBodycSs¶|j dddi¡t|jjƒdks4|jjdjdkrB|jjs²t‚np|jjsLnf|jjdj    rv|jjdj     
|jjd¡|jjdjdkr–|jj  ¡qv|j  |¡|jj d|j_dS)    NrArCrÄrrÃr}rÅr¶)rNr‡r‰rAr†rCrVr”rhÚparentÚ removeChildrírÎrKrcr«r(r(r)rHs" z/getPhases.<locals>.InBodyPhase.startTagFramesetcSs.|jjdddr| tdƒ¡|j |¡dS©Nr'Úbutton©Úvariant)rAÚelementInScopeÚendTagPrrÎr«r(r(r)ÚstartTagClosePsz-getPhases.<locals>.InBodyPhase.startTagClosePcSs>|jjdddr| tdƒ¡|j |¡d|j_|j|_dS)Nr'rlrmF)    rArorprrÎrNrhrarr«r(r(r)ÚstartTagPreListings
 z1getPhases.<locals>.InBodyPhase.startTagPreListingcSsZ|jjr|j dddi¡n:|jjdddr:| tdƒ¡|j |¡|jjd|j_dS)NrArCÚformr'rlrmr})    rAÚ formPointerrNr‡rorprrÎr†r«r(r(r)Ú startTagForms  z+getPhases.<locals>.InBodyPhase.startTagFormcSs¬d|j_dgddgddgdœ}||d}t|jjƒD]@}|j|kr^|jj t|jdƒ¡qx|j    t
kr6|jdkr6qxq6|jj d    d
d rœ|jj td    dƒ¡|j  |¡dS) NFrYrXrW)rYrXrWrCry)Úaddressr*r'r'rlrm) rNrhÚreversedrAr†rCrcrrÚ    nameTuplerrorÎ)rFrœÚ stopNamesMapÚ    stopNamesrÈr(r(r)ÚstartTagListItem&s*þ 
 
ÿ
ÿÿz/getPhases.<locals>.InBodyPhase.startTagListItemcSs>|jjdddr| tdƒ¡|j |¡|jjj|jj_dSrk)    rArorprrÎrNrRrbr`r«r(r(r)ÚstartTagPlaintext<s z0getPhases.<locals>.InBodyPhase.startTagPlaintextcSsb|jjdddr| tdƒ¡|jjdjtkrR|j dd|di¡|jj     ¡|j 
|¡dS)Nr'rlrmr}rArC) rArorprr†rCrrNr‡rírÎr«r(r(r)ÚstartTagHeadingBs  z.getPhases.<locals>.InBodyPhase.startTagHeadingcSs~|j d¡}|rf|j ddddœ¡| tdƒ¡||jjkrL|jj |¡||jjkrf|jj |¡|j     ¡| 
|¡dS)NÚaú$unexpected-start-tag-implies-end-tag©Ú    startNameÚendName) rAÚ!elementInActiveFormattingElementsrNr‡ÚendTagFormattingrr†rIrTr`rV)rFrœÚ afeAElementr(r(r)Ú    startTagAJs ÿ  
z(getPhases.<locals>.InBodyPhase.startTagAcSs|j ¡| |¡dSr-)rAr`rVr«r(r(r)ÚstartTagFormattingWs
z1getPhases.<locals>.InBodyPhase.startTagFormattingcSsP|j ¡|j d¡rB|j ddddœ¡| tdƒ¡|j ¡| |¡dS)NÚnobrrr€)rAr`rorNr‡rrrVr«r(r(r)Ú startTagNobr[s
 ÿ
z+getPhases.<locals>.InBodyPhase.startTagNobrcSsT|j d¡r2|j ddddœ¡| tdƒ¡|S|j ¡|j |¡d|j_dS)Nrlrr€F)    rArorNr‡rrr`rÎrhr«r(r(r)ÚstartTagButtones ÿ
 z-getPhases.<locals>.InBodyPhase.startTagButtoncSs0|j ¡|j |¡|jj t¡d|j_dS©NF)rAr`rÎrTr’r rNrhr«r(r(r)ÚstartTagAppletMarqueeObjectps
 z:getPhases.<locals>.InBodyPhase.startTagAppletMarqueeObjectcSsB|jjdddr| tdƒ¡|j ¡d|j_|j |d¡dS)Nr'rlrmFrË)rArorprr`rNrhrÑr«r(r(r)Ú startTagXmpvs
 
z*getPhases.<locals>.InBodyPhase.startTagXmpcSsR|jjdkr*|jjdddr*| tdƒ¡|j |¡d|j_|jjd|j_    dS)Nrþr'rlrmFr´)
rNr]rArorrrÎrhrKrcr«r(r(r)Ú startTagTable}s   z,getPhases.<locals>.InBodyPhase.startTagTablecSs6|j ¡|j |¡|jj ¡d|d<d|j_dS)NTr…F)rAr`rÎr†rírNrhr«r(r(r)ÚstartTagVoidFormatting…s
 
  z5getPhases.<locals>.InBodyPhase.startTagVoidFormattingcSs@|jj}| |¡d|dkr<|dd t¡dkr<||j_dS)Nr2r~Úhidden)rNrhrrqr)rFrœrhr(r(r)Ú startTagInputŒs 
 ÿz,getPhases.<locals>.InBodyPhase.startTagInputcSs$|j |¡|jj ¡d|d<dSrrr«r(r(r)ÚstartTagParamSource”s  z2getPhases.<locals>.InBodyPhase.startTagParamSourcecSsJ|jjdddr| tdƒ¡|j |¡|jj ¡d|d<d|j_dS)Nr'rlrmTr…F)    rArorprrÎr†rírNrhr«r(r(r)Ú
startTagHr™s   z)getPhases.<locals>.InBodyPhase.startTagHrcSs6|j ddddœ¡| tdd|d|dd¡dS)    Nzunexpected-start-tag-treated-asÚimageÚimg©Ú originalNameÚnewNamerxr~r„©rpr„)rNr‡rŽrr«r(r(r)Ú startTagImage¡sÿ
þz,getPhases.<locals>.InBodyPhase.startTagImagecSs|j dddi¡|jjrdSi}d|dkr>|dd|d<| tdd|d¡| td    dƒ¡| td
dƒ¡d |dkrŒ|dd }nd }| td |dœ¡|d ¡}d|kr¾|d=d |krÌ|d =d|d<| tdd||dd¡|     td
ƒ¡| td    dƒ¡|     tdƒ¡dS)Nzdeprecated-tagrCÚisindexÚactionr~rsrx)rpÚhrÚlabelÚpromptz3This is a searchable index. Enter search keywords: rv©r2r~Úinputr„r™)
rNr‡rArtrŽrrŒrÚcopyr)rFrœÚ
form_attrsrŸrpr(r(r)ÚstartTagIsIndex©s< 
ÿ  ÿ 
þz.getPhases.<locals>.InBodyPhase.startTagIsIndexcSs0|j |¡|jjj|jj_|j|_d|j_dSr‹)    rArÎrNrRr_r`rarrhr«r(r(r)ÚstartTagTextareaÈs z/getPhases.<locals>.InBodyPhase.startTagTextareacSsd|j_| |¡dSr‹)rNrhÚstartTagRawtextr«r(r(r)ÚstartTagIFrameÎsz-getPhases.<locals>.InBodyPhase.startTagIFramecSs"|jjr| |¡n
| |¡dSr-)rNrPr¦rr«r(r(r)r)Òs z/getPhases.<locals>.InBodyPhase.startTagNoscriptcSs|j |d¡dS)z8iframe, noembed noframes, noscript(if scripting enabled)rËNr%r«r(r(r)r¦Øsz.getPhases.<locals>.InBodyPhase.startTagRawtextcSs@|jjdjdkr$|jj tdƒ¡|j ¡|jj |¡dS©Nr}Úoption)    rAr†rCrNrcrrr`rÎr«r(r(r)Ú startTagOptÜs
z*getPhases.<locals>.InBodyPhase.startTagOptcSsŒ|j ¡|j |¡d|j_|jj|jjd|jjd|jjd|jjd|jjd|jjdfkrx|jjd|j_n|jjd    |j_dS)
NFr´r²r³r±r°r¯ÚinSelectInTabler®)rAr`rÎrNrhrcrKr«r(r(r)ÚstartTagSelectâs
 
 
 
 
 
ûz-getPhases.<locals>.InBodyPhase.startTagSelectcSsB|j d¡r2|j ¡|jjdjdkr2|j ¡|j |¡dS)NÚrubyr})rAroÚgenerateImpliedEndTagsr†rCrNr‡rÎr«r(r(r)Ú startTagRpRtðs
 
 
z+getPhases.<locals>.InBodyPhase.startTagRpRtcSsZ|j ¡|j |¡|j |¡td|d<|j |¡|drV|jj ¡d|d<dS)Nrmror„Tr…)    rAr`rNrrrrÎr†rír«r(r(r)Ú startTagMath÷s
     z+getPhases.<locals>.InBodyPhase.startTagMathcSsZ|j ¡|j |¡|j |¡td|d<|j |¡|drV|jj ¡d|d<dS)Nr‚ror„Tr…)    rAr`rNrrrrÎr†rír«r(r(r)Ú startTagSvgs
     z*getPhases.<locals>.InBodyPhase.startTagSvgcSs|j dd|di¡dS)a5 Elements that should be children of other elements that have a
            different insertion mode; here they are ignored
            "caption", "col", "colgroup", "frame", "frameset", "head",
            "option", "optgroup", "tbody", "td", "tfoot", "th", "thead",
            "tr", "noscript"
            zunexpected-start-tag-ignoredrCNrçr«r(r(r)ÚstartTagMisplacedsz0getPhases.<locals>.InBodyPhase.startTagMisplacedcSs|j ¡|j |¡dSr-)rAr`rÎr«r(r(r)rs
z,getPhases.<locals>.InBodyPhase.startTagOthercSsœ|jjdddsD| tddƒ¡|j dddi¡| tddƒ¡nT|j d¡|jjdj    dkrt|j dddi¡|jj 
¡}|j    dkr˜|jj 
¡}q€dS)    Nr'rlrmrxr2rCryr}) rArorqrrNr‡rpr®r†rCrír.r(r(r)rps  
z&getPhases.<locals>.InBodyPhase.endTagPcSs~|j d¡s|j ¡dS|jjdjdkrj|jjdd…D],}|jtdƒkr<|j dd|jdœ¡qjq<|jjd|j_dS)NrÃr}é)rWrXrYÚoptgroupr©r'ÚrpÚrtr¼r¹r¾rºr½r»rÃrÅú$expected-one-end-tag-but-got-another©ÚgotNameÚ expectedNameÚ    afterBody)    rArorNr‡r†rCr‹rKrcr.r(r(r)Ú
endTagBody)s 
 
þz)getPhases.<locals>.InBodyPhase.endTagBodycSs"|j d¡r| tdƒ¡|SdS)NrÃ)rAror¼rr«r(r(r)Ú
endTagHtml;s z)getPhases.<locals>.InBodyPhase.endTagHtmlcSsŽ|ddkr|j|_|j |d¡}|r2|j ¡|jjdj|dkr^|j dd|di¡|rŠ|jj     ¡}|j|dkrŠ|jj     ¡}qndS)NrCr\r}úend-tag-too-early)
rMrrAror®r†rCrNr‡rí)rFrœÚinScoperÈr(r(r)Ú endTagBlockAs 
 z*getPhases.<locals>.InBodyPhase.endTagBlockcSsv|jj}d|j_|dks$|j |¡s8|j dddi¡n:|j ¡|jjd|krd|j dddi¡|jj |¡dS)Nr2rCrsr}zend-tag-too-early-ignored)rArtrorNr‡r®r†rIr.r(r(r)Ú
endTagFormOsÿ
ÿz)getPhases.<locals>.InBodyPhase.endTagFormcSs¬|ddkrd}nd}|jj|d|dsB|j dd|di¡nf|jj|dd|jjdj|dkr€|j dd|di¡|jj ¡}|j|dkr¨|jj ¡}qŒdS)    NrCrYÚlistrmr2©Úexcluder}r¾)rArorNr‡r®r†rCrí)rFrœrnrÈr(r(r)ÚendTagListItem\s 
þ z-getPhases.<locals>.InBodyPhase.endTagListItemcSs’tD]}|j |¡r|j ¡q$q|jjdj|dkrP|j dd|di¡tD]8}|j |¡rT|jj ¡}|jtkrˆ|jj ¡}qpqŽqTdS)Nr}rCr¾)    rrAror®r†rCrNr‡rí)rFrœÚitemr(r(r)Ú endTagHeadingms 
 
z,getPhases.<locals>.InBodyPhase.endTagHeadingcSsd}|dkr
|d7}|j |d¡}|rD||jjkrR|j |j¡sR| |¡dS||jjkr†|j dd|di¡|jj     |¡dS|j |j¡s®|j dd|di¡dS||jjdkrÔ|j d    d|di¡|jj 
|¡}d}|jj|d…D]}|j t krö|}qqö|dkrR|jj  ¡}||kr@|jj  ¡}q&|jj     |¡dS|jj|d}|jj 
|¡}|}    }
d} |jj 
|
¡} | d
krX| d7} | d8} |jj| }
|
|jjkrÐ|jj     |
¡qŠ|
|krސqX|    |krú|jj 
|
¡d}|
 ¡} | |jj|jj 
|
¡<| |jj|jj 
|
¡<| }
|    jrF|    j |    ¡|
 |    ¡|
}    qŠ|    jrl|    j |    ¡|jtd ƒkr˜|j ¡\}}| |    |¡n
| |    ¡| ¡} | | ¡| | ¡|jj     |¡|jj || ¡|jj     |¡|jj |jj 
|¡d| ¡qdS) z)The much-feared adoption agency algorithmrérrCNzadoption-agency-1.2zadoption-agency-4.4r}zadoption-agency-1.3rS©rÁr¼r¾r½r»)rArƒr†rorCrrNr‡rTrIÚindexrxrríÚ    cloneNoderirjÚ appendChildr‹ÚgetTableMisnestedNodePositionÚ insertBeforeÚreparentChildrenÚinsert)rFrœÚouterLoopCounterÚformattingElementÚafeIndexÚ furthestBlockrsÚcommonAncestorÚbookmarkÚlastNoderÈÚinnerLoopCounterrÊÚclonerirÎr(r(r)r„|s 
 
ÿ
ÿ þ
 
 
 
 
 
 
 
ÿ ÿÿ ÿ 
 
 
 
ÿz/getPhases.<locals>.InBodyPhase.endTagFormattingcSsŒ|j |d¡r|j ¡|jjdj|dkrF|j dd|di¡|j |d¡rˆ|jj ¡}|j|dkr~|jj ¡}qb|j ¡dS)NrCr}r¾)    rAror®r†rCrNr‡ríÚclearActiveFormattingElements)rFrœrsr(r(r)ÚendTagAppletMarqueeObjects
 z8getPhases.<locals>.InBodyPhase.endTagAppletMarqueeObjectcSs@|j ddddœ¡|j ¡|j tddƒ¡|jj ¡dS)Nzunexpected-end-tag-treated-asr    z
br elementr–rx)rNr‡rAr`rÎrr†rír«r(r(r)rE+s ÿ
z'getPhases.<locals>.InBodyPhase.endTagBrcSs¤|jjddd…D]Œ}|j|dkrz|jj|dd|jjdj|dkrb|j dd|di¡|jj ¡|krtqbq q|jtkr|j dd|di¡q qdS)Nr}rCrÃr2)    rAr†rCr®rNr‡rírxrr.r(r(r)r2s
z*getPhases.<locals>.InBodyPhase.endTagOtherrÅ)    r8r9r:r;r<r4r7r5r3rÃrÄ)rvÚarticleÚasideÚ
blockquoteÚcenterÚdetailsÚdirr*ÚdlÚfieldsetÚ
figcaptionÚfigureÚfooterÚheaderÚhgroupÚmainÚmenuÚnavÚolr'ÚsectionÚsummaryÚul)r\r]rs)rYrWrXrXr~) ÚbÚbigÚcodeÚemÚfontÚiÚsÚsmallÚstrikeÚstrongÚttÚurˆrl)ÚappletÚmarqueeÚobjectÚxmprÁ)Úarear    Úembedr•ÚkeygenÚwbr)ÚparamÚsourceÚtrackr¡rr”r›r^Úiframer6)Únoembedr4r¸)rµr¶)r©r´Úmathr‚) r¿ÚcolrÀÚframerÂr¼r¹r¾rºr½r»)rvrÜrÝrÞrlrßràÚdialográr*rârãrärårærçrèr]rérêrërìr\rírîrïr')rWrXrY)r~rðrñròrórôrõrˆrör÷rørùrúrûr    )?r<r=r>rörMrRrVr“rarŒrMrhrGrHrqrrrur{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²rrpr¼r½rÀrÁrÅrÇr„rÛrErr rrôrrìrrõÚ __classcell__r()rOr÷©rØr)rO­sè
        
         $ þüÿÿþ×-ýÿòrOc@s`eZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    e
  g¡Z ee _ e
  d efg¡Ze    e_ d S) zgetPhases.<locals>.TextPhasecSs|j |d¡dSrèrér«r(r(r)rŒ„sz.getPhases.<locals>.TextPhase.processCharacterscSs8|j dd|jjdji¡|jj ¡|jj|j_dS)Nz&expected-named-closing-tag-but-got-eofrCr}T)rNr‡rAr†rCrírÏrcrEr(r(r)r“‡s ÿ  z'getPhases.<locals>.TextPhase.processEOFcSsdstd|dƒ‚dS)NFz4Tried to process start tag %s in RCDATA/RAWTEXT moderC)r”r«r(r(r)rŽsz*getPhases.<locals>.TextPhase.startTagOthercSs*|jj ¡}|jdkst‚|jj|j_dS)Nr7)rAr†rírCr”rNrÏrcr.r(r(r)Ú endTagScript‘s z)getPhases.<locals>.TextPhase.endTagScriptcSs|jj ¡|jj|j_dSr-)rAr†rírNrÏrcr«r(r(r)r˜s z(getPhases.<locals>.TextPhase.endTagOtherr7N)r<r=r>rrörŒr“rrrr rrìrrõr(r(r(r)Ú    TextPhases
ÿrc s eZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdd „Zd!d"„Zd#d$„Ze d%”jfd&e
fd'e fd(e fd)e fd*efd+efd,efd-efd.efg
¡Zee_e d+efd/efg¡Zee_d0S)1zgetPhases.<locals>.InTablePhasecSs$|jjdjdkr |jj ¡qdS)Nr})rÁrÅ)rAr†rCrírEr(r(r)ÚclearStackToTableContext§sz8getPhases.<locals>.InTablePhase.clearStackToTableContextcSs0|jjdjdkr |j d¡n |jjs,t‚dS)Nr}rÅz eof-in-table©rAr†rCrNr‡rVr”rEr(r(r)r“°sz*getPhases.<locals>.InTablePhase.processEOFcSs4|jj}|jjd|j_||jj_|jj |¡dS©NÚ inTableText)rNrcrKrÏr©rFrœrÏr(r(r)r·s
z6getPhases.<locals>.InTablePhase.processSpaceCharacterscSs4|jj}|jjd|j_||jj_|jj |¡dSr)rNrcrKrÏrŒrr(r(r)rŒ½s
z1getPhases.<locals>.InTablePhase.processCharacterscSs&d|j_|jjd |¡d|j_dS)NTrµF)rAÚinsertFromTablerNrKrŒr«r(r(r)rêÃsz*getPhases.<locals>.InTablePhase.insertTextcSs6| ¡|jj t¡|j |¡|jjd|j_dS)Nr²)    rrArTr’r rÎrNrKrcr«r(r(r)ÚstartTagCaptionÊs z/getPhases.<locals>.InTablePhase.startTagCaptioncSs(| ¡|j |¡|jjd|j_dS)Nr³©rrArÎrNrKrcr«r(r(r)ÚstartTagColgroupÐs z0getPhases.<locals>.InTablePhase.startTagColgroupcSs| tddƒ¡|S)NrÀrx)rrr«r(r(r)Ú startTagColÕsz+getPhases.<locals>.InTablePhase.startTagColcSs(| ¡|j |¡|jjd|j_dS©Nr±rr«r(r(r)ÚstartTagRowGroupÙs z0getPhases.<locals>.InTablePhase.startTagRowGroupcSs| tddƒ¡|S)Nr¼rx)rrr«r(r(r)ÚstartTagImplyTbodyÞsz2getPhases.<locals>.InTablePhase.startTagImplyTbodycSs6|j ddddœ¡|jj tdƒ¡|jjs2|SdS)NrrÁr€)rNr‡rcrrrVr«r(r(r)rŽâs ÿz-getPhases.<locals>.InTablePhase.startTagTablecSs|jjd |¡Sr>rr«r(r(r)ÚstartTagStyleScriptész3getPhases.<locals>.InTablePhase.startTagStyleScriptcSsVd|dkrH|dd t¡dkrH|j d¡|j |¡|jj ¡n
| |¡dS)Nr2r~rz unexpected-hidden-input-in-table)    rqrrNr‡rArÎr†rírr«r(r(r)r‘ìs ÿ  z-getPhases.<locals>.InTablePhase.startTagInputcSsD|j d¡|jjdkr@|j |¡|jjd|j_|jj ¡dS)Nzunexpected-form-in-tabler})rNr‡rArtrÎr†rír«r(r(r)ruös
   z,getPhases.<locals>.InTablePhase.startTagFormcSs<|j dd|di¡d|j_|jjd |¡d|j_dS)Nz)unexpected-start-tag-implies-table-voodoorCTrµF)rNr‡rArrKrŽr«r(r(r)rýsz-getPhases.<locals>.InTablePhase.startTagOthercSsœ|jjdddr‚|j ¡|jjdjdkrJ|j dd|jjdjdœ¡|jjdjdkrj|jj ¡qJ|jj ¡|j ¡n|jj    sŽt
‚|j ¡dS)NrÁrmr}zend-tag-too-early-namedr¸) rAror®r†rCrNr‡rírerVr”r«r(r(r)Ú endTagTables
 ÿÿ   z+getPhases.<locals>.InTablePhase.endTagTablecSs|j dd|di¡dSr1rçr«r(r(r)Ú endTagIgnoresz,getPhases.<locals>.InTablePhase.endTagIgnorecSs<|j dd|di¡d|j_|jjd |¡d|j_dS)Nz'unexpected-end-tag-implies-table-voodoorCTrµF)rNr‡rArrKrr«r(r(r)rsz+getPhases.<locals>.InTablePhase.endTagOtherrÅr¿rÀr
©r¼r¾r½)r¹rºr»rÁ)r5r7r¡rs) rÃr¿r
rÀrÅr¼r¹r¾rºr½r»N)r<r=r>rrörr“rrŒrêrrrrrrŽrr‘rurrr rr rrôrìrrõr(©r÷r(r)Ú InTablePhase¢sN    
ö ÿþr#csZeZdZdZ‡‡fdd„Zdd„Zdd„Zdd    „Zd
d „Zd d „Z    dd„Z
dd„Z ‡Z S)z#getPhases.<locals>.InTableTextPhase)rÏÚcharacterTokenscs"tˆ|ƒj||Žd|_g|_dSr-)rLrMrÏr$rN)ÚInTableTextPhaserØr(r)rM6sz,getPhases.<locals>.InTableTextPhase.__init__cSsdd dd„|jDƒ¡}tdd„|DƒƒrJtd|dœ}|jjd |¡n|rZ|j |¡g|_dS)NrýcSsg|] }|d‘qS)r~r(©rBrÆr(r(r)rf<szGgetPhases.<locals>.InTableTextPhase.flushCharacters.<locals>.<listcomp>cSsg|] }|tk‘qSr(rcr&r(r(r)rf=srvr r´)Újoinr$rgrrNrKrêrA)rFr~rœr(r(r)ÚflushCharacters;s z3getPhases.<locals>.InTableTextPhase.flushCharacterscSs| ¡|j|j_|Sr-©r(rÏrNrcr«r(r(r)rDs
z2getPhases.<locals>.InTableTextPhase.processCommentcSs| ¡|j|j_dSrr)rEr(r(r)r“Is
z.getPhases.<locals>.InTableTextPhase.processEOFcSs |ddkrdS|j |¡dS©Nr~rb©r$r’r«r(r(r)rŒNs z5getPhases.<locals>.InTableTextPhase.processCharacterscSs|j |¡dSr-r+r«r(r(r)rSsz:getPhases.<locals>.InTableTextPhase.processSpaceCharacterscSs| ¡|j|j_|Sr-r)r«r(r(r)rŽXs
z3getPhases.<locals>.InTableTextPhase.processStartTagcSs| ¡|j|j_|Sr-r)r«r(r(r)r]s
z1getPhases.<locals>.InTableTextPhase.processEndTag) r<r=r>rörMr(rr“rŒrrŽrr r()r%rr)r%3s    r%csšeZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z dd„Z e d”jfdefg¡Ze    e_e de
fde fde fg¡Ze e_dS)z!getPhases.<locals>.InCaptionPhasecSs|jjddd S)Nr¿rÁrm©rArorEr(r(r)ÚignoreEndTagCaptionfsz5getPhases.<locals>.InCaptionPhase.ignoreEndTagCaptioncSs|jjd ¡dSr©rNrKr“rEr(r(r)r“isz,getPhases.<locals>.InCaptionPhase.processEOFcSs|jjd |¡Sr©rNrKrŒr«r(r(r)rŒlsz3getPhases.<locals>.InCaptionPhase.processCharacterscSs0|j ¡| ¡}|jj tdƒ¡|s,|SdS©Nr¿©rNr‡r-rcrr©rFrœÚ ignoreEndTagr(r(r)ÚstartTagTableElementos
 
z6getPhases.<locals>.InCaptionPhase.startTagTableElementcSs|jjd |¡Srrr«r(r(r)rwsz/getPhases.<locals>.InCaptionPhase.startTagOthercSs¤| ¡sŠ|j ¡|jjdjdkrB|j dd|jjdjdœ¡|jjdjdkrb|jj ¡qB|jj ¡|j ¡|jj    d|j_
n|jj s–t ‚|j ¡dS)Nr}r¿r·r¸r´) r-rAr®r†rCrNr‡rírÚrKrcrVr”r«r(r(r)Ú endTagCaptionzs
 ÿÿ 
 z/getPhases.<locals>.InCaptionPhase.endTagCaptioncSs0|j ¡| ¡}|jj tdƒ¡|s,|SdSr0r1r2r(r(r)rŒs
 
z-getPhases.<locals>.InCaptionPhase.endTagTablecSs|j dd|di¡dSr1rçr«r(r(r)r “sz.getPhases.<locals>.InCaptionPhase.endTagIgnorecSs|jjd |¡Sr©rNrKrr«r(r(r)r–sz-getPhases.<locals>.InCaptionPhase.endTagOtherrÅ©    r¿r
rÀr¼r¹r¾rºr½r»r¿rÁ)
rÃr
rÀrÅr¼r¹r¾rºr½r»N)r<r=r>rrör-r“rŒr4rr5rr rr rrôrìrrõr(r"r(r)ÚInCaptionPhasebs2ÿþÿýr8csŒeZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z e  d”jfdefg¡Ze    e_e  de
fde fg¡Ze e_dS)z%getPhases.<locals>.InColumnGroupPhasecSs|jjdjdkS)Nr}rÅ)rAr†rCrEr(r(r)ÚignoreEndTagColgroup¬sz:getPhases.<locals>.InColumnGroupPhase.ignoreEndTagColgroupcSsD|jjdjdkr"|jjst‚dS| ¡}| tdƒ¡|s@dSdS)Nr}rÅrÀT)    rAr†rCrNrVr”r9ÚendTagColgroupr)rFr3r(r(r)r“¯s z0getPhases.<locals>.InColumnGroupPhase.processEOFcSs"| ¡}| tdƒ¡|s|SdS©NrÀ©r9r:rr2r(r(r)rŒ¹sz7getPhases.<locals>.InColumnGroupPhase.processCharacterscSs$|j |¡|jj ¡d|d<dSrrr«r(r(r)r¿s  z1getPhases.<locals>.InColumnGroupPhase.startTagColcSs"| ¡}| tdƒ¡|s|SdSr;r<r2r(r(r)rÄsz3getPhases.<locals>.InColumnGroupPhase.startTagOthercSs@| ¡r |jjst‚|j ¡n|jj ¡|jjd|j_    dS©Nr´)
r9rNrVr”r‡rAr†rírKrcr«r(r(r)r:Ês
   z4getPhases.<locals>.InColumnGroupPhase.endTagColgroupcSs|j dddi¡dS)Nz
no-end-tagrCr
rçr«r(r(r)Ú    endTagColÓsz/getPhases.<locals>.InColumnGroupPhase.endTagColcSs"| ¡}| tdƒ¡|s|SdSr;r<r2r(r(r)rÖsz1getPhases.<locals>.InColumnGroupPhase.endTagOtherrÅr
rÀN)r<r=r>rrör9r“rŒrrr:r>rr rrôrìrrõr(r"r(r)ÚInColumnGroupPhase¨s&
    þþr?cs¾eZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z dd„Z dd„Zdd„Zdd„Ze d”jfde    fde
fde fg¡Ze e_e de fdefdefg¡Zee_d S)!z#getPhases.<locals>.InTableBodyPhasecSsB|jjdjdkr |jj ¡q|jjdjdkr>|jjs>t‚dS)Nr})r¼r¾r½rÅrÅ)rAr†rCrírNrVr”rEr(r(r)ÚclearStackToTableBodyContextísz@getPhases.<locals>.InTableBodyPhase.clearStackToTableBodyContextcSs|jjd ¡dSr=r.rEr(r(r)r“÷sz.getPhases.<locals>.InTableBodyPhase.processEOFcSs|jjd |¡Sr=r?r«r(r(r)rúsz:getPhases.<locals>.InTableBodyPhase.processSpaceCharacterscSs|jjd |¡Sr=r/r«r(r(r)rŒýsz5getPhases.<locals>.InTableBodyPhase.processCharacterscSs(| ¡|j |¡|jjd|j_dS)Nr°)r@rArÎrNrKrcr«r(r(r)Ú
startTagTrs z.getPhases.<locals>.InTableBodyPhase.startTagTrcSs*|j dd|di¡| tddƒ¡|S)Nzunexpected-cell-in-table-bodyrCr»rx)rNr‡rArr«r(r(r)ÚstartTagTableCells
 
ÿz5getPhases.<locals>.InTableBodyPhase.startTagTableCellcSsn|jjddds0|jjddds0|jjdddrT| ¡| t|jjdjƒ¡|S|jjs`t    ‚|j 
¡dS©Nr¼rÁrmr½r¾r}© rAror@ÚendTagTableRowGrouprr†rCrNrVr”r‡r«r(r(r)ÚstartTagTableOther sÿþÿ z6getPhases.<locals>.InTableBodyPhase.startTagTableOthercSs|jjd |¡Sr=rr«r(r(r)rsz1getPhases.<locals>.InTableBodyPhase.startTagOthercSsT|jj|dddr:| ¡|jj ¡|jjd|j_n|j dd|di¡dS)NrCrÁrmr´ú unexpected-end-tag-in-table-body)    rAror@r†rírNrKrcr‡r«r(r(r)rEs 
ÿz7getPhases.<locals>.InTableBodyPhase.endTagTableRowGroupcSsn|jjddds0|jjddds0|jjdddrT| ¡| t|jjdjƒ¡|S|jjs`t    ‚|j 
¡dSrCrDr«r(r(r)r%sÿþÿ z/getPhases.<locals>.InTableBodyPhase.endTagTablecSs|j dd|di¡dS)NrGrCrçr«r(r(r)r 2s
ÿz0getPhases.<locals>.InTableBodyPhase.endTagIgnorecSs|jjd |¡Sr=r6r«r(r(r)r6sz/getPhases.<locals>.InTableBodyPhase.endTagOtherrÅr»©r¹rº)r¿r
rÀr¼r¾r½r!rÁ)rÃr¿r
rÀrÅr¹rºr»N)r<r=r>rrör@r“rrŒrArBrFrrErr rr rrôrìrrõr(r"r(r)ÚInTableBodyPhaseès<
     ÿüÿýrIcsÆeZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Ze d”jfde
fde fg¡Ze e_e de fdefd efd!efg¡Zee_d"S)#zgetPhases.<locals>.InRowPhasecSs@|jjdjdkr<|j dd|jjdji¡|jj ¡qdS)Nr})r»rÅz'unexpected-implied-end-tag-in-table-rowrC)rAr†rCrNr‡rírEr(r(r)ÚclearStackToTableRowContextOs
ÿz9getPhases.<locals>.InRowPhase.clearStackToTableRowContextcSs|jjddd S)Nr»rÁrmr,rEr(r(r)ÚignoreEndTagTrUsz,getPhases.<locals>.InRowPhase.ignoreEndTagTrcSs|jjd ¡dSr=r.rEr(r(r)r“Ysz(getPhases.<locals>.InRowPhase.processEOFcSs|jjd |¡Sr=r?r«r(r(r)r\sz4getPhases.<locals>.InRowPhase.processSpaceCharacterscSs|jjd |¡Sr=r/r«r(r(r)rŒ_sz/getPhases.<locals>.InRowPhase.processCharacterscSs6| ¡|j |¡|jjd|j_|jj t¡dS)Nr¯)    rJrArÎrNrKrcrTr’r r«r(r(r)rBbs z/getPhases.<locals>.InRowPhase.startTagTableCellcSs"| ¡}| tdƒ¡|s|SdS©Nr»©rKÚendTagTrrr2r(r(r)rFhsz0getPhases.<locals>.InRowPhase.startTagTableOthercSs|jjd |¡Sr=rr«r(r(r)rosz+getPhases.<locals>.InRowPhase.startTagOthercSsH| ¡s.| ¡|jj ¡|jjd|j_n|jjs:t    ‚|j 
¡dSr) rKrJrAr†rírNrKrcrVr”r‡r«r(r(r)rNrs   z&getPhases.<locals>.InRowPhase.endTagTrcSs"| ¡}| tdƒ¡|s|SdSrLrMr2r(r(r)r|sz)getPhases.<locals>.InRowPhase.endTagTablecSs4|jj|dddr&| tdƒ¡|S|j ¡dS)NrCrÁrmr»)rArorNrrNr‡r«r(r(r)rE„sz1getPhases.<locals>.InRowPhase.endTagTableRowGroupcSs|j dd|di¡dS)Nzunexpected-end-tag-in-table-rowrCrçr«r(r(r)r ‹s
ÿz*getPhases.<locals>.InRowPhase.endTagIgnorecSs|jjd |¡Sr=r6r«r(r(r)rsz)getPhases.<locals>.InRowPhase.endTagOtherrÅrH)r¿r
rÀr¼r¾r½r»r»rÁr!)rÃr¿r
rÀrÅr¹rºN)r<r=r>rrörJrKr“rrŒrBrFrrNrrEr rr rrôrìrrõr(r"r(r)Ú
InRowPhaseJs>
ÿýÿürOcsšeZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z dd„Z e d”jfdefg¡Ze    e_e de
fde fde fg¡Ze e_dS)zgetPhases.<locals>.InCellPhasecSsB|jjdddr | tdƒ¡n|jjdddr>| tdƒ¡dS©Nr¹rÁrmrº)rAroÚendTagTableCellrrEr(r(r)Ú    closeCell¨sz(getPhases.<locals>.InCellPhase.closeCellcSs|jjd ¡dSrr.rEr(r(r)r“¯sz)getPhases.<locals>.InCellPhase.processEOFcSs|jjd |¡Srr/r«r(r(r)rŒ²sz0getPhases.<locals>.InCellPhase.processCharacterscSsF|jjddds |jjdddr,| ¡|S|jjs8t‚|j ¡dSrP)rArorRrNrVr”r‡r«r(r(r)rFµsÿ z1getPhases.<locals>.InCellPhase.startTagTableOthercSs|jjd |¡Srrr«r(r(r)r¿sz,getPhases.<locals>.InCellPhase.startTagOthercSs²|jj|dddr˜|j |d¡|jjdj|dkrp|j dd|di¡|jj ¡}|j|dkrPq|qPn |jj ¡|j ¡|jj    d|j_
n|j dd|di¡dS)NrCrÁrmr}zunexpected-cell-end-tagr°r2) rAror®r†rCrNr‡rírÚrKrcr.r(r(r)rQÂs
ÿ  
z.getPhases.<locals>.InCellPhase.endTagTableCellcSs|j dd|di¡dSr1rçr«r(r(r)r Ósz+getPhases.<locals>.InCellPhase.endTagIgnorecSs.|jj|dddr | ¡|S|j ¡dS)NrCrÁrm)rArorRrNr‡r«r(r(r)Ú endTagImplyÖsz*getPhases.<locals>.InCellPhase.endTagImplycSs|jjd |¡Srr6r«r(r(r)rÞsz*getPhases.<locals>.InCellPhase.endTagOtherrÅr7rH)rÃr¿r
rÀrÅrÉN)r<r=r>rrörRr“rŒrFrrQr rSrr rrôrìrrõr(r"r(r)Ú InCellPhase£s.
ÿþýrTc    sÊeZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z dd„Z dd„Zdd„Zdd„Ze d”jfdefdefde    fde
fde fg¡Ze e_e de fdefdefg¡Zee_dS) z getPhases.<locals>.InSelectPhasecSs0|jjdjdkr |j d¡n |jjs,t‚dS)Nr}rÅz eof-in-selectrrEr(r(r)r“ósz+getPhases.<locals>.InSelectPhase.processEOFcSs$|ddkrdS|j |d¡dSr*rér«r(r(r)rŒùs z2getPhases.<locals>.InSelectPhase.processCharacterscSs.|jjdjdkr|jj ¡|j |¡dSr¨©rAr†rCrírÎr«r(r(r)ÚstartTagOptionþs z/getPhases.<locals>.InSelectPhase.startTagOptioncSsL|jjdjdkr|jj ¡|jjdjdkr<|jj ¡|j |¡dS)Nr}r©r´rUr«r(r(r)ÚstartTagOptgroup    s
  z1getPhases.<locals>.InSelectPhase.startTagOptgroupcSs|j d¡| tdƒ¡dS)Nzunexpected-select-in-selectr¸)rNr‡Ú endTagSelectrr«r(r(r)r¬     s z/getPhases.<locals>.InSelectPhase.startTagSelectcSs>|j d¡|jjdddr.| tdƒ¡|S|jjs:t‚dS)Nzunexpected-input-in-selectr¸rm)rNr‡rArorXrrVr”r«r(r(r)r‘    s
 z.getPhases.<locals>.InSelectPhase.startTagInputcSs|jjd |¡Sr>rr«r(r(r)r+    sz/getPhases.<locals>.InSelectPhase.startTagScriptcSs|j dd|di¡dS)Nzunexpected-start-tag-in-selectrCrçr«r(r(r)r    s
ÿz.getPhases.<locals>.InSelectPhase.startTagOthercSs6|jjdjdkr |jj ¡n|j dddi¡dS)Nr}r©úunexpected-end-tag-in-selectrC©rAr†rCrírNr‡r«r(r(r)Ú endTagOption    s
ÿz-getPhases.<locals>.InSelectPhase.endTagOptioncSsf|jjdjdkr0|jjdjdkr0|jj ¡|jjdjdkrP|jj ¡n|j dddi¡dS)Nr}r©éþÿÿÿr´rYrCrZr«r(r(r)ÚendTagOptgroup%    sÿ ÿz/getPhases.<locals>.InSelectPhase.endTagOptgroupcSsZ|jjdddr@|jj ¡}|jdkr4|jj ¡}q|j ¡n|jjsLt‚|j     ¡dS)Nr¸rm)
rAror†rírCrNrerVr”r‡r.r(r(r)rX2    s 
  z-getPhases.<locals>.InSelectPhase.endTagSelectcSs|j dd|di¡dS)NrYrCrçr«r(r(r)r=    s
ÿz,getPhases.<locals>.InSelectPhase.endTagOtherrÅr©r´r¸)r¡rr^r7N)r<r=r>rrör“rŒrVrWr¬r‘r+rr[r]rXrr rrôrìrrõr(r"r(r)Ú InSelectPhaseïs8  úýr^c@sneZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
e   d efg¡Z ee _e   d e    fg¡Ze
e_dS)z'getPhases.<locals>.InSelectInTablePhasecSs|jjd ¡dS©Nr®r.rEr(r(r)r“U    sz2getPhases.<locals>.InSelectInTablePhase.processEOFcSs|jjd |¡Sr_r/r«r(r(r)rŒX    sz9getPhases.<locals>.InSelectInTablePhase.processCharacterscSs(|j dd|di¡| tdƒ¡|S)Nz5unexpected-table-element-start-tag-in-select-in-tablerCr¸)rNr‡rrr«r(r(r)rŽ[    sz5getPhases.<locals>.InSelectInTablePhase.startTagTablecSs|jjd |¡Sr_rr«r(r(r)r`    sz5getPhases.<locals>.InSelectInTablePhase.startTagOthercSs@|j dd|di¡|jj|dddr<| tdƒ¡|SdS)Nz3unexpected-table-element-end-tag-in-select-in-tablerCrÁrmr¸)rNr‡rArorrr«r(r(r)rc    sz3getPhases.<locals>.InSelectInTablePhase.endTagTablecSs|jjd |¡Sr_r6r«r(r(r)ri    sz3getPhases.<locals>.InSelectInTablePhase.endTagOther)r¿rÁr¼r¾r½r»r¹rºN)r<r=r>rrör“rŒrŽrrrr rrìrrõr(r(r(r)ÚInSelectInTablePhaseR    s&ÿÿÿÿr`c-s–eZdZeƒZeddddddddd    d
d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,g,ƒZd-d.„Z‡fd/d0„Zd1d2„Z    d3d4„Z
d5S)6z(getPhases.<locals>.InForeignContentPhaserðrñrÞrÃr    rßròrWr*rârXrórÚh1Úh2Úh3Úh4Úh5Úh6rÂrrõr•rYr]rêr4rˆrìr'r\r­rör÷ÚspanrùrøÚsubÚsuprÁrúrûrïÚvarc%Ssnddddddddd    d
d d d ddddddddddddddddddd d!d"d#d$d%œ$}|d&|krj||d&|d&<dS)'NÚaltGlyphÚ altGlyphDefÚ altGlyphItemÚ animateColorÚ animateMotionÚanimateTransformÚclipPathÚfeBlendÚ feColorMatrixÚfeComponentTransferÚ feCompositeÚfeConvolveMatrixÚfeDiffuseLightingÚfeDisplacementMapÚfeDistantLightÚfeFloodÚfeFuncAÚfeFuncBÚfeFuncGÚfeFuncRÚfeGaussianBlurÚfeImageÚfeMergeÚ feMergeNodeÚ feMorphologyÚfeOffsetÚ fePointLightÚfeSpecularLightingÚ feSpotLightÚfeTileÚ feTurbulenceÚ foreignObjectÚglyphRefÚlinearGradientÚradialGradientÚtextPath)$ÚaltglyphÚ altglyphdefÚ altglyphitemÚ animatecolorÚ animatemotionÚanimatetransformÚclippathÚfeblendÚ fecolormatrixÚfecomponenttransferÚ fecompositeÚfeconvolvematrixÚfediffuselightingÚfedisplacementmapÚfedistantlightÚfefloodÚfefuncaÚfefuncbÚfefuncgÚfefuncrÚfegaussianblurÚfeimageÚfemergeÚ femergenodeÚ femorphologyÚfeoffsetÚ fepointlightÚfespecularlightingÚ fespotlightÚfetileÚ feturbulenceÚ foreignobjectÚglyphrefÚlineargradientÚradialgradientÚtextpathrCr()rFrœÚ replacementsr(r(r)ÚadjustSVGTagNames„    sNÝ% z:getPhases.<locals>.InForeignContentPhase.adjustSVGTagNamescsL|ddkrd|d<n&|jjr<tdd„|dDƒƒr<d|j_ˆ ||¡dS)Nr~rbu�css|]}|tkVqdSr-rcrdr(r(r)Ú    <genexpr>±    szMgetPhases.<locals>.InForeignContentPhase.processCharacters.<locals>.<genexpr>F)rNrhrgrŒr«r"r(r)rŒ­    s 
ÿz:getPhases.<locals>.InForeignContentPhase.processCharacterscSs*|jjd}|d|jks@|ddkr¦t|d ¡ƒdddh@r¦|j dd|di¡|jjdj|jjkr¢|j     |jjd¡s¢|j 
|jjd¡s¢|jj  ¡qV|S|jt d    krÂ|j  |¡n$|jt d
kræ| |¡|j |¡|j |¡|j|d <|j |¡|d r&|jj  ¡d |d<dS)Nr}rCrôr~ÚcolorÚfaceÚsizez*unexpected-html-element-in-foreign-contentrmr‚ror„Tr…)rAr†ÚbreakoutElementsÚsetÚkeysrNr‡rorŠrtrurírrr´rrrÎ)rFrœrŸr(r(r)r޵    s: 
ÿþ
ÿ ÿþý
 
 
 z8getPhases.<locals>.InForeignContentPhase.processStartTagcSsèt|jjƒd}|jjd}|j t¡|dkrF|j dd|di¡|j t¡|dkr¬|jj|jj    dkrˆ|jj 
¡|jjj |j_|jj  ¡|kr¦|jjsˆt ‚qˆd}qä|d8}|jj|}|j|jjkrÒqFqF|jj |¡}qäqF|S)Nrr}rCr2r)r‰rAr†rCrqrrNr‡rcrKr(rÏrír”rorŠr)rFrœÚ    nodeIndexrÈržr(r(r)rÐ    s&   z6getPhases.<locals>.InForeignContentPhase.processEndTagN) r<r=r>rrör‹r¹r´rŒrŽrr(r"r(r)ÚInForeignContentPhasex    s\ ù    ) r½c@sveZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z e   defg¡Ze    e_e   de
fg¡Ze e_dS)z!getPhases.<locals>.AfterBodyPhasecSsdSr-r(rEr(r(r)r“í    sz,getPhases.<locals>.AfterBodyPhase.processEOFcSs|j ||jjd¡dS)Nrrår«r(r(r)rñ    sz0getPhases.<locals>.AfterBodyPhase.processCommentcSs |j d¡|jjd|j_|S)Nzunexpected-char-after-bodyrµ©rNr‡rKrcr«r(r(r)rŒö    s z3getPhases.<locals>.AfterBodyPhase.processCharacterscSs|jjd |¡Srrr«r(r(r)rôû    sz.getPhases.<locals>.AfterBodyPhase.startTagHtmlcSs*|j dd|di¡|jjd|j_|S)Nzunexpected-start-tag-after-bodyrCrµr¾r«r(r(r)rþ    s
 
ÿz/getPhases.<locals>.AfterBodyPhase.startTagOthercSs*|jjr|j d¡n|jjd|j_dS)Nz'unexpected-end-tag-after-body-innerhtmlÚafterAfterBody)rNrVr‡rKrc)rFrCr(r(r)r½
sz,getPhases.<locals>.AfterBodyPhase.endTagHtmlcSs*|j dd|di¡|jjd|j_|S)Nzunexpected-end-tag-after-bodyrCrµr¾r«r(r(r)r
 
s
 
ÿz-getPhases.<locals>.AfterBodyPhase.endTagOtherrÅN)r<r=r>rrör“rrŒrôrr½rr rrìrrõr(r(r(r)ÚAfterBodyPhaseê    sÿrÀcs’eZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z e  d”jfdefdefde    fg¡Ze
e_e  de fg¡Ze e_dS)z"getPhases.<locals>.InFramesetPhasecSs0|jjdjdkr |j d¡n |jjs,t‚dS)Nr}rÅzeof-in-framesetrrEr(r(r)r“
sz-getPhases.<locals>.InFramesetPhase.processEOFcSs|j d¡dS)Nzunexpected-char-in-framesetrçr«r(r(r)rŒ"
sz4getPhases.<locals>.InFramesetPhase.processCharacterscSs|j |¡dSr-)rArÎr«r(r(r)rH%
sz3getPhases.<locals>.InFramesetPhase.startTagFramesetcSs|j |¡|jj ¡dSr-rr«r(r(r)Ú startTagFrame(
s z0getPhases.<locals>.InFramesetPhase.startTagFramecSs|jjd |¡Srrr«r(r(r)ÚstartTagNoframes,
sz3getPhases.<locals>.InFramesetPhase.startTagNoframescSs|j dd|di¡dS)Nz unexpected-start-tag-in-framesetrCrçr«r(r(r)r/
s
ÿz0getPhases.<locals>.InFramesetPhase.startTagOthercSsZ|jjdjdkr |j d¡n |jj ¡|jjsV|jjdjdkrV|jjd|j_dS)Nr}rÅz)unexpected-frameset-in-frameset-innerhtmlrÄÚ afterFrameset)    rAr†rCrNr‡rírVrKrcr«r(r(r)ÚendTagFrameset3
s ÿz1getPhases.<locals>.InFramesetPhase.endTagFramesetcSs|j dd|di¡dS)Nzunexpected-end-tag-in-framesetrCrçr«r(r(r)r?
s
ÿz.getPhases.<locals>.InFramesetPhase.endTagOtherrÅrÄr r4N)r<r=r>rrör“rŒrHrÁrÂrrÄrr rrôrìrrõr(r"r(r)ÚInFramesetPhase
s( üÿrÅcsveZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
e   d ”j fdefg¡Zee_e   d e    fg¡Ze
e_dS)z%getPhases.<locals>.AfterFramesetPhasecSsdSr-r(rEr(r(r)r“T
sz0getPhases.<locals>.AfterFramesetPhase.processEOFcSs|j d¡dS)Nzunexpected-char-after-framesetrçr«r(r(r)rŒX
sz7getPhases.<locals>.AfterFramesetPhase.processCharacterscSs|jjd |¡Sr>rr«r(r(r)rÂ[
sz6getPhases.<locals>.AfterFramesetPhase.startTagNoframescSs|j dd|di¡dS)Nz#unexpected-start-tag-after-framesetrCrçr«r(r(r)r^
s
ÿz3getPhases.<locals>.AfterFramesetPhase.startTagOthercSs|jjd|j_dS)NÚafterAfterFrameset)rNrKrcr«r(r(r)r½b
sz0getPhases.<locals>.AfterFramesetPhase.endTagHtmlcSs|j dd|di¡dS)Nz!unexpected-end-tag-after-framesetrCrçr«r(r(r)re
s
ÿz1getPhases.<locals>.AfterFramesetPhase.endTagOtherrÅr4N)r<r=r>rrör“rŒrÂrr½rr rrôrìrrõr(r"r(r)ÚAfterFramesetPhaseP
s þÿrÇc@s`eZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z e   de    fg¡Ze
e_dS)z&getPhases.<locals>.AfterAfterBodyPhasecSsdSr-r(rEr(r(r)r“w
sz1getPhases.<locals>.AfterAfterBodyPhase.processEOFcSs|j ||jj¡dSr-rør«r(r(r)rz
sz5getPhases.<locals>.AfterAfterBodyPhase.processCommentcSs|jjd |¡Srr?r«r(r(r)r}
sz=getPhases.<locals>.AfterAfterBodyPhase.processSpaceCharacterscSs |j d¡|jjd|j_|S)Núexpected-eof-but-got-charrµr¾r«r(r(r)rŒ€
s z8getPhases.<locals>.AfterAfterBodyPhase.processCharacterscSs|jjd |¡Srrr«r(r(r)rô…
sz3getPhases.<locals>.AfterAfterBodyPhase.startTagHtmlcSs*|j dd|di¡|jjd|j_|S)Núexpected-eof-but-got-start-tagrCrµr¾r«r(r(r)rˆ
s
 
ÿz4getPhases.<locals>.AfterAfterBodyPhase.startTagOthercSs*|j dd|di¡|jjd|j_|S)Núexpected-eof-but-got-end-tagrCrµr¾r«r(r(r)rŽ
s
 
ÿz4getPhases.<locals>.AfterAfterBodyPhase.processEndTagrÅN)r<r=r>rrör“rrrŒrôrrr rrìrr(r(r(r)ÚAfterAfterBodyPhaset
sÿrËc@sneZdZeƒZdd„Zdd„Zdd„Zdd„Zd    d
„Z    d d „Z
d d„Z dd„Z e  de    fde
fg¡Ze e_dS)z*getPhases.<locals>.AfterAfterFramesetPhasecSsdSr-r(rEr(r(r)r“œ
sz5getPhases.<locals>.AfterAfterFramesetPhase.processEOFcSs|j ||jj¡dSr-rør«r(r(r)rŸ
sz9getPhases.<locals>.AfterAfterFramesetPhase.processCommentcSs|jjd |¡Srr?r«r(r(r)r¢
szAgetPhases.<locals>.AfterAfterFramesetPhase.processSpaceCharacterscSs|j d¡dS)NrÈrçr«r(r(r)rŒ¥
sz<getPhases.<locals>.AfterAfterFramesetPhase.processCharacterscSs|jjd |¡Srrr«r(r(r)rô¨
sz7getPhases.<locals>.AfterAfterFramesetPhase.startTagHtmlcSs|jjd |¡Sr>rr«r(r(r)ÚstartTagNoFrames«
sz;getPhases.<locals>.AfterAfterFramesetPhase.startTagNoFramescSs|j dd|di¡dS)NrÉrCrçr«r(r(r)r®
s
ÿz8getPhases.<locals>.AfterAfterFramesetPhase.startTagOthercSs|j dd|di¡dS)NrÊrCrçr«r(r(r)r²
s
ÿz8getPhases.<locals>.AfterAfterFramesetPhase.processEndTagrÅr4N)r<r=r>rrör“rrrŒrôrÌrrr rrìrr(r(r(r)ÚAfterAfterFramesetPhase™
sþrÍ)rZrYr·rr(r,rµrÍr´rr²r³r±r°r¯r®r«rƒr»r¶rÃr¿rÆ)r)rLr\rßrr
rr=rFrKrr#r8r?rIrOrTr^r`r½rÀrÅrÇrËrÍr()rOr%r÷r)rJŒsrH%-f?BY!/F@bYLc&r.8$%&érJcsFt|dƒtˆƒ@}|rBt|dƒ‡fdd„|d ¡Dƒƒ|d<dS)Nr~c3s"|]\}}ˆ ||¡|fVqdSr-)rˆ)rBÚkÚv©r³r(r)rµÝ
sÿz$adjust_attributes.<locals>.<genexpr>)rr2r.)rœr³Úneeds_adjustmentr(rÐr)rªÚ
s
 
ÿrªryFcCs|dkr i}t||||dœS)N)r2rCr~r„)r)rCr2rpr„r(r(r)rá
s
 
ÿrc@seZdZdZdS)r|zError in parsed documentN)r<r=r>rÒr(r(r(r)r|é
sr|)rT)r*rT)ryNF),Ú
__future__rrrZpip._vendor.sixrrr0rýrr    r
Ztreebuilders.baser r Ú    constantsr rrrrrrrrrrrr¬rrrrr"r,r@rþr!ÚmemoizerJrªrÚ    Exceptionr|r(r(r(r)Ú<module>sN     H
 
 8
_ÿ