lean4monaco 1.0.45 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -0
- package/dist/JuliaMono-Regular.ttf +0 -0
- package/dist/css/custom.css +7 -1
- package/dist/infowebview.d.ts +4 -5
- package/dist/infowebview.js +5 -5
- package/dist/lean4-infoview/esm-shims/react-dom.d.ts +5 -0
- package/dist/lean4-infoview/esm-shims/react-jsx-runtime.d.ts +5 -0
- package/dist/lean4-infoview/esm-shims/react.d.ts +5 -0
- package/dist/{vscode-lean4/vscode-lean4/dist/lean4-infoview → lean4-infoview}/index.css +8 -213
- package/dist/lean4-infoview/index.d.ts +16 -0
- package/dist/lean4-infoview/index.development.js +37312 -0
- package/dist/lean4-infoview/index.production.min.js +1528 -0
- package/dist/lean4-infoview/infoview/collapsing.d.ts +12 -0
- package/dist/lean4-infoview/infoview/contexts.d.ts +10 -0
- package/dist/lean4-infoview/infoview/errors.d.ts +14 -0
- package/dist/lean4-infoview/infoview/goalLocation.d.ts +61 -0
- package/dist/lean4-infoview/infoview/goals.d.ts +46 -0
- package/dist/lean4-infoview/infoview/info.d.ts +18 -0
- package/dist/lean4-infoview/infoview/infos.d.ts +2 -0
- package/dist/lean4-infoview/infoview/interactiveCode.d.ts +19 -0
- package/dist/lean4-infoview/infoview/main.d.ts +13 -0
- package/dist/lean4-infoview/infoview/messages.d.ts +19 -0
- package/dist/lean4-infoview/infoview/rpcSessions.d.ts +11 -0
- package/dist/lean4-infoview/infoview/tooltips.d.ts +32 -0
- package/dist/lean4-infoview/infoview/traceExplorer.d.ts +11 -0
- package/dist/lean4-infoview/infoview/userWidget.d.ts +39 -0
- package/dist/{vscode-lean4/lean4-infoview/src → lean4-infoview}/infoview/util.d.ts +8 -5
- package/dist/lean4-infoview/loader.d.ts +20 -0
- package/dist/lean4-infoview/loader.development.js +1006 -0
- package/dist/lean4-infoview/loader.production.min.js +1 -0
- package/dist/lean4-infoview/react-dom.development.js +30537 -0
- package/dist/lean4-infoview/react-dom.production.min.js +21 -0
- package/dist/lean4-infoview/react-jsx-runtime.development.js +1362 -0
- package/dist/lean4-infoview/react-jsx-runtime.production.min.js +1 -0
- package/dist/lean4-infoview/react.development.js +2823 -0
- package/dist/lean4-infoview/react.production.min.js +1 -0
- package/dist/leanmonaco.d.ts +4 -4
- package/dist/leanmonaco.js +10 -9
- package/dist/monaco-lean4/vscode-lean4/package.json +944 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.d.ts +9 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.js +20 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationHoverProvider.d.ts +12 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationHoverProvider.js +40 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.d.ts +20 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.js +79 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationConfig.d.ts +13 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationConfig.js +29 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.d.ts +28 -0
- package/dist/monaco-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.js +124 -0
- package/dist/monaco-lean4/vscode-lean4/src/config.d.ts +33 -0
- package/dist/monaco-lean4/vscode-lean4/src/config.js +119 -0
- package/dist/monaco-lean4/vscode-lean4/src/diagnostics/setupNotifs.d.ts +27 -0
- package/dist/monaco-lean4/vscode-lean4/src/diagnostics/setupNotifs.js +133 -0
- package/dist/monaco-lean4/vscode-lean4/src/infoview.d.ts +69 -0
- package/dist/monaco-lean4/vscode-lean4/src/infoview.js +711 -0
- package/dist/monaco-lean4/vscode-lean4/src/leanclient.d.ts +67 -0
- package/dist/monaco-lean4/vscode-lean4/src/leanclient.js +443 -0
- package/dist/monaco-lean4/vscode-lean4/src/rpc.d.ts +16 -0
- package/dist/monaco-lean4/vscode-lean4/src/rpc.js +102 -0
- package/dist/monaco-lean4/vscode-lean4/src/taskgutter.d.ts +11 -0
- package/dist/monaco-lean4/vscode-lean4/src/taskgutter.js +130 -0
- package/dist/{vscode-lean4/vscode-lean4/src/utils/batchBasics.d.ts → monaco-lean4/vscode-lean4/src/utils/batch.d.ts} +8 -11
- package/dist/monaco-lean4/vscode-lean4/src/utils/batch.js +203 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/clientProvider.d.ts +41 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/clientProvider.js +205 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/converters.d.ts +16 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/converters.js +129 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/elan.d.ts +3 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/elan.js +4 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/envPath.d.ts +21 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/envPath.js +53 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/exturi.d.ts +35 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/exturi.js +136 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/fsHelper.d.ts +17 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/fsHelper.js +36 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/leanInstaller.d.ts +37 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/leanInstaller.js +210 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/logger.d.ts +7 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/logger.js +20 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/notifs.d.ts +24 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/notifs.js +110 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/projectInfo.d.ts +9 -0
- package/dist/monaco-lean4/vscode-lean4/src/utils/projectInfo.js +125 -0
- package/dist/monacoleanclient.d.ts +1 -2
- package/dist/monacoleanclient.js +3 -3
- package/dist/preconditions.d.ts +2 -2
- package/dist/vscode-lean4/lean4-infoview/package.json +25 -23
- package/dist/vscode-lean4/lean4-infoview/tsconfig.json +6 -2
- package/dist/vscode-lean4/lean4-infoview-api/package.json +1 -1
- package/dist/vscode-lean4/lean4-unicode-input/package.json +1 -1
- package/dist/vscode-lean4/lean4-unicode-input/src/abbreviations.json +12 -12
- package/dist/vscode-lean4/lean4-unicode-input-component/package.json +2 -2
- package/dist/vscode-lean4/package-lock.json +6129 -3245
- package/dist/vscode-lean4/vscode-lean4/language-configuration.json +1 -1
- package/dist/vscode-lean4/vscode-lean4/loogleview/static/index.css +19 -16
- package/dist/vscode-lean4/vscode-lean4/package.json +638 -18
- package/dist/vscode-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.d.ts +2 -2
- package/dist/vscode-lean4/vscode-lean4/src/abbreviation/AbbreviationFeature.js +2 -2
- package/dist/vscode-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.d.ts +2 -3
- package/dist/vscode-lean4/vscode-lean4/src/abbreviation/AbbreviationRewriterFeature.js +3 -5
- package/dist/vscode-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.d.ts +1 -2
- package/dist/vscode-lean4/vscode-lean4/src/abbreviation/VSCodeAbbreviationRewriter.js +4 -8
- package/dist/vscode-lean4/vscode-lean4/src/config.d.ts +14 -1
- package/dist/vscode-lean4/vscode-lean4/src/config.js +56 -5
- package/dist/vscode-lean4/vscode-lean4/src/diagnostics/setupDiagnoser.d.ts +36 -5
- package/dist/vscode-lean4/vscode-lean4/src/diagnostics/setupDiagnoser.js +59 -23
- package/dist/vscode-lean4/vscode-lean4/src/diagnostics/setupDiagnostics.d.ts +22 -17
- package/dist/vscode-lean4/vscode-lean4/src/diagnostics/setupDiagnostics.js +182 -119
- package/dist/vscode-lean4/vscode-lean4/src/diagnostics/setupNotifs.d.ts +33 -20
- package/dist/vscode-lean4/vscode-lean4/src/diagnostics/setupNotifs.js +235 -89
- package/dist/vscode-lean4/vscode-lean4/src/infoview.d.ts +15 -17
- package/dist/vscode-lean4/vscode-lean4/src/infoview.js +218 -103
- package/dist/vscode-lean4/vscode-lean4/src/leanclient.d.ts +12 -7
- package/dist/vscode-lean4/vscode-lean4/src/leanclient.js +187 -64
- package/dist/vscode-lean4/vscode-lean4/src/taskgutter.d.ts +35 -3
- package/dist/vscode-lean4/vscode-lean4/src/taskgutter.js +533 -93
- package/dist/vscode-lean4/vscode-lean4/src/utils/batch.d.ts +12 -4
- package/dist/vscode-lean4/vscode-lean4/src/utils/batch.js +78 -72
- package/dist/vscode-lean4/vscode-lean4/src/utils/clientProvider.d.ts +9 -9
- package/dist/vscode-lean4/vscode-lean4/src/utils/clientProvider.js +121 -77
- package/dist/vscode-lean4/vscode-lean4/src/utils/converters.d.ts +15 -0
- package/dist/vscode-lean4/vscode-lean4/src/utils/converters.js +9 -0
- package/dist/vscode-lean4/vscode-lean4/src/utils/elan.d.ts +179 -1
- package/dist/vscode-lean4/vscode-lean4/src/utils/elan.js +422 -3
- package/dist/vscode-lean4/vscode-lean4/src/utils/exturi.d.ts +3 -1
- package/dist/vscode-lean4/vscode-lean4/src/utils/exturi.js +11 -11
- package/dist/vscode-lean4/vscode-lean4/src/utils/internalErrors.d.ts +2 -0
- package/dist/vscode-lean4/vscode-lean4/src/utils/internalErrors.js +35 -0
- package/dist/vscode-lean4/vscode-lean4/src/utils/leanCmdRunner.js +1 -1
- package/dist/vscode-lean4/vscode-lean4/src/utils/leanInstaller.d.ts +41 -12
- package/dist/vscode-lean4/vscode-lean4/src/utils/leanInstaller.js +245 -128
- package/dist/vscode-lean4/vscode-lean4/src/utils/notifs.d.ts +27 -22
- package/dist/vscode-lean4/vscode-lean4/src/utils/notifs.js +177 -82
- package/dist/vscode-lean4/vscode-lean4/src/utils/projectInfo.d.ts +11 -4
- package/dist/vscode-lean4/vscode-lean4/src/utils/projectInfo.js +18 -16
- package/dist/vscode-lean4/vscode-lean4/src/utils/semverRegex.d.ts +1 -0
- package/dist/vscode-lean4/vscode-lean4/src/utils/semverRegex.js +2 -0
- package/dist/vscode-lean4/vscode-lean4/tsconfig.json +2 -1
- package/dist/vscode-lean4/vscode-lean4/webview/tsconfig.json +3 -1
- package/dist/vscode.css +7 -0
- package/package.json +7 -3
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/vscode-lean4/lean4-infoview/dist/index.css +0 -4366
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/_iconCloud/keywords.transforms.json +0 -83
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/_iconCloud/keywords.variables.json +0 -47
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/_iconCloud/manifest.json +0 -36
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/_iconCloud/manifest.transforms.json +0 -368
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/_iconCloud/manifest.variables.json +0 -149
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/dist/codicon.css +0 -571
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/dist/codicon.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/dist/codicon.ttf +0 -0
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/package.json +0 -34
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/account.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/activate-breakpoints.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/add.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/archive.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-both.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-circle-down.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-circle-left.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-circle-right.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-circle-up.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-down.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-left.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-right.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-small-down.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-small-left.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-small-right.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-small-up.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-swap.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/arrow-up.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/azure-devops.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/azure.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/beaker-stop.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/beaker.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/bell-dot.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/bell-slash-dot.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/bell-slash.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/bell.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/blank.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/bold.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/book.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/bookmark.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/bracket-dot.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/bracket-error.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/briefcase.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/broadcast.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/browser.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/bug.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/calendar.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/call-incoming.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/call-outgoing.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/case-sensitive.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/check-all.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/check.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/checklist.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/chevron-down.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/chevron-left.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/chevron-right.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/chevron-up.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/chrome-close.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/chrome-maximize.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/chrome-minimize.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/chrome-restore.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/circle-filled.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/circle-large-filled.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/circle-large-outline.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/circle-outline.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/circle-slash.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/circle-small-filled.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/circle-small.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/circuit-board.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/clear-all.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/clippy.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/close-all.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/close.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/cloud-download.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/cloud-upload.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/cloud.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/code.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/collapse-all.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/color-mode.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/combine.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/comment-discussion.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/comment-unresolved.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/comment.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/compass-active.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/compass-dot.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/compass.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/copy.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/credit-card.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/dash.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/dashboard.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/database.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-all.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-alt-small.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-alt.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-breakpoint-conditional-unverified.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-breakpoint-conditional.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-breakpoint-data-unverified.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-breakpoint-data.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-breakpoint-function-unverified.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-breakpoint-function.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-breakpoint-log-unverified.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-breakpoint-log.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-breakpoint-unsupported.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-console.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-continue-small.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-continue.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-coverage.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-disconnect.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-line-by-line.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-pause.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-rerun.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-restart-frame.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-restart.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-reverse-continue.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-stackframe-active.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-stackframe.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-start.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-step-back.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-step-into.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-step-out.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-step-over.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug-stop.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/debug.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/desktop-download.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/device-camera-video.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/device-camera.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/device-mobile.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/diff-added.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/diff-ignored.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/diff-modified.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/diff-removed.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/diff-renamed.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/diff.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/discard.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/edit.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/editor-layout.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/ellipsis.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/empty-window.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/error-small.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/error.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/exclude.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/expand-all.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/export.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/extensions.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/eye-closed.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/eye.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/feedback.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/file-binary.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/file-code.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/file-media.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/file-pdf.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/file-submodule.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/file-symlink-directory.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/file-symlink-file.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/file-zip.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/file.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/files.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/filter-filled.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/filter.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/flame.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/fold-down.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/fold-up.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/fold.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/folder-active.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/folder-library.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/folder-opened.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/folder.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/gear.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/gift.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/gist-secret.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/gist.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/git-commit.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/git-compare.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/git-merge.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/git-pull-request-closed.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/git-pull-request-create.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/git-pull-request-draft.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/git-pull-request-go-to-changes.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/git-pull-request-new-changes.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/git-pull-request.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/github-action.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/github-alt.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/github-inverted.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/github.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/globe.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/go-to-file.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/grabber.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/graph-left.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/graph-line.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/graph-scatter.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/graph.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/gripper.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/group-by-ref-type.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/heart-filled.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/heart.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/history.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/home.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/horizontal-rule.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/hubot.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/inbox.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/indent.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/info.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/inspect.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/issue-draft.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/issue-reopened.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/issues.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/italic.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/jersey.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/json.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/kebab-vertical.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/key.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/law.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layers-active.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layers-dot.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layers.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-activitybar-left.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-activitybar-right.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-centered.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-menubar.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-panel-center.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-panel-justify.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-panel-left.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-panel-off.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-panel-right.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-panel.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-sidebar-left-off.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-sidebar-left.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-sidebar-right-off.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-sidebar-right.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout-statusbar.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/layout.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/library.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/lightbulb-autofix.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/lightbulb.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/link-external.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/link.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/list-filter.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/list-flat.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/list-ordered.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/list-selection.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/list-tree.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/list-unordered.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/live-share.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/loading.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/location.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/lock-small.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/lock.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/magnet.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/mail-read.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/mail.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/map-filled.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/map.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/markdown.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/megaphone.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/mention.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/menu.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/merge.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/milestone.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/mirror.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/mortar-board.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/move.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/multiple-windows.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/mute.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/new-file.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/new-folder.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/newline.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/no-newline.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/note.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/notebook-template.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/notebook.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/octoface.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/open-preview.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/organization.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/output.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/package.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/paintcan.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/pass-filled.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/pass.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/person-add.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/person.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/pie-chart.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/pin.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/pinned-dirty.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/pinned.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/play-circle.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/play.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/plug.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/preserve-case.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/preview.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/primitive-square.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/project.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/pulse.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/question.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/quote.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/radio-tower.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/reactions.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/record-keys.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/record-small.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/record.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/redo.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/references.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/refresh.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/regex.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/remote-explorer.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/remote.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/remove.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/replace-all.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/replace.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/reply.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/repo-clone.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/repo-force-push.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/repo-forked.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/repo-pull.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/repo-push.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/repo.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/report.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/request-changes.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/rocket.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/root-folder-opened.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/root-folder.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/rss.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/ruby.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/run-above.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/run-all.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/run-below.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/run-errors.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/save-all.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/save-as.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/save.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/screen-full.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/screen-normal.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/search-stop.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/search.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/server-environment.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/server-process.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/server.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/settings-gear.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/settings.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/shield.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/sign-in.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/sign-out.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/smiley.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/sort-precedence.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/source-control.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/split-horizontal.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/split-vertical.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/squirrel.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/star-empty.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/star-full.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/star-half.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/stop-circle.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-array.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-boolean.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-class.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-color.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-constant.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-enum-member.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-enum.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-event.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-field.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-file.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-interface.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-key.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-keyword.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-method.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-misc.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-namespace.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-numeric.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-operator.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-parameter.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-property.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-ruler.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-snippet.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-string.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-structure.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/symbol-variable.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/sync-ignored.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/sync.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/table.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/tag.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/target.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/tasklist.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/telescope.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/terminal-bash.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/terminal-cmd.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/terminal-debian.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/terminal-linux.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/terminal-powershell.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/terminal-tmux.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/terminal-ubuntu.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/terminal.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/text-size.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/three-bars.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/thumbsdown.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/thumbsup.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/tools.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/trash.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/triangle-down.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/triangle-left.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/triangle-right.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/triangle-up.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/twitter.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/type-hierarchy-sub.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/type-hierarchy-super.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/type-hierarchy.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/unfold.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/ungroup-by-ref-type.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/unlock.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/unmute.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/unverified.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/variable-group.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/verified-filled.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/verified.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/versions.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/vm-active.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/vm-connect.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/vm-outline.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/vm-running.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/vm.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/wand.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/warning.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/watch.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/whitespace.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/whole-word.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/window.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/word-wrap.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/workspace-trusted.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/workspace-unknown.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/workspace-untrusted.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/zoom-in.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/icons/zoom-out.svg +0 -1
- package/dist/vscode-lean4/lean4-infoview/node_modules/@vscode/codicons/src/template/mapping.json +0 -514
- package/dist/vscode-lean4/lean4-infoview/src/infoview/contexts.d.ts +0 -46
- package/dist/vscode-lean4/lean4-infoview/src/infoview/contexts.js +0 -44
- package/dist/vscode-lean4/lean4-infoview/src/infoview/editorConnection.js +0 -41
- package/dist/vscode-lean4/lean4-infoview/src/infoview/event.js +0 -57
- package/dist/vscode-lean4/lean4-infoview/src/infoview/serverVersion.js +0 -25
- package/dist/vscode-lean4/lean4-infoview/src/infoview/util.js +0 -336
- package/dist/vscode-lean4/lean4-unicode-input/dist/abbreviations.json +0 -1829
- package/dist/vscode-lean4/vscode-lean4/dist/lean4-infoview/codicon.ttf +0 -0
- package/dist/vscode-lean4/vscode-lean4/dist/loogleview/static/codicons/codicon.css +0 -571
- package/dist/vscode-lean4/vscode-lean4/dist/loogleview/static/codicons/codicon.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/dist/loogleview/static/codicons/codicon.ttf +0 -0
- package/dist/vscode-lean4/vscode-lean4/dist/loogleview/static/index.css +0 -97
- package/dist/vscode-lean4/vscode-lean4/dist/moogleview/static/codicons/codicon.css +0 -571
- package/dist/vscode-lean4/vscode-lean4/dist/moogleview/static/codicons/codicon.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/dist/moogleview/static/codicons/codicon.ttf +0 -0
- package/dist/vscode-lean4/vscode-lean4/dist/moogleview/static/index.css +0 -198
- package/dist/vscode-lean4/vscode-lean4/node_modules/@types/node/package.json +0 -220
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/_iconCloud/keywords.transforms.json +0 -83
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/_iconCloud/keywords.variables.json +0 -47
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/_iconCloud/manifest.json +0 -36
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/_iconCloud/manifest.transforms.json +0 -368
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/_iconCloud/manifest.variables.json +0 -149
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/dist/codicon.css +0 -629
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/dist/codicon.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/dist/codicon.ttf +0 -0
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/package.json +0 -35
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/account.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/activate-breakpoints.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/add.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/archive.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-both.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-circle-down.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-circle-left.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-circle-right.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-circle-up.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-down.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-left.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-right.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-small-down.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-small-left.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-small-right.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-small-up.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-swap.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/arrow-up.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/azure-devops.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/azure.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/beaker-stop.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/beaker.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/bell-dot.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/bell-slash-dot.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/bell-slash.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/bell.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/blank.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/bold.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/book.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/bookmark.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/bracket-dot.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/bracket-error.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/briefcase.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/broadcast.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/browser.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/bug.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/calendar.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/call-incoming.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/call-outgoing.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/case-sensitive.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/check-all.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/check.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/checklist.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/chevron-down.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/chevron-left.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/chevron-right.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/chevron-up.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/chip.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/chrome-close.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/chrome-maximize.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/chrome-minimize.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/chrome-restore.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/circle-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/circle-large-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/circle-large.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/circle-slash.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/circle-small-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/circle-small.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/circle.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/circuit-board.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/clear-all.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/clippy.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/close-all.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/close.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/cloud-download.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/cloud-upload.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/cloud.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/code-oss.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/code.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/coffee.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/collapse-all.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/color-mode.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/combine.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/comment-discussion.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/comment-draft.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/comment-unresolved.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/comment.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/compass-active.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/compass-dot.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/compass.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/copilot.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/copy.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/coverage.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/credit-card.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/dash.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/dashboard.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/database.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-all.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-alt-small.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-alt.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-breakpoint-conditional-unverified.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-breakpoint-conditional.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-breakpoint-data-unverified.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-breakpoint-data.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-breakpoint-function-unverified.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-breakpoint-function.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-breakpoint-log-unverified.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-breakpoint-log.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-breakpoint-unsupported.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-console.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-continue-small.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-continue.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-coverage.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-disconnect.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-line-by-line.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-pause.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-rerun.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-restart-frame.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-restart.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-reverse-continue.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-stackframe-active.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-stackframe.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-start.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-step-back.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-step-into.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-step-out.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-step-over.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug-stop.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/debug.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/desktop-download.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/device-camera-video.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/device-camera.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/device-mobile.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/diff-added.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/diff-ignored.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/diff-modified.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/diff-multiple.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/diff-removed.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/diff-renamed.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/diff-single.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/diff.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/discard.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/edit.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/editor-layout.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/ellipsis.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/empty-window.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/error-small.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/error.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/exclude.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/expand-all.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/export.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/extensions.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/eye-closed.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/eye.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/feedback.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/file-binary.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/file-code.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/file-media.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/file-pdf.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/file-submodule.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/file-symlink-directory.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/file-symlink-file.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/file-zip.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/file.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/files.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/filter-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/filter.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/flame.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/fold-down.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/fold-up.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/fold.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/folder-active.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/folder-library.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/folder-opened.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/folder.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/game.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/gear.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/gift.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/gist-secret.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/gist.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-commit.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-compare.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-fetch.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-merge.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-pull-request-closed.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-pull-request-create.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-pull-request-draft.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-pull-request-go-to-changes.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-pull-request-new-changes.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-pull-request.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-stash-apply.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-stash-pop.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/git-stash.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/github-action.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/github-alt.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/github-inverted.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/github-project.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/github.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/globe.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/go-to-file.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/go-to-search.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/grabber.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/graph-left.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/graph-line.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/graph-scatter.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/graph.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/gripper.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/group-by-ref-type.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/heart-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/heart.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/history.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/home.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/horizontal-rule.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/hubot.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/inbox.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/indent.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/info.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/insert.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/inspect.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/issue-draft.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/issue-reopened.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/issues.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/italic.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/jersey.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/json.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/kebab-vertical.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/key.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/law.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layers-active.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layers-dot.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layers.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-activitybar-left.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-activitybar-right.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-centered.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-menubar.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-panel-center.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-panel-justify.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-panel-left.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-panel-off.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-panel-right.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-panel.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-sidebar-left-off.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-sidebar-left.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-sidebar-right-off.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-sidebar-right.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout-statusbar.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/layout.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/library.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/lightbulb-autofix.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/lightbulb-sparkle.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/lightbulb.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/link-external.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/link.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/list-filter.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/list-flat.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/list-ordered.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/list-selection.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/list-tree.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/list-unordered.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/live-share.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/loading.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/location.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/lock-small.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/lock.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/magnet.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/mail-read.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/mail.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/map-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/map-vertical-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/map-vertical.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/map.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/markdown.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/megaphone.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/mention.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/menu.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/merge.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/mic-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/mic.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/milestone.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/mirror.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/mortar-board.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/move.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/multiple-windows.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/music.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/mute.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/new-file.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/new-folder.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/newline.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/no-newline.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/note.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/notebook-template.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/notebook.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/octoface.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/open-preview.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/organization.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/output.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/package.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/paintcan.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/pass-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/pass.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/percentage.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/person-add.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/person.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/piano.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/pie-chart.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/pin.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/pinned-dirty.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/pinned.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/play-circle.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/play.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/plug.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/preserve-case.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/preview.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/primitive-square.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/project.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/pulse.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/question.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/quote.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/radio-tower.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/reactions.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/record-keys.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/record-small.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/record.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/redo.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/references.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/refresh.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/regex.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/remote-explorer.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/remote.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/remove.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/replace-all.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/replace.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/reply.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/repo-clone.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/repo-fetch.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/repo-force-push.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/repo-forked.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/repo-pull.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/repo-push.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/repo.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/report.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/request-changes.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/robot.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/rocket.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/root-folder-opened.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/root-folder.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/rss.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/ruby.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/run-above.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/run-all-coverage.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/run-all.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/run-below.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/run-coverage.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/run-errors.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/save-all.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/save-as.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/save.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/screen-full.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/screen-normal.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/search-fuzzy.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/search-stop.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/search.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/send.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/server-environment.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/server-process.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/server.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/settings-gear.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/settings.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/share.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/shield.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/sign-in.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/sign-out.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/smiley.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/snake.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/sort-precedence.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/source-control.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/sparkle-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/sparkle.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/split-horizontal.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/split-vertical.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/squirrel.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/star-empty.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/star-full.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/star-half.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/stop-circle.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/surround-with.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-array.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-boolean.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-class.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-color.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-constant.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-enum-member.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-enum.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-event.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-field.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-file.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-interface.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-key.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-keyword.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-method.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-misc.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-namespace.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-numeric.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-operator.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-parameter.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-property.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-ruler.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-snippet.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-string.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-structure.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/symbol-variable.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/sync-ignored.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/sync.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/table.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/tag.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/target.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/tasklist.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/telescope.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/terminal-bash.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/terminal-cmd.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/terminal-debian.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/terminal-linux.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/terminal-powershell.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/terminal-tmux.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/terminal-ubuntu.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/terminal.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/text-size.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/three-bars.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/thumbsdown-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/thumbsdown.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/thumbsup-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/thumbsup.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/tools.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/trash.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/triangle-down.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/triangle-left.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/triangle-right.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/triangle-up.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/twitter.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/type-hierarchy-sub.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/type-hierarchy-super.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/type-hierarchy.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/unfold.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/ungroup-by-ref-type.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/unlock.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/unmute.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/unverified.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/variable-group.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/verified-filled.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/verified.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/versions.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/vm-active.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/vm-connect.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/vm-outline.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/vm-running.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/vm.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/vr.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/vscode-insiders.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/vscode.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/wand.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/warning.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/watch.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/whitespace.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/whole-word.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/window.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/word-wrap.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/workspace-trusted.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/workspace-unknown.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/workspace-untrusted.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/zoom-in.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/icons/zoom-out.svg +0 -1
- package/dist/vscode-lean4/vscode-lean4/node_modules/@vscode/codicons/src/template/mapping.json +0 -571
- package/dist/vscode-lean4/vscode-lean4/node_modules/brace-expansion/package.json +0 -46
- package/dist/vscode-lean4/vscode-lean4/node_modules/glob/dist/commonjs/package.json +0 -3
- package/dist/vscode-lean4/vscode-lean4/node_modules/glob/dist/esm/package.json +0 -3
- package/dist/vscode-lean4/vscode-lean4/node_modules/glob/package.json +0 -99
- package/dist/vscode-lean4/vscode-lean4/node_modules/jackspeak/dist/commonjs/package.json +0 -3
- package/dist/vscode-lean4/vscode-lean4/node_modules/jackspeak/dist/esm/package.json +0 -3
- package/dist/vscode-lean4/vscode-lean4/node_modules/jackspeak/package.json +0 -94
- package/dist/vscode-lean4/vscode-lean4/node_modules/lru-cache/dist/commonjs/package.json +0 -3
- package/dist/vscode-lean4/vscode-lean4/node_modules/lru-cache/dist/esm/package.json +0 -3
- package/dist/vscode-lean4/vscode-lean4/node_modules/lru-cache/package.json +0 -115
- package/dist/vscode-lean4/vscode-lean4/node_modules/minimatch/dist/commonjs/package.json +0 -3
- package/dist/vscode-lean4/vscode-lean4/node_modules/minimatch/dist/esm/package.json +0 -3
- package/dist/vscode-lean4/vscode-lean4/node_modules/minimatch/package.json +0 -82
- package/dist/vscode-lean4/vscode-lean4/node_modules/path-scurry/dist/commonjs/package.json +0 -3
- package/dist/vscode-lean4/vscode-lean4/node_modules/path-scurry/dist/esm/package.json +0 -3
- package/dist/vscode-lean4/vscode-lean4/node_modules/path-scurry/package.json +0 -88
- package/dist/vscode-lean4/vscode-lean4/node_modules/undici-types/package.json +0 -55
- package/dist/vscode-lean4/vscode-lean4/node_modules/vscode-jsonrpc/package.json +0 -45
- package/dist/vscode-lean4/vscode-lean4/node_modules/vscode-languageclient/node_modules/minimatch/package.json +0 -35
- package/dist/vscode-lean4/vscode-lean4/node_modules/vscode-languageclient/package.json +0 -50
- package/dist/vscode-lean4/vscode-lean4/node_modules/vscode-languageserver-protocol/metaModel.schema.json +0 -783
- package/dist/vscode-lean4/vscode-lean4/node_modules/vscode-languageserver-protocol/package.json +0 -45
- package/dist/vscode-lean4/vscode-lean4/node_modules/vscode-languageserver-types/package.json +0 -32
- package/dist/vscode-lean4/vscode-lean4/src/leanclientsetup.d.ts +0 -3
- package/dist/vscode-lean4/vscode-lean4/src/leanclientsetup.js +0 -58
- package/dist/vscode-lean4/vscode-lean4/src/utils/batchBasics.js +0 -48
- package/dist/vscode-lean4/vscode-lean4/src/utils/batchTypes.d.ts +0 -14
- package/dist/vscode-lean4/vscode-lean4/src/utils/batchTypes.js +0 -22
- /package/dist/{vscode-lean4/lean4-infoview/dist → lean4-infoview}/codicon.ttf +0 -0
- /package/dist/{vscode-lean4/lean4-infoview/src → lean4-infoview}/infoview/editorConnection.d.ts +0 -0
- /package/dist/{vscode-lean4/lean4-infoview/src → lean4-infoview}/infoview/event.d.ts +0 -0
- /package/dist/{vscode-lean4/lean4-infoview/src → lean4-infoview}/infoview/serverVersion.d.ts +0 -0
|
@@ -0,0 +1,1528 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import*as n from"react";import o,{useLayoutEffect as s,useEffect as r}from"react";import*as a from"react-dom";import l from"react-dom";const c={allErrorsOnLine:!0,autoOpenShowsGoal:!0,debounceTime:50,showExpectedType:!0,showGoalNames:!0,emphasizeFirstGoal:!1,reverseTacticState:!1,showTooltipOnHover:!0};var d,h,u;function p(e){return!(!e?.code||!e?.message)}function f(e,t){return e.call("Lean.Widget.getInteractiveGoals",t)}function g(e,t){return e.call("Lean.Widget.getInteractiveTermGoal",t)}function m(e,t){return e.call("Lean.Widget.getInteractiveDiagnostics",{lineRange:t})}function v(e,t,i){return e.call("Lean.Widget.InteractiveDiagnostics.msgToInteractive",{msg:t,indent:i})}function b(e,t){return e.call("Lean.Widget.lazyTraceChildrenToInteractive",t)}function y(e,t){return e.call("Lean.Widget.InteractiveDiagnostics.infoToInteractive",t)}function x(e,t,i){return e.call("Lean.Widget.getGoToLocation",{kind:t,info:i})}function w(e,t){return e.call("Lean.Widget.getWidgets",t)}function k(e,t,i){return e.call("Lean.Widget.getWidgetSource",{pos:t,hash:i})}!function(e){e[e.Processing=1]="Processing",e[e.FatalError=2]="FatalError"}(d||(d={})),function(e){e.copy=function(e){return{p:e.p}},e.toKey=function(e){return e.p}}(h||(h={})),function(e){e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.ServerNotInitialized=-32002]="ServerNotInitialized",e[e.UnknownErrorCode=-32001]="UnknownErrorCode",e[e.ContentModified=-32801]="ContentModified",e[e.RequestCancelled=-32800]="RequestCancelled",e[e.RpcNeedsReconnect=-32900]="RpcNeedsReconnect",e[e.WorkerExited=-32901]="WorkerExited",e[e.WorkerCrashed=-32902]="WorkerCrashed"}(u||(u={}));class C{constructor(e,t){let i;this.uri=e,this.sessions=t,this.refsToRelease=[],this.sessionsAtPos=new Map,this.sessionId=(async()=>{try{return await t.iface.createRpcSession(e)}catch(e){throw this.failWithoutClosing(e),e}})(),this.sessionId.catch((()=>{})),this.finalizers=new FinalizationRegistry((e=>{if(this.failed)return;this.refsToRelease.push(e);this.refsToRelease.length>100?(this.releaseNow(),clearTimeout(i),i=void 0):void 0===i&&(i=window.setTimeout((()=>{this.releaseNow(),i=void 0}),100))}))}async releaseNow(){const e=await this.sessionId;this.failed||0===this.refsToRelease.length||(this.sessions.iface.release({uri:this.uri,sessionId:e,refs:this.refsToRelease}),this.refsToRelease=[])}registerRefs(e){if(e instanceof Object)if(1===Object.keys(e).length&&"p"in e&&"object"!=typeof e.p)this.finalizers.register(e,h.copy(e));else for(const t of Object.values(e))this.registerRefs(t);else if(e instanceof Array)for(const t of e)this.registerRefs(t)}failWithoutClosing(e){this.failed=e,this.sessions.sessions.get(this.uri)===this&&this.sessions.sessions.delete(this.uri)}fail(e){this.failWithoutClosing(e),this.sessionId.then((e=>this.sessions.iface.closeRpcSession(e)))}async call(e,t,i){const n=await this.sessionId;if(this.failed)throw this.failed;try{const o=await this.sessions.iface.call({method:t,params:i,sessionId:n,...e});if(this.registerRefs(o),null===o)return;return o}catch(e){throw e?.code!==u.WorkerCrashed&&e?.code!==u.WorkerExited&&e?.code!==u.RpcNeedsReconnect||this.fail(e),e}}at(e){const t=`${e.position.line}:${e.position.character}`;if(this.sessionsAtPos.has(t))return this.sessionsAtPos.get(t);const i={call:(t,i)=>this.call(e,t,i)};return this.sessionsAtPos.set(t,i),i}}class T{constructor(e){this.iface=e,this.sessions=new Map}connectCore(e){if(this.sessions.has(e))return this.sessions.get(e);const t=new C(e,this);return this.sessions.set(e,t),t}connect(e){return this.connectCore(e.textDocument.uri).at(e)}closeSessionForFile(e){this.sessions.get(e)?.fail("file closed")}closeAllSessions(){for(const e of[...this.sessions.keys()])this.closeSessionForFile(e)}dispose(){this.closeAllSessions()}}function R(e){const t=e=>"append"in e?e.append.reduce(((e,i)=>e+t(i)),""):"tag"in e?t(e.tag[1]):"text"in e?e.text:"";return t(e)}function S(e){return e.names.filter((e=>!e.includes("[anonymous]")))}const D=n.createContext(null),E=n.createContext(void 0),I=n.createContext(c),$=n.createContext(new Map),O=n.createContext(new Map);var P,A,M;function L(e){const t=e.split(/[\\/]/).pop();return t||""}function N(e,t,i,o){n.useEffect((()=>{const i=e.on(t,o);return()=>i.dispose()}),i)}function _(e,t){const i=t??(e=>e),[o,s]=n.useState(e.current?i(e.current):void 0);return N(e,(e=>s(e?i(e):void 0))),o}function F(e,t,i){const o=n.useContext(D);n.useEffect((()=>{o.api.subscribeServerNotifications(e).catch((t=>{console.error(`Failed subscribing to server notification '${e}': ${t}`)}));const i=o.events.gotServerNotification.on((([i,n])=>{i===e&&t(n)}));return()=>{i.dispose(),o.api.unsubscribeServerNotifications(e)}}),i)}function q(e,t,i,o){const[s,r]=n.useState(t);return F(e,(e=>{i(e).then((e=>r(e)))}),o),[s,r]}function z(e,t,i){const o=n.useContext(D);n.useEffect((()=>{o.api.subscribeClientNotifications(e).catch((t=>{console.error(`Failed subscribing to client notification '${e}': ${t}`)}));const i=o.events.sentClientNotification.on((([i,n])=>{i===e&&t(n)}));return()=>{i.dispose(),o.api.unsubscribeClientNotifications(e)}}),i)}function j(e,t,i,o){const[s,r]=n.useState(t);return z(e,(e=>{r((t=>i(t,e)))}),o),[s,r]}function V(e,t){const[i,o]=n.useState(e),s=n.useRef(t);return i||(s.current=t),[{isPaused:i,setPaused:o},s.current,s]}function H(e){return n.forwardRef(((t,i)=>{const[o,s]=n.useState(null);return e(t,o,(e=>{s(e),i&&("function"==typeof i?i(e):i.current=e)}))}))}!function(e){e.isEqual=function(e,t){return e.uri===t.uri&&e.line===t.line&&e.character===t.character},e.toTdpp=function(e){return{textDocument:{uri:e.uri},position:{line:e.line,character:e.character}}},e.toString=function(e){return`${e.uri}:${e.line+1}:${e.character}`}}(P||(P={})),function(e){e.isLessThanOrEqual=function(e,t){return e.line<t.line||e.line===t.line&&e.character<=t.character}}(A||(A={})),function(e){e.contains=function(e,t,i){if(!i){if(t.line===e.start.line&&t.character<e.start.character)return!1;if(t.line===e.end.line&&t.character>e.end.character)return!1}return e.start.line<=t.line&&t.line<=e.end.line}}(M||(M={}));const B=n.createContext({registerDescendant:()=>()=>{}});function U(e){const t=n.useContext(B),i=n.useRef(new Set),o=n.useMemo((()=>({contains:e=>{for(const t of i.current)if(t.contains(e))return!0;return!1}})),[]);n.useEffect((()=>t.registerDescendant(o)),[t,o]);const s=n.useMemo((()=>({contains:t=>!!e.current&&(!!e.current.contains(t)||o.contains(t))})),[e,o]),r=n.useCallback((e=>(i.current.add(e),()=>{i.current.delete(e)})),[]);return[s,n.useMemo((()=>({registerDescendant:r})),[r])]}function W(e,t){n.useEffect((()=>{const i=i=>{i.target instanceof Node&&!e.contains(i.target)&&(i.target instanceof Element&&"HTML"===i.target.tagName||t(i))};return document.addEventListener("pointerdown",i),()=>document.removeEventListener("pointerdown",i)}),[e,t])}function K(e){return p(e)?new Error(`Rpc error: ${u[e.code]}: ${e.message}`):e instanceof Error?e:new Error(`Unrecognised error ${JSON.stringify(e)}`)}function G(e){if(!p(e)||e.code!==u.MethodNotFound)throw K(e)}function X(e,t=[]){const i=n.useRef({state:"notStarted"}),o=n.useRef([]),s=n.useRef(0),[r,a]=n.useState(0),l=n.useCallback((async()=>{if("loading"===i.current.state||"resolved"===i.current.state)return;s.current+=1,i.current={state:"loading"},a(s.current),s.current+=1;const t=s.current,n=e=>{s.current===t&&(i.current=e,a(s.current))};return e().then((e=>n({state:"resolved",value:e})),(e=>n({state:"rejected",error:e})))}),t);return o.current.length===t.length&&o.current.every(((e,i)=>Object.is(e,t[i])))||(s.current+=1,i.current={state:"notStarted"},o.current=t,a(s.current)),[i.current,l]}function Q(e,t=[]){const[i,n]=X(e,t);return"notStarted"===i.state?(n(),{state:"loading"}):i}function Y(e,t=[]){const[i,o]=n.useState(void 0),s=Q((async()=>{const t=await e();return o(t),t}),t);return"loading"===s.state&&void 0!==i?{state:"resolved",value:i}:s}const Z=n.createContext(void 0);function J({children:t}){const i=n.useContext(D),[o]=n.useState((()=>new T({createRpcSession:e=>i.api.createRpcSession(e),closeRpcSession:e=>i.api.closeRpcSession(e),call:e=>i.api.sendClientRequest(e.textDocument.uri,"$/lean/rpc/call",e),release:e=>{i.api.sendClientNotification(e.uri,"$/lean/rpc/release",e)}})));return n.useEffect((()=>()=>o.dispose()),[o]),z("textDocument/didClose",(e=>{o.closeSessionForFile(e.textDocument.uri)}),[o]),N(i.events.serverRestarted,(()=>o.closeAllSessions())),e(Z.Provider,{value:o,children:t})}const ee={call:async()=>{throw new Error("no rpc context set")}};function te(e){return function(e){return n.useContext(Z)?.connect(e)||ee}(P.toTdpp(e))}const ie=n.createContext(ee);function ne({initiallyOpen:e,children:[i,...o],setOpenRef:s}){const[r,a]=n.useState(void 0!==e&&e),l=n.useCallback((e=>{null!=e&&e.addEventListener("toggle",(()=>a(e.open)))}),[]);return s&&s(a),t("details",{ref:l,open:r,children:[i,r&&o]})}const oe=["start","end"],se=["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-"+oe[0],t+"-"+oe[1])),[]),re=Math.min,ae=Math.max,le=Math.round,ce=Math.floor,de=e=>({x:e,y:e}),he={left:"right",right:"left",bottom:"top",top:"bottom"},ue={start:"end",end:"start"};function pe(e,t,i){return ae(e,re(t,i))}function fe(e,t){return"function"==typeof e?e(t):e}function ge(e){return e.split("-")[0]}function me(e){return e.split("-")[1]}function ve(e){return"x"===e?"y":"x"}function be(e){return"y"===e?"height":"width"}function ye(e){return["top","bottom"].includes(ge(e))?"y":"x"}function xe(e){return ve(ye(e))}function we(e){return e.replace(/left|right|bottom|top/g,(e=>he[e]))}function ke(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ce(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Te(e,t,i){let{reference:n,floating:o}=e;const s=ye(t),r=xe(t),a=be(r),l=ge(t),c="y"===s,d=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,u=n[a]/2-o[a]/2;let p;switch(l){case"top":p={x:d,y:n.y-o.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:h};break;case"left":p={x:n.x-o.width,y:h};break;default:p={x:n.x,y:n.y}}switch(me(t)){case"start":p[r]-=u*(i&&c?-1:1);break;case"end":p[r]+=u*(i&&c?-1:1)}return p}async function Re(e,t){var i;void 0===t&&(t={});const{x:n,y:o,platform:s,rects:r,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=fe(t,e),f=ke(p),g=a[u?"floating"===h?"reference":"floating":h],m=Ce(await s.getClippingRect({element:null==(i=await(null==s.isElement?void 0:s.isElement(g)))||i?g:g.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),v="floating"===h?{...r.floating,x:n,y:o}:r.reference,b=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),y=await(null==s.isElement?void 0:s.isElement(b))&&await(null==s.getScale?void 0:s.getScale(b))||{x:1,y:1},x=Ce(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:l}):v);return{top:(m.top-x.top+f.top)/y.y,bottom:(x.bottom-m.bottom+f.bottom)/y.y,left:(m.left-x.left+f.left)/y.x,right:(x.right-m.right+f.right)/y.x}}function Se(e,t,i){return(e?[...i.filter((t=>me(t)===e)),...i.filter((t=>me(t)!==e))]:i.filter((e=>ge(e)===e))).filter((i=>!e||(me(i)===e||!!t&&function(e){return e.replace(/start|end/g,(e=>ue[e]))}(i)!==i)))}const De=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var i,n;const{x:o,y:s,placement:r,middlewareData:a}=t,l=await async function(e,t){const{placement:i,platform:n,elements:o}=e,s=await(null==n.isRTL?void 0:n.isRTL(o.floating)),r=ge(i),a=me(i),l="y"===ye(i),c=["left","top"].includes(r)?-1:1,d=s&&l?-1:1,h=fe(t,e);let{mainAxis:u,crossAxis:p,alignmentAxis:f}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*d,y:u*c}:{x:u*c,y:p*d}}(t,e);return r===(null==(i=a.offset)?void 0:i.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:r}}}}};function Ee(e){return Oe(e)?(e.nodeName||"").toLowerCase():"#document"}function Ie(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function $e(e){var t;return null==(t=(Oe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Oe(e){return e instanceof Node||e instanceof Ie(e).Node}function Pe(e){return e instanceof Element||e instanceof Ie(e).Element}function Ae(e){return e instanceof HTMLElement||e instanceof Ie(e).HTMLElement}function Me(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ie(e).ShadowRoot)}function Le(e){const{overflow:t,overflowX:i,overflowY:n,display:o}=ze(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+i)&&!["inline","contents"].includes(o)}function Ne(e){return["table","td","th"].includes(Ee(e))}function _e(e){const t=Fe(),i=ze(e);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!t&&!!i.backdropFilter&&"none"!==i.backdropFilter||!t&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((e=>(i.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(i.contain||"").includes(e)))}function Fe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qe(e){return["html","body","#document"].includes(Ee(e))}function ze(e){return Ie(e).getComputedStyle(e)}function je(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ve(e){if("html"===Ee(e))return e;const t=e.assignedSlot||e.parentNode||Me(e)&&e.host||$e(e);return Me(t)?t.host:t}function He(e){const t=Ve(e);return qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ae(t)&&Le(t)?t:He(t)}function Be(e,t,i){var n;void 0===t&&(t=[]),void 0===i&&(i=!0);const o=He(e),s=o===(null==(n=e.ownerDocument)?void 0:n.body),r=Ie(o);return s?t.concat(r,r.visualViewport||[],Le(o)?o:[],r.frameElement&&i?Be(r.frameElement):[]):t.concat(o,Be(o,[],i))}function Ue(e){const t=ze(e);let i=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ae(e),s=o?e.offsetWidth:i,r=o?e.offsetHeight:n,a=le(i)!==s||le(n)!==r;return a&&(i=s,n=r),{width:i,height:n,$:a}}function We(e){return Pe(e)?e:e.contextElement}function Ke(e){const t=We(e);if(!Ae(t))return de(1);const i=t.getBoundingClientRect(),{width:n,height:o,$:s}=Ue(t);let r=(s?le(i.width):i.width)/n,a=(s?le(i.height):i.height)/o;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}const Ge=de(0);function Xe(e){const t=Ie(e);return Fe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ge}function Qe(e,t,i,n){void 0===t&&(t=!1),void 0===i&&(i=!1);const o=e.getBoundingClientRect(),s=We(e);let r=de(1);t&&(n?Pe(n)&&(r=Ke(n)):r=Ke(e));const a=function(e,t,i){return void 0===t&&(t=!1),!(!i||t&&i!==Ie(e))&&t}(s,i,n)?Xe(s):de(0);let l=(o.left+a.x)/r.x,c=(o.top+a.y)/r.y,d=o.width/r.x,h=o.height/r.y;if(s){const e=Ie(s),t=n&&Pe(n)?Ie(n):n;let i=e,o=i.frameElement;for(;o&&n&&t!==i;){const e=Ke(o),t=o.getBoundingClientRect(),n=ze(o),s=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,r=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,h*=e.y,l+=s,c+=r,i=Ie(o),o=i.frameElement}}return Ce({width:d,height:h,x:l,y:c})}const Ye=[":popover-open",":modal"];function Ze(e){return Ye.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Je(e){return Qe($e(e)).left+je(e).scrollLeft}function et(e,t,i){let n;if("viewport"===t)n=function(e,t){const i=Ie(e),n=$e(e),o=i.visualViewport;let s=n.clientWidth,r=n.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;const e=Fe();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a,y:l}}(e,i);else if("document"===t)n=function(e){const t=$e(e),i=je(e),n=e.ownerDocument.body,o=ae(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=ae(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-i.scrollLeft+Je(e);const a=-i.scrollTop;return"rtl"===ze(n).direction&&(r+=ae(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:r,y:a}}($e(e));else if(Pe(t))n=function(e,t){const i=Qe(e,!0,"fixed"===t),n=i.top+e.clientTop,o=i.left+e.clientLeft,s=Ae(e)?Ke(e):de(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:o*s.x,y:n*s.y}}(t,i);else{const i=Xe(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return Ce(n)}function tt(e,t){const i=Ve(e);return!(i===t||!Pe(i)||qe(i))&&("fixed"===ze(i).position||tt(i,t))}function it(e,t,i){const n=Ae(t),o=$e(t),s="fixed"===i,r=Qe(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=de(0);if(n||!n&&!s)if(("body"!==Ee(t)||Le(o))&&(a=je(t)),n){const e=Qe(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Je(o));return{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function nt(e,t){return Ae(e)&&"fixed"!==ze(e).position?t?t(e):e.offsetParent:null}function ot(e,t){const i=Ie(e);if(!Ae(e)||Ze(e))return i;let n=nt(e,t);for(;n&&Ne(n)&&"static"===ze(n).position;)n=nt(n,t);return n&&("html"===Ee(n)||"body"===Ee(n)&&"static"===ze(n).position&&!_e(n))?i:n||function(e){let t=Ve(e);for(;Ae(t)&&!qe(t);){if(_e(t))return t;t=Ve(t)}return null}(e)||i}const st={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:n,strategy:o}=e;const s="fixed"===o,r=$e(n),a=!!t&&Ze(t.floating);if(n===r||a&&s)return i;let l={scrollLeft:0,scrollTop:0},c=de(1);const d=de(0),h=Ae(n);if((h||!h&&!s)&&(("body"!==Ee(n)||Le(r))&&(l=je(n)),Ae(n))){const e=Qe(n);c=Ke(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-l.scrollLeft*c.x+d.x,y:i.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:$e,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:n,strategy:o}=e;const s="clippingAncestors"===i?function(e,t){const i=t.get(e);if(i)return i;let n=Be(e,[],!1).filter((e=>Pe(e)&&"body"!==Ee(e))),o=null;const s="fixed"===ze(e).position;let r=s?Ve(e):e;for(;Pe(r)&&!qe(r);){const t=ze(r),i=_e(r);i||"fixed"!==t.position||(o=null),(s?!i&&!o:!i&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Le(r)&&!i&&tt(e,r))?n=n.filter((e=>e!==r)):o=t,r=Ve(r)}return t.set(e,n),n}(t,this._c):[].concat(i),r=[...s,n],a=r[0],l=r.reduce(((e,i)=>{const n=et(t,i,o);return e.top=ae(n.top,e.top),e.right=re(n.right,e.right),e.bottom=re(n.bottom,e.bottom),e.left=ae(n.left,e.left),e}),et(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ot,getElementRects:async function(e){const t=this.getOffsetParent||ot,i=this.getDimensions;return{reference:it(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await i(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:i}=Ue(e);return{width:t,height:i}},getScale:Ke,isElement:Pe,isRTL:function(e){return"rtl"===ze(e).direction}};function rt(e,t,i,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=We(e),d=o||s?[...c?Be(c):[],...Be(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",i,{passive:!0}),s&&e.addEventListener("resize",i)}));const h=c&&a?function(e,t){let i,n=null;const o=$e(e);function s(){var e;clearTimeout(i),null==(e=n)||e.disconnect(),n=null}return function r(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),s();const{left:c,top:d,width:h,height:u}=e.getBoundingClientRect();if(a||t(),!h||!u)return;const p={rootMargin:-ce(d)+"px "+-ce(o.clientWidth-(c+h))+"px "+-ce(o.clientHeight-(d+u))+"px "+-ce(c)+"px",threshold:ae(0,re(1,l))||1};let f=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return r();t?r(!1,t):i=setTimeout((()=>{r(!1,1e-7)}),100)}f=!1}try{n=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(g,p)}n.observe(e)}(!0),s}(c,i):null;let u,p=-1,f=null;r&&(f=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),i()})),c&&!l&&f.observe(c),f.observe(t));let g=l?Qe(e):null;return l&&function t(){const n=Qe(e);!g||n.x===g.x&&n.y===g.y&&n.width===g.width&&n.height===g.height||i();g=n,u=requestAnimationFrame(t)}(),i(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",i),s&&e.removeEventListener("resize",i)})),null==h||h(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(u)}}const at=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var i,n,o;const{rects:s,middlewareData:r,placement:a,platform:l,elements:c}=t,{crossAxis:d=!1,alignment:h,allowedPlacements:u=se,autoAlignment:p=!0,...f}=fe(e,t),g=void 0!==h||u===se?Se(h||null,p,u):u,m=await Re(t,f),v=(null==(i=r.autoPlacement)?void 0:i.index)||0,b=g[v];if(null==b)return{};const y=function(e,t,i){void 0===i&&(i=!1);const n=me(e),o=xe(e),s=be(o);let r="x"===o?n===(i?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=we(r)),[r,we(r)]}(b,s,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(a!==b)return{reset:{placement:g[0]}};const x=[m[ge(b)],m[y[0]],m[y[1]]],w=[...(null==(n=r.autoPlacement)?void 0:n.overflows)||[],{placement:b,overflows:x}],k=g[v+1];if(k)return{data:{index:v+1,overflows:w},reset:{placement:k}};const C=w.map((e=>{const t=me(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),T=(null==(o=C.filter((e=>e[2].slice(0,me(e[0])?2:3).every((e=>e<=0))))[0])?void 0:o[0])||C[0][0];return T!==a?{data:{index:v+1,overflows:w},reset:{placement:T}}:{}}}},lt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:r=!1,limiter:a={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}},...l}=fe(e,t),c={x:i,y:n},d=await Re(t,l),h=ye(ge(o)),u=ve(h);let p=c[u],f=c[h];if(s){const e="y"===u?"bottom":"right";p=pe(p+d["y"===u?"top":"left"],p,p-d[e])}if(r){const e="y"===h?"bottom":"right";f=pe(f+d["y"===h?"top":"left"],f,f-d[e])}const g=a.fn({...t,[u]:p,[h]:f});return{...g,data:{x:g.x-i,y:g.y-n}}}}},ct=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:i,rects:n,platform:o,elements:s}=t,{apply:r=(()=>{}),...a}=fe(e,t),l=await Re(t,a),c=ge(i),d=me(i),h="y"===ye(i),{width:u,height:p}=n.floating;let f,g;"top"===c||"bottom"===c?(f=c,g=d===(await(null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(g=c,f="end"===d?"top":"bottom");const m=p-l[f],v=u-l[g],b=!t.middlewareData.shift;let y=m,x=v;if(h){const e=u-l.left-l.right;x=d||b?re(v,e):e}else{const e=p-l.top-l.bottom;y=d||b?re(m,e):e}if(b&&!d){const e=ae(l.left,0),t=ae(l.right,0),i=ae(l.top,0),n=ae(l.bottom,0);h?x=u-2*(0!==e||0!==t?e+t:ae(l.left,l.right)):y=p-2*(0!==i||0!==n?i+n:ae(l.top,l.bottom))}await r({...t,availableWidth:x,availableHeight:y});const w=await o.getDimensions(s.floating);return u!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}},dt=e=>({name:"arrow",options:e,async fn(t){const{x:i,y:n,placement:o,rects:s,platform:r,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=fe(e,t)||{};if(null==c)return{};const h=ke(d),u={x:i,y:n},p=xe(o),f=be(p),g=await r.getDimensions(c),m="y"===p,v=m?"top":"left",b=m?"bottom":"right",y=m?"clientHeight":"clientWidth",x=s.reference[f]+s.reference[p]-u[p]-s.floating[f],w=u[p]-s.reference[p],k=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c));let C=k?k[y]:0;C&&await(null==r.isElement?void 0:r.isElement(k))||(C=a.floating[y]||s.floating[f]);const T=x/2-w/2,R=C/2-g[f]/2-1,S=re(h[v],R),D=re(h[b],R),E=S,I=C-g[f]-D,$=C/2-g[f]/2+T,O=pe(E,$,I),P=!l.arrow&&null!=me(o)&&$!==O&&s.reference[f]/2-($<E?S:D)-g[f]/2<0,A=P?$<E?$-E:$-I:0;return{[p]:u[p]+A,data:{[p]:O,centerOffset:$-O-A,...P&&{alignmentOffset:A}},reset:P}}}),ht=(e,t,i)=>{const n=new Map,o={platform:st,...i},s={...o.platform,_c:n};return(async(e,t,i)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:r}=i,a=s.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=Te(c,n,l),u=n,p={},f=0;for(let i=0;i<a.length;i++){const{name:s,fn:g}=a[i],{x:m,y:v,data:b,reset:y}=await g({x:d,y:h,initialPlacement:n,placement:u,strategy:o,middlewareData:p,rects:c,platform:r,elements:{reference:e,floating:t}});d=null!=m?m:d,h=null!=v?v:h,p={...p,[s]:{...p[s],...b}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await r.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:h}=Te(c,u,l))),i=-1)}return{x:d,y:h,placement:u,strategy:o,middlewareData:p}})(e,t,{...o,platform:s})};var ut="undefined"!=typeof document?s:r;function pt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let i,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(i=e.length,i!==t.length)return!1;for(n=i;0!=n--;)if(!pt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),i=o.length,i!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=i;0!=n--;){const i=o[n];if(("_owner"!==i||!e.$$typeof)&&!pt(e[i],t[i]))return!1}return!0}return e!=e&&t!=t}function ft(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gt(e,t){const i=ft(e);return Math.round(t*i)/i}function mt(e){const t=n.useRef(e);return ut((()=>{t.current=e})),t}function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},vt.apply(this,arguments)}var bt="undefined"!=typeof document?s:r;let yt=!1,xt=0;const wt=()=>"floating-ui-"+xt++;const kt=n["useId".toString()]||function(){const[e,t]=n.useState((()=>yt?wt():void 0));return bt((()=>{null==e&&t(wt())}),[]),n.useEffect((()=>{yt||(yt=!0)}),[]),e},Ct=n.forwardRef((function(e,t){let{context:{placement:i,elements:{floating:o},middlewareData:{arrow:s}},width:r=14,height:a=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:d,stroke:h,d:u,style:{transform:p,...f}={},...g}=e;const m=kt();if(!o)return null;c*=2;const v=c/2,b=r/2*(l/-8+1),y=a/2*l/4,[x,w]=i.split("-"),k=st.isRTL(o),C=!!u,T="top"===x||"bottom"===x,R=d&&"end"===w?"bottom":"top";let S=d&&"end"===w?"right":"left";d&&k&&(S="end"===w?"left":"right");const D=null!=(null==s?void 0:s.x)?d||s.x:"",E=null!=(null==s?void 0:s.y)?d||s.y:"",I=u||"M0,0 H"+r+" L"+(r-b)+","+(a-y)+" Q"+r/2+","+a+" "+b+","+(a-y)+" Z",$={top:C?"rotate(180deg)":"",left:C?"rotate(90deg)":"rotate(-90deg)",bottom:C?"":"rotate(180deg)",right:C?"rotate(-90deg)":"rotate(90deg)"}[x];return n.createElement("svg",vt({},g,{"aria-hidden":!0,ref:t,width:C?r:r+c,height:r,viewBox:"0 0 "+r+" "+(a>r?a:r),style:{position:"absolute",pointerEvents:"none",[S]:D,[R]:E,[x]:T||C?"100%":"calc(100% - "+c/2+"px)",transform:""+$+(null!=p?p:""),...f}}),c>0&&n.createElement("path",{clipPath:"url(#"+m+")",fill:"none",stroke:h,strokeWidth:c+(u?0:1),d:I}),n.createElement("path",{stroke:c&&!u?g.fill:"none",d:I}),n.createElement("clipPath",{id:m},n.createElement("rect",{x:-v,y:v*(C?-1:1),width:r+c,height:r})))}));const Tt=n.createContext(null),Rt=()=>n.useContext(Tt);function St(e){return(t=e,(null==t?void 0:t.ownerDocument)||document).defaultView||window;var t}function Dt(e){return!!e&&(e instanceof Element||e instanceof St(e).Element)}const Et=n["useInsertionEffect".toString()]||(e=>e());function It(e){var t;void 0===e&&(e={});const{open:i=!1,onOpenChange:o,nodeId:s}=e,[r,l]=n.useState(null),c=(null==(t=e.elements)?void 0:t.reference)||r,d=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:i="absolute",middleware:o=[],platform:s,elements:{reference:r,floating:l}={},transform:c=!0,whileElementsMounted:d,open:h}=e,[u,p]=n.useState({x:0,y:0,strategy:i,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=n.useState(o);pt(f,o)||g(o);const[m,v]=n.useState(null),[b,y]=n.useState(null),x=n.useCallback((e=>{e!==T.current&&(T.current=e,v(e))}),[]),w=n.useCallback((e=>{e!==R.current&&(R.current=e,y(e))}),[]),k=r||m,C=l||b,T=n.useRef(null),R=n.useRef(null),S=n.useRef(u),D=null!=d,E=mt(d),I=mt(s),$=n.useCallback((()=>{if(!T.current||!R.current)return;const e={placement:t,strategy:i,middleware:f};I.current&&(e.platform=I.current),ht(T.current,R.current,e).then((e=>{const t={...e,isPositioned:!0};O.current&&!pt(S.current,t)&&(S.current=t,a.flushSync((()=>{p(t)})))}))}),[f,t,i,I]);ut((()=>{!1===h&&S.current.isPositioned&&(S.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[h]);const O=n.useRef(!1);ut((()=>(O.current=!0,()=>{O.current=!1})),[]),ut((()=>{if(k&&(T.current=k),C&&(R.current=C),k&&C){if(E.current)return E.current(k,C,$);$()}}),[k,C,$,E,D]);const P=n.useMemo((()=>({reference:T,floating:R,setReference:x,setFloating:w})),[x,w]),A=n.useMemo((()=>({reference:k,floating:C})),[k,C]),M=n.useMemo((()=>{const e={position:i,left:0,top:0};if(!A.floating)return e;const t=gt(A.floating,u.x),n=gt(A.floating,u.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...ft(A.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:t,top:n}}),[i,c,A.floating,u.x,u.y]);return n.useMemo((()=>({...u,update:$,refs:P,elements:A,floatingStyles:M})),[u,$,P,A,M])}(e),h=Rt(),u=function(e){const t=n.useRef((()=>{}));return Et((()=>{t.current=e})),n.useCallback((function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return null==t.current?void 0:t.current(...i)}),[])}(((e,t)=>{e&&(f.current.openEvent=t),null==o||o(e,t)})),p=n.useRef(null),f=n.useRef({}),g=n.useState((()=>function(){const e=new Map;return{emit(t,i){var n;null==(n=e.get(t))||n.forEach((e=>e(i)))},on(t,i){e.set(t,[...e.get(t)||[],i])},off(t,i){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter((e=>e!==i)))||[])}}}()))[0],m=kt(),v=n.useCallback((e=>{const t=Dt(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;d.refs.setReference(t)}),[d.refs]),b=n.useCallback((e=>{(Dt(e)||null===e)&&(p.current=e,l(e)),(Dt(d.refs.reference.current)||null===d.refs.reference.current||null!==e&&!Dt(e))&&d.refs.setReference(e)}),[d.refs]),y=n.useMemo((()=>({...d.refs,setReference:b,setPositionReference:v,domReference:p})),[d.refs,b,v]),x=n.useMemo((()=>({...d.elements,domReference:c})),[d.elements,c]),w=n.useMemo((()=>({...d,refs:y,elements:x,dataRef:f,nodeId:s,floatingId:m,events:g,open:i,onOpenChange:u})),[d,s,m,g,i,u,y,x]);return bt((()=>{const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===s));e&&(e.context=w)})),n.useMemo((()=>({...d,context:w,refs:y,elements:x})),[d,y,x,w])}function $t(i){const{reference:o,children:s,style:r,...l}=i,c=n.useRef(null),{refs:d,floatingStyles:h,context:u}=It({elements:{reference:o},placement:"top",middleware:[De(8),lt(),at({padding:10}),ct({apply({availableHeight:e,elements:t}){t.floating.style.maxHeight=`${Math.min(e,300)}px`},padding:10}),(p={element:c,padding:6},{name:"arrow",options:p,fn(e){const{element:t,padding:i}="function"==typeof p?p(e):p;return t&&(n=t,{}.hasOwnProperty.call(n,"current"))?null!=t.current?dt({element:t.current,padding:i}).fn(e):{}:t?dt({element:t,padding:i}).fn(e):{};var n}})],whileElementsMounted:rt});var p;const f=n.useContext(B),g=n.useRef((()=>{})),m=t("div",{ref:e=>{d.setFloating(e),g.current(),g.current=e?f.registerDescendant(e):()=>{}},style:{...r,...h},className:"tooltip",...l,children:[e(Ct,{ref:c,context:u,fill:"var(--vscode-editorHoverWidget-background)",strokeWidth:1,stroke:"var(--vscode-editorHoverWidget-border)"}),e("div",{className:"tooltip-content",children:s})]});return a.createPortal(m,document.body)}const Ot=H(((i,o,s)=>{const{isTooltipShown:r,hideTooltip:a,tooltipChildren:l,...c}=i,[d,h]=U({current:o});return W(d,n.useCallback((()=>{a()}),[a])),e(B.Provider,{value:h,children:t("span",{ref:s,onClick:()=>{window.getSelection()?.toString()||a()},...c,children:[r&&e($t,{reference:o,children:l}),c.children]})})})),Pt=(At=(t,i,o)=>{const{setHoverState:s,...r}=t,a=(e,t)=>{if(i.current&&t.target instanceof Node&&i.current.contains(t.target)){if("_DetectHoverSpanSeen"in t)return;t._DetectHoverSpanSeen={},e?t.ctrlKey||t.metaKey?s("ctrlOver"):s("over"):s("off")}};return n.useEffect((()=>{const e=e=>{"Control"!==e.key&&"Meta"!==e.key||s((e=>"over"===e?"ctrlOver":e))},t=e=>{"Control"!==e.key&&"Meta"!==e.key||s((e=>"ctrlOver"===e?"over":e))};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[s]),e("span",{...r,ref:o,onPointerOver:e=>{a(!0,e),r.onPointerOver&&r.onPointerOver(e)},onPointerOut:e=>{a(!1,e),r.onPointerOut&&r.onPointerOut(e)},onPointerMove:e=>{e.ctrlKey||e.metaKey?s((e=>"over"===e?"ctrlOver":e)):s((e=>"ctrlOver"===e?"over":e)),r.onPointerMove&&r.onPointerMove(e)},children:r.children})},n.forwardRef(((e,t)=>{const i=n.useRef(null);return At(e,i,(e=>{i.current=e,t&&("function"==typeof t?t(e):t.current=e)}))})));var At;const Mt=n.createContext({pinParent:()=>{}}),Lt=H(((i,o,s)=>{const{tooltipChildren:r,onClick:a,...l}=i,c=n.useContext(I),[d,h]=n.useState("hide"),u="hide"!==d,p=n.useContext(Mt);n.useEffect((()=>{"pin"===d&&p.pinParent()}),[d,p]);const f=n.useMemo((()=>({pinParent:()=>{h("pin"),p.pinParent()}})),[p]),[g,m]=U({current:o}),v=n.useRef(),b=()=>{v.current&&(window.clearTimeout(v.current),v.current=void 0)},y=e=>e.altKey||e.ctrlKey||e.shiftKey||e.metaKey,x=e=>{b(),h((e=>"pin"===e?"hide":"pin")),e.stopPropagation()};W(g,n.useCallback((()=>{b(),h("hide")}),[]));const w=n.useRef(!1),k=()=>{b(),v.current=window.setTimeout((()=>{w.current||h((e=>"show"===e?"hide":e)),v.current=void 0}),300)};function C(e,t){var i;"_WithTooltipOnHoverSeen"in t||(i=t.target,o&&i instanceof Node&&o.contains(i)&&(t._WithTooltipOnHoverSeen={},e(t)))}return e(B.Provider,{value:m,children:t("span",{...l,ref:s,onClick:e=>{C((e=>{void 0!==a?a(e,x):x(e)}),e)},onPointerDown:e=>{y(e)&&e.preventDefault()},onPointerOver:e=>{y(e)||C((e=>(b(),void(c.showTooltipOnHover&&(v.current=window.setTimeout((()=>{h((e=>"hide"===e?"show":e)),v.current=void 0}),500))))),e),void 0!==l.onPointerOver&&l.onPointerOver(e)},onPointerOut:e=>{C((e=>k()),e),void 0!==l.onPointerOut&&l.onPointerOut(e)},children:[u&&e(Mt.Provider,{value:f,children:e($t,{reference:o,onPointerEnter:e=>{w.current=!0,b()},onPointerLeave:e=>{w.current=!1,k()},children:r})}),l.children]})})}));var Nt,_t;!function(e){e.isEqual=function(e,t){return"hyp"in e?"hyp"in t&&e.hyp===t.hyp:"hypType"in e?"hypType"in t&&(e.hypType[0]===t.hypType[0]&&e.hypType[1]===t.hypType[1]):"hypValue"in e?"hypValue"in t&&(e.hypValue[0]===t.hypValue[0]&&e.hypValue[1]===t.hypValue[1]):"target"in e&&("target"in t&&e.target===t.target)},e.withSubexprPos=function(e,t){if("hyp"in e)return e;if("hypType"in e)return{hypType:[e.hypType[0],t]};if("hypValue"in e)return{hypValue:[e.hypValue[0],t]};if("target"in e)return{target:t};throw new Error(`unrecognized GoalLocation variant ${JSON.stringify(e)}`)}}(Nt||(Nt={})),function(e){e.isEqual=function(e,t){return e.mvarId===t.mvarId&&Nt.isEqual(e.loc,t.loc)},e.withSubexprPos=function(e,t){return{...e,loc:Nt.withSubexprPos(e.loc,t)}}}(_t||(_t={}));const Ft=n.createContext(void 0);function qt(t){const{locs:i,loc:o,alwaysHighlight:s,setHoverState:r,...a}=t,l=s||!!i&&!!o,[c,d]=n.useState("off");let h="";l&&(h+="highlightable ","off"!==c&&(h+="highlight "),a.className&&(h+=a.className));const u="highlightable "+(i&&o&&i.isSelected(o)?"highlight-selected ":""),p=n.useCallback((e=>{d(e),r&&r(e)}),[r]);return e(Pt,{...a,setHoverState:p,className:h,onClick:e=>{e.shiftKey&&i&&o&&(i.setSelected(o,(e=>!e)),e.stopPropagation()),a.onClick&&a.onClick(e)},onPointerDown:e=>{e.shiftKey&&e.preventDefault(),a.onPointerDown&&a.onPointerDown(e)},children:e("span",{className:u,children:a.children})})}function zt(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let jt={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Vt=/[&<>"']/,Ht=new RegExp(Vt.source,"g"),Bt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ut=new RegExp(Bt.source,"g"),Wt={"&":"&","<":"<",">":">",'"':""","'":"'"},Kt=e=>Wt[e];function Gt(e,t){if(t){if(Vt.test(e))return e.replace(Ht,Kt)}else if(Bt.test(e))return e.replace(Ut,Kt);return e}const Xt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Qt(e){return e.replace(Xt,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Yt=/(^|[^\[])\^/g;function Zt(e,t){e="string"==typeof e?e:e.source,t=t||"";const i={replace:(t,n)=>(n=(n=n.source||n).replace(Yt,"$1"),e=e.replace(t,n),i),getRegex:()=>new RegExp(e,t)};return i}const Jt=/[^\w:]/g,ei=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ti(e,t,i){if(e){let e;try{e=decodeURIComponent(Qt(i)).replace(Jt,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!ei.test(i)&&(i=function(e,t){ii[" "+e]||(ni.test(e)?ii[" "+e]=e+"/":ii[" "+e]=li(e,"/",!0));e=ii[" "+e];const i=-1===e.indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(oi,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(si,"$1")+t:e+t}(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(e){return null}return i}const ii={},ni=/^[^:]+:\/*[^/]*$/,oi=/^([^:]+:)[\s\S]*$/,si=/^([^:]+:\/*[^/]*)[\s\S]*$/;const ri={exec:function(){}};function ai(e,t){const i=e.replace(/\|/g,((e,t,i)=>{let n=!1,o=t;for(;--o>=0&&"\\"===i[o];)n=!n;return n?"|":" |"})),n=i.split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function li(e,t,i){const n=e.length;if(0===n)return"";let o=0;for(;o<n;){const s=e.charAt(n-o-1);if(s!==t||i){if(s===t||!i)break;o++}else o++}return e.slice(0,n-o)}function ci(e,t){if(t<1)return"";let i="";for(;t>1;)1&t&&(i+=e),t>>=1,e+=e;return i+e}function di(e,t,i,n){const o=t.href,s=t.title?Gt(t.title):null,r=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:i,href:o,title:s,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,e}return{type:"image",raw:i,href:o,title:s,text:Gt(r)}}class hi{constructor(e){this.options=e||jt}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:li(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],i=function(e,t){const i=e.match(/^(\s+)(?:```)/);if(null===i)return t;const n=i[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[i]=t;return i.length>=n.length?e.slice(n.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=li(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;const n=this.lexer.blockTokens(e);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i,n,o,s,r,a,l,c,d,h,u,p,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(p=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(i=t[0],e=e.substring(i.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),d=e.split("\n",1)[0],this.options.pedantic?(s=2,u=c.trimLeft()):(s=t[2].search(/[^ ]/),s=s>4?1:s,u=c.slice(s),s+=t[1].length),a=!1,!c&&/^ *$/.test(d)&&(i+=d+"\n",e=e.substring(d.length+1),p=!0),!p){const t=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),o=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),r=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;e&&(h=e.split("\n",1)[0],d=h,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!o.test(d))&&!r.test(d)&&!t.test(d)&&!n.test(e);){if(d.search(/[^ ]/)>=s||!d.trim())u+="\n"+d.slice(s);else{if(a)break;if(c.search(/[^ ]/)>=4)break;if(o.test(c))break;if(r.test(c))break;if(n.test(c))break;u+="\n"+d}a||d.trim()||(a=!0),i+=h+"\n",e=e.substring(h.length+1),c=d.slice(s)}}m.loose||(l?m.loose=!0:/\n *\n *$/.test(i)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(u),n&&(o="[ ] "!==n[0],u=u.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:i,task:!!n,checked:o,loose:!1,text:u}),m.raw+=i}m.items[m.items.length-1].raw=i.trimRight(),m.items[m.items.length-1].text=u.trimRight(),m.raw=m.raw.trimRight();const b=m.items.length;for(r=0;r<b;r++)if(this.lexer.state.top=!1,m.items[r].tokens=this.lexer.blockTokens(m.items[r].text,[]),!m.loose){const e=m.items[r].tokens.filter((e=>"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));m.loose=t}if(m.loose)for(r=0;r<b;r++)m.items[r].loose=!0;return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const i=this.options.sanitizer?this.options.sanitizer(t[0]):Gt(t[0]);e.type="paragraph",e.text=i,e.tokens=this.lexer.inline(i)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:i,title:n}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:ai(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let i,n,o,s,r=e.align.length;for(i=0;i<r;i++)/^ *-+: *$/.test(e.align[i])?e.align[i]="right":/^ *:-+: *$/.test(e.align[i])?e.align[i]="center":/^ *:-+ *$/.test(e.align[i])?e.align[i]="left":e.align[i]=null;for(r=e.rows.length,i=0;i<r;i++)e.rows[i]=ai(e.rows[i],e.header.length).map((e=>({text:e})));for(r=e.header.length,n=0;n<r;n++)e.header[n].tokens=this.lexer.inline(e.header[n].text);for(r=e.rows.length,n=0;n<r;n++)for(s=e.rows[n],o=0;o<s.length;o++)s[o].tokens=this.lexer.inline(s[o].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Gt(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Gt(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=li(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const i=e.length;let n=0,o=0;for(;o<i;o++)if("\\"===e[o])o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return-1}(t[2],"()");if(e>-1){const i=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let i=t[2],n="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);e&&(i=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(i=this.options.pedantic&&!/>$/.test(e)?i.slice(1):i.slice(1,-1)),di(t,{href:i?i.replace(this.rules.inline._escapes,"$1"):i,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let e=(i[2]||i[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=i[0].charAt(0);return{type:"text",raw:e,text:e}}return di(i,e,i[0],this.lexer)}}emStrong(e,t,i=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&i.match(/[\p{L}\p{N}]/u))return;const o=n[1]||n[2]||"";if(!o||o&&(""===i||this.rules.inline.punctuation.exec(i))){const i=n[0].length-1;let o,s,r=i,a=0;const l="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);null!=(n=l.exec(t));){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(s=o.length,n[3]||n[4]){r+=s;continue}if((n[5]||n[6])&&i%3&&!((i+s)%3)){a+=s;continue}if(r-=s,r>0)continue;s=Math.min(s,s+r+a);const t=e.slice(0,i+n.index+(n[0].length-o.length)+s);if(Math.min(i,s)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const i=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return i&&n&&(e=e.substring(1,e.length-1)),e=Gt(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const i=this.rules.inline.autolink.exec(e);if(i){let e,n;return"@"===i[2]?(e=Gt(this.options.mangle?t(i[1]):i[1]),n="mailto:"+e):(e=Gt(i[1]),n=e),{type:"link",raw:i[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let i;if(i=this.rules.inline.url.exec(e)){let e,n;if("@"===i[2])e=Gt(this.options.mangle?t(i[0]):i[0]),n="mailto:"+e;else{let t;do{t=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(t!==i[0]);e=Gt(i[0]),n="www."===i[1]?"http://"+i[0]:i[0]}return{type:"link",raw:i[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const i=this.rules.inline.text.exec(e);if(i){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):Gt(i[0]):i[0]:Gt(this.options.smartypants?t(i[0]):i[0]),{type:"text",raw:i[0],text:e}}}}const ui={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:ri,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};ui.def=Zt(ui.def).replace("label",ui._label).replace("title",ui._title).getRegex(),ui.bullet=/(?:[*+-]|\d{1,9}[.)])/,ui.listItemStart=Zt(/^( *)(bull) */).replace("bull",ui.bullet).getRegex(),ui.list=Zt(ui.list).replace(/bull/g,ui.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ui.def.source+")").getRegex(),ui._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ui._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,ui.html=Zt(ui.html,"i").replace("comment",ui._comment).replace("tag",ui._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ui.paragraph=Zt(ui._paragraph).replace("hr",ui.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ui._tag).getRegex(),ui.blockquote=Zt(ui.blockquote).replace("paragraph",ui.paragraph).getRegex(),ui.normal={...ui},ui.gfm={...ui.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},ui.gfm.table=Zt(ui.gfm.table).replace("hr",ui.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ui._tag).getRegex(),ui.gfm.paragraph=Zt(ui._paragraph).replace("hr",ui.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ui.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ui._tag).getRegex(),ui.pedantic={...ui.normal,html:Zt("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ui._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ri,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Zt(ui.normal._paragraph).replace("hr",ui.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ui.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const pi={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ri,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ri,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function fi(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function gi(e){let t,i,n="";const o=e.length;for(t=0;t<o;t++)i=e.charCodeAt(t),Math.random()>.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}pi._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",pi.punctuation=Zt(pi.punctuation).replace(/punctuation/g,pi._punctuation).getRegex(),pi.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,pi.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,pi._comment=Zt(ui._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),pi.emStrong.lDelim=Zt(pi.emStrong.lDelim).replace(/punct/g,pi._punctuation).getRegex(),pi.emStrong.rDelimAst=Zt(pi.emStrong.rDelimAst,"g").replace(/punct/g,pi._punctuation).getRegex(),pi.emStrong.rDelimUnd=Zt(pi.emStrong.rDelimUnd,"g").replace(/punct/g,pi._punctuation).getRegex(),pi._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,pi._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,pi._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,pi.autolink=Zt(pi.autolink).replace("scheme",pi._scheme).replace("email",pi._email).getRegex(),pi._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,pi.tag=Zt(pi.tag).replace("comment",pi._comment).replace("attribute",pi._attribute).getRegex(),pi._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,pi._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,pi._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,pi.link=Zt(pi.link).replace("label",pi._label).replace("href",pi._href).replace("title",pi._title).getRegex(),pi.reflink=Zt(pi.reflink).replace("label",pi._label).replace("ref",ui._label).getRegex(),pi.nolink=Zt(pi.nolink).replace("ref",ui._label).getRegex(),pi.reflinkSearch=Zt(pi.reflinkSearch,"g").replace("reflink",pi.reflink).replace("nolink",pi.nolink).getRegex(),pi.normal={...pi},pi.pedantic={...pi.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Zt(/^!?\[(label)\]\((.*?)\)/).replace("label",pi._label).getRegex(),reflink:Zt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pi._label).getRegex()},pi.gfm={...pi.normal,escape:Zt(pi.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},pi.gfm.url=Zt(pi.gfm.url,"i").replace("email",pi.gfm._extended_email).getRegex(),pi.breaks={...pi.gfm,br:Zt(pi.br).replace("{2,}","*").getRegex(),text:Zt(pi.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class mi{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||jt,this.options.tokenizer=this.options.tokenizer||new hi,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:ui.normal,inline:pi.normal};this.options.pedantic?(t.block=ui.pedantic,t.inline=pi.pedantic):this.options.gfm&&(t.block=ui.gfm,this.options.breaks?t.inline=pi.breaks:t.inline=pi.gfm),this.tokenizer.rules=t}static get rules(){return{block:ui,inline:pi}}static lex(e,t){return new mi(t).lex(e)}static lexInline(e,t){return new mi(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let i,n,o,s;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,i)=>t+" ".repeat(i.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(i=n.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))))if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),1===i.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const i=e.slice(1);let n;this.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},i),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o)))n=t[t.length-1],s&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let i,n,o,s,r,a,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+ci("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,s.index)+"["+ci("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,s.index+s[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(r||(a=""),r=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(i=n.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,l,a))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,gi))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,gi))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const i=e.slice(1);let n;this.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},i),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(i=this.tokenizer.inlineText(o,fi))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(a=i.raw.slice(-1)),r=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(i.raw.length),t.push(i);return t}}class vi{constructor(e){this.options=e||jt}code(e,t,i){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(i=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+Gt(n)+'">'+(i?e:Gt(e,!0))+"</code></pre>\n":"<pre><code>"+(i?e:Gt(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,i,n){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+n.slug(i)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,i){const n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+e+`</${i}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,i){if(null===(e=ti(this.options.sanitize,this.options.baseUrl,e)))return i;let n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+i+"</a>",n}image(e,t,i){if(null===(e=ti(this.options.sanitize,this.options.baseUrl,e)))return i;let n=`<img src="${e}" alt="${i}"`;return t&&(n+=` title="${t}"`),n+=this.options.xhtml?"/>":">",n}text(e){return e}}class bi{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,i){return""+i}image(e,t,i){return""+i}br(){return""}}class yi{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{n++,i=e+"-"+n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i}slug(e,t={}){const i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)}}class xi{constructor(e){this.options=e||jt,this.options.renderer=this.options.renderer||new vi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new bi,this.slugger=new yi}static parse(e,t){return new xi(t).parse(e)}static parseInline(e,t){return new xi(t).parseInline(e)}parse(e,t=!0){let i,n,o,s,r,a,l,c,d,h,u,p,f,g,m,v,b,y,x,w="";const k=e.length;for(i=0;i<k;i++)if(h=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type]&&(x=this.options.extensions.renderers[h.type].call({parser:this},h),!1!==x||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)))w+=x||"";else switch(h.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(h.tokens),h.depth,Qt(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(c="",l="",s=h.header.length,n=0;n<s;n++)l+=this.renderer.tablecell(this.parseInline(h.header[n].tokens),{header:!0,align:h.align[n]});for(c+=this.renderer.tablerow(l),d="",s=h.rows.length,n=0;n<s;n++){for(a=h.rows[n],l="",r=a.length,o=0;o<r;o++)l+=this.renderer.tablecell(this.parseInline(a[o].tokens),{header:!1,align:h.align[o]});d+=this.renderer.tablerow(l)}w+=this.renderer.table(c,d);continue;case"blockquote":d=this.parse(h.tokens),w+=this.renderer.blockquote(d);continue;case"list":for(u=h.ordered,p=h.start,f=h.loose,s=h.items.length,d="",n=0;n<s;n++)m=h.items[n],v=m.checked,b=m.task,g="",m.task&&(y=this.renderer.checkbox(v),f?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=y+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=y+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:y}):g+=y),g+=this.parse(m.tokens,f),d+=this.renderer.listitem(g,b,v);w+=this.renderer.list(d,u,p);continue;case"html":w+=this.renderer.html(h.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(d=h.tokens?this.parseInline(h.tokens):h.text;i+1<k&&"text"===e[i+1].type;)h=e[++i],d+="\n"+(h.tokens?this.parseInline(h.tokens):h.text);w+=t?this.renderer.paragraph(d):d;continue;default:{const e='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let i,n,o,s="";const r=e.length;for(i=0;i<r;i++)if(n=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]&&(o=this.options.extensions.renderers[n.type].call({parser:this},n),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)))s+=o||"";else switch(n.type){case"escape":case"text":s+=t.text(n.text);break;case"html":s+=t.html(n.text);break;case"link":s+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":s+=t.image(n.href,n.title,n.text);break;case"strong":s+=t.strong(this.parseInline(n.tokens,t));break;case"em":s+=t.em(this.parseInline(n.tokens,t));break;case"codespan":s+=t.codespan(n.text);break;case"br":s+=t.br();break;case"del":s+=t.del(this.parseInline(n.tokens,t));break;default:{const e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return s}}class wi{constructor(e){this.options=e||jt}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(e){return e}postprocess(e){return e}}function ki(e,t){return(i,n,o)=>{"function"==typeof n&&(o=n,n=null);const s={...n},r=function(e,t,i){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+Gt(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):i?void i(null,e):e}if(t)return Promise.reject(n);if(!i)throw n;i(n)}}((n={...Ci.defaults,...s}).silent,n.async,o);if(null==i)return r(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(n),n.hooks&&(n.hooks.options=n),o){const s=n.highlight;let a;try{n.hooks&&(i=n.hooks.preprocess(i)),a=e(i,n)}catch(e){return r(e)}const l=function(e){let i;if(!e)try{n.walkTokens&&Ci.walkTokens(a,n.walkTokens),i=t(a,n),n.hooks&&(i=n.hooks.postprocess(i))}catch(t){e=t}return n.highlight=s,e?r(e):o(null,i)};if(!s||s.length<3)return l();if(delete n.highlight,!a.length)return l();let c=0;return Ci.walkTokens(a,(function(e){"code"===e.type&&(c++,setTimeout((()=>{s(e.text,e.lang,(function(t,i){if(t)return l(t);null!=i&&i!==e.text&&(e.text=i,e.escaped=!0),c--,0===c&&l()}))}),0))})),void(0===c&&l())}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(i):i).then((t=>e(t,n))).then((e=>n.walkTokens?Promise.all(Ci.walkTokens(e,n.walkTokens)).then((()=>e)):e)).then((e=>t(e,n))).then((e=>n.hooks?n.hooks.postprocess(e):e)).catch(r);try{n.hooks&&(i=n.hooks.preprocess(i));const o=e(i,n);n.walkTokens&&Ci.walkTokens(o,n.walkTokens);let s=t(o,n);return n.hooks&&(s=n.hooks.postprocess(s)),s}catch(e){return r(e)}}}function Ci(e,t,i){return ki(mi.lex,xi.parse)(e,t,i)}function Ti({fmt:t,InnerTagUi:n}){if("text"in t)return e(i,{children:t.text});if("append"in t)return e(i,{children:t.append.map(((t,i)=>e(Ti,{fmt:t,InnerTagUi:n},i)))});if("tag"in t)return e(n,{fmt:t.tag[1],tag:t.tag[0]});throw new Error(`malformed 'TaggedText': '${t}'`)}function Ri({contents:t}){const i=new Ci.Renderer;i.code=(e,t)=>`<div class="font-code pre-wrap">${e}</div>`,i.codespan=e=>`<code class="font-code">${e}</code>`;const n={sanitizer:e=>"",sanitize:!0,silent:!0};n.renderer=i;const o=Ci.parse(t,n);return e("div",{dangerouslySetInnerHTML:{__html:o}})}function Si({info:o}){const s=n.useContext(ie),r=Q((()=>y(s,o.info)),[s,o.info]);return e(Ft.Provider,{value:void 0,children:e("div",{className:"tooltip-code-content",children:"resolved"===r.state?t(i,{children:[t("div",{className:"font-code tl pre-wrap",children:[r.value.exprExplicit&&e($i,{fmt:r.value.exprExplicit})," ",": ",r.value.type&&e($i,{fmt:r.value.type})]}),r.value.doc&&t(i,{children:[e("hr",{}),e(Ri,{contents:r.value.doc})]}),o.diffStatus&&t(i,{children:[e("hr",{}),e("div",{children:Ei[o.diffStatus]})]})]}):"rejected"===r.state?t(i,{children:["Error: ",K(r.error).message]}):e(i,{children:"Loading.."})})})}Ci.options=Ci.setOptions=function(e){var t;return Ci.defaults={...Ci.defaults,...e},t=Ci.defaults,jt=t,Ci},Ci.getDefaults=zt,Ci.defaults=jt,Ci.use=function(...e){const t=Ci.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const i={...e};if(i.async=Ci.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const i=t.renderers[e.name];t.renderers[e.name]=i?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=i.apply(this,t)),n}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),i.extensions=t),e.renderer){const t=Ci.defaults.renderer||new vi;for(const i in e.renderer){const n=t[i];t[i]=(...o)=>{let s=e.renderer[i].apply(t,o);return!1===s&&(s=n.apply(t,o)),s}}i.renderer=t}if(e.tokenizer){const t=Ci.defaults.tokenizer||new hi;for(const i in e.tokenizer){const n=t[i];t[i]=(...o)=>{let s=e.tokenizer[i].apply(t,o);return!1===s&&(s=n.apply(t,o)),s}}i.tokenizer=t}if(e.hooks){const t=Ci.defaults.hooks||new wi;for(const i in e.hooks){const n=t[i];wi.passThroughHooks.has(i)?t[i]=o=>{if(Ci.defaults.async)return Promise.resolve(e.hooks[i].call(t,o)).then((e=>n.call(t,e)));const s=e.hooks[i].call(t,o);return n.call(t,s)}:t[i]=(...o)=>{let s=e.hooks[i].apply(t,o);return!1===s&&(s=n.apply(t,o)),s}}i.hooks=t}if(e.walkTokens){const t=Ci.defaults.walkTokens;i.walkTokens=function(i){let n=[];return n.push(e.walkTokens.call(this,i)),t&&(n=n.concat(t.call(this,i))),n}}Ci.setOptions(i)}))},Ci.walkTokens=function(e,t){let i=[];for(const n of e)switch(i=i.concat(t.call(Ci,n)),n.type){case"table":for(const e of n.header)i=i.concat(Ci.walkTokens(e.tokens,t));for(const e of n.rows)for(const n of e)i=i.concat(Ci.walkTokens(n.tokens,t));break;case"list":i=i.concat(Ci.walkTokens(n.items,t));break;default:Ci.defaults.extensions&&Ci.defaults.extensions.childTokens&&Ci.defaults.extensions.childTokens[n.type]?Ci.defaults.extensions.childTokens[n.type].forEach((function(e){i=i.concat(Ci.walkTokens(n[e],t))})):n.tokens&&(i=i.concat(Ci.walkTokens(n.tokens,t)))}return i},Ci.parseInline=ki(mi.lexInline,xi.parseInline),Ci.Parser=xi,Ci.parser=xi.parse,Ci.Renderer=vi,Ci.TextRenderer=bi,Ci.Lexer=mi,Ci.lexer=mi.lex,Ci.Tokenizer=hi,Ci.Slugger=yi,Ci.Hooks=wi,Ci.parse=Ci,Ci.options,Ci.setOptions,Ci.use,Ci.walkTokens,Ci.parseInline,xi.parse,mi.lex;const Di={wasChanged:"inserted-text",willChange:"removed-text",wasInserted:"inserted-text",willInsert:"inserted-text",willDelete:"removed-text",wasDeleted:"removed-text"},Ei={wasChanged:"This subexpression has been modified.",willChange:"This subexpression will be modified.",wasInserted:"This subexpression has been inserted.",willInsert:"This subexpression will be inserted.",wasDeleted:"This subexpression has been removed.",willDelete:"This subexpression will be deleted."};function Ii({tag:t,fmt:i}){const o=n.useContext(ie),s=n.useContext(D),[r,a]=n.useState("off"),[l,c]=n.useState(!1),[d,h]=n.useState(void 0),u=n.useCallback((async()=>{if(void 0!==d)return d;try{const e=await x(o,"definition",t.info);if(e.length>0){const t={uri:e[0].targetUri,range:e[0].targetSelectionRange};return h(t),t}}catch(e){console.error("Error in go-to-definition: ",JSON.stringify(e))}}),[o,t.info,d]);n.useEffect((()=>{"ctrlOver"===r&&u()}),[r,u]);const p=n.useCallback((async e=>{const t=await u();void 0!==t?await s.revealPosition({uri:t.uri,...t.range.start}):e&&c(!0)}),[u,s]),f=n.useContext(Ft),g=f&&f.subexprTemplate&&t.subexprPos?_t.withSubexprPos(f.subexprTemplate,t.subexprPos):void 0;let m="ctrlOver"===r&&void 0!==d?"underline ":"";t.diffStatus&&(m+=Di[t.diffStatus]+" ");const v=n.useId(),b={interactiveCodeTagId:v};return N(s.events.goToDefinition,(async e=>{p(!0)}),[p],v),e(Ot,{tooltipChildren:`No definition found for '${R(i)}'`,isTooltipShown:l,hideTooltip:()=>c(!1),children:e(Lt,{"data-vscode-context":JSON.stringify(b),tooltipChildren:e(Si,{info:t}),onClick:(e,t)=>{e.ctrlKey||e.metaKey?(a((e=>"over"===e?"ctrlOver":e)),p(!1)):e.shiftKey||t(e)},onContextMenu:e=>{if("_InteractiveCodeTagSeen"in e)return;if(e._InteractiveCodeTagSeen={},!(e.target instanceof Node))return;if(!e.currentTarget.contains(e.target))return;const t=window.getSelection();t&&(t.removeAllRanges(),t.selectAllChildren(e.currentTarget))},children:e(qt,{setHoverState:a,className:m,locs:f,loc:g,alwaysHighlight:!0,children:e($i,{fmt:i})})})})}function $i(t){return e("span",{className:"font-code",children:e(Ti,{...t,InnerTagUi:Ii})})}function Oi(e){return e.indexOf("✝")>=0}function Pi(e){let t="";e.userName&&(t+=`case ${e.userName}\n`);for(const i of e.hyps){t+=`${S(i).join(" ")} : ${R(i.type)}`,i.val&&(t+=` := ${R(i.val)}`),t+="\n"}return t+=`⊢ ${R(e.type)}`,t}function Ai(e){return e.goals.map(Pi).join("\n\n")}function Mi({hyp:i,mvarId:o}){const s=n.useContext(Ft),r=(i.isInserted?"inserted-text ":"")+(i.isRemoved?"removed-text ":""),a=S(i).map(((n,a)=>t("span",{className:r+(Oi(n)?"goal-inaccessible ":""),children:[e(qt,{locs:s,loc:o&&i.fvarIds&&i.fvarIds.length>a?{mvarId:o,loc:{hyp:i.fvarIds[a]}}:void 0,alwaysHighlight:!1,children:n})," "]},a))),l=n.useMemo((()=>s&&o&&i.fvarIds&&i.fvarIds.length>0?{...s,subexprTemplate:{mvarId:o,loc:{hypType:[i.fvarIds[0],""]}}}:void 0),[s,o,i.fvarIds]),c=n.useMemo((()=>i.val&&s&&o&&i.fvarIds&&i.fvarIds.length>0?{...s,subexprTemplate:{mvarId:o,loc:{hypValue:[i.fvarIds[0],""]}}}:void 0),[i.val,s,o,i.fvarIds]);return t("div",{children:[e("strong",{className:"goal-hyp",children:a}),": ",e(Ft.Provider,{value:l,children:e($i,{fmt:i.type})}),i.val&&t(Ft.Provider,{value:c,children:[" := ",e($i,{fmt:i.val})]})]})}const Li=n.memo((i=>{const{goal:o,filter:s,additionalClassNames:r}=i,a=n.useContext(I),l=o.goalPrefix??"⊢ ",c=function(e,t){return e.reduce(((e,i)=>{if(i.isInstance&&!t.showInstance)return e;if(i.isType&&!t.showType)return e;const n=t.showHiddenAssumption?i.names:i.names.filter((e=>!Oi(e))),o=t.showLetValue?{...i,names:n}:{...i,names:n,val:void 0};return 0!==n.length&&e.push(o),e}),[])}(o.hyps,s),d=s.reverse?c.slice().reverse():c,h=n.useContext(Ft),u=n.useMemo((()=>h&&o.mvarId?{...h,subexprTemplate:{mvarId:o.mvarId,loc:{target:""}}}:void 0),[h,o.mvarId]),p=t("div",{children:[e("strong",{className:"goal-vdash",children:l}),e(Ft.Provider,{value:u,children:e($i,{fmt:o.type})})]},"goal");let f="font-code tl pre-wrap bl bw1 pl1 b--transparent mb3 "+r;i.goal.isInserted&&(f+=" b--inserted "),i.goal.isRemoved&&(f+=" b--removed ");const g=[s.reverse&&p,d.map(((t,i)=>e(Mi,{hyp:t,mvarId:o.mvarId},i))),!s.reverse&&p];return o.userName&&a.showGoalNames?t("details",{open:!0,className:f,children:[t("summary",{className:"mv1 pointer",children:[e("strong",{className:"goal-case",children:"case "}),o.userName]}),g]}):e("div",{className:f,children:g})}));function Ni({goals:o,filter:s,displayCount:r}){const a=o.goals.length,l=n.useContext(I);if(0===a)return e("strong",{className:"db2 mb2 goal-goals",children:"No goals"});{const n="o-70 font-size-code-smaller";return t(i,{children:[r&&t("strong",{className:"db mb2 goal-goals",children:[a," ",1<a?"goals":"goal"]}),o.goals.map(((t,i)=>e(Li,{goal:t,filter:s,additionalClassNames:0!==i&&l.emphasizeFirstGoal?n:""},i)))]})}}const _i=n.memo((({headerChildren:i,goals:o,displayCount:s,initiallyOpen:r,togglingAction:a})=>{const l=n.useContext(D),c=n.useContext(I),d=e("a",{className:"link pointer mh2 dim codicon codicon-quote","data-id":"copy-goal-to-comment",onClick:e=>{o&&l.copyToComment(Ai(o))},title:"copy state to comment"}),[h,u]=n.useState({reverse:c.reverseTacticState,showType:!0,showInstance:!0,showHiddenAssumption:!0,showLetValue:!0}),p="link pointer mh2 dim codicon "+(h.reverse?"codicon-arrow-up ":"codicon-arrow-down "),f=e("a",{className:p,title:"reverse list",onClick:e=>{u((e=>({...e,reverse:!e.reverse})))}}),g=(i,n,o)=>t("a",{className:"link pointer tooltip-menu-content",onClick:e=>{u(i)},children:[e("span",{className:"tooltip-menu-icon codicon "+(n(h)?"codicon-check ":"codicon-blank "),children:" "}),e("span",{className:"tooltip-menu-text ",children:o})]}),m=t("span",{children:[g((e=>({...e,showType:!e.showType})),(e=>e.showType),"types"),e("br",{}),g((e=>({...e,showInstance:!e.showInstance})),(e=>e.showInstance),"instances"),e("br",{}),g((e=>({...e,showHiddenAssumption:!e.showHiddenAssumption})),(e=>e.showHiddenAssumption),"hidden assumptions"),e("br",{}),g((e=>({...e,showLetValue:!e.showLetValue})),(e=>e.showLetValue),"let-values")]}),v=!(h.showInstance&&h.showType&&h.showHiddenAssumption&&h.showLetValue),b=e(Lt,{tooltipChildren:m,className:"dim ",children:e("a",{className:"link pointer mh2 codicon "+(v?"codicon-filter-filled ":"codicon-filter ")})}),y=n.useRef();return N(l.events.requestedAction,(e=>{void 0!==a&&void 0!==y.current&&y.current((e=>!e))}),[y,a],a),e("div",{style:{display:void 0!==o?"block":"none"},children:t(ne,{setOpenRef:e=>y.current=e,initiallyOpen:r,children:[t("summary",{className:"mv2 pointer",children:[i,t("span",{className:"fr",onClick:e=>{e.preventDefault()},children:[d,f,b]})]}),e("div",{className:"ml1",children:o&&e(Ni,{goals:o,filter:h,displayCount:s})})]})})}));function Fi({col:o,cls:s,msg:r}){const a=n.useContext(ie),[l,c]=X((()=>v(a,r,o)),[a,r,o]),[d,h]=n.useState(!1);return d?"resolved"===l.state?t(i,{children:[t("span",{className:"underline-hover pointer",onClick:e=>{h(!1),e.stopPropagation()},children:["[",s,"] ∨"]}),e(Ui,{fmt:l.value})]}):"rejected"===l.state?t(i,{children:[t("span",{className:"underline-hover pointer",onClick:e=>{c(),e.stopPropagation()},children:["[",s,"] Error (click to retry):"]})," ",K(l.error)]}):t("span",{children:["[",s,"] Loading.."]}):t("span",{className:"underline-hover pointer",onClick:e=>{c(),h(!0),e.stopPropagation()},children:["[",s,"] >"]})}const qi=n.createContext("");function zi({indent:i,cls:o,msg:s,icon:r}){const a=" ".repeat(i),l=function(e,t){const i=e.split("."),n=t.split(".");let o=0;for(;o<i.length&&o<n.length&&i[o]===n[o];o++);return n.slice(o).join(".")}(n.useContext(qi),o);return t("div",{className:"trace-line",children:[a,t("span",{className:"trace-class",title:o,children:["[",l,"]"]})," ",e(Ui,{fmt:s})," ",r]})}function ji(t){return e(zi,{...t,icon:""})}function Vi(o){const{cls:s,collapsed:r,children:a}=o,l=n.useContext(ie),[c,d]=X((async()=>"strict"in a?a.strict:b(l,a.lazy)),[l,a]),[h,u]=n.useState(!r);h&&"notStarted"===c.state&&d();let p=h?"▼":"▶";"loading"===c.state&&(p+=" ⋯");const f=n.useCallback((e=>{e.target instanceof Node&&e.currentTarget&&e.target&&e.currentTarget.contains(e.target)&&(e.stopPropagation(),h||d(),u((e=>!e)))}),[h,d]);return t("div",{children:[e("div",{className:"pointer",onClick:f,children:e(zi,{...o,icon:p})}),e("div",{style:{display:h?"block":"none"},children:e(qi.Provider,{value:s,children:"resolved"===c.state?c.value.map(((t,i)=>e(Ui,{fmt:t},i))):"rejected"===c.state?K(c.error).toString():e(i,{})})})]})}function Hi(t){const i="strict"in t.children&&0===t.children.strict.length;return e(i?ji:Vi,{...t})}function Bi({tag:i}){return"expr"in i?e($i,{fmt:i.expr}):"goal"in i?e(Li,{goal:i.goal,filter:{reverse:!1,showType:!0,showInstance:!0,showHiddenAssumption:!0,showLetValue:!0},additionalClassNames:""}):"lazyTrace"in i?e(Fi,{col:i.lazyTrace[0],cls:i.lazyTrace[1],msg:i.lazyTrace[2]}):"trace"in i?e(Hi,{...i.trace}):t("div",{children:["malformed MsgEmbed: ",JSON.stringify(i)]})}function Ui({fmt:e}){return Ti({fmt:e,InnerTagUi:Bi})}class Wi{api;events;constructor(e,t){this.api=e,this.events=t}async revealLocation(e){const t={uri:e.uri,selection:e.range};await this.api.showDocument(t)}async revealPosition(e){const t={uri:e.uri,range:{start:e,end:e}};await this.revealLocation(t)}async copyToComment(e){await this.api.insertText(`/-\n${e}\n-/`,"above")}requestPlainGoal(e){const t=P.toTdpp(e);return this.api.sendClientRequest(e.uri,"$/lean/plainGoal",t)}requestPlainTermGoal(e){const t=P.toTdpp(e);return this.api.sendClientRequest(e.uri,"$/lean/plainTermGoal",t)}}const Ki=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===Ki.trustedTypes&&(Ki.trustedTypes={createPolicy:(e,t)=>t});const Gi={configurable:!1,enumerable:!1,writable:!1};void 0===Ki.FAST&&Reflect.defineProperty(Ki,"FAST",Object.assign({value:Object.create(null)},Gi));const Xi=Ki.FAST;if(void 0===Xi.getById){const e=Object.create(null);Reflect.defineProperty(Xi,"getById",Object.assign({value(t,i){let n=e[t];return void 0===n&&(n=i?e[t]=i():null),n}},Gi))}const Qi=Object.freeze([]);function Yi(){const e=new WeakMap;return function(t){let i=e.get(t);if(void 0===i){let n=Reflect.getPrototypeOf(t);for(;void 0===i&&null!==n;)i=e.get(n),n=Reflect.getPrototypeOf(n);i=void 0===i?[]:i.slice(0),e.set(t,i)}return i}}const Zi=Ki.FAST.getById(1,(()=>{const e=[],t=[];function i(){if(t.length)throw t.shift()}function n(e){try{e.call()}catch(e){t.push(e),setTimeout(i,0)}}function o(){let t=0;for(;t<e.length;)if(n(e[t]),t++,t>1024){for(let i=0,n=e.length-t;i<n;i++)e[i]=e[i+t];e.length-=t,t=0}e.length=0}return Object.freeze({enqueue:function(t){e.length<1&&Ki.requestAnimationFrame(o),e.push(t)},process:o})})),Ji=Ki.trustedTypes.createPolicy("fast-html",{createHTML:e=>e});let en=Ji;const tn=`fast-${Math.random().toString(36).substring(2,8)}`,nn=`${tn}{`,on=`}${tn}`,sn=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(en!==Ji)throw new Error("The HTML policy can only be set once.");en=e},createHTML:e=>en.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(tn),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${tn}:`,"")),createInterpolationPlaceholder:e=>`${nn}${e}${on}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${tn}:${e}--\x3e`,queueUpdate:Zi.enqueue,processUpdates:Zi.process,nextUpdate:()=>new Promise(Zi.enqueue),setAttribute(e,t,i){null==i?e.removeAttribute(t):e.setAttribute(t,i)},setBooleanAttribute(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)});class rn{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else{-1===t.indexOf(e)&&t.push(e)}}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.source;if(void 0===t){const t=this.sub1,n=this.sub2;void 0!==t&&t.handleChange(i,e),void 0!==n&&n.handleChange(i,e)}else for(let n=0,o=t.length;n<o;++n)t[n].handleChange(i,e)}}class an{constructor(e){this.subscribers={},this.sourceSubscribers=null,this.source=e}notify(e){var t;const i=this.subscribers[e];void 0!==i&&i.notify(e),null===(t=this.sourceSubscribers)||void 0===t||t.notify(e)}subscribe(e,t){var i;if(t){let i=this.subscribers[t];void 0===i&&(this.subscribers[t]=i=new rn(this.source)),i.subscribe(e)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new rn(this.source),this.sourceSubscribers.subscribe(e)}unsubscribe(e,t){var i;if(t){const i=this.subscribers[t];void 0!==i&&i.unsubscribe(e)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(e)}}const ln=Xi.getById(2,(()=>{const e=/(:|&&|\|\||if)/,t=new WeakMap,i=sn.queueUpdate;let n,o=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function s(e){let i=e.$fastController||t.get(e);return void 0===i&&(Array.isArray(e)?i=o(e):t.set(e,i=new an(e))),i}const r=Yi();class a{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==n&&n.watch(e,this.name),e[this.field]}setValue(e,t){const i=this.field,n=e[i];if(n!==t){e[i]=t;const o=e[this.callback];"function"==typeof o&&o.call(e,n,t),s(e).notify(this.name)}}}class l extends rn{constructor(e,t,i=!1){super(e,t),this.binding=e,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const i=n;n=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(e,t);return n=i,o}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const i=this.last,o=s(e),r=null===i?this.first:{};if(r.propertySource=e,r.propertyName=t,r.notifier=o,o.subscribe(this,t),null!==i){if(!this.needsRefresh){let t;n=void 0,t=i.propertySource[i.propertyName],n=this,e===t&&(this.needsRefresh=!0)}i.next=r}this.last=r}handleChange(){this.needsQueue&&(this.needsQueue=!1,i(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){o=e},getNotifier:s,track(e,t){void 0!==n&&n.watch(e,t)},trackVolatile(){void 0!==n&&(n.needsRefresh=!0)},notify(e,t){s(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new a(t)),r(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:r,binding(e,t,i=this.isVolatileBinding(e)){return new l(e,t,i)},isVolatileBinding:t=>e.test(t.toString())})}));function cn(e,t){ln.defineProperty(e,t)}const dn=Xi.getById(3,(()=>{let e=null;return{get:()=>e,set(t){e=t}}}));class hn{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return dn.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){dn.set(e)}}ln.defineProperty(hn.prototype,"index"),ln.defineProperty(hn.prototype,"length");const un=Object.seal(new hn);class pn{constructor(){this.targetIndex=0}}class fn extends pn{constructor(){super(...arguments),this.createPlaceholder=sn.createInterpolationPlaceholder}}class gn extends pn{constructor(e,t,i){super(),this.name=e,this.behavior=t,this.options=i}createPlaceholder(e){return sn.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function mn(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=ln.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function vn(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function bn(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function yn(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function xn(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function wn(e){sn.setAttribute(this.target,this.targetName,e)}function kn(e){sn.setBooleanAttribute(this.target,this.targetName,e)}function Cn(e){if(null==e&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function Tn(e){this.target[this.targetName]=e}function Rn(e){const t=this.classVersions||Object.create(null),i=this.target;let n=this.version||0;if(null!=e&&e.length){const o=e.split(/\s+/);for(let e=0,s=o.length;e<s;++e){const s=o[e];""!==s&&(t[s]=n,i.classList.add(s))}}if(this.classVersions=t,this.version=n+1,0!==n){n-=1;for(const e in t)t[e]===n&&i.classList.remove(e)}}class Sn extends fn{constructor(e){super(),this.binding=e,this.bind=mn,this.unbind=bn,this.updateTarget=wn,this.isBindingVolatile=ln.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(e){if(this.originalTargetName=e,void 0!==e)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=Tn,"innerHTML"===this.cleanedTargetName){const e=this.binding;this.binding=(t,i)=>sn.createHTML(e(t,i))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=kn;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=vn,this.unbind=xn;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=Rn)}}targetAtContent(){this.updateTarget=Cn,this.unbind=yn}createBehavior(e){return new Dn(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class Dn{constructor(e,t,i,n,o,s,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=i,this.bind=n,this.unbind=o,this.updateTarget=s,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){hn.setEvent(e);const t=this.binding(this.source,this.context);hn.setEvent(null),!0!==t&&e.preventDefault()}}let En=null;class In{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){En=this}static borrow(e){const t=En||new In;return t.directives=e,t.reset(),En=null,t}}function $n(e){if(1===e.length)return e[0];let t;const i=e.length,n=e.map((e=>"string"==typeof e?()=>e:(t=e.targetName||t,e.binding))),o=new Sn(((e,t)=>{let o="";for(let s=0;s<i;++s)o+=n[s](e,t);return o}));return o.targetName=t,o}const On=on.length;function Pn(e,t){const i=t.split(nn);if(1===i.length)return null;const n=[];for(let t=0,o=i.length;t<o;++t){const o=i[t],s=o.indexOf(on);let r;if(-1===s)r=o;else{const t=parseInt(o.substring(0,s));n.push(e.directives[t]),r=o.substring(s+On)}""!==r&&n.push(r)}return n}function An(e,t,i=!1){const n=t.attributes;for(let o=0,s=n.length;o<s;++o){const r=n[o],a=r.value,l=Pn(e,a);let c=null;null===l?i&&(c=new Sn((()=>a)),c.targetName=r.name):c=$n(l),null!==c&&(t.removeAttributeNode(r),o--,s--,e.addFactory(c))}}function Mn(e,t,i){const n=Pn(e,t.textContent);if(null!==n){let o=t;for(let s=0,r=n.length;s<r;++s){const r=n[s],a=0===s?t:o.parentNode.insertBefore(document.createTextNode(""),o.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",e.captureContentBinding(r)),o=a,e.targetIndex++,a!==t&&i.nextNode()}e.targetIndex--}}const Ln=document.createRange();class Nn{constructor(e,t){this.fragment=e,this.behaviors=t,this.source=null,this.context=null,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let n,o=this.firstChild;for(;o!==t;)n=o.nextSibling,i.insertBefore(o,e),o=n;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i,n=this.firstChild;for(;n!==t;)i=n.nextSibling,e.appendChild(n),n=i;e.appendChild(t)}dispose(){const e=this.firstChild.parentNode,t=this.lastChild;let i,n=this.firstChild;for(;n!==t;)i=n.nextSibling,e.removeChild(n),n=i;e.removeChild(t);const o=this.behaviors,s=this.source;for(let e=0,t=o.length;e<t;++e)o[e].unbind(s)}bind(e,t){const i=this.behaviors;if(this.source!==e)if(null!==this.source){const n=this.source;this.source=e,this.context=t;for(let o=0,s=i.length;o<s;++o){const s=i[o];s.unbind(n),s.bind(e,t)}}else{this.source=e,this.context=t;for(let n=0,o=i.length;n<o;++n)i[n].bind(e,t)}}unbind(){if(null===this.source)return;const e=this.behaviors,t=this.source;for(let i=0,n=e.length;i<n;++i)e[i].unbind(t);this.source=null}static disposeContiguousBatch(e){if(0!==e.length){Ln.setStartBefore(e[0].firstChild),Ln.setEndAfter(e[e.length-1].lastChild),Ln.deleteContents();for(let t=0,i=e.length;t<i;++t){const i=e[t],n=i.behaviors,o=i.source;for(let e=0,t=n.length;e<t;++e)n[e].unbind(o)}}}}class _n{constructor(e,t){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=e,this.directives=t}create(e){if(null===this.fragment){let e;const t=this.html;if("string"==typeof t){e=document.createElement("template"),e.innerHTML=sn.createHTML(t);const i=e.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(e=i)}else e=t;const i=function(e,t){const i=e.content;document.adoptNode(i);const n=In.borrow(t);An(n,e,!0);const o=n.behaviorFactories;n.reset();const s=sn.createTemplateWalker(i);let r;for(;r=s.nextNode();)switch(n.targetIndex++,r.nodeType){case 1:An(n,r);break;case 3:Mn(n,r,s);break;case 8:sn.isMarker(r)&&n.addFactory(t[sn.extractDirectiveIndexFromMarker(r)])}let a=0;(sn.isMarker(i.firstChild)||1===i.childNodes.length&&t.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=n.behaviorFactories;return n.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:o,targetOffset:a}}(e,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const t=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,n=new Array(this.behaviorCount),o=sn.createTemplateWalker(t);let s=0,r=this.targetOffset,a=o.nextNode();for(let e=i.length;s<e;++s){const e=i[s],t=e.targetIndex;for(;null!==a;){if(r===t){n[s]=e.createBehavior(a);break}a=o.nextNode(),r++}}if(this.hasHostBehaviors){const t=this.hostBehaviorFactories;for(let i=0,o=t.length;i<o;++i,++s)n[s]=t[i].createBehavior(e)}return new Nn(t,n)}render(e,t,i){"string"==typeof t&&(t=document.getElementById(t)),void 0===i&&(i=t);const n=this.create(i);return n.bind(e,un),n.appendTo(t),n}}const Fn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function qn(e,...t){const i=[];let n="";for(let o=0,s=e.length-1;o<s;++o){const s=e[o];let r=t[o];if(n+=s,r instanceof _n){const e=r;r=()=>e}if("function"==typeof r&&(r=new Sn(r)),r instanceof fn){const e=Fn.exec(s);null!==e&&(r.targetName=e[2])}r instanceof pn?(n+=r.createPlaceholder(i.length),i.push(r)):n+=r}return n+=e[e.length-1],new _n(n,i)}class zn{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}}function jn(e){return e.map((e=>e instanceof zn?jn(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function Vn(e){return e.map((e=>e instanceof zn?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}zn.create=(()=>{if(sn.supportsAdoptedStyleSheets){const e=new Map;return t=>new Un(t,e)}return e=>new Kn(e)})();let Hn=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},Bn=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e)))};if(sn.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Hn=(e,t)=>{e.adoptedStyleSheets.push(...t)},Bn=(e,t)=>{for(const i of t){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(e){}class Un extends zn{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=Vn(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=jn(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let i=t.get(e);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(e),t.set(e,i)),i}))}return this._styleSheets}addStylesTo(e){Hn(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){Bn(e,this.styleSheets),super.removeStylesFrom(e)}}let Wn=0;class Kn extends zn{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=Vn(e),this.styleSheets=jn(e),this.styleClass="fast-style-class-"+ ++Wn}addStylesTo(e){const t=this.styleSheets,i=this.styleClass;e=this.normalizeTarget(e);for(let n=0;n<t.length;n++){const o=document.createElement("style");o.innerHTML=t[n],o.className=i,e.append(o)}super.addStylesTo(e)}removeStylesFrom(e){const t=(e=this.normalizeTarget(e)).querySelectorAll(`.${this.styleClass}`);for(let i=0,n=t.length;i<n;++i)e.removeChild(t[i]);super.removeStylesFrom(e)}isAttachedTo(e){return super.isAttachedTo(this.normalizeTarget(e))}normalizeTarget(e){return e===document?document.body:e}}const Gn=Object.freeze({locate:Yi()}),Xn={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},Qn={toView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t.toString()},fromView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}};class Yn{constructor(e,t,i=t.toLowerCase(),n="reflect",o){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=n,this.converter=o,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,"boolean"===n&&void 0===o&&(this.converter=Xn)}setValue(e,t){const i=e[this.fieldName],n=this.converter;void 0!==n&&(t=n.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return ln.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||"fromView"===t||sn.queueUpdate((()=>{i.add(e);const n=e[this.fieldName];switch(t){case"reflect":const t=this.converter;sn.setAttribute(e,this.attribute,void 0!==t?t.toView(n):n);break;case"boolean":sn.setBooleanAttribute(e,this.attribute,n)}i.delete(e)}))}static collect(e,...t){const i=[];t.push(Gn.locate(e));for(let n=0,o=t.length;n<o;++n){const o=t[n];if(void 0!==o)for(let t=0,n=o.length;t<n;++t){const n=o[t];"string"==typeof n?i.push(new Yn(e,n)):i.push(new Yn(e,n.property,n.attribute,n.mode,n.converter))}}return i}}function Zn(e,t){let i;function n(e,t){arguments.length>1&&(i.property=t),Gn.locate(e.constructor).push(i)}return arguments.length>1?(i={},void n(e,t)):(i=void 0===e?{}:e,n)}const Jn={mode:"open"},eo={},to=Xi.getById(4,(()=>{const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t)})}));class io{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const i=Yn.collect(e,t.attributes),n=new Array(i.length),o={},s={};for(let e=0,t=i.length;e<t;++e){const t=i[e];n[e]=t.attribute,o[t.name]=t,s[t.attribute]=t}this.attributes=i,this.observedAttributes=n,this.propertyLookup=o,this.attributeLookup=s,this.shadowOptions=void 0===t.shadowOptions?Jn:null===t.shadowOptions?void 0:Object.assign(Object.assign({},Jn),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?eo:Object.assign(Object.assign({},eo),t.elementOptions),this.styles=void 0===t.styles?void 0:Array.isArray(t.styles)?zn.create(t.styles):t.styles instanceof zn?t.styles:zn.create([t.styles])}get isDefined(){return!!to.getByType(this.type)}define(e=customElements){const t=this.type;if(to.register(this)){const e=this.attributes,i=t.prototype;for(let t=0,n=e.length;t<n;++t)ln.defineProperty(i,e[t]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}}io.forType=to.getByType;const no=new WeakMap,oo={bubbles:!0,composed:!0,cancelable:!0};function so(e){return e.shadowRoot||no.get(e)||null}class ro extends an{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;const i=t.shadowOptions;if(void 0!==i){const t=e.attachShadow(i);"closed"===i.mode&&no.set(e,t)}const n=ln.getAccessors(e);if(n.length>0){const t=this.boundObservables=Object.create(null);for(let i=0,o=n.length;i<o;++i){const o=n[i].name,s=e[o];void 0!==s&&(delete e[o],t[o]=s)}}}get isConnected(){return ln.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,ln.notify(this,"isConnected")}get template(){return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get styles(){return this._styles}set styles(e){this._styles!==e&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=e,this.needsInitialization||null===e||this.addStyles(e))}addStyles(e){const t=so(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){const i=e.behaviors;e.addStylesTo(t),null!==i&&this.addBehaviors(i)}}removeStyles(e){const t=so(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){const i=e.behaviors;e.removeStylesFrom(t),null!==i&&this.removeBehaviors(i)}}addBehaviors(e){const t=this.behaviors||(this.behaviors=new Map),i=e.length,n=[];for(let o=0;o<i;++o){const i=e[o];t.has(i)?t.set(i,t.get(i)+1):(t.set(i,1),n.push(i))}if(this._isConnected){const e=this.element;for(let t=0;t<n.length;++t)n[t].bind(e,un)}}removeBehaviors(e,t=!1){const i=this.behaviors;if(null===i)return;const n=e.length,o=[];for(let s=0;s<n;++s){const n=e[s];if(i.has(n)){const e=i.get(n)-1;0===e||t?i.delete(n)&&o.push(n):i.set(n,e)}}if(this._isConnected){const e=this.element;for(let t=0;t<o.length;++t)o[t].unbind(e)}}onConnectedCallback(){if(this._isConnected)return;const e=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(e,un);const t=this.behaviors;if(null!==t)for(const[i]of t)i.bind(e,un);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const e=this.view;null!==e&&e.unbind();const t=this.behaviors;if(null!==t){const e=this.element;for(const[i]of t)i.unbind(e)}}onAttributeChangedCallback(e,t,i){const n=this.definition.attributeLookup[e];void 0!==n&&n.onAttributeChangedCallback(this.element,i)}emit(e,t,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},oo),i)))}finishInitialization(){const e=this.element,t=this.boundObservables;if(null!==t){const i=Object.keys(t);for(let n=0,o=i.length;n<o;++n){const o=i[n];e[o]=t[o]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(e){const t=this.element,i=so(t)||t;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||sn.removeChildNodes(i),e&&(this.view=e.render(t,i,t))}static forCustomElement(e){const t=e.$fastController;if(void 0!==t)return t;const i=io.forType(e.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return e.$fastController=new ro(e,i)}}function ao(e){return class extends e{constructor(){super(),ro.forCustomElement(this)}$emit(e,t,i){return this.$fastController.emit(e,t,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(e,t,i){this.$fastController.onAttributeChangedCallback(e,t,i)}}}const lo=Object.assign(ao(HTMLElement),{from:e=>ao(e),define:(e,t)=>new io(e,t).define().type});class co{createCSS(){return""}createBehavior(){}}function ho(e,...t){const{styles:i,behaviors:n}=function(e,t){const i=[];let n="";const o=[];for(let s=0,r=e.length-1;s<r;++s){n+=e[s];let r=t[s];if(r instanceof co){const e=r.createBehavior();r=r.createCSS(),e&&o.push(e)}r instanceof zn||r instanceof CSSStyleSheet?(""!==n.trim()&&(i.push(n),n=""),i.push(r)):n+=r}return n+=e[e.length-1],""!==n.trim()&&i.push(n),{styles:i,behaviors:o}}(e,t),o=zn.create(i);return n.length&&o.withBehaviors(...n),o}function uo(e,t,i){return{index:e,removed:t,addedCount:i}}const po=0,fo=1,go=2,mo=3;function vo(e,t,i,n,o,s){let r=0,a=0;const l=Math.min(i-t,s-o);if(0===t&&0===o&&(r=function(e,t,i){for(let n=0;n<i;++n)if(e[n]!==t[n])return n;return i}(e,n,l)),i===e.length&&s===n.length&&(a=function(e,t,i){let n=e.length,o=t.length,s=0;for(;s<i&&e[--n]===t[--o];)s++;return s}(e,n,l-r)),o+=r,s-=a,(i-=a)-(t+=r)==0&&s-o==0)return Qi;if(t===i){const e=uo(t,[],0);for(;o<s;)e.removed.push(n[o++]);return[e]}if(o===s)return[uo(t,[],i-t)];const c=function(e){let t=e.length-1,i=e[0].length-1,n=e[t][i];const o=[];for(;t>0||i>0;){if(0===t){o.push(go),i--;continue}if(0===i){o.push(mo),t--;continue}const s=e[t-1][i-1],r=e[t-1][i],a=e[t][i-1];let l;l=r<a?r<s?r:s:a<s?a:s,l===s?(s===n?o.push(po):(o.push(fo),n=s),t--,i--):l===r?(o.push(mo),t--,n=r):(o.push(go),i--,n=a)}return o.reverse(),o}(function(e,t,i,n,o,s){const r=s-o+1,a=i-t+1,l=new Array(r);let c,d;for(let e=0;e<r;++e)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;++e)l[0][e]=e;for(let i=1;i<r;++i)for(let s=1;s<a;++s)e[t+s-1]===n[o+i-1]?l[i][s]=l[i-1][s-1]:(c=l[i-1][s]+1,d=l[i][s-1]+1,l[i][s]=c<d?c:d);return l}(e,t,i,n,o,s)),d=[];let h,u=t,p=o;for(let e=0;e<c.length;++e)switch(c[e]){case po:void 0!==h&&(d.push(h),h=void 0),u++,p++;break;case fo:void 0===h&&(h=uo(u,[],0)),h.addedCount++,u++,h.removed.push(n[p]),p++;break;case go:void 0===h&&(h=uo(u,[],0)),h.addedCount++,u++;break;case mo:void 0===h&&(h=uo(u,[],0)),h.removed.push(n[p]),p++}return void 0!==h&&d.push(h),d}const bo=Array.prototype.push;function yo(e,t,i,n){const o=uo(t,i,n);let s=!1,r=0;for(let t=0;t<e.length;t++){const i=e[t];if(i.index+=r,s)continue;const n=(a=o.index,l=o.index+o.removed.length,c=i.index,d=i.index+i.addedCount,l<c||d<a?-1:l===c||d===a?0:a<c?l<d?l-c:d-c:d<l?d-a:l-a);if(n>=0){e.splice(t,1),t--,r-=i.addedCount-i.removed.length,o.addedCount+=i.addedCount-n;const a=o.removed.length+i.removed.length-n;if(o.addedCount||a){let e=i.removed;if(o.index<i.index){const t=o.removed.slice(0,i.index-o.index);bo.apply(t,e),e=t}if(o.index+o.removed.length>i.index+i.addedCount){const t=o.removed.slice(i.index+i.addedCount-o.index);bo.apply(e,t)}o.removed=e,i.index<o.index&&(o.index=i.index)}else s=!0}else if(o.index<i.index){s=!0,e.splice(t,0,o),t++;const n=o.addedCount-o.removed.length;i.index+=n,r+=n}}var a,l,c,d;s||e.push(o)}function xo(e,t){let i=[];const n=function(e){const t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i];yo(t,n.index,n.removed,n.addedCount)}return t}(t);for(let t=0,o=n.length;t<o;++t){const o=n[t];1!==o.addedCount||1!==o.removed.length?i=i.concat(vo(e,o.index,o.index+o.addedCount,o.removed,0,o.removed.length)):o.removed[0]!==e[o.index]&&i.push(o)}return i}let wo=!1;function ko(e,t){let i=e.index;const n=t.length;return i>n?i=n-e.addedCount:i<0&&(i=n+e.removed.length+i-e.addedCount),i<0&&(i=0),e.index=i,e}class Co extends rn{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,sn.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,sn.queueUpdate(this))}flush(){const e=this.splices,t=this.oldCollection;if(void 0===e&&void 0===t)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===t?xo(this.source,e):vo(this.source,0,this.source.length,t,0,t.length);this.notify(i)}}class To{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function Ro(e){return new gn("fast-ref",To,e)}const So=e=>"function"==typeof e,Do=()=>null;function Eo(e){return void 0===e?Do:So(e)?e:()=>e}function Io(e,t,i){const n=So(e)?e:()=>e,o=Eo(t),s=Eo(i);return(e,t)=>n(e,t)?o(e,t):s(e,t)}function $o(e,t,i,n){e.bind(t[i],n)}function Oo(e,t,i,n){const o=Object.create(n);o.index=i,o.length=t.length,e.bind(t[i],o)}class Po{constructor(e,t,i,n,o,s){this.location=e,this.itemsBinding=t,this.templateBinding=n,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=$o,this.itemsBindingObserver=ln.binding(t,this,i),this.templateBindingObserver=ln.binding(n,this,o),s.positioning&&(this.bindView=Oo)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items)return void(this.items=Qi);const t=this.itemsObserver,i=this.itemsObserver=ln.getNotifier(this.items),n=t!==i;n&&null!==t&&t.unsubscribe(this),(n||e)&&i.subscribe(this)}updateViews(e){const t=this.childContext,i=this.views,n=this.bindView,o=this.items,s=this.template,r=this.options.recycle,a=[];let l=0,c=0;for(let d=0,h=e.length;d<h;++d){const h=e[d],u=h.removed;let p=0,f=h.index;const g=f+h.addedCount,m=i.splice(h.index,u.length),v=c=a.length+m.length;for(;f<g;++f){const e=i[f],d=e?e.firstChild:this.location;let h;r&&c>0?(p<=v&&m.length>0?(h=m[p],p++):(h=a[l],l++),c--):h=s.create(),i.splice(f,0,h),n(h,o,f,t),h.insertBefore(d)}m[p]&&a.push(...m.slice(p))}for(let e=l,t=a.length;e<t;++e)a[e].dispose();if(this.options.positioning)for(let e=0,t=i.length;e<t;++e){const n=i[e].context;n.length=t,n.index=e}}refreshAllViews(e=!1){const t=this.items,i=this.childContext,n=this.template,o=this.location,s=this.bindView;let r=t.length,a=this.views,l=a.length;if(0!==r&&!e&&this.options.recycle||(Nn.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let e=0;e<r;++e){const r=n.create();s(r,t,e,i),a[e]=r,r.insertBefore(o)}}else{let e=0;for(;e<r;++e)if(e<l){s(a[e],t,e,i)}else{const r=n.create();s(r,t,e,i),a.push(r),r.insertBefore(o)}const c=a.splice(e,l-e);for(e=0,r=c.length;e<r;++e)c[e].dispose()}}unbindAllViews(){const e=this.views;for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}class Ao extends pn{constructor(e,t,i){super(),this.itemsBinding=e,this.templateBinding=t,this.options=i,this.createPlaceholder=sn.createBlockPlaceholder,function(){if(wo)return;wo=!0,ln.setArrayObserverFactory((e=>new Co(e)));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,i=e.push,n=e.reverse,o=e.shift,s=e.sort,r=e.splice,a=e.unshift;e.pop=function(){const e=this.length>0,i=t.apply(this,arguments),n=this.$fastController;return void 0!==n&&e&&n.addSplice(uo(this.length,[i],0)),i},e.push=function(){const e=i.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(ko(uo(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=n.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.shift=function(){const e=this.length>0,t=o.apply(this,arguments),i=this.$fastController;return void 0!==i&&e&&i.addSplice(uo(0,[t],0)),t},e.sort=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=s.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.splice=function(){const e=r.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(ko(uo(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){const e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(ko(uo(0,[],arguments.length),this)),e}}(),this.isItemsBindingVolatile=ln.isVolatileBinding(e),this.isTemplateBindingVolatile=ln.isVolatileBinding(t)}createBehavior(e){return new Po(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Mo(e){return e?function(t,i,n){return 1===t.nodeType&&t.matches(e)}:function(e,t,i){return 1===e.nodeType}}class Lo{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=ln.getAccessors(e).some((e=>e.name===t)),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(Qi),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}class No extends Lo{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function _o(e){return"string"==typeof e&&(e={property:e}),new gn("fast-slotted",No,e)}class Fo extends Lo{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function qo(e){return"string"==typeof e&&(e={property:e}),new gn("fast-children",Fo,e)}class zo{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const jo=(e,t)=>qn`
|
|
2
|
+
<span
|
|
3
|
+
part="end"
|
|
4
|
+
${Ro("endContainer")}
|
|
5
|
+
class=${e=>t.end?"end":void 0}
|
|
6
|
+
>
|
|
7
|
+
<slot name="end" ${Ro("end")} @slotchange="${e=>e.handleEndContentChange()}">
|
|
8
|
+
${t.end||""}
|
|
9
|
+
</slot>
|
|
10
|
+
</span>
|
|
11
|
+
`,Vo=(e,t)=>qn`
|
|
12
|
+
<span
|
|
13
|
+
part="start"
|
|
14
|
+
${Ro("startContainer")}
|
|
15
|
+
class="${e=>t.start?"start":void 0}"
|
|
16
|
+
>
|
|
17
|
+
<slot
|
|
18
|
+
name="start"
|
|
19
|
+
${Ro("start")}
|
|
20
|
+
@slotchange="${e=>e.handleStartContentChange()}"
|
|
21
|
+
>
|
|
22
|
+
${t.start||""}
|
|
23
|
+
</slot>
|
|
24
|
+
</span>
|
|
25
|
+
`;
|
|
26
|
+
/*! *****************************************************************************
|
|
27
|
+
Copyright (c) Microsoft Corporation.
|
|
28
|
+
|
|
29
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
30
|
+
purpose with or without fee is hereby granted.
|
|
31
|
+
|
|
32
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
33
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
34
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
35
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
36
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
37
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
38
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
39
|
+
***************************************************************************** */
|
|
40
|
+
function Ho(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}qn`
|
|
41
|
+
<span part="end" ${Ro("endContainer")}>
|
|
42
|
+
<slot
|
|
43
|
+
name="end"
|
|
44
|
+
${Ro("end")}
|
|
45
|
+
@slotchange="${e=>e.handleEndContentChange()}"
|
|
46
|
+
></slot>
|
|
47
|
+
</span>
|
|
48
|
+
`,qn`
|
|
49
|
+
<span part="start" ${Ro("startContainer")}>
|
|
50
|
+
<slot
|
|
51
|
+
name="start"
|
|
52
|
+
${Ro("start")}
|
|
53
|
+
@slotchange="${e=>e.handleStartContentChange()}"
|
|
54
|
+
></slot>
|
|
55
|
+
</span>
|
|
56
|
+
`;const Bo=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(i){Reflect.defineMetadata(e,t,i)}},Reflect.defineMetadata=function(e,t,i){let n=Bo.get(i);void 0===n&&Bo.set(i,n=new Map),n.set(e,t)},Reflect.getOwnMetadata=function(e,t){const i=Bo.get(t);if(void 0!==i)return i.get(e)});class Uo{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,ps(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:i,key:n}=this;return this.container=this.key=void 0,i.registerResolver(n,new ts(n,e,t))}}function Wo(e){const t=e.slice(),i=Object.keys(e),n=i.length;let o;for(let s=0;s<n;++s)o=i[s],ws(o)||(t[o]=e[o]);return t}const Ko=Object.freeze({none(e){throw Error(`${e.toString()} not registered, did you forget to add @singleton()?`)},singleton:e=>new ts(e,1,e),transient:e=>new ts(e,2,e)}),Go=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Ko.singleton})}),Xo=new Map;function Qo(e){return t=>Reflect.getOwnMetadata(e,t)}let Yo=null;const Zo=Object.freeze({createContainer:e=>new hs(null,Object.assign({},Go.default,e)),findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:Zo.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(cs,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||Zo.getOrCreateDOMContainer()},getOrCreateDOMContainer:(e,t)=>e?e.$$container$$||new hs(e,Object.assign({},Go.default,t,{parentLocator:Zo.findParentContainer})):Yo||(Yo=new hs(null,Object.assign({},Go.default,t,{parentLocator:()=>null}))),getDesignParamtypes:Qo("design:paramtypes"),getAnnotationParamtypes:Qo("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=Xo.get(e);if(void 0===t){const i=e.inject;if(void 0===i){const i=Zo.getDesignParamtypes(e),n=Zo.getAnnotationParamtypes(e);if(void 0===i)if(void 0===n){const i=Object.getPrototypeOf(e);t="function"==typeof i&&i!==Function.prototype?Wo(Zo.getDependencies(i)):[]}else t=Wo(n);else if(void 0===n)t=Wo(i);else{t=Wo(i);let e,o=n.length;for(let i=0;i<o;++i)e=n[i],void 0!==e&&(t[i]=e);const s=Object.keys(n);let r;o=s.length;for(let e=0;e<o;++e)r=s[e],ws(r)||(t[r]=n[r])}}else t=Wo(i);Xo.set(e,t)}return t},defineProperty(e,t,i,n=!1){const o=`$di_${t}`;Reflect.defineProperty(e,t,{get:function(){let e=this[o];if(void 0===e){const s=this instanceof HTMLElement?Zo.findResponsibleContainer(this):Zo.getOrCreateDOMContainer();if(e=s.get(i),this[o]=e,n&&this instanceof lo){const n=this.$fastController,s=()=>{Zo.findResponsibleContainer(this).get(i)!==this[o]&&(this[o]=e,n.notify(t))};n.subscribe({handleChange:s},"isConnected")}}return e}})},createInterface(e,t){const i="function"==typeof e?e:t,n="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||vs,o="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),s=function(e,t,i){if(null==e||void 0!==new.target)throw new Error(`No registration for interface: '${s.friendlyName}'`);if(t)Zo.defineProperty(e,t,s,o);else{Zo.getOrCreateAnnotationParamTypes(e)[i]=s}};return s.$isInterface=!0,s.friendlyName=null==n?"(anonymous)":n,null!=i&&(s.register=function(e,t){return i(new Uo(e,null!=t?t:s))}),s.toString=function(){return`InterfaceSymbol<${s.friendlyName}>`},s},inject:(...e)=>function(t,i,n){if("number"==typeof n){const i=Zo.getOrCreateAnnotationParamTypes(t),o=e[0];void 0!==o&&(i[n]=o)}else if(i)Zo.defineProperty(t,i,e[0]);else{const i=n?Zo.getOrCreateAnnotationParamTypes(n.value):Zo.getOrCreateAnnotationParamTypes(t);let o;for(let t=0;t<e.length;++t)o=e[t],void 0!==o&&(i[t]=o)}},transient:e=>(e.register=function(t){return fs.transient(e,e).register(t)},e.registerInRequestor=!1,e),singleton:(e,t=es)=>(e.register=function(t){return fs.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e)}),Jo=Zo.createInterface("Container");Zo.inject;const es={scoped:!1};class ts{constructor(e,t,i){this.key=e,this.strategy=t,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(e,t){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=e.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,i,n;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(n=null===(i=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===i?void 0:i.call(t,e))&&void 0!==n?n:null;default:return null}}}function is(e){return this.get(e)}function ns(e,t){return t(e)}class os{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let i;return i=void 0===t?new this.Type(...this.dependencies.map(is,e)):new this.Type(...this.dependencies.map(is,e),...t),null==this.transformers?i:this.transformers.reduce(ns,i)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const ss={$isResolver:!0,resolve:(e,t)=>t};function rs(e){return"function"==typeof e.register}function as(e){return function(e){return rs(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}const ls=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),cs="__DI_LOCATE_PARENT__",ds=new Map;class hs{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,null!==e&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(Jo,ss),e instanceof Node&&e.addEventListener(cs,(e=>{e.composedPath()[0]!==this.owner&&(e.detail.container=this,e.stopImmediatePropagation())}))}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){return this.context=e,this.register(...t),this.context=null,this}register(...e){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let t,i,n,o,s;const r=this.context;for(let a=0,l=e.length;a<l;++a)if(t=e[a],bs(t))if(rs(t))t.register(this,r);else if(void 0!==t.prototype)fs.singleton(t,t).register(this);else for(i=Object.keys(t),o=0,s=i.length;o<s;++o)n=t[i[o]],bs(n)&&(rs(n)?n.register(this,r):this.register(n));return--this.registerDepth,this}registerResolver(e,t){gs(e);const i=this.resolvers,n=i.get(e);return null==n?i.set(e,t):n instanceof ts&&4===n.strategy?n.state.push(t):i.set(e,new ts(e,4,[n,t])),t}registerTransformer(e,t){const i=this.getResolver(e);if(null==i)return!1;if(i.getFactory){const e=i.getFactory(this);return null!=e&&(e.registerTransformer(t),!0)}return!1}getResolver(e,t=!0){if(gs(e),void 0!==e.resolve)return e;let i,n=this;for(;null!=n;){if(i=n.resolvers.get(e),null!=i)return i;if(null==n.parent){const i=as(e)?this:n;return t?this.jitRegister(e,i):null}n=n.parent}return null}has(e,t=!1){return!!this.resolvers.has(e)||!(!t||null==this.parent)&&this.parent.has(e,!0)}get(e){if(gs(e),e.$isResolver)return e.resolve(this,this);let t,i=this;for(;null!=i;){if(t=i.resolvers.get(e),null!=t)return t.resolve(i,this);if(null==i.parent){const n=as(e)?this:i;return t=this.jitRegister(e,n),t.resolve(i,this)}i=i.parent}throw new Error(`Unable to resolve key: ${String(e)}`)}getAll(e,t=!1){gs(e);const i=this;let n,o=i;if(t){let t=Qi;for(;null!=o;)n=o.resolvers.get(e),null!=n&&(t=t.concat(ms(n,o,i))),o=o.parent;return t}for(;null!=o;){if(n=o.resolvers.get(e),null!=n)return ms(n,o,i);if(o=o.parent,null==o)return Qi}return Qi}getFactory(e){let t=ds.get(e);if(void 0===t){if(ys(e))throw new Error(`${e.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);ds.set(e,t=new os(e,Zo.getDependencies(e)))}return t}registerFactory(e,t){ds.set(e,t)}createChild(e){return new hs(null,Object.assign({},this.config,e,{parentLocator:()=>this}))}jitRegister(e,t){if("function"!=typeof e)throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(ls.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(rs(e)){const i=e.register(t);if(!(i instanceof Object)||null==i.resolve){const i=t.resolvers.get(e);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{const i=this.config.defaultResolver(e,t);return t.resolvers.set(e,i),i}}}const us=new WeakMap;function ps(e){return function(t,i,n){if(us.has(n))return us.get(n);const o=e(t,i,n);return us.set(n,o),o}}const fs=Object.freeze({instance:(e,t)=>new ts(e,0,t),singleton:(e,t)=>new ts(e,1,t),transient:(e,t)=>new ts(e,2,t),callback:(e,t)=>new ts(e,3,t),cachedCallback:(e,t)=>new ts(e,3,ps(t)),aliasTo:(e,t)=>new ts(t,5,e)});function gs(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function ms(e,t,i){if(e instanceof ts&&4===e.strategy){const n=e.state;let o=n.length;const s=new Array(o);for(;o--;)s[o]=n[o].resolve(t,i);return s}return[e.resolve(t,i)]}const vs="(anonymous)";function bs(e){return"object"==typeof e&&null!==e||"function"==typeof e}const ys=function(){const e=new WeakMap;let t=!1,i="",n=0;return function(o){return t=e.get(o),void 0===t&&(i=o.toString(),n=i.length,t=n>=29&&n<=100&&125===i.charCodeAt(n-1)&&i.charCodeAt(n-2)<=32&&93===i.charCodeAt(n-3)&&101===i.charCodeAt(n-4)&&100===i.charCodeAt(n-5)&&111===i.charCodeAt(n-6)&&99===i.charCodeAt(n-7)&&32===i.charCodeAt(n-8)&&101===i.charCodeAt(n-9)&&118===i.charCodeAt(n-10)&&105===i.charCodeAt(n-11)&&116===i.charCodeAt(n-12)&&97===i.charCodeAt(n-13)&&110===i.charCodeAt(n-14)&&88===i.charCodeAt(n-15),e.set(o,t)),t}}(),xs={};function ws(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":{const t=xs[e];if(void 0!==t)return t;const i=e.length;if(0===i)return xs[e]=!1;let n=0;for(let t=0;t<i;++t)if(n=e.charCodeAt(t),0===t&&48===n&&i>1||n<48||n>57)return xs[e]=!1;return xs[e]=!0}default:return!1}}function ks(e){return`${e.toLowerCase()}:presentation`}const Cs=new Map,Ts=Object.freeze({define(e,t,i){const n=ks(e);void 0===Cs.get(n)?Cs.set(n,t):Cs.set(n,!1),i.register(fs.instance(n,t))},forTag(e,t){const i=ks(e),n=Cs.get(i);if(!1===n){return Zo.findResponsibleContainer(t).get(i)}return n||null}});class Rs{constructor(e,t){this.template=e||null,this.styles=void 0===t?null:Array.isArray(t)?zn.create(t):t instanceof zn?t:zn.create([t])}applyTo(e){const t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}class Ss extends lo{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Ts.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(t={})=>new Es(this===Ss?class extends Ss{}:this,e,t)}}function Ds(e,t,i){return"function"==typeof e?e(t,i):e}Ho([cn],Ss.prototype,"template",void 0),Ho([cn],Ss.prototype,"styles",void 0);class Es{constructor(e,t,i){this.type=e,this.elementDefinition=t,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){const i=this.definition,n=this.overrideDefinition,o=`${i.prefix||t.elementPrefix}-${i.baseName}`;t.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:e=>{const t=new Rs(Ds(i.template,e,i),Ds(i.styles,e,i));e.definePresentation(t);let o=Ds(i.shadowOptions,e,i);e.shadowRootMode&&(o?n.shadowOptions||(o.mode=e.shadowRootMode):null!==o&&(o={mode:e.shadowRootMode})),e.defineElement({elementOptions:Ds(i.elementOptions,e,i),shadowOptions:o,attributes:Ds(i.attributes,e,i)})}})}}function Is(e,...t){const i=Gn.locate(e);t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{"constructor"!==i&&Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i))}));Gn.locate(t).forEach((e=>i.push(e)))}))}class $s extends Ss{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=e=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}Ho([Zn({attribute:"heading-level",mode:"fromView",converter:Qn})],$s.prototype,"headinglevel",void 0),Ho([Zn({mode:"boolean"})],$s.prototype,"expanded",void 0),Ho([Zn],$s.prototype,"id",void 0),Is($s,zo);const Os="horizontal",Ps="vertical";function As(...e){return e.every((e=>e instanceof HTMLElement))}let Ms;const Ls="focus",Ns="focusin",_s="focusout",Fs="keydown",qs="resize",zs="scroll";var js;!function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"}(js||(js={}));const Vs="ArrowDown",Hs="ArrowLeft",Bs="ArrowRight",Us="ArrowUp",Ws="Enter",Ks="Escape",Gs="Home",Xs="End",Qs=" ",Ys="Tab",Zs={ArrowDown:Vs,ArrowLeft:Hs,ArrowRight:Bs,ArrowUp:Us};var Js;function er(e,t,i){return Math.min(Math.max(i,e),t)}function tr(e,t,i=0){return[t,i]=[t,i].sort(((e,t)=>e-t)),t<=e&&e<i}!function(e){e.ltr="ltr",e.rtl="rtl"}(Js||(Js={}));let ir=0;function nr(e=""){return`${e}${ir++}`}const or="single",sr="multi";class rr extends Ss{constructor(){super(...arguments),this.expandmode=sr,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{var e;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach(((e,t)=>{e instanceof $s&&(e.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==t?e.expanded=!1:e.expanded=!0));const i=this.accordionIds[t];e.setAttribute("id","string"!=typeof i?`accordion-${t+1}`:i),this.activeid=this.accordionIds[this.activeItemIndex],e.addEventListener("keydown",this.handleItemKeyDown),e.addEventListener("focus",this.handleItemFocus)})),this.isSingleExpandMode())){(null!==(e=this.findExpandedItem())&&void 0!==e?e:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=e=>{e.forEach(((e,t)=>{e.removeEventListener("change",this.activeItemChange),e.removeEventListener("keydown",this.handleItemKeyDown),e.removeEventListener("focus",this.handleItemFocus)}))},this.activeItemChange=e=>{if(e.defaultPrevented||e.target!==e.currentTarget)return;e.preventDefault();const t=e.target;this.activeid=t.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),t.expanded=!0,t.setAttribute("aria-disabled","true"),this.accordionItems.forEach((e=>{e.hasAttribute("disabled")||e.id===this.activeid||e.removeAttribute("aria-disabled")}))),this.activeItemIndex=Array.from(this.accordionItems).indexOf(t),this.change()},this.handleItemKeyDown=e=>{if(e.target===e.currentTarget)switch(this.accordionIds=this.getItemIds(),e.key){case Us:e.preventDefault(),this.adjust(-1);break;case Vs:e.preventDefault(),this.adjust(1);break;case Gs:this.activeItemIndex=0,this.focusItem();break;case Xs:this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=e=>{if(e.target===e.currentTarget){const t=e.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(e,t){this.$fastController.isConnected&&(this.removeItemListeners(e),this.setItems())}findExpandedItem(){for(let e=0;e<this.accordionItems.length;e++)if("true"===this.accordionItems[e].getAttribute("expanded"))return this.accordionItems[e];return null}resetItems(){this.accordionItems.forEach(((e,t)=>{e.expanded=!1}))}getItemIds(){return this.accordionItems.map((e=>e.getAttribute("id")))}isSingleExpandMode(){return this.expandmode===or}adjust(e){this.activeItemIndex=function(e,t,i){return i<e?t:i>t?e:i}(0,this.accordionItems.length-1,this.activeItemIndex+e),this.focusItem()}focusItem(){const e=this.accordionItems[this.activeItemIndex];e instanceof $s&&e.expandbutton.focus()}}Ho([Zn({attribute:"expand-mode"})],rr.prototype,"expandmode",void 0),Ho([cn],rr.prototype,"accordionItems",void 0);class ar{}Ho([Zn({attribute:"aria-atomic"})],ar.prototype,"ariaAtomic",void 0),Ho([Zn({attribute:"aria-busy"})],ar.prototype,"ariaBusy",void 0),Ho([Zn({attribute:"aria-controls"})],ar.prototype,"ariaControls",void 0),Ho([Zn({attribute:"aria-current"})],ar.prototype,"ariaCurrent",void 0),Ho([Zn({attribute:"aria-describedby"})],ar.prototype,"ariaDescribedby",void 0),Ho([Zn({attribute:"aria-details"})],ar.prototype,"ariaDetails",void 0),Ho([Zn({attribute:"aria-disabled"})],ar.prototype,"ariaDisabled",void 0),Ho([Zn({attribute:"aria-errormessage"})],ar.prototype,"ariaErrormessage",void 0),Ho([Zn({attribute:"aria-flowto"})],ar.prototype,"ariaFlowto",void 0),Ho([Zn({attribute:"aria-haspopup"})],ar.prototype,"ariaHaspopup",void 0),Ho([Zn({attribute:"aria-hidden"})],ar.prototype,"ariaHidden",void 0),Ho([Zn({attribute:"aria-invalid"})],ar.prototype,"ariaInvalid",void 0),Ho([Zn({attribute:"aria-keyshortcuts"})],ar.prototype,"ariaKeyshortcuts",void 0),Ho([Zn({attribute:"aria-label"})],ar.prototype,"ariaLabel",void 0),Ho([Zn({attribute:"aria-labelledby"})],ar.prototype,"ariaLabelledby",void 0),Ho([Zn({attribute:"aria-live"})],ar.prototype,"ariaLive",void 0),Ho([Zn({attribute:"aria-owns"})],ar.prototype,"ariaOwns",void 0),Ho([Zn({attribute:"aria-relevant"})],ar.prototype,"ariaRelevant",void 0),Ho([Zn({attribute:"aria-roledescription"})],ar.prototype,"ariaRoledescription",void 0);class lr extends Ss{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{var e;null===(e=this.control)||void 0===e||e.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}Ho([Zn],lr.prototype,"download",void 0),Ho([Zn],lr.prototype,"href",void 0),Ho([Zn],lr.prototype,"hreflang",void 0),Ho([Zn],lr.prototype,"ping",void 0),Ho([Zn],lr.prototype,"referrerpolicy",void 0),Ho([Zn],lr.prototype,"rel",void 0),Ho([Zn],lr.prototype,"target",void 0),Ho([Zn],lr.prototype,"type",void 0),Ho([cn],lr.prototype,"defaultSlottedContent",void 0);class cr{}Ho([Zn({attribute:"aria-expanded"})],cr.prototype,"ariaExpanded",void 0),Is(cr,ar),Is(lr,zo,cr);const dr=e=>{const t=e.closest("[dir]");return null!==t&&"rtl"===t.dir?Js.rtl:Js.ltr};class hr extends Ss{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=Js.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(hr.intersectionService.requestPosition(this,this.handleIntersection),hr.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&hr.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,hr.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&hr.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&hr.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=e=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(e)&&this.updateLayout())},this.applyIntersectionEntries=e=>{const t=e.find((e=>e.target===this)),i=e.find((e=>e.target===this.anchorElement)),n=e.find((e=>e.target===this.viewportElement));return void 0!==t&&void 0!==n&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,n.boundingClientRect)||this.isRectDifferent(this.regionRect,t.boundingClientRect))&&(this.regionRect=t.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(n.boundingClientRect.x+document.documentElement.scrollLeft,n.boundingClientRect.y+document.documentElement.scrollTop,n.boundingClientRect.width,n.boundingClientRect.height):this.viewportRect=n.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(e,t)=>Math.abs(e.top-t.top)>this.updateThreshold||Math.abs(e.right-t.right)>this.updateThreshold||Math.abs(e.bottom-t.bottom)>this.updateThreshold||Math.abs(e.left-t.left)>this.updateThreshold,this.handleResize=e=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=dr(this),this.startObservers())},this.updateLayout=()=>{let e,t;if("uncontrolled"!==this.horizontalPositioningMode){const e=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)t="center";else if("unset"!==this.horizontalDefaultPosition){let e=this.horizontalDefaultPosition;if("start"===e||"end"===e){const t=dr(this);if(t!==this.currentDirection)return this.currentDirection=t,void this.initialize();e=this.currentDirection===Js.ltr?"start"===e?"left":"right":"start"===e?"right":"left"}switch(e){case"left":t=this.horizontalInset?"insetStart":"start";break;case"right":t=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,n=void 0!==this.anchorRect?this.anchorRect.left:0,o=void 0!==this.anchorRect?this.anchorRect.right:0,s=void 0!==this.anchorRect?this.anchorRect.width:0,r=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===t||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(t,n,o,s,r,a)<i)&&(t=this.getAvailableSpace(e[0],n,o,s,r,a)>this.getAvailableSpace(e[1],n,o,s,r,a)?e[0]:e[1])}if("uncontrolled"!==this.verticalPositioningMode){const t=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)e="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":e=this.verticalInset?"insetStart":"start";break;case"bottom":e=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,n=void 0!==this.anchorRect?this.anchorRect.top:0,o=void 0!==this.anchorRect?this.anchorRect.bottom:0,s=void 0!==this.anchorRect?this.anchorRect.height:0,r=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===e||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(e,n,o,s,r,a)<i)&&(e=this.getAvailableSpace(t[0],n,o,s,r,a)>this.getAvailableSpace(t[1],n,o,s,r,a)?t[0]:t[1])}const i=this.getNextRegionDimension(t,e),n=this.horizontalPosition!==t||this.verticalPosition!==e;if(this.setHorizontalPosition(t,i),this.setVerticalPosition(e,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),n&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(e,t)=>{if(void 0===e||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:t.width,this.regionWidth=`${i}px`;break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let n=0;switch(e){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(n=(this.anchorRect.width-i)/2,this.translateX=this.baseHorizontalOffset+n,this.horizontalViewportLock){const e=this.anchorRect.left+n,t=this.anchorRect.right-n;e<this.viewportRect.left&&!(t>this.viewportRect.right)?this.translateX=this.translateX-(e-this.viewportRect.left):t>this.viewportRect.right&&!(e<this.viewportRect.left)&&(this.translateX=this.translateX-(t-this.viewportRect.right))}}this.horizontalPosition=e},this.setVerticalPosition=(e,t)=>{if(void 0===e||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:t.height,this.regionHeight=`${i}px`;break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let n=0;switch(e){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(n=(this.anchorRect.height-i)/2,this.translateY=this.baseVerticalOffset+n,this.verticalViewportLock){const e=this.anchorRect.top+n,t=this.anchorRect.bottom-n;e<this.viewportRect.top&&!(t>this.viewportRect.bottom)?this.translateY=this.translateY-(e-this.viewportRect.top):t>this.viewportRect.bottom&&!(e<this.viewportRect.top)&&(this.translateY=this.translateY-(t-this.viewportRect.bottom))}}this.verticalPosition=e},this.getPositioningOptions=e=>e?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(e,t,i,n,o,s)=>{const r=t-o,a=s-(t+n);switch(e){case"start":return r;case"insetStart":return r+n;case"insetEnd":return a+n;case"end":return a;case"center":return 2*Math.min(r,a)+n}},this.getNextRegionDimension=(e,t)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==e&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==t&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener(qs,this.update,{passive:!0}),window.addEventListener(zs,this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(qs,this.update),window.removeEventListener(zs,this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(e,t){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===e&&this.stopAutoUpdateEventListeners(),"auto"===t&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),sn.queueUpdate((()=>this.reset())),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}hr.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(e,t)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(e)?null===(i=this.observedElements.get(e))||void 0===i||i.push(t):(this.observedElements.set(e,[t]),this.intersectionDetector.observe(e)))},this.cancelRequestPosition=(e,t)=>{const i=this.observedElements.get(e);if(void 0!==i){const e=i.indexOf(t);-1!==e&&i.splice(e,1)}},this.initializeIntersectionDetector=()=>{Ki.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=e=>{if(null===this.intersectionDetector)return;const t=[],i=[];e.forEach((e=>{var n;null===(n=this.intersectionDetector)||void 0===n||n.unobserve(e.target);const o=this.observedElements.get(e.target);void 0!==o&&(o.forEach((n=>{let o=t.indexOf(n);-1===o&&(o=t.length,t.push(n),i.push([])),i[o].push(e)})),this.observedElements.delete(e.target))})),t.forEach(((e,t)=>{e(i[t])}))},this.initializeIntersectionDetector()}},Ho([Zn],hr.prototype,"anchor",void 0),Ho([Zn],hr.prototype,"viewport",void 0),Ho([Zn({attribute:"horizontal-positioning-mode"})],hr.prototype,"horizontalPositioningMode",void 0),Ho([Zn({attribute:"horizontal-default-position"})],hr.prototype,"horizontalDefaultPosition",void 0),Ho([Zn({attribute:"horizontal-viewport-lock",mode:"boolean"})],hr.prototype,"horizontalViewportLock",void 0),Ho([Zn({attribute:"horizontal-inset",mode:"boolean"})],hr.prototype,"horizontalInset",void 0),Ho([Zn({attribute:"horizontal-threshold"})],hr.prototype,"horizontalThreshold",void 0),Ho([Zn({attribute:"horizontal-scaling"})],hr.prototype,"horizontalScaling",void 0),Ho([Zn({attribute:"vertical-positioning-mode"})],hr.prototype,"verticalPositioningMode",void 0),Ho([Zn({attribute:"vertical-default-position"})],hr.prototype,"verticalDefaultPosition",void 0),Ho([Zn({attribute:"vertical-viewport-lock",mode:"boolean"})],hr.prototype,"verticalViewportLock",void 0),Ho([Zn({attribute:"vertical-inset",mode:"boolean"})],hr.prototype,"verticalInset",void 0),Ho([Zn({attribute:"vertical-threshold"})],hr.prototype,"verticalThreshold",void 0),Ho([Zn({attribute:"vertical-scaling"})],hr.prototype,"verticalScaling",void 0),Ho([Zn({attribute:"fixed-placement",mode:"boolean"})],hr.prototype,"fixedPlacement",void 0),Ho([Zn({attribute:"auto-update-mode"})],hr.prototype,"autoUpdateMode",void 0),Ho([cn],hr.prototype,"anchorElement",void 0),Ho([cn],hr.prototype,"viewportElement",void 0),Ho([cn],hr.prototype,"initialLayoutComplete",void 0);const ur={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:!1,horizontalScaling:"anchor"},pr=Object.assign(Object.assign({},ur),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),fr=Object.assign(Object.assign({},ur),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),gr=Object.assign(Object.assign({},ur),{verticalPositioningMode:"dynamic",verticalInset:!1,verticalScaling:"content"}),mr=Object.assign(Object.assign({},pr),{verticalScaling:"fill"}),vr=Object.assign(Object.assign({},fr),{verticalScaling:"fill"}),br=Object.assign(Object.assign({},gr),{verticalScaling:"fill"});class yr extends Ss{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}}Ho([Zn],yr.prototype,"fill",void 0),Ho([Zn],yr.prototype,"color",void 0),Ho([Zn],yr.prototype,"link",void 0),Ho([Zn],yr.prototype,"shape",void 0);const xr=(e,t)=>qn`
|
|
57
|
+
<template class="${e=>e.circular?"circular":""}">
|
|
58
|
+
<div class="control" part="control" style="${e=>e.generateBadgeStyle()}">
|
|
59
|
+
<slot></slot>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
`;let wr=class extends Ss{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const e=`background-color: var(--badge-fill-${this.fill});`,t=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?e:this.color&&!this.fill?t:`${t} ${e}`}}};Ho([Zn({attribute:"fill"})],wr.prototype,"fill",void 0),Ho([Zn({attribute:"color"})],wr.prototype,"color",void 0),Ho([Zn({mode:"boolean"})],wr.prototype,"circular",void 0);class kr extends lr{constructor(){super(...arguments),this.separator=!0}}Ho([cn],kr.prototype,"separator",void 0),Is(kr,zo,cr);Ho([cn],class extends Ss{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(void 0===this.slottedBreadcrumbItems||0===this.slottedBreadcrumbItems.length)return;const e=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach((t=>{const i=t===e;this.setItemSeparator(t,i),this.setAriaCurrent(t,i)}))}}setItemSeparator(e,t){e instanceof kr&&(e.separator=!t)}findChildWithHref(e){var t,i;return e.childElementCount>0?e.querySelector("a[href]"):(null===(t=e.shadowRoot)||void 0===t?void 0:t.childElementCount)?null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector("a[href]"):null}setAriaCurrent(e,t){const i=this.findChildWithHref(e);null===i&&e.hasAttribute("href")&&e instanceof kr?t?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current"):null!==i&&(t?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current"))}}.prototype,"slottedBreadcrumbItems",void 0);const Cr="form-associated-proxy",Tr="ElementInternals",Rr=Tr in window&&"setFormValue"in window[Tr].prototype,Sr=new WeakMap;function Dr(e){const t=class extends e{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return Rr}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=e?t.concat(Array.from(e)):t;return Object.freeze(i)}return Qi}valueChanged(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),sn.queueUpdate((()=>this.classList.toggle("disabled",this.disabled)))}nameChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),sn.queueUpdate((()=>this.classList.toggle("required",this.required))),this.validate()}get elementInternals(){if(!Rr)return null;let e=Sr.get(this);return e||(e=this.attachInternals(),Sr.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach((e=>this.proxy.removeEventListener(e,this.stopPropagation))),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,i){this.elementInternals?this.elementInternals.setValidity(e,t,i):"string"==typeof t&&this.proxy.setCustomValidity(t)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((e=>this.proxy.addEventListener(e,this.stopPropagation))),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",Cr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Cr)),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}_keypressHandler(e){if(e.key===Ws)if(this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");null==e||e.click()}}stopPropagation(e){e.stopPropagation()}};return Zn({mode:"boolean"})(t.prototype,"disabled"),Zn({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),Zn({attribute:"current-value"})(t.prototype,"currentValue"),Zn(t.prototype,"name"),Zn({mode:"boolean"})(t.prototype,"required"),cn(t.prototype,"value"),t}function Er(e){class t extends(Dr(e)){}class i extends t{constructor(...e){super(e),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(e,t){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==e&&this.$emit("change"),this.validate()}currentCheckedChanged(e,t){this.checked=this.currentChecked}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return Zn({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),Zn({attribute:"current-checked",converter:Xn})(i.prototype,"currentChecked"),cn(i.prototype,"defaultChecked"),cn(i.prototype,"checked"),i}class Ir extends Ss{}class $r extends(Dr(Ir)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Or=class extends $r{constructor(){super(...arguments),this.handleClick=e=>{var t;this.disabled&&(null===(t=this.defaultSlottedContent)||void 0===t?void 0:t.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;null===(e=this.form)||void 0===e||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===t&&this.addEventListener("click",this.handleSubmission),"submit"===e&&this.removeEventListener("click",this.handleSubmission),"reset"===t&&this.addEventListener("click",this.handleFormReset),"reset"===e&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.addEventListener("click",this.handleClick)}))}disconnectedCallback(){var e;super.disconnectedCallback();const t=Array.from(null===(e=this.control)||void 0===e?void 0:e.children);t&&t.forEach((e=>{e.removeEventListener("click",this.handleClick)}))}};Ho([Zn({mode:"boolean"})],Or.prototype,"autofocus",void 0),Ho([Zn({attribute:"form"})],Or.prototype,"formId",void 0),Ho([Zn],Or.prototype,"formaction",void 0),Ho([Zn],Or.prototype,"formenctype",void 0),Ho([Zn],Or.prototype,"formmethod",void 0),Ho([Zn({mode:"boolean"})],Or.prototype,"formnovalidate",void 0),Ho([Zn],Or.prototype,"formtarget",void 0),Ho([Zn],Or.prototype,"type",void 0),Ho([cn],Or.prototype,"defaultSlottedContent",void 0);class Pr{}Ho([Zn({attribute:"aria-expanded"})],Pr.prototype,"ariaExpanded",void 0),Ho([Zn({attribute:"aria-pressed"})],Pr.prototype,"ariaPressed",void 0),Is(Pr,ar),Is(Or,zo,Pr);class Ar{constructor(e){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,e)for(const t in e){const i=e[t];"date"===t?this.date=this.getDateObject(i):this[t]=i}}getDateObject(e){if("string"==typeof e){const t=e.split(/[/-]/);return t.length<3?new Date:new Date(parseInt(t[2],10),parseInt(t[0],10)-1,parseInt(t[1],10))}if("day"in e&&"month"in e&&"year"in e){const{day:t,month:i,year:n}=e;return new Date(n,i-1,t)}return e}getDate(e=this.date,t={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const n=this.getDateObject(e);if(!n.getTime())return"";const o=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},t);return new Intl.DateTimeFormat(i,o).format(n)}getDay(e=this.date.getDate(),t=this.dayFormat,i=this.locale){return this.getDate({month:1,day:e,year:2020},{day:t},i)}getMonth(e=this.date.getMonth()+1,t=this.monthFormat,i=this.locale){return this.getDate({month:e,day:2,year:2020},{month:t},i)}getYear(e=this.date.getFullYear(),t=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:e},{year:t},i)}getWeekday(e=0,t=this.weekdayFormat,i=this.locale){const n=`1-${e+1}-2017`;return this.getDate(n,{weekday:t},i)}getWeekdays(e=this.weekdayFormat,t=this.locale){return Array(7).fill(null).map(((i,n)=>this.getWeekday(n,e,t)))}}class Mr extends Ss{constructor(){super(...arguments),this.dateFormatter=new Ar,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(e=this.month,t=this.year){const i=e=>new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=e=>{const t=new Date(e.getFullYear(),e.getMonth()+1,1);return new Date(t.getTime()-this.oneDayInMs).getDate()},o=new Date(t,e-1),s=new Date(t,e),r=new Date(t,e-2);return{length:n(o),month:e,start:i(o),year:t,previous:{length:n(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:n(s),month:s.getMonth()+1,start:i(s),year:s.getFullYear()}}}getDays(e=this.getMonthInfo(),t=this.minWeeks){t=t>10?10:t;const{start:i,length:n,previous:o,next:s}=e,r=[];let a=1-i;for(;a<n+1||r.length<t||r[r.length-1].length%7!=0;){const{month:t,year:i}=a<1?o:a>n?s:e,l=a<1?o.length+a:a>n?a-n:a,c=`${t}-${l}-${i}`,d={day:l,month:t,year:i,disabled:this.dateInString(c,this.disabledDates),selected:this.dateInString(c,this.selectedDates)},h=r[r.length-1];0===r.length||h.length%7==0?r.push([d]):h.push(d),a++}return r}dateInString(e,t){const i=t.split(",").map((e=>e.trim()));return e="string"==typeof e?e:`${e.getMonth()+1}-${e.getDate()}-${e.getFullYear()}`,i.some((t=>t===e))}getDayClassNames(e,t){const{day:i,month:n,year:o,disabled:s,selected:r}=e;return["day",t===`${n}-${i}-${o}`&&"today",this.month!==n&&"inactive",s&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const e=this.dateFormatter.getWeekdays().map((e=>({text:e})));if("long"!==this.weekdayFormat){const t=this.dateFormatter.getWeekdays("long");e.forEach(((e,i)=>{e.abbr=t[i]}))}return e}handleDateSelect(e,t){e.preventDefault,this.$emit("dateselected",t)}handleKeydown(e,t){return e.key===Ws&&this.handleDateSelect(e,t),!0}}Ho([Zn({mode:"boolean"})],Mr.prototype,"readonly",void 0),Ho([Zn],Mr.prototype,"locale",void 0),Ho([Zn({converter:Qn})],Mr.prototype,"month",void 0),Ho([Zn({converter:Qn})],Mr.prototype,"year",void 0),Ho([Zn({attribute:"day-format",mode:"fromView"})],Mr.prototype,"dayFormat",void 0),Ho([Zn({attribute:"weekday-format",mode:"fromView"})],Mr.prototype,"weekdayFormat",void 0),Ho([Zn({attribute:"month-format",mode:"fromView"})],Mr.prototype,"monthFormat",void 0),Ho([Zn({attribute:"year-format",mode:"fromView"})],Mr.prototype,"yearFormat",void 0),Ho([Zn({attribute:"min-weeks",converter:Qn})],Mr.prototype,"minWeeks",void 0),Ho([Zn({attribute:"disabled-dates"})],Mr.prototype,"disabledDates",void 0),Ho([Zn({attribute:"selected-dates"})],Mr.prototype,"selectedDates",void 0);const Lr="none",Nr="default",_r="sticky",Fr="default",qr="columnheader",zr="rowheader",jr="default",Vr="header",Hr="sticky-header";let Br=class extends Ss{constructor(){super(...arguments),this.rowType=jr,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Ao((e=>e.columnDefinitions),(e=>e.activeCellItemTemplate),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(_s,this.handleFocusout),this.addEventListener(Fs,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(_s,this.handleFocusout),this.removeEventListener(Fs,this.handleKeydown)}handleFocusout(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented)return;let t=0;switch(e.key){case Hs:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case Bs:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case Gs:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case Xs:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===jr&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===jr&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};Ho([Zn({attribute:"grid-template-columns"})],Br.prototype,"gridTemplateColumns",void 0),Ho([Zn({attribute:"row-type"})],Br.prototype,"rowType",void 0),Ho([cn],Br.prototype,"rowData",void 0),Ho([cn],Br.prototype,"columnDefinitions",void 0),Ho([cn],Br.prototype,"cellItemTemplate",void 0),Ho([cn],Br.prototype,"headerCellItemTemplate",void 0),Ho([cn],Br.prototype,"rowIndex",void 0),Ho([cn],Br.prototype,"isActiveRow",void 0),Ho([cn],Br.prototype,"activeCellItemTemplate",void 0),Ho([cn],Br.prototype,"defaultCellItemTemplate",void 0),Ho([cn],Br.prototype,"defaultHeaderCellItemTemplate",void 0),Ho([cn],Br.prototype,"cellElements",void 0);let Ur=class e extends Ss{constructor(){super(),this.noTabbing=!1,this.generateHeader=Nr,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(e,t,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const n=Math.max(0,Math.min(this.rowElements.length-1,e)),o=this.rowElements[n].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),s=o[Math.max(0,Math.min(o.length-1,t))];i&&this.scrollHeight!==this.clientHeight&&(n<this.focusRowIndex&&this.scrollTop>0||n>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&s.scrollIntoView({block:"center",inline:"center"}),s.focus()},this.onChildListChange=(e,t)=>{e&&e.length&&(e.forEach((e=>{e.addedNodes.forEach((e=>{1===e.nodeType&&"row"===e.getAttribute("role")&&(e.columnDefinitions=this.columnDefinitions)}))})),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,sn.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(void 0===e){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const e=this.rowElements[0];this.generatedGridTemplateColumns=new Array(e.cellElements.length).fill("1fr").join(" ")}e=this.generatedGridTemplateColumns}this.rowElements.forEach(((t,i)=>{const n=t;n.rowIndex=i,n.gridTemplateColumns=e,this.columnDefinitionsStale&&(n.columnDefinitions=this.columnDefinitions)})),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(e){let t="";return e.forEach((e=>{t=`${t}${""===t?"":" "}1fr`})),t}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=e.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=e.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Ao((e=>e.rowsData),(e=>e.rowItemTemplate),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(Ls,this.handleFocus),this.addEventListener(Fs,this.handleKeydown),this.addEventListener(_s,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),sn.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(Ls,this.handleFocus),this.removeEventListener(Fs,this.handleKeydown),this.removeEventListener(_s,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(e){this.isUpdatingFocus=!0;const t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(e){null!==e.relatedTarget&&this.contains(e.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(e){if(e.defaultPrevented)return;let t;const i=this.rowElements.length-1,n=this.offsetHeight+this.scrollTop,o=this.rowElements[i];switch(e.key){case Us:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case Vs:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(t=this.focusRowIndex-1;t>=0;t--){const e=this.rowElements[t];if(e.offsetTop<this.scrollTop){this.scrollTop=e.offsetTop+e.clientHeight-this.clientHeight;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case"PageDown":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||o.offsetTop+o.offsetHeight<=n)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(t=this.focusRowIndex+1;t<=i;t++){const e=this.rowElements[t];if(e.offsetTop+e.offsetHeight>n){let t=0;this.generateHeader===_r&&null!==this.generatedHeader&&(t=this.generatedHeader.clientHeight),this.scrollTop=e.offsetTop-t;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case Gs:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case Xs:e.ctrlKey&&null!==this.columnDefinitions&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,sn.queueUpdate((()=>this.updateFocus())))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==Lr&&this.rowsData.length>0){const e=document.createElement(this.rowElementTag);return this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===_r?Hr:Vr,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(e,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}};Ur.generateColumns=e=>Object.getOwnPropertyNames(e).map(((e,t)=>({columnDataKey:e,gridColumn:`${t}`}))),Ho([Zn({attribute:"no-tabbing",mode:"boolean"})],Ur.prototype,"noTabbing",void 0),Ho([Zn({attribute:"generate-header"})],Ur.prototype,"generateHeader",void 0),Ho([Zn({attribute:"grid-template-columns"})],Ur.prototype,"gridTemplateColumns",void 0),Ho([cn],Ur.prototype,"rowsData",void 0),Ho([cn],Ur.prototype,"columnDefinitions",void 0),Ho([cn],Ur.prototype,"rowItemTemplate",void 0),Ho([cn],Ur.prototype,"cellItemTemplate",void 0),Ho([cn],Ur.prototype,"headerCellItemTemplate",void 0),Ho([cn],Ur.prototype,"focusRowIndex",void 0),Ho([cn],Ur.prototype,"focusColumnIndex",void 0),Ho([cn],Ur.prototype,"defaultRowItemTemplate",void 0),Ho([cn],Ur.prototype,"rowElementTag",void 0),Ho([cn],Ur.prototype,"rowElements",void 0);const Wr=qn`
|
|
63
|
+
<template>
|
|
64
|
+
${e=>null===e.rowData||null===e.columnDefinition||null===e.columnDefinition.columnDataKey?null:e.rowData[e.columnDefinition.columnDataKey]}
|
|
65
|
+
</template>
|
|
66
|
+
`,Kr=qn`
|
|
67
|
+
<template>
|
|
68
|
+
${e=>null===e.columnDefinition?null:void 0===e.columnDefinition.title?e.columnDefinition.columnDataKey:e.columnDefinition.title}
|
|
69
|
+
</template>
|
|
70
|
+
`;let Gr=class extends Ss{constructor(){super(...arguments),this.cellType=Fr,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(e,t){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var e;super.connectedCallback(),this.addEventListener(Ns,this.handleFocusin),this.addEventListener(_s,this.handleFocusout),this.addEventListener(Fs,this.handleKeydown),this.style.gridColumn=`${void 0===(null===(e=this.columnDefinition)||void 0===e?void 0:e.gridColumn)?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Ns,this.handleFocusin),this.removeEventListener(_s,this.handleFocusout),this.removeEventListener(Fs,this.handleKeydown),this.disconnectCellView()}handleFocusin(e){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===qr){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus()}}else if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus()}this.$emit("cell-focused",this)}}handleFocusout(e){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}handleKeydown(e){if(!(e.defaultPrevented||null===this.columnDefinition||this.cellType===Fr&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===qr&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(e.key){case Ws:case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;if(this.cellType===qr){if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}}else if(void 0!==this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus(),e.preventDefault()}break;case Ks:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case qr:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=Kr.render(this,this);break;case void 0:case zr:case Fr:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Wr.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}};Ho([Zn({attribute:"cell-type"})],Gr.prototype,"cellType",void 0),Ho([Zn({attribute:"grid-column"})],Gr.prototype,"gridColumn",void 0),Ho([cn],Gr.prototype,"rowData",void 0),Ho([cn],Gr.prototype,"columnDefinition",void 0);qn`
|
|
71
|
+
<div
|
|
72
|
+
class="title"
|
|
73
|
+
part="title"
|
|
74
|
+
aria-label="${e=>e.dateFormatter.getDate(`${e.month}-2-${e.year}`,{month:"long",year:"numeric"})}"
|
|
75
|
+
>
|
|
76
|
+
<span part="month">
|
|
77
|
+
${e=>e.dateFormatter.getMonth(e.month)}
|
|
78
|
+
</span>
|
|
79
|
+
<span part="year">${e=>e.dateFormatter.getYear(e.year)}</span>
|
|
80
|
+
</div>
|
|
81
|
+
`;class Xr extends Ss{}class Qr extends(Er(Xr)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Yr=class extends Qr{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.readOnly&&e.key===Qs)this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked},this.clickHandler=e=>{this.disabled||this.readOnly||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};function Zr(e){return As(e)&&("option"===e.getAttribute("role")||e instanceof HTMLOptionElement)}Ho([Zn({attribute:"readonly",mode:"boolean"})],Yr.prototype,"readOnly",void 0),Ho([cn],Yr.prototype,"defaultSlottedNodes",void 0),Ho([cn],Yr.prototype,"indeterminate",void 0);class Jr extends Ss{constructor(e,t,i,n){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,e&&(this.textContent=e),t&&(this.initialValue=t),i&&(this.defaultSelected=i),n&&(this.selected=n),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(e,t){this.ariaChecked="boolean"!=typeof t?null:t?"true":"false"}contentChanged(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var e;return null!==(e=this.value)&&void 0!==e?e:this.text}get text(){var e,t;return null!==(t=null===(e=this.textContent)||void 0===e?void 0:e.replace(/\s+/g," ").trim())&&void 0!==t?t:""}set value(e){const t=`${null!=e?e:""}`;this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),ln.notify(this,"value")}get value(){var e;return ln.track(this,"value"),null!==(e=this._value)&&void 0!==e?e:this.text}get form(){return this.proxy?this.proxy.form:null}}Ho([cn],Jr.prototype,"checked",void 0),Ho([cn],Jr.prototype,"content",void 0),Ho([cn],Jr.prototype,"defaultSelected",void 0),Ho([Zn({mode:"boolean"})],Jr.prototype,"disabled",void 0),Ho([Zn({attribute:"selected",mode:"boolean"})],Jr.prototype,"selectedAttribute",void 0),Ho([cn],Jr.prototype,"selected",void 0),Ho([Zn({attribute:"value",mode:"fromView"})],Jr.prototype,"initialValue",void 0);class ea{}Ho([cn],ea.prototype,"ariaChecked",void 0),Ho([cn],ea.prototype,"ariaPosInSet",void 0),Ho([cn],ea.prototype,"ariaSelected",void 0),Ho([cn],ea.prototype,"ariaSetSize",void 0),Is(ea,ar),Is(Jr,zo,ea);class ta extends Ss{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return null!==(e=this.selectedOptions[0])&&void 0!==e?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((e=>e.disabled))}get length(){var e,t;return null!==(t=null===(e=this.options)||void 0===e?void 0:e.length)&&void 0!==t?t:0}get options(){return ln.track(this,"options"),this._options}set options(e){this._options=e,ln.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){const t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(document.activeElement)&&null!==e&&(e.focus(),requestAnimationFrame((()=>{e.scrollIntoView({block:"nearest"})})))}focusinHandler(e){this.shouldSkipFocus||e.target!==e.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^${e}`,"gi");return this.options.filter((e=>e.text.trim().match(t)))}getSelectableIndex(e=this.selectedIndex,t){const i=e>t?-1:e<t?1:0,n=e+i;let o=null;switch(i){case-1:o=this.options.reduceRight(((e,t,i)=>!e&&!t.disabled&&i<n?t:e),o);break;case 1:o=this.options.reduce(((e,t,i)=>!e&&!t.disabled&&i>n?t:e),o)}return this.options.indexOf(o)}handleChange(e,t){if("selected"===t)ta.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions()}handleTypeAhead(e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=!0),ta.TYPE_AHEAD_TIMEOUT_MS),e.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`)}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;const t=e.key;switch(t){case Gs:e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case Vs:e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case Us:e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case Xs:e.preventDefault(),this.selectLastOption();break;case Ys:return this.focusAndScrollOptionIntoView(),!0;case Ws:case Ks:return!0;case Qs:if(this.typeaheadExpired)return!0;default:return 1===t.length&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(e,t){this.ariaMultiSelectable=t?"true":null}selectedIndexChanged(e,t){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof e){const i=this.getSelectableIndex(e,t),n=i>-1?i:e;return this.selectedIndex=n,void(t===n&&this.selectedIndexChanged(t,n))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(e,t){var i;const n=t.filter(ta.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach((e=>{const t=ln.getNotifier(e);t.unsubscribe(this,"selected"),e.selected=n.includes(e),t.subscribe(this,"selected")}))}selectFirstOption(){var e,t;this.disabled||(this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>!e.disabled)))&&void 0!==t?t:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(e,t){let i=e.length;for(;i--;)if(t(e[i],i,e))return i;return-1}(this.options,(e=>!e.disabled)))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var e,t;this.selectedIndex=null!==(t=null===(e=this.options)||void 0===e?void 0:e.findIndex((e=>e.defaultSelected)))&&void 0!==t?t:-1}setSelectedOptions(){var e,t,i;(null===(e=this.options)||void 0===e?void 0:e.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(e,t){this.options=t.reduce(((e,t)=>(Zr(t)&&e.push(t),e)),[]);const i=`${this.options.length}`;this.options.forEach(((e,t)=>{e.id||(e.id=nr("option-")),e.ariaPosInSet=`${t+1}`,e.ariaSetSize=i})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches();if(e.length){const t=this.options.indexOf(e[0]);t>-1&&(this.selectedIndex=t)}this.typeaheadExpired=!1}}}ta.slottedOptionFilter=e=>Zr(e)&&!e.hidden,ta.TYPE_AHEAD_TIMEOUT_MS=1e3,Ho([Zn({mode:"boolean"})],ta.prototype,"disabled",void 0),Ho([cn],ta.prototype,"selectedIndex",void 0),Ho([cn],ta.prototype,"selectedOptions",void 0),Ho([cn],ta.prototype,"slottedOptions",void 0),Ho([cn],ta.prototype,"typeaheadBuffer",void 0);class ia{}Ho([cn],ia.prototype,"ariaActiveDescendant",void 0),Ho([cn],ia.prototype,"ariaDisabled",void 0),Ho([cn],ia.prototype,"ariaExpanded",void 0),Ho([cn],ia.prototype,"ariaMultiSelectable",void 0),Is(ia,ar),Is(ta,ia);const na="above",oa="below";class sa extends ta{}class ra extends(Dr(sa)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const aa="inline",la="list",ca="both",da="none";class ha extends ra{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=nr("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===aa||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===la||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===ca}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void sn.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}get options(){return ln.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(e){this._options=e,ln.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}get value(){return ln.track(this,"value"),this._value}set value(e){var t,i,n;const o=`${this._value}`;if(this.$fastController.isConnected&&this.options){const o=this.options.findIndex((t=>t.text.toLowerCase()===e.toLowerCase())),s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,r=null===(i=this.options[o])||void 0===i?void 0:i.text;this.selectedIndex=s!==r?o:this.selectedIndex,e=(null===(n=this.firstSelectedOption)||void 0===n?void 0:n.text)||e}o!==e&&(this._value=e,super.valueChanged(o,e),ln.notify(this,"value"))}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==da||(this.filter="");const e=this.filter.toLowerCase();this.filteredOptions=this._options.filter((e=>e.text.toLowerCase().startsWith(this.filter.toLowerCase()))),this.isAutocompleteList&&(this.filteredOptions.length||e||(this.filteredOptions=this._options),this._options.forEach((e=>{e.hidden=!this.filteredOptions.includes(e)})))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame((()=>{var e;null===(e=this.firstSelectedOption)||void 0===e||e.scrollIntoView({block:"nearest"})})))}focusoutHandler(e){if(this.syncValue(),!this.open)return!0;const t=e.relatedTarget;this.isSameNode(t)?this.focus():this.options&&this.options.includes(t)||(this.open=!1)}inputHandler(e){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map((e=>e.text)).indexOf(this.control.value)),e.inputType.includes("deleteContent")||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&(this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection()):this.selectedIndex=-1)}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break;case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.setInputToSelection(),!this.open)return!0;e.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(e),this.isAutocompleteInline&&this.setInlineSelection();break;default:return!0}}keyupHandler(e){switch(e.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(e,t){if(this.$fastController.isConnected){if((t=er(-1,this.options.length-1,t))!==this.selectedIndex)return void(this.selectedIndex=t);super.selectedIndexChanged(e,t)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const e=this.options.findIndex((e=>null!==e.getAttribute("selected")||e.selected));this.selectedIndex=e,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var e;const t=this.selectedIndex>-1?null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text:this.control.value;this.updateValue(this.value!==t)}setPositioning(){const e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?na:oa,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===na?~~e.top:~~t}selectedOptionsChanged(e,t){this.$fastController.isConnected&&this._options.forEach((e=>{e.selected=t.includes(e)}))}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.updateValue()}updateValue(e){var t;this.$fastController.isConnected&&(this.value=(null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)||this.control.value,this.control.value=this.value),e&&this.$emit("change")}clearSelectionRange(){const e=this.control.value.length;this.control.setSelectionRange(e,e)}}Ho([Zn({attribute:"autocomplete",mode:"fromView"})],ha.prototype,"autocomplete",void 0),Ho([cn],ha.prototype,"maxHeight",void 0),Ho([Zn({attribute:"open",mode:"boolean"})],ha.prototype,"open",void 0),Ho([Zn],ha.prototype,"placeholder",void 0),Ho([Zn({attribute:"position"})],ha.prototype,"positionAttribute",void 0),Ho([cn],ha.prototype,"position",void 0);class ua{}function pa(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}Ho([cn],ua.prototype,"ariaAutoComplete",void 0),Ho([cn],ua.prototype,"ariaControls",void 0),Is(ua,ia),Is(ha,zo,ua);const fa=document.createElement("div");class ga{setProperty(e,t){sn.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){sn.queueUpdate((()=>this.target.removeProperty(e)))}}class ma extends ga{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class va extends ga{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class ba{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),ln.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),sn.queueUpdate((()=>{null!==this.target&&this.target.setProperty(e,t)}))}removeProperty(e){this.store.delete(e),sn.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(e)}))}handleChange(e,t){const{sheet:i}=this.style;if(i){const e=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[e].style}else this.target=null}}Ho([cn],ba.prototype,"target",void 0);class ya{constructor(e){this.target=e.style}setProperty(e,t){sn.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){sn.queueUpdate((()=>this.target.removeProperty(e)))}}class xa{setProperty(e,t){xa.properties[e]=t;for(const i of xa.roots.values())Ca.getOrCreate(xa.normalizeRoot(i)).setProperty(e,t)}removeProperty(e){delete xa.properties[e];for(const t of xa.roots.values())Ca.getOrCreate(xa.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){const{roots:t}=xa;if(!t.has(e)){t.add(e);const i=Ca.getOrCreate(this.normalizeRoot(e));for(const e in xa.properties)i.setProperty(e,xa.properties[e])}}static unregisterRoot(e){const{roots:t}=xa;if(t.has(e)){t.delete(e);const i=Ca.getOrCreate(xa.normalizeRoot(e));for(const e in xa.properties)i.removeProperty(e)}}static normalizeRoot(e){return e===fa?document:e}}xa.roots=new Set,xa.properties={};const wa=new WeakMap,ka=sn.supportsAdoptedStyleSheets?class extends ga{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(zn.create([t]))}}:ba,Ca=Object.freeze({getOrCreate(e){if(wa.has(e))return wa.get(e);let t;return e===fa?t=new xa:e instanceof Document?t=sn.supportsAdoptedStyleSheets?new ma:new va:t=e instanceof lo?new ka(e):new ya(e),wa.set(e,t),t}});class Ta extends co{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,null!==e.cssCustomPropertyName&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=Ta.uniqueId(),Ta.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new Ta({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return"string"==typeof e.cssCustomProperty}static isDerivedDesignTokenValue(e){return"function"==typeof e}static getTokenById(e){return Ta.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const t=Ia.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){return this._appliedTo.add(e),t instanceof Ta&&(t=this.alias(t)),Ia.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),Ia.existsFor(e)&&Ia.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(fa,e),this}subscribe(e,t){const i=this.getOrCreateSubscriberSet(t);t&&!Ia.existsFor(t)&&Ia.getOrCreate(t),i.has(e)||i.add(e)}unsubscribe(e,t){const i=this.subscribers.get(t||this);i&&i.has(e)&&i.delete(e)}notify(e){const t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((e=>e.handleChange(t))),this.subscribers.has(e)&&this.subscribers.get(e).forEach((e=>e.handleChange(t)))}alias(e){return t=>e.getValueFor(t)}}Ta.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})(),Ta.tokensById=new Map;class Ra{constructor(e,t,i){this.source=e,this.token=t,this.node=i,this.dependencies=new Set,this.observer=ln.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,un))}}class Sa{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),ln.getNotifier(this).notify(e.id))}get(e){return ln.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const Da=new WeakMap,Ea=new WeakMap;class Ia{constructor(e){this.target=e,this.store=new Sa,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,t)=>{const i=Ta.getTokenById(t);i&&(i.notify(this.target),this.updateCSSTokenReflection(e,i))}},Da.set(e,this),ln.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof lo?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return Da.get(e)||new Ia(e)}static existsFor(e){return Da.has(e)}static findParent(e){if(fa!==e.target){let t=pa(e.target);for(;null!==t;){if(Da.has(t))return Da.get(t);t=pa(t)}return Ia.getOrCreate(fa)}return null}static findClosestAssignedNode(e,t){let i=t;do{if(i.has(e))return i;i=i.parent?i.parent:i.target!==fa?Ia.getOrCreate(fa):null}while(null!==i);return null}get parent(){return Ea.get(this)||null}updateCSSTokenReflection(e,t){if(Ta.isCSSDesignToken(t)){const i=this.parent,n=this.isReflecting(t);if(i){const o=i.get(t),s=e.get(t);o===s||n?o===s&&n&&this.stopReflectToCSS(t):this.reflectToCSS(t)}else n||this.reflectToCSS(t)}}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(void 0!==t)return t;const i=this.getRaw(e);return void 0!==i?(this.hydrate(e,i),this.get(e)):void 0}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):null===(t=Ia.findClosestAssignedNode(e,this))||void 0===t?void 0:t.getRaw(e)}set(e,t){Ta.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),Ta.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){const e=Ia.findParent(this);e&&e.appendChild(this);for(const e of this.assignedValues.keys())e.notify(this.target)}unbind(){if(this.parent){Ea.get(this).removeChild(this)}}appendChild(e){e.parent&&Ea.get(e).removeChild(e);const t=this.children.filter((t=>e.contains(t)));Ea.set(e,this),this.children.push(e),t.forEach((t=>e.appendChild(t))),ln.getNotifier(this.store).subscribe(e);for(const[t,i]of this.store.all())e.hydrate(t,this.bindingObservers.has(t)?this.getRaw(t):i)}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),ln.getNotifier(this.store).unsubscribe(e),e.parent===this&&Ea.delete(e)}contains(e){return function(e,t){let i=t;for(;null!==i;){if(i===e)return!0;i=pa(i)}return!1}(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),Ia.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),Ia.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const i=Ta.getTokenById(t);i&&(this.hydrate(i,this.getRaw(i)),this.updateCSSTokenReflection(this.store,i))}hydrate(e,t){if(!this.has(e)){const i=this.bindingObservers.get(e);Ta.isDerivedDesignTokenValue(t)?i?i.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(i&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){const i=new Ra(t,e,this);return this.bindingObservers.set(e,i),i}tearDownBindingObserver(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}Ia.cssCustomPropertyReflector=new class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){const{token:t,target:i}=e;this.add(t,i)}add(e,t){Ca.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(Ia.getOrCreate(t).get(e)))}remove(e,t){Ca.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}},Ho([cn],Ia.prototype,"children",void 0);const $a=Object.freeze({create:function(e){return Ta.from(e)},notifyConnection:e=>!(!e.isConnected||!Ia.existsFor(e))&&(Ia.getOrCreate(e).bind(),!0),notifyDisconnection:e=>!(e.isConnected||!Ia.existsFor(e))&&(Ia.getOrCreate(e).unbind(),!0),registerRoot(e=fa){xa.registerRoot(e)},unregisterRoot(e=fa){xa.unregisterRoot(e)}}),Oa=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Pa=new Map,Aa=new Map;let Ma=null;const La=Zo.createInterface((e=>e.cachedCallback((e=>(null===Ma&&(Ma=new _a(null,e)),Ma))))),Na=Object.freeze({tagFor:e=>Aa.get(e),responsibleFor(e){const t=e.$$designSystem$$;if(t)return t;return Zo.findResponsibleContainer(e).get(La)},getOrCreate(e){if(!e)return null===Ma&&(Ma=Zo.getOrCreateDOMContainer().get(La)),Ma;const t=e.$$designSystem$$;if(t)return t;const i=Zo.getOrCreateDOMContainer(e);if(i.has(La,!1))return i.get(La);{const t=new _a(e,i);return i.register(fs.instance(La,t)),t}}});class _a{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>Oa.definitionCallbackOnly,null!==e&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){const t=this.container,i=[],n=this.disambiguate,o=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(e,s,r){const a=function(e,t,i){return"string"==typeof e?{name:e,type:t,callback:i}:e}(e,s,r),{name:l,callback:c,baseClass:d}=a;let{type:h}=a,u=l,p=Pa.get(u),f=!0;for(;p;){const e=n(u,h,p);switch(e){case Oa.ignoreDuplicate:return;case Oa.definitionCallbackOnly:f=!1,p=void 0;break;default:u=e,p=Pa.get(u)}}f&&((Aa.has(h)||h===Ss)&&(h=class extends h{}),Pa.set(u,h),Aa.set(h,u),d&&Aa.set(d,u)),i.push(new Fa(t,u,h,o,c,f))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&$a.registerRoot(this.designTokenRoot)),t.registerWithContext(s,...e);for(const e of i)e.callback(e),e.willDefine&&null!==e.definition&&e.definition.define();return this}}class Fa{constructor(e,t,i,n,o,s){this.container=e,this.name=t,this.type=i,this.shadowRootMode=n,this.callback=o,this.willDefine=s,this.definition=null}definePresentation(e){Ts.define(this.name,e,this.container)}defineElement(e){this.definition=new io(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return Na.tagFor(e)}}
|
|
82
|
+
/*!
|
|
83
|
+
* tabbable 5.3.3
|
|
84
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
85
|
+
*/var qa=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],za=qa.join(","),ja="undefined"==typeof Element,Va=ja?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ha=!ja&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Ba=function(e){return"INPUT"===e.tagName},Ua=function(e){return function(e){return Ba(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,i=e.form||Ha(e),n=function(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]}(t,e.form);return!o||o===e}(e)},Wa=function(e){var t=e.getBoundingClientRect(),i=t.width,n=t.height;return 0===i&&0===n},Ka=function(e,t){return!(t.disabled||function(e){return Ba(e)&&"hidden"===e.type}(t)||function(e,t){var i=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Va.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Va.call(o,"details:not([open]) *"))return!0;var s=Ha(e).host,r=(null==s?void 0:s.ownerDocument.contains(s))||e.ownerDocument.contains(e);if(i&&"full"!==i){if("non-zero-area"===i)return Wa(e)}else{if("function"==typeof n){for(var a=e;e;){var l=e.parentElement,c=Ha(e);if(l&&!l.shadowRoot&&!0===n(l))return Wa(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=a}if(r)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var i=0;i<t.children.length;i++){var n=t.children.item(i);if("LEGEND"===n.tagName)return!!Va.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1}(t))},Ga=function(e,t){return!(Ua(t)||function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex}(t)<0||!Ka(e,t))},Xa=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Va.call(e,za)&&Ga(t,e)},Qa=qa.concat("iframe").join(","),Ya=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Va.call(e,Qa)&&Ka(t,e)};class Za extends Ss{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&!this.hidden)switch(e.key){case Ks:this.dismiss(),e.preventDefault();break;case Ys:this.handleTabKeyDown(e)}},this.handleDocumentFocus=e=>{!e.defaultPrevented&&this.shouldForceFocus(e.target)&&(this.focusFirstElement(),e.preventDefault())},this.handleTabKeyDown=e=>{if(!this.trapFocus||this.hidden)return;const t=this.getTabQueueBounds();return 0!==t.length?1===t.length?(t[0].focus(),void e.preventDefault()):void(e.shiftKey&&e.target===t[0]?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||e.target!==t[t.length-1]||(t[0].focus(),e.preventDefault())):void 0},this.getTabQueueBounds=()=>Za.reduceTabbableItems([],this),this.focusFirstElement=()=>{const e=this.getTabQueueBounds();e.length>0?e[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=e=>{const t=void 0===e?this.shouldTrapFocus():e;t&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),sn.queueUpdate((()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()}))):!t&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=ln.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(e,t){if("hidden"===t)this.updateTrapFocus()}static reduceTabbableItems(e,t){return"-1"===t.getAttribute("tabindex")?e:Xa(t)||Za.isFocusableFastElement(t)&&Za.hasTabbableShadow(t)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(Za.reduceTabbableItems,[])):e}static isFocusableFastElement(e){var t,i;return!!(null===(i=null===(t=e.$fastController)||void 0===t?void 0:t.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(e){var t,i;return Array.from(null!==(i=null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelectorAll("*"))&&void 0!==i?i:[]).some((e=>Xa(e)))}}Ho([Zn({mode:"boolean"})],Za.prototype,"modal",void 0),Ho([Zn({mode:"boolean"})],Za.prototype,"hidden",void 0),Ho([Zn({attribute:"trap-focus",mode:"boolean"})],Za.prototype,"trapFocus",void 0),Ho([Zn({attribute:"aria-describedby"})],Za.prototype,"ariaDescribedby",void 0),Ho([Zn({attribute:"aria-labelledby"})],Za.prototype,"ariaLabelledby",void 0),Ho([Zn({attribute:"aria-label"})],Za.prototype,"ariaLabel",void 0);const Ja=new MutationObserver((e=>{for(const t of e)el.getOrCreateFor(t.target).notify(t.attributeName)}));class el extends rn{constructor(e){super(e),this.watchedAttributes=new Set,el.subscriberCache.set(e,this)}subscribe(e){super.subscribe(e),this.watchedAttributes.has(e.attributes)||(this.watchedAttributes.add(e.attributes),this.observe())}unsubscribe(e){super.unsubscribe(e),this.watchedAttributes.has(e.attributes)&&(this.watchedAttributes.delete(e.attributes),this.observe())}static getOrCreateFor(e){return this.subscriberCache.get(e)||new el(e)}observe(){const e=[];for(const t of this.watchedAttributes.values())for(let i=0;i<t.length;i++)e.push(t[i]);Ja.observe(this.source,{attributeFilter:e})}}el.subscriberCache=new WeakMap;class tl extends Ss{connectedCallback(){super.connectedCallback(),this.setup()}disconnectedCallback(){super.disconnectedCallback(),this.details.removeEventListener("toggle",this.onToggle)}show(){this.details.open=!0}hide(){this.details.open=!1}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this),this.details.addEventListener("toggle",this.onToggle),this.expanded&&this.show()}onToggle(){this.expanded=this.details.open,this.$emit("toggle")}}Ho([Zn({mode:"boolean"})],tl.prototype,"expanded",void 0),Ho([Zn],tl.prototype,"title",void 0);const il="separator";let nl=class extends Ss{constructor(){super(...arguments),this.role=il,this.orientation=Os}};Ho([Zn],nl.prototype,"role",void 0),Ho([Zn],nl.prototype,"orientation",void 0);const ol="next";class sl extends Ss{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=ol}keyupHandler(e){if(!this.hiddenFromAT){const t=e.key;"Enter"!==t&&"Space"!==t||this.$emit("click",e),"Escape"===t&&this.blur()}}}Ho([Zn({mode:"boolean"})],sl.prototype,"disabled",void 0),Ho([Zn({attribute:"aria-hidden",converter:Xn})],sl.prototype,"hiddenFromAT",void 0),Ho([Zn],sl.prototype,"direction",void 0);class rl extends ta{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var e;return null===(e=this.options)||void 0===e?void 0:e.filter((e=>e.checked))}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(e,t){var i,n;this.ariaActiveDescendant=null!==(n=null===(i=this.options[t])||void 0===i?void 0:i.id)&&void 0!==n?n:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const e=this.activeOption;e&&(e.checked=!0)}checkFirstOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach(((e,t)=>{e.checked=tr(t,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((e,t)=>{e.checked=tr(t,this.rangeStartIndex,this.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((e,t)=>{e.checked=tr(t,this.rangeStartIndex,this.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(e=!1){e?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach(((e,t)=>{e.checked=tr(t,this.activeIndex,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(e){var t;if(!this.multiple)return super.clickHandler(e);const i=null===(t=e.target)||void 0===t?void 0:t.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(e){if(!this.multiple)return super.focusinHandler(e);this.shouldSkipFocus||e.target!==e.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(e){this.multiple&&this.uncheckAllOptions()}keydownHandler(e){if(!this.multiple)return super.keydownHandler(e);if(this.disabled)return!0;const{key:t,shiftKey:i}=e;switch(this.shouldSkipFocus=!1,t){case Gs:return void this.checkFirstOption(i);case Vs:return void this.checkNextOption(i);case Us:return void this.checkPreviousOption(i);case Xs:return void this.checkLastOption(i);case Ys:return this.focusAndScrollOptionIntoView(),!0;case Ks:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case Qs:if(e.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===t.length&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return super.mousedownHandler(e)}multipleChanged(e,t){var i;this.ariaMultiSelectable=t?"true":null,null===(i=this.options)||void 0===i||i.forEach((e=>{e.checked=!t&&void 0})),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((e=>e.selected)),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(e,t){var i;const n=Math.max(0,parseInt(null!==(i=null==t?void 0:t.toFixed())&&void 0!==i?i:"",10));n!==t&&sn.queueUpdate((()=>{this.size=n}))}toggleSelectedForAllCheckedOptions(){const e=this.checkedOptions.filter((e=>!e.disabled)),t=!e.every((e=>e.selected));e.forEach((e=>e.selected=t)),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(e,t){if(this.multiple){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches(),t=this.options.indexOf(e[0]);t>-1&&(this.activeIndex=t,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(e,t)}uncheckAllOptions(e=!1){this.options.forEach((e=>e.checked=!this.multiple&&void 0)),e||(this.rangeStartIndex=-1)}}Ho([cn],rl.prototype,"activeIndex",void 0),Ho([Zn({mode:"boolean"})],rl.prototype,"multiple",void 0),Ho([Zn({converter:Qn})],rl.prototype,"size",void 0);class al extends Ss{constructor(){super(...arguments),this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length),this.addSlottedListItems(this.headerElements),this.addSlottedListItems(this.menuElements),this.addSlottedListItems(this.footerElements),this.$emit("optionsupdated",{bubbles:!1})}addSlottedListItems(e){void 0!==e&&e.forEach((e=>{1===e.nodeType&&"listitem"===e.getAttribute("role")&&(e.id=e.id||nr("option-"),this.optionElements.push(e))}))}}Ho([cn],al.prototype,"menuElements",void 0),Ho([cn],al.prototype,"headerElements",void 0),Ho([cn],al.prototype,"footerElements",void 0),Ho([cn],al.prototype,"suggestionsAvailableText",void 0);const ll=qn`
|
|
86
|
+
<template>
|
|
87
|
+
${e=>e.value}
|
|
88
|
+
</template>
|
|
89
|
+
`;class cl extends Ss{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){super.disconnectedCallback(),this.disconnectView()}handleClick(e){return e.defaultPrevented||this.handleInvoked(),!1}handleInvoked(){this.$emit("pickeroptioninvoked")}updateView(){var e,t;this.disconnectView(),this.customView=null!==(t=null===(e=this.contentsTemplate)||void 0===e?void 0:e.render(this,this))&&void 0!==t?t:ll.render(this,this)}disconnectView(){var e;null===(e=this.customView)||void 0===e||e.dispose(),this.customView=void 0}}Ho([Zn({attribute:"value"})],cl.prototype,"value",void 0),Ho([cn],cl.prototype,"contentsTemplate",void 0);const dl=qn`
|
|
90
|
+
<template>
|
|
91
|
+
${e=>e.value}
|
|
92
|
+
</template>
|
|
93
|
+
`;class hl extends Ss{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){this.disconnectView(),super.disconnectedCallback()}handleKeyDown(e){return!e.defaultPrevented&&(e.key!==Ws||(this.handleInvoke(),!1))}handleClick(e){return e.defaultPrevented||this.handleInvoke(),!1}handleInvoke(){this.$emit("pickeriteminvoked")}updateView(){var e,t;this.disconnectView(),this.customView=null!==(t=null===(e=this.contentsTemplate)||void 0===e?void 0:e.render(this,this))&&void 0!==t?t:dl.render(this,this)}disconnectView(){var e;null===(e=this.customView)||void 0===e||e.dispose(),this.customView=void 0}}Ho([Zn({attribute:"value"})],hl.prototype,"value",void 0),Ho([cn],hl.prototype,"contentsTemplate",void 0);class ul extends Ss{}class pl extends(Dr(ul)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const fl=qn`
|
|
94
|
+
<input
|
|
95
|
+
slot="input-region"
|
|
96
|
+
role="combobox"
|
|
97
|
+
type="text"
|
|
98
|
+
autocapitalize="off"
|
|
99
|
+
autocomplete="off"
|
|
100
|
+
haspopup="list"
|
|
101
|
+
aria-label="${e=>e.label}"
|
|
102
|
+
aria-labelledby="${e=>e.labelledBy}"
|
|
103
|
+
placeholder="${e=>e.placeholder}"
|
|
104
|
+
${Ro("inputElement")}
|
|
105
|
+
></input>
|
|
106
|
+
`;class gl extends pl{constructor(){super(...arguments),this.selection="",this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText="No suggestions available",this.suggestionsAvailableText="Suggestions available",this.loadingText="Loading suggestions",this.menuPlacement="bottom-fill",this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=e=>{this.query=this.inputElement.value},this.handleInputClick=e=>{e.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{this.flyoutOpen&&(null!==this.region&&void 0!==this.region?this.region.anchorElement=this.inputElement:sn.queueUpdate(this.setRegionProps))},this.configLookup={top:pr,bottom:fr,tallest:gr,"top-fill":mr,"bottom-fill":vr,"tallest-fill":br}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map((e=>e.trim())).filter((e=>""!==e))}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&sn.queueUpdate((()=>{this.setFocusedOption(0)}))}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit("querychange",{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=0===this.filteredOptionsList.length&&0===this.menuElement.querySelectorAll('[role="listitem"]').length,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(sn.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&sn.queueUpdate((()=>{this.setFocusedOption(0)}))}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(""),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=fl.render(this,this.listElement);const e=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find((t=>t.tagName===e)),void 0===this.menuElement&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),""===this.menuElement.id&&(this.menuElement.id=nr("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),sn.queueUpdate((()=>this.initialize()))}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener("input",this.handleTextInput),this.inputElement.removeEventListener("click",this.handleInputClick),null!==this.inputElementView&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new Ao((e=>e.selectedItems),(e=>e.activeListItemTemplate),{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener("input",this.handleTextInput),this.inputElement.addEventListener("click",this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new Ao((e=>e.filteredOptionsList),(e=>e.activeMenuOptionTemplate),{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(e){if(this.flyoutOpen!==e){if(e&&document.activeElement===this.inputElement)return this.flyoutOpen=e,void sn.queueUpdate((()=>{void 0!==this.menuElement?this.setFocusedOption(0):this.disableMenu()}));this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(e){e.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(e){if(e.defaultPrevented)return!1;switch(e.key){case Vs:if(this.flyoutOpen){const e=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(e)}else this.toggleFlyout(!0);return!1;case Us:if(this.flyoutOpen){const e=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(e)}else this.toggleFlyout(!0);return!1;case Ks:return this.toggleFlyout(!1),!1;case Ws:return-1!==this.menuFocusIndex&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case Bs:return document.activeElement===this.inputElement||(this.incrementFocusedItem(1),!1);case Hs:return 0!==this.inputElement.selectionStart||(this.incrementFocusedItem(-1),!1);case"Delete":case"Backspace":{if(null===document.activeElement)return!0;if(document.activeElement===this.inputElement)return 0!==this.inputElement.selectionStart||(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1);const e=Array.from(this.listElement.children),t=e.indexOf(document.activeElement);return!(t>-1)||(this.selection=this.selectedItems.splice(t,1).toString(),sn.queueUpdate((()=>{e[Math.min(e.length,t)].focus()})),!1)}}return this.toggleFlyout(!0),!0}handleFocusIn(e){return!1}handleFocusOut(e){return void 0!==this.menuElement&&this.menuElement.contains(e.relatedTarget)||this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=""===this.selection?[]:this.selection.split(","),this.updateFilteredOptions(),sn.queueUpdate((()=>{this.checkMaxItems()})),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(e){sn.queueUpdate((()=>{this.setFocusedOption(0),this.$emit("menuloaded",{bubbles:!1})}))}checkMaxItems(){if(void 0!==this.inputElement)if(void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){const e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));e[e.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(e){if(e.defaultPrevented)return!1;if(e.target instanceof hl){const t=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(e.target);if(-1!==t){const e=this.selectedItems.slice();e.splice(t,1),this.selection=e.toString(),sn.queueUpdate((()=>this.incrementFocusedItem(0)))}return!1}return!0}handleOptionInvoke(e){return!e.defaultPrevented&&(!(e.target instanceof cl)||(void 0!==e.target.value&&(this.selection=`${this.selection}${""===this.selection?"":","}${e.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1))}incrementFocusedItem(e){if(0===this.selectedItems.length)return void this.inputElement.focus();const t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(null!==document.activeElement){let i=t.indexOf(document.activeElement);-1===i&&(i=t.length);const n=Math.min(t.length,Math.max(0,i+e));n===t.length?void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected?t[n-1].focus():this.inputElement.focus():t[n].focus()}}disableMenu(){var e,t,i;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,null===(e=this.inputElement)||void 0===e||e.removeAttribute("aria-activedescendant"),null===(t=this.inputElement)||void 0===t||t.removeAttribute("aria-owns"),null===(i=this.inputElement)||void 0===i||i.removeAttribute("aria-expanded")}setFocusedOption(e){if(!this.flyoutOpen||-1===e||this.showNoOptions||this.showLoading)return void this.disableMenu();if(0===this.menuElement.optionElements.length)return;this.menuElement.optionElements.forEach((e=>{e.setAttribute("aria-selected","false")})),this.menuFocusIndex=e,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute("aria-owns",this.menuId),this.inputElement.setAttribute("aria-expanded","true"),this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);const t=this.menuElement.optionElements[this.menuFocusIndex];t.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,t.offsetTop)}updateListItemTemplate(){var e;this.activeListItemTemplate=null!==(e=this.listItemTemplate)&&void 0!==e?e:this.defaultListItemTemplate}updateOptionTemplate(){var e;this.activeMenuOptionTemplate=null!==(e=this.menuOptionTemplate)&&void 0!==e?e:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter((e=>-1===this.selectedItems.indexOf(e)))),this.filterQuery&&""!==this.query&&void 0!==this.query&&(this.filteredOptionsList=this.filteredOptionsList.filter((e=>-1!==e.indexOf(this.query))))}updateMenuConfig(){let e=this.configLookup[this.menuPlacement];null===e&&(e=vr),this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}}Ho([Zn({attribute:"selection"})],gl.prototype,"selection",void 0),Ho([Zn({attribute:"options"})],gl.prototype,"options",void 0),Ho([Zn({attribute:"filter-selected",mode:"boolean"})],gl.prototype,"filterSelected",void 0),Ho([Zn({attribute:"filter-query",mode:"boolean"})],gl.prototype,"filterQuery",void 0),Ho([Zn({attribute:"max-selected"})],gl.prototype,"maxSelected",void 0),Ho([Zn({attribute:"no-suggestions-text"})],gl.prototype,"noSuggestionsText",void 0),Ho([Zn({attribute:"suggestions-available-text"})],gl.prototype,"suggestionsAvailableText",void 0),Ho([Zn({attribute:"loading-text"})],gl.prototype,"loadingText",void 0),Ho([Zn({attribute:"label"})],gl.prototype,"label",void 0),Ho([Zn({attribute:"labelledby"})],gl.prototype,"labelledBy",void 0),Ho([Zn({attribute:"placeholder"})],gl.prototype,"placeholder",void 0),Ho([Zn({attribute:"menu-placement"})],gl.prototype,"menuPlacement",void 0),Ho([cn],gl.prototype,"showLoading",void 0),Ho([cn],gl.prototype,"listItemTemplate",void 0),Ho([cn],gl.prototype,"defaultListItemTemplate",void 0),Ho([cn],gl.prototype,"activeListItemTemplate",void 0),Ho([cn],gl.prototype,"menuOptionTemplate",void 0),Ho([cn],gl.prototype,"defaultMenuOptionTemplate",void 0),Ho([cn],gl.prototype,"activeMenuOptionTemplate",void 0),Ho([cn],gl.prototype,"listItemContentsTemplate",void 0),Ho([cn],gl.prototype,"menuOptionContentsTemplate",void 0),Ho([cn],gl.prototype,"optionsList",void 0),Ho([cn],gl.prototype,"query",void 0),Ho([cn],gl.prototype,"filteredOptionsList",void 0),Ho([cn],gl.prototype,"flyoutOpen",void 0),Ho([cn],gl.prototype,"menuId",void 0),Ho([cn],gl.prototype,"selectedListTag",void 0),Ho([cn],gl.prototype,"menuTag",void 0),Ho([cn],gl.prototype,"menuFocusIndex",void 0),Ho([cn],gl.prototype,"menuFocusOptionId",void 0),Ho([cn],gl.prototype,"showNoOptions",void 0),Ho([cn],gl.prototype,"menuConfig",void 0),Ho([cn],gl.prototype,"selectedItems",void 0);const ml="menuitem",vl="menuitemcheckbox",bl="menuitemradio",yl={[ml]:"menuitem",[vl]:"menuitemcheckbox",[bl]:"menuitemradio"};class xl extends Ss{constructor(){super(...arguments),this.role=ml,this.hasSubmenu=!1,this.currentDirection=Js.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case Ws:case Qs:return this.invoke(),!1;case Bs:return this.expandAndFocus(),!1;case Hs:if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case vl:this.checked=!this.checked;break;case ml:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case bl:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find((e=>"menu"===e.getAttribute("role"))),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(e){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=dr(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),sn.queueUpdate((()=>{this.updateSubmenu()})),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter((e=>!e.hasAttribute("hidden")))}}Ho([Zn({mode:"boolean"})],xl.prototype,"disabled",void 0),Ho([Zn({mode:"boolean"})],xl.prototype,"expanded",void 0),Ho([cn],xl.prototype,"startColumnCount",void 0),Ho([Zn],xl.prototype,"role",void 0),Ho([Zn({mode:"boolean"})],xl.prototype,"checked",void 0),Ho([cn],xl.prototype,"submenuRegion",void 0),Ho([cn],xl.prototype,"hasSubmenu",void 0),Ho([cn],xl.prototype,"currentDirection",void 0),Ho([cn],xl.prototype,"submenu",void 0),Is(xl,zo);class wl extends Ss{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&As(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&void 0!==this.menuItems){this.collapseExpandedItem();const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=e=>{const t=e.target;void 0!==this.menuItems&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||null===e.target||void 0===this.menuItems||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();const t=e.target;null===this.expandedItem||t!==this.expandedItem||!1!==t.expanded?t.expanded&&(null!==this.expandedItem&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0")):this.expandedItem=null},this.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach((e=>{e.removeEventListener("expanded-change",this.handleExpandedChanged),e.removeEventListener("focus",this.handleItemFocus)}))},this.setItems=()=>{const e=this.domChildren();this.removeItemListeners(),this.menuItems=e;const t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);const i=t.reduce(((e,t)=>{const i=function(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t!==ml&&null===i||t===ml&&null!==i?1:t!==ml&&null!==i?2:0}(t);return e>i?e:i}),0);t.forEach(((e,t)=>{e.setAttribute("tabindex",0===t?"0":"-1"),e.addEventListener("expanded-change",this.handleExpandedChanged),e.addEventListener("focus",this.handleItemFocus),(e instanceof xl||"startColumnCount"in e)&&(e.startColumnCount=i)}))},this.changeHandler=e=>{if(void 0===this.menuItems)return;const t=e.target,i=this.menuItems.indexOf(t);if(-1!==i&&"menuitemradio"===t.role&&!0===t.checked){for(let e=i-1;e>=0;--e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===bl&&(t.checked=!1),"separator"===i)break}const e=this.menuItems.length-1;for(let t=i+1;t<=e;++t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===bl&&(e.checked=!1),"separator"===i)break}}},this.isMenuItemElement=e=>As(e)&&wl.focusableElementRoles.hasOwnProperty(e.getAttribute("role")),this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),sn.queueUpdate((()=>{this.setItems()})),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!e.defaultPrevented&&void 0!==this.menuItems)switch(e.key){case Vs:return void this.setFocus(this.focusIndex+1,1);case Us:return void this.setFocus(this.focusIndex-1,-1);case Xs:return void this.setFocus(this.menuItems.length-1,-1);case Gs:return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children).filter((e=>!e.hasAttribute("hidden")))}setFocus(e,t){if(void 0!==this.menuItems)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}}wl.focusableElementRoles=yl,Ho([cn],wl.prototype,"items",void 0);class kl extends Ss{}class Cl extends(Dr(kl)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Tl="text";let Rl=class extends Cl{constructor(){super(...arguments),this.type=Tl}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&sn.queueUpdate((()=>{this.focus()}))}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};Ho([Zn({attribute:"readonly",mode:"boolean"})],Rl.prototype,"readOnly",void 0),Ho([Zn({mode:"boolean"})],Rl.prototype,"autofocus",void 0),Ho([Zn],Rl.prototype,"placeholder",void 0),Ho([Zn],Rl.prototype,"type",void 0),Ho([Zn],Rl.prototype,"list",void 0),Ho([Zn({converter:Qn})],Rl.prototype,"maxlength",void 0),Ho([Zn({converter:Qn})],Rl.prototype,"minlength",void 0),Ho([Zn],Rl.prototype,"pattern",void 0),Ho([Zn({converter:Qn})],Rl.prototype,"size",void 0),Ho([Zn({mode:"boolean"})],Rl.prototype,"spellcheck",void 0),Ho([cn],Rl.prototype,"defaultSlottedNodes",void 0);class Sl{}Is(Sl,ar),Is(Rl,zo,Sl);class Dl extends Ss{}class El extends(Dr(Dl)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Il extends El{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(e,t){var i;this.max=Math.max(t,null!==(i=this.min)&&void 0!==i?i:t);const n=Math.min(this.min,this.max);void 0!==this.min&&this.min!==n&&(this.min=n),this.value=this.getValidValue(this.value)}minChanged(e,t){var i;this.min=Math.min(t,null!==(i=this.max)&&void 0!==i?i:t);const n=Math.max(this.min,this.max);void 0!==this.max&&this.max!==n&&(this.max=n),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t),t===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(e,this.value),void 0===e||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}validate(){super.validate(this.control)}getValidValue(e){var t,i;let n=parseFloat(parseFloat(e).toPrecision(12));return isNaN(n)?n="":(n=Math.min(n,null!==(t=this.max)&&void 0!==t?t:n),n=Math.max(n,null!==(i=this.min)&&void 0!==i?i:n).toString()),n}stepUp(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.value=t.toString()}stepDown(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.value=t.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&sn.queueUpdate((()=>{this.focus()}))}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(e){switch(e.key){case Us:return this.stepUp(),!1;case Vs:return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}Ho([Zn({attribute:"readonly",mode:"boolean"})],Il.prototype,"readOnly",void 0),Ho([Zn({mode:"boolean"})],Il.prototype,"autofocus",void 0),Ho([Zn({attribute:"hide-step",mode:"boolean"})],Il.prototype,"hideStep",void 0),Ho([Zn],Il.prototype,"placeholder",void 0),Ho([Zn],Il.prototype,"list",void 0),Ho([Zn({converter:Qn})],Il.prototype,"maxlength",void 0),Ho([Zn({converter:Qn})],Il.prototype,"minlength",void 0),Ho([Zn({converter:Qn})],Il.prototype,"size",void 0),Ho([Zn({converter:Qn})],Il.prototype,"step",void 0),Ho([Zn({converter:Qn})],Il.prototype,"max",void 0),Ho([Zn({converter:Qn})],Il.prototype,"min",void 0),Ho([cn],Il.prototype,"defaultSlottedNodes",void 0),Is(Il,zo,Sl);class $l extends Ss{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const e="number"==typeof this.min?this.min:0,t="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,n=t-e;this.percentComplete=0===n?0:Math.fround((i-e)/n*100)}}Ho([Zn({converter:Qn})],$l.prototype,"value",void 0),Ho([Zn({converter:Qn})],$l.prototype,"min",void 0),Ho([Zn({converter:Qn})],$l.prototype,"max",void 0),Ho([Zn({mode:"boolean"})],$l.prototype,"paused",void 0),Ho([cn],$l.prototype,"percentComplete",void 0);let Ol=class extends Ss{constructor(){super(...arguments),this.orientation=Os,this.radioChangeHandler=e=>{const t=e.target;t.checked&&(this.slottedRadioButtons.forEach((e=>{e!==t&&(e.checked=!1,this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"))})),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{const i=e[t];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach((e=>{e!==i&&e.setAttribute("tabindex","-1")})):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var e;null===(e=this.nextElementSibling)||void 0===e||e.focus()},this.moveLeftOffGroup=()=>{var e;null===(e=this.previousElementSibling)||void 0===e||e.focus()},this.focusOutHandler=e=>{const t=this.slottedRadioButtons,i=e.target,n=null!==i?t.indexOf(i):0,o=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(0===o&&n===o||o===t.length-1&&o===n)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.selectedRadio&&e.setAttribute("tabindex","-1")})))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.focusedRadio&&e.setAttribute("tabindex","-1")})))),!0},this.clickHandler=e=>{const t=e.target;if(t){const e=this.slottedRadioButtons;t.checked||0===e.indexOf(t)?(t.setAttribute("tabindex","0"),this.selectedRadio=t):(t.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=t}e.preventDefault()},this.shouldMoveOffGroupToTheRight=(e,t,i)=>e===t.length&&this.isInsideToolbar&&i===Bs,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===Hs,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,t,e.key))this.moveRightOffGroup();else for(i===t.length&&(i=0);i<t.length&&t.length>1;){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;if(i+1>=t.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,i=i<0?t.length-1:i,this.shouldMoveOffGroupToTheLeft(t,e.key))this.moveLeftOffGroup();else for(;i>=0&&t.length>1;){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;i-1<0?i=t.length-1:i-=1}},this.keydownHandler=e=>{const t=e.key;if(t in Zs&&this.isInsideFoundationToolbar)return!0;switch(t){case Ws:this.checkFocusedRadio();break;case Bs:case Vs:this.direction===Js.ltr?this.moveRight(e):this.moveLeft(e);break;case Hs:case Us:this.direction===Js.ltr?this.moveLeft(e):this.moveRight(e);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.readOnly?e.readOnly=!0:e.readOnly=!1}))}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.disabled?e.disabled=!0:e.disabled=!1}))}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.setAttribute("name",this.name)}))}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.value===this.value&&(e.checked=!0,this.selectedRadio=e)})),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var e;return null!==(e=this.parentToolbar)&&void 0!==e&&e}get isInsideFoundationToolbar(){var e;return!!(null===(e=this.parentToolbar)||void 0===e?void 0:e.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=dr(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach((e=>{e.removeEventListener("change",this.radioChangeHandler)}))}setupRadioButtons(){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=e?e.length:0;if(t>1){e[t-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach((e=>{void 0!==this.name&&e.setAttribute("name",this.name),this.disabled&&(e.disabled=!0),this.readOnly&&(e.readOnly=!0),this.value&&this.value===e.value?(this.selectedRadio=e,this.focusedRadio=e,e.checked=!0,e.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"),e.checked=!1),e.addEventListener("change",this.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=null!==e?e.length:0;if(t>0&&!i){const i=e[t-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};Ho([Zn({attribute:"readonly",mode:"boolean"})],Ol.prototype,"readOnly",void 0),Ho([Zn({attribute:"disabled",mode:"boolean"})],Ol.prototype,"disabled",void 0),Ho([Zn],Ol.prototype,"name",void 0),Ho([Zn],Ol.prototype,"value",void 0),Ho([Zn],Ol.prototype,"orientation",void 0),Ho([cn],Ol.prototype,"childItems",void 0),Ho([cn],Ol.prototype,"slottedRadioButtons",void 0);class Pl extends Ss{}class Al extends(Er(Pl)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let Ml=class extends Al{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(e.key!==Qs)return!0;this.checked||this.readOnly||(this.checked=!0)},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}connectedCallback(){var e,t;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(e=this.parentElement)||void 0===e?void 0:e.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(e){this.disabled||this.readOnly||this.checked||(this.checked=!0)}};Ho([Zn({attribute:"readonly",mode:"boolean"})],Ml.prototype,"readOnly",void 0),Ho([cn],Ml.prototype,"name",void 0),Ho([cn],Ml.prototype,"defaultSlottedNodes",void 0);class Ll extends Ss{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(e,t){if(this.scrollContainer){const e=1==this.scrolling?"scrollstart":"scrollend";this.$emit(e,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(e,t){t&&!this.updatingItems&&sn.queueUpdate((()=>this.setStops()))}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const e=this.scrollItems.reduce(((e,t)=>t instanceof HTMLSlotElement?e.concat(t.assignedElements()):(e.push(t),e)),[]);this.scrollItems=e,this.updatingItems=!1}setStops(){this.updateScrollStops();const{scrollContainer:e}=this,{scrollLeft:t}=e,{width:i,left:n}=e.getBoundingClientRect();this.width=i;let o=0,s=this.scrollItems.map(((e,i)=>{const{left:s,width:r}=e.getBoundingClientRect(),a=Math.round(s+t-n),l=Math.round(a+r);return this.isRtl?-l:(o=l,0===i?0:a)})).concat(o);s=this.fixScrollMisalign(s),s.sort(((e,t)=>Math.abs(e)-Math.abs(t))),this.scrollStops=s,this.setFlippers()}validateStops(e=!0){const t=()=>!!this.scrollStops.find((e=>e>0));return!t()&&e&&this.setStops(),t()}fixScrollMisalign(e){if(this.isRtl&&e.some((e=>e>0))){e.sort(((e,t)=>t-e));const t=e[0];e=e.map((e=>e-t))}return e}setFlippers(){var e,t;const i=this.scrollContainer.scrollLeft;if(null===(e=this.previousFlipperContainer)||void 0===e||e.classList.toggle("disabled",0===i),this.scrollStops){const e=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(t=this.nextFlipperContainer)||void 0===t||t.classList.toggle("disabled",this.validateStops(!1)&&Math.abs(i)+this.width>=e)}}scrollInView(e,t=0,i){var n;if("number"!=typeof e&&e&&(e=this.scrollItems.findIndex((t=>t===e||t.contains(e)))),void 0!==e){i=null!=i?i:t;const{scrollContainer:o,scrollStops:s,scrollItems:r}=this,{scrollLeft:a}=this.scrollContainer,{width:l}=o.getBoundingClientRect(),c=s[e],{width:d}=r[e].getBoundingClientRect(),h=c+d,u=a+t>c;if(u||a+l-i<h){const e=null!==(n=[...s].sort(((e,t)=>u?t-e:e-t)).find((e=>u?e+t<c:e+l-(null!=i?i:0)>h)))&&void 0!==n?n:0;this.scrollToPosition(e)}}}keyupHandler(e){switch(e.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){this.validateStops();const e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex(((t,i)=>t>=e&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>e))),i=Math.abs(this.scrollStops[t+1]);let n=this.scrollStops.findIndex((e=>Math.abs(e)+this.width>i));(n>=t||-1===n)&&(n=t>0?t-1:0),this.scrollToPosition(this.scrollStops[n],e)}scrollToNext(){this.validateStops();const e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex((t=>Math.abs(t)>=Math.abs(e))),i=this.scrollStops.findIndex((t=>Math.abs(e)+this.width<=Math.abs(t)));let n=t;i>t+2?n=i-2:t<this.scrollStops.length-2&&(n=t+1),this.scrollToPosition(this.scrollStops[n],e)}scrollToPosition(e,t=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const n=null!==(i=this.duration)&&void 0!==i?i:Math.abs(e-t)/this.speed+"s";this.content.style.setProperty("transition-duration",n);const o=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),s=t=>{t&&t.target!==t.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=e,this.setFlippers(),this.content.removeEventListener("transitionend",s),this.scrolling=!1)};if(0===o)return void s();this.content.addEventListener("transitionend",s);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(e,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(e),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout((()=>{this.width=this.scrollContainer.offsetWidth,this.setFlippers()}),this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout((()=>{this.setFlippers()}),this.frameTime)}}function Nl(e,t,i){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&!!e.nodeValue.trim().length}Ho([Zn({converter:Qn})],Ll.prototype,"speed",void 0),Ho([Zn],Ll.prototype,"duration",void 0),Ho([Zn],Ll.prototype,"easing",void 0),Ho([Zn({attribute:"flippers-hidden-from-at",converter:Xn})],Ll.prototype,"flippersHiddenFromAT",void 0),Ho([cn],Ll.prototype,"scrolling",void 0),Ho([cn],Ll.prototype,"scrollItems",void 0),Ho([Zn({attribute:"view"})],Ll.prototype,"view",void 0);class _l extends Ss{}class Fl extends(Dr(_l)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ql extends Fl{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&sn.queueUpdate((()=>{this.focus()}))}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus(),this.handleChange()}handleChange(){this.$emit("change")}}Ho([Zn({attribute:"readonly",mode:"boolean"})],ql.prototype,"readOnly",void 0),Ho([Zn({mode:"boolean"})],ql.prototype,"autofocus",void 0),Ho([Zn],ql.prototype,"placeholder",void 0),Ho([Zn],ql.prototype,"list",void 0),Ho([Zn({converter:Qn})],ql.prototype,"maxlength",void 0),Ho([Zn({converter:Qn})],ql.prototype,"minlength",void 0),Ho([Zn],ql.prototype,"pattern",void 0),Ho([Zn({converter:Qn})],ql.prototype,"size",void 0),Ho([Zn({mode:"boolean"})],ql.prototype,"spellcheck",void 0),Ho([cn],ql.prototype,"defaultSlottedNodes",void 0);class zl{}Is(zl,ar),Is(ql,zo,zl);class jl extends rl{}class Vl extends(Dr(jl)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Hl extends Vl{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=nr("listbox-"),this.maxHeight=0}openChanged(e,t){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void sn.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return ln.track(this,"value"),this._value}set value(e){var t,i,n,o,s,r,a;const l=`${this._value}`;if(null===(t=this._options)||void 0===t?void 0:t.length){const t=this._options.findIndex((t=>t.value===e)),l=null!==(n=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==n?n:null,c=null!==(s=null===(o=this._options[t])||void 0===o?void 0:o.value)&&void 0!==s?s:null;-1!==t&&l===c||(e="",this.selectedIndex=t),e=null!==(a=null===(r=this.firstSelectedOption)||void 0===r?void 0:r.value)&&void 0!==a?a:e}l!==e&&(this._value=e,super.valueChanged(l,e),ln.notify(this,"value"),this.updateDisplayValue())}updateValue(e){var t,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value)&&void 0!==i?i:""),e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t),this.updateValue()}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}setPositioning(){const e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?na:oa,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===na?~~e.top:~~t}get displayValue(){var e,t;return ln.track(this,"displayValue"),null!==(t=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)&&void 0!==t?t:""}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return super.clickHandler(e),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(e){var t;if(super.focusoutHandler(e),!this.open)return!0;const i=e.relatedTarget;this.isSameNode(i)?this.focus():(null===(t=this.options)||void 0===t?void 0:t.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(e,t){super.handleChange(e,t),"value"===t&&this.updateValue()}slottedOptionsChanged(e,t){this.options.forEach((e=>{ln.getNotifier(e).unsubscribe(this,"value")})),super.slottedOptionsChanged(e,t),this.options.forEach((e=>{ln.getNotifier(e).subscribe(this,"value")})),this.setProxyOptions(),this.updateValue()}mousedownHandler(e){var t;return e.offsetX>=0&&e.offsetX<=(null===(t=this.listbox)||void 0===t?void 0:t.scrollWidth)?super.mousedownHandler(e):this.collapsible}multipleChanged(e,t){super.multipleChanged(e,t),this.proxy&&(this.proxy.multiple=t)}selectedOptionsChanged(e,t){var i;super.selectedOptionsChanged(e,t),null===(i=this.options)||void 0===i||i.forEach(((e,t)=>{var i;const n=null===(i=this.proxy)||void 0===i?void 0:i.options.item(t);n&&(n.selected=e.selected)}))}setDefaultSelectedOption(){var e;const t=null!==(e=this.options)&&void 0!==e?e:Array.from(this.children).filter(ta.slottedOptionFilter),i=null==t?void 0:t.findIndex((e=>e.hasAttribute("selected")||e.selected||e.value===this.value));this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((e=>{const t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);t&&this.proxy.options.add(t)})))}keydownHandler(e){super.keydownHandler(e);const t=e.key||e.key.charCodeAt(0);switch(t){case Qs:e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case Gs:case Xs:e.preventDefault();break;case Ws:e.preventDefault(),this.open=!this.open;break;case Ks:this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break;case Ys:return this.collapsible&&this.open&&(e.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(t===Vs||t===Us)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(e,t){super.sizeChanged(e,t),this.proxy&&(this.proxy.size=t)}updateDisplayValue(){this.collapsible&&ln.notify(this,"displayValue")}}Ho([Zn({attribute:"open",mode:"boolean"})],Hl.prototype,"open",void 0),Ho([function(e,t,i){return Object.assign({},i,{get:function(){return ln.trackVolatile(),i.get.apply(this)}})}],Hl.prototype,"collapsible",null),Ho([cn],Hl.prototype,"control",void 0),Ho([Zn({attribute:"position"})],Hl.prototype,"positionAttribute",void 0),Ho([cn],Hl.prototype,"position",void 0),Ho([cn],Hl.prototype,"maxHeight",void 0);class Bl{}Ho([cn],Bl.prototype,"ariaControls",void 0),Is(Bl,ia),Is(Hl,zo,Bl);class Ul extends Ss{constructor(){super(...arguments),this.shape="rect"}}function Wl(e,t,i,n){let o=er(0,1,(e-t)/(i-t));return n===Js.rtl&&(o=1-o),o}Ho([Zn],Ul.prototype,"fill",void 0),Ho([Zn],Ul.prototype,"shape",void 0),Ho([Zn],Ul.prototype,"pattern",void 0),Ho([Zn({mode:"boolean"})],Ul.prototype,"shimmer",void 0);const Kl={min:0,max:0,direction:Js.ltr,orientation:Os,disabled:!1};class Gl extends Ss{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=Js.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const e=this.parentNode,{min:t,max:i,direction:n,orientation:o,disabled:s}=e;void 0!==s&&(this.disabled=s),this.sliderDirection=n||Js.ltr,this.sliderOrientation=o||Os,this.sliderMaxPosition=i,this.sliderMinPosition=t}else this.sliderDirection=Kl.direction||Js.ltr,this.sliderOrientation=Kl.orientation,this.sliderMaxPosition=Kl.max,this.sliderMinPosition=Kl.min},this.positionAsStyle=()=>{const e=this.sliderDirection?this.sliderDirection:Js.ltr,t=Wl(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-t)),n=Math.round(100*t);return Number.isNaN(n)&&Number.isNaN(i)&&(i=50,n=50),this.sliderOrientation===Os?e===Js.rtl?`right: ${n}%; left: ${i}%;`:`left: ${n}%; right: ${i}%;`:`top: ${n}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=ln.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(e,t){switch(t){case"direction":this.sliderDirection=e.direction;break;case"orientation":this.sliderOrientation=e.orientation;break;case"max":this.sliderMaxPosition=e.max;break;case"min":this.sliderMinPosition=e.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(e){return void 0!==e.max&&void 0!==e.min}}Ho([cn],Gl.prototype,"positionStyle",void 0),Ho([Zn],Gl.prototype,"position",void 0),Ho([Zn({attribute:"hide-mark",mode:"boolean"})],Gl.prototype,"hideMark",void 0),Ho([Zn({attribute:"disabled",mode:"boolean"})],Gl.prototype,"disabled",void 0),Ho([cn],Gl.prototype,"sliderOrientation",void 0),Ho([cn],Gl.prototype,"sliderMinPosition",void 0),Ho([cn],Gl.prototype,"sliderMaxPosition",void 0),Ho([cn],Gl.prototype,"sliderDirection",void 0);class Xl extends Ss{}class Ql extends(Dr(Xl)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Yl="single-value";class Zl extends Ql{constructor(){super(...arguments),this.direction=Js.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=Os,this.mode=Yl,this.keypressHandler=e=>{if(!this.readOnly)if(e.key===Gs)e.preventDefault(),this.value=`${this.min}`;else if(e.key===Xs)e.preventDefault(),this.value=`${this.max}`;else if(!e.shiftKey)switch(e.key){case Bs:case Us:e.preventDefault(),this.increment();break;case Hs:case Vs:e.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.bottom,this.trackMinHeight=e.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{const t=(e?"remove":"add")+"EventListener";this[t]("keydown",this.keypressHandler),this[t]("mousedown",this.handleMouseDown),this.thumb[t]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[t]("touchstart",this.handleThumbMouseDown,{passive:!0}),e&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=e=>{if(e){if(this.readOnly||this.disabled||e.defaultPrevented)return;e.target.focus()}const t=(null!==e?"add":"remove")+"EventListener";window[t]("mouseup",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove,{passive:!0}),window[t]("touchmove",this.handleMouseMove,{passive:!0}),window[t]("touchend",this.handleWindowMouseUp),this.isDragging=null!==e},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.orientation===Os?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`},this.calculateNewValue=e=>{const t=Wl(e,this.orientation===Os?this.trackMinWidth:this.trackMinHeight,this.orientation===Os?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{const t=(null!==e?"add":"remove")+"EventListener";if((null===e||!this.disabled&&!this.readOnly)&&(window[t]("mouseup",this.handleWindowMouseUp),window.document[t]("mouseleave",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove),e)){e.preventDefault(),this.setupTrackConstraints(),e.target.focus();const t=this.orientation===Os?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(t)}`}},this.convertToConstrainedValue=e=>{isNaN(e)&&(e=this.min);let t=e-this.min;const i=t-Math.round(t/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return t=i>=Number(this.step)/2?t-i+Number(this.step):t-i,t+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){super.valueChanged(e,t),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=dr(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const e=this.direction!==Js.rtl&&this.orientation!==Ps?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),t=this.convertToConstrainedValue(e),i=t<Number(this.max)?`${t}`:`${this.max}`;this.value=i}decrement(){const e=this.direction!==Js.rtl&&this.orientation!==Ps?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),t=this.convertToConstrainedValue(e),i=t>Number(this.min)?`${t}`:`${this.min}`;this.value=i}setThumbPositionForOrientation(e){const t=100*(1-Wl(Number(this.value),Number(this.min),Number(this.max),e));this.orientation===Os?this.position=this.isDragging?`right: ${t}%; transition: none;`:`right: ${t}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${t}%; transition: none;`:`bottom: ${t}%; transition: all 0.2s ease;`}updateStepMultiplier(){const e=this.step+"",t=this.step%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const e=parseFloat(this.value);!Number.isNaN(e)&&(e<this.min||e>this.max)&&(this.value=this.midpoint)}}}Ho([Zn({attribute:"readonly",mode:"boolean"})],Zl.prototype,"readOnly",void 0),Ho([cn],Zl.prototype,"direction",void 0),Ho([cn],Zl.prototype,"isDragging",void 0),Ho([cn],Zl.prototype,"position",void 0),Ho([cn],Zl.prototype,"trackWidth",void 0),Ho([cn],Zl.prototype,"trackMinWidth",void 0),Ho([cn],Zl.prototype,"trackHeight",void 0),Ho([cn],Zl.prototype,"trackLeft",void 0),Ho([cn],Zl.prototype,"trackMinHeight",void 0),Ho([cn],Zl.prototype,"valueTextFormatter",void 0),Ho([Zn({converter:Qn})],Zl.prototype,"min",void 0),Ho([Zn({converter:Qn})],Zl.prototype,"max",void 0),Ho([Zn({converter:Qn})],Zl.prototype,"step",void 0),Ho([Zn],Zl.prototype,"orientation",void 0),Ho([Zn],Zl.prototype,"mode",void 0);class Jl extends Ss{}class ec extends(Er(Jl)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class tc extends ec{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case Ws:case Qs:this.checked=!this.checked}},this.clickHandler=e=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(e,t){super.checkedChanged(e,t),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}Ho([Zn({attribute:"readonly",mode:"boolean"})],tc.prototype,"readOnly",void 0),Ho([cn],tc.prototype,"defaultSlottedNodes",void 0);class ic extends Ss{}class nc extends Ss{}Ho([Zn({mode:"boolean"})],nc.prototype,"disabled",void 0);const oc="horizontal";class sc extends Ss{constructor(){super(...arguments),this.orientation=oc,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>"true"===e.getAttribute("aria-disabled"),this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.setTabs=()=>{const e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach(((n,o)=>{if("tab"===n.slot){const e=this.activeTabIndex===o&&this.isFocusableElement(n);this.activeindicator&&this.isFocusableElement(n)&&(this.showActiveIndicator=!0);const t=this.tabIds[o],i=this.tabpanelIds[o];n.setAttribute("id",t),n.setAttribute("aria-selected",e?"true":"false"),n.setAttribute("aria-controls",i),n.addEventListener("click",this.handleTabClick),n.addEventListener("keydown",this.handleTabKeyDown),n.setAttribute("tabindex",e?"0":"-1"),e&&(this.activetab=n,this.activeid=t)}n.style[e]="",n.style[t]="",n.style[i]=`${o+1}`,this.isHorizontal()?n.classList.remove("vertical"):n.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const i=this.tabIds[t],n=this.tabpanelIds[t];e.setAttribute("id",n),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))},this.handleTabClick=e=>{const t=e.currentTarget;1===t.nodeType&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case Hs:e.preventDefault(),this.adjustBackward(e);break;case Bs:e.preventDefault(),this.adjustForward(e)}else switch(e.key){case Us:e.preventDefault(),this.adjustBackward(e);break;case Vs:e.preventDefault(),this.adjustForward(e)}switch(e.key){case Gs:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case Xs:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=e=>{const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i<t.length&&t.length>1;){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}},this.adjustBackward=e=>{const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}i-1<0?i=t.length-1:i-=1}},this.moveToTabByIndex=(e,t)=>{const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex((t=>t.id===e)),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${nr()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${nr()}`}))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===oc}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const e=this.isHorizontal()?"gridColumn":"gridRow",t=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",n=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`;const s=o-n;this.activeIndicatorRef.style.transform=`${t}(${s}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=!1,this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${t}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(e){const t=this.tabs.filter((e=>this.isFocusableElement(e))),i=t.indexOf(this.activetab),n=er(0,t.length-1,i+e),o=this.tabs.indexOf(t[n]);o>-1&&this.moveToTabByIndex(this.tabs,o)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Ho([Zn],sc.prototype,"orientation",void 0),Ho([Zn],sc.prototype,"activeid",void 0),Ho([cn],sc.prototype,"tabs",void 0),Ho([cn],sc.prototype,"tabpanels",void 0),Ho([Zn({mode:"boolean"})],sc.prototype,"activeindicator",void 0),Ho([cn],sc.prototype,"activeIndicatorRef",void 0),Ho([cn],sc.prototype,"showActiveIndicator",void 0),Is(sc,zo);class rc extends Ss{}class ac extends(Dr(rc)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const lc="none";let cc=class extends ac{constructor(){super(...arguments),this.resize=lc,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};Ho([Zn({mode:"boolean"})],cc.prototype,"readOnly",void 0),Ho([Zn],cc.prototype,"resize",void 0),Ho([Zn({mode:"boolean"})],cc.prototype,"autofocus",void 0),Ho([Zn({attribute:"form"})],cc.prototype,"formId",void 0),Ho([Zn],cc.prototype,"list",void 0),Ho([Zn({converter:Qn})],cc.prototype,"maxlength",void 0),Ho([Zn({converter:Qn})],cc.prototype,"minlength",void 0),Ho([Zn],cc.prototype,"name",void 0),Ho([Zn],cc.prototype,"placeholder",void 0),Ho([Zn({converter:Qn,mode:"fromView"})],cc.prototype,"cols",void 0),Ho([Zn({converter:Qn,mode:"fromView"})],cc.prototype,"rows",void 0),Ho([Zn({mode:"boolean"})],cc.prototype,"spellcheck",void 0),Ho([cn],cc.prototype,"defaultSlottedNodes",void 0),Is(cc,Sl);const dc=Object.freeze({[Zs.ArrowUp]:{[Ps]:-1},[Zs.ArrowDown]:{[Ps]:1},[Zs.ArrowLeft]:{[Os]:{[Js.ltr]:-1,[Js.rtl]:1}},[Zs.ArrowRight]:{[Os]:{[Js.ltr]:1,[Js.rtl]:-1}}});class hc extends Ss{constructor(){super(...arguments),this._activeIndex=0,this.direction=Js.ltr,this.orientation=Os}get activeIndex(){return ln.track(this,"activeIndex"),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=er(0,this.focusableElements.length-1,e),ln.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}mouseDownHandler(e){var t;const i=null===(t=this.focusableElements)||void 0===t?void 0:t.findIndex((t=>t.contains(e.target)));return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}childItemsChanged(e,t){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=dr(this)}focusinHandler(e){const t=e.relatedTarget;t&&!this.contains(t)&&this.setFocusedElement()}getDirectionalIncrementer(e){var t,i,n,o,s;return null!==(s=null!==(n=null===(i=null===(t=dc[e])||void 0===t?void 0:t[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==n?n:null===(o=dc[e])||void 0===o?void 0:o[this.orientation])&&void 0!==s?s:0}keydownHandler(e){const t=e.key;if(!(t in Zs)||e.defaultPrevented||e.shiftKey)return!0;const i=this.getDirectionalIncrementer(t);if(!i)return!e.target.closest("[role=radiogroup]");const n=this.activeIndex+i;return this.focusableElements[n]&&e.preventDefault(),this.setFocusedElement(n),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;const t=null===(e=this.focusableElements)||void 0===e?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(hc.reduceFocusableItems,[]);const i=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,i),this.setFocusableElements()}setFocusedElement(e=this.activeIndex){var t;this.activeIndex=e,this.setFocusableElements(),null===(t=this.focusableElements[this.activeIndex])||void 0===t||t.focus()}static reduceFocusableItems(e,t){var i,n,o,s;const r="radio"===t.getAttribute("role"),a=null===(n=null===(i=t.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===n?void 0:n.delegatesFocus,l=Array.from(null!==(s=null===(o=t.shadowRoot)||void 0===o?void 0:o.querySelectorAll("*"))&&void 0!==s?s:[]).some((e=>Ya(e)));return t.hasAttribute("disabled")||t.hasAttribute("hidden")||!(Ya(t)||r||a||l)?t.childElementCount?e.concat(Array.from(t.children).reduce(hc.reduceFocusableItems,[])):e:(e.push(t),e)}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach(((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1}))}}Ho([cn],hc.prototype,"direction",void 0),Ho([Zn],hc.prototype,"orientation",void 0),Ho([cn],hc.prototype,"slottedItems",void 0),Ho([cn],hc.prototype,"slottedLabel",void 0),Ho([cn],hc.prototype,"childItems",void 0);class uc{}Ho([Zn({attribute:"aria-labelledby"})],uc.prototype,"ariaLabelledby",void 0),Ho([Zn({attribute:"aria-label"})],uc.prototype,"ariaLabel",void 0),Is(uc,ar),Is(hc,zo,uc);const pc="top",fc="right",gc="bottom",mc="left",vc="start",bc="end",yc="top-left",xc="top-right",wc="bottom-left",kc="bottom-right",Cc="top-start",Tc="top-end",Rc="bottom-start",Sc="bottom-end";class Dc extends Ss{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=Js.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=e=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleRegionMouseOver=e=>{this.isRegionHovered=!0},this.handleRegionMouseOut=e=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=e=>{this.tooltipVisible?this.isAnchorHoveredFocused=!0:this.startShowDelayTimer()},this.handleAnchorMouseOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=e=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout((()=>{this.updateTooltipVisibility()}),60))},this.clearHideDelayTimer=()=>{null!==this.hideDelayTimer&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.showDelayTimer&&(this.showDelayTimer=window.setTimeout((()=>{this.startHover()}),this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{null!==this.showDelayTimer&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{const e=this.getRootNode();return e instanceof ShadowRoot?e.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&this.tooltipVisible&&e.key===Ks)this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused||this.isRegionHovered)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=dr(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),sn.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener("mouseover",this.handleRegionMouseOver),this.region.removeEventListener("mouseout",this.handleRegionMouseOut)),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange),this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(e){if(this.$fastController.isConnected){if(null!=e&&(e.removeEventListener("mouseover",this.handleAnchorMouseOver),e.removeEventListener("mouseout",this.handleAnchorMouseOut),e.removeEventListener("focusin",this.handleAnchorFocusIn),e.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const e=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach((t=>{t.id===e&&this.startShowDelayTimer()}))}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.position){case pc:case gc:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case fc:case mc:case vc:case bc:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case yc:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case xc:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case wc:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case kc:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case Cc:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case Tc:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case Rc:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case Sc:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}function Ec(e){return As(e)&&"treeitem"===e.getAttribute("role")}Ho([Zn({mode:"boolean"})],Dc.prototype,"visible",void 0),Ho([Zn],Dc.prototype,"anchor",void 0),Ho([Zn],Dc.prototype,"delay",void 0),Ho([Zn],Dc.prototype,"position",void 0),Ho([Zn({attribute:"auto-update-mode"})],Dc.prototype,"autoUpdateMode",void 0),Ho([Zn({attribute:"horizontal-viewport-lock"})],Dc.prototype,"horizontalViewportLock",void 0),Ho([Zn({attribute:"vertical-viewport-lock"})],Dc.prototype,"verticalViewportLock",void 0),Ho([cn],Dc.prototype,"anchorElement",void 0),Ho([cn],Dc.prototype,"viewportElement",void 0),Ho([cn],Dc.prototype,"verticalPositioningMode",void 0),Ho([cn],Dc.prototype,"horizontalPositioningMode",void 0),Ho([cn],Dc.prototype,"horizontalInset",void 0),Ho([cn],Dc.prototype,"verticalInset",void 0),Ho([cn],Dc.prototype,"horizontalScaling",void 0),Ho([cn],Dc.prototype,"verticalScaling",void 0),Ho([cn],Dc.prototype,"verticalDefaultPosition",void 0),Ho([cn],Dc.prototype,"horizontalDefaultPosition",void 0),Ho([cn],Dc.prototype,"tooltipVisible",void 0),Ho([cn],Dc.prototype,"currentDirection",void 0);class Ic extends Ss{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>Ec(this.parentElement),this.handleExpandCollapseButtonClick=e=>{this.disabled||e.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=e=>{this.setAttribute("tabindex","0")},this.handleBlur=e=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(e,t){this.$fastController.isConnected&&this.items.forEach((e=>{Ec(e)&&(e.nested=!0)}))}static focusItem(e){e.focusable=!0,e.focus()}childItemLength(){const e=this.childItems.filter((e=>Ec(e)));return e?e.length:0}}Ho([Zn({mode:"boolean"})],Ic.prototype,"expanded",void 0),Ho([Zn({mode:"boolean"})],Ic.prototype,"selected",void 0),Ho([Zn({mode:"boolean"})],Ic.prototype,"disabled",void 0),Ho([cn],Ic.prototype,"focusable",void 0),Ho([cn],Ic.prototype,"childItems",void 0),Ho([cn],Ic.prototype,"items",void 0),Ho([cn],Ic.prototype,"nested",void 0),Ho([cn],Ic.prototype,"renderCollapsedChildren",void 0),Is(Ic,zo);class $c extends Ss{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=e=>{if(!(this.slottedTreeItems.length<1))return e.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&Ic.focusItem(this.currentFocused))):void(this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target))},this.handleBlur=e=>{e.target instanceof HTMLElement&&(null===e.relatedTarget||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=e=>{if(e.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const t=this.getVisibleNodes();switch(e.key){case Gs:return void(t.length&&Ic.focusItem(t[0]));case Xs:return void(t.length&&Ic.focusItem(t[t.length-1]));case Hs:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;t instanceof Ic&&t.childItemLength()>0&&t.expanded?t.expanded=!1:t instanceof Ic&&t.parentElement instanceof Ic&&Ic.focusItem(t.parentElement)}return!1;case Bs:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;t instanceof Ic&&t.childItemLength()>0&&!t.expanded?t.expanded=!0:t instanceof Ic&&t.childItemLength()>0&&this.focusNextNode(1,e.target)}return;case Vs:return void(e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(1,e.target));case Us:return void(e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(-1,e.target));case Ws:return void this.handleClick(e)}return!0},this.handleSelectedChange=e=>{if(e.defaultPrevented)return;if(!(e.target instanceof Element&&Ec(e.target)))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&(this.currentSelected.selected=!1),this.currentSelected=t):t.selected||this.currentSelected!==t||(this.currentSelected=null)},this.setItems=()=>{const e=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=e,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach((e=>{Ec(e)&&(e.nested=this.nested)}))},this.isFocusableElement=e=>Ec(e),this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),sn.queueUpdate((()=>{this.setItems()}))}handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element&&Ec(e.target)))return!0;const t=e.target;t.disabled||(t.selected=!t.selected)}focusNextNode(e,t){const i=this.getVisibleNodes();if(!i)return;const n=i[i.indexOf(t)+e];As(n)&&Ic.focusItem(n)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(this.isSelectedElement);return-1===t&&(t=e.findIndex(this.isFocusableElement)),-1!==t?e[t]:null}checkForNestedItems(){return this.slottedTreeItems.some((e=>Ec(e)&&e.querySelector("[role='treeitem']")))}getVisibleNodes(){return function(e,t){if(!e||!t||!As(e))return;return Array.from(e.querySelectorAll(t)).filter((e=>null!==e.offsetParent))}(this,"[role='treeitem']")||[]}}Ho([Zn({attribute:"render-collapsed-nodes"})],$c.prototype,"renderCollapsedNodes",void 0),Ho([cn],$c.prototype,"currentSelected",void 0),Ho([cn],$c.prototype,"slottedTreeItems",void 0);class Oc{constructor(e){this.listenerCache=new WeakMap,this.query=e}bind(e){const{query:t}=this,i=this.constructListener(e);i.bind(t)(),t.addListener(i),this.listenerCache.set(e,i)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeListener(t),this.listenerCache.delete(e))}}class Pc extends Oc{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Pc(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:n}=this;n&&!t?(e.$fastController.addStyles(i),t=n):!n&&t&&(e.$fastController.removeStyles(i),t=n)}}unbind(e){super.unbind(e),e.$fastController.removeStyles(this.styles)}}Pc.with(window.matchMedia("(forced-colors)")),Pc.with(window.matchMedia("(prefers-color-scheme: dark)")),Pc.with(window.matchMedia("(prefers-color-scheme: light)"));const Ac="not-allowed";function Mc(e){return`:host([hidden]){display:none}:host{display:${e}}`}const Lc=function(){if("boolean"==typeof Ms)return Ms;if("undefined"==typeof window||!window.document||!window.document.createElement)return Ms=!1,Ms;const e=document.createElement("style"),t=function(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Ms=!0}catch(e){Ms=!1}finally{document.head.removeChild(e)}return Ms}()?"focus-visible":"focus",Nc=new Set(["children","localName","ref","style","className"]),_c=Object.freeze(Object.create(null)),Fc="_default",qc=new Map;function zc(e,t){if(!t.name){const i=io.forType(e);if(!i)throw new Error("React wrappers must wrap a FASTElement or be configured with a name.");t.name=i.name}return t.name}function jc(e){return e.events||(e.events={})}function Vc(e,t,i){return!Nc.has(i)||(console.warn(`${zc(e,t)} contains property ${i} which is a React reserved property. It will be used by React and not set on the element.`),!1)}function Hc(e){const t=getComputedStyle(document.body),i=document.querySelector("body");if(i){const n=i.getAttribute("data-vscode-theme-kind");for(const[o,s]of e){let e=t.getPropertyValue(o).toString();if("vscode-high-contrast"===n)0===e.length&&s.name.includes("background")&&(e="transparent"),"button-icon-hover-background"===s.name&&(e="transparent");else if("vscode-high-contrast-light"===n){if(0===e.length&&s.name.includes("background"))switch(s.name){case"button-primary-hover-background":e="#0F4A85";break;case"button-secondary-hover-background":case"button-icon-hover-background":e="transparent"}}else"contrast-active-border"===s.name&&(e="transparent");s.setValueFor(i,e)}}}const Bc=new Map;let Uc=!1;function Wc(e,t){const i=$a.create(e);if(t){if(t.includes("--fake-vscode-token")){t=`${t}-${"id"+Math.random().toString(16).slice(2)}`}Bc.set(t,i)}return Uc||(!function(e){window.addEventListener("load",(()=>{new MutationObserver((()=>{Hc(e)})).observe(document.body,{attributes:!0,attributeFilter:["class"]}),Hc(e)}))}(Bc),Uc=!0),i}const Kc=Wc("background","--vscode-editor-background").withDefault("#1e1e1e"),Gc=Wc("border-width").withDefault(1),Xc=Wc("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");Wc("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const Qc=Wc("corner-radius").withDefault(0),Yc=Wc("corner-radius-round").withDefault(2),Zc=Wc("design-unit").withDefault(4),Jc=Wc("disabled-opacity").withDefault(.4),ed=Wc("focus-border","--vscode-focusBorder").withDefault("#007fd4"),td=Wc("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");Wc("font-weight","--vscode-font-weight").withDefault("400");const id=Wc("foreground","--vscode-foreground").withDefault("#cccccc"),nd=Wc("input-height").withDefault("26"),od=Wc("input-min-width").withDefault("100px"),sd=Wc("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),rd=Wc("type-ramp-base-line-height").withDefault("normal"),ad=Wc("type-ramp-minus1-font-size").withDefault("11px"),ld=Wc("type-ramp-minus1-line-height").withDefault("16px");Wc("type-ramp-minus2-font-size").withDefault("9px"),Wc("type-ramp-minus2-line-height").withDefault("16px"),Wc("type-ramp-plus1-font-size").withDefault("16px"),Wc("type-ramp-plus1-line-height").withDefault("24px");const cd=Wc("scrollbarWidth").withDefault("10px"),dd=Wc("scrollbarHeight").withDefault("10px"),hd=Wc("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),ud=Wc("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),pd=Wc("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),fd=Wc("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),gd=Wc("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),md=Wc("button-border","--vscode-button-border").withDefault("transparent"),vd=Wc("button-icon-background").withDefault("transparent"),bd=Wc("button-icon-corner-radius").withDefault("5px"),yd=Wc("button-icon-outline-offset").withDefault(0),xd=Wc("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),wd=Wc("button-icon-padding").withDefault("3px"),kd=Wc("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Cd=Wc("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Td=Wc("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),Rd=Wc("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),Sd=Wc("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),Dd=Wc("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),Ed=Wc("button-padding-horizontal").withDefault("11px"),Id=Wc("button-padding-vertical").withDefault("4px"),$d=Wc("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Od=Wc("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),Pd=Wc("checkbox-corner-radius").withDefault(3);Wc("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const Ad=Wc("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),Md=Wc("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),Ld=Wc("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),Nd=Wc("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),_d=Wc("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Fd=Wc("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");Wc("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const qd=Wc("dropdown-list-max-height").withDefault("200px"),zd=Wc("input-background","--vscode-input-background").withDefault("#3c3c3c"),jd=Wc("input-foreground","--vscode-input-foreground").withDefault("#cccccc");Wc("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const Vd=Wc("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),Hd=Wc("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),Bd=Wc("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),Ud=Wc("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),Wd=Wc("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),Kd=Wc("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");Wc("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),Wc("panel-view-border","--vscode-panel-border").withDefault("#80808059");const Gd=Wc("tag-corner-radius").withDefault("2px");const Xd=class extends wr{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}.compose({baseName:"badge",template:xr,styles:(e,t)=>ho`
|
|
107
|
+
${Mc("inline-block")} :host {
|
|
108
|
+
box-sizing: border-box;
|
|
109
|
+
font-family: ${td};
|
|
110
|
+
font-size: ${ad};
|
|
111
|
+
line-height: ${ld};
|
|
112
|
+
text-align: center;
|
|
113
|
+
}
|
|
114
|
+
.control {
|
|
115
|
+
align-items: center;
|
|
116
|
+
background-color: ${fd};
|
|
117
|
+
border: calc(${Gc} * 1px) solid ${md};
|
|
118
|
+
border-radius: 11px;
|
|
119
|
+
box-sizing: border-box;
|
|
120
|
+
color: ${gd};
|
|
121
|
+
display: flex;
|
|
122
|
+
height: calc(${Zc} * 4px);
|
|
123
|
+
justify-content: center;
|
|
124
|
+
min-width: calc(${Zc} * 4px + 2px);
|
|
125
|
+
min-height: calc(${Zc} * 4px + 2px);
|
|
126
|
+
padding: 3px 6px;
|
|
127
|
+
}
|
|
128
|
+
`}),Qd=ho`
|
|
129
|
+
${Mc("inline-flex")} :host {
|
|
130
|
+
outline: none;
|
|
131
|
+
font-family: ${td};
|
|
132
|
+
font-size: ${sd};
|
|
133
|
+
line-height: ${rd};
|
|
134
|
+
color: ${Cd};
|
|
135
|
+
background: ${kd};
|
|
136
|
+
border-radius: calc(${Yc} * 1px);
|
|
137
|
+
fill: currentColor;
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
}
|
|
140
|
+
.control {
|
|
141
|
+
background: transparent;
|
|
142
|
+
height: inherit;
|
|
143
|
+
flex-grow: 1;
|
|
144
|
+
box-sizing: border-box;
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
align-items: center;
|
|
148
|
+
padding: ${Id} ${Ed};
|
|
149
|
+
white-space: wrap;
|
|
150
|
+
outline: none;
|
|
151
|
+
text-decoration: none;
|
|
152
|
+
border: calc(${Gc} * 1px) solid ${md};
|
|
153
|
+
color: inherit;
|
|
154
|
+
border-radius: inherit;
|
|
155
|
+
fill: inherit;
|
|
156
|
+
cursor: inherit;
|
|
157
|
+
font-family: inherit;
|
|
158
|
+
}
|
|
159
|
+
:host(:hover) {
|
|
160
|
+
background: ${Td};
|
|
161
|
+
}
|
|
162
|
+
:host(:active) {
|
|
163
|
+
background: ${kd};
|
|
164
|
+
}
|
|
165
|
+
.control:${Lc} {
|
|
166
|
+
outline: calc(${Gc} * 1px) solid ${ed};
|
|
167
|
+
outline-offset: calc(${Gc} * 2px);
|
|
168
|
+
}
|
|
169
|
+
.control::-moz-focus-inner {
|
|
170
|
+
border: 0;
|
|
171
|
+
}
|
|
172
|
+
:host([disabled]) {
|
|
173
|
+
opacity: ${Jc};
|
|
174
|
+
background: ${kd};
|
|
175
|
+
cursor: ${Ac};
|
|
176
|
+
}
|
|
177
|
+
.content {
|
|
178
|
+
display: flex;
|
|
179
|
+
}
|
|
180
|
+
.start {
|
|
181
|
+
display: flex;
|
|
182
|
+
}
|
|
183
|
+
::slotted(svg),
|
|
184
|
+
::slotted(span) {
|
|
185
|
+
width: calc(${Zc} * 4px);
|
|
186
|
+
height: calc(${Zc} * 4px);
|
|
187
|
+
}
|
|
188
|
+
.start {
|
|
189
|
+
margin-inline-end: 8px;
|
|
190
|
+
}
|
|
191
|
+
`,Yd=ho`
|
|
192
|
+
:host([appearance='primary']) {
|
|
193
|
+
background: ${kd};
|
|
194
|
+
color: ${Cd};
|
|
195
|
+
}
|
|
196
|
+
:host([appearance='primary']:hover) {
|
|
197
|
+
background: ${Td};
|
|
198
|
+
}
|
|
199
|
+
:host([appearance='primary']:active) .control:active {
|
|
200
|
+
background: ${kd};
|
|
201
|
+
}
|
|
202
|
+
:host([appearance='primary']) .control:${Lc} {
|
|
203
|
+
outline: calc(${Gc} * 1px) solid ${ed};
|
|
204
|
+
outline-offset: calc(${Gc} * 2px);
|
|
205
|
+
}
|
|
206
|
+
:host([appearance='primary'][disabled]) {
|
|
207
|
+
background: ${kd};
|
|
208
|
+
}
|
|
209
|
+
`,Zd=ho`
|
|
210
|
+
:host([appearance='secondary']) {
|
|
211
|
+
background: ${Rd};
|
|
212
|
+
color: ${Sd};
|
|
213
|
+
}
|
|
214
|
+
:host([appearance='secondary']:hover) {
|
|
215
|
+
background: ${Dd};
|
|
216
|
+
}
|
|
217
|
+
:host([appearance='secondary']:active) .control:active {
|
|
218
|
+
background: ${Rd};
|
|
219
|
+
}
|
|
220
|
+
:host([appearance='secondary']) .control:${Lc} {
|
|
221
|
+
outline: calc(${Gc} * 1px) solid ${ed};
|
|
222
|
+
outline-offset: calc(${Gc} * 2px);
|
|
223
|
+
}
|
|
224
|
+
:host([appearance='secondary'][disabled]) {
|
|
225
|
+
background: ${Rd};
|
|
226
|
+
}
|
|
227
|
+
`,Jd=ho`
|
|
228
|
+
:host([appearance='icon']) {
|
|
229
|
+
background: ${vd};
|
|
230
|
+
border-radius: ${bd};
|
|
231
|
+
color: ${id};
|
|
232
|
+
}
|
|
233
|
+
:host([appearance='icon']:hover) {
|
|
234
|
+
background: ${xd};
|
|
235
|
+
outline: 1px dotted ${Xc};
|
|
236
|
+
outline-offset: -1px;
|
|
237
|
+
}
|
|
238
|
+
:host([appearance='icon']) .control {
|
|
239
|
+
padding: ${wd};
|
|
240
|
+
border: none;
|
|
241
|
+
}
|
|
242
|
+
:host([appearance='icon']:active) .control:active {
|
|
243
|
+
background: ${xd};
|
|
244
|
+
}
|
|
245
|
+
:host([appearance='icon']) .control:${Lc} {
|
|
246
|
+
outline: calc(${Gc} * 1px) solid ${ed};
|
|
247
|
+
outline-offset: ${yd};
|
|
248
|
+
}
|
|
249
|
+
:host([appearance='icon'][disabled]) {
|
|
250
|
+
background: ${vd};
|
|
251
|
+
}
|
|
252
|
+
`;class eh extends Or{connectedCallback(){if(super.connectedCallback(),!this.appearance){const e=this.getAttribute("appearance");this.appearance=e}}attributeChangedCallback(e,t,i){if("appearance"===e&&"icon"===i){this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")}"aria-label"===e&&(this.ariaLabel=i),"disabled"===e&&(this.disabled=null!==i)}}Ho([Zn],eh.prototype,"appearance",void 0);const th=eh.compose({baseName:"button",template:(e,t)=>qn`
|
|
253
|
+
<button
|
|
254
|
+
class="control"
|
|
255
|
+
part="control"
|
|
256
|
+
?autofocus="${e=>e.autofocus}"
|
|
257
|
+
?disabled="${e=>e.disabled}"
|
|
258
|
+
form="${e=>e.formId}"
|
|
259
|
+
formaction="${e=>e.formaction}"
|
|
260
|
+
formenctype="${e=>e.formenctype}"
|
|
261
|
+
formmethod="${e=>e.formmethod}"
|
|
262
|
+
formnovalidate="${e=>e.formnovalidate}"
|
|
263
|
+
formtarget="${e=>e.formtarget}"
|
|
264
|
+
name="${e=>e.name}"
|
|
265
|
+
type="${e=>e.type}"
|
|
266
|
+
value="${e=>e.value}"
|
|
267
|
+
aria-atomic="${e=>e.ariaAtomic}"
|
|
268
|
+
aria-busy="${e=>e.ariaBusy}"
|
|
269
|
+
aria-controls="${e=>e.ariaControls}"
|
|
270
|
+
aria-current="${e=>e.ariaCurrent}"
|
|
271
|
+
aria-describedby="${e=>e.ariaDescribedby}"
|
|
272
|
+
aria-details="${e=>e.ariaDetails}"
|
|
273
|
+
aria-disabled="${e=>e.ariaDisabled}"
|
|
274
|
+
aria-errormessage="${e=>e.ariaErrormessage}"
|
|
275
|
+
aria-expanded="${e=>e.ariaExpanded}"
|
|
276
|
+
aria-flowto="${e=>e.ariaFlowto}"
|
|
277
|
+
aria-haspopup="${e=>e.ariaHaspopup}"
|
|
278
|
+
aria-hidden="${e=>e.ariaHidden}"
|
|
279
|
+
aria-invalid="${e=>e.ariaInvalid}"
|
|
280
|
+
aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
|
|
281
|
+
aria-label="${e=>e.ariaLabel}"
|
|
282
|
+
aria-labelledby="${e=>e.ariaLabelledby}"
|
|
283
|
+
aria-live="${e=>e.ariaLive}"
|
|
284
|
+
aria-owns="${e=>e.ariaOwns}"
|
|
285
|
+
aria-pressed="${e=>e.ariaPressed}"
|
|
286
|
+
aria-relevant="${e=>e.ariaRelevant}"
|
|
287
|
+
aria-roledescription="${e=>e.ariaRoledescription}"
|
|
288
|
+
${Ro("control")}
|
|
289
|
+
>
|
|
290
|
+
${Vo(0,t)}
|
|
291
|
+
<span class="content" part="content">
|
|
292
|
+
<slot ${_o("defaultSlottedContent")}></slot>
|
|
293
|
+
</span>
|
|
294
|
+
${jo(0,t)}
|
|
295
|
+
</button>
|
|
296
|
+
`,styles:(e,t)=>ho`
|
|
297
|
+
${Qd}
|
|
298
|
+
${Yd}
|
|
299
|
+
${Zd}
|
|
300
|
+
${Jd}
|
|
301
|
+
`,shadowOptions:{delegatesFocus:!0}});const ih=class extends Yr{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}.compose({baseName:"checkbox",template:(e,t)=>qn`
|
|
302
|
+
<template
|
|
303
|
+
role="checkbox"
|
|
304
|
+
aria-checked="${e=>e.checked}"
|
|
305
|
+
aria-required="${e=>e.required}"
|
|
306
|
+
aria-disabled="${e=>e.disabled}"
|
|
307
|
+
aria-readonly="${e=>e.readOnly}"
|
|
308
|
+
tabindex="${e=>e.disabled?null:0}"
|
|
309
|
+
@keypress="${(e,t)=>e.keypressHandler(t.event)}"
|
|
310
|
+
@click="${(e,t)=>e.clickHandler(t.event)}"
|
|
311
|
+
class="${e=>e.readOnly?"readonly":""} ${e=>e.checked?"checked":""} ${e=>e.indeterminate?"indeterminate":""}"
|
|
312
|
+
>
|
|
313
|
+
<div part="control" class="control">
|
|
314
|
+
<slot name="checked-indicator">
|
|
315
|
+
${t.checkedIndicator||""}
|
|
316
|
+
</slot>
|
|
317
|
+
<slot name="indeterminate-indicator">
|
|
318
|
+
${t.indeterminateIndicator||""}
|
|
319
|
+
</slot>
|
|
320
|
+
</div>
|
|
321
|
+
<label
|
|
322
|
+
part="label"
|
|
323
|
+
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
324
|
+
>
|
|
325
|
+
<slot ${_o("defaultSlottedNodes")}></slot>
|
|
326
|
+
</label>
|
|
327
|
+
</template>
|
|
328
|
+
`,styles:(e,t)=>ho`
|
|
329
|
+
${Mc("inline-flex")} :host {
|
|
330
|
+
align-items: center;
|
|
331
|
+
outline: none;
|
|
332
|
+
margin: calc(${Zc} * 1px) 0;
|
|
333
|
+
user-select: none;
|
|
334
|
+
font-size: ${sd};
|
|
335
|
+
line-height: ${rd};
|
|
336
|
+
}
|
|
337
|
+
.control {
|
|
338
|
+
position: relative;
|
|
339
|
+
width: calc(${Zc} * 4px + 2px);
|
|
340
|
+
height: calc(${Zc} * 4px + 2px);
|
|
341
|
+
box-sizing: border-box;
|
|
342
|
+
border-radius: calc(${Pd} * 1px);
|
|
343
|
+
border: calc(${Gc} * 1px) solid ${Od};
|
|
344
|
+
background: ${$d};
|
|
345
|
+
outline: none;
|
|
346
|
+
cursor: pointer;
|
|
347
|
+
}
|
|
348
|
+
.label {
|
|
349
|
+
font-family: ${td};
|
|
350
|
+
color: ${id};
|
|
351
|
+
padding-inline-start: calc(${Zc} * 2px + 2px);
|
|
352
|
+
margin-inline-end: calc(${Zc} * 2px + 2px);
|
|
353
|
+
cursor: pointer;
|
|
354
|
+
}
|
|
355
|
+
.label__hidden {
|
|
356
|
+
display: none;
|
|
357
|
+
visibility: hidden;
|
|
358
|
+
}
|
|
359
|
+
.checked-indicator {
|
|
360
|
+
width: 100%;
|
|
361
|
+
height: 100%;
|
|
362
|
+
display: block;
|
|
363
|
+
fill: ${id};
|
|
364
|
+
opacity: 0;
|
|
365
|
+
pointer-events: none;
|
|
366
|
+
}
|
|
367
|
+
.indeterminate-indicator {
|
|
368
|
+
border-radius: 2px;
|
|
369
|
+
background: ${id};
|
|
370
|
+
position: absolute;
|
|
371
|
+
top: 50%;
|
|
372
|
+
left: 50%;
|
|
373
|
+
width: 50%;
|
|
374
|
+
height: 50%;
|
|
375
|
+
transform: translate(-50%, -50%);
|
|
376
|
+
opacity: 0;
|
|
377
|
+
}
|
|
378
|
+
:host(:enabled) .control:hover {
|
|
379
|
+
background: ${$d};
|
|
380
|
+
border-color: ${Od};
|
|
381
|
+
}
|
|
382
|
+
:host(:enabled) .control:active {
|
|
383
|
+
background: ${$d};
|
|
384
|
+
border-color: ${ed};
|
|
385
|
+
}
|
|
386
|
+
:host(:${Lc}) .control {
|
|
387
|
+
border: calc(${Gc} * 1px) solid ${ed};
|
|
388
|
+
}
|
|
389
|
+
:host(.disabled) .label,
|
|
390
|
+
:host(.readonly) .label,
|
|
391
|
+
:host(.readonly) .control,
|
|
392
|
+
:host(.disabled) .control {
|
|
393
|
+
cursor: ${Ac};
|
|
394
|
+
}
|
|
395
|
+
:host(.checked:not(.indeterminate)) .checked-indicator,
|
|
396
|
+
:host(.indeterminate) .indeterminate-indicator {
|
|
397
|
+
opacity: 1;
|
|
398
|
+
}
|
|
399
|
+
:host(.disabled) {
|
|
400
|
+
opacity: ${Jc};
|
|
401
|
+
}
|
|
402
|
+
`,checkedIndicator:'\n\t\t<svg \n\t\t\tpart="checked-indicator"\n\t\t\tclass="checked-indicator"\n\t\t\twidth="16" \n\t\t\theight="16" \n\t\t\tviewBox="0 0 16 16" \n\t\t\txmlns="http://www.w3.org/2000/svg" \n\t\t\tfill="currentColor"\n\t\t>\n\t\t\t<path \n\t\t\t\tfill-rule="evenodd" \n\t\t\t\tclip-rule="evenodd" \n\t\t\t\td="M14.431 3.323l-8.47 10-.79-.036-3.35-4.77.818-.574 2.978 4.24 8.051-9.506.764.646z"\n\t\t\t/>\n\t\t</svg>\n\t',indeterminateIndicator:'\n\t\t<div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n\t'});const nh=class extends Ur{connectedCallback(){super.connectedCallback();this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}.compose({baseName:"data-grid",baseClass:Ur,template:(e,t)=>{const i=function(e){const t=e.tagFor(Br);return qn`
|
|
403
|
+
<${t}
|
|
404
|
+
:rowData="${e=>e}"
|
|
405
|
+
:cellItemTemplate="${(e,t)=>t.parent.cellItemTemplate}"
|
|
406
|
+
:headerCellItemTemplate="${(e,t)=>t.parent.headerCellItemTemplate}"
|
|
407
|
+
></${t}>
|
|
408
|
+
`}(e),n=e.tagFor(Br);return qn`
|
|
409
|
+
<template
|
|
410
|
+
role="grid"
|
|
411
|
+
tabindex="0"
|
|
412
|
+
:rowElementTag="${()=>n}"
|
|
413
|
+
:defaultRowItemTemplate="${i}"
|
|
414
|
+
${qo({property:"rowElements",filter:Mo("[role=row]")})}
|
|
415
|
+
>
|
|
416
|
+
<slot></slot>
|
|
417
|
+
</template>
|
|
418
|
+
`},styles:(e,t)=>ho`
|
|
419
|
+
:host {
|
|
420
|
+
display: flex;
|
|
421
|
+
position: relative;
|
|
422
|
+
flex-direction: column;
|
|
423
|
+
width: 100%;
|
|
424
|
+
}
|
|
425
|
+
`});const oh=class extends Br{}.compose({baseName:"data-grid-row",baseClass:Br,template:(e,t)=>{const i=function(e){const t=e.tagFor(Gr);return qn`
|
|
426
|
+
<${t}
|
|
427
|
+
cell-type="${e=>e.isRowHeader?"rowheader":void 0}"
|
|
428
|
+
grid-column="${(e,t)=>t.index+1}"
|
|
429
|
+
:rowData="${(e,t)=>t.parent.rowData}"
|
|
430
|
+
:columnDefinition="${e=>e}"
|
|
431
|
+
></${t}>
|
|
432
|
+
`}(e),n=function(e){const t=e.tagFor(Gr);return qn`
|
|
433
|
+
<${t}
|
|
434
|
+
cell-type="columnheader"
|
|
435
|
+
grid-column="${(e,t)=>t.index+1}"
|
|
436
|
+
:columnDefinition="${e=>e}"
|
|
437
|
+
></${t}>
|
|
438
|
+
`}(e);return qn`
|
|
439
|
+
<template
|
|
440
|
+
role="row"
|
|
441
|
+
class="${e=>"default"!==e.rowType?e.rowType:""}"
|
|
442
|
+
:defaultCellItemTemplate="${i}"
|
|
443
|
+
:defaultHeaderCellItemTemplate="${n}"
|
|
444
|
+
${qo({property:"cellElements",filter:Mo('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})}
|
|
445
|
+
>
|
|
446
|
+
<slot ${_o("slottedCellElements")}></slot>
|
|
447
|
+
</template>
|
|
448
|
+
`},styles:(e,t)=>ho`
|
|
449
|
+
:host {
|
|
450
|
+
display: grid;
|
|
451
|
+
padding: calc((${Zc} / 4) * 1px) 0;
|
|
452
|
+
box-sizing: border-box;
|
|
453
|
+
width: 100%;
|
|
454
|
+
background: transparent;
|
|
455
|
+
}
|
|
456
|
+
:host(.header) {
|
|
457
|
+
}
|
|
458
|
+
:host(.sticky-header) {
|
|
459
|
+
background: ${Kc};
|
|
460
|
+
position: sticky;
|
|
461
|
+
top: 0;
|
|
462
|
+
}
|
|
463
|
+
:host(:hover) {
|
|
464
|
+
background: ${Ld};
|
|
465
|
+
outline: 1px dotted ${Xc};
|
|
466
|
+
outline-offset: -1px;
|
|
467
|
+
}
|
|
468
|
+
`});const sh=class extends Gr{}.compose({baseName:"data-grid-cell",baseClass:Gr,template:(e,t)=>qn`
|
|
469
|
+
<template
|
|
470
|
+
tabindex="-1"
|
|
471
|
+
role="${e=>e.cellType&&"default"!==e.cellType?e.cellType:"gridcell"}"
|
|
472
|
+
class="
|
|
473
|
+
${e=>"columnheader"===e.cellType?"column-header":"rowheader"===e.cellType?"row-header":""}
|
|
474
|
+
"
|
|
475
|
+
>
|
|
476
|
+
<slot></slot>
|
|
477
|
+
</template>
|
|
478
|
+
`,styles:(e,t)=>ho`
|
|
479
|
+
:host {
|
|
480
|
+
padding: calc(${Zc} * 1px) calc(${Zc} * 3px);
|
|
481
|
+
color: ${id};
|
|
482
|
+
opacity: 1;
|
|
483
|
+
box-sizing: border-box;
|
|
484
|
+
font-family: ${td};
|
|
485
|
+
font-size: ${sd};
|
|
486
|
+
line-height: ${rd};
|
|
487
|
+
font-weight: 400;
|
|
488
|
+
border: solid calc(${Gc} * 1px) transparent;
|
|
489
|
+
border-radius: calc(${Qc} * 1px);
|
|
490
|
+
white-space: wrap;
|
|
491
|
+
overflow-wrap: anywhere;
|
|
492
|
+
}
|
|
493
|
+
:host(.column-header) {
|
|
494
|
+
font-weight: 600;
|
|
495
|
+
}
|
|
496
|
+
:host(:${Lc}),
|
|
497
|
+
:host(:focus),
|
|
498
|
+
:host(:active) {
|
|
499
|
+
background: ${Ad};
|
|
500
|
+
border: solid calc(${Gc} * 1px) ${ed};
|
|
501
|
+
color: ${Md};
|
|
502
|
+
outline: none;
|
|
503
|
+
}
|
|
504
|
+
:host(:${Lc}) ::slotted(*),
|
|
505
|
+
:host(:focus) ::slotted(*),
|
|
506
|
+
:host(:active) ::slotted(*) {
|
|
507
|
+
color: ${Md} !important;
|
|
508
|
+
}
|
|
509
|
+
`});const rh=class extends nl{}.compose({baseName:"divider",template:(e,t)=>qn`
|
|
510
|
+
<template role="${e=>e.role}" aria-orientation="${e=>e.orientation}"></template>
|
|
511
|
+
`,styles:(e,t)=>ho`
|
|
512
|
+
${Mc("block")} :host {
|
|
513
|
+
border: none;
|
|
514
|
+
border-top: calc(${Gc} * 1px) solid ${Nd};
|
|
515
|
+
box-sizing: content-box;
|
|
516
|
+
height: 0;
|
|
517
|
+
margin: calc(${Zc} * 1px) 0;
|
|
518
|
+
width: 100%;
|
|
519
|
+
}
|
|
520
|
+
`});const ah=class extends Hl{}.compose({baseName:"dropdown",template:(e,t)=>qn`
|
|
521
|
+
<template
|
|
522
|
+
class="${e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}"
|
|
523
|
+
aria-activedescendant="${e=>e.ariaActiveDescendant}"
|
|
524
|
+
aria-controls="${e=>e.ariaControls}"
|
|
525
|
+
aria-disabled="${e=>e.ariaDisabled}"
|
|
526
|
+
aria-expanded="${e=>e.ariaExpanded}"
|
|
527
|
+
aria-haspopup="${e=>e.collapsible?"listbox":null}"
|
|
528
|
+
aria-multiselectable="${e=>e.ariaMultiSelectable}"
|
|
529
|
+
?open="${e=>e.open}"
|
|
530
|
+
role="combobox"
|
|
531
|
+
tabindex="${e=>e.disabled?null:"0"}"
|
|
532
|
+
@click="${(e,t)=>e.clickHandler(t.event)}"
|
|
533
|
+
@focusin="${(e,t)=>e.focusinHandler(t.event)}"
|
|
534
|
+
@focusout="${(e,t)=>e.focusoutHandler(t.event)}"
|
|
535
|
+
@keydown="${(e,t)=>e.keydownHandler(t.event)}"
|
|
536
|
+
@mousedown="${(e,t)=>e.mousedownHandler(t.event)}"
|
|
537
|
+
>
|
|
538
|
+
${Io((e=>e.collapsible),qn`
|
|
539
|
+
<div
|
|
540
|
+
class="control"
|
|
541
|
+
part="control"
|
|
542
|
+
?disabled="${e=>e.disabled}"
|
|
543
|
+
${Ro("control")}
|
|
544
|
+
>
|
|
545
|
+
${Vo(0,t)}
|
|
546
|
+
<slot name="button-container">
|
|
547
|
+
<div class="selected-value" part="selected-value">
|
|
548
|
+
<slot name="selected-value">${e=>e.displayValue}</slot>
|
|
549
|
+
</div>
|
|
550
|
+
<div aria-hidden="true" class="indicator" part="indicator">
|
|
551
|
+
<slot name="indicator">
|
|
552
|
+
${t.indicator||""}
|
|
553
|
+
</slot>
|
|
554
|
+
</div>
|
|
555
|
+
</slot>
|
|
556
|
+
${jo(0,t)}
|
|
557
|
+
</div>
|
|
558
|
+
`)}
|
|
559
|
+
<div
|
|
560
|
+
class="listbox"
|
|
561
|
+
id="${e=>e.listboxId}"
|
|
562
|
+
part="listbox"
|
|
563
|
+
role="listbox"
|
|
564
|
+
?disabled="${e=>e.disabled}"
|
|
565
|
+
?hidden="${e=>!!e.collapsible&&!e.open}"
|
|
566
|
+
${Ro("listbox")}
|
|
567
|
+
>
|
|
568
|
+
<slot
|
|
569
|
+
${_o({filter:ta.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
|
|
570
|
+
></slot>
|
|
571
|
+
</div>
|
|
572
|
+
</template>
|
|
573
|
+
`,styles:(e,t)=>ho`
|
|
574
|
+
${Mc("inline-flex")} :host {
|
|
575
|
+
background: ${_d};
|
|
576
|
+
border-radius: calc(${Yc} * 1px);
|
|
577
|
+
box-sizing: border-box;
|
|
578
|
+
color: ${id};
|
|
579
|
+
contain: contents;
|
|
580
|
+
font-family: ${td};
|
|
581
|
+
height: calc(${nd} * 1px);
|
|
582
|
+
position: relative;
|
|
583
|
+
user-select: none;
|
|
584
|
+
min-width: ${od};
|
|
585
|
+
outline: none;
|
|
586
|
+
vertical-align: top;
|
|
587
|
+
}
|
|
588
|
+
.control {
|
|
589
|
+
align-items: center;
|
|
590
|
+
box-sizing: border-box;
|
|
591
|
+
border: calc(${Gc} * 1px) solid ${Fd};
|
|
592
|
+
border-radius: calc(${Yc} * 1px);
|
|
593
|
+
cursor: pointer;
|
|
594
|
+
display: flex;
|
|
595
|
+
font-family: inherit;
|
|
596
|
+
font-size: ${sd};
|
|
597
|
+
line-height: ${rd};
|
|
598
|
+
min-height: 100%;
|
|
599
|
+
padding: 2px 6px 2px 8px;
|
|
600
|
+
width: 100%;
|
|
601
|
+
}
|
|
602
|
+
.listbox {
|
|
603
|
+
background: ${_d};
|
|
604
|
+
border: calc(${Gc} * 1px) solid ${ed};
|
|
605
|
+
border-radius: calc(${Yc} * 1px);
|
|
606
|
+
box-sizing: border-box;
|
|
607
|
+
display: inline-flex;
|
|
608
|
+
flex-direction: column;
|
|
609
|
+
left: 0;
|
|
610
|
+
max-height: ${qd};
|
|
611
|
+
padding: 0;
|
|
612
|
+
overflow-y: auto;
|
|
613
|
+
position: absolute;
|
|
614
|
+
width: 100%;
|
|
615
|
+
z-index: 1;
|
|
616
|
+
}
|
|
617
|
+
.listbox[hidden] {
|
|
618
|
+
display: none;
|
|
619
|
+
}
|
|
620
|
+
:host(:${Lc}) .control {
|
|
621
|
+
border-color: ${ed};
|
|
622
|
+
}
|
|
623
|
+
:host(:not([disabled]):hover) {
|
|
624
|
+
background: ${_d};
|
|
625
|
+
border-color: ${Fd};
|
|
626
|
+
}
|
|
627
|
+
:host(:${Lc}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) {
|
|
628
|
+
background: ${Ad};
|
|
629
|
+
border: calc(${Gc} * 1px) solid transparent;
|
|
630
|
+
color: ${Md};
|
|
631
|
+
}
|
|
632
|
+
:host([disabled]) {
|
|
633
|
+
cursor: ${Ac};
|
|
634
|
+
opacity: ${Jc};
|
|
635
|
+
}
|
|
636
|
+
:host([disabled]) .control {
|
|
637
|
+
cursor: ${Ac};
|
|
638
|
+
user-select: none;
|
|
639
|
+
}
|
|
640
|
+
:host([disabled]:hover) {
|
|
641
|
+
background: ${_d};
|
|
642
|
+
color: ${id};
|
|
643
|
+
fill: currentcolor;
|
|
644
|
+
}
|
|
645
|
+
:host(:not([disabled])) .control:active {
|
|
646
|
+
border-color: ${ed};
|
|
647
|
+
}
|
|
648
|
+
:host(:empty) .listbox {
|
|
649
|
+
display: none;
|
|
650
|
+
}
|
|
651
|
+
:host([open]) .control {
|
|
652
|
+
border-color: ${ed};
|
|
653
|
+
}
|
|
654
|
+
:host([open][position='above']) .listbox {
|
|
655
|
+
border-bottom-left-radius: 0;
|
|
656
|
+
border-bottom-right-radius: 0;
|
|
657
|
+
}
|
|
658
|
+
:host([open][position='below']) .listbox {
|
|
659
|
+
border-top-left-radius: 0;
|
|
660
|
+
border-top-right-radius: 0;
|
|
661
|
+
}
|
|
662
|
+
:host([open][position='above']) .listbox {
|
|
663
|
+
bottom: calc(${nd} * 1px);
|
|
664
|
+
}
|
|
665
|
+
:host([open][position='below']) .listbox {
|
|
666
|
+
top: calc(${nd} * 1px);
|
|
667
|
+
}
|
|
668
|
+
.selected-value {
|
|
669
|
+
flex: 1 1 auto;
|
|
670
|
+
font-family: inherit;
|
|
671
|
+
overflow: hidden;
|
|
672
|
+
text-align: start;
|
|
673
|
+
text-overflow: ellipsis;
|
|
674
|
+
white-space: nowrap;
|
|
675
|
+
}
|
|
676
|
+
.indicator {
|
|
677
|
+
flex: 0 0 auto;
|
|
678
|
+
margin-inline-start: 1em;
|
|
679
|
+
}
|
|
680
|
+
slot[name='listbox'] {
|
|
681
|
+
display: none;
|
|
682
|
+
width: 100%;
|
|
683
|
+
}
|
|
684
|
+
:host([open]) slot[name='listbox'] {
|
|
685
|
+
display: flex;
|
|
686
|
+
position: absolute;
|
|
687
|
+
}
|
|
688
|
+
.end {
|
|
689
|
+
margin-inline-start: auto;
|
|
690
|
+
}
|
|
691
|
+
.start,
|
|
692
|
+
.end,
|
|
693
|
+
.indicator,
|
|
694
|
+
.select-indicator,
|
|
695
|
+
::slotted(svg),
|
|
696
|
+
::slotted(span) {
|
|
697
|
+
fill: currentcolor;
|
|
698
|
+
height: 1em;
|
|
699
|
+
min-height: calc(${Zc} * 4px);
|
|
700
|
+
min-width: calc(${Zc} * 4px);
|
|
701
|
+
width: 1em;
|
|
702
|
+
}
|
|
703
|
+
::slotted([role='option']),
|
|
704
|
+
::slotted(option) {
|
|
705
|
+
flex: 0 0 auto;
|
|
706
|
+
}
|
|
707
|
+
`,indicator:'\n\t\t<svg \n\t\t\tclass="select-indicator"\n\t\t\tpart="select-indicator"\n\t\t\twidth="16" \n\t\t\theight="16" \n\t\t\tviewBox="0 0 16 16" \n\t\t\txmlns="http://www.w3.org/2000/svg" \n\t\t\tfill="currentColor"\n\t\t>\n\t\t\t<path \n\t\t\t\tfill-rule="evenodd" \n\t\t\t\tclip-rule="evenodd" \n\t\t\t\td="M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z"\n\t\t\t/>\n\t\t</svg>\n\t'});const lh=class extends lr{}.compose({baseName:"link",template:(e,t)=>qn`
|
|
708
|
+
<a
|
|
709
|
+
class="control"
|
|
710
|
+
part="control"
|
|
711
|
+
download="${e=>e.download}"
|
|
712
|
+
href="${e=>e.href}"
|
|
713
|
+
hreflang="${e=>e.hreflang}"
|
|
714
|
+
ping="${e=>e.ping}"
|
|
715
|
+
referrerpolicy="${e=>e.referrerpolicy}"
|
|
716
|
+
rel="${e=>e.rel}"
|
|
717
|
+
target="${e=>e.target}"
|
|
718
|
+
type="${e=>e.type}"
|
|
719
|
+
aria-atomic="${e=>e.ariaAtomic}"
|
|
720
|
+
aria-busy="${e=>e.ariaBusy}"
|
|
721
|
+
aria-controls="${e=>e.ariaControls}"
|
|
722
|
+
aria-current="${e=>e.ariaCurrent}"
|
|
723
|
+
aria-describedby="${e=>e.ariaDescribedby}"
|
|
724
|
+
aria-details="${e=>e.ariaDetails}"
|
|
725
|
+
aria-disabled="${e=>e.ariaDisabled}"
|
|
726
|
+
aria-errormessage="${e=>e.ariaErrormessage}"
|
|
727
|
+
aria-expanded="${e=>e.ariaExpanded}"
|
|
728
|
+
aria-flowto="${e=>e.ariaFlowto}"
|
|
729
|
+
aria-haspopup="${e=>e.ariaHaspopup}"
|
|
730
|
+
aria-hidden="${e=>e.ariaHidden}"
|
|
731
|
+
aria-invalid="${e=>e.ariaInvalid}"
|
|
732
|
+
aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
|
|
733
|
+
aria-label="${e=>e.ariaLabel}"
|
|
734
|
+
aria-labelledby="${e=>e.ariaLabelledby}"
|
|
735
|
+
aria-live="${e=>e.ariaLive}"
|
|
736
|
+
aria-owns="${e=>e.ariaOwns}"
|
|
737
|
+
aria-relevant="${e=>e.ariaRelevant}"
|
|
738
|
+
aria-roledescription="${e=>e.ariaRoledescription}"
|
|
739
|
+
${Ro("control")}
|
|
740
|
+
>
|
|
741
|
+
${Vo(0,t)}
|
|
742
|
+
<span class="content" part="content">
|
|
743
|
+
<slot ${_o("defaultSlottedContent")}></slot>
|
|
744
|
+
</span>
|
|
745
|
+
${jo(0,t)}
|
|
746
|
+
</a>
|
|
747
|
+
`,styles:(e,t)=>ho`
|
|
748
|
+
${Mc("inline-flex")} :host {
|
|
749
|
+
background: transparent;
|
|
750
|
+
box-sizing: border-box;
|
|
751
|
+
color: ${Hd};
|
|
752
|
+
cursor: pointer;
|
|
753
|
+
fill: currentcolor;
|
|
754
|
+
font-family: ${td};
|
|
755
|
+
font-size: ${sd};
|
|
756
|
+
line-height: ${rd};
|
|
757
|
+
outline: none;
|
|
758
|
+
}
|
|
759
|
+
.control {
|
|
760
|
+
background: transparent;
|
|
761
|
+
border: calc(${Gc} * 1px) solid transparent;
|
|
762
|
+
border-radius: calc(${Qc} * 1px);
|
|
763
|
+
box-sizing: border-box;
|
|
764
|
+
color: inherit;
|
|
765
|
+
cursor: inherit;
|
|
766
|
+
fill: inherit;
|
|
767
|
+
font-family: inherit;
|
|
768
|
+
height: inherit;
|
|
769
|
+
padding: 0;
|
|
770
|
+
outline: none;
|
|
771
|
+
text-decoration: none;
|
|
772
|
+
word-break: break-word;
|
|
773
|
+
}
|
|
774
|
+
.control::-moz-focus-inner {
|
|
775
|
+
border: 0;
|
|
776
|
+
}
|
|
777
|
+
:host(:hover) {
|
|
778
|
+
color: ${Vd};
|
|
779
|
+
}
|
|
780
|
+
:host(:hover) .content {
|
|
781
|
+
text-decoration: underline;
|
|
782
|
+
}
|
|
783
|
+
:host(:active) {
|
|
784
|
+
background: transparent;
|
|
785
|
+
color: ${Vd};
|
|
786
|
+
}
|
|
787
|
+
:host(:${Lc}) .control,
|
|
788
|
+
:host(:focus) .control {
|
|
789
|
+
border: calc(${Gc} * 1px) solid ${ed};
|
|
790
|
+
}
|
|
791
|
+
`,shadowOptions:{delegatesFocus:!0}});const ch=class extends Jr{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}}.compose({baseName:"option",template:(e,t)=>qn`
|
|
792
|
+
<template
|
|
793
|
+
aria-checked="${e=>e.ariaChecked}"
|
|
794
|
+
aria-disabled="${e=>e.ariaDisabled}"
|
|
795
|
+
aria-posinset="${e=>e.ariaPosInSet}"
|
|
796
|
+
aria-selected="${e=>e.ariaSelected}"
|
|
797
|
+
aria-setsize="${e=>e.ariaSetSize}"
|
|
798
|
+
class="${e=>[e.checked&&"checked",e.selected&&"selected",e.disabled&&"disabled"].filter(Boolean).join(" ")}"
|
|
799
|
+
role="option"
|
|
800
|
+
>
|
|
801
|
+
${Vo(0,t)}
|
|
802
|
+
<span class="content" part="content">
|
|
803
|
+
<slot ${_o("content")}></slot>
|
|
804
|
+
</span>
|
|
805
|
+
${jo(0,t)}
|
|
806
|
+
</template>
|
|
807
|
+
`,styles:(e,t)=>ho`
|
|
808
|
+
${Mc("inline-flex")} :host {
|
|
809
|
+
font-family: var(--body-font);
|
|
810
|
+
border-radius: ${Qc};
|
|
811
|
+
border: calc(${Gc} * 1px) solid transparent;
|
|
812
|
+
box-sizing: border-box;
|
|
813
|
+
color: ${id};
|
|
814
|
+
cursor: pointer;
|
|
815
|
+
fill: currentcolor;
|
|
816
|
+
font-size: ${sd};
|
|
817
|
+
line-height: ${rd};
|
|
818
|
+
margin: 0;
|
|
819
|
+
outline: none;
|
|
820
|
+
overflow: hidden;
|
|
821
|
+
padding: 0 calc((${Zc} / 2) * 1px)
|
|
822
|
+
calc((${Zc} / 4) * 1px);
|
|
823
|
+
user-select: none;
|
|
824
|
+
white-space: nowrap;
|
|
825
|
+
}
|
|
826
|
+
:host(:${Lc}) {
|
|
827
|
+
border-color: ${ed};
|
|
828
|
+
background: ${Ad};
|
|
829
|
+
color: ${id};
|
|
830
|
+
}
|
|
831
|
+
:host([aria-selected='true']) {
|
|
832
|
+
background: ${Ad};
|
|
833
|
+
border: calc(${Gc} * 1px) solid transparent;
|
|
834
|
+
color: ${Md};
|
|
835
|
+
}
|
|
836
|
+
:host(:active) {
|
|
837
|
+
background: ${Ad};
|
|
838
|
+
color: ${Md};
|
|
839
|
+
}
|
|
840
|
+
:host(:not([aria-selected='true']):hover) {
|
|
841
|
+
background: ${Ad};
|
|
842
|
+
border: calc(${Gc} * 1px) solid transparent;
|
|
843
|
+
color: ${Md};
|
|
844
|
+
}
|
|
845
|
+
:host(:not([aria-selected='true']):active) {
|
|
846
|
+
background: ${Ad};
|
|
847
|
+
color: ${id};
|
|
848
|
+
}
|
|
849
|
+
:host([disabled]) {
|
|
850
|
+
cursor: ${Ac};
|
|
851
|
+
opacity: ${Jc};
|
|
852
|
+
}
|
|
853
|
+
:host([disabled]:hover) {
|
|
854
|
+
background-color: inherit;
|
|
855
|
+
}
|
|
856
|
+
.content {
|
|
857
|
+
grid-column-start: 2;
|
|
858
|
+
justify-self: start;
|
|
859
|
+
overflow: hidden;
|
|
860
|
+
text-overflow: ellipsis;
|
|
861
|
+
}
|
|
862
|
+
`});const dh=class extends sc{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=oc);this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}.compose({baseName:"panels",template:(e,t)=>qn`
|
|
863
|
+
<template class="${e=>e.orientation}">
|
|
864
|
+
${Vo(0,t)}
|
|
865
|
+
<div class="tablist" part="tablist" role="tablist">
|
|
866
|
+
<slot class="tab" name="tab" part="tab" ${_o("tabs")}></slot>
|
|
867
|
+
|
|
868
|
+
${Io((e=>e.showActiveIndicator),qn`
|
|
869
|
+
<div
|
|
870
|
+
${Ro("activeIndicatorRef")}
|
|
871
|
+
class="activeIndicator"
|
|
872
|
+
part="activeIndicator"
|
|
873
|
+
></div>
|
|
874
|
+
`)}
|
|
875
|
+
</div>
|
|
876
|
+
${jo(0,t)}
|
|
877
|
+
<div class="tabpanel" part="tabpanel">
|
|
878
|
+
<slot name="tabpanel" ${_o("tabpanels")}></slot>
|
|
879
|
+
</div>
|
|
880
|
+
</template>
|
|
881
|
+
`,styles:(e,t)=>ho`
|
|
882
|
+
${Mc("grid")} :host {
|
|
883
|
+
box-sizing: border-box;
|
|
884
|
+
font-family: ${td};
|
|
885
|
+
font-size: ${sd};
|
|
886
|
+
line-height: ${rd};
|
|
887
|
+
color: ${id};
|
|
888
|
+
grid-template-columns: auto 1fr auto;
|
|
889
|
+
grid-template-rows: auto 1fr;
|
|
890
|
+
overflow-x: auto;
|
|
891
|
+
}
|
|
892
|
+
.tablist {
|
|
893
|
+
display: grid;
|
|
894
|
+
grid-template-rows: auto auto;
|
|
895
|
+
grid-template-columns: auto;
|
|
896
|
+
column-gap: calc(${Zc} * 8px);
|
|
897
|
+
position: relative;
|
|
898
|
+
width: max-content;
|
|
899
|
+
align-self: end;
|
|
900
|
+
padding: calc(${Zc} * 1px) calc(${Zc} * 1px) 0;
|
|
901
|
+
box-sizing: border-box;
|
|
902
|
+
}
|
|
903
|
+
.start,
|
|
904
|
+
.end {
|
|
905
|
+
align-self: center;
|
|
906
|
+
}
|
|
907
|
+
.activeIndicator {
|
|
908
|
+
grid-row: 2;
|
|
909
|
+
grid-column: 1;
|
|
910
|
+
width: 100%;
|
|
911
|
+
height: calc((${Zc} / 4) * 1px);
|
|
912
|
+
justify-self: center;
|
|
913
|
+
background: ${Wd};
|
|
914
|
+
margin: 0;
|
|
915
|
+
border-radius: calc(${Qc} * 1px);
|
|
916
|
+
}
|
|
917
|
+
.activeIndicatorTransition {
|
|
918
|
+
transition: transform 0.01s linear;
|
|
919
|
+
}
|
|
920
|
+
.tabpanel {
|
|
921
|
+
grid-row: 2;
|
|
922
|
+
grid-column-start: 1;
|
|
923
|
+
grid-column-end: 4;
|
|
924
|
+
position: relative;
|
|
925
|
+
}
|
|
926
|
+
`});const hh=class extends nc{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}.compose({baseName:"panel-tab",template:(e,t)=>qn`
|
|
927
|
+
<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
|
|
928
|
+
<slot></slot>
|
|
929
|
+
</template>
|
|
930
|
+
`,styles:(e,t)=>ho`
|
|
931
|
+
${Mc("inline-flex")} :host {
|
|
932
|
+
box-sizing: border-box;
|
|
933
|
+
font-family: ${td};
|
|
934
|
+
font-size: ${sd};
|
|
935
|
+
line-height: ${rd};
|
|
936
|
+
height: calc(${Zc} * 7px);
|
|
937
|
+
padding: calc(${Zc} * 1px) 0;
|
|
938
|
+
color: ${Kd};
|
|
939
|
+
fill: currentcolor;
|
|
940
|
+
border-radius: calc(${Qc} * 1px);
|
|
941
|
+
border: solid calc(${Gc} * 1px) transparent;
|
|
942
|
+
align-items: center;
|
|
943
|
+
justify-content: center;
|
|
944
|
+
grid-row: 1;
|
|
945
|
+
cursor: pointer;
|
|
946
|
+
}
|
|
947
|
+
:host(:hover) {
|
|
948
|
+
color: ${Wd};
|
|
949
|
+
fill: currentcolor;
|
|
950
|
+
}
|
|
951
|
+
:host(:active) {
|
|
952
|
+
color: ${Wd};
|
|
953
|
+
fill: currentcolor;
|
|
954
|
+
}
|
|
955
|
+
:host([aria-selected='true']) {
|
|
956
|
+
background: transparent;
|
|
957
|
+
color: ${Wd};
|
|
958
|
+
fill: currentcolor;
|
|
959
|
+
}
|
|
960
|
+
:host([aria-selected='true']:hover) {
|
|
961
|
+
background: transparent;
|
|
962
|
+
color: ${Wd};
|
|
963
|
+
fill: currentcolor;
|
|
964
|
+
}
|
|
965
|
+
:host([aria-selected='true']:active) {
|
|
966
|
+
background: transparent;
|
|
967
|
+
color: ${Wd};
|
|
968
|
+
fill: currentcolor;
|
|
969
|
+
}
|
|
970
|
+
:host(:${Lc}) {
|
|
971
|
+
outline: none;
|
|
972
|
+
border: solid calc(${Gc} * 1px) ${Ud};
|
|
973
|
+
}
|
|
974
|
+
:host(:focus) {
|
|
975
|
+
outline: none;
|
|
976
|
+
}
|
|
977
|
+
::slotted(vscode-badge) {
|
|
978
|
+
margin-inline-start: calc(${Zc} * 2px);
|
|
979
|
+
}
|
|
980
|
+
`});const uh=class extends ic{}.compose({baseName:"panel-view",template:(e,t)=>qn`
|
|
981
|
+
<template slot="tabpanel" role="tabpanel">
|
|
982
|
+
<slot></slot>
|
|
983
|
+
</template>
|
|
984
|
+
`,styles:(e,t)=>ho`
|
|
985
|
+
${Mc("flex")} :host {
|
|
986
|
+
color: inherit;
|
|
987
|
+
background-color: transparent;
|
|
988
|
+
border: solid calc(${Gc} * 1px) transparent;
|
|
989
|
+
box-sizing: border-box;
|
|
990
|
+
font-size: ${sd};
|
|
991
|
+
line-height: ${rd};
|
|
992
|
+
padding: 10px calc((${Zc} + 2) * 1px);
|
|
993
|
+
}
|
|
994
|
+
`});const ph=class extends $l{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(e,t,i){"value"===e&&this.removeAttribute("value")}}.compose({baseName:"progress-ring",template:(e,t)=>qn`
|
|
995
|
+
<template
|
|
996
|
+
role="progressbar"
|
|
997
|
+
aria-valuenow="${e=>e.value}"
|
|
998
|
+
aria-valuemin="${e=>e.min}"
|
|
999
|
+
aria-valuemax="${e=>e.max}"
|
|
1000
|
+
class="${e=>e.paused?"paused":""}"
|
|
1001
|
+
>
|
|
1002
|
+
${Io((e=>"number"==typeof e.value),qn`
|
|
1003
|
+
<svg
|
|
1004
|
+
class="progress"
|
|
1005
|
+
part="progress"
|
|
1006
|
+
viewBox="0 0 16 16"
|
|
1007
|
+
slot="determinate"
|
|
1008
|
+
>
|
|
1009
|
+
<circle
|
|
1010
|
+
class="background"
|
|
1011
|
+
part="background"
|
|
1012
|
+
cx="8px"
|
|
1013
|
+
cy="8px"
|
|
1014
|
+
r="7px"
|
|
1015
|
+
></circle>
|
|
1016
|
+
<circle
|
|
1017
|
+
class="determinate"
|
|
1018
|
+
part="determinate"
|
|
1019
|
+
style="stroke-dasharray: ${e=>44*e.percentComplete/100}px ${44}px"
|
|
1020
|
+
cx="8px"
|
|
1021
|
+
cy="8px"
|
|
1022
|
+
r="7px"
|
|
1023
|
+
></circle>
|
|
1024
|
+
</svg>
|
|
1025
|
+
`,qn`
|
|
1026
|
+
<slot name="indeterminate" slot="indeterminate">
|
|
1027
|
+
${t.indeterminateIndicator||""}
|
|
1028
|
+
</slot>
|
|
1029
|
+
`)}
|
|
1030
|
+
</template>
|
|
1031
|
+
`,styles:(e,t)=>ho`
|
|
1032
|
+
${Mc("flex")} :host {
|
|
1033
|
+
align-items: center;
|
|
1034
|
+
outline: none;
|
|
1035
|
+
height: calc(${Zc} * 7px);
|
|
1036
|
+
width: calc(${Zc} * 7px);
|
|
1037
|
+
margin: 0;
|
|
1038
|
+
}
|
|
1039
|
+
.progress {
|
|
1040
|
+
height: 100%;
|
|
1041
|
+
width: 100%;
|
|
1042
|
+
}
|
|
1043
|
+
.background {
|
|
1044
|
+
fill: none;
|
|
1045
|
+
stroke: transparent;
|
|
1046
|
+
stroke-width: calc(${Zc} / 2 * 1px);
|
|
1047
|
+
}
|
|
1048
|
+
.indeterminate-indicator-1 {
|
|
1049
|
+
fill: none;
|
|
1050
|
+
stroke: ${Bd};
|
|
1051
|
+
stroke-width: calc(${Zc} / 2 * 1px);
|
|
1052
|
+
stroke-linecap: square;
|
|
1053
|
+
transform-origin: 50% 50%;
|
|
1054
|
+
transform: rotate(-90deg);
|
|
1055
|
+
transition: all 0.2s ease-in-out;
|
|
1056
|
+
animation: spin-infinite 2s linear infinite;
|
|
1057
|
+
}
|
|
1058
|
+
@keyframes spin-infinite {
|
|
1059
|
+
0% {
|
|
1060
|
+
stroke-dasharray: 0.01px 43.97px;
|
|
1061
|
+
transform: rotate(0deg);
|
|
1062
|
+
}
|
|
1063
|
+
50% {
|
|
1064
|
+
stroke-dasharray: 21.99px 21.99px;
|
|
1065
|
+
transform: rotate(450deg);
|
|
1066
|
+
}
|
|
1067
|
+
100% {
|
|
1068
|
+
stroke-dasharray: 0.01px 43.97px;
|
|
1069
|
+
transform: rotate(1080deg);
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
`,indeterminateIndicator:'\n\t\t<svg class="progress" part="progress" viewBox="0 0 16 16">\n\t\t\t<circle\n\t\t\t\tclass="background"\n\t\t\t\tpart="background"\n\t\t\t\tcx="8px"\n\t\t\t\tcy="8px"\n\t\t\t\tr="7px"\n\t\t\t></circle>\n\t\t\t<circle\n\t\t\t\tclass="indeterminate-indicator-1"\n\t\t\t\tpart="indeterminate-indicator-1"\n\t\t\t\tcx="8px"\n\t\t\t\tcy="8px"\n\t\t\t\tr="7px"\n\t\t\t></circle>\n\t\t</svg>\n\t'});const fh=class extends Ol{connectedCallback(){super.connectedCallback();const e=this.querySelector("label");if(e){const t="radio-group-"+Math.random().toString(16).slice(2);e.setAttribute("id",t),this.setAttribute("aria-labelledby",t)}}}.compose({baseName:"radio-group",template:(e,t)=>qn`
|
|
1073
|
+
<template
|
|
1074
|
+
role="radiogroup"
|
|
1075
|
+
aria-disabled="${e=>e.disabled}"
|
|
1076
|
+
aria-readonly="${e=>e.readOnly}"
|
|
1077
|
+
@click="${(e,t)=>e.clickHandler(t.event)}"
|
|
1078
|
+
@keydown="${(e,t)=>e.keydownHandler(t.event)}"
|
|
1079
|
+
@focusout="${(e,t)=>e.focusOutHandler(t.event)}"
|
|
1080
|
+
>
|
|
1081
|
+
<slot name="label"></slot>
|
|
1082
|
+
<div
|
|
1083
|
+
class="positioning-region ${e=>e.orientation===Os?"horizontal":"vertical"}"
|
|
1084
|
+
part="positioning-region"
|
|
1085
|
+
>
|
|
1086
|
+
<slot
|
|
1087
|
+
${_o({property:"slottedRadioButtons",filter:Mo("[role=radio]")})}
|
|
1088
|
+
></slot>
|
|
1089
|
+
</div>
|
|
1090
|
+
</template>
|
|
1091
|
+
`,styles:(e,t)=>ho`
|
|
1092
|
+
${Mc("flex")} :host {
|
|
1093
|
+
align-items: flex-start;
|
|
1094
|
+
margin: calc(${Zc} * 1px) 0;
|
|
1095
|
+
flex-direction: column;
|
|
1096
|
+
}
|
|
1097
|
+
.positioning-region {
|
|
1098
|
+
display: flex;
|
|
1099
|
+
flex-wrap: wrap;
|
|
1100
|
+
}
|
|
1101
|
+
:host([orientation='vertical']) .positioning-region {
|
|
1102
|
+
flex-direction: column;
|
|
1103
|
+
}
|
|
1104
|
+
:host([orientation='horizontal']) .positioning-region {
|
|
1105
|
+
flex-direction: row;
|
|
1106
|
+
}
|
|
1107
|
+
::slotted([slot='label']) {
|
|
1108
|
+
color: ${id};
|
|
1109
|
+
font-size: ${sd};
|
|
1110
|
+
margin: calc(${Zc} * 1px) 0;
|
|
1111
|
+
}
|
|
1112
|
+
`});const gh=class extends Ml{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}.compose({baseName:"radio",template:(e,t)=>qn`
|
|
1113
|
+
<template
|
|
1114
|
+
role="radio"
|
|
1115
|
+
class="${e=>e.checked?"checked":""} ${e=>e.readOnly?"readonly":""}"
|
|
1116
|
+
aria-checked="${e=>e.checked}"
|
|
1117
|
+
aria-required="${e=>e.required}"
|
|
1118
|
+
aria-disabled="${e=>e.disabled}"
|
|
1119
|
+
aria-readonly="${e=>e.readOnly}"
|
|
1120
|
+
@keypress="${(e,t)=>e.keypressHandler(t.event)}"
|
|
1121
|
+
@click="${(e,t)=>e.clickHandler(t.event)}"
|
|
1122
|
+
>
|
|
1123
|
+
<div part="control" class="control">
|
|
1124
|
+
<slot name="checked-indicator">
|
|
1125
|
+
${t.checkedIndicator||""}
|
|
1126
|
+
</slot>
|
|
1127
|
+
</div>
|
|
1128
|
+
<label
|
|
1129
|
+
part="label"
|
|
1130
|
+
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
1131
|
+
>
|
|
1132
|
+
<slot ${_o("defaultSlottedNodes")}></slot>
|
|
1133
|
+
</label>
|
|
1134
|
+
</template>
|
|
1135
|
+
`,styles:(e,t)=>ho`
|
|
1136
|
+
${Mc("inline-flex")} :host {
|
|
1137
|
+
align-items: center;
|
|
1138
|
+
flex-direction: row;
|
|
1139
|
+
font-size: ${sd};
|
|
1140
|
+
line-height: ${rd};
|
|
1141
|
+
margin: calc(${Zc} * 1px) 0;
|
|
1142
|
+
outline: none;
|
|
1143
|
+
position: relative;
|
|
1144
|
+
transition: all 0.2s ease-in-out;
|
|
1145
|
+
user-select: none;
|
|
1146
|
+
}
|
|
1147
|
+
.control {
|
|
1148
|
+
background: ${$d};
|
|
1149
|
+
border-radius: 999px;
|
|
1150
|
+
border: calc(${Gc} * 1px) solid ${Od};
|
|
1151
|
+
box-sizing: border-box;
|
|
1152
|
+
cursor: pointer;
|
|
1153
|
+
height: calc(${Zc} * 4px);
|
|
1154
|
+
position: relative;
|
|
1155
|
+
outline: none;
|
|
1156
|
+
width: calc(${Zc} * 4px);
|
|
1157
|
+
}
|
|
1158
|
+
.label {
|
|
1159
|
+
color: ${id};
|
|
1160
|
+
cursor: pointer;
|
|
1161
|
+
font-family: ${td};
|
|
1162
|
+
margin-inline-end: calc(${Zc} * 2px + 2px);
|
|
1163
|
+
padding-inline-start: calc(${Zc} * 2px + 2px);
|
|
1164
|
+
}
|
|
1165
|
+
.label__hidden {
|
|
1166
|
+
display: none;
|
|
1167
|
+
visibility: hidden;
|
|
1168
|
+
}
|
|
1169
|
+
.control,
|
|
1170
|
+
.checked-indicator {
|
|
1171
|
+
flex-shrink: 0;
|
|
1172
|
+
}
|
|
1173
|
+
.checked-indicator {
|
|
1174
|
+
background: ${id};
|
|
1175
|
+
border-radius: 999px;
|
|
1176
|
+
display: inline-block;
|
|
1177
|
+
inset: calc(${Zc} * 1px);
|
|
1178
|
+
opacity: 0;
|
|
1179
|
+
pointer-events: none;
|
|
1180
|
+
position: absolute;
|
|
1181
|
+
}
|
|
1182
|
+
:host(:not([disabled])) .control:hover {
|
|
1183
|
+
background: ${$d};
|
|
1184
|
+
border-color: ${Od};
|
|
1185
|
+
}
|
|
1186
|
+
:host(:not([disabled])) .control:active {
|
|
1187
|
+
background: ${$d};
|
|
1188
|
+
border-color: ${ed};
|
|
1189
|
+
}
|
|
1190
|
+
:host(:${Lc}) .control {
|
|
1191
|
+
border: calc(${Gc} * 1px) solid ${ed};
|
|
1192
|
+
}
|
|
1193
|
+
:host([aria-checked='true']) .control {
|
|
1194
|
+
background: ${$d};
|
|
1195
|
+
border: calc(${Gc} * 1px) solid ${Od};
|
|
1196
|
+
}
|
|
1197
|
+
:host([aria-checked='true']:not([disabled])) .control:hover {
|
|
1198
|
+
background: ${$d};
|
|
1199
|
+
border: calc(${Gc} * 1px) solid ${Od};
|
|
1200
|
+
}
|
|
1201
|
+
:host([aria-checked='true']:not([disabled])) .control:active {
|
|
1202
|
+
background: ${$d};
|
|
1203
|
+
border: calc(${Gc} * 1px) solid ${ed};
|
|
1204
|
+
}
|
|
1205
|
+
:host([aria-checked="true"]:${Lc}:not([disabled])) .control {
|
|
1206
|
+
border: calc(${Gc} * 1px) solid ${ed};
|
|
1207
|
+
}
|
|
1208
|
+
:host([disabled]) .label,
|
|
1209
|
+
:host([readonly]) .label,
|
|
1210
|
+
:host([readonly]) .control,
|
|
1211
|
+
:host([disabled]) .control {
|
|
1212
|
+
cursor: ${Ac};
|
|
1213
|
+
}
|
|
1214
|
+
:host([aria-checked='true']) .checked-indicator {
|
|
1215
|
+
opacity: 1;
|
|
1216
|
+
}
|
|
1217
|
+
:host([disabled]) {
|
|
1218
|
+
opacity: ${Jc};
|
|
1219
|
+
}
|
|
1220
|
+
`,checkedIndicator:'\n\t\t<div part="checked-indicator" class="checked-indicator"></div>\n\t'});const mh=class extends wr{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}.compose({baseName:"tag",template:xr,styles:(e,t)=>ho`
|
|
1221
|
+
${Mc("inline-block")} :host {
|
|
1222
|
+
box-sizing: border-box;
|
|
1223
|
+
font-family: ${td};
|
|
1224
|
+
font-size: ${ad};
|
|
1225
|
+
line-height: ${ld};
|
|
1226
|
+
}
|
|
1227
|
+
.control {
|
|
1228
|
+
background-color: ${fd};
|
|
1229
|
+
border: calc(${Gc} * 1px) solid ${md};
|
|
1230
|
+
border-radius: ${Gd};
|
|
1231
|
+
color: ${gd};
|
|
1232
|
+
padding: calc(${Zc} * 0.5px) calc(${Zc} * 1px);
|
|
1233
|
+
text-transform: uppercase;
|
|
1234
|
+
}
|
|
1235
|
+
`});const vh=class extends cc{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}.compose({baseName:"text-area",template:(e,t)=>qn`
|
|
1236
|
+
<template
|
|
1237
|
+
class="
|
|
1238
|
+
${e=>e.readOnly?"readonly":""}
|
|
1239
|
+
${e=>e.resize!==lc?`resize-${e.resize}`:""}"
|
|
1240
|
+
>
|
|
1241
|
+
<label
|
|
1242
|
+
part="label"
|
|
1243
|
+
for="control"
|
|
1244
|
+
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
1245
|
+
>
|
|
1246
|
+
<slot ${_o("defaultSlottedNodes")}></slot>
|
|
1247
|
+
</label>
|
|
1248
|
+
<textarea
|
|
1249
|
+
part="control"
|
|
1250
|
+
class="control"
|
|
1251
|
+
id="control"
|
|
1252
|
+
?autofocus="${e=>e.autofocus}"
|
|
1253
|
+
cols="${e=>e.cols}"
|
|
1254
|
+
?disabled="${e=>e.disabled}"
|
|
1255
|
+
form="${e=>e.form}"
|
|
1256
|
+
list="${e=>e.list}"
|
|
1257
|
+
maxlength="${e=>e.maxlength}"
|
|
1258
|
+
minlength="${e=>e.minlength}"
|
|
1259
|
+
name="${e=>e.name}"
|
|
1260
|
+
placeholder="${e=>e.placeholder}"
|
|
1261
|
+
?readonly="${e=>e.readOnly}"
|
|
1262
|
+
?required="${e=>e.required}"
|
|
1263
|
+
rows="${e=>e.rows}"
|
|
1264
|
+
?spellcheck="${e=>e.spellcheck}"
|
|
1265
|
+
:value="${e=>e.value}"
|
|
1266
|
+
aria-atomic="${e=>e.ariaAtomic}"
|
|
1267
|
+
aria-busy="${e=>e.ariaBusy}"
|
|
1268
|
+
aria-controls="${e=>e.ariaControls}"
|
|
1269
|
+
aria-current="${e=>e.ariaCurrent}"
|
|
1270
|
+
aria-describedby="${e=>e.ariaDescribedby}"
|
|
1271
|
+
aria-details="${e=>e.ariaDetails}"
|
|
1272
|
+
aria-disabled="${e=>e.ariaDisabled}"
|
|
1273
|
+
aria-errormessage="${e=>e.ariaErrormessage}"
|
|
1274
|
+
aria-flowto="${e=>e.ariaFlowto}"
|
|
1275
|
+
aria-haspopup="${e=>e.ariaHaspopup}"
|
|
1276
|
+
aria-hidden="${e=>e.ariaHidden}"
|
|
1277
|
+
aria-invalid="${e=>e.ariaInvalid}"
|
|
1278
|
+
aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
|
|
1279
|
+
aria-label="${e=>e.ariaLabel}"
|
|
1280
|
+
aria-labelledby="${e=>e.ariaLabelledby}"
|
|
1281
|
+
aria-live="${e=>e.ariaLive}"
|
|
1282
|
+
aria-owns="${e=>e.ariaOwns}"
|
|
1283
|
+
aria-relevant="${e=>e.ariaRelevant}"
|
|
1284
|
+
aria-roledescription="${e=>e.ariaRoledescription}"
|
|
1285
|
+
@input="${(e,t)=>e.handleTextInput()}"
|
|
1286
|
+
@change="${e=>e.handleChange()}"
|
|
1287
|
+
${Ro("control")}
|
|
1288
|
+
></textarea>
|
|
1289
|
+
</template>
|
|
1290
|
+
`,styles:(e,t)=>ho`
|
|
1291
|
+
${Mc("inline-block")} :host {
|
|
1292
|
+
font-family: ${td};
|
|
1293
|
+
outline: none;
|
|
1294
|
+
user-select: none;
|
|
1295
|
+
}
|
|
1296
|
+
.control {
|
|
1297
|
+
box-sizing: border-box;
|
|
1298
|
+
position: relative;
|
|
1299
|
+
color: ${jd};
|
|
1300
|
+
background: ${zd};
|
|
1301
|
+
border-radius: calc(${Yc} * 1px);
|
|
1302
|
+
border: calc(${Gc} * 1px) solid ${Fd};
|
|
1303
|
+
font: inherit;
|
|
1304
|
+
font-size: ${sd};
|
|
1305
|
+
line-height: ${rd};
|
|
1306
|
+
padding: calc(${Zc} * 2px + 1px);
|
|
1307
|
+
width: 100%;
|
|
1308
|
+
min-width: ${od};
|
|
1309
|
+
resize: none;
|
|
1310
|
+
}
|
|
1311
|
+
.control:hover:enabled {
|
|
1312
|
+
background: ${zd};
|
|
1313
|
+
border-color: ${Fd};
|
|
1314
|
+
}
|
|
1315
|
+
.control:active:enabled {
|
|
1316
|
+
background: ${zd};
|
|
1317
|
+
border-color: ${ed};
|
|
1318
|
+
}
|
|
1319
|
+
.control:hover,
|
|
1320
|
+
.control:${Lc},
|
|
1321
|
+
.control:disabled,
|
|
1322
|
+
.control:active {
|
|
1323
|
+
outline: none;
|
|
1324
|
+
}
|
|
1325
|
+
.control::-webkit-scrollbar {
|
|
1326
|
+
width: ${cd};
|
|
1327
|
+
height: ${dd};
|
|
1328
|
+
}
|
|
1329
|
+
.control::-webkit-scrollbar-corner {
|
|
1330
|
+
background: ${zd};
|
|
1331
|
+
}
|
|
1332
|
+
.control::-webkit-scrollbar-thumb {
|
|
1333
|
+
background: ${hd};
|
|
1334
|
+
}
|
|
1335
|
+
.control::-webkit-scrollbar-thumb:hover {
|
|
1336
|
+
background: ${ud};
|
|
1337
|
+
}
|
|
1338
|
+
.control::-webkit-scrollbar-thumb:active {
|
|
1339
|
+
background: ${pd};
|
|
1340
|
+
}
|
|
1341
|
+
:host(:focus-within:not([disabled])) .control {
|
|
1342
|
+
border-color: ${ed};
|
|
1343
|
+
}
|
|
1344
|
+
:host([resize='both']) .control {
|
|
1345
|
+
resize: both;
|
|
1346
|
+
}
|
|
1347
|
+
:host([resize='horizontal']) .control {
|
|
1348
|
+
resize: horizontal;
|
|
1349
|
+
}
|
|
1350
|
+
:host([resize='vertical']) .control {
|
|
1351
|
+
resize: vertical;
|
|
1352
|
+
}
|
|
1353
|
+
.label {
|
|
1354
|
+
display: block;
|
|
1355
|
+
color: ${id};
|
|
1356
|
+
cursor: pointer;
|
|
1357
|
+
font-size: ${sd};
|
|
1358
|
+
line-height: ${rd};
|
|
1359
|
+
margin-bottom: 2px;
|
|
1360
|
+
}
|
|
1361
|
+
.label__hidden {
|
|
1362
|
+
display: none;
|
|
1363
|
+
visibility: hidden;
|
|
1364
|
+
}
|
|
1365
|
+
:host([disabled]) .label,
|
|
1366
|
+
:host([readonly]) .label,
|
|
1367
|
+
:host([readonly]) .control,
|
|
1368
|
+
:host([disabled]) .control {
|
|
1369
|
+
cursor: ${Ac};
|
|
1370
|
+
}
|
|
1371
|
+
:host([disabled]) {
|
|
1372
|
+
opacity: ${Jc};
|
|
1373
|
+
}
|
|
1374
|
+
:host([disabled]) .control {
|
|
1375
|
+
border-color: ${Fd};
|
|
1376
|
+
}
|
|
1377
|
+
`,shadowOptions:{delegatesFocus:!0}});const bh=class extends Rl{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}.compose({baseName:"text-field",template:(e,t)=>qn`
|
|
1378
|
+
<template
|
|
1379
|
+
class="
|
|
1380
|
+
${e=>e.readOnly?"readonly":""}
|
|
1381
|
+
"
|
|
1382
|
+
>
|
|
1383
|
+
<label
|
|
1384
|
+
part="label"
|
|
1385
|
+
for="control"
|
|
1386
|
+
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
|
|
1387
|
+
>
|
|
1388
|
+
<slot
|
|
1389
|
+
${_o({property:"defaultSlottedNodes",filter:Nl})}
|
|
1390
|
+
></slot>
|
|
1391
|
+
</label>
|
|
1392
|
+
<div class="root" part="root">
|
|
1393
|
+
${Vo(0,t)}
|
|
1394
|
+
<input
|
|
1395
|
+
class="control"
|
|
1396
|
+
part="control"
|
|
1397
|
+
id="control"
|
|
1398
|
+
@input="${e=>e.handleTextInput()}"
|
|
1399
|
+
@change="${e=>e.handleChange()}"
|
|
1400
|
+
?autofocus="${e=>e.autofocus}"
|
|
1401
|
+
?disabled="${e=>e.disabled}"
|
|
1402
|
+
list="${e=>e.list}"
|
|
1403
|
+
maxlength="${e=>e.maxlength}"
|
|
1404
|
+
minlength="${e=>e.minlength}"
|
|
1405
|
+
pattern="${e=>e.pattern}"
|
|
1406
|
+
placeholder="${e=>e.placeholder}"
|
|
1407
|
+
?readonly="${e=>e.readOnly}"
|
|
1408
|
+
?required="${e=>e.required}"
|
|
1409
|
+
size="${e=>e.size}"
|
|
1410
|
+
?spellcheck="${e=>e.spellcheck}"
|
|
1411
|
+
:value="${e=>e.value}"
|
|
1412
|
+
type="${e=>e.type}"
|
|
1413
|
+
aria-atomic="${e=>e.ariaAtomic}"
|
|
1414
|
+
aria-busy="${e=>e.ariaBusy}"
|
|
1415
|
+
aria-controls="${e=>e.ariaControls}"
|
|
1416
|
+
aria-current="${e=>e.ariaCurrent}"
|
|
1417
|
+
aria-describedby="${e=>e.ariaDescribedby}"
|
|
1418
|
+
aria-details="${e=>e.ariaDetails}"
|
|
1419
|
+
aria-disabled="${e=>e.ariaDisabled}"
|
|
1420
|
+
aria-errormessage="${e=>e.ariaErrormessage}"
|
|
1421
|
+
aria-flowto="${e=>e.ariaFlowto}"
|
|
1422
|
+
aria-haspopup="${e=>e.ariaHaspopup}"
|
|
1423
|
+
aria-hidden="${e=>e.ariaHidden}"
|
|
1424
|
+
aria-invalid="${e=>e.ariaInvalid}"
|
|
1425
|
+
aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
|
|
1426
|
+
aria-label="${e=>e.ariaLabel}"
|
|
1427
|
+
aria-labelledby="${e=>e.ariaLabelledby}"
|
|
1428
|
+
aria-live="${e=>e.ariaLive}"
|
|
1429
|
+
aria-owns="${e=>e.ariaOwns}"
|
|
1430
|
+
aria-relevant="${e=>e.ariaRelevant}"
|
|
1431
|
+
aria-roledescription="${e=>e.ariaRoledescription}"
|
|
1432
|
+
${Ro("control")}
|
|
1433
|
+
/>
|
|
1434
|
+
${jo(0,t)}
|
|
1435
|
+
</div>
|
|
1436
|
+
</template>
|
|
1437
|
+
`,styles:(e,t)=>ho`
|
|
1438
|
+
${Mc("inline-block")} :host {
|
|
1439
|
+
font-family: ${td};
|
|
1440
|
+
outline: none;
|
|
1441
|
+
user-select: none;
|
|
1442
|
+
}
|
|
1443
|
+
.root {
|
|
1444
|
+
box-sizing: border-box;
|
|
1445
|
+
position: relative;
|
|
1446
|
+
display: flex;
|
|
1447
|
+
flex-direction: row;
|
|
1448
|
+
color: ${jd};
|
|
1449
|
+
background: ${zd};
|
|
1450
|
+
border-radius: calc(${Yc} * 1px);
|
|
1451
|
+
border: calc(${Gc} * 1px) solid ${Fd};
|
|
1452
|
+
height: calc(${nd} * 1px);
|
|
1453
|
+
min-width: ${od};
|
|
1454
|
+
}
|
|
1455
|
+
.control {
|
|
1456
|
+
-webkit-appearance: none;
|
|
1457
|
+
font: inherit;
|
|
1458
|
+
background: transparent;
|
|
1459
|
+
border: 0;
|
|
1460
|
+
color: inherit;
|
|
1461
|
+
height: calc(100% - (${Zc} * 1px));
|
|
1462
|
+
width: 100%;
|
|
1463
|
+
margin-top: auto;
|
|
1464
|
+
margin-bottom: auto;
|
|
1465
|
+
border: none;
|
|
1466
|
+
padding: 0 calc(${Zc} * 2px + 1px);
|
|
1467
|
+
font-size: ${sd};
|
|
1468
|
+
line-height: ${rd};
|
|
1469
|
+
}
|
|
1470
|
+
.control:hover,
|
|
1471
|
+
.control:${Lc},
|
|
1472
|
+
.control:disabled,
|
|
1473
|
+
.control:active {
|
|
1474
|
+
outline: none;
|
|
1475
|
+
}
|
|
1476
|
+
.label {
|
|
1477
|
+
display: block;
|
|
1478
|
+
color: ${id};
|
|
1479
|
+
cursor: pointer;
|
|
1480
|
+
font-size: ${sd};
|
|
1481
|
+
line-height: ${rd};
|
|
1482
|
+
margin-bottom: 2px;
|
|
1483
|
+
}
|
|
1484
|
+
.label__hidden {
|
|
1485
|
+
display: none;
|
|
1486
|
+
visibility: hidden;
|
|
1487
|
+
}
|
|
1488
|
+
.start,
|
|
1489
|
+
.end {
|
|
1490
|
+
display: flex;
|
|
1491
|
+
margin: auto;
|
|
1492
|
+
fill: currentcolor;
|
|
1493
|
+
}
|
|
1494
|
+
::slotted(svg),
|
|
1495
|
+
::slotted(span) {
|
|
1496
|
+
width: calc(${Zc} * 4px);
|
|
1497
|
+
height: calc(${Zc} * 4px);
|
|
1498
|
+
}
|
|
1499
|
+
.start {
|
|
1500
|
+
margin-inline-start: calc(${Zc} * 2px);
|
|
1501
|
+
}
|
|
1502
|
+
.end {
|
|
1503
|
+
margin-inline-end: calc(${Zc} * 2px);
|
|
1504
|
+
}
|
|
1505
|
+
:host(:hover:not([disabled])) .root {
|
|
1506
|
+
background: ${zd};
|
|
1507
|
+
border-color: ${Fd};
|
|
1508
|
+
}
|
|
1509
|
+
:host(:active:not([disabled])) .root {
|
|
1510
|
+
background: ${zd};
|
|
1511
|
+
border-color: ${ed};
|
|
1512
|
+
}
|
|
1513
|
+
:host(:focus-within:not([disabled])) .root {
|
|
1514
|
+
border-color: ${ed};
|
|
1515
|
+
}
|
|
1516
|
+
:host([disabled]) .label,
|
|
1517
|
+
:host([readonly]) .label,
|
|
1518
|
+
:host([readonly]) .control,
|
|
1519
|
+
:host([disabled]) .control {
|
|
1520
|
+
cursor: ${Ac};
|
|
1521
|
+
}
|
|
1522
|
+
:host([disabled]) {
|
|
1523
|
+
opacity: ${Jc};
|
|
1524
|
+
}
|
|
1525
|
+
:host([disabled]) .control {
|
|
1526
|
+
border-color: ${Fd};
|
|
1527
|
+
}
|
|
1528
|
+
`,shadowOptions:{delegatesFocus:!0}}),{wrap:yh}=function(e,t){let i=[];return{wrap:function(n,o={}){var s,r;n instanceof Es&&(t?t.register(n):i.push(n),n=n.type);const a=qc.get(n);if(a){const e=a.get(null!==(s=o.name)&&void 0!==s?s:Fc);if(e)return e}class l extends e.Component{constructor(){super(...arguments),this._element=null}_updateElement(e){const t=this._element;if(null===t)return;const i=this.props,n=e||_c,s=jc(o);for(const e in this._elementProps){const o=i[e],r=s[e];if(void 0===r)t[e]=o;else{const i=n[e];if(o===i)continue;void 0!==i&&t.removeEventListener(r,i),void 0!==o&&t.addEventListener(r,o)}}}componentDidMount(){this._updateElement()}componentDidUpdate(e){this._updateElement(e)}render(){const t=this.props.__forwardedRef;void 0!==this._ref&&this._userRef===t||(this._ref=e=>{null===this._element&&(this._element=e),null!==t&&function(e,t){"function"==typeof e?e(t):e.current=t}(t,e),this._userRef=t});const i={ref:this._ref},s=this._elementProps={},r=function(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(jc(t))));else{const i=new Set(Object.keys(jc(t))),n=ln.getAccessors(e.prototype);if(n.length>0)for(const o of n)Vc(e,t,o.name)&&i.add(o.name);else for(const n in e.prototype)!(n in HTMLElement.prototype)&&Vc(e,t,n)&&i.add(n);t.keys=i}return t.keys}(n,o),a=this.props;for(const e in a){const t=a[e];r.has(e)?s[e]=t:i["className"===e?"class":e]=t}return e.createElement(zc(n,o),i)}}const c=e.forwardRef(((t,i)=>e.createElement(l,Object.assign(Object.assign({},t),{__forwardedRef:i}),null==t?void 0:t.children)));return qc.has(n)||qc.set(n,new Map),qc.get(n).set(null!==(r=o.name)&&void 0!==r?r:Fc,c),c},registry:{register(e,...t){i.forEach((i=>i.register(e,...t))),i=[]}}}}(o,Na.getOrCreate(xh).withPrefix("vscode"));var xh;yh(Xd(),{name:"vscode-badge"});const wh=yh(th(),{name:"vscode-button"});yh(ih(),{name:"vscode-checkbox",events:{onChange:"change"}}),yh(nh(),{name:"vscode-data-grid"}),yh(sh(),{name:"vscode-data-grid-cell"}),yh(oh(),{name:"vscode-data-grid-row"}),yh(rh(),{name:"vscode-divider"}),yh(ah(),{name:"vscode-dropdown",events:{onChange:"change"}}),yh(lh(),{name:"vscode-link"}),yh(ch(),{name:"vscode-option"}),yh(dh(),{name:"vscode-panels",events:{onChange:"change"}}),yh(hh(),{name:"vscode-panel-tab"}),yh(uh(),{name:"vscode-panel-view"}),yh(ph(),{name:"vscode-progress-ring"}),yh(gh(),{name:"vscode-radio",events:{onChange:"change"}}),yh(fh(),{name:"vscode-radio-group",events:{onChange:"change"}}),yh(mh(),{name:"vscode-tag"}),yh(vh(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}}),yh(bh(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});var kh,Ch="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Th(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var i=function e(){if(this instanceof e){var i=[null];return i.push.apply(i,arguments),new(Function.bind.apply(t,i))}return t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),i}var Rh=l;kh=Rh.createRoot,Rh.hydrateRoot;class Sh{freshId=0;handlers=new Map;handlersWithKey=new Map;current;on(e,t){const i=this.freshId;if(this.freshId+=1,t){const i=this.handlersWithKey.get(t)??[];i.push(e),this.handlersWithKey.set(t,i)}else this.handlers.set(i,e);return{dispose:()=>{if(t){const i=this.handlersWithKey.get(t)??[];this.handlersWithKey.set(t,i.filter((t=>t!==e)))}else this.handlers.delete(i)}}}fire(e,t){this.current=e;for(const t of this.handlers.values())t(e);if(t){const i=this.handlersWithKey.get(t)??[];for(const t of i)t(e)}}}var Dh,Eh,Ih={},$h={},Oh={get exports(){return $h},set exports(e){$h=e}},Ph={},Ah={},Mh={},Lh={},Nh={};function _h(){if(Dh)return Nh;function e(e){return"string"==typeof e||e instanceof String}function t(e){return Array.isArray(e)}return Dh=1,Object.defineProperty(Nh,"__esModule",{value:!0}),Nh.stringArray=Nh.array=Nh.func=Nh.error=Nh.number=Nh.string=Nh.boolean=void 0,Nh.boolean=function(e){return!0===e||!1===e},Nh.string=e,Nh.number=function(e){return"number"==typeof e||e instanceof Number},Nh.error=function(e){return e instanceof Error},Nh.func=function(e){return"function"==typeof e},Nh.array=t,Nh.stringArray=function(i){return t(i)&&i.every((t=>e(t)))},Nh}function Fh(){if(Eh)return Lh;Eh=1,Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.Message=Lh.NotificationType9=Lh.NotificationType8=Lh.NotificationType7=Lh.NotificationType6=Lh.NotificationType5=Lh.NotificationType4=Lh.NotificationType3=Lh.NotificationType2=Lh.NotificationType1=Lh.NotificationType0=Lh.NotificationType=Lh.RequestType9=Lh.RequestType8=Lh.RequestType7=Lh.RequestType6=Lh.RequestType5=Lh.RequestType4=Lh.RequestType3=Lh.RequestType2=Lh.RequestType1=Lh.RequestType=Lh.RequestType0=Lh.AbstractMessageSignature=Lh.ParameterStructures=Lh.ResponseError=Lh.ErrorCodes=void 0;const e=_h();var t,i;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(t||(Lh.ErrorCodes=t={}));class n extends Error{constructor(i,o,s){super(o),this.code=e.number(i)?i:t.UnknownErrorCode,this.data=s,Object.setPrototypeOf(this,n.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}Lh.ResponseError=n;class o{constructor(e){this.kind=e}static is(e){return e===o.auto||e===o.byName||e===o.byPosition}toString(){return this.kind}}Lh.ParameterStructures=o,o.auto=new o("auto"),o.byPosition=new o("byPosition"),o.byName=new o("byName");class s{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return o.auto}}Lh.AbstractMessageSignature=s;Lh.RequestType0=class extends s{constructor(e){super(e,0)}};Lh.RequestType=class extends s{constructor(e,t=o.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};Lh.RequestType1=class extends s{constructor(e,t=o.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};Lh.RequestType2=class extends s{constructor(e){super(e,2)}};Lh.RequestType3=class extends s{constructor(e){super(e,3)}};Lh.RequestType4=class extends s{constructor(e){super(e,4)}};Lh.RequestType5=class extends s{constructor(e){super(e,5)}};Lh.RequestType6=class extends s{constructor(e){super(e,6)}};Lh.RequestType7=class extends s{constructor(e){super(e,7)}};Lh.RequestType8=class extends s{constructor(e){super(e,8)}};Lh.RequestType9=class extends s{constructor(e){super(e,9)}};Lh.NotificationType=class extends s{constructor(e,t=o.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};Lh.NotificationType0=class extends s{constructor(e){super(e,0)}};Lh.NotificationType1=class extends s{constructor(e,t=o.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}};Lh.NotificationType2=class extends s{constructor(e){super(e,2)}};Lh.NotificationType3=class extends s{constructor(e){super(e,3)}};Lh.NotificationType4=class extends s{constructor(e){super(e,4)}};Lh.NotificationType5=class extends s{constructor(e){super(e,5)}};Lh.NotificationType6=class extends s{constructor(e){super(e,6)}};Lh.NotificationType7=class extends s{constructor(e){super(e,7)}};Lh.NotificationType8=class extends s{constructor(e){super(e,8)}};return Lh.NotificationType9=class extends s{constructor(e){super(e,9)}},function(t){t.isRequest=function(t){const i=t;return i&&e.string(i.method)&&(e.string(i.id)||e.number(i.id))},t.isNotification=function(t){const i=t;return i&&e.string(i.method)&&void 0===t.id},t.isResponse=function(t){const i=t;return i&&(void 0!==i.result||!!i.error)&&(e.string(i.id)||e.number(i.id)||null===i.id)}}(i||(Lh.Message=i={})),Lh}var qh,zh={};function jh(){if(qh)return zh;var e,t;qh=1,Object.defineProperty(zh,"__esModule",{value:!0}),zh.LRUCache=zh.LinkedMap=zh.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(t||(zh.Touch=t={}));class i{constructor(){this[e]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,i=t.None){const n=this._map.get(e);if(n)return i!==t.None&&this.touch(n,i),n.value}set(e,i,n=t.None){let o=this._map.get(e);if(o)o.value=i,n!==t.None&&this.touch(o,n);else{switch(o={key:e,value:i,next:void 0,previous:void 0},n){case t.None:this.addItemLast(o);break;case t.First:this.addItemFirst(o);break;case t.Last:default:this.addItemLast(o)}this._map.set(e,o),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this._state;let t=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this._state;let t=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this._state;let t=this._head;const i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return i}[(e=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,i){if(!this._head||!this._tail)throw new Error("Invalid list");if(i===t.First||i===t.Last)if(i===t.First){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(i===t.Last){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}zh.LinkedMap=i;return zh.LRUCache=class extends i{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,i=t.AsNew){return super.get(e,i)}peek(e){return super.get(e,t.None)}set(e,i){return super.set(e,i,t.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}},zh}var Vh,Hh={};var Bh,Uh,Wh={},Kh={};function Gh(){if(Bh)return Kh;let e;function t(){if(void 0===e)throw new Error("No runtime abstraction layer installed");return e}return Bh=1,Object.defineProperty(Kh,"__esModule",{value:!0}),function(t){t.install=function(t){if(void 0===t)throw new Error("No runtime abstraction layer provided");e=t}}(t||(t={})),Kh.default=t,Kh}function Xh(){if(Uh)return Wh;Uh=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.Emitter=Wh.Event=void 0;const e=Gh();var t;!function(e){const t={dispose(){}};e.None=function(){return t}}(t||(Wh.Event=t={}));class i{add(e,t=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let i=!1;for(let n=0,o=this._callbacks.length;n<o;n++)if(this._callbacks[n]===e){if(this._contexts[n]===t)return this._callbacks.splice(n,1),void this._contexts.splice(n,1);i=!0}if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...t){if(!this._callbacks)return[];const i=[],n=this._callbacks.slice(0),o=this._contexts.slice(0);for(let s=0,r=n.length;s<r;s++)try{i.push(n[s].apply(o[s],t))}catch(t){(0,e.default)().console.error(t)}return i}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}}class n{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,o)=>{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const s={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),s.dispose=n._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(o)&&o.push(s),s}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}return Wh.Emitter=n,n._noop=function(){},Wh}var Qh,Yh={};function Zh(){if(Qh)return Yh;Qh=1,Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.CancellationTokenSource=Yh.CancellationToken=void 0;const e=Gh(),t=_h(),i=Xh();var n;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i.Event.None}),e.is=function(i){const n=i;return n&&(n===e.None||n===e.Cancelled||t.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(n||(Yh.CancellationToken=n={}));const o=Object.freeze((function(t,i){const n=(0,e.default)().timer.setTimeout(t.bind(i),0);return{dispose(){n.dispose()}}}));class s{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new i.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}return Yh.CancellationTokenSource=class{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=n.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=n.None}},Yh}var Jh,eu={};var tu,iu,nu={},ou={};function su(){if(tu)return ou;tu=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.Semaphore=void 0;const e=Gh();return ou.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,i)=>{this._waiting.push({thunk:e,resolve:t,reject:i}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,e.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}},ou}var ru,au={};var lu,cu={};var du,hu,uu={};function pu(){return du||(du=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;const t=Gh(),i=_h(),n=Fh(),o=jh(),s=Xh(),r=Zh();var a,l,c,d,h,u,p,f,g,m,v,b,y,x,w,k,C,T,R;!function(e){e.type=new n.NotificationType("$/cancelRequest")}(a||(a={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(l||(e.ProgressToken=l={})),function(e){e.type=new n.NotificationType("$/progress")}(c||(c={}));e.ProgressType=class{constructor(){}},function(e){e.is=function(e){return i.func(e)}}(d||(d={})),e.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(h||(e.Trace=h={})),function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"}(u||(e.TraceValues=u={})),function(e){e.fromString=function(t){if(!i.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(h||(e.Trace=h={})),function(e){e.Text="text",e.JSON="json"}(p||(e.TraceFormat=p={})),function(e){e.fromString=function(t){return i.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(p||(e.TraceFormat=p={})),function(e){e.type=new n.NotificationType("$/setTrace")}(f||(e.SetTraceNotification=f={})),function(e){e.type=new n.NotificationType("$/logTrace")}(g||(e.LogTraceNotification=g={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(m||(e.ConnectionErrors=m={}));class S extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,S.prototype)}}e.ConnectionError=S,function(e){e.is=function(e){const t=e;return t&&i.func(t.cancelUndispatched)}}(v||(e.ConnectionStrategy=v={})),function(e){e.is=function(e){const t=e;return t&&(void 0===t.kind||"id"===t.kind)&&i.func(t.createCancellationTokenSource)&&(void 0===t.dispose||i.func(t.dispose))}}(b||(e.IdCancellationReceiverStrategy=b={})),function(e){e.is=function(e){const t=e;return t&&"request"===t.kind&&i.func(t.createCancellationTokenSource)&&(void 0===t.dispose||i.func(t.dispose))}}(y||(e.RequestCancellationReceiverStrategy=y={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new r.CancellationTokenSource}),e.is=function(e){return b.is(e)||y.is(e)}}(x||(e.CancellationReceiverStrategy=x={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(a.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&i.func(t.sendCancellation)&&i.func(t.cleanup)}}(w||(e.CancellationSenderStrategy=w={})),function(e){e.Message=Object.freeze({receiver:x.Message,sender:w.Message}),e.is=function(e){const t=e;return t&&x.is(t.receiver)&&w.is(t.sender)}}(k||(e.CancellationStrategy=k={})),function(e){e.is=function(e){const t=e;return t&&i.func(t.handleMessage)}}(C||(e.MessageStrategy=C={})),function(e){e.is=function(e){const t=e;return t&&(k.is(t.cancellationStrategy)||v.is(t.connectionStrategy)||C.is(t.messageStrategy))}}(T||(e.ConnectionOptions=T={})),function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(R||(R={})),e.createMessageConnection=function(u,v,y,x){const w=void 0!==y?y:e.NullLogger;let T=0,D=0,E=0;const I="2.0";let $;const O=new Map;let P;const A=new Map,M=new Map;let L,N,_=new o.LinkedMap,F=new Map,q=new Set,z=new Map,j=h.Off,V=p.Text,H=R.New;const B=new s.Emitter,U=new s.Emitter,W=new s.Emitter,K=new s.Emitter,G=new s.Emitter,X=x&&x.cancellationStrategy?x.cancellationStrategy:k.Message;function Q(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function Y(e,t){var i;n.Message.isRequest(t)?e.set(Q(t.id),t):n.Message.isResponse(t)?e.set(null===(i=t.id)?"res-unknown-"+(++E).toString():"res-"+i.toString(),t):e.set("not-"+(++D).toString(),t)}function Z(e){}function J(){return H===R.Listening}function ee(){return H===R.Closed}function te(){return H===R.Disposed}function ie(){H!==R.New&&H!==R.Listening||(H=R.Closed,U.fire(void 0))}function ne(){L||0===_.size||(L=(0,t.default)().timer.setImmediate((()=>{L=void 0,function(){if(0===_.size)return;const e=_.shift();try{const t=x?.messageStrategy;C.is(t)?t.handleMessage(e,oe):oe(e)}finally{ne()}}()})))}function oe(e){n.Message.isRequest(e)?function(e){if(te())return;function t(t,i,o){const s={jsonrpc:I,id:e.id};t instanceof n.ResponseError?s.error=t.toJson():s.result=void 0===t?null:t,ae(s,i,o),v.write(s).catch((()=>w.error("Sending response failed.")))}function o(t,i,n){const o={jsonrpc:I,id:e.id,error:t.toJson()};ae(o,i,n),v.write(o).catch((()=>w.error("Sending response failed.")))}function s(t,i,n){void 0===t&&(t=null);const o={jsonrpc:I,id:e.id,result:t};ae(o,i,n),v.write(o).catch((()=>w.error("Sending response failed.")))}!function(e){if(j===h.Off||!N)return;if(V===p.Text){let t;j!==h.Verbose&&j!==h.Compact||!e.params||(t=`Params: ${re(e.params)}\n\n`),N.log(`Received request '${e.method} - (${e.id})'.`,t)}else ce("receive-request",e)}(e);const r=O.get(e.method);let a,l;r&&(a=r.type,l=r.handler);const c=Date.now();if(l||$){const r=e.id??String(Date.now()),d=b.is(X.receiver)?X.receiver.createCancellationTokenSource(r):X.receiver.createCancellationTokenSource(e);null!==e.id&&q.has(e.id)&&d.cancel(),null!==e.id&&z.set(r,d);try{let h;if(l)if(void 0===e.params){if(void 0!==a&&0!==a.numberOfParams)return void o(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but received none.`),e.method,c);h=l(d.token)}else if(Array.isArray(e.params)){if(void 0!==a&&a.parameterStructures===n.ParameterStructures.byName)return void o(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,c);h=l(...e.params,d.token)}else{if(void 0!==a&&a.parameterStructures===n.ParameterStructures.byPosition)return void o(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,c);h=l(e.params,d.token)}else $&&(h=$(e.method,e.params,d.token));const u=h;h?u.then?u.then((i=>{z.delete(r),t(i,e.method,c)}),(t=>{z.delete(r),t instanceof n.ResponseError?o(t,e.method,c):t&&i.string(t.message)?o(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,c):o(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,c)})):(z.delete(r),t(h,e.method,c)):(z.delete(r),s(h,e.method,c))}catch(s){z.delete(r),s instanceof n.ResponseError?t(s,e.method,c):s&&i.string(s.message)?o(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${s.message}`),e.method,c):o(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,c)}}else o(new n.ResponseError(n.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,c)}(e):n.Message.isNotification(e)?function(e){if(te())return;let t,i;if(e.method===a.type.method){const t=e.params.id;return q.delete(t),void le(e)}{const n=A.get(e.method);n&&(i=n.handler,t=n.type)}if(i||P)try{if(le(e),i)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==n.ParameterStructures.byName&&w.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),i();else if(Array.isArray(e.params)){const o=e.params;e.method===c.type.method&&2===o.length&&l.is(o[0])?i({token:o[0],value:o[1]}):(void 0!==t&&(t.parameterStructures===n.ParameterStructures.byName&&w.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&w.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${o.length} arguments`)),i(...o))}else void 0!==t&&t.parameterStructures===n.ParameterStructures.byPosition&&w.error(`Notification ${e.method} defines parameters by position but received parameters by name`),i(e.params);else P&&P(e.method,e.params)}catch(t){t.message?w.error(`Notification handler '${e.method}' failed with message: ${t.message}`):w.error(`Notification handler '${e.method}' failed unexpectedly.`)}else W.fire(e)}(e):n.Message.isResponse(e)?function(e){if(te())return;if(null===e.id)e.error?w.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):w.error("Received response message without id. No further error information provided.");else{const t=e.id,i=F.get(t);if(function(e,t){if(j===h.Off||!N)return;if(V===p.Text){let i;if(j!==h.Verbose&&j!==h.Compact||(e.error&&e.error.data?i=`Error data: ${re(e.error.data)}\n\n`:e.result?i=`Result: ${re(e.result)}\n\n`:void 0===e.error&&(i="No result returned.\n\n")),t){const n=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";N.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${n}`,i)}else N.log(`Received response ${e.id} without active response promise.`,i)}else ce("receive-response",e)}(e,i),void 0!==i){F.delete(t);try{if(e.error){const t=e.error;i.reject(new n.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");i.resolve(e.result)}}catch(e){e.message?w.error(`Response handler '${i.method}' failed with message: ${e.message}`):w.error(`Response handler '${i.method}' failed unexpectedly.`)}}}}(e):function(e){if(!e)return void w.error("Received empty message.");w.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(i.string(t.id)||i.number(t.id)){const e=t.id,i=F.get(e);i&&i.reject(new Error("The received response has neither a result nor an error property."))}}(e)}u.onClose(ie),u.onError((function(e){B.fire([e,void 0,void 0])})),v.onClose(ie),v.onError((function(e){B.fire(e)}));const se=e=>{try{if(n.Message.isNotification(e)&&e.method===a.type.method){const t=e.params.id,i=Q(t),o=_.get(i);if(n.Message.isRequest(o)){const n=x?.connectionStrategy,s=n&&n.cancelUndispatched?n.cancelUndispatched(o,Z):void 0;if(s&&(void 0!==s.error||void 0!==s.result))return _.delete(i),z.delete(t),s.id=o.id,ae(s,e.method,Date.now()),void v.write(s).catch((()=>w.error("Sending response for canceled message failed.")))}const s=z.get(t);if(void 0!==s)return s.cancel(),void le(e);q.add(t)}Y(_,e)}finally{ne()}};function re(e){if(null!=e)switch(j){case h.Verbose:return JSON.stringify(e,null,4);case h.Compact:return JSON.stringify(e);default:return}}function ae(e,t,i){if(j!==h.Off&&N)if(V===p.Text){let n;j!==h.Verbose&&j!==h.Compact||(e.error&&e.error.data?n=`Error data: ${re(e.error.data)}\n\n`:e.result?n=`Result: ${re(e.result)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),N.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-i}ms`,n)}else ce("send-response",e)}function le(e){if(j!==h.Off&&N&&e.method!==g.type.method)if(V===p.Text){let t;j!==h.Verbose&&j!==h.Compact||(t=e.params?`Params: ${re(e.params)}\n\n`:"No parameters provided.\n\n"),N.log(`Received notification '${e.method}'.`,t)}else ce("receive-notification",e)}function ce(e,t){if(!N||j===h.Off)return;const i={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};N.log(i)}function de(){if(ee())throw new S(m.Closed,"Connection is closed.");if(te())throw new S(m.Disposed,"Connection is disposed.")}function he(e){return void 0===e?null:e}function ue(e){return null===e?void 0:e}function pe(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function fe(e,t){switch(e){case n.ParameterStructures.auto:return pe(t)?ue(t):[he(t)];case n.ParameterStructures.byName:if(!pe(t))throw new Error("Received parameters by name but param is not an object literal.");return ue(t);case n.ParameterStructures.byPosition:return[he(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function ge(e,t){let i;const n=e.numberOfParams;switch(n){case 0:i=void 0;break;case 1:i=fe(e.parameterStructures,t[0]);break;default:i=[];for(let e=0;e<t.length&&e<n;e++)i.push(he(t[e]));if(t.length<n)for(let e=t.length;e<n;e++)i.push(null)}return i}const me={sendNotification:(e,...t)=>{let o,s;if(de(),i.string(e)){o=e;const i=t[0];let r=0,a=n.ParameterStructures.auto;n.ParameterStructures.is(i)&&(r=1,a=i);let l=t.length;const c=l-r;switch(c){case 0:s=void 0;break;case 1:s=fe(a,t[r]);break;default:if(a===n.ParameterStructures.byName)throw new Error(`Received ${c} parameters for 'by Name' notification parameter structure.`);s=t.slice(r,l).map((e=>he(e)))}}else{const i=t;o=e.method,s=ge(e,i)}const r={jsonrpc:I,method:o,params:s};return function(e){if(j!==h.Off&&N)if(V===p.Text){let t;j!==h.Verbose&&j!==h.Compact||(t=e.params?`Params: ${re(e.params)}\n\n`:"No parameters provided.\n\n"),N.log(`Sending notification '${e.method}'.`,t)}else ce("send-notification",e)}(r),v.write(r).catch((e=>{throw w.error("Sending notification failed."),e}))},onNotification:(e,t)=>{let n;return de(),i.func(e)?P=e:t&&(i.string(e)?(n=e,A.set(e,{type:void 0,handler:t})):(n=e.method,A.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==n?A.delete(n):P=void 0}}},onProgress:(e,t,i)=>{if(M.has(t))throw new Error(`Progress handler for token ${t} already registered`);return M.set(t,i),{dispose:()=>{M.delete(t)}}},sendProgress:(e,t,i)=>me.sendNotification(c.type,{token:t,value:i}),onUnhandledProgress:K.event,sendRequest:(e,...t)=>{let o,s,a;if(de(),function(){if(!J())throw new Error("Call listen() first.")}(),i.string(e)){o=e;const i=t[0],l=t[t.length-1];let c=0,d=n.ParameterStructures.auto;n.ParameterStructures.is(i)&&(c=1,d=i);let h=t.length;r.CancellationToken.is(l)&&(h-=1,a=l);const u=h-c;switch(u){case 0:s=void 0;break;case 1:s=fe(d,t[c]);break;default:if(d===n.ParameterStructures.byName)throw new Error(`Received ${u} parameters for 'by Name' request parameter structure.`);s=t.slice(c,h).map((e=>he(e)))}}else{const i=t;o=e.method,s=ge(e,i);const n=e.numberOfParams;a=r.CancellationToken.is(i[n])?i[n]:void 0}const l=T++;let c;a&&(c=a.onCancellationRequested((()=>{const e=X.sender.sendCancellation(me,l);return void 0===e?(w.log(`Received no promise from cancellation strategy when cancelling id ${l}`),Promise.resolve()):e.catch((()=>{w.log(`Sending cancellation messages for id ${l} failed`)}))})));const d={jsonrpc:I,id:l,method:o,params:s};return function(e){if(j!==h.Off&&N)if(V===p.Text){let t;j!==h.Verbose&&j!==h.Compact||!e.params||(t=`Params: ${re(e.params)}\n\n`),N.log(`Sending request '${e.method} - (${e.id})'.`,t)}else ce("send-request",e)}(d),"function"==typeof X.sender.enableCancellation&&X.sender.enableCancellation(d),new Promise((async(e,t)=>{const i={method:o,timerStart:Date.now(),resolve:t=>{e(t),X.sender.cleanup(l),c?.dispose()},reject:e=>{t(e),X.sender.cleanup(l),c?.dispose()}};try{await v.write(d),F.set(l,i)}catch(e){throw w.error("Sending request failed."),i.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),e}}))},onRequest:(e,t)=>{de();let n=null;return d.is(e)?(n=void 0,$=e):i.string(e)?(n=null,void 0!==t&&(n=e,O.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,O.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==n&&(void 0!==n?O.delete(n):$=void 0)}}},hasPendingResponse:()=>F.size>0,trace:async(e,t,n)=>{let o=!1,s=p.Text;void 0!==n&&(i.boolean(n)?o=n:(o=n.sendNotification||!1,s=n.traceFormat||p.Text)),j=e,V=s,N=j===h.Off?void 0:t,!o||ee()||te()||await me.sendNotification(f.type,{value:h.toString(e)})},onError:B.event,onClose:U.event,onUnhandledNotification:W.event,onDispose:G.event,end:()=>{v.end()},dispose:()=>{if(te())return;H=R.Disposed,G.fire(void 0);const e=new n.ResponseError(n.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const t of F.values())t.reject(e);F=new Map,z=new Map,q=new Set,_=new o.LinkedMap,i.func(v.dispose)&&v.dispose(),i.func(u.dispose)&&u.dispose()},listen:()=>{de(),function(){if(J())throw new S(m.AlreadyListening,"Connection is already listening")}(),H=R.Listening,u.listen(se)},inspect:()=>{(0,t.default)().console.log("inspect")}};return me.onNotification(g.type,(e=>{if(j===h.Off||!N)return;const t=j===h.Verbose||j===h.Compact;N.log(e.message,t?e.verbose:void 0)})),me.onNotification(c.type,(e=>{const t=M.get(e.token);t?t(e.value):K.fire(e)})),me}}(uu)),uu}function fu(){return hu||(hu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;const t=Fh();Object.defineProperty(e,"Message",{enumerable:!0,get:function(){return t.Message}}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:function(){return t.RequestType}}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:function(){return t.RequestType0}}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:function(){return t.RequestType1}}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:function(){return t.RequestType2}}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:function(){return t.RequestType3}}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:function(){return t.RequestType4}}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:function(){return t.RequestType5}}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:function(){return t.RequestType6}}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:function(){return t.RequestType7}}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:function(){return t.RequestType8}}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:function(){return t.RequestType9}}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:function(){return t.ResponseError}}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:function(){return t.ErrorCodes}}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:function(){return t.NotificationType}}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:function(){return t.NotificationType0}}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:function(){return t.NotificationType1}}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:function(){return t.NotificationType2}}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:function(){return t.NotificationType3}}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:function(){return t.NotificationType4}}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:function(){return t.NotificationType5}}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:function(){return t.NotificationType6}}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:function(){return t.NotificationType7}}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:function(){return t.NotificationType8}}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:function(){return t.NotificationType9}}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:function(){return t.ParameterStructures}});const i=jh();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:function(){return i.LinkedMap}}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:function(){return i.LRUCache}}),Object.defineProperty(e,"Touch",{enumerable:!0,get:function(){return i.Touch}});const n=(Vh||(Vh=1,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.Disposable=void 0,function(e){e.create=function(e){return{dispose:e}}}(o||(Hh.Disposable=o={}))),Hh);var o;Object.defineProperty(e,"Disposable",{enumerable:!0,get:function(){return n.Disposable}});const s=Xh();Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return s.Event}}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:function(){return s.Emitter}});const r=Zh();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:function(){return r.CancellationTokenSource}}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:function(){return r.CancellationToken}});const a=function(){if(Jh)return eu;Jh=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.SharedArrayReceiverStrategy=eu.SharedArraySenderStrategy=void 0;const e=Zh();var t;!function(e){e.Continue=0,e.Cancelled=1}(t||(t={})),eu.SharedArraySenderStrategy=class{constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;const i=new SharedArrayBuffer(4);new Int32Array(i,0,1)[0]=t.Continue,this.buffers.set(e.id,i),e.$cancellationData=i}async sendCancellation(e,i){const n=this.buffers.get(i);if(void 0===n)return;const o=new Int32Array(n,0,1);Atomics.store(o,0,t.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};class i{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===t.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class n{constructor(e){this.token=new i(e)}cancel(){}dispose(){}}return eu.SharedArrayReceiverStrategy=class{constructor(){this.kind="request"}createCancellationTokenSource(t){const i=t.$cancellationData;return void 0===i?new e.CancellationTokenSource:new n(i)}},eu}();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return a.SharedArraySenderStrategy}}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return a.SharedArrayReceiverStrategy}});const l=function(){if(iu)return nu;iu=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.ReadableStreamMessageReader=nu.AbstractMessageReader=nu.MessageReader=void 0;const e=Gh(),t=_h(),i=Xh(),n=su();var o,s;!function(e){e.is=function(e){let i=e;return i&&t.func(i.listen)&&t.func(i.dispose)&&t.func(i.onError)&&t.func(i.onClose)&&t.func(i.onPartialMessage)}}(o||(nu.MessageReader=o={}));class r{constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter,this.partialMessageEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${t.string(e.message)?e.message:"unknown"}`)}}return nu.AbstractMessageReader=r,function(t){t.fromOptions=function(t){let i,n;const o=new Map;let s;const r=new Map;if(void 0===t||"string"==typeof t)i=t??"utf-8";else{if(i=t.charset??"utf-8",void 0!==t.contentDecoder&&(n=t.contentDecoder,o.set(n.name,n)),void 0!==t.contentDecoders)for(const e of t.contentDecoders)o.set(e.name,e);if(void 0!==t.contentTypeDecoder&&(s=t.contentTypeDecoder,r.set(s.name,s)),void 0!==t.contentTypeDecoders)for(const e of t.contentTypeDecoders)r.set(e.name,e)}return void 0===s&&(s=(0,e.default)().applicationJson.decoder,r.set(s.name,s)),{charset:i,contentDecoder:n,contentDecoders:o,contentTypeDecoder:s,contentTypeDecoders:r}}}(s||(s={})),nu.ReadableStreamMessageReader=class extends r{constructor(t,i){super(),this.readable=t,this.options=s.fromOptions(i),this.buffer=(0,e.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new n.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){try{for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders(!0);if(!e)return;const t=e.get("content-length");if(!t)return void this.fireError(new Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));const i=parseInt(t);if(isNaN(i))return void this.fireError(new Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=i}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock((async()=>{const t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,i=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(i)})).catch((e=>{this.fireError(e)}))}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,e.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}},nu}();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:function(){return l.MessageReader}}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:function(){return l.AbstractMessageReader}}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return l.ReadableStreamMessageReader}});const c=function(){if(ru)return au;ru=1,Object.defineProperty(au,"__esModule",{value:!0}),au.WriteableStreamMessageWriter=au.AbstractMessageWriter=au.MessageWriter=void 0;const e=Gh(),t=_h(),i=su(),n=Xh();var o,s;!function(e){e.is=function(e){let i=e;return i&&t.func(i.dispose)&&t.func(i.onClose)&&t.func(i.onError)&&t.func(i.write)}}(o||(au.MessageWriter=o={}));class r{constructor(){this.errorEmitter=new n.Emitter,this.closeEmitter=new n.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,i){this.errorEmitter.fire([this.asError(e),t,i])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${t.string(e.message)?e.message:"unknown"}`)}}return au.AbstractMessageWriter=r,function(t){t.fromOptions=function(t){return void 0===t||"string"==typeof t?{charset:t??"utf-8",contentTypeEncoder:(0,e.default)().applicationJson.encoder}:{charset:t.charset??"utf-8",contentEncoder:t.contentEncoder,contentTypeEncoder:t.contentTypeEncoder??(0,e.default)().applicationJson.encoder}}}(s||(s={})),au.WriteableStreamMessageWriter=class extends r{constructor(e,t){super(),this.writable=e,this.options=s.fromOptions(t),this.errorCount=0,this.writeSemaphore=new i.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const i=[];return i.push("Content-Length: ",t.byteLength.toString(),"\r\n"),i.push("\r\n"),this.doWrite(e,i,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,i){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(i)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}},au}();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});const d=(lu||(lu=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.AbstractMessageBuffer=void 0,cu.AbstractMessageBuffer=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,i=0,n=0,o=0;e:for(;i<this._chunks.length;){const e=this._chunks[i];for(n=0;n<e.length;){switch(e[n]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,n++;break e;default:t=0}break;default:t=0}n++}o+=e.byteLength,i++}if(4!==t)return;const s=this._read(o+n),r=new Map,a=this.toString(s,"ascii").split("\r\n");if(a.length<2)return r;for(let t=0;t<a.length-2;t++){const i=a[t],n=i.indexOf(":");if(-1===n)throw new Error(`Message header must separate key and value using ':'\n${i}`);const o=i.substr(0,n),s=i.substr(n+1).trim();r.set(e?o.toLowerCase():o,s)}return r}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],i=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,i}const t=this.allocNative(e);let i=0;for(;e>0;){const n=this._chunks[0];if(n.byteLength>e){const o=n.slice(0,e);t.set(o,i),i+=e,this._chunks[0]=n.slice(e),this._totalLength-=e,e-=e}else t.set(n,i),i+=n.byteLength,this._chunks.shift(),this._totalLength-=n.byteLength,e-=n.byteLength}return t}}),cu);Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:function(){return d.AbstractMessageBuffer}});const h=pu();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:function(){return h.ConnectionStrategy}}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:function(){return h.ConnectionOptions}}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:function(){return h.NullLogger}}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:function(){return h.createMessageConnection}}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:function(){return h.ProgressToken}}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:function(){return h.ProgressType}}),Object.defineProperty(e,"Trace",{enumerable:!0,get:function(){return h.Trace}}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:function(){return h.TraceValues}}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:function(){return h.TraceFormat}}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:function(){return h.SetTraceNotification}}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:function(){return h.LogTraceNotification}}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:function(){return h.ConnectionErrors}}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:function(){return h.ConnectionError}}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return h.CancellationReceiverStrategy}}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:function(){return h.CancellationSenderStrategy}}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:function(){return h.CancellationStrategy}}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:function(){return h.MessageStrategy}});const u=Gh();e.RAL=u.default}(Mh)),Mh}Object.defineProperty(Ah,"__esModule",{value:!0});const gu=fu();class mu extends gu.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return mu.emptyBuffer}fromString(e,t){return(new TextEncoder).encode(e)}toString(e,t){return"ascii"===t?this.asciiDecoder.decode(e):new TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e:e.slice(0,t)}allocNative(e){return new Uint8Array(e)}}mu.emptyBuffer=new Uint8Array(0);class vu{constructor(e){this.socket=e,this._onData=new gu.Emitter,this._messageListener=e=>{e.data.arrayBuffer().then((e=>{this._onData.fire(new Uint8Array(e))}),(()=>{(0,gu.RAL)().console.error("Converting blob to array buffer failed.")}))},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),gu.Disposable.create((()=>this.socket.removeEventListener("close",e)))}onError(e){return this.socket.addEventListener("error",e),gu.Disposable.create((()=>this.socket.removeEventListener("error",e)))}onEnd(e){return this.socket.addEventListener("end",e),gu.Disposable.create((()=>this.socket.removeEventListener("end",e)))}onData(e){return this._onData.event(e)}}class bu{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),gu.Disposable.create((()=>this.socket.removeEventListener("close",e)))}onError(e){return this.socket.addEventListener("error",e),gu.Disposable.create((()=>this.socket.removeEventListener("error",e)))}onEnd(e){return this.socket.addEventListener("end",e),gu.Disposable.create((()=>this.socket.removeEventListener("end",e)))}write(e,t){if("string"==typeof e){if(void 0!==t&&"utf-8"!==t)throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}}const yu=new TextEncoder,xu=Object.freeze({messageBuffer:Object.freeze({create:e=>new mu(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if("utf-8"!==t.charset)throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(yu.encode(JSON.stringify(e,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new vu(e),asWritableStream:e=>new bu(e)}),console:console,timer:Object.freeze({setTimeout(e,t,...i){const n=setTimeout(e,t,...i);return{dispose:()=>clearTimeout(n)}},setImmediate(e,...t){const i=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(i)}},setInterval(e,t,...i){const n=setInterval(e,t,...i);return{dispose:()=>clearInterval(n)}}})});function wu(){return xu}!function(e){e.install=function(){gu.RAL.install(xu)}}(wu||(wu={})),Ah.default=wu,function(e){var t=Ch&&Ch.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),i=Ch&&Ch.__exportStar||function(e,i){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(i,n)||t(i,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0;Ah.default.install();const n=fu();i(fu(),e);class o extends n.AbstractMessageReader{constructor(e){super(),this._onData=new n.Emitter,this._messageListener=e=>{this._onData.fire(e.data)},e.addEventListener("error",(e=>this.fireError(e))),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}}e.BrowserMessageReader=o;class s extends n.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener("error",(e=>this.fireError(e)))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}e.BrowserMessageWriter=s,e.createMessageConnection=function(e,t,i,o){return void 0===i&&(i=n.NullLogger),n.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,n.createMessageConnection)(e,t,i,o)}}(Ph),Oh.exports=Ph;var ku,Cu,Tu,Ru,Su,Du,Eu,Iu,$u,Ou,Pu,Au,Mu,Lu,Nu,_u,Fu,qu,zu,ju,Vu,Hu,Bu,Uu,Wu,Ku,Gu,Xu,Qu,Yu,Zu,Ju,ep,tp,ip,np,op,sp,rp,ap,lp,cp,dp,hp,up,pp,fp,gp,mp,vp,bp,yp,xp,wp,kp,Cp,Tp,Rp,Sp,Dp,Ep,Ip,$p,Op,Pp,Ap,Mp,Lp,Np,_p,Fp,qp,zp,jp,Vp,Hp,Bp,Up,Wp={};!function(e){e.is=function(e){return"string"==typeof e}}(ku||(ku={})),function(e){e.is=function(e){return"string"==typeof e}}(Cu||(Cu={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(Tu||(Tu={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(Ru||(Ru={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=Ru.MAX_VALUE),t===Number.MAX_VALUE&&(t=Ru.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return Qp.objectLiteral(t)&&Qp.uinteger(t.line)&&Qp.uinteger(t.character)}}(Su||(Su={})),function(e){e.create=function(e,t,i,n){if(Qp.uinteger(e)&&Qp.uinteger(t)&&Qp.uinteger(i)&&Qp.uinteger(n))return{start:Su.create(e,t),end:Su.create(i,n)};if(Su.is(e)&&Su.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${i}, ${n}]`)},e.is=function(e){let t=e;return Qp.objectLiteral(t)&&Su.is(t.start)&&Su.is(t.end)}}(Du||(Du={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return Qp.objectLiteral(t)&&Du.is(t.range)&&(Qp.string(t.uri)||Qp.undefined(t.uri))}}(Eu||(Eu={})),function(e){e.create=function(e,t,i,n){return{targetUri:e,targetRange:t,targetSelectionRange:i,originSelectionRange:n}},e.is=function(e){let t=e;return Qp.objectLiteral(t)&&Du.is(t.targetRange)&&Qp.string(t.targetUri)&&Du.is(t.targetSelectionRange)&&(Du.is(t.originSelectionRange)||Qp.undefined(t.originSelectionRange))}}(Iu||(Iu={})),function(e){e.create=function(e,t,i,n){return{red:e,green:t,blue:i,alpha:n}},e.is=function(e){const t=e;return Qp.objectLiteral(t)&&Qp.numberRange(t.red,0,1)&&Qp.numberRange(t.green,0,1)&&Qp.numberRange(t.blue,0,1)&&Qp.numberRange(t.alpha,0,1)}}($u||($u={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Qp.objectLiteral(t)&&Du.is(t.range)&&$u.is(t.color)}}(Ou||(Ou={})),function(e){e.create=function(e,t,i){return{label:e,textEdit:t,additionalTextEdits:i}},e.is=function(e){const t=e;return Qp.objectLiteral(t)&&Qp.string(t.label)&&(Qp.undefined(t.textEdit)||ju.is(t))&&(Qp.undefined(t.additionalTextEdits)||Qp.typedArray(t.additionalTextEdits,ju.is))}}(Pu||(Pu={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(Au||(Au={})),function(e){e.create=function(e,t,i,n,o,s){const r={startLine:e,endLine:t};return Qp.defined(i)&&(r.startCharacter=i),Qp.defined(n)&&(r.endCharacter=n),Qp.defined(o)&&(r.kind=o),Qp.defined(s)&&(r.collapsedText=s),r},e.is=function(e){const t=e;return Qp.objectLiteral(t)&&Qp.uinteger(t.startLine)&&Qp.uinteger(t.startLine)&&(Qp.undefined(t.startCharacter)||Qp.uinteger(t.startCharacter))&&(Qp.undefined(t.endCharacter)||Qp.uinteger(t.endCharacter))&&(Qp.undefined(t.kind)||Qp.string(t.kind))}}(Mu||(Mu={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return Qp.defined(t)&&Eu.is(t.location)&&Qp.string(t.message)}}(Lu||(Lu={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(Nu||(Nu={})),function(e){e.Unnecessary=1,e.Deprecated=2}(_u||(_u={})),function(e){e.is=function(e){const t=e;return Qp.objectLiteral(t)&&Qp.string(t.href)}}(Fu||(Fu={})),function(e){e.create=function(e,t,i,n,o,s){let r={range:e,message:t};return Qp.defined(i)&&(r.severity=i),Qp.defined(n)&&(r.code=n),Qp.defined(o)&&(r.source=o),Qp.defined(s)&&(r.relatedInformation=s),r},e.is=function(e){var t;let i=e;return Qp.defined(i)&&Du.is(i.range)&&Qp.string(i.message)&&(Qp.number(i.severity)||Qp.undefined(i.severity))&&(Qp.integer(i.code)||Qp.string(i.code)||Qp.undefined(i.code))&&(Qp.undefined(i.codeDescription)||Qp.string(null===(t=i.codeDescription)||void 0===t?void 0:t.href))&&(Qp.string(i.source)||Qp.undefined(i.source))&&(Qp.undefined(i.relatedInformation)||Qp.typedArray(i.relatedInformation,Lu.is))}}(qu||(qu={})),function(e){e.create=function(e,t,...i){let n={title:e,command:t};return Qp.defined(i)&&i.length>0&&(n.arguments=i),n},e.is=function(e){let t=e;return Qp.defined(t)&&Qp.string(t.title)&&Qp.string(t.command)}}(zu||(zu={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return Qp.objectLiteral(t)&&Qp.string(t.newText)&&Du.is(t.range)}}(ju||(ju={})),function(e){e.create=function(e,t,i){const n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==i&&(n.description=i),n},e.is=function(e){const t=e;return Qp.objectLiteral(t)&&Qp.string(t.label)&&(Qp.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Qp.string(t.description)||void 0===t.description)}}(Vu||(Vu={})),function(e){e.is=function(e){const t=e;return Qp.string(t)}}(Hu||(Hu={})),function(e){e.replace=function(e,t,i){return{range:e,newText:t,annotationId:i}},e.insert=function(e,t,i){return{range:{start:e,end:e},newText:t,annotationId:i}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return ju.is(t)&&(Vu.is(t.annotationId)||Hu.is(t.annotationId))}}(Bu||(Bu={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return Qp.defined(t)&&Zu.is(t.textDocument)&&Array.isArray(t.edits)}}(Uu||(Uu={})),function(e){e.create=function(e,t,i){let n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),void 0!==i&&(n.annotationId=i),n},e.is=function(e){let t=e;return t&&"create"===t.kind&&Qp.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Qp.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Qp.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Hu.is(t.annotationId))}}(Wu||(Wu={})),function(e){e.create=function(e,t,i,n){let o={kind:"rename",oldUri:e,newUri:t};return void 0===i||void 0===i.overwrite&&void 0===i.ignoreIfExists||(o.options=i),void 0!==n&&(o.annotationId=n),o},e.is=function(e){let t=e;return t&&"rename"===t.kind&&Qp.string(t.oldUri)&&Qp.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Qp.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Qp.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Hu.is(t.annotationId))}}(Ku||(Ku={})),function(e){e.create=function(e,t,i){let n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),void 0!==i&&(n.annotationId=i),n},e.is=function(e){let t=e;return t&&"delete"===t.kind&&Qp.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Qp.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Qp.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Hu.is(t.annotationId))}}(Gu||(Gu={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Qp.string(e.kind)?Wu.is(e)||Ku.is(e)||Gu.is(e):Uu.is(e))))}}(Xu||(Xu={}));class Kp{constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,i){let n,o;if(void 0===i?n=ju.insert(e,t):Hu.is(i)?(o=i,n=Bu.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),n=Bu.insert(e,t,o)),this.edits.push(n),void 0!==o)return o}replace(e,t,i){let n,o;if(void 0===i?n=ju.replace(e,t):Hu.is(i)?(o=i,n=Bu.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),n=Bu.replace(e,t,o)),this.edits.push(n),void 0!==o)return o}delete(e,t){let i,n;if(void 0===t?i=ju.del(e):Hu.is(t)?(n=t,i=Bu.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),i=Bu.del(e,n)),this.edits.push(i),void 0!==n)return n}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")}}class Gp{constructor(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let i;if(Hu.is(e)?i=e:(i=this.nextId(),t=e),void 0!==this._annotations[i])throw new Error(`Id ${i} is already in use.`);if(void 0===t)throw new Error(`No annotation provided for id ${i}`);return this._annotations[i]=t,this._size++,i}nextId(){return this._counter++,this._counter.toString()}}!function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return Qp.defined(t)&&Qp.string(t.uri)}}(Qu||(Qu={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Qp.defined(t)&&Qp.string(t.uri)&&Qp.integer(t.version)}}(Yu||(Yu={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Qp.defined(t)&&Qp.string(t.uri)&&(null===t.version||Qp.integer(t.version))}}(Zu||(Zu={})),function(e){e.create=function(e,t,i,n){return{uri:e,languageId:t,version:i,text:n}},e.is=function(e){let t=e;return Qp.defined(t)&&Qp.string(t.uri)&&Qp.string(t.languageId)&&Qp.integer(t.version)&&Qp.string(t.text)}}(Ju||(Ju={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const i=t;return i===e.PlainText||i===e.Markdown}}(ep||(ep={})),function(e){e.is=function(e){const t=e;return Qp.objectLiteral(e)&&ep.is(t.kind)&&Qp.string(t.value)}}(tp||(tp={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(ip||(ip={})),function(e){e.PlainText=1,e.Snippet=2}(np||(np={})),function(e){e.Deprecated=1}(op||(op={})),function(e){e.create=function(e,t,i){return{newText:e,insert:t,replace:i}},e.is=function(e){const t=e;return t&&Qp.string(t.newText)&&Du.is(t.insert)&&Du.is(t.replace)}}(sp||(sp={})),function(e){e.asIs=1,e.adjustIndentation=2}(rp||(rp={})),function(e){e.is=function(e){const t=e;return t&&(Qp.string(t.detail)||void 0===t.detail)&&(Qp.string(t.description)||void 0===t.description)}}(ap||(ap={})),function(e){e.create=function(e){return{label:e}}}(lp||(lp={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(cp||(cp={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Qp.string(t)||Qp.objectLiteral(t)&&Qp.string(t.language)&&Qp.string(t.value)}}(dp||(dp={})),function(e){e.is=function(e){let t=e;return!!t&&Qp.objectLiteral(t)&&(tp.is(t.contents)||dp.is(t.contents)||Qp.typedArray(t.contents,dp.is))&&(void 0===e.range||Du.is(e.range))}}(hp||(hp={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(up||(up={})),function(e){e.create=function(e,t,...i){let n={label:e};return Qp.defined(t)&&(n.documentation=t),Qp.defined(i)?n.parameters=i:n.parameters=[],n}}(pp||(pp={})),function(e){e.Text=1,e.Read=2,e.Write=3}(fp||(fp={})),function(e){e.create=function(e,t){let i={range:e};return Qp.number(t)&&(i.kind=t),i}}(gp||(gp={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(mp||(mp={})),function(e){e.Deprecated=1}(vp||(vp={})),function(e){e.create=function(e,t,i,n,o){let s={name:e,kind:t,location:{uri:n,range:i}};return o&&(s.containerName=o),s}}(bp||(bp={})),function(e){e.create=function(e,t,i,n){return void 0!==n?{name:e,kind:t,location:{uri:i,range:n}}:{name:e,kind:t,location:{uri:i}}}}(yp||(yp={})),function(e){e.create=function(e,t,i,n,o,s){let r={name:e,detail:t,kind:i,range:n,selectionRange:o};return void 0!==s&&(r.children=s),r},e.is=function(e){let t=e;return t&&Qp.string(t.name)&&Qp.number(t.kind)&&Du.is(t.range)&&Du.is(t.selectionRange)&&(void 0===t.detail||Qp.string(t.detail))&&(void 0===t.deprecated||Qp.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(xp||(xp={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(wp||(wp={})),function(e){e.Invoked=1,e.Automatic=2}(kp||(kp={})),function(e){e.create=function(e,t,i){let n={diagnostics:e};return null!=t&&(n.only=t),null!=i&&(n.triggerKind=i),n},e.is=function(e){let t=e;return Qp.defined(t)&&Qp.typedArray(t.diagnostics,qu.is)&&(void 0===t.only||Qp.typedArray(t.only,Qp.string))&&(void 0===t.triggerKind||t.triggerKind===kp.Invoked||t.triggerKind===kp.Automatic)}}(Cp||(Cp={})),function(e){e.create=function(e,t,i){let n={title:e},o=!0;return"string"==typeof t?(o=!1,n.kind=t):zu.is(t)?n.command=t:n.edit=t,o&&void 0!==i&&(n.kind=i),n},e.is=function(e){let t=e;return t&&Qp.string(t.title)&&(void 0===t.diagnostics||Qp.typedArray(t.diagnostics,qu.is))&&(void 0===t.kind||Qp.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||zu.is(t.command))&&(void 0===t.isPreferred||Qp.boolean(t.isPreferred))&&(void 0===t.edit||Xu.is(t.edit))}}(Tp||(Tp={})),function(e){e.create=function(e,t){let i={range:e};return Qp.defined(t)&&(i.data=t),i},e.is=function(e){let t=e;return Qp.defined(t)&&Du.is(t.range)&&(Qp.undefined(t.command)||zu.is(t.command))}}(Rp||(Rp={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return Qp.defined(t)&&Qp.uinteger(t.tabSize)&&Qp.boolean(t.insertSpaces)}}(Sp||(Sp={})),function(e){e.create=function(e,t,i){return{range:e,target:t,data:i}},e.is=function(e){let t=e;return Qp.defined(t)&&Du.is(t.range)&&(Qp.undefined(t.target)||Qp.string(t.target))}}(Dp||(Dp={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let i=t;return Qp.objectLiteral(i)&&Du.is(i.range)&&(void 0===i.parent||e.is(i.parent))}}(Ep||(Ep={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(Ip||(Ip={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}($p||($p={})),function(e){e.is=function(e){const t=e;return Qp.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(Op||(Op={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&Du.is(t.range)&&Qp.string(t.text)}}(Pp||(Pp={})),function(e){e.create=function(e,t,i){return{range:e,variableName:t,caseSensitiveLookup:i}},e.is=function(e){const t=e;return null!=t&&Du.is(t.range)&&Qp.boolean(t.caseSensitiveLookup)&&(Qp.string(t.variableName)||void 0===t.variableName)}}(Ap||(Ap={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&Du.is(t.range)&&(Qp.string(t.expression)||void 0===t.expression)}}(Mp||(Mp={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Qp.defined(t)&&Du.is(e.stoppedLocation)}}(Lp||(Lp={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Np||(Np={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Qp.objectLiteral(t)&&(void 0===t.tooltip||Qp.string(t.tooltip)||tp.is(t.tooltip))&&(void 0===t.location||Eu.is(t.location))&&(void 0===t.command||zu.is(t.command))}}(_p||(_p={})),function(e){e.create=function(e,t,i){const n={position:e,label:t};return void 0!==i&&(n.kind=i),n},e.is=function(e){const t=e;return Qp.objectLiteral(t)&&Su.is(t.position)&&(Qp.string(t.label)||Qp.typedArray(t.label,_p.is))&&(void 0===t.kind||Np.is(t.kind))&&void 0===t.textEdits||Qp.typedArray(t.textEdits,ju.is)&&(void 0===t.tooltip||Qp.string(t.tooltip)||tp.is(t.tooltip))&&(void 0===t.paddingLeft||Qp.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Qp.boolean(t.paddingRight))}}(Fp||(Fp={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(qp||(qp={})),function(e){e.create=function(e,t,i,n){return{insertText:e,filterText:t,range:i,command:n}}}(zp||(zp={})),function(e){e.create=function(e){return{items:e}}}(jp||(jp={})),function(e){e.Invoked=0,e.Automatic=1}(Vp||(Vp={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(Hp||(Hp={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Bp||(Bp={})),function(e){e.is=function(e){const t=e;return Qp.objectLiteral(t)&&Cu.is(t.uri)&&Qp.string(t.name)}}(Up||(Up={}));var Xp,Qp;!function(e){function t(e,i){if(e.length<=1)return e;const n=e.length/2|0,o=e.slice(0,n),s=e.slice(n);t(o,i),t(s,i);let r=0,a=0,l=0;for(;r<o.length&&a<s.length;){let t=i(o[r],s[a]);e[l++]=t<=0?o[r++]:s[a++]}for(;r<o.length;)e[l++]=o[r++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,i,n){return new Yp(e,t,i,n)},e.is=function(e){let t=e;return!!(Qp.defined(t)&&Qp.string(t.uri)&&(Qp.undefined(t.languageId)||Qp.string(t.languageId))&&Qp.uinteger(t.lineCount)&&Qp.func(t.getText)&&Qp.func(t.positionAt)&&Qp.func(t.offsetAt))},e.applyEdits=function(e,i){let n=e.getText(),o=t(i,((e,t)=>{let i=e.range.start.line-t.range.start.line;return 0===i?e.range.start.character-t.range.start.character:i})),s=n.length;for(let t=o.length-1;t>=0;t--){let i=o[t],r=e.offsetAt(i.range.start),a=e.offsetAt(i.range.end);if(!(a<=s))throw new Error("Overlapping edit");n=n.substring(0,r)+i.newText+n.substring(a,n.length),s=r}return n}}(Xp||(Xp={}));class Yp{constructor(e,t,i,n){this._uri=e,this._languageId=t,this._version=i,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,i=!0;for(let n=0;n<t.length;n++){i&&(e.push(n),i=!1);let o=t.charAt(n);i="\r"===o||"\n"===o,"\r"===o&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}i&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),i=0,n=t.length;if(0===n)return Su.create(0,e);for(;i<n;){let o=Math.floor((i+n)/2);t[o]>e?n=o:i=o+1}let o=i-1;return Su.create(o,e-t[o])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let i=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,n),i)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,i,n){return"[object Number]"===t.call(e)&&i<=e&&e<=n},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Qp||(Qp={}));var Zp=Th(Object.freeze({__proto__:null,get AnnotatedTextEdit(){return Bu},get ChangeAnnotation(){return Vu},get ChangeAnnotationIdentifier(){return Hu},get CodeAction(){return Tp},get CodeActionContext(){return Cp},get CodeActionKind(){return wp},get CodeActionTriggerKind(){return kp},get CodeDescription(){return Fu},get CodeLens(){return Rp},get Color(){return $u},get ColorInformation(){return Ou},get ColorPresentation(){return Pu},get Command(){return zu},get CompletionItem(){return lp},get CompletionItemKind(){return ip},get CompletionItemLabelDetails(){return ap},get CompletionItemTag(){return op},get CompletionList(){return cp},get CreateFile(){return Wu},get DeleteFile(){return Gu},get Diagnostic(){return qu},get DiagnosticRelatedInformation(){return Lu},get DiagnosticSeverity(){return Nu},get DiagnosticTag(){return _u},get DocumentHighlight(){return gp},get DocumentHighlightKind(){return fp},get DocumentLink(){return Dp},get DocumentSymbol(){return xp},get DocumentUri(){return ku},EOL:["\n","\r\n","\r"],get FoldingRange(){return Mu},get FoldingRangeKind(){return Au},get FormattingOptions(){return Sp},get Hover(){return hp},get InlayHint(){return Fp},get InlayHintKind(){return Np},get InlayHintLabelPart(){return _p},get InlineCompletionContext(){return Bp},get InlineCompletionItem(){return zp},get InlineCompletionList(){return jp},get InlineCompletionTriggerKind(){return Vp},get InlineValueContext(){return Lp},get InlineValueEvaluatableExpression(){return Mp},get InlineValueText(){return Pp},get InlineValueVariableLookup(){return Ap},get InsertReplaceEdit(){return sp},get InsertTextFormat(){return np},get InsertTextMode(){return rp},get Location(){return Eu},get LocationLink(){return Iu},get MarkedString(){return dp},get MarkupContent(){return tp},get MarkupKind(){return ep},get OptionalVersionedTextDocumentIdentifier(){return Zu},get ParameterInformation(){return up},get Position(){return Su},get Range(){return Du},get RenameFile(){return Ku},get SelectedCompletionInfo(){return Hp},get SelectionRange(){return Ep},get SemanticTokenModifiers(){return $p},get SemanticTokenTypes(){return Ip},get SemanticTokens(){return Op},get SignatureInformation(){return pp},get StringValue(){return qp},get SymbolInformation(){return bp},get SymbolKind(){return mp},get SymbolTag(){return vp},get TextDocument(){return Xp},get TextDocumentEdit(){return Uu},get TextDocumentIdentifier(){return Qu},get TextDocumentItem(){return Ju},get TextEdit(){return ju},get URI(){return Cu},get VersionedTextDocumentIdentifier(){return Yu},WorkspaceChange:class{constructor(e){this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Gp(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((e=>{if(Uu.is(e)){const t=new Kp(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((t=>{const i=new Kp(e.changes[t]);this._textEditChanges[t]=i}))):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Zu.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let i=this._textEditChanges[t.uri];if(!i){const e=[],n={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(n),i=new Kp(e,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let i=[];this._workspaceEdit.changes[e]=i,t=new Kp(i),this._textEditChanges[e]=t}return t}}initDocumentChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Gp,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let n,o,s;if(Vu.is(t)||Hu.is(t)?n=t:i=t,void 0===n?o=Wu.create(e,i):(s=Hu.is(n)?n:this._changeAnnotations.manage(n),o=Wu.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s}renameFile(e,t,i,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let o,s,r;if(Vu.is(i)||Hu.is(i)?o=i:n=i,void 0===o?s=Ku.create(e,t,n):(r=Hu.is(o)?o:this._changeAnnotations.manage(o),s=Ku.create(e,t,n,r)),this._workspaceEdit.documentChanges.push(s),void 0!==r)return r}deleteFile(e,t,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let n,o,s;if(Vu.is(t)||Hu.is(t)?n=t:i=t,void 0===n?o=Gu.create(e,i):(s=Hu.is(n)?n:this._changeAnnotations.manage(n),o=Gu.create(e,i,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s}},get WorkspaceEdit(){return Xu},get WorkspaceFolder(){return Up},get WorkspaceSymbol(){return yp},get integer(){return Tu},get uinteger(){return Ru}})),Jp={};Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.ProtocolNotificationType=Jp.ProtocolNotificationType0=Jp.ProtocolRequestType=Jp.ProtocolRequestType0=Jp.RegistrationType=Jp.MessageDirection=void 0;const ef=Ph;var tf;!function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"}(tf||(Jp.MessageDirection=tf={}));Jp.RegistrationType=class{constructor(e){this.method=e}};Jp.ProtocolRequestType0=class extends ef.RequestType0{constructor(e){super(e)}};Jp.ProtocolRequestType=class extends ef.RequestType{constructor(e){super(e,ef.ParameterStructures.byName)}};Jp.ProtocolNotificationType0=class extends ef.NotificationType0{constructor(e){super(e)}};Jp.ProtocolNotificationType=class extends ef.NotificationType{constructor(e){super(e,ef.ParameterStructures.byName)}};var nf={},of={};function sf(e){return"string"==typeof e||e instanceof String}function rf(e){return Array.isArray(e)}Object.defineProperty(of,"__esModule",{value:!0}),of.objectLiteral=of.typedArray=of.stringArray=of.array=of.func=of.error=of.number=of.string=of.boolean=void 0,of.boolean=function(e){return!0===e||!1===e},of.string=sf,of.number=function(e){return"number"==typeof e||e instanceof Number},of.error=function(e){return e instanceof Error},of.func=function(e){return"function"==typeof e},of.array=rf,of.stringArray=function(e){return rf(e)&&e.every((e=>sf(e)))},of.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},of.objectLiteral=function(e){return null!==e&&"object"==typeof e};var af={};Object.defineProperty(af,"__esModule",{value:!0}),af.ImplementationRequest=void 0;const lf=Jp;var cf;!function(e){e.method="textDocument/implementation",e.messageDirection=lf.MessageDirection.clientToServer,e.type=new lf.ProtocolRequestType(e.method)}(cf||(af.ImplementationRequest=cf={}));var df={};Object.defineProperty(df,"__esModule",{value:!0}),df.TypeDefinitionRequest=void 0;const hf=Jp;var uf;!function(e){e.method="textDocument/typeDefinition",e.messageDirection=hf.MessageDirection.clientToServer,e.type=new hf.ProtocolRequestType(e.method)}(uf||(df.TypeDefinitionRequest=uf={}));var pf={};Object.defineProperty(pf,"__esModule",{value:!0}),pf.DidChangeWorkspaceFoldersNotification=pf.WorkspaceFoldersRequest=void 0;const ff=Jp;var gf,mf;!function(e){e.method="workspace/workspaceFolders",e.messageDirection=ff.MessageDirection.serverToClient,e.type=new ff.ProtocolRequestType0(e.method)}(gf||(pf.WorkspaceFoldersRequest=gf={})),function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=ff.MessageDirection.clientToServer,e.type=new ff.ProtocolNotificationType(e.method)}(mf||(pf.DidChangeWorkspaceFoldersNotification=mf={}));var vf={};Object.defineProperty(vf,"__esModule",{value:!0}),vf.ConfigurationRequest=void 0;const bf=Jp;var yf;!function(e){e.method="workspace/configuration",e.messageDirection=bf.MessageDirection.serverToClient,e.type=new bf.ProtocolRequestType(e.method)}(yf||(vf.ConfigurationRequest=yf={}));var xf={};Object.defineProperty(xf,"__esModule",{value:!0}),xf.ColorPresentationRequest=xf.DocumentColorRequest=void 0;const wf=Jp;var kf,Cf;!function(e){e.method="textDocument/documentColor",e.messageDirection=wf.MessageDirection.clientToServer,e.type=new wf.ProtocolRequestType(e.method)}(kf||(xf.DocumentColorRequest=kf={})),function(e){e.method="textDocument/colorPresentation",e.messageDirection=wf.MessageDirection.clientToServer,e.type=new wf.ProtocolRequestType(e.method)}(Cf||(xf.ColorPresentationRequest=Cf={}));var Tf={};Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.FoldingRangeRefreshRequest=Tf.FoldingRangeRequest=void 0;const Rf=Jp;var Sf,Df;!function(e){e.method="textDocument/foldingRange",e.messageDirection=Rf.MessageDirection.clientToServer,e.type=new Rf.ProtocolRequestType(e.method)}(Sf||(Tf.FoldingRangeRequest=Sf={})),function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=Rf.MessageDirection.serverToClient,e.type=new Rf.ProtocolRequestType0(e.method)}(Df||(Tf.FoldingRangeRefreshRequest=Df={}));var Ef={};Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.DeclarationRequest=void 0;const If=Jp;var $f;!function(e){e.method="textDocument/declaration",e.messageDirection=If.MessageDirection.clientToServer,e.type=new If.ProtocolRequestType(e.method)}($f||(Ef.DeclarationRequest=$f={}));var Of={};Object.defineProperty(Of,"__esModule",{value:!0}),Of.SelectionRangeRequest=void 0;const Pf=Jp;var Af;!function(e){e.method="textDocument/selectionRange",e.messageDirection=Pf.MessageDirection.clientToServer,e.type=new Pf.ProtocolRequestType(e.method)}(Af||(Of.SelectionRangeRequest=Af={}));var Mf={};Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.WorkDoneProgressCancelNotification=Mf.WorkDoneProgressCreateRequest=Mf.WorkDoneProgress=void 0;const Lf=Ph,Nf=Jp;var _f,Ff,qf;!function(e){e.type=new Lf.ProgressType,e.is=function(t){return t===e.type}}(_f||(Mf.WorkDoneProgress=_f={})),function(e){e.method="window/workDoneProgress/create",e.messageDirection=Nf.MessageDirection.serverToClient,e.type=new Nf.ProtocolRequestType(e.method)}(Ff||(Mf.WorkDoneProgressCreateRequest=Ff={})),function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Nf.MessageDirection.clientToServer,e.type=new Nf.ProtocolNotificationType(e.method)}(qf||(Mf.WorkDoneProgressCancelNotification=qf={}));var zf={};Object.defineProperty(zf,"__esModule",{value:!0}),zf.CallHierarchyOutgoingCallsRequest=zf.CallHierarchyIncomingCallsRequest=zf.CallHierarchyPrepareRequest=void 0;const jf=Jp;var Vf,Hf,Bf;!function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=jf.MessageDirection.clientToServer,e.type=new jf.ProtocolRequestType(e.method)}(Vf||(zf.CallHierarchyPrepareRequest=Vf={})),function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=jf.MessageDirection.clientToServer,e.type=new jf.ProtocolRequestType(e.method)}(Hf||(zf.CallHierarchyIncomingCallsRequest=Hf={})),function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=jf.MessageDirection.clientToServer,e.type=new jf.ProtocolRequestType(e.method)}(Bf||(zf.CallHierarchyOutgoingCallsRequest=Bf={}));var Uf={};Object.defineProperty(Uf,"__esModule",{value:!0}),Uf.SemanticTokensRefreshRequest=Uf.SemanticTokensRangeRequest=Uf.SemanticTokensDeltaRequest=Uf.SemanticTokensRequest=Uf.SemanticTokensRegistrationType=Uf.TokenFormat=void 0;const Wf=Jp;var Kf,Gf,Xf,Qf,Yf,Zf;!function(e){e.Relative="relative"}(Kf||(Uf.TokenFormat=Kf={})),function(e){e.method="textDocument/semanticTokens",e.type=new Wf.RegistrationType(e.method)}(Gf||(Uf.SemanticTokensRegistrationType=Gf={})),function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Wf.MessageDirection.clientToServer,e.type=new Wf.ProtocolRequestType(e.method),e.registrationMethod=Gf.method}(Xf||(Uf.SemanticTokensRequest=Xf={})),function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Wf.MessageDirection.clientToServer,e.type=new Wf.ProtocolRequestType(e.method),e.registrationMethod=Gf.method}(Qf||(Uf.SemanticTokensDeltaRequest=Qf={})),function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Wf.MessageDirection.clientToServer,e.type=new Wf.ProtocolRequestType(e.method),e.registrationMethod=Gf.method}(Yf||(Uf.SemanticTokensRangeRequest=Yf={})),function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Wf.MessageDirection.serverToClient,e.type=new Wf.ProtocolRequestType0(e.method)}(Zf||(Uf.SemanticTokensRefreshRequest=Zf={}));var Jf={};Object.defineProperty(Jf,"__esModule",{value:!0}),Jf.ShowDocumentRequest=void 0;const eg=Jp;var tg;!function(e){e.method="window/showDocument",e.messageDirection=eg.MessageDirection.serverToClient,e.type=new eg.ProtocolRequestType(e.method)}(tg||(Jf.ShowDocumentRequest=tg={}));var ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.LinkedEditingRangeRequest=void 0;const ng=Jp;var og;!function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=ng.MessageDirection.clientToServer,e.type=new ng.ProtocolRequestType(e.method)}(og||(ig.LinkedEditingRangeRequest=og={}));var sg={};Object.defineProperty(sg,"__esModule",{value:!0}),sg.WillDeleteFilesRequest=sg.DidDeleteFilesNotification=sg.DidRenameFilesNotification=sg.WillRenameFilesRequest=sg.DidCreateFilesNotification=sg.WillCreateFilesRequest=sg.FileOperationPatternKind=void 0;const rg=Jp;var ag,lg,cg,dg,hg,ug,pg;!function(e){e.file="file",e.folder="folder"}(ag||(sg.FileOperationPatternKind=ag={})),function(e){e.method="workspace/willCreateFiles",e.messageDirection=rg.MessageDirection.clientToServer,e.type=new rg.ProtocolRequestType(e.method)}(lg||(sg.WillCreateFilesRequest=lg={})),function(e){e.method="workspace/didCreateFiles",e.messageDirection=rg.MessageDirection.clientToServer,e.type=new rg.ProtocolNotificationType(e.method)}(cg||(sg.DidCreateFilesNotification=cg={})),function(e){e.method="workspace/willRenameFiles",e.messageDirection=rg.MessageDirection.clientToServer,e.type=new rg.ProtocolRequestType(e.method)}(dg||(sg.WillRenameFilesRequest=dg={})),function(e){e.method="workspace/didRenameFiles",e.messageDirection=rg.MessageDirection.clientToServer,e.type=new rg.ProtocolNotificationType(e.method)}(hg||(sg.DidRenameFilesNotification=hg={})),function(e){e.method="workspace/didDeleteFiles",e.messageDirection=rg.MessageDirection.clientToServer,e.type=new rg.ProtocolNotificationType(e.method)}(ug||(sg.DidDeleteFilesNotification=ug={})),function(e){e.method="workspace/willDeleteFiles",e.messageDirection=rg.MessageDirection.clientToServer,e.type=new rg.ProtocolRequestType(e.method)}(pg||(sg.WillDeleteFilesRequest=pg={}));var fg={};Object.defineProperty(fg,"__esModule",{value:!0}),fg.MonikerRequest=fg.MonikerKind=fg.UniquenessLevel=void 0;const gg=Jp;var mg,vg,bg;!function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"}(mg||(fg.UniquenessLevel=mg={})),function(e){e.$import="import",e.$export="export",e.local="local"}(vg||(fg.MonikerKind=vg={})),function(e){e.method="textDocument/moniker",e.messageDirection=gg.MessageDirection.clientToServer,e.type=new gg.ProtocolRequestType(e.method)}(bg||(fg.MonikerRequest=bg={}));var yg={};Object.defineProperty(yg,"__esModule",{value:!0}),yg.TypeHierarchySubtypesRequest=yg.TypeHierarchySupertypesRequest=yg.TypeHierarchyPrepareRequest=void 0;const xg=Jp;var wg,kg,Cg;!function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=xg.MessageDirection.clientToServer,e.type=new xg.ProtocolRequestType(e.method)}(wg||(yg.TypeHierarchyPrepareRequest=wg={})),function(e){e.method="typeHierarchy/supertypes",e.messageDirection=xg.MessageDirection.clientToServer,e.type=new xg.ProtocolRequestType(e.method)}(kg||(yg.TypeHierarchySupertypesRequest=kg={})),function(e){e.method="typeHierarchy/subtypes",e.messageDirection=xg.MessageDirection.clientToServer,e.type=new xg.ProtocolRequestType(e.method)}(Cg||(yg.TypeHierarchySubtypesRequest=Cg={}));var Tg={};Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.InlineValueRefreshRequest=Tg.InlineValueRequest=void 0;const Rg=Jp;var Sg,Dg;!function(e){e.method="textDocument/inlineValue",e.messageDirection=Rg.MessageDirection.clientToServer,e.type=new Rg.ProtocolRequestType(e.method)}(Sg||(Tg.InlineValueRequest=Sg={})),function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=Rg.MessageDirection.serverToClient,e.type=new Rg.ProtocolRequestType0(e.method)}(Dg||(Tg.InlineValueRefreshRequest=Dg={}));var Eg={};Object.defineProperty(Eg,"__esModule",{value:!0}),Eg.InlayHintRefreshRequest=Eg.InlayHintResolveRequest=Eg.InlayHintRequest=void 0;const Ig=Jp;var $g,Og,Pg;!function(e){e.method="textDocument/inlayHint",e.messageDirection=Ig.MessageDirection.clientToServer,e.type=new Ig.ProtocolRequestType(e.method)}($g||(Eg.InlayHintRequest=$g={})),function(e){e.method="inlayHint/resolve",e.messageDirection=Ig.MessageDirection.clientToServer,e.type=new Ig.ProtocolRequestType(e.method)}(Og||(Eg.InlayHintResolveRequest=Og={})),function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=Ig.MessageDirection.serverToClient,e.type=new Ig.ProtocolRequestType0(e.method)}(Pg||(Eg.InlayHintRefreshRequest=Pg={}));var Ag={};Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.DiagnosticRefreshRequest=Ag.WorkspaceDiagnosticRequest=Ag.DocumentDiagnosticRequest=Ag.DocumentDiagnosticReportKind=Ag.DiagnosticServerCancellationData=void 0;const Mg=Ph,Lg=of,Ng=Jp;var _g,Fg,qg,zg,jg;!function(e){e.is=function(e){const t=e;return t&&Lg.boolean(t.retriggerRequest)}}(_g||(Ag.DiagnosticServerCancellationData=_g={})),function(e){e.Full="full",e.Unchanged="unchanged"}(Fg||(Ag.DocumentDiagnosticReportKind=Fg={})),function(e){e.method="textDocument/diagnostic",e.messageDirection=Ng.MessageDirection.clientToServer,e.type=new Ng.ProtocolRequestType(e.method),e.partialResult=new Mg.ProgressType}(qg||(Ag.DocumentDiagnosticRequest=qg={})),function(e){e.method="workspace/diagnostic",e.messageDirection=Ng.MessageDirection.clientToServer,e.type=new Ng.ProtocolRequestType(e.method),e.partialResult=new Mg.ProgressType}(zg||(Ag.WorkspaceDiagnosticRequest=zg={})),function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=Ng.MessageDirection.serverToClient,e.type=new Ng.ProtocolRequestType0(e.method)}(jg||(Ag.DiagnosticRefreshRequest=jg={}));var Vg={};Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.DidCloseNotebookDocumentNotification=Vg.DidSaveNotebookDocumentNotification=Vg.DidChangeNotebookDocumentNotification=Vg.NotebookCellArrayChange=Vg.DidOpenNotebookDocumentNotification=Vg.NotebookDocumentSyncRegistrationType=Vg.NotebookDocument=Vg.NotebookCell=Vg.ExecutionSummary=Vg.NotebookCellKind=void 0;const Hg=Zp,Bg=of,Ug=Jp;var Wg,Kg,Gg,Xg,Qg,Yg,Zg,Jg,em,tm;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(Wg||(Vg.NotebookCellKind=Wg={})),function(e){e.create=function(e,t){const i={executionOrder:e};return!0!==t&&!1!==t||(i.success=t),i},e.is=function(e){const t=e;return Bg.objectLiteral(t)&&Hg.uinteger.is(t.executionOrder)&&(void 0===t.success||Bg.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&(e.executionOrder===t.executionOrder&&e.success===t.success)}}(Kg||(Vg.ExecutionSummary=Kg={})),function(e){function t(e,i){if(e===i)return!0;if(null==e||null==i)return!1;if(typeof e!=typeof i)return!1;if("object"!=typeof e)return!1;const n=Array.isArray(e),o=Array.isArray(i);if(n!==o)return!1;if(n&&o){if(e.length!==i.length)return!1;for(let n=0;n<e.length;n++)if(!t(e[n],i[n]))return!1}if(Bg.objectLiteral(e)&&Bg.objectLiteral(i)){const n=Object.keys(e),o=Object.keys(i);if(n.length!==o.length)return!1;if(n.sort(),o.sort(),!t(n,o))return!1;for(let o=0;o<n.length;o++){const s=n[o];if(!t(e[s],i[s]))return!1}}return!0}e.create=function(e,t){return{kind:e,document:t}},e.is=function(e){const t=e;return Bg.objectLiteral(t)&&Wg.is(t.kind)&&Hg.DocumentUri.is(t.document)&&(void 0===t.metadata||Bg.objectLiteral(t.metadata))},e.diff=function(e,i){const n=new Set;return e.document!==i.document&&n.add("document"),e.kind!==i.kind&&n.add("kind"),e.executionSummary!==i.executionSummary&&n.add("executionSummary"),void 0===e.metadata&&void 0===i.metadata||t(e.metadata,i.metadata)||n.add("metadata"),void 0===e.executionSummary&&void 0===i.executionSummary||Kg.equals(e.executionSummary,i.executionSummary)||n.add("executionSummary"),n}}(Gg||(Vg.NotebookCell=Gg={})),function(e){e.create=function(e,t,i,n){return{uri:e,notebookType:t,version:i,cells:n}},e.is=function(e){const t=e;return Bg.objectLiteral(t)&&Bg.string(t.uri)&&Hg.integer.is(t.version)&&Bg.typedArray(t.cells,Gg.is)}}(Xg||(Vg.NotebookDocument=Xg={})),function(e){e.method="notebookDocument/sync",e.messageDirection=Ug.MessageDirection.clientToServer,e.type=new Ug.RegistrationType(e.method)}(Qg||(Vg.NotebookDocumentSyncRegistrationType=Qg={})),function(e){e.method="notebookDocument/didOpen",e.messageDirection=Ug.MessageDirection.clientToServer,e.type=new Ug.ProtocolNotificationType(e.method),e.registrationMethod=Qg.method}(Yg||(Vg.DidOpenNotebookDocumentNotification=Yg={})),function(e){e.is=function(e){const t=e;return Bg.objectLiteral(t)&&Hg.uinteger.is(t.start)&&Hg.uinteger.is(t.deleteCount)&&(void 0===t.cells||Bg.typedArray(t.cells,Gg.is))},e.create=function(e,t,i){const n={start:e,deleteCount:t};return void 0!==i&&(n.cells=i),n}}(Zg||(Vg.NotebookCellArrayChange=Zg={})),function(e){e.method="notebookDocument/didChange",e.messageDirection=Ug.MessageDirection.clientToServer,e.type=new Ug.ProtocolNotificationType(e.method),e.registrationMethod=Qg.method}(Jg||(Vg.DidChangeNotebookDocumentNotification=Jg={})),function(e){e.method="notebookDocument/didSave",e.messageDirection=Ug.MessageDirection.clientToServer,e.type=new Ug.ProtocolNotificationType(e.method),e.registrationMethod=Qg.method}(em||(Vg.DidSaveNotebookDocumentNotification=em={})),function(e){e.method="notebookDocument/didClose",e.messageDirection=Ug.MessageDirection.clientToServer,e.type=new Ug.ProtocolNotificationType(e.method),e.registrationMethod=Qg.method}(tm||(Vg.DidCloseNotebookDocumentNotification=tm={}));var im={};Object.defineProperty(im,"__esModule",{value:!0}),im.InlineCompletionRequest=void 0;const nm=Jp;var om;!function(e){e.method="textDocument/inlineCompletion",e.messageDirection=nm.MessageDirection.clientToServer,e.type=new nm.ProtocolRequestType(e.method)}(om||(im.InlineCompletionRequest=om={})),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSymbolRequest=e.CodeActionResolveRequest=e.CodeActionRequest=e.DocumentSymbolRequest=e.DocumentHighlightRequest=e.ReferencesRequest=e.DefinitionRequest=e.SignatureHelpRequest=e.SignatureHelpTriggerKind=e.HoverRequest=e.CompletionResolveRequest=e.CompletionRequest=e.CompletionTriggerKind=e.PublishDiagnosticsNotification=e.WatchKind=e.RelativePattern=e.FileChangeType=e.DidChangeWatchedFilesNotification=e.WillSaveTextDocumentWaitUntilRequest=e.WillSaveTextDocumentNotification=e.TextDocumentSaveReason=e.DidSaveTextDocumentNotification=e.DidCloseTextDocumentNotification=e.DidChangeTextDocumentNotification=e.TextDocumentContentChangeEvent=e.DidOpenTextDocumentNotification=e.TextDocumentSyncKind=e.TelemetryEventNotification=e.LogMessageNotification=e.ShowMessageRequest=e.ShowMessageNotification=e.MessageType=e.DidChangeConfigurationNotification=e.ExitNotification=e.ShutdownRequest=e.InitializedNotification=e.InitializeErrorCodes=e.InitializeRequest=e.WorkDoneProgressOptions=e.TextDocumentRegistrationOptions=e.StaticRegistrationOptions=e.PositionEncodingKind=e.FailureHandlingKind=e.ResourceOperationKind=e.UnregistrationRequest=e.RegistrationRequest=e.DocumentSelector=e.NotebookCellTextDocumentFilter=e.NotebookDocumentFilter=e.TextDocumentFilter=void 0,e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.WillRenameFilesRequest=e.DidRenameFilesNotification=e.WillCreateFilesRequest=e.DidCreateFilesNotification=e.FileOperationPatternKind=e.LinkedEditingRangeRequest=e.ShowDocumentRequest=e.SemanticTokensRegistrationType=e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.TokenFormat=e.CallHierarchyPrepareRequest=e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=e.SelectionRangeRequest=e.DeclarationRequest=e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=e.ColorPresentationRequest=e.DocumentColorRequest=e.ConfigurationRequest=e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=e.TypeDefinitionRequest=e.ImplementationRequest=e.ApplyWorkspaceEditRequest=e.ExecuteCommandRequest=e.PrepareRenameRequest=e.RenameRequest=e.PrepareSupportDefaultBehavior=e.DocumentOnTypeFormattingRequest=e.DocumentRangesFormattingRequest=e.DocumentRangeFormattingRequest=e.DocumentFormattingRequest=e.DocumentLinkResolveRequest=e.DocumentLinkRequest=e.CodeLensRefreshRequest=e.CodeLensResolveRequest=e.CodeLensRequest=e.WorkspaceSymbolResolveRequest=void 0,e.InlineCompletionRequest=e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=e.InlineValueRefreshRequest=e.InlineValueRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchySubtypesRequest=e.TypeHierarchyPrepareRequest=void 0;const t=Jp,i=Zp,n=of,o=af;Object.defineProperty(e,"ImplementationRequest",{enumerable:!0,get:function(){return o.ImplementationRequest}});const s=df;Object.defineProperty(e,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const r=pf;Object.defineProperty(e,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return r.WorkspaceFoldersRequest}}),Object.defineProperty(e,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return r.DidChangeWorkspaceFoldersNotification}});const a=vf;Object.defineProperty(e,"ConfigurationRequest",{enumerable:!0,get:function(){return a.ConfigurationRequest}});const l=xf;Object.defineProperty(e,"DocumentColorRequest",{enumerable:!0,get:function(){return l.DocumentColorRequest}}),Object.defineProperty(e,"ColorPresentationRequest",{enumerable:!0,get:function(){return l.ColorPresentationRequest}});const c=Tf;Object.defineProperty(e,"FoldingRangeRequest",{enumerable:!0,get:function(){return c.FoldingRangeRequest}}),Object.defineProperty(e,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return c.FoldingRangeRefreshRequest}});const d=Ef;Object.defineProperty(e,"DeclarationRequest",{enumerable:!0,get:function(){return d.DeclarationRequest}});const h=Of;Object.defineProperty(e,"SelectionRangeRequest",{enumerable:!0,get:function(){return h.SelectionRangeRequest}});const u=Mf;Object.defineProperty(e,"WorkDoneProgress",{enumerable:!0,get:function(){return u.WorkDoneProgress}}),Object.defineProperty(e,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return u.WorkDoneProgressCreateRequest}}),Object.defineProperty(e,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return u.WorkDoneProgressCancelNotification}});const p=zf;Object.defineProperty(e,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return p.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(e,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return p.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(e,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return p.CallHierarchyPrepareRequest}});const f=Uf;Object.defineProperty(e,"TokenFormat",{enumerable:!0,get:function(){return f.TokenFormat}}),Object.defineProperty(e,"SemanticTokensRequest",{enumerable:!0,get:function(){return f.SemanticTokensRequest}}),Object.defineProperty(e,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return f.SemanticTokensDeltaRequest}}),Object.defineProperty(e,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return f.SemanticTokensRangeRequest}}),Object.defineProperty(e,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return f.SemanticTokensRefreshRequest}}),Object.defineProperty(e,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return f.SemanticTokensRegistrationType}});const g=Jf;Object.defineProperty(e,"ShowDocumentRequest",{enumerable:!0,get:function(){return g.ShowDocumentRequest}});const m=ig;Object.defineProperty(e,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return m.LinkedEditingRangeRequest}});const v=sg;Object.defineProperty(e,"FileOperationPatternKind",{enumerable:!0,get:function(){return v.FileOperationPatternKind}}),Object.defineProperty(e,"DidCreateFilesNotification",{enumerable:!0,get:function(){return v.DidCreateFilesNotification}}),Object.defineProperty(e,"WillCreateFilesRequest",{enumerable:!0,get:function(){return v.WillCreateFilesRequest}}),Object.defineProperty(e,"DidRenameFilesNotification",{enumerable:!0,get:function(){return v.DidRenameFilesNotification}}),Object.defineProperty(e,"WillRenameFilesRequest",{enumerable:!0,get:function(){return v.WillRenameFilesRequest}}),Object.defineProperty(e,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return v.DidDeleteFilesNotification}}),Object.defineProperty(e,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return v.WillDeleteFilesRequest}});const b=fg;Object.defineProperty(e,"UniquenessLevel",{enumerable:!0,get:function(){return b.UniquenessLevel}}),Object.defineProperty(e,"MonikerKind",{enumerable:!0,get:function(){return b.MonikerKind}}),Object.defineProperty(e,"MonikerRequest",{enumerable:!0,get:function(){return b.MonikerRequest}});const y=yg;Object.defineProperty(e,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return y.TypeHierarchyPrepareRequest}}),Object.defineProperty(e,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return y.TypeHierarchySubtypesRequest}}),Object.defineProperty(e,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return y.TypeHierarchySupertypesRequest}});const x=Tg;Object.defineProperty(e,"InlineValueRequest",{enumerable:!0,get:function(){return x.InlineValueRequest}}),Object.defineProperty(e,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return x.InlineValueRefreshRequest}});const w=Eg;Object.defineProperty(e,"InlayHintRequest",{enumerable:!0,get:function(){return w.InlayHintRequest}}),Object.defineProperty(e,"InlayHintResolveRequest",{enumerable:!0,get:function(){return w.InlayHintResolveRequest}}),Object.defineProperty(e,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return w.InlayHintRefreshRequest}});const k=Ag;Object.defineProperty(e,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return k.DiagnosticServerCancellationData}}),Object.defineProperty(e,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return k.DocumentDiagnosticReportKind}}),Object.defineProperty(e,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return k.DocumentDiagnosticRequest}}),Object.defineProperty(e,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return k.WorkspaceDiagnosticRequest}}),Object.defineProperty(e,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return k.DiagnosticRefreshRequest}});const C=Vg;Object.defineProperty(e,"NotebookCellKind",{enumerable:!0,get:function(){return C.NotebookCellKind}}),Object.defineProperty(e,"ExecutionSummary",{enumerable:!0,get:function(){return C.ExecutionSummary}}),Object.defineProperty(e,"NotebookCell",{enumerable:!0,get:function(){return C.NotebookCell}}),Object.defineProperty(e,"NotebookDocument",{enumerable:!0,get:function(){return C.NotebookDocument}}),Object.defineProperty(e,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return C.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(e,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return C.DidOpenNotebookDocumentNotification}}),Object.defineProperty(e,"NotebookCellArrayChange",{enumerable:!0,get:function(){return C.NotebookCellArrayChange}}),Object.defineProperty(e,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return C.DidChangeNotebookDocumentNotification}}),Object.defineProperty(e,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return C.DidSaveNotebookDocumentNotification}}),Object.defineProperty(e,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return C.DidCloseNotebookDocumentNotification}});const T=im;var R,S,D,E,I,$,O,P,A,M,L,N,_,F,q,z,j,V,H,B,U,W,K,G,X,Q,Y,Z,J,ee,te,ie,ne,oe,se,re,ae,le,ce,de,he,ue,pe,fe,ge,me,ve,be,ye,xe,we,ke,Ce,Te,Re,Se,De,Ee,Ie,$e,Oe,Pe,Ae,Me,Le;Object.defineProperty(e,"InlineCompletionRequest",{enumerable:!0,get:function(){return T.InlineCompletionRequest}}),function(e){e.is=function(e){const t=e;return n.string(t)||n.string(t.language)||n.string(t.scheme)||n.string(t.pattern)}}(R||(e.TextDocumentFilter=R={})),function(e){e.is=function(e){const t=e;return n.objectLiteral(t)&&(n.string(t.notebookType)||n.string(t.scheme)||n.string(t.pattern))}}(S||(e.NotebookDocumentFilter=S={})),function(e){e.is=function(e){const t=e;return n.objectLiteral(t)&&(n.string(t.notebook)||S.is(t.notebook))&&(void 0===t.language||n.string(t.language))}}(D||(e.NotebookCellTextDocumentFilter=D={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(let t of e)if(!n.string(t)&&!R.is(t)&&!D.is(t))return!1;return!0}}(E||(e.DocumentSelector=E={})),function(e){e.method="client/registerCapability",e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)}(I||(e.RegistrationRequest=I={})),function(e){e.method="client/unregisterCapability",e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)}($||(e.UnregistrationRequest=$={})),function(e){e.Create="create",e.Rename="rename",e.Delete="delete"}(O||(e.ResourceOperationKind=O={})),function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"}(P||(e.FailureHandlingKind=P={})),function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"}(A||(e.PositionEncodingKind=A={})),function(e){e.hasId=function(e){const t=e;return t&&n.string(t.id)&&t.id.length>0}}(M||(e.StaticRegistrationOptions=M={})),function(e){e.is=function(e){const t=e;return t&&(null===t.documentSelector||E.is(t.documentSelector))}}(L||(e.TextDocumentRegistrationOptions=L={})),function(e){e.is=function(e){const t=e;return n.objectLiteral(t)&&(void 0===t.workDoneProgress||n.boolean(t.workDoneProgress))},e.hasWorkDoneProgress=function(e){const t=e;return t&&n.boolean(t.workDoneProgress)}}(N||(e.WorkDoneProgressOptions=N={})),function(e){e.method="initialize",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(_||(e.InitializeRequest=_={})),function(e){e.unknownProtocolVersion=1}(F||(e.InitializeErrorCodes=F={})),function(e){e.method="initialized",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)}(q||(e.InitializedNotification=q={})),function(e){e.method="shutdown",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType0(e.method)}(z||(e.ShutdownRequest=z={})),function(e){e.method="exit",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType0(e.method)}(j||(e.ExitNotification=j={})),function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)}(V||(e.DidChangeConfigurationNotification=V={})),function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5}(H||(e.MessageType=H={})),function(e){e.method="window/showMessage",e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)}(B||(e.ShowMessageNotification=B={})),function(e){e.method="window/showMessageRequest",e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)}(U||(e.ShowMessageRequest=U={})),function(e){e.method="window/logMessage",e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)}(W||(e.LogMessageNotification=W={})),function(e){e.method="telemetry/event",e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)}(K||(e.TelemetryEventNotification=K={})),function(e){e.None=0,e.Full=1,e.Incremental=2}(G||(e.TextDocumentSyncKind=G={})),function(e){e.method="textDocument/didOpen",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)}(X||(e.DidOpenTextDocumentNotification=X={})),function(e){e.isIncremental=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},e.isFull=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}(Q||(e.TextDocumentContentChangeEvent=Q={})),function(e){e.method="textDocument/didChange",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)}(Y||(e.DidChangeTextDocumentNotification=Y={})),function(e){e.method="textDocument/didClose",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)}(Z||(e.DidCloseTextDocumentNotification=Z={})),function(e){e.method="textDocument/didSave",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)}(J||(e.DidSaveTextDocumentNotification=J={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}(ee||(e.TextDocumentSaveReason=ee={})),function(e){e.method="textDocument/willSave",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)}(te||(e.WillSaveTextDocumentNotification=te={})),function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(ie||(e.WillSaveTextDocumentWaitUntilRequest=ie={})),function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)}(ne||(e.DidChangeWatchedFilesNotification=ne={})),function(e){e.Created=1,e.Changed=2,e.Deleted=3}(oe||(e.FileChangeType=oe={})),function(e){e.is=function(e){const t=e;return n.objectLiteral(t)&&(i.URI.is(t.baseUri)||i.WorkspaceFolder.is(t.baseUri))&&n.string(t.pattern)}}(se||(e.RelativePattern=se={})),function(e){e.Create=1,e.Change=2,e.Delete=4}(re||(e.WatchKind=re={})),function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)}(ae||(e.PublishDiagnosticsNotification=ae={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3}(le||(e.CompletionTriggerKind=le={})),function(e){e.method="textDocument/completion",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(ce||(e.CompletionRequest=ce={})),function(e){e.method="completionItem/resolve",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(de||(e.CompletionResolveRequest=de={})),function(e){e.method="textDocument/hover",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(he||(e.HoverRequest=he={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3}(ue||(e.SignatureHelpTriggerKind=ue={})),function(e){e.method="textDocument/signatureHelp",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(pe||(e.SignatureHelpRequest=pe={})),function(e){e.method="textDocument/definition",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(fe||(e.DefinitionRequest=fe={})),function(e){e.method="textDocument/references",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(ge||(e.ReferencesRequest=ge={})),function(e){e.method="textDocument/documentHighlight",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(me||(e.DocumentHighlightRequest=me={})),function(e){e.method="textDocument/documentSymbol",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(ve||(e.DocumentSymbolRequest=ve={})),function(e){e.method="textDocument/codeAction",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(be||(e.CodeActionRequest=be={})),function(e){e.method="codeAction/resolve",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(ye||(e.CodeActionResolveRequest=ye={})),function(e){e.method="workspace/symbol",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(xe||(e.WorkspaceSymbolRequest=xe={})),function(e){e.method="workspaceSymbol/resolve",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(we||(e.WorkspaceSymbolResolveRequest=we={})),function(e){e.method="textDocument/codeLens",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(ke||(e.CodeLensRequest=ke={})),function(e){e.method="codeLens/resolve",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(Ce||(e.CodeLensResolveRequest=Ce={})),function(e){e.method="workspace/codeLens/refresh",e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)}(Te||(e.CodeLensRefreshRequest=Te={})),function(e){e.method="textDocument/documentLink",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(Re||(e.DocumentLinkRequest=Re={})),function(e){e.method="documentLink/resolve",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(Se||(e.DocumentLinkResolveRequest=Se={})),function(e){e.method="textDocument/formatting",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(De||(e.DocumentFormattingRequest=De={})),function(e){e.method="textDocument/rangeFormatting",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(Ee||(e.DocumentRangeFormattingRequest=Ee={})),function(e){e.method="textDocument/rangesFormatting",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(Ie||(e.DocumentRangesFormattingRequest=Ie={})),function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}($e||(e.DocumentOnTypeFormattingRequest=$e={})),function(e){e.Identifier=1}(Oe||(e.PrepareSupportDefaultBehavior=Oe={})),function(e){e.method="textDocument/rename",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(Pe||(e.RenameRequest=Pe={})),function(e){e.method="textDocument/prepareRename",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(Ae||(e.PrepareRenameRequest=Ae={})),function(e){e.method="workspace/executeCommand",e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)}(Me||(e.ExecuteCommandRequest=Me={})),function(e){e.method="workspace/applyEdit",e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType("workspace/applyEdit")}(Le||(e.ApplyWorkspaceEditRequest=Le={}))}(nf);var sm={};Object.defineProperty(sm,"__esModule",{value:!0}),sm.createProtocolConnection=void 0;const rm=Ph;sm.createProtocolConnection=function(e,t,i,n){return rm.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),(0,rm.createMessageConnection)(e,t,i,n)},function(e){var t=Ch&&Ch.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),i=Ch&&Ch.__exportStar||function(e,i){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(i,n)||t(i,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,i(Ph,e),i(Zp,e),i(Jp,e),i(nf,e);var n,o=sm;Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:function(){return o.createProtocolConnection}}),function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800}(n||(e.LSPErrorCodes=n={}))}(Wp),function(e){var t=Ch&&Ch.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),i=Ch&&Ch.__exportStar||function(e,i){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(i,n)||t(i,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;const n=$h;i($h,e),i(Wp,e),e.createProtocolConnection=function(e,t,i,o){return(0,n.createMessageConnection)(e,t,i,o)}}(Ih);var am="undefined"!=typeof Element,lm="function"==typeof Map,cm="function"==typeof Set,dm="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function hm(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var i,n,o,s;if(Array.isArray(e)){if((i=e.length)!=t.length)return!1;for(n=i;0!=n--;)if(!hm(e[n],t[n]))return!1;return!0}if(lm&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;for(s=e.entries();!(n=s.next()).done;)if(!hm(n.value[1],t.get(n.value[0])))return!1;return!0}if(cm&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(n=s.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(dm&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((i=e.length)!=t.length)return!1;for(n=i;0!=n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((i=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(am&&e instanceof Element)return!1;for(n=i;0!=n--;)if(("_owner"!==o[n]&&"__v"!==o[n]&&"__o"!==o[n]||!e.$$typeof)&&!hm(e[o[n]],t[o[n]]))return!1;return!0}return e!=e&&t!=t}const um=n.memo((({uri:i,diag:o})=>{const s=n.useContext(D),r=L(i).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");const{line:a,character:l}=o.range.start,c={uri:i,range:o.range},d=n.useRef(null),h=o.severity?{[Ih.DiagnosticSeverity.Error]:"error",[Ih.DiagnosticSeverity.Warning]:"warning",[Ih.DiagnosticSeverity.Information]:"information",[Ih.DiagnosticSeverity.Hint]:"hint"}[o.severity]:"";return t("details",{open:!0,children:[t("summary",{className:h+" mv2 pointer",children:[`${r}:${a+1}:${l}`,t("span",{className:"fr",onClick:e=>e.preventDefault(),children:[e("a",{className:"link pointer mh2 dim codicon codicon-go-to-file",onClick:e=>{s.revealLocation(c)},title:"reveal file location"}),e("a",{className:"link pointer mh2 dim codicon codicon-quote","data-id":"copy-to-comment",onClick:e=>{d.current&&s.copyToComment(d.current.innerText)},title:"copy message to comment"}),e("a",{className:"link pointer mh2 dim codicon codicon-clippy",onClick:e=>{d.current&&s.api.copyToClipboard(d.current.innerText)},title:"copy message to clipboard"})]})]}),e("div",{className:"ml1",ref:d,children:e("pre",{className:"font-code pre-wrap",children:e(Ui,{fmt:o.message})})})]})}),(function(e,t){try{return hm(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}));function pm(e,t){const i=t.sort(((e,t)=>{const i=e.fullRange?.end||e.range.end,n=t.fullRange?.end||t.range.end;return i.line===n.line?i.character-n.character:i.line-n.line})).map((t=>({uri:e,diag:t})));return function(e,t){const i={};return e.map((e=>{const n=t(e);return i[n]=(i[n]||0)+1,{key:`${n}:${i[n]}`,...e}}))}(i,(e=>P.toString({uri:e.uri,...e.diag.range.start})))}const fm=n.memo((({uri:t,messages:n})=>0===n.length?e(i,{children:"No messages."}):e("div",{className:"ml1",children:pm(t,n).map((t=>e(um,{...t})))})));function gm({uri:i}){const o=n.useContext(D),s=te({uri:i,line:0,character:0}),r=n.useContext($),a=n.useContext(I),l=n.useMemo((()=>r.get(i)||[]),[r,i]),c=n.useMemo((()=>function(e){let t;return()=>(t||(t={t:e()}),t.t)}((async()=>{const e=l.reduce(((e,t)=>Math.max(e,t.range.end.line)),0)+1;try{const t=await m(s,{start:0,end:e});if(t.length>0)return t}catch(e){e?.code===u.ContentModified||console.log("getInteractiveDiagnostics error ",e)}return l.map((e=>({...e,message:{text:e.message}})))}))),[s,l]),[{isPaused:d,setPaused:h},[p,f,g,v],b]=V(!1,[i,s,l,c]);n.useEffect((()=>{d&&v()}),[v,d]);const y=n.useRef();N(o.events.requestedAction,(e=>{void 0!==y.current&&y.current((e=>!e))}),[y],"toggleAllMessages");const[x,w]=n.useState(void 0);return e(ie.Provider,{value:f,children:t(ne,{setOpenRef:e=>y.current=e,initiallyOpen:!a.autoOpenShowsGoal,children:[t("summary",{className:"mv2 pointer",children:["All Messages (",x??g.length,")",e("span",{className:"fr",onClick:e=>{e.preventDefault()},children:e("a",{className:"link pointer mh2 dim codicon "+(d?"codicon-debug-continue":"codicon-debug-pause"),onClick:e=>{h((e=>!e))},title:d?"continue updating":"pause updating"})})]}),e(mm,{uri:p,messages:v,setNumDiags:w})]})})}function mm({uri:t,messages:o,setNumDiags:s}){const[r,a]=n.useState(void 0);return n.useEffect((()=>{(async()=>{const e=await o();a(e),s(e.length)})()}),[o,s]),n.useEffect((()=>()=>s(void 0)),[s]),void 0===r?e(i,{children:"Loading messages..."}):e(fm,{uri:t,messages:r})}function vm({children:t}){const[i,n]=q("textDocument/publishDiagnostics",new Map,(async e=>t=>new Map(t).set(e.uri,e.diagnostics)),[]);return e($.Provider,{value:i,children:t})}function bm(e){return{...e,message:{text:e.message}}}class ym extends n.Component{constructor(e){super(e),this.state={error:void 0}}static getDerivedStateFromError(e){return{error:e.toString()}}componentDidCatch(e,t){}render(){return this.state.error?t("div",{children:[e("h1",{children:"Error:"}),this.state.error,e("br",{}),e("br",{}),e("a",{className:"link pointer dim ",onClick:()=>this.setState({error:void 0}),children:"Click to reload."})]}):this.props.children}}const xm=new Map;async function wm(e,t,i){if(xm.has(i))return xm.get(i);const n=await k(e,t,i),o=await async function(e,t){const i=new File([t],`widget_${e}.js`,{type:"text/javascript"}),n=URL.createObjectURL(i);return await import(n)}(i,n.sourcetext);return xm.set(i,o),o}function km(i){const{pos:o,hash:s,props:r,children:a}=i,l=n.useContext(ie),c=Y((()=>wm(l,o,s)),[l,o,s]);return e(n.Suspense,{fallback:`Loading component '${s}'..`,children:t(ym,{children:["resolved"===c.state&&n.createElement(c.value.default,r,a),"rejected"===c.state&&t("span",{className:"red",children:["Error: ",K(c.error).message]})]})})}function Cm({pos:t,goals:i,termGoal:n,selectedLocations:o,widget:s}){const r={pos:t,goals:i,termGoal:n,selectedLocations:o,...s.props};return e(km,{pos:t,hash:s.javascriptHash,props:r})}const Tm=n.memo((i=>{const{kind:o,onPin:s,status:r,pos:a,isPaused:l,setPaused:c,triggerUpdate:d}=i,h=n.useContext(D),u={updating:"gold ",error:"dark-red ",ready:""}[r],p=`${L(a.uri)}:${a.line+1}:${a.character}`,f="pin"===o;return t("summary",{style:{transition:"color 0.5s ease"},className:"mv2 pointer "+u,children:[p,f&&!l&&" (pinned)",!f&&l&&" (paused)",f&&l&&" (pinned and paused)",t("span",{className:"fr",onClick:e=>{e.preventDefault()},children:[f&&e("a",{className:"link pointer mh2 dim codicon codicon-go-to-file","data-id":"reveal-file-location",onClick:e=>{h.revealPosition(a)},title:"reveal file location"}),e("a",{className:"link pointer mh2 dim codicon "+(f?"codicon-pinned ":"codicon-pin "),"data-id":"toggle-pinned",onClick:e=>{s(a)},title:f?"unpin":"pin"}),e("a",{className:"link pointer mh2 dim codicon "+(l?"codicon-debug-continue ":"codicon-debug-pause "),"data-id":"toggle-paused",onClick:e=>{c(!l)},title:l?"continue updating":"pause updating"}),e("a",{className:"link pointer mh2 dim codicon codicon-refresh","data-id":"update",onClick:e=>{d()},title:"update"})]})]})})),Rm=n.memo((o=>{const{pos:s,messages:r,goals:a,termGoal:l,error:c,userWidgets:d,triggerUpdate:h,isPaused:u,setPaused:p}=o,f=d.length>0,g=!!c,m=0!==r.length,v=n.useContext(I),b=!(g||a||l||m||f),[y,x]=n.useState([]);n.useEffect((()=>x([])),[s.uri,s.line,s.character]);const w=n.useMemo((()=>({isSelected:e=>y.some((t=>_t.isEqual(t,e))),setSelected:(e,t)=>x((i=>{const n=i.filter((t=>!_t.isEqual(t,e))),o=n.length!==i.length,s="function"==typeof t?t(o):t;return s&&n.push(e),o===s?i:n})),subexprTemplate:void 0})),[y]);return t(i,{children:[g&&t("div",{className:"error",children:["Error updating: ",c,".",t("a",{className:"link pointer dim",onClick:e=>{e.preventDefault(),h()},children:[" ","Try again."]})]},"errors"),e(Ft.Provider,{value:w,children:e(_i,{headerChildren:"Tactic state",initiallyOpen:!0,goals:a,displayCount:!0},"goals")}),e(_i,{headerChildren:"Expected type",goals:void 0!==l?{goals:[l]}:void 0,initiallyOpen:v.showExpectedType,displayCount:!1,togglingAction:"toggleExpectedType"},"term-goal"),d.map((i=>{const n=e(Cm,{pos:s,goals:a?a.goals:[],termGoal:l,selectedLocations:y,widget:i},`widget::${i.id}::${i.range?.toString()}`);return i.name?t("details",{open:!0,children:[e("summary",{className:"mv2 pointer",children:i.name}),n]},`widget::${i.id}::${i.range?.toString()}`):n})),e("div",{style:{display:m?"block":"none"},children:t("details",{open:!0,children:[t("summary",{className:"mv2 pointer",children:["Messages (",r.length,")"]}),e("div",{className:"ml1",children:e(fm,{uri:s.uri,messages:r})})]},"messages")},"messages"),b&&(u?t("span",{children:["Updating is paused."," ",e("a",{className:"link pointer dim",onClick:e=>{e.preventDefault(),h()},children:"Refresh"})," ","or"," ",e("a",{className:"link pointer dim",onClick:e=>{e.preventDefault(),p(!1)},children:"resume updating"})," ","to see information."]}):"No info found.")]})}));function Sm(i){const[o,s]=n.useState(!1),[{isPaused:r,setPaused:a},l,c]=V(!1,i);o&&(c.current=i,s(!1));const d=async()=>{await i.triggerUpdate(),s(!0)},{kind:h,goals:u,rpcSess:p}=l,f=n.useContext(D),g="cursor"===h;return N(f.events.requestedAction,(e=>{g&&u&&f.copyToComment(Ai(u))}),[g,u,f],"copyToComment"),N(f.events.requestedAction,(e=>{g&&a((e=>!e))}),[g,a],"togglePaused"),e(ie.Provider,{value:p,children:t("details",{open:!0,children:[e(Tm,{...l,triggerUpdate:d,isPaused:r,setPaused:a}),e("div",{className:"ml1",children:e(Rm,{...l,triggerUpdate:d,isPaused:r,setPaused:a})})]})})}function Dm(t){return"cursor"===t.kind?e(Em,{...t}):e(Im,{...t,pos:t.pos})}function Em(t){const i=n.useContext(D),[o,s]=n.useState(i.events.changedCursorLocation.current);N(i.events.changedCursorLocation,(e=>e&&s(e)),[]);const r={uri:o.uri,...o.range.start};return e(Im,{...t,pos:r})}function Im(t){const i=n.useContext(I),o=t.pos,s=te(o),r=n.useContext($),[a,l]=n.useState([]);n.useEffect((()=>{l((e=>{const t=(r.get(o.uri)||[]).filter((e=>M.contains(e.fullRange||e.range,{line:o.line,character:o.character},i.allErrorsOnLine)));return t.length===e.length&&t.every(((t,i)=>t===e[i]))?e:t}))}),[r,o.uri,o.line,o.character,i.allErrorsOnLine]);const c=function(e){const t=n.useContext(O).get(e.uri);return!!t&&t.some((t=>M.contains(t.range,e)))}(o),[d,h]=n.useState(0),[v,b]=X((()=>new Promise(((e,t)=>{const i=f(s,P.toTdpp(o)),n=g(s,P.toTdpp(o)),r=w(s,o).catch(G),l=m(s,{start:o.line,end:o.line+1}).then((e=>0===e.length?a.map(bm):e));a.length>0&&a.every((e=>0===e.range.start.line))&&setTimeout((()=>e({pos:o,status:"updating",messages:a.map(bm),goals:void 0,termGoal:void 0,error:void 0,userWidgets:[],rpcSess:s})),500),Promise.all([i,n,r,l]).then((([t,i,n,r])=>e({pos:o,status:"ready",messages:r,goals:t,termGoal:i,error:void 0,userWidgets:n?.widgets??[],rpcSess:s})),(i=>{i?.code!==u.ContentModified&&i?.code!==u.RpcNeedsReconnect||(h((e=>e+1)),t("retry"));let n="";n="string"==typeof i?i:p(i)?K(i).message:i instanceof Error?i.toString():`Unrecognized error: ${JSON.stringify(i)}`,e({pos:o,status:"error",messages:a.map(bm),goals:void 0,termGoal:void 0,error:`Error fetching goals: ${n}`,userWidgets:[],rpcSess:s})}))}))),[d,o.uri,o.line,o.character,s,c,a]),y=n.useRef(),x=n.useCallback((()=>new Promise((e=>{y.current&&(window.clearTimeout(y.current),y.current=void 0);const t=window.setTimeout((()=>{b().then(e),y.current=void 0}),i.debounceTime);window.setTimeout(e,i.debounceTime),y.current=t}))),[b,i.debounceTime]),[k,C]=n.useState({pos:o,status:"updating",messages:[],goals:void 0,termGoal:void 0,error:void 0,userWidgets:[],rpcSess:s,triggerUpdate:x});return n.useEffect((()=>{"notStarted"===v.state?x():"loading"===v.state?C((e=>({...e,status:"updating"}))):"resolved"===v.state?C({...v.value,triggerUpdate:x}):"rejected"===v.state&&"retry"!==v.error&&console.warn("Unreachable code reached with error: ",v.error)}),[v,x]),e(Sm,{kind:t.kind,onPin:t.onPin,...k})}function $m(e,t){return e.some((e=>P.isEqual(e,t)))}function Om(){const i=n.useContext(D),[o,s]=j("textDocument/didChange",new Array,((e,t)=>{if(0===e.length)return e;let i=!1;const n=e.map((e=>{if(e.uri!==t.textDocument.uri)return e;const n={...e};for(const e of t.contentChanges){if(!Ih.TextDocumentContentChangeEvent.isIncremental(e))return i=!0,null;if(A.isLessThanOrEqual(n,e.range.start))continue;if(A.isLessThanOrEqual(n,e.range.end))return i=!0,null;const t={...n};let o=0,s=e.range.start.character;for(const t of e.text)"\n"===t?(o++,s=0):s++;if(o-=e.range.end.line-e.range.start.line,n.line+=o,t.line<e.range.end.line)throw new Error("unreachable code reached");t.line===e.range.end.line&&(n.character=s+(t.character-e.range.end.character))}return P.isEqual(n,e)||(i=!0),n}));return i?n.filter((e=>null!==e)):e}),[]);z("textDocument/didClose",(e=>{s((t=>t.filter((t=>t.uri!==e.textDocument.uri))))}),[]);const r=_(i.events.changedCursorLocation,(e=>e?{uri:e.uri,...e.range.start}:void 0)),a=n.useRef(0),l=n.useCallback((e=>{s((t=>$m(t,e)?t:(a.current+=1,[...t,{...e,key:a.current.toString()}])))}),[s]),c=n.useCallback((e=>{s((t=>$m(t,e)?t.filter((t=>!P.isEqual(t,e))):t))}),[s]);N(i.events.requestedAction,(e=>{r&&s((e=>$m(e,r)?e.filter((e=>!P.isEqual(e,r))):(a.current+=1,[...e,{...r,key:a.current.toString()}])))}),[r?.uri,r?.line,r?.character,s,a],"togglePin");const d=o.map((e=>({kind:"pin",onPin:c,pos:e,key:e.key})));return r&&d.push({kind:"cursor",onPin:l,key:"cursor"}),t("div",{children:[d.map((t=>e(Dm,{...t}))),!r&&e("p",{children:"Click somewhere in the Lean file to enable the infoview."})]})}class Pm{major;minor;patch;constructor(e){const t=e.split(".");if(2===t.length)this.major=parseInt(t[0]),this.minor=parseInt(t[1]),this.patch=0;else{if(3!==t.length)throw new Error(`cannot parse Lean server version '${e}'`);this.major=parseInt(t[0]),this.minor=parseInt(t[1]),this.patch=parseInt(t[2])}}}function Am(i){const o=n.useContext(D),s=_(o.events.changedInfoviewConfig)??c,[r,a]=q("$/lean/fileProgress",new Map,(async e=>t=>new Map(t).set(e.textDocument.uri,e.processing)),[]),l=_(o.events.changedCursorLocation,(e=>e?.uri));z("textDocument/didClose",(e=>{o.events.changedCursorLocation.current&&o.events.changedCursorLocation.current.uri===e.textDocument.uri&&o.events.changedCursorLocation.fire(void 0)}),[]);const d=_(o.events.serverRestarted,(e=>new Pm(e.serverInfo?.version??""))),h=_(o.events.serverStopped);let u;return u=d?t("div",h?{children:[e("p",{children:h.message}),e("p",{className:"error",children:h.reason})]}:{className:"ma1",children:[e(Om,{}),l&&e("div",{className:"mv2",children:e(gm,{uri:l})}),l&&e(wh,{className:"restart-file-button",onClick:e=>o.api.restartFile(l),title:"Restarts this file, rebuilding all of its outdated dependencies.",children:"Restart File"})]}):e("p",{children:"Waiting for Lean server to start..."}),e(I.Provider,{value:s,children:e(E.Provider,{value:d,children:e(J,{children:e(vm,{children:e(O.Provider,{value:r,children:u})})})})})}function Mm(t,i){const o={initialize:new Sh,gotServerNotification:new Sh,sentClientNotification:new Sh,serverRestarted:new Sh,serverStopped:new Sh,changedCursorLocation:new Sh,changedInfoviewConfig:new Sh,runTestScript:new Sh,requestedAction:new Sh,goToDefinition:new Sh},s={initialize:async e=>o.initialize.fire(e),gotServerNotification:async(e,t)=>{o.gotServerNotification.fire([e,t])},sentClientNotification:async(e,t)=>{o.sentClientNotification.fire([e,t])},serverRestarted:async e=>o.serverRestarted.fire(e),serverStopped:async e=>{o.serverStopped.fire(e)},changedCursorLocation:async e=>o.changedCursorLocation.fire(e),changedInfoviewConfig:async e=>o.changedInfoviewConfig.fire(e),requestedAction:async e=>o.requestedAction.fire(e,e.kind),goToDefinition:async e=>o.goToDefinition.fire(e,e),runTestScript:async e=>new Function(e)(),getInfoviewHtml:async()=>document.body.innerHTML},r=new Wi(t,o);o.initialize.on((e=>r.events.changedCursorLocation.fire(e)));return kh(i).render(e(n.StrictMode,{children:e(D.Provider,{value:r,children:e(Am,{})})})),s}function Lm({msg:o}){const s=n.useContext(ie),r=Q((()=>v(s,o,0)),[s,o]);return"resolved"===r.state?e(Ui,{fmt:r.value}):"loading"===r.state?e(i,{children:"..."}):t("div",{children:["Failed to display message:",e("span",{children:K(r.error).message})]})}export{P as DocumentPosition,km as DynamicComponent,Wi as EditorConnection,D as EditorContext,Nt as GoalLocation,_t as GoalsLocation,$i as InteractiveCode,y as InteractiveDiagnostics_infoToInteractive,v as InteractiveDiagnostics_msgToInteractive,S as InteractiveHypothesisBundle_nonAnonymousNames,Lm as InteractiveMessageData,d as LeanFileProgressKind,Ft as LocationsContext,ie as RpcContext,u as RpcErrorCode,h as RpcPtr,T as RpcSessions,Pm as ServerVersion,R as TaggedText_stripTags,E as VersionContext,k as Widget_getWidgetSource,w as Widget_getWidgets,c as defaultInfoviewConfig,x as getGoToLocation,m as getInteractiveDiagnostics,f as getInteractiveGoals,g as getInteractiveTermGoal,wm as importWidgetModule,p as isRpcError,b as lazyTraceChildrenToInteractive,K as mapRpcError,Mm as renderInfoview,Q as useAsync,Y as useAsyncPersistent,X as useAsyncWithTrigger,z as useClientNotificationEffect,j as useClientNotificationState,N as useEvent,_ as useEventResult,F as useServerNotificationEffect,q as useServerNotificationState};
|