@luzmo/analytics-components-kit 1.0.9-beta.9 → 1.2.1
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 +39 -3
- package/angular/README.md +40 -0
- package/angular/components/add-to-dashboard.ts +130 -0
- package/angular/components/ai-chat-empty-state.ts +105 -0
- package/angular/components/ai-chat.ts +464 -0
- package/angular/components/ai-interaction-textarea.ts +290 -0
- package/angular/components/data-field-level.ts +130 -0
- package/angular/components/data-field-panel.ts +256 -0
- package/angular/components/data-field.ts +130 -0
- package/angular/components/data-fields-select.ts +226 -0
- package/angular/components/dataset-icon.ts +83 -0
- package/angular/components/dataset-selector-list.ts +147 -0
- package/angular/components/dataset-selector-row.ts +205 -0
- package/angular/components/display-settings-binning.ts +92 -0
- package/angular/components/display-settings-datetime.ts +100 -0
- package/angular/components/display-settings-grand-totals.ts +92 -0
- package/angular/components/display-settings-numeric.ts +113 -0
- package/angular/components/display-settings-period-over-period.ts +121 -0
- package/angular/components/display-settings.ts +227 -0
- package/angular/components/filter-expression-picker.ts +168 -0
- package/angular/components/filter-item.ts +207 -0
- package/angular/components/filter-parameter-picker.ts +155 -0
- package/angular/components/filter-value-picker-datetime.ts +125 -0
- package/angular/components/filter-value-picker-hierarchy.ts +146 -0
- package/angular/components/filter-value-picker-numeric.ts +146 -0
- package/angular/components/filter-value-picker.ts +160 -0
- package/angular/components/filters.ts +248 -0
- package/angular/components/formula-editor.ts +229 -0
- package/angular/components/formula-field.ts +198 -0
- package/angular/components/formula.ts +170 -0
- package/angular/components/interactive-viz-item.ts +265 -0
- package/angular/components/item-grid-item-actions-menu.ts +123 -0
- package/angular/components/item-grid.ts +252 -0
- package/angular/components/item-option-action-button-group.ts +105 -0
- package/angular/components/item-option-color-palette-picker.ts +126 -0
- package/angular/components/item-option-color-picker.ts +161 -0
- package/angular/components/item-option-color-range.ts +195 -0
- package/angular/components/item-option-guidelines.ts +111 -0
- package/angular/components/item-option-multi-language-field.ts +133 -0
- package/angular/components/item-option-number-field.ts +161 -0
- package/angular/components/item-option-panel.ts +186 -0
- package/angular/components/item-option-picker.ts +120 -0
- package/angular/components/item-option-position-picker.ts +98 -0
- package/angular/components/item-option-positions-number-field.ts +140 -0
- package/angular/components/item-option-radio-button-group.ts +119 -0
- package/angular/components/item-option-slider.ts +163 -0
- package/angular/components/item-option-switch.ts +98 -0
- package/angular/components/item-option-text-field.ts +112 -0
- package/angular/components/item-option.ts +200 -0
- package/angular/components/item-slot-drop-panel.ts +236 -0
- package/angular/components/item-slot-drop.ts +231 -0
- package/angular/components/item-slot-picker-panel.ts +306 -0
- package/angular/components/item-slot-picker.ts +248 -0
- package/angular/components/slot-menu-list.ts +121 -0
- package/angular/components/slot-menu.ts +311 -0
- package/angular/esm/components/add-to-dashboard.d.ts +48 -0
- package/angular/esm/components/add-to-dashboard.js +129 -0
- package/angular/esm/components/ai-chat-empty-state.d.ts +41 -0
- package/angular/esm/components/ai-chat-empty-state.js +107 -0
- package/angular/esm/components/ai-chat.d.ts +154 -0
- package/angular/esm/components/ai-chat.js +477 -0
- package/angular/esm/components/ai-interaction-textarea.d.ts +108 -0
- package/angular/esm/components/ai-interaction-textarea.js +313 -0
- package/angular/esm/components/data-field-level.d.ts +50 -0
- package/angular/esm/components/data-field-level.js +129 -0
- package/angular/esm/components/data-field-panel.d.ts +86 -0
- package/angular/esm/components/data-field-panel.js +268 -0
- package/angular/esm/components/data-field.d.ts +50 -0
- package/angular/esm/components/data-field.js +129 -0
- package/angular/esm/components/data-fields-select.d.ts +87 -0
- package/angular/esm/components/data-fields-select.js +243 -0
- package/angular/esm/components/dataset-icon.d.ts +34 -0
- package/angular/esm/components/dataset-icon.js +86 -0
- package/angular/esm/components/dataset-selector-list.d.ts +56 -0
- package/angular/esm/components/dataset-selector-list.js +155 -0
- package/angular/esm/components/dataset-selector-row.d.ts +72 -0
- package/angular/esm/components/dataset-selector-row.js +205 -0
- package/angular/esm/components/display-settings-binning.d.ts +37 -0
- package/angular/esm/components/display-settings-binning.js +91 -0
- package/angular/esm/components/display-settings-datetime.d.ts +40 -0
- package/angular/esm/components/display-settings-datetime.js +99 -0
- package/angular/esm/components/display-settings-grand-totals.d.ts +37 -0
- package/angular/esm/components/display-settings-grand-totals.js +91 -0
- package/angular/esm/components/display-settings-numeric.d.ts +45 -0
- package/angular/esm/components/display-settings-numeric.js +115 -0
- package/angular/esm/components/display-settings-period-over-period.d.ts +50 -0
- package/angular/esm/components/display-settings-period-over-period.js +123 -0
- package/angular/esm/components/display-settings.d.ts +83 -0
- package/angular/esm/components/display-settings.js +231 -0
- package/angular/esm/components/filter-expression-picker.d.ts +64 -0
- package/angular/esm/components/filter-expression-picker.js +179 -0
- package/angular/esm/components/filter-item.d.ts +74 -0
- package/angular/esm/components/filter-item.js +222 -0
- package/angular/esm/components/filter-parameter-picker.d.ts +56 -0
- package/angular/esm/components/filter-parameter-picker.js +151 -0
- package/angular/esm/components/filter-value-picker-datetime.d.ts +47 -0
- package/angular/esm/components/filter-value-picker-datetime.js +131 -0
- package/angular/esm/components/filter-value-picker-hierarchy.d.ts +53 -0
- package/angular/esm/components/filter-value-picker-hierarchy.js +155 -0
- package/angular/esm/components/filter-value-picker-numeric.d.ts +53 -0
- package/angular/esm/components/filter-value-picker-numeric.js +155 -0
- package/angular/esm/components/filter-value-picker.d.ts +57 -0
- package/angular/esm/components/filter-value-picker.js +171 -0
- package/angular/esm/components/filters.d.ts +88 -0
- package/angular/esm/components/filters.js +259 -0
- package/angular/esm/components/formula-editor.d.ts +78 -0
- package/angular/esm/components/formula-editor.js +236 -0
- package/angular/esm/components/formula-field.d.ts +70 -0
- package/angular/esm/components/formula-field.js +209 -0
- package/angular/esm/components/formula.d.ts +60 -0
- package/angular/esm/components/formula.js +177 -0
- package/angular/esm/components/interactive-viz-item.d.ts +85 -0
- package/angular/esm/components/interactive-viz-item.js +250 -0
- package/angular/esm/components/item-grid-item-actions-menu.d.ts +47 -0
- package/angular/esm/components/item-grid-item-actions-menu.js +121 -0
- package/angular/esm/components/item-grid.d.ts +82 -0
- package/angular/esm/components/item-grid.js +251 -0
- package/angular/esm/components/item-option-action-button-group.d.ts +41 -0
- package/angular/esm/components/item-option-action-button-group.js +107 -0
- package/angular/esm/components/item-option-color-palette-picker.d.ts +48 -0
- package/angular/esm/components/item-option-color-palette-picker.js +131 -0
- package/angular/esm/components/item-option-color-picker.d.ts +58 -0
- package/angular/esm/components/item-option-color-picker.js +159 -0
- package/angular/esm/components/item-option-color-range.d.ts +73 -0
- package/angular/esm/components/item-option-color-range.js +199 -0
- package/angular/esm/components/item-option-guidelines.d.ts +41 -0
- package/angular/esm/components/item-option-guidelines.js +103 -0
- package/angular/esm/components/item-option-multi-language-field.d.ts +50 -0
- package/angular/esm/components/item-option-multi-language-field.js +139 -0
- package/angular/esm/components/item-option-number-field.d.ts +58 -0
- package/angular/esm/components/item-option-number-field.js +171 -0
- package/angular/esm/components/item-option-panel.d.ts +63 -0
- package/angular/esm/components/item-option-panel.js +181 -0
- package/angular/esm/components/item-option-picker.d.ts +46 -0
- package/angular/esm/components/item-option-picker.js +123 -0
- package/angular/esm/components/item-option-position-picker.d.ts +39 -0
- package/angular/esm/components/item-option-position-picker.js +99 -0
- package/angular/esm/components/item-option-positions-number-field.d.ts +54 -0
- package/angular/esm/components/item-option-positions-number-field.js +147 -0
- package/angular/esm/components/item-option-radio-button-group.d.ts +45 -0
- package/angular/esm/components/item-option-radio-button-group.js +123 -0
- package/angular/esm/components/item-option-slider.d.ts +55 -0
- package/angular/esm/components/item-option-slider.js +157 -0
- package/angular/esm/components/item-option-switch.d.ts +40 -0
- package/angular/esm/components/item-option-switch.js +99 -0
- package/angular/esm/components/item-option-text-field.d.ts +44 -0
- package/angular/esm/components/item-option-text-field.js +115 -0
- package/angular/esm/components/item-option.d.ts +67 -0
- package/angular/esm/components/item-option.js +197 -0
- package/angular/esm/components/item-slot-drop-panel.d.ts +82 -0
- package/angular/esm/components/item-slot-drop-panel.js +249 -0
- package/angular/esm/components/item-slot-drop.d.ts +77 -0
- package/angular/esm/components/item-slot-drop.js +227 -0
- package/angular/esm/components/item-slot-picker-panel.d.ts +99 -0
- package/angular/esm/components/item-slot-picker-panel.js +317 -0
- package/angular/esm/components/item-slot-picker.d.ts +88 -0
- package/angular/esm/components/item-slot-picker.js +267 -0
- package/angular/esm/components/slot-menu-list.d.ts +46 -0
- package/angular/esm/components/slot-menu-list.js +123 -0
- package/angular/esm/components/slot-menu.d.ts +107 -0
- package/angular/esm/components/slot-menu.js +308 -0
- package/angular/esm/index.d.ts +109 -0
- package/angular/esm/index.js +217 -0
- package/angular/index.ts +223 -0
- package/angular/package.json +44 -0
- package/angular/tsconfig.json +36 -0
- package/angular/type-fallbacks.d.ts +0 -0
- package/angular/utils/ai-prompt/attachments.d.ts +10 -0
- package/angular/utils/ai-prompt/dictation.d.ts +50 -0
- package/angular/utils/ai-prompt/image-upload.d.ts +12 -0
- package/angular/utils/ai-prompt/index.d.ts +6 -0
- package/angular/utils/ai-prompt/tests/attachments.test.d.ts +1 -0
- package/angular/utils/ai-prompt/tests/dictation.test.d.ts +1 -0
- package/angular/utils/ai-prompt/tests/image-upload.test.d.ts +1 -0
- package/angular/utils/base/base.d.ts +16 -0
- package/angular/utils/base/focus-visible.d.ts +29 -0
- package/angular/utils/base/focusable.d.ts +58 -0
- package/angular/utils/base/index.d.ts +5 -0
- package/angular/utils/base/localized-mixin.d.ts +22 -0
- package/angular/utils/base/sized-mixin.d.ts +17 -0
- package/angular/utils/color/color-palettes.d.ts +17 -0
- package/angular/utils/color/extrapolate-color.d.ts +1 -0
- package/angular/utils/create-lazy-loader.d.ts +5 -0
- package/angular/utils/data/load-data-fields-for-datasets.d.ts +22 -0
- package/angular/utils/data-broker/index.d.ts +281 -0
- package/angular/utils/data-broker/tests/data-broker.test.d.ts +1 -0
- package/angular/utils/data-field-types/calculate-data-field-icon.d.ts +12 -0
- package/angular/utils/data-field-types/default-acceptable-data-field-types.d.ts +1 -0
- package/angular/utils/data-field-types/tests/calculate-data-field-icon.test.d.ts +1 -0
- package/angular/utils/drag/draggable.d.ts +13 -0
- package/angular/utils/drag/pragmatic-element-adapter.d.ts +2 -0
- package/angular/utils/drag/tests/pragmatic-element-adapter.first-import.test.d.ts +1 -0
- package/angular/utils/drag/tests/pragmatic-element-adapter.test.d.ts +1 -0
- package/angular/utils/filters/expressions.d.ts +15 -0
- package/angular/utils/filters/filter-text.d.ts +64 -0
- package/angular/utils/filters/index.d.ts +2 -0
- package/angular/utils/filters/presentation.d.ts +4 -0
- package/angular/utils/filters/tests/filter-text.test.d.ts +1 -0
- package/angular/utils/formatter/calculate-duration.d.ts +2 -0
- package/angular/utils/formatter/decompose-numeric-format.d.ts +11 -0
- package/angular/utils/formatter/default-local-formats.d.ts +20 -0
- package/angular/utils/formatter/formats/cs.d.ts +20 -0
- package/angular/utils/formatter/formats/da.d.ts +20 -0
- package/angular/utils/formatter/formats/de.d.ts +21 -0
- package/angular/utils/formatter/formats/en-GB.d.ts +21 -0
- package/angular/utils/formatter/formats/en-US.d.ts +1 -0
- package/angular/utils/formatter/formats/en.d.ts +1 -0
- package/angular/utils/formatter/formats/es.d.ts +54 -0
- package/angular/utils/formatter/formats/fi.d.ts +20 -0
- package/angular/utils/formatter/formats/fr.d.ts +54 -0
- package/angular/utils/formatter/formats/he.d.ts +20 -0
- package/angular/utils/formatter/formats/hu.d.ts +20 -0
- package/angular/utils/formatter/formats/it.d.ts +54 -0
- package/angular/utils/formatter/formats/ja.d.ts +20 -0
- package/angular/utils/formatter/formats/ko.d.ts +20 -0
- package/angular/utils/formatter/formats/mk.d.ts +20 -0
- package/angular/utils/formatter/formats/nl.d.ts +21 -0
- package/angular/utils/formatter/formats/no.d.ts +21 -0
- package/angular/utils/formatter/formats/pl.d.ts +20 -0
- package/angular/utils/formatter/formats/pt.d.ts +20 -0
- package/angular/utils/formatter/formats/ru.d.ts +20 -0
- package/angular/utils/formatter/formats/sv.d.ts +20 -0
- package/angular/utils/formatter/formats/tr.d.ts +21 -0
- package/angular/utils/formatter/formats/zh-CN.d.ts +20 -0
- package/angular/utils/formatter/formats/zh-TW.d.ts +20 -0
- package/angular/utils/formatter/formatter.d.ts +9 -0
- package/angular/utils/formatter/get-dataset-name.d.ts +2 -0
- package/angular/utils/formatter/get-localized-name.d.ts +4 -0
- package/angular/utils/formatter/localize.d.ts +3 -0
- package/angular/utils/formatter/localized-template.d.ts +4 -0
- package/angular/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
- package/angular/utils/formatter/tests/calculate-duration.test.d.ts +1 -0
- package/angular/utils/formatter/tests/decompose-numeric-format.test.d.ts +1 -0
- package/angular/utils/formatter/tests/default-local-formats.test.d.ts +1 -0
- package/angular/utils/formatter/tests/formatter.test.d.ts +1 -0
- package/angular/utils/formatter/tests/get-localized-name.test.d.ts +1 -0
- package/angular/utils/formatter/tests/localize.test.d.ts +1 -0
- package/angular/utils/formatter/tests/localized-template.test.d.ts +1 -0
- package/angular/utils/formula/base/formula-base.d.ts +117 -0
- package/angular/utils/formula/base/formula-input-base.d.ts +62 -0
- package/angular/utils/formula/codemirror/actions.d.ts +47 -0
- package/angular/utils/formula/codemirror/drop-cursor.d.ts +15 -0
- package/angular/utils/formula/codemirror/icon-element.d.ts +7 -0
- package/angular/utils/formula/codemirror/parser.d.ts +16 -0
- package/angular/utils/formula/codemirror/tests/actions.test.d.ts +1 -0
- package/angular/utils/formula/codemirror/theme.d.ts +20 -0
- package/angular/utils/formula/codemirror/widget.d.ts +18 -0
- package/angular/utils/formula/config/aggregations.d.ts +9 -0
- package/angular/utils/formula/config/build-datasets.d.ts +10 -0
- package/angular/utils/formula/config/expression-helpers.d.ts +42 -0
- package/angular/utils/formula/config/functions.d.ts +3 -0
- package/angular/utils/formula/config/groupings.d.ts +9 -0
- package/angular/utils/formula/config/regex.d.ts +39 -0
- package/angular/utils/formula/config/resolve-column-presentation.d.ts +19 -0
- package/angular/utils/formula/config/tests/build-datasets.test.d.ts +1 -0
- package/angular/utils/formula/config/validate-expression.d.ts +19 -0
- package/angular/utils/formula/load-formula-codemirror.d.ts +4 -0
- package/angular/utils/formula/render-explanation-tooltip.d.ts +7 -0
- package/angular/utils/formula/store/formula-display-store.d.ts +93 -0
- package/angular/utils/formula/store/formula-editor-context.d.ts +8 -0
- package/angular/utils/formula/store/formula-editor-store.d.ts +46 -0
- package/angular/utils/formula/store/tests/formula-editor-store.test.d.ts +1 -0
- package/angular/utils/formula/tests/validate-expression.test.d.ts +1 -0
- package/angular/utils/get-css-variable.d.ts +1 -0
- package/angular/utils/index.d.ts +10 -0
- package/angular/utils/localize/set-locale.d.ts +7 -0
- package/angular/utils/map-tile-providers/index.d.ts +93 -0
- package/angular/utils/option-interaction/index.d.ts +2 -0
- package/angular/utils/option-interaction/is-same-option-value.d.ts +10 -0
- package/angular/utils/option-interaction/option-interaction-controller.d.ts +54 -0
- package/angular/utils/option-interaction/tests/option-interaction-controller.test.d.ts +1 -0
- package/angular/utils/set-nested-value.d.ts +6 -0
- package/angular/utils/slot-content/ad-hoc-slot-content.d.ts +7 -0
- package/angular/utils/slot-content/render-calculation-label.d.ts +7 -0
- package/angular/utils/slot-content/tests/ad-hoc-slot-content.test.d.ts +1 -0
- package/angular/utils/slot-state/slot-context.d.ts +4 -0
- package/angular/utils/slot-state/slot-store.d.ts +43 -0
- package/angular/utils/slot-state/tests/slot-store.test.d.ts +1 -0
- package/angular/utils/store/base-store.d.ts +167 -0
- package/angular/utils/store/dashboard-store.d.ts +49 -0
- package/angular/utils/store/index.d.ts +136 -0
- package/angular/utils/store/item-store.d.ts +33 -0
- package/angular/utils/store/store-registry.d.ts +170 -0
- package/angular/utils/store/tests/dashboard-store.test.d.ts +1 -0
- package/angular/utils/store/tests/item-store.test.d.ts +1 -0
- package/angular/utils/store/tests/store-base-history.test.d.ts +1 -0
- package/angular/utils/store/tests/store-base.test.d.ts +1 -0
- package/angular/utils/store/tests/store-registry.test.d.ts +1 -0
- package/angular/utils/store/types.d.ts +270 -0
- package/angular/utils/switch-item/index.d.ts +34 -0
- package/angular/utils/switch-item/slot-role-classification.d.ts +31 -0
- package/angular/utils/switch-item/stories/switch-item.stories.d.ts +17 -0
- package/angular/utils/switch-item/tests/slot-role-classification.test.d.ts +1 -0
- package/angular/utils/switch-item/tests/switch-item.test.d.ts +1 -0
- package/angular/utils/tests/create-lazy-loader.test.d.ts +1 -0
- package/angular/utils/tests/set-nested-value.test.d.ts +1 -0
- package/angular/utils/themes/bliss.d.ts +2 -0
- package/angular/utils/themes/classic-dark.d.ts +2 -0
- package/angular/utils/themes/classic.d.ts +2 -0
- package/angular/utils/themes/default-dark.d.ts +2 -0
- package/angular/utils/themes/default.d.ts +2 -0
- package/angular/utils/themes/index.d.ts +4 -0
- package/angular/utils/themes/orion.d.ts +2 -0
- package/angular/utils/themes/pinky.d.ts +2 -0
- package/angular/utils/themes/radiant.d.ts +2 -0
- package/angular/utils/themes/royale.d.ts +2 -0
- package/angular/utils/themes/seasonal.d.ts +2 -0
- package/angular/utils/themes/urban.d.ts +2 -0
- package/angular/utils/themes/vivid.d.ts +2 -0
- package/angular/utils/time/formats.const.d.ts +4 -0
- package/angular/utils/time/period-over-period-condition.const.d.ts +8 -0
- package/angular/utils/time/periods.const.d.ts +15 -0
- package/angular/utils/timezone/datetime-timezone.d.ts +25 -0
- package/angular/utils/timezone/tests/datetime-timezone.test.d.ts +1 -0
- package/angular/utils/transformations/convert-data-field-to-slot-content.d.ts +9 -0
- package/angular/utils/transformations/convert-datasets-to-data-fields.d.ts +30 -0
- package/angular/utils/transformations/tests/convert-data-field-to-slot-content.test.d.ts +1 -0
- package/angular/utils/transformations/tests/convert-datasets-to-data-fields.test.d.ts +1 -0
- package/angular/utils/types/tests/type-check.test.d.ts +1 -0
- package/angular/utils/types/type-check.d.ts +28 -0
- package/components/ad-hoc-slot-content-DWUxMq1x.js +28 -0
- package/components/ad-hoc-slot-content-DsRsJzsY.cjs +20 -0
- package/components/add-to-dashboard/index.cjs +1 -1
- package/components/add-to-dashboard/index.js +1 -2
- package/components/add-to-dashboard-NcVHlqrc.js +796 -0
- package/components/add-to-dashboard-NwsCPIlg.cjs +166 -0
- package/components/ai-chat/ai-chat-events.d.ts +5 -1
- package/components/ai-chat/ai-chat-request.d.ts +1 -1
- package/components/ai-chat/ai-chat.d.ts +37 -3
- package/components/ai-chat/empty-state/ai-chat-empty-state.d.ts +1 -1
- package/components/ai-chat/helpers/assistant-message-feedback.d.ts +26 -0
- package/components/ai-chat/helpers/elicitation-template.d.ts +1 -1
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.d.ts +3 -3
- package/components/ai-chat/index.js +2 -2
- package/components/ai-chat/session/ai-chat-session.d.ts +8 -1
- package/components/ai-chat/stream/chunk-extractors.d.ts +8 -0
- package/components/ai-chat/stream/index.d.ts +1 -1
- package/components/ai-chat/stream/types.d.ts +6 -0
- package/components/ai-chat-BNcSadGI.cjs +393 -0
- package/components/ai-chat-CL894viH.js +4371 -0
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -2
- package/components/ai-interaction-textarea-BmvVVCmL.cjs +101 -0
- package/components/ai-interaction-textarea-CnQ2FBc7.js +797 -0
- package/components/area-chart-options.config-D99tvt_H.cjs +20 -0
- package/components/area-chart-options.config-Dnw8v2CA.js +218 -0
- package/components/area-chart-options.de-D5Wto0ja.cjs +20 -0
- package/components/area-chart-options.de-DXjvU5SP.js +94 -0
- package/components/area-chart-options.en-C97TC7i-.js +94 -0
- package/components/area-chart-options.en-CrffNamW.cjs +20 -0
- package/components/area-chart-options.es-BPpe9WGc.cjs +20 -0
- package/components/area-chart-options.es-BRZqqMoH.js +94 -0
- package/components/area-chart-options.fr-CdlaMfpz.cjs +20 -0
- package/components/area-chart-options.fr-DdxaNKyG.js +94 -0
- package/components/area-chart-options.nl-C7RTsytw.cjs +20 -0
- package/components/area-chart-options.nl-COBLkBRQ.js +94 -0
- package/components/area-chart-positioning.config-BwEs73dl.cjs +20 -0
- package/components/area-chart-positioning.config-ygE3-JQW.js +54 -0
- package/components/area-chart-slots.config-C-NPoK3J.cjs +20 -0
- package/components/area-chart-slots.config-D05HNoJK.js +54 -0
- package/components/axis-options.config-Cs5ItswD.js +269 -0
- package/components/axis-options.config-Dg9pczlQ.cjs +20 -0
- package/components/axis-options.i18n-B4Oq86I1.cjs +20 -0
- package/components/axis-options.i18n-Bu6vtdMv.js +485 -0
- package/components/bar-chart-options.config-BQ-PbucR.cjs +20 -0
- package/components/bar-chart-options.config-DHO8grQN.js +265 -0
- package/components/bar-chart-options.de-CP33NpEm.js +110 -0
- package/components/bar-chart-options.de-D7Aam6Mv.cjs +20 -0
- package/components/bar-chart-options.en-Bz116FHK.js +110 -0
- package/components/bar-chart-options.en-CkdOHM9S.cjs +20 -0
- package/components/bar-chart-options.es-C3SZOSiN.cjs +20 -0
- package/components/bar-chart-options.es-CXu-5of-.js +110 -0
- package/components/bar-chart-options.fr-aVs2K5Qh.cjs +20 -0
- package/components/bar-chart-options.fr-m4kyuObV.js +110 -0
- package/components/bar-chart-options.nl-BoGYJH70.cjs +20 -0
- package/components/bar-chart-options.nl-IYu6IncY.js +110 -0
- package/components/bar-chart-positioning.config-CPdIIPp0.cjs +20 -0
- package/components/bar-chart-positioning.config-GjqSe7CO.js +58 -0
- package/components/bar-chart-slots.config-AkSBrmIW.js +49 -0
- package/components/bar-chart-slots.config-CHR8QVRY.cjs +20 -0
- package/components/base-CGDNY_7v.cjs +20 -0
- package/components/base-rAte-QzM.js +240 -0
- package/components/base-store-D3whjduR.cjs +20 -0
- package/components/base-store-DQYj8A1W.js +153 -0
- package/components/bliss-BEt3SIfb.js +74 -0
- package/components/box-plot-options.config-BcGisybi.cjs +20 -0
- package/components/box-plot-options.config-BgiiwSrU.js +351 -0
- package/components/box-plot-options.de-BNdJuZsx.js +107 -0
- package/components/box-plot-options.de-CJ5uTyj4.cjs +20 -0
- package/components/box-plot-options.en-CnmnMRfg.js +107 -0
- package/components/box-plot-options.en-D91y5Yn2.cjs +20 -0
- package/components/box-plot-options.es-B6RVPU6K.js +107 -0
- package/components/box-plot-options.es-BE_gbUfY.cjs +20 -0
- package/components/box-plot-options.fr-CQVriCXK.js +107 -0
- package/components/box-plot-options.fr-w8w9Ulrk.cjs +20 -0
- package/components/box-plot-options.nl-Dl6tln-c.cjs +20 -0
- package/components/box-plot-options.nl-bHdxhoY1.js +107 -0
- package/components/box-plot-positioning.config-DDUgau2U.js +47 -0
- package/components/box-plot-positioning.config-mSIgw923.cjs +20 -0
- package/components/box-plot-slots.config-3bkXggok.cjs +20 -0
- package/components/box-plot-slots.config-DGx5e4nS.js +39 -0
- package/components/bubble-chart-options.config-DMk8Yjfk.cjs +20 -0
- package/components/bubble-chart-options.config-UM9w5tBs.js +141 -0
- package/components/bubble-chart-options.de-B-CE9HH_.js +48 -0
- package/components/bubble-chart-options.en-Dz03_J0z.js +48 -0
- package/components/bubble-chart-options.es-F1mNRXZq.js +48 -0
- package/components/bubble-chart-options.fr-B8lDK-z9.js +48 -0
- package/components/bubble-chart-options.nl-Bg5UEsxM.js +48 -0
- package/components/bubble-chart-positioning.config-C3UubNLh.js +54 -0
- package/components/bubble-chart-positioning.config-CuOxvXYf.cjs +20 -0
- package/components/bubble-chart-slots.config-BHB8xqfy.js +46 -0
- package/components/bubble-chart-slots.config-DI8-pPaE.cjs +20 -0
- package/components/bullet-chart-options.config-D9HklLUI.js +94 -0
- package/components/bullet-chart-options.config-DUAnmPGW.cjs +20 -0
- package/components/bullet-chart-options.de-C6HTRMYV.cjs +20 -0
- package/components/bullet-chart-options.de-yq4D8cLz.js +46 -0
- package/components/bullet-chart-options.en-C2MDX5A3.cjs +20 -0
- package/components/bullet-chart-options.en-CwZVlb8N.js +46 -0
- package/components/bullet-chart-options.es-CGqpJxSU.cjs +20 -0
- package/components/bullet-chart-options.es-DgyTWiW3.js +46 -0
- package/components/bullet-chart-options.fr-BFtQlQrs.cjs +20 -0
- package/components/bullet-chart-options.fr-BfR1KSqo.js +46 -0
- package/components/bullet-chart-options.nl-BaZDLnDS.cjs +20 -0
- package/components/bullet-chart-options.nl-CkCZ8-Tq.js +46 -0
- package/components/bullet-chart-positioning.config-BuFhsRMP.js +55 -0
- package/components/bullet-chart-positioning.config-DB1Fmx1d.cjs +20 -0
- package/components/bullet-chart-slots.config-BG6XKLJg.cjs +20 -0
- package/components/bullet-chart-slots.config-ujoj2rwb.js +45 -0
- package/components/calculate-data-field-icon-BrFZHlNR.js +148 -0
- package/components/chart-helpers-Dng_LGfq.js +249 -0
- package/components/choropleth-map-options.config-Blu0Z2tR.js +351 -0
- package/components/choropleth-map-options.config-DwFJ00CS.cjs +20 -0
- package/components/choropleth-map-options.de-CjnC-9AW.js +71 -0
- package/components/choropleth-map-options.en-DKJmimPI.js +71 -0
- package/components/choropleth-map-options.es-BWw823D1.js +71 -0
- package/components/choropleth-map-options.fr-B6P5TF2j.js +71 -0
- package/components/choropleth-map-options.nl-JZsLCT82.js +71 -0
- package/components/choropleth-map-positioning.config-6PsCyhsn.js +54 -0
- package/components/choropleth-map-positioning.config-fc5IcNoB.cjs +20 -0
- package/components/choropleth-map-slots.config-C7e7ZKYl.js +52 -0
- package/components/choropleth-map-slots.config-DQUaQxxY.cjs +20 -0
- package/components/circle-pack-chart-options.config-DMNMYWZX.cjs +20 -0
- package/components/circle-pack-chart-options.config-DQs-uitJ.js +59 -0
- package/components/circle-pack-chart-options.de-C0s0u4cP.js +30 -0
- package/components/circle-pack-chart-options.en-1SlxJ8D2.js +30 -0
- package/components/circle-pack-chart-options.es-n3EDSGVP.js +30 -0
- package/components/circle-pack-chart-options.fr-ZwBi9b32.js +30 -0
- package/components/circle-pack-chart-options.nl-DtTJ6Vaj.js +30 -0
- package/components/circle-pack-chart-positioning.config-DRHNE10H.js +47 -0
- package/components/circle-pack-chart-positioning.config-DvQfzJ_Z.cjs +20 -0
- package/components/circle-pack-chart-slots.config-37GyNjk7.cjs +20 -0
- package/components/circle-pack-chart-slots.config-CA-fJ_Q1.js +37 -0
- package/components/circular-gauge-options.config-B4Hk-AXi.cjs +20 -0
- package/components/circular-gauge-options.config-CnWE16oE.js +192 -0
- package/components/circular-gauge-options.de-D0pLBMXo.js +56 -0
- package/components/circular-gauge-options.en-PYvfXZQL.js +56 -0
- package/components/circular-gauge-options.es-DfoNDSPk.js +56 -0
- package/components/circular-gauge-options.fr-DbmqrGCc.js +56 -0
- package/components/circular-gauge-options.nl-iHEN3ip8.js +56 -0
- package/components/circular-gauge-positioning.config-CGOX-Vyn.js +47 -0
- package/components/circular-gauge-positioning.config-OX1-mPls.cjs +20 -0
- package/components/circular-gauge-slots.config-L-NZc7MY.cjs +20 -0
- package/components/circular-gauge-slots.config-UYWufX3Z.js +38 -0
- package/components/classic-B9EbWt-B.js +81 -0
- package/components/classic-dark-BRDXw-Ec.js +72 -0
- package/components/color-CQcCK-_O.js +3810 -0
- package/components/color-DKdzPrQX.cjs +20 -0
- package/components/color-palettes-B194TZ0a.js +1473 -0
- package/components/color-range-utils-CgwRGUkg.js +62 -0
- package/components/color-range-utils-D8uygiMe.cjs +20 -0
- package/components/column-chart-options.config-BYDJTVx6.js +264 -0
- package/components/column-chart-options.config-CyD8V7j4.cjs +20 -0
- package/components/column-chart-options.de-BOp0fmxj.cjs +20 -0
- package/components/column-chart-options.de-BPRcyVXO.js +110 -0
- package/components/column-chart-options.en-BmtcG_3n.js +110 -0
- package/components/column-chart-options.en-CkdOHM9S.cjs +20 -0
- package/components/column-chart-options.es-BNDjc5Cj.js +110 -0
- package/components/column-chart-options.es-BiPP9jKx.cjs +20 -0
- package/components/column-chart-options.fr-Cyz4XUm_.js +110 -0
- package/components/column-chart-options.fr-aVs2K5Qh.cjs +20 -0
- package/components/column-chart-options.nl-BoGYJH70.cjs +20 -0
- package/components/column-chart-options.nl-Dci9pl7S.js +110 -0
- package/components/column-chart-positioning.config-BVYa1A42.js +54 -0
- package/components/column-chart-positioning.config-NbQbSa8P.cjs +20 -0
- package/components/column-chart-slots.config-h3Kwc61j.cjs +20 -0
- package/components/column-chart-slots.config-i2QvhELq.js +49 -0
- package/components/combination-chart-options.config-B3zsSUFx.js +156 -0
- package/components/combination-chart-options.config-Cg3ZEKMe.cjs +20 -0
- package/components/combination-chart-options.de-DycthBF_.cjs +20 -0
- package/components/combination-chart-options.de-LcfaqPiY.js +73 -0
- package/components/combination-chart-options.en-BIosKCWf.cjs +20 -0
- package/components/combination-chart-options.en-CKTmecmz.js +73 -0
- package/components/combination-chart-options.es-BZvT5fH1.js +73 -0
- package/components/combination-chart-options.es-CZ6uoD-U.cjs +20 -0
- package/components/combination-chart-options.fr-B2NH27P6.cjs +20 -0
- package/components/combination-chart-options.fr-niQosk62.js +73 -0
- package/components/combination-chart-options.nl-B-vNeGxb.cjs +20 -0
- package/components/combination-chart-options.nl-Co7JI3vH.js +73 -0
- package/components/combination-chart-positioning.config-B7DtfzCV.cjs +20 -0
- package/components/combination-chart-positioning.config-yHAgveni.js +47 -0
- package/components/combination-chart-slots.config-CxkpKksB.js +42 -0
- package/components/combination-chart-slots.config-DV6RMdjE.cjs +20 -0
- package/components/conditional-number-options.config-CsEhIU-T.cjs +20 -0
- package/components/conditional-number-options.config-DObu2Erh.js +209 -0
- package/components/conditional-number-options.de-BEYC3Tkn.js +59 -0
- package/components/conditional-number-options.en-CobRwTMJ.js +59 -0
- package/components/conditional-number-options.es-CURPGt9l.js +59 -0
- package/components/conditional-number-options.fr-DbiJCo-x.js +59 -0
- package/components/conditional-number-options.nl-DRbK4wGL.js +59 -0
- package/components/conditional-number-positioning.config-BZS99jTT.cjs +20 -0
- package/components/conditional-number-positioning.config-DhixJEpv.js +47 -0
- package/components/conditional-number-slots.config-CggROf5Y.js +38 -0
- package/components/conditional-number-slots.config-Opfq5oAT.cjs +20 -0
- package/components/convert-datasets-to-data-fields-DZJstVS2.js +67 -0
- package/components/create-lazy-loader-BFqDG_WK.js +30 -0
- package/components/cs-OL9Kdu8F.js +125 -0
- package/components/da-B0rljMwE.js +125 -0
- package/components/data-broker-C1Iz71TN.js +1675 -0
- package/components/data-broker-DCghLjhq.cjs +20 -0
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +1 -2
- package/components/data-field-B9466d0w.js +120 -0
- package/components/data-field-BORlpZZk.cjs +54 -0
- package/components/data-field-level/index.cjs +1 -1
- package/components/data-field-level/index.js +1 -2
- package/components/data-field-level-DOEYwcvM.cjs +55 -0
- package/components/data-field-level-GrX6yhPV.js +243 -0
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +1 -2
- package/components/data-field-panel-BedJ9V2r.js +373 -0
- package/components/data-field-panel-DmMkAYAz.cjs +87 -0
- package/components/data-fields-select/data-fields-select.d.ts +3 -1
- package/components/data-fields-select/index.cjs +1 -1
- package/components/data-fields-select/index.js +1 -2
- package/components/data-fields-select-BOqmoE7n.cjs +43 -0
- package/components/data-fields-select-af1HZLWS.js +291 -0
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -2
- package/components/dataset-icon-CmgJeTKm.cjs +62 -0
- package/components/dataset-icon-DAeC0MBI.js +109 -0
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +1 -2
- package/components/dataset-selector-list-BzI8n_dB.js +319 -0
- package/components/dataset-selector-list-CmZaj20L.cjs +75 -0
- package/components/dataset-selector-row/index.cjs +1 -1
- package/components/dataset-selector-row/index.js +1 -2
- package/components/dataset-selector-row-D_7iBmdm.js +442 -0
- package/components/dataset-selector-row-mOGioXLM.cjs +104 -0
- package/components/date-comparison-filter-options.config-BAhHCVlo.js +125 -0
- package/components/date-comparison-filter-options.config-vCXOhzkp.cjs +20 -0
- package/components/date-comparison-filter-options.de-CHAepese.js +54 -0
- package/components/date-comparison-filter-options.en-GnqPLNOy.js +54 -0
- package/components/date-comparison-filter-options.es-CYGgumPR.js +54 -0
- package/components/date-comparison-filter-options.fr-CBR4gt5a.js +54 -0
- package/components/date-comparison-filter-options.nl-BleWGdSU.js +54 -0
- package/components/date-comparison-filter-positioning.config-DYLCdy0p.js +37 -0
- package/components/date-comparison-filter-slots.config-ADyQbpVL.js +36 -0
- package/components/date-comparison-filter-slots.config-BdvwoigA.cjs +20 -0
- package/components/date-filter-options.config-BrfWBIvy.js +117 -0
- package/components/date-filter-options.config-D_SMC4NH.cjs +20 -0
- package/components/date-filter-options.de-C0_La4e1.js +50 -0
- package/components/date-filter-options.en-D61ub6Of.js +50 -0
- package/components/date-filter-options.es-DIkmpKCh.js +50 -0
- package/components/date-filter-options.fr-DV41ThRu.js +50 -0
- package/components/date-filter-options.nl-BitqNpNd.js +50 -0
- package/components/date-filter-positioning.config-Bm6cN9d0.js +37 -0
- package/components/date-filter-slots.config-dk86EThT.js +36 -0
- package/components/date-filter-slots.config-hsRo3Wiz.cjs +20 -0
- package/components/de-AOtjGNGZ.js +599 -0
- package/components/de-B7zGHvA7.js +137 -0
- package/components/de-KvAhLsm8.cjs +20 -0
- package/components/decompose-numeric-format-BoLX-V2j.js +35 -0
- package/components/decorate-B2TzfnLZ.js +27 -0
- package/components/default-C9MysWm4.js +77 -0
- package/components/default-acceptable-data-field-types-BNgYdork.js +52 -0
- package/components/default-acceptable-data-field-types-BUNRNPPB.cjs +20 -0
- package/components/default-dark-1RNfdcoq.js +77 -0
- package/components/defineProperty-DIhE-wKn.js +54 -0
- package/components/defineProperty-X1c4tIPD.cjs +20 -0
- package/components/display-settings/display-settings.d.ts +2 -2
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -2
- package/components/display-settings-DaZ3CiKB.cjs +143 -0
- package/components/display-settings-Qwp9oJo6.js +312 -0
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +1 -2
- package/components/display-settings-binning-D5zhoC7D.cjs +56 -0
- package/components/display-settings-binning-IPVCvx8a.js +109 -0
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +1 -2
- package/components/display-settings-datetime-DgBBSYfC.js +412 -0
- package/components/display-settings-datetime-t70VEfHe.cjs +217 -0
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +1 -2
- package/components/display-settings-grand-totals-AFtKeeeG.js +88 -0
- package/components/display-settings-grand-totals-C_Fzk7oV.cjs +44 -0
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +1 -2
- package/components/display-settings-numeric-BF8BA5MH.cjs +190 -0
- package/components/display-settings-numeric-DeuXT1UR.js +478 -0
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +2 -2
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +1 -2
- package/components/display-settings-period-over-period-B8Ne3lq-.cjs +227 -0
- package/components/display-settings-period-over-period-CzxnyVF7.js +441 -0
- package/components/donut-chart-options.config-B2vxfMyh.js +225 -0
- package/components/donut-chart-options.config-DX-spmaZ.cjs +20 -0
- package/components/donut-chart-options.de-AXRfsiXW.cjs +20 -0
- package/components/donut-chart-options.de-DgNmBJiQ.js +85 -0
- package/components/donut-chart-options.en-BXwxTVpB.js +85 -0
- package/components/donut-chart-options.en-aZqu2oEV.cjs +20 -0
- package/components/donut-chart-options.es-7WgxuaDe.cjs +20 -0
- package/components/donut-chart-options.es-DW_q5HeE.js +85 -0
- package/components/donut-chart-options.fr-C0Z8xEyF.cjs +20 -0
- package/components/donut-chart-options.fr-QU3pGELZ.js +85 -0
- package/components/donut-chart-options.nl-D_cgYVAQ.js +85 -0
- package/components/donut-chart-options.nl-aKVLbRJY.cjs +20 -0
- package/components/donut-chart-positioning.config-Bu1jZwtJ.cjs +20 -0
- package/components/donut-chart-positioning.config-C0jkFWni.js +47 -0
- package/components/donut-chart-slots.config-MP-ACaLN.js +38 -0
- package/components/donut-chart-slots.config-yCDWS8AP.cjs +20 -0
- package/components/dropdown-filter-options.config-B2S5I7IG.js +152 -0
- package/components/dropdown-filter-options.config-FjrC4F1D.cjs +20 -0
- package/components/dropdown-filter-options.de-AEVNdD6Z.js +53 -0
- package/components/dropdown-filter-options.en-louYVeNr.js +53 -0
- package/components/dropdown-filter-options.es-Cp89jwkQ.js +53 -0
- package/components/dropdown-filter-options.fr-g_Sk9N4G.js +53 -0
- package/components/dropdown-filter-options.nl-DZALlawB.js +53 -0
- package/components/dropdown-filter-positioning.config-B7OQwWln.js +37 -0
- package/components/dropdown-filter-slots.config-awL8-LA_.js +37 -0
- package/components/dropdown-filter-slots.config-kDbB7STx.cjs +20 -0
- package/components/en-C9bDcBWX.cjs +20 -0
- package/components/en-CTE7umbs.js +20 -0
- package/components/en-GB-DFky6j2B.js +27 -0
- package/components/en-GB-DVtn5f2X.cjs +20 -0
- package/components/en-US-C9bDcBWX.cjs +20 -0
- package/components/en-US-CTE7umbs.js +20 -0
- package/components/es-2wpxXQjZ.js +330 -0
- package/components/es-CYhv03uu.js +599 -0
- package/components/es-DVISHTAz.cjs +20 -0
- package/components/evolution-number-options.config-B5qxlpwU.cjs +20 -0
- package/components/evolution-number-options.config-BBWPkY_K.js +229 -0
- package/components/evolution-number-options.de-Cnx_5hf-.js +75 -0
- package/components/evolution-number-options.de-va_ypOy6.cjs +20 -0
- package/components/evolution-number-options.en-Beo5xLX4.js +75 -0
- package/components/evolution-number-options.en-CtAX9A-5.cjs +20 -0
- package/components/evolution-number-options.es-BSOmGeQs.js +75 -0
- package/components/evolution-number-options.es-CCkbdLdF.cjs +20 -0
- package/components/evolution-number-options.fr-BQhExQ6b.js +75 -0
- package/components/evolution-number-options.fr-QIK5EXQs.cjs +20 -0
- package/components/evolution-number-options.nl-CwUSSlVi.cjs +20 -0
- package/components/evolution-number-options.nl-D10AEaNk.js +75 -0
- package/components/evolution-number-positioning.config-DD8HBFtv.js +47 -0
- package/components/evolution-number-positioning.config-DbH1-ODd.cjs +20 -0
- package/components/evolution-number-slots.config-B95BRQY1.js +36 -0
- package/components/evolution-number-slots.config-Cte42hyT.cjs +20 -0
- package/components/fi-BXIEpAkN.js +125 -0
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -2
- package/components/filter-expression-picker-Cc3xfiGT.js +432 -0
- package/components/filter-expression-picker-DDSI9bYq.cjs +40 -0
- package/components/filter-item/filter-item.d.ts +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +1 -2
- package/components/filter-item-DQNbp7Qn.cjs +111 -0
- package/components/filter-item-QJ3sDlmG.js +792 -0
- package/components/filter-parameter-picker/index.cjs +1 -1
- package/components/filter-parameter-picker/index.js +1 -2
- package/components/filter-parameter-picker-C8qwIo_H.js +365 -0
- package/components/filter-parameter-picker-DjQVFIfg.cjs +124 -0
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -2
- package/components/filter-value-picker-CMNxLzj7.cjs +69 -0
- package/components/filter-value-picker-DIYyMymr.js +168 -0
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +1 -2
- package/components/filter-value-picker-datetime-BVDQ-og5.cjs +51 -0
- package/components/filter-value-picker-datetime-DKblyQrs.js +158 -0
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -2
- package/components/filter-value-picker-hierarchy-CXPC_4MU.cjs +54 -0
- package/components/filter-value-picker-hierarchy-IswtY6Qa.js +311 -0
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +1 -2
- package/components/filter-value-picker-numeric-C7_-Fpol.cjs +54 -0
- package/components/filter-value-picker-numeric-DlFnGZ2O.js +236 -0
- package/components/filters/filters.d.ts +11 -0
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -2
- package/components/filters-BPbPFOu5.cjs +187 -0
- package/components/filters-CxIzuI5q.js +927 -0
- package/components/formatter-D_hJ1XXN.cjs +20 -0
- package/components/formatter-u-RIfSi3.js +1441 -0
- package/components/formula/formula.d.ts +2 -2
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -2
- package/components/formula-CXrr9wJZ.cjs +45 -0
- package/components/formula-WqOlEQ5o.js +130 -0
- package/components/formula-codemirror/formula-codemirror.d.ts +2 -2
- package/components/formula-codemirror/pills/formula-aggregation/formula-aggregation.d.ts +2 -2
- package/components/formula-codemirror/pills/formula-empty-argument-pill/formula-empty-argument-pill.d.ts +2 -2
- package/components/formula-codemirror/pills/formula-include-exclude-panel.d.ts +1 -1
- package/components/formula-codemirror-BTYlGSxE.cjs +215 -0
- package/components/formula-codemirror-bpEb3M2G.js +12029 -0
- package/components/formula-display-store-D7fzKNfW.cjs +20 -0
- package/components/formula-display-store-QU-B6xp9.js +1070 -0
- package/components/formula-editor/formula-aggregations-list.d.ts +2 -2
- package/components/formula-editor/formula-datasets-list.d.ts +2 -2
- package/components/formula-editor/formula-description.d.ts +1 -1
- package/components/formula-editor/formula-editor.d.ts +1 -1
- package/components/formula-editor/formula-functions-list.d.ts +2 -2
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.d.ts +3 -3
- package/components/formula-editor/index.js +3 -3
- package/components/formula-editor-BbyDf0vM.js +670 -0
- package/components/formula-editor-D_NRhjUI.cjs +224 -0
- package/components/formula-field/formula-field.d.ts +1 -1
- package/components/formula-field/index.cjs +1 -1
- package/components/formula-field/index.js +1 -2
- package/components/formula-field-BT9K_W6Q.js +36 -0
- package/components/formula-field-DSSpI8LB.cjs +20 -0
- package/components/formula-input-base-BoWiH97v.cjs +49 -0
- package/components/formula-input-base-CQc1OU9G.js +235 -0
- package/components/fr-BCxcMVQV.cjs +20 -0
- package/components/fr-BmrdQkkf.js +330 -0
- package/components/fr-DKAoGI_6.js +599 -0
- package/components/funnel-chart-options.config-CKp94nx7.cjs +20 -0
- package/components/funnel-chart-options.config-W83a8ukL.js +219 -0
- package/components/funnel-chart-options.de-B2f_xxvV.cjs +20 -0
- package/components/funnel-chart-options.de-CLMiAr0m.js +76 -0
- package/components/funnel-chart-options.en-Cdvkged9.cjs +20 -0
- package/components/funnel-chart-options.en-Pu8yU7Yz.js +76 -0
- package/components/funnel-chart-options.es-BPjGIJ7s.js +76 -0
- package/components/funnel-chart-options.es-CrAp7hOK.cjs +20 -0
- package/components/funnel-chart-options.fr-0RxiqeZg.cjs +20 -0
- package/components/funnel-chart-options.fr-CtWjGa4q.js +76 -0
- package/components/funnel-chart-options.nl-2TPEy_CB.js +76 -0
- package/components/funnel-chart-options.nl-r_wRg5qR.cjs +20 -0
- package/components/funnel-chart-positioning.config-Dbex7egf.js +47 -0
- package/components/funnel-chart-positioning.config-Dx9E5eiW.cjs +20 -0
- package/components/funnel-chart-slots.config-BtQ1-r95.js +42 -0
- package/components/funnel-chart-slots.config-C6BS2z-H.cjs +20 -0
- package/components/get-css-variable-ClRBOKeI.cjs +20 -0
- package/components/get-css-variable-Cnzvg4uu.js +61 -0
- package/components/get-dataset-name-BArAzBu2.js +30 -0
- package/components/get-dataset-name-C3Sc0hZ0.cjs +20 -0
- package/components/grid-core-17um9vkU.cjs +68 -0
- package/components/grid-core-BAZu7mfE.js +4464 -0
- package/components/grid-core.cjs +20 -0
- package/components/grid-core.js +20 -0
- package/components/groupings-DMWmtE5F.cjs +20 -0
- package/components/groupings-DXJS4XIU.js +51 -0
- package/components/guidelines-options.config-DVZrOa3v.js +47 -0
- package/components/he-ndbttrR_.js +125 -0
- package/components/heat-map-options.config-BQkhkLPb.js +225 -0
- package/components/heat-map-options.config-DjQkB039.cjs +20 -0
- package/components/heat-map-options.de-2WGKE1uj.js +74 -0
- package/components/heat-map-options.en-BzycxyHN.js +74 -0
- package/components/heat-map-options.es-B2m_je_2.js +74 -0
- package/components/heat-map-options.fr-DLkEEMp-.js +74 -0
- package/components/heat-map-options.nl-CYxHV_cw.js +74 -0
- package/components/heat-map-positioning.config-Bzg0DG60.cjs +20 -0
- package/components/heat-map-positioning.config-D4T7PQzN.js +47 -0
- package/components/heat-map-slots.config-BFZuGyAK.cjs +20 -0
- package/components/heat-map-slots.config-Cd6J4Q33.js +36 -0
- package/components/heat-table-options.config-CMWWTeyo.js +276 -0
- package/components/heat-table-options.config-D21xtaIk.cjs +20 -0
- package/components/heat-table-options.de-BjW2r5Di.js +113 -0
- package/components/heat-table-options.de-Br9DbeCp.cjs +20 -0
- package/components/heat-table-options.en-CNQyVmPW.js +113 -0
- package/components/heat-table-options.en-Cdn-xUSD.cjs +20 -0
- package/components/heat-table-options.es-DM03r8u7.js +113 -0
- package/components/heat-table-options.es-Dkv8Q0Gi.cjs +20 -0
- package/components/heat-table-options.fr-PKUURBoA.js +113 -0
- package/components/heat-table-options.fr-uLTRU2oE.cjs +20 -0
- package/components/heat-table-options.nl-BCVLfuQK.js +113 -0
- package/components/heat-table-options.nl-DaYIbnqr.cjs +20 -0
- package/components/heat-table-positioning.config-Cj6LlLe3.cjs +20 -0
- package/components/heat-table-positioning.config-DVQiJfC4.js +54 -0
- package/components/heat-table-slots.config-52DDtG_7.js +48 -0
- package/components/heat-table-slots.config-C_JKGLP3.cjs +20 -0
- package/components/helpers-CYA1cJcv.js +67 -0
- package/components/hexbin-map-options.config-DUbhSv0B.js +277 -0
- package/components/hexbin-map-options.config-DZLLOr7D.cjs +20 -0
- package/components/hexbin-map-options.de-BecXyFba.js +107 -0
- package/components/hexbin-map-options.en-C2u4_34W.js +107 -0
- package/components/hexbin-map-options.es-Cef5NzFK.js +107 -0
- package/components/hexbin-map-options.fr-C37I85X2.js +107 -0
- package/components/hexbin-map-options.nl-CGYc3Tzm.js +107 -0
- package/components/hexbin-map-positioning.config-ChoCCure.cjs +20 -0
- package/components/hexbin-map-positioning.config-csNrvMwp.js +47 -0
- package/components/hexbin-map-slots.config-DiYcKnDG.cjs +20 -0
- package/components/hexbin-map-slots.config-DmITrQD3.js +36 -0
- package/components/hu-DBxO0Baz.js +125 -0
- package/components/icon-element-py6Nkaaz.js +83 -0
- package/components/image-options.config-D_QOqkE_.js +152 -0
- package/components/image-options.config-Dc8N_USB.cjs +20 -0
- package/components/image-options.de-03hJ2g0T.js +85 -0
- package/components/image-options.en-CjqpTh_m.js +85 -0
- package/components/image-options.es-BjZ9dYXp.js +85 -0
- package/components/image-options.fr-BZZ2scJt.js +85 -0
- package/components/image-options.nl-DGlo-Y7n.js +85 -0
- package/components/image-slots.config-CfaLrVzD.cjs +20 -0
- package/components/image-slots.config-FlUYF49C.js +23 -0
- package/components/index.cjs +1 -1
- package/components/index.js +71 -72
- package/components/info-tooltip-options.config-CyFz6pUU.js +58 -0
- package/components/info-tooltip-options.i18n-Cmmn-9tw.js +73 -0
- package/components/interactive-viz-item/index.cjs +1 -1
- package/components/interactive-viz-item/index.d.ts +2 -1
- package/components/interactive-viz-item/index.js +2 -2
- package/components/interactive-viz-item/interactive-viz-item.d.ts +31 -1
- package/components/interactive-viz-item/types.d.ts +13 -0
- package/components/interactive-viz-item-CwRRaCZB.js +583 -0
- package/components/interactive-viz-item-CxdrGRKc.cjs +265 -0
- package/components/interactivity-options.config-MuEP5vSt.js +72 -0
- package/components/interactivity-options.i18n-DY947PNz.js +58 -0
- package/components/is-same-option-value-B2oyvEqT.js +42 -0
- package/components/is-same-option-value-Cf6BQcs7.cjs +20 -0
- package/components/it-SNChaNqP.js +330 -0
- package/components/item-context-configs.js +1 -2
- package/components/item-grid/actions.d.ts +2 -1
- package/components/item-grid/helpers/grid-chart-rendering.d.ts +12 -0
- package/components/item-grid/helpers/grid-events.d.ts +1 -56
- package/components/item-grid/helpers/grid-interactions.d.ts +1 -88
- package/components/item-grid/helpers/grid-item-management.d.ts +5 -26
- package/components/item-grid/helpers/grid-item-popover.d.ts +1 -21
- package/components/item-grid/helpers/grid-items.d.ts +1 -9
- package/components/item-grid/helpers/grid-keyboard-updates.d.ts +1 -18
- package/components/item-grid/helpers/grid-keydown-event.d.ts +1 -18
- package/components/item-grid/helpers/grid-popover-cleanup.d.ts +1 -4
- package/components/item-grid/helpers/grid-rendering.d.ts +0 -50
- package/components/item-grid/helpers/grid-stack-lifecycle.d.ts +1 -26
- package/components/item-grid/helpers/grid-theme.d.ts +2 -14
- package/components/item-grid/helpers/grid-update-cycle.d.ts +1 -22
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.d.ts +3 -3
- package/components/item-grid/index.js +3 -2
- package/components/item-grid/item-grid.d.ts +12 -207
- package/components/item-grid/types.d.ts +1 -57
- package/components/item-grid-DscQOFMu.js +243 -0
- package/components/item-grid-DveTRc7D.cjs +41 -0
- package/components/item-grid-item-actions-menu/index.cjs +20 -0
- package/components/item-grid-item-actions-menu/index.d.ts +8 -0
- package/components/item-grid-item-actions-menu/index.js +20 -0
- package/components/item-grid-item-actions-menu/item-grid-item-actions-menu.d.ts +70 -0
- package/components/item-grid-item-actions-menu/types.d.ts +11 -0
- package/components/item-grid-item-actions-menu-B1bKfagj.js +197 -0
- package/components/item-grid-item-actions-menu-xRrT9dkY.cjs +52 -0
- package/components/item-list.js +1 -2
- package/components/item-option/helpers/control-markup.d.ts +7 -0
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.d.ts +1 -1
- package/components/item-option/index.js +1 -2
- package/components/item-option/item-option.d.ts +23 -2
- package/components/item-option/types.d.ts +19 -0
- package/components/item-option-DKLRnicU.js +1003 -0
- package/components/item-option-DpLdospV.cjs +285 -0
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +1 -2
- package/components/item-option-action-button-group-BMgUwveA.cjs +53 -0
- package/components/item-option-action-button-group-Cpd_CNn-.js +115 -0
- package/components/item-option-base-BMy6dWbc.cjs +56 -0
- package/components/item-option-base-BfHciede.js +119 -0
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -2
- package/components/item-option-color-palette-picker-8KFuRU1D.js +2037 -0
- package/components/item-option-color-palette-picker-CnM1Gi6o.cjs +40 -0
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.d.ts +1 -1
- package/components/item-option-color-picker/index.js +1 -2
- package/components/item-option-color-picker/item-option-color-picker.d.ts +17 -1
- package/components/item-option-color-picker-CNW7GsCO.cjs +37 -0
- package/components/item-option-color-picker-DDvsY7hV.js +129 -0
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.d.ts +1 -1
- package/components/item-option-color-range/index.js +1 -2
- package/components/item-option-color-range/item-option-color-range.d.ts +20 -1
- package/components/item-option-color-range-BqSbuSZh.cjs +101 -0
- package/components/item-option-color-range-FQduqtz3.js +265 -0
- package/components/item-option-guidelines/index.cjs +1 -1
- package/components/item-option-guidelines/index.d.ts +1 -1
- package/components/item-option-guidelines/index.js +2 -2
- package/components/item-option-guidelines/item-option-guidelines.d.ts +16 -1
- package/components/item-option-guidelines-k5DwMONo.js +442 -0
- package/components/item-option-guidelines-z9BsGR-l.cjs +138 -0
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -2
- package/components/item-option-multi-language-field-CqtBl3gM.js +80 -0
- package/components/item-option-multi-language-field-DM2PENxV.cjs +33 -0
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +1 -2
- package/components/item-option-number-field-BgQRhFj3.js +99 -0
- package/components/item-option-number-field-Cw2ofJL7.cjs +38 -0
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.d.ts +1 -1
- package/components/item-option-panel/index.js +1 -2
- package/components/item-option-panel/item-option-panel.d.ts +12 -1
- package/components/item-option-panel-BLXWIbjX.js +195 -0
- package/components/item-option-panel-CU51qvgV.cjs +69 -0
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -2
- package/components/item-option-picker-DkAENDES.js +74 -0
- package/components/item-option-picker-EJlc0bmj.cjs +37 -0
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -2
- package/components/item-option-position-picker-Ba7cBvlL.cjs +32 -0
- package/components/item-option-position-picker-DX7lLZKO.js +114 -0
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +1 -2
- package/components/item-option-positions-number-field-BQ8gFOAn.cjs +49 -0
- package/components/item-option-positions-number-field-Bqfg0MJm.js +166 -0
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +1 -2
- package/components/item-option-radio-button-group-2hX-E2WV.cjs +37 -0
- package/components/item-option-radio-button-group-Bk7VQlpx.js +72 -0
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.d.ts +1 -1
- package/components/item-option-slider/index.js +1 -2
- package/components/item-option-slider/item-option-slider.d.ts +15 -2
- package/components/item-option-slider-BKtJfL3D.js +119 -0
- package/components/item-option-slider-Kz2eFBql.cjs +36 -0
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +1 -2
- package/components/item-option-switch-BUteU1mc.cjs +30 -0
- package/components/item-option-switch-cGWccE79.js +66 -0
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -2
- package/components/item-option-text-field-BC9fR-yW.cjs +33 -0
- package/components/item-option-text-field-Dy8pqVKJ.js +77 -0
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +45 -45
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.js +1 -2
- package/components/item-slot-drop-CwZT8bTP.js +327 -0
- package/components/item-slot-drop-DLzi4Dik.cjs +91 -0
- package/components/item-slot-drop-panel/index.cjs +1 -1
- package/components/item-slot-drop-panel/index.js +1 -2
- package/components/item-slot-drop-panel-Oh8zdKJH.cjs +57 -0
- package/components/item-slot-drop-panel-o5UdVrY_.js +347 -0
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -2
- package/components/item-slot-picker/item-slot-picker.d.ts +30 -2
- package/components/item-slot-picker-O9HKr3mv.cjs +158 -0
- package/components/item-slot-picker-ilmmb0-8.js +550 -0
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -2
- package/components/item-slot-picker-panel/item-slot-picker-panel.d.ts +7 -1
- package/components/item-slot-picker-panel-BhhN54IM.cjs +82 -0
- package/components/item-slot-picker-panel-fJqEmxeD.js +442 -0
- package/components/item-slots-configs.cjs +1 -1
- package/components/item-slots-configs.js +45 -45
- package/components/ja-B4YHU4-z.js +125 -0
- package/components/ko-DzfeXi4F.js +125 -0
- package/components/kpi-options.config-D9WuRe5z.js +331 -0
- package/components/kpi-options.config-DJW44vTd.cjs +20 -0
- package/components/kpi-options.de-B5lQkGks.js +108 -0
- package/components/kpi-options.de-BNSyszd2.cjs +20 -0
- package/components/kpi-options.en-BKN2-5Jq.js +108 -0
- package/components/kpi-options.en-DZkxgBCc.cjs +20 -0
- package/components/kpi-options.es-DQFRSRwE.cjs +20 -0
- package/components/kpi-options.es-DngzlxEn.js +108 -0
- package/components/kpi-options.fr-Cpm8BfZ9.cjs +20 -0
- package/components/kpi-options.fr-DNRUn0Pk.js +108 -0
- package/components/kpi-options.nl-Bw3N2x-C.js +108 -0
- package/components/kpi-options.nl-W4ujxuOd.cjs +20 -0
- package/components/kpi-positioning.config-DIYWUwID.cjs +20 -0
- package/components/kpi-positioning.config-mQuxf1ke.js +47 -0
- package/components/kpi-slots.config-AMUlgt-H.js +35 -0
- package/components/kpi-slots.config-BvTgcJ9e.cjs +20 -0
- package/components/line-chart-options.config-DOGbeJhy.cjs +20 -0
- package/components/line-chart-options.config-Opoz2jPk.js +254 -0
- package/components/line-chart-options.de-CB8mHJhD.cjs +20 -0
- package/components/line-chart-options.de-yLHBsR0G.js +88 -0
- package/components/line-chart-options.en-BrKt9W7U.cjs +20 -0
- package/components/line-chart-options.en-By_Pq6Kc.js +88 -0
- package/components/line-chart-options.es-BgnNvocl.cjs +20 -0
- package/components/line-chart-options.es-C28q-RTL.js +88 -0
- package/components/line-chart-options.fr-Jl6XdyHr.cjs +20 -0
- package/components/line-chart-options.fr-oMPIRzOe.js +88 -0
- package/components/line-chart-options.nl-C_1T9G-w.js +88 -0
- package/components/line-chart-options.nl-esSfBoBW.cjs +20 -0
- package/components/line-chart-positioning.config-DK9PycZ_.cjs +20 -0
- package/components/line-chart-positioning.config-DqjrWmxJ.js +54 -0
- package/components/line-chart-slots.config-CLSl3ODI.js +54 -0
- package/components/line-chart-slots.config-vyb4U5Ba.cjs +20 -0
- package/components/load-data-fields-for-datasets-DYgA0164.cjs +20 -0
- package/components/load-data-fields-for-datasets-avT5OQVv.js +42 -0
- package/components/localize-BNystXyK.js +28 -0
- package/components/localized-mixin-EoNvtTBG.cjs +20 -0
- package/components/localized-mixin-FPDNaZhb.js +44 -0
- package/components/map-tile-providers-cK8Xlerl.js +114 -0
- package/components/marker-map-options.config-DMPwJHEO.js +121 -0
- package/components/marker-map-options.config-DxcxzLu_.cjs +20 -0
- package/components/marker-map-options.de-CUZg_M2c.js +62 -0
- package/components/marker-map-options.en-BfCjBsXX.js +62 -0
- package/components/marker-map-options.es-BO7Joctq.js +62 -0
- package/components/marker-map-options.fr-CsbyRnt7.js +62 -0
- package/components/marker-map-options.nl-Cnsb5g0n.js +62 -0
- package/components/marker-map-positioning.config-BB51kE8O.cjs +20 -0
- package/components/marker-map-positioning.config-CA08hZcp.js +47 -0
- package/components/marker-map-slots.config-BPAExcmN.cjs +20 -0
- package/components/marker-map-slots.config-mCnPFESe.js +36 -0
- package/components/mk-BoGKhggN.js +125 -0
- package/components/nl-ByDvxFKr.js +137 -0
- package/components/nl-DNWGcGqO.js +599 -0
- package/components/nl-XotE1MQq.cjs +20 -0
- package/components/no-C9RQnknk.js +137 -0
- package/components/ohlc-chart-options.config-C-TCUtOt.js +93 -0
- package/components/ohlc-chart-options.config-CvlHm6hy.cjs +20 -0
- package/components/ohlc-chart-options.de-Bd9HtCU3.js +62 -0
- package/components/ohlc-chart-options.en-D32KZA3W.js +62 -0
- package/components/ohlc-chart-options.es-B42fuflG.js +62 -0
- package/components/ohlc-chart-options.fr-B0tdOmTO.js +62 -0
- package/components/ohlc-chart-options.nl-DEy_8xhr.js +62 -0
- package/components/ohlc-chart-positioning.config-BqFHD1oj.js +77 -0
- package/components/ohlc-chart-positioning.config-CDL2vGsl.cjs +20 -0
- package/components/ohlc-chart-slots.config-AC68CvCP.js +67 -0
- package/components/ohlc-chart-slots.config-SfLpuCud.cjs +20 -0
- package/components/option-interaction-controller-B8S1N_Oo.js +90 -0
- package/components/option-interaction-controller-D0U-CTpZ.cjs +20 -0
- package/components/orion-CL_Y_8id.js +67 -0
- package/components/parallel-coordinates-plot-options.config-C3HTFBTl.js +47 -0
- package/components/parallel-coordinates-plot-options.config-UHrCS9q5.cjs +20 -0
- package/components/parallel-coordinates-plot-options.de-_f7GTJXa.js +30 -0
- package/components/parallel-coordinates-plot-options.en-B7oIQWii.js +30 -0
- package/components/parallel-coordinates-plot-options.es-Dyh1h81o.js +30 -0
- package/components/parallel-coordinates-plot-options.fr-Ct3SBZ1v.js +30 -0
- package/components/parallel-coordinates-plot-options.nl-DcFKAVMO.js +30 -0
- package/components/parallel-coordinates-plot-positioning.config-Cc-ooVxV.cjs +20 -0
- package/components/parallel-coordinates-plot-positioning.config-D6IuAk_K.js +47 -0
- package/components/parallel-coordinates-plot-slots.config-BQWa5Xe2.js +45 -0
- package/components/parallel-coordinates-plot-slots.config-mEYlLRQy.cjs +20 -0
- package/components/period-over-period-condition.const-AE_2h-9O.js +28 -0
- package/components/periods.const-DZBBRkvS.js +154 -0
- package/components/pinky-hbHsDCfd.js +67 -0
- package/components/pivot-table-options.config-5pYvqc35.cjs +20 -0
- package/components/pivot-table-options.config-BlrguysB.js +248 -0
- package/components/pivot-table-options.de-C16jiVYY.js +66 -0
- package/components/pivot-table-options.en-Dbp63wyH.js +66 -0
- package/components/pivot-table-options.es-D78TGQMg.js +66 -0
- package/components/pivot-table-options.fr-CHnKYQkR.js +66 -0
- package/components/pivot-table-options.nl-ByxevE1T.js +66 -0
- package/components/pivot-table-positioning.config-DDwXH70O.js +54 -0
- package/components/pivot-table-positioning.config-DvwKNjoD.cjs +20 -0
- package/components/pivot-table-slots.config-C18Mnk6Y.js +54 -0
- package/components/pivot-table-slots.config-FSIW-Owh.cjs +20 -0
- package/components/pl-Br_k8GI8.js +125 -0
- package/components/pragmatic-element-adapter-B0tn35C8.cjs +24 -0
- package/components/pragmatic-element-adapter-CyTyN1YC.js +1210 -0
- package/components/pt-DA-XGRCP.js +125 -0
- package/components/pyramid-chart-options.config-0Qf1naIx.js +221 -0
- package/components/pyramid-chart-options.config-CAC6cMmt.cjs +20 -0
- package/components/pyramid-chart-options.de-2tKl9Efb.js +102 -0
- package/components/pyramid-chart-options.de-DuOpsLs5.cjs +20 -0
- package/components/pyramid-chart-options.en-C3DkPcBH.cjs +20 -0
- package/components/pyramid-chart-options.en-C5QKcY71.js +102 -0
- package/components/pyramid-chart-options.es-B4vyswPg.js +102 -0
- package/components/pyramid-chart-options.es-DWJdStho.cjs +20 -0
- package/components/pyramid-chart-options.fr-BoyFMPfp.js +102 -0
- package/components/pyramid-chart-options.fr-Wb5tFvLC.cjs +20 -0
- package/components/pyramid-chart-options.nl-3ErSugyh.js +102 -0
- package/components/pyramid-chart-options.nl-Csec8VMp.cjs +20 -0
- package/components/pyramid-chart-positioning.config-10BYkgv8.cjs +20 -0
- package/components/pyramid-chart-positioning.config-DWou2jnm.js +54 -0
- package/components/pyramid-chart-slots.config-C1JeQSzK.cjs +20 -0
- package/components/pyramid-chart-slots.config-CGJcv00A.js +49 -0
- package/components/radar-chart-options.config-C1gfNkE6.cjs +20 -0
- package/components/radar-chart-options.config-Dd6SMpMz.js +172 -0
- package/components/radar-chart-options.de-BcugS2tU.js +53 -0
- package/components/radar-chart-options.de-Er7fpAGV.cjs +20 -0
- package/components/radar-chart-options.en-B7ewze8f.js +53 -0
- package/components/radar-chart-options.en-BEJDfdE6.cjs +20 -0
- package/components/radar-chart-options.es-CHPp1rma.js +53 -0
- package/components/radar-chart-options.es-L88u7bqn.cjs +20 -0
- package/components/radar-chart-options.fr-BBJTEXWb.js +53 -0
- package/components/radar-chart-options.fr-CslMsBcG.cjs +20 -0
- package/components/radar-chart-options.nl-CBFeVHx5.js +53 -0
- package/components/radar-chart-options.nl-CIvGrz_A.cjs +20 -0
- package/components/radar-chart-positioning.config-B0O8vn-B.js +54 -0
- package/components/radar-chart-positioning.config-Dg41uYWY.cjs +20 -0
- package/components/radar-chart-slots.config-C3ZoIXnK.cjs +20 -0
- package/components/radar-chart-slots.config-rLD9dRCQ.js +52 -0
- package/components/radiant-D08Q3MEi.js +70 -0
- package/components/regular-table-options.config-BCth1USK.cjs +20 -0
- package/components/regular-table-options.config-TXfzXF_Y.js +152 -0
- package/components/regular-table-options.de-BUJ9aAeo.js +56 -0
- package/components/regular-table-options.en-DlLy4DDY.js +56 -0
- package/components/regular-table-options.es-BZ_emUc6.js +56 -0
- package/components/regular-table-options.fr-DT_jwFhs.js +56 -0
- package/components/regular-table-options.nl-BmGfp2Sx.js +56 -0
- package/components/regular-table-positioning.config-BxyFeemR.js +37 -0
- package/components/regular-table-slots.config-CRU_nLHI.cjs +20 -0
- package/components/regular-table-slots.config-sVD_kGbe.js +34 -0
- package/components/resolve-column-presentation-FSQv-qiE.js +33 -0
- package/components/rolldown-runtime-DbbDpzbe.cjs +20 -0
- package/components/route-map-options.config-DER6ENky.cjs +20 -0
- package/components/route-map-options.config-DTcS47fW.js +327 -0
- package/components/route-map-options.de-CxZnN008.js +75 -0
- package/components/route-map-options.en-CaTwhZYj.js +75 -0
- package/components/route-map-options.es-Da8nQnch.js +75 -0
- package/components/route-map-options.fr-BBSfOGdE.js +75 -0
- package/components/route-map-options.nl-B5gdyD3P.js +75 -0
- package/components/route-map-positioning.config-C1iUodTh.js +65 -0
- package/components/route-map-positioning.config-DlM6xJTP.cjs +20 -0
- package/components/route-map-slots.config-BaZwLyjW.js +58 -0
- package/components/route-map-slots.config-DbSYH_Gm.cjs +20 -0
- package/components/royale-Dx1_PBDN.js +59 -0
- package/components/ru-BskkPpk1.js +125 -0
- package/components/sankey-diagram-options.config-B8aHKfFt.cjs +20 -0
- package/components/sankey-diagram-options.config-Y6jRK3wk.js +129 -0
- package/components/sankey-diagram-options.de-DnHlLknR.js +62 -0
- package/components/sankey-diagram-options.en-D8mL9pQF.js +62 -0
- package/components/sankey-diagram-options.es-uqM9X09a.js +62 -0
- package/components/sankey-diagram-options.fr-Chiln2jM.js +62 -0
- package/components/sankey-diagram-options.nl-DiohN2Qc.js +62 -0
- package/components/sankey-diagram-positioning.config-5EXNleL5.js +65 -0
- package/components/sankey-diagram-positioning.config-BSu02GJ1.cjs +20 -0
- package/components/sankey-diagram-slots.config-CWKuPz6x.js +60 -0
- package/components/sankey-diagram-slots.config-DF6_NJGq.cjs +20 -0
- package/components/scatter-plot-options.config-DhOGahRc.cjs +20 -0
- package/components/scatter-plot-options.config-DvGofFzR.js +164 -0
- package/components/scatter-plot-options.de-CUPe1USU.cjs +20 -0
- package/components/scatter-plot-options.de-D5QbEAIZ.js +114 -0
- package/components/scatter-plot-options.en-FGRhx7Nu.js +114 -0
- package/components/scatter-plot-options.en-aCHwE_2o.cjs +20 -0
- package/components/scatter-plot-options.es-B2sIEexr.cjs +20 -0
- package/components/scatter-plot-options.es-CQU2STZG.js +114 -0
- package/components/scatter-plot-options.fr-B-7GyEXc.cjs +20 -0
- package/components/scatter-plot-options.fr-CWhv8L_g.js +114 -0
- package/components/scatter-plot-options.nl-Cz-6m7sg.cjs +20 -0
- package/components/scatter-plot-options.nl-DRfh8i_W.js +114 -0
- package/components/scatter-plot-positioning.config-CuyJUmiV.cjs +20 -0
- package/components/scatter-plot-positioning.config-nDbkUUqa.js +76 -0
- package/components/scatter-plot-slots.config-Dda9uF05.js +73 -0
- package/components/scatter-plot-slots.config-DuKQWkKZ.cjs +20 -0
- package/components/search-filter-options.config-DcPuNHyG.cjs +20 -0
- package/components/search-filter-options.config-JvAotvWb.js +102 -0
- package/components/search-filter-options.de-C5mfpqao.js +41 -0
- package/components/search-filter-options.en-CcDritg-.js +41 -0
- package/components/search-filter-options.es-Dd3Jgur8.js +41 -0
- package/components/search-filter-options.fr-CZss0Gbq.js +41 -0
- package/components/search-filter-options.nl-IjlN2XAx.js +41 -0
- package/components/search-filter-positioning.config-CY5Yo1sZ.js +37 -0
- package/components/search-filter-slots.config-BnDGoz_4.cjs +20 -0
- package/components/search-filter-slots.config-DtUQAwGn.js +38 -0
- package/components/seasonal-D0SDLKlK.js +75 -0
- package/components/set-locale-BkMmLcm6.cjs +20 -0
- package/components/set-locale-m257lVi3.js +42 -0
- package/components/set-nested-value-DmCMg2V3.js +32 -0
- package/components/slicer-filter-options.config-Bc38dVoU.js +234 -0
- package/components/slicer-filter-options.config-DqI9WtAi.cjs +20 -0
- package/components/slicer-filter-options.de-CaQJtPre.js +68 -0
- package/components/slicer-filter-options.en-BERi9NJr.js +68 -0
- package/components/slicer-filter-options.es-HyaV_xUy.js +68 -0
- package/components/slicer-filter-options.fr-BvhYoAXq.js +68 -0
- package/components/slicer-filter-options.nl-veviscxn.js +68 -0
- package/components/slicer-filter-positioning.config-BT5aNPHe.js +47 -0
- package/components/slicer-filter-positioning.config-D7ZLoaGu.cjs +20 -0
- package/components/slicer-filter-slots.config-BwlXABsj.cjs +20 -0
- package/components/slicer-filter-slots.config-D3AUD4PD.js +43 -0
- package/components/slider-filter-options.config-BaoIKTFj.js +71 -0
- package/components/slider-filter-options.config-CgMb9Xmz.cjs +20 -0
- package/components/slider-filter-options.de-BedVleOo.js +34 -0
- package/components/slider-filter-options.en-Cw7_6spM.js +34 -0
- package/components/slider-filter-options.es-Crr8myAG.js +34 -0
- package/components/slider-filter-options.fr-mUxX9zrU.js +34 -0
- package/components/slider-filter-options.nl-CooD4Lau.js +34 -0
- package/components/slider-filter-positioning.config-DAKt4bpW.js +37 -0
- package/components/slider-filter-slots.config-B-_6iJX8.cjs +20 -0
- package/components/slider-filter-slots.config-CQG0j5KX.js +42 -0
- package/components/slot-content-DE6NXHcl.js +22 -0
- package/components/slot-content-DYiwtIBX.cjs +20 -0
- package/components/slot-labels.config-DH2Dm3Yd.js +62 -0
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +1 -2
- package/components/slot-menu/slot-menu.d.ts +5 -0
- package/components/slot-menu/types.d.ts +1 -1
- package/components/slot-menu-BB_nJWZx.js +427 -0
- package/components/slot-menu-C8p0nkVS.cjs +71 -0
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -2
- package/components/slot-menu-list-3QkrOWgG.js +341 -0
- package/components/slot-menu-list-C2nLODML.cjs +44 -0
- package/components/slot-role-classification-BtYLRqq0.cjs +20 -0
- package/components/slot-role-classification-DGc-M0Of.js +132 -0
- package/components/slots-config-B6AOo19R.cjs +20 -0
- package/components/slots-config-CsKGGLNg.js +76 -0
- package/components/spacer-options.config-Dd_j69HB.js +22 -0
- package/components/speedometer-chart-options.config-C3o5xpCj.cjs +20 -0
- package/components/speedometer-chart-options.config-CIZKRvbg.js +250 -0
- package/components/speedometer-chart-options.de-CfMm0o9p.js +65 -0
- package/components/speedometer-chart-options.en-Ct8GyQCI.js +65 -0
- package/components/speedometer-chart-options.es-KA0EJ21O.js +65 -0
- package/components/speedometer-chart-options.fr-B1FxaP-j.js +65 -0
- package/components/speedometer-chart-options.nl-DHNdYT7E.js +65 -0
- package/components/speedometer-chart-positioning.config-BtDD3TiP.cjs +20 -0
- package/components/speedometer-chart-positioning.config-CO1MtdU3.js +47 -0
- package/components/speedometer-chart-slots.config-BhhQ0q7n.cjs +20 -0
- package/components/speedometer-chart-slots.config-DIShNh4T.js +38 -0
- package/components/spike-map-options.config-CPYfKWoF.js +414 -0
- package/components/spike-map-options.config-DeF1Whq5.cjs +20 -0
- package/components/spike-map-options.de-BrXqrF-u.js +102 -0
- package/components/spike-map-options.en-DSy6nt2M.js +102 -0
- package/components/spike-map-options.es-DuN_Li7Z.js +102 -0
- package/components/spike-map-options.fr-UPx664xO.js +102 -0
- package/components/spike-map-options.nl-C-b0qHyw.js +102 -0
- package/components/spike-map-positioning.config-BhKVutm1.cjs +20 -0
- package/components/spike-map-positioning.config-CQkcCdHD.js +54 -0
- package/components/spike-map-slots.config-B63KfULj.js +46 -0
- package/components/spike-map-slots.config-DHgVNtSl.cjs +20 -0
- package/components/strip-plot-options.config-CoiMZRzM.cjs +20 -0
- package/components/strip-plot-options.config-D1h3YBHj.js +53 -0
- package/components/strip-plot-options.de-BY8O0m1R.js +30 -0
- package/components/strip-plot-options.en-D2XEAFMd.js +30 -0
- package/components/strip-plot-options.es-DbQvKoCu.js +30 -0
- package/components/strip-plot-options.fr-BK_mGl7Y.js +30 -0
- package/components/strip-plot-options.nl-BaFVxWEI.js +30 -0
- package/components/strip-plot-positioning.config-CEYgtT13.cjs +20 -0
- package/components/strip-plot-positioning.config-DEyOR-yS.js +47 -0
- package/components/strip-plot-slots.config-D9blbOAz.cjs +20 -0
- package/components/strip-plot-slots.config-DjItZdiF.js +37 -0
- package/components/sunburst-chart-options.config-CZdd6qx0.cjs +20 -0
- package/components/sunburst-chart-options.config-DVETeZFc.js +189 -0
- package/components/sunburst-chart-options.de-B0mIITIx.js +60 -0
- package/components/sunburst-chart-options.de-DO65RQI_.cjs +20 -0
- package/components/sunburst-chart-options.en-C3IkkUBW.cjs +20 -0
- package/components/sunburst-chart-options.en-LoUPN34r.js +60 -0
- package/components/sunburst-chart-options.es-BV_4fN10.cjs +20 -0
- package/components/sunburst-chart-options.es-DBje7CMN.js +60 -0
- package/components/sunburst-chart-options.fr-Cnbpsj6t.js +60 -0
- package/components/sunburst-chart-options.fr-DO7-oeNe.cjs +20 -0
- package/components/sunburst-chart-options.nl-CluctKYY.js +60 -0
- package/components/sunburst-chart-options.nl-DsecjcfE.cjs +20 -0
- package/components/sunburst-chart-positioning.config-DNtHXpHg.cjs +20 -0
- package/components/sunburst-chart-positioning.config-DP-ifsmn.js +47 -0
- package/components/sunburst-chart-slots.config-CeB0g1Jz.js +37 -0
- package/components/sunburst-chart-slots.config-DwXruOTF.cjs +20 -0
- package/components/superPropGet-CUPN9Fvv.js +48 -0
- package/components/superPropGet-DmmlTXgo.cjs +20 -0
- package/components/sv-C6Tu9rpj.js +125 -0
- package/components/symbol-map-options.config-BwZ7_S4w.js +178 -0
- package/components/symbol-map-options.config-C3RTDsGN.cjs +20 -0
- package/components/symbol-map-options.de-CjMtnkPp.js +65 -0
- package/components/symbol-map-options.en-D3yzVDgP.js +65 -0
- package/components/symbol-map-options.es-B6XECjy2.js +65 -0
- package/components/symbol-map-options.fr-tZF8dXgD.js +65 -0
- package/components/symbol-map-options.nl-BYykoWAL.js +65 -0
- package/components/symbol-map-positioning.config-CoLDPgYM.cjs +20 -0
- package/components/symbol-map-positioning.config-Nj7pDOAu.js +54 -0
- package/components/symbol-map-slots.config-Bcg4tTKu.js +52 -0
- package/components/symbol-map-slots.config-Cp9Wp3vo.cjs +20 -0
- package/components/text-options.config-BomEcU58.js +66 -0
- package/components/text-options.config-D9EkimNf.cjs +20 -0
- package/components/text-options.de-B4NOm0u-.js +29 -0
- package/components/text-options.en-Cb3U3pRQ.js +29 -0
- package/components/text-options.es-Bo7gnIX1.js +29 -0
- package/components/text-options.fr-CShH2v0S.js +29 -0
- package/components/text-options.nl-DWxZsCiw.js +29 -0
- package/components/text-slots.config-11KBADL7.js +23 -0
- package/components/text-slots.config-Rt7OwjzL.cjs +20 -0
- package/components/themes-BO_1ebSB.js +71 -0
- package/components/tokens-6HmQYnEP.js +27 -0
- package/components/tr-DJnNMcm5.js +137 -0
- package/components/treemap-chart-options.config-DLEY6YuI.cjs +20 -0
- package/components/treemap-chart-options.config-DsqsX9So.js +210 -0
- package/components/treemap-chart-options.de-CXIYs3oT.js +63 -0
- package/components/treemap-chart-options.en-B7NFLNe9.js +63 -0
- package/components/treemap-chart-options.es-CKX8PeWE.js +63 -0
- package/components/treemap-chart-options.fr-CPacPcag.js +63 -0
- package/components/treemap-chart-options.nl-OOTGXzol.js +63 -0
- package/components/treemap-chart-positioning.config-BVOqj2V1.cjs +20 -0
- package/components/treemap-chart-positioning.config-B_R_cmFs.js +54 -0
- package/components/treemap-chart-slots.config-CmPHhmR2.cjs +20 -0
- package/components/treemap-chart-slots.config-CpCIdFAM.js +46 -0
- package/components/type-check-D6K_INvg.js +51 -0
- package/components/types-DJuS9IwG.js +43 -0
- package/components/urban-CGKIB8yR.js +70 -0
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/utils/store.cjs +1 -1
- package/components/utils/store.js +11 -19
- package/components/utils-DIKmx9O1.cjs +20 -0
- package/components/utils-DS6Pthr4.js +238 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +9 -9
- package/components/v4-YCkfo8OR.js +46 -0
- package/components/venn-diagram-options.config-3-Adz8wM.js +23 -0
- package/components/venn-diagram-options.config-BsxzLI46.cjs +20 -0
- package/components/venn-diagram-positioning.config-8JCVpYOt.cjs +20 -0
- package/components/venn-diagram-positioning.config-DOsSkJYl.js +54 -0
- package/components/venn-diagram-slots.config-CfOs3HFk.cjs +20 -0
- package/components/venn-diagram-slots.config-DIFovfS5.js +46 -0
- package/components/video-options.config-BACuLmHj.cjs +20 -0
- package/components/video-options.config-DVxtlO5_.js +126 -0
- package/components/video-options.de-ORwnqA8n.js +59 -0
- package/components/video-options.en-Bs_Lh_CI.js +59 -0
- package/components/video-options.es-BvVdDjfZ.js +59 -0
- package/components/video-options.fr-BesFW-1s.js +59 -0
- package/components/video-options.nl-BW4_pRnk.js +59 -0
- package/components/video-slots.config-B12oMaQR.js +23 -0
- package/components/video-slots.config-Diz5vhEg.cjs +20 -0
- package/components/vivid-DILEKRlz.js +71 -0
- package/components/wordcloud-chart-options.config-DiyF596X.cjs +20 -0
- package/components/wordcloud-chart-options.config-UAl2hfU7.js +96 -0
- package/components/wordcloud-chart-options.de-D9c2kOhf.js +48 -0
- package/components/wordcloud-chart-options.en-B2eVzZ8F.js +48 -0
- package/components/wordcloud-chart-options.es-C6dUmFLy.js +48 -0
- package/components/wordcloud-chart-options.fr-dNSX7uyQ.js +48 -0
- package/components/wordcloud-chart-options.nl-D1CFGAGK.js +48 -0
- package/components/wordcloud-chart-positioning.config-D13iPEEg.cjs +20 -0
- package/components/wordcloud-chart-positioning.config-DSVw_z7Y.js +54 -0
- package/components/wordcloud-chart-slots.config-Bw2N-_FE.cjs +20 -0
- package/components/wordcloud-chart-slots.config-D-ZKO6Za.js +44 -0
- package/components/zh-CN-BTatoior.js +125 -0
- package/components/zh-TW-frHWROW3.js +125 -0
- package/custom-elements.json +7341 -5976
- package/deprecated-react/components/item-grid-item-actions-menu.component.cjs +1 -0
- package/grid-core/helpers/grid-events.d.ts +56 -0
- package/grid-core/helpers/grid-interactions.d.ts +88 -0
- package/grid-core/helpers/grid-item-management.d.ts +28 -0
- package/grid-core/helpers/grid-item-popover.d.ts +21 -0
- package/grid-core/helpers/grid-items.d.ts +9 -0
- package/grid-core/helpers/grid-keyboard-updates.d.ts +18 -0
- package/grid-core/helpers/grid-keydown-event.d.ts +18 -0
- package/grid-core/helpers/grid-popover-cleanup.d.ts +4 -0
- package/grid-core/helpers/grid-rendering.d.ts +41 -0
- package/grid-core/helpers/grid-stack-lifecycle.d.ts +26 -0
- package/grid-core/helpers/grid-theme.d.ts +15 -0
- package/grid-core/helpers/grid-update-cycle.d.ts +22 -0
- package/grid-core/index.d.ts +5 -0
- package/grid-core/item-grid-base.d.ts +223 -0
- package/grid-core/types.d.ts +57 -0
- package/index.d.ts +1 -1
- package/package.json +20 -10
- package/react/components/ai-chat.component.ts +5 -2
- package/react/components/interactive-viz-item.component.ts +11 -2
- package/react/components/item-grid-item-actions-menu.component.ts +30 -0
- package/react/components/item-grid.component.ts +4 -1
- package/react/components/item-option-color-picker.component.ts +9 -3
- package/react/components/item-option-color-range.component.ts +9 -3
- package/react/components/item-option-guidelines.component.ts +9 -3
- package/react/components/item-option-panel.component.ts +12 -3
- package/react/components/item-option-slider.component.ts +12 -3
- package/react/components/item-option.component.ts +12 -3
- package/react/esm/components/ai-chat.component.d.ts +3 -1
- package/react/esm/components/ai-chat.component.js +3 -1
- package/react/esm/components/interactive-viz-item.component.d.ts +8 -2
- package/react/esm/components/interactive-viz-item.component.js +7 -1
- package/react/esm/components/item-grid-item-actions-menu.component.d.ts +14 -0
- package/react/esm/components/item-grid-item-actions-menu.component.js +19 -0
- package/react/esm/components/item-grid.component.d.ts +3 -1
- package/react/esm/components/item-grid.component.js +2 -0
- package/react/esm/components/item-option-color-picker.component.d.ts +6 -2
- package/react/esm/components/item-option-color-picker.component.js +6 -2
- package/react/esm/components/item-option-color-range.component.d.ts +6 -2
- package/react/esm/components/item-option-color-range.component.js +6 -2
- package/react/esm/components/item-option-guidelines.component.d.ts +6 -2
- package/react/esm/components/item-option-guidelines.component.js +6 -2
- package/react/esm/components/item-option-panel.component.d.ts +8 -2
- package/react/esm/components/item-option-panel.component.js +8 -2
- package/react/esm/components/item-option-slider.component.d.ts +8 -2
- package/react/esm/components/item-option-slider.component.js +8 -2
- package/react/esm/components/item-option.component.d.ts +8 -2
- package/react/esm/components/item-option.component.js +8 -2
- package/react/esm/index.d.ts +2 -2
- package/react/esm/index.js +6 -6
- package/react/index.ts +6 -6
- package/react/luzmo-stub.d.ts +15 -6
- package/react/package.json +6 -2
- package/standalone/add-to-dashboard.js +168 -0
- package/standalone/chunks/area-chart-options.config-BMvUma_d.js +2 -0
- package/standalone/chunks/area-chart-options.de-CiUYKjuF.js +2 -0
- package/standalone/chunks/area-chart-options.en-ClANS4ox.js +2 -0
- package/standalone/chunks/area-chart-options.es-CJ9G7w-d.js +2 -0
- package/standalone/chunks/area-chart-options.fr-HT5lv1Xa.js +2 -0
- package/standalone/chunks/area-chart-options.nl-BLkEkEtR.js +2 -0
- package/standalone/chunks/axis-options.config-DOE0YdaK.js +2 -0
- package/standalone/chunks/axis-options.i18n-BiaLcciz.js +2 -0
- package/standalone/chunks/bar-chart-options.config-BpHqXBFq.js +2 -0
- package/standalone/chunks/bar-chart-options.de-BFaQAeSt.js +2 -0
- package/standalone/chunks/bar-chart-options.en-uZbbpK84.js +2 -0
- package/standalone/chunks/bar-chart-options.es-twNx5B2m.js +2 -0
- package/standalone/chunks/bar-chart-options.fr-DRaaaSSH.js +2 -0
- package/standalone/chunks/bar-chart-options.nl-CJiMjH5v.js +2 -0
- package/standalone/chunks/box-plot-options.config-DDWb_KmV.js +2 -0
- package/standalone/chunks/box-plot-options.de-CI5qJAF7.js +2 -0
- package/standalone/chunks/box-plot-options.en-BQtMNcl5.js +2 -0
- package/standalone/chunks/box-plot-options.es-CHjivUoY.js +2 -0
- package/standalone/chunks/box-plot-options.fr-FkvAk1kX.js +2 -0
- package/standalone/chunks/box-plot-options.nl-BRnSzvbY.js +2 -0
- package/standalone/chunks/bullet-chart-options.config-BhYe0N0o.js +2 -0
- package/standalone/chunks/bullet-chart-options.de-kCP9VTDJ.js +2 -0
- package/standalone/chunks/bullet-chart-options.en-CQ7u24xM.js +2 -0
- package/standalone/chunks/bullet-chart-options.es-CMRwpRyH.js +2 -0
- package/standalone/chunks/bullet-chart-options.fr-NLzgxbaB.js +2 -0
- package/standalone/chunks/bullet-chart-options.nl-BxNIes0u.js +2 -0
- package/standalone/chunks/chart-helpers-DsIGsaDc.js +4 -0
- package/standalone/chunks/choropleth-map-options.config-rUJsEJcm.js +2 -0
- package/standalone/chunks/color-range-utils-DxOtqAKB.js +2 -0
- package/standalone/chunks/column-chart-options.config-YIe6cMV5.js +2 -0
- package/standalone/chunks/column-chart-options.de-CpCK5x2F.js +2 -0
- package/standalone/chunks/column-chart-options.en-uZbbpK84.js +2 -0
- package/standalone/chunks/column-chart-options.es-CNgSUKXK.js +2 -0
- package/standalone/chunks/column-chart-options.fr-DRaaaSSH.js +2 -0
- package/standalone/chunks/column-chart-options.nl-CJiMjH5v.js +2 -0
- package/standalone/chunks/combination-chart-options.config-Bf7cNmpc.js +2 -0
- package/standalone/chunks/combination-chart-options.de-BarapFn7.js +2 -0
- package/standalone/chunks/combination-chart-options.en-Dip8nNUE.js +2 -0
- package/standalone/chunks/combination-chart-options.es-3xQbg-Up.js +2 -0
- package/standalone/chunks/combination-chart-options.fr-BsXLtxB_.js +2 -0
- package/standalone/chunks/combination-chart-options.nl-8LA_bn9G.js +2 -0
- package/standalone/chunks/data-broker-DXDyIrj_.js +2 -0
- package/standalone/chunks/date-comparison-filter-slots.config-GxZF3vb3.js +2 -0
- package/standalone/chunks/de-mdZT2W1G.js +2 -0
- package/standalone/chunks/display-settings-binning-Byffw2Kl.js +38 -0
- package/standalone/chunks/display-settings-datetime-CD52d6Sv.js +199 -0
- package/standalone/chunks/display-settings-grand-totals-Cky99LX9.js +26 -0
- package/standalone/chunks/display-settings-numeric-C9ea7Tgc.js +172 -0
- package/standalone/chunks/display-settings-period-over-period-BLSGumkD.js +209 -0
- package/standalone/chunks/donut-chart-options.config-DWpePR5V.js +2 -0
- package/standalone/chunks/donut-chart-options.de-IKGJRoDL.js +2 -0
- package/standalone/chunks/donut-chart-options.en-O2IK3YiS.js +2 -0
- package/standalone/chunks/donut-chart-options.es-gKAHuFAU.js +2 -0
- package/standalone/chunks/donut-chart-options.fr-Q-uMrtQG.js +2 -0
- package/standalone/chunks/donut-chart-options.nl-B6v6jK4l.js +2 -0
- package/standalone/chunks/embed-CBu7iQRx.js +231 -0
- package/standalone/chunks/en-CSboh17P.js +2 -0
- package/standalone/chunks/en-GB-HoXKQBOY.js +2 -0
- package/standalone/chunks/en-US-CSboh17P.js +2 -0
- package/standalone/chunks/es-Di5D8JFd.js +2 -0
- package/standalone/chunks/evolution-number-options.config-Brbyq_TD.js +2 -0
- package/standalone/chunks/evolution-number-options.de-NPOdl5mB.js +2 -0
- package/standalone/chunks/evolution-number-options.en-Eq53ZOMK.js +2 -0
- package/standalone/chunks/evolution-number-options.es-WS8nAzvW.js +2 -0
- package/standalone/chunks/evolution-number-options.fr-DmcY0jGH.js +2 -0
- package/standalone/chunks/evolution-number-options.nl-CvjB2qil.js +2 -0
- package/standalone/chunks/filters-DKgJcQGP.js +532 -0
- package/standalone/chunks/formula-codemirror-BbyvNEVD.js +197 -0
- package/standalone/chunks/fr-DZku7iB9.js +2 -0
- package/standalone/chunks/funnel-chart-options.config-S1yxc6IG.js +2 -0
- package/standalone/chunks/funnel-chart-options.de-u5OrFyng.js +2 -0
- package/standalone/chunks/funnel-chart-options.en-BEGSBn35.js +2 -0
- package/standalone/chunks/funnel-chart-options.es-CxWkEgMs.js +2 -0
- package/standalone/chunks/funnel-chart-options.fr-DZmmgK2t.js +2 -0
- package/standalone/chunks/funnel-chart-options.nl-C6BitaEJ.js +2 -0
- package/standalone/chunks/heat-map-options.config-D93AeYFi.js +2 -0
- package/standalone/chunks/heat-table-options.config-ZVML76FK.js +2 -0
- package/standalone/chunks/heat-table-options.de-B4y9dcra.js +2 -0
- package/standalone/chunks/heat-table-options.en-Bouip0NE.js +2 -0
- package/standalone/chunks/heat-table-options.es-BRAQP8GK.js +2 -0
- package/standalone/chunks/heat-table-options.fr-CTzciHeO.js +2 -0
- package/standalone/chunks/heat-table-options.nl-DzmWrTeQ.js +2 -0
- package/standalone/chunks/is-same-option-value-Di-A7Wmg.js +2 -0
- package/standalone/chunks/item-option-action-button-group-BEAwPHVw.js +35 -0
- package/standalone/chunks/item-option-base-CRUxNhJQ.js +38 -0
- package/standalone/chunks/item-option-color-palette-picker-CBz61iZb.js +22 -0
- package/standalone/chunks/item-option-color-picker-lLvBPnKA.js +19 -0
- package/standalone/chunks/item-option-color-range-BqeatOei.js +83 -0
- package/standalone/chunks/item-option-guidelines-Cop8rM8y.js +120 -0
- package/standalone/chunks/item-option-multi-language-field-DPPpN2qg.js +15 -0
- package/standalone/chunks/item-option-number-field-CkqJjInE.js +20 -0
- package/standalone/chunks/item-option-panel-CzSKFCVl.js +316 -0
- package/standalone/chunks/item-option-picker-BnwQPT9A.js +19 -0
- package/standalone/chunks/item-option-position-picker-Bkc4JvJX.js +14 -0
- package/standalone/chunks/item-option-positions-number-field-Dr_315TE.js +31 -0
- package/standalone/chunks/item-option-radio-button-group-BkymJq3E.js +19 -0
- package/standalone/chunks/item-option-slider-K_bsNci8.js +18 -0
- package/standalone/chunks/item-option-switch-DeihDHhM.js +12 -0
- package/standalone/chunks/item-option-text-field-D7bkuhsv.js +15 -0
- package/standalone/chunks/item-slot-picker-panel-D4BMxGs9.js +429 -0
- package/standalone/chunks/kpi-options.config-DGl2N2HJ.js +2 -0
- package/standalone/chunks/kpi-options.de-CJMQBEs7.js +2 -0
- package/standalone/chunks/kpi-options.en-BzKmi3Bd.js +2 -0
- package/standalone/chunks/kpi-options.es-BTmFYV0w.js +2 -0
- package/standalone/chunks/kpi-options.fr-mlazGpRq.js +2 -0
- package/standalone/chunks/kpi-options.nl-BV1eFo_U.js +2 -0
- package/standalone/chunks/kpi-slots.config-DAjLHdEj.js +2 -0
- package/standalone/chunks/line-chart-options.config--_LXaPbB.js +2 -0
- package/standalone/chunks/line-chart-options.de-CCCH4dI_.js +2 -0
- package/standalone/chunks/line-chart-options.en-BwtEj00F.js +2 -0
- package/standalone/chunks/line-chart-options.es-BWWaIDbd.js +2 -0
- package/standalone/chunks/line-chart-options.fr-Rp7fs4Id.js +2 -0
- package/standalone/chunks/line-chart-options.nl-DcgJ9CUw.js +2 -0
- package/standalone/chunks/load-data-fields-for-datasets-ClctSj6y.js +25 -0
- package/standalone/chunks/localize-DXRmGRe-.js +2 -0
- package/standalone/chunks/localized-decorator-DJVBmJVH.js +2 -0
- package/standalone/chunks/luzmo-icon-markup-ByaNI6dg.js +13 -0
- package/standalone/chunks/nl-CViTevL3.js +2 -0
- package/standalone/chunks/ohlc-chart-options.config-kyYOgBtR.js +2 -0
- package/standalone/chunks/option-interaction-controller-BslAXAHF.js +2 -0
- package/standalone/chunks/pyramid-chart-options.config-xYIVE_ib.js +2 -0
- package/standalone/chunks/pyramid-chart-options.de-CaxalCcg.js +2 -0
- package/standalone/chunks/pyramid-chart-options.en-B-weoYGh.js +2 -0
- package/standalone/chunks/pyramid-chart-options.es-BahFoH3_.js +2 -0
- package/standalone/chunks/pyramid-chart-options.fr-DcTxsNGH.js +2 -0
- package/standalone/chunks/pyramid-chart-options.nl-ChImCr8r.js +2 -0
- package/standalone/chunks/radar-chart-options.config-CoGFqCqy.js +2 -0
- package/standalone/chunks/radar-chart-options.de-vruPXtB4.js +2 -0
- package/standalone/chunks/radar-chart-options.en-D8rstMVn.js +2 -0
- package/standalone/chunks/radar-chart-options.es-By21lK8S.js +2 -0
- package/standalone/chunks/radar-chart-options.fr-C4b5cJxg.js +2 -0
- package/standalone/chunks/radar-chart-options.nl-CzEi0MTf.js +2 -0
- package/standalone/chunks/route-map-options.config-Dwy0JSVq.js +2 -0
- package/standalone/chunks/scatter-plot-options.config-DG9Ki-mt.js +2 -0
- package/standalone/chunks/scatter-plot-options.de-eebqIJA1.js +2 -0
- package/standalone/chunks/scatter-plot-options.en-5i08biJm.js +2 -0
- package/standalone/chunks/scatter-plot-options.es-Bx8kHesL.js +2 -0
- package/standalone/chunks/scatter-plot-options.fr-DK6rPCT_.js +2 -0
- package/standalone/chunks/scatter-plot-options.nl-9mS62LyK.js +2 -0
- package/standalone/chunks/slot-content-BZhmLTG1.js +2 -0
- package/standalone/chunks/spike-map-options.config-DFmuNxym.js +2 -0
- package/standalone/chunks/sunburst-chart-options.config-DOBSe3i5.js +2 -0
- package/standalone/chunks/sunburst-chart-options.de-D3iq4Q-m.js +2 -0
- package/standalone/chunks/sunburst-chart-options.en-BUJ_Pr9C.js +2 -0
- package/standalone/chunks/sunburst-chart-options.es-stKrKGz2.js +2 -0
- package/standalone/chunks/sunburst-chart-options.fr-RkBtlMNp.js +2 -0
- package/standalone/chunks/sunburst-chart-options.nl-BUeDNot_.js +2 -0
- package/standalone/chunks/task-BlhDPTQS.js +2 -0
- package/standalone/chunks/themes-C2pxFlIq.js +2 -0
- package/standalone/chunks/v4-BxSu4gkw.js +2 -0
- package/standalone/chunks/version-BW4Ixl63.js +2 -0
- package/standalone/interactive-viz-item.js +51 -47
- package/standalone/item-grid.js +76 -68
- package/standalone/manifest.json +154 -157
- package/storybook/register-components.d.ts +1 -1
- package/types/ai-chat.types.d.ts +39 -2
- package/types.d.ts +1 -1
- package/utils/filters/filter-text.d.ts +1 -1
- package/utils/formula/base/formula-base.d.ts +2 -2
- package/utils/formula/config/build-datasets.d.ts +2 -2
- package/utils/formula/store/formula-display-store.d.ts +1 -1
- package/utils/option-interaction/index.d.ts +2 -0
- package/utils/option-interaction/is-same-option-value.d.ts +10 -0
- package/utils/option-interaction/option-interaction-controller.d.ts +54 -0
- package/utils/option-interaction/tests/option-interaction-controller.test.d.ts +1 -0
- package/utils/store/base-store.d.ts +9 -0
- package/utils/store/index.d.ts +1 -0
- package/utils/store/tests/store-base-history.test.d.ts +1 -0
- package/utils/store/tests/store-base.test.d.ts +1 -0
- package/components/ad-hoc-slot-content-BwcFfXCV.cjs +0 -20
- package/components/ad-hoc-slot-content-hSlT62VS.js +0 -29
- package/components/add-to-dashboard-BBBuSOri.js +0 -805
- package/components/add-to-dashboard-DL2au6Os.cjs +0 -166
- package/components/ai-chat-7IBO6eY3.cjs +0 -339
- package/components/ai-chat-D0d30We9.js +0 -4373
- package/components/ai-interaction-textarea-CAb6g6dq.js +0 -829
- package/components/ai-interaction-textarea-Cf7NhcMA.cjs +0 -101
- package/components/area-chart-options.config-Bf5kti7Z.cjs +0 -20
- package/components/area-chart-options.config-DJnPr93H.js +0 -201
- package/components/area-chart-options.de-_tPBzxvf.cjs +0 -20
- package/components/area-chart-options.de-pUCTG-s0.js +0 -87
- package/components/area-chart-options.en-AuSHs27k.cjs +0 -20
- package/components/area-chart-options.en-YNsUeMwN.js +0 -87
- package/components/area-chart-options.es-2styw_Fz.js +0 -87
- package/components/area-chart-options.es-BzRHGbo6.cjs +0 -20
- package/components/area-chart-options.fr--WzQVf2z.js +0 -87
- package/components/area-chart-options.fr-DYxUQE3x.cjs +0 -20
- package/components/area-chart-options.nl-BTEIqBtE.js +0 -87
- package/components/area-chart-options.nl-M0xQQ_la.cjs +0 -20
- package/components/area-chart-positioning.config-BUYCXinR.cjs +0 -20
- package/components/area-chart-positioning.config-CKHsdYfg.js +0 -55
- package/components/area-chart-slots.config-BOhwdLnr.cjs +0 -20
- package/components/area-chart-slots.config-ClE-gYVY.js +0 -55
- package/components/axis-options.config-BCP0Z8VI.js +0 -270
- package/components/axis-options.config-s-Js3ug-.cjs +0 -20
- package/components/axis-options.i18n-BOGRmWjp.js +0 -486
- package/components/axis-options.i18n-Cw-DmewV.cjs +0 -20
- package/components/bar-chart-options.config-CI17HU2I.cjs +0 -20
- package/components/bar-chart-options.config-D1x5WPbL.js +0 -261
- package/components/bar-chart-options.de-3qSh2TNr.js +0 -110
- package/components/bar-chart-options.de-545XMRGl.cjs +0 -20
- package/components/bar-chart-options.en-DAee9yHp.cjs +0 -20
- package/components/bar-chart-options.en-DrhQe9rV.js +0 -110
- package/components/bar-chart-options.es-BZ1yNzUQ.js +0 -110
- package/components/bar-chart-options.es-CfoAEZ-0.cjs +0 -20
- package/components/bar-chart-options.fr-5i13R8bs.js +0 -110
- package/components/bar-chart-options.fr-C2Ic0Dq0.cjs +0 -20
- package/components/bar-chart-options.nl-Bb6XiSDH.cjs +0 -20
- package/components/bar-chart-options.nl-DLj-qucU.js +0 -110
- package/components/bar-chart-positioning.config-B7_XsLgG.cjs +0 -20
- package/components/bar-chart-positioning.config-BcQHAr8h.js +0 -59
- package/components/bar-chart-slots.config-DMWjAd5a.cjs +0 -20
- package/components/bar-chart-slots.config-rMFwFprg.js +0 -50
- package/components/base-BXg3O7H2.cjs +0 -20
- package/components/base-CH2yUuWp.js +0 -248
- package/components/base-store-BhGpnbqi.js +0 -152
- package/components/base-store-D5cDq6d4.cjs +0 -20
- package/components/bliss-CK3rEnFv.js +0 -75
- package/components/box-plot-options.config-CooBIc6N.js +0 -334
- package/components/box-plot-options.config-Cp6H9fyb.cjs +0 -20
- package/components/box-plot-options.de-BkgscmvG.js +0 -100
- package/components/box-plot-options.de-alI5_N9d.cjs +0 -20
- package/components/box-plot-options.en-5kGlvxx8.js +0 -100
- package/components/box-plot-options.en-DUlXF9r9.cjs +0 -20
- package/components/box-plot-options.es-CIm06Gpk.cjs +0 -20
- package/components/box-plot-options.es-v_B9Xb9H.js +0 -100
- package/components/box-plot-options.fr-C5j-Dzj6.cjs +0 -20
- package/components/box-plot-options.fr-CRSOCgU5.js +0 -100
- package/components/box-plot-options.nl-DtnBbRo5.cjs +0 -20
- package/components/box-plot-options.nl-ZQjVZPau.js +0 -100
- package/components/box-plot-positioning.config-BBx2k16c.js +0 -48
- package/components/box-plot-positioning.config-zW8ApQot.cjs +0 -20
- package/components/box-plot-slots.config-5B_pTjPJ.cjs +0 -20
- package/components/box-plot-slots.config-DS2UIfRF.js +0 -40
- package/components/bubble-chart-options.config-B6aLA_1d.js +0 -142
- package/components/bubble-chart-options.config-e_0LM1Uw.cjs +0 -20
- package/components/bubble-chart-options.de-Q2nhAQfu.js +0 -49
- package/components/bubble-chart-options.en-DedkSXEc.js +0 -49
- package/components/bubble-chart-options.es-B7bZFlIa.js +0 -49
- package/components/bubble-chart-options.fr-Cz9T05xx.js +0 -49
- package/components/bubble-chart-options.nl-BeiE-TWG.js +0 -49
- package/components/bubble-chart-positioning.config-C81olavn.js +0 -55
- package/components/bubble-chart-positioning.config-mvGcNnxm.cjs +0 -20
- package/components/bubble-chart-slots.config-2qy2RqaU.js +0 -47
- package/components/bubble-chart-slots.config-VHKuntJk.cjs +0 -20
- package/components/bullet-chart-options.config-CBmbmhzI.js +0 -76
- package/components/bullet-chart-options.config-Drv0yQ4x.cjs +0 -20
- package/components/bullet-chart-options.de-DHqxFlm7.js +0 -39
- package/components/bullet-chart-options.de-DQhoZIdV.cjs +0 -20
- package/components/bullet-chart-options.en-6vj0tO4B.js +0 -39
- package/components/bullet-chart-options.en-CTpxw73t.cjs +0 -20
- package/components/bullet-chart-options.es-Cc4GzyJG.cjs +0 -20
- package/components/bullet-chart-options.es-DeDFLO8Z.js +0 -39
- package/components/bullet-chart-options.fr-750sl4sT.js +0 -39
- package/components/bullet-chart-options.fr-D2Z5WBfJ.cjs +0 -20
- package/components/bullet-chart-options.nl-B7tw2hO6.cjs +0 -20
- package/components/bullet-chart-options.nl-CS-xSSVr.js +0 -39
- package/components/bullet-chart-positioning.config-CFVhVLko.js +0 -56
- package/components/bullet-chart-positioning.config-DQXdWb8b.cjs +0 -20
- package/components/bullet-chart-slots.config-BaMmwIH0.js +0 -46
- package/components/bullet-chart-slots.config-CZfTgKZ4.cjs +0 -20
- package/components/calculate-data-field-icon-DrSg1PuD.js +0 -149
- package/components/chart-helpers-DQS2iqSd.js +0 -250
- package/components/choropleth-map-options.config-DWWydGJ3.js +0 -352
- package/components/choropleth-map-options.config-VG10yjwC.cjs +0 -20
- package/components/choropleth-map-options.de-DXLufNgZ.js +0 -72
- package/components/choropleth-map-options.en-DGENug11.js +0 -72
- package/components/choropleth-map-options.es-Dn2Cv5D-.js +0 -72
- package/components/choropleth-map-options.fr-CK0tUEO3.js +0 -72
- package/components/choropleth-map-options.nl-CwA4TtvT.js +0 -72
- package/components/choropleth-map-positioning.config-DHOBeRRk.cjs +0 -20
- package/components/choropleth-map-positioning.config-DJoC3t7U.js +0 -55
- package/components/choropleth-map-slots.config-CZKWF1qV.cjs +0 -20
- package/components/choropleth-map-slots.config-DqOi1kCn.js +0 -53
- package/components/circle-pack-chart-options.config-BmX0w3cH.cjs +0 -20
- package/components/circle-pack-chart-options.config-D2RCikyA.js +0 -60
- package/components/circle-pack-chart-options.de-BrrPqSBf.js +0 -31
- package/components/circle-pack-chart-options.en-BdoNRanZ.js +0 -31
- package/components/circle-pack-chart-options.es-DLQWaD31.js +0 -31
- package/components/circle-pack-chart-options.fr-B66YY6lg.js +0 -31
- package/components/circle-pack-chart-options.nl-kOeRMk4n.js +0 -31
- package/components/circle-pack-chart-positioning.config-B48On4x6.cjs +0 -20
- package/components/circle-pack-chart-positioning.config-Tgiu36TH.js +0 -48
- package/components/circle-pack-chart-slots.config-B7_1p86m.js +0 -38
- package/components/circle-pack-chart-slots.config-GL7T5_o4.cjs +0 -20
- package/components/circular-gauge-options.config-CSIUw2VN.cjs +0 -20
- package/components/circular-gauge-options.config-syWQJHKT.js +0 -193
- package/components/circular-gauge-options.de-D1DVq08k.js +0 -57
- package/components/circular-gauge-options.en-CsH_VhDL.js +0 -57
- package/components/circular-gauge-options.es-BkiRMNis.js +0 -57
- package/components/circular-gauge-options.fr-CxySNula.js +0 -57
- package/components/circular-gauge-options.nl-CcQpr_DM.js +0 -57
- package/components/circular-gauge-positioning.config-CO0TB_rx.cjs +0 -20
- package/components/circular-gauge-positioning.config-D6f4ltnk.js +0 -48
- package/components/circular-gauge-slots.config-BxjCP1ao.js +0 -39
- package/components/circular-gauge-slots.config-DUHabt3G.cjs +0 -20
- package/components/classic-BLOsKyb3.js +0 -82
- package/components/classic-dark-Bw01Wzq_.js +0 -73
- package/components/color-BWnYpOu7.js +0 -3812
- package/components/color-Bl8h58rV.cjs +0 -20
- package/components/color-palettes-D4z1ONyx.js +0 -1474
- package/components/color-range-utils-C3HJJUS1.cjs +0 -20
- package/components/color-range-utils-CiqduHJS.js +0 -63
- package/components/column-chart-options.config-B2LIl9lL.js +0 -260
- package/components/column-chart-options.config-xmSH4NKF.cjs +0 -20
- package/components/column-chart-options.de-BX13JkAO.cjs +0 -20
- package/components/column-chart-options.de-CIYtauiG.js +0 -110
- package/components/column-chart-options.en-BkAsfXYV.js +0 -110
- package/components/column-chart-options.en-DAee9yHp.cjs +0 -20
- package/components/column-chart-options.es-CClMQLE-.cjs +0 -20
- package/components/column-chart-options.es-jWM7TxS7.js +0 -110
- package/components/column-chart-options.fr-BB6301nS.js +0 -110
- package/components/column-chart-options.fr-C2Ic0Dq0.cjs +0 -20
- package/components/column-chart-options.nl-Bb6XiSDH.cjs +0 -20
- package/components/column-chart-options.nl-HUMDgKdl.js +0 -110
- package/components/column-chart-positioning.config-D6rP1t6R.cjs +0 -20
- package/components/column-chart-positioning.config-Du8eT4a1.js +0 -55
- package/components/column-chart-slots.config-CM5aytbj.cjs +0 -20
- package/components/column-chart-slots.config-D6MBTcj4.js +0 -50
- package/components/combination-chart-options.config-0ATFph8S.js +0 -139
- package/components/combination-chart-options.config-IEamJGCp.cjs +0 -20
- package/components/combination-chart-options.de-BiGjuWUS.cjs +0 -20
- package/components/combination-chart-options.de-DVJ9sfLC.js +0 -66
- package/components/combination-chart-options.en-B5piXq82.js +0 -66
- package/components/combination-chart-options.en-e4XMalU0.cjs +0 -20
- package/components/combination-chart-options.es-BmuyyP32.js +0 -66
- package/components/combination-chart-options.es-OXb8nozF.cjs +0 -20
- package/components/combination-chart-options.fr-CIrnpWEu.js +0 -66
- package/components/combination-chart-options.fr-CYzANyZs.cjs +0 -20
- package/components/combination-chart-options.nl-BDJ7t0BY.js +0 -66
- package/components/combination-chart-options.nl-DyAUjvqC.cjs +0 -20
- package/components/combination-chart-positioning.config-Dh3B3LOl.js +0 -48
- package/components/combination-chart-positioning.config-DjCqe3A3.cjs +0 -20
- package/components/combination-chart-slots.config-BwUOXFCR.cjs +0 -20
- package/components/combination-chart-slots.config-dYT9lz8M.js +0 -43
- package/components/conditional-number-options.config-Bv2xONtI.js +0 -210
- package/components/conditional-number-options.config-ZVtstIjn.cjs +0 -20
- package/components/conditional-number-options.de-2xle1pGz.js +0 -60
- package/components/conditional-number-options.en-JLoF4JZy.js +0 -60
- package/components/conditional-number-options.es-C_g0UqIh.js +0 -60
- package/components/conditional-number-options.fr-C5cASVba.js +0 -60
- package/components/conditional-number-options.nl-DiV3DzXR.js +0 -60
- package/components/conditional-number-positioning.config-CAhuUG3U.js +0 -48
- package/components/conditional-number-positioning.config-X0Y3C4dr.cjs +0 -20
- package/components/conditional-number-slots.config-B7maHIaG.cjs +0 -20
- package/components/conditional-number-slots.config-DtYkqtN8.js +0 -39
- package/components/convert-datasets-to-data-fields-PmQzeVLG.js +0 -68
- package/components/create-lazy-loader-BO_oTDF5.js +0 -31
- package/components/cs-wc4Fl7IN.js +0 -126
- package/components/da-Byf4w3lJ.js +0 -126
- package/components/data-broker-BNXS5_qc.js +0 -1684
- package/components/data-broker-DWgqaHoY.cjs +0 -20
- package/components/data-field-B8SFcGh0.js +0 -122
- package/components/data-field-DeT57bOO.cjs +0 -54
- package/components/data-field-level-3WE6l5BK.js +0 -248
- package/components/data-field-level-CCxykPSg.cjs +0 -55
- package/components/data-field-panel-BRxir4hU.js +0 -386
- package/components/data-field-panel-yFIL1XTw.cjs +0 -87
- package/components/data-fields-select-JThxsK_E.js +0 -290
- package/components/data-fields-select-hO9zKetk.cjs +0 -43
- package/components/dataset-icon-CP_oZswB.cjs +0 -62
- package/components/dataset-icon-DUtfpbLX.js +0 -121
- package/components/dataset-selector-list-BDxlELPh.js +0 -324
- package/components/dataset-selector-list-BJPRi83A.cjs +0 -75
- package/components/dataset-selector-row-BJTqQZhA.cjs +0 -104
- package/components/dataset-selector-row-CERTR_-i.js +0 -454
- package/components/date-comparison-filter-options.config-4yHPEJSU.cjs +0 -20
- package/components/date-comparison-filter-options.config-DgLx-m3L.js +0 -126
- package/components/date-comparison-filter-options.de-BSRz6o0Y.js +0 -55
- package/components/date-comparison-filter-options.en-DLbsNe_t.js +0 -55
- package/components/date-comparison-filter-options.es-ChO2qlIh.js +0 -55
- package/components/date-comparison-filter-options.fr-D9HKPj4L.js +0 -55
- package/components/date-comparison-filter-options.nl-BOMQo1X3.js +0 -55
- package/components/date-comparison-filter-positioning.config-DokVHoP8.js +0 -38
- package/components/date-comparison-filter-slots.config-BKZ13uzB.js +0 -33
- package/components/date-comparison-filter-slots.config-oABOLs3D.cjs +0 -20
- package/components/date-filter-options.config-Cbiy0QKd.js +0 -118
- package/components/date-filter-options.config-saR_u4w-.cjs +0 -20
- package/components/date-filter-options.de-DVRUmqQh.js +0 -51
- package/components/date-filter-options.en-Df-q6Eqf.js +0 -51
- package/components/date-filter-options.es-eclXOdtw.js +0 -51
- package/components/date-filter-options.fr-B6CHuun3.js +0 -51
- package/components/date-filter-options.nl-qgltgj2Q.js +0 -51
- package/components/date-filter-positioning.config-D8wFL4L9.js +0 -38
- package/components/date-filter-slots.config-Cuzz0RjE.cjs +0 -20
- package/components/date-filter-slots.config-SzWky1y7.js +0 -37
- package/components/de-BjRdwJaI.js +0 -592
- package/components/de-DlpfqiRu.cjs +0 -20
- package/components/de-OHJ9YCFU.js +0 -138
- package/components/decompose-numeric-format-DS0j2wa1.js +0 -36
- package/components/decorate-DyMgX_Uh.js +0 -28
- package/components/default-B35Bj34G.js +0 -78
- package/components/default-acceptable-data-field-types-DFOFWWnT.js +0 -53
- package/components/default-acceptable-data-field-types-fPsz64ka.cjs +0 -20
- package/components/default-dark-CRMTsWZ1.js +0 -78
- package/components/display-settings-5cY7BZuI.cjs +0 -142
- package/components/display-settings-DkSFWlVK.js +0 -316
- package/components/display-settings-binning-BiI20PpZ.cjs +0 -56
- package/components/display-settings-binning-tKTY2faZ.js +0 -111
- package/components/display-settings-datetime-C7Jew6I8.cjs +0 -217
- package/components/display-settings-datetime-YGdlBIKj.js +0 -414
- package/components/display-settings-grand-totals-B4CoczLi.cjs +0 -44
- package/components/display-settings-grand-totals-B7uQQUIk.js +0 -90
- package/components/display-settings-numeric-BR69YecW.js +0 -480
- package/components/display-settings-numeric-CHUjUYdY.cjs +0 -190
- package/components/display-settings-period-over-period-CDJEh8rt.js +0 -443
- package/components/display-settings-period-over-period-DL8OEHfu.cjs +0 -227
- package/components/donut-chart-options.config-C8wpZzyJ.js +0 -217
- package/components/donut-chart-options.config-LbmJpNlm.cjs +0 -20
- package/components/donut-chart-options.de-MwhxVUQU.cjs +0 -20
- package/components/donut-chart-options.de-yLZjyrqC.js +0 -85
- package/components/donut-chart-options.en-CtvZekZO.js +0 -85
- package/components/donut-chart-options.en-Z9kCIcjz.cjs +0 -20
- package/components/donut-chart-options.es-C89OYrl4.js +0 -85
- package/components/donut-chart-options.es-Ch83fRxI.cjs +0 -20
- package/components/donut-chart-options.fr-B7JWWsro.cjs +0 -20
- package/components/donut-chart-options.fr-Cy4UUjdS.js +0 -85
- package/components/donut-chart-options.nl-BT6vFbJ5.js +0 -85
- package/components/donut-chart-options.nl-Brxyw7wD.cjs +0 -20
- package/components/donut-chart-positioning.config-BdyN9VzX.cjs +0 -20
- package/components/donut-chart-positioning.config-CHyL7QHe.js +0 -48
- package/components/donut-chart-slots.config-Bi08z-XB.cjs +0 -20
- package/components/donut-chart-slots.config-fGqtoKZi.js +0 -39
- package/components/dropdown-filter-options.config-BRzYD0KE.cjs +0 -20
- package/components/dropdown-filter-options.config-DkiapYtc.js +0 -153
- package/components/dropdown-filter-options.de-CGwxbXwe.js +0 -54
- package/components/dropdown-filter-options.en-D4YCo5Bj.js +0 -54
- package/components/dropdown-filter-options.es-BvFyqxrr.js +0 -54
- package/components/dropdown-filter-options.fr-9KlpP9JQ.js +0 -54
- package/components/dropdown-filter-options.nl-4HUfHHPT.js +0 -54
- package/components/dropdown-filter-positioning.config-D1tdnuCP.js +0 -38
- package/components/dropdown-filter-slots.config-CR-Ko6q_.cjs +0 -20
- package/components/dropdown-filter-slots.config-DPcT6v-9.js +0 -38
- package/components/en-CcLhGxIh.js +0 -21
- package/components/en-GB-DzkdeUQh.js +0 -28
- package/components/en-GB-uxY5qmIM.cjs +0 -20
- package/components/en-US-CcLhGxIh.js +0 -21
- package/components/en-US-q_Ruzags.cjs +0 -20
- package/components/en-q_Ruzags.cjs +0 -20
- package/components/es-BEJ3vwZw.cjs +0 -20
- package/components/es-CHSnIez4.js +0 -592
- package/components/es-DuN6cMja.js +0 -331
- package/components/evolution-number-options.config-Ca9ABNVM.js +0 -230
- package/components/evolution-number-options.config-CoGBgLLw.cjs +0 -20
- package/components/evolution-number-options.de-BrdcqfjF.js +0 -76
- package/components/evolution-number-options.de-CjNBpzAw.cjs +0 -20
- package/components/evolution-number-options.en-B9BpR4nq.cjs +0 -20
- package/components/evolution-number-options.en-Sd6L4_T9.js +0 -76
- package/components/evolution-number-options.es-CxbiY9G6.cjs +0 -20
- package/components/evolution-number-options.es-RgSav5iQ.js +0 -76
- package/components/evolution-number-options.fr-BD73JeDU.js +0 -76
- package/components/evolution-number-options.fr-Cae20bgZ.cjs +0 -20
- package/components/evolution-number-options.nl-BJ-5M5kB.cjs +0 -20
- package/components/evolution-number-options.nl-WHBQ04_S.js +0 -76
- package/components/evolution-number-positioning.config-CUdL-zeQ.js +0 -48
- package/components/evolution-number-positioning.config-D6gycaNP.cjs +0 -20
- package/components/evolution-number-slots.config-CKawNqUS.js +0 -37
- package/components/evolution-number-slots.config-CikuQYgm.cjs +0 -20
- package/components/fi-vuFNiOkH.js +0 -126
- package/components/filter-expression-picker-BS-won7l.js +0 -434
- package/components/filter-expression-picker-DCHNq2I7.cjs +0 -40
- package/components/filter-item-DDw3FRAz.cjs +0 -111
- package/components/filter-item-DSHDKky0.js +0 -793
- package/components/filter-parameter-picker-BiD6eSTh.cjs +0 -124
- package/components/filter-parameter-picker-CLT9UoP8.js +0 -372
- package/components/filter-value-picker--iG40y_z.cjs +0 -69
- package/components/filter-value-picker-Dm0ql45_.js +0 -170
- package/components/filter-value-picker-datetime-C6d57Nir.cjs +0 -51
- package/components/filter-value-picker-datetime-DeqfuUwj.js +0 -160
- package/components/filter-value-picker-hierarchy-B-BvFNH7.js +0 -316
- package/components/filter-value-picker-hierarchy-CKqUw5uA.cjs +0 -54
- package/components/filter-value-picker-numeric-BRCpHan6.cjs +0 -54
- package/components/filter-value-picker-numeric-hFm7V2GV.js +0 -237
- package/components/filters-CS2JKt1Y.cjs +0 -199
- package/components/filters-CuB7alHb.js +0 -927
- package/components/formatter-BeXmurVe.cjs +0 -20
- package/components/formatter-Cq5dFCyU.js +0 -1473
- package/components/formula-D_OD2i6g.js +0 -139
- package/components/formula-codemirror-DYcNoihJ.cjs +0 -215
- package/components/formula-codemirror-a5sWUTJu.js +0 -12019
- package/components/formula-display-store-2jg_5gbV.js +0 -1087
- package/components/formula-display-store-DZcUchAg.cjs +0 -20
- package/components/formula-editor-B0YVZTXO.js +0 -691
- package/components/formula-editor-S_OrQGxP.cjs +0 -224
- package/components/formula-field-CCH2SKkC.cjs +0 -20
- package/components/formula-field-DrLyzo0w.js +0 -41
- package/components/formula-input-base-BP_VPgp_.cjs +0 -49
- package/components/formula-input-base-PDTFvAc2.js +0 -236
- package/components/formula-xgIedfvZ.cjs +0 -45
- package/components/fr-CwOLJGv2.js +0 -331
- package/components/fr-Qyi8waf9.cjs +0 -20
- package/components/fr-bmFhZhSn.js +0 -592
- package/components/funnel-chart-options.config-CygQsQVD.js +0 -211
- package/components/funnel-chart-options.config-DgpM8mWb.cjs +0 -20
- package/components/funnel-chart-options.de-CW29wkd4.cjs +0 -20
- package/components/funnel-chart-options.de-DIoKO3fr.js +0 -76
- package/components/funnel-chart-options.en-CGVFwHzU.cjs +0 -20
- package/components/funnel-chart-options.en-Doj4mREG.js +0 -76
- package/components/funnel-chart-options.es-Bcot5MS3.cjs +0 -20
- package/components/funnel-chart-options.es-D-GP_b6C.js +0 -76
- package/components/funnel-chart-options.fr-7ZROacsE.cjs +0 -20
- package/components/funnel-chart-options.fr-BoQkeuls.js +0 -76
- package/components/funnel-chart-options.nl-C0VZ6Ure.cjs +0 -20
- package/components/funnel-chart-options.nl-CRq-RjxK.js +0 -76
- package/components/funnel-chart-positioning.config-8jlFpv0s.cjs +0 -20
- package/components/funnel-chart-positioning.config-CKHYW9Zh.js +0 -48
- package/components/funnel-chart-slots.config-B8zC6Q6_.cjs +0 -20
- package/components/funnel-chart-slots.config-CfnSH4Ay.js +0 -43
- package/components/get-css-variable-CBXsAxR6.cjs +0 -20
- package/components/get-css-variable-DYnldi15.js +0 -63
- package/components/get-dataset-name-BUBY88G6.cjs +0 -20
- package/components/get-dataset-name-DcVX3h2Y.js +0 -32
- package/components/groupings-DVO_FQS0.js +0 -52
- package/components/groupings-QLe5jIkp.cjs +0 -20
- package/components/guidelines-options.config-DyedEeX2.js +0 -48
- package/components/he-Cs_3gvpL.js +0 -126
- package/components/heat-map-options.config-DtDh9Gpy.cjs +0 -20
- package/components/heat-map-options.config-X96sw-BV.js +0 -226
- package/components/heat-map-options.de-CdqO8c7P.js +0 -75
- package/components/heat-map-options.en-BAnXacHE.js +0 -75
- package/components/heat-map-options.es-8rTCVZlw.js +0 -75
- package/components/heat-map-options.fr-DbGhKWbq.js +0 -75
- package/components/heat-map-options.nl-nw2vqBOn.js +0 -75
- package/components/heat-map-positioning.config-CJsKdaGM.js +0 -48
- package/components/heat-map-positioning.config-CsFv5a9R.cjs +0 -20
- package/components/heat-map-slots.config-D2ypExJQ.js +0 -37
- package/components/heat-map-slots.config-Wp_oS8JQ.cjs +0 -20
- package/components/heat-table-options.config-CugBuoUA.cjs +0 -20
- package/components/heat-table-options.config-D6dA9J97.js +0 -269
- package/components/heat-table-options.de-D16uyY3b.cjs +0 -20
- package/components/heat-table-options.de-PCwpTsHu.js +0 -112
- package/components/heat-table-options.en-DCNhZ0Qw.js +0 -112
- package/components/heat-table-options.en-Dhd_yZdX.cjs +0 -20
- package/components/heat-table-options.es-DPqviw02.cjs +0 -20
- package/components/heat-table-options.es-Dhtu0ztS.js +0 -112
- package/components/heat-table-options.fr-BVwdrQWA.cjs +0 -20
- package/components/heat-table-options.fr-dtKsuwpe.js +0 -112
- package/components/heat-table-options.nl-BAiKDY6k.cjs +0 -20
- package/components/heat-table-options.nl-Bc0JFpfk.js +0 -112
- package/components/heat-table-positioning.config-BErqCTzb.js +0 -55
- package/components/heat-table-positioning.config-DPJqMJ3k.cjs +0 -20
- package/components/heat-table-slots.config-B1iOn6ay.js +0 -49
- package/components/heat-table-slots.config-BN7rtHZG.cjs +0 -20
- package/components/helpers-irnB2xbq.js +0 -68
- package/components/hexbin-map-options.config-BGmgxnMh.cjs +0 -20
- package/components/hexbin-map-options.config-FK9DrXGD.js +0 -278
- package/components/hexbin-map-options.de-IOtNvdRA.js +0 -108
- package/components/hexbin-map-options.en-DKEF0zQn.js +0 -108
- package/components/hexbin-map-options.es-FkXMepZ7.js +0 -108
- package/components/hexbin-map-options.fr-DT7-Cefu.js +0 -108
- package/components/hexbin-map-options.nl-BwgDBrw4.js +0 -108
- package/components/hexbin-map-positioning.config-B4uDTE1u.js +0 -48
- package/components/hexbin-map-positioning.config-B5ro4kN0.cjs +0 -20
- package/components/hexbin-map-slots.config-CC1xZINm.js +0 -37
- package/components/hexbin-map-slots.config-mx5zUTrA.cjs +0 -20
- package/components/hu-BXedq4ZF.js +0 -126
- package/components/icon-element-_jY440X2.js +0 -85
- package/components/image-options.config-DZ5q1D63.cjs +0 -20
- package/components/image-options.config-DxF0RSUF.js +0 -153
- package/components/image-options.de-Bh8QqYb_.js +0 -86
- package/components/image-options.en-D2iUVarz.js +0 -86
- package/components/image-options.es-CKpabSfB.js +0 -86
- package/components/image-options.fr-vfaeguWy.js +0 -86
- package/components/image-options.nl-B16JINhD.js +0 -86
- package/components/image-slots.config-BPJRdlMR.cjs +0 -20
- package/components/image-slots.config-Ba8NXeCH.js +0 -24
- package/components/info-tooltip-options.config-BmSMkirf.js +0 -59
- package/components/info-tooltip-options.i18n-CDx47Py-.js +0 -74
- package/components/interactive-viz-item-Baea0P3_.cjs +0 -261
- package/components/interactive-viz-item-CUMd_0jC.js +0 -528
- package/components/interactivity-options.config-BjEGNaIz.js +0 -73
- package/components/interactivity-options.i18n-UhOnnlBC.js +0 -59
- package/components/it-BoudiwDn.js +0 -331
- package/components/item-grid/item-grid-item-actions-menu.d.ts +0 -35
- package/components/item-grid-d2OADwan.cjs +0 -113
- package/components/item-grid-kdpHgrsl.js +0 -4560
- package/components/item-option-JwAx3YmC.js +0 -956
- package/components/item-option-action-button-group-Ca0pf6i5.js +0 -119
- package/components/item-option-action-button-group-DkAZ9OY0.cjs +0 -53
- package/components/item-option-base-AaUo_MZX.cjs +0 -56
- package/components/item-option-base-j4KIWhhs.js +0 -123
- package/components/item-option-color-palette-picker-DawX4mFm.cjs +0 -40
- package/components/item-option-color-palette-picker-OYFI9Lyv.js +0 -2042
- package/components/item-option-color-picker-CucECBTQ.js +0 -88
- package/components/item-option-color-picker-D0wxlRKT.cjs +0 -34
- package/components/item-option-color-range-BsKL3vNf.cjs +0 -98
- package/components/item-option-color-range-DEKwcRnW.js +0 -221
- package/components/item-option-guidelines-CBS-l6Og.js +0 -420
- package/components/item-option-guidelines-a-JZ6vET.cjs +0 -135
- package/components/item-option-multi-language-field-B_iIHt9f.cjs +0 -33
- package/components/item-option-multi-language-field-DsjULq1Z.js +0 -83
- package/components/item-option-number-field-CMvMANg3.js +0 -103
- package/components/item-option-number-field-Cu3Xp7O1.cjs +0 -38
- package/components/item-option-panel-Bt-auTxh.js +0 -184
- package/components/item-option-panel-CGglC0L3.cjs +0 -67
- package/components/item-option-picker-Bbo9FLVK.js +0 -78
- package/components/item-option-picker-Cs6IJBwI.cjs +0 -37
- package/components/item-option-position-picker-9WEGAJwv.js +0 -118
- package/components/item-option-position-picker-DjeaIbof.cjs +0 -32
- package/components/item-option-positions-number-field-D9sacfwi.cjs +0 -49
- package/components/item-option-positions-number-field-VAjwbcp-.js +0 -165
- package/components/item-option-radio-button-group-BH6Rrjqn.cjs +0 -37
- package/components/item-option-radio-button-group-C78B2JTq.js +0 -75
- package/components/item-option-slider-C8ohnELg.js +0 -97
- package/components/item-option-slider-DfrO8o4P.cjs +0 -33
- package/components/item-option-switch-5-9yM_CB.js +0 -70
- package/components/item-option-switch-CBDaX0VP.cjs +0 -30
- package/components/item-option-text-field-BuGQRbBd.cjs +0 -33
- package/components/item-option-text-field-Dfhyiw3g.js +0 -81
- package/components/item-option-wljWGlVP.cjs +0 -269
- package/components/item-slot-drop-BoHMbf5d.js +0 -332
- package/components/item-slot-drop-DzI3J188.cjs +0 -91
- package/components/item-slot-drop-panel-DAV5hZAK.js +0 -356
- package/components/item-slot-drop-panel-DUZiKuGU.cjs +0 -57
- package/components/item-slot-picker-D93zj2Gb.js +0 -506
- package/components/item-slot-picker-Kw-XELzL.cjs +0 -174
- package/components/item-slot-picker-panel-B4YB1TZm.cjs +0 -81
- package/components/item-slot-picker-panel-PQ4ahhjg.js +0 -449
- package/components/ja-DOkmGGSd.js +0 -126
- package/components/ko-BrzKwqTe.js +0 -126
- package/components/line-chart-options.config-C3_RnROS.js +0 -237
- package/components/line-chart-options.config-RTYFJQSE.cjs +0 -20
- package/components/line-chart-options.de-CKbHARjX.cjs +0 -20
- package/components/line-chart-options.de-CtxTZ-Nx.js +0 -81
- package/components/line-chart-options.en-BgXtU92P.js +0 -81
- package/components/line-chart-options.en-DmtT3Hbw.cjs +0 -20
- package/components/line-chart-options.es--u7QlrhG.js +0 -81
- package/components/line-chart-options.es-BwyQviz-.cjs +0 -20
- package/components/line-chart-options.fr-BUwOFGR7.cjs +0 -20
- package/components/line-chart-options.fr-BaPc1M70.js +0 -81
- package/components/line-chart-options.nl-BkPXShNF.cjs +0 -20
- package/components/line-chart-options.nl-C86fSn7a.js +0 -81
- package/components/line-chart-positioning.config-CZZzCHZy.cjs +0 -20
- package/components/line-chart-positioning.config-hnE1mHxC.js +0 -55
- package/components/line-chart-slots.config-CA-I6B6o.js +0 -55
- package/components/line-chart-slots.config-vv66fcoE.cjs +0 -20
- package/components/load-data-fields-for-datasets-C8QzYyAq.cjs +0 -20
- package/components/load-data-fields-for-datasets-eFeQdDxV.js +0 -42
- package/components/localize-BT7REYBY.js +0 -29
- package/components/localized-mixin-B-kGsAm4.cjs +0 -20
- package/components/localized-mixin-a1sQVLdN.js +0 -45
- package/components/map-tile-providers-RN2cWRln.js +0 -115
- package/components/marker-map-options.config-OMdgbAc4.js +0 -122
- package/components/marker-map-options.config-SkhbtEh0.cjs +0 -20
- package/components/marker-map-options.de-DVb2ab5i.js +0 -63
- package/components/marker-map-options.en-BNwkDxQB.js +0 -63
- package/components/marker-map-options.es-CY2DRGKv.js +0 -63
- package/components/marker-map-options.fr-D31wgwxG.js +0 -63
- package/components/marker-map-options.nl-DyZo_CFt.js +0 -63
- package/components/marker-map-positioning.config-CwgtUUq-.js +0 -48
- package/components/marker-map-positioning.config-D-I0B6m9.cjs +0 -20
- package/components/marker-map-slots.config-CcGNgr1_.js +0 -37
- package/components/marker-map-slots.config-DigZk7lN.cjs +0 -20
- package/components/mk-Deht4BwZ.js +0 -126
- package/components/nl-C1BTOQ5N.js +0 -138
- package/components/nl-DcbYQmCW.cjs +0 -20
- package/components/nl-ykFfpBh5.js +0 -592
- package/components/no-C9FQ33Mp.js +0 -138
- package/components/ohlc-chart-options.config-CWRI5bXI.js +0 -94
- package/components/ohlc-chart-options.config-Pqd5MFIv.cjs +0 -20
- package/components/ohlc-chart-options.de-LnJmQjiR.js +0 -63
- package/components/ohlc-chart-options.en-B7TU8CK4.js +0 -63
- package/components/ohlc-chart-options.es-B7m8-_pA.js +0 -63
- package/components/ohlc-chart-options.fr-u_Bi9raw.js +0 -63
- package/components/ohlc-chart-options.nl-BrpwjNGt.js +0 -63
- package/components/ohlc-chart-positioning.config-Bq5TsRQX.cjs +0 -20
- package/components/ohlc-chart-positioning.config-DBAi7BZB.js +0 -78
- package/components/ohlc-chart-slots.config-D3fzoQJH.cjs +0 -20
- package/components/ohlc-chart-slots.config-Pv0xst-Y.js +0 -68
- package/components/orion-CXeT8EeB.js +0 -68
- package/components/parallel-coordinates-plot-options.config-2BbzNgJ9.cjs +0 -20
- package/components/parallel-coordinates-plot-options.config-DbuNgevO.js +0 -48
- package/components/parallel-coordinates-plot-options.de-BwbOcCnH.js +0 -31
- package/components/parallel-coordinates-plot-options.en-BlzPfF-b.js +0 -31
- package/components/parallel-coordinates-plot-options.es-CPAqJPEY.js +0 -31
- package/components/parallel-coordinates-plot-options.fr-DRTOCvqg.js +0 -31
- package/components/parallel-coordinates-plot-options.nl-DqXxaV_Z.js +0 -31
- package/components/parallel-coordinates-plot-positioning.config-DMQ-JdJa.cjs +0 -20
- package/components/parallel-coordinates-plot-positioning.config-DY4k14h-.js +0 -48
- package/components/parallel-coordinates-plot-slots.config-GvYC-RXK.js +0 -46
- package/components/parallel-coordinates-plot-slots.config-s_tLqGA-.cjs +0 -20
- package/components/period-over-period-condition.const-BZ7j5Z5t.js +0 -29
- package/components/periods.const-NCTkxnvG.js +0 -155
- package/components/pinky-CtuaRwwY.js +0 -68
- package/components/pivot-table-options.config-CTz4bcGJ.js +0 -249
- package/components/pivot-table-options.config-D6Hdgnof.cjs +0 -20
- package/components/pivot-table-options.de-CZjCOf23.js +0 -67
- package/components/pivot-table-options.en-Z6QZwj0n.js +0 -67
- package/components/pivot-table-options.es-DW1enov2.js +0 -67
- package/components/pivot-table-options.fr-Cl4jkSR4.js +0 -67
- package/components/pivot-table-options.nl-CaWEP9qN.js +0 -67
- package/components/pivot-table-positioning.config-BrD6ejPq.js +0 -55
- package/components/pivot-table-positioning.config-DoMx9qf8.cjs +0 -20
- package/components/pivot-table-slots.config-BAW0U3nh.js +0 -55
- package/components/pivot-table-slots.config-KlYXL90k.cjs +0 -20
- package/components/pl-4xvkt0Pl.js +0 -126
- package/components/pragmatic-element-adapter-D0LRKx5U.js +0 -1253
- package/components/pragmatic-element-adapter-DdyH32ix.cjs +0 -24
- package/components/pt-BUpCBhz9.js +0 -126
- package/components/pyramid-chart-options.config-C7btzuZj.js +0 -220
- package/components/pyramid-chart-options.config-ClLsv7PT.cjs +0 -20
- package/components/pyramid-chart-options.de-BYqibA2g.cjs +0 -20
- package/components/pyramid-chart-options.de-C7n_k-tE.js +0 -102
- package/components/pyramid-chart-options.en-Cu93qdAo.js +0 -102
- package/components/pyramid-chart-options.en-HiLgjfbn.cjs +0 -20
- package/components/pyramid-chart-options.es-BQ8qCZ32.cjs +0 -20
- package/components/pyramid-chart-options.es-DCRAv4r_.js +0 -102
- package/components/pyramid-chart-options.fr-BA7xAAsG.cjs +0 -20
- package/components/pyramid-chart-options.fr-CLXgcrPz.js +0 -102
- package/components/pyramid-chart-options.nl-BYiPyjuQ.cjs +0 -20
- package/components/pyramid-chart-options.nl-CylUmHpw.js +0 -102
- package/components/pyramid-chart-positioning.config-Bz-ZEuur.cjs +0 -20
- package/components/pyramid-chart-positioning.config-QOCFPfhT.js +0 -55
- package/components/pyramid-chart-slots.config-CreUpxI2.cjs +0 -20
- package/components/pyramid-chart-slots.config-CsMMyhV3.js +0 -50
- package/components/radar-chart-options.config-B5WP2MPc.cjs +0 -20
- package/components/radar-chart-options.config-CtA6MpUp.js +0 -152
- package/components/radar-chart-options.de-BZPerBca.js +0 -46
- package/components/radar-chart-options.de-D9sVJ3e-.cjs +0 -20
- package/components/radar-chart-options.en-Brb_kgjH.cjs +0 -20
- package/components/radar-chart-options.en-tDJgJQVC.js +0 -46
- package/components/radar-chart-options.es-BmpV458O.cjs +0 -20
- package/components/radar-chart-options.es-Dz4wRR-P.js +0 -46
- package/components/radar-chart-options.fr-B-gaDJX4.cjs +0 -20
- package/components/radar-chart-options.fr-D5KXeury.js +0 -46
- package/components/radar-chart-options.nl-D3_CmNB3.js +0 -46
- package/components/radar-chart-options.nl-DH_wKvgI.cjs +0 -20
- package/components/radar-chart-positioning.config-B-hbgxmM.cjs +0 -20
- package/components/radar-chart-positioning.config-D54nVbnn.js +0 -55
- package/components/radar-chart-slots.config-8Kf_WAFi.js +0 -53
- package/components/radar-chart-slots.config-B3oIp-8w.cjs +0 -20
- package/components/radiant-CFMCU8Ue.js +0 -71
- package/components/regular-table-options.config-BRmS77t-.js +0 -153
- package/components/regular-table-options.config-nBBnO4ru.cjs +0 -20
- package/components/regular-table-options.de-g9j453gb.js +0 -57
- package/components/regular-table-options.en-BrufALdp.js +0 -57
- package/components/regular-table-options.es-CTDJJHWO.js +0 -57
- package/components/regular-table-options.fr-CwmYI6Kh.js +0 -57
- package/components/regular-table-options.nl-Dco7Br5G.js +0 -57
- package/components/regular-table-positioning.config-DegSA7rc.js +0 -38
- package/components/regular-table-slots.config-UwzWj6gg.cjs +0 -20
- package/components/regular-table-slots.config-r-N9A-qA.js +0 -35
- package/components/resolve-column-presentation-BaEP1mvs.js +0 -34
- package/components/rolldown-runtime-mLOUI7ql.cjs +0 -20
- package/components/route-map-options.config-C65J81_7.js +0 -328
- package/components/route-map-options.config-DS9cCAQK.cjs +0 -20
- package/components/route-map-options.de-C8gPppGo.js +0 -76
- package/components/route-map-options.en-Bqo2qPTY.js +0 -76
- package/components/route-map-options.es-Bk1nyazp.js +0 -76
- package/components/route-map-options.fr-vq0ht9wS.js +0 -76
- package/components/route-map-options.nl-CBhNlitV.js +0 -76
- package/components/route-map-positioning.config-BP_T0wdg.cjs +0 -20
- package/components/route-map-positioning.config-BdcjFezT.js +0 -66
- package/components/route-map-slots.config-DMII2UuP.js +0 -59
- package/components/route-map-slots.config-DfYT65BF.cjs +0 -20
- package/components/royale-Cy1oOAE2.js +0 -60
- package/components/ru-CkNBR3ab.js +0 -126
- package/components/sankey-diagram-options.config-DZDqv5aI.cjs +0 -20
- package/components/sankey-diagram-options.config-nQDCRhKs.js +0 -130
- package/components/sankey-diagram-options.de-CDt5-4Rb.js +0 -63
- package/components/sankey-diagram-options.en-65nfEWo_.js +0 -63
- package/components/sankey-diagram-options.es-JD4SHY3x.js +0 -63
- package/components/sankey-diagram-options.fr-B7wQDggY.js +0 -63
- package/components/sankey-diagram-options.nl-CHqVVjut.js +0 -63
- package/components/sankey-diagram-positioning.config-CJFdnnog.js +0 -66
- package/components/sankey-diagram-positioning.config-CSizvya4.cjs +0 -20
- package/components/sankey-diagram-slots.config-D-_u4w36.cjs +0 -20
- package/components/sankey-diagram-slots.config-DmWIGut0.js +0 -61
- package/components/scatter-plot-options.config-BplrME7w.js +0 -133
- package/components/scatter-plot-options.config-DJW85uFv.cjs +0 -20
- package/components/scatter-plot-options.de-3CPVK7Hi.cjs +0 -20
- package/components/scatter-plot-options.de-CNLrv6j3.js +0 -99
- package/components/scatter-plot-options.en-DigMzpQy.js +0 -99
- package/components/scatter-plot-options.en-Dzvigy8-.cjs +0 -20
- package/components/scatter-plot-options.es-C-IH7GVH.cjs +0 -20
- package/components/scatter-plot-options.es-CQm_VVqJ.js +0 -99
- package/components/scatter-plot-options.fr-Cdp6kPQi.cjs +0 -20
- package/components/scatter-plot-options.fr-s0M39VT4.js +0 -99
- package/components/scatter-plot-options.nl-CqpPIO03.js +0 -99
- package/components/scatter-plot-options.nl-DeINlMqc.cjs +0 -20
- package/components/scatter-plot-positioning.config-0MsqvxF9.cjs +0 -20
- package/components/scatter-plot-positioning.config-BFFT7WH7.js +0 -77
- package/components/scatter-plot-slots.config-B7wQVEEj.js +0 -74
- package/components/scatter-plot-slots.config-CrG6wQtV.cjs +0 -20
- package/components/search-filter-options.config-B-dGVPhS.cjs +0 -20
- package/components/search-filter-options.config-yAz6IIto.js +0 -103
- package/components/search-filter-options.de-BxVThclj.js +0 -42
- package/components/search-filter-options.en-CVxOFFq-.js +0 -42
- package/components/search-filter-options.es-YKtCfXeL.js +0 -42
- package/components/search-filter-options.fr-GGa8ofab.js +0 -42
- package/components/search-filter-options.nl-ysVe1z-i.js +0 -42
- package/components/search-filter-positioning.config-DOSL-FX_.js +0 -38
- package/components/search-filter-slots.config-D8-V0BT5.js +0 -39
- package/components/search-filter-slots.config-DP06ulJA.cjs +0 -20
- package/components/seasonal-DZkRSBgY.js +0 -76
- package/components/set-locale-B1IG9a_t.cjs +0 -20
- package/components/set-locale-jywkF7Cd.js +0 -43
- package/components/set-nested-value-V1TdquO3.js +0 -33
- package/components/slicer-filter-options.config-BtGkT2hI.js +0 -235
- package/components/slicer-filter-options.config-Cyjd_SRY.cjs +0 -20
- package/components/slicer-filter-options.de-Ck5STkcT.js +0 -69
- package/components/slicer-filter-options.en-RaYV5qQy.js +0 -69
- package/components/slicer-filter-options.es-C1LS6cqV.js +0 -69
- package/components/slicer-filter-options.fr-CYOej3j3.js +0 -69
- package/components/slicer-filter-options.nl-B9CyFXTX.js +0 -69
- package/components/slicer-filter-positioning.config-CTd0dgry.cjs +0 -20
- package/components/slicer-filter-positioning.config-uZCxM9WR.js +0 -48
- package/components/slicer-filter-slots.config-CHKpdJvF.cjs +0 -20
- package/components/slicer-filter-slots.config-DR0Wg_Zr.js +0 -44
- package/components/slider-filter-options.config-BeIw6IrQ.cjs +0 -20
- package/components/slider-filter-options.config-D_yZ_nFz.js +0 -72
- package/components/slider-filter-options.de-CUPN4B_3.js +0 -35
- package/components/slider-filter-options.en-CqnlQHF8.js +0 -35
- package/components/slider-filter-options.es-CN-cg2rH.js +0 -35
- package/components/slider-filter-options.fr-BxgSJRs4.js +0 -35
- package/components/slider-filter-options.nl-Cd41AI1Z.js +0 -35
- package/components/slider-filter-positioning.config-DSoEN2ip.js +0 -38
- package/components/slider-filter-slots.config-9R298H0t.cjs +0 -20
- package/components/slider-filter-slots.config-BUHw-32u.js +0 -43
- package/components/slot-labels.config-3nXLBRdr.js +0 -63
- package/components/slot-menu-C_KXMZ40.js +0 -429
- package/components/slot-menu-UZvDoXeJ.cjs +0 -71
- package/components/slot-menu-list-BM8QDl6f.cjs +0 -44
- package/components/slot-menu-list-C5b4YdMp.js +0 -348
- package/components/slot-role-classification-2wChhpcq.cjs +0 -20
- package/components/slot-role-classification-B8bkGhQ_.js +0 -133
- package/components/slots-config-Cd4xAG4H.cjs +0 -20
- package/components/slots-config-GlSNH7Gr.js +0 -76
- package/components/spacer-options.config-C27xkF_H.js +0 -23
- package/components/speedometer-chart-options.config-BL7evgzP.js +0 -251
- package/components/speedometer-chart-options.config-CEIZfeYG.cjs +0 -20
- package/components/speedometer-chart-options.de-9J5HFt8T.js +0 -66
- package/components/speedometer-chart-options.en-DSQsXJfa.js +0 -66
- package/components/speedometer-chart-options.es-BGphL673.js +0 -66
- package/components/speedometer-chart-options.fr-Cj4C4th7.js +0 -66
- package/components/speedometer-chart-options.nl-BKNd6tYT.js +0 -66
- package/components/speedometer-chart-positioning.config-5_dDGLcj.js +0 -48
- package/components/speedometer-chart-positioning.config-iFrwMA8o.cjs +0 -20
- package/components/speedometer-chart-slots.config-2Y_x52Gy.js +0 -39
- package/components/speedometer-chart-slots.config-S_hQm2MV.cjs +0 -20
- package/components/spike-map-options.config-BRwdTyrp.cjs +0 -20
- package/components/spike-map-options.config-DjoTrAsC.js +0 -415
- package/components/spike-map-options.de-J48HW0-l.js +0 -103
- package/components/spike-map-options.en-Cic1NUan.js +0 -103
- package/components/spike-map-options.es-DbCa45oc.js +0 -103
- package/components/spike-map-options.fr-LqDsPbpZ.js +0 -103
- package/components/spike-map-options.nl-CRaM6WoB.js +0 -103
- package/components/spike-map-positioning.config-DmeQEvYs.js +0 -55
- package/components/spike-map-positioning.config-Il5adl7y.cjs +0 -20
- package/components/spike-map-slots.config-DJWMFPIR.js +0 -47
- package/components/spike-map-slots.config-cKfaD6dQ.cjs +0 -20
- package/components/strip-plot-options.config-DpRoR04b.cjs +0 -20
- package/components/strip-plot-options.config-tDmVlu9U.js +0 -54
- package/components/strip-plot-options.de-vzJck0Vn.js +0 -31
- package/components/strip-plot-options.en-Bdv_ZOrd.js +0 -31
- package/components/strip-plot-options.es-B91vttJc.js +0 -31
- package/components/strip-plot-options.fr-DJQiJ_Zf.js +0 -31
- package/components/strip-plot-options.nl-Dx7PVRrW.js +0 -31
- package/components/strip-plot-positioning.config-BDeWD7-S.js +0 -48
- package/components/strip-plot-positioning.config-Bq6LZ8KO.cjs +0 -20
- package/components/strip-plot-slots.config-DNYlrK_c.cjs +0 -20
- package/components/strip-plot-slots.config-suFyIf5-.js +0 -38
- package/components/sunburst-chart-options.config-Bjue_lQN.js +0 -184
- package/components/sunburst-chart-options.config-DszAtggj.cjs +0 -20
- package/components/sunburst-chart-options.de-Cv5jxNjX.js +0 -60
- package/components/sunburst-chart-options.de-DV_80qR9.cjs +0 -20
- package/components/sunburst-chart-options.en-Zfns8M0i.cjs +0 -20
- package/components/sunburst-chart-options.en-wsOVOyb6.js +0 -60
- package/components/sunburst-chart-options.es-BSKiBxl_.cjs +0 -20
- package/components/sunburst-chart-options.es-Qhu6VcVi.js +0 -60
- package/components/sunburst-chart-options.fr-DOcWgNOZ.cjs +0 -20
- package/components/sunburst-chart-options.fr-GdCEoo8O.js +0 -60
- package/components/sunburst-chart-options.nl-D2JXoYTB.cjs +0 -20
- package/components/sunburst-chart-options.nl-oTUKol5z.js +0 -60
- package/components/sunburst-chart-positioning.config-DKmnqc9L.cjs +0 -20
- package/components/sunburst-chart-positioning.config-HfC8--mz.js +0 -48
- package/components/sunburst-chart-slots.config-BqVT-h0Z.js +0 -38
- package/components/sunburst-chart-slots.config-DkUUt5RF.cjs +0 -20
- package/components/sv-D2kQHkgH.js +0 -126
- package/components/symbol-map-options.config-Ce0Kv7N7.cjs +0 -20
- package/components/symbol-map-options.config-Dyeya5Z2.js +0 -179
- package/components/symbol-map-options.de-CAapWyZM.js +0 -66
- package/components/symbol-map-options.en-CaXeV5i_.js +0 -66
- package/components/symbol-map-options.es-Ccu0xWZb.js +0 -66
- package/components/symbol-map-options.fr-B7F1XlQX.js +0 -66
- package/components/symbol-map-options.nl-DkV83AGA.js +0 -66
- package/components/symbol-map-positioning.config-BhH19JiS.js +0 -55
- package/components/symbol-map-positioning.config-TjmD9qTx.cjs +0 -20
- package/components/symbol-map-slots.config-DwNf547A.cjs +0 -20
- package/components/symbol-map-slots.config-Rhpher5o.js +0 -53
- package/components/text-options.config-BwBCG2yo.cjs +0 -20
- package/components/text-options.config-CXhvzzPF.js +0 -67
- package/components/text-options.de-Rtef15Lz.js +0 -30
- package/components/text-options.en-YdJ2bVwv.js +0 -30
- package/components/text-options.es-Chd8-zuc.js +0 -30
- package/components/text-options.fr-CWeBOXaW.js +0 -30
- package/components/text-options.nl-CyY1z7nM.js +0 -30
- package/components/text-slots.config-CPghLc8b.cjs +0 -20
- package/components/text-slots.config-Dzj4-x2G.js +0 -24
- package/components/themes-CQZd578_.js +0 -72
- package/components/tokens-Ov1pCR4Y.js +0 -29
- package/components/tr-B66hMkRl.js +0 -138
- package/components/treemap-chart-options.config-BzOCEWog.js +0 -211
- package/components/treemap-chart-options.config-Cpj6vD6I.cjs +0 -20
- package/components/treemap-chart-options.de-ByDBntoA.js +0 -64
- package/components/treemap-chart-options.en-0-5g1Vjs.js +0 -64
- package/components/treemap-chart-options.es-CDkb_3c3.js +0 -64
- package/components/treemap-chart-options.fr-rj0fjvUO.js +0 -64
- package/components/treemap-chart-options.nl-CQjDtoqG.js +0 -64
- package/components/treemap-chart-positioning.config-DRcKF0l5.js +0 -55
- package/components/treemap-chart-positioning.config-QWbeQo0k.cjs +0 -20
- package/components/treemap-chart-slots.config-CS3ot6ZJ.cjs +0 -20
- package/components/treemap-chart-slots.config-DRcafVU-.js +0 -47
- package/components/type-check-CGREdneG.js +0 -52
- package/components/types-DNRGKFSD.js +0 -44
- package/components/urban-8R0DqHZs.js +0 -71
- package/components/utils-D_2sPb6e.js +0 -240
- package/components/utils-NUBVlX2X.cjs +0 -20
- package/components/v4-DIjJgmR0.js +0 -49
- package/components/venn-diagram-options.config-BMlduwIp.js +0 -24
- package/components/venn-diagram-options.config-BamlR1qo.cjs +0 -20
- package/components/venn-diagram-positioning.config-CQhTMPoU.js +0 -55
- package/components/venn-diagram-positioning.config-D0iy_fTw.cjs +0 -20
- package/components/venn-diagram-slots.config-CMDndPVi.js +0 -47
- package/components/venn-diagram-slots.config-DYTmU8v2.cjs +0 -20
- package/components/video-options.config-BhBpkaLJ.cjs +0 -20
- package/components/video-options.config-DdfSTJEJ.js +0 -127
- package/components/video-options.de-CqDvojKb.js +0 -60
- package/components/video-options.en-DWsFJndr.js +0 -60
- package/components/video-options.es-C986CdLZ.js +0 -60
- package/components/video-options.fr-CF8lEOzZ.js +0 -60
- package/components/video-options.nl-DnHgROBb.js +0 -60
- package/components/video-slots.config-DMut7o7r.cjs +0 -20
- package/components/video-slots.config-Utnn0DBW.js +0 -24
- package/components/vivid-YDTQ3C2-.js +0 -72
- package/components/viz-item-menu/index.cjs +0 -20
- package/components/viz-item-menu/index.d.ts +0 -8
- package/components/viz-item-menu/index.js +0 -21
- package/components/viz-item-menu/types.d.ts +0 -9
- package/components/viz-item-menu/viz-item-menu.d.ts +0 -85
- package/components/viz-item-menu-D0h7wZWt.cjs +0 -63
- package/components/viz-item-menu-Dy3hXg1_.js +0 -203
- package/components/wordcloud-chart-options.config-BQ4Z-vPT.cjs +0 -20
- package/components/wordcloud-chart-options.config-y9Z5I_ZN.js +0 -97
- package/components/wordcloud-chart-options.de-0T6RwBxn.js +0 -49
- package/components/wordcloud-chart-options.en-xMN7HxWU.js +0 -49
- package/components/wordcloud-chart-options.es-DPccPG_x.js +0 -49
- package/components/wordcloud-chart-options.fr-D6DKbL9I.js +0 -49
- package/components/wordcloud-chart-options.nl-CBKMvA4E.js +0 -49
- package/components/wordcloud-chart-positioning.config-BP8mOBS_.js +0 -55
- package/components/wordcloud-chart-positioning.config-DN9GHjCI.cjs +0 -20
- package/components/wordcloud-chart-slots.config-CvabtgbP.js +0 -45
- package/components/wordcloud-chart-slots.config-V29v2Fhr.cjs +0 -20
- package/components/zh-CN-EbmFbkUF.js +0 -126
- package/components/zh-TW-zX5KG7hP.js +0 -126
- package/deprecated-react/components/viz-item-menu.component.cjs +0 -1
- package/react/components/viz-item-menu.component.ts +0 -33
- package/react/esm/components/viz-item-menu.component.d.ts +0 -16
- package/react/esm/components/viz-item-menu.component.js +0 -21
- package/standalone/chunks/add-to-dashboard-B8vSrVm1.js +0 -148
- package/standalone/chunks/area-chart-options.config-CXWPLl-0.js +0 -2
- package/standalone/chunks/area-chart-options.de-Dr8RVJtb.js +0 -2
- package/standalone/chunks/area-chart-options.en-DV1AZ274.js +0 -2
- package/standalone/chunks/area-chart-options.es-Cg7uU7OK.js +0 -2
- package/standalone/chunks/area-chart-options.fr-CJjgrAt2.js +0 -2
- package/standalone/chunks/area-chart-options.nl-CTGxVXNo.js +0 -2
- package/standalone/chunks/axis-options.config-DP9f04t6.js +0 -2
- package/standalone/chunks/axis-options.i18n-BwkGC9PX.js +0 -2
- package/standalone/chunks/bar-chart-options.config-w4REKu0t.js +0 -2
- package/standalone/chunks/bar-chart-options.de-DCVBVtFi.js +0 -2
- package/standalone/chunks/bar-chart-options.en-B4xiZxTy.js +0 -2
- package/standalone/chunks/bar-chart-options.es-UqehXB9Z.js +0 -2
- package/standalone/chunks/bar-chart-options.fr-CaUBeZBK.js +0 -2
- package/standalone/chunks/bar-chart-options.nl-C2tFvUE8.js +0 -2
- package/standalone/chunks/base-Cxkw-IoQ.js +0 -2
- package/standalone/chunks/box-plot-options.config-BlYMd4FN.js +0 -2
- package/standalone/chunks/box-plot-options.de-RDAv8kHb.js +0 -2
- package/standalone/chunks/box-plot-options.en-kGLfLsv3.js +0 -2
- package/standalone/chunks/box-plot-options.es-Dw3ivv22.js +0 -2
- package/standalone/chunks/box-plot-options.fr-De5nkQNr.js +0 -2
- package/standalone/chunks/box-plot-options.nl-DD1f-Nlt.js +0 -2
- package/standalone/chunks/bullet-chart-options.config-Cc5lKDjs.js +0 -2
- package/standalone/chunks/bullet-chart-options.de-Ci81seQn.js +0 -2
- package/standalone/chunks/bullet-chart-options.en-Dk95moRX.js +0 -2
- package/standalone/chunks/bullet-chart-options.es-eIqahAOr.js +0 -2
- package/standalone/chunks/bullet-chart-options.fr-CEABbpT0.js +0 -2
- package/standalone/chunks/bullet-chart-options.nl-B3gOPn5D.js +0 -2
- package/standalone/chunks/calculate-data-field-icon-CrEVAfzJ.js +0 -2
- package/standalone/chunks/chart-helpers-BplLoVQz.js +0 -2
- package/standalone/chunks/choropleth-map-options.config-Ul1FSTwf.js +0 -2
- package/standalone/chunks/color-DaeCRJ5Q.js +0 -2
- package/standalone/chunks/color-range-utils-CLqVCA5J.js +0 -2
- package/standalone/chunks/column-chart-options.config-v7fBgXRI.js +0 -2
- package/standalone/chunks/column-chart-options.de-OoMpZc7N.js +0 -2
- package/standalone/chunks/column-chart-options.en-B4xiZxTy.js +0 -2
- package/standalone/chunks/column-chart-options.es-BL-wKXpp.js +0 -2
- package/standalone/chunks/column-chart-options.fr-CaUBeZBK.js +0 -2
- package/standalone/chunks/column-chart-options.nl-C2tFvUE8.js +0 -2
- package/standalone/chunks/combination-chart-options.config-C9hmUPal.js +0 -2
- package/standalone/chunks/combination-chart-options.de-ChlEhT09.js +0 -2
- package/standalone/chunks/combination-chart-options.en-DhCXqnwj.js +0 -2
- package/standalone/chunks/combination-chart-options.es-DESqZp0U.js +0 -2
- package/standalone/chunks/combination-chart-options.fr-v6P2xQCi.js +0 -2
- package/standalone/chunks/combination-chart-options.nl-D8ato2ve.js +0 -2
- package/standalone/chunks/data-broker-Dgg5mQze.js +0 -2
- package/standalone/chunks/date-comparison-filter-slots.config-DfHq9lB8.js +0 -2
- package/standalone/chunks/de-Cdj3urck.js +0 -2
- package/standalone/chunks/decompose-numeric-format-BXLQ97e2.js +0 -2
- package/standalone/chunks/default-local-formats-CES1ItiK.js +0 -2
- package/standalone/chunks/display-settings-binning-CkTukb8z.js +0 -38
- package/standalone/chunks/display-settings-datetime-BwSjSHkd.js +0 -199
- package/standalone/chunks/display-settings-grand-totals-BI5D3vGd.js +0 -26
- package/standalone/chunks/display-settings-numeric-Bo_aBmkG.js +0 -172
- package/standalone/chunks/display-settings-period-over-period-Ctzr60H_.js +0 -209
- package/standalone/chunks/donut-chart-options.config-BuZj-QX5.js +0 -2
- package/standalone/chunks/donut-chart-options.de-QusCBL9B.js +0 -2
- package/standalone/chunks/donut-chart-options.en-D0ligFH6.js +0 -2
- package/standalone/chunks/donut-chart-options.es-Bmn34sGt.js +0 -2
- package/standalone/chunks/donut-chart-options.fr-DGBawYKp.js +0 -2
- package/standalone/chunks/donut-chart-options.nl-DzNTu0v4.js +0 -2
- package/standalone/chunks/embed-DjpHVUzS.js +0 -228
- package/standalone/chunks/en-BD2RCLuw.js +0 -2
- package/standalone/chunks/en-GB-DnwmFNwC.js +0 -2
- package/standalone/chunks/en-US-BD2RCLuw.js +0 -2
- package/standalone/chunks/es-Dtd2N5jR.js +0 -2
- package/standalone/chunks/evolution-number-options.config-B5Cj0YAQ.js +0 -2
- package/standalone/chunks/evolution-number-options.de-Ch0LaHwI.js +0 -2
- package/standalone/chunks/evolution-number-options.en-riChGfa6.js +0 -2
- package/standalone/chunks/evolution-number-options.es-BdG3lvVQ.js +0 -2
- package/standalone/chunks/evolution-number-options.fr-_h0kLeRL.js +0 -2
- package/standalone/chunks/evolution-number-options.nl-CqycrLe1.js +0 -2
- package/standalone/chunks/filters-CyrW0E5Y.js +0 -544
- package/standalone/chunks/formatter-B7zz6UOp.js +0 -2
- package/standalone/chunks/formula-codemirror-IUKFE1Kz.js +0 -197
- package/standalone/chunks/fr-BYvUUvgQ.js +0 -2
- package/standalone/chunks/funnel-chart-options.config-1SyJ_qYd.js +0 -2
- package/standalone/chunks/funnel-chart-options.de-BTxwd7Pe.js +0 -2
- package/standalone/chunks/funnel-chart-options.en-CmY-uO1P.js +0 -2
- package/standalone/chunks/funnel-chart-options.es-DLqBydsE.js +0 -2
- package/standalone/chunks/funnel-chart-options.fr-ztQ5OMZi.js +0 -2
- package/standalone/chunks/funnel-chart-options.nl-DVysx7tP.js +0 -2
- package/standalone/chunks/heat-map-options.config-DYIrP8cV.js +0 -2
- package/standalone/chunks/heat-table-options.config-ByHwT44G.js +0 -2
- package/standalone/chunks/heat-table-options.de-BMx67hXo.js +0 -2
- package/standalone/chunks/heat-table-options.en-BbobGoXs.js +0 -2
- package/standalone/chunks/heat-table-options.es-zKo-QMBY.js +0 -2
- package/standalone/chunks/heat-table-options.fr-XSTL1CSb.js +0 -2
- package/standalone/chunks/heat-table-options.nl-Cgcccsee.js +0 -2
- package/standalone/chunks/item-option-action-button-group-DY3cJhwT.js +0 -35
- package/standalone/chunks/item-option-base-ByIsjLNr.js +0 -38
- package/standalone/chunks/item-option-color-palette-picker-CAJQQYlJ.js +0 -22
- package/standalone/chunks/item-option-color-picker-DaydWbp4.js +0 -16
- package/standalone/chunks/item-option-color-range-ZtyqYH6s.js +0 -80
- package/standalone/chunks/item-option-guidelines-jl3DurnC.js +0 -117
- package/standalone/chunks/item-option-multi-language-field-B1yL1_h2.js +0 -15
- package/standalone/chunks/item-option-number-field-z7U9fqwG.js +0 -20
- package/standalone/chunks/item-option-panel-Brtv-ZJc.js +0 -298
- package/standalone/chunks/item-option-picker-5TZm8ava.js +0 -19
- package/standalone/chunks/item-option-position-picker-D1xBaRVj.js +0 -14
- package/standalone/chunks/item-option-positions-number-field-BVUJlmrc.js +0 -31
- package/standalone/chunks/item-option-radio-button-group-BUiIeoaT.js +0 -19
- package/standalone/chunks/item-option-slider-CkDEpJ_1.js +0 -15
- package/standalone/chunks/item-option-switch-C1AuP-TA.js +0 -12
- package/standalone/chunks/item-option-text-field-BNJ1AyYT.js +0 -15
- package/standalone/chunks/item-slot-picker-panel-VIf7-0St.js +0 -439
- package/standalone/chunks/line-chart-options.config-DyqQLGw8.js +0 -2
- package/standalone/chunks/line-chart-options.de-BScjvJsI.js +0 -2
- package/standalone/chunks/line-chart-options.en-BVWFsre-.js +0 -2
- package/standalone/chunks/line-chart-options.es-CxNJevNs.js +0 -2
- package/standalone/chunks/line-chart-options.fr-LCsLx0Uh.js +0 -2
- package/standalone/chunks/line-chart-options.nl-BOgcjx48.js +0 -2
- package/standalone/chunks/lit-localize-CIGP-NUw.js +0 -2
- package/standalone/chunks/load-data-fields-for-datasets-CjOt0TtW.js +0 -25
- package/standalone/chunks/load-formula-codemirror-CfPwEi_Z.js +0 -6
- package/standalone/chunks/localize-BXHWaHdZ.js +0 -2
- package/standalone/chunks/localized-decorator-Buib6Rq1.js +0 -2
- package/standalone/chunks/localized-mixin-DY0QxOC9.js +0 -2
- package/standalone/chunks/luzmo-icon-markup-Cw93OB80.js +0 -13
- package/standalone/chunks/nl-DxhHxYCs.js +0 -2
- package/standalone/chunks/ohlc-chart-options.config-Bu2GKlAH.js +0 -2
- package/standalone/chunks/period-over-period-condition.const-AC_onvUf.js +0 -2
- package/standalone/chunks/periods.const-Cie50jR4.js +0 -2
- package/standalone/chunks/pyramid-chart-options.config-CBd-pgn_.js +0 -2
- package/standalone/chunks/pyramid-chart-options.de-CBL_8UjH.js +0 -2
- package/standalone/chunks/pyramid-chart-options.en-CTozc1Uh.js +0 -2
- package/standalone/chunks/pyramid-chart-options.es-BKciL-nO.js +0 -2
- package/standalone/chunks/pyramid-chart-options.fr-B04m8B_b.js +0 -2
- package/standalone/chunks/pyramid-chart-options.nl-DIhj1NYF.js +0 -2
- package/standalone/chunks/radar-chart-options.config-CnQ8mbs9.js +0 -2
- package/standalone/chunks/radar-chart-options.de-_LSueG69.js +0 -2
- package/standalone/chunks/radar-chart-options.en-DBA8TpKJ.js +0 -2
- package/standalone/chunks/radar-chart-options.es-DjSsFQkP.js +0 -2
- package/standalone/chunks/radar-chart-options.fr-CCh2jYPS.js +0 -2
- package/standalone/chunks/radar-chart-options.nl-tZ0JRjXD.js +0 -2
- package/standalone/chunks/route-map-options.config-CWyA9_SB.js +0 -2
- package/standalone/chunks/scatter-plot-options.config-BV9Lb6-v.js +0 -2
- package/standalone/chunks/scatter-plot-options.de-Dg3O1b2R.js +0 -2
- package/standalone/chunks/scatter-plot-options.en-CJH2ZlFW.js +0 -2
- package/standalone/chunks/scatter-plot-options.es-7kExRi4J.js +0 -2
- package/standalone/chunks/scatter-plot-options.fr-Bbkf8efT.js +0 -2
- package/standalone/chunks/scatter-plot-options.nl-zrEXoM-k.js +0 -2
- package/standalone/chunks/spike-map-options.config-YOYHTzZs.js +0 -2
- package/standalone/chunks/sunburst-chart-options.config-DRjBFJV0.js +0 -2
- package/standalone/chunks/sunburst-chart-options.de-D6enQCjV.js +0 -2
- package/standalone/chunks/sunburst-chart-options.en-D9DSivE2.js +0 -2
- package/standalone/chunks/sunburst-chart-options.es-Bb7iCI1h.js +0 -2
- package/standalone/chunks/sunburst-chart-options.fr-CCzUgv7r.js +0 -2
- package/standalone/chunks/sunburst-chart-options.nl-bGOCvc4m.js +0 -2
- package/standalone/chunks/task-pfWn4DHD.js +0 -2
- package/standalone/chunks/themes-BD5sKr3j.js +0 -2
- package/standalone/chunks/type-check-CC6bgirK.js +0 -2
- package/standalone/chunks/types-BS6dxSMT.js +0 -2
- package/standalone/chunks/v4-CI0qP0ur.js +0 -2
- package/standalone/chunks/version-DJES6maY.js +0 -2
|
@@ -0,0 +1,4371 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2026 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
import "./tokens-6HmQYnEP.js";
|
|
21
|
+
import { c as e, d as t, s as n, u as r } from "./ai-interaction-textarea-CnQ2FBc7.js";
|
|
22
|
+
import { i, n as a } from "./base-rAte-QzM.js";
|
|
23
|
+
import { t as o } from "./decorate-B2TzfnLZ.js";
|
|
24
|
+
import { t as s } from "./defineProperty-DIhE-wKn.js";
|
|
25
|
+
import { msg as c } from "@lit/localize/lit-localize";
|
|
26
|
+
import { luzmoArrowRotateLeft as l, luzmoEllipsisVertical as u, luzmoIcon as d, luzmoSpin as f, luzmoThumbsDown as p, luzmoThumbsUp as ee } from "@luzmo/icons";
|
|
27
|
+
import "@luzmo/lucero/action-button";
|
|
28
|
+
import "@luzmo/lucero/button";
|
|
29
|
+
import "@luzmo/lucero/chat-message";
|
|
30
|
+
import "@luzmo/lucero/icon";
|
|
31
|
+
import "@luzmo/lucero/overlay";
|
|
32
|
+
import "@luzmo/lucero/popover";
|
|
33
|
+
import "@luzmo/lucero/progress-steps";
|
|
34
|
+
import "@luzmo/lucero/tooltip";
|
|
35
|
+
import { html as m, nothing as h, unsafeCSS as te } from "lit";
|
|
36
|
+
import { property as g, state as ne } from "lit/decorators.js";
|
|
37
|
+
import { unsafeHTML as _ } from "lit/directives/unsafe-html.js";
|
|
38
|
+
import "@luzmo/lucero/question-box";
|
|
39
|
+
import { guard as re } from "lit/directives/guard.js";
|
|
40
|
+
import { keyed as ie } from "lit/directives/keyed.js";
|
|
41
|
+
// node_modules/dompurify/dist/purify.es.mjs
|
|
42
|
+
function v(e, t) {
|
|
43
|
+
this.v = e, this.k = t;
|
|
44
|
+
}
|
|
45
|
+
function ae(e, t) {
|
|
46
|
+
(t == null || t > e.length) && (t = e.length);
|
|
47
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
48
|
+
return r;
|
|
49
|
+
}
|
|
50
|
+
function oe(e) {
|
|
51
|
+
if (Array.isArray(e)) return e;
|
|
52
|
+
}
|
|
53
|
+
function se(e, t) {
|
|
54
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
55
|
+
if (n != null) {
|
|
56
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
57
|
+
try {
|
|
58
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
59
|
+
if (Object(n) !== n) return;
|
|
60
|
+
c = !1;
|
|
61
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
62
|
+
} catch (e) {
|
|
63
|
+
l = !0, i = e;
|
|
64
|
+
} finally {
|
|
65
|
+
try {
|
|
66
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
67
|
+
} finally {
|
|
68
|
+
if (l) throw i;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return s;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function y() {
|
|
75
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
76
|
+
}
|
|
77
|
+
function ce(e, t) {
|
|
78
|
+
return oe(e) || se(e, t) || le(e, t) || y();
|
|
79
|
+
}
|
|
80
|
+
function le(e, t) {
|
|
81
|
+
if (e) {
|
|
82
|
+
if (typeof e == "string") return ae(e, t);
|
|
83
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
84
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ae(e, t) : void 0;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function ue(e) {
|
|
88
|
+
var t, n;
|
|
89
|
+
function r(t, n) {
|
|
90
|
+
try {
|
|
91
|
+
var a = e[t](n), o = a.value, s = o instanceof v;
|
|
92
|
+
Promise.resolve(s ? o.v : o).then(function(n) {
|
|
93
|
+
if (s) {
|
|
94
|
+
var c = t === "return" && o.k ? t : "next";
|
|
95
|
+
if (!o.k || n.done) return r(c, n);
|
|
96
|
+
n = e[c](n).value;
|
|
97
|
+
}
|
|
98
|
+
i(!!a.done, n);
|
|
99
|
+
}, function(e) {
|
|
100
|
+
r("throw", e);
|
|
101
|
+
});
|
|
102
|
+
} catch (e) {
|
|
103
|
+
i(2, e);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function i(e, i) {
|
|
107
|
+
e === 2 ? t.reject(i) : t.resolve({
|
|
108
|
+
value: i,
|
|
109
|
+
done: e
|
|
110
|
+
}), (t = t.next) ? r(t.key, t.arg) : n = null;
|
|
111
|
+
}
|
|
112
|
+
this._invoke = function(e, i) {
|
|
113
|
+
return new Promise(function(a, o) {
|
|
114
|
+
var s = {
|
|
115
|
+
key: e,
|
|
116
|
+
arg: i,
|
|
117
|
+
resolve: a,
|
|
118
|
+
reject: o,
|
|
119
|
+
next: null
|
|
120
|
+
};
|
|
121
|
+
n ? n = n.next = s : (t = n = s, r(e, i));
|
|
122
|
+
});
|
|
123
|
+
}, typeof e.return != "function" && (this.return = void 0);
|
|
124
|
+
}
|
|
125
|
+
ue.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
126
|
+
return this;
|
|
127
|
+
}, ue.prototype.next = function(e) {
|
|
128
|
+
return this._invoke("next", e);
|
|
129
|
+
}, ue.prototype.throw = function(e) {
|
|
130
|
+
return this._invoke("throw", e);
|
|
131
|
+
}, ue.prototype.return = function(e) {
|
|
132
|
+
return this._invoke("return", e);
|
|
133
|
+
};
|
|
134
|
+
var de = Object.entries, fe = Object.setPrototypeOf, pe = Object.isFrozen, me = Object.getPrototypeOf, he = Object.getOwnPropertyDescriptor, b = Object.freeze, x = Object.seal, ge = Object.create, _e = typeof Reflect < "u" && Reflect, ve = _e.apply, ye = _e.construct;
|
|
135
|
+
b ||= function(e) {
|
|
136
|
+
return e;
|
|
137
|
+
}, x ||= function(e) {
|
|
138
|
+
return e;
|
|
139
|
+
}, ve ||= function(e, t) {
|
|
140
|
+
var n = [...arguments].slice(2);
|
|
141
|
+
return e.apply(t, n);
|
|
142
|
+
}, ye ||= function(e) {
|
|
143
|
+
return new e(...[...arguments].slice(1));
|
|
144
|
+
};
|
|
145
|
+
var S = D(Array.prototype.forEach);
|
|
146
|
+
Array.prototype.indexOf;
|
|
147
|
+
var be = D(Array.prototype.lastIndexOf), xe = D(Array.prototype.pop), Se = D(Array.prototype.push), Ce = D(Array.prototype.slice), we = D(Array.prototype.splice), Te = Array.isArray, Ee = ze(Set), De = D(Set.prototype.add), Oe = D(Set.prototype.has), ke = D(String.prototype.toLowerCase), Ae = D(String.prototype.toString), je = D(String.prototype.match), Me = D(String.prototype.replace), Ne = D(String.prototype.indexOf), Pe = D(String.prototype.trim), Fe = D(Number.prototype.toString), Ie = D(Boolean.prototype.toString), Le = typeof BigInt > "u" ? null : D(BigInt.prototype.toString), Re = typeof Symbol > "u" ? null : D(Symbol.prototype.toString), C = D(Object.prototype.hasOwnProperty), w = D(Object.prototype.toString), T = D(RegExp.prototype.test), E = ze(TypeError);
|
|
148
|
+
function D(e) {
|
|
149
|
+
return function(t) {
|
|
150
|
+
t instanceof RegExp && (t.lastIndex = 0);
|
|
151
|
+
var n = [...arguments].slice(1);
|
|
152
|
+
return ve(e, t, n);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
function ze(e) {
|
|
156
|
+
return function() {
|
|
157
|
+
return ye(e, [...arguments]);
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
function O(e, t) {
|
|
161
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ke;
|
|
162
|
+
if (fe && fe(e, null), !Te(t)) return e;
|
|
163
|
+
let r = t.length;
|
|
164
|
+
for (; r--;) {
|
|
165
|
+
let i = t[r];
|
|
166
|
+
if (typeof i == "string") {
|
|
167
|
+
let e = n(i);
|
|
168
|
+
e !== i && (pe(t) || (t[r] = e), i = e);
|
|
169
|
+
}
|
|
170
|
+
e[i] = !0;
|
|
171
|
+
}
|
|
172
|
+
return e;
|
|
173
|
+
}
|
|
174
|
+
function Be(e) {
|
|
175
|
+
for (let t = 0; t < e.length; t++) C(e, t) || (e[t] = null);
|
|
176
|
+
return e;
|
|
177
|
+
}
|
|
178
|
+
function k(e) {
|
|
179
|
+
let t = ge(null);
|
|
180
|
+
for (let r of de(e)) {
|
|
181
|
+
var n = ce(r, 2);
|
|
182
|
+
let i = n[0], a = n[1];
|
|
183
|
+
C(e, i) && (t[i] = Te(a) ? Be(a) : a && typeof a == "object" && a.constructor === Object ? k(a) : a);
|
|
184
|
+
}
|
|
185
|
+
return t;
|
|
186
|
+
}
|
|
187
|
+
function Ve(e) {
|
|
188
|
+
switch (typeof e) {
|
|
189
|
+
case "string": return e;
|
|
190
|
+
case "number": return Fe(e);
|
|
191
|
+
case "boolean": return Ie(e);
|
|
192
|
+
case "bigint": return Le ? Le(e) : "0";
|
|
193
|
+
case "symbol": return Re ? Re(e) : "Symbol()";
|
|
194
|
+
case "undefined": return w(e);
|
|
195
|
+
case "function":
|
|
196
|
+
case "object": {
|
|
197
|
+
if (e === null) return w(e);
|
|
198
|
+
let t = e, n = A(t, "toString");
|
|
199
|
+
if (typeof n == "function") {
|
|
200
|
+
let e = n(t);
|
|
201
|
+
return typeof e == "string" ? e : w(e);
|
|
202
|
+
}
|
|
203
|
+
return w(e);
|
|
204
|
+
}
|
|
205
|
+
default: return w(e);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
function A(e, t) {
|
|
209
|
+
for (; e !== null;) {
|
|
210
|
+
let n = he(e, t);
|
|
211
|
+
if (n) {
|
|
212
|
+
if (n.get) return D(n.get);
|
|
213
|
+
if (typeof n.value == "function") return D(n.value);
|
|
214
|
+
}
|
|
215
|
+
e = me(e);
|
|
216
|
+
}
|
|
217
|
+
function n() {
|
|
218
|
+
return null;
|
|
219
|
+
}
|
|
220
|
+
return n;
|
|
221
|
+
}
|
|
222
|
+
function He(e, t) {
|
|
223
|
+
for (; e !== null;) {
|
|
224
|
+
let n = he(e, t);
|
|
225
|
+
if (n) return n.get ? D(n.get) : null;
|
|
226
|
+
e = me(e);
|
|
227
|
+
}
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
function Ue(e) {
|
|
231
|
+
try {
|
|
232
|
+
return T(e, ""), !0;
|
|
233
|
+
} catch {
|
|
234
|
+
return !1;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
var We = b(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Ge = b(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Ke = b([
|
|
238
|
+
"feBlend",
|
|
239
|
+
"feColorMatrix",
|
|
240
|
+
"feComponentTransfer",
|
|
241
|
+
"feComposite",
|
|
242
|
+
"feConvolveMatrix",
|
|
243
|
+
"feDiffuseLighting",
|
|
244
|
+
"feDisplacementMap",
|
|
245
|
+
"feDistantLight",
|
|
246
|
+
"feDropShadow",
|
|
247
|
+
"feFlood",
|
|
248
|
+
"feFuncA",
|
|
249
|
+
"feFuncB",
|
|
250
|
+
"feFuncG",
|
|
251
|
+
"feFuncR",
|
|
252
|
+
"feGaussianBlur",
|
|
253
|
+
"feImage",
|
|
254
|
+
"feMerge",
|
|
255
|
+
"feMergeNode",
|
|
256
|
+
"feMorphology",
|
|
257
|
+
"feOffset",
|
|
258
|
+
"fePointLight",
|
|
259
|
+
"feSpecularLighting",
|
|
260
|
+
"feSpotLight",
|
|
261
|
+
"feTile",
|
|
262
|
+
"feTurbulence"
|
|
263
|
+
]), qe = b([
|
|
264
|
+
"animate",
|
|
265
|
+
"color-profile",
|
|
266
|
+
"cursor",
|
|
267
|
+
"discard",
|
|
268
|
+
"font-face",
|
|
269
|
+
"font-face-format",
|
|
270
|
+
"font-face-name",
|
|
271
|
+
"font-face-src",
|
|
272
|
+
"font-face-uri",
|
|
273
|
+
"foreignobject",
|
|
274
|
+
"hatch",
|
|
275
|
+
"hatchpath",
|
|
276
|
+
"mesh",
|
|
277
|
+
"meshgradient",
|
|
278
|
+
"meshpatch",
|
|
279
|
+
"meshrow",
|
|
280
|
+
"missing-glyph",
|
|
281
|
+
"script",
|
|
282
|
+
"set",
|
|
283
|
+
"solidcolor",
|
|
284
|
+
"unknown",
|
|
285
|
+
"use"
|
|
286
|
+
]), Je = b(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Ye = b([
|
|
287
|
+
"maction",
|
|
288
|
+
"maligngroup",
|
|
289
|
+
"malignmark",
|
|
290
|
+
"mlongdiv",
|
|
291
|
+
"mscarries",
|
|
292
|
+
"mscarry",
|
|
293
|
+
"msgroup",
|
|
294
|
+
"mstack",
|
|
295
|
+
"msline",
|
|
296
|
+
"msrow",
|
|
297
|
+
"semantics",
|
|
298
|
+
"annotation",
|
|
299
|
+
"annotation-xml",
|
|
300
|
+
"mprescripts",
|
|
301
|
+
"none"
|
|
302
|
+
]), Xe = b(["#text"]), Ze = b(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Qe = b(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), $e = b(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), et = b([
|
|
303
|
+
"xlink:href",
|
|
304
|
+
"xml:id",
|
|
305
|
+
"xlink:title",
|
|
306
|
+
"xml:space",
|
|
307
|
+
"xmlns:xlink"
|
|
308
|
+
]), tt = x(/{{[\w\W]*|^[\w\W]*}}/g), nt = x(/<%[\w\W]*|^[\w\W]*%>/g), rt = x(/\${[\w\W]*/g), it = x(/^data-[\-\w.\u00B7-\uFFFF]+$/), at = x(/^aria-[\-\w]+$/), ot = x(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), st = x(/^(?:\w+script|data):/i), ct = x(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), lt = x(/^html$/i), ut = x(/^[a-z][.\w]*(-[.\w]+)+$/i), dt = x(/<[/\w!]/g), ft = x(/<[/\w]/g), pt = x(/<\/no(script|embed|frames)/i), mt = x(/\/>/i), j = {
|
|
309
|
+
element: 1,
|
|
310
|
+
attribute: 2,
|
|
311
|
+
text: 3,
|
|
312
|
+
cdataSection: 4,
|
|
313
|
+
entityReference: 5,
|
|
314
|
+
entityNode: 6,
|
|
315
|
+
processingInstruction: 7,
|
|
316
|
+
comment: 8,
|
|
317
|
+
document: 9,
|
|
318
|
+
documentType: 10,
|
|
319
|
+
documentFragment: 11,
|
|
320
|
+
notation: 12
|
|
321
|
+
}, ht = b(O({}, [
|
|
322
|
+
"style",
|
|
323
|
+
"script",
|
|
324
|
+
"xmp",
|
|
325
|
+
"iframe",
|
|
326
|
+
"noembed",
|
|
327
|
+
"noframes",
|
|
328
|
+
"plaintext",
|
|
329
|
+
"noscript"
|
|
330
|
+
])), gt = function() {
|
|
331
|
+
return typeof window > "u" ? null : window;
|
|
332
|
+
}, _t = function(e, t) {
|
|
333
|
+
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
334
|
+
let n = null, r = "data-tt-policy-suffix";
|
|
335
|
+
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
336
|
+
let i = "dompurify" + (n ? "#" + n : "");
|
|
337
|
+
try {
|
|
338
|
+
return e.createPolicy(i, {
|
|
339
|
+
createHTML(e) {
|
|
340
|
+
return e;
|
|
341
|
+
},
|
|
342
|
+
createScriptURL(e) {
|
|
343
|
+
return e;
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
} catch {
|
|
347
|
+
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
348
|
+
}
|
|
349
|
+
}, vt = function() {
|
|
350
|
+
return {
|
|
351
|
+
afterSanitizeAttributes: [],
|
|
352
|
+
afterSanitizeElements: [],
|
|
353
|
+
afterSanitizeShadowDOM: [],
|
|
354
|
+
beforeSanitizeAttributes: [],
|
|
355
|
+
beforeSanitizeElements: [],
|
|
356
|
+
beforeSanitizeShadowDOM: [],
|
|
357
|
+
uponSanitizeAttribute: [],
|
|
358
|
+
uponSanitizeElement: [],
|
|
359
|
+
uponSanitizeShadowNode: []
|
|
360
|
+
};
|
|
361
|
+
}, yt = function(e, t, n, r) {
|
|
362
|
+
return C(e, t) && Te(e[t]) ? O(r.base ? k(r.base) : {}, e[t], r.transform) : n;
|
|
363
|
+
}, bt = function(e, t, n) {
|
|
364
|
+
let r = C(e, t) ? e[t] : void 0;
|
|
365
|
+
return r && typeof r == "object" ? k(r) : n();
|
|
366
|
+
};
|
|
367
|
+
function xt() {
|
|
368
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gt(), t = (e) => xt(e);
|
|
369
|
+
if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== j.document || !e.Element) return t.isSupported = !1, t;
|
|
370
|
+
let n = e.document, r = n, i = r.currentScript;
|
|
371
|
+
e.DocumentFragment;
|
|
372
|
+
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
373
|
+
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
374
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = A(d, "cloneNode"), p = A(d, "remove"), ee = A(d, "removeAttributeNode"), m = A(d, "nextSibling"), h = A(d, "childNodes"), te = A(d, "parentNode"), g = A(d, "shadowRoot"), ne = A(d, "attributes"), _ = o && o.prototype ? A(o.prototype, "nodeType") : null, re = o && o.prototype ? A(o.prototype, "nodeName") : null, ie = o && o.prototype ? A(o.prototype, "ownerDocument") : null, v = function(e) {
|
|
375
|
+
return _ ? _(e) : e.nodeType;
|
|
376
|
+
}, ae = function(e) {
|
|
377
|
+
return re ? re(e) : e.nodeName;
|
|
378
|
+
}, oe = He(d, "namespaceURI"), se = function(e) {
|
|
379
|
+
return oe ? oe(e) : e.namespaceURI;
|
|
380
|
+
};
|
|
381
|
+
if (typeof a == "function") {
|
|
382
|
+
let e = n.createElement("template");
|
|
383
|
+
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
384
|
+
}
|
|
385
|
+
let y, ce = "", le, ue = !1, fe = 0, pe = function() {
|
|
386
|
+
if (fe > 0) throw E("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
387
|
+
}, me = function(e) {
|
|
388
|
+
pe(), fe++;
|
|
389
|
+
try {
|
|
390
|
+
return y.createHTML(e);
|
|
391
|
+
} finally {
|
|
392
|
+
fe--;
|
|
393
|
+
}
|
|
394
|
+
}, he = function(e) {
|
|
395
|
+
pe(), fe++;
|
|
396
|
+
try {
|
|
397
|
+
return y.createScriptURL(e);
|
|
398
|
+
} finally {
|
|
399
|
+
fe--;
|
|
400
|
+
}
|
|
401
|
+
}, _e = function() {
|
|
402
|
+
return ue ||= (le = _t(u, i), !0), le;
|
|
403
|
+
}, ve = n, ye = ve.implementation, Fe = ve.createNodeIterator, Ie = ve.createDocumentFragment, Le = ve.getElementsByTagName, Re = r.importNode, w = vt();
|
|
404
|
+
t.isSupported = typeof de == "function" && typeof te == "function" && ye && ye.createHTMLDocument !== void 0;
|
|
405
|
+
let D = tt, ze = nt, Be = rt, St = it, Ct = at, wt = st, M = ct, Tt = ut, N = ot, P = null, F = O({}, [
|
|
406
|
+
...We,
|
|
407
|
+
...Ge,
|
|
408
|
+
...Ke,
|
|
409
|
+
...Je,
|
|
410
|
+
...Xe
|
|
411
|
+
]), I = null, L = O({}, [
|
|
412
|
+
...Ze,
|
|
413
|
+
...Qe,
|
|
414
|
+
...$e,
|
|
415
|
+
...et
|
|
416
|
+
]), R = Object.seal(ge(null, {
|
|
417
|
+
tagNameCheck: {
|
|
418
|
+
writable: !0,
|
|
419
|
+
configurable: !1,
|
|
420
|
+
enumerable: !0,
|
|
421
|
+
value: null
|
|
422
|
+
},
|
|
423
|
+
attributeNameCheck: {
|
|
424
|
+
writable: !0,
|
|
425
|
+
configurable: !1,
|
|
426
|
+
enumerable: !0,
|
|
427
|
+
value: null
|
|
428
|
+
},
|
|
429
|
+
allowCustomizedBuiltInElements: {
|
|
430
|
+
writable: !0,
|
|
431
|
+
configurable: !1,
|
|
432
|
+
enumerable: !0,
|
|
433
|
+
value: !1
|
|
434
|
+
}
|
|
435
|
+
})), Et = null, Dt = null, z = Object.seal(ge(null, {
|
|
436
|
+
tagCheck: {
|
|
437
|
+
writable: !0,
|
|
438
|
+
configurable: !1,
|
|
439
|
+
enumerable: !0,
|
|
440
|
+
value: null
|
|
441
|
+
},
|
|
442
|
+
attributeCheck: {
|
|
443
|
+
writable: !0,
|
|
444
|
+
configurable: !1,
|
|
445
|
+
enumerable: !0,
|
|
446
|
+
value: null
|
|
447
|
+
}
|
|
448
|
+
})), Ot = !0, kt = !0, At = !1, jt = !0, B = !1, V = !0, Mt = !1, Nt = !1, Pt = null, Ft = null, It = !1, H = !1, Lt = !1, Rt = !1, zt = !0, Bt = !1, Vt = "user-content-", Ht = !0, Ut = !1, Wt = null, Gt = {}, Kt = null, qt = O({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Jt = null, Yt = O({}, [
|
|
449
|
+
"audio",
|
|
450
|
+
"video",
|
|
451
|
+
"img",
|
|
452
|
+
"source",
|
|
453
|
+
"image",
|
|
454
|
+
"track"
|
|
455
|
+
]), Xt = null, Zt = O({}, [
|
|
456
|
+
"alt",
|
|
457
|
+
"class",
|
|
458
|
+
"for",
|
|
459
|
+
"id",
|
|
460
|
+
"label",
|
|
461
|
+
"name",
|
|
462
|
+
"pattern",
|
|
463
|
+
"placeholder",
|
|
464
|
+
"role",
|
|
465
|
+
"summary",
|
|
466
|
+
"title",
|
|
467
|
+
"value",
|
|
468
|
+
"style",
|
|
469
|
+
"xmlns"
|
|
470
|
+
]), Qt = "http://www.w3.org/1998/Math/MathML", $t = "http://www.w3.org/2000/svg", U = "http://www.w3.org/1999/xhtml", en = U, tn = !1, nn = null, rn = O({}, [
|
|
471
|
+
Qt,
|
|
472
|
+
$t,
|
|
473
|
+
U
|
|
474
|
+
], Ae), an = b([
|
|
475
|
+
"mi",
|
|
476
|
+
"mo",
|
|
477
|
+
"mn",
|
|
478
|
+
"ms",
|
|
479
|
+
"mtext"
|
|
480
|
+
]), on = O({}, an), sn = b(["annotation-xml"]), cn = O({}, sn), ln = O({}, [
|
|
481
|
+
"title",
|
|
482
|
+
"style",
|
|
483
|
+
"font",
|
|
484
|
+
"a",
|
|
485
|
+
"script"
|
|
486
|
+
]), un = null, dn = ["application/xhtml+xml", "text/html"], W = null, fn = null, pn = n.createElement("form"), mn = function(e) {
|
|
487
|
+
return e instanceof RegExp || e instanceof Function;
|
|
488
|
+
}, hn = function() {
|
|
489
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
490
|
+
if (fn && fn === e) return;
|
|
491
|
+
e && typeof e == "object" || (e = {}), e = k(e), un = dn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, W = un === "application/xhtml+xml" ? Ae : ke, P = yt(e, "ALLOWED_TAGS", F, { transform: W }), I = yt(e, "ALLOWED_ATTR", L, { transform: W }), nn = yt(e, "ALLOWED_NAMESPACES", rn, { transform: Ae }), Xt = yt(e, "ADD_URI_SAFE_ATTR", Zt, {
|
|
492
|
+
transform: W,
|
|
493
|
+
base: Zt
|
|
494
|
+
}), Jt = yt(e, "ADD_DATA_URI_TAGS", Yt, {
|
|
495
|
+
transform: W,
|
|
496
|
+
base: Yt
|
|
497
|
+
}), Kt = yt(e, "FORBID_CONTENTS", qt, { transform: W }), Et = yt(e, "FORBID_TAGS", k({}), { transform: W }), Dt = yt(e, "FORBID_ATTR", k({}), { transform: W }), Gt = C(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? k(e.USE_PROFILES) : e.USE_PROFILES : !1, Ot = e.ALLOW_ARIA_ATTR !== !1, kt = e.ALLOW_DATA_ATTR !== !1, At = e.ALLOW_UNKNOWN_PROTOCOLS || !1, jt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, V = e.SAFE_FOR_XML !== !1, Mt = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, Lt = e.RETURN_DOM_FRAGMENT || !1, Rt = e.RETURN_TRUSTED_TYPE || !1, It = e.FORCE_BODY || !1, zt = e.SANITIZE_DOM !== !1, Bt = e.SANITIZE_NAMED_PROPS || !1, Ht = e.KEEP_CONTENT !== !1, Ut = e.IN_PLACE || !1, N = Ue(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ot, en = typeof e.NAMESPACE == "string" ? e.NAMESPACE : U, on = bt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => O({}, an)), cn = bt(e, "HTML_INTEGRATION_POINTS", () => O({}, sn));
|
|
498
|
+
let t = bt(e, "CUSTOM_ELEMENT_HANDLING", () => ge(null));
|
|
499
|
+
if (R = ge(null), C(t, "tagNameCheck") && mn(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), C(t, "attributeNameCheck") && mn(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), C(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), x(R), B && (kt = !1), Lt && (H = !0), Gt && (P = O({}, Xe), I = ge(null), Gt.html === !0 && (O(P, We), O(I, Ze)), Gt.svg === !0 && (O(P, Ge), O(I, Qe), O(I, et)), Gt.svgFilters === !0 && (O(P, Ke), O(I, Qe), O(I, et)), Gt.mathMl === !0 && (O(P, Je), O(I, $e), O(I, et))), z.tagCheck = null, z.attributeCheck = null, C(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : Te(e.ADD_TAGS) && (P === F && (P = k(P)), O(P, e.ADD_TAGS, W))), C(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : Te(e.ADD_ATTR) && (I === L && (I = k(I)), O(I, e.ADD_ATTR, W))), C(e, "ADD_FORBID_CONTENTS") && Te(e.ADD_FORBID_CONTENTS) && (Kt === qt && (Kt = k(Kt)), O(Kt, e.ADD_FORBID_CONTENTS, W)), Ht && (P["#text"] = !0), Mt && O(P, [
|
|
500
|
+
"html",
|
|
501
|
+
"head",
|
|
502
|
+
"body"
|
|
503
|
+
]), P.table && (O(P, ["tbody"]), delete Et.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
504
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw E("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
505
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw E("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
506
|
+
let t = y;
|
|
507
|
+
y = e.TRUSTED_TYPES_POLICY;
|
|
508
|
+
try {
|
|
509
|
+
ce = me("");
|
|
510
|
+
} catch (e) {
|
|
511
|
+
throw y = t, e;
|
|
512
|
+
}
|
|
513
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (y = void 0, ce = "") : (y === void 0 && (y = _e()), y && typeof ce == "string" && (ce = me("")));
|
|
514
|
+
b && b(e), fn = e;
|
|
515
|
+
}, gn = O({}, [
|
|
516
|
+
...Ge,
|
|
517
|
+
...Ke,
|
|
518
|
+
...qe
|
|
519
|
+
]), _n = O({}, [...Je, ...Ye]), vn = function(e, t, n) {
|
|
520
|
+
return t.namespaceURI === U ? e === "svg" : t.namespaceURI === Qt ? e === "svg" && (n === "annotation-xml" || on[n]) : !!gn[e];
|
|
521
|
+
}, yn = function(e, t, n) {
|
|
522
|
+
return t.namespaceURI === U ? e === "math" : t.namespaceURI === $t ? e === "math" && cn[n] : !!_n[e];
|
|
523
|
+
}, bn = function(e, t, n) {
|
|
524
|
+
return t.namespaceURI === $t && !cn[n] || t.namespaceURI === Qt && !on[n] ? !1 : !_n[e] && (ln[e] || !gn[e]);
|
|
525
|
+
}, xn = function(e) {
|
|
526
|
+
let t = se(e), n = ke(ae(e)), r = te(e), i, a;
|
|
527
|
+
return r && v(r) === j.element ? (i = { namespaceURI: se(r) }, a = ke(ae(r))) : (i = { namespaceURI: en }, a = "template"), nn[t] ? t === $t ? vn(n, i, a) : t === Qt ? yn(n, i, a) : t === U ? bn(n, i, a) : !!(un === "application/xhtml+xml" && nn[t]) : !1;
|
|
528
|
+
}, Sn = function(e) {
|
|
529
|
+
Se(t.removed, { element: e });
|
|
530
|
+
try {
|
|
531
|
+
te(e).removeChild(e);
|
|
532
|
+
} catch {
|
|
533
|
+
if (p(e), !te(e)) throw E("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
534
|
+
}
|
|
535
|
+
}, Cn = function(e, t, n) {
|
|
536
|
+
try {
|
|
537
|
+
ee(e, t);
|
|
538
|
+
} catch {
|
|
539
|
+
try {
|
|
540
|
+
e.removeAttribute(n);
|
|
541
|
+
} catch {}
|
|
542
|
+
}
|
|
543
|
+
}, wn = function(e) {
|
|
544
|
+
Dn(e);
|
|
545
|
+
let t = h(e);
|
|
546
|
+
t && S(Ce(t), (e) => {
|
|
547
|
+
try {
|
|
548
|
+
p(e);
|
|
549
|
+
} catch {}
|
|
550
|
+
});
|
|
551
|
+
let n = v(e) === j.element ? ne(e) : null;
|
|
552
|
+
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
553
|
+
let r = n[t], i = r && r.name;
|
|
554
|
+
typeof i == "string" && Cn(e, r, i);
|
|
555
|
+
}
|
|
556
|
+
}, Tn = function(e, n, r) {
|
|
557
|
+
if (!r) try {
|
|
558
|
+
r = n.getAttributeNode(e);
|
|
559
|
+
} catch {
|
|
560
|
+
r = null;
|
|
561
|
+
}
|
|
562
|
+
Se(t.removed, {
|
|
563
|
+
attribute: r || null,
|
|
564
|
+
from: n
|
|
565
|
+
});
|
|
566
|
+
try {
|
|
567
|
+
r ? ee(n, r) : n.removeAttribute(e);
|
|
568
|
+
} catch {
|
|
569
|
+
try {
|
|
570
|
+
n.removeAttribute(e);
|
|
571
|
+
} catch {}
|
|
572
|
+
}
|
|
573
|
+
if (e === "is") {
|
|
574
|
+
if (H || Lt) try {
|
|
575
|
+
Sn(n);
|
|
576
|
+
} catch {}
|
|
577
|
+
else try {
|
|
578
|
+
n.setAttribute(e, "");
|
|
579
|
+
} catch {}
|
|
580
|
+
}
|
|
581
|
+
}, En = function(e) {
|
|
582
|
+
let t = ne(e);
|
|
583
|
+
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
584
|
+
let r = t[n], i = r && r.name;
|
|
585
|
+
typeof i != "string" || I[W(i)] || Cn(e, r, i);
|
|
586
|
+
}
|
|
587
|
+
}, G = function(e, t) {
|
|
588
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
|
|
589
|
+
for (; r.length > 0;) {
|
|
590
|
+
let e = r.pop();
|
|
591
|
+
if (t(e) === !1) continue;
|
|
592
|
+
if (n && v(e) === j.element) {
|
|
593
|
+
let t = g(e);
|
|
594
|
+
X(t) && r.push(t);
|
|
595
|
+
}
|
|
596
|
+
let i = h(e);
|
|
597
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
|
|
598
|
+
}
|
|
599
|
+
}, Dn = function(e) {
|
|
600
|
+
G(e, (e) => {
|
|
601
|
+
v(e) === j.element && En(e);
|
|
602
|
+
});
|
|
603
|
+
}, On = function(e) {
|
|
604
|
+
let t = [];
|
|
605
|
+
return G(e, (e) => {
|
|
606
|
+
t.push(e);
|
|
607
|
+
}, !0), t;
|
|
608
|
+
}, K = function(e, t) {
|
|
609
|
+
let n = Ee();
|
|
610
|
+
S(On(e), (e) => {
|
|
611
|
+
v(e) === j.element && De(n, e);
|
|
612
|
+
}), S(t, (e) => {
|
|
613
|
+
v(e) === j.element && !Oe(n, e) && En(e);
|
|
614
|
+
});
|
|
615
|
+
}, kn = function(e, n) {
|
|
616
|
+
let r = !1;
|
|
617
|
+
return S(t.removed, (t) => {
|
|
618
|
+
t.element && (r ||= t.element === e, Dn(t.element));
|
|
619
|
+
}), K(e, n), r;
|
|
620
|
+
}, An = function(e, t) {
|
|
621
|
+
let n = Wt, r = null, i = () => (r || (r = Ee(), S(t, (e) => {
|
|
622
|
+
De(r, e);
|
|
623
|
+
})), r);
|
|
624
|
+
for (let t = 0;; t++) {
|
|
625
|
+
let r = On(e), a = [e], o = !1;
|
|
626
|
+
if (S(r, (e) => {
|
|
627
|
+
v(e) === j.documentFragment ? Se(a, e) : !o && !Oe(n, e) && (o = Oe(i(), e));
|
|
628
|
+
}), !o) return;
|
|
629
|
+
if (t >= 8) throw E("the tree kept changing during in-place sanitization; refusing to return it");
|
|
630
|
+
S(a, (t, n) => {
|
|
631
|
+
jn(t, n > 0, e, i());
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
}, jn = function(e, t, n, r) {
|
|
635
|
+
let i = Fn(e), a;
|
|
636
|
+
for (; a = i.nextNode();) Oe(r, a) && !Oe(Wt, a) && (t && Z(w.uponSanitizeShadowNode, a, null), Wn(a, n), Zn(a, n), X(a.content) && Qn(a.content));
|
|
637
|
+
}, Mn = function(e) {
|
|
638
|
+
Wt && De(Wt, e);
|
|
639
|
+
}, Nn = function(e, t) {
|
|
640
|
+
return V ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
641
|
+
}, Pn = function(e) {
|
|
642
|
+
V && G(e, (e) => {
|
|
643
|
+
let t = v(e);
|
|
644
|
+
if (t === j.processingInstruction || t === j.comment && T(ft, e.data)) {
|
|
645
|
+
try {
|
|
646
|
+
p(e);
|
|
647
|
+
} catch {}
|
|
648
|
+
return !1;
|
|
649
|
+
}
|
|
650
|
+
if (t === j.element) {
|
|
651
|
+
let t = e, n = W(ae(e));
|
|
652
|
+
try {
|
|
653
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && Nn("for", n) && t.removeAttribute("for");
|
|
654
|
+
} catch {}
|
|
655
|
+
}
|
|
656
|
+
return !0;
|
|
657
|
+
});
|
|
658
|
+
}, q = function(e) {
|
|
659
|
+
let t = null, r = null;
|
|
660
|
+
if (It) e = "<remove></remove>" + e;
|
|
661
|
+
else {
|
|
662
|
+
let t = je(e, /^[\r\n\t ]+/);
|
|
663
|
+
r = t && t[0];
|
|
664
|
+
}
|
|
665
|
+
un === "application/xhtml+xml" && en === U && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
666
|
+
let i = y ? me(e) : e;
|
|
667
|
+
if (en === U) try {
|
|
668
|
+
t = new l().parseFromString(i, un);
|
|
669
|
+
} catch {}
|
|
670
|
+
if (!t || !t.documentElement) {
|
|
671
|
+
t = ye.createDocument(en, "template", null);
|
|
672
|
+
try {
|
|
673
|
+
t.documentElement.innerHTML = tn ? ce : i;
|
|
674
|
+
} catch {}
|
|
675
|
+
}
|
|
676
|
+
let a = t.body || t.documentElement;
|
|
677
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), en === U ? Le.call(t, Mt ? "html" : "body")[0] : Mt ? t.documentElement : a;
|
|
678
|
+
}, Fn = function(e) {
|
|
679
|
+
let t = ie ? ie(e) : e.ownerDocument;
|
|
680
|
+
return Fe.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
681
|
+
}, In = function(e) {
|
|
682
|
+
return e = Me(e, D, " "), e = Me(e, ze, " "), e = Me(e, Be, " "), e;
|
|
683
|
+
}, J = function(e) {
|
|
684
|
+
Ln(e);
|
|
685
|
+
let t = e.querySelectorAll?.call(e, "template");
|
|
686
|
+
t && S(t, (e) => {
|
|
687
|
+
X(e.content) && J(e.content);
|
|
688
|
+
});
|
|
689
|
+
}, Ln = function(e) {
|
|
690
|
+
e.normalize();
|
|
691
|
+
let t = ie ? ie(e) : e.ownerDocument, n = Fe.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
692
|
+
for (; r;) r.data = In(r.data), r = n.nextNode();
|
|
693
|
+
}, Y = function(e) {
|
|
694
|
+
let t = re ? re(e) : null;
|
|
695
|
+
return typeof t != "string" || W(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== ne(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== _(e) || e.childNodes !== h(e);
|
|
696
|
+
}, X = function(e) {
|
|
697
|
+
if (!_ || typeof e != "object" || !e) return !1;
|
|
698
|
+
try {
|
|
699
|
+
return _(e) === j.documentFragment;
|
|
700
|
+
} catch {
|
|
701
|
+
return !1;
|
|
702
|
+
}
|
|
703
|
+
}, Rn = function(e) {
|
|
704
|
+
if (!_ || typeof e != "object" || !e) return !1;
|
|
705
|
+
try {
|
|
706
|
+
return typeof _(e) == "number";
|
|
707
|
+
} catch {
|
|
708
|
+
return !1;
|
|
709
|
+
}
|
|
710
|
+
};
|
|
711
|
+
function Z(e, n, r) {
|
|
712
|
+
e.length !== 0 && S(e, (e) => {
|
|
713
|
+
e.call(t, n, r, fn);
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
let zn = function(e, t) {
|
|
717
|
+
return !!(V && e.hasChildNodes() && !Rn(e.firstElementChild) && T(dt, e.textContent) && T(dt, e.innerHTML) || V && ht[t] && v(e) === j.element && se(e) === U && (Rn(e.firstElementChild) || typeof e.textContent == "string" && T(dt, e.textContent)) || e.nodeType === j.processingInstruction || V && e.nodeType === j.comment && T(ft, e.data));
|
|
718
|
+
}, Bn = function(e, t) {
|
|
719
|
+
return e instanceof RegExp ? T(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
720
|
+
}, Vn = function(e, t, n) {
|
|
721
|
+
if (!Et[t] && qn(t) && Bn(R.tagNameCheck, t)) return !1;
|
|
722
|
+
if (Ht && !Kt[t] && !Kt[ke(t)]) {
|
|
723
|
+
let t = te(e), r = h(e);
|
|
724
|
+
if (r && t) {
|
|
725
|
+
let i = r.length;
|
|
726
|
+
for (let a = i - 1; a >= 0; --a) {
|
|
727
|
+
let i = e === n ? f(r[a], !0) : r[a];
|
|
728
|
+
t.insertBefore(i, m(e));
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
return Sn(e), !0;
|
|
733
|
+
}, Hn = function(e, t, n, r) {
|
|
734
|
+
return e.length === 0 ? t : t === n || t === r ? k(t) : t;
|
|
735
|
+
}, Un = function(e, t) {
|
|
736
|
+
return e === t || te(e) !== null ? !1 : (Ut && Dn(e), !0);
|
|
737
|
+
}, Wn = function(e, n) {
|
|
738
|
+
if (Mn(e), Z(w.beforeSanitizeElements, e, null), Un(e, n)) return !0;
|
|
739
|
+
if (Y(e)) return Sn(e), !0;
|
|
740
|
+
let r = W(ae(e));
|
|
741
|
+
if (P = Hn(w.uponSanitizeElement, P, F, Pt), Z(w.uponSanitizeElement, e, {
|
|
742
|
+
tagName: r,
|
|
743
|
+
allowedTags: P
|
|
744
|
+
}), Un(e, n)) return !0;
|
|
745
|
+
if (zn(e, r)) return Sn(e), !0;
|
|
746
|
+
if (Et[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !P[r]) {
|
|
747
|
+
let t = Vn(e, r, n);
|
|
748
|
+
return t === !1 && (Z(w.afterSanitizeElements, e, null), Un(e, n)) ? !0 : t;
|
|
749
|
+
}
|
|
750
|
+
if (v(e) === j.element && !xn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && T(pt, e.innerHTML)) return Sn(e), !0;
|
|
751
|
+
if (B && e.nodeType === j.text) {
|
|
752
|
+
let n = In(e.textContent);
|
|
753
|
+
e.textContent !== n && (Se(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
754
|
+
}
|
|
755
|
+
return Z(w.afterSanitizeElements, e, null), Un(e, n);
|
|
756
|
+
}, Gn = function(e, t, r) {
|
|
757
|
+
if (Dt[t] || Nn(t, e) || zt && (t === "id" || t === "name") && (r in n || r in pn)) return !1;
|
|
758
|
+
let i = I[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
|
|
759
|
+
return kt && T(St, t) || Ot && T(Ct, t) ? !0 : i ? Xt[t] || T(N, Me(r, M, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Ne(r, "data:") === 0 && Jt[e] || At && !T(wt, Me(r, M, "")) ? !0 : !r : qn(e) && Bn(R.tagNameCheck, e) && Bn(R.attributeNameCheck, t, e) || t === "is" && R.allowCustomizedBuiltInElements && Bn(R.tagNameCheck, r);
|
|
760
|
+
}, Kn = O({}, [
|
|
761
|
+
"annotation-xml",
|
|
762
|
+
"color-profile",
|
|
763
|
+
"font-face",
|
|
764
|
+
"font-face-format",
|
|
765
|
+
"font-face-name",
|
|
766
|
+
"font-face-src",
|
|
767
|
+
"font-face-uri",
|
|
768
|
+
"missing-glyph"
|
|
769
|
+
]), qn = function(e) {
|
|
770
|
+
return !Kn[ke(e)] && T(Tt, e);
|
|
771
|
+
}, Jn = function(e, t, n, r) {
|
|
772
|
+
if (y && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
773
|
+
case "TrustedHTML": return me(r);
|
|
774
|
+
case "TrustedScriptURL": return he(r);
|
|
775
|
+
}
|
|
776
|
+
return r;
|
|
777
|
+
}, Yn = function(e, t, n, r) {
|
|
778
|
+
try {
|
|
779
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Y(e) || (Sn(e), !1);
|
|
780
|
+
} catch {
|
|
781
|
+
return Tn(t, e), !1;
|
|
782
|
+
}
|
|
783
|
+
}, Xn = function(e, t) {
|
|
784
|
+
return V && T(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : ke(e) === "attributename" && je(t, "href") !== null;
|
|
785
|
+
}, Zn = function(e, n) {
|
|
786
|
+
if (Z(w.beforeSanitizeAttributes, e, null), Un(e, n)) return;
|
|
787
|
+
let r = e.attributes;
|
|
788
|
+
if (!r || Y(e)) return;
|
|
789
|
+
I = Hn(w.uponSanitizeAttribute, I, L, Ft);
|
|
790
|
+
let i = {
|
|
791
|
+
attrName: "",
|
|
792
|
+
attrValue: "",
|
|
793
|
+
keepAttr: !0,
|
|
794
|
+
allowedAttributes: I,
|
|
795
|
+
forceKeepAttr: void 0
|
|
796
|
+
}, a = r.length, o = W(e.nodeName);
|
|
797
|
+
for (; a--;) {
|
|
798
|
+
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = W(s), d = l, f = s === "value" ? d : Pe(d), p = !1;
|
|
799
|
+
i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, Z(w.uponSanitizeAttribute, e, i), f = i.attrValue, Bt && (u === "id" || u === "name") && Ne(f, Vt) !== 0 && (Tn(s, e, n), f = Vt + f, p = !0), Xn(s, f) ? Tn(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !jt && T(mt, f) ? Tn(s, e, n) : (B && (f = In(f)), Gn(o, u, f) ? (f = Jn(o, u, c, f), f !== d && Yn(e, s, c, f) && p && xe(t.removed)) : Tn(s, e, n)) : Tn(s, e, n));
|
|
800
|
+
}
|
|
801
|
+
Z(w.afterSanitizeAttributes, e, null), Un(e, n);
|
|
802
|
+
}, Qn = function(e) {
|
|
803
|
+
let t = null, n = Fn(e);
|
|
804
|
+
for (Z(w.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Z(w.uponSanitizeShadowNode, t, null), Wn(t, e), Zn(t, e), X(t.content) && Qn(t.content), v(t) === j.element) {
|
|
805
|
+
let e = g(t);
|
|
806
|
+
X(e) && ($n(e), Qn(e));
|
|
807
|
+
}
|
|
808
|
+
B && Ln(e), Z(w.afterSanitizeShadowDOM, e, null);
|
|
809
|
+
}, $n = function(e) {
|
|
810
|
+
let t = [{
|
|
811
|
+
node: e,
|
|
812
|
+
shadow: null
|
|
813
|
+
}];
|
|
814
|
+
for (; t.length > 0;) {
|
|
815
|
+
let e = t.pop();
|
|
816
|
+
if (e.shadow) {
|
|
817
|
+
Qn(e.shadow);
|
|
818
|
+
continue;
|
|
819
|
+
}
|
|
820
|
+
let n = e.node, r = v(n) === j.element, i = h(n);
|
|
821
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
822
|
+
node: i[e],
|
|
823
|
+
shadow: null
|
|
824
|
+
});
|
|
825
|
+
if (r) {
|
|
826
|
+
let e = re ? re(n) : null;
|
|
827
|
+
if (typeof e == "string" && W(e) === "template") {
|
|
828
|
+
let e = n.content;
|
|
829
|
+
X(e) && t.push({
|
|
830
|
+
node: e,
|
|
831
|
+
shadow: null
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
if (r) {
|
|
836
|
+
let e = g(n);
|
|
837
|
+
X(e) && t.push({
|
|
838
|
+
node: null,
|
|
839
|
+
shadow: e
|
|
840
|
+
}, {
|
|
841
|
+
node: e,
|
|
842
|
+
shadow: null
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
return t.sanitize = function(e) {
|
|
848
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
849
|
+
if (tn = !e, tn && (e = "<!-->"), typeof e != "string" && !Rn(e) && (e = Ve(e), typeof e != "string")) throw E("dirty is not a string, aborting");
|
|
850
|
+
if (!t.isSupported) return e;
|
|
851
|
+
Nt ? (P = Pt, I = Ft) : hn(n), (w.uponSanitizeElement.length > 0 || w.uponSanitizeAttribute.length > 0) && (P = k(P)), w.uponSanitizeAttribute.length > 0 && (I = k(I)), t.removed = [];
|
|
852
|
+
let c = Ut && typeof e != "string" && Rn(e), l = [], u = Wt;
|
|
853
|
+
if (c) {
|
|
854
|
+
Pn(e);
|
|
855
|
+
let t = ae(e);
|
|
856
|
+
if (typeof t == "string") {
|
|
857
|
+
let n = W(t);
|
|
858
|
+
if (!P[n] || Et[n]) throw wn(e), E("root node is forbidden and cannot be sanitized in-place");
|
|
859
|
+
}
|
|
860
|
+
if (Y(e)) throw wn(e), E("root node is clobbered and cannot be sanitized in-place");
|
|
861
|
+
l = On(e), Wt = Ee();
|
|
862
|
+
} else if (Rn(e)) i = q("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === j.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), $n(i);
|
|
863
|
+
else {
|
|
864
|
+
if (!H && !B && !Mt && e.indexOf("<") === -1) return y && Rt ? me(e) : e;
|
|
865
|
+
if (i = q(e), !i) return H ? null : Rt ? ce : "";
|
|
866
|
+
}
|
|
867
|
+
i && It && Sn(i.firstChild);
|
|
868
|
+
let d = c ? e : i;
|
|
869
|
+
try {
|
|
870
|
+
c && $n(e);
|
|
871
|
+
let t = Fn(d);
|
|
872
|
+
for (; o = t.nextNode();) Wn(o, d), Zn(o, d), X(o.content) && Qn(o.content);
|
|
873
|
+
c && An(e, l);
|
|
874
|
+
} catch (t) {
|
|
875
|
+
throw c && (wn(e), kn(e, l)), t;
|
|
876
|
+
} finally {
|
|
877
|
+
Wt = u;
|
|
878
|
+
}
|
|
879
|
+
if (c) {
|
|
880
|
+
if (kn(e, l)) throw E("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
881
|
+
return B && J(e), e;
|
|
882
|
+
}
|
|
883
|
+
if (H) {
|
|
884
|
+
if (B && J(i), Lt) for (s = Ie.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
885
|
+
else s = i;
|
|
886
|
+
return (I.shadowroot || I.shadowrootmode) && (s = Re.call(r, s, !0)), s;
|
|
887
|
+
}
|
|
888
|
+
let f = Mt ? i.outerHTML : i.innerHTML;
|
|
889
|
+
return Mt && P["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && T(lt, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), B && (f = In(f)), y && Rt ? me(f) : f;
|
|
890
|
+
}, t.setConfig = function() {
|
|
891
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
892
|
+
hn(e), Nt = !0, Pt = P, Ft = I;
|
|
893
|
+
}, t.clearConfig = function() {
|
|
894
|
+
fn = null, Nt = !1, Pt = null, Ft = null, y = le, ce = "";
|
|
895
|
+
}, t.isValidAttribute = function(e, t, n) {
|
|
896
|
+
fn || hn({});
|
|
897
|
+
let r = W(e), i = W(t);
|
|
898
|
+
return typeof n == "string" && (Xn(t, n) || !jt && T(mt, n)) ? !1 : Gn(r, i, n);
|
|
899
|
+
}, t.addHook = function(e, t) {
|
|
900
|
+
typeof t == "function" && C(w, e) && Se(w[e], t);
|
|
901
|
+
}, t.removeHook = function(e, t) {
|
|
902
|
+
if (C(w, e)) {
|
|
903
|
+
if (t !== void 0) {
|
|
904
|
+
let n = be(w[e], t);
|
|
905
|
+
return n === -1 ? void 0 : we(w[e], n, 1)[0];
|
|
906
|
+
}
|
|
907
|
+
return xe(w[e]);
|
|
908
|
+
}
|
|
909
|
+
}, t.removeHooks = function(e) {
|
|
910
|
+
C(w, e) && (w[e] = []);
|
|
911
|
+
}, t.removeAllHooks = function() {
|
|
912
|
+
w = vt();
|
|
913
|
+
}, t;
|
|
914
|
+
}
|
|
915
|
+
var St = xt(), Ct;
|
|
916
|
+
function wt() {
|
|
917
|
+
return {
|
|
918
|
+
async: !1,
|
|
919
|
+
breaks: !1,
|
|
920
|
+
extensions: null,
|
|
921
|
+
gfm: !0,
|
|
922
|
+
hooks: null,
|
|
923
|
+
pedantic: !1,
|
|
924
|
+
renderer: null,
|
|
925
|
+
silent: !1,
|
|
926
|
+
tokenizer: null,
|
|
927
|
+
walkTokens: null
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
var M = wt();
|
|
931
|
+
function Tt(e) {
|
|
932
|
+
M = e;
|
|
933
|
+
}
|
|
934
|
+
var N = { exec: () => null };
|
|
935
|
+
function P(e) {
|
|
936
|
+
let t = [];
|
|
937
|
+
return (n) => {
|
|
938
|
+
let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
|
|
939
|
+
return i || (i = e(r), t[r] = i), i;
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
function F(e, t = "") {
|
|
943
|
+
let n = typeof e == "string" ? e : e.source, r = {
|
|
944
|
+
replace: (e, t) => {
|
|
945
|
+
let i = typeof t == "string" ? t : t.source;
|
|
946
|
+
return i = i.replace(L.caret, "$1"), n = n.replace(e, i), r;
|
|
947
|
+
},
|
|
948
|
+
getRegex: () => new RegExp(n, t)
|
|
949
|
+
};
|
|
950
|
+
return r;
|
|
951
|
+
}
|
|
952
|
+
var I = ((e = "") => {
|
|
953
|
+
try {
|
|
954
|
+
return !!RegExp("(?<=1)(?<!1)" + e);
|
|
955
|
+
} catch {
|
|
956
|
+
return !1;
|
|
957
|
+
}
|
|
958
|
+
})(), L = {
|
|
959
|
+
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
960
|
+
outputLinkReplace: /\\([\[\]])/g,
|
|
961
|
+
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
962
|
+
beginningSpace: /^\s+/,
|
|
963
|
+
endingHash: /#$/,
|
|
964
|
+
startingSpaceChar: /^ /,
|
|
965
|
+
endingSpaceChar: / $/,
|
|
966
|
+
nonSpaceChar: /[^ ]/,
|
|
967
|
+
newLineCharGlobal: /\n/g,
|
|
968
|
+
tabCharGlobal: /\t/g,
|
|
969
|
+
multipleSpaceGlobal: /\s+/g,
|
|
970
|
+
blankLine: /^[ \t]*$/,
|
|
971
|
+
doubleBlankLine: /\n[ \t]*\n[ \t]*$/,
|
|
972
|
+
blockquoteStart: /^ {0,3}>/,
|
|
973
|
+
blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
|
|
974
|
+
blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
|
|
975
|
+
listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
|
|
976
|
+
listIsTask: /^\[[ xX]\] +\S/,
|
|
977
|
+
listReplaceTask: /^\[[ xX]\] +/,
|
|
978
|
+
listTaskCheckbox: /\[[ xX]\]/,
|
|
979
|
+
anyLine: /\n.*\n/,
|
|
980
|
+
hrefBrackets: /^<(.*)>$/,
|
|
981
|
+
tableDelimiter: /[:|]/,
|
|
982
|
+
tableAlignChars: /^\||\| *$/g,
|
|
983
|
+
tableRowBlankLine: /\n[ \t]*$/,
|
|
984
|
+
tableAlignRight: /^ *-+: *$/,
|
|
985
|
+
tableAlignCenter: /^ *:-+: *$/,
|
|
986
|
+
tableAlignLeft: /^ *:-+ *$/,
|
|
987
|
+
startATag: /^<a /i,
|
|
988
|
+
endATag: /^<\/a>/i,
|
|
989
|
+
startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
|
|
990
|
+
endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
|
|
991
|
+
startAngleBracket: /^</,
|
|
992
|
+
endAngleBracket: />$/,
|
|
993
|
+
pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
|
|
994
|
+
unicodeAlphaNumeric: /[\p{L}\p{N}]/u,
|
|
995
|
+
escapeTest: /[&<>"']/,
|
|
996
|
+
escapeReplace: /[&<>"']/g,
|
|
997
|
+
escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
|
|
998
|
+
escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
|
|
999
|
+
caret: /(^|[^\[])\^/g,
|
|
1000
|
+
percentDecode: /%25/g,
|
|
1001
|
+
findPipe: /\|/g,
|
|
1002
|
+
splitPipe: / \|/,
|
|
1003
|
+
slashPipe: /\\\|/g,
|
|
1004
|
+
carriageReturn: /\r\n|\r/g,
|
|
1005
|
+
spaceLine: /^ +$/gm,
|
|
1006
|
+
notSpaceStart: /^\S*/,
|
|
1007
|
+
endingNewline: /\n$/,
|
|
1008
|
+
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
1009
|
+
nextBulletRegex: P((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
|
|
1010
|
+
hrRegex: P((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
|
|
1011
|
+
fencesBeginRegex: P((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
|
|
1012
|
+
headingBeginRegex: P((e) => RegExp(`^ {0,${e}}#`)),
|
|
1013
|
+
htmlBeginRegex: P((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
|
|
1014
|
+
blockquoteBeginRegex: P((e) => RegExp(`^ {0,${e}}>`))
|
|
1015
|
+
}, R = /^(?:[ \t]*(?:\n|$))+/, Et = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Dt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, z = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ot = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, kt = / {0,3}(?:[*+-]|\d{1,9}[.)])/, At = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, jt = F(At).replace(/bull/g, kt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), B = F(At).replace(/bull/g, kt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), V = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Mt = /^[^\n]+/, Nt = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Pt = F(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Nt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ft = F(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, kt).getRegex(), It = "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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", H = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Lt = F("^ {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|$))", "i").replace("comment", H).replace("tag", It).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Rt = F(V).replace("hr", z).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", It).getRegex(), zt = {
|
|
1016
|
+
blockquote: F(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Rt).getRegex(),
|
|
1017
|
+
code: Et,
|
|
1018
|
+
def: Pt,
|
|
1019
|
+
fences: Dt,
|
|
1020
|
+
heading: Ot,
|
|
1021
|
+
hr: z,
|
|
1022
|
+
html: Lt,
|
|
1023
|
+
lheading: jt,
|
|
1024
|
+
list: Ft,
|
|
1025
|
+
newline: R,
|
|
1026
|
+
paragraph: Rt,
|
|
1027
|
+
table: N,
|
|
1028
|
+
text: Mt
|
|
1029
|
+
}, Bt = F("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", z).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", It).getRegex(), Vt = {
|
|
1030
|
+
...zt,
|
|
1031
|
+
lheading: B,
|
|
1032
|
+
table: Bt,
|
|
1033
|
+
paragraph: F(V).replace("hr", z).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Bt).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", It).getRegex()
|
|
1034
|
+
}, Ht = {
|
|
1035
|
+
...zt,
|
|
1036
|
+
html: F("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", H).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(),
|
|
1037
|
+
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
1038
|
+
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
1039
|
+
fences: N,
|
|
1040
|
+
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
1041
|
+
paragraph: F(V).replace("hr", z).replace("heading", " *#{1,6} *[^\n]").replace("lheading", jt).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
1042
|
+
}, Ut = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Wt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Gt = /^( {2,}|\\)\n(?!\s*$)/, Kt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, qt = /[\p{P}\p{S}]/u, Jt = /[\s\p{P}\p{S}]/u, Yt = /[^\s\p{P}\p{S}]/u, Xt = F(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Jt).getRegex(), Zt = /(?!~)[\p{P}\p{S}]/u, Qt = /(?!~)[\s\p{P}\p{S}]/u, $t = /(?:[^\s\p{P}\p{S}]|~)/u, U = F(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", I ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), en = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, tn = F(en, "u").replace(/punct/g, qt).getRegex(), nn = F(en, "u").replace(/punct/g, Zt).getRegex(), rn = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", an = F(rn, "gu").replace(/notPunctSpace/g, Yt).replace(/punctSpace/g, Jt).replace(/punct/g, qt).getRegex(), on = F(rn, "gu").replace(/notPunctSpace/g, $t).replace(/punctSpace/g, Qt).replace(/punct/g, Zt).getRegex(), sn = F("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Yt).replace(/punctSpace/g, Jt).replace(/punct/g, qt).getRegex(), cn = F(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, qt).getRegex(), ln = F("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Yt).replace(/punctSpace/g, Jt).replace(/punct/g, qt).getRegex(), un = F(/\\(punct)/, "gu").replace(/punct/g, qt).getRegex(), dn = F(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(), W = F(H).replace("(?:-->|$)", "-->").getRegex(), fn = F("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", W).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), pn = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, mn = F(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", pn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), hn = F(/^!?\[(label)\]\[(ref)\]/).replace("label", pn).replace("ref", Nt).getRegex(), gn = F(/^!?\[(ref)\](?:\[\])?/).replace("ref", Nt).getRegex(), _n = F("reflink|nolink(?!\\()", "g").replace("reflink", hn).replace("nolink", gn).getRegex(), vn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, yn = {
|
|
1043
|
+
_backpedal: N,
|
|
1044
|
+
anyPunctuation: un,
|
|
1045
|
+
autolink: dn,
|
|
1046
|
+
blockSkip: U,
|
|
1047
|
+
br: Gt,
|
|
1048
|
+
code: Wt,
|
|
1049
|
+
del: N,
|
|
1050
|
+
delLDelim: N,
|
|
1051
|
+
delRDelim: N,
|
|
1052
|
+
emStrongLDelim: tn,
|
|
1053
|
+
emStrongRDelimAst: an,
|
|
1054
|
+
emStrongRDelimUnd: sn,
|
|
1055
|
+
escape: Ut,
|
|
1056
|
+
link: mn,
|
|
1057
|
+
nolink: gn,
|
|
1058
|
+
punctuation: Xt,
|
|
1059
|
+
reflink: hn,
|
|
1060
|
+
reflinkSearch: _n,
|
|
1061
|
+
tag: fn,
|
|
1062
|
+
text: Kt,
|
|
1063
|
+
url: N
|
|
1064
|
+
}, bn = {
|
|
1065
|
+
...yn,
|
|
1066
|
+
link: F(/^!?\[(label)\]\((.*?)\)/).replace("label", pn).getRegex(),
|
|
1067
|
+
reflink: F(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", pn).getRegex()
|
|
1068
|
+
}, xn = {
|
|
1069
|
+
...yn,
|
|
1070
|
+
emStrongRDelimAst: on,
|
|
1071
|
+
emStrongLDelim: nn,
|
|
1072
|
+
delLDelim: cn,
|
|
1073
|
+
delRDelim: ln,
|
|
1074
|
+
url: F(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", vn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
1075
|
+
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
1076
|
+
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
1077
|
+
text: F(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", vn).getRegex()
|
|
1078
|
+
}, Sn = {
|
|
1079
|
+
...xn,
|
|
1080
|
+
br: F(Gt).replace("{2,}", "*").getRegex(),
|
|
1081
|
+
text: F(xn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
1082
|
+
}, Cn = {
|
|
1083
|
+
normal: zt,
|
|
1084
|
+
gfm: Vt,
|
|
1085
|
+
pedantic: Ht
|
|
1086
|
+
}, wn = {
|
|
1087
|
+
normal: yn,
|
|
1088
|
+
gfm: xn,
|
|
1089
|
+
breaks: Sn,
|
|
1090
|
+
pedantic: bn
|
|
1091
|
+
}, Tn = {
|
|
1092
|
+
"&": "&",
|
|
1093
|
+
"<": "<",
|
|
1094
|
+
">": ">",
|
|
1095
|
+
"\"": """,
|
|
1096
|
+
"'": "'"
|
|
1097
|
+
}, En = (e) => Tn[e];
|
|
1098
|
+
function G(e, t) {
|
|
1099
|
+
if (t) {
|
|
1100
|
+
if (L.escapeTest.test(e)) return e.replace(L.escapeReplace, En);
|
|
1101
|
+
} else if (L.escapeTestNoEncode.test(e)) return e.replace(L.escapeReplaceNoEncode, En);
|
|
1102
|
+
return e;
|
|
1103
|
+
}
|
|
1104
|
+
function Dn(e) {
|
|
1105
|
+
try {
|
|
1106
|
+
e = encodeURI(e).replace(L.percentDecode, "%");
|
|
1107
|
+
} catch {
|
|
1108
|
+
return null;
|
|
1109
|
+
}
|
|
1110
|
+
return e;
|
|
1111
|
+
}
|
|
1112
|
+
function On(e, t) {
|
|
1113
|
+
let n = e.replace(L.findPipe, (e, t, n) => {
|
|
1114
|
+
let r = !1, i = t;
|
|
1115
|
+
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
1116
|
+
return r ? "|" : " |";
|
|
1117
|
+
}).split(L.splitPipe), r = 0;
|
|
1118
|
+
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
|
|
1119
|
+
if (n.length > t) n.splice(t);
|
|
1120
|
+
else for (; n.length < t;) n.push("");
|
|
1121
|
+
}
|
|
1122
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(L.slashPipe, "|");
|
|
1123
|
+
return n;
|
|
1124
|
+
}
|
|
1125
|
+
function K(e, t, n) {
|
|
1126
|
+
let r = e.length;
|
|
1127
|
+
if (r === 0) return "";
|
|
1128
|
+
let i = 0;
|
|
1129
|
+
for (; i < r;) {
|
|
1130
|
+
let a = e.charAt(r - i - 1);
|
|
1131
|
+
if (a === t && !n) i++;
|
|
1132
|
+
else if (a !== t && n) i++;
|
|
1133
|
+
else break;
|
|
1134
|
+
}
|
|
1135
|
+
return e.slice(0, r - i);
|
|
1136
|
+
}
|
|
1137
|
+
function kn(e) {
|
|
1138
|
+
let t = e.split("\n"), n = t.length - 1;
|
|
1139
|
+
for (; n >= 0 && L.blankLine.test(t[n]);) n--;
|
|
1140
|
+
return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
|
|
1141
|
+
}
|
|
1142
|
+
function An(e, t) {
|
|
1143
|
+
if (e.indexOf(t[1]) === -1) return -1;
|
|
1144
|
+
let n = 0;
|
|
1145
|
+
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
1146
|
+
else if (e[r] === t[0]) n++;
|
|
1147
|
+
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
1148
|
+
return n > 0 ? -2 : -1;
|
|
1149
|
+
}
|
|
1150
|
+
function jn(e, t = 0) {
|
|
1151
|
+
let n = t, r = "";
|
|
1152
|
+
for (let t of e) if (t === " ") {
|
|
1153
|
+
let e = 4 - n % 4;
|
|
1154
|
+
r += " ".repeat(e), n += e;
|
|
1155
|
+
} else r += t, n++;
|
|
1156
|
+
return r;
|
|
1157
|
+
}
|
|
1158
|
+
function Mn(e, t, n, r, i) {
|
|
1159
|
+
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
1160
|
+
r.state.inLink = !0;
|
|
1161
|
+
let c = {
|
|
1162
|
+
type: e[0].charAt(0) === "!" ? "image" : "link",
|
|
1163
|
+
raw: n,
|
|
1164
|
+
href: a,
|
|
1165
|
+
title: o,
|
|
1166
|
+
text: s,
|
|
1167
|
+
tokens: r.inlineTokens(s)
|
|
1168
|
+
};
|
|
1169
|
+
return r.state.inLink = !1, c;
|
|
1170
|
+
}
|
|
1171
|
+
function Nn(e, t, n) {
|
|
1172
|
+
let r = e.match(n.other.indentCodeCompensation);
|
|
1173
|
+
if (r === null) return t;
|
|
1174
|
+
let i = r[1];
|
|
1175
|
+
return t.split("\n").map((e) => {
|
|
1176
|
+
let t = e.match(n.other.beginningSpace);
|
|
1177
|
+
if (t === null) return e;
|
|
1178
|
+
let [r] = t;
|
|
1179
|
+
return r.length >= i.length ? e.slice(i.length) : e;
|
|
1180
|
+
}).join("\n");
|
|
1181
|
+
}
|
|
1182
|
+
var Pn = class {
|
|
1183
|
+
constructor(e) {
|
|
1184
|
+
s(this, "options", void 0), s(this, "rules", void 0), s(this, "lexer", void 0), this.options = e || M;
|
|
1185
|
+
}
|
|
1186
|
+
space(e) {
|
|
1187
|
+
let t = this.rules.block.newline.exec(e);
|
|
1188
|
+
if (t && t[0].length > 0) return {
|
|
1189
|
+
type: "space",
|
|
1190
|
+
raw: t[0]
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
code(e) {
|
|
1194
|
+
let t = this.rules.block.code.exec(e);
|
|
1195
|
+
if (t) {
|
|
1196
|
+
let e = this.options.pedantic ? t[0] : kn(t[0]);
|
|
1197
|
+
return {
|
|
1198
|
+
type: "code",
|
|
1199
|
+
raw: e,
|
|
1200
|
+
codeBlockStyle: "indented",
|
|
1201
|
+
text: e.replace(this.rules.other.codeRemoveIndent, "")
|
|
1202
|
+
};
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
fences(e) {
|
|
1206
|
+
let t = this.rules.block.fences.exec(e);
|
|
1207
|
+
if (t) {
|
|
1208
|
+
let e = t[0], n = Nn(e, t[3] || "", this.rules);
|
|
1209
|
+
return {
|
|
1210
|
+
type: "code",
|
|
1211
|
+
raw: e,
|
|
1212
|
+
lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
|
|
1213
|
+
text: n
|
|
1214
|
+
};
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
heading(e) {
|
|
1218
|
+
let t = this.rules.block.heading.exec(e);
|
|
1219
|
+
if (t) {
|
|
1220
|
+
let e = t[2].trim();
|
|
1221
|
+
if (this.rules.other.endingHash.test(e)) {
|
|
1222
|
+
let t = K(e, "#");
|
|
1223
|
+
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
1224
|
+
}
|
|
1225
|
+
return {
|
|
1226
|
+
type: "heading",
|
|
1227
|
+
raw: K(t[0], "\n"),
|
|
1228
|
+
depth: t[1].length,
|
|
1229
|
+
text: e,
|
|
1230
|
+
tokens: this.lexer.inline(e)
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
hr(e) {
|
|
1235
|
+
let t = this.rules.block.hr.exec(e);
|
|
1236
|
+
if (t) return {
|
|
1237
|
+
type: "hr",
|
|
1238
|
+
raw: K(t[0], "\n")
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
blockquote(e) {
|
|
1242
|
+
let t = this.rules.block.blockquote.exec(e);
|
|
1243
|
+
if (t) {
|
|
1244
|
+
let e = K(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
1245
|
+
for (; e.length > 0;) {
|
|
1246
|
+
let t = !1, a = [], o = 0;
|
|
1247
|
+
for (; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
1248
|
+
else if (!t) a.push(e[o]);
|
|
1249
|
+
else break;
|
|
1250
|
+
e = e.slice(o);
|
|
1251
|
+
let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
1252
|
+
n = n ? `${n}
|
|
1253
|
+
${s}` : s, r = r ? `${r}
|
|
1254
|
+
${c}` : c;
|
|
1255
|
+
let l = this.lexer.state.top;
|
|
1256
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, i, !0), this.lexer.state.top = l, e.length === 0) break;
|
|
1257
|
+
let u = i.at(-1);
|
|
1258
|
+
if (u?.type === "code") break;
|
|
1259
|
+
if (u?.type === "blockquote") {
|
|
1260
|
+
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
|
|
1261
|
+
i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
|
|
1262
|
+
break;
|
|
1263
|
+
}
|
|
1264
|
+
if (u?.type === "list") {
|
|
1265
|
+
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
|
|
1266
|
+
i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
return {
|
|
1270
|
+
type: "blockquote",
|
|
1271
|
+
raw: n,
|
|
1272
|
+
tokens: i,
|
|
1273
|
+
text: r
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
list(e) {
|
|
1278
|
+
let t = this.rules.block.list.exec(e);
|
|
1279
|
+
if (t) {
|
|
1280
|
+
let n = t[1].trim(), r = n.length > 1, i = {
|
|
1281
|
+
type: "list",
|
|
1282
|
+
raw: "",
|
|
1283
|
+
ordered: r,
|
|
1284
|
+
start: r ? +n.slice(0, -1) : "",
|
|
1285
|
+
loose: !1,
|
|
1286
|
+
items: []
|
|
1287
|
+
};
|
|
1288
|
+
n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
|
|
1289
|
+
let a = this.rules.other.listItemRegex(n), o = !1;
|
|
1290
|
+
for (; e;) {
|
|
1291
|
+
let n = !1, r = "", s = "";
|
|
1292
|
+
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
1293
|
+
r = t[0], e = e.substring(r.length);
|
|
1294
|
+
let c = jn(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
1295
|
+
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
1296
|
+
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
|
|
1297
|
+
for (; e;) {
|
|
1298
|
+
let p = e.split("\n", 1)[0], ee;
|
|
1299
|
+
if (l = p, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), ee = l) : ee = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || f.test(l) || t.test(l) || n.test(l)) break;
|
|
1300
|
+
if (ee.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + ee.slice(d);
|
|
1301
|
+
else {
|
|
1302
|
+
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
|
|
1303
|
+
s += "\n" + l;
|
|
1304
|
+
}
|
|
1305
|
+
u = !l.trim(), r += p + "\n", e = e.substring(p.length + 1), c = ee.slice(d);
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0)), i.items.push({
|
|
1309
|
+
type: "list_item",
|
|
1310
|
+
raw: r,
|
|
1311
|
+
task: !!this.options.gfm && this.rules.other.listIsTask.test(s),
|
|
1312
|
+
loose: !1,
|
|
1313
|
+
text: s,
|
|
1314
|
+
tokens: []
|
|
1315
|
+
}), i.raw += r;
|
|
1316
|
+
}
|
|
1317
|
+
let s = i.items.at(-1);
|
|
1318
|
+
if (s) s.raw = s.raw.trimEnd(), s.text = s.text.trimEnd();
|
|
1319
|
+
else return;
|
|
1320
|
+
i.raw = i.raw.trimEnd();
|
|
1321
|
+
for (let e of i.items) {
|
|
1322
|
+
this.lexer.state.top = !1, e.tokens = this.lexer.blockTokens(e.text, []);
|
|
1323
|
+
let t = e.tokens[0];
|
|
1324
|
+
if (e.task && (t?.type === "text" || t?.type === "paragraph")) {
|
|
1325
|
+
e.text = e.text.replace(this.rules.other.listReplaceTask, ""), t.raw = t.raw.replace(this.rules.other.listReplaceTask, ""), t.text = t.text.replace(this.rules.other.listReplaceTask, "");
|
|
1326
|
+
for (let e = this.lexer.inlineQueue.length - 1; e >= 0; e--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)) {
|
|
1327
|
+
this.lexer.inlineQueue[e].src = this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask, "");
|
|
1328
|
+
break;
|
|
1329
|
+
}
|
|
1330
|
+
let n = this.rules.other.listTaskCheckbox.exec(e.raw);
|
|
1331
|
+
if (n) {
|
|
1332
|
+
let t = {
|
|
1333
|
+
type: "checkbox",
|
|
1334
|
+
raw: n[0] + " ",
|
|
1335
|
+
checked: n[0] !== "[ ]"
|
|
1336
|
+
};
|
|
1337
|
+
e.checked = t.checked, i.loose ? e.tokens[0] && ["paragraph", "text"].includes(e.tokens[0].type) && "tokens" in e.tokens[0] && e.tokens[0].tokens ? (e.tokens[0].raw = t.raw + e.tokens[0].raw, e.tokens[0].text = t.raw + e.tokens[0].text, e.tokens[0].tokens.unshift(t)) : e.tokens.unshift({
|
|
1338
|
+
type: "paragraph",
|
|
1339
|
+
raw: t.raw,
|
|
1340
|
+
text: t.raw,
|
|
1341
|
+
tokens: [t]
|
|
1342
|
+
}) : e.tokens.unshift(t);
|
|
1343
|
+
}
|
|
1344
|
+
} else e.task &&= !1;
|
|
1345
|
+
if (!i.loose) {
|
|
1346
|
+
let t = e.tokens.filter((e) => e.type === "space");
|
|
1347
|
+
i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
if (i.loose) for (let e of i.items) {
|
|
1351
|
+
e.loose = !0;
|
|
1352
|
+
for (let t of e.tokens) t.type === "text" && (t.type = "paragraph");
|
|
1353
|
+
}
|
|
1354
|
+
return i;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
html(e) {
|
|
1358
|
+
let t = this.rules.block.html.exec(e);
|
|
1359
|
+
if (t) {
|
|
1360
|
+
let e = kn(t[0]);
|
|
1361
|
+
return {
|
|
1362
|
+
type: "html",
|
|
1363
|
+
block: !0,
|
|
1364
|
+
raw: e,
|
|
1365
|
+
pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
|
|
1366
|
+
text: e
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
def(e) {
|
|
1371
|
+
let t = this.rules.block.def.exec(e);
|
|
1372
|
+
if (t) {
|
|
1373
|
+
let e = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
|
|
1374
|
+
return {
|
|
1375
|
+
type: "def",
|
|
1376
|
+
tag: e,
|
|
1377
|
+
raw: K(t[0], "\n"),
|
|
1378
|
+
href: n,
|
|
1379
|
+
title: r
|
|
1380
|
+
};
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
table(e) {
|
|
1384
|
+
let t = this.rules.block.table.exec(e);
|
|
1385
|
+
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
1386
|
+
let n = On(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
1387
|
+
type: "table",
|
|
1388
|
+
raw: K(t[0], "\n"),
|
|
1389
|
+
header: [],
|
|
1390
|
+
align: [],
|
|
1391
|
+
rows: []
|
|
1392
|
+
};
|
|
1393
|
+
if (n.length === r.length) {
|
|
1394
|
+
for (let e of r) this.rules.other.tableAlignRight.test(e) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? a.align.push("left") : a.align.push(null);
|
|
1395
|
+
for (let e = 0; e < n.length; e++) a.header.push({
|
|
1396
|
+
text: n[e],
|
|
1397
|
+
tokens: this.lexer.inline(n[e]),
|
|
1398
|
+
header: !0,
|
|
1399
|
+
align: a.align[e]
|
|
1400
|
+
});
|
|
1401
|
+
for (let e of i) a.rows.push(On(e, a.header.length).map((e, t) => ({
|
|
1402
|
+
text: e,
|
|
1403
|
+
tokens: this.lexer.inline(e),
|
|
1404
|
+
header: !1,
|
|
1405
|
+
align: a.align[t]
|
|
1406
|
+
})));
|
|
1407
|
+
return a;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
lheading(e) {
|
|
1411
|
+
let t = this.rules.block.lheading.exec(e);
|
|
1412
|
+
if (t) {
|
|
1413
|
+
let e = t[1].trim();
|
|
1414
|
+
return {
|
|
1415
|
+
type: "heading",
|
|
1416
|
+
raw: K(t[0], "\n"),
|
|
1417
|
+
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
1418
|
+
text: e,
|
|
1419
|
+
tokens: this.lexer.inline(e)
|
|
1420
|
+
};
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
paragraph(e) {
|
|
1424
|
+
let t = this.rules.block.paragraph.exec(e);
|
|
1425
|
+
if (t) {
|
|
1426
|
+
let e = t[1].charAt(t[1].length - 1) === "\n" ? t[1].slice(0, -1) : t[1];
|
|
1427
|
+
return {
|
|
1428
|
+
type: "paragraph",
|
|
1429
|
+
raw: t[0],
|
|
1430
|
+
text: e,
|
|
1431
|
+
tokens: this.lexer.inline(e)
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
text(e) {
|
|
1436
|
+
let t = this.rules.block.text.exec(e);
|
|
1437
|
+
if (t) return {
|
|
1438
|
+
type: "text",
|
|
1439
|
+
raw: t[0],
|
|
1440
|
+
text: t[0],
|
|
1441
|
+
tokens: this.lexer.inline(t[0])
|
|
1442
|
+
};
|
|
1443
|
+
}
|
|
1444
|
+
escape(e) {
|
|
1445
|
+
let t = this.rules.inline.escape.exec(e);
|
|
1446
|
+
if (t) return {
|
|
1447
|
+
type: "escape",
|
|
1448
|
+
raw: t[0],
|
|
1449
|
+
text: t[1]
|
|
1450
|
+
};
|
|
1451
|
+
}
|
|
1452
|
+
tag(e) {
|
|
1453
|
+
let t = this.rules.inline.tag.exec(e);
|
|
1454
|
+
if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
|
|
1455
|
+
type: "html",
|
|
1456
|
+
raw: t[0],
|
|
1457
|
+
inLink: this.lexer.state.inLink,
|
|
1458
|
+
inRawBlock: this.lexer.state.inRawBlock,
|
|
1459
|
+
block: !1,
|
|
1460
|
+
text: t[0]
|
|
1461
|
+
};
|
|
1462
|
+
}
|
|
1463
|
+
link(e) {
|
|
1464
|
+
let t = this.rules.inline.link.exec(e);
|
|
1465
|
+
if (t) {
|
|
1466
|
+
let e = t[2].trim();
|
|
1467
|
+
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
1468
|
+
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
1469
|
+
let t = K(e.slice(0, -1), "\\");
|
|
1470
|
+
if ((e.length - t.length) % 2 == 0) return;
|
|
1471
|
+
} else {
|
|
1472
|
+
let e = An(t[2], "()");
|
|
1473
|
+
if (e === -2) return;
|
|
1474
|
+
if (e > -1) {
|
|
1475
|
+
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
1476
|
+
t[2] = t[2].substring(0, e), t[0] = t[0].substring(0, n).trim(), t[3] = "";
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
let n = t[2], r = "";
|
|
1480
|
+
if (this.options.pedantic) {
|
|
1481
|
+
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
1482
|
+
e && (n = e[1], r = e[3]);
|
|
1483
|
+
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
1484
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Mn(t, {
|
|
1485
|
+
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
1486
|
+
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
1487
|
+
}, t[0], this.lexer, this.rules);
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
reflink(e, t) {
|
|
1491
|
+
let n;
|
|
1492
|
+
if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
|
|
1493
|
+
let e = t[(n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
|
|
1494
|
+
if (!e) {
|
|
1495
|
+
let e = n[0].charAt(0);
|
|
1496
|
+
return {
|
|
1497
|
+
type: "text",
|
|
1498
|
+
raw: e,
|
|
1499
|
+
text: e
|
|
1500
|
+
};
|
|
1501
|
+
}
|
|
1502
|
+
return Mn(n, e, n[0], this.lexer, this.rules);
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
emStrong(e, t, n = "") {
|
|
1506
|
+
let r = this.rules.inline.emStrongLDelim.exec(e);
|
|
1507
|
+
if (!(!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[3]) || !n || this.rules.inline.punctuation.exec(n))) {
|
|
1508
|
+
let n = [...r[0]].length - 1, i, a, o = n, s = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
1509
|
+
for (c.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = c.exec(t)) !== null;) {
|
|
1510
|
+
if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i) continue;
|
|
1511
|
+
if (a = [...i].length, r[3] || r[4]) {
|
|
1512
|
+
o += a;
|
|
1513
|
+
continue;
|
|
1514
|
+
}
|
|
1515
|
+
if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
|
|
1516
|
+
s += a;
|
|
1517
|
+
continue;
|
|
1518
|
+
}
|
|
1519
|
+
if (o -= a, o > 0) continue;
|
|
1520
|
+
a = Math.min(a, a + o + s);
|
|
1521
|
+
let t = [...r[0]][0].length, c = e.slice(0, n + r.index + t + a);
|
|
1522
|
+
if (Math.min(n, a) % 2) {
|
|
1523
|
+
let e = c.slice(1, -1);
|
|
1524
|
+
return {
|
|
1525
|
+
type: "em",
|
|
1526
|
+
raw: c,
|
|
1527
|
+
text: e,
|
|
1528
|
+
tokens: this.lexer.inlineTokens(e)
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
let l = c.slice(2, -2);
|
|
1532
|
+
return {
|
|
1533
|
+
type: "strong",
|
|
1534
|
+
raw: c,
|
|
1535
|
+
text: l,
|
|
1536
|
+
tokens: this.lexer.inlineTokens(l)
|
|
1537
|
+
};
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
codespan(e) {
|
|
1542
|
+
let t = this.rules.inline.code.exec(e);
|
|
1543
|
+
if (t) {
|
|
1544
|
+
let e = t[2].replace(this.rules.other.newLineCharGlobal, " "), n = this.rules.other.nonSpaceChar.test(e), r = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
|
|
1545
|
+
return n && r && (e = e.substring(1, e.length - 1)), {
|
|
1546
|
+
type: "codespan",
|
|
1547
|
+
raw: t[0],
|
|
1548
|
+
text: e
|
|
1549
|
+
};
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
br(e) {
|
|
1553
|
+
let t = this.rules.inline.br.exec(e);
|
|
1554
|
+
if (t) return {
|
|
1555
|
+
type: "br",
|
|
1556
|
+
raw: t[0]
|
|
1557
|
+
};
|
|
1558
|
+
}
|
|
1559
|
+
del(e, t, n = "") {
|
|
1560
|
+
let r = this.rules.inline.delLDelim.exec(e);
|
|
1561
|
+
if (r && (!r[1] || !n || this.rules.inline.punctuation.exec(n))) {
|
|
1562
|
+
let n = [...r[0]].length - 1, i, a, o = n, s = this.rules.inline.delRDelim;
|
|
1563
|
+
for (s.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = s.exec(t)) !== null;) {
|
|
1564
|
+
if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i || (a = [...i].length, a !== n)) continue;
|
|
1565
|
+
if (r[3] || r[4]) {
|
|
1566
|
+
o += a;
|
|
1567
|
+
continue;
|
|
1568
|
+
}
|
|
1569
|
+
if (o -= a, o > 0) continue;
|
|
1570
|
+
a = Math.min(a, a + o);
|
|
1571
|
+
let t = [...r[0]][0].length, s = e.slice(0, n + r.index + t + a), c = s.slice(n, -n);
|
|
1572
|
+
return {
|
|
1573
|
+
type: "del",
|
|
1574
|
+
raw: s,
|
|
1575
|
+
text: c,
|
|
1576
|
+
tokens: this.lexer.inlineTokens(c)
|
|
1577
|
+
};
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
autolink(e) {
|
|
1582
|
+
let t = this.rules.inline.autolink.exec(e);
|
|
1583
|
+
if (t) {
|
|
1584
|
+
let e, n;
|
|
1585
|
+
return t[2] === "@" ? (e = t[1], n = "mailto:" + e) : (e = t[1], n = e), {
|
|
1586
|
+
type: "link",
|
|
1587
|
+
raw: t[0],
|
|
1588
|
+
text: e,
|
|
1589
|
+
href: n,
|
|
1590
|
+
tokens: [{
|
|
1591
|
+
type: "text",
|
|
1592
|
+
raw: e,
|
|
1593
|
+
text: e
|
|
1594
|
+
}]
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
url(e) {
|
|
1599
|
+
let t;
|
|
1600
|
+
if (t = this.rules.inline.url.exec(e)) {
|
|
1601
|
+
let e, n;
|
|
1602
|
+
if (t[2] === "@") e = t[0], n = "mailto:" + e;
|
|
1603
|
+
else {
|
|
1604
|
+
let r;
|
|
1605
|
+
do
|
|
1606
|
+
r = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? "";
|
|
1607
|
+
while (r !== t[0]);
|
|
1608
|
+
e = t[0], n = t[1] === "www." ? "http://" + t[0] : t[0];
|
|
1609
|
+
}
|
|
1610
|
+
return {
|
|
1611
|
+
type: "link",
|
|
1612
|
+
raw: t[0],
|
|
1613
|
+
text: e,
|
|
1614
|
+
href: n,
|
|
1615
|
+
tokens: [{
|
|
1616
|
+
type: "text",
|
|
1617
|
+
raw: e,
|
|
1618
|
+
text: e
|
|
1619
|
+
}]
|
|
1620
|
+
};
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
inlineText(e) {
|
|
1624
|
+
let t = this.rules.inline.text.exec(e);
|
|
1625
|
+
if (t) {
|
|
1626
|
+
let e = this.lexer.state.inRawBlock;
|
|
1627
|
+
return {
|
|
1628
|
+
type: "text",
|
|
1629
|
+
raw: t[0],
|
|
1630
|
+
text: t[0],
|
|
1631
|
+
escaped: e
|
|
1632
|
+
};
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
}, q = class e {
|
|
1636
|
+
constructor(e) {
|
|
1637
|
+
s(this, "tokens", void 0), s(this, "options", void 0), s(this, "state", void 0), s(this, "inlineQueue", void 0), s(this, "tokenizer", void 0), this.tokens = [], this.tokens.links = Object.create(null), this.options = e || M, this.options.tokenizer = this.options.tokenizer || new Pn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
1638
|
+
inLink: !1,
|
|
1639
|
+
inRawBlock: !1,
|
|
1640
|
+
top: !0
|
|
1641
|
+
};
|
|
1642
|
+
let t = {
|
|
1643
|
+
other: L,
|
|
1644
|
+
block: Cn.normal,
|
|
1645
|
+
inline: wn.normal
|
|
1646
|
+
};
|
|
1647
|
+
this.options.pedantic ? (t.block = Cn.pedantic, t.inline = wn.pedantic) : this.options.gfm && (t.block = Cn.gfm, t.inline = this.options.breaks ? wn.breaks : wn.gfm), this.tokenizer.rules = t;
|
|
1648
|
+
}
|
|
1649
|
+
static get rules() {
|
|
1650
|
+
return {
|
|
1651
|
+
block: Cn,
|
|
1652
|
+
inline: wn
|
|
1653
|
+
};
|
|
1654
|
+
}
|
|
1655
|
+
static lex(t, n) {
|
|
1656
|
+
return new e(n).lex(t);
|
|
1657
|
+
}
|
|
1658
|
+
static lexInline(t, n) {
|
|
1659
|
+
return new e(n).inlineTokens(t);
|
|
1660
|
+
}
|
|
1661
|
+
lex(e) {
|
|
1662
|
+
e = e.replace(L.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
1663
|
+
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
1664
|
+
let t = this.inlineQueue[e];
|
|
1665
|
+
this.inlineTokens(t.src, t.tokens);
|
|
1666
|
+
}
|
|
1667
|
+
return this.inlineQueue = [], this.tokens;
|
|
1668
|
+
}
|
|
1669
|
+
blockTokens(e, t = [], n = !1) {
|
|
1670
|
+
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(L.tabCharGlobal, " ").replace(L.spaceLine, ""));
|
|
1671
|
+
let r = 1 / 0;
|
|
1672
|
+
for (; e;) {
|
|
1673
|
+
if (e.length < r) r = e.length;
|
|
1674
|
+
else {
|
|
1675
|
+
this.infiniteLoopError(e.charCodeAt(0));
|
|
1676
|
+
break;
|
|
1677
|
+
}
|
|
1678
|
+
let i;
|
|
1679
|
+
if (this.options.extensions?.block?.some((n) => (i = n.call({ lexer: this }, e, t)) ? (e = e.substring(i.raw.length), t.push(i), !0) : !1)) continue;
|
|
1680
|
+
if (i = this.tokenizer.space(e)) {
|
|
1681
|
+
e = e.substring(i.raw.length);
|
|
1682
|
+
let n = t.at(-1);
|
|
1683
|
+
i.raw.length === 1 && n !== void 0 ? n.raw += "\n" : t.push(i);
|
|
1684
|
+
continue;
|
|
1685
|
+
}
|
|
1686
|
+
if (i = this.tokenizer.code(e)) {
|
|
1687
|
+
e = e.substring(i.raw.length);
|
|
1688
|
+
let n = t.at(-1);
|
|
1689
|
+
n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + i.raw, n.text += "\n" + i.text, this.inlineQueue.at(-1).src = n.text) : t.push(i);
|
|
1690
|
+
continue;
|
|
1691
|
+
}
|
|
1692
|
+
if ((i = this.tokenizer.fences(e)) || (i = this.tokenizer.heading(e)) || (i = this.tokenizer.hr(e)) || (i = this.tokenizer.blockquote(e)) || (i = this.tokenizer.list(e)) || (i = this.tokenizer.html(e))) {
|
|
1693
|
+
e = e.substring(i.raw.length), t.push(i);
|
|
1694
|
+
continue;
|
|
1695
|
+
}
|
|
1696
|
+
if (i = this.tokenizer.def(e)) {
|
|
1697
|
+
e = e.substring(i.raw.length);
|
|
1698
|
+
let n = t.at(-1);
|
|
1699
|
+
n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + i.raw, n.text += "\n" + i.raw, this.inlineQueue.at(-1).src = n.text) : this.tokens.links[i.tag] || (this.tokens.links[i.tag] = {
|
|
1700
|
+
href: i.href,
|
|
1701
|
+
title: i.title
|
|
1702
|
+
}, t.push(i));
|
|
1703
|
+
continue;
|
|
1704
|
+
}
|
|
1705
|
+
if ((i = this.tokenizer.table(e)) || (i = this.tokenizer.lheading(e))) {
|
|
1706
|
+
e = e.substring(i.raw.length), t.push(i);
|
|
1707
|
+
continue;
|
|
1708
|
+
}
|
|
1709
|
+
let a = e;
|
|
1710
|
+
if (this.options.extensions?.startBlock) {
|
|
1711
|
+
let t = 1 / 0, n = e.slice(1), r;
|
|
1712
|
+
this.options.extensions.startBlock.forEach((e) => {
|
|
1713
|
+
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
1714
|
+
}), t < 1 / 0 && t >= 0 && (a = e.substring(0, t + 1));
|
|
1715
|
+
}
|
|
1716
|
+
if (this.state.top && (i = this.tokenizer.paragraph(a))) {
|
|
1717
|
+
let r = t.at(-1);
|
|
1718
|
+
n && r?.type === "paragraph" ? (r.raw += (r.raw.endsWith("\n") ? "" : "\n") + i.raw, r.text += "\n" + i.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = r.text) : t.push(i), n = a.length !== e.length, e = e.substring(i.raw.length);
|
|
1719
|
+
} else if (i = this.tokenizer.text(e)) {
|
|
1720
|
+
e = e.substring(i.raw.length);
|
|
1721
|
+
let n = t.at(-1);
|
|
1722
|
+
n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + i.raw, n.text += "\n" + i.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(i);
|
|
1723
|
+
} else if (e) {
|
|
1724
|
+
this.infiniteLoopError(e.charCodeAt(0));
|
|
1725
|
+
break;
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
return this.state.top = !0, t;
|
|
1729
|
+
}
|
|
1730
|
+
inline(e, t = []) {
|
|
1731
|
+
return this.inlineQueue.push({
|
|
1732
|
+
src: e,
|
|
1733
|
+
tokens: t
|
|
1734
|
+
}), t;
|
|
1735
|
+
}
|
|
1736
|
+
inlineTokens(e, t = []) {
|
|
1737
|
+
this.tokenizer.lexer = this;
|
|
1738
|
+
let n = e, r = null;
|
|
1739
|
+
if (this.tokens.links) {
|
|
1740
|
+
let e = Object.keys(this.tokens.links);
|
|
1741
|
+
if (e.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) !== null;) e.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
1742
|
+
}
|
|
1743
|
+
for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) !== null;) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
1744
|
+
let i;
|
|
1745
|
+
for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) !== null;) i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
1746
|
+
n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
|
|
1747
|
+
let a = !1, o = "", s = 1 / 0;
|
|
1748
|
+
for (; e;) {
|
|
1749
|
+
if (e.length < s) s = e.length;
|
|
1750
|
+
else {
|
|
1751
|
+
this.infiniteLoopError(e.charCodeAt(0));
|
|
1752
|
+
break;
|
|
1753
|
+
}
|
|
1754
|
+
a || (o = ""), a = !1;
|
|
1755
|
+
let r;
|
|
1756
|
+
if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
1757
|
+
if ((r = this.tokenizer.escape(e)) || (r = this.tokenizer.tag(e)) || (r = this.tokenizer.link(e))) {
|
|
1758
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
1759
|
+
continue;
|
|
1760
|
+
}
|
|
1761
|
+
if (r = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
1762
|
+
e = e.substring(r.raw.length);
|
|
1763
|
+
let n = t.at(-1);
|
|
1764
|
+
r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
1765
|
+
continue;
|
|
1766
|
+
}
|
|
1767
|
+
if ((r = this.tokenizer.emStrong(e, n, o)) || (r = this.tokenizer.codespan(e)) || (r = this.tokenizer.br(e)) || (r = this.tokenizer.del(e, n, o)) || (r = this.tokenizer.autolink(e)) || !this.state.inLink && (r = this.tokenizer.url(e))) {
|
|
1768
|
+
e = e.substring(r.raw.length), t.push(r);
|
|
1769
|
+
continue;
|
|
1770
|
+
}
|
|
1771
|
+
let i = e;
|
|
1772
|
+
if (this.options.extensions?.startInline) {
|
|
1773
|
+
let t = 1 / 0, n = e.slice(1), r;
|
|
1774
|
+
this.options.extensions.startInline.forEach((e) => {
|
|
1775
|
+
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
1776
|
+
}), t < 1 / 0 && t >= 0 && (i = e.substring(0, t + 1));
|
|
1777
|
+
}
|
|
1778
|
+
if (r = this.tokenizer.inlineText(i)) {
|
|
1779
|
+
e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
|
|
1780
|
+
let n = t.at(-1);
|
|
1781
|
+
n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
1782
|
+
} else if (e) {
|
|
1783
|
+
this.infiniteLoopError(e.charCodeAt(0));
|
|
1784
|
+
break;
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
return t;
|
|
1788
|
+
}
|
|
1789
|
+
infiniteLoopError(e) {
|
|
1790
|
+
let t = "Infinite loop on byte: " + e;
|
|
1791
|
+
if (this.options.silent) console.error(t);
|
|
1792
|
+
else throw Error(t);
|
|
1793
|
+
}
|
|
1794
|
+
}, Fn = class {
|
|
1795
|
+
constructor(e) {
|
|
1796
|
+
s(this, "options", void 0), s(this, "parser", void 0), this.options = e || M;
|
|
1797
|
+
}
|
|
1798
|
+
space(e) {
|
|
1799
|
+
return "";
|
|
1800
|
+
}
|
|
1801
|
+
code({ text: e, lang: t, escaped: n }) {
|
|
1802
|
+
let r = (t || "").match(L.notSpaceStart)?.[0], i = e.replace(L.endingNewline, "") + "\n";
|
|
1803
|
+
return r ? "<pre><code class=\"language-" + G(r) + "\">" + (n ? i : G(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : G(i, !0)) + "</code></pre>\n";
|
|
1804
|
+
}
|
|
1805
|
+
blockquote({ tokens: e }) {
|
|
1806
|
+
return `<blockquote>
|
|
1807
|
+
${this.parser.parse(e)}</blockquote>
|
|
1808
|
+
`;
|
|
1809
|
+
}
|
|
1810
|
+
html({ text: e }) {
|
|
1811
|
+
return e;
|
|
1812
|
+
}
|
|
1813
|
+
def(e) {
|
|
1814
|
+
return "";
|
|
1815
|
+
}
|
|
1816
|
+
heading({ tokens: e, depth: t }) {
|
|
1817
|
+
return `<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
1818
|
+
`;
|
|
1819
|
+
}
|
|
1820
|
+
hr(e) {
|
|
1821
|
+
return "<hr>\n";
|
|
1822
|
+
}
|
|
1823
|
+
list(e) {
|
|
1824
|
+
let t = e.ordered, n = e.start, r = "";
|
|
1825
|
+
for (let t = 0; t < e.items.length; t++) {
|
|
1826
|
+
let n = e.items[t];
|
|
1827
|
+
r += this.listitem(n);
|
|
1828
|
+
}
|
|
1829
|
+
let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
|
|
1830
|
+
return "<" + i + a + ">\n" + r + "</" + i + ">\n";
|
|
1831
|
+
}
|
|
1832
|
+
listitem(e) {
|
|
1833
|
+
return `<li>${this.parser.parse(e.tokens)}</li>
|
|
1834
|
+
`;
|
|
1835
|
+
}
|
|
1836
|
+
checkbox({ checked: e }) {
|
|
1837
|
+
return "<input " + (e ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\"> ";
|
|
1838
|
+
}
|
|
1839
|
+
paragraph({ tokens: e }) {
|
|
1840
|
+
return `<p>${this.parser.parseInline(e)}</p>
|
|
1841
|
+
`;
|
|
1842
|
+
}
|
|
1843
|
+
table(e) {
|
|
1844
|
+
let t = "", n = "";
|
|
1845
|
+
for (let t = 0; t < e.header.length; t++) n += this.tablecell(e.header[t]);
|
|
1846
|
+
t += this.tablerow({ text: n });
|
|
1847
|
+
let r = "";
|
|
1848
|
+
for (let t = 0; t < e.rows.length; t++) {
|
|
1849
|
+
let i = e.rows[t];
|
|
1850
|
+
n = "";
|
|
1851
|
+
for (let e = 0; e < i.length; e++) n += this.tablecell(i[e]);
|
|
1852
|
+
r += this.tablerow({ text: n });
|
|
1853
|
+
}
|
|
1854
|
+
return r &&= `<tbody>${r}</tbody>`, "<table>\n<thead>\n" + t + "</thead>\n" + r + "</table>\n";
|
|
1855
|
+
}
|
|
1856
|
+
tablerow({ text: e }) {
|
|
1857
|
+
return `<tr>
|
|
1858
|
+
${e}</tr>
|
|
1859
|
+
`;
|
|
1860
|
+
}
|
|
1861
|
+
tablecell(e) {
|
|
1862
|
+
let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
|
|
1863
|
+
return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
|
|
1864
|
+
`;
|
|
1865
|
+
}
|
|
1866
|
+
strong({ tokens: e }) {
|
|
1867
|
+
return `<strong>${this.parser.parseInline(e)}</strong>`;
|
|
1868
|
+
}
|
|
1869
|
+
em({ tokens: e }) {
|
|
1870
|
+
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
1871
|
+
}
|
|
1872
|
+
codespan({ text: e }) {
|
|
1873
|
+
return `<code>${G(e, !0)}</code>`;
|
|
1874
|
+
}
|
|
1875
|
+
br(e) {
|
|
1876
|
+
return "<br>";
|
|
1877
|
+
}
|
|
1878
|
+
del({ tokens: e }) {
|
|
1879
|
+
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
1880
|
+
}
|
|
1881
|
+
link({ href: e, title: t, tokens: n }) {
|
|
1882
|
+
let r = this.parser.parseInline(n), i = Dn(e);
|
|
1883
|
+
if (i === null) return r;
|
|
1884
|
+
e = i;
|
|
1885
|
+
let a = "<a href=\"" + e + "\"";
|
|
1886
|
+
return t && (a += " title=\"" + G(t) + "\""), a += ">" + r + "</a>", a;
|
|
1887
|
+
}
|
|
1888
|
+
image({ href: e, title: t, text: n, tokens: r }) {
|
|
1889
|
+
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
1890
|
+
let i = Dn(e);
|
|
1891
|
+
if (i === null) return G(n);
|
|
1892
|
+
e = i;
|
|
1893
|
+
let a = `<img src="${e}" alt="${G(n)}"`;
|
|
1894
|
+
return t && (a += ` title="${G(t)}"`), a += ">", a;
|
|
1895
|
+
}
|
|
1896
|
+
text(e) {
|
|
1897
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : G(e.text);
|
|
1898
|
+
}
|
|
1899
|
+
}, In = class {
|
|
1900
|
+
strong({ text: e }) {
|
|
1901
|
+
return e;
|
|
1902
|
+
}
|
|
1903
|
+
em({ text: e }) {
|
|
1904
|
+
return e;
|
|
1905
|
+
}
|
|
1906
|
+
codespan({ text: e }) {
|
|
1907
|
+
return e;
|
|
1908
|
+
}
|
|
1909
|
+
del({ text: e }) {
|
|
1910
|
+
return e;
|
|
1911
|
+
}
|
|
1912
|
+
html({ text: e }) {
|
|
1913
|
+
return e;
|
|
1914
|
+
}
|
|
1915
|
+
text({ text: e }) {
|
|
1916
|
+
return e;
|
|
1917
|
+
}
|
|
1918
|
+
link({ text: e }) {
|
|
1919
|
+
return "" + e;
|
|
1920
|
+
}
|
|
1921
|
+
image({ text: e }) {
|
|
1922
|
+
return "" + e;
|
|
1923
|
+
}
|
|
1924
|
+
br() {
|
|
1925
|
+
return "";
|
|
1926
|
+
}
|
|
1927
|
+
checkbox({ raw: e }) {
|
|
1928
|
+
return e;
|
|
1929
|
+
}
|
|
1930
|
+
}, J = class e {
|
|
1931
|
+
constructor(e) {
|
|
1932
|
+
s(this, "options", void 0), s(this, "renderer", void 0), s(this, "textRenderer", void 0), this.options = e || M, this.options.renderer = this.options.renderer || new Fn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new In();
|
|
1933
|
+
}
|
|
1934
|
+
static parse(t, n) {
|
|
1935
|
+
return new e(n).parse(t);
|
|
1936
|
+
}
|
|
1937
|
+
static parseInline(t, n) {
|
|
1938
|
+
return new e(n).parseInline(t);
|
|
1939
|
+
}
|
|
1940
|
+
parse(e) {
|
|
1941
|
+
this.renderer.parser = this;
|
|
1942
|
+
let t = "";
|
|
1943
|
+
for (let n = 0; n < e.length; n++) {
|
|
1944
|
+
let r = e[n];
|
|
1945
|
+
if (this.options.extensions?.renderers?.[r.type]) {
|
|
1946
|
+
let e = r, n = this.options.extensions.renderers[e.type].call({ parser: this }, e);
|
|
1947
|
+
if (n !== !1 || ![
|
|
1948
|
+
"space",
|
|
1949
|
+
"hr",
|
|
1950
|
+
"heading",
|
|
1951
|
+
"code",
|
|
1952
|
+
"table",
|
|
1953
|
+
"blockquote",
|
|
1954
|
+
"list",
|
|
1955
|
+
"html",
|
|
1956
|
+
"def",
|
|
1957
|
+
"paragraph",
|
|
1958
|
+
"text"
|
|
1959
|
+
].includes(e.type)) {
|
|
1960
|
+
t += n || "";
|
|
1961
|
+
continue;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
let i = r;
|
|
1965
|
+
switch (i.type) {
|
|
1966
|
+
case "space":
|
|
1967
|
+
t += this.renderer.space(i);
|
|
1968
|
+
break;
|
|
1969
|
+
case "hr":
|
|
1970
|
+
t += this.renderer.hr(i);
|
|
1971
|
+
break;
|
|
1972
|
+
case "heading":
|
|
1973
|
+
t += this.renderer.heading(i);
|
|
1974
|
+
break;
|
|
1975
|
+
case "code":
|
|
1976
|
+
t += this.renderer.code(i);
|
|
1977
|
+
break;
|
|
1978
|
+
case "table":
|
|
1979
|
+
t += this.renderer.table(i);
|
|
1980
|
+
break;
|
|
1981
|
+
case "blockquote":
|
|
1982
|
+
t += this.renderer.blockquote(i);
|
|
1983
|
+
break;
|
|
1984
|
+
case "list":
|
|
1985
|
+
t += this.renderer.list(i);
|
|
1986
|
+
break;
|
|
1987
|
+
case "checkbox":
|
|
1988
|
+
t += this.renderer.checkbox(i);
|
|
1989
|
+
break;
|
|
1990
|
+
case "html":
|
|
1991
|
+
t += this.renderer.html(i);
|
|
1992
|
+
break;
|
|
1993
|
+
case "def":
|
|
1994
|
+
t += this.renderer.def(i);
|
|
1995
|
+
break;
|
|
1996
|
+
case "paragraph":
|
|
1997
|
+
t += this.renderer.paragraph(i);
|
|
1998
|
+
break;
|
|
1999
|
+
case "text":
|
|
2000
|
+
t += this.renderer.text(i);
|
|
2001
|
+
break;
|
|
2002
|
+
default: {
|
|
2003
|
+
let e = "Token with \"" + i.type + "\" type was not found.";
|
|
2004
|
+
if (this.options.silent) return console.error(e), "";
|
|
2005
|
+
throw Error(e);
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
return t;
|
|
2010
|
+
}
|
|
2011
|
+
parseInline(e, t = this.renderer) {
|
|
2012
|
+
this.renderer.parser = this;
|
|
2013
|
+
let n = "";
|
|
2014
|
+
for (let r = 0; r < e.length; r++) {
|
|
2015
|
+
let i = e[r];
|
|
2016
|
+
if (this.options.extensions?.renderers?.[i.type]) {
|
|
2017
|
+
let e = this.options.extensions.renderers[i.type].call({ parser: this }, i);
|
|
2018
|
+
if (e !== !1 || ![
|
|
2019
|
+
"escape",
|
|
2020
|
+
"html",
|
|
2021
|
+
"link",
|
|
2022
|
+
"image",
|
|
2023
|
+
"strong",
|
|
2024
|
+
"em",
|
|
2025
|
+
"codespan",
|
|
2026
|
+
"br",
|
|
2027
|
+
"del",
|
|
2028
|
+
"text"
|
|
2029
|
+
].includes(i.type)) {
|
|
2030
|
+
n += e || "";
|
|
2031
|
+
continue;
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
let a = i;
|
|
2035
|
+
switch (a.type) {
|
|
2036
|
+
case "escape":
|
|
2037
|
+
n += t.text(a);
|
|
2038
|
+
break;
|
|
2039
|
+
case "html":
|
|
2040
|
+
n += t.html(a);
|
|
2041
|
+
break;
|
|
2042
|
+
case "link":
|
|
2043
|
+
n += t.link(a);
|
|
2044
|
+
break;
|
|
2045
|
+
case "image":
|
|
2046
|
+
n += t.image(a);
|
|
2047
|
+
break;
|
|
2048
|
+
case "checkbox":
|
|
2049
|
+
n += t.checkbox(a);
|
|
2050
|
+
break;
|
|
2051
|
+
case "strong":
|
|
2052
|
+
n += t.strong(a);
|
|
2053
|
+
break;
|
|
2054
|
+
case "em":
|
|
2055
|
+
n += t.em(a);
|
|
2056
|
+
break;
|
|
2057
|
+
case "codespan":
|
|
2058
|
+
n += t.codespan(a);
|
|
2059
|
+
break;
|
|
2060
|
+
case "br":
|
|
2061
|
+
n += t.br(a);
|
|
2062
|
+
break;
|
|
2063
|
+
case "del":
|
|
2064
|
+
n += t.del(a);
|
|
2065
|
+
break;
|
|
2066
|
+
case "text":
|
|
2067
|
+
n += t.text(a);
|
|
2068
|
+
break;
|
|
2069
|
+
default: {
|
|
2070
|
+
let e = "Token with \"" + a.type + "\" type was not found.";
|
|
2071
|
+
if (this.options.silent) return console.error(e), "";
|
|
2072
|
+
throw Error(e);
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
return n;
|
|
2077
|
+
}
|
|
2078
|
+
}, Ln = (Ct = class {
|
|
2079
|
+
constructor(e) {
|
|
2080
|
+
s(this, "options", void 0), s(this, "block", void 0), this.options = e || M;
|
|
2081
|
+
}
|
|
2082
|
+
preprocess(e) {
|
|
2083
|
+
return e;
|
|
2084
|
+
}
|
|
2085
|
+
postprocess(e) {
|
|
2086
|
+
return e;
|
|
2087
|
+
}
|
|
2088
|
+
processAllTokens(e) {
|
|
2089
|
+
return e;
|
|
2090
|
+
}
|
|
2091
|
+
emStrongMask(e) {
|
|
2092
|
+
return e;
|
|
2093
|
+
}
|
|
2094
|
+
provideLexer(e = this.block) {
|
|
2095
|
+
return e ? q.lex : q.lexInline;
|
|
2096
|
+
}
|
|
2097
|
+
provideParser(e = this.block) {
|
|
2098
|
+
return e ? J.parse : J.parseInline;
|
|
2099
|
+
}
|
|
2100
|
+
}, s(Ct, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
2101
|
+
"preprocess",
|
|
2102
|
+
"postprocess",
|
|
2103
|
+
"processAllTokens",
|
|
2104
|
+
"emStrongMask"
|
|
2105
|
+
])), s(Ct, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set([
|
|
2106
|
+
"preprocess",
|
|
2107
|
+
"postprocess",
|
|
2108
|
+
"processAllTokens"
|
|
2109
|
+
])), Ct), Y = new class {
|
|
2110
|
+
constructor(...e) {
|
|
2111
|
+
s(this, "defaults", wt()), s(this, "options", this.setOptions), s(this, "parse", this.parseMarkdown(!0)), s(this, "parseInline", this.parseMarkdown(!1)), s(this, "Parser", J), s(this, "Renderer", Fn), s(this, "TextRenderer", In), s(this, "Lexer", q), s(this, "Tokenizer", Pn), s(this, "Hooks", Ln), this.use(...e);
|
|
2112
|
+
}
|
|
2113
|
+
walkTokens(e, t) {
|
|
2114
|
+
let n = [];
|
|
2115
|
+
for (let r of e) switch (n = n.concat(t.call(this, r)), r.type) {
|
|
2116
|
+
case "table": {
|
|
2117
|
+
let e = r;
|
|
2118
|
+
for (let r of e.header) n = n.concat(this.walkTokens(r.tokens, t));
|
|
2119
|
+
for (let r of e.rows) for (let e of r) n = n.concat(this.walkTokens(e.tokens, t));
|
|
2120
|
+
break;
|
|
2121
|
+
}
|
|
2122
|
+
case "list": {
|
|
2123
|
+
let e = r;
|
|
2124
|
+
n = n.concat(this.walkTokens(e.items, t));
|
|
2125
|
+
break;
|
|
2126
|
+
}
|
|
2127
|
+
default: {
|
|
2128
|
+
let e = r;
|
|
2129
|
+
this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
|
|
2130
|
+
let i = e[r].flat(1 / 0);
|
|
2131
|
+
n = n.concat(this.walkTokens(i, t));
|
|
2132
|
+
}) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
return n;
|
|
2136
|
+
}
|
|
2137
|
+
use(...e) {
|
|
2138
|
+
let t = this.defaults.extensions || {
|
|
2139
|
+
renderers: {},
|
|
2140
|
+
childTokens: {}
|
|
2141
|
+
};
|
|
2142
|
+
return e.forEach((e) => {
|
|
2143
|
+
let n = { ...e };
|
|
2144
|
+
if (n.async = this.defaults.async || n.async || !1, e.extensions && (e.extensions.forEach((e) => {
|
|
2145
|
+
if (!e.name) throw Error("extension name required");
|
|
2146
|
+
if ("renderer" in e) {
|
|
2147
|
+
let n = t.renderers[e.name];
|
|
2148
|
+
n ? t.renderers[e.name] = function(...t) {
|
|
2149
|
+
let r = e.renderer.apply(this, t);
|
|
2150
|
+
return r === !1 && (r = n.apply(this, t)), r;
|
|
2151
|
+
} : t.renderers[e.name] = e.renderer;
|
|
2152
|
+
}
|
|
2153
|
+
if ("tokenizer" in e) {
|
|
2154
|
+
if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
|
|
2155
|
+
let n = t[e.level];
|
|
2156
|
+
n ? n.unshift(e.tokenizer) : t[e.level] = [e.tokenizer], e.start && (e.level === "block" ? t.startBlock ? t.startBlock.push(e.start) : t.startBlock = [e.start] : e.level === "inline" && (t.startInline ? t.startInline.push(e.start) : t.startInline = [e.start]));
|
|
2157
|
+
}
|
|
2158
|
+
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
2159
|
+
}), n.extensions = t), e.renderer) {
|
|
2160
|
+
let t = this.defaults.renderer || new Fn(this.defaults);
|
|
2161
|
+
for (let n in e.renderer) {
|
|
2162
|
+
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
2163
|
+
if (["options", "parser"].includes(n)) continue;
|
|
2164
|
+
let r = n, i = e.renderer[r], a = t[r];
|
|
2165
|
+
t[r] = (...e) => {
|
|
2166
|
+
let n = i.apply(t, e);
|
|
2167
|
+
return n === !1 && (n = a.apply(t, e)), n || "";
|
|
2168
|
+
};
|
|
2169
|
+
}
|
|
2170
|
+
n.renderer = t;
|
|
2171
|
+
}
|
|
2172
|
+
if (e.tokenizer) {
|
|
2173
|
+
let t = this.defaults.tokenizer || new Pn(this.defaults);
|
|
2174
|
+
for (let n in e.tokenizer) {
|
|
2175
|
+
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
2176
|
+
if ([
|
|
2177
|
+
"options",
|
|
2178
|
+
"rules",
|
|
2179
|
+
"lexer"
|
|
2180
|
+
].includes(n)) continue;
|
|
2181
|
+
let r = n, i = e.tokenizer[r], a = t[r];
|
|
2182
|
+
t[r] = (...e) => {
|
|
2183
|
+
let n = i.apply(t, e);
|
|
2184
|
+
return n === !1 && (n = a.apply(t, e)), n;
|
|
2185
|
+
};
|
|
2186
|
+
}
|
|
2187
|
+
n.tokenizer = t;
|
|
2188
|
+
}
|
|
2189
|
+
if (e.hooks) {
|
|
2190
|
+
let t = this.defaults.hooks || new Ln();
|
|
2191
|
+
for (let n in e.hooks) {
|
|
2192
|
+
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
2193
|
+
if (["options", "block"].includes(n)) continue;
|
|
2194
|
+
let r = n, i = e.hooks[r], a = t[r];
|
|
2195
|
+
t[r] = Ln.passThroughHooks.has(n) ? (e) => {
|
|
2196
|
+
if (this.defaults.async && Ln.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
2197
|
+
let n = await i.call(t, e);
|
|
2198
|
+
return a.call(t, n);
|
|
2199
|
+
})();
|
|
2200
|
+
let r = i.call(t, e);
|
|
2201
|
+
return a.call(t, r);
|
|
2202
|
+
} : (...e) => {
|
|
2203
|
+
if (this.defaults.async) return (async () => {
|
|
2204
|
+
let n = await i.apply(t, e);
|
|
2205
|
+
return n === !1 && (n = await a.apply(t, e)), n;
|
|
2206
|
+
})();
|
|
2207
|
+
let n = i.apply(t, e);
|
|
2208
|
+
return n === !1 && (n = a.apply(t, e)), n;
|
|
2209
|
+
};
|
|
2210
|
+
}
|
|
2211
|
+
n.hooks = t;
|
|
2212
|
+
}
|
|
2213
|
+
if (e.walkTokens) {
|
|
2214
|
+
let t = this.defaults.walkTokens, r = e.walkTokens;
|
|
2215
|
+
n.walkTokens = function(e) {
|
|
2216
|
+
let n = [];
|
|
2217
|
+
return n.push(r.call(this, e)), t && (n = n.concat(t.call(this, e))), n;
|
|
2218
|
+
};
|
|
2219
|
+
}
|
|
2220
|
+
this.defaults = {
|
|
2221
|
+
...this.defaults,
|
|
2222
|
+
...n
|
|
2223
|
+
};
|
|
2224
|
+
}), this;
|
|
2225
|
+
}
|
|
2226
|
+
setOptions(e) {
|
|
2227
|
+
return this.defaults = {
|
|
2228
|
+
...this.defaults,
|
|
2229
|
+
...e
|
|
2230
|
+
}, this;
|
|
2231
|
+
}
|
|
2232
|
+
lexer(e, t) {
|
|
2233
|
+
return q.lex(e, t ?? this.defaults);
|
|
2234
|
+
}
|
|
2235
|
+
parser(e, t) {
|
|
2236
|
+
return J.parse(e, t ?? this.defaults);
|
|
2237
|
+
}
|
|
2238
|
+
parseMarkdown(e) {
|
|
2239
|
+
return (t, n) => {
|
|
2240
|
+
let r = { ...n }, i = {
|
|
2241
|
+
...this.defaults,
|
|
2242
|
+
...r
|
|
2243
|
+
}, a = this.onError(!!i.silent, !!i.async);
|
|
2244
|
+
if (this.defaults.async === !0 && r.async === !1) return a(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
2245
|
+
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
2246
|
+
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
2247
|
+
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
2248
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? q.lex : q.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
2249
|
+
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
2250
|
+
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? J.parse : J.parseInline)(a, i);
|
|
2251
|
+
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
2252
|
+
})().catch(a);
|
|
2253
|
+
try {
|
|
2254
|
+
i.hooks && (t = i.hooks.preprocess(t));
|
|
2255
|
+
let n = (i.hooks ? i.hooks.provideLexer(e) : e ? q.lex : q.lexInline)(t, i);
|
|
2256
|
+
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
2257
|
+
let r = (i.hooks ? i.hooks.provideParser(e) : e ? J.parse : J.parseInline)(n, i);
|
|
2258
|
+
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
2259
|
+
} catch (e) {
|
|
2260
|
+
return a(e);
|
|
2261
|
+
}
|
|
2262
|
+
};
|
|
2263
|
+
}
|
|
2264
|
+
onError(e, t) {
|
|
2265
|
+
return (n) => {
|
|
2266
|
+
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
2267
|
+
let e = "<p>An error occurred:</p><pre>" + G(n.message + "", !0) + "</pre>";
|
|
2268
|
+
return t ? Promise.resolve(e) : e;
|
|
2269
|
+
}
|
|
2270
|
+
if (t) return Promise.reject(n);
|
|
2271
|
+
throw n;
|
|
2272
|
+
};
|
|
2273
|
+
}
|
|
2274
|
+
}();
|
|
2275
|
+
function X(e, t) {
|
|
2276
|
+
return Y.parse(e, t);
|
|
2277
|
+
}
|
|
2278
|
+
X.options = X.setOptions = function(e) {
|
|
2279
|
+
return Y.setOptions(e), X.defaults = Y.defaults, Tt(X.defaults), X;
|
|
2280
|
+
}, X.getDefaults = wt, X.defaults = M, X.use = function(...e) {
|
|
2281
|
+
return Y.use(...e), X.defaults = Y.defaults, Tt(X.defaults), X;
|
|
2282
|
+
}, X.walkTokens = function(e, t) {
|
|
2283
|
+
return Y.walkTokens(e, t);
|
|
2284
|
+
}, X.parseInline = Y.parseInline, X.Parser = J, X.parser = J.parse, X.Renderer = Fn, X.TextRenderer = In, X.Lexer = q, X.lexer = q.lex, X.Tokenizer = Pn, X.Hooks = Ln, X.parse = X, X.options, X.setOptions, X.use, X.walkTokens, X.parseInline, J.parse, q.lex;
|
|
2285
|
+
// src/components/ai-chat/ai-chat.module.scss?inline
|
|
2286
|
+
var Rn = ":host{box-sizing:border-box;flex-direction:column;width:100%;height:100%;display:flex}:host .chat-container{background:var(--luzmo-ai-chat-background,var(--ai-chat-background));border-radius:var(--luzmo-ai-chat-border-radius,var(--ai-chat-border-radius));width:100%;height:100%;min-height:0;padding:var(--luzmo-ai-chat-padding,var(--ai-chat-padding));gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));border:var(--luzmo-ai-chat-border,var(--ai-chat-border));box-shadow:var(--luzmo-ai-chat-box-shadow,var(--ai-chat-box-shadow));box-sizing:border-box;flex-direction:column;flex:1;display:flex;overflow:hidden}:host .chat-messages-container{gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));flex-direction:column;flex:1;min-height:0;display:flex;overflow:auto}:host .chat-messages-container luzmo-ai-chat-empty-state{flex:1;min-height:0}:host .chat-messages-container::-webkit-scrollbar{width:var(--luzmo-ai-chat-scrollbar-width,var(--ai-chat-scrollbar-width))}:host .chat-messages-container::-webkit-scrollbar-track{background:var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background));border-radius:var(--luzmo-ai-chat-scrollbar-track-border-radius,var(--ai-chat-scrollbar-track-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb{background:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background));border-radius:var(--luzmo-ai-chat-scrollbar-thumb-border-radius,var(--ai-chat-scrollbar-thumb-border-radius))}:host .chat-messages-container::-webkit-scrollbar-thumb:hover{background:var(--luzmo-ai-chat-scrollbar-thumb-hover-background,var(--ai-chat-scrollbar-thumb-hover-background))}:host .chat-messages-container{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-ai-chat-scrollbar-thumb-background,var(--ai-chat-scrollbar-thumb-background)) var(--luzmo-ai-chat-scrollbar-track-background,var(--ai-chat-scrollbar-track-background))}:host luzmo-chat-message{--luzmo-primary:var(--ai-chat-user-message-background);--chat-message-primary-text-color:var(--luzmo-font-color);--chat-message-primary-border-color:transparent}:host luzmo-chat-message.error{color:var(--luzmo-ai-chat-error-message-color,var(--ai-chat-error-message-color))}:host luzmo-chat-message.cancelled{color:var(--luzmo-ai-chat-cancelled-message-color,var(--ai-chat-cancelled-message-color));font-style:italic}:host .user-message-content{gap:var(--luzmo-spacing-3,8px);flex-direction:column;display:flex}:host .user-message-attachments{gap:var(--luzmo-spacing-2,4px);flex-wrap:wrap;display:flex}:host .user-message-attachment{width:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));height:var(--luzmo-ai-chat-user-message-attachment-size,var(--ai-chat-user-message-attachment-size));object-fit:cover;object-position:center;border-radius:var(--luzmo-border-radius-s,4px);pointer-events:none;display:block}:host .user-message-text{white-space:pre-wrap;overflow-wrap:anywhere}:host .markdown-content{line-height:var(--luzmo-ai-chat-markdown-line-height,var(--ai-chat-markdown-line-height))}:host .markdown-content>:first-child{margin-top:0}:host .markdown-content>:last-child{margin-bottom:0}:host .markdown-content p,:host .markdown-content ul,:host .markdown-content ol,:host .markdown-content blockquote,:host .markdown-content pre,:host .markdown-content table{margin:0 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing))}:host .markdown-content h1,:host .markdown-content h2,:host .markdown-content h3,:host .markdown-content h4,:host .markdown-content h5,:host .markdown-content h6{margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0 var(--luzmo-ai-chat-markdown-spacing,var(--ai-chat-markdown-spacing));font-weight:var(--luzmo-ai-chat-markdown-heading-font-weight,var(--ai-chat-markdown-heading-font-weight))}:host .markdown-content ul,:host .markdown-content ol{padding-inline-start:var(--luzmo-ai-chat-markdown-list-indent,var(--ai-chat-markdown-list-indent))}:host .markdown-content a{color:var(--luzmo-ai-chat-markdown-link-color,var(--ai-chat-markdown-link-color))}:host .markdown-content code{font-family:var(--luzmo-ai-chat-markdown-code-font-family,var(--ai-chat-markdown-code-font-family));font-size:var(--luzmo-ai-chat-markdown-code-font-size,var(--ai-chat-markdown-code-font-size));background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.1em .3em}:host .markdown-content pre{background:var(--luzmo-ai-chat-markdown-code-background,var(--ai-chat-markdown-code-background));border-radius:var(--luzmo-ai-chat-markdown-code-border-radius,var(--ai-chat-markdown-code-border-radius));padding:.75em 1em;overflow-x:auto}:host .markdown-content pre code{background:0 0;padding:0}:host .markdown-content blockquote{border-inline-start:.1875rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));padding-inline-start:.75rem}:host .markdown-content hr{border:0;border-top:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));margin:var(--luzmo-ai-chat-markdown-heading-spacing,var(--ai-chat-markdown-heading-spacing)) 0}:host .markdown-content table{border-collapse:collapse;width:100%}:host .markdown-content th,:host .markdown-content td{border:.0625rem solid var(--luzmo-ai-chat-markdown-border-color,var(--ai-chat-markdown-border-color));text-align:start;padding:.375rem .625rem}:host .markdown-content th{background:var(--luzmo-ai-chat-markdown-table-header-background,var(--ai-chat-markdown-table-header-background));font-weight:600}:host .assistant-message-wrapper{gap:var(--luzmo-ai-chat-assistant-message-actions-margin-top,var(--ai-chat-assistant-message-actions-margin-top));font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height));flex-direction:column;display:flex}:host luzmo-chat-message[position=left]{--luzmo-chat-message-font-family:var(--luzmo-ai-chat-assistant-message-font-family,var(--ai-chat-assistant-message-font-family));--luzmo-chat-message-font-size:var(--luzmo-ai-chat-assistant-message-font-size,var(--ai-chat-assistant-message-font-size));--luzmo-chat-message-line-height:var(--luzmo-ai-chat-assistant-message-line-height,var(--ai-chat-assistant-message-line-height))}:host .assistant-message-body{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}:host .assistant-message-feedback{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));display:flex}:host .assistant-message-feedback luzmo-action-button{--luzmo-action-button-background-color-default-selected:var(--ai-chat-user-message-background);--luzmo-action-button-background-color-hover:var(--ai-chat-user-message-background);--luzmo-action-button-background-color-focus-selected:var(--ai-chat-user-message-background);--luzmo-action-button-background-color-down-selected:var(--ai-chat-user-message-background)}:host .assistant-message-feedback luzmo-action-button[value=up]{--luzmo-action-button-content-color-default-selected:var(--luzmo-positive-color);--luzmo-action-button-content-color-hover-selected:var(--luzmo-positive-color);--luzmo-action-button-content-color-focus-selected:var(--luzmo-positive-color);--luzmo-action-button-content-color-down-selected:var(--luzmo-positive-color)}:host .assistant-message-feedback luzmo-action-button[value=down]{--luzmo-action-button-content-color-default-selected:var(--luzmo-negative-color);--luzmo-action-button-content-color-hover-selected:var(--luzmo-negative-color);--luzmo-action-button-content-color-focus-selected:var(--luzmo-negative-color);--luzmo-action-button-content-color-down-selected:var(--luzmo-negative-color)}:host .assistant-message-footer{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:none}:host .assistant-message-footer.assistant-message-footer--has-content{margin-block-start:var(--luzmo-ai-chat-assistant-message-actions-margin-top,var(--ai-chat-assistant-message-actions-margin-top));display:flex}:host luzmo-action-button.assistant-message-action{--luzmo-action-button-background-color-hover:var(--ai-chat-user-message-background)}:host .assistant-message-actions{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:none}:host .assistant-message-actions.assistant-message-actions--has-content{display:contents}:host .assistant-message-actions.assistant-message-actions--confirming{flex-direction:column;flex-basis:100%;align-items:flex-start;display:flex}:host .assistant-message-actions .assistant-message-action-confirm-message{font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color));white-space:pre-line}:host .assistant-message-actions .assistant-message-action-confirm-controls{align-items:center;gap:var(--luzmo-ai-chat-assistant-message-actions-gap,var(--ai-chat-assistant-message-actions-gap));flex-wrap:wrap;display:flex}:host .assistant-message-actions luzmo-button.assistant-message-action,:host .assistant-message-actions slot::slotted(luzmo-button),:host .assistant-message-actions slot::slotted(button),:host .assistant-message-actions slot::slotted(a),:host .assistant-message-actions slot::slotted(input),:host .assistant-message-actions slot::slotted(select),:host .assistant-message-actions slot::slotted(textarea){font-style:normal}:host .assistant-message-actions slot::slotted(:not(luzmo-button):not(button):not(a):not(input):not(select):not(textarea)){font-style:var(--luzmo-ai-chat-assistant-message-actions-font-style,var(--ai-chat-assistant-message-actions-font-style));color:var(--luzmo-ai-chat-assistant-message-actions-color,var(--ai-chat-assistant-message-actions-color))}:host .assistant-context-menu-trigger{width:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));height:var(--luzmo-ai-chat-context-menu-trigger-size,var(--ai-chat-context-menu-trigger-size));border:.0625rem solid var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));border-radius:var(--luzmo-ai-chat-context-menu-trigger-border-radius,var(--ai-chat-context-menu-trigger-border-radius));background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color));cursor:pointer;font-size:var(--ai-chat-context-menu-trigger-icon-size);justify-content:center;align-items:center;padding:0;line-height:1;transition:all .15s;display:inline-flex}:host .assistant-context-menu-trigger:hover{background:var(--luzmo-ai-chat-context-menu-trigger-hover-background,var(--ai-chat-context-menu-trigger-hover-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-hover-border-color,var(--ai-chat-context-menu-trigger-hover-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-hover-color,var(--ai-chat-context-menu-trigger-hover-color))}:host .assistant-context-menu-trigger:disabled{cursor:not-allowed;opacity:.6}:host .assistant-context-menu-trigger:disabled:hover{background:var(--luzmo-ai-chat-context-menu-trigger-background,var(--ai-chat-context-menu-trigger-background));border-color:var(--luzmo-ai-chat-context-menu-trigger-border-color,var(--ai-chat-context-menu-trigger-border-color));color:var(--luzmo-ai-chat-context-menu-trigger-color,var(--ai-chat-context-menu-trigger-color))}:host .assistant-context-menu-item{width:100%;color:var(--luzmo-font-color);text-align:start;cursor:pointer;font-family:var(--luzmo-ai-chat-context-menu-item-font-family,var(--ai-chat-context-menu-item-font-family));background:0 0;border:0;padding:.5rem .75rem}:host .assistant-context-menu-item:hover{background:var(--luzmo-ai-chat-context-menu-item-hover-background,var(--ai-chat-context-menu-item-hover-background))}:host .assistant-context-menu-item:disabled{opacity:.4;cursor:not-allowed}:host .assistant-context-menu-item:disabled:hover{background:0 0}:host luzmo-ai-interaction-textarea{flex-grow:0;flex-shrink:0}:host .loading-message{color:var(--luzmo-font-color);align-items:center;gap:.5rem;display:flex}:host .loading-message svg{color:var(--luzmo-ai-chat-loading-message-color,var(--ai-chat-loading-message-color));font-size:var(--luzmo-ai-chat-loading-message-icon-font-size,var(--ai-chat-loading-message-icon-font-size));justify-content:center;align-items:center;display:flex}:host .loading-message svg.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){:host .assistant-context-menu-trigger{transition:none}:host .loading-message svg.spin{animation:none}}:host([dir=rtl]) .assistant-message-footer{direction:rtl}:host{--ai-chat-background:var(--luzmo-background-color);--ai-chat-border-radius:0;--ai-chat-padding:0;--ai-chat-gap:var(--luzmo-spacing-5);--ai-chat-border:none;--ai-chat-box-shadow:none;--ai-chat-loading-message-color:var(--luzmo-primary);--ai-chat-loading-message-icon-font-size:var(--luzmo-icon-size-m);--ai-chat-error-message-color:var(--luzmo-danger,#dc3545);--ai-chat-cancelled-message-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed));--ai-chat-scrollbar-width:var(--luzmo-scrollbar-size);--ai-chat-scrollbar-track-background:var(--luzmo-scrollbar-track-background);--ai-chat-scrollbar-track-border-radius:var(--luzmo-scrollbar-track-border-radius);--ai-chat-scrollbar-thumb-background:var(--luzmo-scrollbar-thumb-background);--ai-chat-scrollbar-thumb-border-radius:var(--luzmo-scrollbar-thumb-border-radius);--ai-chat-scrollbar-thumb-hover-background:var(--luzmo-scrollbar-thumb-hover-background);--ai-chat-context-menu-trigger-size:var(--luzmo-component-height-xs);--ai-chat-context-menu-trigger-icon-size:var(--luzmo-icon-size-s);--ai-chat-context-menu-trigger-border-color:var(--luzmo-border-color);--ai-chat-context-menu-trigger-border-radius:.375rem;--ai-chat-context-menu-trigger-background:var(--luzmo-background-color,transparent);--ai-chat-context-menu-trigger-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-trigger-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-trigger-hover-border-color:var(--luzmo-border-color-hover,var(--luzmo-border-color));--ai-chat-context-menu-trigger-hover-color:var(--luzmo-font-color,#5a5a5a);--ai-chat-context-menu-item-hover-background:var(--luzmo-background-color-hover,#4434ff14);--ai-chat-context-menu-item-font-family:var(--luzmo-font-family);--ai-chat-markdown-line-height:1.5;--ai-chat-markdown-spacing:var(--luzmo-spacing-3);--ai-chat-markdown-heading-spacing:var(--luzmo-spacing-4);--ai-chat-markdown-heading-font-weight:var(--luzmo-font-weight-bold);--ai-chat-markdown-list-indent:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-3));--ai-chat-markdown-link-color:var(--luzmo-primary);--ai-chat-markdown-code-font-family:var(--luzmo-font-family-mono,ui-monospace, monospace);--ai-chat-markdown-code-font-size:.875em;--ai-chat-markdown-code-background:var(--luzmo-background-color-highlight);--ai-chat-markdown-code-border-radius:var(--luzmo-border-radius-s);--ai-chat-markdown-border-color:var(--luzmo-border-color);--ai-chat-markdown-table-header-background:var(--luzmo-background-color-highlight);--ai-chat-assistant-message-actions-gap:var(--luzmo-spacing-2);--ai-chat-assistant-message-actions-margin-top:var(--luzmo-spacing-3);--ai-chat-assistant-message-actions-color:var(--luzmo-font-color-extra-dimmed);--ai-chat-assistant-message-actions-font-style:italic;--ai-chat-assistant-message-font-family:var(--luzmo-font-family);--ai-chat-assistant-message-font-size:var(--luzmo-font-size-m);--ai-chat-assistant-message-line-height:var(--ai-chat-markdown-line-height);--ai-chat-user-message-background:rgba(var(--luzmo-primary-rgb), .08);--ai-chat-user-message-attachment-size:64px}:host([size=s]){--ai-chat-gap:var(--luzmo-spacing-4);--ai-chat-loading-message-icon-font-size:var(--luzmo-icon-size-s);--ai-chat-context-menu-trigger-icon-size:var(--luzmo-icon-size-xs);--ai-chat-assistant-message-font-size:var(--luzmo-font-size-s)}:host([size=l]){--ai-chat-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--ai-chat-loading-message-icon-font-size:var(--luzmo-icon-size-l);--ai-chat-context-menu-trigger-size:var(--luzmo-component-height-s);--ai-chat-context-menu-trigger-icon-size:var(--luzmo-icon-size-m);--ai-chat-assistant-message-font-size:var(--luzmo-font-size-l)}:host([size=xl]){--ai-chat-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-3));--ai-chat-loading-message-icon-font-size:var(--luzmo-icon-size-xl);--ai-chat-context-menu-trigger-size:var(--luzmo-component-height);--ai-chat-context-menu-trigger-icon-size:var(--luzmo-icon-size-l);--ai-chat-assistant-message-font-size:var(--luzmo-font-size-xl)}";
|
|
2287
|
+
// src/components/ai-chat/helpers/agent-config.ts
|
|
2288
|
+
function Z(e, t) {
|
|
2289
|
+
if (e.agentConfig) {
|
|
2290
|
+
let n = e.agentConfig, r = t ?? Z({
|
|
2291
|
+
...e,
|
|
2292
|
+
agentConfig: void 0
|
|
2293
|
+
});
|
|
2294
|
+
return n.context === void 0 && n.type === r.type ? {
|
|
2295
|
+
...r,
|
|
2296
|
+
...n,
|
|
2297
|
+
context: r.context
|
|
2298
|
+
} : n.context === void 0 ? {
|
|
2299
|
+
...n,
|
|
2300
|
+
context: null
|
|
2301
|
+
} : n;
|
|
2302
|
+
}
|
|
2303
|
+
switch (e.agent ?? "item") {
|
|
2304
|
+
case "item":
|
|
2305
|
+
default: return {
|
|
2306
|
+
type: "item",
|
|
2307
|
+
context: {
|
|
2308
|
+
chart: e.chart,
|
|
2309
|
+
task: e.task
|
|
2310
|
+
}
|
|
2311
|
+
};
|
|
2312
|
+
case "dashboard": return {
|
|
2313
|
+
type: "dashboard",
|
|
2314
|
+
context: {
|
|
2315
|
+
dashboard: e.dashboard,
|
|
2316
|
+
currentScreenMode: e.currentScreenMode
|
|
2317
|
+
}
|
|
2318
|
+
};
|
|
2319
|
+
case "custom-item": return {
|
|
2320
|
+
type: "custom-item",
|
|
2321
|
+
context: { customItem: e.customItem }
|
|
2322
|
+
};
|
|
2323
|
+
case "analyst": return { type: "analyst" };
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
function zn(e) {
|
|
2327
|
+
return {
|
|
2328
|
+
chart: null,
|
|
2329
|
+
dashboard: null,
|
|
2330
|
+
customItem: null,
|
|
2331
|
+
currentScreenMode: void 0,
|
|
2332
|
+
task: void 0,
|
|
2333
|
+
...e.context
|
|
2334
|
+
};
|
|
2335
|
+
}
|
|
2336
|
+
// src/components/ai-chat/helpers/assistant-message-feedback.ts
|
|
2337
|
+
function Bn(e, t) {
|
|
2338
|
+
return e === t ? 0 : t;
|
|
2339
|
+
}
|
|
2340
|
+
var Vn = /* @__PURE__ */ new Set(["feedback", "hideFeedback"]);
|
|
2341
|
+
function Hn(e, t) {
|
|
2342
|
+
return e === t || [.../* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])].every((n) => Vn.has(n) || e[n] === t[n] || JSON.stringify(e[n] ?? null) === JSON.stringify(t[n] ?? null));
|
|
2343
|
+
}
|
|
2344
|
+
function Un(e, t) {
|
|
2345
|
+
return !e || e === t || e.messages === t.messages || e.messages.length !== t.messages.length ? !1 : [.../* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])].every((n) => n === "messages" || e[n] === t[n]) && e.messages.every((e, n) => Hn(e, t.messages[n]));
|
|
2346
|
+
}
|
|
2347
|
+
function Wn({ labelId: e, rating: t, size: n, disabled: r, onRate: i }) {
|
|
2348
|
+
let a = (e) => (t) => {
|
|
2349
|
+
t.preventDefault(), t.stopPropagation(), i(e);
|
|
2350
|
+
};
|
|
2351
|
+
return m`
|
|
2352
|
+
<div
|
|
2353
|
+
class="assistant-message-feedback"
|
|
2354
|
+
role="group"
|
|
2355
|
+
aria-labelledby=${e}
|
|
2356
|
+
>
|
|
2357
|
+
<span
|
|
2358
|
+
id=${e}
|
|
2359
|
+
hidden
|
|
2360
|
+
>
|
|
2361
|
+
${c("Rate this response", { desc: "Accessible label for the thumbs up and down buttons on an AI chat response" })}
|
|
2362
|
+
</span>
|
|
2363
|
+
<luzmo-action-button
|
|
2364
|
+
value="up"
|
|
2365
|
+
toggles
|
|
2366
|
+
quiet
|
|
2367
|
+
label=${c("Good response", { desc: "Accessible label for the positive feedback button" })}
|
|
2368
|
+
.size=${n}
|
|
2369
|
+
.selected=${t === 1}
|
|
2370
|
+
?disabled=${r}
|
|
2371
|
+
@change=${a(1)}
|
|
2372
|
+
>
|
|
2373
|
+
<luzmo-icon slot="icon" .icon=${ee} .size=${n}></luzmo-icon>
|
|
2374
|
+
</luzmo-action-button>
|
|
2375
|
+
<luzmo-action-button
|
|
2376
|
+
value="down"
|
|
2377
|
+
toggles
|
|
2378
|
+
quiet
|
|
2379
|
+
label=${c("Bad response", { desc: "Accessible label for the negative feedback button" })}
|
|
2380
|
+
.size=${n}
|
|
2381
|
+
.selected=${t === -1}
|
|
2382
|
+
?disabled=${r}
|
|
2383
|
+
@change=${a(-1)}
|
|
2384
|
+
>
|
|
2385
|
+
<luzmo-icon slot="icon" .icon=${p} .size=${n}></luzmo-icon>
|
|
2386
|
+
</luzmo-action-button>
|
|
2387
|
+
</div>
|
|
2388
|
+
`;
|
|
2389
|
+
}
|
|
2390
|
+
// src/components/ai-chat/empty-state/ai-chat-empty-state.module.scss?inline
|
|
2391
|
+
var Gn = ":host{box-sizing:border-box;width:100%;min-height:0;padding-block:var(--luzmo-ai-chat-empty-state-padding-block,var(--ai-chat-empty-state-padding-block));padding-inline:var(--luzmo-ai-chat-empty-state-padding-inline,var(--ai-chat-empty-state-padding-inline));flex:1;justify-content:center;align-items:center;display:flex}.empty-state{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-header-actions-gap,var(--ai-chat-empty-state-header-actions-gap));width:100%;max-width:var(--luzmo-ai-chat-empty-state-max-width,var(--ai-chat-empty-state-max-width));text-align:center;flex-direction:column;display:flex}.header{flex-direction:column;align-items:center;width:100%;display:flex}.actions{align-items:center;gap:var(--luzmo-ai-chat-empty-state-actions-gap,var(--ai-chat-empty-state-actions-gap));flex-direction:column;width:100%;display:flex}.title{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-title-font-size,var(--ai-chat-empty-state-title-font-size));font-weight:var(--luzmo-ai-chat-empty-state-title-font-weight,var(--ai-chat-empty-state-title-font-weight));line-height:var(--luzmo-ai-chat-empty-state-title-line-height,var(--ai-chat-empty-state-title-line-height));color:var(--luzmo-ai-chat-empty-state-title-color,var(--ai-chat-empty-state-title-color));text-wrap:balance;margin:0}.subtitle{font-family:var(--luzmo-font-family);font-size:var(--luzmo-ai-chat-empty-state-subtitle-font-size,var(--ai-chat-empty-state-subtitle-font-size));font-weight:var(--luzmo-ai-chat-empty-state-subtitle-font-weight,var(--ai-chat-empty-state-subtitle-font-weight));line-height:var(--luzmo-ai-chat-empty-state-subtitle-line-height,var(--ai-chat-empty-state-subtitle-line-height));color:var(--luzmo-ai-chat-empty-state-subtitle-color,var(--ai-chat-empty-state-subtitle-color));margin:0}.suggestions{justify-content:center;align-items:center;gap:var(--luzmo-ai-chat-empty-state-suggestions-gap,var(--ai-chat-empty-state-suggestions-gap));flex-wrap:wrap;width:100%;display:flex}luzmo-action-button{max-width:100%}:host{--ai-chat-empty-state-header-actions-gap:1.5rem;--ai-chat-empty-state-actions-gap:var(--luzmo-spacing-4);--ai-chat-empty-state-suggestions-gap:var(--luzmo-spacing-3);--ai-chat-empty-state-max-width:22.5rem;--ai-chat-empty-state-padding-block:2rem;--ai-chat-empty-state-padding-inline:var(--luzmo-spacing-5);--ai-chat-empty-state-title-font-size:var(--luzmo-font-size-l);--ai-chat-empty-state-title-font-weight:var(--luzmo-font-weight);--ai-chat-empty-state-title-line-height:1.4;--ai-chat-empty-state-title-color:var(--luzmo-font-color-hard);--ai-chat-empty-state-subtitle-font-size:var(--luzmo-font-size-s);--ai-chat-empty-state-subtitle-font-weight:var(--luzmo-font-weight);--ai-chat-empty-state-subtitle-line-height:var(--luzmo-line-height);--ai-chat-empty-state-subtitle-color:var(--luzmo-font-color-dimmed,var(--luzmo-font-color-extra-dimmed))}:host([size=s]){--ai-chat-empty-state-title-font-size:var(--luzmo-font-size-m)}:host([size=l]){--ai-chat-empty-state-title-font-size:var(--luzmo-font-size-xl);--ai-chat-empty-state-subtitle-font-size:var(--luzmo-font-size-m)}:host([size=xl]){--ai-chat-empty-state-title-font-size:var(--luzmo-font-size-xxl);--ai-chat-empty-state-subtitle-font-size:var(--luzmo-font-size-l)}", Kn, qn = class extends a(i, { validSizes: [
|
|
2392
|
+
"s",
|
|
2393
|
+
"m",
|
|
2394
|
+
"l",
|
|
2395
|
+
"xl"
|
|
2396
|
+
] }) {
|
|
2397
|
+
constructor(...e) {
|
|
2398
|
+
super(...e), this.title = c("What can I help you with?", { desc: "Title for the AI chat empty state" }), this.subtitle = "", this.suggestions = [], this.disabled = !1;
|
|
2399
|
+
}
|
|
2400
|
+
_handleSuggestionActivate(e) {
|
|
2401
|
+
if (this.disabled) return;
|
|
2402
|
+
let t = e.prompt ?? e.label;
|
|
2403
|
+
this.dispatchEvent(new CustomEvent("luzmo-suggestion-selected", {
|
|
2404
|
+
detail: {
|
|
2405
|
+
label: e.label,
|
|
2406
|
+
prompt: t,
|
|
2407
|
+
selectedDatasets: e.selectedDatasets
|
|
2408
|
+
},
|
|
2409
|
+
bubbles: !0,
|
|
2410
|
+
composed: !0
|
|
2411
|
+
}));
|
|
2412
|
+
}
|
|
2413
|
+
render() {
|
|
2414
|
+
let e = this.suggestions.length > 0;
|
|
2415
|
+
return m`
|
|
2416
|
+
<section class="empty-state" aria-labelledby="ai-chat-empty-state-title">
|
|
2417
|
+
<header class="header">
|
|
2418
|
+
<h2 id="ai-chat-empty-state-title" class="title">${this.title}</h2>
|
|
2419
|
+
</header>
|
|
2420
|
+
|
|
2421
|
+
${e ? m`
|
|
2422
|
+
<div class="actions">
|
|
2423
|
+
${this.subtitle ? m`<p class="subtitle">${this.subtitle}</p>` : h}
|
|
2424
|
+
<div
|
|
2425
|
+
class="suggestions"
|
|
2426
|
+
role="group"
|
|
2427
|
+
aria-label=${c("Prompt suggestions", { desc: "Accessible label for the AI chat empty state suggestion list" })}
|
|
2428
|
+
>
|
|
2429
|
+
${this.suggestions.map((e) => m`
|
|
2430
|
+
<luzmo-action-button
|
|
2431
|
+
variant="accent"
|
|
2432
|
+
.size=${this.size}
|
|
2433
|
+
?disabled=${this.disabled}
|
|
2434
|
+
@click=${() => this._handleSuggestionActivate(e)}
|
|
2435
|
+
>
|
|
2436
|
+
${e.label}
|
|
2437
|
+
</luzmo-action-button>
|
|
2438
|
+
`)}
|
|
2439
|
+
</div>
|
|
2440
|
+
</div>
|
|
2441
|
+
` : h}
|
|
2442
|
+
</section>
|
|
2443
|
+
`;
|
|
2444
|
+
}
|
|
2445
|
+
};
|
|
2446
|
+
// src/components/ai-chat/empty-state/index.ts
|
|
2447
|
+
Kn = qn, Kn.styles = te(Gn), Kn.tagName = "luzmo-ai-chat-empty-state", o([g({ type: String })], qn.prototype, "title", void 0), o([g({ type: String })], qn.prototype, "subtitle", void 0), o([g({ type: Array })], qn.prototype, "suggestions", void 0), o([g({
|
|
2448
|
+
type: Boolean,
|
|
2449
|
+
reflect: !0
|
|
2450
|
+
})], qn.prototype, "disabled", void 0), customElements.get("luzmo-ai-chat-empty-state") || customElements.define("luzmo-ai-chat-empty-state", qn);
|
|
2451
|
+
// src/components/ai-chat/helpers/elicitation-template.ts
|
|
2452
|
+
var Jn = "answer", Yn = (e) => e.stopPropagation();
|
|
2453
|
+
function Xn(e) {
|
|
2454
|
+
let t = e.content?.[Jn];
|
|
2455
|
+
return typeof t == "string" ? t : void 0;
|
|
2456
|
+
}
|
|
2457
|
+
async function Zn(e) {
|
|
2458
|
+
e.stopPropagation();
|
|
2459
|
+
let t = e.currentTarget;
|
|
2460
|
+
await t.updateComplete, t.submit();
|
|
2461
|
+
}
|
|
2462
|
+
function Qn({ message: e, state: t, size: n, onSubmit: r }) {
|
|
2463
|
+
let i = e.elicitation;
|
|
2464
|
+
if (!i) return h;
|
|
2465
|
+
let a = [{
|
|
2466
|
+
id: Jn,
|
|
2467
|
+
type: "single",
|
|
2468
|
+
title: i.question,
|
|
2469
|
+
required: !0,
|
|
2470
|
+
options: i.options.map((e) => ({
|
|
2471
|
+
value: e,
|
|
2472
|
+
label: e
|
|
2473
|
+
}))
|
|
2474
|
+
}];
|
|
2475
|
+
return ie(`${e.id}:${t}`, m`
|
|
2476
|
+
<luzmo-question-box
|
|
2477
|
+
.size=${n}
|
|
2478
|
+
.questions=${a}
|
|
2479
|
+
.value=${re([i.answer], () => i.answer ? { [Jn]: i.answer } : {})}
|
|
2480
|
+
.labels=${{
|
|
2481
|
+
submit: c("Submit", { desc: "Button that sends the chosen answer to an AI agent question" }),
|
|
2482
|
+
answerTitle: c("Answer", { desc: "Heading above the answer chosen for an AI agent question" }),
|
|
2483
|
+
change: c("Change", { desc: "Button that goes back to pick another answer for an AI agent question" })
|
|
2484
|
+
}}
|
|
2485
|
+
?readonly=${t === "answered"}
|
|
2486
|
+
?disabled=${t === "closed"}
|
|
2487
|
+
hide-close
|
|
2488
|
+
hide-skip
|
|
2489
|
+
@luzmo-submit=${r}
|
|
2490
|
+
@input=${Yn}
|
|
2491
|
+
@change=${Zn}
|
|
2492
|
+
@luzmo-cancel=${Yn}
|
|
2493
|
+
></luzmo-question-box>
|
|
2494
|
+
`);
|
|
2495
|
+
}
|
|
2496
|
+
// src/components/ai-chat/ai-chat-request.ts
|
|
2497
|
+
function $n(e, t) {
|
|
2498
|
+
return `${e.replace(/\/+$/, "")}/${t.replace(/^\/+|\/+$/g, "")}/aiprompt`;
|
|
2499
|
+
}
|
|
2500
|
+
function er(e) {
|
|
2501
|
+
return e.type === "placeholder" ? null : {
|
|
2502
|
+
...e,
|
|
2503
|
+
version: e.version || "",
|
|
2504
|
+
title: e.title || e.options?.title,
|
|
2505
|
+
filters: e.filterGroups || [],
|
|
2506
|
+
aichartId: e.aichartId || ""
|
|
2507
|
+
};
|
|
2508
|
+
}
|
|
2509
|
+
function tr(e, t, n = []) {
|
|
2510
|
+
return [
|
|
2511
|
+
{
|
|
2512
|
+
type: "text",
|
|
2513
|
+
text: e
|
|
2514
|
+
},
|
|
2515
|
+
...t.map((e) => ({
|
|
2516
|
+
type: "dataset",
|
|
2517
|
+
id: e
|
|
2518
|
+
})),
|
|
2519
|
+
...n.map((e) => ({
|
|
2520
|
+
type: "image",
|
|
2521
|
+
url: e
|
|
2522
|
+
}))
|
|
2523
|
+
];
|
|
2524
|
+
}
|
|
2525
|
+
function nr(e) {
|
|
2526
|
+
return {
|
|
2527
|
+
stream: e.stream ?? !0,
|
|
2528
|
+
response_mode: "mixed",
|
|
2529
|
+
...e.conversationId ? { conversation_id: e.conversationId } : {},
|
|
2530
|
+
...e.localeId ? { locale_id: e.localeId } : {}
|
|
2531
|
+
};
|
|
2532
|
+
}
|
|
2533
|
+
function rr(e, t, n) {
|
|
2534
|
+
return {
|
|
2535
|
+
agent: e,
|
|
2536
|
+
task: t,
|
|
2537
|
+
...nr(n)
|
|
2538
|
+
};
|
|
2539
|
+
}
|
|
2540
|
+
function ir(e) {
|
|
2541
|
+
let t = tr(e.prompt, e.datasetIds, e.attachmentUrls), n = e.chart ? er(e.chart) : null;
|
|
2542
|
+
return n && t.push({
|
|
2543
|
+
type: "item",
|
|
2544
|
+
value: n
|
|
2545
|
+
}), {
|
|
2546
|
+
...rr("item", e.task ?? "generate", e),
|
|
2547
|
+
input: t
|
|
2548
|
+
};
|
|
2549
|
+
}
|
|
2550
|
+
function ar(e) {
|
|
2551
|
+
let t = tr(e.prompt, e.datasetIds, e.attachmentUrls);
|
|
2552
|
+
return e.dashboard && t.push({
|
|
2553
|
+
type: "dashboard",
|
|
2554
|
+
value: e.dashboard,
|
|
2555
|
+
...e.currentScreenMode ? { current_screen_mode: e.currentScreenMode } : {}
|
|
2556
|
+
}), {
|
|
2557
|
+
...rr("dashboard", "generate", e),
|
|
2558
|
+
timezone_id: e.timezoneId ?? "UTC",
|
|
2559
|
+
input: t
|
|
2560
|
+
};
|
|
2561
|
+
}
|
|
2562
|
+
function or(e) {
|
|
2563
|
+
return {
|
|
2564
|
+
...rr("analyst", "generate", e),
|
|
2565
|
+
input: tr(e.prompt, e.datasetIds, e.attachmentUrls)
|
|
2566
|
+
};
|
|
2567
|
+
}
|
|
2568
|
+
function sr(e) {
|
|
2569
|
+
let t = tr(e.prompt, [], e.attachmentUrls);
|
|
2570
|
+
return e.customItem && t.push({
|
|
2571
|
+
type: "custom-item",
|
|
2572
|
+
value: e.customItem
|
|
2573
|
+
}), {
|
|
2574
|
+
...rr("custom-item", "generate", e),
|
|
2575
|
+
text_format: "markdown",
|
|
2576
|
+
...e.internal ? { internal: !0 } : {},
|
|
2577
|
+
input: t
|
|
2578
|
+
};
|
|
2579
|
+
}
|
|
2580
|
+
function cr(e, t) {
|
|
2581
|
+
let n = tr(t.prompt, t.datasetIds, t.attachmentUrls), r = t.chart ? er(t.chart) : null;
|
|
2582
|
+
return r && n.push({
|
|
2583
|
+
type: "item",
|
|
2584
|
+
value: r
|
|
2585
|
+
}), t.dashboard && n.push({
|
|
2586
|
+
type: "dashboard",
|
|
2587
|
+
value: t.dashboard,
|
|
2588
|
+
...t.currentScreenMode ? { current_screen_mode: t.currentScreenMode } : {}
|
|
2589
|
+
}), {
|
|
2590
|
+
agent_id: e,
|
|
2591
|
+
...nr(t),
|
|
2592
|
+
input: n
|
|
2593
|
+
};
|
|
2594
|
+
}
|
|
2595
|
+
function lr(e, t) {
|
|
2596
|
+
if (t.agentId) return cr(t.agentId, t);
|
|
2597
|
+
switch (e) {
|
|
2598
|
+
case "dashboard": return ar(t);
|
|
2599
|
+
case "analyst": return or(t);
|
|
2600
|
+
case "custom-item": return sr(t);
|
|
2601
|
+
default: return ir(t);
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
function ur(e, n) {
|
|
2605
|
+
let { authKey: r, authToken: i, apiVersion: a = "0.1.0" } = n;
|
|
2606
|
+
return n.attachmentUrls?.length && t(n.attachmentUrls), {
|
|
2607
|
+
key: r,
|
|
2608
|
+
token: i,
|
|
2609
|
+
action: "create",
|
|
2610
|
+
version: a,
|
|
2611
|
+
properties: lr(e, n)
|
|
2612
|
+
};
|
|
2613
|
+
}
|
|
2614
|
+
function dr(e, t, n, r = "0.1.0", i = null) {
|
|
2615
|
+
return {
|
|
2616
|
+
key: t,
|
|
2617
|
+
token: n,
|
|
2618
|
+
action: "delete",
|
|
2619
|
+
version: r,
|
|
2620
|
+
properties: {
|
|
2621
|
+
agent: "item",
|
|
2622
|
+
restore_to_message_id: e,
|
|
2623
|
+
...i ? { conversation_id: i } : {}
|
|
2624
|
+
}
|
|
2625
|
+
};
|
|
2626
|
+
}
|
|
2627
|
+
// src/components/ai-chat/stream/transport.ts
|
|
2628
|
+
async function fr(e) {
|
|
2629
|
+
let t = await fetch(e.url, {
|
|
2630
|
+
method: "POST",
|
|
2631
|
+
headers: { "Content-Type": "application/json" },
|
|
2632
|
+
mode: "cors",
|
|
2633
|
+
body: JSON.stringify(e.body),
|
|
2634
|
+
signal: e.signal
|
|
2635
|
+
});
|
|
2636
|
+
if (!t.ok) {
|
|
2637
|
+
let e = await t.json().catch(() => null);
|
|
2638
|
+
throw Error(e?.message || `API request failed with status ${t.status}`);
|
|
2639
|
+
}
|
|
2640
|
+
if (!t.body) throw Error("Response body is not readable");
|
|
2641
|
+
return {
|
|
2642
|
+
body: t.body,
|
|
2643
|
+
conversationId: t.headers.get("x-conversation-id")
|
|
2644
|
+
};
|
|
2645
|
+
}
|
|
2646
|
+
function pr(e) {
|
|
2647
|
+
let t = e.trim();
|
|
2648
|
+
if (!t || t.startsWith(":") || t.startsWith("event:") || t.startsWith("id:")) return null;
|
|
2649
|
+
let n = t;
|
|
2650
|
+
return n.startsWith("data:") && (n = n.slice(5).trimStart()), !n || n === "[DONE]" ? null : JSON.parse(n);
|
|
2651
|
+
}
|
|
2652
|
+
function mr(e, t) {
|
|
2653
|
+
try {
|
|
2654
|
+
let n = pr(e);
|
|
2655
|
+
n && t(n);
|
|
2656
|
+
} catch {
|
|
2657
|
+
console.error("Failed to parse stream line");
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
async function hr(e, t) {
|
|
2661
|
+
let n = e.getReader(), r = new TextDecoder(), i = "";
|
|
2662
|
+
try {
|
|
2663
|
+
for (;;) {
|
|
2664
|
+
let { done: e, value: a } = await n.read();
|
|
2665
|
+
if (e) break;
|
|
2666
|
+
i += r.decode(a, { stream: !0 });
|
|
2667
|
+
let o = i.split(/\r?\n/);
|
|
2668
|
+
i = o.pop() ?? "";
|
|
2669
|
+
for (let e of o) mr(e, t);
|
|
2670
|
+
}
|
|
2671
|
+
i += r.decode();
|
|
2672
|
+
let e = i.trim();
|
|
2673
|
+
e && mr(e, t);
|
|
2674
|
+
} finally {
|
|
2675
|
+
n.releaseLock();
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
// src/components/ai-chat/stream/progress.ts
|
|
2679
|
+
function gr() {
|
|
2680
|
+
return {
|
|
2681
|
+
id: "root",
|
|
2682
|
+
step: "root",
|
|
2683
|
+
status: "pending",
|
|
2684
|
+
children: [{
|
|
2685
|
+
id: "client-init",
|
|
2686
|
+
step: "iqInit",
|
|
2687
|
+
status: "inProgress",
|
|
2688
|
+
description: c("Thinking", { desc: "Label shown in the AI chat progress tree while the assistant starts processing a prompt" })
|
|
2689
|
+
}]
|
|
2690
|
+
};
|
|
2691
|
+
}
|
|
2692
|
+
function _r(e) {
|
|
2693
|
+
let t = e.progress;
|
|
2694
|
+
return typeof t != "object" || !t ? !1 : "id" in t && "step" in t && "status" in t;
|
|
2695
|
+
}
|
|
2696
|
+
// src/components/ai-chat/stream/chunk-extractors.ts
|
|
2697
|
+
function vr(e) {
|
|
2698
|
+
if (!e || typeof e != "object") return "";
|
|
2699
|
+
let t = e.assistant_message;
|
|
2700
|
+
if (!t || typeof t != "object") return "";
|
|
2701
|
+
if (typeof t.message == "string") return t.message;
|
|
2702
|
+
if (typeof t.text == "string") return t.text;
|
|
2703
|
+
if (typeof t.summary == "string") return t.summary;
|
|
2704
|
+
let n = t.content;
|
|
2705
|
+
return typeof n == "string" ? n : n && typeof n == "object" && typeof n.text == "string" ? n.text : "";
|
|
2706
|
+
}
|
|
2707
|
+
function yr(e) {
|
|
2708
|
+
return e.type === "text_delta" && typeof e.delta == "string" ? e.delta : typeof e.text_delta == "string" ? e.text_delta : typeof e.chunk == "string" ? e.chunk : typeof e.message == "string" ? e.message : typeof e.summary == "string" ? e.summary : "";
|
|
2709
|
+
}
|
|
2710
|
+
function br(e) {
|
|
2711
|
+
return vr(e.result);
|
|
2712
|
+
}
|
|
2713
|
+
function xr(e) {
|
|
2714
|
+
return !!e.done || e.type === "finish" || e.type === "done" || "question" in e;
|
|
2715
|
+
}
|
|
2716
|
+
function Sr(e, t) {
|
|
2717
|
+
let n = typeof e.conversation_id == "string" && e.conversation_id || typeof e.conversationId == "string" && e.conversationId;
|
|
2718
|
+
n && t.callbacks.onConversationIdChange(n);
|
|
2719
|
+
}
|
|
2720
|
+
function Cr(e) {
|
|
2721
|
+
return typeof e.assistant_message_id == "string" && e.assistant_message_id ? e.assistant_message_id : null;
|
|
2722
|
+
}
|
|
2723
|
+
function wr(e) {
|
|
2724
|
+
for (let t of e) if (t && typeof t == "object" && t.type === "item") {
|
|
2725
|
+
let e = t.value;
|
|
2726
|
+
if (e && typeof e == "object") return e;
|
|
2727
|
+
}
|
|
2728
|
+
return null;
|
|
2729
|
+
}
|
|
2730
|
+
function Tr(e) {
|
|
2731
|
+
let t = e.chart ?? e.generatedChart;
|
|
2732
|
+
if (t && typeof t == "object") return t;
|
|
2733
|
+
let n = e.aiMessageAssets ?? e.ai_message_assets;
|
|
2734
|
+
if (Array.isArray(n)) {
|
|
2735
|
+
let e = wr(n);
|
|
2736
|
+
if (e) return e;
|
|
2737
|
+
}
|
|
2738
|
+
let r = e.result;
|
|
2739
|
+
if (r && typeof r == "object") {
|
|
2740
|
+
let e = r.assistant_message, t = e?.aiMessageAssets ?? e?.ai_message_assets;
|
|
2741
|
+
if (Array.isArray(t)) return wr(t);
|
|
2742
|
+
}
|
|
2743
|
+
return null;
|
|
2744
|
+
}
|
|
2745
|
+
function Er(e) {
|
|
2746
|
+
for (let t of e) if (t && typeof t == "object" && t.type === "dashboard") {
|
|
2747
|
+
let e = t.value;
|
|
2748
|
+
if (e && typeof e == "object" && Array.isArray(e.views)) return e;
|
|
2749
|
+
}
|
|
2750
|
+
return null;
|
|
2751
|
+
}
|
|
2752
|
+
function Dr(e) {
|
|
2753
|
+
for (let t of e) if (t && typeof t == "object" && t.type === "dashboard") {
|
|
2754
|
+
let e = t.name;
|
|
2755
|
+
if (e && typeof e == "object") return e;
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2758
|
+
function Or(...e) {
|
|
2759
|
+
return e.find(Array.isArray);
|
|
2760
|
+
}
|
|
2761
|
+
function kr(e) {
|
|
2762
|
+
if (e.views && Array.isArray(e.views)) return e;
|
|
2763
|
+
let t = e.aiMessageAssets ?? e.ai_message_assets;
|
|
2764
|
+
if (Array.isArray(t)) return Er(t);
|
|
2765
|
+
let n = e.result;
|
|
2766
|
+
if (n && typeof n == "object") {
|
|
2767
|
+
let e = n.assistant_message, t = e?.aiMessageAssets ?? e?.ai_message_assets;
|
|
2768
|
+
if (Array.isArray(t)) return Er(t);
|
|
2769
|
+
}
|
|
2770
|
+
return null;
|
|
2771
|
+
}
|
|
2772
|
+
function Ar(e) {
|
|
2773
|
+
let t = e.aiMessageAssets ?? e.ai_message_assets, n = e.result?.assistant_message, r = Or(t, n?.aiMessageAssets ?? n?.ai_message_assets);
|
|
2774
|
+
return r ? Dr(r) : void 0;
|
|
2775
|
+
}
|
|
2776
|
+
function jr(e) {
|
|
2777
|
+
let t = e.result?.assistant_message;
|
|
2778
|
+
for (let n of [e.aiMessageAssets ?? e.ai_message_assets, t?.aiMessageAssets ?? t?.ai_message_assets]) if (Array.isArray(n)) {
|
|
2779
|
+
for (let e of n) if (e && typeof e == "object" && e.type === "custom-item" && e.value && typeof e.value == "object" && !Array.isArray(e.value)) return e.value;
|
|
2780
|
+
}
|
|
2781
|
+
return null;
|
|
2782
|
+
}
|
|
2783
|
+
// src/components/ai-chat/stream/stream-processor.ts
|
|
2784
|
+
var Mr = /* @__PURE__ */ new Set([
|
|
2785
|
+
"conversation-id",
|
|
2786
|
+
"conversation_id",
|
|
2787
|
+
"keepalive",
|
|
2788
|
+
"ping",
|
|
2789
|
+
"finish",
|
|
2790
|
+
"done"
|
|
2791
|
+
]);
|
|
2792
|
+
function Nr(e, t) {
|
|
2793
|
+
return (Cr(e) ?? t.state.assistantMessageId) || (typeof e.messageId == "string" ? e.messageId : void 0);
|
|
2794
|
+
}
|
|
2795
|
+
function Pr(e, t, n) {
|
|
2796
|
+
let r = Nr(e, t);
|
|
2797
|
+
return {
|
|
2798
|
+
agent: n.agent,
|
|
2799
|
+
conversationId: t.callbacks.getConversationId(),
|
|
2800
|
+
...r ? { messageId: r } : {},
|
|
2801
|
+
raw: e
|
|
2802
|
+
};
|
|
2803
|
+
}
|
|
2804
|
+
function Q(e, t, n, r, i) {
|
|
2805
|
+
let a = {
|
|
2806
|
+
...Pr(n, e, t),
|
|
2807
|
+
recognized: !0,
|
|
2808
|
+
type: r,
|
|
2809
|
+
data: i
|
|
2810
|
+
};
|
|
2811
|
+
e.callbacks.onStep(a);
|
|
2812
|
+
}
|
|
2813
|
+
function Fr(e, t, n, r, i) {
|
|
2814
|
+
let a = {
|
|
2815
|
+
...Pr(n, e, t),
|
|
2816
|
+
recognized: !1,
|
|
2817
|
+
type: r,
|
|
2818
|
+
data: i
|
|
2819
|
+
};
|
|
2820
|
+
e.callbacks.onStep(a);
|
|
2821
|
+
}
|
|
2822
|
+
function Ir(e, t) {
|
|
2823
|
+
let n = Cr(e);
|
|
2824
|
+
n && (t.state.assistantMessageId = n, t.aiMessage.apiMessageId !== n && (t.aiMessage.apiMessageId = n, t.callbacks.onMessageUpdate(t.aiMessage)));
|
|
2825
|
+
}
|
|
2826
|
+
function Lr(e) {
|
|
2827
|
+
e.state.progressCollapsed || (e.state.progressCollapsed = !0, e.callbacks.onProgressCollapsed(!0));
|
|
2828
|
+
}
|
|
2829
|
+
function Rr(e, t) {
|
|
2830
|
+
Lr(e), e.aiMessage.message = (e.aiMessage.message || "") + t, e.callbacks.onMessageUpdate(e.aiMessage);
|
|
2831
|
+
}
|
|
2832
|
+
function zr(e) {
|
|
2833
|
+
if (!e) return null;
|
|
2834
|
+
let t = e.descriptionMetadata?.decision;
|
|
2835
|
+
if (t === "create" || t === "edit" || t === "question") return t;
|
|
2836
|
+
for (let t of e.children ?? []) {
|
|
2837
|
+
let e = zr(t);
|
|
2838
|
+
if (e) return e;
|
|
2839
|
+
}
|
|
2840
|
+
return null;
|
|
2841
|
+
}
|
|
2842
|
+
function Br(e, t, n) {
|
|
2843
|
+
if (!_r(e)) return !1;
|
|
2844
|
+
let r = e.progress;
|
|
2845
|
+
if (t.callbacks.onProgress(r), Q(t, n, e, "progress", r), t.state.decision === null) {
|
|
2846
|
+
let i = zr(r);
|
|
2847
|
+
i && (t.state.decision = i, Q(t, n, e, "decision", { decision: i }));
|
|
2848
|
+
}
|
|
2849
|
+
return !0;
|
|
2850
|
+
}
|
|
2851
|
+
function Vr(e) {
|
|
2852
|
+
return !!e.error || e.type === "error" || typeof e.error_text == "string";
|
|
2853
|
+
}
|
|
2854
|
+
function Hr(e) {
|
|
2855
|
+
return typeof e.error_text == "string" && e.error_text ? e.error_text : typeof e.error == "string" && e.error ? e.error : c("Something went wrong. Please try again.", { desc: "Generic error message shown in ai chat when the API request fails" });
|
|
2856
|
+
}
|
|
2857
|
+
function Ur(e, t, n) {
|
|
2858
|
+
if (!Vr(e)) return !1;
|
|
2859
|
+
let r = Hr(e);
|
|
2860
|
+
return t.aiMessage.message = r, t.aiMessage.isError = !0, delete t.aiMessage.elicitation, t.callbacks.onMessageUpdate(t.aiMessage), pi(e, t, n, e.error ?? r), !0;
|
|
2861
|
+
}
|
|
2862
|
+
function Wr(e) {
|
|
2863
|
+
return typeof e.question == "string" && e.question ? e.question : typeof e.text == "string" && e.text ? e.text : "";
|
|
2864
|
+
}
|
|
2865
|
+
function Gr(e, t, n) {
|
|
2866
|
+
if (e.type !== "interrupt") return !1;
|
|
2867
|
+
let r = Wr(e);
|
|
2868
|
+
return r && (t.state.interruptQuestion = r, Rr(t, r), Q(t, n, e, "interrupt", { question: r })), pi(e, t, n), !0;
|
|
2869
|
+
}
|
|
2870
|
+
function Kr(e) {
|
|
2871
|
+
let t = e.elicitation;
|
|
2872
|
+
if (!t || typeof t != "object") return null;
|
|
2873
|
+
let { question: n, options: r } = t, i = typeof n == "string" ? n.trim() : "", a = Array.isArray(r) ? [...new Set(r.filter((e) => typeof e == "string").map((e) => e.trim()))].filter(Boolean) : [];
|
|
2874
|
+
return i && a.length >= 2 ? {
|
|
2875
|
+
question: i,
|
|
2876
|
+
options: a
|
|
2877
|
+
} : null;
|
|
2878
|
+
}
|
|
2879
|
+
function qr(e, t, n) {
|
|
2880
|
+
if (e.type !== "elicitation") return !1;
|
|
2881
|
+
let r = Kr(e);
|
|
2882
|
+
return r ? (Lr(t), t.aiMessage.elicitation = r, t.callbacks.onMessageUpdate(t.aiMessage), Q(t, n, e, "elicitation", {
|
|
2883
|
+
question: r.question,
|
|
2884
|
+
options: r.options
|
|
2885
|
+
}), !0) : (Fr(t, n, e, "elicitation", e), !0);
|
|
2886
|
+
}
|
|
2887
|
+
function Jr(e) {
|
|
2888
|
+
return typeof e.asset_id == "string" ? e.asset_id : typeof e.asset_type == "string" ? e.asset_type : "default";
|
|
2889
|
+
}
|
|
2890
|
+
function Yr(e) {
|
|
2891
|
+
return typeof e.asset_type == "string" ? e.asset_type : "";
|
|
2892
|
+
}
|
|
2893
|
+
function Xr(e) {
|
|
2894
|
+
return {
|
|
2895
|
+
assetType: Yr(e),
|
|
2896
|
+
snapshot: {}
|
|
2897
|
+
};
|
|
2898
|
+
}
|
|
2899
|
+
function Zr(e, t) {
|
|
2900
|
+
return {
|
|
2901
|
+
...e,
|
|
2902
|
+
...t
|
|
2903
|
+
};
|
|
2904
|
+
}
|
|
2905
|
+
function Qr(e) {
|
|
2906
|
+
let t = e.asset_delta ?? e.delta;
|
|
2907
|
+
return t && typeof t == "object" ? t : null;
|
|
2908
|
+
}
|
|
2909
|
+
function $r(e, t) {
|
|
2910
|
+
t.state.assets[Jr(e)] = Xr(e);
|
|
2911
|
+
}
|
|
2912
|
+
function ei(e, t) {
|
|
2913
|
+
let n = Jr(e), r = t.state.assets[n] ?? Xr(e), i = Qr(e);
|
|
2914
|
+
i && (r.snapshot = Zr(r.snapshot, i)), t.state.assets[n] = r;
|
|
2915
|
+
}
|
|
2916
|
+
function ti(e, t) {
|
|
2917
|
+
let n = e.asset ?? e.value ?? e.asset_delta ?? e.delta;
|
|
2918
|
+
return n && typeof n == "object" ? Zr(t?.snapshot ?? {}, n) : t?.snapshot ?? {};
|
|
2919
|
+
}
|
|
2920
|
+
function ni(e, t, n) {
|
|
2921
|
+
let r = Jr(e), i = t.state.assets[r], a = i?.assetType || Yr(e), o = ti(e, i);
|
|
2922
|
+
delete t.state.assets[r], oi(a, o, e, t, n);
|
|
2923
|
+
}
|
|
2924
|
+
function ri(e, t, n) {
|
|
2925
|
+
switch (e.type) {
|
|
2926
|
+
case "asset_start": return $r(e, t), !0;
|
|
2927
|
+
case "asset_delta": return ei(e, t), !0;
|
|
2928
|
+
case "asset_end": return ni(e, t, n), !0;
|
|
2929
|
+
default: return !1;
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
function ii(e, t, n, r) {
|
|
2933
|
+
n.state.chartSnapshot = e, n.aiMessage.hasChart = !0, !n.state.assistantMessageId && typeof t.messageId == "string" && (n.aiMessage.apiMessageId = t.messageId), n.callbacks.onMessageUpdate(n.aiMessage), Q(n, r, t, "chart", e);
|
|
2934
|
+
}
|
|
2935
|
+
function ai(e, t, n, r) {
|
|
2936
|
+
n.state.customItemSnapshot = e, Q(n, r, t, "custom-item", e);
|
|
2937
|
+
}
|
|
2938
|
+
function oi(e, t, n, r, i) {
|
|
2939
|
+
switch (e) {
|
|
2940
|
+
case "dashboard-title": {
|
|
2941
|
+
let e = t.name;
|
|
2942
|
+
e && typeof e == "object" && (r.state.dashboardName = e, Q(r, i, n, "dashboard-title", { name: e }));
|
|
2943
|
+
return;
|
|
2944
|
+
}
|
|
2945
|
+
case "dashboard-layout":
|
|
2946
|
+
Q(r, i, n, "dashboard-layout", t);
|
|
2947
|
+
return;
|
|
2948
|
+
case "dashboard-item":
|
|
2949
|
+
Q(r, i, n, "dashboard-item", {
|
|
2950
|
+
slot: Number(t.slot),
|
|
2951
|
+
chart: t.chart ?? t
|
|
2952
|
+
});
|
|
2953
|
+
return;
|
|
2954
|
+
case "dashboard":
|
|
2955
|
+
r.state.dashboardSnapshot = t;
|
|
2956
|
+
return;
|
|
2957
|
+
default: si(e, t, n, r, i);
|
|
2958
|
+
}
|
|
2959
|
+
}
|
|
2960
|
+
function si(e, t, n, r, i) {
|
|
2961
|
+
i.chartAssetType && e === i.chartAssetType ? ii(t, n, r, i) : i.dashboardAssetType && e === i.dashboardAssetType ? r.state.dashboardSnapshot = t : i.customItemAssetType && e === i.customItemAssetType ? ai(t, n, r, i) : Fr(r, i, n, e || "asset", t);
|
|
2962
|
+
}
|
|
2963
|
+
function ci(e, t, n) {
|
|
2964
|
+
let r = !1;
|
|
2965
|
+
if (n.dashboardAssetType) {
|
|
2966
|
+
let n = kr(e);
|
|
2967
|
+
if (n) {
|
|
2968
|
+
t.state.dashboardSnapshot = n;
|
|
2969
|
+
let i = Ar(e);
|
|
2970
|
+
i && (t.state.dashboardName = i), r = !0;
|
|
2971
|
+
}
|
|
2972
|
+
}
|
|
2973
|
+
if (n.chartAssetType && !t.state.chartSnapshot) {
|
|
2974
|
+
let i = Tr(e);
|
|
2975
|
+
i && (ii(i, e, t, n), r = !0);
|
|
2976
|
+
}
|
|
2977
|
+
if (n.customItemAssetType && !t.state.customItemSnapshot) {
|
|
2978
|
+
let i = jr(e);
|
|
2979
|
+
i && (ai(i, e, t, n), r = !0);
|
|
2980
|
+
}
|
|
2981
|
+
return r;
|
|
2982
|
+
}
|
|
2983
|
+
function li(e, t, n) {
|
|
2984
|
+
return {
|
|
2985
|
+
...e,
|
|
2986
|
+
generatedChart: t,
|
|
2987
|
+
conversationId: n.callbacks.getConversationId()
|
|
2988
|
+
};
|
|
2989
|
+
}
|
|
2990
|
+
function ui(e, t, n) {
|
|
2991
|
+
for (let r of Object.keys(t.state.assets)) {
|
|
2992
|
+
let i = t.state.assets[r];
|
|
2993
|
+
delete t.state.assets[r], !(n.chartAssetType && i.assetType === n.chartAssetType && t.state.chartSnapshot || n.dashboardAssetType && i.assetType === n.dashboardAssetType && t.state.dashboardSnapshot || n.customItemAssetType && i.assetType === n.customItemAssetType && t.state.customItemSnapshot) && oi(i.assetType, i.snapshot, e, t, n);
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
function di(e, t) {
|
|
2997
|
+
let n = br(e);
|
|
2998
|
+
n && t.aiMessage.message !== n && (t.aiMessage.message = n, t.callbacks.onMessageUpdate(t.aiMessage));
|
|
2999
|
+
}
|
|
3000
|
+
function fi(e, t, n) {
|
|
3001
|
+
let r = t.state.dashboardSnapshot ?? (n.dashboardAssetType ? kr(e) : null), i = t.state.chartSnapshot ?? (n.chartAssetType ? Tr(e) : null);
|
|
3002
|
+
return {
|
|
3003
|
+
agent: n.agent,
|
|
3004
|
+
conversationId: t.callbacks.getConversationId(),
|
|
3005
|
+
message: t.aiMessage,
|
|
3006
|
+
...r ? { dashboard: r } : {},
|
|
3007
|
+
...i ? { chart: li(e, i, t) } : {},
|
|
3008
|
+
...t.state.customItemSnapshot ? { customItem: t.state.customItemSnapshot } : {},
|
|
3009
|
+
...t.state.dashboardName ? { name: t.state.dashboardName } : {},
|
|
3010
|
+
raw: e
|
|
3011
|
+
};
|
|
3012
|
+
}
|
|
3013
|
+
function pi(e, t, n, r) {
|
|
3014
|
+
t.state.completed || (t.state.completed = !0, ui(e, t, n), Lr(t), r === void 0 ? (di(e, t), t.callbacks.onComplete(fi(e, t, n))) : t.callbacks.onComplete({
|
|
3015
|
+
agent: n.agent,
|
|
3016
|
+
conversationId: t.callbacks.getConversationId(),
|
|
3017
|
+
message: t.aiMessage,
|
|
3018
|
+
error: r,
|
|
3019
|
+
raw: e
|
|
3020
|
+
}));
|
|
3021
|
+
}
|
|
3022
|
+
function mi(e) {
|
|
3023
|
+
return typeof e.type == "string" && e.type ? e.type : typeof e.asset_type == "string" && e.asset_type ? e.asset_type : "";
|
|
3024
|
+
}
|
|
3025
|
+
function hi(e, t, n) {
|
|
3026
|
+
let r = yr(e);
|
|
3027
|
+
return r ? (t.state.accumulatedText += r, Rr(t, r), Q(t, n, e, "text", {
|
|
3028
|
+
delta: r,
|
|
3029
|
+
text: t.state.accumulatedText
|
|
3030
|
+
}), !0) : !1;
|
|
3031
|
+
}
|
|
3032
|
+
function gi(e, t, n, r, i) {
|
|
3033
|
+
if (r || i) return;
|
|
3034
|
+
let a = mi(e);
|
|
3035
|
+
a && !Mr.has(a) && Fr(t, n, e, a, e);
|
|
3036
|
+
}
|
|
3037
|
+
function _i(e, t, n) {
|
|
3038
|
+
if (Sr(e, t), Ir(e, t), Br(e, t, n) || Ur(e, t, n) || Gr(e, t, n) || qr(e, t, n) || ri(e, t, n)) return;
|
|
3039
|
+
let r = hi(e, t, n), i = ci(e, t, n), a = r || i, o = xr(e);
|
|
3040
|
+
gi(e, t, n, a, o), o && pi(e, t, n);
|
|
3041
|
+
}
|
|
3042
|
+
// src/components/ai-chat/stream/registry.ts
|
|
3043
|
+
function vi(e) {
|
|
3044
|
+
switch (e) {
|
|
3045
|
+
case "dashboard": return {
|
|
3046
|
+
agent: e,
|
|
3047
|
+
dashboardAssetType: "dashboard"
|
|
3048
|
+
};
|
|
3049
|
+
case "item": return {
|
|
3050
|
+
agent: e,
|
|
3051
|
+
chartAssetType: "item"
|
|
3052
|
+
};
|
|
3053
|
+
case "custom-item": return {
|
|
3054
|
+
agent: e,
|
|
3055
|
+
customItemAssetType: "custom-item"
|
|
3056
|
+
};
|
|
3057
|
+
default: return { agent: e };
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
function yi(e) {
|
|
3061
|
+
let t = vi(e);
|
|
3062
|
+
return (e, n) => _i(e, n, t);
|
|
3063
|
+
}
|
|
3064
|
+
function bi() {
|
|
3065
|
+
return {
|
|
3066
|
+
progressCollapsed: !1,
|
|
3067
|
+
accumulatedText: "",
|
|
3068
|
+
decision: null,
|
|
3069
|
+
assets: {},
|
|
3070
|
+
dashboardSnapshot: null,
|
|
3071
|
+
dashboardName: void 0,
|
|
3072
|
+
chartSnapshot: null,
|
|
3073
|
+
customItemSnapshot: null,
|
|
3074
|
+
interruptQuestion: null,
|
|
3075
|
+
completed: !1
|
|
3076
|
+
};
|
|
3077
|
+
}
|
|
3078
|
+
// src/components/ai-chat/session/ai-chat-session.ts
|
|
3079
|
+
function xi() {
|
|
3080
|
+
return `msg-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;
|
|
3081
|
+
}
|
|
3082
|
+
var Si = class {
|
|
3083
|
+
constructor(e, t = {}) {
|
|
3084
|
+
this._uiBridgeCallbacks = {}, this._subscribers = /* @__PURE__ */ new Set(), this._state = {
|
|
3085
|
+
messages: [],
|
|
3086
|
+
selectedDatasets: [],
|
|
3087
|
+
isGenerating: !1,
|
|
3088
|
+
progress: null,
|
|
3089
|
+
progressCollapsed: !1,
|
|
3090
|
+
conversationId: null,
|
|
3091
|
+
inflightMessage: null
|
|
3092
|
+
}, this._abortController = null, this._inflightMessage = null, this._receivedProgress = !1, this._config = {
|
|
3093
|
+
apiUrl: "https://api.luzmo.com",
|
|
3094
|
+
apiVersion: "0.1.0",
|
|
3095
|
+
stream: !0,
|
|
3096
|
+
...e
|
|
3097
|
+
}, e.agentConfig && (this._config.agentConfig = Z(e)), this._hostCallbacks = t, this._state = {
|
|
3098
|
+
...this._state,
|
|
3099
|
+
messages: e.messages ? [...e.messages] : [],
|
|
3100
|
+
selectedDatasets: e.selectedDatasets ? [...e.selectedDatasets] : [],
|
|
3101
|
+
conversationId: e.conversationId ?? null,
|
|
3102
|
+
isGenerating: e.isGenerating ?? !1,
|
|
3103
|
+
progress: e.progress ?? null,
|
|
3104
|
+
progressCollapsed: e.progressCollapsed ?? !1
|
|
3105
|
+
};
|
|
3106
|
+
}
|
|
3107
|
+
get state() {
|
|
3108
|
+
return this._state;
|
|
3109
|
+
}
|
|
3110
|
+
get isGenerating() {
|
|
3111
|
+
return this._state.isGenerating;
|
|
3112
|
+
}
|
|
3113
|
+
get agentConfig() {
|
|
3114
|
+
return Z(this._config);
|
|
3115
|
+
}
|
|
3116
|
+
subscribe(e) {
|
|
3117
|
+
return this._subscribers.add(e), e(this._state), () => {
|
|
3118
|
+
this._subscribers.delete(e);
|
|
3119
|
+
};
|
|
3120
|
+
}
|
|
3121
|
+
setUiBridge(e) {
|
|
3122
|
+
this._uiBridgeCallbacks = e;
|
|
3123
|
+
}
|
|
3124
|
+
updateConfig(e) {
|
|
3125
|
+
let t = this.agentConfig, n = this._config.agentConfig !== void 0;
|
|
3126
|
+
this._config = {
|
|
3127
|
+
...this._config,
|
|
3128
|
+
...e
|
|
3129
|
+
}, e.agentConfig && (this._config.agentConfig = Z(this._config, t));
|
|
3130
|
+
let r = {};
|
|
3131
|
+
if ("conversationId" in e) {
|
|
3132
|
+
let t = e.conversationId ?? null;
|
|
3133
|
+
t !== this._state.conversationId && (r.conversationId = t);
|
|
3134
|
+
}
|
|
3135
|
+
if ("selectedDatasets" in e && e.selectedDatasets) {
|
|
3136
|
+
let t = [...e.selectedDatasets];
|
|
3137
|
+
this._areSelectedDatasetsEqual(t, this._state.selectedDatasets) || (r.selectedDatasets = t);
|
|
3138
|
+
}
|
|
3139
|
+
if ("messages" in e && e.messages) {
|
|
3140
|
+
let t = [...e.messages];
|
|
3141
|
+
this._areChatMessagesEqual(t, this._state.messages) || (r.messages = t);
|
|
3142
|
+
}
|
|
3143
|
+
if ("isGenerating" in e && e.isGenerating !== this._state.isGenerating && (r.isGenerating = e.isGenerating), "progress" in e && (r.progress = e.progress ?? null), "progressCollapsed" in e && e.progressCollapsed !== this._state.progressCollapsed && (r.progressCollapsed = e.progressCollapsed), Object.keys(r).length > 0) this._patchState(r);
|
|
3144
|
+
else if ("agentConfig" in e && (n || this._config.agentConfig !== void 0)) {
|
|
3145
|
+
let e = this.agentConfig;
|
|
3146
|
+
(e.type !== t.type || e.context !== t.context) && this._notifySubscribers();
|
|
3147
|
+
}
|
|
3148
|
+
}
|
|
3149
|
+
setSelectedDatasets(e) {
|
|
3150
|
+
this._patchState({ selectedDatasets: [...e] }), this._emit("onDatasetsChanged", this._state.selectedDatasets);
|
|
3151
|
+
}
|
|
3152
|
+
addDataset(e) {
|
|
3153
|
+
this._state.selectedDatasets.some((t) => t.id === e.id) || (this._patchState({ selectedDatasets: [...this._state.selectedDatasets, e] }), this._emit("onDatasetsChanged", this._state.selectedDatasets));
|
|
3154
|
+
}
|
|
3155
|
+
removeDataset(e) {
|
|
3156
|
+
let t = this._state.selectedDatasets.filter((t) => t.id !== e);
|
|
3157
|
+
t.length !== this._state.selectedDatasets.length && (this._patchState({ selectedDatasets: t }), this._emit("onDatasetsChanged", this._state.selectedDatasets));
|
|
3158
|
+
}
|
|
3159
|
+
isDatasetRequirementMet(e) {
|
|
3160
|
+
return !this._config.requireDataset || this._state.selectedDatasets.length > 0 || !!e;
|
|
3161
|
+
}
|
|
3162
|
+
getAiPromptUrl() {
|
|
3163
|
+
return $n(this._config.apiUrl ?? "https://api.luzmo.com", this._config.apiVersion ?? "0.1.0");
|
|
3164
|
+
}
|
|
3165
|
+
buildRequestBody(e, t, n = [], r = this._config.agentId, i = {}) {
|
|
3166
|
+
return ur(this.agentConfig.type, {
|
|
3167
|
+
prompt: e,
|
|
3168
|
+
datasetIds: t,
|
|
3169
|
+
authKey: this._config.authKey,
|
|
3170
|
+
authToken: this._config.authToken,
|
|
3171
|
+
conversationId: this._state.conversationId,
|
|
3172
|
+
agentId: r,
|
|
3173
|
+
chart: this._config.chart ?? null,
|
|
3174
|
+
dashboard: this._config.dashboard ?? null,
|
|
3175
|
+
customItem: this._config.customItem ?? null,
|
|
3176
|
+
currentScreenMode: this._config.currentScreenMode,
|
|
3177
|
+
localeId: this._config.localeId,
|
|
3178
|
+
timezoneId: this._config.timezoneId,
|
|
3179
|
+
task: this._config.task,
|
|
3180
|
+
...this._config.agentConfig ? zn(this.agentConfig) : {},
|
|
3181
|
+
modelPreference: this._config.modelPreference,
|
|
3182
|
+
apiVersion: this._config.apiVersion,
|
|
3183
|
+
stream: this._config.stream,
|
|
3184
|
+
attachmentUrls: n,
|
|
3185
|
+
internal: i.internal
|
|
3186
|
+
});
|
|
3187
|
+
}
|
|
3188
|
+
buildPromptSubmittedDetail(e) {
|
|
3189
|
+
let t = e.attachmentUrls ?? [];
|
|
3190
|
+
return {
|
|
3191
|
+
prompt: e.prompt,
|
|
3192
|
+
selectedDatasets: e.selectedDatasets,
|
|
3193
|
+
datasetIds: e.datasetIds,
|
|
3194
|
+
agent: this.agentConfig.type,
|
|
3195
|
+
request: this.buildRequestBody(e.prompt, e.datasetIds, t, e.agentId, { internal: e.internal }),
|
|
3196
|
+
url: this.getAiPromptUrl(),
|
|
3197
|
+
...e.signal ? { signal: e.signal } : {},
|
|
3198
|
+
...e.attachments?.length ? { attachments: e.attachments } : {},
|
|
3199
|
+
...t.length ? { attachmentUrls: t } : {}
|
|
3200
|
+
};
|
|
3201
|
+
}
|
|
3202
|
+
async _resolveAttachmentUrls(e, i) {
|
|
3203
|
+
if (e.attachmentUrls?.length) return t(e.attachmentUrls), [...e.attachmentUrls];
|
|
3204
|
+
let a = (e.attachments ?? []).map((e) => e.file).filter((e) => !!e);
|
|
3205
|
+
if (a.length === 0) return [];
|
|
3206
|
+
r(a);
|
|
3207
|
+
let o = this._hostCallbacks.uploadAttachments ?? this._uiBridgeCallbacks.uploadAttachments;
|
|
3208
|
+
if (typeof o == "function") return this._normalizeUploadedUrls(await o(a, { signal: i }), a.length);
|
|
3209
|
+
let { authKey: s, authToken: c, apiUrl: l = "https://api.luzmo.com", apiVersion: u = "0.1.0" } = this._config;
|
|
3210
|
+
if (!s || !c) {
|
|
3211
|
+
if (this._hasCallback("onPromptSubmitted")) return [];
|
|
3212
|
+
throw Error("Image attachments require authKey/authToken for built-in upload, or provide uploadAttachments / attachmentUrls.");
|
|
3213
|
+
}
|
|
3214
|
+
return this._normalizeUploadedUrls(await n({
|
|
3215
|
+
files: a,
|
|
3216
|
+
authKey: s,
|
|
3217
|
+
authToken: c,
|
|
3218
|
+
apiUrl: l,
|
|
3219
|
+
apiVersion: u,
|
|
3220
|
+
signal: i
|
|
3221
|
+
}), a.length);
|
|
3222
|
+
}
|
|
3223
|
+
_normalizeUploadedUrls(e, n) {
|
|
3224
|
+
let r = Array.isArray(e) ? e.filter((e) => typeof e == "string" && e.trim().length > 0) : [];
|
|
3225
|
+
if (r.length !== n) throw Error(`Image upload returned ${r.length} URL(s) for ${n} file(s). Return one non-empty signed URL per file, in the same order.`);
|
|
3226
|
+
return t(r), r;
|
|
3227
|
+
}
|
|
3228
|
+
async submit(e) {
|
|
3229
|
+
await this._submit(e);
|
|
3230
|
+
}
|
|
3231
|
+
async _submit(e) {
|
|
3232
|
+
let t = e.datasetIds ?? this._state.selectedDatasets.map((e) => e.id);
|
|
3233
|
+
if (!this.isDatasetRequirementMet(e.agentId)) return !1;
|
|
3234
|
+
this._abortInflight();
|
|
3235
|
+
let n = new AbortController();
|
|
3236
|
+
this._abortController = n;
|
|
3237
|
+
let r;
|
|
3238
|
+
try {
|
|
3239
|
+
r = await this._resolveAttachmentUrls(e, n.signal);
|
|
3240
|
+
} catch (e) {
|
|
3241
|
+
if (this._abortController === n && (this._abortController = null), n.signal.aborted || e.name === "AbortError") return !1;
|
|
3242
|
+
throw e;
|
|
3243
|
+
}
|
|
3244
|
+
if (n.signal.aborted || this._abortController !== n) return !1;
|
|
3245
|
+
let i = {
|
|
3246
|
+
id: e.aiMessageId ?? xi(),
|
|
3247
|
+
type: "ai",
|
|
3248
|
+
message: ""
|
|
3249
|
+
}, a = [...this._state.messages];
|
|
3250
|
+
if (!e.skipUserMessage) {
|
|
3251
|
+
let t = {
|
|
3252
|
+
id: xi(),
|
|
3253
|
+
type: "user",
|
|
3254
|
+
message: e.prompt,
|
|
3255
|
+
...r.length ? { attachmentUrls: r } : {}
|
|
3256
|
+
};
|
|
3257
|
+
a = [...a, t], this._emit("onMessageSent", t, [...this._state.selectedDatasets]);
|
|
3258
|
+
}
|
|
3259
|
+
a = [...a, i], this._inflightMessage = i, this._receivedProgress = !1, this._patchState({
|
|
3260
|
+
messages: a,
|
|
3261
|
+
isGenerating: !0,
|
|
3262
|
+
progress: gr(),
|
|
3263
|
+
progressCollapsed: !1,
|
|
3264
|
+
inflightMessage: i
|
|
3265
|
+
});
|
|
3266
|
+
let o = t, s = [...this._state.selectedDatasets];
|
|
3267
|
+
if (this._hasCallback("onPromptSubmitted")) {
|
|
3268
|
+
let t = this.buildPromptSubmittedDetail({
|
|
3269
|
+
prompt: e.prompt,
|
|
3270
|
+
selectedDatasets: s,
|
|
3271
|
+
datasetIds: o,
|
|
3272
|
+
signal: n.signal,
|
|
3273
|
+
attachments: e.attachments,
|
|
3274
|
+
attachmentUrls: r,
|
|
3275
|
+
agentId: e.agentId,
|
|
3276
|
+
internal: e.internal
|
|
3277
|
+
});
|
|
3278
|
+
try {
|
|
3279
|
+
await this._invokeCallback("onPromptSubmitted", t);
|
|
3280
|
+
} catch (e) {
|
|
3281
|
+
e.name === "AbortError" ? this.abort() : (this._handleSubmitError(e, i, t.agent), this._finalizeInflightMessage()), this._patchState({ isGenerating: !1 });
|
|
3282
|
+
}
|
|
3283
|
+
return !0;
|
|
3284
|
+
}
|
|
3285
|
+
let c = this.buildRequestBody(e.prompt, t, r, e.agentId, { internal: e.internal }), l = this.agentConfig.type, u = yi(l), d = {
|
|
3286
|
+
aiMessage: i,
|
|
3287
|
+
callbacks: this._createStreamCallbacks(),
|
|
3288
|
+
state: bi()
|
|
3289
|
+
}, f = this._config.fetchStreaming ?? fr, p = !1;
|
|
3290
|
+
try {
|
|
3291
|
+
let { body: e, conversationId: t } = await f({
|
|
3292
|
+
url: this.getAiPromptUrl(),
|
|
3293
|
+
body: c,
|
|
3294
|
+
signal: n.signal
|
|
3295
|
+
});
|
|
3296
|
+
t && this._setConversationId(t), await hr(e, (e) => u(e, d)), p = !0;
|
|
3297
|
+
} catch (e) {
|
|
3298
|
+
e.name !== "AbortError" && (this._handleSubmitError(e, i, l), p = !0);
|
|
3299
|
+
} finally {
|
|
3300
|
+
this._abortController === n && (p ? this._finalizeInflightMessage() : this._discardInflightMessage(), this._patchState({ isGenerating: !1 }), this._abortController = null);
|
|
3301
|
+
}
|
|
3302
|
+
return !0;
|
|
3303
|
+
}
|
|
3304
|
+
async answerElicitation(e, t, n = {}) {
|
|
3305
|
+
let r = this._state.messages.at(-1), i = r?.id === e ? r.elicitation : void 0;
|
|
3306
|
+
if (this._state.isGenerating || !i || i.answer || !i.options.includes(t) || !this.isDatasetRequirementMet(n.agentId)) return !1;
|
|
3307
|
+
let a = (t) => {
|
|
3308
|
+
this._patchState({ messages: this._state.messages.map((n) => n.id === e ? {
|
|
3309
|
+
...n,
|
|
3310
|
+
elicitation: {
|
|
3311
|
+
...i,
|
|
3312
|
+
answer: t
|
|
3313
|
+
}
|
|
3314
|
+
} : n) });
|
|
3315
|
+
};
|
|
3316
|
+
a(t);
|
|
3317
|
+
let o = !1;
|
|
3318
|
+
try {
|
|
3319
|
+
o = await this._submit({
|
|
3320
|
+
...n,
|
|
3321
|
+
prompt: t
|
|
3322
|
+
});
|
|
3323
|
+
} finally {
|
|
3324
|
+
o || a(void 0);
|
|
3325
|
+
}
|
|
3326
|
+
return o;
|
|
3327
|
+
}
|
|
3328
|
+
setMessageFeedback(e, t) {
|
|
3329
|
+
if (t !== -1 && t !== 0 && t !== 1 || e === this._inflightMessage?.id || e === this._state.inflightMessage?.id) return !1;
|
|
3330
|
+
let n = this._state.messages.find((t) => t.id === e);
|
|
3331
|
+
return n?.type !== "ai" || (n.feedback ?? 0) === t ? !1 : (this._patchState({ messages: this._state.messages.map((e) => e === n ? {
|
|
3332
|
+
...e,
|
|
3333
|
+
feedback: t
|
|
3334
|
+
} : e) }), !0);
|
|
3335
|
+
}
|
|
3336
|
+
async restore(e) {
|
|
3337
|
+
let t = this.agentConfig.type;
|
|
3338
|
+
if (t !== "item") return {};
|
|
3339
|
+
let n = dr(e.restoreToMessageId, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
|
|
3340
|
+
if (this._patchState({
|
|
3341
|
+
isGenerating: !0,
|
|
3342
|
+
progress: null,
|
|
3343
|
+
progressCollapsed: !1
|
|
3344
|
+
}), this._hasCallback("onRestoreRequested")) {
|
|
3345
|
+
let t = {
|
|
3346
|
+
apiMessageId: e.restoreToMessageId,
|
|
3347
|
+
messageIndex: e.messageIndex,
|
|
3348
|
+
request: n,
|
|
3349
|
+
url: this.getAiPromptUrl()
|
|
3350
|
+
};
|
|
3351
|
+
try {
|
|
3352
|
+
await this._invokeCallback("onRestoreRequested", t);
|
|
3353
|
+
} finally {
|
|
3354
|
+
this._patchState({ isGenerating: !1 });
|
|
3355
|
+
}
|
|
3356
|
+
return {};
|
|
3357
|
+
}
|
|
3358
|
+
try {
|
|
3359
|
+
let r = await fetch(this.getAiPromptUrl(), {
|
|
3360
|
+
method: "POST",
|
|
3361
|
+
headers: { "Content-Type": "application/json" },
|
|
3362
|
+
mode: "cors",
|
|
3363
|
+
body: JSON.stringify(n)
|
|
3364
|
+
});
|
|
3365
|
+
if (!r.ok) {
|
|
3366
|
+
let e = await r.json().catch(() => null);
|
|
3367
|
+
throw Error(e?.message || `API request failed with status ${r.status}`);
|
|
3368
|
+
}
|
|
3369
|
+
let i = await r.json().catch(() => null), a = i?.generatedChart ?? (i ? Tr(i) : null), o = {
|
|
3370
|
+
...typeof i?.message == "string" ? { message: i.message } : {},
|
|
3371
|
+
...a ? { chart: {
|
|
3372
|
+
...i,
|
|
3373
|
+
generatedChart: a
|
|
3374
|
+
} } : {}
|
|
3375
|
+
}, s = e.messageIndex >= 0 && e.messageIndex < this._state.messages.length ? this._state.messages.slice(0, e.messageIndex + 1) : this._state.messages;
|
|
3376
|
+
if (o.message && s[e.messageIndex]?.type === "ai" && (s[e.messageIndex] = {
|
|
3377
|
+
...s[e.messageIndex],
|
|
3378
|
+
message: o.message
|
|
3379
|
+
}), this._patchState({ messages: [...s] }), o.chart || o.message) {
|
|
3380
|
+
let n = s[e.messageIndex], r = n?.type === "ai" ? n : {
|
|
3381
|
+
id: xi(),
|
|
3382
|
+
type: "ai",
|
|
3383
|
+
message: o.message ?? ""
|
|
3384
|
+
};
|
|
3385
|
+
this._emit("onComplete", {
|
|
3386
|
+
agent: t,
|
|
3387
|
+
conversationId: this._state.conversationId,
|
|
3388
|
+
message: r,
|
|
3389
|
+
...o.chart ? { chart: o.chart } : {},
|
|
3390
|
+
...i ? { raw: i } : {}
|
|
3391
|
+
});
|
|
3392
|
+
}
|
|
3393
|
+
return o;
|
|
3394
|
+
} finally {
|
|
3395
|
+
this._patchState({ isGenerating: !1 });
|
|
3396
|
+
}
|
|
3397
|
+
}
|
|
3398
|
+
buildRestoreRequest(e) {
|
|
3399
|
+
return dr(e, this._config.authKey, this._config.authToken, this._config.apiVersion, this._state.conversationId);
|
|
3400
|
+
}
|
|
3401
|
+
abort(e = {}) {
|
|
3402
|
+
this._abortController?.abort(), this._abortController = null, e.notify && this._inflightMessage ? this._markInflightCancelled(e.cancelledMessage) : this._discardInflightMessage(), this._patchState({
|
|
3403
|
+
isGenerating: !1,
|
|
3404
|
+
progress: null,
|
|
3405
|
+
progressCollapsed: !1
|
|
3406
|
+
}), e.notify && this._emit("onPromptStopped");
|
|
3407
|
+
}
|
|
3408
|
+
_abortInflight() {
|
|
3409
|
+
this._abortController?.abort(), this._abortController = null, this._discardInflightMessage();
|
|
3410
|
+
}
|
|
3411
|
+
_createStreamCallbacks() {
|
|
3412
|
+
return {
|
|
3413
|
+
onConversationIdChange: (e) => this._setConversationId(e),
|
|
3414
|
+
onProgress: (e) => {
|
|
3415
|
+
this._receivedProgress = !0, this._patchState({ progress: e });
|
|
3416
|
+
},
|
|
3417
|
+
onProgressCollapsed: (e) => {
|
|
3418
|
+
this._patchState({ progressCollapsed: e });
|
|
3419
|
+
},
|
|
3420
|
+
onMessageUpdate: (e) => {
|
|
3421
|
+
this._inflightMessage = e, this._upsertMessage(e), this._patchState({ inflightMessage: { ...e } });
|
|
3422
|
+
},
|
|
3423
|
+
getConversationId: () => this._state.conversationId,
|
|
3424
|
+
onStep: (e) => {
|
|
3425
|
+
this._emit("onStep", e);
|
|
3426
|
+
},
|
|
3427
|
+
onComplete: (e) => {
|
|
3428
|
+
this._emit("onComplete", e);
|
|
3429
|
+
}
|
|
3430
|
+
};
|
|
3431
|
+
}
|
|
3432
|
+
_setConversationId(e) {
|
|
3433
|
+
this._config = {
|
|
3434
|
+
...this._config,
|
|
3435
|
+
conversationId: e
|
|
3436
|
+
}, this._patchState({ conversationId: e }), this._emit("onConversationIdChange", e);
|
|
3437
|
+
}
|
|
3438
|
+
_upsertMessage(e) {
|
|
3439
|
+
let t = this._state.messages.findIndex((t) => t.id === e.id);
|
|
3440
|
+
if (t === -1) {
|
|
3441
|
+
this._patchState({ messages: [...this._state.messages, { ...e }] });
|
|
3442
|
+
return;
|
|
3443
|
+
}
|
|
3444
|
+
let n = this._state.messages.map((n, r) => r === t ? { ...e } : n);
|
|
3445
|
+
this._patchState({ messages: n });
|
|
3446
|
+
}
|
|
3447
|
+
_finalizeInflightMessage() {
|
|
3448
|
+
this._inflightMessage && (this._state.progress && this._receivedProgress && (this._inflightMessage.progress = structuredClone(this._state.progress), this._upsertMessage(this._inflightMessage)), this._inflightMessage = null, this._receivedProgress = !1, this._patchState({
|
|
3449
|
+
progress: null,
|
|
3450
|
+
progressCollapsed: !1,
|
|
3451
|
+
inflightMessage: null
|
|
3452
|
+
}));
|
|
3453
|
+
}
|
|
3454
|
+
_removeInflightFromMessages() {
|
|
3455
|
+
this._inflightMessage && this._patchState({ messages: this._state.messages.filter((e) => e.id !== this._inflightMessage.id) });
|
|
3456
|
+
}
|
|
3457
|
+
_markInflightCancelled(e) {
|
|
3458
|
+
this._inflightMessage && (this._inflightMessage.message = e ?? c("Response cancelled.", { desc: "Placeholder shown in ai chat where the assistant reply would appear when the user stops an in-flight response" }), this._inflightMessage.isCancelled = !0, this._inflightMessage.hasChart = !1, delete this._inflightMessage.progress, delete this._inflightMessage.elicitation, this._upsertMessage(this._inflightMessage), this._inflightMessage = null, this._receivedProgress = !1, this._patchState({ inflightMessage: null }));
|
|
3459
|
+
}
|
|
3460
|
+
_discardInflightMessage() {
|
|
3461
|
+
let e = !!(this._inflightMessage || this._state.inflightMessage);
|
|
3462
|
+
this._removeInflightFromMessages(), this._inflightMessage = null, this._receivedProgress = !1, e && this._patchState({ inflightMessage: null });
|
|
3463
|
+
}
|
|
3464
|
+
_handleSubmitError(e, t, n) {
|
|
3465
|
+
t.message = c("Something went wrong. Please try again.", { desc: "Generic error message shown in ai chat when the API request fails" }), t.isError = !0, delete t.progress, delete t.elicitation, this._inflightMessage = t, this._upsertMessage(t), this._patchState({
|
|
3466
|
+
inflightMessage: { ...t },
|
|
3467
|
+
progress: null,
|
|
3468
|
+
progressCollapsed: !1
|
|
3469
|
+
}), this._emit("onComplete", {
|
|
3470
|
+
agent: n,
|
|
3471
|
+
conversationId: this._state.conversationId,
|
|
3472
|
+
message: t,
|
|
3473
|
+
error: e
|
|
3474
|
+
});
|
|
3475
|
+
}
|
|
3476
|
+
_hasCallback(e) {
|
|
3477
|
+
return typeof this._hostCallbacks[e] == "function" || typeof this._uiBridgeCallbacks[e] == "function";
|
|
3478
|
+
}
|
|
3479
|
+
_emit(e, ...t) {
|
|
3480
|
+
this._invokeCallback(e, ...t);
|
|
3481
|
+
}
|
|
3482
|
+
async _invokeCallback(e, ...t) {
|
|
3483
|
+
let n = this._hostCallbacks[e], r = this._uiBridgeCallbacks[e];
|
|
3484
|
+
typeof n == "function" && await n(...t), typeof r == "function" && await r(...t);
|
|
3485
|
+
}
|
|
3486
|
+
_patchState(e) {
|
|
3487
|
+
this._state = {
|
|
3488
|
+
...this._state,
|
|
3489
|
+
...e
|
|
3490
|
+
}, this._emit("onStateChange", this._state), this._notifySubscribers();
|
|
3491
|
+
}
|
|
3492
|
+
_notifySubscribers() {
|
|
3493
|
+
for (let e of this._subscribers) e(this._state);
|
|
3494
|
+
}
|
|
3495
|
+
_areSelectedDatasetsEqual(e, t) {
|
|
3496
|
+
return e.length === t.length && e.every((e, n) => e.id === t[n]?.id);
|
|
3497
|
+
}
|
|
3498
|
+
_areChatMessagesEqual(e, t) {
|
|
3499
|
+
return e.length === t.length && e.every((e, n) => {
|
|
3500
|
+
let r = t[n];
|
|
3501
|
+
return e.id === r?.id && e.apiMessageId === r?.apiMessageId && e.type === r?.type && e.message === r?.message && e.isError === r?.isError && e.isCancelled === r?.isCancelled && e.hasChart === r?.hasChart && e.feedback === r?.feedback && e.hideFeedback === r?.hideFeedback && JSON.stringify(e.progress ?? null) === JSON.stringify(r?.progress ?? null) && JSON.stringify(e.actions ?? null) === JSON.stringify(r?.actions ?? null) && JSON.stringify(e.attachmentUrls ?? null) === JSON.stringify(r?.attachmentUrls ?? null) && JSON.stringify(e.elicitation ?? null) === JSON.stringify(r?.elicitation ?? null);
|
|
3502
|
+
});
|
|
3503
|
+
}
|
|
3504
|
+
};
|
|
3505
|
+
function Ci(e, t) {
|
|
3506
|
+
return new Si(e, t);
|
|
3507
|
+
}
|
|
3508
|
+
// src/components/ai-chat/session/ai-chat-session-controller.ts
|
|
3509
|
+
var wi = class {
|
|
3510
|
+
constructor(e) {
|
|
3511
|
+
this.options = e, this._session = null, this._ownsSession = !1, this._customItemFromProps = !1, this._seededFromProps = !1, this._unsubscribe = null;
|
|
3512
|
+
}
|
|
3513
|
+
get current() {
|
|
3514
|
+
return this._session;
|
|
3515
|
+
}
|
|
3516
|
+
get state() {
|
|
3517
|
+
if (this._session) return this._session.state;
|
|
3518
|
+
let e = this.options.getSeed();
|
|
3519
|
+
return {
|
|
3520
|
+
messages: e.messages,
|
|
3521
|
+
selectedDatasets: e.selectedDatasets,
|
|
3522
|
+
isGenerating: !1,
|
|
3523
|
+
progress: null,
|
|
3524
|
+
progressCollapsed: !1,
|
|
3525
|
+
conversationId: e.conversationId,
|
|
3526
|
+
inflightMessage: null
|
|
3527
|
+
};
|
|
3528
|
+
}
|
|
3529
|
+
get ownsCurrentSession() {
|
|
3530
|
+
return this._ownsSession;
|
|
3531
|
+
}
|
|
3532
|
+
setSession(e) {
|
|
3533
|
+
e ? (this._ownsSession && this._session !== e && this._session?.abort(), this._ownsSession = !1, this._session = e, this._mergeHostElementConfig(e), this._wire(e)) : this._clearSession();
|
|
3534
|
+
}
|
|
3535
|
+
syncProperties(e) {
|
|
3536
|
+
if (!e.has("chatSession")) {
|
|
3537
|
+
if (this._createSessionIfMissing(), this._session) {
|
|
3538
|
+
let t = this.options.getConfig();
|
|
3539
|
+
if (Object.keys(t).some((t) => e.has(t)) && (this._ownsSession ? this._session.updateConfig(t) : this._mergeHostElementConfig(this._session)), e.has("selectedDatasets") && this._ownsSession) {
|
|
3540
|
+
let e = this.options.getSeed().selectedDatasets, t = this._session.state.selectedDatasets;
|
|
3541
|
+
(e.length !== t.length || e.some((e, n) => e.id !== t[n]?.id)) && this._session.updateConfig({ selectedDatasets: e });
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
(e.has("messages") || e.has("selectedDatasets")) && this._seedFromPropsOnce();
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
requireSession() {
|
|
3548
|
+
return this._createSessionIfMissing(), this._ownsSession ? this._session.updateConfig(this.options.getConfig()) : this._session && this._mergeHostElementConfig(this._session), this._session;
|
|
3549
|
+
}
|
|
3550
|
+
_mergeHostElementConfig(e) {
|
|
3551
|
+
let t = this.options.getConfig(), n = {
|
|
3552
|
+
authKey: t.authKey,
|
|
3553
|
+
authToken: t.authToken,
|
|
3554
|
+
apiUrl: t.apiUrl,
|
|
3555
|
+
apiVersion: t.apiVersion,
|
|
3556
|
+
stream: t.stream,
|
|
3557
|
+
localeId: t.localeId,
|
|
3558
|
+
timezoneId: t.timezoneId,
|
|
3559
|
+
modelPreference: t.modelPreference,
|
|
3560
|
+
requireDataset: t.requireDataset,
|
|
3561
|
+
agent: t.agent
|
|
3562
|
+
};
|
|
3563
|
+
t.agentConfig !== void 0 && (n.agentConfig = t.agentConfig), t.task !== void 0 && (n.task = t.task), t.chart != null && (n.chart = t.chart), t.dashboard != null && (n.dashboard = t.dashboard), t.customItem != null && (this._customItemFromProps = !0), this._customItemFromProps && (n.customItem = t.customItem ?? null), t.currentScreenMode != null && (n.currentScreenMode = t.currentScreenMode), t.conversationId != null && (n.conversationId = t.conversationId), e.updateConfig(n);
|
|
3564
|
+
}
|
|
3565
|
+
connect() {
|
|
3566
|
+
this._session && this._wire(this._session);
|
|
3567
|
+
}
|
|
3568
|
+
teardown() {
|
|
3569
|
+
this._unwire(), this._ownsSession &&= (this._session?.abort(), this._session = null, !1), this._seededFromProps = !1;
|
|
3570
|
+
}
|
|
3571
|
+
_createSessionIfMissing() {
|
|
3572
|
+
if (this._session) return;
|
|
3573
|
+
let e = this.options.getSeed();
|
|
3574
|
+
this._session = Ci({
|
|
3575
|
+
...this.options.getConfig(),
|
|
3576
|
+
messages: e.messages.length > 0 ? [...e.messages] : void 0,
|
|
3577
|
+
selectedDatasets: e.selectedDatasets.length > 0 ? [...e.selectedDatasets] : void 0
|
|
3578
|
+
}), this._ownsSession = !0, this._seededFromProps = e.messages.length > 0 || e.selectedDatasets.length > 0, this._wire(this._session);
|
|
3579
|
+
}
|
|
3580
|
+
_clearSession() {
|
|
3581
|
+
this._unwire(), this._ownsSession && this._session?.abort(), this._session = null, this._ownsSession = !1;
|
|
3582
|
+
}
|
|
3583
|
+
_seedFromPropsOnce() {
|
|
3584
|
+
if (!this._ownsSession || this._seededFromProps) return;
|
|
3585
|
+
let e = this.requireSession(), t = this.options.getSeed(), n = {};
|
|
3586
|
+
e.state.messages.length === 0 && t.messages.length > 0 && (n.messages = [...t.messages]), e.state.selectedDatasets.length === 0 && t.selectedDatasets.length > 0 && (n.selectedDatasets = [...t.selectedDatasets]), Object.keys(n).length > 0 && (e.updateConfig(n), this._seededFromProps = !0);
|
|
3587
|
+
}
|
|
3588
|
+
_wire(e) {
|
|
3589
|
+
this._unwire(), e.setUiBridge(this.options.createDomBridge()), this._unsubscribe = e.subscribe(() => {
|
|
3590
|
+
this.options.onRenderNeeded();
|
|
3591
|
+
});
|
|
3592
|
+
}
|
|
3593
|
+
_unwire() {
|
|
3594
|
+
this._unsubscribe?.(), this._unsubscribe = null;
|
|
3595
|
+
}
|
|
3596
|
+
}, Ti, $ = class t extends a(i, { validSizes: [
|
|
3597
|
+
"s",
|
|
3598
|
+
"m",
|
|
3599
|
+
"l",
|
|
3600
|
+
"xl"
|
|
3601
|
+
] }) {
|
|
3602
|
+
constructor(...e) {
|
|
3603
|
+
super(...e), this.messages = [], this.selectedDatasets = [], this.placeholder = "Describe your change", this.disabled = !1, this.stoppable = !1, this.showAssistantContextMenu = !1, this.showAssistantMessageFeedback = !1, this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.includePublicDatasets = !1, this.hideDatasetButton = !1, this.hideDatasetIcons = !1, this.disableDatasetModification = !1, this.hideSelectedDatasets = !1, this.hideAgents = !1, this.disableColumnMentions = !1, this.requireDataset = !1, this.allowImages = !1, this.allowVoiceInput = !1, this.acceptedFileTypes = [], this.agent = "item", this.task = "generate", this.modelPreference = "performance", this.chatSession = null, this.conversationId = null, this.chart = null, this.dashboard = null, this.customItem = null, this.timezoneId = "UTC", this.apiVersion = "0.1.0", this.stream = !0, this.loadingMessage = null, this.cancelledMessage = null, this.initialPrompt = null, this.emptyStateTitle = "", this.emptyStateSubtitle = "", this.emptyStateSuggestions = [], this._textareaValue = "", this._assistantMessageActionsSlotHasContent = !1, this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1, this._focusedFeedbackWrapper = null, this._lastProcessedInitialPrompt = null, this._lastNotifiedState = null, this._session = new wi({
|
|
3604
|
+
getConfig: () => this._buildSessionConfig(),
|
|
3605
|
+
getSeed: () => ({
|
|
3606
|
+
messages: this.messages,
|
|
3607
|
+
selectedDatasets: Array.isArray(this.selectedDatasets) ? this.selectedDatasets : [],
|
|
3608
|
+
conversationId: this.conversationId
|
|
3609
|
+
}),
|
|
3610
|
+
createDomBridge: () => this._createDomBridgeCallbacks(),
|
|
3611
|
+
onRenderNeeded: () => {
|
|
3612
|
+
let e = this._session.state, t = Un(this._lastNotifiedState, e);
|
|
3613
|
+
this._lastNotifiedState = e, this.requestUpdate(), t || this.updateComplete.then(() => this._scrollToBottom());
|
|
3614
|
+
}
|
|
3615
|
+
}), this._handleAssistantMessageActionsSlotChange = (e) => {
|
|
3616
|
+
let t = e.target.assignedElements({ flatten: !0 }).length > 0;
|
|
3617
|
+
this._setAssistantMessageActionsSlotHasContent(t);
|
|
3618
|
+
}, this._handleAssistantMessageActionConfirmKeydown = (e) => {
|
|
3619
|
+
e.key === "Escape" && this._pendingAssistantMessageAction && (e.preventDefault(), e.stopPropagation(), this._cancelAssistantMessageActionConfirm());
|
|
3620
|
+
};
|
|
3621
|
+
}
|
|
3622
|
+
get flagOpendata() {
|
|
3623
|
+
return this.includePublicDatasets;
|
|
3624
|
+
}
|
|
3625
|
+
set flagOpendata(e) {
|
|
3626
|
+
this.includePublicDatasets = e;
|
|
3627
|
+
}
|
|
3628
|
+
get session() {
|
|
3629
|
+
return this._session.current;
|
|
3630
|
+
}
|
|
3631
|
+
_getRenderState() {
|
|
3632
|
+
return this._session.state;
|
|
3633
|
+
}
|
|
3634
|
+
_createDomBridgeCallbacks() {
|
|
3635
|
+
return {
|
|
3636
|
+
onMessageSent: (e, t) => {
|
|
3637
|
+
this.dispatchEvent(new CustomEvent("luzmo-message-sent", {
|
|
3638
|
+
detail: {
|
|
3639
|
+
message: e,
|
|
3640
|
+
selectedDatasets: t
|
|
3641
|
+
},
|
|
3642
|
+
bubbles: !0,
|
|
3643
|
+
composed: !0
|
|
3644
|
+
}));
|
|
3645
|
+
},
|
|
3646
|
+
onDatasetsChanged: (e) => {
|
|
3647
|
+
this.dispatchEvent(new CustomEvent("luzmo-datasets-changed", {
|
|
3648
|
+
detail: { selectedDatasets: e },
|
|
3649
|
+
bubbles: !0,
|
|
3650
|
+
composed: !0
|
|
3651
|
+
}));
|
|
3652
|
+
},
|
|
3653
|
+
onConversationIdChange: (e) => this._emitConversationIdChanged(e),
|
|
3654
|
+
onStep: (e) => {
|
|
3655
|
+
this.dispatchEvent(new CustomEvent("luzmo-step", {
|
|
3656
|
+
detail: e,
|
|
3657
|
+
bubbles: !0,
|
|
3658
|
+
composed: !0
|
|
3659
|
+
}));
|
|
3660
|
+
},
|
|
3661
|
+
onComplete: (e) => {
|
|
3662
|
+
this.dispatchEvent(new CustomEvent("luzmo-complete", {
|
|
3663
|
+
detail: e,
|
|
3664
|
+
bubbles: !0,
|
|
3665
|
+
composed: !0
|
|
3666
|
+
}));
|
|
3667
|
+
},
|
|
3668
|
+
onPromptStopped: () => {
|
|
3669
|
+
this.dispatchEvent(new CustomEvent("luzmo-stop", {
|
|
3670
|
+
bubbles: !0,
|
|
3671
|
+
composed: !0
|
|
3672
|
+
}));
|
|
3673
|
+
},
|
|
3674
|
+
...typeof this.uploadAttachments == "function" ? { uploadAttachments: (e, t) => this.uploadAttachments(e, t) } : {}
|
|
3675
|
+
};
|
|
3676
|
+
}
|
|
3677
|
+
get _pickedAgentId() {
|
|
3678
|
+
if (!this.hideAgents) return this.shadowRoot?.querySelector("luzmo-ai-interaction-textarea")?.selectedAgent?.id;
|
|
3679
|
+
}
|
|
3680
|
+
get _oneSizeSmaller() {
|
|
3681
|
+
return {
|
|
3682
|
+
s: "xs",
|
|
3683
|
+
m: "s",
|
|
3684
|
+
l: "m",
|
|
3685
|
+
xl: "l"
|
|
3686
|
+
}[this.size] ?? "s";
|
|
3687
|
+
}
|
|
3688
|
+
get _resolvedAcceptedFileTypes() {
|
|
3689
|
+
return this.acceptedFileTypes.length > 0 ? this.acceptedFileTypes : this.allowImages ? [...e] : [];
|
|
3690
|
+
}
|
|
3691
|
+
_buildSessionConfig() {
|
|
3692
|
+
return {
|
|
3693
|
+
agent: this.agent,
|
|
3694
|
+
agentConfig: this.agentConfig,
|
|
3695
|
+
agentId: this.agentId,
|
|
3696
|
+
authKey: this.authKey,
|
|
3697
|
+
authToken: this.authToken,
|
|
3698
|
+
apiUrl: this.apiUrl,
|
|
3699
|
+
apiVersion: this.apiVersion,
|
|
3700
|
+
stream: this.stream,
|
|
3701
|
+
conversationId: this.conversationId,
|
|
3702
|
+
chart: this.chart,
|
|
3703
|
+
dashboard: this.dashboard,
|
|
3704
|
+
customItem: this.customItem,
|
|
3705
|
+
currentScreenMode: this.currentScreenMode,
|
|
3706
|
+
localeId: this.localeId,
|
|
3707
|
+
timezoneId: this.timezoneId,
|
|
3708
|
+
task: this.task,
|
|
3709
|
+
modelPreference: this.modelPreference,
|
|
3710
|
+
requireDataset: this.requireDataset
|
|
3711
|
+
};
|
|
3712
|
+
}
|
|
3713
|
+
_getAgentConfig() {
|
|
3714
|
+
let e = this._session.current?.agentConfig;
|
|
3715
|
+
return this.agentConfig === void 0 && this.chatSession && e ? e : Z(this._buildSessionConfig(), e);
|
|
3716
|
+
}
|
|
3717
|
+
_emitConversationIdChanged(e) {
|
|
3718
|
+
this.conversationId = e, this.dispatchEvent(new CustomEvent("luzmo-conversation-id-changed", {
|
|
3719
|
+
detail: { conversationId: e },
|
|
3720
|
+
bubbles: !0,
|
|
3721
|
+
composed: !0
|
|
3722
|
+
}));
|
|
3723
|
+
}
|
|
3724
|
+
async _restoreViaSession(e, t) {
|
|
3725
|
+
await this._session.requireSession().restore({
|
|
3726
|
+
restoreToMessageId: e,
|
|
3727
|
+
messageIndex: t
|
|
3728
|
+
});
|
|
3729
|
+
}
|
|
3730
|
+
async _handleRestoreState(e, t) {
|
|
3731
|
+
if (e.apiMessageId && this._getAgentConfig().type === "item") try {
|
|
3732
|
+
await this._restoreViaSession(e.apiMessageId, t);
|
|
3733
|
+
} catch (e) {
|
|
3734
|
+
console.error("AI restore error:", e);
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
_handleDatasetSelected(e) {
|
|
3738
|
+
this._session.requireSession().addDataset(e.detail);
|
|
3739
|
+
}
|
|
3740
|
+
_handleDatasetRemoved(e) {
|
|
3741
|
+
this._session.requireSession().removeDataset(e.detail.id);
|
|
3742
|
+
}
|
|
3743
|
+
_handleAgentSelected() {
|
|
3744
|
+
this._processInitialPrompt();
|
|
3745
|
+
}
|
|
3746
|
+
async _submitViaSession(e, t = {}) {
|
|
3747
|
+
let n = this._session.requireSession();
|
|
3748
|
+
if (!n.isDatasetRequirementMet(t.agentId)) return !1;
|
|
3749
|
+
this._textareaValue = "";
|
|
3750
|
+
try {
|
|
3751
|
+
return await n.submit({
|
|
3752
|
+
prompt: e,
|
|
3753
|
+
...t
|
|
3754
|
+
}), !0;
|
|
3755
|
+
} catch (e) {
|
|
3756
|
+
return e.name !== "AbortError" && console.error("AI prompt session error:", e), !1;
|
|
3757
|
+
}
|
|
3758
|
+
}
|
|
3759
|
+
async _handlePromptSubmitted(e) {
|
|
3760
|
+
let t = e.detail.prompt;
|
|
3761
|
+
await this._submitViaSession(t, {
|
|
3762
|
+
...e.detail.attachments?.length ? { attachments: e.detail.attachments } : {},
|
|
3763
|
+
...e.detail.attachmentUrls?.length ? { attachmentUrls: e.detail.attachmentUrls } : {},
|
|
3764
|
+
...e.detail.selectedAgent ? { agentId: e.detail.selectedAgent.id } : {}
|
|
3765
|
+
}) || (this._textareaValue = t);
|
|
3766
|
+
}
|
|
3767
|
+
_handlePromptStopped() {
|
|
3768
|
+
let e = this._session.current;
|
|
3769
|
+
this._textareaValue = "", e ? e.abort({
|
|
3770
|
+
notify: !0,
|
|
3771
|
+
cancelledMessage: this.cancelledMessage ?? void 0
|
|
3772
|
+
}) : this.dispatchEvent(new CustomEvent("luzmo-stop", {
|
|
3773
|
+
bubbles: !0,
|
|
3774
|
+
composed: !0
|
|
3775
|
+
}));
|
|
3776
|
+
}
|
|
3777
|
+
async _handleEmptyStateSuggestionSelected(e) {
|
|
3778
|
+
let { prompt: t, selectedDatasets: n } = e.detail, r = this._session.requireSession();
|
|
3779
|
+
n?.length && r.setSelectedDatasets(n), await this._submitViaSession(t, { agentId: this._pickedAgentId });
|
|
3780
|
+
}
|
|
3781
|
+
async _processInitialPrompt() {
|
|
3782
|
+
if (!this.initialPrompt || this.initialPrompt === this._lastProcessedInitialPrompt) return;
|
|
3783
|
+
let e = this._pickedAgentId;
|
|
3784
|
+
this._session.requireSession().isDatasetRequirementMet(e) && (this._lastProcessedInitialPrompt = this.initialPrompt, await this._submitViaSession(this.initialPrompt, {
|
|
3785
|
+
skipUserMessage: !0,
|
|
3786
|
+
agentId: e
|
|
3787
|
+
}));
|
|
3788
|
+
}
|
|
3789
|
+
connectedCallback() {
|
|
3790
|
+
super.connectedCallback(), this._session.connect();
|
|
3791
|
+
}
|
|
3792
|
+
disconnectedCallback() {
|
|
3793
|
+
super.disconnectedCallback(), this._session.teardown();
|
|
3794
|
+
}
|
|
3795
|
+
_scrollToBottom() {
|
|
3796
|
+
let e = this.shadowRoot?.querySelector(".chat-messages-container");
|
|
3797
|
+
e && requestAnimationFrame(() => {
|
|
3798
|
+
requestAnimationFrame(() => {
|
|
3799
|
+
e.scrollTop = e.scrollHeight;
|
|
3800
|
+
});
|
|
3801
|
+
});
|
|
3802
|
+
}
|
|
3803
|
+
willUpdate(e) {
|
|
3804
|
+
super.willUpdate?.(e), this._syncPendingAssistantMessageAction(), this._focusedFeedbackWrapper = this.shadowRoot?.activeElement?.closest(".assistant-message-feedback")?.closest(".assistant-message-wrapper") ?? null;
|
|
3805
|
+
}
|
|
3806
|
+
updated(e) {
|
|
3807
|
+
super.updated?.(e), this._syncSession(e), this._handleInitialPromptChange(), this._restoreFocusFromRemovedFeedback(), e.has("uploadAttachments") && this._session.current?.setUiBridge(this._createDomBridgeCallbacks()), this.updateComplete.then(() => {
|
|
3808
|
+
this._syncAssistantMessageActionsVisibility(), this._focusPendingAssistantMessageActionConfirm();
|
|
3809
|
+
});
|
|
3810
|
+
}
|
|
3811
|
+
_syncSession(e) {
|
|
3812
|
+
e.has("chatSession") ? this._session.setSession(this.chatSession) : this._session.syncProperties(e);
|
|
3813
|
+
}
|
|
3814
|
+
_handleInitialPromptChange() {
|
|
3815
|
+
this.initialPrompt && this.initialPrompt !== this._lastProcessedInitialPrompt ? this._processInitialPrompt() : this.initialPrompt || (this._lastProcessedInitialPrompt = null);
|
|
3816
|
+
}
|
|
3817
|
+
_renderMarkdown(e) {
|
|
3818
|
+
let t = String(X.parse(e, { async: !1 }));
|
|
3819
|
+
return St.sanitize(t, {
|
|
3820
|
+
ALLOWED_TAGS: /* @__PURE__ */ "p.br.strong.em.b.i.u.s.code.pre.blockquote.hr.ul.ol.li.h1.h2.h3.h4.h5.h6.table.thead.tbody.tr.th.td.a".split("."),
|
|
3821
|
+
ALLOWED_ATTR: [
|
|
3822
|
+
"href",
|
|
3823
|
+
"title",
|
|
3824
|
+
"target",
|
|
3825
|
+
"rel"
|
|
3826
|
+
],
|
|
3827
|
+
ALLOW_DATA_ATTR: !1,
|
|
3828
|
+
FORBID_TAGS: [
|
|
3829
|
+
"script",
|
|
3830
|
+
"style",
|
|
3831
|
+
"iframe",
|
|
3832
|
+
"object",
|
|
3833
|
+
"embed",
|
|
3834
|
+
"link",
|
|
3835
|
+
"form",
|
|
3836
|
+
"input",
|
|
3837
|
+
"button"
|
|
3838
|
+
],
|
|
3839
|
+
FORBID_ATTR: [
|
|
3840
|
+
"onerror",
|
|
3841
|
+
"onload",
|
|
3842
|
+
"onclick",
|
|
3843
|
+
"onmouseover",
|
|
3844
|
+
"onfocus",
|
|
3845
|
+
"onblur"
|
|
3846
|
+
]
|
|
3847
|
+
});
|
|
3848
|
+
}
|
|
3849
|
+
_renderProgress() {
|
|
3850
|
+
let { progress: e, progressCollapsed: t } = this._getRenderState();
|
|
3851
|
+
return e?.children?.length ? m`
|
|
3852
|
+
<luzmo-progress-steps
|
|
3853
|
+
.progress=${e}
|
|
3854
|
+
?collapsed=${t}
|
|
3855
|
+
.size=${this.size}
|
|
3856
|
+
></luzmo-progress-steps>
|
|
3857
|
+
` : h;
|
|
3858
|
+
}
|
|
3859
|
+
_syncAssistantMessageActionsVisibility() {
|
|
3860
|
+
let e = ((this.shadowRoot?.querySelector(`slot[name="${t.assistantMessageActionsSlot}"]`) ?? null)?.assignedElements({ flatten: !0 }).length ?? 0) > 0;
|
|
3861
|
+
this._setAssistantMessageActionsSlotHasContent(e);
|
|
3862
|
+
}
|
|
3863
|
+
_setAssistantMessageActionsSlotHasContent(e) {
|
|
3864
|
+
e !== this._assistantMessageActionsSlotHasContent && (this._assistantMessageActionsSlotHasContent = e);
|
|
3865
|
+
}
|
|
3866
|
+
_isLatestAssistantMessage(e, t) {
|
|
3867
|
+
return !!(t && e === t);
|
|
3868
|
+
}
|
|
3869
|
+
_hasBuiltInAssistantMessageActions(e) {
|
|
3870
|
+
return (e.actions?.length ?? 0) > 0;
|
|
3871
|
+
}
|
|
3872
|
+
_assistantMessageActionsFooterHasContent(e, t) {
|
|
3873
|
+
return this._hasBuiltInAssistantMessageActions(e) || t && this._assistantMessageActionsSlotHasContent;
|
|
3874
|
+
}
|
|
3875
|
+
_syncPendingAssistantMessageAction() {
|
|
3876
|
+
let e = this._pendingAssistantMessageAction;
|
|
3877
|
+
if (!e) return;
|
|
3878
|
+
let { messages: t } = this._getRenderState(), n = t.find((t) => t.id === e.messageId), r = n?.actions?.find((t) => t.id === e.actionId);
|
|
3879
|
+
n && r?.confirm || (this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1);
|
|
3880
|
+
}
|
|
3881
|
+
_getDefaultAssistantMessageActionConfirmMessage() {
|
|
3882
|
+
return c("Are you sure?", { desc: "Default assistant message action confirmation prompt" });
|
|
3883
|
+
}
|
|
3884
|
+
_isAssistantMessageActionConfirming(e) {
|
|
3885
|
+
let t = this._pendingAssistantMessageAction, n = e.id;
|
|
3886
|
+
return !!(t && n && t.messageId === n);
|
|
3887
|
+
}
|
|
3888
|
+
_getPendingAssistantMessageAction(e) {
|
|
3889
|
+
let t = this._pendingAssistantMessageAction, n = e.id;
|
|
3890
|
+
if (t && n && t.messageId === n) return e.actions?.find((e) => e.id === t.actionId);
|
|
3891
|
+
}
|
|
3892
|
+
_handleAssistantMessageAction(e, t) {
|
|
3893
|
+
let n = e.id;
|
|
3894
|
+
n && this.dispatchEvent(new CustomEvent("luzmo-assistant-message-action", {
|
|
3895
|
+
detail: {
|
|
3896
|
+
messageId: n,
|
|
3897
|
+
actionId: t.id,
|
|
3898
|
+
message: e
|
|
3899
|
+
},
|
|
3900
|
+
bubbles: !0,
|
|
3901
|
+
composed: !0
|
|
3902
|
+
}));
|
|
3903
|
+
}
|
|
3904
|
+
_handleAssistantMessageActionClick(e, t) {
|
|
3905
|
+
let n = e.id;
|
|
3906
|
+
n && (t.confirm ? (this._pendingAssistantMessageAction = {
|
|
3907
|
+
messageId: n,
|
|
3908
|
+
actionId: t.id
|
|
3909
|
+
}, this._shouldFocusAssistantMessageActionConfirm = !0) : this._handleAssistantMessageAction(e, t));
|
|
3910
|
+
}
|
|
3911
|
+
_cancelAssistantMessageActionConfirm() {
|
|
3912
|
+
this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1;
|
|
3913
|
+
}
|
|
3914
|
+
_confirmAssistantMessageAction(e, t) {
|
|
3915
|
+
this._pendingAssistantMessageAction = null, this._shouldFocusAssistantMessageActionConfirm = !1, this._handleAssistantMessageAction(e, t);
|
|
3916
|
+
}
|
|
3917
|
+
_focusPendingAssistantMessageActionConfirm() {
|
|
3918
|
+
this._shouldFocusAssistantMessageActionConfirm && this._pendingAssistantMessageAction && (this._shouldFocusAssistantMessageActionConfirm = !1, (this.shadowRoot?.querySelector("luzmo-button.assistant-message-action-confirm-cancel"))?.focus?.());
|
|
3919
|
+
}
|
|
3920
|
+
_restoreFocusFromRemovedFeedback() {
|
|
3921
|
+
let e = this._focusedFeedbackWrapper;
|
|
3922
|
+
this._focusedFeedbackWrapper = null;
|
|
3923
|
+
let t = !this.shadowRoot?.activeElement && (!document.activeElement || document.activeElement === document.body);
|
|
3924
|
+
e && t && !e.querySelector(".assistant-message-feedback") && (e.isConnected && this._focusFirstAssistantMessageAction(e) || this.shadowRoot?.querySelector("luzmo-ai-interaction-textarea")?.shadowRoot?.querySelector("luzmo-prompt-box")?.focus());
|
|
3925
|
+
}
|
|
3926
|
+
_focusFirstAssistantMessageAction(e) {
|
|
3927
|
+
return Array.from(e.querySelector(".assistant-message-actions")?.children ?? []).flatMap((e) => e instanceof HTMLSlotElement ? e.assignedElements({ flatten: !0 }) : [e]).flatMap((e) => [e, ...e.querySelectorAll("*")]).some((e) => {
|
|
3928
|
+
let t = e;
|
|
3929
|
+
return t.tabIndex < 0 || t.disabled || t.matches(":disabled") || t.getAttribute("aria-disabled") === "true" ? !1 : (t.focus({ preventScroll: !0 }), t.matches(":focus-within"));
|
|
3930
|
+
});
|
|
3931
|
+
}
|
|
3932
|
+
_renderBuiltInAssistantMessageAction(e, t) {
|
|
3933
|
+
let n = this.disabled || t.disabled || !e.id, r = t.icon ?? (t.id === "undo" ? l : void 0);
|
|
3934
|
+
return r ? m`
|
|
3935
|
+
<luzmo-action-button
|
|
3936
|
+
class="assistant-message-action"
|
|
3937
|
+
quiet
|
|
3938
|
+
label=${t.label}
|
|
3939
|
+
.size=${this._oneSizeSmaller}
|
|
3940
|
+
?disabled=${n}
|
|
3941
|
+
@click=${() => this._handleAssistantMessageActionClick(e, t)}
|
|
3942
|
+
>
|
|
3943
|
+
<luzmo-icon slot="icon" .icon=${r} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
3944
|
+
<luzmo-tooltip
|
|
3945
|
+
self-managed
|
|
3946
|
+
placement="top"
|
|
3947
|
+
size=${this._oneSizeSmaller}
|
|
3948
|
+
>
|
|
3949
|
+
${t.label}
|
|
3950
|
+
</luzmo-tooltip>
|
|
3951
|
+
</luzmo-action-button>
|
|
3952
|
+
` : m`
|
|
3953
|
+
<luzmo-button
|
|
3954
|
+
class="assistant-message-action"
|
|
3955
|
+
.size=${this._oneSizeSmaller}
|
|
3956
|
+
variant="neutral"
|
|
3957
|
+
treatment="outline"
|
|
3958
|
+
?disabled=${n}
|
|
3959
|
+
@click=${() => this._handleAssistantMessageActionClick(e, t)}
|
|
3960
|
+
>
|
|
3961
|
+
${t.label}
|
|
3962
|
+
</luzmo-button>
|
|
3963
|
+
`;
|
|
3964
|
+
}
|
|
3965
|
+
_renderAssistantMessageActionConfirm(e) {
|
|
3966
|
+
let t = this._getPendingAssistantMessageAction(e);
|
|
3967
|
+
if (!t) return h;
|
|
3968
|
+
let n = t.confirmMessage ?? this._getDefaultAssistantMessageActionConfirmMessage(), r = this.disabled || t.disabled || !e.id;
|
|
3969
|
+
return m`
|
|
3970
|
+
<span class="assistant-message-action-confirm-message" role="status" aria-live="polite">${n}</span>
|
|
3971
|
+
<div class="assistant-message-action-confirm-controls">
|
|
3972
|
+
<luzmo-button
|
|
3973
|
+
class="assistant-message-action-confirm-cancel"
|
|
3974
|
+
.size=${this._oneSizeSmaller}
|
|
3975
|
+
variant="neutral"
|
|
3976
|
+
treatment="outline"
|
|
3977
|
+
?disabled=${this.disabled}
|
|
3978
|
+
@click=${this._cancelAssistantMessageActionConfirm}
|
|
3979
|
+
>
|
|
3980
|
+
${c("Cancel", { desc: "Cancel assistant message action confirmation" })}
|
|
3981
|
+
</luzmo-button>
|
|
3982
|
+
<luzmo-button
|
|
3983
|
+
class="assistant-message-action-confirm-confirm"
|
|
3984
|
+
.size=${this._oneSizeSmaller}
|
|
3985
|
+
variant=${t.confirmVariant ?? "negative"}
|
|
3986
|
+
?disabled=${r}
|
|
3987
|
+
@click=${() => this._confirmAssistantMessageAction(e, t)}
|
|
3988
|
+
>
|
|
3989
|
+
${t.label}
|
|
3990
|
+
</luzmo-button>
|
|
3991
|
+
</div>
|
|
3992
|
+
`;
|
|
3993
|
+
}
|
|
3994
|
+
_renderAssistantMessageActions(e, n) {
|
|
3995
|
+
let r = e.actions ?? [], i = r.length > 0, a = this._isLatestAssistantMessage(e, n), o = this._isAssistantMessageActionConfirming(e);
|
|
3996
|
+
return !i && !a ? h : m`
|
|
3997
|
+
<div
|
|
3998
|
+
class="assistant-message-actions ${this._assistantMessageActionsFooterHasContent(e, a) ? "assistant-message-actions--has-content" : ""} ${o ? "assistant-message-actions--confirming" : ""}"
|
|
3999
|
+
@keydown=${o ? this._handleAssistantMessageActionConfirmKeydown : h}
|
|
4000
|
+
>
|
|
4001
|
+
${o ? this._renderAssistantMessageActionConfirm(e) : m`
|
|
4002
|
+
${r.map((t) => this._renderBuiltInAssistantMessageAction(e, t))}
|
|
4003
|
+
${a ? m`
|
|
4004
|
+
<slot
|
|
4005
|
+
name=${t.assistantMessageActionsSlot}
|
|
4006
|
+
@slotchange=${this._handleAssistantMessageActionsSlotChange}
|
|
4007
|
+
></slot>
|
|
4008
|
+
` : h}
|
|
4009
|
+
`}
|
|
4010
|
+
</div>
|
|
4011
|
+
`;
|
|
4012
|
+
}
|
|
4013
|
+
_renderAssistantMessageFooter(e, t, n) {
|
|
4014
|
+
let r = this._renderAssistantMessageFeedback(e, t), i = this._renderAssistantMessageActions(e, n);
|
|
4015
|
+
if (r === h && i === h) return h;
|
|
4016
|
+
let a = r !== h || this._assistantMessageActionsFooterHasContent(e, this._isLatestAssistantMessage(e, n));
|
|
4017
|
+
return m`
|
|
4018
|
+
<div class="assistant-message-footer ${a ? "assistant-message-footer--has-content" : ""}">${r} ${i}</div>
|
|
4019
|
+
`;
|
|
4020
|
+
}
|
|
4021
|
+
_handleAssistantMessageFeedback(e, t) {
|
|
4022
|
+
let n = e.id;
|
|
4023
|
+
if (!n || this.disabled) return;
|
|
4024
|
+
let r = this._session.requireSession(), i = Bn(r.state.messages.find((e) => e.id === n)?.feedback, t);
|
|
4025
|
+
if (!r.setMessageFeedback(n, i)) return;
|
|
4026
|
+
let a = r.state.messages.find((e) => e.id === n);
|
|
4027
|
+
this.dispatchEvent(new CustomEvent("luzmo-assistant-message-feedback", {
|
|
4028
|
+
detail: {
|
|
4029
|
+
messageId: n,
|
|
4030
|
+
rating: i,
|
|
4031
|
+
message: a
|
|
4032
|
+
},
|
|
4033
|
+
bubbles: !0,
|
|
4034
|
+
composed: !0
|
|
4035
|
+
}));
|
|
4036
|
+
}
|
|
4037
|
+
_renderAssistantMessageFeedback(e, t) {
|
|
4038
|
+
return !this.showAssistantMessageFeedback || e.hideFeedback ? h : Wn({
|
|
4039
|
+
labelId: `assistant-message-feedback-label-${t}`,
|
|
4040
|
+
rating: e.feedback ?? 0,
|
|
4041
|
+
size: this._oneSizeSmaller,
|
|
4042
|
+
disabled: this.disabled || !e.id,
|
|
4043
|
+
onRate: (t) => this._handleAssistantMessageFeedback(e, t)
|
|
4044
|
+
});
|
|
4045
|
+
}
|
|
4046
|
+
_renderRestoreMenu(e, t, n, r = !1) {
|
|
4047
|
+
if (!(this._getAgentConfig().type === "item" && this.showAssistantContextMenu && e.hasChart && e.apiMessageId && !e.isError && e.id !== n)) return h;
|
|
4048
|
+
let i = `context-menu-trigger-${e.apiMessageId}`;
|
|
4049
|
+
return m`
|
|
4050
|
+
<div class="assistant-context-menu">
|
|
4051
|
+
<button
|
|
4052
|
+
id=${i}
|
|
4053
|
+
class="assistant-context-menu-trigger"
|
|
4054
|
+
type="button"
|
|
4055
|
+
aria-label=${c("Open restore menu", { desc: "Accessible label for the ai chat restore menu trigger" })}
|
|
4056
|
+
aria-haspopup="menu"
|
|
4057
|
+
?disabled=${r}
|
|
4058
|
+
>
|
|
4059
|
+
${d(u)}
|
|
4060
|
+
</button>
|
|
4061
|
+
<luzmo-overlay
|
|
4062
|
+
trigger="${i}@click"
|
|
4063
|
+
placement="bottom-end"
|
|
4064
|
+
>
|
|
4065
|
+
<luzmo-popover>
|
|
4066
|
+
<button
|
|
4067
|
+
class="assistant-context-menu-item"
|
|
4068
|
+
type="button"
|
|
4069
|
+
?disabled=${r}
|
|
4070
|
+
@click=${() => this._handleRestoreState(e, t)}
|
|
4071
|
+
>
|
|
4072
|
+
${c("Restore state", { desc: "Context menu action that restores the chart to this message state" })}
|
|
4073
|
+
</button>
|
|
4074
|
+
</luzmo-popover>
|
|
4075
|
+
</luzmo-overlay>
|
|
4076
|
+
</div>
|
|
4077
|
+
`;
|
|
4078
|
+
}
|
|
4079
|
+
_renderMessages() {
|
|
4080
|
+
let { messages: e, inflightMessage: t, isGenerating: n } = this._getRenderState(), r = t !== null, i = e.filter((e) => !t || e.id !== t.id), a = [...i].reverse().find((e) => e.type === "ai"), o = a?.id;
|
|
4081
|
+
return i.map((t) => {
|
|
4082
|
+
let s = t.progress?.children?.length ? m`
|
|
4083
|
+
<luzmo-progress-steps
|
|
4084
|
+
.progress=${t.progress}
|
|
4085
|
+
collapsed
|
|
4086
|
+
no-animate
|
|
4087
|
+
.size=${this.size}
|
|
4088
|
+
></luzmo-progress-steps>
|
|
4089
|
+
` : h;
|
|
4090
|
+
if (t.type === "user") {
|
|
4091
|
+
let e = t.attachmentUrls ?? [];
|
|
4092
|
+
return m`
|
|
4093
|
+
<luzmo-chat-message
|
|
4094
|
+
avatar-placement="bottom"
|
|
4095
|
+
position="right"
|
|
4096
|
+
variant="primary"
|
|
4097
|
+
.size=${this.size}
|
|
4098
|
+
>
|
|
4099
|
+
<div class="user-message-content">
|
|
4100
|
+
${e.length > 0 ? m`
|
|
4101
|
+
<div class="user-message-attachments">
|
|
4102
|
+
${e.map((e) => m`
|
|
4103
|
+
<img
|
|
4104
|
+
class="user-message-attachment"
|
|
4105
|
+
src=${e}
|
|
4106
|
+
alt=${c("Attached image", { desc: "Accessible label for an image attached to a user chat message" })}
|
|
4107
|
+
width="64"
|
|
4108
|
+
height="64"
|
|
4109
|
+
/>
|
|
4110
|
+
`)}
|
|
4111
|
+
</div>
|
|
4112
|
+
` : h}
|
|
4113
|
+
<div class="user-message-text">${t.message}</div>
|
|
4114
|
+
</div>
|
|
4115
|
+
</luzmo-chat-message>
|
|
4116
|
+
`;
|
|
4117
|
+
}
|
|
4118
|
+
let l = e.indexOf(t), u = t.isError ? "error" : t.isCancelled ? "cancelled" : "", d = !!t.elicitation && (!t.message.trim() || t.message.trim() === t.elicitation?.question), f = t.isCancelled ? t.message : d ? h : m`<div class="markdown-content">${_(this._renderMarkdown(t.message))}</div>`;
|
|
4119
|
+
return m`
|
|
4120
|
+
${s}
|
|
4121
|
+
<div class="assistant-message-wrapper">
|
|
4122
|
+
<div class="assistant-message-body">
|
|
4123
|
+
<luzmo-chat-message
|
|
4124
|
+
class=${u}
|
|
4125
|
+
role=${t.isError ? "alert" : h}
|
|
4126
|
+
avatar-placement="bottom"
|
|
4127
|
+
position="left"
|
|
4128
|
+
quiet
|
|
4129
|
+
.size=${this.size}
|
|
4130
|
+
>
|
|
4131
|
+
${f}
|
|
4132
|
+
${Qn({
|
|
4133
|
+
message: t,
|
|
4134
|
+
size: this.size,
|
|
4135
|
+
state: t.elicitation?.answer ? "answered" : t.id && t === i.at(-1) && !n && !this.disabled ? "open" : "closed",
|
|
4136
|
+
onSubmit: (e) => this._handleElicitationSubmit(t, e)
|
|
4137
|
+
})}
|
|
4138
|
+
${this._renderAssistantMessageFooter(t, l, a)}
|
|
4139
|
+
</luzmo-chat-message>
|
|
4140
|
+
|
|
4141
|
+
${this._renderRestoreMenu(t, l, o, r)}
|
|
4142
|
+
</div>
|
|
4143
|
+
</div>
|
|
4144
|
+
`;
|
|
4145
|
+
});
|
|
4146
|
+
}
|
|
4147
|
+
async _handleElicitationSubmit(e, t) {
|
|
4148
|
+
t.stopPropagation();
|
|
4149
|
+
let n = t.currentTarget, r = n.parentElement, i = Xn(t.detail), a = !1;
|
|
4150
|
+
if (e.id && i) try {
|
|
4151
|
+
let t = this._session.requireSession().answerElicitation(e.id, i, { agentId: this._pickedAgentId });
|
|
4152
|
+
await this.updateComplete;
|
|
4153
|
+
let n = r?.querySelector("luzmo-question-box[readonly]");
|
|
4154
|
+
await n?.updateComplete, n?.focus(), a = await t;
|
|
4155
|
+
} catch (e) {
|
|
4156
|
+
e.name !== "AbortError" && console.error("AI prompt session error:", e);
|
|
4157
|
+
}
|
|
4158
|
+
a || (n.reset(), await n.updateComplete, n.focus());
|
|
4159
|
+
}
|
|
4160
|
+
_renderStreamingResponse() {
|
|
4161
|
+
let { inflightMessage: e } = this._getRenderState();
|
|
4162
|
+
return e?.message ? m`
|
|
4163
|
+
<luzmo-chat-message
|
|
4164
|
+
avatar-placement="bottom"
|
|
4165
|
+
position="left"
|
|
4166
|
+
quiet
|
|
4167
|
+
.size=${this.size}
|
|
4168
|
+
>
|
|
4169
|
+
<div class="markdown-content">${_(this._renderMarkdown(e.message))}</div>
|
|
4170
|
+
</luzmo-chat-message>
|
|
4171
|
+
` : h;
|
|
4172
|
+
}
|
|
4173
|
+
_renderLoadingMessage() {
|
|
4174
|
+
let { isGenerating: e, progress: t, inflightMessage: n } = this._getRenderState();
|
|
4175
|
+
if (!e || t?.children?.length || n?.message) return h;
|
|
4176
|
+
let r = this._getAgentConfig(), i = zn(r), a = r.type === "dashboard" ? !i.dashboard : i.chart?.type === "placeholder", o = r.type === "dashboard" ? a ? c("Creating dashboard...", { desc: "Label for ai chat creating dashboard message" }) : c("Updating dashboard...", { desc: "Label for ai chat updating dashboard message" }) : a ? c("Creating item...", { desc: "Label for ai chat creating item message" }) : c("Updating item...", { desc: "Label for ai chat updating item message" });
|
|
4177
|
+
return m`
|
|
4178
|
+
<luzmo-chat-message
|
|
4179
|
+
avatar-placement="bottom"
|
|
4180
|
+
position="left"
|
|
4181
|
+
quiet
|
|
4182
|
+
.size=${this.size}
|
|
4183
|
+
>
|
|
4184
|
+
<div class="loading-message" role="status" aria-live="polite">
|
|
4185
|
+
<span class="icon-lg">${d(f, { className: "spin" })}</span>
|
|
4186
|
+
<span class="loading-message-text">${this.loadingMessage || o}</span>
|
|
4187
|
+
</div>
|
|
4188
|
+
</luzmo-chat-message>
|
|
4189
|
+
`;
|
|
4190
|
+
}
|
|
4191
|
+
_renderEmptyState() {
|
|
4192
|
+
if (this._getRenderState().messages.length > 0) return h;
|
|
4193
|
+
let e = c("What can I help you with?", { desc: "Title for the AI chat empty state" }), t = this.emptyStateSuggestions.length > 0;
|
|
4194
|
+
return m`
|
|
4195
|
+
<luzmo-ai-chat-empty-state
|
|
4196
|
+
.title=${this.emptyStateTitle || e}
|
|
4197
|
+
.subtitle=${t ? this.emptyStateSubtitle : ""}
|
|
4198
|
+
.suggestions=${this.emptyStateSuggestions}
|
|
4199
|
+
.size=${this.size}
|
|
4200
|
+
?disabled=${this.disabled || this._getRenderState().isGenerating}
|
|
4201
|
+
@luzmo-suggestion-selected=${this._handleEmptyStateSuggestionSelected}
|
|
4202
|
+
></luzmo-ai-chat-empty-state>
|
|
4203
|
+
`;
|
|
4204
|
+
}
|
|
4205
|
+
render() {
|
|
4206
|
+
let { selectedDatasets: e, isGenerating: t } = this._getRenderState();
|
|
4207
|
+
return m`
|
|
4208
|
+
<div class="chat-container" role="region" aria-label=${c("AI Chat", { desc: "Accessible label for AI chat region" })}>
|
|
4209
|
+
<div class="chat-messages-container" role="log" aria-live="polite">
|
|
4210
|
+
${this._renderEmptyState()}
|
|
4211
|
+
${this._renderMessages()}
|
|
4212
|
+
${this._renderProgress()}
|
|
4213
|
+
${this._renderStreamingResponse()}
|
|
4214
|
+
${this._renderLoadingMessage()}
|
|
4215
|
+
</div>
|
|
4216
|
+
|
|
4217
|
+
<luzmo-ai-interaction-textarea
|
|
4218
|
+
role="group"
|
|
4219
|
+
aria-label=${c("AI prompt input", { desc: "Accessible label for the ai chat prompt input area" })}
|
|
4220
|
+
.size=${this.size}
|
|
4221
|
+
.value=${this._textareaValue}
|
|
4222
|
+
.selectedDatasets=${e}
|
|
4223
|
+
.placeholder=${this.placeholder}
|
|
4224
|
+
?disabled=${this.disabled}
|
|
4225
|
+
?is-generating=${t}
|
|
4226
|
+
?stoppable=${this.stoppable}
|
|
4227
|
+
?hide-dataset-button=${this.hideDatasetButton}
|
|
4228
|
+
?hide-dataset-icons=${this.hideDatasetIcons}
|
|
4229
|
+
?disable-dataset-modification=${this.disableDatasetModification}
|
|
4230
|
+
?hide-selected-datasets=${this.hideSelectedDatasets}
|
|
4231
|
+
?hide-agents=${this.hideAgents}
|
|
4232
|
+
?disable-column-mentions=${this.disableColumnMentions}
|
|
4233
|
+
?require-dataset=${this.requireDataset}
|
|
4234
|
+
?allow-images=${this.allowImages}
|
|
4235
|
+
?allow-voice-input=${this.allowVoiceInput}
|
|
4236
|
+
.acceptedFileTypes=${this._resolvedAcceptedFileTypes}
|
|
4237
|
+
.uploadAttachments=${this.uploadAttachments}
|
|
4238
|
+
auth-key=${this.authKey}
|
|
4239
|
+
auth-token=${this.authToken}
|
|
4240
|
+
api-url=${this.apiUrl}
|
|
4241
|
+
api-version=${this.apiVersion}
|
|
4242
|
+
app-server=${this.appServer}
|
|
4243
|
+
?include-public-datasets=${this.includePublicDatasets}
|
|
4244
|
+
@prompt-submitted=${this._handlePromptSubmitted}
|
|
4245
|
+
@prompt-stopped=${this._handlePromptStopped}
|
|
4246
|
+
@dataset-selected=${this._handleDatasetSelected}
|
|
4247
|
+
@dataset-removed=${this._handleDatasetRemoved}
|
|
4248
|
+
@luzmo-agent-selected=${this._handleAgentSelected}
|
|
4249
|
+
></luzmo-ai-interaction-textarea>
|
|
4250
|
+
</div>
|
|
4251
|
+
`;
|
|
4252
|
+
}
|
|
4253
|
+
};
|
|
4254
|
+
Ti = $, Ti.styles = te(Rn), Ti.tagName = "luzmo-ai-chat", Ti.assistantMessageActionsSlot = "assistant-message-actions", o([g({ type: Array })], $.prototype, "messages", void 0), o([g({
|
|
4255
|
+
type: Array,
|
|
4256
|
+
attribute: "selected-datasets"
|
|
4257
|
+
})], $.prototype, "selectedDatasets", void 0), o([g({ type: String })], $.prototype, "placeholder", void 0), o([g({
|
|
4258
|
+
type: Boolean,
|
|
4259
|
+
reflect: !0
|
|
4260
|
+
})], $.prototype, "disabled", void 0), o([g({
|
|
4261
|
+
type: Boolean,
|
|
4262
|
+
reflect: !0
|
|
4263
|
+
})], $.prototype, "stoppable", void 0), o([g({
|
|
4264
|
+
type: Boolean,
|
|
4265
|
+
attribute: "show-assistant-context-menu"
|
|
4266
|
+
})], $.prototype, "showAssistantContextMenu", void 0), o([g({
|
|
4267
|
+
type: Boolean,
|
|
4268
|
+
reflect: !0,
|
|
4269
|
+
attribute: "show-assistant-message-feedback"
|
|
4270
|
+
})], $.prototype, "showAssistantMessageFeedback", void 0), o([g({
|
|
4271
|
+
type: String,
|
|
4272
|
+
attribute: "auth-key"
|
|
4273
|
+
})], $.prototype, "authKey", void 0), o([g({
|
|
4274
|
+
type: String,
|
|
4275
|
+
attribute: "auth-token"
|
|
4276
|
+
})], $.prototype, "authToken", void 0), o([g({
|
|
4277
|
+
type: String,
|
|
4278
|
+
attribute: "api-url"
|
|
4279
|
+
})], $.prototype, "apiUrl", void 0), o([g({
|
|
4280
|
+
type: String,
|
|
4281
|
+
attribute: "app-server"
|
|
4282
|
+
})], $.prototype, "appServer", void 0), o([g({
|
|
4283
|
+
type: Boolean,
|
|
4284
|
+
reflect: !0,
|
|
4285
|
+
attribute: "include-public-datasets"
|
|
4286
|
+
})], $.prototype, "includePublicDatasets", void 0), o([g({
|
|
4287
|
+
type: Boolean,
|
|
4288
|
+
attribute: "flag-opendata"
|
|
4289
|
+
})], $.prototype, "flagOpendata", null), o([g({
|
|
4290
|
+
type: Boolean,
|
|
4291
|
+
attribute: "hide-dataset-button"
|
|
4292
|
+
})], $.prototype, "hideDatasetButton", void 0), o([g({
|
|
4293
|
+
type: Boolean,
|
|
4294
|
+
attribute: "hide-dataset-icons"
|
|
4295
|
+
})], $.prototype, "hideDatasetIcons", void 0), o([g({
|
|
4296
|
+
type: Boolean,
|
|
4297
|
+
attribute: "disable-dataset-modification"
|
|
4298
|
+
})], $.prototype, "disableDatasetModification", void 0), o([g({
|
|
4299
|
+
type: Boolean,
|
|
4300
|
+
attribute: "hide-selected-datasets"
|
|
4301
|
+
})], $.prototype, "hideSelectedDatasets", void 0), o([g({
|
|
4302
|
+
type: Boolean,
|
|
4303
|
+
reflect: !0,
|
|
4304
|
+
attribute: "hide-agents"
|
|
4305
|
+
})], $.prototype, "hideAgents", void 0), o([g({
|
|
4306
|
+
type: Boolean,
|
|
4307
|
+
attribute: "disable-column-mentions"
|
|
4308
|
+
})], $.prototype, "disableColumnMentions", void 0), o([g({
|
|
4309
|
+
type: Boolean,
|
|
4310
|
+
attribute: "require-dataset"
|
|
4311
|
+
})], $.prototype, "requireDataset", void 0), o([g({
|
|
4312
|
+
type: Boolean,
|
|
4313
|
+
reflect: !0,
|
|
4314
|
+
attribute: "allow-images"
|
|
4315
|
+
})], $.prototype, "allowImages", void 0), o([g({
|
|
4316
|
+
type: Boolean,
|
|
4317
|
+
reflect: !0,
|
|
4318
|
+
attribute: "allow-voice-input"
|
|
4319
|
+
})], $.prototype, "allowVoiceInput", void 0), o([g({
|
|
4320
|
+
type: Array,
|
|
4321
|
+
attribute: "accepted-file-types"
|
|
4322
|
+
})], $.prototype, "acceptedFileTypes", void 0), o([g({ attribute: !1 })], $.prototype, "uploadAttachments", void 0), o([g({ type: String })], $.prototype, "agent", void 0), o([g({ attribute: !1 })], $.prototype, "agentConfig", void 0), o([g({
|
|
4323
|
+
type: String,
|
|
4324
|
+
attribute: "agent-id"
|
|
4325
|
+
})], $.prototype, "agentId", void 0), o([g({ type: String })], $.prototype, "task", void 0), o([g({
|
|
4326
|
+
type: String,
|
|
4327
|
+
attribute: "model-preference"
|
|
4328
|
+
})], $.prototype, "modelPreference", void 0), o([g({ attribute: !1 })], $.prototype, "chatSession", void 0), o([g({
|
|
4329
|
+
type: String,
|
|
4330
|
+
attribute: "conversation-id"
|
|
4331
|
+
})], $.prototype, "conversationId", void 0), o([g({
|
|
4332
|
+
type: Object,
|
|
4333
|
+
attribute: "chart"
|
|
4334
|
+
})], $.prototype, "chart", void 0), o([g({ type: Object })], $.prototype, "dashboard", void 0), o([g({ attribute: !1 })], $.prototype, "customItem", void 0), o([g({
|
|
4335
|
+
type: String,
|
|
4336
|
+
attribute: "current-screen-mode"
|
|
4337
|
+
})], $.prototype, "currentScreenMode", void 0), o([g({
|
|
4338
|
+
type: String,
|
|
4339
|
+
attribute: "locale-id"
|
|
4340
|
+
})], $.prototype, "localeId", void 0), o([g({
|
|
4341
|
+
type: String,
|
|
4342
|
+
attribute: "timezone-id"
|
|
4343
|
+
})], $.prototype, "timezoneId", void 0), o([g({
|
|
4344
|
+
type: String,
|
|
4345
|
+
attribute: "api-version"
|
|
4346
|
+
})], $.prototype, "apiVersion", void 0), o([g({ converter: { fromAttribute: (e) => e !== "false" && e !== null } })], $.prototype, "stream", void 0), o([g({
|
|
4347
|
+
type: String,
|
|
4348
|
+
attribute: "loading-message"
|
|
4349
|
+
})], $.prototype, "loadingMessage", void 0), o([g({
|
|
4350
|
+
type: String,
|
|
4351
|
+
attribute: "cancelled-message"
|
|
4352
|
+
})], $.prototype, "cancelledMessage", void 0), o([g({
|
|
4353
|
+
type: String,
|
|
4354
|
+
attribute: "initial-prompt"
|
|
4355
|
+
})], $.prototype, "initialPrompt", void 0), o([g({
|
|
4356
|
+
type: String,
|
|
4357
|
+
attribute: "empty-state-title"
|
|
4358
|
+
})], $.prototype, "emptyStateTitle", void 0), o([g({
|
|
4359
|
+
type: String,
|
|
4360
|
+
attribute: "empty-state-subtitle"
|
|
4361
|
+
})], $.prototype, "emptyStateSubtitle", void 0), o([g({
|
|
4362
|
+
type: Array,
|
|
4363
|
+
attribute: !1
|
|
4364
|
+
})], $.prototype, "emptyStateSuggestions", void 0), o([ne()], $.prototype, "_textareaValue", void 0), o([ne()], $.prototype, "_assistantMessageActionsSlotHasContent", void 0), o([ne()], $.prototype, "_pendingAssistantMessageAction", void 0);
|
|
4365
|
+
// src/components/ai-chat/ai-chat-events.ts
|
|
4366
|
+
function Ei(e) {
|
|
4367
|
+
return e.recognized === !0;
|
|
4368
|
+
}
|
|
4369
|
+
// src/components/ai-chat/index.ts
|
|
4370
|
+
customElements.get("luzmo-ai-chat") || customElements.define("luzmo-ai-chat", $);
|
|
4371
|
+
export { ir as C, qn as D, $n as E, ar as S, er as T, dr as _, Ci as a, or as b, vi as c, kr as d, gr as f, hr as g, pr as h, Si as i, _i as l, fr as m, $ as n, bi as o, _r as p, wi as r, yi as s, Ei as t, Tr as u, lr as v, cr as w, sr as x, ur as y };
|