@jxsuite/studio 10.2.0 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{2020-bx702wqa.js → 2020-906vx2dq.js} +3 -3
- package/dist/chunks/adapter-hnvad61x.js +4 -0
- package/dist/chunks/add-new-flow-3tkn72ey.js +4 -0
- package/dist/chunks/cf-account-picker-xb8vvt2h.js +4 -0
- package/dist/chunks/cf-settings-mkbcz4z2.js +4 -0
- package/dist/chunks/components-w5zqwva1.js +4 -0
- package/dist/chunks/content-source-1vzxq1ba.js +4 -0
- package/dist/chunks/convert-to-repeater-gwzh9gar.js +4 -0
- package/dist/chunks/editor-wvf5e6j9.js +4 -0
- package/dist/chunks/entry-commands-mx2whrjx.js +4 -0
- package/dist/chunks/extension-sections-338ee35t.js +4 -0
- package/dist/chunks/file-ops-9bxvk59j.js +4 -0
- package/dist/chunks/files-t07yqqej.js +4 -0
- package/dist/chunks/format-host-5ja5gxyk.js +4 -0
- package/dist/chunks/fs-events-3424ezp3.js +4 -0
- package/dist/chunks/grid-open-1mpq9mzb.js +4 -0
- package/dist/chunks/{grid-view-tghcwrrt.js → grid-view-w9nfy203.js} +16 -16
- package/dist/chunks/icons-gb967qc8.js +4 -0
- package/dist/chunks/iframe-host-wsg0bn73.js +4 -0
- package/dist/chunks/image-bake-4afr4y6a.js +4 -0
- package/dist/chunks/image-editor-x7t8jbjn.js +4 -0
- package/dist/chunks/index-f9qr7kzh.js +4 -0
- package/dist/chunks/{index-vr006kbt.js → index-yjrfeks8.js} +3 -3
- package/dist/chunks/{javascript-z1g3s9fd.js → javascript-hy2mws8v.js} +3 -3
- package/dist/chunks/{jsonMode-7szwg8c4.js → jsonMode-vj30te2h.js} +6 -6
- package/dist/chunks/jx-validate-ttr5ewf0.js +4 -0
- package/dist/chunks/layers-m49nmwvx.js +4 -0
- package/dist/chunks/layers-panel-hvy2e549.js +4 -0
- package/dist/chunks/lit-html-k2mb9k0r.js +4 -0
- package/dist/chunks/media-library-ae67q4at.js +4 -0
- package/dist/chunks/media-open-yp9jm834.js +4 -0
- package/dist/chunks/media-picker-s41ngdfr.js +4 -0
- package/dist/chunks/{monaco-binding-v42w9c1v.js → monaco-binding-a51py33c.js} +3 -3
- package/dist/chunks/monaco-buffer-pa0g6ax7.js +4 -0
- package/dist/chunks/{monaco-setup-7bffxd6v.js → monaco-setup-g9kterhx.js} +3 -3
- package/dist/chunks/notify-bwehrp7q.js +4 -0
- package/dist/chunks/parse-hee7ne9b.js +4 -0
- package/dist/chunks/platform-kv0k65cy.js +4 -0
- package/dist/chunks/publish-panel-gzfxcm0t.js +4 -0
- package/dist/chunks/publish-quick-w3nxd7q4.js +4 -0
- package/dist/chunks/publish-workspace-dppd82tc.js +4 -0
- package/dist/chunks/quick-search-tdxaam55.js +4 -0
- package/dist/chunks/references-vqyr5s9x.js +4 -0
- package/dist/chunks/right-panel-0yrw4cgz.js +4 -0
- package/dist/chunks/source-control-6fk72me2.js +4 -0
- package/dist/chunks/{studio-j3d2fjqz.js → studio-0939t1q1.js} +4 -4
- package/dist/chunks/studio-0gvvqj3h.js +5 -0
- package/dist/chunks/studio-0khd8xtx.js +4 -0
- package/dist/chunks/studio-0w3541dg.js +7 -0
- package/dist/chunks/{studio-9b7177jq.js → studio-0x6f3nk9.js} +4 -4
- package/dist/chunks/studio-1410q5dw.js +5 -0
- package/dist/chunks/{studio-awxwjawq.js → studio-15hwqgd8.js} +4 -4
- package/dist/chunks/studio-1ks5d9y4.js +5 -0
- package/dist/chunks/{studio-881z1xrx.js → studio-2ggfzrrd.js} +4 -4
- package/dist/chunks/{studio-4jhw38b2.js → studio-321ym1tt.js} +4 -4
- package/dist/chunks/studio-3c10v2q1.js +5 -0
- package/dist/chunks/{studio-bvs9kpst.js → studio-3na1r48j.js} +8 -8
- package/dist/chunks/{studio-86r8hp7r.js → studio-3q7mhbgx.js} +5 -5
- package/dist/chunks/studio-3qr08sxq.js +4 -0
- package/dist/chunks/studio-3xk9zdgb.js +5 -0
- package/dist/chunks/{studio-qh8berdz.js → studio-423tfdte.js} +4 -4
- package/dist/chunks/{studio-75kcdbsk.js → studio-45mj4jqe.js} +4 -4
- package/dist/chunks/studio-4f7thq0p.js +5 -0
- package/dist/chunks/studio-4fnb5648.js +5 -0
- package/dist/chunks/studio-4zd6an2b.js +5 -0
- package/dist/chunks/studio-53wy9ek3.js +5 -0
- package/dist/chunks/studio-5n193zqd.js +5 -0
- package/dist/chunks/{studio-9rbe2xpw.js → studio-5tet77de.js} +3 -3
- package/dist/chunks/{studio-ybnwymxw.js → studio-7rrdbvex.js} +4 -4
- package/dist/chunks/studio-8kx6m0rg.js +5 -0
- package/dist/chunks/{studio-sxdb9h3q.js → studio-90zkgne5.js} +7 -7
- package/dist/chunks/studio-9c6cbq2c.js +4 -0
- package/dist/chunks/studio-9dq7rwc7.js +5 -0
- package/dist/chunks/{studio-cg1bfyhf.js → studio-9qx1ywbv.js} +8 -8
- package/dist/chunks/studio-a65kbs2e.js +9 -0
- package/dist/chunks/studio-aam8zt8z.js +5 -0
- package/dist/chunks/{studio-er5f383a.js → studio-abh9kfdh.js} +4 -4
- package/dist/chunks/studio-b4e0ftkt.js +5 -0
- package/dist/chunks/studio-b68k0z00.js +5 -0
- package/dist/chunks/{studio-399a25za.js → studio-bct64zmj.js} +4 -4
- package/dist/chunks/studio-bz0b5brj.js +6 -0
- package/dist/chunks/studio-cfnn70h1.js +5 -0
- package/dist/chunks/studio-daksw8kh.js +5 -0
- package/dist/chunks/{studio-r7pf0rkv.js → studio-e7vjyp04.js} +7 -7
- package/dist/chunks/studio-ea6r1zyr.js +5 -0
- package/dist/chunks/studio-egnjpyde.js +9 -0
- package/dist/chunks/studio-ejrypvmq.js +5 -0
- package/dist/chunks/studio-eqcddvc2.js +928 -0
- package/dist/chunks/studio-f8tyeyzt.js +5 -0
- package/dist/chunks/studio-fj6c905s.js +5 -0
- package/dist/chunks/{studio-646nn2ys.js → studio-fkrr7kgg.js} +5 -5
- package/dist/chunks/studio-fspe7m9t.js +5 -0
- package/dist/chunks/studio-g0hxtcga.js +5 -0
- package/dist/chunks/{studio-th7z3fg7.js → studio-g9brbewz.js} +4 -4
- package/dist/chunks/studio-ggx3j7nd.js +5 -0
- package/dist/chunks/{studio-43y04qck.js → studio-hfxttkyr.js} +4 -4
- package/dist/chunks/studio-hh394phe.js +5 -0
- package/dist/chunks/{studio-pjtntksy.js → studio-j0zf5x2x.js} +4 -4
- package/dist/chunks/studio-jeb7hth3.js +5 -0
- package/dist/chunks/studio-k0xzrse2.js +64 -0
- package/dist/chunks/studio-k1xqrgm5.js +5 -0
- package/dist/chunks/studio-k2evngrj.js +7 -0
- package/dist/chunks/studio-k3we3kqb.js +5 -0
- package/dist/chunks/{studio-sevbc3xv.js → studio-n9qba0gx.js} +4 -4
- package/dist/chunks/{studio-6hzdjfv0.js → studio-nf8esxxc.js} +4 -4
- package/dist/chunks/studio-nn4f9m9c.js +5 -0
- package/dist/chunks/studio-nskxe9q1.js +6 -0
- package/dist/chunks/{studio-ea74s8c1.js → studio-nvcn2ykc.js} +4 -4
- package/dist/chunks/studio-nwynxqtb.js +5 -0
- package/dist/chunks/studio-nzemfbkk.js +14 -0
- package/dist/chunks/studio-p2a03pgm.js +5 -0
- package/dist/chunks/{studio-4g8yb6jn.js → studio-pm17wdc4.js} +4 -4
- package/dist/chunks/{studio-71m92v9s.js → studio-q80fg1d6.js} +7 -7
- package/dist/chunks/studio-r050sez0.js +6 -0
- package/dist/chunks/studio-s7t4vp1d.js +6 -0
- package/dist/chunks/studio-s9fng7m8.js +7 -0
- package/dist/chunks/studio-sce30r7b.js +4 -0
- package/dist/chunks/studio-stahswgb.js +7 -0
- package/dist/chunks/studio-swedpd82.js +5 -0
- package/dist/chunks/studio-thz5t120.js +5 -0
- package/dist/chunks/studio-tpxcryf2.js +5 -0
- package/dist/chunks/{studio-wc6za3zs.js → studio-v5wktj6f.js} +4 -4
- package/dist/chunks/{studio-kg1abnz0.js → studio-vpevkfxw.js} +4 -4
- package/dist/chunks/studio-waekn290.js +5 -0
- package/dist/chunks/studio-wfct4h6n.js +5 -0
- package/dist/chunks/studio-wgc54sxf.js +5 -0
- package/dist/chunks/studio-wqfaqw4m.js +5 -0
- package/dist/chunks/studio-wse1rs8t.js +7 -0
- package/dist/chunks/studio-x0gsfr1d.js +16 -0
- package/dist/chunks/{studio-hhp4x8xf.js → studio-xpx91fby.js} +5 -5
- package/dist/chunks/studio-y1b86ast.js +5 -0
- package/dist/chunks/studio-yrcrncev.js +5 -0
- package/dist/chunks/{studio-rzqaz21g.js → studio-yzpskb0j.js} +4 -4
- package/dist/chunks/studio-zfdbmhp3.js +5 -0
- package/dist/chunks/{tsMode-f54j66ym.js → tsMode-jg1dtphj.js} +7 -7
- package/dist/chunks/workspace-9btkc8tk.js +4 -0
- package/dist/chunks/workspace-home-qcc4z5ag.js +4 -0
- package/dist/chunks/{ws-client-e8kj684q.js → ws-client-arz2qsy9.js} +3 -3
- package/dist/iframe-entry.js +13 -13
- package/dist/manifest.json +83 -78
- package/dist/studio.js +84 -84
- package/package.json +2 -2
- package/src/browse/library-pane.ts +44 -29
- package/src/browse/library-preview.ts +6 -2
- package/src/canvas/asset-refs.ts +13 -4
- package/src/canvas/asset-resolve.ts +54 -11
- package/src/canvas/canvas-render.ts +25 -0
- package/src/canvas/iframe-entry.ts +5 -1
- package/src/canvas/iframe-host.ts +16 -6
- package/src/canvas/iframe-protocol.ts +9 -1
- package/src/commands/context.ts +5 -0
- package/src/commands/live-context.ts +5 -2
- package/src/editor/shortcuts.ts +3 -0
- package/src/files/asset-versions.ts +108 -2
- package/src/files/file-ops.ts +11 -1
- package/src/files/files.ts +111 -48
- package/src/files/media-paths.ts +12 -4
- package/src/files/media-upload.ts +195 -21
- package/src/files/new-file-name.ts +39 -1
- package/src/media/image-bake.ts +164 -0
- package/src/media/image-editor.ts +846 -0
- package/src/media/image-format.ts +262 -0
- package/src/media/image-recipe.ts +651 -0
- package/src/media/media-commands.ts +65 -1
- package/src/media/media-library-model.ts +1 -1
- package/src/media/media-library.ts +175 -15
- package/src/media/media-open.ts +156 -3
- package/src/media/media-pane.ts +8 -4
- package/src/panels/pane-context.ts +6 -1
- package/src/panels/tab-strip.ts +12 -3
- package/src/studio.ts +13 -2
- package/src/surfaces/image-editor.json +1390 -0
- package/src/surfaces/image-editor.ts +272 -0
- package/src/surfaces/media-library.json +129 -1
- package/src/surfaces/media-library.ts +17 -2
- package/src/types.ts +2 -1
- package/src/workspace/tab-workspace.ts +2 -1
- package/src/workspace/workspace-switch.ts +3 -1
- package/src/workspace/workspace.ts +22 -1
- package/dist/chunks/adapter-pp011m5x.js +0 -4
- package/dist/chunks/add-new-flow-ecqmzz76.js +0 -4
- package/dist/chunks/cf-account-picker-c07znkqt.js +0 -4
- package/dist/chunks/cf-settings-0v2bmqy0.js +0 -4
- package/dist/chunks/components-yn0dn2pq.js +0 -4
- package/dist/chunks/content-source-g0j41yy6.js +0 -4
- package/dist/chunks/convert-to-repeater-sbjk7tgn.js +0 -4
- package/dist/chunks/editor-xz02jeh1.js +0 -4
- package/dist/chunks/entry-commands-kmt02crp.js +0 -4
- package/dist/chunks/extension-sections-0rprf12d.js +0 -4
- package/dist/chunks/file-ops-mexj5qed.js +0 -4
- package/dist/chunks/files-b2tcppdd.js +0 -4
- package/dist/chunks/format-host-btsevv0c.js +0 -4
- package/dist/chunks/fs-events-r0apejva.js +0 -4
- package/dist/chunks/grid-open-n2a8xkht.js +0 -4
- package/dist/chunks/icons-853n6qt3.js +0 -4
- package/dist/chunks/iframe-host-gx0ypyh3.js +0 -4
- package/dist/chunks/index-bs4k9tr6.js +0 -4
- package/dist/chunks/jx-validate-ymf10teh.js +0 -4
- package/dist/chunks/layers-p9nfya38.js +0 -4
- package/dist/chunks/layers-panel-tt1hzhhf.js +0 -4
- package/dist/chunks/lit-html-x18n2sfz.js +0 -4
- package/dist/chunks/media-library-0n45gv8r.js +0 -4
- package/dist/chunks/media-picker-s09at95z.js +0 -4
- package/dist/chunks/monaco-buffer-een2ea0v.js +0 -4
- package/dist/chunks/notify-qwb8radt.js +0 -4
- package/dist/chunks/parse-v77xtwv7.js +0 -4
- package/dist/chunks/platform-8jnez0wr.js +0 -4
- package/dist/chunks/publish-panel-aysnj611.js +0 -4
- package/dist/chunks/publish-quick-kpbqs9mz.js +0 -4
- package/dist/chunks/publish-workspace-nd0a8q99.js +0 -4
- package/dist/chunks/quick-search-vg0jkhk2.js +0 -4
- package/dist/chunks/references-a7v6a0e2.js +0 -4
- package/dist/chunks/right-panel-cvk1vxx5.js +0 -4
- package/dist/chunks/source-control-fsqzc6he.js +0 -4
- package/dist/chunks/studio-05jfwbmf.js +0 -5
- package/dist/chunks/studio-0q5jwddh.js +0 -9
- package/dist/chunks/studio-0w2dr0q8.js +0 -5
- package/dist/chunks/studio-1tzpds97.js +0 -9
- package/dist/chunks/studio-216b27sv.js +0 -4
- package/dist/chunks/studio-2ejhqns4.js +0 -5
- package/dist/chunks/studio-2r90cts3.js +0 -16
- package/dist/chunks/studio-399xknkb.js +0 -6
- package/dist/chunks/studio-4ncmwqw5.js +0 -5
- package/dist/chunks/studio-5atwjgkj.js +0 -7
- package/dist/chunks/studio-5frqk7c0.js +0 -5
- package/dist/chunks/studio-6cwj6xrx.js +0 -5
- package/dist/chunks/studio-78pywnp2.js +0 -6
- package/dist/chunks/studio-886t6ztg.js +0 -5
- package/dist/chunks/studio-8wnvtr4z.js +0 -5
- package/dist/chunks/studio-8z66jk4z.js +0 -5
- package/dist/chunks/studio-b2qpt0xy.js +0 -14
- package/dist/chunks/studio-c71806xz.js +0 -7
- package/dist/chunks/studio-cbwks69x.js +0 -928
- package/dist/chunks/studio-cg710sk9.js +0 -5
- package/dist/chunks/studio-cw0wb9qk.js +0 -7
- package/dist/chunks/studio-cyheys7k.js +0 -5
- package/dist/chunks/studio-ea5m9kg5.js +0 -5
- package/dist/chunks/studio-efdxjwyp.js +0 -64
- package/dist/chunks/studio-egmw2837.js +0 -5
- package/dist/chunks/studio-f746039f.js +0 -5
- package/dist/chunks/studio-fmdymd9v.js +0 -5
- package/dist/chunks/studio-gcm12z00.js +0 -6
- package/dist/chunks/studio-gj98m8gy.js +0 -7
- package/dist/chunks/studio-hasbgjah.js +0 -5
- package/dist/chunks/studio-hz5n7x27.js +0 -5
- package/dist/chunks/studio-jeraxdgv.js +0 -7
- package/dist/chunks/studio-jvgek9xt.js +0 -5
- package/dist/chunks/studio-jws1a87n.js +0 -5
- package/dist/chunks/studio-k2sz13zg.js +0 -5
- package/dist/chunks/studio-k3m4jkdk.js +0 -5
- package/dist/chunks/studio-kg5ya5r2.js +0 -5
- package/dist/chunks/studio-khwbgrtg.js +0 -5
- package/dist/chunks/studio-mx6wzh25.js +0 -5
- package/dist/chunks/studio-mxs3ar9t.js +0 -5
- package/dist/chunks/studio-nm4szey4.js +0 -5
- package/dist/chunks/studio-nqxqf8p2.js +0 -4
- package/dist/chunks/studio-qn7z4krm.js +0 -5
- package/dist/chunks/studio-qyed0ah6.js +0 -5
- package/dist/chunks/studio-r4bcdwhq.js +0 -5
- package/dist/chunks/studio-rtfnhrdg.js +0 -5
- package/dist/chunks/studio-s5tzw84t.js +0 -5
- package/dist/chunks/studio-t51y8v1d.js +0 -5
- package/dist/chunks/studio-t98vq4r6.js +0 -5
- package/dist/chunks/studio-tsxpqvh0.js +0 -6
- package/dist/chunks/studio-v1yascv2.js +0 -5
- package/dist/chunks/studio-wxq6v5sv.js +0 -5
- package/dist/chunks/studio-y60sts62.js +0 -4
- package/dist/chunks/studio-zndrqawb.js +0 -5
- package/dist/chunks/studio-zwaxn5s2.js +0 -5
- package/dist/chunks/workspace-home-x1787wpv.js +0 -4
- package/dist/chunks/workspace-zpe1np43.js +0 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{ft}from"./studio-5tet77de.js";import{Qs,vh,Wx,YC,Oe,YO,Kx,Jx,ZO,sM,ir,Z,or,_h,vI,Ym,n0,gM,Kp,Qe,wM,m,h}from"./studio-yrcrncev.js";import{w}from"./studio-sce30r7b.js";import{st,Ch,nd}from"./studio-swedpd82.js";import{u,Kc}from"./studio-x0gsfr1d.js";import{TA,$A,ei}from"./studio-3q7mhbgx.js";import{Ne}from"./studio-n9qba0gx.js";import{dg}from"./studio-nzemfbkk.js";import{Ou,Xy,vp,Ld,B_,lm}from"./studio-fkrr7kgg.js";import{ph}from"./studio-4zd6an2b.js";import{Tn,sv,Xs,av}from"./studio-tpxcryf2.js";import{ae}from"./studio-wqfaqw4m.js";import{vr,UA,SC,Mm,GA,cx,dx,YL,ZL,ul,Xb,_$,S$,nc,dh,OC}from"./studio-53wy9ek3.js";import{zr}from"./studio-90zkgne5.js";import{wp,gb,VE,Wl}from"./studio-bz0b5brj.js";import{zt}from"./studio-daksw8kh.js";import{dm}from"./studio-3xk9zdgb.js";import{Fw,jw,MN,Hw}from"./studio-g0hxtcga.js";import{rr,Vt,zi,$I,Cr,kh,kr,C,ig,vl}from"./studio-4f7thq0p.js";import{oe,ru,sg}from"./studio-v5wktj6f.js";import{Ve,vt,E,R}from"./studio-9dq7rwc7.js";import{Me}from"./studio-0gvvqj3h.js";import{te,Gr,Kr,g}from"./studio-3qr08sxq.js";import{n,Y,Q,_,v,Pe,Go,Jn,jh,aR,it}from"./studio-k3we3kqb.js";import{eo,ce}from"./studio-0939t1q1.js";var Ca={$schema:"https://jxsuite.com/schema/v1",$id:"StudioPanelStylebookLayers",$description:"The Outline panel while the pane is showing a document's Elements view: the element catalogue as a list of selectable tags. The adapter hands in one flat projection per row — its badge, its name, how deep it sits, whether the open file has already styled it and whether it is the selected one — so nothing here walks the catalogue tree, reads the component registry or knows what a `& tag` style key is. A row asks the host to select the compound path it was given, by that path. The project's CSS custom properties are not listed here: `project.json` in the Styles workspace has its own Navigator, the Styles panel (`styles-panel.json`), which lists them.",tagName:"div",attributes:{part:"stylebook-layers"},style:{$description:"What `.layer-row`, `.layer-tag`, `.layer-label` and `.component-tag` said in `styles/panels.css`, keyed on `part` and carried here rather than moved: three of those four are SHARED with the Outline's own rows (`panels/layers-panel.ts`), so the stylesheet rule can only go when that surface moves too. `.component-tag` is the exception — nothing else emits it once this lands. Three Spectrum names could not come with the declarations and are the kit's instead, at the same values: `--spectrum-corner-radius-75` (2px) is `--jx-radius-xs`, `--spectrum-font-size-50` (11px) is `--jx-text-sm` and `--spectrum-font-size-75` (12px) is `--jx-text-md`. Two things changed on purpose. A ROW IS A BUTTON: it was a `<div>` with a click handler and no role, so the catalogue could not be reached from the keyboard at all, and `cursor: grab` promised a drag that has never existed here. AND THE INDENT IS A VARIABLE, for the reason `panel-data.json` gives: a per-row `padding-left` declaration interns one rule per row, while `--row-indent` is written inline under its own name and read by one shared rule.",display:"block",fontFamily:"var(--jx-font-sans)",color:"var(--fg)",'& [part="list"]':{display:"flex",flexDirection:"column",margin:"0",padding:"0",listStyle:"none"},'& [part="row"]':{$description:"The 24px row the Outline declares, so the two lists line up when the pane switches between them. `block-size` rather than a height, and `box-sizing: border-box`, because the indent is padding.",display:"flex",alignItems:"center",gap:"var(--jx-space-2)",width:"100%",blockSize:"24px",boxSizing:"border-box",margin:"0",padding:"3px var(--jx-space-3)",paddingLeft:"var(--row-indent, var(--jx-space-3))",border:"none",borderLeft:"2px solid transparent",background:"none",color:"inherit",font:"inherit",textAlign:"left",whiteSpace:"nowrap",userSelect:"none"},'& button[part="row"]':{cursor:"pointer",":hover":{background:"var(--hover-bg)"},":focus-visible":{outline:"var(--jx-focus-ring)",outlineOffset:"-2px"}},'& [part="row"][aria-current="true"]':{background:"var(--accent-20)",borderLeftColor:"var(--accent)"},'& [part="badge"]':{$description:"A long custom-element tag is a badge, not a paragraph: it truncates rather than pushing the label out of a 240px column.",flex:"none",maxWidth:"12ch",overflow:"hidden",padding:"0 var(--jx-space-2)",borderRadius:"var(--jx-radius-xs)",background:"var(--tag)",color:"var(--accent-fg)",fontSize:"var(--jx-text-xs)",textOverflow:"ellipsis"},'& [part="badge"][data-kind="component"]':{$description:"A component has no tag to show that a reader would recognise from the page, so the badge is the glyph and the tag name is the label. Fixed width, so a column of them has one left edge.",width:"18px",padding:"0",background:"var(--accent)",fontSize:"9px",textAlign:"center"},'& [part="label"]':{flex:"1",minWidth:"24px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'& [part="dot"]':{$description:"The file has already styled this tag. The kit's neutral disc in the accent, which is the one thing about it that was ever this surface's own.",background:"var(--accent)"},"@(forced-colors: active)":{'& [part="row"][aria-current="true"]':{$description:"The selected row, redrawn. Every author colour is replaced by one from the user's palette in forced colours, so the accent wash behind the row collapses into the page and the left edge is the only marker left.",borderLeftColor:"Highlight"}}},children:[{tagName:"div",attributes:{part:"list","data-tab":"elements"},children:[{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/key"},map:{tagName:"button",attributes:{part:"row",type:"button","data-path":"${$map.item.key}","data-kind":"${$map.item.kind}","aria-current":"${$map.item.selected ? 'true' : null}"},style:{"--row-indent":{$ref:"$map/item/indent"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/selectRow"},value:[{$ref:"$map/item/key"}]}]},children:[{tagName:"span",attributes:{part:"badge","data-kind":"${$map.item.kind}"},textContent:"${$map.item.tag}"},{tagName:"span",attributes:{part:"label"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"dot-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/customized"},cases:{true:{tagName:"jx-dot",attributes:{part:"dot",role:"img","aria-label":"Styled in this file"}}}}]}}]}]};E("panel-stylebook-layers",Ca);function ya(e,t){e.rows=t.rows}function Sa(e,t,a){let o=g({rows:[],selectRow:a.selectRow});ya(o,t);let s=null,i=!1;return R("panel-stylebook-layers",o,e).then((l)=>{if(i){l.dispose();return}s=l}),{connected:()=>!i&&(s===null||s.root.parentNode===e),dispose(){i=!0,s?.dispose(),s=null},update:(l)=>{ya(o,l)}}}var bp=8,Gy=16;function as(e,t){let a=e[`& ${t}`];return _(a)&&Object.keys(a).length>0}function rs(e){let a=h.value?.doc.document?.style||{},{selection:o}=u.stylebook,s=e.stylebookMeta.$sections.flatMap((l)=>l.elements),i=Xy(s,o).map((l)=>({customized:as(a,l.tag),indent:`${bp+l.depth*Gy}px`,key:l.path,kind:"element",label:l.entry.text||`<${l.tag}>`,selected:l.selected,tag:l.tag}));for(let l of Ne)i.push({customized:!1,indent:`${bp}px`,key:l.tagName,kind:"component",label:l.tagName,selected:l.tagName===o,tag:"⬡"});return{rows:i}}var ue=null;function os(e){queueMicrotask(()=>{e.querySelector('[part="row"][aria-current="true"]')?.scrollIntoView({behavior:"smooth",block:"nearest"})})}function xa(e,t){let a=t.querySelector(".panel-content")??t;if(ue&&(ue.host!==a||!ue.handle.connected()))ue.handle.dispose(),ue=null;let o=rs(e);if(ue)ue.ctx=e,ue.handle.update(o);else ue={ctx:e,handle:Sa(a,o,{selectRow:(s)=>{(ue?.ctx??e).selectStylebookTag(s,void 0,{panCanvas:!0})}}),host:a};os(a)}function Na(){ue?.handle.dispose(),ue=null}function Fi(){}class we{constructor(e,t,a){if(this.normal=t,this.property=e,a)this.space=a}}we.prototype.normal={};we.prototype.property={};we.prototype.space=void 0;function dn(e,t){let a={},o={};for(let s of e)Object.assign(a,s.property),Object.assign(o,s.normal);return new we(a,o,t)}function ye(e){return e.toLowerCase()}class X{constructor(e,t){this.attribute=t,this.property=e}}X.prototype.attribute="";X.prototype.booleanish=!1;X.prototype.boolean=!1;X.prototype.commaOrSpaceSeparated=!1;X.prototype.commaSeparated=!1;X.prototype.defined=!1;X.prototype.mustUseProperty=!1;X.prototype.number=!1;X.prototype.overloadedBoolean=!1;X.prototype.property="";X.prototype.spaceSeparated=!1;X.prototype.space=void 0;var ot={};eo(ot,{boolean:()=>k,booleanish:()=>K,commaOrSpaceSeparated:()=>ie,commaSeparated:()=>Se,number:()=>I,overloadedBoolean:()=>Dt,spaceSeparated:()=>H});var ss=0,k=Fe(),K=Fe(),Dt=Fe(),I=Fe(),H=Fe(),Se=Fe(),ie=Fe();function Fe(){return 2**++ss}var fn=Object.keys(ot);class Xe extends X{constructor(e,t,a,o){let s=-1;super(e,t);if(Ia(this,"space",o),typeof a==="number")while(++s<fn.length){let i=fn[s];Ia(this,fn[s],(a&ot[i])===ot[i])}}}Xe.prototype.defined=!0;function Ia(e,t,a){if(a)e[t]=a}function le(e){let t={},a={};for(let[o,s]of Object.entries(e.properties)){let i=new Xe(o,e.transform(e.attributes||{},o),s,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(o))i.mustUseProperty=!0;t[o]=i,a[ye(o)]=o,a[ye(i.attribute)]=o}return new we(t,a,e.space)}var hn=le({properties:{ariaActiveDescendant:null,ariaAtomic:K,ariaAutoComplete:null,ariaBusy:K,ariaChecked:K,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:H,ariaCurrent:null,ariaDescribedBy:H,ariaDetails:null,ariaDisabled:K,ariaDropEffect:H,ariaErrorMessage:null,ariaExpanded:K,ariaFlowTo:H,ariaGrabbed:K,ariaHasPopup:null,ariaHidden:K,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:H,ariaLevel:I,ariaLive:null,ariaModal:K,ariaMultiLine:K,ariaMultiSelectable:K,ariaOrientation:null,ariaOwns:H,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:K,ariaReadOnly:K,ariaRelevant:null,ariaRequired:K,ariaRoleDescription:H,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:K,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function wt(e,t){return t in e?e[t]:t}function kt(e,t){return wt(e,t.toLowerCase())}var Oa=le({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Se,acceptCharset:H,accessKey:H,action:null,allow:null,allowFullScreen:k,allowPaymentRequest:k,allowUserMedia:k,alpha:k,alt:null,as:null,async:k,autoCapitalize:null,autoComplete:H,autoFocus:k,autoPlay:k,blocking:H,capture:null,charSet:null,checked:k,cite:null,className:H,closedBy:null,colorSpace:null,cols:I,colSpan:I,command:null,commandFor:null,content:null,contentEditable:K,controls:k,controlsList:H,coords:I|Se,crossOrigin:null,data:null,dateTime:null,decoding:null,default:k,defer:k,dir:null,dirName:null,disabled:k,download:Dt,draggable:K,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:k,formTarget:null,headers:H,height:I,hidden:Dt,high:I,href:null,hrefLang:null,htmlFor:H,httpEquiv:H,id:null,imageSizes:null,imageSrcSet:null,inert:k,inputMode:null,integrity:null,is:null,isMap:k,itemId:null,itemProp:H,itemRef:H,itemScope:k,itemType:H,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:k,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:k,muted:k,name:null,nonce:null,noModule:k,noValidate:k,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:k,optimum:I,pattern:null,ping:H,placeholder:null,playsInline:k,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:k,referrerPolicy:null,rel:H,required:k,reversed:k,rows:I,rowSpan:I,sandbox:H,scope:null,scoped:k,seamless:k,selected:k,shadowRootClonable:k,shadowRootCustomElementRegistry:k,shadowRootDelegatesFocus:k,shadowRootMode:null,shadowRootSerializable:k,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:K,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:k,useMap:null,value:K,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:H,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:k,declare:k,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:k,noHref:k,noShade:k,noWrap:k,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:K,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:k,disablePictureInPicture:k,disableRemotePlayback:k,exportParts:Se,part:H,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:kt});var La=le({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ie,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:H,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:k,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Se,g2:Se,glyphName:Se,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:ie,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:H,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ie,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ie,rev:ie,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ie,requiredFeatures:ie,requiredFonts:ie,requiredFormats:ie,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:ie,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ie,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ie,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:wt});var mn=le({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var pn=le({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:kt});var En=le({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var is=/[A-Z]/g,Ra=/-[a-z]/g,us=/^data[-\w.:]+$/i;function Du(e,t){let a=ye(t),o=t,s=X;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&us.test(t)){if(t.charAt(4)==="-"){let i=t.slice(5).replace(Ra,ls);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{let i=t.slice(4);if(!Ra.test(i)){let l=i.replace(is,cs);if(l.charAt(0)!=="-")l="-"+l;t="data"+l}}s=Xe}return new s(o,t)}function cs(e){return"-"+e.toLowerCase()}function ls(e){return e.charAt(1).toUpperCase()}var Dc=dn([hn,Oa,mn,pn,En],"html"),Nu=dn([hn,La,mn,pn,En],"svg");function bn(e){let t=[],a=String(e||""),o=a.indexOf(","),s=0,i=!1;while(!i){if(o===-1)o=a.length,i=!0;let l=a.slice(s,o).trim();if(l||!i)t.push(l);s=o+1,o=a.indexOf(",",s)}return t}function sD(e,t){let a=t||{};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var Da=/[#.]/g;function gn(e,t){let a=e||"",o={},s=0,i,l;while(s<a.length){Da.lastIndex=s;let b=Da.exec(a),p=a.slice(s,b?b.index:a.length);if(p){if(!i)l=p;else if(i==="#")o.id=p;else if(Array.isArray(o.className))o.className.push(p);else o.className=[p];s+=p.length}if(b)i=b[0],s++}return{type:"element",tagName:l||t||"div",properties:o,children:[]}}function An(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function aD(e){return e.join(" ").trim()}function Cn(e,t,a){let o=a?ms(a):void 0;function s(i,l,...b){let p;if(i===null||i===void 0){p={type:"root",children:[]};let y=l;b.unshift(y)}else{p=gn(i,t);let y=p.tagName.toLowerCase(),O=o?o.get(y):void 0;if(p.tagName=O||y,ds(l))b.unshift(l);else for(let[x,L]of Object.entries(l))fs(e,p.properties,x,L)}for(let y of b)_n(p.children,y);if(p.type==="element"&&p.tagName==="template"&&e.space==="html")p.content={type:"root",children:p.children},p.children=[];return p}return s}function ds(e){if(e===null||typeof e!=="object"||Array.isArray(e))return!0;if(typeof e.type!=="string")return!1;let t=e,a=Object.keys(e);for(let o of a){let s=t[o];if(s&&typeof s==="object"){if(!Array.isArray(s))return!0;let i=s;for(let l of i)if(typeof l!=="number"&&typeof l!=="string")return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}function fs(e,t,a,o){if(o===null||o===void 0)return;let s=Du(e,a),i;if(typeof o==="number"){if(Number.isNaN(o))return;i=o}else if(typeof o==="boolean")i=o;else if(typeof o==="string")if(s.spaceSeparated)i=An(o);else if(s.commaSeparated)i=bn(o);else if(s.commaOrSpaceSeparated)i=An(bn(o).join(" "));else i=va(s,s.property,o);else if(Array.isArray(o))i=[...o];else i=s.property==="style"?hs(o):String(o);if(Array.isArray(i)){let l=[];for(let b of i)l.push(va(s,s.property,b));i=l}if(s.property==="className"&&Array.isArray(t.className)){let l=i;i=[...t.className,...Array.isArray(l)?l:[l]]}t[s.property]=i}function _n(e,t){if(t===null||t===void 0);else if(typeof t==="number"||typeof t==="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(let a of t)_n(e,a);else if(typeof t==="object"&&"type"in t)if(t.type==="root")_n(e,t.children);else e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function va(e,t,a){if(typeof a==="string"){if(e.number&&a&&!Number.isNaN(Number(a)))return Number(a);if((e.boolean||e.overloadedBoolean)&&(a===""||ye(a)===ye(t)))return!0}return a}function hs(e){let t=[];for(let[a,o]of Object.entries(e))t.push([a,o].join(": "));return t.join("; ")}function ms(e){let t=new Map;for(let a of e)t.set(a.toLowerCase(),a);return t}var wa=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];var yn=Cn(Dc,"div"),Sn=Cn(Nu,"g",wa);function xn(e){let t=String(e),a=[];return{toOffset:s,toPoint:o};function o(i){if(typeof i==="number"&&i>-1&&i<=t.length){let l=0;while(!0){let b=a[l];if(b===void 0){let p=ka(t,a[l-1]);b=p===-1?t.length+1:p+1,a[l]=b}if(b>i)return{line:l+1,column:i-(l>0?a[l-1]:0)+1,offset:i};l++}}}function s(i){if(i&&typeof i.line==="number"&&typeof i.column==="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){while(a.length<i.line){let b=a[a.length-1],p=ka(t,b),y=p===-1?t.length+1:p+1;if(b===y)break;a.push(y)}let l=(i.line>1?a[i.line-2]:0)+i.column-1;if(l<a[i.line-1])return l}}}function ka(e,t){let a=e.indexOf("\r",t),o=e.indexOf(`
|
|
2
|
+
`,t);if(o===-1)return a;if(a===-1||a+1===o)return o;return a<o?a:o}var Nn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};var Ma={}.hasOwnProperty,ps=Object.prototype;function In(e,t){let a=t||{};return On({file:a.file||void 0,location:!1,schema:a.space==="svg"?Nu:Dc,verbose:a.verbose||!1},e)}function On(e,t){let a;switch(t.nodeName){case"#comment":{let o=t;return a={type:"comment",value:o.data},Pt(e,o,a),a}case"#document":case"#document-fragment":{let o=t,s="mode"in o?o.mode==="quirks"||o.mode==="limited-quirks":!1;if(a={type:"root",children:Ba(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){let i=String(e.file),l=xn(i),b=l.toPoint(0),p=l.toPoint(i.length);Fi(b,"expected `start`"),Fi(p,"expected `end`"),a.position={start:b,end:p}}return a}case"#documentType":{let o=t;return a={type:"doctype"},Pt(e,o,a),a}case"#text":{let o=t;return a={type:"text",value:o.value},Pt(e,o,a),a}default:return a=Es(e,t),a}}function Ba(e,t){let a=-1,o=[];while(++a<t.length){let s=On(e,t[a]);o.push(s)}return o}function Es(e,t){let{schema:a}=e;e.schema=t.namespaceURI===Nn.svg?Nu:Dc;let o=-1,s={};while(++o<t.attrs.length){let b=t.attrs[o],p=(b.prefix?b.prefix+":":"")+b.name;if(!Ma.call(ps,p))s[p]=b.value}let l=(e.schema.space==="svg"?Sn:yn)(t.tagName,s,Ba(e,t.childNodes));if(Pt(e,t,l),l.tagName==="template"){if(t.namespaceURI===Nn.html){let b=t,p=b.sourceCodeLocation,y=p&&p.startTag&&ze(p.startTag),O=p&&p.endTag&&ze(p.endTag),x=On(e,b.content);if(y&&O&&e.file)x.position={start:y.end,end:O.start};l.content=x}else if(l.content)l.children=l.content.children,delete l.content}return e.schema=a,l}function Pt(e,t,a){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let o=bs(e,a,t.sourceCodeLocation);if(o)e.location=!0,a.position=o}}function bs(e,t,a){let o=ze(a);if(t.type==="element"){let s=t.children[t.children.length-1];if(o&&!a.endTag&&s&&s.position&&s.position.end)o.end=Object.assign({},s.position.end);if(e.verbose){let i={},l;if(a.attrs){for(l in a.attrs)if(Ma.call(a.attrs,l))i[Du(e.schema,l).property]=ze(a.attrs[l])}Fi(a.startTag,"a start tag should exist");let b=ze(a.startTag),p=a.endTag?ze(a.endTag):void 0,y={opening:b};if(p)y.closing=p;y.properties=i,t.data={position:y}}}return o}function ze(e){let t=Pa({line:e.startLine,column:e.startCol,offset:e.startOffset}),a=Pa({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||a?{start:t,end:a}:void 0}function Pa(e){return e.line&&e.column?e:void 0}var Ts=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),U="�",c;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(c||(c={}));var ne={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Mt(e){return e>=55296&&e<=57343}function Ha(e){return e>=56320&&e<=57343}function Ua(e,t){return(e-55296)*1024+9216+t}function Bt(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ht(e){return e>=64976&&e<=65007||Ts.has(e)}var A;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(A||(A={}));var As=65536;class Ln{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=As,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:a,col:o,offset:s}=this,i=o+t,l=s+t;return{code:e,startLine:a,endLine:a,startCol:i,endCol:i,startOffset:l,endOffset:l}}_err(e){if(this.handler.onParseError&&this.lastErrOffset!==this.offset)this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(Ha(t))return this.pos++,this._addGap(),Ua(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,c.EOF;return this._err(A.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){if(this.willDropParsedChunk())this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0}write(e,t){if(this.html.length>0)this.html+=e;else this.html=e;this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let a=0;a<e.length;a++)if((this.html.charCodeAt(this.pos+a)|32)!==e.charCodeAt(a))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,c.EOF;let a=this.html.charCodeAt(t);return a===c.CARRIAGE_RETURN?c.LINE_FEED:a}advance(){if(this.pos++,this.isEol)this.isEol=!1,this.line++,this.lineStartPos=this.pos;if(this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,c.EOF;let e=this.html.charCodeAt(this.pos);if(e===c.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,c.LINE_FEED;if(e===c.LINE_FEED){if(this.isEol=!0,this.skipNextNewLine)return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()}if(this.skipNextNewLine=!1,Mt(e))e=this._processSurrogate(e);if(!(this.handler.onParseError===null||e>31&&e<127||e===c.LINE_FEED||e===c.CARRIAGE_RETURN||e>159&&e<64976))this._checkForProblematicCharacters(e);return e}_checkForProblematicCharacters(e){if(Bt(e))this._err(A.controlCharacterInInputStream);else if(Ht(e))this._err(A.noncharacterInInputStream)}retreat(e){this.pos-=e;while(this.pos<this.lastGapPos)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var M;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(M||(M={}));function Ut(e,t){for(let a=e.attrs.length-1;a>=0;a--)if(e.attrs[a].name===t)return e.attrs[a].value;return null}var Rn=new Uint16Array("ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\x00\x00\x00\x00\x00\x00ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀\uD835\uDD04rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀\uD835\uDC9Cign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\x00\x00\x00͔͂\x00Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\x00\x00ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\x00\x00ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\x00ц\x00ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\x00ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\x00\x00ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀\uD835\uDD09lledɓ֗\x00\x00֣mallSquare;旼erySmallSquare;斪Ͱֺ\x00ֿ\x00\x00ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\x00ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\x00ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\x00ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\x00ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\x00ࣃbleBracket;柦nǔࣈ\x00࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\uD835\uDCA9ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻\"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCACBEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\x00စbleBracket;柧nǔည\x00နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\x00\x00ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\uD835\uDD17ĀeiቻDzኀ\x00ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\x00ጬጱ\x00\x00\x00\x00\x00ጸጽ፷ᎅ\x00ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\x00y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\x00ᕛoWidtèa;䎖r;愨pf;愤cr;쀀\uD835\uDCB5ᖃᖊᖐ\x00ᖰᖶᖿ\x00\x00\x00\x00ᗆᗛᗫᙟ᙭\x00ᚕ᚛ᚲᚹ\x00ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀\uD835\uDD1Erave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\x00\x00ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fgcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\x00\x00ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\x00ᠳƲᠯ\x00ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\x00᧨ᨑᨕᨲ\x00ᨷᩐ\x00\x00᪴\x00\x00᫁\x00\x00ᬡᬮ᭒\x00᯽\x00ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\x00᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\x00\x00᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\x00ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\x00\x00aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\x00ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀\uD835\uDD54oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\x00\x00᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\x00\x00ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\uD835\uDD21arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\x00\x00ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\x00\x00ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\x00\x00ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\x00ᾞ\x00ᾡᾧ\x00\x00ῆῌ\x00ΐ\x00ῦῪ \x00 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\x00\x00᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\x00ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\x00⁐β•‥‧\x00耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\x00‶;慔;慖ʴ‾⁁\x00\x00⁃耻¾䂾;慗;慜5;慘ƶ⁌\x00⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\x00proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDasè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\x00⊪\x00⊸⋅⋎\x00⋕⋳\x00\x00⋸⌢⍧⍢⍿\x00⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\uD835\uDD5Aa;䎹uest耻¿䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\x00⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\x00⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\x00⒪\x00⒱\x00\x00\x00\x00\x00⒵Ⓔ\x00ⓆⓈⓍ\x00⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀\uD835\uDD29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\x00⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\x00⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀\uD835\uDD2BȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀\uD835\uDD5F膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀\uD835\uDCC3ortɭ⬅\x00\x00⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00ⴭ\x00ⴸⵈⵠⵥⶄᬇ\x00\x00ⶍⶫ\x00ⷈⷎ\x00ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀\uD835\uDD2Cͯ\x00\x00\x00ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\x00\x00⺀⺝\x00⺢⺹\x00\x00⻋ຜ\x00⼓\x00\x00⼫⾼\x00⿈rȀ;astЃ脀¶;l䂶leìЃɩ\x00\x00m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⋢⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀\uD835\uDD2FĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\x00㍺㎤\x00\x00㏬㏰\x00㐨㑈㑚㒭㒱㓊㓱\x00㘖\x00\x00㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\x00㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\x00\x00㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\x00㙾㛂\x00\x00\x00\x00\x00㛛㜃\x00㜉㝬\x00\x00\x00㞇ɲ㙖\x00\x00㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\x00㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\x00㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\x00\x00㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\x00\x00㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀\uD835\uDD33tré㦮suĀbp㧯㧱»ജ»൙pf;쀀\uD835\uDD67roðtré㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦atèᑹcr;쀀\uD835\uDCCCૣណ㪇\x00㪋\x00㪐㪛\x00\x00㪝㪨㪫㪯\x00\x00㫃㫎\x00㫘ៜtré៑r;쀀\uD835\uDD35ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌".split("").map((e)=>e.charCodeAt(0)));var Dn,Cs=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ys=(Dn=String.fromCodePoint)!==null&&Dn!==void 0?Dn:function(e){let t="";if(e>65535)e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023;return t+=String.fromCharCode(e),t};function Fa(e){var t;if(e>=55296&&e<=57343||e>1114111)return 65533;return(t=Cs.get(e))!==null&&t!==void 0?t:e}var G;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(G||(G={}));var Ss=32,ke;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ke||(ke={}));function vn(e){return e>=G.ZERO&&e<=G.NINE}function xs(e){return e>=G.UPPER_A&&e<=G.UPPER_F||e>=G.LOWER_A&&e<=G.LOWER_F}function Ns(e){return e>=G.UPPER_A&&e<=G.UPPER_Z||e>=G.LOWER_A&&e<=G.LOWER_Z||vn(e)}function Is(e){return e===G.EQUALS||Ns(e)}var W;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(W||(W={}));var Te;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Te||(Te={}));class wn{constructor(e,t,a){this.decodeTree=e,this.emitCodePoint=t,this.errors=a,this.state=W.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Te.Strict}startEntity(e){this.decodeMode=e,this.state=W.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case W.EntityStart:{if(e.charCodeAt(t)===G.NUM)return this.state=W.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=W.NamedEntity,this.stateNamedEntity(e,t)}case W.NumericStart:return this.stateNumericStart(e,t);case W.NumericDecimal:return this.stateNumericDecimal(e,t);case W.NumericHex:return this.stateNumericHex(e,t);case W.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){if(t>=e.length)return-1;if((e.charCodeAt(t)|Ss)===G.LOWER_X)return this.state=W.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1);return this.state=W.NumericDecimal,this.stateNumericDecimal(e,t)}addToNumericResult(e,t,a,o){if(t!==a){let s=a-t;this.result=this.result*Math.pow(o,s)+Number.parseInt(e.substr(t,s),o),this.consumed+=s}}stateNumericHex(e,t){let a=t;while(t<e.length){let o=e.charCodeAt(t);if(vn(o)||xs(o))t+=1;else return this.addToNumericResult(e,a,t,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(e,a,t,16),-1}stateNumericDecimal(e,t){let a=t;while(t<e.length){let o=e.charCodeAt(t);if(vn(o))t+=1;else return this.addToNumericResult(e,a,t,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(e,a,t,10),-1}emitNumericEntity(e,t){var a;if(this.consumed<=t)return(a=this.errors)===null||a===void 0||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===G.SEMI)this.consumed+=1;else if(this.decodeMode===Te.Strict)return 0;if(this.emitCodePoint(Fa(this.result),this.consumed),this.errors){if(e!==G.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(e,t){let{decodeTree:a}=this,o=a[this.treeIndex],s=(o&ke.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let i=e.charCodeAt(t);if(this.treeIndex=Os(a,o,this.treeIndex+Math.max(1,s),i),this.treeIndex<0)return this.result===0||this.decodeMode===Te.Attribute&&(s===0||Is(i))?0:this.emitNotTerminatedNamedEntity();if(o=a[this.treeIndex],s=(o&ke.VALUE_LENGTH)>>14,s!==0){if(i===G.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);if(this.decodeMode!==Te.Strict)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:a}=this,o=(a[t]&ke.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,o,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,a){let{decodeTree:o}=this;if(this.emitCodePoint(t===1?o[e]&~ke.VALUE_LENGTH:o[e+1],a),t===3)this.emitCodePoint(o[e+2],a);return a}end(){var e;switch(this.state){case W.NamedEntity:return this.result!==0&&(this.decodeMode!==Te.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case W.NumericDecimal:return this.emitNumericEntity(0,2);case W.NumericHex:return this.emitNumericEntity(0,3);case W.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case W.EntityStart:return 0}}}function Os(e,t,a,o){let s=(t&ke.BRANCH_LENGTH)>>7,i=t&ke.JUMP_TABLE;if(s===0)return i!==0&&o===i?a:-1;if(i){let p=o-i;return p<0||p>=s?-1:e[a+p]-1}let l=a,b=l+s-1;while(l<=b){let p=l+b>>>1,y=e[p];if(y<o)l=p+1;else if(y>o)b=p-1;else return e[p+s]}return-1}var S;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(S||(S={}));var xe;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(xe||(xe={}));var re;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(re||(re={}));var T;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(T||(T={}));var r;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(r||(r={}));var Ls=new Map([[T.A,r.A],[T.ADDRESS,r.ADDRESS],[T.ANNOTATION_XML,r.ANNOTATION_XML],[T.APPLET,r.APPLET],[T.AREA,r.AREA],[T.ARTICLE,r.ARTICLE],[T.ASIDE,r.ASIDE],[T.B,r.B],[T.BASE,r.BASE],[T.BASEFONT,r.BASEFONT],[T.BGSOUND,r.BGSOUND],[T.BIG,r.BIG],[T.BLOCKQUOTE,r.BLOCKQUOTE],[T.BODY,r.BODY],[T.BR,r.BR],[T.BUTTON,r.BUTTON],[T.CAPTION,r.CAPTION],[T.CENTER,r.CENTER],[T.CODE,r.CODE],[T.COL,r.COL],[T.COLGROUP,r.COLGROUP],[T.DD,r.DD],[T.DESC,r.DESC],[T.DETAILS,r.DETAILS],[T.DIALOG,r.DIALOG],[T.DIR,r.DIR],[T.DIV,r.DIV],[T.DL,r.DL],[T.DT,r.DT],[T.EM,r.EM],[T.EMBED,r.EMBED],[T.FIELDSET,r.FIELDSET],[T.FIGCAPTION,r.FIGCAPTION],[T.FIGURE,r.FIGURE],[T.FONT,r.FONT],[T.FOOTER,r.FOOTER],[T.FOREIGN_OBJECT,r.FOREIGN_OBJECT],[T.FORM,r.FORM],[T.FRAME,r.FRAME],[T.FRAMESET,r.FRAMESET],[T.H1,r.H1],[T.H2,r.H2],[T.H3,r.H3],[T.H4,r.H4],[T.H5,r.H5],[T.H6,r.H6],[T.HEAD,r.HEAD],[T.HEADER,r.HEADER],[T.HGROUP,r.HGROUP],[T.HR,r.HR],[T.HTML,r.HTML],[T.I,r.I],[T.IMG,r.IMG],[T.IMAGE,r.IMAGE],[T.INPUT,r.INPUT],[T.IFRAME,r.IFRAME],[T.KEYGEN,r.KEYGEN],[T.LABEL,r.LABEL],[T.LI,r.LI],[T.LINK,r.LINK],[T.LISTING,r.LISTING],[T.MAIN,r.MAIN],[T.MALIGNMARK,r.MALIGNMARK],[T.MARQUEE,r.MARQUEE],[T.MATH,r.MATH],[T.MENU,r.MENU],[T.META,r.META],[T.MGLYPH,r.MGLYPH],[T.MI,r.MI],[T.MO,r.MO],[T.MN,r.MN],[T.MS,r.MS],[T.MTEXT,r.MTEXT],[T.NAV,r.NAV],[T.NOBR,r.NOBR],[T.NOFRAMES,r.NOFRAMES],[T.NOEMBED,r.NOEMBED],[T.NOSCRIPT,r.NOSCRIPT],[T.OBJECT,r.OBJECT],[T.OL,r.OL],[T.OPTGROUP,r.OPTGROUP],[T.OPTION,r.OPTION],[T.P,r.P],[T.PARAM,r.PARAM],[T.PLAINTEXT,r.PLAINTEXT],[T.PRE,r.PRE],[T.RB,r.RB],[T.RP,r.RP],[T.RT,r.RT],[T.RTC,r.RTC],[T.RUBY,r.RUBY],[T.S,r.S],[T.SCRIPT,r.SCRIPT],[T.SEARCH,r.SEARCH],[T.SECTION,r.SECTION],[T.SELECT,r.SELECT],[T.SOURCE,r.SOURCE],[T.SMALL,r.SMALL],[T.SPAN,r.SPAN],[T.STRIKE,r.STRIKE],[T.STRONG,r.STRONG],[T.STYLE,r.STYLE],[T.SUB,r.SUB],[T.SUMMARY,r.SUMMARY],[T.SUP,r.SUP],[T.TABLE,r.TABLE],[T.TBODY,r.TBODY],[T.TEMPLATE,r.TEMPLATE],[T.TEXTAREA,r.TEXTAREA],[T.TFOOT,r.TFOOT],[T.TD,r.TD],[T.TH,r.TH],[T.THEAD,r.THEAD],[T.TITLE,r.TITLE],[T.TR,r.TR],[T.TRACK,r.TRACK],[T.TT,r.TT],[T.U,r.U],[T.UL,r.UL],[T.SVG,r.SVG],[T.VAR,r.VAR],[T.WBR,r.WBR],[T.XMP,r.XMP]]);function $e(e){var t;return(t=Ls.get(e))!==null&&t!==void 0?t:r.UNKNOWN}var N=r,$a={[S.HTML]:new Set([N.ADDRESS,N.APPLET,N.AREA,N.ARTICLE,N.ASIDE,N.BASE,N.BASEFONT,N.BGSOUND,N.BLOCKQUOTE,N.BODY,N.BR,N.BUTTON,N.CAPTION,N.CENTER,N.COL,N.COLGROUP,N.DD,N.DETAILS,N.DIR,N.DIV,N.DL,N.DT,N.EMBED,N.FIELDSET,N.FIGCAPTION,N.FIGURE,N.FOOTER,N.FORM,N.FRAME,N.FRAMESET,N.H1,N.H2,N.H3,N.H4,N.H5,N.H6,N.HEAD,N.HEADER,N.HGROUP,N.HR,N.HTML,N.IFRAME,N.IMG,N.INPUT,N.LI,N.LINK,N.LISTING,N.MAIN,N.MARQUEE,N.MENU,N.META,N.NAV,N.NOEMBED,N.NOFRAMES,N.NOSCRIPT,N.OBJECT,N.OL,N.P,N.PARAM,N.PLAINTEXT,N.PRE,N.SCRIPT,N.SECTION,N.SELECT,N.SOURCE,N.STYLE,N.SUMMARY,N.TABLE,N.TBODY,N.TD,N.TEMPLATE,N.TEXTAREA,N.TFOOT,N.TH,N.THEAD,N.TITLE,N.TR,N.TRACK,N.UL,N.WBR,N.XMP]),[S.MATHML]:new Set([N.MI,N.MO,N.MN,N.MS,N.MTEXT,N.ANNOTATION_XML]),[S.SVG]:new Set([N.TITLE,N.FOREIGN_OBJECT,N.DESC]),[S.XLINK]:new Set,[S.XML]:new Set,[S.XMLNS]:new Set},ut=new Set([N.H1,N.H2,N.H3,N.H4,N.H5,N.H6]),J0=new Set([T.STYLE,T.SCRIPT,T.XMP,T.IFRAME,T.NOEMBED,T.NOFRAMES,T.PLAINTEXT]);var d;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(d||(d={}));var J={DATA:d.DATA,RCDATA:d.RCDATA,RAWTEXT:d.RAWTEXT,SCRIPT_DATA:d.SCRIPT_DATA,PLAINTEXT:d.PLAINTEXT,CDATA_SECTION:d.CDATA_SECTION};function Ds(e){return e>=c.DIGIT_0&&e<=c.DIGIT_9}function ct(e){return e>=c.LATIN_CAPITAL_A&&e<=c.LATIN_CAPITAL_Z}function vs(e){return e>=c.LATIN_SMALL_A&&e<=c.LATIN_SMALL_Z}function Be(e){return vs(e)||ct(e)}function Ya(e){return Be(e)||Ds(e)}function Ft(e){return e+32}function Ka(e){return e===c.SPACE||e===c.LINE_FEED||e===c.TABULATION||e===c.FORM_FEED}function ja(e){return Ka(e)||e===c.SOLIDUS||e===c.GREATER_THAN_SIGN}function ws(e){if(e===c.NULL)return A.nullCharacterReference;else if(e>1114111)return A.characterReferenceOutsideUnicodeRange;else if(Mt(e))return A.surrogateCharacterReference;else if(Ht(e))return A.noncharacterCharacterReference;else if(Bt(e)||e===c.CARRIAGE_RETURN)return A.controlCharacterReference;return null}class $t{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=d.DATA,this.returnState=d.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Ln(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new wn(Rn,(a,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(a)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(A.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:(a)=>{this._err(A.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+a)},validateNumericCharacterReference:(a)=>{let o=ws(a);if(o)this._err(o,1)}}:void 0)}_err(e,t=0){var a,o;(o=(a=this.handler).onParseError)===null||o===void 0||o.call(a,this.preprocessor.getError(e,t))}getCurrentLocation(e){if(!this.options.sourceCodeLocationInfo)return null;return{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}}_runParsingLoop(){if(this.inLoop)return;this.inLoop=!0;while(this.active&&!this.paused){this.consumedAfterSnapshot=0;let e=this._consume();if(!this._ensureHibernation())this._callState(e)}this.inLoop=!1}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");if(this.paused=!1,this.inLoop)return;if(this._runParsingLoop(),!this.paused)e===null||e===void 0||e()}write(e,t,a){if(this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),!this.paused)a===null||a===void 0||a()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){if(this.preprocessor.endOfChunkHit)return this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0;return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){if(this.preprocessor.startsWith(e,t))return this._advanceBy(e.length-1),!0;return!1}_createStartTagToken(){this.currentToken={type:M.START_TAG,tagName:"",tagID:r.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:M.END_TAG,tagName:"",tagID:r.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:M.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:M.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let a=this.currentToken;if(Ut(a,this.currentAttr.name)===null){if(a.attrs.push(this.currentAttr),a.location&&this.currentLocation){let o=(e=(t=a.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(A.duplicateAttribute)}_leaveAttrValue(){if(this.currentLocation)this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset}prepareToken(e){if(this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location)e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1;this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;if(this.prepareToken(e),e.tagID=$e(e.tagName),e.type===M.START_TAG)this.lastStartTagName=e.tagName,this.handler.onStartTag(e);else{if(e.attrs.length>0)this._err(A.endTagWithAttributes);if(e.selfClosing)this._err(A.endTagWithTrailingSolidus);this.handler.onEndTag(e)}this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){if(e&&this.currentCharacterToken.location)this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset;switch(this.currentCharacterToken.type){case M.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case M.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case M.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);if(e)e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset;this._emitCurrentCharacterToken(e),this.handler.onEof({type:M.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Ka(e)?M.WHITESPACE_CHARACTER:e===c.NULL?M.NULL_CHARACTER:M.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(M.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=d.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Te.Attribute:Te.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===d.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===d.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===d.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){if(this._isCharacterReferenceInAttribute())this.currentAttr.value+=String.fromCodePoint(e);else this._emitCodePoint(e)}_callState(e){switch(this.state){case d.DATA:{this._stateData(e);break}case d.RCDATA:{this._stateRcdata(e);break}case d.RAWTEXT:{this._stateRawtext(e);break}case d.SCRIPT_DATA:{this._stateScriptData(e);break}case d.PLAINTEXT:{this._statePlaintext(e);break}case d.TAG_OPEN:{this._stateTagOpen(e);break}case d.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case d.TAG_NAME:{this._stateTagName(e);break}case d.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case d.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case d.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case d.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case d.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case d.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case d.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case d.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case d.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case d.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case d.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case d.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case d.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case d.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case d.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case d.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case d.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case d.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case d.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case d.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case d.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case d.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case d.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case d.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case d.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case d.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case d.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case d.BOGUS_COMMENT:{this._stateBogusComment(e);break}case d.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case d.COMMENT_START:{this._stateCommentStart(e);break}case d.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case d.COMMENT:{this._stateComment(e);break}case d.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case d.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case d.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case d.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case d.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case d.COMMENT_END:{this._stateCommentEnd(e);break}case d.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case d.DOCTYPE:{this._stateDoctype(e);break}case d.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case d.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case d.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case d.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case d.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case d.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case d.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case d.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case d.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case d.CDATA_SECTION:{this._stateCdataSection(e);break}case d.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case d.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case d.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case d.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw Error("Unknown state")}}_stateData(e){switch(e){case c.LESS_THAN_SIGN:{this.state=d.TAG_OPEN;break}case c.AMPERSAND:{this._startCharacterReference();break}case c.NULL:{this._err(A.unexpectedNullCharacter),this._emitCodePoint(e);break}case c.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case c.AMPERSAND:{this._startCharacterReference();break}case c.LESS_THAN_SIGN:{this.state=d.RCDATA_LESS_THAN_SIGN;break}case c.NULL:{this._err(A.unexpectedNullCharacter),this._emitChars(U);break}case c.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case c.LESS_THAN_SIGN:{this.state=d.RAWTEXT_LESS_THAN_SIGN;break}case c.NULL:{this._err(A.unexpectedNullCharacter),this._emitChars(U);break}case c.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case c.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_LESS_THAN_SIGN;break}case c.NULL:{this._err(A.unexpectedNullCharacter),this._emitChars(U);break}case c.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case c.NULL:{this._err(A.unexpectedNullCharacter),this._emitChars(U);break}case c.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Be(e))this._createStartTagToken(),this.state=d.TAG_NAME,this._stateTagName(e);else switch(e){case c.EXCLAMATION_MARK:{this.state=d.MARKUP_DECLARATION_OPEN;break}case c.SOLIDUS:{this.state=d.END_TAG_OPEN;break}case c.QUESTION_MARK:{this._err(A.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=d.BOGUS_COMMENT,this._stateBogusComment(e);break}case c.EOF:{this._err(A.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(A.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=d.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Be(e))this._createEndTagToken(),this.state=d.TAG_NAME,this._stateTagName(e);else switch(e){case c.GREATER_THAN_SIGN:{this._err(A.missingEndTagName),this.state=d.DATA;break}case c.EOF:{this._err(A.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(A.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=d.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:{this.state=d.BEFORE_ATTRIBUTE_NAME;break}case c.SOLIDUS:{this.state=d.SELF_CLOSING_START_TAG;break}case c.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentTagToken();break}case c.NULL:{this._err(A.unexpectedNullCharacter),t.tagName+=U;break}case c.EOF:{this._err(A.eofInTag),this._emitEOFToken();break}default:t.tagName+=String.fromCodePoint(ct(e)?Ft(e):e)}}_stateRcdataLessThanSign(e){if(e===c.SOLIDUS)this.state=d.RCDATA_END_TAG_OPEN;else this._emitChars("<"),this.state=d.RCDATA,this._stateRcdata(e)}_stateRcdataEndTagOpen(e){if(Be(e))this.state=d.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e);else this._emitChars("</"),this.state=d.RCDATA,this._stateRcdata(e)}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=d.BEFORE_ATTRIBUTE_NAME,!1;case c.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=d.SELF_CLOSING_START_TAG,!1;case c.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=d.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=d.RCDATA,this._stateRcdata(e)}_stateRawtextLessThanSign(e){if(e===c.SOLIDUS)this.state=d.RAWTEXT_END_TAG_OPEN;else this._emitChars("<"),this.state=d.RAWTEXT,this._stateRawtext(e)}_stateRawtextEndTagOpen(e){if(Be(e))this.state=d.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e);else this._emitChars("</"),this.state=d.RAWTEXT,this._stateRawtext(e)}_stateRawtextEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=d.RAWTEXT,this._stateRawtext(e)}_stateScriptDataLessThanSign(e){switch(e){case c.SOLIDUS:{this.state=d.SCRIPT_DATA_END_TAG_OPEN;break}case c.EXCLAMATION_MARK:{this.state=d.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=d.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){if(Be(e))this.state=d.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e);else this._emitChars("</"),this.state=d.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=d.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscapeStart(e){if(e===c.HYPHEN_MINUS)this.state=d.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-");else this.state=d.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscapeStartDash(e){if(e===c.HYPHEN_MINUS)this.state=d.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");else this.state=d.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscaped(e){switch(e){case c.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case c.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case c.NULL:{this._err(A.unexpectedNullCharacter),this._emitChars(U);break}case c.EOF:{this._err(A.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case c.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case c.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case c.NULL:{this._err(A.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_ESCAPED,this._emitChars(U);break}case c.EOF:{this._err(A.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case c.HYPHEN_MINUS:{this._emitChars("-");break}case c.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case c.GREATER_THAN_SIGN:{this.state=d.SCRIPT_DATA,this._emitChars(">");break}case c.NULL:{this._err(A.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_ESCAPED,this._emitChars(U);break}case c.EOF:{this._err(A.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){if(e===c.SOLIDUS)this.state=d.SCRIPT_DATA_ESCAPED_END_TAG_OPEN;else if(Be(e))this._emitChars("<"),this.state=d.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e);else this._emitChars("<"),this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataEscapedEndTagOpen(e){if(Be(e))this.state=d.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e);else this._emitChars("</"),this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataEscapedEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(ne.SCRIPT,!1)&&ja(this.preprocessor.peek(ne.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<ne.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED}else if(!this._ensureHibernation())this.state=d.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataDoubleEscaped(e){switch(e){case c.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case c.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case c.NULL:{this._err(A.unexpectedNullCharacter),this._emitChars(U);break}case c.EOF:{this._err(A.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case c.HYPHEN_MINUS:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case c.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case c.NULL:{this._err(A.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(U);break}case c.EOF:{this._err(A.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case c.HYPHEN_MINUS:{this._emitChars("-");break}case c.LESS_THAN_SIGN:{this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case c.GREATER_THAN_SIGN:{this.state=d.SCRIPT_DATA,this._emitChars(">");break}case c.NULL:{this._err(A.unexpectedNullCharacter),this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(U);break}case c.EOF:{this._err(A.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){if(e===c.SOLIDUS)this.state=d.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/");else this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e)}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(ne.SCRIPT,!1)&&ja(this.preprocessor.peek(ne.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<ne.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=d.SCRIPT_DATA_ESCAPED}else if(!this._ensureHibernation())this.state=d.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e)}_stateBeforeAttributeName(e){switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:break;case c.SOLIDUS:case c.GREATER_THAN_SIGN:case c.EOF:{this.state=d.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case c.EQUALS_SIGN:{this._err(A.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=d.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=d.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:case c.SOLIDUS:case c.GREATER_THAN_SIGN:case c.EOF:{this._leaveAttrName(),this.state=d.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case c.EQUALS_SIGN:{this._leaveAttrName(),this.state=d.BEFORE_ATTRIBUTE_VALUE;break}case c.QUOTATION_MARK:case c.APOSTROPHE:case c.LESS_THAN_SIGN:{this._err(A.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case c.NULL:{this._err(A.unexpectedNullCharacter),this.currentAttr.name+=U;break}default:this.currentAttr.name+=String.fromCodePoint(ct(e)?Ft(e):e)}}_stateAfterAttributeName(e){switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:break;case c.SOLIDUS:{this.state=d.SELF_CLOSING_START_TAG;break}case c.EQUALS_SIGN:{this.state=d.BEFORE_ATTRIBUTE_VALUE;break}case c.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentTagToken();break}case c.EOF:{this._err(A.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=d.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:break;case c.QUOTATION_MARK:{this.state=d.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case c.APOSTROPHE:{this.state=d.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case c.GREATER_THAN_SIGN:{this._err(A.missingAttributeValue),this.state=d.DATA,this.emitCurrentTagToken();break}default:this.state=d.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case c.QUOTATION_MARK:{this.state=d.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case c.AMPERSAND:{this._startCharacterReference();break}case c.NULL:{this._err(A.unexpectedNullCharacter),this.currentAttr.value+=U;break}case c.EOF:{this._err(A.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case c.APOSTROPHE:{this.state=d.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case c.AMPERSAND:{this._startCharacterReference();break}case c.NULL:{this._err(A.unexpectedNullCharacter),this.currentAttr.value+=U;break}case c.EOF:{this._err(A.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:{this._leaveAttrValue(),this.state=d.BEFORE_ATTRIBUTE_NAME;break}case c.AMPERSAND:{this._startCharacterReference();break}case c.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=d.DATA,this.emitCurrentTagToken();break}case c.NULL:{this._err(A.unexpectedNullCharacter),this.currentAttr.value+=U;break}case c.QUOTATION_MARK:case c.APOSTROPHE:case c.LESS_THAN_SIGN:case c.EQUALS_SIGN:case c.GRAVE_ACCENT:{this._err(A.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case c.EOF:{this._err(A.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:{this._leaveAttrValue(),this.state=d.BEFORE_ATTRIBUTE_NAME;break}case c.SOLIDUS:{this._leaveAttrValue(),this.state=d.SELF_CLOSING_START_TAG;break}case c.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=d.DATA,this.emitCurrentTagToken();break}case c.EOF:{this._err(A.eofInTag),this._emitEOFToken();break}default:this._err(A.missingWhitespaceBetweenAttributes),this.state=d.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case c.GREATER_THAN_SIGN:{let t=this.currentToken;t.selfClosing=!0,this.state=d.DATA,this.emitCurrentTagToken();break}case c.EOF:{this._err(A.eofInTag),this._emitEOFToken();break}default:this._err(A.unexpectedSolidusInTag),this.state=d.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case c.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentComment(t);break}case c.EOF:{this.emitCurrentComment(t),this._emitEOFToken();break}case c.NULL:{this._err(A.unexpectedNullCharacter),t.data+=U;break}default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){if(this._consumeSequenceIfMatch(ne.DASH_DASH,!0))this._createCommentToken(ne.DASH_DASH.length+1),this.state=d.COMMENT_START;else if(this._consumeSequenceIfMatch(ne.DOCTYPE,!1))this.currentLocation=this.getCurrentLocation(ne.DOCTYPE.length+1),this.state=d.DOCTYPE;else if(this._consumeSequenceIfMatch(ne.CDATA_START,!0))if(this.inForeignNode)this.state=d.CDATA_SECTION;else this._err(A.cdataInHtmlContent),this._createCommentToken(ne.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=d.BOGUS_COMMENT;else if(!this._ensureHibernation())this._err(A.incorrectlyOpenedComment),this._createCommentToken(2),this.state=d.BOGUS_COMMENT,this._stateBogusComment(e)}_stateCommentStart(e){switch(e){case c.HYPHEN_MINUS:{this.state=d.COMMENT_START_DASH;break}case c.GREATER_THAN_SIGN:{this._err(A.abruptClosingOfEmptyComment),this.state=d.DATA;let t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=d.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case c.HYPHEN_MINUS:{this.state=d.COMMENT_END;break}case c.GREATER_THAN_SIGN:{this._err(A.abruptClosingOfEmptyComment),this.state=d.DATA,this.emitCurrentComment(t);break}case c.EOF:{this._err(A.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=d.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case c.HYPHEN_MINUS:{this.state=d.COMMENT_END_DASH;break}case c.LESS_THAN_SIGN:{t.data+="<",this.state=d.COMMENT_LESS_THAN_SIGN;break}case c.NULL:{this._err(A.unexpectedNullCharacter),t.data+=U;break}case c.EOF:{this._err(A.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case c.EXCLAMATION_MARK:{t.data+="!",this.state=d.COMMENT_LESS_THAN_SIGN_BANG;break}case c.LESS_THAN_SIGN:{t.data+="<";break}default:this.state=d.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){if(e===c.HYPHEN_MINUS)this.state=d.COMMENT_LESS_THAN_SIGN_BANG_DASH;else this.state=d.COMMENT,this._stateComment(e)}_stateCommentLessThanSignBangDash(e){if(e===c.HYPHEN_MINUS)this.state=d.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH;else this.state=d.COMMENT_END_DASH,this._stateCommentEndDash(e)}_stateCommentLessThanSignBangDashDash(e){if(e!==c.GREATER_THAN_SIGN&&e!==c.EOF)this._err(A.nestedComment);this.state=d.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case c.HYPHEN_MINUS:{this.state=d.COMMENT_END;break}case c.EOF:{this._err(A.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=d.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case c.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentComment(t);break}case c.EXCLAMATION_MARK:{this.state=d.COMMENT_END_BANG;break}case c.HYPHEN_MINUS:{t.data+="-";break}case c.EOF:{this._err(A.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--",this.state=d.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case c.HYPHEN_MINUS:{t.data+="--!",this.state=d.COMMENT_END_DASH;break}case c.GREATER_THAN_SIGN:{this._err(A.incorrectlyClosedComment),this.state=d.DATA,this.emitCurrentComment(t);break}case c.EOF:{this._err(A.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--!",this.state=d.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:{this.state=d.BEFORE_DOCTYPE_NAME;break}case c.GREATER_THAN_SIGN:{this.state=d.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case c.EOF:{this._err(A.eofInDoctype),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(A.missingWhitespaceBeforeDoctypeName),this.state=d.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ct(e))this._createDoctypeToken(String.fromCharCode(Ft(e))),this.state=d.DOCTYPE_NAME;else switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:break;case c.NULL:{this._err(A.unexpectedNullCharacter),this._createDoctypeToken(U),this.state=d.DOCTYPE_NAME;break}case c.GREATER_THAN_SIGN:{this._err(A.missingDoctypeName),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d.DATA;break}case c.EOF:{this._err(A.eofInDoctype),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=d.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:{this.state=d.AFTER_DOCTYPE_NAME;break}case c.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentDoctype(t);break}case c.NULL:{this._err(A.unexpectedNullCharacter),t.name+=U;break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.name+=String.fromCodePoint(ct(e)?Ft(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:break;case c.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentDoctype(t);break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:if(this._consumeSequenceIfMatch(ne.PUBLIC,!1))this.state=d.AFTER_DOCTYPE_PUBLIC_KEYWORD;else if(this._consumeSequenceIfMatch(ne.SYSTEM,!1))this.state=d.AFTER_DOCTYPE_SYSTEM_KEYWORD;else if(!this._ensureHibernation())this._err(A.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:{this.state=d.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case c.QUOTATION_MARK:{this._err(A.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case c.APOSTROPHE:{this._err(A.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case c.GREATER_THAN_SIGN:{this._err(A.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(t);break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(A.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:break;case c.QUOTATION_MARK:{t.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case c.APOSTROPHE:{t.publicId="",this.state=d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case c.GREATER_THAN_SIGN:{this._err(A.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(t);break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(A.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case c.QUOTATION_MARK:{this.state=d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case c.NULL:{this._err(A.unexpectedNullCharacter),t.publicId+=U;break}case c.GREATER_THAN_SIGN:{this._err(A.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d.DATA;break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case c.APOSTROPHE:{this.state=d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case c.NULL:{this._err(A.unexpectedNullCharacter),t.publicId+=U;break}case c.GREATER_THAN_SIGN:{this._err(A.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d.DATA;break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:{this.state=d.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case c.GREATER_THAN_SIGN:{this.state=d.DATA,this.emitCurrentDoctype(t);break}case c.QUOTATION_MARK:{this._err(A.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case c.APOSTROPHE:{this._err(A.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(A.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:break;case c.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=d.DATA;break}case c.QUOTATION_MARK:{t.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case c.APOSTROPHE:{t.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(A.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:{this.state=d.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case c.QUOTATION_MARK:{this._err(A.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case c.APOSTROPHE:{this._err(A.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case c.GREATER_THAN_SIGN:{this._err(A.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(t);break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(A.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:break;case c.QUOTATION_MARK:{t.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case c.APOSTROPHE:{t.systemId="",this.state=d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case c.GREATER_THAN_SIGN:{this._err(A.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d.DATA,this.emitCurrentDoctype(t);break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(A.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case c.QUOTATION_MARK:{this.state=d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case c.NULL:{this._err(A.unexpectedNullCharacter),t.systemId+=U;break}case c.GREATER_THAN_SIGN:{this._err(A.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d.DATA;break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case c.APOSTROPHE:{this.state=d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case c.NULL:{this._err(A.unexpectedNullCharacter),t.systemId+=U;break}case c.GREATER_THAN_SIGN:{this._err(A.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=d.DATA;break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case c.SPACE:case c.LINE_FEED:case c.TABULATION:case c.FORM_FEED:break;case c.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=d.DATA;break}case c.EOF:{this._err(A.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(A.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=d.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case c.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=d.DATA;break}case c.NULL:{this._err(A.unexpectedNullCharacter);break}case c.EOF:{this.emitCurrentDoctype(t),this._emitEOFToken();break}default:}}_stateCdataSection(e){switch(e){case c.RIGHT_SQUARE_BRACKET:{this.state=d.CDATA_SECTION_BRACKET;break}case c.EOF:{this._err(A.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){if(e===c.RIGHT_SQUARE_BRACKET)this.state=d.CDATA_SECTION_END;else this._emitChars("]"),this.state=d.CDATA_SECTION,this._stateCdataSection(e)}_stateCdataSectionEnd(e){switch(e){case c.GREATER_THAN_SIGN:{this.state=d.DATA;break}case c.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=d.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}if(e===0)this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(c.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ya(this.preprocessor.peek(1))?d.AMBIGUOUS_AMPERSAND:this.returnState;else this.state=this.returnState}_stateAmbiguousAmpersand(e){if(Ya(e))this._flushCodePointConsumedAsCharacterReference(e);else{if(e===c.SEMICOLON)this._err(A.unknownNamedCharacterReference);this.state=this.returnState,this._callState(e)}}}var Ga=new Set([r.DD,r.DT,r.LI,r.OPTGROUP,r.OPTION,r.P,r.RB,r.RP,r.RT,r.RTC]),Va=new Set([...Ga,r.CAPTION,r.COLGROUP,r.TBODY,r.TD,r.TFOOT,r.TH,r.THEAD,r.TR]),Yt=new Set([r.APPLET,r.CAPTION,r.HTML,r.MARQUEE,r.OBJECT,r.TABLE,r.TD,r.TEMPLATE,r.TH]),ks=new Set([...Yt,r.OL,r.UL]),Ps=new Set([...Yt,r.BUTTON]),qa=new Set([r.ANNOTATION_XML,r.MI,r.MN,r.MO,r.MS,r.MTEXT]),Wa=new Set([r.DESC,r.FOREIGN_OBJECT,r.TITLE]),Ms=new Set([r.TR,r.TEMPLATE,r.HTML]),Bs=new Set([r.TBODY,r.TFOOT,r.THEAD,r.TEMPLATE,r.HTML]),Hs=new Set([r.TABLE,r.TEMPLATE,r.HTML]),Us=new Set([r.TD,r.TH]);class kn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,a){this.treeAdapter=t,this.handler=a,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=r.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===r.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===S.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){if(this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate())this.tmplCount++;this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;if(this.tmplCount>0&&this._isInTemplate())this.tmplCount--;this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let a=this._indexOf(e);if(this.items[a]=t,a===this.stackTop)this.current=t}insertAfter(e,t,a){let o=this._indexOf(e)+1;if(this.items.splice(o,0,t),this.tagIDs.splice(o,0,a),this.stackTop++,o===this.stackTop)this._updateCurrentElement();if(this.current&&this.currentTagId!==void 0)this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==S.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){while(this.stackTop>=e){let t=this.current;if(this.tmplCount>0&&this._isInTemplate())this.tmplCount-=1;this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let a=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(a,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(ut,S.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Us,S.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let a=this.stackTop;a>=0;a--)if(e.has(this.tagIDs[a])&&this.treeAdapter.getNamespaceURI(this.items[a])===t)return a;return-1}clearBackTo(e,t){let a=this._indexOfTagNames(e,t);this.shortenToLength(a+1)}clearBackToTableContext(){this.clearBackTo(Hs,S.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Bs,S.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ms,S.HTML)}remove(e){let t=this._indexOf(e);if(t>=0)if(t===this.stackTop)this.pop();else this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===r.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===r.HTML}hasInDynamicScope(e,t){for(let a=this.stackTop;a>=0;a--){let o=this.tagIDs[a];switch(this.treeAdapter.getNamespaceURI(this.items[a])){case S.HTML:{if(o===e)return!0;if(t.has(o))return!1;break}case S.SVG:{if(Wa.has(o))return!1;break}case S.MATHML:{if(qa.has(o))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Yt)}hasInListItemScope(e){return this.hasInDynamicScope(e,ks)}hasInButtonScope(e){return this.hasInDynamicScope(e,Ps)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case S.HTML:{if(ut.has(t))return!0;if(Yt.has(t))return!1;break}case S.SVG:{if(Wa.has(t))return!1;break}case S.MATHML:{if(qa.has(t))return!1;break}}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==S.HTML)continue;switch(this.tagIDs[t]){case e:return!0;case r.TABLE:case r.HTML:return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){if(this.treeAdapter.getNamespaceURI(this.items[e])!==S.HTML)continue;switch(this.tagIDs[e]){case r.TBODY:case r.THEAD:case r.TFOOT:return!0;case r.TABLE:case r.HTML:return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){if(this.treeAdapter.getNamespaceURI(this.items[t])!==S.HTML)continue;switch(this.tagIDs[t]){case e:return!0;case r.OPTION:case r.OPTGROUP:break;default:return!1}}return!0}generateImpliedEndTags(){while(this.currentTagId!==void 0&&Ga.has(this.currentTagId))this.pop()}generateImpliedEndTagsThoroughly(){while(this.currentTagId!==void 0&&Va.has(this.currentTagId))this.pop()}generateImpliedEndTagsWithExclusion(e){while(this.currentTagId!==void 0&&this.currentTagId!==e&&Va.has(this.currentTagId))this.pop()}}var fe;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(fe||(fe={}));var Qa={type:fe.Marker};class Pn{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let a=[],o=t.length,s=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let l=0;l<this.entries.length;l++){let b=this.entries[l];if(b.type===fe.Marker)break;let{element:p}=b;if(this.treeAdapter.getTagName(p)===s&&this.treeAdapter.getNamespaceURI(p)===i){let y=this.treeAdapter.getAttrList(p);if(y.length===o)a.push({idx:l,attrs:y})}}return a}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),a=this._getNoahArkConditionCandidates(e,t);if(a.length<3)return;let o=new Map(t.map((i)=>[i.name,i.value])),s=0;for(let i=0;i<a.length;i++){let l=a[i];if(l.attrs.every((b)=>o.get(b.name)===b.value)){if(s+=1,s>=3)this.entries.splice(l.idx,1)}}}insertMarker(){this.entries.unshift(Qa)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:fe.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let a=this.entries.indexOf(this.bookmark);this.entries.splice(a,0,{type:fe.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);if(t!==-1)this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(Qa);if(e===-1)this.entries.length=0;else this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find((a)=>a.type===fe.Marker||this.treeAdapter.getTagName(a.element)===e);return t&&t.type===fe.Element?t:null}getElementEntry(e){return this.entries.find((t)=>t.type===fe.Element&&t.element===e)}}var he={createDocument(){return{nodeName:"#document",mode:re.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,a){return{nodeName:e,tagName:e,attrs:a,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,a){let o=e.childNodes.indexOf(a);e.childNodes.splice(o,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,a,o){let s=e.childNodes.find((i)=>i.nodeName==="#documentType");if(s)s.name=t,s.publicId=a,s.systemId=o;else{let i={nodeName:"#documentType",name:t,publicId:a,systemId:o,parentNode:null};he.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let a=e.childNodes[e.childNodes.length-1];if(he.isTextNode(a)){a.value+=t;return}}he.appendChild(e,he.createTextNode(t))},insertTextBefore(e,t,a){let o=e.childNodes[e.childNodes.indexOf(a)-1];if(o&&he.isTextNode(o))o.value+=t;else he.insertBefore(e,he.createTextNode(t),a)},adoptAttributes(e,t){let a=new Set(e.attrs.map((o)=>o.name));for(let o=0;o<t.length;o++)if(!a.has(t[o].name))e.attrs.push(t[o])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};var za="html",Fs="about:legacy-compat",$s="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ja=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Ys=[...Ja,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],js=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Za=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Ks=[...Za,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Xa(e,t){return t.some((a)=>e.startsWith(a))}function er(e){return e.name===za&&e.publicId===null&&(e.systemId===null||e.systemId===Fs)}function tr(e){if(e.name!==za)return re.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===$s)return re.QUIRKS;let{publicId:a}=e;if(a!==null){if(a=a.toLowerCase(),js.has(a))return re.QUIRKS;let o=t===null?Ys:Ja;if(Xa(a,o))return re.QUIRKS;if(o=t===null?Za:Ks,Xa(a,o))return re.LIMITED_QUIRKS}return re.NO_QUIRKS}var nr={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},qs="definitionurl",Ws="definitionURL",Gs=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e)=>[e.toLowerCase(),e])),zs=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:S.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:S.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:S.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:S.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:S.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:S.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:S.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:S.XML}],["xml:space",{prefix:"xml",name:"space",namespace:S.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:S.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:S.XMLNS}]]),Js=new Map(["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"].map((e)=>[e.toLowerCase(),e])),Zs=new Set([r.B,r.BIG,r.BLOCKQUOTE,r.BODY,r.BR,r.CENTER,r.CODE,r.DD,r.DIV,r.DL,r.DT,r.EM,r.EMBED,r.H1,r.H2,r.H3,r.H4,r.H5,r.H6,r.HEAD,r.HR,r.I,r.IMG,r.LI,r.LISTING,r.MENU,r.META,r.NOBR,r.OL,r.P,r.PRE,r.RUBY,r.S,r.SMALL,r.SPAN,r.STRONG,r.STRIKE,r.SUB,r.SUP,r.TABLE,r.TT,r.U,r.UL,r.VAR]);function ar(e){let t=e.tagID;return t===r.FONT&&e.attrs.some(({name:o})=>o===xe.COLOR||o===xe.SIZE||o===xe.FACE)||Zs.has(t)}function Mn(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===qs){e.attrs[t].name=Ws;break}}function Bn(e){for(let t=0;t<e.attrs.length;t++){let a=Gs.get(e.attrs[t].name);if(a!=null)e.attrs[t].name=a}}function jt(e){for(let t=0;t<e.attrs.length;t++){let a=zs.get(e.attrs[t].name);if(a)e.attrs[t].prefix=a.prefix,e.attrs[t].name=a.name,e.attrs[t].namespace=a.namespace}}function sr(e){let t=Js.get(e.tagName);if(t!=null)e.tagName=t,e.tagID=$e(e.tagName)}function ti(e,t){return t===S.MATHML&&(e===r.MI||e===r.MO||e===r.MN||e===r.MS||e===r.MTEXT)}function ni(e,t,a){if(t===S.MATHML&&e===r.ANNOTATION_XML){for(let o=0;o<a.length;o++)if(a[o].name===xe.ENCODING){let s=a[o].value.toLowerCase();return s===nr.TEXT_HTML||s===nr.APPLICATION_XML}}return t===S.SVG&&(e===r.FOREIGN_OBJECT||e===r.DESC||e===r.TITLE)}function ur(e,t,a,o){return(!o||o===S.HTML)&&ni(e,t,a)||(!o||o===S.MATHML)&&ti(e,t)}var ai="hidden",ri=8,oi=3,f;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(f||(f={}));var si={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},hr=new Set([r.TABLE,r.TBODY,r.TFOOT,r.THEAD,r.TR]),lr={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:he,onParseError:null};class gt{constructor(e,t,a=null,o=null){if(this.fragmentContext=a,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=f.INITIAL,this.originalInsertionMode=f.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...lr,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError)this.options.sourceCodeLocationInfo=!0;this.document=t!==null&&t!==void 0?t:this.treeAdapter.createDocument(),this.tokenizer=new $t(this.options,this),this.activeFormattingElements=new Pn(this.treeAdapter),this.fragmentContextID=a?$e(this.treeAdapter.getTagName(a)):r.UNKNOWN,this._setContextModes(a!==null&&a!==void 0?a:this.document,this.fragmentContextID),this.openElements=new kn(this.document,this.treeAdapter,this)}static parse(e,t){let a=new this(t);return a.tokenizer.write(e,!0),a.document}static getFragmentParser(e,t){let a={...lr,...t};e!==null&&e!==void 0||(e=a.treeAdapter.createElement(T.TEMPLATE,S.HTML,[]));let o=a.treeAdapter.createElement("documentmock",S.HTML,[]),s=new this(a,o,e);if(s.fragmentContextID===r.TEMPLATE)s.tmplInsertionModeStack.unshift(f.IN_TEMPLATE);return s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,a){var o;if(!this.onParseError)return;let s=(o=e.location)!==null&&o!==void 0?o:si,i={code:t,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:a?s.startLine:s.endLine,endCol:a?s.startCol:s.endCol,endOffset:a?s.startOffset:s.endOffset};this.onParseError(i)}onItemPush(e,t,a){var o,s;if((s=(o=this.treeAdapter).onItemPush)===null||s===void 0||s.call(o,e),a&&this.openElements.stackTop>0)this._setContextModes(e,t)}onItemPop(e,t){var a,o;if(this.options.sourceCodeLocationInfo)this._setEndLocation(e,this.currentToken);if((o=(a=this.treeAdapter).onItemPop)===null||o===void 0||o.call(a,e,this.openElements.current),t){let s,i;if(this.openElements.stackTop===0&&this.fragmentContext)s=this.fragmentContext,i=this.fragmentContextID;else({current:s,currentTagId:i}=this.openElements);this._setContextModes(s,i)}}_setContextModes(e,t){let a=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===S.HTML;this.currentNotInHTML=!a,this.tokenizer.inForeignNode=!a&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,S.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=f.TEXT}switchToPlaintextParsing(){this.insertionMode=f.TEXT,this.originalInsertionMode=f.IN_BODY,this.tokenizer.state=J.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;while(e){if(this.treeAdapter.getTagName(e)===T.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==S.HTML)return;switch(this.fragmentContextID){case r.TITLE:case r.TEXTAREA:{this.tokenizer.state=J.RCDATA;break}case r.STYLE:case r.XMP:case r.IFRAME:case r.NOEMBED:case r.NOFRAMES:case r.NOSCRIPT:{this.tokenizer.state=J.RAWTEXT;break}case r.SCRIPT:{this.tokenizer.state=J.SCRIPT_DATA;break}case r.PLAINTEXT:{this.tokenizer.state=J.PLAINTEXT;break}default:}}_setDocumentType(e){let t=e.name||"",a=e.publicId||"",o=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,a,o),e.location){let i=this.treeAdapter.getChildNodes(this.document).find((l)=>this.treeAdapter.isDocumentTypeNode(l));if(i)this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let a=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,a)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let a=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(a!==null&&a!==void 0?a:this.document,e)}}_appendElement(e,t){let a=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(a,e.location)}_insertElement(e,t){let a=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(a,e.location),this.openElements.push(a,e.tagID)}_insertFakeElement(e,t){let a=this.treeAdapter.createElement(e,S.HTML,[]);this._attachElementToTree(a,null),this.openElements.push(a,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,S.HTML,e.attrs),a=this.treeAdapter.createDocumentFragment();if(this.treeAdapter.setTemplateContent(t,a),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(a,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(T.HTML,S.HTML,[]);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(e,null);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,r.HTML)}_appendCommentNode(e,t){let a=this.treeAdapter.createCommentNode(e.data);if(this.treeAdapter.appendChild(t,a),this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_insertCharacters(e){let t,a;if(this._shouldFosterParentOnInsertion())if({parent:t,beforeElement:a}=this._findFosterParentingLocation(),a)this.treeAdapter.insertTextBefore(t,e.chars,a);else this.treeAdapter.insertText(t,e.chars);else t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars);if(!e.location)return;let o=this.treeAdapter.getChildNodes(t),s=a?o.lastIndexOf(a):o.length,i=o[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:b,endCol:p,endOffset:y}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:b,endCol:p,endOffset:y})}else if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let a=this.treeAdapter.getFirstChild(e);a;a=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(a),this.treeAdapter.appendChild(t,a)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let a=t.location,o=this.treeAdapter.getTagName(e),s=t.type===M.END_TAG&&o===t.tagName?{endTag:{...a},endLine:a.endLine,endCol:a.endCol,endOffset:a.endOffset}:{endLine:a.startLine,endCol:a.startCol,endOffset:a.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,s)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,a;if(this.openElements.stackTop===0&&this.fragmentContext)t=this.fragmentContext,a=this.fragmentContextID;else({current:t,currentTagId:a}=this.openElements);if(e.tagID===r.SVG&&this.treeAdapter.getTagName(t)===T.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===S.MATHML)return!1;return this.tokenizer.inForeignNode||(e.tagID===r.MGLYPH||e.tagID===r.MALIGNMARK)&&a!==void 0&&!this._isIntegrationPoint(a,t,S.HTML)}_processToken(e){switch(e.type){case M.CHARACTER:{this.onCharacter(e);break}case M.NULL_CHARACTER:{this.onNullCharacter(e);break}case M.COMMENT:{this.onComment(e);break}case M.DOCTYPE:{this.onDoctype(e);break}case M.START_TAG:{this._processStartTag(e);break}case M.END_TAG:{this.onEndTag(e);break}case M.EOF:{this.onEof(e);break}case M.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,a){let o=this.treeAdapter.getNamespaceURI(t),s=this.treeAdapter.getAttrList(t);return ur(e,o,s,a)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex((o)=>o.type===fe.Marker||this.openElements.contains(o.element)),a=t===-1?e-1:t-1;for(let o=a;o>=0;o--){let s=this.activeFormattingElements.entries[o];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=f.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(r.P),this.openElements.popUntilTagNamePopped(r.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case r.TR:{this.insertionMode=f.IN_ROW;return}case r.TBODY:case r.THEAD:case r.TFOOT:{this.insertionMode=f.IN_TABLE_BODY;return}case r.CAPTION:{this.insertionMode=f.IN_CAPTION;return}case r.COLGROUP:{this.insertionMode=f.IN_COLUMN_GROUP;return}case r.TABLE:{this.insertionMode=f.IN_TABLE;return}case r.BODY:{this.insertionMode=f.IN_BODY;return}case r.FRAMESET:{this.insertionMode=f.IN_FRAMESET;return}case r.SELECT:{this._resetInsertionModeForSelect(e);return}case r.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case r.HTML:{this.insertionMode=this.headElement?f.AFTER_HEAD:f.BEFORE_HEAD;return}case r.TD:case r.TH:{if(e>0){this.insertionMode=f.IN_CELL;return}break}case r.HEAD:{if(e>0){this.insertionMode=f.IN_HEAD;return}break}}this.insertionMode=f.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let a=this.openElements.tagIDs[t];if(a===r.TEMPLATE)break;else if(a===r.TABLE){this.insertionMode=f.IN_SELECT_IN_TABLE;return}}this.insertionMode=f.IN_SELECT}_isElementCausesFosterParenting(e){return hr.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case r.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===S.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break}case r.TABLE:{let a=this.treeAdapter.getParentNode(t);if(a)return{parent:a,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();if(t.beforeElement)this.treeAdapter.insertBefore(t.parent,e,t.beforeElement);else this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){let a=this.treeAdapter.getNamespaceURI(e);return $a[a].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Ku(this,e);return}switch(this.insertionMode){case f.INITIAL:{lt(this,e);break}case f.BEFORE_HTML:{ht(this,e);break}case f.BEFORE_HEAD:{mt(this,e);break}case f.IN_HEAD:{pt(this,e);break}case f.IN_HEAD_NO_SCRIPT:{Et(this,e);break}case f.AFTER_HEAD:{bt(this,e);break}case f.IN_BODY:case f.IN_CAPTION:case f.IN_CELL:case f.IN_TEMPLATE:{pr(this,e);break}case f.TEXT:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{Hn(this,e);break}case f.IN_TABLE_TEXT:{_r(this,e);break}case f.IN_COLUMN_GROUP:{qt(this,e);break}case f.AFTER_BODY:{Wt(this,e);break}case f.AFTER_AFTER_BODY:{Kt(this,e);break}default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ju(this,e);return}switch(this.insertionMode){case f.INITIAL:{lt(this,e);break}case f.BEFORE_HTML:{ht(this,e);break}case f.BEFORE_HEAD:{mt(this,e);break}case f.IN_HEAD:{pt(this,e);break}case f.IN_HEAD_NO_SCRIPT:{Et(this,e);break}case f.AFTER_HEAD:{bt(this,e);break}case f.TEXT:{this._insertCharacters(e);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{Hn(this,e);break}case f.IN_COLUMN_GROUP:{qt(this,e);break}case f.AFTER_BODY:{Wt(this,e);break}case f.AFTER_AFTER_BODY:{Kt(this,e);break}default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Un(this,e);return}switch(this.insertionMode){case f.INITIAL:case f.BEFORE_HTML:case f.BEFORE_HEAD:case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:case f.IN_BODY:case f.IN_TABLE:case f.IN_CAPTION:case f.IN_COLUMN_GROUP:case f.IN_TABLE_BODY:case f.IN_ROW:case f.IN_CELL:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:case f.IN_TEMPLATE:case f.IN_FRAMESET:case f.AFTER_FRAMESET:{Un(this,e);break}case f.IN_TABLE_TEXT:{dt(this,e);break}case f.AFTER_BODY:{hi(this,e);break}case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{mi(this,e);break}default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case f.INITIAL:{pi(this,e);break}case f.BEFORE_HEAD:case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:{this._err(e,A.misplacedDoctype);break}case f.IN_TABLE_TEXT:{dt(this,e);break}default:}}onStartTag(e){if(this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing)this._err(e,A.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){if(this.shouldProcessStartTagTokenInForeignContent(e))Vu(this,e);else this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case f.INITIAL:{lt(this,e);break}case f.BEFORE_HTML:{Ei(this,e);break}case f.BEFORE_HEAD:{Ti(this,e);break}case f.IN_HEAD:{me(this,e);break}case f.IN_HEAD_NO_SCRIPT:{_i(this,e);break}case f.AFTER_HEAD:{yi(this,e);break}case f.IN_BODY:{ee(this,e);break}case f.IN_TABLE:{Je(this,e);break}case f.IN_TABLE_TEXT:{dt(this,e);break}case f.IN_CAPTION:{yu(this,e);break}case f.IN_COLUMN_GROUP:{jn(this,e);break}case f.IN_TABLE_BODY:{Xt(this,e);break}case f.IN_ROW:{Jt(this,e);break}case f.IN_CELL:{Iu(this,e);break}case f.IN_SELECT:{xr(this,e);break}case f.IN_SELECT_IN_TABLE:{vu(this,e);break}case f.IN_TEMPLATE:{ku(this,e);break}case f.AFTER_BODY:{Mu(this,e);break}case f.IN_FRAMESET:{Bu(this,e);break}case f.AFTER_FRAMESET:{Uu(this,e);break}case f.AFTER_AFTER_BODY:{$u(this,e);break}case f.AFTER_AFTER_FRAMESET:{Yu(this,e);break}default:}}onEndTag(e){if(this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML)qu(this,e);else this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case f.INITIAL:{lt(this,e);break}case f.BEFORE_HTML:{bi(this,e);break}case f.BEFORE_HEAD:{gi(this,e);break}case f.IN_HEAD:{Ai(this,e);break}case f.IN_HEAD_NO_SCRIPT:{Ci(this,e);break}case f.AFTER_HEAD:{Si(this,e);break}case f.IN_BODY:{Qt(this,e);break}case f.TEXT:{fu(this,e);break}case f.IN_TABLE:{Tt(this,e);break}case f.IN_TABLE_TEXT:{dt(this,e);break}case f.IN_CAPTION:{Su(this,e);break}case f.IN_COLUMN_GROUP:{xu(this,e);break}case f.IN_TABLE_BODY:{Fn(this,e);break}case f.IN_ROW:{Sr(this,e);break}case f.IN_CELL:{Lu(this,e);break}case f.IN_SELECT:{Nr(this,e);break}case f.IN_SELECT_IN_TABLE:{wu(this,e);break}case f.IN_TEMPLATE:{Pu(this,e);break}case f.AFTER_BODY:{Or(this,e);break}case f.IN_FRAMESET:{Hu(this,e);break}case f.AFTER_FRAMESET:{Fu(this,e);break}case f.AFTER_AFTER_BODY:{Kt(this,e);break}default:}}onEof(e){switch(this.insertionMode){case f.INITIAL:{lt(this,e);break}case f.BEFORE_HTML:{ht(this,e);break}case f.BEFORE_HEAD:{mt(this,e);break}case f.IN_HEAD:{pt(this,e);break}case f.IN_HEAD_NO_SCRIPT:{Et(this,e);break}case f.AFTER_HEAD:{bt(this,e);break}case f.IN_BODY:case f.IN_TABLE:case f.IN_CAPTION:case f.IN_COLUMN_GROUP:case f.IN_TABLE_BODY:case f.IN_ROW:case f.IN_CELL:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:{gr(this,e);break}case f.TEXT:{hu(this,e);break}case f.IN_TABLE_TEXT:{dt(this,e);break}case f.IN_TEMPLATE:{Ir(this,e);break}case f.AFTER_BODY:case f.IN_FRAMESET:case f.AFTER_FRAMESET:case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{Yn(this,e);break}default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine){if(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===c.LINE_FEED){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:case f.TEXT:case f.IN_COLUMN_GROUP:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:case f.IN_FRAMESET:case f.AFTER_FRAMESET:{this._insertCharacters(e);break}case f.IN_BODY:case f.IN_CAPTION:case f.IN_CELL:case f.IN_TEMPLATE:case f.AFTER_BODY:case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{mr(this,e);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{Hn(this,e);break}case f.IN_TABLE_TEXT:{Ar(this,e);break}default:}}}function ii(e,t){let a=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);if(a){if(!e.openElements.contains(a.element))e.activeFormattingElements.removeEntry(a),a=null;else if(!e.openElements.hasInScope(t.tagID))a=null}else Tr(e,t);return a}function ui(e,t){let a=null,o=e.openElements.stackTop;for(;o>=0;o--){let s=e.openElements.items[o];if(s===t.element)break;if(e._isSpecialElement(s,e.openElements.tagIDs[o]))a=s}if(!a)e.openElements.shortenToLength(Math.max(o,0)),e.activeFormattingElements.removeEntry(t);return a}function ci(e,t,a){let o=t,s=e.openElements.getCommonAncestor(t);for(let i=0,l=s;l!==a;i++,l=s){s=e.openElements.getCommonAncestor(l);let b=e.activeFormattingElements.getElementEntry(l),p=b&&i>=oi;if(!b||p){if(p)e.activeFormattingElements.removeEntry(b);e.openElements.remove(l)}else{if(l=li(e,b),o===t)e.activeFormattingElements.bookmark=b;e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(l,o),o=l}}return o}function li(e,t){let a=e.treeAdapter.getNamespaceURI(t.element),o=e.treeAdapter.createElement(t.token.tagName,a,t.token.attrs);return e.openElements.replace(t.element,o),t.element=o,o}function di(e,t,a){let o=e.treeAdapter.getTagName(t),s=$e(o);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(a);else{let i=e.treeAdapter.getNamespaceURI(t);if(s===r.TEMPLATE&&i===S.HTML)t=e.treeAdapter.getTemplateContent(t);e.treeAdapter.appendChild(t,a)}}function fi(e,t,a){let o=e.treeAdapter.getNamespaceURI(a.element),{token:s}=a,i=e.treeAdapter.createElement(s.tagName,o,s.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,s),e.activeFormattingElements.removeEntry(a),e.openElements.remove(a.element),e.openElements.insertAfter(t,i,s.tagID)}function $n(e,t){for(let a=0;a<ri;a++){let o=ii(e,t);if(!o)break;let s=ui(e,o);if(!s)break;e.activeFormattingElements.bookmark=o;let i=ci(e,s,o.element),l=e.openElements.getCommonAncestor(o.element);if(e.treeAdapter.detachNode(i),l)di(e,l,i);fi(e,s,o)}}function Un(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function hi(e,t){e._appendCommentNode(t,e.openElements.items[0])}function mi(e,t){e._appendCommentNode(t,e.document)}function Yn(e,t){if(e.stopped=!0,t.location){let a=e.fragmentContext?0:2;for(let o=e.openElements.stackTop;o>=a;o--)e._setEndLocation(e.openElements.items[o],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let o=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(o);if(s&&!s.endTag){if(e._setEndLocation(o,t),e.openElements.stackTop>=1){let i=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(i);if(l&&!l.endTag)e._setEndLocation(i,t)}}}}}function pi(e,t){e._setDocumentType(t);let a=t.forceQuirks?re.QUIRKS:tr(t);if(!er(t))e._err(t,A.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,a),e.insertionMode=f.BEFORE_HTML}function lt(e,t){e._err(t,A.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,re.QUIRKS),e.insertionMode=f.BEFORE_HTML,e._processToken(t)}function Ei(e,t){if(t.tagID===r.HTML)e._insertElement(t,S.HTML),e.insertionMode=f.BEFORE_HEAD;else ht(e,t)}function bi(e,t){let a=t.tagID;if(a===r.HTML||a===r.HEAD||a===r.BODY||a===r.BR)ht(e,t)}function ht(e,t){e._insertFakeRootElement(),e.insertionMode=f.BEFORE_HEAD,e._processToken(t)}function Ti(e,t){switch(t.tagID){case r.HTML:{ee(e,t);break}case r.HEAD:{e._insertElement(t,S.HTML),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD;break}default:mt(e,t)}}function gi(e,t){let a=t.tagID;if(a===r.HEAD||a===r.BODY||a===r.HTML||a===r.BR)mt(e,t);else e._err(t,A.endTagWithoutMatchingOpenElement)}function mt(e,t){e._insertFakeElement(T.HEAD,r.HEAD),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD,e._processToken(t)}function me(e,t){switch(t.tagID){case r.HTML:{ee(e,t);break}case r.BASE:case r.BASEFONT:case r.BGSOUND:case r.LINK:case r.META:{e._appendElement(t,S.HTML),t.ackSelfClosing=!0;break}case r.TITLE:{e._switchToTextParsing(t,J.RCDATA);break}case r.NOSCRIPT:{if(e.options.scriptingEnabled)e._switchToTextParsing(t,J.RAWTEXT);else e._insertElement(t,S.HTML),e.insertionMode=f.IN_HEAD_NO_SCRIPT;break}case r.NOFRAMES:case r.STYLE:{e._switchToTextParsing(t,J.RAWTEXT);break}case r.SCRIPT:{e._switchToTextParsing(t,J.SCRIPT_DATA);break}case r.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=f.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(f.IN_TEMPLATE);break}case r.HEAD:{e._err(t,A.misplacedStartTagForHeadElement);break}default:pt(e,t)}}function Ai(e,t){switch(t.tagID){case r.HEAD:{e.openElements.pop(),e.insertionMode=f.AFTER_HEAD;break}case r.BODY:case r.BR:case r.HTML:{pt(e,t);break}case r.TEMPLATE:{Ye(e,t);break}default:e._err(t,A.endTagWithoutMatchingOpenElement)}}function Ye(e,t){if(e.openElements.tmplCount>0){if(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==r.TEMPLATE)e._err(t,A.closingOfElementWithOpenChildElements);e.openElements.popUntilTagNamePopped(r.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()}else e._err(t,A.endTagWithoutMatchingOpenElement)}function pt(e,t){e.openElements.pop(),e.insertionMode=f.AFTER_HEAD,e._processToken(t)}function _i(e,t){switch(t.tagID){case r.HTML:{ee(e,t);break}case r.BASEFONT:case r.BGSOUND:case r.HEAD:case r.LINK:case r.META:case r.NOFRAMES:case r.STYLE:{me(e,t);break}case r.NOSCRIPT:{e._err(t,A.nestedNoscriptInHead);break}default:Et(e,t)}}function Ci(e,t){switch(t.tagID){case r.NOSCRIPT:{e.openElements.pop(),e.insertionMode=f.IN_HEAD;break}case r.BR:{Et(e,t);break}default:e._err(t,A.endTagWithoutMatchingOpenElement)}}function Et(e,t){let a=t.type===M.EOF?A.openElementsLeftAfterEof:A.disallowedContentInNoscriptInHead;e._err(t,a),e.openElements.pop(),e.insertionMode=f.IN_HEAD,e._processToken(t)}function yi(e,t){switch(t.tagID){case r.HTML:{ee(e,t);break}case r.BODY:{e._insertElement(t,S.HTML),e.framesetOk=!1,e.insertionMode=f.IN_BODY;break}case r.FRAMESET:{e._insertElement(t,S.HTML),e.insertionMode=f.IN_FRAMESET;break}case r.BASE:case r.BASEFONT:case r.BGSOUND:case r.LINK:case r.META:case r.NOFRAMES:case r.SCRIPT:case r.STYLE:case r.TEMPLATE:case r.TITLE:{e._err(t,A.abandonedHeadElementChild),e.openElements.push(e.headElement,r.HEAD),me(e,t),e.openElements.remove(e.headElement);break}case r.HEAD:{e._err(t,A.misplacedStartTagForHeadElement);break}default:bt(e,t)}}function Si(e,t){switch(t.tagID){case r.BODY:case r.HTML:case r.BR:{bt(e,t);break}case r.TEMPLATE:{Ye(e,t);break}default:e._err(t,A.endTagWithoutMatchingOpenElement)}}function bt(e,t){e._insertFakeElement(T.BODY,r.BODY),e.insertionMode=f.IN_BODY,Gt(e,t)}function Gt(e,t){switch(t.type){case M.CHARACTER:{pr(e,t);break}case M.WHITESPACE_CHARACTER:{mr(e,t);break}case M.COMMENT:{Un(e,t);break}case M.START_TAG:{ee(e,t);break}case M.END_TAG:{Qt(e,t);break}case M.EOF:{gr(e,t);break}default:}}function mr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function pr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function xi(e,t){if(e.openElements.tmplCount===0)e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Ni(e,t){let a=e.openElements.tryPeekProperlyNestedBodyElement();if(a&&e.openElements.tmplCount===0)e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,t.attrs)}function Ii(e,t){let a=e.openElements.tryPeekProperlyNestedBodyElement();if(e.framesetOk&&a)e.treeAdapter.detachNode(a),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,S.HTML),e.insertionMode=f.IN_FRAMESET}function Oi(e,t){if(e.openElements.hasInButtonScope(r.P))e._closePElement();e._insertElement(t,S.HTML)}function Li(e,t){if(e.openElements.hasInButtonScope(r.P))e._closePElement();if(e.openElements.currentTagId!==void 0&&ut.has(e.openElements.currentTagId))e.openElements.pop();e._insertElement(t,S.HTML)}function Ri(e,t){if(e.openElements.hasInButtonScope(r.P))e._closePElement();e._insertElement(t,S.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Di(e,t){let a=e.openElements.tmplCount>0;if(!e.formElement||a){if(e.openElements.hasInButtonScope(r.P))e._closePElement();if(e._insertElement(t,S.HTML),!a)e.formElement=e.openElements.current}}function vi(e,t){e.framesetOk=!1;let a=t.tagID;for(let o=e.openElements.stackTop;o>=0;o--){let s=e.openElements.tagIDs[o];if(a===r.LI&&s===r.LI||(a===r.DD||a===r.DT)&&(s===r.DD||s===r.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==r.ADDRESS&&s!==r.DIV&&s!==r.P&&e._isSpecialElement(e.openElements.items[o],s))break}if(e.openElements.hasInButtonScope(r.P))e._closePElement();e._insertElement(t,S.HTML)}function wi(e,t){if(e.openElements.hasInButtonScope(r.P))e._closePElement();e._insertElement(t,S.HTML),e.tokenizer.state=J.PLAINTEXT}function ki(e,t){if(e.openElements.hasInScope(r.BUTTON))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r.BUTTON);e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML),e.framesetOk=!1}function Pi(e,t){let a=e.activeFormattingElements.getElementEntryInScopeWithTagName(T.A);if(a)$n(e,t),e.openElements.remove(a.element),e.activeFormattingElements.removeEntry(a);e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Mi(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Bi(e,t){if(e._reconstructActiveFormattingElements(),e.openElements.hasInScope(r.NOBR))$n(e,t),e._reconstructActiveFormattingElements();e._insertElement(t,S.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Hi(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Ui(e,t){if(e.treeAdapter.getDocumentMode(e.document)!==re.QUIRKS&&e.openElements.hasInButtonScope(r.P))e._closePElement();e._insertElement(t,S.HTML),e.framesetOk=!1,e.insertionMode=f.IN_TABLE}function Er(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,S.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function br(e){let t=Ut(e,xe.TYPE);return t!=null&&t.toLowerCase()===ai}function $i(e,t){if(e._reconstructActiveFormattingElements(),e._appendElement(t,S.HTML),!br(t))e.framesetOk=!1;t.ackSelfClosing=!0}function Yi(e,t){e._appendElement(t,S.HTML),t.ackSelfClosing=!0}function ji(e,t){if(e.openElements.hasInButtonScope(r.P))e._closePElement();e._appendElement(t,S.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ki(e,t){t.tagName=T.IMG,t.tagID=r.IMG,Er(e,t)}function Vi(e,t){e._insertElement(t,S.HTML),e.skipNextNewLine=!0,e.tokenizer.state=J.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=f.TEXT}function qi(e,t){if(e.openElements.hasInButtonScope(r.P))e._closePElement();e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,J.RAWTEXT)}function Wi(e,t){e.framesetOk=!1,e._switchToTextParsing(t,J.RAWTEXT)}function dr(e,t){e._switchToTextParsing(t,J.RAWTEXT)}function Gi(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===f.IN_TABLE||e.insertionMode===f.IN_CAPTION||e.insertionMode===f.IN_TABLE_BODY||e.insertionMode===f.IN_ROW||e.insertionMode===f.IN_CELL?f.IN_SELECT_IN_TABLE:f.IN_SELECT}function Qi(e,t){if(e.openElements.currentTagId===r.OPTION)e.openElements.pop();e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML)}function Xi(e,t){if(e.openElements.hasInScope(r.RUBY))e.openElements.generateImpliedEndTags();e._insertElement(t,S.HTML)}function Ji(e,t){if(e.openElements.hasInScope(r.RUBY))e.openElements.generateImpliedEndTagsWithExclusion(r.RTC);e._insertElement(t,S.HTML)}function Zi(e,t){if(e._reconstructActiveFormattingElements(),Mn(t),jt(t),t.selfClosing)e._appendElement(t,S.MATHML);else e._insertElement(t,S.MATHML);t.ackSelfClosing=!0}function eu(e,t){if(e._reconstructActiveFormattingElements(),Bn(t),jt(t),t.selfClosing)e._appendElement(t,S.SVG);else e._insertElement(t,S.SVG);t.ackSelfClosing=!0}function fr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML)}function ee(e,t){switch(t.tagID){case r.I:case r.S:case r.B:case r.U:case r.EM:case r.TT:case r.BIG:case r.CODE:case r.FONT:case r.SMALL:case r.STRIKE:case r.STRONG:{Mi(e,t);break}case r.A:{Pi(e,t);break}case r.H1:case r.H2:case r.H3:case r.H4:case r.H5:case r.H6:{Li(e,t);break}case r.P:case r.DL:case r.OL:case r.UL:case r.DIV:case r.DIR:case r.NAV:case r.MAIN:case r.MENU:case r.ASIDE:case r.CENTER:case r.FIGURE:case r.FOOTER:case r.HEADER:case r.HGROUP:case r.DIALOG:case r.DETAILS:case r.ADDRESS:case r.ARTICLE:case r.SEARCH:case r.SECTION:case r.SUMMARY:case r.FIELDSET:case r.BLOCKQUOTE:case r.FIGCAPTION:{Oi(e,t);break}case r.LI:case r.DD:case r.DT:{vi(e,t);break}case r.BR:case r.IMG:case r.WBR:case r.AREA:case r.EMBED:case r.KEYGEN:{Er(e,t);break}case r.HR:{ji(e,t);break}case r.RB:case r.RTC:{Xi(e,t);break}case r.RT:case r.RP:{Ji(e,t);break}case r.PRE:case r.LISTING:{Ri(e,t);break}case r.XMP:{qi(e,t);break}case r.SVG:{eu(e,t);break}case r.HTML:{xi(e,t);break}case r.BASE:case r.LINK:case r.META:case r.STYLE:case r.TITLE:case r.SCRIPT:case r.BGSOUND:case r.BASEFONT:case r.TEMPLATE:{me(e,t);break}case r.BODY:{Ni(e,t);break}case r.FORM:{Di(e,t);break}case r.NOBR:{Bi(e,t);break}case r.MATH:{Zi(e,t);break}case r.TABLE:{Ui(e,t);break}case r.INPUT:{$i(e,t);break}case r.PARAM:case r.TRACK:case r.SOURCE:{Yi(e,t);break}case r.IMAGE:{Ki(e,t);break}case r.BUTTON:{ki(e,t);break}case r.APPLET:case r.OBJECT:case r.MARQUEE:{Hi(e,t);break}case r.IFRAME:{Wi(e,t);break}case r.SELECT:{Gi(e,t);break}case r.OPTION:case r.OPTGROUP:{Qi(e,t);break}case r.NOEMBED:case r.NOFRAMES:{dr(e,t);break}case r.FRAMESET:{Ii(e,t);break}case r.TEXTAREA:{Vi(e,t);break}case r.NOSCRIPT:{if(e.options.scriptingEnabled)dr(e,t);else fr(e,t);break}case r.PLAINTEXT:{wi(e,t);break}case r.COL:case r.TH:case r.TD:case r.TR:case r.HEAD:case r.FRAME:case r.TBODY:case r.TFOOT:case r.THEAD:case r.CAPTION:case r.COLGROUP:break;default:fr(e,t)}}function tu(e,t){if(e.openElements.hasInScope(r.BODY)){if(e.insertionMode=f.AFTER_BODY,e.options.sourceCodeLocationInfo){let a=e.openElements.tryPeekProperlyNestedBodyElement();if(a)e._setEndLocation(a,t)}}}function nu(e,t){if(e.openElements.hasInScope(r.BODY))e.insertionMode=f.AFTER_BODY,Or(e,t)}function au(e,t){let a=t.tagID;if(e.openElements.hasInScope(a))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a)}function ou(e){let t=e.openElements.tmplCount>0,{formElement:a}=e;if(!t)e.formElement=null;if((a||t)&&e.openElements.hasInScope(r.FORM)){if(e.openElements.generateImpliedEndTags(),t)e.openElements.popUntilTagNamePopped(r.FORM);else if(a)e.openElements.remove(a)}}function su(e){if(!e.openElements.hasInButtonScope(r.P))e._insertFakeElement(T.P,r.P);e._closePElement()}function iu(e){if(e.openElements.hasInListItemScope(r.LI))e.openElements.generateImpliedEndTagsWithExclusion(r.LI),e.openElements.popUntilTagNamePopped(r.LI)}function uu(e,t){let a=t.tagID;if(e.openElements.hasInScope(a))e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a)}function cu(e){if(e.openElements.hasNumberedHeaderInScope())e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped()}function lu(e,t){let a=t.tagID;if(e.openElements.hasInScope(a))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker()}function du(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(T.BR,r.BR),e.openElements.pop(),e.framesetOk=!1}function Tr(e,t){let{tagName:a,tagID:o}=t;for(let s=e.openElements.stackTop;s>0;s--){let i=e.openElements.items[s],l=e.openElements.tagIDs[s];if(o===l&&(o!==r.UNKNOWN||e.treeAdapter.getTagName(i)===a)){if(e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.stackTop>=s)e.openElements.shortenToLength(s);break}if(e._isSpecialElement(i,l))break}}function Qt(e,t){switch(t.tagID){case r.A:case r.B:case r.I:case r.S:case r.U:case r.EM:case r.TT:case r.BIG:case r.CODE:case r.FONT:case r.NOBR:case r.SMALL:case r.STRIKE:case r.STRONG:{$n(e,t);break}case r.P:{su(e);break}case r.DL:case r.UL:case r.OL:case r.DIR:case r.DIV:case r.NAV:case r.PRE:case r.MAIN:case r.MENU:case r.ASIDE:case r.BUTTON:case r.CENTER:case r.FIGURE:case r.FOOTER:case r.HEADER:case r.HGROUP:case r.DIALOG:case r.ADDRESS:case r.ARTICLE:case r.DETAILS:case r.SEARCH:case r.SECTION:case r.SUMMARY:case r.LISTING:case r.FIELDSET:case r.BLOCKQUOTE:case r.FIGCAPTION:{au(e,t);break}case r.LI:{iu(e);break}case r.DD:case r.DT:{uu(e,t);break}case r.H1:case r.H2:case r.H3:case r.H4:case r.H5:case r.H6:{cu(e);break}case r.BR:{du(e);break}case r.BODY:{tu(e,t);break}case r.HTML:{nu(e,t);break}case r.FORM:{ou(e);break}case r.APPLET:case r.OBJECT:case r.MARQUEE:{lu(e,t);break}case r.TEMPLATE:{Ye(e,t);break}default:Tr(e,t)}}function gr(e,t){if(e.tmplInsertionModeStack.length>0)Ir(e,t);else Yn(e,t)}function fu(e,t){var a;if(t.tagID===r.SCRIPT)(a=e.scriptHandler)===null||a===void 0||a.call(e,e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function hu(e,t){e._err(t,A.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Hn(e,t){if(e.openElements.currentTagId!==void 0&&hr.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=f.IN_TABLE_TEXT,t.type){case M.CHARACTER:{_r(e,t);break}case M.WHITESPACE_CHARACTER:{Ar(e,t);break}}else At(e,t)}function mu(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,S.HTML),e.insertionMode=f.IN_CAPTION}function pu(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,S.HTML),e.insertionMode=f.IN_COLUMN_GROUP}function Eu(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(T.COLGROUP,r.COLGROUP),e.insertionMode=f.IN_COLUMN_GROUP,jn(e,t)}function bu(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,S.HTML),e.insertionMode=f.IN_TABLE_BODY}function Tu(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(T.TBODY,r.TBODY),e.insertionMode=f.IN_TABLE_BODY,Xt(e,t)}function gu(e,t){if(e.openElements.hasInTableScope(r.TABLE))e.openElements.popUntilTagNamePopped(r.TABLE),e._resetInsertionMode(),e._processStartTag(t)}function _u(e,t){if(br(t))e._appendElement(t,S.HTML);else At(e,t);t.ackSelfClosing=!0}function Cu(e,t){if(!e.formElement&&e.openElements.tmplCount===0)e._insertElement(t,S.HTML),e.formElement=e.openElements.current,e.openElements.pop()}function Je(e,t){switch(t.tagID){case r.TD:case r.TH:case r.TR:{Tu(e,t);break}case r.STYLE:case r.SCRIPT:case r.TEMPLATE:{me(e,t);break}case r.COL:{Eu(e,t);break}case r.FORM:{Cu(e,t);break}case r.TABLE:{gu(e,t);break}case r.TBODY:case r.TFOOT:case r.THEAD:{bu(e,t);break}case r.INPUT:{_u(e,t);break}case r.CAPTION:{mu(e,t);break}case r.COLGROUP:{pu(e,t);break}default:At(e,t)}}function Tt(e,t){switch(t.tagID){case r.TABLE:{if(e.openElements.hasInTableScope(r.TABLE))e.openElements.popUntilTagNamePopped(r.TABLE),e._resetInsertionMode();break}case r.TEMPLATE:{Ye(e,t);break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:case r.TBODY:case r.TD:case r.TFOOT:case r.TH:case r.THEAD:case r.TR:break;default:At(e,t)}}function At(e,t){let a=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Gt(e,t),e.fosterParentingEnabled=a}function Ar(e,t){e.pendingCharacterTokens.push(t)}function _r(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function dt(e,t){let a=0;if(e.hasNonWhitespacePendingCharacterToken)for(;a<e.pendingCharacterTokens.length;a++)At(e,e.pendingCharacterTokens[a]);else for(;a<e.pendingCharacterTokens.length;a++)e._insertCharacters(e.pendingCharacterTokens[a]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var yr=new Set([r.CAPTION,r.COL,r.COLGROUP,r.TBODY,r.TD,r.TFOOT,r.TH,r.THEAD,r.TR]);function yu(e,t){let a=t.tagID;if(yr.has(a)){if(e.openElements.hasInTableScope(r.CAPTION))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_TABLE,Je(e,t)}else ee(e,t)}function Su(e,t){let a=t.tagID;switch(a){case r.CAPTION:case r.TABLE:{if(e.openElements.hasInTableScope(r.CAPTION)){if(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_TABLE,a===r.TABLE)Tt(e,t)}break}case r.BODY:case r.COL:case r.COLGROUP:case r.HTML:case r.TBODY:case r.TD:case r.TFOOT:case r.TH:case r.THEAD:case r.TR:break;default:Qt(e,t)}}function jn(e,t){switch(t.tagID){case r.HTML:{ee(e,t);break}case r.COL:{e._appendElement(t,S.HTML),t.ackSelfClosing=!0;break}case r.TEMPLATE:{me(e,t);break}default:qt(e,t)}}function xu(e,t){switch(t.tagID){case r.COLGROUP:{if(e.openElements.currentTagId===r.COLGROUP)e.openElements.pop(),e.insertionMode=f.IN_TABLE;break}case r.TEMPLATE:{Ye(e,t);break}case r.COL:break;default:qt(e,t)}}function qt(e,t){if(e.openElements.currentTagId===r.COLGROUP)e.openElements.pop(),e.insertionMode=f.IN_TABLE,e._processToken(t)}function Xt(e,t){switch(t.tagID){case r.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,S.HTML),e.insertionMode=f.IN_ROW;break}case r.TH:case r.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(T.TR,r.TR),e.insertionMode=f.IN_ROW,Jt(e,t);break}case r.CAPTION:case r.COL:case r.COLGROUP:case r.TBODY:case r.TFOOT:case r.THEAD:{if(e.openElements.hasTableBodyContextInTableScope())e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE,Je(e,t);break}default:Je(e,t)}}function Fn(e,t){let a=t.tagID;switch(t.tagID){case r.TBODY:case r.TFOOT:case r.THEAD:{if(e.openElements.hasInTableScope(a))e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE;break}case r.TABLE:{if(e.openElements.hasTableBodyContextInTableScope())e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE,Tt(e,t);break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:case r.TD:case r.TH:case r.TR:break;default:Tt(e,t)}}function Jt(e,t){switch(t.tagID){case r.TH:case r.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,S.HTML),e.insertionMode=f.IN_CELL,e.activeFormattingElements.insertMarker();break}case r.CAPTION:case r.COL:case r.COLGROUP:case r.TBODY:case r.TFOOT:case r.THEAD:case r.TR:{if(e.openElements.hasInTableScope(r.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,Xt(e,t);break}default:Je(e,t)}}function Sr(e,t){switch(t.tagID){case r.TR:{if(e.openElements.hasInTableScope(r.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY;break}case r.TABLE:{if(e.openElements.hasInTableScope(r.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,Fn(e,t);break}case r.TBODY:case r.TFOOT:case r.THEAD:{if(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(r.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,Fn(e,t);break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:case r.TD:case r.TH:break;default:Tt(e,t)}}function Iu(e,t){let a=t.tagID;if(yr.has(a)){if(e.openElements.hasInTableScope(r.TD)||e.openElements.hasInTableScope(r.TH))e._closeTableCell(),Jt(e,t)}else ee(e,t)}function Lu(e,t){let a=t.tagID;switch(a){case r.TD:case r.TH:{if(e.openElements.hasInTableScope(a))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_ROW;break}case r.TABLE:case r.TBODY:case r.TFOOT:case r.THEAD:case r.TR:{if(e.openElements.hasInTableScope(a))e._closeTableCell(),Sr(e,t);break}case r.BODY:case r.CAPTION:case r.COL:case r.COLGROUP:case r.HTML:break;default:Qt(e,t)}}function xr(e,t){switch(t.tagID){case r.HTML:{ee(e,t);break}case r.OPTION:{if(e.openElements.currentTagId===r.OPTION)e.openElements.pop();e._insertElement(t,S.HTML);break}case r.OPTGROUP:{if(e.openElements.currentTagId===r.OPTION)e.openElements.pop();if(e.openElements.currentTagId===r.OPTGROUP)e.openElements.pop();e._insertElement(t,S.HTML);break}case r.HR:{if(e.openElements.currentTagId===r.OPTION)e.openElements.pop();if(e.openElements.currentTagId===r.OPTGROUP)e.openElements.pop();e._appendElement(t,S.HTML),t.ackSelfClosing=!0;break}case r.INPUT:case r.KEYGEN:case r.TEXTAREA:case r.SELECT:{if(e.openElements.hasInSelectScope(r.SELECT)){if(e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode(),t.tagID!==r.SELECT)e._processStartTag(t)}break}case r.SCRIPT:case r.TEMPLATE:{me(e,t);break}default:}}function Nr(e,t){switch(t.tagID){case r.OPTGROUP:{if(e.openElements.stackTop>0&&e.openElements.currentTagId===r.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===r.OPTGROUP)e.openElements.pop();if(e.openElements.currentTagId===r.OPTGROUP)e.openElements.pop();break}case r.OPTION:{if(e.openElements.currentTagId===r.OPTION)e.openElements.pop();break}case r.SELECT:{if(e.openElements.hasInSelectScope(r.SELECT))e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode();break}case r.TEMPLATE:{Ye(e,t);break}default:}}function vu(e,t){let a=t.tagID;if(a===r.CAPTION||a===r.TABLE||a===r.TBODY||a===r.TFOOT||a===r.THEAD||a===r.TR||a===r.TD||a===r.TH)e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode(),e._processStartTag(t);else xr(e,t)}function wu(e,t){let a=t.tagID;if(a===r.CAPTION||a===r.TABLE||a===r.TBODY||a===r.TFOOT||a===r.THEAD||a===r.TR||a===r.TD||a===r.TH){if(e.openElements.hasInTableScope(a))e.openElements.popUntilTagNamePopped(r.SELECT),e._resetInsertionMode(),e.onEndTag(t)}else Nr(e,t)}function ku(e,t){switch(t.tagID){case r.BASE:case r.BASEFONT:case r.BGSOUND:case r.LINK:case r.META:case r.NOFRAMES:case r.SCRIPT:case r.STYLE:case r.TEMPLATE:case r.TITLE:{me(e,t);break}case r.CAPTION:case r.COLGROUP:case r.TBODY:case r.TFOOT:case r.THEAD:{e.tmplInsertionModeStack[0]=f.IN_TABLE,e.insertionMode=f.IN_TABLE,Je(e,t);break}case r.COL:{e.tmplInsertionModeStack[0]=f.IN_COLUMN_GROUP,e.insertionMode=f.IN_COLUMN_GROUP,jn(e,t);break}case r.TR:{e.tmplInsertionModeStack[0]=f.IN_TABLE_BODY,e.insertionMode=f.IN_TABLE_BODY,Xt(e,t);break}case r.TD:case r.TH:{e.tmplInsertionModeStack[0]=f.IN_ROW,e.insertionMode=f.IN_ROW,Jt(e,t);break}default:e.tmplInsertionModeStack[0]=f.IN_BODY,e.insertionMode=f.IN_BODY,ee(e,t)}}function Pu(e,t){if(t.tagID===r.TEMPLATE)Ye(e,t)}function Ir(e,t){if(e.openElements.tmplCount>0)e.openElements.popUntilTagNamePopped(r.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t);else Yn(e,t)}function Mu(e,t){if(t.tagID===r.HTML)ee(e,t);else Wt(e,t)}function Or(e,t){var a;if(t.tagID===r.HTML){if(!e.fragmentContext)e.insertionMode=f.AFTER_AFTER_BODY;if(e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===r.HTML){e._setEndLocation(e.openElements.items[0],t);let o=e.openElements.items[1];if(o&&!((a=e.treeAdapter.getNodeSourceCodeLocation(o))===null||a===void 0?void 0:a.endTag))e._setEndLocation(o,t)}}else Wt(e,t)}function Wt(e,t){e.insertionMode=f.IN_BODY,Gt(e,t)}function Bu(e,t){switch(t.tagID){case r.HTML:{ee(e,t);break}case r.FRAMESET:{e._insertElement(t,S.HTML);break}case r.FRAME:{e._appendElement(t,S.HTML),t.ackSelfClosing=!0;break}case r.NOFRAMES:{me(e,t);break}default:}}function Hu(e,t){if(t.tagID===r.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()){if(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==r.FRAMESET)e.insertionMode=f.AFTER_FRAMESET}}function Uu(e,t){switch(t.tagID){case r.HTML:{ee(e,t);break}case r.NOFRAMES:{me(e,t);break}default:}}function Fu(e,t){if(t.tagID===r.HTML)e.insertionMode=f.AFTER_AFTER_FRAMESET}function $u(e,t){if(t.tagID===r.HTML)ee(e,t);else Kt(e,t)}function Kt(e,t){e.insertionMode=f.IN_BODY,Gt(e,t)}function Yu(e,t){switch(t.tagID){case r.HTML:{ee(e,t);break}case r.NOFRAMES:{me(e,t);break}default:}}function ju(e,t){t.chars=U,e._insertCharacters(t)}function Ku(e,t){e._insertCharacters(t),e.framesetOk=!1}function Lr(e){while(e.treeAdapter.getNamespaceURI(e.openElements.current)!==S.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current))e.openElements.pop()}function Vu(e,t){if(ar(t))Lr(e),e._startTagOutsideForeignContent(t);else{let a=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(a);if(o===S.MATHML)Mn(t);else if(o===S.SVG)sr(t),Bn(t);if(jt(t),t.selfClosing)e._appendElement(t,o);else e._insertElement(t,o);t.ackSelfClosing=!0}}function qu(e,t){if(t.tagID===r.P||t.tagID===r.BR){Lr(e),e._endTagOutsideForeignContent(t);return}for(let a=e.openElements.stackTop;a>0;a--){let o=e.openElements.items[a];if(e.treeAdapter.getNamespaceURI(o)===S.HTML){e._endTagOutsideForeignContent(t);break}let s=e.treeAdapter.getTagName(o);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(a);break}}}var xf=new Set([T.AREA,T.BASE,T.BASEFONT,T.BGSOUND,T.BR,T.COL,T.EMBED,T.FRAME,T.HR,T.IMG,T.INPUT,T.KEYGEN,T.LINK,T.META,T.PARAM,T.SOURCE,T.TRACK,T.WBR]);function Rr(e,t){return gt.parse(e,t)}function Dr(e,t,a){if(typeof e==="string")a=t,t=e,e=null;let o=gt.getFragmentParser(e,a);return o.tokenizer.write(t,!0),o.getFragment()}function gp(e){if(!e||typeof e!=="object")return"";if("position"in e||"type"in e)return wr(e.position);if("start"in e||"end"in e)return wr(e);if("line"in e||"column"in e)return Kn(e);return""}function Kn(e){return Pr(e&&e.line)+":"+Pr(e&&e.column)}function wr(e){return Kn(e&&e.start)+"-"+Kn(e&&e.end)}function Pr(e){return e&&typeof e==="number"?e:1}class q extends Error{constructor(e,t,a){super();if(typeof t==="string")a=t,t=void 0;let o="",s={},i=!1;if(t)if("line"in t&&"column"in t)s={place:t};else if("start"in t&&"end"in t)s={place:t};else if("type"in t)s={ancestors:[t],place:t.position};else s={...t};if(typeof e==="string")o=e;else if(!s.cause&&e)i=!0,o=e.message,s.cause=e;if(!s.ruleId&&!s.source&&typeof a==="string"){let b=a.indexOf(":");if(b===-1)s.ruleId=a;else s.source=a.slice(0,b),s.ruleId=a.slice(b+1)}if(!s.place&&s.ancestors&&s.ancestors){let b=s.ancestors[s.ancestors.length-1];if(b)s.place=b.position}let l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=l?l.line:void 0,this.name=gp(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=i&&s.cause&&typeof s.cause.stack==="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}q.prototype.file="";q.prototype.name="";q.prototype.reason="";q.prototype.message="";q.prototype.stack="";q.prototype.column=void 0;q.prototype.line=void 0;q.prototype.ancestors=void 0;q.prototype.cause=void 0;q.prototype.fatal=void 0;q.prototype.place=void 0;q.prototype.ruleId=void 0;q.prototype.source=void 0;var pe={basename:Wu,dirname:Gu,extname:Qu,join:Xu,sep:"/"};function Wu(e,t){if(t!==void 0&&typeof t!=="string")throw TypeError('"ext" argument must be a string');_t(e);let a=0,o=-1,s=e.length,i;if(t===void 0||t.length===0||t.length>e.length){while(s--)if(e.codePointAt(s)===47){if(i){a=s+1;break}}else if(o<0)i=!0,o=s+1;return o<0?"":e.slice(a,o)}if(t===e)return"";let l=-1,b=t.length-1;while(s--)if(e.codePointAt(s)===47){if(i){a=s+1;break}}else{if(l<0)i=!0,l=s+1;if(b>-1)if(e.codePointAt(s)===t.codePointAt(b--)){if(b<0)o=s}else b=-1,o=l}if(a===o)o=l;else if(o<0)o=e.length;return e.slice(a,o)}function Gu(e){if(_t(e),e.length===0)return".";let t=-1,a=e.length,o;while(--a)if(e.codePointAt(a)===47){if(o){t=a;break}}else if(!o)o=!0;return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Qu(e){_t(e);let t=e.length,a=-1,o=0,s=-1,i=0,l;while(t--){let b=e.codePointAt(t);if(b===47){if(l){o=t+1;break}continue}if(a<0)l=!0,a=t+1;if(b===46){if(s<0)s=t;else if(i!==1)i=1}else if(s>-1)i=-1}if(s<0||a<0||i===0||i===1&&s===a-1&&s===o+1)return"";return e.slice(s,a)}function Xu(...e){let t=-1,a;while(++t<e.length)if(_t(e[t]),e[t])a=a===void 0?e[t]:a+"/"+e[t];return a===void 0?".":zu(a)}function zu(e){_t(e);let t=e.codePointAt(0)===47,a=Ju(e,!t);if(a.length===0&&!t)a=".";if(a.length>0&&e.codePointAt(e.length-1)===47)a+="/";return t?"/"+a:a}function Ju(e,t){let a="",o=0,s=-1,i=0,l=-1,b,p;while(++l<=e.length){if(l<e.length)b=e.codePointAt(l);else if(b===47)break;else b=47;if(b===47){if(s===l-1||i===1);else if(s!==l-1&&i===2){if(a.length<2||o!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(p=a.lastIndexOf("/"),p!==a.length-1){if(p<0)a="",o=0;else a=a.slice(0,p),o=a.length-1-a.lastIndexOf("/");s=l,i=0;continue}}else if(a.length>0){a="",o=0,s=l,i=0;continue}}if(t)a=a.length>0?a+"/..":"..",o=2}else{if(a.length>0)a+="/"+e.slice(s+1,l);else a=e.slice(s+1,l);o=l-s-1}s=l,i=0}else if(b===46&&i>-1)i++;else i=-1}return a}function _t(e){if(typeof e!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(e))}var Mr={cwd:Zu};function Zu(){return"/"}function Ze(e){return Boolean(e!==null&&typeof e==="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Br(e){if(typeof e==="string")e=new URL(e);else if(!Ze(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ec(e)}function ec(e){if(e.hostname!==""){let o=TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}let t=e.pathname,a=-1;while(++a<t.length)if(t.codePointAt(a)===37&&t.codePointAt(a+1)===50){let o=t.codePointAt(a+2);if(o===70||o===102){let s=TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}var Vn=["history","path","basename","stem","extname","dirname"];class rm{constructor(e){let t;if(!e)t={};else if(Ze(e))t={path:e};else if(typeof e==="string"||tc(e))t={value:e};else t=e;this.cwd="cwd"in t?"":Mr.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;while(++a<Vn.length){let s=Vn[a];if(s in t&&t[s]!==void 0&&t[s]!==null)this[s]=s==="history"?[...t[s]]:t[s]}let o;for(o in t)if(!Vn.includes(o))this[o]=t[o]}get basename(){return typeof this.path==="string"?pe.basename(this.path):void 0}set basename(e){Wn(e,"basename"),qn(e,"basename"),this.path=pe.join(this.dirname||"",e)}get dirname(){return typeof this.path==="string"?pe.dirname(this.path):void 0}set dirname(e){Hr(this.basename,"dirname"),this.path=pe.join(e||"",this.basename)}get extname(){return typeof this.path==="string"?pe.extname(this.path):void 0}set extname(e){if(qn(e,"extname"),Hr(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=pe.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){if(Ze(e))e=Br(e);if(Wn(e,"path"),this.path!==e)this.history.push(e)}get stem(){return typeof this.path==="string"?pe.basename(this.path,this.extname):void 0}set stem(e){Wn(e,"stem"),qn(e,"stem"),this.path=pe.join(this.dirname||"",e+(this.extname||""))}fail(e,t,a){let o=this.message(e,t,a);throw o.fatal=!0,o}info(e,t,a){let o=this.message(e,t,a);return o.fatal=void 0,o}message(e,t,a){let o=new q(e,t,a);if(this.path)o.name=this.path+":"+o.name,o.file=this.path;return o.fatal=!1,this.messages.push(o),o}toString(e){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function qn(e,t){if(e&&e.includes(pe.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+pe.sep+"`")}function Wn(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Hr(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function tc(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}var Ur={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}};var ac="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",rc=/-[a-z]/g,oc=/%c(?:([-+])(\d+))?/g,sc=/%x/g,ic={2:!0,1:!1,0:null},uc={};function Gn(e,t){let a=t||uc,o=a.onerror,s=e instanceof rm?e:new rm(e),i=a.fragment?Dr:Rr,l=String(s),b=i(l,{sourceCodeLocationInfo:!0,onParseError:a.onerror?p:null,scriptingEnabled:!1});return In(b,{file:s,space:a.space,verbose:a.verbose});function p(y){let O=y.code,x=cc(O),L=a[x],D=L===null||L===void 0?!0:L,P=typeof D==="number"?D:D?1:0;if(P){let F=Ur[x];Fi(F,"expected known error from `parse5`");let j=new q(B(F.reason),{place:{start:{line:y.startLine,column:y.startCol,offset:y.startOffset},end:{line:y.endLine,column:y.endCol,offset:y.endOffset}},ruleId:O,source:"hast-util-from-html"});if(s.path)j.file=s.path,j.name=s.path+":"+j.name;j.fatal=ic[P],j.note=B(F.description),j.url=F.url===!1?void 0:ac+O,Fi(o,"`internalOnerror` is not passed if `onerror` is not set"),o(j)}function B(F){return F.replace(oc,j).replace(sc,De);function j(se,z,be){let Ge=(be?Number.parseInt(be,10):0)*(z==="-"?-1:1),rt=l.charAt(y.startOffset+Ge);return dc(rt)}function De(){return fc(l.charCodeAt(y.startOffset))}}}}function cc(e){return e.replace(rc,lc)}function lc(e){return e.charAt(1).toUpperCase()}function dc(e){return e==="`"?"` ` `":e}function fc(e){return"0x"+e.toString(16).toUpperCase()}var hc=/[ \t\n\f\r]/g;function Au(e){return typeof e==="object"?e.type==="text"?Fr(e.value):!1:Fr(e)}function Fr(e){return e.replace(hc,"")===""}function $r(e){let t=Gn(e,{fragment:!0});return Yr(t.children)}function Yr(e){let t=[];for(let a of e){let o=mc(a);if(o!=null)t.push(o)}return t}function mc(e){if(e.type==="text"){if(Au(e))return null;return e.value}if(e.type==="element"){let t={tagName:e.tagName};if(Object.keys(e.properties).length>0){let{style:o,attrs:s}=pc(e.properties);if(Object.keys(s).length>0)t.attributes=s;if(Object.keys(o).length>0)t.style=o}let a=Yr(e.children);if(a.length===1&&n(a[0]))[t.textContent]=a;else if(a.length>0)t.children=a;return t}return null}function pc(e){let t={},a={};for(let[o,s]of Object.entries(e)){if(s===!1||s===void 0||s===null)continue;let i=Du(Dc,o),l=i.attribute;if(l==="style"&&n(s)){Ec(s,a);continue}if(s===!0)t[l]="";else if(Array.isArray(s))t[l]=s.join(i.commaSeparated?", ":" ");else t[l]=String(s)}return{attrs:t,style:a}}function Ec(e,t){for(let a of e.split(";")){let o=a.indexOf(":");if(o===-1)continue;let s=a.slice(0,o).trim(),i=a.slice(o+1).trim();if(s&&i)t[s]=i}}var jr=["mod","ctrl","alt","shift"],Vr=new Map([["mod","mod"],["cmd","mod"],["command","mod"],["meta","mod"],["super","mod"],["ctrl","ctrl"],["control","ctrl"],["alt","alt"],["opt","alt"],["option","alt"],["shift","shift"]]),qr=new Map([["up","arrowup"],["down","arrowdown"],["left","arrowleft"],["right","arrowright"],["esc","escape"],["space"," "],["spacebar"," "],["del","delete"],["plus","="],["return","enter"]]),bc={mod:"⌘",ctrl:"⌃",alt:"⌥",shift:"⇧"},Tc={mod:"Ctrl",ctrl:"Ctrl",alt:"Alt",shift:"Shift"},gc=new Map([["arrowup","↑"],["arrowdown","↓"],["arrowleft","←"],["arrowright","→"],[" ","Space"],["escape","Esc"],["enter","Enter"],["tab","Tab"],["delete","Delete"],["backspace","Backspace"]]);function R_(e){let t={mod:!1,ctrl:!1,alt:!1,shift:!1,key:""},a=e.split("+");for(let[o,s]of a.entries()){if(s===""){if(o>0&&a[o-1]==="")t.key="+";continue}let i=s.trim(),l=i===""?" ":i.toLowerCase(),b=Vr.get(l);if(b){t[b]=!0;continue}t.key=qr.get(l)??l}if(!t.key)throw Error(`keybinding "${e}" has no key — a chord needs more than modifiers`);return t}function Wr(e){return[...jr.filter((a)=>e[a]),e.key].join("+")}function Ru(e){return Wr(R_(e))}function Ac(e=globalThis.navigator??{}){return/mac/i.test(e.platform??e.userAgent??"")}function _c(e){return/^Digit(\d)$/.exec(e??"")?.[1]}function D_(e,t){let a=_c(e.code)??e.key.toLowerCase();if(Vr.has(a))return"";let o={mod:t?e.metaKey:e.ctrlKey,ctrl:t?e.ctrlKey:!1,alt:e.altKey,shift:e.shiftKey,key:qr.get(a)??a};return Wr(o)}function Vy(e,t){let a=R_(e),o=jr.filter((i)=>a[i]),s=gc.get(a.key)??(a.key.length===1?a.key.toUpperCase():a.key.charAt(0).toUpperCase()+a.key.slice(1));return t?o.map((i)=>bc[i]).join("")+s:[...o.map((i)=>Tc[i]),s].join("+")}class Qr extends Error{chord;scope;existingId;incomingId;constructor(e,t,a,o){super(`keybinding conflict: "${e}" in scope "${t}" is already bound to "${a}"; "${o}" cannot claim it. Rebind one, or move one to a narrower keyScope.`);this.name="KeybindingConflictError",this.chord=e,this.scope=t,this.existingId=a,this.incomingId=o}}var Cc=["palette"],yc=["global",...TA.filter((e)=>e!=="global"&&e!=="palette")];function eD(e){if(e==="palette")return Cc;if(e==="global")return yc;return[e,"global"]}function Xr(e={}){let t=e.mac??Ac(),a=new Map,o=new Map,s=new Map,i=new Map,l=new Set;function b(x){let L=x.keybinding;if(!L)return[];return(n(L)?[L]:[...L]).map((D)=>Ru(D))}function p(x){let L=a.get(x);if(!L)L=new Map,a.set(x,L);return L}function y(x,L){let D=s.get(x);if(!D)return;let P=i.get(x),B=P===void 0?"default":"override",F=P??D.chords,j=p(D.scope);if(L)for(let se of F){let z=j.get(se);if(z&&z.id!==x&&z.source==="default"&&B==="default")throw new Qr(se,D.scope,z.id,x)}let De=[];for(let se of F){let z=j.get(se);if(z&&z.id!==x){if(B==="default")continue;o.set(z.id,(o.get(z.id)??[]).filter((be)=>be!==se))}j.set(se,{id:x,source:B}),De.push(se)}o.set(x,De)}function O(){a.clear(),o.clear();for(let x of s.keys())if(i.has(x))y(x,!1);for(let x of s.keys())if(!i.has(x))y(x,!1)}return{mac:t,format(x){return Vy(x,t)},add(x){let L=x.keyScope??"global";s.set(x.id,{chords:b(x),scope:L});try{y(x.id,!0)}catch(D){throw s.delete(x.id),D}},remove(x){s.delete(x),O()},bindingsFor(x){return o.get(x)??[]},declaredFor(x){return s.get(x)?.chords??[]},setOverrides(x){i=new Map([...x].map(([L,D])=>[L,D.map((P)=>Ru(P))])),O();for(let L of l)L()},onChange(x){return l.add(x),()=>l.delete(x)},overrides(){return new Map(i)},formatBinding(x){let L=o.get(x)?.[0];return L===void 0?void 0:Vy(L,t)},resolveChord(x,L){let D=Ru(x),P=L.find((F)=>a.get(F)?.has(D)),B=P===void 0?void 0:a.get(P)?.get(D);return P===void 0||B===void 0?void 0:{chord:D,commandId:B.id,scope:P}},resolveEvent(x,L){let D=D_(x,t);return D===""?void 0:this.resolveChord(D,L)},entries(){let x=[];for(let[L,D]of a)for(let[P,B]of D)x.push({chord:P,commandId:B.id,scope:L});return x}}}function tD(e,t,a=new Set){let o=new Set,s=[];for(let i of e.entries()){if(a.has(i.commandId))continue;let l=t.find((p)=>p===i.scope);if(l===void 0)continue;let b=`${l} ${i.chord}`;if(o.has(b))continue;o.add(b),s.push({chord:i.chord,scope:l})}return s}var Sc=/^[a-z][a-z\d]*(\.[a-zA-Z\d]+)+$/,xc=/^[a-z][a-z0-9_]*$/;class Jr extends Error{commandId;requires;constructor(e,t){super(Zr(e,t));this.name="CommandUnavailableError",this.commandId=e,this.requires=t}}var Qn="a different studio state";function Zr(e,t){return`Command "${e}" is not available right now — it requires ${t}.`}function Nc(e,t){let a=e.aiTool;if(!a)return;if(!xc.test(a.name))throw Error(`command "${e.id}" aiTool name "${a.name}" is not snake_case`);let o=t.get(a.name);if(o!==void 0)throw Error(`command "${e.id}" aiTool name "${a.name}" is already projected by "${o}"`);if(!Q(a.report))throw TypeError(`command "${e.id}" declares aiTool without a report: a tool that can only say "done" is refused`);if(e.level==="application")throw Error(`command "${e.id}" is application-level and cannot project to the assistant: an application verb acts on the editor, which the model cannot see`);let s=e.args?.properties;if(e.level==="selection"&&s&&Object.hasOwn(s,"paths"))throw Error(`command "${e.id}" is selection-level and may not declare "paths": the assistant supplies it`);if((e.when||e.enablement)&&!e.requires)throw Error(`command "${e.id}" projects to the assistant but has no requires sentence; "${Qn}" is not a refusal a model can act on`)}function nb(e){let t=new Map,a=Xr(e.mac===void 0?{}:{mac:e.mac}),o=new Map;function s(p){let y=t.get(p);if(!y)throw Error(`unknown command "${p}"`);return y}function i(p,y){return p.when?.(y)??!0}function l(p,y){if(!i(p,y))return!1;return p.enablement?.(y)??!0}let b={register(p){if(!Sc.test(p.id))throw Error(`invalid command id "${p.id}" — ids are "<category>.<verb>", `+'e.g. "selection.duplicate" or "view.toggleDock.right"');if(t.has(p.id))throw Error(`duplicate command id "${p.id}" — a capability has exactly one definition site`);if(!p.title)throw Error(`command "${p.id}" has no title — the record is where actions are named`);let y=$A(p);if(y.length>0)throw Error(`command "${p.id}" ${y[0].message}`);if(Nc(p,o),a.add(p),t.set(p.id,p),p.aiTool)o.set(p.aiTool.name,p.id)},registerAll(p){for(let y of p)b.register(y)},get(p){return t.get(p)},list(){return[...t.values()]},visible(){let p=e.getContext();return[...t.values()].filter((y)=>i(y,p))},forPlacement(p){let y=e.getContext();return[...t.values()].filter((O)=>(O.menus??["palette"]).includes(p)&&i(O,y)).toSorted((O,x)=>(O.group??"").localeCompare(x.group??"")||(O.order??Number.POSITIVE_INFINITY)-(x.order??Number.POSITIVE_INFINITY)||O.title.localeCompare(x.title))},isVisible(p){return i(s(p),e.getContext())},isEnabled(p){return l(s(p),e.getContext())},disabledReason(p){let y=s(p),O=e.getContext();return l(y,O)?void 0:y.requires??Qn},refusalMessage(p){let y=b.disabledReason(p);return y===void 0?void 0:Zr(p,y)},run(p,y={}){let O=s(p),x=e.getContext();if(!l(O,x))throw new Jr(p,O.requires??Qn);let L=O.args?sM(p,O.args,y):y;return O.run(x,L)},keymap:a,handleKeyEvent(p,y){let O;for(let x of y){let L=a.resolveEvent(p,[x]);if(L&&b.isVisible(L.commandId)){O=L;break}}if(!O)return;if(!b.isEnabled(O.commandId))return O.commandId;return Tn(b,O.commandId,void 0,"Keyboard"),O.commandId},context:e.getContext};return b}var Ic=3,Oc=30;function to(e){return _(e)&&!Array.isArray(e)}function zn(e){return wp(e)}function Zt(e){let t=zn(e),a=gb(t);if(t===null||t===void 0||_(t))return a;let o=n(t)?t.length>24?`"${t.slice(0,24)}…"`:`"${t}"`:String(t);return`${a} · ${o}`}function Xn(e,t,a,o,s){if(o>=Ic)return;let i=zn(e);if(Array.isArray(i)){let b=`${t}.length`;s.push({category:a,hint:`number · ${i.length}`,label:b,token:b});return}if(!to(i))return;let l=Object.keys(i).slice(0,Oc);for(let b of l){if(b.startsWith("$"))continue;let p=i[b],y=`${t}.${b}`;s.push({category:a,hint:Zt(p),label:y,token:y}),Xn(p,y,a,o+1,s)}}function no(e,t,a=null){let o=[],s=e??{},i=t??{};for(let[l,b]of Object.entries(s)){if(l.startsWith("$"))continue;let p=Wl(b);if(p==="function")continue;let y=i[l],O=`state.${l}`;o.push({category:p,hint:Zt(y),label:O,token:O}),Xn(y,O,p,0,o)}if(a){let l=zn(a.$map);if(_(l)){let b=to(l)?l:void 0;o.push({category:"repeater",hint:Zt(b?.item),label:"item",token:"item"}),Xn(b?.item,"item","repeater",0,o),o.push({category:"repeater",hint:Zt(b?.index),label:"index",token:"index"})}}return o}function ao(e){let t=["item","index",...e],a=new Set,o=[];for(let s of t){if(!s||a.has(s))continue;a.add(s),o.push({category:"repeater",hint:"",label:s,token:s})}return o}var Lc=50;function I_(e,t){if(!Array.isArray(t)||t.length===0)return null;let a=t.lastIndexOf("map");if(a<=0)return null;let o=oe(e,t.slice(0,a));return Go(o)?o:null}function Rc(e){if(!Pe(e))return null;let{$ref:t}=e;return t.startsWith("#/state/")?t.slice(8):null}function en(e){return e.filter((t)=>!t.startsWith("$")).slice(0,Lc)}function ro(e,t,a){let o=["item","index"],{items:s}=e,i=t??{},l=Rc(s);if(l){let b=i[l];if(v(b)){if(n(b.contentType)){let L=a?.content,D=v(L)?L[b.contentType]:void 0,P=v(D)?D.schema:void 0,B=v(P)?P.properties:void 0,F=[...o,"item.id","item.body"];if(_(B))for(let j of en(Object.keys(B)))F.push(`item.data.${j}`);return F}let p=b.items,y=v(p)?p.properties:void 0;if(_(y))return[...o,...en(Object.keys(y)).map((L)=>`item.${L}`)];let O=b.default,x=Array.isArray(O)?O[0]:void 0;if(v(x))return[...o,...en(Object.keys(x)).map((L)=>`item.${L}`)]}return o}if(Array.isArray(s)){let[b]=s;if(v(b))return[...o,...en(Object.keys(b)).map((p)=>`item.${p}`)]}return o}var oo={$schema:"https://jxsuite.com/schema/v1",$id:"StudioSlashMenu",$description:"The slash menu: the element-insertion list that hangs under the caret. It is a LISTBOX rather than a `jx-menu`, and that is the one thing about this surface worth knowing — the panel must not take the keyboard, because the caret it is filtering for is in the canvas (often in the iframe realm), and every character the author types after the `/` has to keep landing there. A menu owns DOM focus by contract; this panel marks its active row and leaves the caret where it was. The rows are the kit's `jx-listbox` and `jx-option`, which is what makes that expressible rather than hand-rolled: a `jx-listbox` has no tab stop and never calls `focus()`, and the highlight is ONE string — the listbox's `active`, the id its owning field points `aria-activedescendant` at — instead of a per-row comparison the field and the rows could each answer differently. When the menu is opened BY NAME rather than by a slash there is no caret to protect, so it grows a filter field of its own and that field is what carries `aria-activedescendant`.",tagName:"jx-popover",$props:{label:"Insert element",x:{$ref:"#/state/x"},y:{$ref:"#/state/y"}},children:[{tagName:"div",attributes:{part:"body"},style:{display:"flex",flexDirection:"column",minWidth:"220px",maxHeight:"320px",minHeight:"0",fontFamily:"var(--jx-font-sans)",fontSize:"var(--jx-text-md)",'& [part="filter"]':{$description:"Borderless inside a panel that already draws a frame: a second box around the field would only be a box inside a box. The keyboard ring is given back explicitly, because a reader who arrives here by Tab has nothing else to go on.",display:"block",width:"100%",boxSizing:"border-box",flex:"0 0 auto",padding:"var(--jx-space-2) var(--jx-space-3)",border:"none",borderBottom:"1px solid var(--jx-border)",outline:"none",background:"transparent",color:"inherit",font:"inherit","::placeholder":{color:"var(--jx-fg-muted)"},":focus-visible":{outline:"var(--jx-focus-ring)",outlineOffset:"-2px"}},'& [part="list"]':{$description:"One declaration, because the list is a `jx-listbox` now and the element already draws itself: the scroll, the `min-block-size: 0` that lets it, the row rules, the highlight, the group headings and the empty sentence all live in its own definition. What is left is the one thing only this panel knows — that the list is the part of the body that gives.",flex:"1"}},children:[{tagName:"div",attributes:{part:"filter-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/showFilter"},cases:{true:{tagName:"input",attributes:{part:"filter",type:"text",role:"combobox",autocomplete:"off","aria-controls":"slash-menu-listbox","aria-expanded":"${state.expanded ? 'true' : 'false'}","aria-activedescendant":"${state.activeId || null}","aria-autocomplete":"list","aria-label":"Filter elements",placeholder:"Filter…"},value:{$ref:"#/state/filter"},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/input"},value:[{$ref:"event#/target/value"}]}]}}}},{tagName:"jx-listbox",attributes:{part:"list",id:"slash-menu-listbox"},$props:{label:"Elements",active:{$ref:"#/state/activeId"}},onselect:{$ref:"#/state/pick"},children:[{tagName:"div",attributes:{part:"empty-slot",role:"none"},$switch:{$ref:"#/state/isEmpty"},cases:{true:{tagName:"div",attributes:{part:"empty"},textContent:"No matches"}}},{$prototype:"Array",items:{$ref:"#/state/groups"},key:{$ref:"$map/item/key"},map:{tagName:"div",attributes:{part:"group",role:"group","aria-label":"${$map.item.name}"},children:[{tagName:"div",attributes:{part:"group-label-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/hasLabel"},cases:{true:{tagName:"div",attributes:{part:"group-heading","aria-hidden":"true"},textContent:"${$map.item.label}"}}},{$prototype:"Array",items:{$ref:"$map/item/rows"},key:{$ref:"$map/item/key"},map:{tagName:"jx-option",attributes:{part:"option",id:"slash-menu-option-${$map.item.index}",value:"${$map.item.key}",label:"${$map.item.label}",description:"${$map.item.description}"},onmouseenter:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/hover"},value:[{$ref:"$map/item/index"}]}]}}}]}}]}]}]};E("slash-menu",oo);var Zn="slash-menu";function so(e){return e.rows[e.activeIndex]?`slash-menu-option-${e.activeIndex}`:""}function io(e,t,a){let o=Xs("popover",Zn),s=new AbortController,i=null,l=null,b=!1,p=g({activeId:so(e),expanded:e.rows.length>0,filter:e.filter,hover:(L)=>{t.hover(L)},input:(L)=>{t.input(L)},isEmpty:e.rows.length===0,pick:(L,D)=>{let P=String(D.detail),B=p.rows.findIndex((F)=>F.key===P);if(B!==-1)t.activateRow(B)},rows:[...e.rows],groups:[...e.groups],showFilter:e.showFilter,x:e.x,y:e.y}),y=(L)=>{if(b)return;if(b=!0,s.abort(),l?.dispose(),l=null,av("popover",Zn),L)t.dismissed()},O=()=>s.signal.aborted,x=(async()=>{let L=await R("slash-menu",p,o,{signal:s.signal});if(O())return;if(l=L,i=L.root,i.setAttribute(Ve,vt("popover",Zn)),i.addEventListener("toggle",(D)=>{if(D.newState==="closed")y(!0)}),!i.hasAttribute("popover"))await new Promise((D)=>{i.addEventListener("jx-ready",()=>D(),{once:!0})});if(O())return;i.showPopover(a instanceof HTMLElement?{source:a}:void 0)})();return{close:()=>{if(b)return;if(i?.open)i.hidePopover();y(!1)},focusFilter:()=>{o.querySelector('[part="filter"]')?.focus()},host:o,ready:x,update:(L)=>{if(b)return;p.x=L.x,p.y=L.y,p.showFilter=L.showFilter,p.filter=L.filter,p.rows=[...L.rows],p.groups=[...L.groups],p.activeId=so(L),p.isEmpty=L.rows.length===0,p.expanded=L.rows.length>0}}}var wc=[{description:"Large heading",label:"Heading 1",tag:"h1"},{description:"Medium heading",label:"Heading 2",tag:"h2"},{description:"Small heading",label:"Heading 3",tag:"h3"},{description:"Plain text",label:"Paragraph",tag:"p"},{description:"Unordered list",label:"Bulleted List",tag:"ul"},{description:"Numbered list",label:"Numbered List",tag:"ol"},{description:"Quote block",label:"Blockquote",tag:"blockquote"},{description:"Insert image",label:"Image",tag:"img"},{description:"Divider line",label:"Horizontal Rule",tag:"hr"},{description:"Button element",label:"Button",tag:"button"},{description:"Anchor link",label:"Link",tag:"a"},{description:"Preformatted code",label:"Code Block",tag:"pre"},{description:"Insert table",label:"Table",tag:"table"},{description:"Container",label:"Div",tag:"div"},{description:"Section container",label:"Section",tag:"section"}],Ct=null,ge=0,ea=!1,tn="",Ie=[],et=!1,ta=null,He=null;function Wy(e,t,a){fo(Me(e),t,a,e)}function QR(e,t,a){fo(e,t,a)}function uo(){return[...wc,...UA()]}function kc(){return Ct?.commands||uo()}function Pc(e,t){let a=[];for(let[o,s]of e.entries()){let i=t[o]?.group??"",l=a.at(-1);if(l?.label===i)l.rows.push(s);else a.push({hasLabel:i!=="",key:i||"elements",label:i,name:i||"Elements",rows:[s]})}return a}function co(e,t){return e?t.filter((a)=>a.label.toLowerCase().includes(e)||a.tag.toLowerCase().includes(e)):t}function lo(){let e=ta,t=Ie.map((a,o)=>({description:a.description,index:o,key:a.tag,label:a.label}));return{activeIndex:ge,filter:tn,groups:Pc(t,Ie),rows:t,showFilter:ea,x:e?e.left:0,y:e?e.bottom:0}}function yt(){He?.update(lo())}function fo(e,t,a,o){if(Ct=a,ta=e,Ie=co(t,a.commands||uo()),Ie.length===0&&!a.showFilter){mp();return}if(ge=0,ea=a.showFilter||!1,He){yt();return}if(et=!0,tn="",document.addEventListener("keydown",po,!0),He=io(lo(),{activateRow:(s)=>{let i=Ie[s];if(i)mo(i)},dismissed:Mc,hover:(s)=>{ge=s,yt()},input:Bc},o??null),ea){let s=He;s.ready.then(()=>{if(He===s)s.focusFilter()})}}function ho(){let e=Ct;return et=!1,Ct=null,ta=null,Ie=[],tn="",ge=0,document.removeEventListener("keydown",po,!0),e}function mp(){if(!et)return;let e=He;He=null;let t=ho();e?.close(),t?.onDismiss?.()}function Mc(){if(!et)return;He=null,ho()?.onDismiss?.()}function mo(e){let t=Ct;mp(),t?.onSelect(e)}function Bc(e){tn=e,Ie=co(e.toLowerCase(),kc()),ge=0,yt()}function nE(e){if(!et)return;let t=Ie.length;if(e==="ArrowDown"){if(t===0)return;ge=(ge+1)%t,yt()}else if(e==="ArrowUp"){if(t===0)return;ge=(ge-1+t)%t,yt()}else if(e==="Enter"){let a=Ie[ge];if(a)mo(a)}else if(e==="Escape")mp()}function po(e){if(!et)return;if(["ArrowDown","ArrowUp","Enter","Escape"].includes(e.key))e.preventDefault(),e.stopPropagation(),nE(e.key)}var Hc=new Map([["article","Article"],["aside","Aside"],["blockquote","Blockquote"],["div","Div"],["footer","Footer"],["h1","Heading 1"],["h2","Heading 2"],["h3","Heading 3"],["h4","Heading 4"],["h5","Heading 5"],["h6","Heading 6"],["header","Header"],["main","Main"],["nav","Nav"],["ol","Numbered List"],["p","Paragraph"],["search","Search"],["section","Section"],["ul","Bulleted List"]]),Uc=SC.$convertGroups;function Eo(e,t){let a=Mm[e];if(!a?.$convertTo)return[];let o=t&&a.$convertToWhenEmpty?a.$convertToWhenEmpty:[a.$convertTo],s=new Set;for(let i of o)for(let l of Uc[i]||[])if(l!==e)s.add(l);return[...s].map((i)=>({description:"",label:Hc.get(i)||i.charAt(0).toUpperCase()+i.slice(1),tag:i}))}var bo={$schema:"https://jxsuite.com/schema/v1",$id:"StudioBlockActionBar",$description:"The floating action bar over the canvas selection (studio.md §4.4, studio-ui-guidelines.md §8.6), as a Jx document over the kit. ONE SHAPE is the whole rule this markup exists to keep: the parent selector, the element badge, the drag handle and every verb are drawn on every selection, and a control that cannot act is DISABLED rather than removed — a toolbar whose buttons move under the cursor is worse than one with a greyed button. Nothing here decides what a verb is called, whether it can act or what its chord reads: `panels/block-action-bar.ts` projects the command registry into `verbs` and `formats`, already resolved to a glyph, a name, a tooltip and a refusal, and this document draws them. The toolbar role, the roving caret and the arrow keys are `jx-action-group`'s, so no keyboard code rides along; Escape is the one key this document claims, because leaving the bar means going back to the canvas and only the host knows where that is. The drag handle is an ISLAND (studio-ui-guidelines.md §9.4): the document draws the node and `surfaces/block-action-bar.ts` attaches the pragmatic-dnd registration to it through `onNodeCreated`. Position is a DECISION measured against the selection rect, so it arrives as two numbers the flow projects — `barX` and `barY` — rather than as a layout this document could compute; the `style` object below binds them, because a style declaration may read state like any other value (spec.md §9.1).",tagName:"div",attributes:{part:"root",role:"none"},style:{$description:"The `.block-action-bar` rules that used to live in `styles/canvas.css`, re-valued onto the kit's tokens. The bar is `position: fixed` because its anchor is a rect in viewport space that crossed the iframe bridge; the layer it sits in has no clipping, which is why the host clamps it rather than letting overflow do it.\n\nThe two placement properties are declared HERE, bound to the flow's measured numbers. They used to travel as a `style` ATTRIBUTE the flow assembled into one string, on the belief that a document cannot bind a style declaration to state. It can, and always could: a reactive value on a custom property in a rule targeting the element itself is written inline under the author's own name (spec.md §9.1), which is precisely the attribute that string was hand-writing. The bar reads them by name through the ordinary cascade — the root is `display: contents`, so a custom property set on it inherits down — and `panels/block-action-bar.ts` overrides `--jx-bar-x` on the bar itself when it clamps, because a value set on an element beats one it inherits — which is also why that clamp releases its own previous write before it measures, or the bar would be pinned at the right edge for the rest of the session.",display:"contents","--jx-bar-x":"${state.barX}px","--jx-bar-y":"${state.barY}px",'& [part="bar"]':{position:"fixed",left:"var(--jx-bar-x, 0px)",top:"var(--jx-bar-y, 0px)",zIndex:"100",pointerEvents:"auto",display:"flex",alignItems:"center",gap:"2px",padding:"2px var(--jx-space-2)",background:"var(--jx-bg-panel)",border:"1px solid var(--jx-border)",borderRadius:"var(--jx-radius-sm)",boxShadow:"var(--jx-shadow-popover)",whiteSpace:"nowrap",fontSize:"var(--jx-text-xs)"},'& [part="bar"][data-offscreen]':{$description:"The anchor scrolled out of the stage. Hidden by `visibility` rather than by the `visible` switch, so the drag registration and the caret survive a scroll that will bring the anchor straight back.",visibility:"hidden"},'& [part="tools"]':{display:"flex",alignItems:"center",gap:"2px"},'& [part="tag"] > [part="control"]':{$description:"The element badge. It is a button on every selection and disabled where the tag cannot be changed — a component instance, a repeater — which is studio-ui-guidelines.md §8.6's rule applied to the one control that used to change shape.",minWidth:"0",minHeight:"0",maxWidth:"140px",padding:"0 var(--jx-space-2)",border:"none",borderRadius:"var(--jx-radius-xs)",background:"var(--jx-tag)",color:"var(--jx-accent-fg)",fontSize:"var(--jx-text-xs)",overflow:"hidden",textOverflow:"ellipsis",display:"block",":hover":{background:"var(--jx-accent)",color:"var(--jx-accent-fg)"},":disabled":{opacity:"1",background:"var(--jx-tag)",cursor:"default"}},'& [part="tag-text"]':{overflow:"hidden",textOverflow:"ellipsis",display:"block"},'& [part="drag-handle"]':{display:"inline-flex",alignItems:"center",padding:"0 var(--jx-space-2)",lineHeight:"1",color:"var(--jx-fg-dim)",cursor:"grab",opacity:"0.7",userSelect:"none",":hover":{opacity:"1"},":active":{cursor:"grabbing"}},'& [part="drag-handle"][aria-disabled="true"]':{$description:"ONE shape (studio-ui-guidelines.md §8.6): the handle is greyed on the document root, never removed — a toolbar whose controls move under the cursor is worse than one with a dead affordance.",cursor:"default",opacity:"0.3"},"& jx-divider":{height:"20px",margin:"0 2px"},'& [part="verb"][data-destructive] > [part="control"]':{color:"var(--jx-danger)"},'& [part="cmd-label"]':{$description:"A record with no icon draws its title instead of a blank button.",padding:"0 2px",fontSize:"var(--jx-text-xs)"},'& [part="format"], & [part="overflow-slot"], & [part="format-slot"]':{display:"contents"},'& [part="link"]':{$description:"No display here. A closed popover is hidden by the platform's own `[popover]:not(:popover-open)` rule, which the kit lets through with `display: revert-layer`; a `display` declared on the part beats it, and the closed panel stayed laid out at the viewport origin, invisible at opacity 0 and still taking every click and the text cursor meant for the workspace tabs beneath it.",padding:"var(--jx-space-3)"},'& [part="link-field"]':{width:"200px"}},$switch:{$ref:"#/state/visible"},cases:{true:{tagName:"div",attributes:{part:"bar","data-jx-region":"overlay.menu:block-action-bar","data-offscreen":"${state.offscreen ? '' : null}"},onmousedown:{$ref:"#/state/guardFocus"},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Escape:[{operator:"call",target:{$ref:"#/state/leaveBar"},value:[]},{preventDefault:!0}]}}]},children:[{tagName:"jx-action-group",attributes:{part:"tools"},$props:{selects:"none",compact:!1,label:"Block actions",orientation:"horizontal"},children:[{tagName:"jx-action-button",attributes:{part:"parent","data-command-id":"selection.selectParent"},$props:{size:"sm",quiet:!0,icon:"arrow-elbow-left-up",label:{$ref:"#/state/parentLabel"},hint:{$ref:"#/state/parentHint"},disabled:{$ref:"#/state/parentDisabled"}},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/selectParent"},value:[]}]}},{tagName:"jx-action-button",attributes:{part:"tag"},$props:{size:"sm",quiet:!0,label:{$ref:"#/state/tagLabel"},hint:{$ref:"#/state/tagHint"},haspopup:{$ref:"#/state/tagPopup"},disabled:{$ref:"#/state/tagDisabled"}},onclick:{$ref:"#/state/openTagMenu"},children:[{tagName:"span",attributes:{part:"tag-text"},textContent:"${state.tagLabel}"}]},{tagName:"span",attributes:{part:"drag-handle",role:"button","aria-label":"Drag to reorder","aria-disabled":"${state.canDrag ? null : 'true'}",title:"${state.dragHint}"},textContent:"⠿"},{tagName:"jx-divider",$props:{orientation:"vertical"}},{$prototype:"Array",items:{$ref:"#/state/verbs"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"verb","data-command-id":"${$map.item.id}","data-destructive":"${$map.item.destructive ? '' : null}"},$props:{size:"sm",quiet:!0,icon:{$ref:"$map/item/icon"},label:{$ref:"$map/item/title"},hint:{$ref:"$map/item/tooltip"},disabled:{$ref:"$map/item/disabled"}},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/run"},value:[{$ref:"$map/item/id"}]}]},children:[{tagName:"span",attributes:{part:"label-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/hasIcon"},cases:{false:{tagName:"span",attributes:{part:"cmd-label"},textContent:"${$map.item.title}"}}}]}},{tagName:"span",attributes:{part:"overflow-slot",role:"none"},$switch:{$ref:"#/state/hasOverflow"},cases:{true:{tagName:"jx-action-button",attributes:{part:"overflow"},$props:{size:"sm",quiet:!0,icon:"dots-three-vertical",label:"More block actions",hint:"More block actions",haspopup:"menu",expanded:{$ref:"#/state/overflowOpen"}},onclick:{$ref:"#/state/openOverflow"}}}},{tagName:"span",attributes:{part:"format-slot",role:"none"},$switch:{$ref:"#/state/showFormat"},cases:{true:{tagName:"span",attributes:{part:"format",role:"none"},children:[{tagName:"jx-divider",$props:{orientation:"vertical"}},{$prototype:"Array",items:{$ref:"#/state/formats"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"format-button","data-command-id":"${$map.item.id}","data-tag":"${$map.item.value}"},$props:{size:"sm",quiet:!0,emphasized:!0,toggles:!0,icon:{$ref:"$map/item/icon"},label:{$ref:"$map/item/title"},hint:{$ref:"$map/item/tooltip"},selected:{$ref:"$map/item/selected"},disabled:{$ref:"$map/item/disabled"}},onclick:{$prototype:"Function",body:[{stopPropagation:!0}]},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/run"},value:[{$ref:"$map/item/id"}]}]},children:[{tagName:"span",attributes:{part:"label-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/hasIcon"},cases:{false:{tagName:"span",attributes:{part:"cmd-label"},textContent:"${$map.item.title}"}}}]}},{tagName:"jx-action-button",attributes:{part:"insert-data","data-jx-region":"overlay.menu:block-action-bar/insertData"},$props:{size:"sm",quiet:!0,icon:"database",label:"Insert data",hint:"Insert data",haspopup:"menu"},onclick:{$ref:"#/state/openMergeTags"}}]}}}]},{tagName:"jx-popover",attributes:{part:"link"},$props:{label:"Link URL",x:{$ref:"#/state/linkX"},y:{$ref:"#/state/linkY"}},children:[{tagName:"jx-textfield",attributes:{part:"link-field"},$props:{size:"sm",type:"url",label:"Link URL",placeholder:"https://...",value:{$ref:"#/state/linkValue"}},oninput:{$ref:"#/state/linkInput"},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{operator:"call",target:{$ref:"#/state/applyLink"},value:[]},{preventDefault:!0}],Escape:[{operator:"call",target:{$ref:"#/state/closeLink"},value:[]},{preventDefault:!0},{stopPropagation:!0}]}}]}},{tagName:"jx-action-button",attributes:{part:"link-apply"},$props:{size:"sm",label:{$ref:"#/state/linkApplyLabel"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/applyLink"},value:[]}]},children:[{tagName:"span",textContent:"${state.linkApplyLabel}"}]},{tagName:"span",attributes:{part:"link-remove-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/linkExisting"},cases:{true:{tagName:"jx-action-button",attributes:{part:"link-remove"},$props:{size:"sm",label:"Remove"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/removeLink"},value:[]}]},children:[{tagName:"span",textContent:"Remove"}]}}}]}]}}};E("block-action-bar",bo);function nn(){return{barX:0,barY:0,canDrag:!1,dragHint:"",formats:[],hasOverflow:!1,offscreen:!1,overflowOpen:!1,parentDisabled:!0,parentHint:"",parentLabel:"Select Parent",showFormat:!1,tagDisabled:!0,tagHint:"",tagLabel:"",tagPopup:"",verbs:[],visible:!1}}function $c(e){let t=n(e)?void 0:e.attributes?.part;return n(t)?t:""}function Yc(e){let t=e?.$map,a=v(t)?t.item:void 0,o=v(a)?a.id:void 0;return n(o)?o:""}function To(e,t){let a=new Map,o=null,s=null,i=null,l=null,b=!1,p=()=>{if(b=!1,i?.open)i.hidePopover()},y=g({...nn(),applyLink:()=>{let O=y.linkValue;p(),t.applyLink(O)},closeLink:p,guardFocus:(O,x)=>{let{target:L}=x;if(L instanceof Element&&L.closest('[part="drag-handle"], [part="tag"], [part="link"]'))return;x.preventDefault()},leaveBar:()=>t.leaveBar(),linkApplyLabel:"Apply",linkExisting:!1,linkInput:(O,x)=>{let{target:L}=x,D=L!==null&&"value"in L?L.value:void 0;y.linkValue=n(D)?D:""},linkValue:"",linkX:0,linkY:0,openMergeTags:(O,x)=>{x.stopPropagation(),t.openMergeTags(x.currentTarget)},openOverflow:(O,x)=>{x.stopPropagation(),t.openOverflow(x.currentTarget)},openTagMenu:(O,x)=>{x.stopPropagation(),t.openTagMenu(x.currentTarget)},removeLink:()=>{p(),t.removeLink()},run:(O)=>t.run(O),selectParent:()=>t.selectParent()});return R("block-action-bar",y,e,{onNodeCreated:(O,x,L,D)=>{if(!(O instanceof HTMLElement))return;let P=$c(L);if(P==="bar"){o=O;return}if(P==="tools"){s=O;return}if(P==="link"){i=O;return}if(P==="link-field"){l=O;return}if(P==="drag-handle"){t.onDragHandle(O);return}let B=P==="verb"||P==="format-button"?Yc(D):"";if(B!=="")a.set(B,O)}}),{bar:()=>o?.isConnected===!0?o:null,button:(O)=>{let x=a.get(O)??null;return x?.isConnected===!0?x:null},closeLink:p,linkOpen:()=>b,openLink(O,x,L){y.linkValue=x??"",y.linkExisting=L,y.linkApplyLabel=L?"Update":"Apply",b=!0;let D=i;if(!D)return;let P=()=>{if(!b)return;let B=Me(O);y.linkX=Math.round(B.left),y.linkY=Math.round(B.bottom),D.showPopover({source:O}),l?.focus()};if(D.hasAttribute("popover"))P();else D.addEventListener("jx-ready",P,{once:!0})},toolbar:()=>s?.isConnected===!0?s:null,update(O){if(!O.visible)p();Object.assign(y,O)}}}var nt=null;function nD(e){if(nt=e,!go)document.addEventListener("keydown",ll),document.addEventListener("scroll",jc,{capture:!0,passive:!0}),go=!0}var go=!1,na=!1;function jc(e){if(!nt||hl())return;if(h.value?.session.selection.length===0)return;let t=nt.getCanvasMode();if(t!=="design"&&t!=="edit")return;if(!(e.target===document||e.target instanceof Node&&nd(e.target)!==null)||na)return;na=!0,requestAnimationFrame(()=>{na=!1,Vc()})}function Vc(){let e=Ae;if(!e||!Le.visible){qy();return}let t=OC(),a=t?_o(t):null;if(!a){qe({...Le,offscreen:!0});return}qe({...Le,barX:a.left,barY:a.top,offscreen:!1}),requestAnimationFrame(()=>{let o=e.bar();if(o)Co(o)})}var aa=38;function _o(e){let t=vr(),a=dx(t)?.scrollContainer??Ch(t),o=a?Me(a):null;if(o&&(e.top+e.height<o.top||e.top>o.bottom))return null;let s=o?o.top:80-aa,i=e.top-aa;if(i>=s)return{left:e.left,top:i};let l=e.top+e.height+4;return{left:e.left,top:o?Math.max(o.top,Math.min(l,o.bottom-aa)):l}}function Co(e){e.style.removeProperty("--jx-bar-x");let t=Me(e);if(t.right>window.innerWidth)e.style.setProperty("--jx-bar-x",`${Math.max(0,window.innerWidth-t.width)}px`)}function iE(){let e=(t,a,o,s)=>{let i={category:"Edit",group:"6_format",icon:o,id:`format.${t}`,keyScope:"caret",level:"selection",menus:["blockbar/format","palette"],requires:"a text caret in the canvas",run:()=>{dh({command:t})},title:a,undo:"document",when:(l)=>l.caret.inCanvas};if(s!==void 0)i.keybinding=s;return i};return[e("bold","Bold","text-b","mod+b"),e("italic","Italic","text-italic","mod+i"),e("underline","Underline","text-underline","mod+u"),e("strikethrough","Strikethrough","text-strikethrough"),e("superscript","Superscript","text-superscript"),e("subscript","Subscript","text-subscript"),e("code","Code","code","mod+`"),{category:"Edit",group:"6_format",icon:"link",id:"format.link",keybinding:"mod+k",keyScope:"caret",level:"selection",menus:["blockbar/format","palette"],requires:"a text caret in the canvas",run:()=>{ml()},title:"Link…",undo:"document",when:(t)=>t.caret.inCanvas}]}var tt=null;function xt(){return tt??Oe(h.value?.session.selection)}function yo(){if(tt)return[tt];return h.value?.session.selection??[]}function rn(e,t){let a=tt;tt=e;try{return t()}finally{tt=a}}function qc(e){let t=e?.tagName,a=it(t);return Boolean(a.includes("-")&&Ne.some((o)=>o.tagName===a))}function Wc(){let e=h.value,t=xt(),a=e&&t?oe(e.doc.document,t):null;return YC({caret:{active:nc().editing,inCanvas:nc().editing},editor:{kind:e?Qs(e.session.ui.canvasMode):"none"},document:{open:Boolean(e)},selection:{count:t?1:0,isComponentInstance:qc(a),isRoot:t?Vt(t)===null:!1,kind:it(a?.tagName)}})}function _e(e=xt()){let t=h.value;if(!t||!e)return null;if(Qs(t.session.ui.canvasMode)!=="canvas")return null;let a=zi(e),o=Vt(e);if(!Y(a)||!o)return null;let s=oe(t.doc.document,o);if(!s)return null;return{index:a,parentPath:o,path:e,siblings:rr(s),tab:t}}function Gc(e){if(!_(e))return!1;if(ig.has((it(e.tagName)||"div").toLowerCase()))return!1;let{children:t}=e;if(!t)return!1;if(!Array.isArray(t))return Go(t);return t.length===0||t.some((a)=>_(a)&&!cx(a,e))}function Qc(){let e=_e();return e!==null&&e.index>0}function Xc(){let e=_e();return e!==null&&e.index<e.siblings.length-1}function So(){let e=_e();return e!==null&&e.index>0&&Gc(e.siblings[e.index-1])}function zc(){let e=_e();return e!==null&&Vt(e.parentPath)!==null&&Y(zi(e.parentPath))}function Jc(){let e=_e();if(!e||e.index===0)return;let{index:t,parentPath:a,path:o,tab:s}=e;Z(s,(i)=>Kp(i,o,a,t-1)),s.session.selection=[[...a,"children",t-1]]}function Zc(){let e=_e();if(!e||e.index>=e.siblings.length-1)return;let{index:t,parentPath:a,path:o,tab:s}=e;Z(s,(i)=>Kp(i,o,a,t+2)),s.session.selection=[[...a,"children",t+1]]}function el(){let e=_e();if(!So()||!e)return;let{index:t,parentPath:a,path:o,tab:s}=e,i=[...a,"children",t-1],{length:l}=rr(oe(s.doc.document,i));Z(s,(b)=>Kp(b,o,i,l)),s.session.selection=[[...i,"children",l]]}function tl(){let e=_e();if(!e)return;let t=Vt(e.parentPath),a=zi(e.parentPath);if(!t||!Y(a))return;Z(e.tab,(o)=>Kp(o,e.path,t,a+1)),e.tab.session.selection=[[...t,"children",a+1]]}function nl(){let e=h.value,t=yo(),a=xt();if(!e||!a||sg(t).length===0)return;let o=e.doc.document;if(Z(e,(i)=>Ym(i,t)),e.doc.document===o)return;let s=Vt(a);e.session.selection=s?[s]:[]}function al(){let e=h.value,t=yo();if(!e||t.length===0)return;Z(e,(a)=>n0(a,t))}function rl(){let e=h.value,t=xt(),a=t?Vt(t):null;if(e&&a)e.session.selection=[a]}var an=(e)=>e.selection.count>0;function Uy(e,t){e.registerAll([{category:"Selection",enablement:Qc,group:"1_move_1",icon:"arrow-up",id:"selection.moveUp",keyScope:"canvas",level:"selection",menus:["blockbar","outline/row"],requires:"an element with a sibling above it",run:()=>Jc(),title:"Move Up",undo:"document",when:an},{category:"Selection",enablement:Xc,group:"1_move_2",icon:"arrow-down",id:"selection.moveDown",keyScope:"canvas",level:"selection",menus:["blockbar","outline/row"],requires:"an element with a sibling below it",run:()=>Zc(),title:"Move Down",undo:"document",when:an},{category:"Selection",enablement:So,group:"1_move_3",icon:"arrow-right",id:"selection.moveIn",keyScope:"canvas",level:"selection",menus:["outline/row"],requires:"a container directly above the element",run:()=>el(),title:"Move Into Previous",undo:"document",when:an},{category:"Selection",enablement:zc,group:"1_move_4",icon:"arrow-left",id:"selection.moveOut",keyScope:"canvas",level:"selection",menus:["outline/row"],requires:"an element nested inside another",run:()=>tl(),title:"Move Out of Parent",undo:"document",when:an},{category:"Selection",enablement:(a)=>Boolean(a.selection.kind)&&!a.selection.isRoot&&a.editor.kind==="canvas",group:"4_component",icon:"cube",id:"selection.convertToComponent",level:"selection",menus:["blockbar","context/element","palette"],requires:"an element that is not the document root",run:()=>{t.convertToComponent()},title:"Convert to Component",undo:"project",when:(a)=>a.selection.count>0&&!a.selection.isComponentInstance},{category:"Selection",group:"4_component",icon:"pencil-simple",id:"selection.editComponent",level:"selection",menus:["blockbar","context/element","palette"],requires:"a component instance",run:()=>{let a=ol();if(a)t.navigateToComponent(a)},title:"Edit Component",undo:"none",when:(a)=>a.selection.isComponentInstance}])}function ol(){let e=h.value,t=xt(),a=e&&t?oe(e.doc.document,t):null;return Ne.find((s)=>s.tagName===a?.tagName)?.path??null}var ra=null;function Ue(){if(ra)return ra;let e=nb({getContext:Wc}),t={...B_(),deleteSelection:nl,duplicateSelection:al,selectParent:rl};return e.registerAll(lm(t).filter((a)=>a.level==="selection")),Uy(e,{convertToComponent:()=>dm(),navigateToComponent:(a)=>nt?.navigateToComponent(a)}),e.registerAll(iE()),ra=e,e}var oa=5;function ia(e,t){let a=e.disabledReason(t.id);if(a!==void 0)return`${t.title} — requires ${a}`;let o=e.keymap.formatBinding(t.id);return o?`${t.title} (${o})`:t.title}function St(e,t,a){let o=()=>{if(e.isEnabled(t))Tn(e,t,void 0,"Editor")};if(a)rn(a,o);else o()}function Ao(e,t,a={}){return{destructive:t.destructive===!0,disabled:a.disabled??e.disabledReason(t.id)!==void 0,hasIcon:Boolean(t.icon),icon:t.icon??"",id:t.id,selected:a.selected??!1,title:t.title,tooltip:ia(e,t),value:a.value??""}}var Ae=null,Le=nn();function qe(e){Le=e,Ae?.update(e)}function sl(){if(!st.blockActionBarEl)st.blockActionBarEl=Xs("popover","block-action-bar");return Ae??=To(st.blockActionBarEl,{applyLink:(e)=>{dh({command:"link",href:e||""})},leaveBar:()=>{ua(),cl()},onDragHandle:il,openMergeTags:fl,openOverflow:(e)=>{let t=Ue();ca(e,t,t.forPlacement("blockbar").slice(oa))},openTagMenu:dl,removeLink:()=>{dh({command:"link",href:null})},run:(e)=>St(Ue(),e),selectParent:()=>St(Ue(),"selection.selectParent")}),Ae}function il(e){st.selDragCleanup?.(),st.selDragCleanup=zr({canDrag:()=>_e(Oe(h.value?.session.selection))!==null,element:e,getInitialData:()=>({path:[...Oe(h.value?.session.selection)??[]],type:"tree-node"}),onGenerateDragPreview:({nativeSetDragImage:t})=>{ul({nativeSetDragImage:t})}})}var je=null;function ua(){let e=je;if(je=null,e?.close(),Le.overflowOpen)qe({...Le,overflowOpen:!1})}function ca(e,t,a,o=null){ua();let s=()=>a.map((l,b)=>{let p=t.keymap.formatBinding(l.id),y=t.disabledReason(l.id),O={destructive:l.destructive===!0,disabled:y!==void 0,dividerAbove:b>0&&l.destructive===!0,id:l.id,run:()=>{St(t,l.id,o)},title:l.title};if(p)O.chord=p;if(y!==void 0)O.requires=y;return O}),i=o?rn(o,s):s();if(je=zt({label:"More block actions",onClosed:(l)=>{if(je===l){if(je=null,Le.overflowOpen)qe({...Le,overflowOpen:!1})}},opener:e,region:"block-actions",rows:i}),!o)qe({...Le,overflowOpen:!0})}function cl(){let e=Ch(vr());(e?.querySelector("iframe.jx-canvas-iframe")??e)?.focus()}function ll(e){if(e.key!=="ArrowUp"||!e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;if(sv())return;let t=Ae?.toolbar();if(!t)return;e.preventDefault(),dg(t,0)}function xo(e){if(!e)return[];let t=it(e.tagName);if(t.includes("-")&&Ne.some((l)=>l.tagName===t)||e.$prototype==="Array")return[];let o=rr(e),[s]=o,i=!e.textContent&&(o.length===0||o.length===1&&_(s)&&s.tagName==="br");return Eo((t||"div").toLowerCase(),i)}function dl(e){let t=h.value,a=Oe(t?.session.selection),o=t&&a?oe(t.doc.document,a):null,s=xo(o);if(!a||s.length===0)return;Wy(e,"",{commands:s,onSelect:(i)=>{Z(h.value,(l)=>{Qe(l,a,"tagName",i.tag)})},showFilter:s.length>6})}function fl(e){let t=h.value,a=t?.doc.document.state??{},o=no(a,null,null),s=nc().snapshot?.path??Oe(t?.session.selection),i=t&&s?I_(t.doc.document,s):null;if(i&&t){let l=ro(i,t.doc.document.state,C?.projectConfig);o.push(...ao(l))}Wy(e,"",{commands:o.map((l)=>({description:l.hint,label:l.label,tag:l.token})),onSelect:(l)=>dh({command:"insertData",token:l.tag}),showFilter:!0})}function oE(){Ae?.closeLink()}function hl(){return Ae?.linkOpen()===!0}function ml(){let e=Ae,t=e?.button("format.link")??e?.bar();if(!e||!t)return;let a=nc().snapshot?.link??{active:!1,href:null};e.openLink(t,a.href,a.active)}function N_(){Ke=null,ua(),sa()}function sa(){if(Ae)qe({...nn(),visible:!1});st.selDragCleanup?.(),st.selDragCleanup=null}var Ke=null;function No(e,t){return JSON.stringify([e?.id??null,t])}function iD(){N_();let e=h.value;Ke={key:No(e,Oe(e?.session.selection))}}function oD(){if(!Ke)return;Ke=null,qy()}function rD(e){if(!(e instanceof Node))return!1;return[st.blockActionBarEl,je?.host??null,Xs("popover","slash-menu")].some((a)=>a!=null&&a.contains(e))}function pl(){let e=h.value,t=nt?.getCanvasMode(),a=Oe(e?.session.selection);if(!e||!a||t!=="design"&&t!=="edit")return null;let o=oe(e.doc.document,a);if(!o)return null;let s=OC(),i=s?_o(s):null;if(!i)return null;let l=Ue(),b=(it(o.tagName)||"div").toLowerCase(),{editingProp:p,snapshot:y}=nc(),O=GA(b)||[],x=!p&&O.length>0,L=y?.collapsed??!0,D=O.flatMap((ve)=>{let _a=l.get(`format.${ve.command}`);return _a?[Ao(l,_a,{disabled:L&&ve.command!=="link",selected:y?.activeTags.includes(ve.tag)===!0,value:ve.tag})]:[]}),P=l.forPlacement("blockbar"),B=Vt(a),F=B?oe(e.doc.document,B):null,j=l.get("selection.selectParent"),De=j?.title??"Select Parent",se=F?`Select parent: ${kr(F)}`:De,z=j?l.keymap.formatBinding(j.id):void 0,be=xo(o),Ge=(o.$prototype==="Array"?kr(o):o.$id||it(o.tagName)||"div")+(p?` · ${p}`:""),rt=_e(a)!==null;return{barX:i.left,barY:i.top,canDrag:rt,dragHint:rt?"Drag to reorder":"Drag to reorder — the document root cannot move",formats:D,hasOverflow:P.length>oa,offscreen:!1,overflowOpen:je!==null,parentDisabled:!B,parentHint:z?`${se} (${z})`:se,parentLabel:se,showFormat:x,tagDisabled:be.length===0,tagHint:be.length>0?"Change element type":Ge,tagLabel:Ge,tagPopup:be.length>0?"menu":"",verbs:P.slice(0,oa).map((ve)=>Ao(l,ve)),visible:!0}}function qy(){if(!nt)return;sl();let e=h.value,t=Oe(e?.session.selection);if(Ke){if(Ke.key===No(e,t)){sa();return}Ke=null}let a=pl();if(!a){sa();return}qe(a),requestAnimationFrame(()=>{let o=Ae?.bar();if(o)Co(o)})}var sn="web application/jx+json";function Oo(e){if(n(e))return e;let t=it(e.tagName).split("|")[0]||"div",a="";if(e.attributes)for(let[s,i]of Object.entries(e.attributes)){if(i===null||_(i))continue;a+=i===""?` ${s}`:` ${s}="${String(i).replaceAll('"',""")}"`}if(e.style){let s=Object.entries(e.style).map(([i,l])=>`${i}:${l}`).join(";");if(s)a+=` style="${s.replaceAll('"',""")}"`}let o="";if(n(e.textContent))o=e.textContent;else if(Array.isArray(e.children))o=e.children.map((s)=>Oo(s)).join("");return`<${t}${a}>${o}</${t}>`}async function Lo(e){m.clipboard=e;try{let t=new Blob([JSON.stringify(e)],{type:sn}),a=new Blob([Oo(e)],{type:"text/html"});await navigator.clipboard.write([new ClipboardItem({[sn]:t,"text/html":a})])}catch{try{await navigator.clipboard.writeText(JSON.stringify(e))}catch{}}}async function da(){try{let e=await navigator.clipboard.read();for(let t of e){if(t.types.includes(sn)){let a=await t.getType(sn);return[JSON.parse(await a.text())]}if(t.types.includes("text/html")){let o=await(await t.getType("text/html")).text(),i=$r(o).map((l)=>n(l)?{tagName:"p",textContent:l}:l);if(i.length>0)return i}if(t.types.includes("text/plain")){let o=await(await t.getType("text/plain")).text();try{let s=JSON.parse(o);if(Jn(s)&&s.tagName)return[s]}catch{}if(o.trim())return[{tagName:"p",textContent:o.trim()}]}}}catch{if(m.clipboard)return[ir(m.clipboard)]}return null}async function El(){let e=h.value,t=Oe(e?.session.selection);if(!e||!t)return;let a=oe(e.doc.document,t);if(!a)return;let o=ir(a);await Lo(o),w.success("Copied",{key:"clipboard"})}async function bl(){let e=h.value,t=Oe(e?.session.selection);if(!e||!t||t.length<2)return;let a=oe(e.doc.document,t);if(!a)return;let o=ir(a);await Lo(o);let s=e.session.selection.filter((i)=>i.length>=2);if(!Z(e,(i)=>Ym(i,s)))return;w.success("Cut",{action:"edit.undo",key:"clipboard"})}async function cD(){let e=h.value;if(!e)return;let t=await da();if(!t||t.length===0)return;let a=Oe(e.session.selection),o=a??[],s=oe(e.doc.document,o);if(!s)return;if(a&&a.length>=2){let i=Vt(a),l=zi(a);Z(e,(b)=>{for(let p=0;p<t.length;p++)or(b,i,l+1+p,t[p])})}else{let i=Array.isArray(s.children)?s.children.length:0;Z(e,(l)=>{for(let b=0;b<t.length;b++)or(l,o,i+b,t[b])})}w.success("Pasted",{action:"edit.undo",key:"clipboard"})}function Ro(e){return e.$prototype==="Array"}function Do(e){let t=()=>e.target()!==null,a=()=>{let l=h.value;return Boolean(l)&&Qs(l.session.ui.canvasMode)==="canvas"},o=()=>{let l=e.target();return l!==null&&ru(l.path)&&a()},s=()=>{let l=e.target();return l!==null&&!Ro(l.node)},i="an element with a sibling position — not the page root or a repeater item";return[{id:"edit.pasteAfter",title:"Paste after",category:"Edit",level:"selection",keyScope:"canvas",menus:["context/element","palette"],group:"1_clipboard",undo:"document",when:()=>t()&&a(),enablement:()=>o()&&s(),requires:"an element with a sibling position — not the page root or a repeater item",run:async()=>{let l=e.target(),b=await da();if(!l||!b||b.length===0)return;let p=Vt(l.path),y=zi(l.path);Z(h.value,(O)=>{for(let[x,L]of b.entries())or(O,p,y+1+x,L)}),w.success("Pasted",{action:"edit.undo",key:"clipboard"})}},{id:"edit.pasteInside",title:"Paste inside",category:"Edit",level:"selection",menus:["context/element","palette"],group:"1_clipboard",undo:"document",when:()=>t()&&a(),enablement:()=>{let l=e.target();return l!==null&&l.path.length>=2&&s()},requires:"a container element that is not a repeater",run:async()=>{let l=e.target(),b=await da();if(!l||!b||b.length===0)return;let p=Array.isArray(l.node.children)?l.node.children.length:0;Z(h.value,(y)=>{for(let[O,x]of b.entries())or(y,l.path,p+O,x)}),w.success("Pasted",{action:"edit.undo",key:"clipboard"})}},{id:"edit.copyStyles",title:"Copy styles",category:"Edit",level:"selection",menus:["context/element","palette"],group:"2_styles",undo:"none",when:t,enablement:()=>Boolean(e.target()?.node.style),requires:"styles on the selected element",run:()=>{let l=e.target()?.node.style;if(!l)return;m.styleClipboard=ir(l),w.success("Styles copied",{key:"clipboard"})}},{id:"edit.pasteStyles",title:"Paste styles",category:"Edit",level:"selection",menus:["context/element","palette"],group:"2_styles",undo:"document",when:()=>t()&&a(),enablement:()=>e.styleClipboard()!==null,requires:"a copied style set",run:()=>{let l=e.target(),b=e.styleClipboard();if(!l||!b)return;let p=ir(b);Z(h.value,(y)=>wM(y,l.path,p)),w.success("Styles pasted",{action:"edit.undo",key:"clipboard"})}},{id:"selection.insertBefore",title:"Insert before",category:"Insert",level:"selection",menus:["context/element","palette"],group:"3_structure",undo:"document",when:t,enablement:o,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>Io(e.target(),0)},{id:"selection.insertAfter",title:"Insert after",category:"Insert",level:"selection",menus:["context/element","palette"],group:"3_structure",undo:"document",when:t,enablement:o,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>Io(e.target(),1)},{id:"selection.wrap",title:"Wrap in Div",category:"Selection",level:"selection",menus:["context/element","palette"],group:"3_structure",undo:"document",when:t,enablement:o,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>{let l=e.target();if(l)Z(h.value,(b)=>gM(b,l.path))}},{id:"selection.setTitle",title:"Set Title",category:"Selection",level:"selection",menus:["context/element","palette"],group:"4_identity",undo:"document",when:()=>Boolean(e.target()?.rerender),enablement:o,requires:"an element with a sibling position — not the page root or a repeater item",run:async()=>{let l=e.target();if(!l?.rerender)return;let{startLayerTitleEdit:b}=await (ce("hvy2e549"),import("./layers-panel-hvy2e549.js"));b(l.path,l.rerender)}}]}function Io(e,t){if(!e)return;let a=Vt(e.path),o=zi(e.path);Z(h.value,(s)=>or(s,a,o+t,{children:[],tagName:"p"}))}function lE(){return[{category:"Edit",group:"1_clipboard",id:"edit.copy",keybinding:"mod+c",keyScope:"canvas",level:"selection",menus:["context/element","palette"],requires:"an element selection",run:()=>{El()},title:"Copy",undo:"none",when:vh},{category:"Edit",destructive:!0,enablement:Wx,group:"1_clipboard",id:"edit.cut",keybinding:"mod+x",keyScope:"canvas",level:"selection",menus:["context/element","palette"],requires:"an element selection that is not the document root",run:()=>{bl()},title:"Cut",undo:"document",when:vh}]}function Tl(e,t){e.registerAll(Do(t))}var We=null,vo=null;function dD(e){vo=e}function wo(){if(We)return We;let e=h.value,t=Oe(e?.session.selection);if(!e||!t)return null;let a=oe(e.doc.document,t);return a?{node:a,path:t}:null}var fa={componentPathFor:(e)=>e.includes("-")&&Ne.find((t)=>t.tagName===e)?.path||null,styleClipboard:()=>m.styleClipboard,target:wo};function uD(){return Do(fa)}function gl(){let e=wo(),t=h.value,a=it(e?.node.tagName);return YC({capability:{findReferences:ph()},document:{dirty:Boolean(t?.doc.dirty),open:Boolean(t)},editor:{kind:t?Qs(t.session.ui.canvasMode):"none"},selection:{count:e?1:0,isComponentInstance:Boolean(e&&fa.componentPathFor(a)),isRepeater:e?Ro(e.node):!1,isRoot:e?!ru(e.path):!1,kind:a}})}var la=null;function ko(){let e=ae();if(e)return e;if(la)return la;let t=nb({getContext:gl}),a=lm({...B_(),deleteSelection:()=>{let o=We;if(o)Z(h.value,(s)=>_h(s,o.path))},duplicateSelection:()=>{let o=We;if(o)Z(h.value,(s)=>vI(s,o.path))}}).filter((o)=>(o.menus??[]).includes("context/element"));return t.registerAll(a),t.registerAll(VE().filter((o)=>(o.menus??[]).includes("context/element"))),t.registerAll(lE()),Uy(t,{convertToComponent:()=>dm(),navigateToComponent:(o)=>{vo?.(o)}}),Tl(t,fa),la=t,t}var on=null,Nt=[];function Al(e){let t=Nt.find((o)=>o.id===e);if(!t||t.disabled)return;let a=ko().run(e);sm()}function sm(){on?.close()}function _l(e){let t=ko(),a;return t.forPlacement(e).map((o,s)=>{let i=s>0&&o.group!==a;({group:a}=o);let l=t.isEnabled(o.id),b=t.keymap.formatBinding(o.id),p=b&&b.toLowerCase()!==o.title.toLowerCase()?b:void 0,y=l?void 0:t.disabledReason(o.id),O={destructive:o.destructive===!0,disabled:!l,dividerAbove:i,id:o.id,title:o.title};if(p)O.chord=p;if(y)O.requires=y;return O})}function A_(e,t,a={}){e.preventDefault(),sm();let o=h.value;if(!o)return;let s=oe(o.doc.document,t);if(!s)return;if(!Kx(o.session.selection,t))o.session.selection=[t];if(We={node:s,path:t,rerender:a.rerender},Nt=_l(a.placement??"context/element"),Nt.length===0){We=null;return}let i=document.activeElement instanceof HTMLElement?document.activeElement:null;on=zt({label:"Element actions",onClosed:(l)=>{if(on===l)on=null,We=null,Nt=[]},opener:i,origin:{x:e.clientX,y:e.clientY},region:"context",rows:Nt,run:Al})}function Cl(e,t){if(e===null||t===null)return e===t;return e.length===t.length&&e.every((a,o)=>a===t[o])}function rE(e,t){vl(e,{ui:{openDialog:t}}),S$(e,t)}function ha(e,t){let a=ZL(e.doc.document,t);if(a===null||Cl(e.session.ui.openDialog,a))return!1;return rE(e,a),!0}function Po(e){if(e)ha(e,Oe(e.session.selection))}function yl(e,t){if(e===null||t===null)return e===t;return e.length===t.length&&e.every((a,o)=>a===t[o])}function sE(e,t){vl(e,{ui:{openPopover:t}}),_$(e,t)}function Mo(e,t){let a=YL(e.doc.document,t);if(a===null||yl(e.session.ui.openPopover,a))return!1;return sE(e,a),!0}function Sl(e){if(e)Mo(e,Oe(e.session.selection))}function Bo(e){let t=h.value;if(t)Mo(t,e),ha(t,e);Xb(e)}var It=null;function lD(){if(!It){let t=te(()=>{let a=h.value;a?.session.selection.map((o)=>o.join("/")).join("|"),a?.doc.document,Gr();try{Sl(a),Po(a)}finally{Kr()}});It={stop:()=>{t.effect.stop()}}}let e=It;return()=>{if(e.stop(),It===e)It=null}}var Ho={$schema:"https://jxsuite.com/schema/v1",$id:"StudioPanelOutline",$description:"The Navigator's Outline panel while the pane is drawing a document: the element tree, as a Jx document over the kit. The adapter hands in one flat projection per row — its badge, its name, how deep it sits, where it stands among its siblings, whether it is selected, whether it is being renamed and which verbs it may offer — so nothing here walks the document, reads the command registry or knows what a collapsed ancestor is. THE TREE IS `jx-tree`, and the eight keyboard cases and seven ARIA attributes this document used to spell out are the element's now. They were spelled out again in `files-panel.json`, which is the reason: two trees carried one keyboard contract independently, and nothing held them in agreement — ← climbed to a parent here and merely closed a directory there, Home and End existed here and not there, and neither had typeahead. What is left is what is true of THIS tree: a row is a badge and a name, a rename happens in place, and the verbs a row offers sit on a plate over its right edge. It is one panel with two bodies and this is the design half of it; `panel-stylebook-layers.json` is the other, and the two share a row vocabulary on purpose so the pane switching between them does not switch design as well.",tagName:"div",attributes:{part:"outline"},style:{$description:"What `.layers-container`, `.layer-row` and their nine siblings said in `styles/panels.css`, keyed on `part` and carried here. Four Spectrum names could not come with the declarations and are the kit's instead, at the same values: `--spectrum-corner-radius-75` (2px) is `--jx-radius-xs`, `--spectrum-font-size-50` (11px) is `--jx-text-sm`, the badge's 10px is `--jx-text-xs` and the focus ring is `--jx-focus-ring`. Two colours could not at first: `--case-c` and `--slot-c` were declared on `<sp-theme>` rather than at `:root`, so each carried a `:root` token as its fallback. That day came with Spectrum's removal, and the fallbacks are gone with it: both names are declared at `:root` in `styles/tokens.json` now, at exactly the values written here as their fallbacks (`--accent` and `--success`), in the same alias idiom `--switch-c` already used. A `var()` fallback that can no longer be reached is not a safety net, it is a second answer nobody will keep in step. HALF OF THESE RULES ARE GONE, and that is `jx-tree-item` rather than an omission: the row's flex line, its one-control-height box, the hover and focus states, the selected wash and its inline-start edge, the faded dragged row, the dashed drop mark, the chevron's box, the label's ellipsis and the drag grip are all the element's — including the forced-colours redraw of the selected row, which used to be written out at the bottom of this file. THE INDENT IS STILL A VARIABLE, because this tree CAPS it: past six levels a `240px` column is all indent and no name, so `--row-indent` carries an already-capped length and overrides the element's `level`-derived padding. And the row STATES are attributes rather than classes (`ui.md` §3.1) — `aria-selected` is the only writer of the selected drawing, which is also what stops the wash and the announcement disagreeing.",display:"block",position:"relative",fontFamily:"var(--jx-font-sans)",color:"var(--fg)",'& [part="tree"]':{$description:"`jx-tree` declares no scrollbar of its own — one Studio tree scrolls in itself and this one scrolls in the Navigator, which also holds its toolbar — so what it needs here is the block box and this package's own text colour, which the element would otherwise take from the kit's `--jx-fg` directly and stop following the studio alias.",display:"block",color:"var(--fg)"},'& [part="row"]':{$description:"The four things the element cannot decide for this tree. The cluster is positioned against the row, so the row is the containing block. The indent is CAPPED — `--row-indent` is already `min(depth, 6) * 16 + 8`, and overriding the element's `level`-derived padding is what keeps a depth-12 row from pushing its badge out of a 240px column. The whole row is the drag handle, so the cursor says so. And the transition is what `panels/dnd.ts` animates the drop gap with.",position:"relative",paddingInline:"var(--row-indent, var(--jx-space-3)) var(--jx-space-3)",cursor:"grab",transition:"transform 150ms ease"},'& [part="row"][data-dragging]':{$description:"The lift is the element's; only the transition is this tree's, and it has to stop, or the dragged row animates back through every gap the rows below it open.",transition:"none"},'& [part="row"][data-kind="text"]':{$description:"A text node's line: drawn, and deliberately not a `jx-tree-item`. There is nothing to do to it — it cannot be moved, renamed, duplicated or deleted on its own — so making it a row the caret can land on would put a stop in the walk that answers to none of the verbs the walk offers. It is therefore the one line in this tree the element does not draw, and the box below is `jx-tree-item`'s own, restated: the same 24px the window reserves scroll by, and the same transparent inline-start edge, so a text line and an element line start at the same pixel.",display:"flex",alignItems:"center",gap:"var(--jx-space-2)",blockSize:"var(--jx-control-h)",boxSizing:"border-box",borderInlineStart:"2px solid transparent",whiteSpace:"nowrap",userSelect:"none",opacity:"0.6",fontStyle:"italic"},'& [part="badge"]':{$description:"A long custom-element tag is a badge, not a paragraph: it truncates rather than pushing the label out of a 240px column.",flex:"none",maxWidth:"12ch",overflow:"hidden",padding:"0 var(--jx-space-2)",borderRadius:"var(--jx-radius-xs)",background:"var(--tag)",color:"var(--accent-fg)",fontSize:"var(--jx-text-xs)",textOverflow:"ellipsis"},'& [part="badge"][data-kind="map"]':{background:"var(--map)",fontSize:"9px",letterSpacing:"0.5px"},'& [part="badge"][data-kind="switch"]':{background:"var(--switch-c)"},'& [part="badge"][data-kind="case"]':{maxWidth:"60px",background:"var(--case-c)",fontSize:"9px",fontStyle:"italic"},'& [part="badge"][data-kind="slot"]':{background:"var(--slot-c)"},'& [part="badge"][data-kind="text"]':{$description:"The one badge that names no tag, so it is drawn in the neutral rather than in the tag colour — and on the page background rather than on `--accent-fg`, which is white and would sit on a light grey at a contrast nobody can read in the light theme.",background:"var(--fg-dim)",color:"var(--bg)",fontSize:"9px"},'& [part="row"][data-italic="true"] [part="label"]':{fontStyle:"italic"},'& [part="row"][data-editing="true"] [part="label"]':{$description:"While the row is being renamed the input stands where the name was. The name itself is still the row's `label`, so it still names the row to a reader — it is only taken off the screen.",display:"none"},'& [part="title-input"]':{$description:"Stretches into the row's content box rather than setting its own height: the row is a fixed 24px, and an input taller than that would push its borders through the rows either side.",flex:"1",minWidth:"24px",alignSelf:"stretch",boxSizing:"border-box",padding:"0 var(--jx-space-1)",border:"1px solid var(--accent)",borderRadius:"var(--jx-radius-xs)",background:"var(--bg)",color:"inherit",font:"inherit"},'& [part="title-input"]:focus-visible':{outline:"var(--jx-focus-ring)",outlineOffset:"-1px"},'& [part="verbs"]':{$description:"Positioned out of flow so it never contributes to the row's intrinsic width: in a 240px column, four in-flow buttons plus an indent is exactly what pushed the tree sideways. The cluster is EMPTY on every row but the selected one and the hovered one — a projection with no commands in it, not a `display: none` rule, because a hidden `jx-action-button` is still an upgraded custom element and CSS reveal would have kept the whole cost the collapse exists to remove. It is slotted into `jx-tree-item`'s `actions`, which is what stops a click on a verb from also moving the selection.",position:"absolute",right:"2px",top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",gap:"0",borderRadius:"var(--jx-radius-xs)"},'& [part="verbs"][data-state="shown"]':{paddingLeft:"var(--jx-space-3)",background:"var(--bg-panel)",boxShadow:"-8px 0 8px -8px rgb(0 0 0 / 0.4)"},'& [part="action"], & [part="overflow"]':{flex:"none"},'& [part="action"][data-destructive="true"]':{color:"var(--danger)"},'& [part="empty"]':{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--jx-space-3)",padding:"var(--jx-space-5)",textAlign:"center",color:"var(--fg-dim)",fontSize:"var(--jx-text-md)"},'& [part="empty-message"]':{margin:"0",maxWidth:"34ch",lineHeight:"1.5"}},children:[{$description:'The `role="tree"`, and the keyboard that used to be eight `$switch` cases under every row. `jx-tree` writes the role, the name, the roving tab stop and each row\'s `aria-level` / `aria-posinset` / `aria-setsize`, and it owns the walk: the arrows step the drawn rows without wrapping, `Home` and `End` reach the ends of the MODEL by way of the pads, `ArrowRight` opens a collapsed row and steps into an open one, `ArrowLeft` closes an open row and otherwise climbs to its parent, `Enter` activates, `Space` is a selection verb and a printable character is typeahead. `multiple` is on because this Outline has always accepted Ctrl-click and Shift-click, and it is also the GATE: with it off the element would resolve every modifier to a plain replace. Six events come back, and each is a decision `panels/layers-panel.ts` already owned.',tagName:"jx-tree",attributes:{part:"tree",label:"Document outline",multiple:"true",current:"${state.current}",padtop:"${state.padTop}",padbottom:"${state.padBottom}"},onmouseleave:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/hoverOut"},value:[]}],description:"`mouseleave` on the tree rather than on each row: the pointer leaves one row for another constantly, and only leaving the TREE means no row is under it."},onselect:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/select"},value:[{$ref:"event#/detail/value"},{$ref:"event#/detail/mode"}]}],description:"What the reader meant by landing there: `replace`, `toggle` or `range`. An INTENT rather than a set — resolving a range means naming every row between two of them, and under windowing those are exactly the rows the DOM does not have, so the panel resolves it against the row MODEL. There is no `change` handler beside it on purpose: the element OWNS the caret and keeps it across every repaint that does not change `current`, so a second copy of it in the panel would be a variable that only ever went stale."},onactivate:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/rename"},value:[{$ref:"event#/detail"}]}],description:"`Enter` or a double click, which are one verb here: rename this row in place. F2 reaches the same verb from the row's own handler, because it is the one key the element leaves alone."},onexpand:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/expand"},value:[{$ref:"event#/detail/value"},{$ref:"event#/detail/expanded"}]}],description:"`ArrowRight`, `ArrowLeft` or the twisty, with ONE dispatcher between them, and the detail says the state the row should be PUT INTO — so the panel never has to work out which way a toggle was going."},onmove:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/move"},value:[{$ref:"event#/detail/from"},{$ref:"event#/detail/key"}]}],description:"The caret has to reach a row the window did not draw. The element knows only that the pad on that side is not zero; where the row is in the model, and how far to scroll to bring it into view, is the panel's."},ontypeahead:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/typeahead"},value:[{$ref:"event#/detail/from"},{$ref:"event#/detail/char"}]}],description:"A printable character, on a windowed tree. The same hand-off as `onmove` and for a sharper reason: a move off the end of the slice announces itself, and a letter never does — the element's own search over the drawn rows always answers, and in a five-thousand-node document the answer is whichever of the twenty painted rows happened to start with that letter. So the element dispatches EVERY such character and the panel answers it over the model."},children:[{tagName:"div",attributes:{part:"body-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/view"},cases:{rows:{tagName:"div",attributes:{part:"rows",role:"none"},style:{display:"contents"},children:[{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/key"},map:{tagName:"div",attributes:{part:"row-slot",role:"none"},style:{display:"contents","--row-indent":{$ref:"$map/item/indent"}},$switch:{$ref:"$map/item/kind"},cases:{element:{tagName:"jx-tree-item",attributes:{part:"row","data-kind":"element",value:"${$map.item.key}",label:"${$map.item.label}",level:"${$map.item.level}",posinset:"${$map.item.posInSet}",setsize:"${$map.item.setSize}",expanded:"${$map.item.expanded}",selected:"${$map.item.selected}",grip:"${$map.item.draggable}","data-italic":"${$map.item.labelItalic}","data-editing":"${$map.item.editing}","data-jx-path":"${$map.item.jxPath}","data-dnd-row":"${$map.item.dndRow}","data-dnd-depth":"${$map.item.dndDepth}","data-dnd-void":"${$map.item.dndVoid}","data-dnd-expanded":"${$map.item.dndExpanded}"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/reveal"},value:[{$ref:"$map/item/key"}]}],description:"A click brings the node into view on the canvas, and NOTHING else — the selection it also carries is `jx-tree`'s delegated click, which reads the modifiers off the real `MouseEvent` and answers with one `select` intent. Reveal is bound here rather than folded into that handler because an arrow key raises the same intent: a walk down the Outline that scrolled the canvas on every keystroke would be ten reveals for one glance."},oncontextmenu:{$ref:"#/state/contextMenu"},onmouseenter:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/hover"},value:[{$ref:"$map/item/key"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{F2:[{preventDefault:!0},{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/rename"},value:[{$ref:"$map/item/key"}]}]}}],description:"One key, and it is the one `jx-tree` deliberately does not own. The element passes every chord it has no verb for straight through — which is what keeps cut, paste, delete and this rename reachable from a focused row (WCAG 2.2 SC 2.5.7) — so F2 is answered here, against the row it was pressed on. Enter reaches the same rename through `activate`, because Enter IS the element's."},children:[{tagName:"span",attributes:{slot:"icon",part:"badge","data-kind":"${$map.item.badgeKind}",title:"${$map.item.badgeTitle}"},textContent:"${$map.item.badge}"},{$description:"The rename, in place. It is a CASE of the row — the document draws it when the projection says this row is the one being renamed and takes it away again when the projection stops saying so — where the predecessor built the input with `document.createElement`, hid the label with an inline `display:none` and put the two back by hand on commit. It sits in `jx-tree-item`'s `status` slot, which is where the name ends, and it STOPS every event it can reach: an editable field inside a composite has to, or the tree's own typeahead moves the caret on the first letter typed and its delegated click takes the focus back on the first click into the text.",tagName:"div",attributes:{slot:"status",part:"edit-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/editing"},cases:{true:{tagName:"input",attributes:{part:"title-input",type:"text",value:"${$map.item.editValue}",placeholder:"${$map.item.placeholder}","aria-label":"Rename this element"},onclick:{$prototype:"Function",body:[{stopPropagation:!0}]},ondblclick:{$prototype:"Function",body:[{stopPropagation:!0}]},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/editInput"},value:[{$ref:"event#/target/value"}]}]},onkeydown:{$prototype:"Function",body:[{stopPropagation:!0},{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/editCommit"}}],Escape:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/editCancel"}}]}}]},onblur:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/editCommit"}}]}}}},{tagName:"div",attributes:{slot:"actions",part:"verbs-slot",role:"none"},style:{display:"contents"},children:[{tagName:"span",attributes:{part:"verbs","data-state":"${$map.item.actions}"},children:[{$prototype:"Array",items:{$ref:"$map/item/commands"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"action","data-command":"${$map.item.id}","data-destructive":"${$map.item.destructive}"},$props:{label:{$ref:"$map/item/title"},hint:{$ref:"$map/item/tooltip"},icon:{$ref:"$map/item/icon"},disabled:{$ref:"$map/item/disabled"},size:"sm",quiet:!0},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/runRow"},value:[{$ref:"$map/item/id"},{$ref:"$map/item/row"},{$ref:"event#/currentTarget"}]}]}}},{tagName:"span",attributes:{part:"overflow-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"$map/item/overflow"},cases:{true:{tagName:"jx-action-button",attributes:{part:"overflow","data-command":"outline.more"},$props:{label:"More actions",hint:"More actions",icon:"dots-three-vertical",haspopup:"menu",size:"sm",quiet:!0},onclick:{$prototype:"Function",body:[{stopPropagation:!0},{operator:"call",target:{$ref:"#/state/overflowRow"},value:[{$ref:"$map/item/key"},{$ref:"event#/currentTarget"}]}]}}}}]}]}]},text:{$description:"A text node's line: drawn, and deliberately not a `jx-tree-item`. There is nothing to do to it — it cannot be moved, renamed, duplicated or deleted on its own — so a row the caret could land on would be a stop in the walk that answers to none of the verbs the walk offers. It still carries `data-value`, because `panels/dnd.ts` hides and shifts every line of the tree and a text child of a dragged element is one of them.",tagName:"div",attributes:{part:"row","data-kind":"text",role:"none","data-jx-path":"${$map.item.jxPath}","data-value":"${$map.item.key}"},children:[{tagName:"span",attributes:{part:"badge","data-kind":"text"},textContent:"text"},{tagName:"span",attributes:{part:"label"},textContent:"${$map.item.label}"}]}},$description:"The indent lives HERE, on the wrapper, and not on the row — which is not a preference. A kit element renders its own `style` object through the same engine, and that engine releases the previous rule set for an element before adopting the next, so a host style object on a `jx-tree-item` is silently dropped the moment the element first paints. A custom property inherits through `display: contents`, so one declaration on the wrapper reaches whichever of the two rows the case draws — and both need it, because a text line indents like the element line above it."}}]},empty:{$description:"Drawn here rather than borrowed from `panels/empty-state.ts`, which is a lit template a document cannot call. What is kept is the pattern's rules (studio-ui-guidelines.md §11): one sentence saying what the region is for, then the one action that fills it.",tagName:"div",attributes:{part:"empty"},children:[{tagName:"p",attributes:{part:"empty-message"},textContent:"${state.emptyMessage}"},{tagName:"jx-button",attributes:{part:"empty-action"},$props:{size:"sm",variant:"secondary"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/emptyAction"}}]},children:[{tagName:"span",textContent:"${state.emptyLabel}"}]}]}}}]}]};E("panel-outline",Ho);function Uo(e,t){e.view=t.view,e.rows=t.rows,e.padTop=t.padTop,e.padBottom=t.padBottom,e.current=t.current,e.emptyMessage=t.emptyMessage,e.emptyLabel=t.emptyLabel}function Nl(e){let t=n(e)?void 0:e.attributes?.part;return n(t)?t:""}function Fo(e,t,a){let o=g({contextMenu:a.contextMenu,current:"",editCancel:a.editCancel,editCommit:a.editCommit,editInput:a.editInput,editReady:a.editReady,emptyAction:a.emptyAction,emptyLabel:"",emptyMessage:"",expand:a.expand,hover:a.hover,hoverOut:a.hoverOut,move:a.move,overflowRow:a.overflowRow,padBottom:0,padTop:0,rename:a.rename,reveal:a.reveal,rows:[],runRow:a.runRow,select:a.select,treeReady:a.treeReady,typeahead:a.typeahead,view:"empty"});Uo(o,t);let s=null,i=!1,l=R("panel-outline",o,e,{onNodeCreated:(b,p,y)=>{if(b instanceof HTMLElement){let O=Nl(y);if(O==="tree")a.treeReady(b);else if(O==="title-input")a.editReady(b)}}}).then((b)=>{if(i){b.dispose();return}s=b});return{connected:()=>!i&&(s===null||s.root.parentNode===e),dispose(){i=!0,s?.dispose(),s=null},ready:l,update:(b)=>{Uo(o,b)}}}var ma=32,$o=40,Il=new Map([["article","Article"],["aside","Sidebar"],["dialog","Dialog"],["figure","Figure"],["footer","Footer"],["form","Form"],["header","Header"],["main","Main"],["nav","Navigation"]]);function Ot(e){let t=e.replaceAll(/\s+/gu," ").trim();return t.length>ma?`${t.slice(0,ma)}…`:t}function Ko(e){if(n(e.textContent))return e.textContent.trim();if(!Array.isArray(e.children))return"";let t="";for(let a of e.children){if(n(a))t+=a;else if(_(a)&&cx(a,e))t+=Ko(a);if(t.length>ma*2)break}return t.trim()}function Ol(e){let t=e.attributes?.class;return n(t)?t.trim().split(/\s+/u)[0]??"":""}function Vo(e){if(e.$title)return Ot(e.$title);if(e.$prototype==="Array"||e.tagName==="slot")return kr(e);if(e.$id)return`#${Ot(e.$id)}`;if(n(e.textContent)&&e.textContent.trim())return Ot(e.textContent);let t=Ol(e);if(t)return`.${Ot(t)}`;let a=Il.get(it(e.tagName).toLowerCase());if(a)return a;let o=Ko(e);if(o)return`“${Ot(o)}”`;let s=Array.isArray(e.children)?e.children.length:0;return s>0?`${s} item${s===1?"":"s"}`:""}var Yo=4;function qo(e,t,a){return rn(t,()=>{let o=e.forPlacement("outline/row");return{commands:o.slice(0,Yo).map((s)=>({destructive:s.destructive===!0?"true":"false",disabled:e.disabledReason(s.id)!==void 0,icon:s.icon??"",id:s.id,row:a,title:s.title,tooltip:ia(e,s)})),overflow:o.slice(Yo)}})}var Ll=6;function Wo(e){return Math.min(e,Ll)*Gy}function Lt(e){return e?e.split("/").map((t)=>/^\d+$/u.test(t)?Number(t):t):[]}var Rl=24,Ea='[part="row"]',V=[],Ee=null,ln=null,cn=null,at=null,Re=null;function ba(){return MN(Ee,Ea,Rl)}function Rt(e){return e===void 0?-1:V.findIndex((t)=>t.key===e)}function Ta(e){return e===null?-1:V.findIndex((t)=>Cr(t.path,e))}function un(e,t){for(let a=e+t;a>=0&&a<V.length;a+=t)if(V[a].item)return a;return-1}function Dl(){let e=[];for(let t of V)if(t.item)e.push(t.path);return e}function ga(e){return jw(Ee,e,ba())}function wl(){if(Ee?.isConnected!==!0||Ee.querySelector("[data-dragging]"))return;queueMicrotask(()=>cn?.())}function kl(){if(!Ee)return;ln=Hw(ln,Ee,{count:()=>V.length,onChange:wl,rowHeight:ba})}function Pl(e){return Array.isArray(e)&&e.every((t)=>n(t)||Y(t))}function Ml(e){let t=e?.closest("[data-jx-path]");if(!t?.dataset.jxPath)return null;try{let a=JSON.parse(t.dataset.jxPath);return Pl(a)?a:null}catch{return null}}function Qo(e){return Ee?.querySelector(`${Ea}[data-value="${CSS.escape(e)}"]`)??null}function Bl(e){let t=V[e];if(t&&!Qo(t.key))ga(e)}function Xo(e,t={}){let a=V[e];if(a)zo(a.path,t)}function zo(e,t={}){let a=h.value;if(!a)return;if(t.range){a.session.selection=ZO(Dl(),YO(a.session.selection),e);return}if(t.additive){a.session.selection=Jx(a.session.selection,e);return}a.session.selection=[e]}function Hl(e,t){let a=V[Rt(e)];if(!a)return;zo(a.path,{additive:t==="toggle",range:t==="range"}),Ce()}function Ul(e,t){let a=V[Rt(e)];if(!a||!es(a))return;let o=Zo();if(t)o.delete(e);else o.add(e);Ce()}function Fl(e,t){let a=Rt(e),o;switch(t){case"Home":{o=un(-1,1);break}case"End":{o=un(V.length,-1);break}case"ArrowUp":{o=un(a,-1);break}case"ArrowLeft":{o=V[a]?.parent??-1;break}case"ArrowDown":case"ArrowRight":{o=un(a,1);break}default:return}Jo(o)}function Jo(e){if(!V[e])return;Xo(e),Bl(e),Ce()}function Aa(e){if(!e.item){let a=String(e.node);return a.length>$o?`${a.slice(0,$o)}…`:a}let{node:t}=e;return e.nodeType==="case-ref"?t.$ref||"external":Vo(t)}function $l(e,t){let a=Rt(e),o=V.length;for(let s=1;s<=o;s++){let i=(a+s+o)%o,l=V[i];if(l?.item&&Aa(l).trim().toLowerCase().startsWith(t)){Jo(i);return}}}function FP(e,t){if(!h.value)return;let o=Ta(e),s=V[o];if(!s?.item)return;if(Re={key:s.key,rerender:t,text:s.node.$title||""},!Qo(s.key))ga(o);Ce()}function Yl(e){return Re?.key===e}function jl(e){if(Re)Re.text=e}function Kl(){let e=Re,t=h.value;if(!e)return;Re=null;let a=e.text.trim();if(t)Z(t,(o)=>Qe(o,Lt(e.key),"$title",a||void 0));e.rerender(),Ce()}function Vl(){let e=Re;if(!e)return;Re=null,e.rerender(),Ce()}function Zo(){return st._layersCollapsed||=new Set,st._layersCollapsed}function ql(e,t,a){let o=[],s=[],i=null;for(let{node:l,path:b,depth:p,nodeType:y}of kh(e)){if(i!==null&&p>i)continue;i=null;let O=$I(b);if(a.has(O))i=p;if(t==="content"&&b.length===0)continue;let x=y==="text",L=null;if(!x){if(!_(l))continue;if(b.length>=2&&y==="element"){let P=Vt(b),B=P?oe(e,P):null;if(B&&cx(l,B))continue}L=l}while(s.length>0&&o[s.at(-1)].depth>=p)s.pop();let D=s.at(-1)??-1;o.push(L===null?{depth:p,item:!1,key:O,node:l,nodeType:y,parent:D,path:b,posInSet:0,setSize:0}:{depth:p,item:!0,key:O,node:L,nodeType:y,parent:D,path:b,posInSet:0,setSize:0}),s.push(o.length-1)}return Gl(o)}function Gl(e){let t=new Map;for(let o of e)if(o.item)t.set(o.parent,(t.get(o.parent)??0)+1);let a=new Map;for(let o of e){if(!o.item)continue;let s=(a.get(o.parent)??0)+1;a.set(o.parent,s),o.posInSet=s,o.setSize=t.get(o.parent)??s}return e}function es(e){if(!e.item)return!1;let{node:t}=e,a=Array.isArray(t.children)&&t.children.length>0,o=Go(t.children),s=Boolean(t.$switch)&&_(t.cases)&&Object.keys(t.cases).length>0;return a||o||s||e.nodeType==="map"&&Boolean(t.map)}function Ql(e){let{node:t}=e;if(e.nodeType==="map")return{badge:"↻",badgeKind:"map",badgeTitle:"Repeating list — one copy per item"};if(e.nodeType==="case"||e.nodeType==="case-ref"){let a=String(e.path.at(-1)??"");return{badge:a,badgeKind:"case",badgeTitle:`Condition case: ${a}`}}if(t.$switch)return{badge:"⇄",badgeKind:"switch",badgeTitle:"Condition"};if(t.tagName==="slot"){let a=t.attributes?.name;return{badge:"▣",badgeKind:"slot",badgeTitle:n(a)&&a.trim()?`Slot "${a.trim()}"`:"Default slot"}}return{badge:it(t.tagName)||"div",badgeKind:"tag",badgeTitle:jh(t.tagName)?`Tag chosen when the element is created: ${aR(t.tagName).join(" or ")}`:null}}function Xl(e){return{actions:"hidden",badge:"text",badgeKind:"text",badgeTitle:null,commands:[],dndDepth:null,dndExpanded:null,dndRow:null,dndVoid:null,draggable:"false",editValue:"",editing:"false",expanded:"",indent:`${Wo(e.depth)+bp}px`,jxPath:JSON.stringify(e.path),key:e.key,kind:"text",label:Aa(e),labelItalic:"false",level:"",overflow:"false",placeholder:"",posInSet:"",selected:"false",setSize:""}}function zl(e,t,a,o){if(!e.item)return Xl(e);let{depth:s,key:i,node:l,nodeType:b,path:p}=e,y=Kx(t.selection,p),O=es(e),x=ig.has((it(l.tagName)||"div").toLowerCase())||b==="map",L=(b==="element"||b==="map")&&Y(zi(p)),D=t.mode==="content"?p.length===0:p.length<2,P=L&&!D,B=O&&!a.has(i),F=Yl(i),j=P&&!F&&(y||i===at),{commands:De,overflow:se}=j?qo(o,p,i):{commands:[],overflow:[]},{badge:z,badgeKind:be,badgeTitle:Ge}=Ql(e),{$title:rt,...ve}=l;return{actions:j?"shown":"hidden",badge:z,badgeKind:be,badgeTitle:Ge,commands:De,dndDepth:L?String(s):null,dndExpanded:L&&B?"":null,dndRow:L?i:null,dndVoid:L&&x?"":null,draggable:P?"true":"false",editValue:F?l.$title??"":"",editing:F?"true":"false",expanded:O?B?"true":"false":"",indent:`${Wo(s)+bp}px`,jxPath:JSON.stringify(p),key:i,kind:"element",label:Aa(e),labelItalic:b==="case-ref"?"true":"false",level:String(s+1),overflow:se.length>0?"true":"false",placeholder:Vo(ve)||it(l.tagName)||"div",posInSet:String(e.posInSet),selected:y?"true":"false",setSize:String(e.setSize)}}function Jl(e,t){let a=Oe(t),o=a===null?-1:Ta(a),s=V[o];return s?.item===!0?s.key:e.find((i)=>i.item)?.key??""}function ts(){let e=h.value,t=Zo(),a=Ue(),o=e?.doc.mode??"";V=e?ql(e.doc.document,o,t):[];let s=Fw(Ee,{count:V.length,rowHeight:ba()}),i=e?.session.selection??[],l=V.slice(s.start,s.end);return{current:Jl(l,i),emptyLabel:"Add an element",emptyMessage:"This page is empty. Everything you add to it is listed here, in order.",padBottom:s.padBottom,padTop:s.padTop,rows:l.map((b)=>zl(b,{mode:o,selection:i},t,a)),view:V.length===0?"empty":"rows"}}var de=null,jo=null;function Ce(){de?.handle.update(ts())}var pa=null;function Zl(){let e=h.value,t=Oe(e?.session.selection);return`${e?.id??""}|${t===null?"":JSON.stringify(t)}`}function ed(){let e=Zl();if(e===pa)return;pa=e,td()}function td(){let e=Ee?.querySelector(`${Ea}[aria-selected="true"]`);if(e){e.scrollIntoView({behavior:"smooth",block:"nearest"});return}ga(Ta(Oe(h.value?.session.selection)))}function ad(e){if(at===e)return;at=e,Ce()}function rd(){if(at===null)return;at=null,Ce()}function od(e,t){let a=t.querySelector(".panel-content")??t;if(de&&(de.host!==a||!de.handle.connected()))de.handle.dispose(),de=null;cn=e.rerender,jo=e.registerDnD;let o=ts();if(de)de.handle.update(o);else de={handle:Fo(a,o,{contextMenu:(s,i)=>{let l=Ml(i.target instanceof Element?i.target:null);if(l&&i instanceof MouseEvent)A_(i,l,{rerender:()=>cn?.()}),Ce()},editCancel:Vl,editCommit:Kl,editInput:jl,editReady:(s)=>{queueMicrotask(()=>{if(s instanceof HTMLInputElement&&s.isConnected)s.focus(),s.select()})},expand:Ul,emptyAction:()=>{Kc("insert")},hover:ad,hoverOut:rd,move:Fl,overflowRow:(s,i)=>{let l=Lt(s),b=Ue(),{overflow:p}=qo(b,l,s);if(i instanceof HTMLElement&&p.length>0)ca(i,b,p,l)},rename:(s)=>{let i=Rt(s);Xo(i),FP(Lt(s),()=>cn?.())},reveal:(s)=>{Bo(Lt(s))},runRow:(s,i,l)=>{if(l instanceof HTMLElement)l.blur();St(Ue(),s,Lt(i)),Ce()},select:Hl,treeReady:(s)=>{Ee=s},typeahead:$l}),host:a};de.handle.ready.then(()=>{kl(),jo?.(),ed()})}function sd(){de?.handle.dispose(),de=null,Ee=null,ln?.window.destroy(),ln=null,at=null,Re=null,pa=null}function aE(){ei({id:"layers",title:"Outline",level:"document",dock:"navigator",icon:"stack",requiresDocument:"Open a page to see the elements it is built from.",render:()=>ft,afterRender:(e,t)=>{if(e.deps.getCanvasMode()===Ou){sd(),xa({selectStylebookTag:Ld,stylebookMeta:vp},t);return}Na(),od({registerDnD:e.deps.registerLayersDnD,rerender:e.rerender},t)}})}
|
|
3
|
+
export{I_,Wy,QR,mp,nE,R_,Ru,D_,Vy,eD,tD,nb,nD,iE,Uy,oE,N_,iD,oD,rD,qy,Fi,Du,Dc,Nu,sD,aD,gp,rm,Au,bp,Gy,rE,sE,lD,FP,aE,cD,lE,dD,uD,sm,A_};
|
|
4
|
+
|
|
5
|
+
//# debugId=9469FBBFCADB8D8664756E2164756E21
|
|
6
|
+
//# sourceMappingURL=studio-s7t4vp1d.js.map
|