@jxsuite/studio 6.1.1 → 6.1.2
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-va2wwra4.js → 2020-f2gkpy8d.js} +3 -3
- package/dist/chunks/{action-group-2mqby73c.js → action-group-4aan7g6g.js} +3 -3
- package/dist/chunks/adapter-4912g339.js +4 -0
- package/dist/chunks/cf-account-picker-wccaenh6.js +4 -0
- package/dist/chunks/cf-settings-br6105tr.js +4 -0
- package/dist/chunks/color-28ksk2qm.js +4 -0
- package/dist/chunks/color-area-0fj8a4ga.js +4 -0
- package/dist/chunks/color-field-xch8kx2g.js +4 -0
- package/dist/chunks/color-slider-jxd8v350.js +4 -0
- package/dist/chunks/combobox-p0efwjke.js +4 -0
- package/dist/chunks/components-db68vsn7.js +4 -0
- package/dist/chunks/content-source-1449qesq.js +4 -0
- package/dist/chunks/convert-to-repeater-5h457egj.js +4 -0
- package/dist/chunks/dialog-c4x05vyx.js +4 -0
- package/dist/chunks/editor-x9jn86a7.js +4 -0
- package/dist/chunks/entry-commands-may24cpt.js +4 -0
- package/dist/chunks/extension-sections-pvr14vxr.js +4 -0
- package/dist/chunks/file-ops-x9v54pcj.js +4 -0
- package/dist/chunks/files-j3knqf0s.js +4 -0
- package/dist/chunks/format-host-tyre2trb.js +4 -0
- package/dist/chunks/fs-events-64ma9htc.js +4 -0
- package/dist/chunks/git-panel-84ps5dex.js +4 -0
- package/dist/chunks/grid-view-d2wq9ezg.js +51 -0
- package/dist/chunks/icons-pnfz478q.js +4 -0
- package/dist/chunks/iframe-entry-fvbk89gm.js +5 -0
- package/dist/chunks/iframe-entry-jdcktez8.js +5 -0
- package/dist/chunks/iframe-entry-x0ygf2yr.js +5 -0
- package/dist/chunks/iframe-entry-zap785cw.js +5 -0
- package/dist/chunks/iframe-host-ck6vejt5.js +4 -0
- package/dist/chunks/index-b8xw3vy9.js +4 -0
- package/dist/chunks/{index-2veqmnhr.js → index-zpjmzqfk.js} +3 -3
- package/dist/chunks/{javascript-8nbvs12s.js → javascript-m54mnwp6.js} +3 -3
- package/dist/chunks/{jsonMode-s8kt9dsj.js → jsonMode-w15cmrcm.js} +8 -8
- package/dist/chunks/jx-validate-at3zn8wa.js +4 -0
- package/dist/chunks/layers-h4xp1pss.js +4 -0
- package/dist/chunks/layers-panel-m5hw1d7g.js +4 -0
- package/dist/chunks/listbox-e74qjyq6.js +4 -0
- package/dist/chunks/lit-html-8t8t3dnr.js +4 -0
- package/dist/chunks/media-picker-2cweexc5.js +4 -0
- package/dist/chunks/menu-n6yzswmy.js +4 -0
- package/dist/chunks/menu-ynw13y0s.js +4 -0
- package/dist/chunks/monaco-binding-7gx83x3r.js +4 -0
- package/dist/chunks/monaco-buffer-qzxn567r.js +4 -0
- package/dist/chunks/monaco-setup-gxf6656g.js +4 -0
- package/dist/chunks/notify-cj5zbrs2.js +4 -0
- package/dist/chunks/number-field-y62xq0ty.js +4 -0
- package/dist/chunks/parse-b7ddhr8m.js +4 -0
- package/dist/chunks/platform-3dfws9js.js +4 -0
- package/dist/chunks/popover-jt2gxmzs.js +4 -0
- package/dist/chunks/publish-panel-1gvxbj21.js +4 -0
- package/dist/chunks/quick-search-0dajrwqg.js +4 -0
- package/dist/chunks/references-49qgt404.js +4 -0
- package/dist/chunks/right-panel-jm1bwe53.js +4 -0
- package/dist/chunks/section-registry-6kwc4fky.js +4 -0
- package/dist/chunks/select-rzds841e.js +4 -0
- package/dist/chunks/split-n2gfpm5m.js +4 -0
- package/dist/chunks/{studio-1q1sh2ax.js → studio-0q988f9w.js} +3 -3
- package/dist/chunks/studio-0rt52vpq.js +5 -0
- package/dist/chunks/studio-18vgbhs5.js +5 -0
- package/dist/chunks/{studio-h46vtzk8.js → studio-1fxkaaea.js} +4 -4
- package/dist/chunks/studio-24mccdrj.js +5 -0
- package/dist/chunks/studio-2eh507zk.js +9 -0
- package/dist/chunks/studio-2hcbccfv.js +5 -0
- package/dist/chunks/studio-2j1cb95x.js +5 -0
- package/dist/chunks/studio-2jbs3rxv.js +5 -0
- package/dist/chunks/{studio-rv11kfwa.js → studio-485046te.js} +7 -7
- package/dist/chunks/studio-4h8k4dw9.js +5 -0
- package/dist/chunks/studio-5f6n18kx.js +5 -0
- package/dist/chunks/studio-5gthpky6.js +5 -0
- package/dist/chunks/studio-5ve6bbep.js +5 -0
- package/dist/chunks/studio-6ep3js6b.js +9 -0
- package/dist/chunks/studio-6wkmf3wz.js +9 -0
- package/dist/chunks/studio-841rf3cg.js +5 -0
- package/dist/chunks/studio-8gmwgheg.js +5 -0
- package/dist/chunks/studio-8qm0ep50.js +5 -0
- package/dist/chunks/{studio-8grwxtqk.js → studio-90pq9km1.js} +4 -4
- package/dist/chunks/studio-924p1tm1.js +6 -0
- package/dist/chunks/{studio-pre0skq6.js → studio-a3g98wjr.js} +4 -4
- package/dist/chunks/studio-a3shpz9y.js +5 -0
- package/dist/chunks/studio-amsbaaar.js +6 -0
- package/dist/chunks/studio-at5spjbc.js +7 -0
- package/dist/chunks/studio-b2xv945e.js +5 -0
- package/dist/chunks/studio-bn5nkafw.js +5 -0
- package/dist/chunks/studio-bw6q5xjf.js +9 -0
- package/dist/chunks/studio-c7q0t9x1.js +5 -0
- package/dist/chunks/studio-camnhc96.js +6 -0
- package/dist/chunks/studio-cffqvnzd.js +5 -0
- package/dist/chunks/studio-d81xfh1g.js +5 -0
- package/dist/chunks/studio-dgz8d0c1.js +5 -0
- package/dist/chunks/studio-efvfrsf8.js +5 -0
- package/dist/chunks/studio-er30bpcx.js +5 -0
- package/dist/chunks/studio-ezscgr64.js +5 -0
- package/dist/chunks/studio-ffrrncvz.js +5 -0
- package/dist/chunks/studio-fpphgn8y.js +10 -0
- package/dist/chunks/studio-j1kvhdjk.js +4 -0
- package/dist/chunks/{studio-vrmcjf9g.js → studio-j430n16g.js} +5 -5
- package/dist/chunks/studio-jjkg84nj.js +5 -0
- package/dist/chunks/studio-m0q32ars.js +4 -0
- package/dist/chunks/studio-m6bdst11.js +5 -0
- package/dist/chunks/studio-nv2cptd4.js +64 -0
- package/dist/chunks/studio-nwfrc98n.js +5 -0
- package/dist/chunks/studio-p1wgvp7r.js +5 -0
- package/dist/chunks/studio-pag2wncm.js +5 -0
- package/dist/chunks/studio-qvanvzfd.js +5 -0
- package/dist/chunks/studio-qwa64kt7.js +5 -0
- package/dist/chunks/studio-rk1zc4x3.js +928 -0
- package/dist/chunks/studio-se2r3ptc.js +5 -0
- package/dist/chunks/studio-sg2a0dh0.js +5 -0
- package/dist/chunks/studio-tjzjhe68.js +5 -0
- package/dist/chunks/{studio-wszjyh0j.js → studio-tq0rtfwj.js} +4 -4
- package/dist/chunks/{studio-kggey1jt.js → studio-v0jzqdjm.js} +4 -4
- package/dist/chunks/studio-v2w7q8r1.js +7 -0
- package/dist/chunks/studio-v5vjq1h0.js +4 -0
- package/dist/chunks/studio-v8aga3vp.js +14 -0
- package/dist/chunks/studio-vfcdrfmv.js +5 -0
- package/dist/chunks/studio-vmfkgdjf.js +5 -0
- package/dist/chunks/studio-wt1816jj.js +5 -0
- package/dist/chunks/studio-wz73q5kq.js +4 -0
- package/dist/chunks/studio-y04qtxvp.js +7 -0
- package/dist/chunks/studio-y21g8zzg.js +5 -0
- package/dist/chunks/{studio-zey7zsdw.js → studio-y64hrt8p.js} +7 -7
- package/dist/chunks/studio-ynn90f58.js +16 -0
- package/dist/chunks/studio-yxz682sx.js +5 -0
- package/dist/chunks/studio-zp7snvkq.js +5 -0
- package/dist/chunks/studio-zq4z6tm6.js +5 -0
- package/dist/chunks/swatch-group-ewh24n1f.js +4 -0
- package/dist/chunks/tabs-f5cw3tgp.js +4 -0
- package/dist/chunks/textfield-wewc8rq2.js +4 -0
- package/dist/chunks/toast-c9fn075p.js +4 -0
- package/dist/chunks/toast-host-ke5z4ng7.js +4 -0
- package/dist/chunks/{toolbar-2nnzqhrj.js → toolbar-44cm5cta.js} +3 -3
- package/dist/chunks/tooltip-5v8ngwj2.js +4 -0
- package/dist/chunks/tree-mdq3v5cw.js +4 -0
- package/dist/chunks/{tsMode-2frah6h1.js → tsMode-sf49ee9x.js} +7 -7
- package/dist/chunks/workspace-jtfahpee.js +4 -0
- package/dist/chunks/ws-client-nze0k6mv.js +4 -0
- package/dist/iframe-entry.js +16 -16
- package/dist/manifest.json +63 -63
- package/dist/studio.js +97 -97
- package/package.json +6 -6
- package/src/about/about-modal.ts +4 -3
- package/src/account/action-flow.ts +45 -38
- package/src/account-status.ts +7 -2
- package/src/browse/library-layouts.ts +8 -5
- package/src/browse/library-model.ts +18 -6
- package/src/browse/library-pane.ts +37 -21
- package/src/browse/library-preview.ts +14 -9
- package/src/browse/library-source.ts +1 -1
- package/src/canvas/asset-refs.ts +24 -9
- package/src/canvas/asset-resolve.ts +19 -23
- package/src/canvas/canvas-helpers.ts +7 -6
- package/src/canvas/canvas-live-render.ts +44 -53
- package/src/canvas/canvas-patcher.ts +30 -30
- package/src/canvas/canvas-perf.ts +11 -5
- package/src/canvas/canvas-render.ts +62 -41
- package/src/canvas/canvas-surface.ts +5 -3
- package/src/canvas/canvas-utils.ts +90 -49
- package/src/canvas/dialog-path.ts +9 -4
- package/src/canvas/dialog-state.ts +1 -2
- package/src/canvas/diff-marks.ts +9 -16
- package/src/canvas/diff-toolbar.ts +8 -7
- package/src/canvas/edit-width-drag.ts +4 -1
- package/src/canvas/edit-width.ts +1 -3
- package/src/canvas/iframe-channel.ts +27 -13
- package/src/canvas/iframe-drop.ts +13 -12
- package/src/canvas/iframe-editable-root.ts +29 -16
- package/src/canvas/iframe-entry.ts +80 -63
- package/src/canvas/iframe-eval.ts +73 -49
- package/src/canvas/iframe-host.ts +135 -96
- package/src/canvas/iframe-inline-edit.ts +49 -30
- package/src/canvas/iframe-insert.ts +5 -4
- package/src/canvas/iframe-interaction.ts +30 -25
- package/src/canvas/iframe-overlay.ts +1 -1
- package/src/canvas/iframe-patch.ts +18 -15
- package/src/canvas/iframe-position.ts +12 -6
- package/src/canvas/iframe-protocol.ts +12 -16
- package/src/canvas/iframe-render.ts +36 -34
- package/src/canvas/iframe-slash.ts +24 -11
- package/src/canvas/iframe-subtree.ts +6 -2
- package/src/canvas/path-mapping.ts +19 -12
- package/src/canvas/popover-path.ts +7 -3
- package/src/canvas/popover-state.ts +1 -2
- package/src/canvas/serialize-scope.ts +13 -5
- package/src/canvas/stage-scrollbar.ts +2 -1
- package/src/canvas/surface-registry.ts +21 -3
- package/src/collab/collab-commands.ts +7 -2
- package/src/collab/collab-session.ts +84 -45
- package/src/collab/collab-state.ts +4 -3
- package/src/collab/monaco-binding.ts +16 -13
- package/src/collab/monaco-cursors.ts +5 -2
- package/src/commands/budget.ts +3 -3
- package/src/commands/command-args.ts +103 -71
- package/src/commands/context.ts +22 -20
- package/src/commands/keymap.ts +47 -43
- package/src/commands/levels.ts +3 -3
- package/src/commands/live-context.ts +7 -7
- package/src/commands/reference.ts +2 -1
- package/src/commands/registry.ts +12 -10
- package/src/commands/run-reported.ts +15 -10
- package/src/component-props.ts +46 -30
- package/src/content/collection-match.ts +5 -4
- package/src/content/draft-state.ts +4 -3
- package/src/content/entry-commands.ts +3 -2
- package/src/content/entry-editor.ts +29 -17
- package/src/content/entry-fields.ts +12 -7
- package/src/content/entry-model.ts +21 -12
- package/src/editor/canvas-context-menu.ts +1 -2
- package/src/editor/canvas-slash-bridge.ts +3 -6
- package/src/editor/content-slice.ts +16 -14
- package/src/editor/context-menu.ts +35 -22
- package/src/editor/convert-targets.ts +30 -35
- package/src/editor/convert-to-component.ts +11 -5
- package/src/editor/convert-to-repeater.ts +34 -22
- package/src/editor/editable-tags.ts +17 -2
- package/src/editor/file-drop-action.ts +21 -22
- package/src/editor/inline-edit-apply.ts +35 -17
- package/src/editor/inline-edit.ts +66 -50
- package/src/editor/inline-format.ts +59 -56
- package/src/editor/inline-link.ts +40 -15
- package/src/editor/insert-zone-action.ts +1 -1
- package/src/editor/merge-tags.ts +58 -19
- package/src/editor/repeater-scope.ts +39 -28
- package/src/editor/shortcuts.ts +32 -20
- package/src/editor/slash-menu.ts +1 -6
- package/src/files/asset-versions.ts +4 -4
- package/src/files/components.ts +15 -10
- package/src/files/elements.ts +5 -6
- package/src/files/file-ops.ts +77 -36
- package/src/files/files.ts +90 -95
- package/src/files/media-meta.ts +2 -1
- package/src/files/media-paths.ts +3 -0
- package/src/files/serialize-document.ts +2 -2
- package/src/format/constraints.ts +1 -1
- package/src/format/convert-file.ts +27 -13
- package/src/format/format-choices.ts +2 -1
- package/src/format/format-host.ts +76 -50
- package/src/github/github-auth-status.ts +27 -3
- package/src/github/github-auth.ts +19 -9
- package/src/github/github-publish.ts +24 -20
- package/src/grid/cell-editors.ts +46 -31
- package/src/grid/cell-popovers.ts +5 -3
- package/src/grid/edit-buffer.ts +10 -9
- package/src/grid/grid-controller.ts +20 -22
- package/src/grid/grid-layout.ts +21 -5
- package/src/grid/grid-open.ts +3 -6
- package/src/grid/grid-panel.ts +11 -4
- package/src/grid/grid-source.ts +8 -8
- package/src/grid/grid-view.ts +14 -17
- package/src/grid/redirects-grid.ts +14 -5
- package/src/grid/redirects.ts +16 -14
- package/src/grid/schema-columns.ts +25 -19
- package/src/grid/sources/connector-source.ts +47 -20
- package/src/grid/sources/content-source.ts +25 -24
- package/src/grid/sources/csv-file-source.ts +2 -2
- package/src/grid/tabulator-tables.d.ts +55 -34
- package/src/hosting/stage.ts +7 -7
- package/src/i18n/i18n-commands.ts +1 -2
- package/src/media/media-pane.ts +4 -1
- package/src/new-project/add-repo-modal.ts +20 -19
- package/src/new-project/import-tab.ts +10 -14
- package/src/new-project/location-fields.ts +2 -1
- package/src/new-project/new-project-modal.ts +12 -9
- package/src/packages/jxsuite-update.ts +4 -3
- package/src/packages/pull-package-sync.ts +26 -25
- package/src/page-params.ts +97 -68
- package/src/panels/activity-panel.ts +17 -9
- package/src/panels/ai-chat/attached-context.ts +13 -7
- package/src/panels/ai-chat/chat-view.ts +80 -73
- package/src/panels/ai-chat/composer.ts +30 -33
- package/src/panels/ai-chat/sessions-view.ts +1 -2
- package/src/panels/ai-panel.ts +23 -20
- package/src/panels/block-action-bar.ts +46 -35
- package/src/panels/bottom-dock.ts +5 -3
- package/src/panels/canvas-dnd-bridge.ts +31 -24
- package/src/panels/data-explorer.ts +62 -25
- package/src/panels/data-grid.ts +14 -11
- package/src/panels/dnd.ts +108 -118
- package/src/panels/editors.ts +52 -21
- package/src/panels/elements-panel.ts +10 -3
- package/src/panels/events-panel.ts +84 -69
- package/src/panels/formula-workspace.ts +76 -51
- package/src/panels/frontmatter-fields.ts +24 -19
- package/src/panels/frontmatter-panel.ts +44 -34
- package/src/panels/git-diff-open.ts +4 -4
- package/src/panels/git-panel.ts +49 -61
- package/src/panels/head-panel.ts +131 -111
- package/src/panels/i18n-panel.ts +10 -3
- package/src/panels/imports-panel.ts +23 -47
- package/src/panels/jump-bar.ts +48 -29
- package/src/panels/layers-panel.ts +97 -74
- package/src/panels/left-panel.ts +3 -3
- package/src/panels/pane-context.ts +31 -22
- package/src/panels/pane-grid.ts +49 -20
- package/src/panels/panel-registry.ts +22 -37
- package/src/panels/properties-panel.ts +175 -121
- package/src/panels/quick-search.ts +53 -31
- package/src/panels/right-panel.ts +3 -3
- package/src/panels/seo-modal.ts +13 -17
- package/src/panels/settings-menu.ts +15 -15
- package/src/panels/signals-panel.ts +153 -131
- package/src/panels/statement-editor.ts +230 -140
- package/src/panels/style-panel.ts +218 -205
- package/src/panels/style-utils.ts +114 -51
- package/src/panels/stylebook-doc.ts +57 -54
- package/src/panels/stylebook-layers-panel.ts +9 -9
- package/src/panels/stylebook-panel.ts +13 -17
- package/src/panels/tab-drop.ts +27 -11
- package/src/panels/tab-strip.ts +36 -26
- package/src/platform-errors.ts +57 -43
- package/src/platform.ts +58 -30
- package/src/platforms/cloud.ts +345 -175
- package/src/platforms/default-platform.ts +10 -4
- package/src/platforms/devserver.ts +129 -117
- package/src/platforms/read-batcher.ts +16 -8
- package/src/project-list.ts +2 -1
- package/src/publish/deploy-checklist.ts +8 -2
- package/src/publish/pages-service.ts +28 -13
- package/src/publish/publish-commands.ts +5 -4
- package/src/publish/publish-panel.ts +10 -6
- package/src/recent-projects.ts +15 -8
- package/src/resize-edges.ts +26 -36
- package/src/services/a11y-report.ts +26 -19
- package/src/services/agent-seed.ts +23 -11
- package/src/services/ai-ask.ts +9 -12
- package/src/services/ai-command-tools.ts +68 -62
- package/src/services/ai-import-tools.ts +80 -67
- package/src/services/ai-models.ts +17 -13
- package/src/services/ai-project-tools.ts +68 -32
- package/src/services/ai-session-store.ts +19 -10
- package/src/services/ai-system-prompt.ts +46 -20
- package/src/services/ai-tools.ts +71 -27
- package/src/services/ai-write-report.ts +20 -12
- package/src/services/ai-writes.ts +4 -4
- package/src/services/automation.ts +58 -31
- package/src/services/cem-export.ts +149 -58
- package/src/services/clock.ts +6 -1
- package/src/services/code-services.ts +37 -31
- package/src/services/context-manager.ts +14 -10
- package/src/services/context-resolver.ts +20 -8
- package/src/services/data-service.ts +19 -15
- package/src/services/directory-picker.ts +18 -12
- package/src/services/document-assistant.ts +39 -19
- package/src/services/gated-registry.ts +10 -6
- package/src/services/harness/chat-reducer.ts +23 -1
- package/src/services/import-client.ts +91 -38
- package/src/services/import-seed.ts +8 -2
- package/src/services/jx-validate.ts +28 -31
- package/src/services/live-preview.ts +0 -0
- package/src/services/live-surfaces.ts +6 -3
- package/src/services/model-uri.ts +10 -2
- package/src/services/module-preloads.ts +12 -8
- package/src/services/monaco-buffer.ts +43 -24
- package/src/services/monaco-lazy.ts +7 -8
- package/src/services/monaco-setup.ts +23 -16
- package/src/services/notify.ts +44 -17
- package/src/services/popover-report.ts +25 -10
- package/src/services/preview-eval.ts +20 -8
- package/src/services/profile.ts +13 -6
- package/src/services/project-path.ts +13 -10
- package/src/services/references.ts +0 -0
- package/src/services/render-critic.ts +8 -7
- package/src/services/settings/kernel.ts +13 -4
- package/src/services/settings/write-queue.ts +9 -9
- package/src/services/token-lint.ts +12 -10
- package/src/services/tool-executor.ts +17 -5
- package/src/services/tool-outcomes.ts +44 -24
- package/src/services/trusted-types.ts +24 -7
- package/src/settings/contexts-section.ts +11 -8
- package/src/settings/contributed-section.ts +79 -60
- package/src/settings/css-vars-editor.ts +37 -16
- package/src/settings/defs-editor.ts +38 -35
- package/src/settings/extension-rows.ts +16 -8
- package/src/settings/extension-sections.ts +23 -13
- package/src/settings/extensions-section.ts +4 -1
- package/src/settings/general-settings.ts +11 -8
- package/src/settings/locales-section.ts +20 -12
- package/src/settings/preferences-dialog.ts +9 -6
- package/src/settings/preferences-keymap.ts +7 -5
- package/src/settings/preferences-sections.ts +11 -5
- package/src/settings/project-sections.ts +1 -1
- package/src/settings/schema-field-ui.ts +9 -0
- package/src/settings/settings-document.ts +5 -5
- package/src/shell/tree.ts +6 -5
- package/src/shell.ts +104 -81
- package/src/site-context.ts +37 -22
- package/src/state.ts +41 -49
- package/src/store.ts +54 -34
- package/src/studio.ts +25 -75
- package/src/style/live-preview.ts +1 -1
- package/src/style/project-styles.ts +6 -7
- package/src/style/token-ref.ts +5 -4
- package/src/surfaces/about.ts +18 -19
- package/src/surfaces/add-repo.ts +17 -19
- package/src/surfaces/ai-chat.ts +31 -36
- package/src/surfaces/ai-credentials-form.ts +6 -16
- package/src/surfaces/ai-managed-connect.ts +3 -4
- package/src/surfaces/ai-model-picker.ts +3 -5
- package/src/surfaces/block-action-bar.ts +22 -11
- package/src/surfaces/boot-failure.ts +4 -5
- package/src/surfaces/bottom-dock.ts +9 -18
- package/src/surfaces/canvas-stage.ts +12 -11
- package/src/surfaces/cf-account-picker.ts +17 -18
- package/src/surfaces/commandbar.ts +14 -9
- package/src/surfaces/convert-repeater.ts +17 -19
- package/src/surfaces/data-actions.ts +9 -7
- package/src/surfaces/dialog.ts +26 -28
- package/src/surfaces/diff-toolbar.ts +9 -7
- package/src/surfaces/doc-header.ts +10 -19
- package/src/surfaces/empty-state.ts +7 -10
- package/src/surfaces/entry-editor.ts +14 -11
- package/src/surfaces/expression-editor.ts +11 -25
- package/src/surfaces/files-panel.ts +27 -14
- package/src/surfaces/formula-palette.ts +4 -5
- package/src/surfaces/git-panel.ts +7 -15
- package/src/surfaces/github-auth.ts +16 -20
- package/src/surfaces/github-publish.ts +17 -22
- package/src/surfaces/grid-cell.ts +30 -31
- package/src/surfaces/grid-open.ts +10 -14
- package/src/surfaces/grid-panel.ts +13 -9
- package/src/surfaces/grid-replace.ts +13 -13
- package/src/surfaces/grid-views.ts +15 -18
- package/src/surfaces/inspector-dock.ts +13 -12
- package/src/surfaces/jump-bar.ts +5 -6
- package/src/surfaces/jxsuite-update.ts +16 -22
- package/src/surfaces/library-pane.ts +19 -20
- package/src/surfaces/logic-panel.ts +17 -30
- package/src/surfaces/logic-workspace.ts +13 -15
- package/src/surfaces/media-browser.ts +11 -10
- package/src/surfaces/media-field.ts +4 -5
- package/src/surfaces/media-pane.ts +8 -7
- package/src/surfaces/menu.ts +29 -23
- package/src/surfaces/navigator-dock.ts +11 -12
- package/src/surfaces/new-project.ts +27 -26
- package/src/surfaces/pane-context.ts +20 -25
- package/src/surfaces/pane-grid.ts +15 -10
- package/src/surfaces/panel-activity.ts +5 -6
- package/src/surfaces/panel-data.ts +3 -4
- package/src/surfaces/panel-deploy-checklist.ts +5 -6
- package/src/surfaces/panel-elements.ts +5 -7
- package/src/surfaces/panel-i18n.ts +5 -7
- package/src/surfaces/panel-imports.ts +6 -13
- package/src/surfaces/panel-outline.ts +25 -19
- package/src/surfaces/panel-page.ts +11 -18
- package/src/surfaces/panel-problems.ts +5 -7
- package/src/surfaces/panel-signals.ts +20 -34
- package/src/surfaces/panel-stylebook-layers.ts +5 -8
- package/src/surfaces/preferences.ts +21 -11
- package/src/surfaces/progress-modal.ts +15 -9
- package/src/surfaces/properties-panel.json +1 -1
- package/src/surfaces/properties-panel.ts +20 -42
- package/src/surfaces/publish.ts +18 -18
- package/src/surfaces/push-plan.ts +7 -8
- package/src/surfaces/rail.ts +13 -13
- package/src/surfaces/reference-field.ts +11 -15
- package/src/surfaces/schema-builder.ts +16 -22
- package/src/surfaces/schema-form.ts +15 -25
- package/src/surfaces/secret-field.ts +9 -6
- package/src/surfaces/seo.ts +21 -15
- package/src/surfaces/settings-contexts.ts +9 -7
- package/src/surfaces/settings-contributed.ts +14 -10
- package/src/surfaces/settings-css-vars.ts +5 -12
- package/src/surfaces/settings-defs.json +2 -2
- package/src/surfaces/settings-defs.ts +17 -21
- package/src/surfaces/settings-deploy.ts +8 -15
- package/src/surfaces/settings-extensions.ts +5 -6
- package/src/surfaces/settings-head.ts +33 -39
- package/src/surfaces/settings-locales.ts +8 -20
- package/src/surfaces/settings-overview.ts +5 -6
- package/src/surfaces/settings-packages.ts +8 -7
- package/src/surfaces/settings-pane.ts +9 -18
- package/src/surfaces/settings-rawjson.ts +5 -6
- package/src/surfaces/shell.ts +1 -2
- package/src/surfaces/slash-menu.ts +19 -9
- package/src/surfaces/statements.ts +13 -18
- package/src/surfaces/statusbar.ts +17 -14
- package/src/surfaces/style-panel.ts +18 -31
- package/src/surfaces/stylebook-chrome.ts +3 -5
- package/src/surfaces/tab-strip.ts +14 -13
- package/src/surfaces/target-line.ts +6 -7
- package/src/surfaces/welcome.ts +5 -7
- package/src/tabs/patch-ops.ts +4 -3
- package/src/tabs/project-config.ts +32 -21
- package/src/tabs/selection.ts +36 -8
- package/src/tabs/tab.ts +52 -41
- package/src/tabs/transact.ts +98 -53
- package/src/types.ts +32 -17
- package/src/ui/ai-credentials-form.ts +10 -13
- package/src/ui/ai-model-picker.ts +3 -3
- package/src/ui/cf-account-picker.ts +7 -9
- package/src/ui/color-selector.ts +9 -5
- package/src/ui/dynamic-slot.ts +7 -8
- package/src/ui/expression-editor.ts +112 -105
- package/src/ui/form-controls.ts +57 -48
- package/src/ui/formula-catalog.ts +239 -230
- package/src/ui/formula-chips.ts +33 -18
- package/src/ui/layers.ts +44 -31
- package/src/ui/media-picker.ts +18 -9
- package/src/ui/popover-surface.ts +20 -12
- package/src/ui/progress-modal.ts +13 -8
- package/src/ui/regions.ts +7 -6
- package/src/ui/schema-form.ts +113 -70
- package/src/ui/surface.ts +71 -8
- package/src/ui/timing.ts +9 -0
- package/src/ui/value-source.ts +44 -31
- package/src/ui/virtual-window.ts +3 -2
- package/src/utils/base64.ts +3 -1
- package/src/utils/edit-display.ts +73 -73
- package/src/utils/element-selectors.ts +3 -2
- package/src/utils/google-fonts.ts +15 -14
- package/src/utils/inherited-style.ts +18 -20
- package/src/utils/link-target.ts +1 -1
- package/src/utils/preview-format.ts +25 -3
- package/src/utils/strip-events.ts +49 -22
- package/src/utils/studio-utils.ts +29 -14
- package/src/view.ts +2 -3
- package/src/workspace/pane-derive.ts +10 -12
- package/src/workspace/session.ts +53 -43
- package/src/workspace/workspace.ts +40 -36
- package/dist/chunks/adapter-f93pafd7.js +0 -4
- package/dist/chunks/cf-account-picker-af1h381v.js +0 -4
- package/dist/chunks/cf-settings-125tdm0w.js +0 -4
- package/dist/chunks/color-area-jqhna8zy.js +0 -4
- package/dist/chunks/color-field-embq5ctg.js +0 -4
- package/dist/chunks/color-fpezvnkt.js +0 -4
- package/dist/chunks/color-slider-1qmw7wqy.js +0 -4
- package/dist/chunks/combobox-773hdzyj.js +0 -4
- package/dist/chunks/components-ax2f1fnn.js +0 -4
- package/dist/chunks/content-source-108aqtk1.js +0 -4
- package/dist/chunks/convert-to-repeater-ry5rmppr.js +0 -4
- package/dist/chunks/dialog-mtm9fq5t.js +0 -4
- package/dist/chunks/editor-pfgdmkb0.js +0 -4
- package/dist/chunks/entry-commands-t0k1q0kx.js +0 -4
- package/dist/chunks/extension-sections-6mwh2hf8.js +0 -4
- package/dist/chunks/file-ops-meej5mqf.js +0 -4
- package/dist/chunks/files-44vp8a2s.js +0 -4
- package/dist/chunks/format-host-7q1petb9.js +0 -4
- package/dist/chunks/fs-events-h2mwnxaz.js +0 -4
- package/dist/chunks/git-panel-zngbymvd.js +0 -4
- package/dist/chunks/grid-view-sx9vynsp.js +0 -51
- package/dist/chunks/icons-p44xhjf0.js +0 -4
- package/dist/chunks/iframe-entry-f7mqjwpm.js +0 -5
- package/dist/chunks/iframe-entry-haw7jkvz.js +0 -5
- package/dist/chunks/iframe-entry-z6qrytv3.js +0 -5
- package/dist/chunks/iframe-host-qk3ycq87.js +0 -4
- package/dist/chunks/index-wkyfjeqz.js +0 -4
- package/dist/chunks/jx-validate-psgd7vsx.js +0 -4
- package/dist/chunks/layers-panel-1kq2jyfk.js +0 -4
- package/dist/chunks/layers-xd92fg8d.js +0 -4
- package/dist/chunks/listbox-s8fkmnq8.js +0 -4
- package/dist/chunks/lit-html-ac4cwwr4.js +0 -4
- package/dist/chunks/media-picker-0svzkdyb.js +0 -4
- package/dist/chunks/menu-37d07z9m.js +0 -4
- package/dist/chunks/menu-5c55ea3d.js +0 -4
- package/dist/chunks/monaco-binding-z6r70pdt.js +0 -4
- package/dist/chunks/monaco-buffer-fz6gq5y7.js +0 -4
- package/dist/chunks/monaco-setup-q4axkgj7.js +0 -4
- package/dist/chunks/notify-0xgtn8q1.js +0 -4
- package/dist/chunks/number-field-gw7sq8rn.js +0 -4
- package/dist/chunks/parse-897fvqah.js +0 -4
- package/dist/chunks/platform-v1qctbe6.js +0 -4
- package/dist/chunks/popover-8htra4er.js +0 -4
- package/dist/chunks/publish-panel-ym1fmgq5.js +0 -4
- package/dist/chunks/quick-search-a54e6t5n.js +0 -4
- package/dist/chunks/references-gmqp82fs.js +0 -4
- package/dist/chunks/right-panel-v7t9awbk.js +0 -4
- package/dist/chunks/section-registry-vhyf3zsr.js +0 -4
- package/dist/chunks/select-n3v7gwas.js +0 -4
- package/dist/chunks/split-pff8f3ze.js +0 -4
- package/dist/chunks/studio-0bhx5hz6.js +0 -5
- package/dist/chunks/studio-0k1ddnyy.js +0 -6
- package/dist/chunks/studio-1b04pd0j.js +0 -64
- package/dist/chunks/studio-4dwbj6gb.js +0 -5
- package/dist/chunks/studio-4tanh828.js +0 -5
- package/dist/chunks/studio-55h4mstj.js +0 -4
- package/dist/chunks/studio-5tnvjkz4.js +0 -5
- package/dist/chunks/studio-60dqgb0c.js +0 -5
- package/dist/chunks/studio-61dp09qg.js +0 -9
- package/dist/chunks/studio-63epcrj2.js +0 -5
- package/dist/chunks/studio-74k29dy9.js +0 -5
- package/dist/chunks/studio-7vg6jcd3.js +0 -5
- package/dist/chunks/studio-7zx31knw.js +0 -9
- package/dist/chunks/studio-8bxk97km.js +0 -5
- package/dist/chunks/studio-933e30n4.js +0 -5
- package/dist/chunks/studio-98wnwhbg.js +0 -5
- package/dist/chunks/studio-9mccjwjh.js +0 -14
- package/dist/chunks/studio-a2ke1e4t.js +0 -5
- package/dist/chunks/studio-e3a2a6v3.js +0 -4
- package/dist/chunks/studio-e81q1vb9.js +0 -5
- package/dist/chunks/studio-epgrmqqm.js +0 -5
- package/dist/chunks/studio-ery42sqr.js +0 -4
- package/dist/chunks/studio-g1shz58g.js +0 -5
- package/dist/chunks/studio-gf0fz03c.js +0 -5
- package/dist/chunks/studio-gjtpe62q.js +0 -6
- package/dist/chunks/studio-gkskhg7m.js +0 -5
- package/dist/chunks/studio-gx4dnjzd.js +0 -5
- package/dist/chunks/studio-j03zga3y.js +0 -9
- package/dist/chunks/studio-jhpxeckz.js +0 -5
- package/dist/chunks/studio-k01r7ykp.js +0 -5
- package/dist/chunks/studio-kk7h30ne.js +0 -7
- package/dist/chunks/studio-kt1zqney.js +0 -5
- package/dist/chunks/studio-m3cwhvye.js +0 -5
- package/dist/chunks/studio-mcayt6hz.js +0 -5
- package/dist/chunks/studio-myjcghv3.js +0 -5
- package/dist/chunks/studio-n8bxwc3y.js +0 -4
- package/dist/chunks/studio-ngm8gvpb.js +0 -5
- package/dist/chunks/studio-nj5a01jy.js +0 -928
- package/dist/chunks/studio-pcgz8heb.js +0 -5
- package/dist/chunks/studio-qcsq0t15.js +0 -5
- package/dist/chunks/studio-qkstvve9.js +0 -5
- package/dist/chunks/studio-qv1pwd3c.js +0 -5
- package/dist/chunks/studio-rc6dvxjb.js +0 -7
- package/dist/chunks/studio-s8dmmz66.js +0 -5
- package/dist/chunks/studio-sp5xzbj4.js +0 -6
- package/dist/chunks/studio-szsjbj0g.js +0 -5
- package/dist/chunks/studio-t1xzawhr.js +0 -16
- package/dist/chunks/studio-t6b6qe31.js +0 -5
- package/dist/chunks/studio-tdcprbqb.js +0 -5
- package/dist/chunks/studio-vyc0b4he.js +0 -10
- package/dist/chunks/studio-w0cgf6jg.js +0 -5
- package/dist/chunks/studio-w3hskzqk.js +0 -5
- package/dist/chunks/studio-xgrgcdyh.js +0 -9
- package/dist/chunks/studio-xz2yxfcb.js +0 -5
- package/dist/chunks/studio-y6n42tgs.js +0 -5
- package/dist/chunks/studio-yb560vxr.js +0 -5
- package/dist/chunks/studio-yn9f8vtx.js +0 -5
- package/dist/chunks/studio-yw05w8f0.js +0 -7
- package/dist/chunks/studio-z16sgavc.js +0 -5
- package/dist/chunks/studio-zyqn40w4.js +0 -5
- package/dist/chunks/swatch-group-8qh9a3bm.js +0 -4
- package/dist/chunks/tabs-jwthg40w.js +0 -4
- package/dist/chunks/textfield-spy3hc77.js +0 -4
- package/dist/chunks/toast-4d35zd64.js +0 -4
- package/dist/chunks/toast-host-8sjmfed3.js +0 -4
- package/dist/chunks/tooltip-fd6g9xy3.js +0 -4
- package/dist/chunks/tree-h19v1jfz.js +0 -4
- package/dist/chunks/workspace-zt81g1ms.js +0 -4
- package/dist/chunks/ws-client-n2bh4hkf.js +0 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{Is}from"./studio-485046te.js";import{So,Ax,Np,hL,Px,gy,LC,$C,Hc,jm,n1,i1,ll,Bd,Gx}from"./studio-se2r3ptc.js";import{Da,Jd,Hy,r_,Oe,u$,Uy,qy,h$,Up,Ky,Y,ta,Ir,uh,T1,Kp,Yy,v$,Ql,Ye,S$,R$,Wr,b,h}from"./studio-24mccdrj.js";import{oe,kh,Eh,v,E}from"./studio-wz73q5kq.js";import{tt,Xd,rc}from"./studio-vmfkgdjf.js";import{f}from"./studio-ffrrncvz.js";import{hf,ae}from"./studio-v8aga3vp.js";import{Wu,dm,TS,il}from"./studio-amsbaaar.js";import{mt}from"./studio-0q988f9w.js";import{dt,Gt,I,A,un,ug,Hn,Ns,hg}from"./studio-2jbs3rxv.js";import{re}from"./studio-j1kvhdjk.js";import{QT,tL,Xn}from"./studio-v2w7q8r1.js";import{io,x,$s}from"./studio-ynn90f58.js";import{ut,Zl,Bc}from"./studio-4h8k4dw9.js";import{Bt}from"./studio-1fxkaaea.js";import{hy}from"./studio-zp7snvkq.js";import{Tb,Bu,Ow,yp}from"./studio-6ep3js6b.js";import{Ab,Pb,JE,Mb}from"./studio-bn5nkafw.js";import{ny}from"./studio-b2xv945e.js";import{Ur,Dt,ai,V1,ao,eu,lo,O,rf,Gc}from"./studio-c7q0t9x1.js";import{ne}from"./studio-y21g8zzg.js";import{Me}from"./studio-m6bdst11.js";import{i,ee,te,T,w,He,Ro,Qn,cu,bk,Ze}from"./studio-cffqvnzd.js";import{ji,we}from"./studio-a3g98wjr.js";var ht={};ji(ht,{boolean:()=>P,booleanish:()=>K,commaOrSpaceSeparated:()=>ce,commaSeparated:()=>Ne,number:()=>R,overloadedBoolean:()=>Yt,spaceSeparated:()=>U});var us=50;function kw(e,t){if(!Array.isArray(t)||t.length===0)return null;let n=t.lastIndexOf("map");if(n<=0)return null;let r=ne(e,t.slice(0,n));return Ro(r)?r:null}function cs(e){if(!He(e))return null;let{$ref:t}=e;return t.startsWith("#/state/")?t.slice(8):null}function Pt(e){return e.filter((t)=>!t.startsWith("$")).slice(0,us)}function Ia(e,t,n){let r=["item","index"],{items:o}=e,s=t??{},c=cs(o);if(c){let m=s[c];if(w(m)){if(i(m.contentType)){let L=n?.content,k=w(L)?L[m.contentType]:void 0,M=w(k)?k.schema:void 0,H=w(M)?M.properties:void 0,F=[...r,"item.id","item.body"];if(T(H))for(let V of Pt(Object.keys(H)))F.push(`item.data.${V}`);return F}let p=m.items,C=w(p)?p.properties:void 0;if(T(C))return[...r,...Pt(Object.keys(C)).map((L)=>`item.${L}`)];let D=m.default,y=Array.isArray(D)?D[0]:void 0;if(w(y))return[...r,...Pt(Object.keys(y)).map((L)=>`item.${L}`)]}return r}if(Array.isArray(o)){let[m]=o;if(w(m))return[...r,...Pt(Object.keys(m)).map((p)=>`item.${p}`)]}return r}var ls=3,ds=30;function La(e){return T(e)&&!Array.isArray(e)}function En(e){return Wu(e)}function Mt(e){let t=En(e),n=dm(t);if(t===null||t===void 0||T(t))return n;let r=i(t)?t.length>24?`"${t.slice(0,24)}…"`:`"${t}"`:String(t);return`${n} · ${r}`}function pn(e,t,n,r,o){if(r>=ls)return;let s=En(e);if(Array.isArray(s)){let m=`${t}.length`;o.push({category:n,hint:`number · ${s.length}`,label:m,token:m});return}if(!La(s))return;let c=Object.keys(s).slice(0,ds);for(let m of c){if(m.startsWith("$"))continue;let p=s[m],C=`${t}.${m}`;o.push({category:n,hint:Mt(p),label:C,token:C}),pn(p,C,n,r+1,o)}}function Oa(e,t,n=null){let r=[],o=e??{},s=t??{};for(let[c,m]of Object.entries(o)){if(c.startsWith("$"))continue;let p=il(m);if(p==="function")continue;let C=s[c],D=`state.${c}`;r.push({category:p,hint:Mt(C),label:D,token:D}),pn(C,D,p,0,r)}if(n){let c=En(n.$map);if(T(c)){let m=La(c)?c:void 0;r.push({category:"repeater",hint:Mt(m?.item),label:"item",token:"item"}),pn(m?.item,"item","repeater",0,r),r.push({category:"repeater",hint:Mt(m?.index),label:"index",token:"index"})}}return r}function Ra(e){let t=["item","index",...e],n=new Set,r=[];for(let o of t){if(!o||n.has(o))continue;n.add(o),r.push({category:"repeater",hint:"",label:o,token:o})}return r}var fs=/^[a-z][a-z0-9]*(-[a-z0-9]+)+$/;async function im(){let e=h.value,t=Oe(e?.session.selection);if(!e||!t||t.length<2)return;let n=ne(e.doc.document,t);if(!n||!n.tagName)return;let r=ms(n),o=await Es(r);if(!o)return;let s=o.toLowerCase(),c=hs(n);c.tagName=s;let m=`components/${s}.json`,p=Bc(e.documentPath,m),C=t;if(!ta(e,(y)=>{let L=Dt(C)??[],k=ai(C),M=y;for(let F of L)M=M[F];if(!Array.isArray(M.children))M.children=[];if(M.children[k]={tagName:s},!y.$elements)y.$elements=[];if(!y.$elements.some((F)=>T(F)&&("$ref"in F)&&F.$ref===p))y.$elements.push({$ref:p})}))return;try{await f().writeFile(m,io(c,null)),await Zl();let L=ny(c);if(E.success(`Converted to <${s}>`),L)E.warn(`<${s}> has a slot problem: ${L}`,{path:m,source:"Components",tier:"problem"})}catch(y){E.error(`Could not save the <${s}> component.`,{detail:re(y),path:m,source:"Components"})}}function ms(e){if(e.$id&&e.$id.includes("-"))return e.$id.toLowerCase();let t=(Ze(e.tagName)||"div").toLowerCase();return t.includes("-")?t:`jx-${t}`}function hs(e){let t=Wr(e);return delete t.$id,delete t.$layout,delete t.$paths,t}function ps(e){let t=e.trim().toLowerCase();if(!t.includes("-"))return{error:"Name must contain a hyphen (e.g. my-component)",valid:!1};if(!fs.test(t))return{error:"Lowercase letters, digits, and hyphens only",valid:!1};if(ut.some((r)=>r.tagName===t))return{error:`Component <${t}> already exists`,valid:!1};return{error:"",valid:!0}}function Es(e){return Hn("Convert to Component",{confirmLabel:"Convert",message:"Enter a hyphenated tag name for the new component.",placeholder:"my-component",validate:(t)=>ps(t).error,value:e})}var va={$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/rows"},key:{$ref:"$map/item/key"},map:{tagName:"jx-option",attributes:{part:"option",id:"slash-menu-option-${$map.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/index"}]}]}}}]}]}]};I("slash-menu",va);var bn="slash-menu";function wa(e){return e.rows[e.activeIndex]?`slash-menu-option-${e.activeIndex}`:""}function ka(e,t,n){let r=Ns("popover",bn),o=new AbortController,s=null,c=null,m=!1,p=v({activeId:wa(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,k)=>{let M=String(k.detail),H=p.rows.findIndex((F)=>F.key===M);if(H!==-1)t.activateRow(H)},rows:[...e.rows],showFilter:e.showFilter,x:e.x,y:e.y}),C=(L)=>{if(m)return;if(m=!0,o.abort(),c?.dispose(),c=null,hg("popover",bn),L)t.dismissed()},D=()=>o.signal.aborted,y=(async()=>{let L=await A("slash-menu",p,r,{signal:o.signal});if(D())return;if(c=L,s=L.root,s.setAttribute(dt,Gt("popover",bn)),s.addEventListener("toggle",(k)=>{if(k.newState==="closed")C(!0)}),!s.hasAttribute("popover"))await new Promise((k)=>{s.addEventListener("jx-ready",()=>k(),{once:!0})});if(D())return;s.showPopover(n instanceof HTMLElement?{source:n}:void 0)})();return{close:()=>{if(m)return;if(s?.open)s.hidePopover();C(!1)},focusFilter:()=>{r.querySelector('[part="filter"]')?.focus()},host:r,ready:y,update:(L)=>{if(m)return;p.x=L.x,p.y=L.y,p.showFilter=L.showFilter,p.filter=L.filter,p.rows=[...L.rows],p.activeId=wa(L),p.isEmpty=L.rows.length===0,p.expanded=L.rows.length>0}}}var Pa=[{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"}],it=null,Te=0,Tn=!1,Ht="",ke=[],Xe=!1,gn=null,ve=null;function yb(e,t,n){Ha(Me(e),t,n,e)}function sE(e,t,n){Ha(e,t,n)}function Ts(){return it?.commands||Pa}function Ma(e,t){return e?t.filter((n)=>n.label.toLowerCase().includes(e)||n.tag.toLowerCase().includes(e)):t}function Ba(){let e=gn;return{activeIndex:Te,filter:Ht,rows:ke.map((t)=>({description:t.description,key:t.tag,label:t.label})),showFilter:Tn,x:e?e.left:0,y:e?e.bottom:0}}function ct(){ve?.update(Ba())}function Ha(e,t,n,r){if(it=n,gn=e,ke=Ma(t,n.commands||Pa),ke.length===0&&!n.showFilter){ju();return}if(Te=0,Tn=n.showFilter||!1,ve){ct();return}if(Xe=!0,Ht="",document.addEventListener("keydown",$a,!0),ve=ka(Ba(),{activateRow:(o)=>{let s=ke[o];if(s)Fa(s)},dismissed:gs,hover:(o)=>{Te=o,ct()},input:As},r??null),Tn){let o=ve;o.ready.then(()=>{if(ve===o)o.focusFilter()})}}function Ua(){let e=it;return Xe=!1,it=null,gn=null,ke=[],Ht="",Te=0,document.removeEventListener("keydown",$a,!0),e}function ju(){if(!Xe)return;let e=ve;ve=null;let t=Ua();e?.close(),t?.onDismiss?.()}function gs(){if(!Xe)return;ve=null,Ua()?.onDismiss?.()}function Fa(e){let t=it;ju(),t?.onSelect(e)}function As(e){Ht=e,ke=Ma(e.toLowerCase(),Ts()),Te=0,ct()}function iS(e){if(!Xe)return;let t=ke.length;if(e==="ArrowDown"){if(t===0)return;Te=(Te+1)%t,ct()}else if(e==="ArrowUp"){if(t===0)return;Te=(Te-1+t)%t,ct()}else if(e==="Enter"){let n=ke[Te];if(n)Fa(n)}else if(e==="Escape")ju()}function $a(e){if(!Xe)return;if(["ArrowDown","ArrowUp","Enter","Escape"].includes(e.key))e.preventDefault(),e.stopPropagation(),iS(e.key)}var _s=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"]]),Cs=Ax.$convertGroups;function Ya(e,t){let n=Np[e];if(!n?.$convertTo)return[];let r=t&&n.$convertToWhenEmpty?n.$convertToWhenEmpty:[n.$convertTo],o=new Set;for(let s of r)for(let c of Cs[s]||[])if(c!==e)o.add(c);return[...o].map((s)=>({description:"",label:_s.get(s)||s.charAt(0).toUpperCase()+s.slice(1),tag:s}))}var ja=["mod","ctrl","alt","shift"],Va=new Map([["mod","mod"],["cmd","mod"],["command","mod"],["meta","mod"],["super","mod"],["ctrl","ctrl"],["control","ctrl"],["alt","alt"],["opt","alt"],["option","alt"],["shift","shift"]]),Ka=new Map([["up","arrowup"],["down","arrowdown"],["left","arrowleft"],["right","arrowright"],["esc","escape"],["space"," "],["spacebar"," "],["del","delete"],["plus","="],["return","enter"]]),ys={mod:"⌘",ctrl:"⌃",alt:"⌥",shift:"⇧"},xs={mod:"Ctrl",ctrl:"Ctrl",alt:"Alt",shift:"Shift"},Ss=new Map([["arrowup","↑"],["arrowdown","↓"],["arrowleft","←"],["arrowright","→"],[" ","Space"],["escape","Esc"],["enter","Enter"],["tab","Tab"],["delete","Delete"],["backspace","Backspace"]]);function Ew(e){let t={mod:!1,ctrl:!1,alt:!1,shift:!1,key:""},n=e.split("+");for(let[r,o]of n.entries()){if(o===""){if(r>0&&n[r-1]==="")t.key="+";continue}let s=o.trim(),c=s===""?" ":s.toLowerCase(),m=Va.get(c);if(m){t[m]=!0;continue}t.key=Ka.get(c)??c}if(!t.key)throw Error(`keybinding "${e}" has no key — a chord needs more than modifiers`);return t}function qa(e){return[...ja.filter((n)=>e[n]),e.key].join("+")}function vd(e){return qa(Ew(e))}function Ls(e=globalThis.navigator??{}){return/mac/i.test(e.platform??e.userAgent??"")}function Os(e){return/^Digit(\d)$/.exec(e??"")?.[1]}function Tw(e,t){let n=Os(e.code)??e.key.toLowerCase();if(Va.has(n))return"";let r={mod:t?e.metaKey:e.ctrlKey,ctrl:t?e.ctrlKey:!1,alt:e.altKey,shift:e.shiftKey,key:Ka.get(n)??n};return qa(r)}function vb(e,t){let n=Ew(e),r=ja.filter((s)=>n[s]),o=Ss.get(n.key)??(n.key.length===1?n.key.toUpperCase():n.key.charAt(0).toUpperCase()+n.key.slice(1));return t?r.map((s)=>ys[s]).join("")+o:[...r.map((s)=>xs[s]),o].join("+")}class Wa extends Error{chord;scope;existingId;incomingId;constructor(e,t,n,r){super(`keybinding conflict: "${e}" in scope "${t}" is already bound to "${n}"; "${r}" cannot claim it. Rebind one, or move one to a narrower keyScope.`);this.name="KeybindingConflictError",this.chord=e,this.scope=t,this.existingId=n,this.incomingId=r}}var Rs=["palette"],Ds=["global",...QT.filter((e)=>e!=="global"&&e!=="palette")];function aE(e){if(e==="palette")return Rs;if(e==="global")return Ds;return[e,"global"]}function Ga(e={}){let t=e.mac??Ls(),n=new Map,r=new Map,o=new Map,s=new Map,c=new Set;function m(y){let L=y.keybinding;if(!L)return[];return(i(L)?[L]:[...L]).map((k)=>vd(k))}function p(y){let L=n.get(y);if(!L)L=new Map,n.set(y,L);return L}function C(y,L){let k=o.get(y);if(!k)return;let M=s.get(y),H=M===void 0?"default":"override",F=M??k.chords,V=p(k.scope);if(L)for(let ue of F){let z=V.get(ue);if(z&&z.id!==y&&z.source==="default"&&H==="default")throw new Wa(ue,k.scope,z.id,y)}let Re=[];for(let ue of F){let z=V.get(ue);if(z&&z.id!==y){if(H==="default")continue;r.set(z.id,(r.get(z.id)??[]).filter((be)=>be!==ue))}V.set(ue,{id:y,source:H}),Re.push(ue)}r.set(y,Re)}function D(){n.clear(),r.clear();for(let y of o.keys())if(s.has(y))C(y,!1);for(let y of o.keys())if(!s.has(y))C(y,!1)}return{mac:t,format(y){return vb(y,t)},add(y){let L=y.keyScope??"global";o.set(y.id,{chords:m(y),scope:L});try{C(y.id,!0)}catch(k){throw o.delete(y.id),k}},remove(y){o.delete(y),D()},bindingsFor(y){return r.get(y)??[]},declaredFor(y){return o.get(y)?.chords??[]},setOverrides(y){s=new Map([...y].map(([L,k])=>[L,k.map((M)=>vd(M))])),D();for(let L of c)L()},onChange(y){return c.add(y),()=>c.delete(y)},overrides(){return new Map(s)},formatBinding(y){let L=r.get(y)?.[0];return L===void 0?void 0:vb(L,t)},resolveChord(y,L){let k=vd(y),M=L.find((F)=>n.get(F)?.has(k)),H=M===void 0?void 0:n.get(M)?.get(k);return M===void 0||H===void 0?void 0:{chord:k,commandId:H.id,scope:M}},resolveEvent(y,L){let k=Tw(y,t);return k===""?void 0:this.resolveChord(k,L)},entries(){let y=[];for(let[L,k]of n)for(let[M,H]of k)y.push({chord:M,commandId:H.id,scope:L});return y}}}function lE(e,t){let n=new Set,r=[];for(let o of e.entries()){let s=t.find((m)=>m===o.scope);if(s===void 0)continue;let c=`${s} ${o.chord}`;if(n.has(c))continue;n.add(c),r.push({chord:o.chord,scope:s})}return r}var vs=/^[a-z][a-z\d]*(\.[a-zA-Z\d]+)+$/,ws=/^[a-z][a-z0-9_]*$/;class Qa extends Error{commandId;requires;constructor(e,t){super(Xa(e,t));this.name="CommandUnavailableError",this.commandId=e,this.requires=t}}var An="a different studio state";function Xa(e,t){return`Command "${e}" is not available right now — it requires ${t}.`}function ks(e,t){let n=e.aiTool;if(!n)return;if(!ws.test(n.name))throw Error(`command "${e.id}" aiTool name "${n.name}" is not snake_case`);let r=t.get(n.name);if(r!==void 0)throw Error(`command "${e.id}" aiTool name "${n.name}" is already projected by "${r}"`);if(!te(n.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 o=e.args?.properties;if(e.level==="selection"&&o&&Object.hasOwn(o,"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; "${An}" is not a refusal a model can act on`)}function rm(e){let t=new Map,n=Ga(e.mac===void 0?{}:{mac:e.mac}),r=new Map;function o(p){let C=t.get(p);if(!C)throw Error(`unknown command "${p}"`);return C}function s(p,C){return p.when?.(C)??!0}function c(p,C){if(!s(p,C))return!1;return p.enablement?.(C)??!0}let m={register(p){if(!vs.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 C=tL(p);if(C.length>0)throw Error(`command "${p.id}" ${C[0].message}`);if(ks(p,r),n.add(p),t.set(p.id,p),p.aiTool)r.set(p.aiTool.name,p.id)},registerAll(p){for(let C of p)m.register(C)},get(p){return t.get(p)},list(){return[...t.values()]},visible(){let p=e.getContext();return[...t.values()].filter((C)=>s(C,p))},forPlacement(p){let C=e.getContext();return[...t.values()].filter((D)=>(D.menus??["palette"]).includes(p)&&s(D,C)).toSorted((D,y)=>(D.group??"").localeCompare(y.group??"")||D.title.localeCompare(y.title))},isVisible(p){return s(o(p),e.getContext())},isEnabled(p){return c(o(p),e.getContext())},disabledReason(p){let C=o(p),D=e.getContext();return c(C,D)?void 0:C.requires??An},refusalMessage(p){let C=m.disabledReason(p);return C===void 0?void 0:Xa(p,C)},run(p,C={}){let D=o(p),y=e.getContext();if(!c(D,y))throw new Qa(p,D.requires??An);let L=D.args?R$(p,D.args,C):C;return D.run(y,L)},keymap:n,handleKeyEvent(p,C){let D;for(let y of C){let L=n.resolveEvent(p,[y]);if(L&&m.isVisible(L.commandId)){D=L;break}}if(!D)return;if(!m.isEnabled(D.commandId))return D.commandId;return un(m,D.commandId,void 0,"Keyboard"),D.commandId},context:e.getContext};return m}var za={$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"]':{display:"flex",gap:"var(--jx-space-2)",alignItems:"center",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"}]}}}]}]}}};I("block-action-bar",za);function Ut(){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 Ms(e){let t=i(e)?void 0:e.attributes?.part;return i(t)?t:""}function Bs(e){let t=e?.$map,n=w(t)?t.item:void 0,r=w(n)?n.id:void 0;return i(r)?r:""}function Ja(e,t){let n=new Map,r=null,o=null,s=null,c=null,m=!1,p=()=>{if(m=!1,s?.open)s.hidePopover()},C=v({...Ut(),applyLink:()=>{let D=C.linkValue;p(),t.applyLink(D)},closeLink:p,guardFocus:(D,y)=>{let{target:L}=y;if(L instanceof Element&&L.closest('[part="drag-handle"], [part="tag"], [part="link"]'))return;y.preventDefault()},leaveBar:()=>t.leaveBar(),linkApplyLabel:"Apply",linkExisting:!1,linkInput:(D,y)=>{let{target:L}=y,k=L!==null&&"value"in L?L.value:void 0;C.linkValue=i(k)?k:""},linkValue:"",linkX:0,linkY:0,openMergeTags:(D,y)=>{y.stopPropagation(),t.openMergeTags(y.currentTarget)},openOverflow:(D,y)=>{y.stopPropagation(),t.openOverflow(y.currentTarget)},openTagMenu:(D,y)=>{y.stopPropagation(),t.openTagMenu(y.currentTarget)},removeLink:()=>{p(),t.removeLink()},run:(D)=>t.run(D),selectParent:()=>t.selectParent()});return A("block-action-bar",C,e,{onNodeCreated:(D,y,L,k)=>{if(!(D instanceof HTMLElement))return;let M=Ms(L);if(M==="bar"){r=D;return}if(M==="tools"){o=D;return}if(M==="link"){s=D;return}if(M==="link-field"){c=D;return}if(M==="drag-handle"){t.onDragHandle(D);return}let H=M==="verb"||M==="format-button"?Bs(k):"";if(H!=="")n.set(H,D)}}),{bar:()=>r?.isConnected===!0?r:null,button:(D)=>{let y=n.get(D)??null;return y?.isConnected===!0?y:null},closeLink:p,linkOpen:()=>m,openLink(D,y,L){C.linkValue=y??"",C.linkExisting=L,C.linkApplyLabel=L?"Update":"Apply",m=!0;let k=s;if(!k)return;let M=()=>{if(!m)return;let H=Me(D);C.linkX=Math.round(H.left),C.linkY=Math.round(H.bottom),k.showPopover({source:D}),c?.focus()};if(k.hasAttribute("popover"))M();else k.addEventListener("jx-ready",M,{once:!0})},toolbar:()=>o?.isConnected===!0?o:null,update(D){if(!D.visible)p();Object.assign(C,D)}}}var Je=null;function cE(e){if(Je=e,!Za)document.addEventListener("keydown",oi),document.addEventListener("scroll",Hs,{capture:!0,passive:!0}),Za=!0}var Za=!1,_n=!1;function Hs(e){if(!Je||ui())return;if(h.value?.session.selection.length===0)return;let t=Je.getCanvasMode();if(t!=="design"&&t!=="edit")return;if(!(e.target===document||e.target instanceof Node&&rc(e.target)!==null)||_n)return;_n=!0,requestAnimationFrame(()=>{_n=!1,Us()})}function Us(){let e=ge;if(!e||!xe.visible){xb();return}let t=Gx(),n=t?tr(t):null;if(!n){Ve({...xe,offscreen:!0});return}Ve({...xe,barX:n.left,barY:n.top,offscreen:!1}),requestAnimationFrame(()=>{let r=e.bar();if(r)nr(r)})}var Cn=38;function tr(e){let t=So(),n=gy(t)?.scrollContainer??Xd(t),r=n?Me(n):null;if(r&&(e.top+e.height<r.top||e.top>r.bottom))return null;let o=r?r.top:80-Cn,s=e.top-Cn;if(s>=o)return{left:e.left,top:s};let c=e.top+e.height+4;return{left:e.left,top:r?Math.max(r.top,Math.min(c,r.bottom-Cn)):c}}function nr(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 rS(){let e=(t,n,r,o)=>{let s={category:"Edit",group:"6_format",icon:r,id:`format.${t}`,keyScope:"caret",level:"selection",menus:["blockbar/format","palette"],requires:"a text caret in the canvas",run:()=>{Bd({command:t})},title:n,undo:"document",when:(c)=>c.caret.inCanvas};if(o!==void 0)s.keybinding=o;return s};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:()=>{ci()},title:"Link…",undo:"document",when:(t)=>t.caret.inCanvas}]}var ze=null;function ft(){return ze??Oe(h.value?.session.selection)}function ar(){if(ze)return[ze];return h.value?.session.selection??[]}function $t(e,t){let n=ze;ze=e;try{return t()}finally{ze=n}}function Fs(e){let t=e?.tagName,n=Ze(t);return Boolean(n.includes("-")&&ut.some((r)=>r.tagName===n))}function Ys(){let e=h.value,t=ft(),n=e&&t?ne(e.doc.document,t):null;return r_({caret:{active:ll().editing,inCanvas:ll().editing},editor:{kind:e?Da(e.session.ui.canvasMode):"none"},document:{open:Boolean(e)},selection:{count:t?1:0,isComponentInstance:Fs(n),isRoot:t?Dt(t)===null:!1,kind:Ze(n?.tagName)}})}function Ae(e=ft()){let t=h.value;if(!t||!e)return null;if(Da(t.session.ui.canvasMode)!=="canvas")return null;let n=ai(e),r=Dt(e);if(!ee(n)||!r)return null;let o=ne(t.doc.document,r);if(!o)return null;return{index:n,parentPath:r,path:e,siblings:Ur(o),tab:t}}function js(e){if(!T(e))return!1;if(rf.has((Ze(e.tagName)||"div").toLowerCase()))return!1;let{children:t}=e;if(!t)return!1;if(!Array.isArray(t))return Ro(t);return t.length===0||t.some((n)=>T(n)&&!Px(n,e))}function Vs(){let e=Ae();return e!==null&&e.index>0}function Ks(){let e=Ae();return e!==null&&e.index<e.siblings.length-1}function rr(){let e=Ae();return e!==null&&e.index>0&&js(e.siblings[e.index-1])}function qs(){let e=Ae();return e!==null&&Dt(e.parentPath)!==null&&ee(ai(e.parentPath))}function Ws(){let e=Ae();if(!e||e.index===0)return;let{index:t,parentPath:n,path:r,tab:o}=e;Y(o,(s)=>Ql(s,r,n,t-1)),o.session.selection=[[...n,"children",t-1]]}function Gs(){let e=Ae();if(!e||e.index>=e.siblings.length-1)return;let{index:t,parentPath:n,path:r,tab:o}=e;Y(o,(s)=>Ql(s,r,n,t+2)),o.session.selection=[[...n,"children",t+1]]}function Qs(){let e=Ae();if(!rr()||!e)return;let{index:t,parentPath:n,path:r,tab:o}=e,s=[...n,"children",t-1],{length:c}=Ur(ne(o.doc.document,s));Y(o,(m)=>Ql(m,r,s,c)),o.session.selection=[[...s,"children",c]]}function Xs(){let e=Ae();if(!e)return;let t=Dt(e.parentPath),n=ai(e.parentPath);if(!t||!ee(n))return;Y(e.tab,(r)=>Ql(r,e.path,t,n+1)),e.tab.session.selection=[[...t,"children",n+1]]}function zs(){let e=h.value,t=ar(),n=ft();if(!e||!n||Ky(t).length===0)return;let r=e.doc.document;if(Y(e,(s)=>Kp(s,t)),e.doc.document===r)return;let o=Dt(n);e.session.selection=o?[o]:[]}function Js(){let e=h.value,t=ar();if(!e||t.length===0)return;Y(e,(n)=>Yy(n,t))}function Zs(){let e=h.value,t=ft(),n=t?Dt(t):null;if(e&&n)e.session.selection=[n]}var Ft=(e)=>e.selection.count>0;function wb(e,t){e.registerAll([{category:"Selection",enablement:Vs,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:()=>Ws(),title:"Move Up",undo:"document",when:Ft},{category:"Selection",enablement:Ks,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:()=>Gs(),title:"Move Down",undo:"document",when:Ft},{category:"Selection",enablement:rr,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:()=>Qs(),title:"Move Into Previous",undo:"document",when:Ft},{category:"Selection",enablement:qs,group:"1_move_4",icon:"arrow-left",id:"selection.moveOut",keyScope:"canvas",level:"selection",menus:["outline/row"],requires:"an element nested inside another",run:()=>Xs(),title:"Move Out of Parent",undo:"document",when:Ft},{category:"Selection",enablement:(n)=>Boolean(n.selection.kind)&&!n.selection.isRoot&&n.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:(n)=>n.selection.count>0&&!n.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 n=ei();if(n)t.navigateToComponent(n)},title:"Edit Component",undo:"none",when:(n)=>n.selection.isComponentInstance}])}function ei(){let e=h.value,t=ft(),n=e&&t?ne(e.doc.document,t):null;return ut.find((o)=>o.tagName===n?.tagName)?.path??null}var yn=null;function Pe(){if(yn)return yn;let e=rm({getContext:Ys}),t={...Ow(),deleteSelection:zs,duplicateSelection:Js,selectParent:Zs};return e.registerAll(yp(t).filter((n)=>n.level==="selection")),wb(e,{convertToComponent:()=>im(),navigateToComponent:(n)=>Je?.navigateToComponent(n)}),e.registerAll(rS()),yn=e,e}var xn=5;function Nn(e,t){let n=e.disabledReason(t.id);if(n!==void 0)return`${t.title} — requires ${n}`;let r=e.keymap.formatBinding(t.id);return r?`${t.title} (${r})`:t.title}function lt(e,t,n){let r=()=>{if(e.isEnabled(t))un(e,t,void 0,"Editor")};if(n)$t(n,r);else r()}function er(e,t,n={}){return{destructive:t.destructive===!0,disabled:n.disabled??e.disabledReason(t.id)!==void 0,hasIcon:Boolean(t.icon),icon:t.icon??"",id:t.id,selected:n.selected??!1,title:t.title,tooltip:Nn(e,t),value:n.value??""}}var ge=null,xe=Ut();function Ve(e){xe=e,ge?.update(e)}function ti(){if(!tt.blockActionBarEl)tt.blockActionBarEl=Ns("popover","block-action-bar");return ge??=Ja(tt.blockActionBarEl,{applyLink:(e)=>{Bd({command:"link",href:e||""})},leaveBar:()=>{In(),ri()},onDragHandle:ni,openMergeTags:ii,openOverflow:(e)=>{let t=Pe();Ln(e,t,t.forPlacement("blockbar").slice(xn))},openTagMenu:si,removeLink:()=>{Bd({command:"link",href:null})},run:(e)=>lt(Pe(),e),selectParent:()=>lt(Pe(),"selection.selectParent")}),ge}function ni(e){tt.selDragCleanup?.(),tt.selDragCleanup=Is({canDrag:()=>Ae(Oe(h.value?.session.selection))!==null,element:e,getInitialData:()=>({path:[...Oe(h.value?.session.selection)??[]],type:"tree-node"}),onGenerateDragPreview:({nativeSetDragImage:t})=>{Hc({nativeSetDragImage:t})}})}var $e=null;function In(){let e=$e;if($e=null,e?.close(),xe.overflowOpen)Ve({...xe,overflowOpen:!1})}function Ln(e,t,n,r=null){In();let o=()=>n.map((c,m)=>{let p=t.keymap.formatBinding(c.id),C=t.disabledReason(c.id),D={destructive:c.destructive===!0,disabled:C!==void 0,dividerAbove:m>0&&c.destructive===!0,id:c.id,run:()=>{lt(t,c.id,r)},title:c.title};if(p)D.chord=p;if(C!==void 0)D.requires=C;return D}),s=r?$t(r,o):o();if($e=Bt({label:"More block actions",onClosed:(c)=>{if($e===c){if($e=null,xe.overflowOpen)Ve({...xe,overflowOpen:!1})}},opener:e,region:"block-actions",rows:s}),!r)Ve({...xe,overflowOpen:!0})}function ri(){let e=Xd(So());(e?.querySelector("iframe.jx-canvas-iframe")??e)?.focus()}function oi(e){if(e.key!=="ArrowUp"||!e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;if(ug())return;let t=ge?.toolbar();if(!t)return;e.preventDefault(),hf(t,0)}function or(e){if(!e)return[];let t=Ze(e.tagName);if(t.includes("-")&&ut.some((c)=>c.tagName===t)||e.$prototype==="Array")return[];let r=Ur(e),[o]=r,s=!e.textContent&&(r.length===0||r.length===1&&T(o)&&o.tagName==="br");return Ya((t||"div").toLowerCase(),s)}function si(e){let t=h.value,n=Oe(t?.session.selection),r=t&&n?ne(t.doc.document,n):null,o=or(r);if(!n||o.length===0)return;yb(e,"",{commands:o,onSelect:(s)=>{Y(h.value,(c)=>{Ye(c,n,"tagName",s.tag)})},showFilter:o.length>6})}function ii(e){let t=h.value,n=t?.doc.document.state??{},r=Oa(n,null,null),o=ll().snapshot?.path??Oe(t?.session.selection),s=t&&o?kw(t.doc.document,o):null;if(s&&t){let c=Ia(s,t.doc.document.state,O?.projectConfig);r.push(...Ra(c))}yb(e,"",{commands:r.map((c)=>({description:c.hint,label:c.label,tag:c.token})),onSelect:(c)=>Bd({command:"insertData",token:c.tag}),showFilter:!0})}function oS(){ge?.closeLink()}function ui(){return ge?.linkOpen()===!0}function ci(){let e=ge,t=e?.button("format.link")??e?.bar();if(!e||!t)return;let n=ll().snapshot?.link??{active:!1,href:null};e.openLink(t,n.href,n.active)}function Lw(){je=null,In(),Sn()}function Sn(){if(ge)Ve({...Ut(),visible:!1});tt.selDragCleanup?.(),tt.selDragCleanup=null}var je=null;function sr(e,t){return JSON.stringify([e?.id??null,t])}function dE(){Lw();let e=h.value;je={key:sr(e,Oe(e?.session.selection))}}function uE(){if(!je)return;je=null,xb()}function hE(e){if(!(e instanceof Node))return!1;return[tt.blockActionBarEl,$e?.host??null,Ns("popover","slash-menu")].some((n)=>n!=null&&n.contains(e))}function li(){let e=h.value,t=Je?.getCanvasMode(),n=Oe(e?.session.selection);if(!e||!n||t!=="design"&&t!=="edit")return null;let r=ne(e.doc.document,n);if(!r)return null;let o=Gx(),s=o?tr(o):null;if(!s)return null;let c=Pe(),m=(Ze(r.tagName)||"div").toLowerCase(),{editingProp:p,snapshot:C}=ll(),D=hL(m)||[],y=!p&&D.length>0,L=C?.collapsed??!0,k=D.flatMap((De)=>{let Na=c.get(`format.${De.command}`);return Na?[er(c,Na,{disabled:L&&De.command!=="link",selected:C?.activeTags.includes(De.tag)===!0,value:De.tag})]:[]}),M=c.forPlacement("blockbar"),H=Dt(n),F=H?ne(e.doc.document,H):null,V=c.get("selection.selectParent"),Re=V?.title??"Select Parent",ue=F?`Select parent: ${lo(F)}`:Re,z=V?c.keymap.formatBinding(V.id):void 0,be=or(r),Qe=(r.$prototype==="Array"?lo(r):r.$id||Ze(r.tagName)||"div")+(p?` · ${p}`:""),st=Ae(n)!==null;return{barX:s.left,barY:s.top,canDrag:st,dragHint:st?"Drag to reorder":"Drag to reorder — the document root cannot move",formats:k,hasOverflow:M.length>xn,offscreen:!1,overflowOpen:$e!==null,parentDisabled:!H,parentHint:z?`${ue} (${z})`:ue,parentLabel:ue,showFormat:y,tagDisabled:be.length===0,tagHint:be.length>0?"Change element type":Qe,tagLabel:Qe,tagPopup:be.length>0?"menu":"",verbs:M.slice(0,xn).map((De)=>er(c,De)),visible:!0}}function xb(){if(!Je)return;ti();let e=h.value,t=Oe(e?.session.selection);if(je){if(je.key===sr(e,t)){Sn();return}je=null}let n=li();if(!n){Sn();return}Ve(n),requestAnimationFrame(()=>{let r=ge?.bar();if(r)nr(r)})}function Ci(){}class Be{constructor(e,t,n){if(this.normal=t,this.property=e,n)this.space=n}}Be.prototype.normal={};Be.prototype.property={};Be.prototype.space=void 0;function On(e,t){let n={},r={};for(let o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Be(n,r,t)}function Se(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 di=0,P=Ke(),K=Ke(),Yt=Ke(),R=Ke(),U=Ke(),Ne=Ke(),ce=Ke();function Ke(){return 2**++di}var Rn=Object.keys(ht);class et extends X{constructor(e,t,n,r){let o=-1;super(e,t);if(ir(this,"space",r),typeof n==="number")while(++o<Rn.length){let s=Rn[o];ir(this,Rn[o],(n&ht[s])===ht[s])}}}et.prototype.defined=!0;function ir(e,t,n){if(n)e[t]=n}function le(e){let t={},n={};for(let[r,o]of Object.entries(e.properties)){let s=new et(r,e.transform(e.attributes||{},r),o,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(r))s.mustUseProperty=!0;t[r]=s,n[Se(r)]=r,n[Se(s.attribute)]=r}return new Be(t,n,e.space)}var Dn=le({properties:{ariaActiveDescendant:null,ariaAtomic:K,ariaAutoComplete:null,ariaBusy:K,ariaChecked:K,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:K,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:K,ariaFlowTo:U,ariaGrabbed:K,ariaHasPopup:null,ariaHidden:K,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:R,ariaLive:null,ariaModal:K,ariaMultiLine:K,ariaMultiSelectable:K,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:K,ariaReadOnly:K,ariaRelevant:null,ariaRequired:K,ariaRoleDescription:U,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:K,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function jt(e,t){return t in e?e[t]:t}function Vt(e,t){return jt(e,t.toLowerCase())}var ur=le({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ne,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:P,allowPaymentRequest:P,allowUserMedia:P,alpha:P,alt:null,as:null,async:P,autoCapitalize:null,autoComplete:U,autoFocus:P,autoPlay:P,blocking:U,capture:null,charSet:null,checked:P,cite:null,className:U,closedBy:null,colorSpace:null,cols:R,colSpan:R,command:null,commandFor:null,content:null,contentEditable:K,controls:P,controlsList:U,coords:R|Ne,crossOrigin:null,data:null,dateTime:null,decoding:null,default:P,defer:P,dir:null,dirName:null,disabled:P,download:Yt,draggable:K,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:P,formTarget:null,headers:U,height:R,hidden:Yt,high:R,href:null,hrefLang:null,htmlFor:U,httpEquiv:U,id:null,imageSizes:null,imageSrcSet:null,inert:P,inputMode:null,integrity:null,is:null,isMap:P,itemId:null,itemProp:U,itemRef:U,itemScope:P,itemType:U,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:P,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:P,muted:P,name:null,nonce:null,noModule:P,noValidate:P,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:P,optimum:R,pattern:null,ping:U,placeholder:null,playsInline:P,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:P,referrerPolicy:null,rel:U,required:P,reversed:P,rows:R,rowSpan:R,sandbox:U,scope:null,scoped:P,seamless:P,selected:P,shadowRootClonable:P,shadowRootCustomElementRegistry:P,shadowRootDelegatesFocus:P,shadowRootMode:null,shadowRootSerializable:P,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:K,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:P,useMap:null,value:K,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:U,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:P,declare:P,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:P,noHref:P,noShade:P,noWrap:P,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:K,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:P,disablePictureInPicture:P,disableRemotePlayback:P,exportParts:Ne,part:U,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:Vt});var cr=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:ce,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:U,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:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:P,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,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:Ne,g2:Ne,glyphName:Ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:ce,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,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:R,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:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:U,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ce,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ce,rev:ce,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ce,requiredFeatures:ce,requiredFonts:ce,requiredFormats:ce,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:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:ce,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ce,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ce,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:jt});var vn=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 wn=le({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Vt});var kn=le({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var fi=/[A-Z]/g,lr=/-[a-z]/g,mi=/^data[-\w.:]+$/i;function wd(e,t){let n=Se(t),r=t,o=X;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&mi.test(t)){if(t.charAt(4)==="-"){let s=t.slice(5).replace(lr,pi);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=t.slice(4);if(!lr.test(s)){let c=s.replace(fi,hi);if(c.charAt(0)!=="-")c="-"+c;t="data"+c}}o=et}return new o(r,t)}function hi(e){return"-"+e.toLowerCase()}function pi(e){return e.charAt(1).toUpperCase()}var xd=On([Dn,ur,vn,wn,kn],"html"),_d=On([Dn,cr,vn,wn,kn],"svg");function Pn(e){let t=[],n=String(e||""),r=n.indexOf(","),o=0,s=!1;while(!s){if(r===-1)r=n.length,s=!0;let c=n.slice(o,r).trim();if(c||!s)t.push(c);o=r+1,r=n.indexOf(",",o)}return t}function pE(e,t){let n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var dr=/[#.]/g;function Mn(e,t){let n=e||"",r={},o=0,s,c;while(o<n.length){dr.lastIndex=o;let m=dr.exec(n),p=n.slice(o,m?m.index:n.length);if(p){if(!s)c=p;else if(s==="#")r.id=p;else if(Array.isArray(r.className))r.className.push(p);else r.className=[p];o+=p.length}if(m)s=m[0],o++}return{type:"element",tagName:c||t||"div",properties:r,children:[]}}function Bn(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function fE(e){return e.join(" ").trim()}function Fn(e,t,n){let r=n?gi(n):void 0;function o(s,c,...m){let p;if(s===null||s===void 0){p={type:"root",children:[]};let C=c;m.unshift(C)}else{p=Mn(s,t);let C=p.tagName.toLowerCase(),D=r?r.get(C):void 0;if(p.tagName=D||C,Ei(c))m.unshift(c);else for(let[y,L]of Object.entries(c))bi(e,p.properties,y,L)}for(let C of m)Un(p.children,C);if(p.type==="element"&&p.tagName==="template")p.content={type:"root",children:p.children},p.children=[];return p}return o}function Ei(e){if(e===null||typeof e!=="object"||Array.isArray(e))return!0;if(typeof e.type!=="string")return!1;let t=e,n=Object.keys(e);for(let r of n){let o=t[r];if(o&&typeof o==="object"){if(!Array.isArray(o))return!0;let s=o;for(let c of s)if(typeof c!=="number"&&typeof c!=="string")return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}function bi(e,t,n,r){let o=wd(e,n),s;if(r===null||r===void 0)return;if(typeof r==="number"){if(Number.isNaN(r))return;s=r}else if(typeof r==="boolean")s=r;else if(typeof r==="string")if(o.spaceSeparated)s=Bn(r);else if(o.commaSeparated)s=Pn(r);else if(o.commaOrSpaceSeparated)s=Bn(Pn(r).join(" "));else s=fr(o,o.property,r);else if(Array.isArray(r))s=[...r];else s=o.property==="style"?Ti(r):String(r);if(Array.isArray(s)){let c=[];for(let m of s)c.push(fr(o,o.property,m));s=c}if(o.property==="className"&&Array.isArray(t.className))s=t.className.concat(s);t[o.property]=s}function Un(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 n of t)Un(e,n);else if(typeof t==="object"&&"type"in t)if(t.type==="root")Un(e,t.children);else e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function fr(e,t,n){if(typeof n==="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Se(n)===Se(t)))return!0}return n}function Ti(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function gi(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var mr=["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 $n=Fn(xd,"div"),Yn=Fn(_d,"g",mr);function jn(e){let t=String(e),n=[];return{toOffset:o,toPoint:r};function r(s){if(typeof s==="number"&&s>-1&&s<=t.length){let c=0;while(!0){let m=n[c];if(m===void 0){let p=hr(t,n[c-1]);m=p===-1?t.length+1:p+1,n[c]=m}if(m>s)return{line:c+1,column:s-(c>0?n[c-1]:0)+1,offset:s};c++}}}function o(s){if(s&&typeof s.line==="number"&&typeof s.column==="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){while(n.length<s.line){let m=n[n.length-1],p=hr(t,m),C=p===-1?t.length+1:p+1;if(m===C)break;n.push(C)}let c=(s.line>1?n[s.line-2]:0)+s.column-1;if(c<n[s.line-1])return c}}}function hr(e,t){let n=e.indexOf("\r",t),r=e.indexOf(`
|
|
2
|
+
`,t);if(r===-1)return n;if(n===-1||n+1===r)return r;return n<r?n:r}var pr={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 br={}.hasOwnProperty,Ai=Object.prototype;function Vn(e,t){let n=t||{};return Kn({file:n.file||void 0,location:!1,schema:n.space==="svg"?_d:xd,verbose:n.verbose||!1},e)}function Kn(e,t){let n;switch(t.nodeName){case"#comment":{let r=t;return n={type:"comment",value:r.data},Kt(e,r,n),n}case"#document":case"#document-fragment":{let r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Tr(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){let s=String(e.file),c=jn(s),m=c.toPoint(0),p=c.toPoint(s.length);Ci(m,"expected `start`"),Ci(p,"expected `end`"),n.position={start:m,end:p}}return n}case"#documentType":{let r=t;return n={type:"doctype"},Kt(e,r,n),n}case"#text":{let r=t;return n={type:"text",value:r.value},Kt(e,r,n),n}default:return n=_i(e,t),n}}function Tr(e,t){let n=-1,r=[];while(++n<t.length){let o=Kn(e,t[n]);r.push(o)}return r}function _i(e,t){let n=e.schema;e.schema=t.namespaceURI===pr.svg?_d:xd;let r=-1,o={};while(++r<t.attrs.length){let m=t.attrs[r],p=(m.prefix?m.prefix+":":"")+m.name;if(!br.call(Ai,p))o[p]=m.value}let c=(e.schema.space==="svg"?Yn:$n)(t.tagName,o,Tr(e,t.childNodes));if(Kt(e,t,c),c.tagName==="template"){let m=t,p=m.sourceCodeLocation,C=p&&p.startTag&&nt(p.startTag),D=p&&p.endTag&&nt(p.endTag),y=Kn(e,m.content);if(C&&D&&e.file)y.position={start:C.end,end:D.start};c.content=y}return e.schema=n,c}function Kt(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let r=yi(e,n,t.sourceCodeLocation);if(r)e.location=!0,n.position=r}}function yi(e,t,n){let r=nt(n);if(t.type==="element"){let o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end)r.end=Object.assign({},o.position.end);if(e.verbose){let s={},c;if(n.attrs){for(c in n.attrs)if(br.call(n.attrs,c))s[wd(e.schema,c).property]=nt(n.attrs[c])}Ci(n.startTag,"a start tag should exist");let m=nt(n.startTag),p=n.endTag?nt(n.endTag):void 0,C={opening:m};if(p)C.closing=p;C.properties=s,t.data={position:C}}}return r}function nt(e){let t=Er({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Er({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Er(e){return e.line&&e.column?e:void 0}var xi=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]),j="�",u;(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"})(u||(u={}));var se={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function qt(e){return e>=55296&&e<=57343}function gr(e){return e>=56320&&e<=57343}function Ar(e,t){return(e-55296)*1024+9216+t}function Wt(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Qt(e){return e>=64976&&e<=65007||xi.has(e)}var _;(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"})(_||(_={}));var Ni=65536;class qn{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=Ni,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:n,col:r,offset:o}=this,s=r+t,c=o+t;return{code:e,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:c,endOffset:c}}_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(gr(t))return this.pos++,this._addGap(),Ar(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,u.EOF;return this._err(_.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 n=0;n<e.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==e.charCodeAt(n))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,u.EOF;let n=this.html.charCodeAt(t);return n===u.CARRIAGE_RETURN?u.LINE_FEED:n}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,u.EOF;let e=this.html.charCodeAt(this.pos);if(e===u.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,u.LINE_FEED;if(e===u.LINE_FEED){if(this.isEol=!0,this.skipNextNewLine)return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()}if(this.skipNextNewLine=!1,qt(e))e=this._processSurrogate(e);if(!(this.handler.onParseError===null||e>31&&e<127||e===u.LINE_FEED||e===u.CARRIAGE_RETURN||e>159&&e<64976))this._checkForProblematicCharacters(e);return e}_checkForProblematicCharacters(e){if(Wt(e))this._err(_.controlCharacterInInputStream);else if(Qt(e))this._err(_.noncharacterInInputStream)}retreat(e){this.pos-=e;while(this.pos<this.lastGapPos)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var B;(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"})(B||(B={}));function Xt(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var Wn=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 Gn,Li=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]]),Oi=(Gn=String.fromCodePoint)!==null&&Gn!==void 0?Gn: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 _r(e){var t;if(e>=55296&&e<=57343||e>1114111)return 65533;return(t=Li.get(e))!==null&&t!==void 0?t:e}var Q;(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"})(Q||(Q={}));var Ri=32,Ue;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ue||(Ue={}));function zn(e){return e>=Q.ZERO&&e<=Q.NINE}function Di(e){return e>=Q.UPPER_A&&e<=Q.UPPER_F||e>=Q.LOWER_A&&e<=Q.LOWER_F}function vi(e){return e>=Q.UPPER_A&&e<=Q.UPPER_Z||e>=Q.LOWER_A&&e<=Q.LOWER_Z||zn(e)}function wi(e){return e===Q.EQUALS||vi(e)}var G;(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"})(G||(G={}));var _e;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(_e||(_e={}));class Jn{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=G.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=_e.Strict}startEntity(e){this.decodeMode=e,this.state=G.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case G.EntityStart:{if(e.charCodeAt(t)===Q.NUM)return this.state=G.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=G.NamedEntity,this.stateNamedEntity(e,t)}case G.NumericStart:return this.stateNumericStart(e,t);case G.NumericDecimal:return this.stateNumericDecimal(e,t);case G.NumericHex:return this.stateNumericHex(e,t);case G.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){if(t>=e.length)return-1;if((e.charCodeAt(t)|Ri)===Q.LOWER_X)return this.state=G.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1);return this.state=G.NumericDecimal,this.stateNumericDecimal(e,t)}addToNumericResult(e,t,n,r){if(t!==n){let o=n-t;this.result=this.result*Math.pow(r,o)+Number.parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){let n=t;while(t<e.length){let r=e.charCodeAt(t);if(zn(r)||Di(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;while(t<e.length){let r=e.charCodeAt(t);if(zn(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Q.SEMI)this.consumed+=1;else if(this.decodeMode===_e.Strict)return 0;if(this.emitCodePoint(_r(this.result),this.consumed),this.errors){if(e!==Q.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],o=(r&Ue.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let s=e.charCodeAt(t);if(this.treeIndex=ki(n,r,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===_e.Attribute&&(o===0||wi(s))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&Ue.VALUE_LENGTH)>>14,o!==0){if(s===Q.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);if(this.decodeMode!==_e.Strict)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&Ue.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;if(this.emitCodePoint(t===1?r[e]&~Ue.VALUE_LENGTH:r[e+1],n),t===3)this.emitCodePoint(r[e+2],n);return n}end(){var e;switch(this.state){case G.NamedEntity:return this.result!==0&&(this.decodeMode!==_e.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case G.NumericDecimal:return this.emitNumericEntity(0,2);case G.NumericHex:return this.emitNumericEntity(0,3);case G.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case G.EntityStart:return 0}}}function ki(e,t,n,r){let o=(t&Ue.BRANCH_LENGTH)>>7,s=t&Ue.JUMP_TABLE;if(o===0)return s!==0&&r===s?n:-1;if(s){let p=r-s;return p<0||p>=o?-1:e[n+p]-1}let c=n,m=c+o-1;while(c<=m){let p=c+m>>>1,C=e[p];if(C<r)c=p+1;else if(C>r)m=p-1;else return e[p+o]}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 Ie;(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"})(Ie||(Ie={}));var ie;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ie||(ie={}));var g;(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"})(g||(g={}));var a;(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"})(a||(a={}));var Pi=new Map([[g.A,a.A],[g.ADDRESS,a.ADDRESS],[g.ANNOTATION_XML,a.ANNOTATION_XML],[g.APPLET,a.APPLET],[g.AREA,a.AREA],[g.ARTICLE,a.ARTICLE],[g.ASIDE,a.ASIDE],[g.B,a.B],[g.BASE,a.BASE],[g.BASEFONT,a.BASEFONT],[g.BGSOUND,a.BGSOUND],[g.BIG,a.BIG],[g.BLOCKQUOTE,a.BLOCKQUOTE],[g.BODY,a.BODY],[g.BR,a.BR],[g.BUTTON,a.BUTTON],[g.CAPTION,a.CAPTION],[g.CENTER,a.CENTER],[g.CODE,a.CODE],[g.COL,a.COL],[g.COLGROUP,a.COLGROUP],[g.DD,a.DD],[g.DESC,a.DESC],[g.DETAILS,a.DETAILS],[g.DIALOG,a.DIALOG],[g.DIR,a.DIR],[g.DIV,a.DIV],[g.DL,a.DL],[g.DT,a.DT],[g.EM,a.EM],[g.EMBED,a.EMBED],[g.FIELDSET,a.FIELDSET],[g.FIGCAPTION,a.FIGCAPTION],[g.FIGURE,a.FIGURE],[g.FONT,a.FONT],[g.FOOTER,a.FOOTER],[g.FOREIGN_OBJECT,a.FOREIGN_OBJECT],[g.FORM,a.FORM],[g.FRAME,a.FRAME],[g.FRAMESET,a.FRAMESET],[g.H1,a.H1],[g.H2,a.H2],[g.H3,a.H3],[g.H4,a.H4],[g.H5,a.H5],[g.H6,a.H6],[g.HEAD,a.HEAD],[g.HEADER,a.HEADER],[g.HGROUP,a.HGROUP],[g.HR,a.HR],[g.HTML,a.HTML],[g.I,a.I],[g.IMG,a.IMG],[g.IMAGE,a.IMAGE],[g.INPUT,a.INPUT],[g.IFRAME,a.IFRAME],[g.KEYGEN,a.KEYGEN],[g.LABEL,a.LABEL],[g.LI,a.LI],[g.LINK,a.LINK],[g.LISTING,a.LISTING],[g.MAIN,a.MAIN],[g.MALIGNMARK,a.MALIGNMARK],[g.MARQUEE,a.MARQUEE],[g.MATH,a.MATH],[g.MENU,a.MENU],[g.META,a.META],[g.MGLYPH,a.MGLYPH],[g.MI,a.MI],[g.MO,a.MO],[g.MN,a.MN],[g.MS,a.MS],[g.MTEXT,a.MTEXT],[g.NAV,a.NAV],[g.NOBR,a.NOBR],[g.NOFRAMES,a.NOFRAMES],[g.NOEMBED,a.NOEMBED],[g.NOSCRIPT,a.NOSCRIPT],[g.OBJECT,a.OBJECT],[g.OL,a.OL],[g.OPTGROUP,a.OPTGROUP],[g.OPTION,a.OPTION],[g.P,a.P],[g.PARAM,a.PARAM],[g.PLAINTEXT,a.PLAINTEXT],[g.PRE,a.PRE],[g.RB,a.RB],[g.RP,a.RP],[g.RT,a.RT],[g.RTC,a.RTC],[g.RUBY,a.RUBY],[g.S,a.S],[g.SCRIPT,a.SCRIPT],[g.SEARCH,a.SEARCH],[g.SECTION,a.SECTION],[g.SELECT,a.SELECT],[g.SOURCE,a.SOURCE],[g.SMALL,a.SMALL],[g.SPAN,a.SPAN],[g.STRIKE,a.STRIKE],[g.STRONG,a.STRONG],[g.STYLE,a.STYLE],[g.SUB,a.SUB],[g.SUMMARY,a.SUMMARY],[g.SUP,a.SUP],[g.TABLE,a.TABLE],[g.TBODY,a.TBODY],[g.TEMPLATE,a.TEMPLATE],[g.TEXTAREA,a.TEXTAREA],[g.TFOOT,a.TFOOT],[g.TD,a.TD],[g.TH,a.TH],[g.THEAD,a.THEAD],[g.TITLE,a.TITLE],[g.TR,a.TR],[g.TRACK,a.TRACK],[g.TT,a.TT],[g.U,a.U],[g.UL,a.UL],[g.SVG,a.SVG],[g.VAR,a.VAR],[g.WBR,a.WBR],[g.XMP,a.XMP]]);function qe(e){var t;return(t=Pi.get(e))!==null&&t!==void 0?t:a.UNKNOWN}var N=a,Cr={[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},pt=new Set([N.H1,N.H2,N.H3,N.H4,N.H5,N.H6]),Hm=new Set([g.STYLE,g.SCRIPT,g.XMP,g.IFRAME,g.NOEMBED,g.NOFRAMES,g.PLAINTEXT]);var l;(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"})(l||(l={}));var J={DATA:l.DATA,RCDATA:l.RCDATA,RAWTEXT:l.RAWTEXT,SCRIPT_DATA:l.SCRIPT_DATA,PLAINTEXT:l.PLAINTEXT,CDATA_SECTION:l.CDATA_SECTION};function Bi(e){return e>=u.DIGIT_0&&e<=u.DIGIT_9}function Et(e){return e>=u.LATIN_CAPITAL_A&&e<=u.LATIN_CAPITAL_Z}function Hi(e){return e>=u.LATIN_SMALL_A&&e<=u.LATIN_SMALL_Z}function Fe(e){return Hi(e)||Et(e)}function yr(e){return Fe(e)||Bi(e)}function zt(e){return e+32}function Sr(e){return e===u.SPACE||e===u.LINE_FEED||e===u.TABULATION||e===u.FORM_FEED}function xr(e){return Sr(e)||e===u.SOLIDUS||e===u.GREATER_THAN_SIGN}function Ui(e){if(e===u.NULL)return _.nullCharacterReference;else if(e>1114111)return _.characterReferenceOutsideUnicodeRange;else if(qt(e))return _.surrogateCharacterReference;else if(Qt(e))return _.noncharacterCharacterReference;else if(Wt(e)||e===u.CARRIAGE_RETURN)return _.controlCharacterReference;return null}class Jt{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=l.DATA,this.returnState=l.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new qn(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Jn(Wn,(n,r)=>{this.preprocessor.pos=this.entityStartPos+r-1,this._flushCodePointConsumedAsCharacterReference(n)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(_.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:(n)=>{this._err(_.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:(n)=>{let r=Ui(n);if(r)this._err(r,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,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,n){if(this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),!this.paused)n===null||n===void 0||n()}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:B.START_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:B.END_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:B.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:B.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 n=this.currentToken;if(Xt(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){let r=(e=(t=n.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);r[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(_.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=qe(e.tagName),e.type===B.START_TAG)this.lastStartTagName=e.tagName,this.handler.onStartTag(e);else{if(e.attrs.length>0)this._err(_.endTagWithAttributes);if(e.selfClosing)this._err(_.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 B.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case B.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case B.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:B.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=Sr(e)?B.WHITESPACE_CHARACTER:e===u.NULL?B.NULL_CHARACTER:B.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(B.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=l.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?_e.Attribute:_e.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===l.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===l.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===l.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){if(this._isCharacterReferenceInAttribute())this.currentAttr.value+=String.fromCodePoint(e);else this._emitCodePoint(e)}_callState(e){switch(this.state){case l.DATA:{this._stateData(e);break}case l.RCDATA:{this._stateRcdata(e);break}case l.RAWTEXT:{this._stateRawtext(e);break}case l.SCRIPT_DATA:{this._stateScriptData(e);break}case l.PLAINTEXT:{this._statePlaintext(e);break}case l.TAG_OPEN:{this._stateTagOpen(e);break}case l.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case l.TAG_NAME:{this._stateTagName(e);break}case l.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case l.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case l.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case l.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case l.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case l.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case l.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case l.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case l.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case l.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case l.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case l.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case l.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case l.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case l.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case l.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case l.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case l.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case l.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case l.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case l.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case l.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case l.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case l.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case l.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case l.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case l.BOGUS_COMMENT:{this._stateBogusComment(e);break}case l.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case l.COMMENT_START:{this._stateCommentStart(e);break}case l.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case l.COMMENT:{this._stateComment(e);break}case l.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case l.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case l.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case l.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case l.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case l.COMMENT_END:{this._stateCommentEnd(e);break}case l.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case l.DOCTYPE:{this._stateDoctype(e);break}case l.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case l.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case l.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case l.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case l.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case l.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case l.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case l.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case l.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case l.CDATA_SECTION:{this._stateCdataSection(e);break}case l.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case l.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case l.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case l.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw Error("Unknown state")}}_stateData(e){switch(e){case u.LESS_THAN_SIGN:{this.state=l.TAG_OPEN;break}case u.AMPERSAND:{this._startCharacterReference();break}case u.NULL:{this._err(_.unexpectedNullCharacter),this._emitCodePoint(e);break}case u.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case u.AMPERSAND:{this._startCharacterReference();break}case u.LESS_THAN_SIGN:{this.state=l.RCDATA_LESS_THAN_SIGN;break}case u.NULL:{this._err(_.unexpectedNullCharacter),this._emitChars(j);break}case u.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case u.LESS_THAN_SIGN:{this.state=l.RAWTEXT_LESS_THAN_SIGN;break}case u.NULL:{this._err(_.unexpectedNullCharacter),this._emitChars(j);break}case u.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case u.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_LESS_THAN_SIGN;break}case u.NULL:{this._err(_.unexpectedNullCharacter),this._emitChars(j);break}case u.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case u.NULL:{this._err(_.unexpectedNullCharacter),this._emitChars(j);break}case u.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Fe(e))this._createStartTagToken(),this.state=l.TAG_NAME,this._stateTagName(e);else switch(e){case u.EXCLAMATION_MARK:{this.state=l.MARKUP_DECLARATION_OPEN;break}case u.SOLIDUS:{this.state=l.END_TAG_OPEN;break}case u.QUESTION_MARK:{this._err(_.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=l.BOGUS_COMMENT,this._stateBogusComment(e);break}case u.EOF:{this._err(_.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(_.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=l.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Fe(e))this._createEndTagToken(),this.state=l.TAG_NAME,this._stateTagName(e);else switch(e){case u.GREATER_THAN_SIGN:{this._err(_.missingEndTagName),this.state=l.DATA;break}case u.EOF:{this._err(_.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(_.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=l.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:{this.state=l.BEFORE_ATTRIBUTE_NAME;break}case u.SOLIDUS:{this.state=l.SELF_CLOSING_START_TAG;break}case u.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentTagToken();break}case u.NULL:{this._err(_.unexpectedNullCharacter),t.tagName+=j;break}case u.EOF:{this._err(_.eofInTag),this._emitEOFToken();break}default:t.tagName+=String.fromCodePoint(Et(e)?zt(e):e)}}_stateRcdataLessThanSign(e){if(e===u.SOLIDUS)this.state=l.RCDATA_END_TAG_OPEN;else this._emitChars("<"),this.state=l.RCDATA,this._stateRcdata(e)}_stateRcdataEndTagOpen(e){if(Fe(e))this.state=l.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e);else this._emitChars("</"),this.state=l.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 u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=l.BEFORE_ATTRIBUTE_NAME,!1;case u.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=l.SELF_CLOSING_START_TAG,!1;case u.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=l.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.RCDATA,this._stateRcdata(e)}_stateRawtextLessThanSign(e){if(e===u.SOLIDUS)this.state=l.RAWTEXT_END_TAG_OPEN;else this._emitChars("<"),this.state=l.RAWTEXT,this._stateRawtext(e)}_stateRawtextEndTagOpen(e){if(Fe(e))this.state=l.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e);else this._emitChars("</"),this.state=l.RAWTEXT,this._stateRawtext(e)}_stateRawtextEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.RAWTEXT,this._stateRawtext(e)}_stateScriptDataLessThanSign(e){switch(e){case u.SOLIDUS:{this.state=l.SCRIPT_DATA_END_TAG_OPEN;break}case u.EXCLAMATION_MARK:{this.state=l.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=l.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){if(Fe(e))this.state=l.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e);else this._emitChars("</"),this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscapeStart(e){if(e===u.HYPHEN_MINUS)this.state=l.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-");else this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscapeStartDash(e){if(e===u.HYPHEN_MINUS)this.state=l.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");else this.state=l.SCRIPT_DATA,this._stateScriptData(e)}_stateScriptDataEscaped(e){switch(e){case u.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case u.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case u.NULL:{this._err(_.unexpectedNullCharacter),this._emitChars(j);break}case u.EOF:{this._err(_.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case u.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case u.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case u.NULL:{this._err(_.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_ESCAPED,this._emitChars(j);break}case u.EOF:{this._err(_.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case u.HYPHEN_MINUS:{this._emitChars("-");break}case u.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case u.GREATER_THAN_SIGN:{this.state=l.SCRIPT_DATA,this._emitChars(">");break}case u.NULL:{this._err(_.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_ESCAPED,this._emitChars(j);break}case u.EOF:{this._err(_.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){if(e===u.SOLIDUS)this.state=l.SCRIPT_DATA_ESCAPED_END_TAG_OPEN;else if(Fe(e))this._emitChars("<"),this.state=l.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e);else this._emitChars("<"),this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataEscapedEndTagOpen(e){if(Fe(e))this.state=l.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e);else this._emitChars("</"),this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataEscapedEndTagName(e){if(this.handleSpecialEndTag(e))this._emitChars("</"),this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(se.SCRIPT,!1)&&xr(this.preprocessor.peek(se.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<se.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED}else if(!this._ensureHibernation())this.state=l.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e)}_stateScriptDataDoubleEscaped(e){switch(e){case u.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case u.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case u.NULL:{this._err(_.unexpectedNullCharacter),this._emitChars(j);break}case u.EOF:{this._err(_.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case u.HYPHEN_MINUS:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case u.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case u.NULL:{this._err(_.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(j);break}case u.EOF:{this._err(_.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case u.HYPHEN_MINUS:{this._emitChars("-");break}case u.LESS_THAN_SIGN:{this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case u.GREATER_THAN_SIGN:{this.state=l.SCRIPT_DATA,this._emitChars(">");break}case u.NULL:{this._err(_.unexpectedNullCharacter),this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(j);break}case u.EOF:{this._err(_.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){if(e===u.SOLIDUS)this.state=l.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/");else this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e)}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(se.SCRIPT,!1)&&xr(this.preprocessor.peek(se.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<se.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=l.SCRIPT_DATA_ESCAPED}else if(!this._ensureHibernation())this.state=l.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e)}_stateBeforeAttributeName(e){switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:break;case u.SOLIDUS:case u.GREATER_THAN_SIGN:case u.EOF:{this.state=l.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case u.EQUALS_SIGN:{this._err(_.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=l.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=l.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:case u.SOLIDUS:case u.GREATER_THAN_SIGN:case u.EOF:{this._leaveAttrName(),this.state=l.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case u.EQUALS_SIGN:{this._leaveAttrName(),this.state=l.BEFORE_ATTRIBUTE_VALUE;break}case u.QUOTATION_MARK:case u.APOSTROPHE:case u.LESS_THAN_SIGN:{this._err(_.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case u.NULL:{this._err(_.unexpectedNullCharacter),this.currentAttr.name+=j;break}default:this.currentAttr.name+=String.fromCodePoint(Et(e)?zt(e):e)}}_stateAfterAttributeName(e){switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:break;case u.SOLIDUS:{this.state=l.SELF_CLOSING_START_TAG;break}case u.EQUALS_SIGN:{this.state=l.BEFORE_ATTRIBUTE_VALUE;break}case u.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentTagToken();break}case u.EOF:{this._err(_.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=l.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:break;case u.QUOTATION_MARK:{this.state=l.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case u.APOSTROPHE:{this.state=l.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case u.GREATER_THAN_SIGN:{this._err(_.missingAttributeValue),this.state=l.DATA,this.emitCurrentTagToken();break}default:this.state=l.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case u.QUOTATION_MARK:{this.state=l.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case u.AMPERSAND:{this._startCharacterReference();break}case u.NULL:{this._err(_.unexpectedNullCharacter),this.currentAttr.value+=j;break}case u.EOF:{this._err(_.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case u.APOSTROPHE:{this.state=l.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case u.AMPERSAND:{this._startCharacterReference();break}case u.NULL:{this._err(_.unexpectedNullCharacter),this.currentAttr.value+=j;break}case u.EOF:{this._err(_.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:{this._leaveAttrValue(),this.state=l.BEFORE_ATTRIBUTE_NAME;break}case u.AMPERSAND:{this._startCharacterReference();break}case u.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=l.DATA,this.emitCurrentTagToken();break}case u.NULL:{this._err(_.unexpectedNullCharacter),this.currentAttr.value+=j;break}case u.QUOTATION_MARK:case u.APOSTROPHE:case u.LESS_THAN_SIGN:case u.EQUALS_SIGN:case u.GRAVE_ACCENT:{this._err(_.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case u.EOF:{this._err(_.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:{this._leaveAttrValue(),this.state=l.BEFORE_ATTRIBUTE_NAME;break}case u.SOLIDUS:{this._leaveAttrValue(),this.state=l.SELF_CLOSING_START_TAG;break}case u.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=l.DATA,this.emitCurrentTagToken();break}case u.EOF:{this._err(_.eofInTag),this._emitEOFToken();break}default:this._err(_.missingWhitespaceBetweenAttributes),this.state=l.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case u.GREATER_THAN_SIGN:{let t=this.currentToken;t.selfClosing=!0,this.state=l.DATA,this.emitCurrentTagToken();break}case u.EOF:{this._err(_.eofInTag),this._emitEOFToken();break}default:this._err(_.unexpectedSolidusInTag),this.state=l.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case u.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentComment(t);break}case u.EOF:{this.emitCurrentComment(t),this._emitEOFToken();break}case u.NULL:{this._err(_.unexpectedNullCharacter),t.data+=j;break}default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){if(this._consumeSequenceIfMatch(se.DASH_DASH,!0))this._createCommentToken(se.DASH_DASH.length+1),this.state=l.COMMENT_START;else if(this._consumeSequenceIfMatch(se.DOCTYPE,!1))this.currentLocation=this.getCurrentLocation(se.DOCTYPE.length+1),this.state=l.DOCTYPE;else if(this._consumeSequenceIfMatch(se.CDATA_START,!0))if(this.inForeignNode)this.state=l.CDATA_SECTION;else this._err(_.cdataInHtmlContent),this._createCommentToken(se.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=l.BOGUS_COMMENT;else if(!this._ensureHibernation())this._err(_.incorrectlyOpenedComment),this._createCommentToken(2),this.state=l.BOGUS_COMMENT,this._stateBogusComment(e)}_stateCommentStart(e){switch(e){case u.HYPHEN_MINUS:{this.state=l.COMMENT_START_DASH;break}case u.GREATER_THAN_SIGN:{this._err(_.abruptClosingOfEmptyComment),this.state=l.DATA;let t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=l.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case u.HYPHEN_MINUS:{this.state=l.COMMENT_END;break}case u.GREATER_THAN_SIGN:{this._err(_.abruptClosingOfEmptyComment),this.state=l.DATA,this.emitCurrentComment(t);break}case u.EOF:{this._err(_.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=l.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case u.HYPHEN_MINUS:{this.state=l.COMMENT_END_DASH;break}case u.LESS_THAN_SIGN:{t.data+="<",this.state=l.COMMENT_LESS_THAN_SIGN;break}case u.NULL:{this._err(_.unexpectedNullCharacter),t.data+=j;break}case u.EOF:{this._err(_.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case u.EXCLAMATION_MARK:{t.data+="!",this.state=l.COMMENT_LESS_THAN_SIGN_BANG;break}case u.LESS_THAN_SIGN:{t.data+="<";break}default:this.state=l.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){if(e===u.HYPHEN_MINUS)this.state=l.COMMENT_LESS_THAN_SIGN_BANG_DASH;else this.state=l.COMMENT,this._stateComment(e)}_stateCommentLessThanSignBangDash(e){if(e===u.HYPHEN_MINUS)this.state=l.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH;else this.state=l.COMMENT_END_DASH,this._stateCommentEndDash(e)}_stateCommentLessThanSignBangDashDash(e){if(e!==u.GREATER_THAN_SIGN&&e!==u.EOF)this._err(_.nestedComment);this.state=l.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case u.HYPHEN_MINUS:{this.state=l.COMMENT_END;break}case u.EOF:{this._err(_.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=l.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case u.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentComment(t);break}case u.EXCLAMATION_MARK:{this.state=l.COMMENT_END_BANG;break}case u.HYPHEN_MINUS:{t.data+="-";break}case u.EOF:{this._err(_.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--",this.state=l.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case u.HYPHEN_MINUS:{t.data+="--!",this.state=l.COMMENT_END_DASH;break}case u.GREATER_THAN_SIGN:{this._err(_.incorrectlyClosedComment),this.state=l.DATA,this.emitCurrentComment(t);break}case u.EOF:{this._err(_.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--!",this.state=l.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:{this.state=l.BEFORE_DOCTYPE_NAME;break}case u.GREATER_THAN_SIGN:{this.state=l.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case u.EOF:{this._err(_.eofInDoctype),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(_.missingWhitespaceBeforeDoctypeName),this.state=l.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(Et(e))this._createDoctypeToken(String.fromCharCode(zt(e))),this.state=l.DOCTYPE_NAME;else switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:break;case u.NULL:{this._err(_.unexpectedNullCharacter),this._createDoctypeToken(j),this.state=l.DOCTYPE_NAME;break}case u.GREATER_THAN_SIGN:{this._err(_.missingDoctypeName),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case u.EOF:{this._err(_.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=l.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:{this.state=l.AFTER_DOCTYPE_NAME;break}case u.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentDoctype(t);break}case u.NULL:{this._err(_.unexpectedNullCharacter),t.name+=j;break}case u.EOF:{this._err(_.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.name+=String.fromCodePoint(Et(e)?zt(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:break;case u.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentDoctype(t);break}case u.EOF:{this._err(_.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:if(this._consumeSequenceIfMatch(se.PUBLIC,!1))this.state=l.AFTER_DOCTYPE_PUBLIC_KEYWORD;else if(this._consumeSequenceIfMatch(se.SYSTEM,!1))this.state=l.AFTER_DOCTYPE_SYSTEM_KEYWORD;else if(!this._ensureHibernation())this._err(_.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:{this.state=l.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case u.QUOTATION_MARK:{this._err(_.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case u.APOSTROPHE:{this._err(_.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case u.GREATER_THAN_SIGN:{this._err(_.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case u.EOF:{this._err(_.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(_.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:break;case u.QUOTATION_MARK:{t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case u.APOSTROPHE:{t.publicId="",this.state=l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case u.GREATER_THAN_SIGN:{this._err(_.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case u.EOF:{this._err(_.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(_.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case u.QUOTATION_MARK:{this.state=l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case u.NULL:{this._err(_.unexpectedNullCharacter),t.publicId+=j;break}case u.GREATER_THAN_SIGN:{this._err(_.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case u.EOF:{this._err(_.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 u.APOSTROPHE:{this.state=l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case u.NULL:{this._err(_.unexpectedNullCharacter),t.publicId+=j;break}case u.GREATER_THAN_SIGN:{this._err(_.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case u.EOF:{this._err(_.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 u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:{this.state=l.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case u.GREATER_THAN_SIGN:{this.state=l.DATA,this.emitCurrentDoctype(t);break}case u.QUOTATION_MARK:{this._err(_.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case u.APOSTROPHE:{this._err(_.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case u.EOF:{this._err(_.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(_.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:break;case u.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=l.DATA;break}case u.QUOTATION_MARK:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case u.APOSTROPHE:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case u.EOF:{this._err(_.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(_.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:{this.state=l.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case u.QUOTATION_MARK:{this._err(_.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case u.APOSTROPHE:{this._err(_.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case u.GREATER_THAN_SIGN:{this._err(_.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case u.EOF:{this._err(_.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(_.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:break;case u.QUOTATION_MARK:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case u.APOSTROPHE:{t.systemId="",this.state=l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case u.GREATER_THAN_SIGN:{this._err(_.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.DATA,this.emitCurrentDoctype(t);break}case u.EOF:{this._err(_.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(_.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case u.QUOTATION_MARK:{this.state=l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case u.NULL:{this._err(_.unexpectedNullCharacter),t.systemId+=j;break}case u.GREATER_THAN_SIGN:{this._err(_.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case u.EOF:{this._err(_.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 u.APOSTROPHE:{this.state=l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case u.NULL:{this._err(_.unexpectedNullCharacter),t.systemId+=j;break}case u.GREATER_THAN_SIGN:{this._err(_.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=l.DATA;break}case u.EOF:{this._err(_.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 u.SPACE:case u.LINE_FEED:case u.TABULATION:case u.FORM_FEED:break;case u.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=l.DATA;break}case u.EOF:{this._err(_.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(_.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=l.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case u.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=l.DATA;break}case u.NULL:{this._err(_.unexpectedNullCharacter);break}case u.EOF:{this.emitCurrentDoctype(t),this._emitEOFToken();break}default:}}_stateCdataSection(e){switch(e){case u.RIGHT_SQUARE_BRACKET:{this.state=l.CDATA_SECTION_BRACKET;break}case u.EOF:{this._err(_.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){if(e===u.RIGHT_SQUARE_BRACKET)this.state=l.CDATA_SECTION_END;else this._emitChars("]"),this.state=l.CDATA_SECTION,this._stateCdataSection(e)}_stateCdataSectionEnd(e){switch(e){case u.GREATER_THAN_SIGN:{this.state=l.DATA;break}case u.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=l.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(u.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&yr(this.preprocessor.peek(1))?l.AMBIGUOUS_AMPERSAND:this.returnState;else this.state=this.returnState}_stateAmbiguousAmpersand(e){if(yr(e))this._flushCodePointConsumedAsCharacterReference(e);else{if(e===u.SEMICOLON)this._err(_.unknownNamedCharacterReference);this.state=this.returnState,this._callState(e)}}}var Rr=new Set([a.DD,a.DT,a.LI,a.OPTGROUP,a.OPTION,a.P,a.RB,a.RP,a.RT,a.RTC]),Nr=new Set([...Rr,a.CAPTION,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]),Zt=new Set([a.APPLET,a.CAPTION,a.HTML,a.MARQUEE,a.OBJECT,a.TABLE,a.TD,a.TEMPLATE,a.TH]),Fi=new Set([...Zt,a.OL,a.UL]),$i=new Set([...Zt,a.BUTTON]),Lr=new Set([a.ANNOTATION_XML,a.MI,a.MN,a.MO,a.MS,a.MTEXT]),Or=new Set([a.DESC,a.FOREIGN_OBJECT,a.TITLE]),Yi=new Set([a.TR,a.TEMPLATE,a.HTML]),Vi=new Set([a.TBODY,a.TFOOT,a.THEAD,a.TEMPLATE,a.HTML]),Ki=new Set([a.TABLE,a.TEMPLATE,a.HTML]),qi=new Set([a.TD,a.TH]);class Zn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=a.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===a.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 n=this._indexOf(e);if(this.items[n]=t,n===this.stackTop)this.current=t}insertAfter(e,t,n){let r=this._indexOf(e)+1;if(this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop)this._updateCurrentElement();if(this.current&&this.currentTagId!==void 0)this.handler.onItemPush(this.current,this.currentTagId,r===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 n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(pt,S.HTML)}popUntilTableCellPopped(){this.popUntilPopped(qi,S.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Ki,S.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Vi,S.HTML)}clearBackToTableRowContext(){this.clearBackTo(Yi,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]===a.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]===a.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case S.HTML:{if(r===e)return!0;if(t.has(r))return!1;break}case S.SVG:{if(Or.has(r))return!1;break}case S.MATHML:{if(Lr.has(r))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Zt)}hasInListItemScope(e){return this.hasInDynamicScope(e,Fi)}hasInButtonScope(e){return this.hasInDynamicScope(e,$i)}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(pt.has(t))return!0;if(Zt.has(t))return!1;break}case S.SVG:{if(Or.has(t))return!1;break}case S.MATHML:{if(Lr.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 a.TABLE:case a.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 a.TBODY:case a.THEAD:case a.TFOOT:return!0;case a.TABLE:case a.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 a.OPTION:case a.OPTGROUP:break;default:return!1}}return!0}generateImpliedEndTags(){while(this.currentTagId!==void 0&&Rr.has(this.currentTagId))this.pop()}generateImpliedEndTagsThoroughly(){while(this.currentTagId!==void 0&&Nr.has(this.currentTagId))this.pop()}generateImpliedEndTagsWithExclusion(e){while(this.currentTagId!==void 0&&this.currentTagId!==e&&Nr.has(this.currentTagId))this.pop()}}var fe;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(fe||(fe={}));var Dr={type:fe.Marker};class ea{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,o=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let c=0;c<this.entries.length;c++){let m=this.entries[c];if(m.type===fe.Marker)break;let{element:p}=m;if(this.treeAdapter.getTagName(p)===o&&this.treeAdapter.getNamespaceURI(p)===s){let C=this.treeAdapter.getAttrList(p);if(C.length===r)n.push({idx:c,attrs:C})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let r=new Map(t.map((s)=>[s.name,s.value])),o=0;for(let s=0;s<n.length;s++){let c=n[s];if(c.attrs.every((m)=>r.get(m.name)===m.value)){if(o+=1,o>=3)this.entries.splice(c.idx,1)}}}insertMarker(){this.entries.unshift(Dr)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:fe.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,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(Dr);if(e===-1)this.entries.length=0;else this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find((n)=>n.type===fe.Marker||this.treeAdapter.getTagName(n.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 me={createDocument(){return{nodeName:"#document",mode:ie.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,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,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let o=e.childNodes.find((s)=>s.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{let s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};me.appendChild(e,s)}},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 n=e.childNodes[e.childNodes.length-1];if(me.isTextNode(n)){n.value+=t;return}}me.appendChild(e,me.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];if(r&&me.isTextNode(r))r.value+=t;else me.insertBefore(e,me.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map((r)=>r.name));for(let r=0;r<t.length;r++)if(!n.has(t[r].name))e.attrs.push(t[r])},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 wr="html",Wi="about:legacy-compat",Gi="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",kr=["+//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//"],Qi=[...kr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Xi=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Pr=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],zi=[...Pr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function vr(e,t){return t.some((n)=>e.startsWith(n))}function Mr(e){return e.name===wr&&e.publicId===null&&(e.systemId===null||e.systemId===Wi)}function Br(e){if(e.name!==wr)return ie.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===Gi)return ie.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Xi.has(n))return ie.QUIRKS;let r=t===null?Qi:kr;if(vr(n,r))return ie.QUIRKS;if(r=t===null?Pr:zi,vr(n,r))return ie.LIMITED_QUIRKS}return ie.NO_QUIRKS}var Hr={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Zi="definitionurl",tu="definitionURL",nu=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])),au=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}]]),ru=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])),ou=new Set([a.B,a.BIG,a.BLOCKQUOTE,a.BODY,a.BR,a.CENTER,a.CODE,a.DD,a.DIV,a.DL,a.DT,a.EM,a.EMBED,a.H1,a.H2,a.H3,a.H4,a.H5,a.H6,a.HEAD,a.HR,a.I,a.IMG,a.LI,a.LISTING,a.MENU,a.META,a.NOBR,a.OL,a.P,a.PRE,a.RUBY,a.S,a.SMALL,a.SPAN,a.STRONG,a.STRIKE,a.SUB,a.SUP,a.TABLE,a.TT,a.U,a.UL,a.VAR]);function Fr(e){let t=e.tagID;return t===a.FONT&&e.attrs.some(({name:r})=>r===Ie.COLOR||r===Ie.SIZE||r===Ie.FACE)||ou.has(t)}function na(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Zi){e.attrs[t].name=tu;break}}function aa(e){for(let t=0;t<e.attrs.length;t++){let n=nu.get(e.attrs[t].name);if(n!=null)e.attrs[t].name=n}}function en(e){for(let t=0;t<e.attrs.length;t++){let n=au.get(e.attrs[t].name);if(n)e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace}}function $r(e){let t=ru.get(e.tagName);if(t!=null)e.tagName=t,e.tagID=qe(e.tagName)}function su(e,t){return t===S.MATHML&&(e===a.MI||e===a.MO||e===a.MN||e===a.MS||e===a.MTEXT)}function iu(e,t,n){if(t===S.MATHML&&e===a.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Ie.ENCODING){let o=n[r].value.toLowerCase();return o===Hr.TEXT_HTML||o===Hr.APPLICATION_XML}}return t===S.SVG&&(e===a.FOREIGN_OBJECT||e===a.DESC||e===a.TITLE)}function Yr(e,t,n,r){return(!r||r===S.HTML)&&iu(e,t,n)||(!r||r===S.MATHML)&&su(e,t)}var uu="hidden",lu=8,du=3,d;(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"})(d||(d={}));var fu={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Gr=new Set([a.TABLE,a.TBODY,a.TFOOT,a.THEAD,a.TR]),Vr={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:me,onParseError:null};class St{constructor(e,t,n=null,r=null){if(this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=d.INITIAL,this.originalInsertionMode=d.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={...Vr,...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 Jt(this.options,this),this.activeFormattingElements=new ea(this.treeAdapter),this.fragmentContextID=n?qe(this.treeAdapter.getTagName(n)):a.UNKNOWN,this._setContextModes(n!==null&&n!==void 0?n:this.document,this.fragmentContextID),this.openElements=new Zn(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...Vr,...t};e!==null&&e!==void 0||(e=n.treeAdapter.createElement(g.TEMPLATE,S.HTML,[]));let r=n.treeAdapter.createElement("documentmock",S.HTML,[]),o=new this(n,r,e);if(o.fragmentContextID===a.TEMPLATE)o.tmplInsertionModeStack.unshift(d.IN_TEMPLATE);return o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;let o=(r=e.location)!==null&&r!==void 0?r:fu,s={code:t,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:n?o.startLine:o.endLine,endCol:n?o.startCol:o.endCol,endOffset:n?o.startOffset:o.endOffset};this.onParseError(s)}onItemPush(e,t,n){var r,o;if((o=(r=this.treeAdapter).onItemPush)===null||o===void 0||o.call(r,e),n&&this.openElements.stackTop>0)this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo)this._setEndLocation(e,this.currentToken);if((r=(n=this.treeAdapter).onItemPop)===null||r===void 0||r.call(n,e,this.openElements.current),t){let o,s;if(this.openElements.stackTop===0&&this.fragmentContext)o=this.fragmentContext,s=this.fragmentContextID;else({current:o,currentTagId:s}=this.openElements);this._setContextModes(o,s)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===S.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&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=d.TEXT}switchToPlaintextParsing(){this.insertionMode=d.TEXT,this.originalInsertionMode=d.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)===g.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 a.TITLE:case a.TEXTAREA:{this.tokenizer.state=J.RCDATA;break}case a.STYLE:case a.XMP:case a.IFRAME:case a.NOEMBED:case a.NOFRAMES:case a.NOSCRIPT:{this.tokenizer.state=J.RAWTEXT;break}case a.SCRIPT:{this.tokenizer.state=J.SCRIPT_DATA;break}case a.PLAINTEXT:{this.tokenizer.state=J.PLAINTEXT;break}default:}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let s=this.treeAdapter.getChildNodes(this.document).find((c)=>this.treeAdapter.isDocumentTypeNode(c));if(s)this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n!==null&&n!==void 0?n:this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,S.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,S.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();if(this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(g.HTML,S.HTML,[]);if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(e,null);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,a.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);if(this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion())if({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n)this.treeAdapter.insertTextBefore(t,e.chars,n);else this.treeAdapter.insertText(t,e.chars);else t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars);if(!e.location)return;let r=this.treeAdapter.getChildNodes(t),o=n?r.lastIndexOf(n):r.length,s=r[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){let{endLine:m,endCol:p,endOffset:C}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:m,endCol:p,endOffset:C})}else if(this.options.sourceCodeLocationInfo)this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),o=t.type===B.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;if(this.openElements.stackTop===0&&this.fragmentContext)t=this.fragmentContext,n=this.fragmentContextID;else({current:t,currentTagId:n}=this.openElements);if(e.tagID===a.SVG&&this.treeAdapter.getTagName(t)===g.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===S.MATHML)return!1;return this.tokenizer.inForeignNode||(e.tagID===a.MGLYPH||e.tagID===a.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,S.HTML)}_processToken(e){switch(e.type){case B.CHARACTER:{this.onCharacter(e);break}case B.NULL_CHARACTER:{this.onNullCharacter(e);break}case B.COMMENT:{this.onComment(e);break}case B.DOCTYPE:{this.onDoctype(e);break}case B.START_TAG:{this._processStartTag(e);break}case B.END_TAG:{this.onEndTag(e);break}case B.EOF:{this.onEof(e);break}case B.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return Yr(e,r,o,n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex((r)=>r.type===fe.Marker||this.openElements.contains(r.element)),n=t===-1?e-1:t-1;for(let r=n;r>=0;r--){let o=this.activeFormattingElements.entries[r];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=d.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(a.P),this.openElements.popUntilTagNamePopped(a.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case a.TR:{this.insertionMode=d.IN_ROW;return}case a.TBODY:case a.THEAD:case a.TFOOT:{this.insertionMode=d.IN_TABLE_BODY;return}case a.CAPTION:{this.insertionMode=d.IN_CAPTION;return}case a.COLGROUP:{this.insertionMode=d.IN_COLUMN_GROUP;return}case a.TABLE:{this.insertionMode=d.IN_TABLE;return}case a.BODY:{this.insertionMode=d.IN_BODY;return}case a.FRAMESET:{this.insertionMode=d.IN_FRAMESET;return}case a.SELECT:{this._resetInsertionModeForSelect(e);return}case a.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case a.HTML:{this.insertionMode=this.headElement?d.AFTER_HEAD:d.BEFORE_HEAD;return}case a.TD:case a.TH:{if(e>0){this.insertionMode=d.IN_CELL;return}break}case a.HEAD:{if(e>0){this.insertionMode=d.IN_HEAD;return}break}}this.insertionMode=d.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let n=this.openElements.tagIDs[t];if(n===a.TEMPLATE)break;else if(n===a.TABLE){this.insertionMode=d.IN_SELECT_IN_TABLE;return}}this.insertionMode=d.IN_SELECT}_isElementCausesFosterParenting(e){return Gr.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 a.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===S.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break}case a.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,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 n=this.treeAdapter.getNamespaceURI(e);return Cr[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Xc(this,e);return}switch(this.insertionMode){case d.INITIAL:{bt(this,e);break}case d.BEFORE_HTML:{gt(this,e);break}case d.BEFORE_HEAD:{At(this,e);break}case d.IN_HEAD:{_t(this,e);break}case d.IN_HEAD_NO_SCRIPT:{Ct(this,e);break}case d.AFTER_HEAD:{yt(this,e);break}case d.IN_BODY:case d.IN_CAPTION:case d.IN_CELL:case d.IN_TEMPLATE:{Xr(this,e);break}case d.TEXT:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case d.IN_TABLE:case d.IN_TABLE_BODY:case d.IN_ROW:{ra(this,e);break}case d.IN_TABLE_TEXT:{no(this,e);break}case d.IN_COLUMN_GROUP:{nn(this,e);break}case d.AFTER_BODY:{an(this,e);break}case d.AFTER_AFTER_BODY:{tn(this,e);break}default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Qc(this,e);return}switch(this.insertionMode){case d.INITIAL:{bt(this,e);break}case d.BEFORE_HTML:{gt(this,e);break}case d.BEFORE_HEAD:{At(this,e);break}case d.IN_HEAD:{_t(this,e);break}case d.IN_HEAD_NO_SCRIPT:{Ct(this,e);break}case d.AFTER_HEAD:{yt(this,e);break}case d.TEXT:{this._insertCharacters(e);break}case d.IN_TABLE:case d.IN_TABLE_BODY:case d.IN_ROW:{ra(this,e);break}case d.IN_COLUMN_GROUP:{nn(this,e);break}case d.AFTER_BODY:{an(this,e);break}case d.AFTER_AFTER_BODY:{tn(this,e);break}default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){oa(this,e);return}switch(this.insertionMode){case d.INITIAL:case d.BEFORE_HTML:case d.BEFORE_HEAD:case d.IN_HEAD:case d.IN_HEAD_NO_SCRIPT:case d.AFTER_HEAD:case d.IN_BODY:case d.IN_TABLE:case d.IN_CAPTION:case d.IN_COLUMN_GROUP:case d.IN_TABLE_BODY:case d.IN_ROW:case d.IN_CELL:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:case d.IN_TEMPLATE:case d.IN_FRAMESET:case d.AFTER_FRAMESET:{oa(this,e);break}case d.IN_TABLE_TEXT:{Tt(this,e);break}case d.AFTER_BODY:{gu(this,e);break}case d.AFTER_AFTER_BODY:case d.AFTER_AFTER_FRAMESET:{Au(this,e);break}default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case d.INITIAL:{_u(this,e);break}case d.BEFORE_HEAD:case d.IN_HEAD:case d.IN_HEAD_NO_SCRIPT:case d.AFTER_HEAD:{this._err(e,_.misplacedDoctype);break}case d.IN_TABLE_TEXT:{Tt(this,e);break}default:}}onStartTag(e){if(this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing)this._err(e,_.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){if(this.shouldProcessStartTagTokenInForeignContent(e))zc(this,e);else this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case d.INITIAL:{bt(this,e);break}case d.BEFORE_HTML:{Cu(this,e);break}case d.BEFORE_HEAD:{xu(this,e);break}case d.IN_HEAD:{he(this,e);break}case d.IN_HEAD_NO_SCRIPT:{Iu(this,e);break}case d.AFTER_HEAD:{Ou(this,e);break}case d.IN_BODY:{Z(this,e);break}case d.IN_TABLE:{at(this,e);break}case d.IN_TABLE_TEXT:{Tt(this,e);break}case d.IN_CAPTION:{Rc(this,e);break}case d.IN_COLUMN_GROUP:{ca(this,e);break}case d.IN_TABLE_BODY:{sn(this,e);break}case d.IN_ROW:{cn(this,e);break}case d.IN_CELL:{wc(this,e);break}case d.IN_SELECT:{so(this,e);break}case d.IN_SELECT_IN_TABLE:{Pc(this,e);break}case d.IN_TEMPLATE:{Uc(this,e);break}case d.AFTER_BODY:{$c(this,e);break}case d.IN_FRAMESET:{Yc(this,e);break}case d.AFTER_FRAMESET:{Vc(this,e);break}case d.AFTER_AFTER_BODY:{qc(this,e);break}case d.AFTER_AFTER_FRAMESET:{Wc(this,e);break}default:}}onEndTag(e){if(this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML)Jc(this,e);else this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case d.INITIAL:{bt(this,e);break}case d.BEFORE_HTML:{yu(this,e);break}case d.BEFORE_HEAD:{Su(this,e);break}case d.IN_HEAD:{Nu(this,e);break}case d.IN_HEAD_NO_SCRIPT:{Lu(this,e);break}case d.AFTER_HEAD:{Ru(this,e);break}case d.IN_BODY:{on(this,e);break}case d.TEXT:{Ac(this,e);break}case d.IN_TABLE:{xt(this,e);break}case d.IN_TABLE_TEXT:{Tt(this,e);break}case d.IN_CAPTION:{Dc(this,e);break}case d.IN_COLUMN_GROUP:{vc(this,e);break}case d.IN_TABLE_BODY:{sa(this,e);break}case d.IN_ROW:{oo(this,e);break}case d.IN_CELL:{kc(this,e);break}case d.IN_SELECT:{uo(this,e);break}case d.IN_SELECT_IN_TABLE:{Mc(this,e);break}case d.IN_TEMPLATE:{Fc(this,e);break}case d.AFTER_BODY:{fo(this,e);break}case d.IN_FRAMESET:{jc(this,e);break}case d.AFTER_FRAMESET:{Kc(this,e);break}case d.AFTER_AFTER_BODY:{tn(this,e);break}default:}}onEof(e){switch(this.insertionMode){case d.INITIAL:{bt(this,e);break}case d.BEFORE_HTML:{gt(this,e);break}case d.BEFORE_HEAD:{At(this,e);break}case d.IN_HEAD:{_t(this,e);break}case d.IN_HEAD_NO_SCRIPT:{Ct(this,e);break}case d.AFTER_HEAD:{yt(this,e);break}case d.IN_BODY:case d.IN_TABLE:case d.IN_CAPTION:case d.IN_COLUMN_GROUP:case d.IN_TABLE_BODY:case d.IN_ROW:case d.IN_CELL:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:{eo(this,e);break}case d.TEXT:{_c(this,e);break}case d.IN_TABLE_TEXT:{Tt(this,e);break}case d.IN_TEMPLATE:{co(this,e);break}case d.AFTER_BODY:case d.IN_FRAMESET:case d.AFTER_FRAMESET:case d.AFTER_AFTER_BODY:case d.AFTER_AFTER_FRAMESET:{ua(this,e);break}default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine){if(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===u.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 d.IN_HEAD:case d.IN_HEAD_NO_SCRIPT:case d.AFTER_HEAD:case d.TEXT:case d.IN_COLUMN_GROUP:case d.IN_SELECT:case d.IN_SELECT_IN_TABLE:case d.IN_FRAMESET:case d.AFTER_FRAMESET:{this._insertCharacters(e);break}case d.IN_BODY:case d.IN_CAPTION:case d.IN_CELL:case d.IN_TEMPLATE:case d.AFTER_BODY:case d.AFTER_AFTER_BODY:case d.AFTER_AFTER_FRAMESET:{Qr(this,e);break}case d.IN_TABLE:case d.IN_TABLE_BODY:case d.IN_ROW:{ra(this,e);break}case d.IN_TABLE_TEXT:{to(this,e);break}default:}}}function mu(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);if(n){if(!e.openElements.contains(n.element))e.activeFormattingElements.removeEntry(n),n=null;else if(!e.openElements.hasInScope(t.tagID))n=null}else Zr(e,t);return n}function hu(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let o=e.openElements.items[r];if(o===t.element)break;if(e._isSpecialElement(o,e.openElements.tagIDs[r]))n=o}if(!n)e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t);return n}function pu(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let s=0,c=o;c!==n;s++,c=o){o=e.openElements.getCommonAncestor(c);let m=e.activeFormattingElements.getElementEntry(c),p=m&&s>=du;if(!m||p){if(p)e.activeFormattingElements.removeEntry(m);e.openElements.remove(c)}else{if(c=Eu(e,m),r===t)e.activeFormattingElements.bookmark=m;e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(c,r),r=c}}return r}function Eu(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function bu(e,t,n){let r=e.treeAdapter.getTagName(t),o=qe(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{let s=e.treeAdapter.getNamespaceURI(t);if(o===a.TEMPLATE&&s===S.HTML)t=e.treeAdapter.getTemplateContent(t);e.treeAdapter.appendChild(t,n)}}function Tu(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,s=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,o.tagID)}function ia(e,t){for(let n=0;n<lu;n++){let r=mu(e,t);if(!r)break;let o=hu(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;let s=pu(e,o,r.element),c=e.openElements.getCommonAncestor(r.element);if(e.treeAdapter.detachNode(s),c)bu(e,c,s);Tu(e,o,r)}}function oa(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function gu(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Au(e,t){e._appendCommentNode(t,e.document)}function ua(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag){if(e._setEndLocation(r,t),e.openElements.stackTop>=1){let s=e.openElements.items[1],c=e.treeAdapter.getNodeSourceCodeLocation(s);if(c&&!c.endTag)e._setEndLocation(s,t)}}}}}function _u(e,t){e._setDocumentType(t);let n=t.forceQuirks?ie.QUIRKS:Br(t);if(!Mr(t))e._err(t,_.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=d.BEFORE_HTML}function bt(e,t){e._err(t,_.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ie.QUIRKS),e.insertionMode=d.BEFORE_HTML,e._processToken(t)}function Cu(e,t){if(t.tagID===a.HTML)e._insertElement(t,S.HTML),e.insertionMode=d.BEFORE_HEAD;else gt(e,t)}function yu(e,t){let n=t.tagID;if(n===a.HTML||n===a.HEAD||n===a.BODY||n===a.BR)gt(e,t)}function gt(e,t){e._insertFakeRootElement(),e.insertionMode=d.BEFORE_HEAD,e._processToken(t)}function xu(e,t){switch(t.tagID){case a.HTML:{Z(e,t);break}case a.HEAD:{e._insertElement(t,S.HTML),e.headElement=e.openElements.current,e.insertionMode=d.IN_HEAD;break}default:At(e,t)}}function Su(e,t){let n=t.tagID;if(n===a.HEAD||n===a.BODY||n===a.HTML||n===a.BR)At(e,t);else e._err(t,_.endTagWithoutMatchingOpenElement)}function At(e,t){e._insertFakeElement(g.HEAD,a.HEAD),e.headElement=e.openElements.current,e.insertionMode=d.IN_HEAD,e._processToken(t)}function he(e,t){switch(t.tagID){case a.HTML:{Z(e,t);break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:{e._appendElement(t,S.HTML),t.ackSelfClosing=!0;break}case a.TITLE:{e._switchToTextParsing(t,J.RCDATA);break}case a.NOSCRIPT:{if(e.options.scriptingEnabled)e._switchToTextParsing(t,J.RAWTEXT);else e._insertElement(t,S.HTML),e.insertionMode=d.IN_HEAD_NO_SCRIPT;break}case a.NOFRAMES:case a.STYLE:{e._switchToTextParsing(t,J.RAWTEXT);break}case a.SCRIPT:{e._switchToTextParsing(t,J.SCRIPT_DATA);break}case a.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=d.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(d.IN_TEMPLATE);break}case a.HEAD:{e._err(t,_.misplacedStartTagForHeadElement);break}default:_t(e,t)}}function Nu(e,t){switch(t.tagID){case a.HEAD:{e.openElements.pop(),e.insertionMode=d.AFTER_HEAD;break}case a.BODY:case a.BR:case a.HTML:{_t(e,t);break}case a.TEMPLATE:{We(e,t);break}default:e._err(t,_.endTagWithoutMatchingOpenElement)}}function We(e,t){if(e.openElements.tmplCount>0){if(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==a.TEMPLATE)e._err(t,_.closingOfElementWithOpenChildElements);e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()}else e._err(t,_.endTagWithoutMatchingOpenElement)}function _t(e,t){e.openElements.pop(),e.insertionMode=d.AFTER_HEAD,e._processToken(t)}function Iu(e,t){switch(t.tagID){case a.HTML:{Z(e,t);break}case a.BASEFONT:case a.BGSOUND:case a.HEAD:case a.LINK:case a.META:case a.NOFRAMES:case a.STYLE:{he(e,t);break}case a.NOSCRIPT:{e._err(t,_.nestedNoscriptInHead);break}default:Ct(e,t)}}function Lu(e,t){switch(t.tagID){case a.NOSCRIPT:{e.openElements.pop(),e.insertionMode=d.IN_HEAD;break}case a.BR:{Ct(e,t);break}default:e._err(t,_.endTagWithoutMatchingOpenElement)}}function Ct(e,t){let n=t.type===B.EOF?_.openElementsLeftAfterEof:_.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=d.IN_HEAD,e._processToken(t)}function Ou(e,t){switch(t.tagID){case a.HTML:{Z(e,t);break}case a.BODY:{e._insertElement(t,S.HTML),e.framesetOk=!1,e.insertionMode=d.IN_BODY;break}case a.FRAMESET:{e._insertElement(t,S.HTML),e.insertionMode=d.IN_FRAMESET;break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{e._err(t,_.abandonedHeadElementChild),e.openElements.push(e.headElement,a.HEAD),he(e,t),e.openElements.remove(e.headElement);break}case a.HEAD:{e._err(t,_.misplacedStartTagForHeadElement);break}default:yt(e,t)}}function Ru(e,t){switch(t.tagID){case a.BODY:case a.HTML:case a.BR:{yt(e,t);break}case a.TEMPLATE:{We(e,t);break}default:e._err(t,_.endTagWithoutMatchingOpenElement)}}function yt(e,t){e._insertFakeElement(g.BODY,a.BODY),e.insertionMode=d.IN_BODY,rn(e,t)}function rn(e,t){switch(t.type){case B.CHARACTER:{Xr(e,t);break}case B.WHITESPACE_CHARACTER:{Qr(e,t);break}case B.COMMENT:{oa(e,t);break}case B.START_TAG:{Z(e,t);break}case B.END_TAG:{on(e,t);break}case B.EOF:{eo(e,t);break}default:}}function Qr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Xr(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Du(e,t){if(e.openElements.tmplCount===0)e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vu(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();if(n&&e.openElements.tmplCount===0)e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs)}function wu(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();if(e.framesetOk&&n)e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,S.HTML),e.insertionMode=d.IN_FRAMESET}function ku(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,S.HTML)}function Pu(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();if(e.openElements.currentTagId!==void 0&&pt.has(e.openElements.currentTagId))e.openElements.pop();e._insertElement(t,S.HTML)}function Mu(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,S.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Uu(e,t){let n=e.openElements.tmplCount>0;if(!e.formElement||n){if(e.openElements.hasInButtonScope(a.P))e._closePElement();if(e._insertElement(t,S.HTML),!n)e.formElement=e.openElements.current}}function Fu(e,t){e.framesetOk=!1;let n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){let o=e.openElements.tagIDs[r];if(n===a.LI&&o===a.LI||(n===a.DD||n===a.DT)&&(o===a.DD||o===a.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==a.ADDRESS&&o!==a.DIV&&o!==a.P&&e._isSpecialElement(e.openElements.items[r],o))break}if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,S.HTML)}function $u(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,S.HTML),e.tokenizer.state=J.PLAINTEXT}function Yu(e,t){if(e.openElements.hasInScope(a.BUTTON))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.BUTTON);e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML),e.framesetOk=!1}function Vu(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);if(n)ia(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n);e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ku(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function qu(e,t){if(e._reconstructActiveFormattingElements(),e.openElements.hasInScope(a.NOBR))ia(e,t),e._reconstructActiveFormattingElements();e._insertElement(t,S.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Gu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Qu(e,t){if(e.treeAdapter.getDocumentMode(e.document)!==ie.QUIRKS&&e.openElements.hasInButtonScope(a.P))e._closePElement();e._insertElement(t,S.HTML),e.framesetOk=!1,e.insertionMode=d.IN_TABLE}function zr(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,S.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Jr(e){let t=Xt(e,Ie.TYPE);return t!=null&&t.toLowerCase()===uu}function Xu(e,t){if(e._reconstructActiveFormattingElements(),e._appendElement(t,S.HTML),!Jr(t))e.framesetOk=!1;t.ackSelfClosing=!0}function zu(e,t){e._appendElement(t,S.HTML),t.ackSelfClosing=!0}function Ju(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._appendElement(t,S.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Zu(e,t){t.tagName=g.IMG,t.tagID=a.IMG,zr(e,t)}function ec(e,t){e._insertElement(t,S.HTML),e.skipNextNewLine=!0,e.tokenizer.state=J.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=d.TEXT}function tc(e,t){if(e.openElements.hasInButtonScope(a.P))e._closePElement();e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,J.RAWTEXT)}function nc(e,t){e.framesetOk=!1,e._switchToTextParsing(t,J.RAWTEXT)}function Kr(e,t){e._switchToTextParsing(t,J.RAWTEXT)}function ac(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===d.IN_TABLE||e.insertionMode===d.IN_CAPTION||e.insertionMode===d.IN_TABLE_BODY||e.insertionMode===d.IN_ROW||e.insertionMode===d.IN_CELL?d.IN_SELECT_IN_TABLE:d.IN_SELECT}function oc(e,t){if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML)}function sc(e,t){if(e.openElements.hasInScope(a.RUBY))e.openElements.generateImpliedEndTags();e._insertElement(t,S.HTML)}function ic(e,t){if(e.openElements.hasInScope(a.RUBY))e.openElements.generateImpliedEndTagsWithExclusion(a.RTC);e._insertElement(t,S.HTML)}function uc(e,t){if(e._reconstructActiveFormattingElements(),na(t),en(t),t.selfClosing)e._appendElement(t,S.MATHML);else e._insertElement(t,S.MATHML);t.ackSelfClosing=!0}function cc(e,t){if(e._reconstructActiveFormattingElements(),aa(t),en(t),t.selfClosing)e._appendElement(t,S.SVG);else e._insertElement(t,S.SVG);t.ackSelfClosing=!0}function qr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,S.HTML)}function Z(e,t){switch(t.tagID){case a.I:case a.S:case a.B:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.SMALL:case a.STRIKE:case a.STRONG:{Ku(e,t);break}case a.A:{Vu(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{Pu(e,t);break}case a.P:case a.DL:case a.OL:case a.UL:case a.DIV:case a.DIR:case a.NAV:case a.MAIN:case a.MENU:case a.ASIDE:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.DETAILS:case a.ADDRESS:case a.ARTICLE:case a.SEARCH:case a.SECTION:case a.SUMMARY:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{ku(e,t);break}case a.LI:case a.DD:case a.DT:{Fu(e,t);break}case a.BR:case a.IMG:case a.WBR:case a.AREA:case a.EMBED:case a.KEYGEN:{zr(e,t);break}case a.HR:{Ju(e,t);break}case a.RB:case a.RTC:{sc(e,t);break}case a.RT:case a.RP:{ic(e,t);break}case a.PRE:case a.LISTING:{Mu(e,t);break}case a.XMP:{tc(e,t);break}case a.SVG:{cc(e,t);break}case a.HTML:{Du(e,t);break}case a.BASE:case a.LINK:case a.META:case a.STYLE:case a.TITLE:case a.SCRIPT:case a.BGSOUND:case a.BASEFONT:case a.TEMPLATE:{he(e,t);break}case a.BODY:{vu(e,t);break}case a.FORM:{Uu(e,t);break}case a.NOBR:{qu(e,t);break}case a.MATH:{uc(e,t);break}case a.TABLE:{Qu(e,t);break}case a.INPUT:{Xu(e,t);break}case a.PARAM:case a.TRACK:case a.SOURCE:{zu(e,t);break}case a.IMAGE:{Zu(e,t);break}case a.BUTTON:{Yu(e,t);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{Gu(e,t);break}case a.IFRAME:{nc(e,t);break}case a.SELECT:{ac(e,t);break}case a.OPTION:case a.OPTGROUP:{oc(e,t);break}case a.NOEMBED:case a.NOFRAMES:{Kr(e,t);break}case a.FRAMESET:{wu(e,t);break}case a.TEXTAREA:{ec(e,t);break}case a.NOSCRIPT:{if(e.options.scriptingEnabled)Kr(e,t);else qr(e,t);break}case a.PLAINTEXT:{$u(e,t);break}case a.COL:case a.TH:case a.TD:case a.TR:case a.HEAD:case a.FRAME:case a.TBODY:case a.TFOOT:case a.THEAD:case a.CAPTION:case a.COLGROUP:break;default:qr(e,t)}}function lc(e,t){if(e.openElements.hasInScope(a.BODY)){if(e.insertionMode=d.AFTER_BODY,e.options.sourceCodeLocationInfo){let n=e.openElements.tryPeekProperlyNestedBodyElement();if(n)e._setEndLocation(n,t)}}}function dc(e,t){if(e.openElements.hasInScope(a.BODY))e.insertionMode=d.AFTER_BODY,fo(e,t)}function fc(e,t){let n=t.tagID;if(e.openElements.hasInScope(n))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n)}function mc(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;if(!t)e.formElement=null;if((n||t)&&e.openElements.hasInScope(a.FORM)){if(e.openElements.generateImpliedEndTags(),t)e.openElements.popUntilTagNamePopped(a.FORM);else if(n)e.openElements.remove(n)}}function hc(e){if(!e.openElements.hasInButtonScope(a.P))e._insertFakeElement(g.P,a.P);e._closePElement()}function pc(e){if(e.openElements.hasInListItemScope(a.LI))e.openElements.generateImpliedEndTagsWithExclusion(a.LI),e.openElements.popUntilTagNamePopped(a.LI)}function Ec(e,t){let n=t.tagID;if(e.openElements.hasInScope(n))e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n)}function bc(e){if(e.openElements.hasNumberedHeaderInScope())e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped()}function Tc(e,t){let n=t.tagID;if(e.openElements.hasInScope(n))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker()}function gc(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR,a.BR),e.openElements.pop(),e.framesetOk=!1}function Zr(e,t){let{tagName:n,tagID:r}=t;for(let o=e.openElements.stackTop;o>0;o--){let s=e.openElements.items[o],c=e.openElements.tagIDs[o];if(r===c&&(r!==a.UNKNOWN||e.treeAdapter.getTagName(s)===n)){if(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o)e.openElements.shortenToLength(o);break}if(e._isSpecialElement(s,c))break}}function on(e,t){switch(t.tagID){case a.A:case a.B:case a.I:case a.S:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.NOBR:case a.SMALL:case a.STRIKE:case a.STRONG:{ia(e,t);break}case a.P:{hc(e);break}case a.DL:case a.UL:case a.OL:case a.DIR:case a.DIV:case a.NAV:case a.PRE:case a.MAIN:case a.MENU:case a.ASIDE:case a.BUTTON:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.ADDRESS:case a.ARTICLE:case a.DETAILS:case a.SEARCH:case a.SECTION:case a.SUMMARY:case a.LISTING:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{fc(e,t);break}case a.LI:{pc(e);break}case a.DD:case a.DT:{Ec(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{bc(e);break}case a.BR:{gc(e);break}case a.BODY:{lc(e,t);break}case a.HTML:{dc(e,t);break}case a.FORM:{mc(e);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{Tc(e,t);break}case a.TEMPLATE:{We(e,t);break}default:Zr(e,t)}}function eo(e,t){if(e.tmplInsertionModeStack.length>0)co(e,t);else ua(e,t)}function Ac(e,t){var n;if(t.tagID===a.SCRIPT)(n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function _c(e,t){e._err(t,_.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ra(e,t){if(e.openElements.currentTagId!==void 0&&Gr.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=d.IN_TABLE_TEXT,t.type){case B.CHARACTER:{no(e,t);break}case B.WHITESPACE_CHARACTER:{to(e,t);break}}else Nt(e,t)}function Cc(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,S.HTML),e.insertionMode=d.IN_CAPTION}function yc(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,S.HTML),e.insertionMode=d.IN_COLUMN_GROUP}function xc(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP,a.COLGROUP),e.insertionMode=d.IN_COLUMN_GROUP,ca(e,t)}function Sc(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,S.HTML),e.insertionMode=d.IN_TABLE_BODY}function Nc(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY,a.TBODY),e.insertionMode=d.IN_TABLE_BODY,sn(e,t)}function Ic(e,t){if(e.openElements.hasInTableScope(a.TABLE))e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode(),e._processStartTag(t)}function Lc(e,t){if(Jr(t))e._appendElement(t,S.HTML);else Nt(e,t);t.ackSelfClosing=!0}function Oc(e,t){if(!e.formElement&&e.openElements.tmplCount===0)e._insertElement(t,S.HTML),e.formElement=e.openElements.current,e.openElements.pop()}function at(e,t){switch(t.tagID){case a.TD:case a.TH:case a.TR:{Nc(e,t);break}case a.STYLE:case a.SCRIPT:case a.TEMPLATE:{he(e,t);break}case a.COL:{xc(e,t);break}case a.FORM:{Oc(e,t);break}case a.TABLE:{Ic(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{Sc(e,t);break}case a.INPUT:{Lc(e,t);break}case a.CAPTION:{Cc(e,t);break}case a.COLGROUP:{yc(e,t);break}default:Nt(e,t)}}function xt(e,t){switch(t.tagID){case a.TABLE:{if(e.openElements.hasInTableScope(a.TABLE))e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode();break}case a.TEMPLATE:{We(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:Nt(e,t)}}function Nt(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,rn(e,t),e.fosterParentingEnabled=n}function to(e,t){e.pendingCharacterTokens.push(t)}function no(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Tt(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Nt(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var ro=new Set([a.CAPTION,a.COL,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]);function Rc(e,t){let n=t.tagID;if(ro.has(n)){if(e.openElements.hasInTableScope(a.CAPTION))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=d.IN_TABLE,at(e,t)}else Z(e,t)}function Dc(e,t){let n=t.tagID;switch(n){case a.CAPTION:case a.TABLE:{if(e.openElements.hasInTableScope(a.CAPTION)){if(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=d.IN_TABLE,n===a.TABLE)xt(e,t)}break}case a.BODY:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:on(e,t)}}function ca(e,t){switch(t.tagID){case a.HTML:{Z(e,t);break}case a.COL:{e._appendElement(t,S.HTML),t.ackSelfClosing=!0;break}case a.TEMPLATE:{he(e,t);break}default:nn(e,t)}}function vc(e,t){switch(t.tagID){case a.COLGROUP:{if(e.openElements.currentTagId===a.COLGROUP)e.openElements.pop(),e.insertionMode=d.IN_TABLE;break}case a.TEMPLATE:{We(e,t);break}case a.COL:break;default:nn(e,t)}}function nn(e,t){if(e.openElements.currentTagId===a.COLGROUP)e.openElements.pop(),e.insertionMode=d.IN_TABLE,e._processToken(t)}function sn(e,t){switch(t.tagID){case a.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,S.HTML),e.insertionMode=d.IN_ROW;break}case a.TH:case a.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(g.TR,a.TR),e.insertionMode=d.IN_ROW,cn(e,t);break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{if(e.openElements.hasTableBodyContextInTableScope())e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE,at(e,t);break}default:at(e,t)}}function sa(e,t){let n=t.tagID;switch(t.tagID){case a.TBODY:case a.TFOOT:case a.THEAD:{if(e.openElements.hasInTableScope(n))e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE;break}case a.TABLE:{if(e.openElements.hasTableBodyContextInTableScope())e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE,xt(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:case a.TR:break;default:xt(e,t)}}function cn(e,t){switch(t.tagID){case a.TH:case a.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,S.HTML),e.insertionMode=d.IN_CELL,e.activeFormattingElements.insertMarker();break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{if(e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY,sn(e,t);break}default:at(e,t)}}function oo(e,t){switch(t.tagID){case a.TR:{if(e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY;break}case a.TABLE:{if(e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY,sa(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{if(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(a.TR))e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=d.IN_TABLE_BODY,sa(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:break;default:xt(e,t)}}function wc(e,t){let n=t.tagID;if(ro.has(n)){if(e.openElements.hasInTableScope(a.TD)||e.openElements.hasInTableScope(a.TH))e._closeTableCell(),cn(e,t)}else Z(e,t)}function kc(e,t){let n=t.tagID;switch(n){case a.TD:case a.TH:{if(e.openElements.hasInTableScope(n))e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=d.IN_ROW;break}case a.TABLE:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{if(e.openElements.hasInTableScope(n))e._closeTableCell(),oo(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:break;default:on(e,t)}}function so(e,t){switch(t.tagID){case a.HTML:{Z(e,t);break}case a.OPTION:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();e._insertElement(t,S.HTML);break}case a.OPTGROUP:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();if(e.openElements.currentTagId===a.OPTGROUP)e.openElements.pop();e._insertElement(t,S.HTML);break}case a.HR:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();if(e.openElements.currentTagId===a.OPTGROUP)e.openElements.pop();e._appendElement(t,S.HTML),t.ackSelfClosing=!0;break}case a.INPUT:case a.KEYGEN:case a.TEXTAREA:case a.SELECT:{if(e.openElements.hasInSelectScope(a.SELECT)){if(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),t.tagID!==a.SELECT)e._processStartTag(t)}break}case a.SCRIPT:case a.TEMPLATE:{he(e,t);break}default:}}function uo(e,t){switch(t.tagID){case a.OPTGROUP:{if(e.openElements.stackTop>0&&e.openElements.currentTagId===a.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===a.OPTGROUP)e.openElements.pop();if(e.openElements.currentTagId===a.OPTGROUP)e.openElements.pop();break}case a.OPTION:{if(e.openElements.currentTagId===a.OPTION)e.openElements.pop();break}case a.SELECT:{if(e.openElements.hasInSelectScope(a.SELECT))e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode();break}case a.TEMPLATE:{We(e,t);break}default:}}function Pc(e,t){let n=t.tagID;if(n===a.CAPTION||n===a.TABLE||n===a.TBODY||n===a.TFOOT||n===a.THEAD||n===a.TR||n===a.TD||n===a.TH)e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e._processStartTag(t);else so(e,t)}function Mc(e,t){let n=t.tagID;if(n===a.CAPTION||n===a.TABLE||n===a.TBODY||n===a.TFOOT||n===a.THEAD||n===a.TR||n===a.TD||n===a.TH){if(e.openElements.hasInTableScope(n))e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e.onEndTag(t)}else uo(e,t)}function Uc(e,t){switch(t.tagID){case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{he(e,t);break}case a.CAPTION:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.tmplInsertionModeStack[0]=d.IN_TABLE,e.insertionMode=d.IN_TABLE,at(e,t);break}case a.COL:{e.tmplInsertionModeStack[0]=d.IN_COLUMN_GROUP,e.insertionMode=d.IN_COLUMN_GROUP,ca(e,t);break}case a.TR:{e.tmplInsertionModeStack[0]=d.IN_TABLE_BODY,e.insertionMode=d.IN_TABLE_BODY,sn(e,t);break}case a.TD:case a.TH:{e.tmplInsertionModeStack[0]=d.IN_ROW,e.insertionMode=d.IN_ROW,cn(e,t);break}default:e.tmplInsertionModeStack[0]=d.IN_BODY,e.insertionMode=d.IN_BODY,Z(e,t)}}function Fc(e,t){if(t.tagID===a.TEMPLATE)We(e,t)}function co(e,t){if(e.openElements.tmplCount>0)e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t);else ua(e,t)}function $c(e,t){if(t.tagID===a.HTML)Z(e,t);else an(e,t)}function fo(e,t){var n;if(t.tagID===a.HTML){if(!e.fragmentContext)e.insertionMode=d.AFTER_AFTER_BODY;if(e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===a.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];if(r&&!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0?void 0:n.endTag))e._setEndLocation(r,t)}}else an(e,t)}function an(e,t){e.insertionMode=d.IN_BODY,rn(e,t)}function Yc(e,t){switch(t.tagID){case a.HTML:{Z(e,t);break}case a.FRAMESET:{e._insertElement(t,S.HTML);break}case a.FRAME:{e._appendElement(t,S.HTML),t.ackSelfClosing=!0;break}case a.NOFRAMES:{he(e,t);break}default:}}function jc(e,t){if(t.tagID===a.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()){if(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==a.FRAMESET)e.insertionMode=d.AFTER_FRAMESET}}function Vc(e,t){switch(t.tagID){case a.HTML:{Z(e,t);break}case a.NOFRAMES:{he(e,t);break}default:}}function Kc(e,t){if(t.tagID===a.HTML)e.insertionMode=d.AFTER_AFTER_FRAMESET}function qc(e,t){if(t.tagID===a.HTML)Z(e,t);else tn(e,t)}function tn(e,t){e.insertionMode=d.IN_BODY,rn(e,t)}function Wc(e,t){switch(t.tagID){case a.HTML:{Z(e,t);break}case a.NOFRAMES:{he(e,t);break}default:}}function Qc(e,t){t.chars=j,e._insertCharacters(t)}function Xc(e,t){e._insertCharacters(t),e.framesetOk=!1}function mo(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 zc(e,t){if(Fr(t))mo(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);if(r===S.MATHML)na(t);else if(r===S.SVG)$r(t),aa(t);if(en(t),t.selfClosing)e._appendElement(t,r);else e._insertElement(t,r);t.ackSelfClosing=!0}}function Jc(e,t){if(t.tagID===a.P||t.tagID===a.BR){mo(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===S.HTML){e._endTagOutsideForeignContent(t);break}let o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}var fh=new Set([g.AREA,g.BASE,g.BASEFONT,g.BGSOUND,g.BR,g.COL,g.EMBED,g.FRAME,g.HR,g.IMG,g.INPUT,g.KEYGEN,g.LINK,g.META,g.PARAM,g.SOURCE,g.TRACK,g.WBR]);function ho(e,t){return St.parse(e,t)}function po(e,t,n){if(typeof e==="string")n=t,t=e,e=null;let r=St.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function Hu(e){if(!e||typeof e!=="object")return"";if("position"in e||"type"in e)return Eo(e.position);if("start"in e||"end"in e)return Eo(e);if("line"in e||"column"in e)return la(e);return""}function la(e){return bo(e&&e.line)+":"+bo(e&&e.column)}function Eo(e){return la(e&&e.start)+"-"+la(e&&e.end)}function bo(e){return e&&typeof e==="number"?e:1}class W extends Error{constructor(e,t,n){super();if(typeof t==="string")n=t,t=void 0;let r="",o={},s=!1;if(t)if("line"in t&&"column"in t)o={place:t};else if("start"in t&&"end"in t)o={place:t};else if("type"in t)o={ancestors:[t],place:t.position};else o={...t};if(typeof e==="string")r=e;else if(!o.cause&&e)s=!0,r=e.message,o.cause=e;if(!o.ruleId&&!o.source&&typeof n==="string"){let m=n.indexOf(":");if(m===-1)o.ruleId=n;else o.source=n.slice(0,m),o.ruleId=n.slice(m+1)}if(!o.place&&o.ancestors&&o.ancestors){let m=o.ancestors[o.ancestors.length-1];if(m)o.place=m.position}let c=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=c?c.line:void 0,this.name=Hu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack==="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}W.prototype.file="";W.prototype.name="";W.prototype.reason="";W.prototype.message="";W.prototype.stack="";W.prototype.column=void 0;W.prototype.line=void 0;W.prototype.ancestors=void 0;W.prototype.cause=void 0;W.prototype.fatal=void 0;W.prototype.place=void 0;W.prototype.ruleId=void 0;W.prototype.source=void 0;var pe={basename:Zc,dirname:el,extname:tl,join:nl,sep:"/"};function Zc(e,t){if(t!==void 0&&typeof t!=="string")throw TypeError('"ext" argument must be a string');It(e);let n=0,r=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){while(o--)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else if(r<0)s=!0,r=o+1;return r<0?"":e.slice(n,r)}if(t===e)return"";let c=-1,m=t.length-1;while(o--)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else{if(c<0)s=!0,c=o+1;if(m>-1)if(e.codePointAt(o)===t.codePointAt(m--)){if(m<0)r=o}else m=-1,r=c}if(n===r)r=c;else if(r<0)r=e.length;return e.slice(n,r)}function el(e){if(It(e),e.length===0)return".";let t=-1,n=e.length,r;while(--n)if(e.codePointAt(n)===47){if(r){t=n;break}}else if(!r)r=!0;return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function tl(e){It(e);let t=e.length,n=-1,r=0,o=-1,s=0,c;while(t--){let m=e.codePointAt(t);if(m===47){if(c){r=t+1;break}continue}if(n<0)c=!0,n=t+1;if(m===46){if(o<0)o=t;else if(s!==1)s=1}else if(o>-1)s=-1}if(o<0||n<0||s===0||s===1&&o===n-1&&o===r+1)return"";return e.slice(o,n)}function nl(...e){let t=-1,n;while(++t<e.length)if(It(e[t]),e[t])n=n===void 0?e[t]:n+"/"+e[t];return n===void 0?".":al(n)}function al(e){It(e);let t=e.codePointAt(0)===47,n=rl(e,!t);if(n.length===0&&!t)n=".";if(n.length>0&&e.codePointAt(e.length-1)===47)n+="/";return t?"/"+n:n}function rl(e,t){let n="",r=0,o=-1,s=0,c=-1,m,p;while(++c<=e.length){if(c<e.length)m=e.codePointAt(c);else if(m===47)break;else m=47;if(m===47){if(o===c-1||s===1);else if(o!==c-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(p=n.lastIndexOf("/"),p!==n.length-1){if(p<0)n="",r=0;else n=n.slice(0,p),r=n.length-1-n.lastIndexOf("/");o=c,s=0;continue}}else if(n.length>0){n="",r=0,o=c,s=0;continue}}if(t)n=n.length>0?n+"/..":"..",r=2}else{if(n.length>0)n+="/"+e.slice(o+1,c);else n=e.slice(o+1,c);r=c-o-1}o=c,s=0}else if(m===46&&s>-1)s++;else s=-1}return n}function It(e){if(typeof e!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(e))}var To={cwd:ol};function ol(){return"/"}function rt(e){return Boolean(e!==null&&typeof e==="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function go(e){if(typeof e==="string")e=new URL(e);else if(!rt(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 sl(e)}function sl(e){if(e.hostname!==""){let r=TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let t=e.pathname,n=-1;while(++n<t.length)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let r=t.codePointAt(n+2);if(r===70||r===102){let o=TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}var da=["history","path","basename","stem","extname","dirname"];class pp{constructor(e){let t;if(!e)t={};else if(rt(e))t={path:e};else if(typeof e==="string"||ul(e))t={value:e};else t=e;this.cwd="cwd"in t?"":To.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;while(++n<da.length){let o=da[n];if(o in t&&t[o]!==void 0&&t[o]!==null)this[o]=o==="history"?[...t[o]]:t[o]}let r;for(r in t)if(!da.includes(r))this[r]=t[r]}get basename(){return typeof this.path==="string"?pe.basename(this.path):void 0}set basename(e){ma(e,"basename"),fa(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){Ao(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(fa(e,"extname"),Ao(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(rt(e))e=go(e);if(ma(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){ma(e,"stem"),fa(e,"stem"),this.path=pe.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new W(e,t,n);if(this.path)r.name=this.path+":"+r.name,r.file=this.path;return r.fatal=!1,this.messages.push(r),r}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 fa(e,t){if(e&&e.includes(pe.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+pe.sep+"`")}function ma(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Ao(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function ul(e){return Boolean(e&&typeof e==="object"&&"byteLength"in e&&"byteOffset"in e)}var _o={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 cl="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",dl=/-[a-z]/g,fl=/%c(?:([-+])(\d+))?/g,ml=/%x/g,hl={2:!0,1:!1,0:null},pl={};function ha(e,t){let n=t||pl,r=n.onerror,o=e instanceof pp?e:new pp(e),s=n.fragment?po:ho,c=String(o),m=s(c,{sourceCodeLocationInfo:!0,onParseError:n.onerror?p:null,scriptingEnabled:!1});return Vn(m,{file:o,space:n.space,verbose:n.verbose});function p(C){let D=C.code,y=El(D),L=n[y],k=L===null||L===void 0?!0:L,M=typeof k==="number"?k:k?1:0;if(M){let F=_o[y];Ci(F,"expected known error from `parse5`");let V=new W(H(F.reason),{place:{start:{line:C.startLine,column:C.startCol,offset:C.startOffset},end:{line:C.endLine,column:C.endCol,offset:C.endOffset}},ruleId:D,source:"hast-util-from-html"});if(o.path)V.file=o.path,V.name=o.path+":"+V.name;V.fatal=hl[M],V.note=H(F.description),V.url=F.url===!1?void 0:cl+D,Ci(r,"`internalOnerror` is not passed if `onerror` is not set"),r(V)}function H(F){return F.replace(fl,V).replace(ml,Re);function V(ue,z,be){let Qe=(be?Number.parseInt(be,10):0)*(z==="-"?-1:1),st=c.charAt(C.startOffset+Qe);return Tl(st)}function Re(){return gl(c.charCodeAt(C.startOffset))}}}}function El(e){return e.replace(dl,bl)}function bl(e){return e.charAt(1).toUpperCase()}function Tl(e){return e==="`"?"` ` `":e}function gl(e){return"0x"+e.toString(16).toUpperCase()}var Al=/[ \t\n\f\r]/g;function Sd(e){return typeof e==="object"?e.type==="text"?Co(e.value):!1:Co(e)}function Co(e){return e.replace(Al,"")===""}function yo(e){let t=ha(e,{fragment:!0});return xo(t.children)}function xo(e){let t=[];for(let n of e){let r=_l(n);if(r!=null)t.push(r)}return t}function _l(e){if(e.type==="text"){if(Sd(e))return null;return e.value}if(e.type==="element"){let t={tagName:e.tagName};if(Object.keys(e.properties).length>0){let{style:r,attrs:o}=Cl(e.properties);if(Object.keys(o).length>0)t.attributes=o;if(Object.keys(r).length>0)t.style=r}let n=xo(e.children);if(n.length===1&&i(n[0]))[t.textContent]=n;else if(n.length>0)t.children=n;return t}return null}function Cl(e){let t={},n={};for(let[r,o]of Object.entries(e)){if(o===!1||o===void 0||o===null)continue;let s=wd(xd,r),c=s.attribute;if(c==="style"&&i(o)){yl(o,n);continue}if(o===!0)t[c]="";else if(Array.isArray(o))t[c]=o.join(s.commaSeparated?", ":" ");else t[c]=String(o)}return{attrs:t,style:n}}function yl(e,t){for(let n of e.split(";")){let r=n.indexOf(":");if(r===-1)continue;let o=n.slice(0,r).trim(),s=n.slice(r+1).trim();if(o&&s)t[o]=s}}var dn="web application/jx+json";function Io(e){if(i(e))return e;let t=Ze(e.tagName).split("|")[0]||"div",n="";if(e.attributes)for(let[o,s]of Object.entries(e.attributes)){if(s===null||T(s))continue;n+=s===""?` ${o}`:` ${o}="${String(s).replaceAll('"',""")}"`}if(e.style){let o=Object.entries(e.style).map(([s,c])=>`${s}:${c}`).join(";");if(o)n+=` style="${o.replaceAll('"',""")}"`}let r="";if(i(e.textContent))r=e.textContent;else if(Array.isArray(e.children))r=e.children.map((o)=>Io(o)).join("");return`<${t}${n}>${r}</${t}>`}async function Lo(e){b.clipboard=e;try{let t=new Blob([JSON.stringify(e)],{type:dn}),n=new Blob([Io(e)],{type:"text/html"});await navigator.clipboard.write([new ClipboardItem({[dn]:t,"text/html":n})])}catch{try{await navigator.clipboard.writeText(JSON.stringify(e))}catch{}}}async function Ea(){try{let e=await navigator.clipboard.read();for(let t of e){if(t.types.includes(dn)){let n=await t.getType(dn);return[JSON.parse(await n.text())]}if(t.types.includes("text/html")){let r=await(await t.getType("text/html")).text(),s=yo(r).map((c)=>i(c)?{tagName:"p",textContent:c}:c);if(s.length>0)return s}if(t.types.includes("text/plain")){let r=await(await t.getType("text/plain")).text();try{let o=JSON.parse(r);if(Qn(o)&&o.tagName)return[o]}catch{}if(r.trim())return[{tagName:"p",textContent:r.trim()}]}}}catch{if(b.clipboard)return[Wr(b.clipboard)]}return null}async function xl(){let e=h.value,t=Oe(e?.session.selection);if(!e||!t)return;let n=ne(e.doc.document,t);if(!n)return;let r=Wr(n);await Lo(r),E.success("Copied",{key:"clipboard"})}async function Sl(){let e=h.value,t=Oe(e?.session.selection);if(!e||!t||t.length<2)return;let n=ne(e.doc.document,t);if(!n)return;let r=Wr(n);await Lo(r);let o=e.session.selection.filter((s)=>s.length>=2);if(!Y(e,(s)=>Kp(s,o)))return;E.success("Cut",{action:"edit.undo",key:"clipboard"})}async function gE(){let e=h.value;if(!e)return;let t=await Ea();if(!t||t.length===0)return;let n=Oe(e.session.selection),r=n??[],o=ne(e.doc.document,r);if(!o)return;if(n&&n.length>=2){let s=Dt(n),c=ai(n);Y(e,(m)=>{for(let p=0;p<t.length;p++)Ir(m,s,c+1+p,t[p])})}else{let s=Array.isArray(o.children)?o.children.length:0;Y(e,(c)=>{for(let m=0;m<t.length;m++)Ir(c,r,s+m,t[m])})}E.success("Pasted",{action:"edit.undo",key:"clipboard"})}function Oo(e){return e.$prototype==="Array"}function Do(e){let t=()=>e.target()!==null,n=()=>{let c=h.value;return Boolean(c)&&Da(c.session.ui.canvasMode)==="canvas"},r=()=>{let c=e.target();return c!==null&&Up(c.path)&&n()},o=()=>{let c=e.target();return c!==null&&!Oo(c.node)},s="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()&&n(),enablement:()=>r()&&o(),requires:"an element with a sibling position — not the page root or a repeater item",run:async()=>{let c=e.target(),m=await Ea();if(!c||!m||m.length===0)return;let p=Dt(c.path),C=ai(c.path);Y(h.value,(D)=>{for(let[y,L]of m.entries())Ir(D,p,C+1+y,L)}),E.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()&&n(),enablement:()=>{let c=e.target();return c!==null&&c.path.length>=2&&o()},requires:"a container element that is not a repeater",run:async()=>{let c=e.target(),m=await Ea();if(!c||!m||m.length===0)return;let p=Array.isArray(c.node.children)?c.node.children.length:0;Y(h.value,(C)=>{for(let[D,y]of m.entries())Ir(C,c.path,p+D,y)}),E.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 c=e.target()?.node.style;if(!c)return;b.styleClipboard=Wr(c),E.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()&&n(),enablement:()=>e.styleClipboard()!==null,requires:"a copied style set",run:()=>{let c=e.target(),m=e.styleClipboard();if(!c||!m)return;let p=Wr(m);Y(h.value,(C)=>S$(C,c.path,p)),E.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:r,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>No(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:r,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>No(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:r,requires:"an element with a sibling position — not the page root or a repeater item",run:()=>{let c=e.target();if(c)Y(h.value,(m)=>v$(m,c.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:r,requires:"an element with a sibling position — not the page root or a repeater item",run:async()=>{let c=e.target();if(!c?.rerender)return;let{startLayerTitleEdit:m}=await (we("m5hw1d7g"),import("./layers-panel-m5hw1d7g.js"));m(c.path,c.rerender)}}]}function No(e,t){if(!e)return;let n=Dt(e.path),r=ai(e.path);Y(h.value,(o)=>Ir(o,n,r+t,{children:[],tagName:"p"}))}function cS(){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:()=>{xl()},title:"Copy",undo:"none",when:Jd},{category:"Edit",destructive:!0,enablement:Hy,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:()=>{Sl()},title:"Cut",undo:"document",when:Jd}]}function Nl(e,t){e.registerAll(Do(t))}var Ge=null,vo=null;function bE(e){vo=e}function wo(){if(Ge)return Ge;let e=h.value,t=Oe(e?.session.selection);if(!e||!t)return null;let n=ne(e.doc.document,t);return n?{node:n,path:t}:null}var ba={componentPathFor:(e)=>e.includes("-")&&ut.find((t)=>t.tagName===e)?.path||null,styleClipboard:()=>b.styleClipboard,target:wo};function yE(){return Do(ba)}function Il(){let e=wo(),t=h.value,n=Ze(e?.node.tagName);return r_({capability:{findReferences:hy()},document:{dirty:Boolean(t?.doc.dirty),open:Boolean(t)},editor:{kind:t?Da(t.session.ui.canvasMode):"none"},selection:{count:e?1:0,isComponentInstance:Boolean(e&&ba.componentPathFor(n)),isRepeater:e?Oo(e.node):!1,isRoot:e?!Up(e.path):!1,kind:n}})}var pa=null;function ko(){let e=ae();if(e)return e;if(pa)return pa;let t=rm({getContext:Il}),n=yp({...Ow(),deleteSelection:()=>{let r=Ge;if(r)Y(h.value,(o)=>uh(o,r.path))},duplicateSelection:()=>{let r=Ge;if(r)Y(h.value,(o)=>T1(o,r.path))}}).filter((r)=>(r.menus??[]).includes("context/element"));return t.registerAll(n),t.registerAll(TS().filter((r)=>(r.menus??[]).includes("context/element"))),t.registerAll(cS()),wb(t,{convertToComponent:()=>im(),navigateToComponent:(r)=>{vo?.(r)}}),Nl(t,ba),pa=t,t}var ln=null,Lt=[];function Ll(e){let t=Lt.find((r)=>r.id===e);if(!t||t.disabled)return;let n=ko().run(e);fp()}function fp(){ln?.close()}function Ol(e){let t=ko(),n;return t.forPlacement(e).map((r,o)=>{let s=o>0&&r.group!==n;({group:n}=r);let c=t.isEnabled(r.id),m=t.keymap.formatBinding(r.id),p=m&&m.toLowerCase()!==r.title.toLowerCase()?m:void 0,C=c?void 0:t.disabledReason(r.id),D={destructive:r.destructive===!0,disabled:!c,dividerAbove:s,id:r.id,title:r.title};if(p)D.chord=p;if(C)D.requires=C;return D})}function $w(e,t,n={}){e.preventDefault(),fp();let r=h.value;if(!r)return;let o=ne(r.doc.document,t);if(!o)return;if(!Uy(r.session.selection,t))r.session.selection=[t];if(Ge={node:o,path:t,rerender:n.rerender},Lt=Ol(n.placement??"context/element"),Lt.length===0){Ge=null;return}let s=document.activeElement instanceof HTMLElement?document.activeElement:null;ln=Bt({label:"Element actions",onClosed:(c)=>{if(ln===c)ln=null,Ge=null,Lt=[]},opener:s,origin:{x:e.clientX,y:e.clientY},region:"context",rows:Lt,run:Ll})}var Po={$schema:"https://jxsuite.com/schema/v1",$id:"StudioPanelStylebookLayers",$description:"The Outline panel while the pane is showing Project Styles: the element catalogue as a list of selectable tags, and the document's own custom properties under the other tab. 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.",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="badge"][data-kind="variable"]':{fontFamily:"var(--font-mono)"},'& [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)"},'& [part="value"]':{maxWidth:"80px",overflow:"hidden",color:"var(--fg-dim)",fontSize:"var(--jx-text-sm)",textOverflow:"ellipsis",whiteSpace:"nowrap"},'& [part="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 where its content comes from.",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"], & [part="empty-detail"]':{margin:"0",maxWidth:"28ch",lineHeight:"1.5"},'& [part="empty-detail"]':{fontSize:"var(--jx-text-sm)",opacity:"0.8"},"@(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:"tab-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/tab"},cases:{elements:{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"}}}}]}}]},variables:{tagName:"div",attributes:{part:"variables-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/hasVariables"},cases:{true:{tagName:"ul",attributes:{part:"list","data-tab":"variables"},children:[{$prototype:"Array",items:{$ref:"#/state/variables"},key:{$ref:"$map/item/key"},map:{tagName:"li",attributes:{part:"row","data-kind":"variable","data-path":"${$map.item.name}"},children:[{tagName:"span",attributes:{part:"badge","data-kind":"variable"},textContent:"var"},{tagName:"span",attributes:{part:"label"},textContent:"${$map.item.name}"},{tagName:"span",attributes:{part:"value"},textContent:"${$map.item.value}"}]}}]},false:{tagName:"div",attributes:{part:"empty"},children:[{tagName:"p",attributes:{part:"empty-message"},textContent:"No variables defined."},{tagName:"p",attributes:{part:"empty-detail"},textContent:"A custom property declared on this file's own style block is listed here."}]}}}}}]};I("panel-stylebook-layers",Po);function Mo(e,t){e.tab=t.tab,e.rows=t.rows,e.variables=t.variables,e.hasVariables=t.hasVariables}function Bo(e,t,n){let r=v({hasVariables:!1,rows:[],selectRow:n.selectRow,tab:"elements",variables:[]});Mo(r,t);let o=null,s=!1;return A("panel-stylebook-layers",r,e).then((c)=>{if(s){c.dispose();return}o=c}),{connected:()=>!s&&(o===null||o.root.parentNode===e),dispose(){s=!0,o?.dispose(),o=null},update:(c)=>{Mo(r,c)}}}var Ot=8,Ta=16;function Dl(e,t){let n=e[`& ${t}`];return T(n)&&Object.keys(n).length>0}function vl(e){if(!e)return null;return e.includes(" ")?e.split(" ").pop()??null:e}function Ho(e,t,n,r,o,s){let{tag:c}=e,m=o?`${o} ${c}`:c;s.push({customized:Dl(t,c),indent:`${Ot+r*Ta}px`,key:m,kind:"element",label:e.text||`<${c}>`,selected:c===n,tag:c});let p=e.children?[...new Map(e.children.map((C)=>[C.tag,C])).values()]:[];for(let C of p)Ho(C,t,n,r+1,m,s)}function wl(e){return Object.entries(e).filter(([t])=>t.startsWith("--")).map(([t,n])=>({key:t,name:t,value:String(n)}))}function kl(e){let n=h.value?.doc.document?.style||{},{selection:r}=x.stylebook,o=vl(r),s=[];for(let m of e.stylebookMeta.$sections)for(let p of m.elements)Ho(p,n,o,0,"",s);for(let m of ut)s.push({customized:!1,indent:`${Ot}px`,key:m.tagName,kind:"component",label:m.tagName,selected:m.tagName===r,tag:"⬡"});let c=wl(n);return{hasVariables:c.length>0,rows:s,tab:x.stylebook.tab,variables:c}}var Ce=null;function Pl(e){queueMicrotask(()=>{e.querySelector('[part="row"][aria-current="true"]')?.scrollIntoView({behavior:"smooth",block:"nearest"})})}function Uo(e,t){let n=t.querySelector(".panel-content")??t;if(Ce&&(Ce.host!==n||!Ce.handle.connected()))Ce.handle.dispose(),Ce=null;let r=kl(e);if(Ce)Ce.handle.update(r);else Ce={handle:Bo(n,r,{selectRow:(o)=>{e.selectStylebookTag(o,void 0,{panCanvas:!0})}}),host:n};Pl(n)}function Fo(){Ce?.handle.dispose(),Ce=null}function Ml(e,t){if(e===null||t===null)return e===t;return e.length===t.length&&e.every((n,r)=>n===t[r])}function sS(e,t){Gc(e,{ui:{openDialog:t}}),i1(e,t)}function ga(e,t){let n=$C(e.doc.document,t);if(n===null||Ml(e.session.ui.openDialog,n))return!1;return sS(e,n),!0}function $o(e){if(e)ga(e,Oe(e.session.selection))}function Bl(e,t){if(e===null||t===null)return e===t;return e.length===t.length&&e.every((n,r)=>n===t[r])}function aS(e,t){Gc(e,{ui:{openPopover:t}}),n1(e,t)}function Yo(e,t){let n=LC(e.doc.document,t);if(n===null||Bl(e.session.ui.openPopover,n))return!1;return aS(e,n),!0}function Hl(e){if(e)Yo(e,Oe(e.session.selection))}function jo(e){let t=h.value;if(t)Yo(t,e),ga(t,e);jm(e)}var Rt=null;function mE(){if(!Rt){let t=oe(()=>{let n=h.value;n?.session.selection.map((r)=>r.join("/")).join("|"),n?.doc.document,kh();try{Hl(n),$o(n)}finally{Eh()}});Rt={stop:()=>{t.effect.stop()}}}let e=Rt;return()=>{if(e.stop(),Rt===e)Rt=null}}var Vo={$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}"}]}]}}}]}]};I("panel-outline",Vo);function Ko(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 Fl(e){let t=i(e)?void 0:e.attributes?.part;return i(t)?t:""}function qo(e,t,n){let r=v({contextMenu:n.contextMenu,current:"",editCancel:n.editCancel,editCommit:n.editCommit,editInput:n.editInput,editReady:n.editReady,emptyAction:n.emptyAction,emptyLabel:"",emptyMessage:"",expand:n.expand,hover:n.hover,hoverOut:n.hoverOut,move:n.move,overflowRow:n.overflowRow,padBottom:0,padTop:0,rename:n.rename,reveal:n.reveal,rows:[],runRow:n.runRow,select:n.select,treeReady:n.treeReady,typeahead:n.typeahead,view:"empty"});Ko(r,t);let o=null,s=!1,c=A("panel-outline",r,e,{onNodeCreated:(m,p,C)=>{if(m instanceof HTMLElement){let D=Fl(C);if(D==="tree")n.treeReady(m);else if(D==="title-input")n.editReady(m)}}}).then((m)=>{if(s){m.dispose();return}o=m});return{connected:()=>!s&&(o===null||o.root.parentNode===e),dispose(){s=!0,o?.dispose(),o=null},ready:c,update:(m)=>{Ko(r,m)}}}var Wo=32,Go=40,$l=new Map([["article","Article"],["aside","Sidebar"],["dialog","Dialog"],["figure","Figure"],["footer","Footer"],["form","Form"],["header","Header"],["main","Main"],["nav","Navigation"]]);function vt(e){let t=e.replaceAll(/\s+/gu," ").trim();return t.length>Wo?`${t.slice(0,Wo)}…`:t}function zo(e,t=0){if(i(e.textContent)&&e.textContent.trim())return e.textContent.trim();if(t>=3||!Array.isArray(e.children))return"";for(let n of e.children){if(i(n)&&n.trim())return n.trim();if(T(n)){let r=zo(n,t+1);if(r)return r}}return""}function Yl(e){let t=e.attributes?.class;return i(t)?t.trim().split(/\s+/u)[0]??"":""}function Jo(e){if(e.$title)return vt(e.$title);if(e.$prototype==="Array"||e.tagName==="slot")return lo(e);if(e.$id)return`#${vt(e.$id)}`;if(i(e.textContent)&&e.textContent.trim())return vt(e.textContent);let t=Yl(e);if(t)return`.${vt(t)}`;let n=$l.get(Ze(e.tagName).toLowerCase());if(n)return n;let r=zo(e);if(r)return`“${vt(r)}”`;let o=Array.isArray(e.children)?e.children.length:0;return o>0?`${o} item${o===1?"":"s"}`:""}var Qo=4;function Zo(e,t,n){return $t(t,()=>{let r=e.forPlacement("outline/row");return{commands:r.slice(0,Qo).map((o)=>({destructive:o.destructive===!0?"true":"false",disabled:e.disabledReason(o.id)!==void 0,icon:o.icon??"",id:o.id,row:n,title:o.title,tooltip:Nn(e,o)})),overflow:r.slice(Qo)}})}var jl=6;function es(e){return Math.min(e,jl)*Ta}function wt(e){return e?e.split("/").map((t)=>/^\d+$/u.test(t)?Number(t):t):[]}var Vl=24,_a='[part="row"]',q=[],Ee=null,hn=null,mn=null,ot=null,Le=null;function Ca(){return JE(Ee,_a,Vl)}function kt(e){return e===void 0?-1:q.findIndex((t)=>t.key===e)}function ya(e){return e===null?-1:q.findIndex((t)=>ao(t.path,e))}function fn(e,t){for(let n=e+t;n>=0&&n<q.length;n+=t)if(q[n].item)return n;return-1}function Kl(){let e=[];for(let t of q)if(t.item)e.push(t.path);return e}function xa(e){return Pb(Ee,e,Ca())}function ql(){if(Ee?.isConnected!==!0||Ee.querySelector("[data-dragging]"))return;queueMicrotask(()=>mn?.())}function Wl(){if(!Ee)return;hn=Mb(hn,Ee,{count:()=>q.length,onChange:ql,rowHeight:Ca})}function Gl(e){return Array.isArray(e)&&e.every((t)=>i(t)||ee(t))}function Xl(e){let t=e?.closest("[data-jx-path]");if(!t?.dataset.jxPath)return null;try{let n=JSON.parse(t.dataset.jxPath);return Gl(n)?n:null}catch{return null}}function ts(e){return Ee?.querySelector(`${_a}[data-value="${CSS.escape(e)}"]`)??null}function zl(e){let t=q[e];if(t&&!ts(t.key))xa(e)}function ns(e,t={}){let n=q[e];if(n)as(n.path,t)}function as(e,t={}){let n=h.value;if(!n)return;if(t.range){n.session.selection=h$(Kl(),u$(n.session.selection),e);return}if(t.additive){n.session.selection=qy(n.session.selection,e);return}n.session.selection=[e]}function Jl(e,t){let n=q[kt(e)];if(!n)return;as(n.path,{additive:t==="toggle",range:t==="range"}),ye()}function ed(e,t){let n=q[kt(e)];if(!n||!ss(n))return;let r=os();if(t)r.delete(e);else r.add(e);ye()}function td(e,t){let n=kt(e),r;switch(t){case"Home":{r=fn(-1,1);break}case"End":{r=fn(q.length,-1);break}case"ArrowUp":{r=fn(n,-1);break}case"ArrowLeft":{r=q[n]?.parent??-1;break}case"ArrowDown":case"ArrowRight":{r=fn(n,1);break}default:return}rs(r)}function rs(e){if(!q[e])return;ns(e),zl(e),ye()}function Sa(e){if(!e.item){let n=String(e.node);return n.length>Go?`${n.slice(0,Go)}…`:n}let{node:t}=e;return e.nodeType==="case-ref"?t.$ref||"external":Jo(t)}function nd(e,t){let n=kt(e),r=q.length;for(let o=1;o<=r;o++){let s=(n+o+r)%r,c=q[s];if(c?.item&&Sa(c).trim().toLowerCase().startsWith(t)){rs(s);return}}}function AI(e,t){if(!h.value)return;let r=ya(e),o=q[r];if(!o?.item)return;if(Le={key:o.key,rerender:t,text:o.node.$title||""},!ts(o.key))xa(r);ye()}function ad(e){return Le?.key===e}function rd(e){if(Le)Le.text=e}function od(){let e=Le,t=h.value;if(!e)return;Le=null;let n=e.text.trim();if(t)Y(t,(r)=>Ye(r,wt(e.key),"$title",n||void 0));e.rerender(),ye()}function sd(){let e=Le;if(!e)return;Le=null,e.rerender(),ye()}function os(){return tt._layersCollapsed||=new Set,tt._layersCollapsed}function id(e,t,n){let r=[],o=[],s=null;for(let{node:c,path:m,depth:p,nodeType:C}of eu(e)){if(s!==null&&p>s)continue;s=null;let D=V1(m);if(n.has(D))s=p;if(t==="content"&&m.length===0)continue;let y=C==="text",L=null;if(!y){if(!T(c))continue;if(m.length>=2&&C==="element"){let M=Dt(m),H=M?ne(e,M):null;if(H&&Px(c,H))continue}L=c}while(o.length>0&&r[o.at(-1)].depth>=p)o.pop();let k=o.at(-1)??-1;r.push(L===null?{depth:p,item:!1,key:D,node:c,nodeType:C,parent:k,path:m,posInSet:0,setSize:0}:{depth:p,item:!0,key:D,node:L,nodeType:C,parent:k,path:m,posInSet:0,setSize:0}),o.push(r.length-1)}return ud(r)}function ud(e){let t=new Map;for(let r of e)if(r.item)t.set(r.parent,(t.get(r.parent)??0)+1);let n=new Map;for(let r of e){if(!r.item)continue;let o=(n.get(r.parent)??0)+1;n.set(r.parent,o),r.posInSet=o,r.setSize=t.get(r.parent)??o}return e}function ss(e){if(!e.item)return!1;let{node:t}=e,n=Array.isArray(t.children)&&t.children.length>0,r=Ro(t.children),o=Boolean(t.$switch)&&T(t.cases)&&Object.keys(t.cases).length>0;return n||r||o||e.nodeType==="map"&&Boolean(t.map)}function cd(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 n=String(e.path.at(-1)??"");return{badge:n,badgeKind:"case",badgeTitle:`Condition case: ${n}`}}if(t.$switch)return{badge:"⇄",badgeKind:"switch",badgeTitle:"Condition"};if(t.tagName==="slot"){let n=t.attributes?.name;return{badge:"▣",badgeKind:"slot",badgeTitle:i(n)&&n.trim()?`Slot "${n.trim()}"`:"Default slot"}}return{badge:Ze(t.tagName)||"div",badgeKind:"tag",badgeTitle:cu(t.tagName)?`Tag chosen when the element is created: ${bk(t.tagName).join(" or ")}`:null}}function ld(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:`${es(e.depth)+Ot}px`,jxPath:JSON.stringify(e.path),key:e.key,kind:"text",label:Sa(e),labelItalic:"false",level:"",overflow:"false",placeholder:"",posInSet:"",selected:"false",setSize:""}}function dd(e,t,n,r){if(!e.item)return ld(e);let{depth:o,key:s,node:c,nodeType:m,path:p}=e,C=Uy(t.selection,p),D=ss(e),y=rf.has((Ze(c.tagName)||"div").toLowerCase())||m==="map",L=(m==="element"||m==="map")&&ee(ai(p)),k=t.mode==="content"?p.length===0:p.length<2,M=L&&!k,H=D&&!n.has(s),F=ad(s),V=M&&!F&&(C||s===ot),{commands:Re,overflow:ue}=V?Zo(r,p,s):{commands:[],overflow:[]},{badge:z,badgeKind:be,badgeTitle:Qe}=cd(e),{$title:st,...De}=c;return{actions:V?"shown":"hidden",badge:z,badgeKind:be,badgeTitle:Qe,commands:Re,dndDepth:L?String(o):null,dndExpanded:L&&H?"":null,dndRow:L?s:null,dndVoid:L&&y?"":null,draggable:M?"true":"false",editValue:F?c.$title??"":"",editing:F?"true":"false",expanded:D?H?"true":"false":"",indent:`${es(o)+Ot}px`,jxPath:JSON.stringify(p),key:s,kind:"element",label:Sa(e),labelItalic:m==="case-ref"?"true":"false",level:String(o+1),overflow:ue.length>0?"true":"false",placeholder:Jo(De)||Ze(c.tagName)||"div",posInSet:String(e.posInSet),selected:C?"true":"false",setSize:String(e.setSize)}}function fd(e,t){let n=Oe(t),r=n===null?-1:ya(n),o=q[r];return o?.item===!0?o.key:e.find((s)=>s.item)?.key??""}function is(){let e=h.value,t=os(),n=Pe(),r=e?.doc.mode??"";q=e?id(e.doc.document,r,t):[];let o=Ab(Ee,{count:q.length,rowHeight:Ca()}),s=e?.session.selection??[],c=q.slice(o.start,o.end);return{current:fd(c,s),emptyLabel:"Add an element",emptyMessage:"This page is empty. Everything you add to it is listed here, in order.",padBottom:o.padBottom,padTop:o.padTop,rows:c.map((m)=>dd(m,{mode:r,selection:s},t,n)),view:q.length===0?"empty":"rows"}}var de=null,Xo=null;function ye(){de?.handle.update(is())}var Aa=null;function md(){let e=h.value,t=Oe(e?.session.selection);return`${e?.id??""}|${t===null?"":JSON.stringify(t)}`}function hd(){let e=md();if(e===Aa)return;Aa=e,pd()}function pd(){let e=Ee?.querySelector(`${_a}[aria-selected="true"]`);if(e){e.scrollIntoView({behavior:"smooth",block:"nearest"});return}xa(ya(Oe(h.value?.session.selection)))}function Ed(e){if(ot===e)return;ot=e,ye()}function bd(){if(ot===null)return;ot=null,ye()}function Td(e,t){let n=t.querySelector(".panel-content")??t;if(de&&(de.host!==n||!de.handle.connected()))de.handle.dispose(),de=null;mn=e.rerender,Xo=e.registerDnD;let r=is();if(de)de.handle.update(r);else de={handle:qo(n,r,{contextMenu:(o,s)=>{let c=Xl(s.target instanceof Element?s.target:null);if(c&&s instanceof MouseEvent)$w(s,c,{rerender:()=>mn?.()}),ye()},editCancel:sd,editCommit:od,editInput:rd,editReady:(o)=>{queueMicrotask(()=>{if(o instanceof HTMLInputElement&&o.isConnected)o.focus(),o.select()})},expand:ed,emptyAction:()=>{$s("insert")},hover:Ed,hoverOut:bd,move:td,overflowRow:(o,s)=>{let c=wt(o),m=Pe(),{overflow:p}=Zo(m,c,o);if(s instanceof HTMLElement&&p.length>0)Ln(s,m,p,c)},rename:(o)=>{let s=kt(o);ns(s),AI(wt(o),()=>mn?.())},reveal:(o)=>{jo(wt(o))},runRow:(o,s,c)=>{if(c instanceof HTMLElement)c.blur();lt(Pe(),o,wt(s)),ye()},select:Jl,treeReady:(o)=>{Ee=o},typeahead:nd}),host:n};de.handle.ready.then(()=>{Wl(),Xo?.(),hd()})}function gd(){de?.handle.dispose(),de=null,Ee=null,hn?.window.destroy(),hn=null,ot=null,Le=null,Aa=null}function lS(){Xn({id:"layers",title:"Outline",level:"document",dock:"navigator",icon:"stack",requiresDocument:"Open a page to see the elements it is built from.",render:()=>mt,afterRender:(e,t)=>{if(e.deps.getCanvasMode()==="stylebook"){gd(),Uo({selectStylebookTag:Bu,stylebookMeta:Tb},t);return}Fo(),Td({registerDnD:e.deps.registerLayersDnD,rerender:e.rerender},t)}})}
|
|
3
|
+
export{kw,im,yb,sE,ju,iS,Ew,vd,Tw,vb,aE,lE,rm,cE,rS,wb,oS,Lw,dE,uE,hE,xb,Ci,wd,xd,_d,pE,fE,Hu,pp,Sd,sS,aS,mE,AI,lS,gE,cS,bE,yE,fp,$w};
|
|
4
|
+
|
|
5
|
+
//# debugId=F08A0ABA8125421264756E2164756E21
|
|
6
|
+
//# sourceMappingURL=studio-camnhc96.js.map
|