@sankhyalabs/ezui 7.1.8 → 7.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ApplicationUtils-5cc05979.js.gz +0 -0
- package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
- package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
- package/dist/cjs/DialogType-2114c337.js.gz +0 -0
- package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
- package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
- package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
- package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
- package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
- package/dist/cjs/app-globals-2fbe4b17.js.gz +0 -0
- package/dist/cjs/constants-72b7e05e.js.gz +0 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-card-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box-list_4.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +5 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-grid.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
- package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
- package/dist/cjs/ezui.cjs.js.gz +0 -0
- package/dist/cjs/filter-column.cjs.entry.js +6 -1
- package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
- package/dist/cjs/floating-ui.dom.esm-f4d87617.js.gz +0 -0
- package/dist/cjs/index-1be40f19.js.gz +0 -0
- package/dist/cjs/index-a7b0c73d.js.gz +0 -0
- package/dist/cjs/index.cjs.js.gz +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/{purify-29cc6f77.js → purify-db11ac44.js} +856 -228
- package/dist/cjs/purify-db11ac44.js.gz +0 -0
- package/dist/cjs/search-column-316e2c59.js.gz +0 -0
- package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
- package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
- package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
- package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
- package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
- package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
- package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
- package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
- package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
- package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
- package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
- package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
- package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
- package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
- package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
- package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
- package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
- package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
- package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
- package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
- package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
- package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
- package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
- package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
- package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
- package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
- package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
- package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
- package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
- package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
- package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
- package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
- package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
- package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
- package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
- package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
- package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
- package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
- package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
- package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
- package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
- package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
- package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
- package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
- package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
- package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
- package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
- package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
- package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
- package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
- package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
- package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
- package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
- package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
- package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
- package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
- package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
- package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +6 -1
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
- package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
- package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
- package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
- package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
- package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
- package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
- package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
- package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
- package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
- package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
- package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
- package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
- package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
- package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
- package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
- package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
- package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
- package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
- package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
- package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
- package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
- package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
- package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
- package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
- package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
- package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
- package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
- package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
- package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
- package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
- package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
- package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
- package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
- package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
- package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
- package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
- package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
- package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
- package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
- package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
- package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
- package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
- package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
- package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
- package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
- package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
- package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
- package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
- package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
- package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
- package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
- package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
- package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
- package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
- package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
- package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
- package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
- package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
- package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
- package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
- package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
- package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
- package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
- package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
- package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
- package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
- package/dist/collection/global/app-init.js.gz +0 -0
- package/dist/collection/index.js.gz +0 -0
- package/dist/collection/servidor.js.gz +0 -0
- package/dist/collection/setupTests.js.gz +0 -0
- package/dist/collection/sw.js.gz +0 -0
- package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
- package/dist/collection/utils/AssetsUtils.js.gz +0 -0
- package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
- package/dist/collection/utils/FocusResolver.js.gz +0 -0
- package/dist/collection/utils/ag-grid-license.js.gz +0 -0
- package/dist/collection/utils/constants.js.gz +0 -0
- package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
- package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
- package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
- package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
- package/dist/collection/utils/form/DataBinder.js.gz +0 -0
- package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
- package/dist/collection/utils/form/index.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
- package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
- package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
- package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
- package/dist/collection/utils/i18n/index.js.gz +0 -0
- package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
- package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
- package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
- package/dist/collection/utils/i18n/translations.js.gz +0 -0
- package/dist/collection/utils/index.js.gz +0 -0
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
- package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
- package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
- package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
- package/dist/collection/utils/search/types.js.gz +0 -0
- package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
- package/dist/collection/utils/utils.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
- package/dist/custom-elements/index.js +867 -229
- package/dist/custom-elements/index.js.gz +0 -0
- package/dist/esm/ApplicationUtils-1569f757.js.gz +0 -0
- package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
- package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
- package/dist/esm/DialogType-54a62731.js.gz +0 -0
- package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
- package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
- package/dist/esm/FormLayout-071d324c.js.gz +0 -0
- package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
- package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
- package/dist/esm/app-globals-c0ac93c0.js.gz +0 -0
- package/dist/esm/constants-3fabe81e.js.gz +0 -0
- package/dist/esm/ez-actions-button.entry.js.gz +0 -0
- package/dist/esm/ez-alert-list.entry.js.gz +0 -0
- package/dist/esm/ez-alert.entry.js.gz +0 -0
- package/dist/esm/ez-application.entry.js.gz +0 -0
- package/dist/esm/ez-avatar.entry.js.gz +0 -0
- package/dist/esm/ez-badge.entry.js.gz +0 -0
- package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
- package/dist/esm/ez-button.entry.js.gz +0 -0
- package/dist/esm/ez-calendar.entry.js.gz +0 -0
- package/dist/esm/ez-card-item.entry.js.gz +0 -0
- package/dist/esm/ez-chart.entry.js.gz +0 -0
- package/dist/esm/ez-check.entry.js.gz +0 -0
- package/dist/esm/ez-chip.entry.js.gz +0 -0
- package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
- package/dist/esm/ez-classic-input.entry.js.gz +0 -0
- package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
- package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
- package/dist/esm/ez-combo-box-list_4.entry.js +1 -1
- package/dist/esm/ez-combo-box-list_4.entry.js.gz +0 -0
- package/dist/esm/ez-combo-box.entry.js +5 -0
- package/dist/esm/ez-combo-box.entry.js.gz +0 -0
- package/dist/esm/ez-date-input.entry.js.gz +0 -0
- package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
- package/dist/esm/ez-dialog.entry.js.gz +0 -0
- package/dist/esm/ez-double-list.entry.js.gz +0 -0
- package/dist/esm/ez-dropdown.entry.js.gz +0 -0
- package/dist/esm/ez-empty-card.entry.js.gz +0 -0
- package/dist/esm/ez-file-item.entry.js.gz +0 -0
- package/dist/esm/ez-filter-input.entry.js.gz +0 -0
- package/dist/esm/ez-form-view.entry.js.gz +0 -0
- package/dist/esm/ez-form.entry.js.gz +0 -0
- package/dist/esm/ez-grid-view.entry.js.gz +0 -0
- package/dist/esm/ez-grid.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js.gz +0 -0
- package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
- package/dist/esm/ez-icon.entry.js.gz +0 -0
- package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
- package/dist/esm/ez-list-item.entry.js.gz +0 -0
- package/dist/esm/ez-list.entry.js.gz +0 -0
- package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
- package/dist/esm/ez-modal-container.entry.js.gz +0 -0
- package/dist/esm/ez-modal.entry.js.gz +0 -0
- package/dist/esm/ez-multi-selection-list.entry.js.gz +0 -0
- package/dist/esm/ez-number-input.entry.js.gz +0 -0
- package/dist/esm/ez-pagination.entry.js.gz +0 -0
- package/dist/esm/ez-popover-core.entry.js.gz +0 -0
- package/dist/esm/ez-popover-plus_3.entry.js.gz +0 -0
- package/dist/esm/ez-popover.entry.js.gz +0 -0
- package/dist/esm/ez-popup.entry.js.gz +0 -0
- package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
- package/dist/esm/ez-radio-button.entry.js.gz +0 -0
- package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
- package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
- package/dist/esm/ez-search-plus.entry.js.gz +0 -0
- package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
- package/dist/esm/ez-search.entry.js.gz +0 -0
- package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
- package/dist/esm/ez-skeleton.entry.js.gz +0 -0
- package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
- package/dist/esm/ez-spinner.entry.js.gz +0 -0
- package/dist/esm/ez-split-button.entry.js.gz +0 -0
- package/dist/esm/ez-split-item.entry.js.gz +0 -0
- package/dist/esm/ez-split-panel.entry.js.gz +0 -0
- package/dist/esm/ez-tabselector.entry.js.gz +0 -0
- package/dist/esm/ez-tag-input.entry.js.gz +0 -0
- package/dist/esm/ez-tag.entry.js.gz +0 -0
- package/dist/esm/ez-text-area.entry.js.gz +0 -0
- package/dist/esm/ez-text-input.entry.js.gz +0 -0
- package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
- package/dist/esm/ez-tile.entry.js.gz +0 -0
- package/dist/esm/ez-time-input.entry.js.gz +0 -0
- package/dist/esm/ez-toast.entry.js.gz +0 -0
- package/dist/esm/ez-tooltip.entry.js.gz +0 -0
- package/dist/esm/ez-tree.entry.js.gz +0 -0
- package/dist/esm/ez-underface.entry.js.gz +0 -0
- package/dist/esm/ez-upload.entry.js.gz +0 -0
- package/dist/esm/ez-view-stack.entry.js.gz +0 -0
- package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
- package/dist/esm/ezui.js.gz +0 -0
- package/dist/esm/filter-column.entry.js +6 -1
- package/dist/esm/filter-column.entry.js.gz +0 -0
- package/dist/esm/floating-ui.dom.esm-ad30f2f0.js.gz +0 -0
- package/dist/esm/index-41363fa6.js.gz +0 -0
- package/dist/esm/index-baa5e267.js.gz +0 -0
- package/dist/esm/index.js.gz +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/polyfills/core-js.js.gz +0 -0
- package/dist/esm/polyfills/css-shim.js.gz +0 -0
- package/dist/esm/polyfills/dom.js.gz +0 -0
- package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
- package/dist/esm/polyfills/index.js.gz +0 -0
- package/dist/esm/polyfills/system.js.gz +0 -0
- package/dist/esm/{purify-04150ce3.js → purify-d55d1f11.js} +856 -228
- package/dist/esm/purify-d55d1f11.js.gz +0 -0
- package/dist/esm/search-column-c20d2b01.js.gz +0 -0
- package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/ezui.esm.js.gz +0 -0
- package/dist/ezui/index.esm.js.gz +0 -0
- package/dist/ezui/p-02d448bb.entry.js.gz +0 -0
- package/dist/ezui/p-04126429.js.gz +0 -0
- package/dist/ezui/p-05c32903.entry.js.gz +0 -0
- package/dist/ezui/p-0f7971cf.entry.js.gz +0 -0
- package/dist/ezui/p-110cfb7d.entry.js.gz +0 -0
- package/dist/ezui/p-112455b1.js.gz +0 -0
- package/dist/ezui/p-18384b91.entry.js.gz +0 -0
- package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
- package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
- package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
- package/dist/ezui/p-23a36bb6.js.gz +0 -0
- package/dist/ezui/p-2528e988.entry.js.gz +0 -0
- package/dist/ezui/p-288631d1.entry.js.gz +0 -0
- package/dist/ezui/p-2a806303.js.gz +0 -0
- package/dist/ezui/{p-a9e13b05.entry.js → p-2cc07392.entry.js} +1 -1
- package/dist/ezui/p-2cc07392.entry.js.gz +0 -0
- package/dist/ezui/p-30ffb9ed.js.gz +0 -0
- package/dist/ezui/p-34a476a9.entry.js.gz +0 -0
- package/dist/ezui/p-351fb12f.entry.js.gz +0 -0
- package/dist/ezui/p-39761eca.entry.js.gz +0 -0
- package/dist/ezui/p-3afa1c6e.entry.js.gz +0 -0
- package/dist/ezui/p-3ce867cf.entry.js.gz +0 -0
- package/dist/ezui/p-3e767a74.js.gz +0 -0
- package/dist/ezui/p-40a60148.js.gz +0 -0
- package/dist/ezui/p-411c0222.entry.js.gz +0 -0
- package/dist/ezui/p-4314f87a.entry.js.gz +0 -0
- package/dist/ezui/p-48effc69.entry.js.gz +0 -0
- package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
- package/dist/ezui/p-4fe123b6.entry.js.gz +0 -0
- package/dist/ezui/p-5554704c.js.gz +0 -0
- package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
- package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
- package/dist/ezui/p-62a362b4.js +3 -0
- package/dist/ezui/p-62a362b4.js.gz +0 -0
- package/dist/ezui/p-6c51ccd1.entry.js.gz +0 -0
- package/dist/ezui/p-6ca0815e.entry.js.gz +0 -0
- package/dist/ezui/p-6cb82d33.entry.js.gz +0 -0
- package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
- package/dist/ezui/p-6de4cae1.entry.js +1 -0
- package/dist/ezui/p-6de4cae1.entry.js.gz +0 -0
- package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
- package/dist/ezui/p-721fd999.entry.js.gz +0 -0
- package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
- package/dist/ezui/p-7f37ee99.entry.js.gz +0 -0
- package/dist/ezui/p-7f792043.entry.js.gz +0 -0
- package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
- package/dist/ezui/p-80dfc50b.js.gz +0 -0
- package/dist/ezui/p-859e3134.entry.js.gz +0 -0
- package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
- package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
- package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
- package/dist/ezui/p-948f0fb2.entry.js.gz +0 -0
- package/dist/ezui/p-94deb71e.entry.js.gz +0 -0
- package/dist/ezui/p-967ed829.entry.js +1 -0
- package/dist/ezui/p-967ed829.entry.js.gz +0 -0
- package/dist/ezui/p-98bb8b16.js.gz +0 -0
- package/dist/ezui/p-9ab2add9.entry.js.gz +0 -0
- package/dist/ezui/p-9b215871.entry.js.gz +0 -0
- package/dist/ezui/p-9b3f3c02.entry.js.gz +0 -0
- package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
- package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
- package/dist/ezui/p-a278f26e.entry.js.gz +0 -0
- package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
- package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
- package/dist/ezui/p-a4083a7a.entry.js.gz +0 -0
- package/dist/ezui/p-a61fdd20.js.gz +0 -0
- package/dist/ezui/p-a63b20a0.entry.js.gz +0 -0
- package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
- package/dist/ezui/p-ab574d59.js.gz +0 -0
- package/dist/ezui/p-b1e45320.js.gz +0 -0
- package/dist/ezui/p-b3d8034b.entry.js.gz +0 -0
- package/dist/ezui/p-b853763b.js.gz +0 -0
- package/dist/ezui/p-b989a33e.entry.js.gz +0 -0
- package/dist/ezui/p-baec56c9.js.gz +0 -0
- package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
- package/dist/ezui/{p-87a6feba.entry.js → p-c2d1f276.entry.js} +1 -1
- package/dist/ezui/{p-87a6feba.entry.js.gz → p-c2d1f276.entry.js.gz} +0 -0
- package/dist/ezui/p-cde41310.entry.js.gz +0 -0
- package/dist/ezui/p-ce0b36d7.entry.js.gz +0 -0
- package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
- package/dist/ezui/p-d5eb2fad.entry.js.gz +0 -0
- package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
- package/dist/ezui/p-d6bb930d.entry.js.gz +0 -0
- package/dist/ezui/p-d6f50207.entry.js.gz +0 -0
- package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
- package/dist/ezui/p-dc628ed3.js.gz +0 -0
- package/dist/ezui/p-de862af4.entry.js.gz +0 -0
- package/dist/ezui/p-dee18824.entry.js.gz +0 -0
- package/dist/ezui/p-e5de42e7.entry.js.gz +0 -0
- package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
- package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
- package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
- package/dist/ezui/p-ec7db713.js.gz +0 -0
- package/dist/ezui/p-ecd6409d.entry.js.gz +0 -0
- package/dist/ezui/p-ef8bd3e8.entry.js.gz +0 -0
- package/dist/ezui/p-f00c9dc2.entry.js.gz +0 -0
- package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
- package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
- package/dist/index.cjs.js.gz +0 -0
- package/dist/index.js.gz +0 -0
- package/package.json +1 -1
- package/dist/cjs/purify-29cc6f77.js.gz +0 -0
- package/dist/esm/purify-04150ce3.js.gz +0 -0
- package/dist/ezui/p-2b49aa22.entry.js +0 -1
- package/dist/ezui/p-2b49aa22.entry.js.gz +0 -0
- package/dist/ezui/p-30e4a165.js +0 -3
- package/dist/ezui/p-30e4a165.js.gz +0 -0
- package/dist/ezui/p-35bfaa88.entry.js +0 -1
- package/dist/ezui/p-35bfaa88.entry.js.gz +0 -0
- package/dist/ezui/p-a9e13b05.entry.js.gz +0 -0
|
@@ -7927,6 +7927,11 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
7927
7927
|
else {
|
|
7928
7928
|
window.setTimeout(() => {
|
|
7929
7929
|
this.setInputValue(false);
|
|
7930
|
+
if (this._criteria !== undefined) {
|
|
7931
|
+
this._criteria = undefined;
|
|
7932
|
+
this._preSelection = undefined;
|
|
7933
|
+
this.updateVisibleOptions();
|
|
7934
|
+
}
|
|
7930
7935
|
}, this._deboucingTime);
|
|
7931
7936
|
}
|
|
7932
7937
|
}
|
|
@@ -75204,7 +75209,7 @@ var MenuModule = {
|
|
|
75204
75209
|
};
|
|
75205
75210
|
|
|
75206
75211
|
var purify = createCommonjsModule(function (module, exports) {
|
|
75207
|
-
/*! @license DOMPurify 3.4.
|
|
75212
|
+
/*! @license DOMPurify 3.4.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.10/LICENSE */
|
|
75208
75213
|
|
|
75209
75214
|
(function (global, factory) {
|
|
75210
75215
|
module.exports = factory() ;
|
|
@@ -75536,16 +75541,32 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75536
75541
|
);
|
|
75537
75542
|
const DOCTYPE_NAME = seal(/^html$/i);
|
|
75538
75543
|
const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
75544
|
+
// Markup-significant character probes used by _sanitizeElements.
|
|
75545
|
+
// Shared module-level instances are safe despite the sticky /g flags:
|
|
75546
|
+
// unapply() resets lastIndex for RegExp receivers before every call.
|
|
75547
|
+
const ELEMENT_MARKUP_PROBE = seal(/<[/\w!]/g);
|
|
75548
|
+
const COMMENT_MARKUP_PROBE = seal(/<[/\w]/g);
|
|
75549
|
+
const FALLBACK_TAG_CLOSE = seal(/<\/no(script|embed|frames)/i);
|
|
75550
|
+
const SELF_CLOSING_TAG = seal(/\/>/i);
|
|
75539
75551
|
|
|
75540
75552
|
/* eslint-disable @typescript-eslint/indent */
|
|
75541
75553
|
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
|
75542
75554
|
const NODE_TYPE = {
|
|
75543
75555
|
element: 1,
|
|
75556
|
+
attribute: 2,
|
|
75544
75557
|
text: 3,
|
|
75558
|
+
cdataSection: 4,
|
|
75559
|
+
entityReference: 5,
|
|
75560
|
+
// Deprecated
|
|
75561
|
+
entityNode: 6,
|
|
75545
75562
|
// Deprecated
|
|
75546
|
-
|
|
75563
|
+
processingInstruction: 7,
|
|
75547
75564
|
comment: 8,
|
|
75548
|
-
document: 9
|
|
75565
|
+
document: 9,
|
|
75566
|
+
documentType: 10,
|
|
75567
|
+
documentFragment: 11,
|
|
75568
|
+
notation: 12 // Deprecated
|
|
75569
|
+
};
|
|
75549
75570
|
const getGlobal = function getGlobal() {
|
|
75550
75571
|
return typeof window === 'undefined' ? null : window;
|
|
75551
75572
|
};
|
|
@@ -75599,10 +75620,25 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75599
75620
|
uponSanitizeShadowNode: []
|
|
75600
75621
|
};
|
|
75601
75622
|
};
|
|
75623
|
+
/**
|
|
75624
|
+
* Resolve a set-valued configuration option: a fresh set built from
|
|
75625
|
+
* cfg[key] when it is an own array property (seeded with a clone of
|
|
75626
|
+
* options.base when given, case-normalized via options.transform),
|
|
75627
|
+
* the fallback set otherwise.
|
|
75628
|
+
*
|
|
75629
|
+
* @param cfg the cloned, prototype-free configuration object
|
|
75630
|
+
* @param key the configuration property to read
|
|
75631
|
+
* @param fallback the set to use when the option is absent or not an array
|
|
75632
|
+
* @param options transform and optional base set to merge into
|
|
75633
|
+
* @returns the resolved set
|
|
75634
|
+
*/
|
|
75635
|
+
const _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {
|
|
75636
|
+
return objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;
|
|
75637
|
+
};
|
|
75602
75638
|
function createDOMPurify() {
|
|
75603
75639
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
75604
75640
|
const DOMPurify = root => createDOMPurify(root);
|
|
75605
|
-
DOMPurify.version = '3.4.
|
|
75641
|
+
DOMPurify.version = '3.4.10';
|
|
75606
75642
|
DOMPurify.removed = [];
|
|
75607
75643
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
75608
75644
|
// Not running in a browser, provide a factory function
|
|
@@ -75613,15 +75649,11 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75613
75649
|
let document = window.document;
|
|
75614
75650
|
const originalDocument = document;
|
|
75615
75651
|
const currentScript = originalDocument.currentScript;
|
|
75616
|
-
|
|
75617
|
-
HTMLTemplateElement = window.HTMLTemplateElement,
|
|
75652
|
+
const HTMLTemplateElement = window.HTMLTemplateElement,
|
|
75618
75653
|
Node = window.Node,
|
|
75619
75654
|
Element = window.Element,
|
|
75620
|
-
NodeFilter = window.NodeFilter
|
|
75621
|
-
|
|
75622
|
-
NamedNodeMap = _window$NamedNodeMap === void 0 ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,
|
|
75623
|
-
HTMLFormElement = window.HTMLFormElement,
|
|
75624
|
-
DOMParser = window.DOMParser,
|
|
75655
|
+
NodeFilter = window.NodeFilter;
|
|
75656
|
+
const DOMParser = window.DOMParser,
|
|
75625
75657
|
trustedTypes = window.trustedTypes;
|
|
75626
75658
|
const ElementPrototype = Element.prototype;
|
|
75627
75659
|
const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
|
|
@@ -75629,7 +75661,10 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75629
75661
|
const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
|
|
75630
75662
|
const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
|
|
75631
75663
|
const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
|
|
75664
|
+
const getShadowRoot = lookupGetter(ElementPrototype, 'shadowRoot');
|
|
75665
|
+
const getAttributes = lookupGetter(ElementPrototype, 'attributes');
|
|
75632
75666
|
const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, 'nodeType') : null;
|
|
75667
|
+
const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, 'nodeName') : null;
|
|
75633
75668
|
// As per issue #47, the web-components registry is inherited by a
|
|
75634
75669
|
// new document created via createHTMLDocument. As per the spec
|
|
75635
75670
|
// (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
|
|
@@ -75644,6 +75679,54 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75644
75679
|
}
|
|
75645
75680
|
let trustedTypesPolicy;
|
|
75646
75681
|
let emptyHTML = '';
|
|
75682
|
+
// The instance's own internal Trusted Types policy. Unlike a caller-supplied
|
|
75683
|
+
// `TRUSTED_TYPES_POLICY`, this is created at most once — Trusted Types throws
|
|
75684
|
+
// on duplicate policy names — and is the only policy allowed to persist
|
|
75685
|
+
// across configurations and survive `clearConfig()`.
|
|
75686
|
+
let defaultTrustedTypesPolicy;
|
|
75687
|
+
let defaultTrustedTypesPolicyResolved = false;
|
|
75688
|
+
// Tracks whether we are already inside a call to the configured Trusted Types
|
|
75689
|
+
// policy (`createHTML` or `createScriptURL`). If a supplied policy callback
|
|
75690
|
+
// itself calls `DOMPurify.sanitize` (the cause of #1422), `sanitize` would
|
|
75691
|
+
// re-enter the policy and recurse until the stack overflows. We detect that
|
|
75692
|
+
// re-entry and throw a clear, actionable error instead. The guard is shared
|
|
75693
|
+
// across both callbacks, because either one re-entering `sanitize` triggers
|
|
75694
|
+
// the same unbounded recursion.
|
|
75695
|
+
let IN_TRUSTED_TYPES_POLICY = 0;
|
|
75696
|
+
const _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {
|
|
75697
|
+
if (IN_TRUSTED_TYPES_POLICY > 0) {
|
|
75698
|
+
throw typeErrorCreate('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.');
|
|
75699
|
+
}
|
|
75700
|
+
};
|
|
75701
|
+
const _createTrustedHTML = function _createTrustedHTML(html) {
|
|
75702
|
+
_assertNotInTrustedTypesPolicy();
|
|
75703
|
+
IN_TRUSTED_TYPES_POLICY++;
|
|
75704
|
+
try {
|
|
75705
|
+
return trustedTypesPolicy.createHTML(html);
|
|
75706
|
+
} finally {
|
|
75707
|
+
IN_TRUSTED_TYPES_POLICY--;
|
|
75708
|
+
}
|
|
75709
|
+
};
|
|
75710
|
+
const _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {
|
|
75711
|
+
_assertNotInTrustedTypesPolicy();
|
|
75712
|
+
IN_TRUSTED_TYPES_POLICY++;
|
|
75713
|
+
try {
|
|
75714
|
+
return trustedTypesPolicy.createScriptURL(scriptUrl);
|
|
75715
|
+
} finally {
|
|
75716
|
+
IN_TRUSTED_TYPES_POLICY--;
|
|
75717
|
+
}
|
|
75718
|
+
};
|
|
75719
|
+
// Lazily resolve (and cache) the instance's internal default policy.
|
|
75720
|
+
// Resolution is attempted at most once: a successful `createPolicy` cannot be
|
|
75721
|
+
// repeated (Trusted Types throws on duplicate names), and a failed or
|
|
75722
|
+
// unsupported attempt must not be retried on every parse.
|
|
75723
|
+
const _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {
|
|
75724
|
+
if (!defaultTrustedTypesPolicyResolved) {
|
|
75725
|
+
defaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
|
|
75726
|
+
defaultTrustedTypesPolicyResolved = true;
|
|
75727
|
+
}
|
|
75728
|
+
return defaultTrustedTypesPolicy;
|
|
75729
|
+
};
|
|
75647
75730
|
const _document = document,
|
|
75648
75731
|
implementation = _document.implementation,
|
|
75649
75732
|
createNodeIterator = _document.createNodeIterator,
|
|
@@ -75782,7 +75865,17 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75782
75865
|
let USE_PROFILES = {};
|
|
75783
75866
|
/* Tags to ignore content of when KEEP_CONTENT is true */
|
|
75784
75867
|
let FORBID_CONTENTS = null;
|
|
75785
|
-
const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script',
|
|
75868
|
+
const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script',
|
|
75869
|
+
// <selectedcontent> mirrors the selected <option>'s subtree, cloned by
|
|
75870
|
+
// the UA (customizable <select>) — including any on* handlers — and the
|
|
75871
|
+
// engine re-mirrors synchronously whenever a removal changes which
|
|
75872
|
+
// option/selectedcontent is current, even inside DOMPurify's inert
|
|
75873
|
+
// DOMParser document. Hoisting its children on removal re-inserts a fresh
|
|
75874
|
+
// mirror target ahead of the walk, which the engine refills, looping
|
|
75875
|
+
// forever (DoS) and amplifying output. Dropping its content on removal
|
|
75876
|
+
// (rather than hoisting) breaks that cascade; the content is a duplicate
|
|
75877
|
+
// of the option, which is sanitized on its own. See campaign-3 F1/F6.
|
|
75878
|
+
'selectedcontent', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
|
|
75786
75879
|
/* Tags that are safe for data: URIs */
|
|
75787
75880
|
let DATA_URI_TAGS = null;
|
|
75788
75881
|
const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
|
|
@@ -75798,8 +75891,10 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75798
75891
|
/* Allowed XHTML+XML namespaces */
|
|
75799
75892
|
let ALLOWED_NAMESPACES = null;
|
|
75800
75893
|
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
|
75801
|
-
|
|
75802
|
-
let
|
|
75894
|
+
const DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze(['mi', 'mo', 'mn', 'ms', 'mtext']);
|
|
75895
|
+
let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);
|
|
75896
|
+
const DEFAULT_HTML_INTEGRATION_POINTS = freeze(['annotation-xml']);
|
|
75897
|
+
let HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);
|
|
75803
75898
|
// Certain elements are allowed in both SVG and HTML
|
|
75804
75899
|
// namespace. We need to specify them explicitly
|
|
75805
75900
|
// so that they don't get erroneously deleted from
|
|
@@ -75841,14 +75936,32 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75841
75936
|
// HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
|
|
75842
75937
|
transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
|
|
75843
75938
|
/* Set configuration parameters */
|
|
75844
|
-
ALLOWED_TAGS =
|
|
75845
|
-
|
|
75846
|
-
|
|
75847
|
-
|
|
75848
|
-
|
|
75849
|
-
|
|
75850
|
-
|
|
75851
|
-
|
|
75939
|
+
ALLOWED_TAGS = _resolveSetOption(cfg, 'ALLOWED_TAGS', DEFAULT_ALLOWED_TAGS, {
|
|
75940
|
+
transform: transformCaseFunc
|
|
75941
|
+
});
|
|
75942
|
+
ALLOWED_ATTR = _resolveSetOption(cfg, 'ALLOWED_ATTR', DEFAULT_ALLOWED_ATTR, {
|
|
75943
|
+
transform: transformCaseFunc
|
|
75944
|
+
});
|
|
75945
|
+
ALLOWED_NAMESPACES = _resolveSetOption(cfg, 'ALLOWED_NAMESPACES', DEFAULT_ALLOWED_NAMESPACES, {
|
|
75946
|
+
transform: stringToString
|
|
75947
|
+
});
|
|
75948
|
+
URI_SAFE_ATTRIBUTES = _resolveSetOption(cfg, 'ADD_URI_SAFE_ATTR', DEFAULT_URI_SAFE_ATTRIBUTES, {
|
|
75949
|
+
transform: transformCaseFunc,
|
|
75950
|
+
base: DEFAULT_URI_SAFE_ATTRIBUTES
|
|
75951
|
+
});
|
|
75952
|
+
DATA_URI_TAGS = _resolveSetOption(cfg, 'ADD_DATA_URI_TAGS', DEFAULT_DATA_URI_TAGS, {
|
|
75953
|
+
transform: transformCaseFunc,
|
|
75954
|
+
base: DEFAULT_DATA_URI_TAGS
|
|
75955
|
+
});
|
|
75956
|
+
FORBID_CONTENTS = _resolveSetOption(cfg, 'FORBID_CONTENTS', DEFAULT_FORBID_CONTENTS, {
|
|
75957
|
+
transform: transformCaseFunc
|
|
75958
|
+
});
|
|
75959
|
+
FORBID_TAGS = _resolveSetOption(cfg, 'FORBID_TAGS', clone({}), {
|
|
75960
|
+
transform: transformCaseFunc
|
|
75961
|
+
});
|
|
75962
|
+
FORBID_ATTR = _resolveSetOption(cfg, 'FORBID_ATTR', clone({}), {
|
|
75963
|
+
transform: transformCaseFunc
|
|
75964
|
+
});
|
|
75852
75965
|
USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === 'object' ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;
|
|
75853
75966
|
ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
|
|
75854
75967
|
ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
|
|
@@ -75867,8 +75980,8 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75867
75980
|
IN_PLACE = cfg.IN_PLACE || false; // Default false
|
|
75868
75981
|
IS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI; // Default regexp
|
|
75869
75982
|
NAMESPACE = typeof cfg.NAMESPACE === 'string' ? cfg.NAMESPACE : HTML_NAMESPACE; // Default HTML namespace
|
|
75870
|
-
MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'MATHML_TEXT_INTEGRATION_POINTS') && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === 'object' ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({},
|
|
75871
|
-
HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'HTML_INTEGRATION_POINTS') && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === 'object' ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({},
|
|
75983
|
+
MATHML_TEXT_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'MATHML_TEXT_INTEGRATION_POINTS') && cfg.MATHML_TEXT_INTEGRATION_POINTS && typeof cfg.MATHML_TEXT_INTEGRATION_POINTS === 'object' ? clone(cfg.MATHML_TEXT_INTEGRATION_POINTS) : addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS); // Default built-in map
|
|
75984
|
+
HTML_INTEGRATION_POINTS = objectHasOwnProperty(cfg, 'HTML_INTEGRATION_POINTS') && cfg.HTML_INTEGRATION_POINTS && typeof cfg.HTML_INTEGRATION_POINTS === 'object' ? clone(cfg.HTML_INTEGRATION_POINTS) : addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS); // Default built-in map
|
|
75872
75985
|
const customElementHandling = objectHasOwnProperty(cfg, 'CUSTOM_ELEMENT_HANDLING') && cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING === 'object' ? clone(cfg.CUSTOM_ELEMENT_HANDLING) : create(null);
|
|
75873
75986
|
CUSTOM_ELEMENT_HANDLING = create(null);
|
|
75874
75987
|
if (objectHasOwnProperty(customElementHandling, 'tagNameCheck') && isRegexOrFunction(customElementHandling.tagNameCheck)) {
|
|
@@ -75880,6 +75993,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75880
75993
|
if (objectHasOwnProperty(customElementHandling, 'allowCustomizedBuiltInElements') && typeof customElementHandling.allowCustomizedBuiltInElements === 'boolean') {
|
|
75881
75994
|
CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements; // Default undefined
|
|
75882
75995
|
}
|
|
75996
|
+
seal(CUSTOM_ELEMENT_HANDLING);
|
|
75883
75997
|
if (SAFE_FOR_TEMPLATES) {
|
|
75884
75998
|
ALLOW_DATA_ATTR = false;
|
|
75885
75999
|
}
|
|
@@ -75963,6 +76077,13 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75963
76077
|
addToSet(ALLOWED_TAGS, ['tbody']);
|
|
75964
76078
|
delete FORBID_TAGS.tbody;
|
|
75965
76079
|
}
|
|
76080
|
+
// Re-derive the active Trusted Types policy from this configuration on
|
|
76081
|
+
// every parse. The active policy must never be sticky closure state that
|
|
76082
|
+
// outlives the config that set it: a caller-supplied policy left in place
|
|
76083
|
+
// after `clearConfig()` — or after a later call that supplied none, or
|
|
76084
|
+
// `TRUSTED_TYPES_POLICY: null` — could sign a subsequent "default"
|
|
76085
|
+
// `RETURN_TRUSTED_TYPE` result with a foreign, possibly unsafe policy.
|
|
76086
|
+
// See GHSA-vxr8-fq34-vvx9.
|
|
75966
76087
|
if (cfg.TRUSTED_TYPES_POLICY) {
|
|
75967
76088
|
if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
|
|
75968
76089
|
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
@@ -75970,20 +76091,62 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75970
76091
|
if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
|
|
75971
76092
|
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
75972
76093
|
}
|
|
75973
|
-
//
|
|
76094
|
+
// A caller-supplied policy applies to this configuration only.
|
|
76095
|
+
const previousTrustedTypesPolicy = trustedTypesPolicy;
|
|
75974
76096
|
trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
|
|
75975
|
-
// Sign local variables required by `sanitize`.
|
|
75976
|
-
|
|
76097
|
+
// Sign local variables required by `sanitize`. If the supplied policy's
|
|
76098
|
+
// `createHTML` is circular (i.e. it calls `DOMPurify.sanitize`), this
|
|
76099
|
+
// throws via the re-entrancy guard. Restore the previous policy first so
|
|
76100
|
+
// the instance is not left in a poisoned state. See #1422.
|
|
76101
|
+
try {
|
|
76102
|
+
emptyHTML = _createTrustedHTML('');
|
|
76103
|
+
} catch (error) {
|
|
76104
|
+
trustedTypesPolicy = previousTrustedTypesPolicy;
|
|
76105
|
+
throw error;
|
|
76106
|
+
}
|
|
76107
|
+
} else if (cfg.TRUSTED_TYPES_POLICY === null) {
|
|
76108
|
+
// Explicit opt-out for this call: perform no Trusted Types signing and
|
|
76109
|
+
// create nothing (so a strict `trusted-types` CSP that disallows a
|
|
76110
|
+
// `dompurify` policy can still call `sanitize` from inside its own
|
|
76111
|
+
// policy — see #1422). Resetting to `undefined` rather than a sticky
|
|
76112
|
+
// `null` also drops any previously retained caller policy, so it cannot
|
|
76113
|
+
// resurface on a later call, while still allowing the next config-less
|
|
76114
|
+
// call to restore the internal default policy. See GHSA-vxr8-fq34-vvx9.
|
|
76115
|
+
trustedTypesPolicy = undefined;
|
|
76116
|
+
emptyHTML = '';
|
|
75977
76117
|
} else {
|
|
75978
|
-
//
|
|
76118
|
+
// No policy supplied: keep the currently active policy if one is set — a
|
|
76119
|
+
// previously supplied policy is intentionally sticky across config-less
|
|
76120
|
+
// calls — otherwise fall back to the instance's own internal policy,
|
|
76121
|
+
// created at most once. (A policy supplied for a *single* call still
|
|
76122
|
+
// lingers by design; what must not linger is a policy whose configuration
|
|
76123
|
+
// has been torn down via `clearConfig()`, which restores the default.)
|
|
75979
76124
|
if (trustedTypesPolicy === undefined) {
|
|
75980
|
-
trustedTypesPolicy =
|
|
76125
|
+
trustedTypesPolicy = _getDefaultTrustedTypesPolicy();
|
|
75981
76126
|
}
|
|
75982
|
-
//
|
|
75983
|
-
|
|
75984
|
-
|
|
76127
|
+
// Sign internal variables only when a policy is active. A falsy policy
|
|
76128
|
+
// (Trusted Types unsupported, creation failed, or an explicit opt-out)
|
|
76129
|
+
// leaves `emptyHTML` as a plain string, so we never call `.createHTML` on
|
|
76130
|
+
// a non-policy and throw. See #1422.
|
|
76131
|
+
if (trustedTypesPolicy && typeof emptyHTML === 'string') {
|
|
76132
|
+
emptyHTML = _createTrustedHTML('');
|
|
75985
76133
|
}
|
|
75986
76134
|
}
|
|
76135
|
+
/*
|
|
76136
|
+
* Mirror the clone-before-mutate pattern already applied above for
|
|
76137
|
+
* cfg.ADD_TAGS / cfg.ADD_ATTR: if any uponSanitize* hook is
|
|
76138
|
+
* registered AND the set still points at the default constant,
|
|
76139
|
+
* clone it. The hook then mutates the clone (in-call widening
|
|
76140
|
+
* still works exactly as documented) and the next default-cfg
|
|
76141
|
+
* call rebinds to the untouched original via the reassignment at
|
|
76142
|
+
* the top of this function.
|
|
76143
|
+
*/
|
|
76144
|
+
if ((hooks.uponSanitizeElement.length > 0 || hooks.uponSanitizeAttribute.length > 0) && ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
76145
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
76146
|
+
}
|
|
76147
|
+
if (hooks.uponSanitizeAttribute.length > 0 && ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
76148
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
76149
|
+
}
|
|
75987
76150
|
// Prevent further manipulation of configuration.
|
|
75988
76151
|
// Not available in IE8, Safari 5, etc.
|
|
75989
76152
|
if (freeze) {
|
|
@@ -75996,6 +76159,77 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75996
76159
|
* correctly. */
|
|
75997
76160
|
const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
|
|
75998
76161
|
const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
|
|
76162
|
+
/**
|
|
76163
|
+
* Namespace rules for an element in the SVG namespace.
|
|
76164
|
+
*
|
|
76165
|
+
* @param tagName the element's lowercase tag name
|
|
76166
|
+
* @param parent the (possibly simulated) parent node
|
|
76167
|
+
* @param parentTagName the parent's lowercase tag name
|
|
76168
|
+
* @returns true if a spec-compliant parser could produce this element
|
|
76169
|
+
*/
|
|
76170
|
+
const _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {
|
|
76171
|
+
// The only way to switch from HTML namespace to SVG
|
|
76172
|
+
// is via <svg>. If it happens via any other tag, then
|
|
76173
|
+
// it should be killed.
|
|
76174
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
76175
|
+
return tagName === 'svg';
|
|
76176
|
+
}
|
|
76177
|
+
// The only way to switch from MathML to SVG is via <svg>
|
|
76178
|
+
// if the parent is either <annotation-xml> or a MathML
|
|
76179
|
+
// text integration point.
|
|
76180
|
+
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
|
76181
|
+
return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
|
76182
|
+
}
|
|
76183
|
+
// We only allow elements that are defined in SVG
|
|
76184
|
+
// spec. All others are disallowed in SVG namespace.
|
|
76185
|
+
return Boolean(ALL_SVG_TAGS[tagName]);
|
|
76186
|
+
};
|
|
76187
|
+
/**
|
|
76188
|
+
* Namespace rules for an element in the MathML namespace.
|
|
76189
|
+
*
|
|
76190
|
+
* @param tagName the element's lowercase tag name
|
|
76191
|
+
* @param parent the (possibly simulated) parent node
|
|
76192
|
+
* @param parentTagName the parent's lowercase tag name
|
|
76193
|
+
* @returns true if a spec-compliant parser could produce this element
|
|
76194
|
+
*/
|
|
76195
|
+
const _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {
|
|
76196
|
+
// The only way to switch from HTML namespace to MathML
|
|
76197
|
+
// is via <math>. If it happens via any other tag, then
|
|
76198
|
+
// it should be killed.
|
|
76199
|
+
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
76200
|
+
return tagName === 'math';
|
|
76201
|
+
}
|
|
76202
|
+
// The only way to switch from SVG to MathML is via
|
|
76203
|
+
// <math> and HTML integration points
|
|
76204
|
+
if (parent.namespaceURI === SVG_NAMESPACE) {
|
|
76205
|
+
return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
|
|
76206
|
+
}
|
|
76207
|
+
// We only allow elements that are defined in MathML
|
|
76208
|
+
// spec. All others are disallowed in MathML namespace.
|
|
76209
|
+
return Boolean(ALL_MATHML_TAGS[tagName]);
|
|
76210
|
+
};
|
|
76211
|
+
/**
|
|
76212
|
+
* Namespace rules for an element in the HTML namespace.
|
|
76213
|
+
*
|
|
76214
|
+
* @param tagName the element's lowercase tag name
|
|
76215
|
+
* @param parent the (possibly simulated) parent node
|
|
76216
|
+
* @param parentTagName the parent's lowercase tag name
|
|
76217
|
+
* @returns true if a spec-compliant parser could produce this element
|
|
76218
|
+
*/
|
|
76219
|
+
const _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {
|
|
76220
|
+
// The only way to switch from SVG to HTML is via
|
|
76221
|
+
// HTML integration points, and from MathML to HTML
|
|
76222
|
+
// is via MathML text integration points
|
|
76223
|
+
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
|
76224
|
+
return false;
|
|
76225
|
+
}
|
|
76226
|
+
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
|
76227
|
+
return false;
|
|
76228
|
+
}
|
|
76229
|
+
// We disallow tags that are specific for MathML
|
|
76230
|
+
// or SVG and should never appear in HTML namespace
|
|
76231
|
+
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
|
76232
|
+
};
|
|
75999
76233
|
/**
|
|
76000
76234
|
* @param element a DOM element whose namespace is being checked
|
|
76001
76235
|
* @returns Return false if the element has a
|
|
@@ -76018,51 +76252,13 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76018
76252
|
return false;
|
|
76019
76253
|
}
|
|
76020
76254
|
if (element.namespaceURI === SVG_NAMESPACE) {
|
|
76021
|
-
|
|
76022
|
-
// is via <svg>. If it happens via any other tag, then
|
|
76023
|
-
// it should be killed.
|
|
76024
|
-
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
76025
|
-
return tagName === 'svg';
|
|
76026
|
-
}
|
|
76027
|
-
// The only way to switch from MathML to SVG is via`
|
|
76028
|
-
// svg if parent is either <annotation-xml> or MathML
|
|
76029
|
-
// text integration points.
|
|
76030
|
-
if (parent.namespaceURI === MATHML_NAMESPACE) {
|
|
76031
|
-
return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
|
|
76032
|
-
}
|
|
76033
|
-
// We only allow elements that are defined in SVG
|
|
76034
|
-
// spec. All others are disallowed in SVG namespace.
|
|
76035
|
-
return Boolean(ALL_SVG_TAGS[tagName]);
|
|
76255
|
+
return _checkSvgNamespace(tagName, parent, parentTagName);
|
|
76036
76256
|
}
|
|
76037
76257
|
if (element.namespaceURI === MATHML_NAMESPACE) {
|
|
76038
|
-
|
|
76039
|
-
// is via <math>. If it happens via any other tag, then
|
|
76040
|
-
// it should be killed.
|
|
76041
|
-
if (parent.namespaceURI === HTML_NAMESPACE) {
|
|
76042
|
-
return tagName === 'math';
|
|
76043
|
-
}
|
|
76044
|
-
// The only way to switch from SVG to MathML is via
|
|
76045
|
-
// <math> and HTML integration points
|
|
76046
|
-
if (parent.namespaceURI === SVG_NAMESPACE) {
|
|
76047
|
-
return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
|
|
76048
|
-
}
|
|
76049
|
-
// We only allow elements that are defined in MathML
|
|
76050
|
-
// spec. All others are disallowed in MathML namespace.
|
|
76051
|
-
return Boolean(ALL_MATHML_TAGS[tagName]);
|
|
76258
|
+
return _checkMathMlNamespace(tagName, parent, parentTagName);
|
|
76052
76259
|
}
|
|
76053
76260
|
if (element.namespaceURI === HTML_NAMESPACE) {
|
|
76054
|
-
|
|
76055
|
-
// HTML integration points, and from MathML to HTML
|
|
76056
|
-
// is via MathML text integration points
|
|
76057
|
-
if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
|
|
76058
|
-
return false;
|
|
76059
|
-
}
|
|
76060
|
-
if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
|
|
76061
|
-
return false;
|
|
76062
|
-
}
|
|
76063
|
-
// We disallow tags that are specific for MathML
|
|
76064
|
-
// or SVG and should never appear in HTML namespace
|
|
76065
|
-
return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
|
|
76261
|
+
return _checkHtmlNamespace(tagName, parent, parentTagName);
|
|
76066
76262
|
}
|
|
76067
76263
|
// For XHTML and XML documents that support custom namespaces
|
|
76068
76264
|
if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
|
|
@@ -76087,7 +76283,74 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76087
76283
|
// eslint-disable-next-line unicorn/prefer-dom-node-remove
|
|
76088
76284
|
getParentNode(node).removeChild(node);
|
|
76089
76285
|
} catch (_) {
|
|
76286
|
+
/* The normal detach failed — this is reached for a parentless node
|
|
76287
|
+
(getParentNode() is null, so .removeChild throws). Element.prototype
|
|
76288
|
+
.remove() is itself a spec no-op on a parentless node, so a recorded
|
|
76289
|
+
"removal" would otherwise hand the caller back an intact,
|
|
76290
|
+
payload-bearing node (e.g. a detached IN_PLACE root the mXSS canary or
|
|
76291
|
+
the style-with-element-child rule decided to kill). Fail closed by
|
|
76292
|
+
throwing — exactly as a clobbered root does at the IN_PLACE entry —
|
|
76293
|
+
rather than trying to "neutralize" the node via its own methods.
|
|
76294
|
+
Neutralizing would mean calling getAttributeNames()/removeAttribute()
|
|
76295
|
+
on the node, both of which a <form> root can clobber via a named child
|
|
76296
|
+
(and _isClobbered does not even probe getAttributeNames), so the
|
|
76297
|
+
neutralize step could itself be silently defeated, leaving the payload
|
|
76298
|
+
intact. A throw touches only the cached, clobber-safe remove() and
|
|
76299
|
+
getParentNode(). Generalizes GHSA-r47g-fvhr-h676 (clobbered-form root)
|
|
76300
|
+
to every root-kill reason. REPORT-3.
|
|
76301
|
+
This lives inside the catch, so it never fires for a normally-removed
|
|
76302
|
+
in-tree node: those have a parent, removeChild() succeeds, and the
|
|
76303
|
+
catch is not entered. Only a kept (parentless) root reaches here. */
|
|
76090
76304
|
remove(node);
|
|
76305
|
+
if (!getParentNode(node)) {
|
|
76306
|
+
throw typeErrorCreate('a node selected for removal could not be detached from its tree ' + 'and cannot be safely returned; refusing to sanitize in place');
|
|
76307
|
+
}
|
|
76308
|
+
}
|
|
76309
|
+
};
|
|
76310
|
+
/**
|
|
76311
|
+
* _neutralizeRoot
|
|
76312
|
+
*
|
|
76313
|
+
* Fail-closed teardown of an in-place root after the sanitize walk aborts
|
|
76314
|
+
* (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered
|
|
76315
|
+
* custom element's reaction detaches a node so `_forceRemove`'s deliberate
|
|
76316
|
+
* parentless guard throws, or any other re-entrant engine mutation — would
|
|
76317
|
+
* otherwise leave the caller's *live* tree half-sanitized, with everything
|
|
76318
|
+
* after the abort point still carrying its handlers. There is no safe way
|
|
76319
|
+
* to resume the walk (the tree mutated under us), so we strip the root bare:
|
|
76320
|
+
* remove every child and every attribute, then let the caller's catch see
|
|
76321
|
+
* the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`
|
|
76322
|
+
* getters; the root was already clobber-pre-flighted at the IN_PLACE entry).
|
|
76323
|
+
*
|
|
76324
|
+
* @param root the in-place root to empty
|
|
76325
|
+
*/
|
|
76326
|
+
const _neutralizeRoot = function _neutralizeRoot(root) {
|
|
76327
|
+
const childNodes = getChildNodes(root);
|
|
76328
|
+
if (childNodes) {
|
|
76329
|
+
const snapshot = [];
|
|
76330
|
+
arrayForEach(childNodes, child => {
|
|
76331
|
+
arrayPush(snapshot, child);
|
|
76332
|
+
});
|
|
76333
|
+
arrayForEach(snapshot, child => {
|
|
76334
|
+
try {
|
|
76335
|
+
remove(child);
|
|
76336
|
+
} catch (_) {
|
|
76337
|
+
/* Best-effort teardown; a still-attached child is handled below */
|
|
76338
|
+
}
|
|
76339
|
+
});
|
|
76340
|
+
}
|
|
76341
|
+
const attributes = getAttributes(root);
|
|
76342
|
+
if (attributes) {
|
|
76343
|
+
for (let i = attributes.length - 1; i >= 0; --i) {
|
|
76344
|
+
const attribute = attributes[i];
|
|
76345
|
+
const name = attribute && attribute.name;
|
|
76346
|
+
if (typeof name === 'string') {
|
|
76347
|
+
try {
|
|
76348
|
+
root.removeAttribute(name);
|
|
76349
|
+
} catch (_) {
|
|
76350
|
+
/* Clobbered removeAttribute — ignore (fail-closed best effort) */
|
|
76351
|
+
}
|
|
76352
|
+
}
|
|
76353
|
+
}
|
|
76091
76354
|
}
|
|
76092
76355
|
};
|
|
76093
76356
|
/**
|
|
@@ -76122,6 +76385,72 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76122
76385
|
}
|
|
76123
76386
|
}
|
|
76124
76387
|
};
|
|
76388
|
+
/**
|
|
76389
|
+
* _stripDisallowedAttributes
|
|
76390
|
+
*
|
|
76391
|
+
* Removes every attribute the active configuration does not allow from a
|
|
76392
|
+
* single element, using the same allowlist as the main attribute pass (so
|
|
76393
|
+
* `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to
|
|
76394
|
+
* neutralise nodes that are being discarded from an in-place tree.
|
|
76395
|
+
*
|
|
76396
|
+
* @param element the element to strip
|
|
76397
|
+
*/
|
|
76398
|
+
const _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {
|
|
76399
|
+
const attributes = getAttributes(element);
|
|
76400
|
+
if (!attributes) {
|
|
76401
|
+
return;
|
|
76402
|
+
}
|
|
76403
|
+
for (let i = attributes.length - 1; i >= 0; --i) {
|
|
76404
|
+
const attribute = attributes[i];
|
|
76405
|
+
const name = attribute && attribute.name;
|
|
76406
|
+
if (typeof name !== 'string' || ALLOWED_ATTR[transformCaseFunc(name)]) {
|
|
76407
|
+
continue;
|
|
76408
|
+
}
|
|
76409
|
+
try {
|
|
76410
|
+
element.removeAttribute(name);
|
|
76411
|
+
} catch (_) {
|
|
76412
|
+
/* Clobbered removeAttribute on a doomed node — ignore */
|
|
76413
|
+
}
|
|
76414
|
+
}
|
|
76415
|
+
};
|
|
76416
|
+
/**
|
|
76417
|
+
* _neutralizeSubtree
|
|
76418
|
+
*
|
|
76419
|
+
* Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT
|
|
76420
|
+
* move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,
|
|
76421
|
+
* namespace, comment, processing-instruction and KEEP_CONTENT:false removals
|
|
76422
|
+
* all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path
|
|
76423
|
+
* those dropped nodes are detached from the caller's LIVE tree but a
|
|
76424
|
+
* handler-bearing original among them (an `<img onerror>`/`<video>` that was
|
|
76425
|
+
* loading) keeps its queued resource event, which fires in page scope after
|
|
76426
|
+
* sanitize returns. This walks a removed subtree and strips every attribute
|
|
76427
|
+
* the active configuration does not allow — so `on*` handlers are cancelled
|
|
76428
|
+
* through the SAME allowlist that governs kept nodes, not a separate `/^on/`
|
|
76429
|
+
* blocklist. Run synchronously before sanitize returns, i.e. before any
|
|
76430
|
+
* queued event can fire. Hook-free by design: these nodes leave the output,
|
|
76431
|
+
* so firing attribute hooks for them would be surprising. Clobber-safe reads;
|
|
76432
|
+
* a doomed clobbered node may shadow `removeAttribute` (its own attributes are
|
|
76433
|
+
* irrelevant — it is discarded — while its non-clobbered descendants, e.g.
|
|
76434
|
+
* the `<img>`, are reached and scrubbed).
|
|
76435
|
+
*
|
|
76436
|
+
* @param root the root of a removed subtree to neutralise
|
|
76437
|
+
*/
|
|
76438
|
+
const _neutralizeSubtree = function _neutralizeSubtree(root) {
|
|
76439
|
+
const stack = [root];
|
|
76440
|
+
while (stack.length > 0) {
|
|
76441
|
+
const node = stack.pop();
|
|
76442
|
+
const nodeType = getNodeType ? getNodeType(node) : node.nodeType;
|
|
76443
|
+
if (nodeType === NODE_TYPE.element) {
|
|
76444
|
+
_stripDisallowedAttributes(node);
|
|
76445
|
+
}
|
|
76446
|
+
const childNodes = getChildNodes(node);
|
|
76447
|
+
if (childNodes) {
|
|
76448
|
+
for (let i = childNodes.length - 1; i >= 0; --i) {
|
|
76449
|
+
stack.push(childNodes[i]);
|
|
76450
|
+
}
|
|
76451
|
+
}
|
|
76452
|
+
}
|
|
76453
|
+
};
|
|
76125
76454
|
/**
|
|
76126
76455
|
* _initDocument
|
|
76127
76456
|
*
|
|
@@ -76143,7 +76472,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76143
76472
|
// Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
|
|
76144
76473
|
dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
|
|
76145
76474
|
}
|
|
76146
|
-
const dirtyPayload = trustedTypesPolicy ?
|
|
76475
|
+
const dirtyPayload = trustedTypesPolicy ? _createTrustedHTML(dirty) : dirty;
|
|
76147
76476
|
/*
|
|
76148
76477
|
* Use the DOMParser API by default, fallback later if needs be
|
|
76149
76478
|
* DOMParser not work for svg when has multiple root element.
|
|
@@ -76183,6 +76512,20 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76183
76512
|
// eslint-disable-next-line no-bitwise
|
|
76184
76513
|
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
|
76185
76514
|
};
|
|
76515
|
+
/**
|
|
76516
|
+
* Replace template expression syntax (mustache, ERB, template
|
|
76517
|
+
* literal) with a space; shared by all SAFE_FOR_TEMPLATES scrub
|
|
76518
|
+
* sites. Order matters: mustache, then ERB, then template literal.
|
|
76519
|
+
*
|
|
76520
|
+
* @param value the string to scrub
|
|
76521
|
+
* @returns the scrubbed string
|
|
76522
|
+
*/
|
|
76523
|
+
const _stripTemplateExpressions = function _stripTemplateExpressions(value) {
|
|
76524
|
+
value = stringReplace(value, MUSTACHE_EXPR$1, ' ');
|
|
76525
|
+
value = stringReplace(value, ERB_EXPR$1, ' ');
|
|
76526
|
+
value = stringReplace(value, TMPLIT_EXPR$1, ' ');
|
|
76527
|
+
return value;
|
|
76528
|
+
};
|
|
76186
76529
|
/**
|
|
76187
76530
|
* Strip template-engine expressions ({{...}}, ${...}, <%...%>) from the
|
|
76188
76531
|
* character data of an element subtree. Used as the final safety net for
|
|
@@ -76202,29 +76545,100 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76202
76545
|
*
|
|
76203
76546
|
* @param node The root element whose character data should be scrubbed.
|
|
76204
76547
|
*/
|
|
76205
|
-
const
|
|
76548
|
+
const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
|
|
76549
|
+
var _node$querySelectorAl;
|
|
76206
76550
|
node.normalize();
|
|
76207
76551
|
const walker = createNodeIterator.call(node.ownerDocument || node, node,
|
|
76208
76552
|
// eslint-disable-next-line no-bitwise
|
|
76209
76553
|
NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
|
|
76210
76554
|
let currentNode = walker.nextNode();
|
|
76211
76555
|
while (currentNode) {
|
|
76212
|
-
|
|
76213
|
-
arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
|
|
76214
|
-
data = stringReplace(data, expr, ' ');
|
|
76215
|
-
});
|
|
76216
|
-
currentNode.data = data;
|
|
76556
|
+
currentNode.data = _stripTemplateExpressions(currentNode.data);
|
|
76217
76557
|
currentNode = walker.nextNode();
|
|
76218
76558
|
}
|
|
76559
|
+
// NodeIterator does not descend into <template>.content per the DOM spec,
|
|
76560
|
+
// so we must explicitly recurse into each template's content fragment,
|
|
76561
|
+
// mirroring the approach used by _sanitizeShadowDOM.
|
|
76562
|
+
const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, 'template');
|
|
76563
|
+
if (templates) {
|
|
76564
|
+
arrayForEach(templates, tmpl => {
|
|
76565
|
+
if (_isDocumentFragment(tmpl.content)) {
|
|
76566
|
+
_scrubTemplateExpressions2(tmpl.content);
|
|
76567
|
+
}
|
|
76568
|
+
});
|
|
76569
|
+
}
|
|
76219
76570
|
};
|
|
76220
76571
|
/**
|
|
76221
76572
|
* _isClobbered
|
|
76222
76573
|
*
|
|
76574
|
+
* Detect DOM-clobbering on HTMLFormElement nodes. Form is the only HTML
|
|
76575
|
+
* interface with [LegacyOverrideBuiltIns]; a descendant element with a
|
|
76576
|
+
* `name` attribute matching a prototype property shadows that property
|
|
76577
|
+
* on direct reads. We use this check at the IN_PLACE entry-point and
|
|
76578
|
+
* during attribute sanitization to refuse clobbered forms.
|
|
76579
|
+
*
|
|
76223
76580
|
* @param element element to check for clobbering attacks
|
|
76224
76581
|
* @return true if clobbered, false if safe
|
|
76225
76582
|
*/
|
|
76226
76583
|
const _isClobbered = function _isClobbered(element) {
|
|
76227
|
-
|
|
76584
|
+
// Realm-independent tag-name probe. If we can't determine the tag
|
|
76585
|
+
// name at all, we can't reason about clobbering — return false
|
|
76586
|
+
// (the caller's other defences still apply).
|
|
76587
|
+
const realTagName = getNodeName ? getNodeName(element) : null;
|
|
76588
|
+
if (typeof realTagName !== 'string') {
|
|
76589
|
+
return false;
|
|
76590
|
+
}
|
|
76591
|
+
if (transformCaseFunc(realTagName) !== 'form') {
|
|
76592
|
+
return false;
|
|
76593
|
+
}
|
|
76594
|
+
return typeof element.nodeName !== 'string' || typeof element.textContent !== 'string' || typeof element.removeChild !== 'function' ||
|
|
76595
|
+
// Realm-safe NamedNodeMap detection: equality against the cached
|
|
76596
|
+
// prototype getter. Clobbered .attributes (e.g. <input name="attributes">)
|
|
76597
|
+
// makes the direct read diverge from the cached read; a clean form
|
|
76598
|
+
// (same-realm OR foreign-realm) has both reads pointing at the same
|
|
76599
|
+
// canonical NamedNodeMap.
|
|
76600
|
+
element.attributes !== getAttributes(element) || typeof element.removeAttribute !== 'function' || typeof element.setAttribute !== 'function' || typeof element.namespaceURI !== 'string' || typeof element.insertBefore !== 'function' || typeof element.hasChildNodes !== 'function' ||
|
|
76601
|
+
// NodeType clobbering probe. Cached Node.prototype.nodeType getter
|
|
76602
|
+
// returns the integer 1 for any Element regardless of realm; direct
|
|
76603
|
+
// read on a clobbered form (e.g. <input name="nodeType">) returns
|
|
76604
|
+
// the named child element. Cheap addition — nodeType is read from
|
|
76605
|
+
// an internal slot, no serialization cost — and removes a residual
|
|
76606
|
+
// clobbering surface used by several mXSS / PI / comment branches
|
|
76607
|
+
// in _sanitizeElements that compare currentNode.nodeType directly.
|
|
76608
|
+
element.nodeType !== getNodeType(element) ||
|
|
76609
|
+
// HTMLFormElement has [LegacyOverrideBuiltIns]: a descendant named
|
|
76610
|
+
// "childNodes" shadows the prototype getter. Direct reads of
|
|
76611
|
+
// form.childNodes from a clobbered form return the named child
|
|
76612
|
+
// instead of the real NodeList, so any walk that reads it directly
|
|
76613
|
+
// skips the form's real children. Compare the direct read to the
|
|
76614
|
+
// cached Node.prototype getter — when the form's named-property
|
|
76615
|
+
// getter intercepts the read, the two values differ and we flag
|
|
76616
|
+
// the form. This catches every clobbering child type (input,
|
|
76617
|
+
// select, etc.) regardless of whether the named child happens to
|
|
76618
|
+
// carry a numeric .length, which a typeof-based probe would miss
|
|
76619
|
+
// (e.g. HTMLSelectElement.length is a defined unsigned-long).
|
|
76620
|
+
element.childNodes !== getChildNodes(element);
|
|
76621
|
+
};
|
|
76622
|
+
/**
|
|
76623
|
+
* Checks whether the given value is a DocumentFragment from any realm.
|
|
76624
|
+
*
|
|
76625
|
+
* The realm-independent replacement reads `nodeType` through the cached
|
|
76626
|
+
* Node.prototype getter and compares to the DOCUMENT_FRAGMENT_NODE
|
|
76627
|
+
* constant (11). nodeType is a numeric value resolved from the node's
|
|
76628
|
+
* internal slot, identical across realms for the same kind of node.
|
|
76629
|
+
*
|
|
76630
|
+
* @param value object to check
|
|
76631
|
+
* @return true if value is a DocumentFragment-shaped node from any realm
|
|
76632
|
+
*/
|
|
76633
|
+
const _isDocumentFragment = function _isDocumentFragment(value) {
|
|
76634
|
+
if (!getNodeType || typeof value !== 'object' || value === null) {
|
|
76635
|
+
return false;
|
|
76636
|
+
}
|
|
76637
|
+
try {
|
|
76638
|
+
return getNodeType(value) === NODE_TYPE.documentFragment;
|
|
76639
|
+
} catch (_) {
|
|
76640
|
+
return false;
|
|
76641
|
+
}
|
|
76228
76642
|
};
|
|
76229
76643
|
/**
|
|
76230
76644
|
* Checks whether the given object is a DOM node, including nodes that
|
|
@@ -76234,12 +76648,6 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76234
76648
|
* sanitize() to silently stringify them and reset IN_PLACE to false,
|
|
76235
76649
|
* returning the original node unsanitized. See GHSA-4w3q-35jp-p934.
|
|
76236
76650
|
*
|
|
76237
|
-
* Implementation: call the cached `nodeType` getter from Node.prototype
|
|
76238
|
-
* directly on the value. This bypasses any clobbered instance property
|
|
76239
|
-
* (e.g. a child element named "nodeType") and works across realms
|
|
76240
|
-
* because the WebIDL `nodeType` getter reads an internal slot that
|
|
76241
|
-
* every real Node has, regardless of which window minted it.
|
|
76242
|
-
*
|
|
76243
76651
|
* @param value object to check whether it's a DOM node
|
|
76244
76652
|
* @return true if value is a DOM node from any realm
|
|
76245
76653
|
*/
|
|
@@ -76254,10 +76662,104 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76254
76662
|
}
|
|
76255
76663
|
};
|
|
76256
76664
|
function _executeHooks(hooks, currentNode, data) {
|
|
76665
|
+
if (hooks.length === 0) {
|
|
76666
|
+
return;
|
|
76667
|
+
}
|
|
76257
76668
|
arrayForEach(hooks, hook => {
|
|
76258
76669
|
hook.call(DOMPurify, currentNode, data, CONFIG);
|
|
76259
76670
|
});
|
|
76260
76671
|
}
|
|
76672
|
+
/**
|
|
76673
|
+
* Structural-threat checks that condemn a node regardless of the
|
|
76674
|
+
* allowlists: mXSS via namespace confusion, risky CSS construction,
|
|
76675
|
+
* processing instructions, markup-bearing comments. Pure predicate;
|
|
76676
|
+
* the caller removes. Check order is load-bearing.
|
|
76677
|
+
*
|
|
76678
|
+
* @param currentNode the node to inspect
|
|
76679
|
+
* @param tagName the node's transformCaseFunc'd tag name
|
|
76680
|
+
* @return true if the node must be removed
|
|
76681
|
+
*/
|
|
76682
|
+
const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
|
|
76683
|
+
/* Detect mXSS attempts abusing namespace confusion */
|
|
76684
|
+
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) {
|
|
76685
|
+
return true;
|
|
76686
|
+
}
|
|
76687
|
+
/* Remove risky CSS construction leading to mXSS */
|
|
76688
|
+
if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
|
|
76689
|
+
return true;
|
|
76690
|
+
}
|
|
76691
|
+
/* Remove any occurrence of processing instructions */
|
|
76692
|
+
if (currentNode.nodeType === NODE_TYPE.processingInstruction) {
|
|
76693
|
+
return true;
|
|
76694
|
+
}
|
|
76695
|
+
/* Remove any kind of possibly harmful comments */
|
|
76696
|
+
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) {
|
|
76697
|
+
return true;
|
|
76698
|
+
}
|
|
76699
|
+
return false;
|
|
76700
|
+
};
|
|
76701
|
+
/**
|
|
76702
|
+
* Handle a node whose tag is forbidden or not allowlisted: keep
|
|
76703
|
+
* allowed custom elements (false return exits _sanitizeElements
|
|
76704
|
+
* early - namespace/fallback checks and the afterSanitizeElements
|
|
76705
|
+
* hook are intentionally skipped for kept custom elements), else
|
|
76706
|
+
* hoist content per KEEP_CONTENT and remove.
|
|
76707
|
+
*
|
|
76708
|
+
* @param currentNode the disallowed node
|
|
76709
|
+
* @param tagName the node's transformCaseFunc'd tag name
|
|
76710
|
+
* @return true if the node was removed, false if kept
|
|
76711
|
+
*/
|
|
76712
|
+
const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName) {
|
|
76713
|
+
/* Check if we have a custom element to handle */
|
|
76714
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
76715
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
76716
|
+
return false;
|
|
76717
|
+
}
|
|
76718
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
|
76719
|
+
return false;
|
|
76720
|
+
}
|
|
76721
|
+
}
|
|
76722
|
+
/* Keep content except for bad-listed elements.
|
|
76723
|
+
Use the cached prototype getters exclusively — the previous code
|
|
76724
|
+
had `|| currentNode.parentNode` / `|| currentNode.childNodes`
|
|
76725
|
+
fallbacks, but the cached getters always return the canonical
|
|
76726
|
+
value (or null for a real parent-less node), so the fallback
|
|
76727
|
+
path was dead in safe cases and a clobbering surface in unsafe
|
|
76728
|
+
ones. Falsy cached results stay falsy; the `if (childNodes &&
|
|
76729
|
+
parentNode)` check already gates correctly. */
|
|
76730
|
+
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
76731
|
+
const parentNode = getParentNode(currentNode);
|
|
76732
|
+
const childNodes = getChildNodes(currentNode);
|
|
76733
|
+
if (childNodes && parentNode) {
|
|
76734
|
+
const childCount = childNodes.length;
|
|
76735
|
+
/* In-place: hoist the *original* children so the iterator visits
|
|
76736
|
+
and sanitises them through the same allowlist pass as every other
|
|
76737
|
+
node. The caller built the tree in the live document, so the
|
|
76738
|
+
originals carry already-queued resource events (`<img onerror>`,
|
|
76739
|
+
`<video>`/`<audio>` error, lazy/`onload`, …); cloning would leave
|
|
76740
|
+
those originals detached but still armed, firing in page scope
|
|
76741
|
+
while the returned tree looked clean. Moving is safe in-place: the
|
|
76742
|
+
root is pre-validated as an allowed tag and so is never the node
|
|
76743
|
+
being removed, which keeps `parentNode` inside the iterator root
|
|
76744
|
+
and the relocated child inside the serialised tree.
|
|
76745
|
+
Otherwise (string / DOM-copy paths): clone. The iterator is rooted
|
|
76746
|
+
at — and the result serialised from — `body`, so a restrictive
|
|
76747
|
+
ALLOWED_TAGS that removes `body` itself must leave its content in
|
|
76748
|
+
place, which only cloning does; and those paths parse into an
|
|
76749
|
+
inert document, so their discarded originals never had a queued
|
|
76750
|
+
event to neutralise.
|
|
76751
|
+
`childNodes` is live; a tail-to-head walk keeps `childNodes[i]`
|
|
76752
|
+
valid whether we move (drops the trailing entry) or clone (leaves
|
|
76753
|
+
the list intact). */
|
|
76754
|
+
for (let i = childCount - 1; i >= 0; --i) {
|
|
76755
|
+
const hoisted = IN_PLACE ? childNodes[i] : cloneNode(childNodes[i], true);
|
|
76756
|
+
parentNode.insertBefore(hoisted, getNextSibling(currentNode));
|
|
76757
|
+
}
|
|
76758
|
+
}
|
|
76759
|
+
}
|
|
76760
|
+
_forceRemove(currentNode);
|
|
76761
|
+
return true;
|
|
76762
|
+
};
|
|
76261
76763
|
/**
|
|
76262
76764
|
* _sanitizeElements
|
|
76263
76765
|
*
|
|
@@ -76268,7 +76770,6 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76268
76770
|
* @return true if node was killed, false if left alive
|
|
76269
76771
|
*/
|
|
76270
76772
|
const _sanitizeElements = function _sanitizeElements(currentNode) {
|
|
76271
|
-
let content = null;
|
|
76272
76773
|
/* Execute a hook if present */
|
|
76273
76774
|
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
76274
76775
|
/* Check if element is clobbered or can clobber */
|
|
@@ -76277,75 +76778,41 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76277
76778
|
return true;
|
|
76278
76779
|
}
|
|
76279
76780
|
/* Now let's check the element's type and name */
|
|
76280
|
-
const tagName = transformCaseFunc(currentNode.nodeName);
|
|
76781
|
+
const tagName = transformCaseFunc(getNodeName ? getNodeName(currentNode) : currentNode.nodeName);
|
|
76281
76782
|
/* Execute a hook if present */
|
|
76282
76783
|
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
|
76283
76784
|
tagName,
|
|
76284
76785
|
allowedTags: ALLOWED_TAGS
|
|
76285
76786
|
});
|
|
76286
|
-
/*
|
|
76287
|
-
if (
|
|
76288
|
-
_forceRemove(currentNode);
|
|
76289
|
-
return true;
|
|
76290
|
-
}
|
|
76291
|
-
/* Remove risky CSS construction leading to mXSS */
|
|
76292
|
-
if (SAFE_FOR_XML && currentNode.namespaceURI === HTML_NAMESPACE && tagName === 'style' && _isNode(currentNode.firstElementChild)) {
|
|
76293
|
-
_forceRemove(currentNode);
|
|
76294
|
-
return true;
|
|
76295
|
-
}
|
|
76296
|
-
/* Remove any occurrence of processing instructions */
|
|
76297
|
-
if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
|
|
76298
|
-
_forceRemove(currentNode);
|
|
76299
|
-
return true;
|
|
76300
|
-
}
|
|
76301
|
-
/* Remove any kind of possibly harmful comments */
|
|
76302
|
-
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
|
|
76787
|
+
/* Remove mXSS vectors, processing instructions and risky comments */
|
|
76788
|
+
if (_isUnsafeNode(currentNode, tagName)) {
|
|
76303
76789
|
_forceRemove(currentNode);
|
|
76304
76790
|
return true;
|
|
76305
76791
|
}
|
|
76306
76792
|
/* Remove element if anything forbids its presence */
|
|
76307
76793
|
if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
|
|
76308
|
-
|
|
76309
|
-
|
|
76310
|
-
|
|
76311
|
-
|
|
76312
|
-
|
|
76313
|
-
|
|
76314
|
-
|
|
76315
|
-
|
|
76316
|
-
|
|
76317
|
-
|
|
76318
|
-
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
76319
|
-
const parentNode = getParentNode(currentNode) || currentNode.parentNode;
|
|
76320
|
-
const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
|
|
76321
|
-
if (childNodes && parentNode) {
|
|
76322
|
-
const childCount = childNodes.length;
|
|
76323
|
-
for (let i = childCount - 1; i >= 0; --i) {
|
|
76324
|
-
const childClone = cloneNode(childNodes[i], true);
|
|
76325
|
-
parentNode.insertBefore(childClone, getNextSibling(currentNode));
|
|
76326
|
-
}
|
|
76327
|
-
}
|
|
76328
|
-
}
|
|
76329
|
-
_forceRemove(currentNode);
|
|
76330
|
-
return true;
|
|
76331
|
-
}
|
|
76332
|
-
/* Check whether element has a valid namespace */
|
|
76333
|
-
if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
|
|
76794
|
+
return _sanitizeDisallowedNode(currentNode, tagName);
|
|
76795
|
+
}
|
|
76796
|
+
/* Check whether element has a valid namespace.
|
|
76797
|
+
Realm-safe check (GHSA-hpcv-96wg-7vj8): use the cached Node.prototype
|
|
76798
|
+
nodeType getter rather than `instanceof Element`, which is realm-
|
|
76799
|
+
bound and short-circuits to false for any node minted in a different
|
|
76800
|
+
realm — letting a foreign-realm element with a forbidden namespace
|
|
76801
|
+
slip past the namespace check entirely. */
|
|
76802
|
+
const nt = getNodeType ? getNodeType(currentNode) : currentNode.nodeType;
|
|
76803
|
+
if (nt === NODE_TYPE.element && !_checkValidNamespace(currentNode)) {
|
|
76334
76804
|
_forceRemove(currentNode);
|
|
76335
76805
|
return true;
|
|
76336
76806
|
}
|
|
76337
76807
|
/* Make sure that older browsers don't get fallback-tag mXSS */
|
|
76338
|
-
if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(
|
|
76808
|
+
if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(FALLBACK_TAG_CLOSE, currentNode.innerHTML)) {
|
|
76339
76809
|
_forceRemove(currentNode);
|
|
76340
76810
|
return true;
|
|
76341
76811
|
}
|
|
76342
76812
|
/* Sanitize element content to be template-safe */
|
|
76343
76813
|
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
|
|
76344
76814
|
/* Get the element's text content */
|
|
76345
|
-
content = currentNode.textContent;
|
|
76346
|
-
arrayForEach([MUSTACHE_EXPR$1, ERB_EXPR$1, TMPLIT_EXPR$1], expr => {
|
|
76347
|
-
content = stringReplace(content, expr, ' ');
|
|
76348
|
-
});
|
|
76815
|
+
const content = _stripTemplateExpressions(currentNode.textContent);
|
|
76349
76816
|
if (currentNode.textContent !== content) {
|
|
76350
76817
|
arrayPush(DOMPurify.removed, {
|
|
76351
76818
|
element: currentNode.cloneNode()
|
|
@@ -76380,7 +76847,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76380
76847
|
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
76381
76848
|
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
76382
76849
|
We don't need to check the value; it's always URI safe. */
|
|
76383
|
-
if (ALLOW_DATA_ATTR &&
|
|
76850
|
+
if (ALLOW_DATA_ATTR && regExpTest(DATA_ATTR$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$1, lcName)) ; else if (!nameIsPermitted) {
|
|
76384
76851
|
if (
|
|
76385
76852
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
76386
76853
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -76412,6 +76879,63 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76412
76879
|
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
|
76413
76880
|
return !RESERVED_CUSTOM_ELEMENT_NAMES[stringToLowerCase(tagName)] && regExpTest(CUSTOM_ELEMENT$1, tagName);
|
|
76414
76881
|
};
|
|
76882
|
+
/**
|
|
76883
|
+
* Wrap an attribute value in the matching Trusted Types object when
|
|
76884
|
+
* the active policy requires it. Namespaced attributes pass through
|
|
76885
|
+
* unchanged (no TT support yet, see
|
|
76886
|
+
* https://bugs.chromium.org/p/chromium/issues/detail?id=1305293).
|
|
76887
|
+
*
|
|
76888
|
+
* @param lcTag lowercase tag name of the containing element
|
|
76889
|
+
* @param lcName lowercase attribute name
|
|
76890
|
+
* @param namespaceURI the attribute's namespace, if any
|
|
76891
|
+
* @param value the attribute value to wrap
|
|
76892
|
+
* @return the value, wrapped when Trusted Types demand it
|
|
76893
|
+
*/
|
|
76894
|
+
const _applyTrustedTypesToAttribute = function _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value) {
|
|
76895
|
+
if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function' && !namespaceURI) {
|
|
76896
|
+
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
76897
|
+
case 'TrustedHTML':
|
|
76898
|
+
{
|
|
76899
|
+
return _createTrustedHTML(value);
|
|
76900
|
+
}
|
|
76901
|
+
case 'TrustedScriptURL':
|
|
76902
|
+
{
|
|
76903
|
+
return _createTrustedScriptURL(value);
|
|
76904
|
+
}
|
|
76905
|
+
}
|
|
76906
|
+
}
|
|
76907
|
+
return value;
|
|
76908
|
+
};
|
|
76909
|
+
/**
|
|
76910
|
+
* Write a modified attribute value back onto the element. On
|
|
76911
|
+
* success, re-probe for clobbering introduced by the new value and
|
|
76912
|
+
* remove the element when found; otherwise pop the removal entry
|
|
76913
|
+
* recorded by the earlier _removeAttribute (long-standing pairing
|
|
76914
|
+
* with the SANITIZE_NAMED_PROPS path - do not "fix" casually). On
|
|
76915
|
+
* failure, remove the attribute instead.
|
|
76916
|
+
*
|
|
76917
|
+
* @param currentNode the element carrying the attribute
|
|
76918
|
+
* @param name the attribute name as present on the element
|
|
76919
|
+
* @param namespaceURI the attribute's namespace, if any
|
|
76920
|
+
* @param value the new attribute value
|
|
76921
|
+
*/
|
|
76922
|
+
const _setAttributeValue = function _setAttributeValue(currentNode, name, namespaceURI, value) {
|
|
76923
|
+
try {
|
|
76924
|
+
if (namespaceURI) {
|
|
76925
|
+
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
76926
|
+
} else {
|
|
76927
|
+
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
|
76928
|
+
currentNode.setAttribute(name, value);
|
|
76929
|
+
}
|
|
76930
|
+
if (_isClobbered(currentNode)) {
|
|
76931
|
+
_forceRemove(currentNode);
|
|
76932
|
+
} else {
|
|
76933
|
+
arrayPop(DOMPurify.removed);
|
|
76934
|
+
}
|
|
76935
|
+
} catch (_) {
|
|
76936
|
+
_removeAttribute(name, currentNode);
|
|
76937
|
+
}
|
|
76938
|
+
};
|
|
76415
76939
|
/**
|
|
76416
76940
|
* _sanitizeAttributes
|
|
76417
76941
|
*
|
|
@@ -76438,6 +76962,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76438
76962
|
forceKeepAttr: undefined
|
|
76439
76963
|
};
|
|
76440
76964
|
let l = attributes.length;
|
|
76965
|
+
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
76441
76966
|
/* Go backwards over all attributes; safely remove bad ones */
|
|
76442
76967
|
while (l--) {
|
|
76443
76968
|
const attr = attributes[l];
|
|
@@ -76475,7 +77000,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76475
77000
|
_removeAttribute(name, currentNode);
|
|
76476
77001
|
continue;
|
|
76477
77002
|
}
|
|
76478
|
-
/* Did the hooks
|
|
77003
|
+
/* Did the hooks force-keep the attribute? */
|
|
76479
77004
|
if (hookEvent.forceKeepAttr) {
|
|
76480
77005
|
continue;
|
|
76481
77006
|
}
|
|
@@ -76485,56 +77010,24 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76485
77010
|
continue;
|
|
76486
77011
|
}
|
|
76487
77012
|
/* Work around a security issue in jQuery 3.0 */
|
|
76488
|
-
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(
|
|
77013
|
+
if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value)) {
|
|
76489
77014
|
_removeAttribute(name, currentNode);
|
|
76490
77015
|
continue;
|
|
76491
77016
|
}
|
|
76492
77017
|
/* Sanitize attribute content to be template-safe */
|
|
76493
77018
|
if (SAFE_FOR_TEMPLATES) {
|
|
76494
|
-
|
|
76495
|
-
value = stringReplace(value, expr, ' ');
|
|
76496
|
-
});
|
|
77019
|
+
value = _stripTemplateExpressions(value);
|
|
76497
77020
|
}
|
|
76498
77021
|
/* Is `value` valid for this attribute? */
|
|
76499
|
-
const lcTag = transformCaseFunc(currentNode.nodeName);
|
|
76500
77022
|
if (!_isValidAttribute(lcTag, lcName, value)) {
|
|
76501
77023
|
_removeAttribute(name, currentNode);
|
|
76502
77024
|
continue;
|
|
76503
77025
|
}
|
|
76504
77026
|
/* Handle attributes that require Trusted Types */
|
|
76505
|
-
|
|
76506
|
-
if (namespaceURI) ; else {
|
|
76507
|
-
switch (trustedTypes.getAttributeType(lcTag, lcName)) {
|
|
76508
|
-
case 'TrustedHTML':
|
|
76509
|
-
{
|
|
76510
|
-
value = trustedTypesPolicy.createHTML(value);
|
|
76511
|
-
break;
|
|
76512
|
-
}
|
|
76513
|
-
case 'TrustedScriptURL':
|
|
76514
|
-
{
|
|
76515
|
-
value = trustedTypesPolicy.createScriptURL(value);
|
|
76516
|
-
break;
|
|
76517
|
-
}
|
|
76518
|
-
}
|
|
76519
|
-
}
|
|
76520
|
-
}
|
|
77027
|
+
value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
|
|
76521
77028
|
/* Handle invalid data-* attribute set by try-catching it */
|
|
76522
77029
|
if (value !== initValue) {
|
|
76523
|
-
|
|
76524
|
-
if (namespaceURI) {
|
|
76525
|
-
currentNode.setAttributeNS(namespaceURI, name, value);
|
|
76526
|
-
} else {
|
|
76527
|
-
/* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
|
|
76528
|
-
currentNode.setAttribute(name, value);
|
|
76529
|
-
}
|
|
76530
|
-
if (_isClobbered(currentNode)) {
|
|
76531
|
-
_forceRemove(currentNode);
|
|
76532
|
-
} else {
|
|
76533
|
-
arrayPop(DOMPurify.removed);
|
|
76534
|
-
}
|
|
76535
|
-
} catch (_) {
|
|
76536
|
-
_removeAttribute(name, currentNode);
|
|
76537
|
-
}
|
|
77030
|
+
_setAttributeValue(currentNode, name, namespaceURI, value);
|
|
76538
77031
|
}
|
|
76539
77032
|
}
|
|
76540
77033
|
/* Execute a hook if present */
|
|
@@ -76557,10 +77050,31 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76557
77050
|
_sanitizeElements(shadowNode);
|
|
76558
77051
|
/* Check attributes next */
|
|
76559
77052
|
_sanitizeAttributes(shadowNode);
|
|
76560
|
-
/* Deep shadow DOM detected
|
|
76561
|
-
|
|
77053
|
+
/* Deep shadow DOM detected.
|
|
77054
|
+
Realm-safe check (GHSA-hpcv-96wg-7vj8): use nodeType against the
|
|
77055
|
+
DOCUMENT_FRAGMENT_NODE constant rather than instanceof, so we
|
|
77056
|
+
recurse into <template>.content from foreign realms too. */
|
|
77057
|
+
if (_isDocumentFragment(shadowNode.content)) {
|
|
76562
77058
|
_sanitizeShadowDOM2(shadowNode.content);
|
|
76563
77059
|
}
|
|
77060
|
+
/* An element iterated here may itself host an attached
|
|
77061
|
+
shadow root. The default NodeIterator does not enter shadow
|
|
77062
|
+
trees, so a shadow root nested inside template.content was
|
|
77063
|
+
previously reached by no walk at all (the pre-pass at
|
|
77064
|
+
_sanitizeAttachedShadowRoots descends via childNodes, which
|
|
77065
|
+
doesn't enter template.content; the template-content recursion
|
|
77066
|
+
above iterates the content but never inspected shadowRoot).
|
|
77067
|
+
Walk it explicitly. The nodeType guard avoids reading
|
|
77068
|
+
shadowRoot off text / comment / CDATA / PI nodes that the
|
|
77069
|
+
iterator also surfaces. */
|
|
77070
|
+
const shadowNodeType = getNodeType ? getNodeType(shadowNode) : shadowNode.nodeType;
|
|
77071
|
+
if (shadowNodeType === NODE_TYPE.element) {
|
|
77072
|
+
const innerSr = getShadowRoot(shadowNode);
|
|
77073
|
+
if (_isDocumentFragment(innerSr)) {
|
|
77074
|
+
_sanitizeAttachedShadowRoots(innerSr);
|
|
77075
|
+
_sanitizeShadowDOM2(innerSr);
|
|
77076
|
+
}
|
|
77077
|
+
}
|
|
76564
77078
|
}
|
|
76565
77079
|
/* Execute a hook if present */
|
|
76566
77080
|
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
@@ -76584,28 +77098,83 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76584
77098
|
*
|
|
76585
77099
|
* @param root the subtree root to walk for attached shadow roots
|
|
76586
77100
|
*/
|
|
76587
|
-
const
|
|
76588
|
-
|
|
76589
|
-
|
|
76590
|
-
|
|
76591
|
-
|
|
76592
|
-
|
|
76593
|
-
|
|
76594
|
-
|
|
76595
|
-
|
|
76596
|
-
|
|
76597
|
-
|
|
76598
|
-
|
|
76599
|
-
|
|
76600
|
-
|
|
76601
|
-
|
|
76602
|
-
|
|
76603
|
-
const
|
|
76604
|
-
|
|
76605
|
-
|
|
76606
|
-
}
|
|
76607
|
-
|
|
76608
|
-
|
|
77101
|
+
const _sanitizeAttachedShadowRoots = function _sanitizeAttachedShadowRoots(root) {
|
|
77102
|
+
/* Iterative (explicit stack) rather than per-child recursion. DOM APIs
|
|
77103
|
+
impose no depth cap, so an attacker-shaped tree (JSON/CRDT/editor data
|
|
77104
|
+
built straight into the DOM — the IN_PLACE surface) deeper than the JS
|
|
77105
|
+
call-stack budget would otherwise overflow native recursion here and
|
|
77106
|
+
throw at the IN_PLACE entry pre-pass, before a single node is
|
|
77107
|
+
sanitized, leaving the caller's live tree untouched (fail-open). See
|
|
77108
|
+
campaign-3 F4. A heap stack keeps depth off the call stack.
|
|
77109
|
+
Each work item is either a node to descend into, or a deferred
|
|
77110
|
+
`_sanitizeShadowDOM` for an already-walked shadow root. The deferred
|
|
77111
|
+
form preserves the original post-order discipline: a shadow root's
|
|
77112
|
+
nested shadow roots are discovered before the outer shadow is
|
|
77113
|
+
sanitized (which may remove hosts). Pushes are in reverse of the
|
|
77114
|
+
desired processing order (LIFO): template content, then children, then
|
|
77115
|
+
the shadow-sanitize, then the shadow walk — so the order matches the
|
|
77116
|
+
previous recursion exactly. */
|
|
77117
|
+
const stack = [{
|
|
77118
|
+
node: root,
|
|
77119
|
+
shadow: null
|
|
77120
|
+
}];
|
|
77121
|
+
while (stack.length > 0) {
|
|
77122
|
+
const item = stack.pop();
|
|
77123
|
+
/* Deferred shadow-DOM sanitisation: runs after its subtree was walked. */
|
|
77124
|
+
if (item.shadow) {
|
|
77125
|
+
_sanitizeShadowDOM2(item.shadow);
|
|
77126
|
+
continue;
|
|
77127
|
+
}
|
|
77128
|
+
const node = item.node;
|
|
77129
|
+
const nodeType = getNodeType ? getNodeType(node) : node.nodeType;
|
|
77130
|
+
const isElement = nodeType === NODE_TYPE.element;
|
|
77131
|
+
/* (pushed last → processed first) Children, snapshotted in reverse so
|
|
77132
|
+
the first child is processed first. Snapshotting matters because a
|
|
77133
|
+
hook may detach siblings mid-walk. */
|
|
77134
|
+
const childNodes = getChildNodes(node);
|
|
77135
|
+
if (childNodes) {
|
|
77136
|
+
for (let i = childNodes.length - 1; i >= 0; --i) {
|
|
77137
|
+
stack.push({
|
|
77138
|
+
node: childNodes[i],
|
|
77139
|
+
shadow: null
|
|
77140
|
+
});
|
|
77141
|
+
}
|
|
77142
|
+
}
|
|
77143
|
+
/* (pushed before children → processed after them, matching the old
|
|
77144
|
+
"template content last" order) When the node is a <template>,
|
|
77145
|
+
descend into its content. */
|
|
77146
|
+
if (isElement) {
|
|
77147
|
+
const rootName = getNodeName ? getNodeName(node) : null;
|
|
77148
|
+
if (typeof rootName === 'string' && transformCaseFunc(rootName) === 'template') {
|
|
77149
|
+
const content = node.content;
|
|
77150
|
+
if (_isDocumentFragment(content)) {
|
|
77151
|
+
stack.push({
|
|
77152
|
+
node: content,
|
|
77153
|
+
shadow: null
|
|
77154
|
+
});
|
|
77155
|
+
}
|
|
77156
|
+
}
|
|
77157
|
+
}
|
|
77158
|
+
/* Shadow root (processed first): walk its subtree, then sanitise it.
|
|
77159
|
+
Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
|
|
77160
|
+
rather than `instanceof DocumentFragment`, which is realm-bound and
|
|
77161
|
+
silently skipped foreign-realm shadow roots (e.g.
|
|
77162
|
+
iframe.contentDocument attachShadow). */
|
|
77163
|
+
if (isElement) {
|
|
77164
|
+
const sr = getShadowRoot(node);
|
|
77165
|
+
if (_isDocumentFragment(sr)) {
|
|
77166
|
+
/* Push the deferred sanitise first so it pops after the shadow
|
|
77167
|
+
walk we push next, i.e. nested shadow roots are discovered
|
|
77168
|
+
before this one is sanitised. */
|
|
77169
|
+
stack.push({
|
|
77170
|
+
node: null,
|
|
77171
|
+
shadow: sr
|
|
77172
|
+
}, {
|
|
77173
|
+
node: sr,
|
|
77174
|
+
shadow: null
|
|
77175
|
+
});
|
|
77176
|
+
}
|
|
77177
|
+
}
|
|
76609
77178
|
}
|
|
76610
77179
|
};
|
|
76611
77180
|
// eslint-disable-next-line complexity
|
|
@@ -76639,22 +77208,50 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76639
77208
|
}
|
|
76640
77209
|
/* Clean up removed elements */
|
|
76641
77210
|
DOMPurify.removed = [];
|
|
76642
|
-
/*
|
|
76643
|
-
|
|
76644
|
-
|
|
76645
|
-
|
|
76646
|
-
|
|
76647
|
-
|
|
76648
|
-
|
|
77211
|
+
/* Resolve IN_PLACE for this call without mutating persistent config.
|
|
77212
|
+
Writing the IN_PLACE closure variable here leaks under setConfig(),
|
|
77213
|
+
where _parseConfig is skipped on later calls: a single string call would
|
|
77214
|
+
disable in-place mode for every subsequent node call, returning a
|
|
77215
|
+
sanitized copy while leaving the caller's node — which in-place callers
|
|
77216
|
+
keep using and whose return value they ignore — unsanitized. REPORT-2. */
|
|
77217
|
+
const inPlace = IN_PLACE && typeof dirty !== 'string' && _isNode(dirty);
|
|
77218
|
+
if (inPlace) {
|
|
77219
|
+
/* Do some early pre-sanitization to avoid unsafe root nodes.
|
|
77220
|
+
Read nodeName through the cached prototype getter — a clobbering
|
|
77221
|
+
child named "nodeName" on the form root would otherwise shadow
|
|
77222
|
+
the property and let this check skip the root-allowlist
|
|
77223
|
+
validation entirely. */
|
|
77224
|
+
const nn = getNodeName ? getNodeName(dirty) : dirty.nodeName;
|
|
76649
77225
|
if (typeof nn === 'string') {
|
|
76650
77226
|
const tagName = transformCaseFunc(nn);
|
|
76651
77227
|
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
76652
77228
|
throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
|
|
76653
77229
|
}
|
|
76654
77230
|
}
|
|
77231
|
+
/* Pre-flight the root through _isClobbered. The iterator-driven
|
|
77232
|
+
removal path can not detach a parent-less root: _forceRemove
|
|
77233
|
+
falls through to Element.prototype.remove(), which per spec
|
|
77234
|
+
is a no-op on a node with no parent. A clobbered root would
|
|
77235
|
+
then survive the main loop with its attributes uninspected,
|
|
77236
|
+
because _sanitizeAttributes early-returns on _isClobbered. The
|
|
77237
|
+
result would be an attacker-controlled form, complete with any
|
|
77238
|
+
event-handler attributes the caller passed in, handed back to
|
|
77239
|
+
the application unsanitized. Refuse to sanitize such a root
|
|
77240
|
+
the same way we refuse a forbidden tag. GHSA-r47g-fvhr-h676. */
|
|
77241
|
+
if (_isClobbered(dirty)) {
|
|
77242
|
+
throw typeErrorCreate('root node is clobbered and cannot be sanitized in-place');
|
|
77243
|
+
}
|
|
76655
77244
|
/* Sanitize attached shadow roots before the main iterator runs.
|
|
76656
|
-
The iterator does not descend into shadow trees.
|
|
76657
|
-
|
|
77245
|
+
The iterator does not descend into shadow trees. Same fail-closed
|
|
77246
|
+
barrier as the main walk (campaign-3 F2): a custom-element reaction
|
|
77247
|
+
inside a shadow root could abort this pre-pass before the walk runs,
|
|
77248
|
+
which would otherwise leave the entire live tree unsanitized. */
|
|
77249
|
+
try {
|
|
77250
|
+
_sanitizeAttachedShadowRoots(dirty);
|
|
77251
|
+
} catch (error) {
|
|
77252
|
+
_neutralizeRoot(dirty);
|
|
77253
|
+
throw error;
|
|
77254
|
+
}
|
|
76658
77255
|
} else if (_isNode(dirty)) {
|
|
76659
77256
|
/* If dirty is a DOM element, append to an empty document to avoid
|
|
76660
77257
|
elements being stripped by the parser */
|
|
@@ -76671,14 +77268,16 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76671
77268
|
}
|
|
76672
77269
|
/* Clonable shadow roots are deep-cloned by importNode(); sanitize
|
|
76673
77270
|
them before the main iterator runs, since the iterator does not
|
|
76674
|
-
descend into shadow trees.
|
|
76675
|
-
|
|
77271
|
+
descend into shadow trees. The walk routes every read through a
|
|
77272
|
+
cached prototype getter so clobbering descendants on a form root
|
|
77273
|
+
cannot hide a shadow host from this pass. */
|
|
77274
|
+
_sanitizeAttachedShadowRoots(importedNode);
|
|
76676
77275
|
} else {
|
|
76677
77276
|
/* Exit directly if we have nothing to do */
|
|
76678
77277
|
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
|
|
76679
77278
|
// eslint-disable-next-line unicorn/prefer-includes
|
|
76680
77279
|
dirty.indexOf('<') === -1) {
|
|
76681
|
-
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ?
|
|
77280
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(dirty) : dirty;
|
|
76682
77281
|
}
|
|
76683
77282
|
/* Initialize the document to work on */
|
|
76684
77283
|
body = _initDocument(dirty);
|
|
@@ -76692,29 +77291,59 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76692
77291
|
_forceRemove(body.firstChild);
|
|
76693
77292
|
}
|
|
76694
77293
|
/* Get node iterator */
|
|
76695
|
-
const nodeIterator = _createNodeIterator(
|
|
76696
|
-
/* Now start iterating over the created document
|
|
76697
|
-
|
|
76698
|
-
|
|
76699
|
-
|
|
76700
|
-
|
|
76701
|
-
|
|
76702
|
-
|
|
76703
|
-
|
|
76704
|
-
|
|
77294
|
+
const nodeIterator = _createNodeIterator(inPlace ? dirty : body);
|
|
77295
|
+
/* Now start iterating over the created document.
|
|
77296
|
+
The walk runs inside an exception barrier (campaign-3 F2): a re-entrant
|
|
77297
|
+
engine/custom-element mutation can detach a node mid-walk so
|
|
77298
|
+
`_forceRemove`'s parentless guard throws, aborting the loop. Without the
|
|
77299
|
+
barrier the caller's in-place tree would be left half-sanitized with the
|
|
77300
|
+
unvisited tail still armed. On any throw we fail closed — strip the
|
|
77301
|
+
in-place root bare — then rethrow so the existing throw contract is
|
|
77302
|
+
preserved. (String/DOM-copy paths never return the partial body, so the
|
|
77303
|
+
propagating throw is already fail-closed there.) */
|
|
77304
|
+
try {
|
|
77305
|
+
while (currentNode = nodeIterator.nextNode()) {
|
|
77306
|
+
/* Sanitize tags and elements */
|
|
77307
|
+
_sanitizeElements(currentNode);
|
|
77308
|
+
/* Check attributes next */
|
|
77309
|
+
_sanitizeAttributes(currentNode);
|
|
77310
|
+
/* Shadow DOM detected, sanitize it.
|
|
77311
|
+
Realm-safe check (GHSA-hpcv-96wg-7vj8): nodeType-based detection
|
|
77312
|
+
instead of instanceof, so foreign-realm <template>.content is
|
|
77313
|
+
walked correctly. */
|
|
77314
|
+
if (_isDocumentFragment(currentNode.content)) {
|
|
77315
|
+
_sanitizeShadowDOM2(currentNode.content);
|
|
77316
|
+
}
|
|
77317
|
+
}
|
|
77318
|
+
} catch (error) {
|
|
77319
|
+
if (inPlace) {
|
|
77320
|
+
_neutralizeRoot(dirty);
|
|
76705
77321
|
}
|
|
77322
|
+
throw error;
|
|
76706
77323
|
}
|
|
76707
77324
|
/* If we sanitized `dirty` in-place, return it. */
|
|
76708
|
-
if (
|
|
77325
|
+
if (inPlace) {
|
|
77326
|
+
/* Fail-closed completion of the audit-5 F1 fix: every node removed from
|
|
77327
|
+
the caller's live tree is detached but may still hold a queued
|
|
77328
|
+
resource-event handler that fires in page scope after we return. The
|
|
77329
|
+
move-hoist covers only disallowed-tag KEEP_CONTENT removals; strip the
|
|
77330
|
+
non-allow-listed attributes off every other removed subtree (clobber,
|
|
77331
|
+
mXSS, namespace, comments, KEEP_CONTENT:false, …) so those handlers are
|
|
77332
|
+
cancelled before any event can fire. Runs synchronously, pre-return. */
|
|
77333
|
+
arrayForEach(DOMPurify.removed, entry => {
|
|
77334
|
+
if (entry.element) {
|
|
77335
|
+
_neutralizeSubtree(entry.element);
|
|
77336
|
+
}
|
|
77337
|
+
});
|
|
76709
77338
|
if (SAFE_FOR_TEMPLATES) {
|
|
76710
|
-
|
|
77339
|
+
_scrubTemplateExpressions2(dirty);
|
|
76711
77340
|
}
|
|
76712
77341
|
return dirty;
|
|
76713
77342
|
}
|
|
76714
77343
|
/* Return sanitized string or DOM */
|
|
76715
77344
|
if (RETURN_DOM) {
|
|
76716
77345
|
if (SAFE_FOR_TEMPLATES) {
|
|
76717
|
-
|
|
77346
|
+
_scrubTemplateExpressions2(body);
|
|
76718
77347
|
}
|
|
76719
77348
|
if (RETURN_DOM_FRAGMENT) {
|
|
76720
77349
|
returnNode = createDocumentFragment.call(body.ownerDocument);
|
|
@@ -76744,11 +77373,9 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76744
77373
|
}
|
|
76745
77374
|
/* Sanitize final string template-safe */
|
|
76746
77375
|
if (SAFE_FOR_TEMPLATES) {
|
|
76747
|
-
|
|
76748
|
-
serializedHTML = stringReplace(serializedHTML, expr, ' ');
|
|
76749
|
-
});
|
|
77376
|
+
serializedHTML = _stripTemplateExpressions(serializedHTML);
|
|
76750
77377
|
}
|
|
76751
|
-
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ?
|
|
77378
|
+
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? _createTrustedHTML(serializedHTML) : serializedHTML;
|
|
76752
77379
|
};
|
|
76753
77380
|
DOMPurify.setConfig = function () {
|
|
76754
77381
|
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -76758,6 +77385,12 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76758
77385
|
DOMPurify.clearConfig = function () {
|
|
76759
77386
|
CONFIG = null;
|
|
76760
77387
|
SET_CONFIG = false;
|
|
77388
|
+
// Drop any caller-supplied Trusted Types policy so it cannot poison later
|
|
77389
|
+
// `RETURN_TRUSTED_TYPE` output. The internal default policy (cached, and
|
|
77390
|
+
// never recreated — Trusted Types throws on duplicate names) is restored by
|
|
77391
|
+
// the next `_parseConfig`. See GHSA-vxr8-fq34-vvx9.
|
|
77392
|
+
trustedTypesPolicy = defaultTrustedTypesPolicy;
|
|
77393
|
+
emptyHTML = '';
|
|
76761
77394
|
};
|
|
76762
77395
|
DOMPurify.isValidAttribute = function (tag, attr, value) {
|
|
76763
77396
|
/* Initialize shared config vars if necessary. */
|
|
@@ -93291,7 +93924,7 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
93291
93924
|
this.options = null;
|
|
93292
93925
|
}
|
|
93293
93926
|
buildOptions(selectedItems) {
|
|
93294
|
-
var _a, _b;
|
|
93927
|
+
var _a, _b, _c, _d;
|
|
93295
93928
|
if (selectedItems && selectedItems.length > 0) {
|
|
93296
93929
|
return selectedItems;
|
|
93297
93930
|
}
|
|
@@ -93304,6 +93937,11 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
93304
93937
|
}
|
|
93305
93938
|
const options = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.options;
|
|
93306
93939
|
if (Array.isArray(options)) {
|
|
93940
|
+
if ((_d = (_c = this.fieldDescriptor) === null || _c === void 0 ? void 0 : _c.properties) === null || _d === void 0 ? void 0 : _d.switchLabelsAndValues) {
|
|
93941
|
+
return options.map((option) => {
|
|
93942
|
+
return { label: option.label, value: option.value, check: true };
|
|
93943
|
+
});
|
|
93944
|
+
}
|
|
93307
93945
|
return options.map((option) => {
|
|
93308
93946
|
return { label: option.value, value: option.value, check: true };
|
|
93309
93947
|
});
|