@plumile/ui 0.1.185 → 0.1.188
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/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js +1 -1
- package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +4 -2
- package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +1 -3
- package/lib/esm/atomic/atoms/badge/badge.css.js +7 -7
- package/lib/esm/atomic/atoms/button/button.css.js +38 -38
- package/lib/esm/atomic/atoms/checkbox/checkbox.css.js +6 -6
- package/lib/esm/atomic/atoms/error_message/errorMessage.css.js +1 -1
- package/lib/esm/atomic/atoms/input/input.css.js +9 -9
- package/lib/esm/atomic/atoms/label/label.css.js +3 -3
- package/lib/esm/atomic/atoms/modal/Modal.js +1 -1
- package/lib/esm/atomic/atoms/modal/modal.css.js +1 -1
- package/lib/esm/atomic/atoms/overlay/overlay.css.js +1 -1
- package/lib/esm/atomic/atoms/textarea/textarea.css.js +8 -8
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuPopover.js +1 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/breadcrumbNavigation.css.js +1 -1
- package/lib/esm/atomic/molecules/checkbox_field/checkboxField.css.js +1 -1
- package/lib/esm/atomic/molecules/dropdown/Dropdown.js +75 -95
- package/lib/esm/atomic/molecules/dropdown/Dropdown.js.map +1 -1
- package/lib/esm/atomic/molecules/dropdown/dropdown.css.js +1 -1
- package/lib/esm/atomic/molecules/empty-state/EmptyState.css.js +17 -17
- package/lib/esm/atomic/molecules/form/formStyles.css.js +1 -1
- package/lib/esm/atomic/molecules/form_error/formError.css.js +1 -1
- package/lib/esm/atomic/molecules/form_field/formField.css.js +1 -1
- package/lib/esm/atomic/molecules/form_field_layout/FormFieldLayout.js +55 -0
- package/lib/esm/atomic/molecules/form_field_layout/FormFieldLayout.js.map +1 -0
- package/lib/esm/atomic/molecules/form_field_layout/formFieldLayout.css.js +8 -0
- package/lib/esm/atomic/molecules/form_field_layout/formFieldLayout.css.js.map +1 -0
- package/lib/esm/atomic/molecules/form_grid/FormGrid.css.js +11 -2
- package/lib/esm/atomic/molecules/form_grid/FormGrid.css.js.map +1 -1
- package/lib/esm/atomic/molecules/form_grid/FormGrid.js +10 -6
- package/lib/esm/atomic/molecules/form_grid/FormGrid.js.map +1 -1
- package/lib/esm/atomic/molecules/highlight/HighlightCode.css.js +1 -1
- package/lib/esm/atomic/molecules/highlight/highlightStyles.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/LazyMarkdownRenderer.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/LazyMarkdownRenderer.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownBlockquote.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownCodeCopyButton.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnoteDefinition.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnotesSection.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownHeading.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownHtmlFallback.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownImage.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownInlineCode.css.js +1 -2
- package/lib/esm/atomic/molecules/markdown/components/MarkdownInlineCode.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownLink.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownList.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownMark.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownMermaidBlock.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTable.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCaption.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableHead.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableHeaderCell.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTaskListItem.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownText.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownThematicBreak.css.js +1 -1
- package/lib/esm/atomic/molecules/tabs/tabs.css.js +14 -14
- package/lib/esm/atomic/molecules/toast/ToastViewport.js +3 -1
- package/lib/esm/atomic/molecules/toast/ToastViewport.js.map +1 -1
- package/lib/esm/atomic/molecules/toast/toast.css.js +2 -2
- package/lib/esm/atomic/organisms/login_form/loginForm.css.js +1 -1
- package/lib/esm/atomic/organisms/sidebar/SidebarContainer.js +1 -1
- package/lib/esm/atomic/organisms/sidebar/navigationSidebar.css.js +7 -7
- package/lib/esm/atomic/organisms/sidebar/sidebar.css.js +2 -2
- package/lib/esm/atomic/templates/auth_layout/authLayout.css.js +1 -1
- package/lib/esm/atomic/templates/page-container/pageContainer.css.js +1 -1
- package/lib/esm/backoffice/atoms/copyable_text/copyableText.css.js +1 -1
- package/lib/esm/backoffice/atoms/shortcut_hint/shortcutHint.css.js +1 -1
- package/lib/esm/backoffice/atoms/status_badge/statusBadge.css.js +1 -1
- package/lib/esm/backoffice/atoms/tag/tag.css.js +7 -7
- package/lib/esm/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js +3 -3
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_key_value_section/backofficeKeyValueSection.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.js +2 -2
- package/lib/esm/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_payload_section/backofficePayloadSection.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_picker/backofficePicker.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js +3 -3
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_sticky_disclosure/BackofficeStickyDisclosure.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_sticky_disclosure/backofficeStickyDisclosure.css.js +4 -4
- package/lib/esm/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.js +2 -2
- package/lib/esm/backoffice/molecules/backoffice_tool_call_frame/BackofficeToolCallFrame.js +2 -2
- package/lib/esm/backoffice/molecules/backoffice_tool_call_frame/backofficeToolCallFrame.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.js +6 -6
- package/lib/esm/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.js +2 -2
- package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js +1 -1
- package/lib/esm/backoffice/molecules/filter_chip_row/filterChipRow.css.js +1 -1
- package/lib/esm/backoffice/molecules/global_search_input/globalSearchInput.css.js +1 -1
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +2 -2
- package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js +1 -1
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js +2 -2
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js +5 -5
- package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js +3 -3
- package/lib/esm/backoffice/organisms/entity_header/entityHeader.css.js +1 -1
- package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js +1 -1
- package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js +4 -4
- package/lib/esm/backoffice/templates/list_page_template/listPageTemplate.css.js +1 -1
- package/lib/esm/components/agent/AgentMarkdownCard.css.js +1 -1
- package/lib/esm/components/charts/metricHistoryChart.css.js +1 -1
- package/lib/esm/components/charts/timeSeriesLineChart.css.js +1 -1
- package/lib/esm/components/dashboard/activity_card/ActivityCard.css.js +1 -1
- package/lib/esm/components/dashboard/activity_card/ActivityCard.js +2 -2
- package/lib/esm/components/dashboard/dashboard_grid/DashboardGrid.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_operational/DashboardEntitySpotlight.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_operational/DashboardEntitySpotlight.js +2 -2
- package/lib/esm/components/dashboard/dashboard_operational/DashboardHealthMatrix.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_operational/DashboardItemList.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_operational/DashboardItemList.js +1 -1
- package/lib/esm/components/dashboard/dashboard_operational/DashboardLinkedSurface.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_operational/DashboardProgressBar.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_operational/DashboardSlaGauge.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_operational/DashboardToneBadge.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_operational/DashboardTrendMetric.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_operational/DashboardTrendMetric.js +1 -1
- package/lib/esm/components/dashboard/dashboard_operational/DashboardWindowControl.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.css.js +1 -1
- package/lib/esm/components/dashboard/metadata_strip/MetadataStrip.css.js +1 -1
- package/lib/esm/components/dashboard/metric_card/MetricCard.css.js +2 -2
- package/lib/esm/components/dashboard/metric_card/MetricCard.js +2 -2
- package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.css.js +1 -1
- package/lib/esm/components/dashboard/page_hero/PageHero.css.js +1 -1
- package/lib/esm/components/dashboard/page_hero/PageHero.js +2 -2
- package/lib/esm/components/dashboard/selectable_card/SelectableCard.css.js +1 -1
- package/lib/esm/components/dashboard/selectable_card/SelectableCard.js +1 -1
- package/lib/esm/components/dashboard/status_summary_panel/StatusSummaryPanel.css.js +1 -1
- package/lib/esm/components/dashboard/status_summary_panel/StatusSummaryPanel.js +1 -1
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.css.js +2 -2
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.js +7 -7
- package/lib/esm/components/data-table/DataTable.css.js +23 -23
- package/lib/esm/components/data-table/DataTable.js +1 -1
- package/lib/esm/components/data-table/ResponsiveRecordList.css.js +5 -5
- package/lib/esm/components/data-table/TableCell.css.js +2 -2
- package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js +1 -1
- package/lib/esm/components/feedback/OperationFeedback.css.js +1 -1
- package/lib/esm/components/feedback/inlineBanner.css.js +6 -6
- package/lib/esm/components/infinite/InfiniteScrollTrigger.js +1 -1
- package/lib/esm/components/infinite/infiniteScrollTrigger.css.js +1 -1
- package/lib/esm/components/layout/ActionPanel.css.js +1 -1
- package/lib/esm/components/layout/ActionPanel.js +1 -1
- package/lib/esm/components/layout/AppHeader.css.js +1 -1
- package/lib/esm/components/layout/AppHeader.js +2 -2
- package/lib/esm/components/layout/ContentLayout.css.js +1 -1
- package/lib/esm/components/layout/DetailSummaryHeader.css.js +1 -1
- package/lib/esm/components/layout/DetailSummaryHeader.js +2 -2
- package/lib/esm/components/layout/PageShell.css.js +1 -1
- package/lib/esm/components/layout/PageShell.js +4 -4
- package/lib/esm/components/layout/ResizableSplitView.css.js +1 -1
- package/lib/esm/components/layout/ResizableSplitView.js +1 -1
- package/lib/esm/components/layout/SettingsLayout.css.js +1 -1
- package/lib/esm/components/layout/Surface.css.js +9 -9
- package/lib/esm/components/layout/Surface.js +2 -2
- package/lib/esm/components/layout/toolbar/Toolbar.css.js +3 -3
- package/lib/esm/components/layout/top_navigation_shell/TopNavigationShell.css.js +3 -3
- package/lib/esm/components/media/imagePreviewModal.css.js +5 -5
- package/lib/esm/components/navigation/sidebar/SidebarNavigation.js +1 -1
- package/lib/esm/components/navigation/sidebar/sidebarNavigation.css.js +1 -1
- package/lib/esm/components/responsive/ResponsiveCollectionRenderer.css.js +1 -1
- package/lib/esm/components/routing/routeFallback.css.js +1 -1
- package/lib/esm/components/routing/routePendingBar.css.js +1 -1
- package/lib/esm/components/select/SimpleSelect.css.js +13 -13
- package/lib/esm/components/select/SimpleSelect.css.js.map +1 -1
- package/lib/esm/components/select/SimpleSelect.js +141 -96
- package/lib/esm/components/select/SimpleSelect.js.map +1 -1
- package/lib/esm/components/tile/InfoTile.css.js +1 -1
- package/lib/esm/components/tile/InfoTile.js +1 -1
- package/lib/esm/index.js +245 -244
- package/lib/esm/node_modules/dompurify/dist/purify.es.js +127 -125
- package/lib/esm/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/lib/esm/shared/anchoredFloatingPosition.js +27 -0
- package/lib/esm/shared/anchoredFloatingPosition.js.map +1 -0
- package/lib/esm/style.css +1 -1
- package/lib/esm/theme/accessibility.css.js +1 -1
- package/lib/esm/theme/sprinkles.css.js +8252 -8216
- package/lib/esm/theme/sprinkles.css.js.map +1 -1
- package/lib/esm/theme/styleRecipes.css.js +7 -7
- package/lib/types/atomic/molecules/dropdown/Dropdown.d.ts +2 -1
- package/lib/types/atomic/molecules/dropdown/Dropdown.d.ts.map +1 -1
- package/lib/types/atomic/molecules/form_field_layout/FormFieldLayout.d.ts +20 -0
- package/lib/types/atomic/molecules/form_field_layout/FormFieldLayout.d.ts.map +1 -0
- package/lib/types/atomic/molecules/form_field_layout/formFieldLayout.css.d.ts +8 -0
- package/lib/types/atomic/molecules/form_field_layout/formFieldLayout.css.d.ts.map +1 -0
- package/lib/types/atomic/molecules/form_grid/FormGrid.css.d.ts +6 -1
- package/lib/types/atomic/molecules/form_grid/FormGrid.css.d.ts.map +1 -1
- package/lib/types/atomic/molecules/form_grid/FormGrid.d.ts +2 -1
- package/lib/types/atomic/molecules/form_grid/FormGrid.d.ts.map +1 -1
- package/lib/types/atomic/molecules/toast/ToastViewport.d.ts +1 -0
- package/lib/types/atomic/molecules/toast/ToastViewport.d.ts.map +1 -1
- package/lib/types/components/select/SimpleSelect.css.d.ts.map +1 -1
- package/lib/types/components/select/SimpleSelect.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/anchoredFloatingPosition.d.ts +23 -0
- package/lib/types/shared/anchoredFloatingPosition.d.ts.map +1 -0
- package/lib/types/theme/sprinkles.css.d.ts +28 -28
- package/package.json +3 -3
|
@@ -251,7 +251,7 @@ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
251
251
|
};
|
|
252
252
|
function Ue() {
|
|
253
253
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Be(), t = (e) => Ue(e);
|
|
254
|
-
if (t.version = "3.4.
|
|
254
|
+
if (t.version = "3.4.11", t.removed = [], !e || !e.document || e.document.nodeType !== A.document || !e.Element) return t.isSupported = !1, t;
|
|
255
255
|
let n = e.document, r = n, i = r.currentScript;
|
|
256
256
|
e.DocumentFragment;
|
|
257
257
|
let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
|
|
@@ -324,14 +324,14 @@ function Ue() {
|
|
|
324
324
|
enumerable: !0,
|
|
325
325
|
value: null
|
|
326
326
|
}
|
|
327
|
-
})), ht = !0, gt = !0, _t = !1, vt = !0, B = !1, yt = !0, V = !1, bt = !1, xt = !1, H = !1,
|
|
327
|
+
})), ht = !0, gt = !0, _t = !1, vt = !0, B = !1, yt = !0, V = !1, bt = !1, xt = null, St = null, Ct = !1, H = !1, wt = !1, Tt = !1, Et = !0, Dt = !1, Ot = "user-content-", kt = !0, At = !1, U = {}, W = null, jt = E({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Mt = null, Nt = E({}, [
|
|
328
328
|
"audio",
|
|
329
329
|
"video",
|
|
330
330
|
"img",
|
|
331
331
|
"source",
|
|
332
332
|
"image",
|
|
333
333
|
"track"
|
|
334
|
-
]),
|
|
334
|
+
]), Pt = null, Ft = E({}, [
|
|
335
335
|
"alt",
|
|
336
336
|
"class",
|
|
337
337
|
"for",
|
|
@@ -346,36 +346,36 @@ function Ue() {
|
|
|
346
346
|
"value",
|
|
347
347
|
"style",
|
|
348
348
|
"xmlns"
|
|
349
|
-
]),
|
|
350
|
-
|
|
351
|
-
|
|
349
|
+
]), It = "http://www.w3.org/1998/Math/MathML", Lt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, Rt = !1, zt = null, Bt = E({}, [
|
|
350
|
+
It,
|
|
351
|
+
Lt,
|
|
352
352
|
G
|
|
353
|
-
], oe),
|
|
353
|
+
], oe), Vt = d([
|
|
354
354
|
"mi",
|
|
355
355
|
"mo",
|
|
356
356
|
"mn",
|
|
357
357
|
"ms",
|
|
358
358
|
"mtext"
|
|
359
|
-
]),
|
|
359
|
+
]), Ht = E({}, Vt), Ut = d(["annotation-xml"]), Wt = E({}, Ut), Gt = E({}, [
|
|
360
360
|
"title",
|
|
361
361
|
"style",
|
|
362
362
|
"font",
|
|
363
363
|
"a",
|
|
364
364
|
"script"
|
|
365
|
-
]),
|
|
365
|
+
]), Kt = null, qt = ["application/xhtml+xml", "text/html"], q = null, J = null, Jt = n.createElement("form"), Yt = function(e) {
|
|
366
366
|
return e instanceof RegExp || e instanceof Function;
|
|
367
|
-
},
|
|
367
|
+
}, Xt = function() {
|
|
368
368
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
369
|
-
if (
|
|
370
|
-
(!e || typeof e != "object") && (e = {}), e = O(e),
|
|
371
|
-
transform:
|
|
369
|
+
if (J && J === e) return;
|
|
370
|
+
(!e || typeof e != "object") && (e = {}), e = O(e), Kt = qt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, q = Kt === "application/xhtml+xml" ? oe : ae, I = j(e, "ALLOWED_TAGS", dt, { transform: q }), L = j(e, "ALLOWED_ATTR", ft, { transform: q }), zt = j(e, "ALLOWED_NAMESPACES", Bt, { transform: oe }), Pt = j(e, "ADD_URI_SAFE_ATTR", Ft, {
|
|
371
|
+
transform: q,
|
|
372
|
+
base: Ft
|
|
373
|
+
}), Mt = j(e, "ADD_DATA_URI_TAGS", Nt, {
|
|
374
|
+
transform: q,
|
|
372
375
|
base: Nt
|
|
373
|
-
}),
|
|
374
|
-
transform: J,
|
|
375
|
-
base: jt
|
|
376
|
-
}), W = j(e, "FORBID_CONTENTS", kt, { transform: J }), pt = j(e, "FORBID_TAGS", O({}), { transform: J }), mt = j(e, "FORBID_ATTR", O({}), { transform: J }), U = b(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? O(e.USE_PROFILES) : e.USE_PROFILES : !1, ht = e.ALLOW_ARIA_ATTR !== !1, gt = e.ALLOW_DATA_ATTR !== !1, _t = e.ALLOW_UNKNOWN_PROTOCOLS || !1, vt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, yt = e.SAFE_FOR_XML !== !1, V = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, St = e.RETURN_DOM_FRAGMENT || !1, Ct = e.RETURN_TRUSTED_TYPE || !1, xt = e.FORCE_BODY || !1, wt = e.SANITIZE_DOM !== !1, Tt = e.SANITIZE_NAMED_PROPS || !1, Dt = e.KEEP_CONTENT !== !1, Ot = e.IN_PLACE || !1, ut = me(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : je, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, Bt = b(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? O(e.MATHML_TEXT_INTEGRATION_POINTS) : E({}, zt), Ht = b(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? O(e.HTML_INTEGRATION_POINTS) : E({}, Vt);
|
|
376
|
+
}), W = j(e, "FORBID_CONTENTS", jt, { transform: q }), pt = j(e, "FORBID_TAGS", O({}), { transform: q }), mt = j(e, "FORBID_ATTR", O({}), { transform: q }), U = b(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? O(e.USE_PROFILES) : e.USE_PROFILES : !1, ht = e.ALLOW_ARIA_ATTR !== !1, gt = e.ALLOW_DATA_ATTR !== !1, _t = e.ALLOW_UNKNOWN_PROTOCOLS || !1, vt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, yt = e.SAFE_FOR_XML !== !1, V = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, wt = e.RETURN_DOM_FRAGMENT || !1, Tt = e.RETURN_TRUSTED_TYPE || !1, Ct = e.FORCE_BODY || !1, Et = e.SANITIZE_DOM !== !1, Dt = e.SANITIZE_NAMED_PROPS || !1, kt = e.KEEP_CONTENT !== !1, At = e.IN_PLACE || !1, ut = me(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : je, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, Ht = b(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? O(e.MATHML_TEXT_INTEGRATION_POINTS) : E({}, Vt), Wt = b(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? O(e.HTML_INTEGRATION_POINTS) : E({}, Ut);
|
|
377
377
|
let t = b(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? O(e.CUSTOM_ELEMENT_HANDLING) : p(null);
|
|
378
|
-
if (R = p(null), b(t, "tagNameCheck") &&
|
|
378
|
+
if (R = p(null), b(t, "tagNameCheck") && Yt(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), b(t, "attributeNameCheck") && Yt(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), b(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(R), B && (gt = !1), wt && (H = !0), U && (I = E({}, xe), L = p(null), U.html === !0 && (E(I, he), E(L, Se)), U.svg === !0 && (E(I, ge), E(L, Ce), E(L, Te)), U.svgFilters === !0 && (E(I, _e), E(L, Ce), E(L, Te)), U.mathMl === !0 && (E(I, ye), E(L, we), E(L, Te))), z.tagCheck = null, z.attributeCheck = null, b(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (I === dt && (I = O(I)), E(I, e.ADD_TAGS, q))), b(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (L === ft && (L = O(L)), E(L, e.ADD_ATTR, q))), b(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) && E(Pt, e.ADD_URI_SAFE_ATTR, q), b(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) && (W === jt && (W = O(W)), E(W, e.FORBID_CONTENTS, q)), b(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (W === jt && (W = O(W)), E(W, e.ADD_FORBID_CONTENTS, q)), kt && (I["#text"] = !0), V && E(I, [
|
|
379
379
|
"html",
|
|
380
380
|
"head",
|
|
381
381
|
"body"
|
|
@@ -390,33 +390,33 @@ function Ue() {
|
|
|
390
390
|
throw M = t, e;
|
|
391
391
|
}
|
|
392
392
|
} else e.TRUSTED_TYPES_POLICY === null ? (M = void 0, N = "") : (M === void 0 && (M = Ye()), M && typeof N == "string" && (N = P("")));
|
|
393
|
-
|
|
394
|
-
},
|
|
393
|
+
d && d(e), J = e;
|
|
394
|
+
}, Zt = E({}, [
|
|
395
395
|
...ge,
|
|
396
396
|
..._e,
|
|
397
397
|
...ve
|
|
398
|
-
]),
|
|
399
|
-
return t.namespaceURI === G ? e === "svg" : t.namespaceURI ===
|
|
400
|
-
},
|
|
401
|
-
return t.namespaceURI === G ? e === "math" : t.namespaceURI ===
|
|
402
|
-
},
|
|
403
|
-
return t.namespaceURI ===
|
|
404
|
-
},
|
|
398
|
+
]), Qt = E({}, [...ye, ...be]), $t = function(e, t, n) {
|
|
399
|
+
return t.namespaceURI === G ? e === "svg" : t.namespaceURI === It ? e === "svg" && (n === "annotation-xml" || Ht[n]) : !!Zt[e];
|
|
400
|
+
}, en = function(e, t, n) {
|
|
401
|
+
return t.namespaceURI === G ? e === "math" : t.namespaceURI === Lt ? e === "math" && Wt[n] : !!Qt[e];
|
|
402
|
+
}, tn = function(e, t, n) {
|
|
403
|
+
return t.namespaceURI === Lt && !Wt[n] || t.namespaceURI === It && !Ht[n] ? !1 : !Qt[e] && (Gt[e] || !Zt[e]);
|
|
404
|
+
}, nn = function(e) {
|
|
405
405
|
let t = y(e);
|
|
406
406
|
(!t || !t.tagName) && (t = {
|
|
407
407
|
namespaceURI: K,
|
|
408
408
|
tagName: "template"
|
|
409
409
|
});
|
|
410
410
|
let n = ae(e.tagName), r = ae(t.tagName);
|
|
411
|
-
return
|
|
412
|
-
},
|
|
411
|
+
return zt[e.namespaceURI] ? e.namespaceURI === Lt ? $t(n, t, r) : e.namespaceURI === It ? en(n, t, r) : e.namespaceURI === G ? tn(n, t, r) : !!(Kt === "application/xhtml+xml" && zt[e.namespaceURI]) : !1;
|
|
412
|
+
}, Y = function(e) {
|
|
413
413
|
g(t.removed, { element: e });
|
|
414
414
|
try {
|
|
415
415
|
y(e).removeChild(e);
|
|
416
416
|
} catch {
|
|
417
417
|
if (de(e), !y(e)) throw C("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
418
418
|
}
|
|
419
|
-
},
|
|
419
|
+
}, rn = function(e) {
|
|
420
420
|
let t = v(e);
|
|
421
421
|
if (t) {
|
|
422
422
|
let e = [];
|
|
@@ -435,7 +435,7 @@ function Ue() {
|
|
|
435
435
|
e.removeAttribute(i);
|
|
436
436
|
} catch {}
|
|
437
437
|
}
|
|
438
|
-
},
|
|
438
|
+
}, X = function(e, n) {
|
|
439
439
|
try {
|
|
440
440
|
g(t.removed, {
|
|
441
441
|
attribute: n.getAttributeNode(e),
|
|
@@ -447,71 +447,71 @@ function Ue() {
|
|
|
447
447
|
from: n
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
|
-
if (n.removeAttribute(e), e === "is") if (H ||
|
|
451
|
-
|
|
450
|
+
if (n.removeAttribute(e), e === "is") if (H || wt) try {
|
|
451
|
+
Y(n);
|
|
452
452
|
} catch {}
|
|
453
453
|
else try {
|
|
454
454
|
n.setAttribute(e, "");
|
|
455
455
|
} catch {}
|
|
456
|
-
},
|
|
456
|
+
}, an = function(e) {
|
|
457
457
|
let t = w(e);
|
|
458
458
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
459
459
|
let r = t[n], i = r && r.name;
|
|
460
|
-
if (!(typeof i != "string" || L[
|
|
460
|
+
if (!(typeof i != "string" || L[q(i)])) try {
|
|
461
461
|
e.removeAttribute(i);
|
|
462
462
|
} catch {}
|
|
463
463
|
}
|
|
464
|
-
},
|
|
464
|
+
}, on = function(e) {
|
|
465
465
|
let t = [e];
|
|
466
466
|
for (; t.length > 0;) {
|
|
467
467
|
let e = t.pop();
|
|
468
|
-
(T ? T(e) : e.nodeType) === A.element &&
|
|
468
|
+
(T ? T(e) : e.nodeType) === A.element && an(e);
|
|
469
469
|
let n = v(e);
|
|
470
470
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
471
471
|
}
|
|
472
|
-
},
|
|
472
|
+
}, sn = function(e) {
|
|
473
473
|
let t = null, r = null;
|
|
474
|
-
if (
|
|
474
|
+
if (Ct) e = "<remove></remove>" + e;
|
|
475
475
|
else {
|
|
476
476
|
let t = se(e, /^[\r\n\t ]+/);
|
|
477
477
|
r = t && t[0];
|
|
478
478
|
}
|
|
479
|
-
|
|
479
|
+
Kt === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
480
480
|
let i = M ? P(e) : e;
|
|
481
481
|
if (K === G) try {
|
|
482
|
-
t = new u().parseFromString(i,
|
|
482
|
+
t = new u().parseFromString(i, Kt);
|
|
483
483
|
} catch {}
|
|
484
484
|
if (!t || !t.documentElement) {
|
|
485
485
|
t = Ze.createDocument(K, "template", null);
|
|
486
486
|
try {
|
|
487
|
-
t.documentElement.innerHTML =
|
|
487
|
+
t.documentElement.innerHTML = Rt ? N : i;
|
|
488
488
|
} catch {}
|
|
489
489
|
}
|
|
490
490
|
let a = t.body || t.documentElement;
|
|
491
491
|
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? et.call(t, V ? "html" : "body")[0] : V ? t.documentElement : a;
|
|
492
|
-
},
|
|
492
|
+
}, cn = function(e) {
|
|
493
493
|
return Qe.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
494
|
-
},
|
|
494
|
+
}, ln = function(e) {
|
|
495
495
|
return e = ce(e, nt, " "), e = ce(e, rt, " "), e = ce(e, it, " "), e;
|
|
496
|
-
},
|
|
496
|
+
}, un = function(e) {
|
|
497
497
|
e.normalize();
|
|
498
498
|
let t = Qe.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
|
|
499
|
-
for (; n;) n.data =
|
|
499
|
+
for (; n;) n.data = ln(n.data), n = t.nextNode();
|
|
500
500
|
let r = e.querySelectorAll?.call(e, "template");
|
|
501
501
|
r && te(r, (e) => {
|
|
502
|
-
|
|
502
|
+
Z(e.content) && un(e.content);
|
|
503
503
|
});
|
|
504
|
-
},
|
|
504
|
+
}, dn = function(e) {
|
|
505
505
|
let t = D ? D(e) : null;
|
|
506
|
-
return typeof t != "string" ||
|
|
507
|
-
},
|
|
506
|
+
return typeof t != "string" || q(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== w(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== T(e) || e.childNodes !== v(e);
|
|
507
|
+
}, Z = function(e) {
|
|
508
508
|
if (!T || typeof e != "object" || !e) return !1;
|
|
509
509
|
try {
|
|
510
510
|
return T(e) === A.documentFragment;
|
|
511
511
|
} catch {
|
|
512
512
|
return !1;
|
|
513
513
|
}
|
|
514
|
-
},
|
|
514
|
+
}, Q = function(e) {
|
|
515
515
|
if (!T || typeof e != "object" || !e) return !1;
|
|
516
516
|
try {
|
|
517
517
|
return typeof T(e) == "number";
|
|
@@ -521,48 +521,48 @@ function Ue() {
|
|
|
521
521
|
};
|
|
522
522
|
function $(e, n, r) {
|
|
523
523
|
e.length !== 0 && te(e, (e) => {
|
|
524
|
-
e.call(t, n, r,
|
|
524
|
+
e.call(t, n, r, J);
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
|
-
let
|
|
528
|
-
return !!(yt && e.hasChildNodes() && !
|
|
529
|
-
},
|
|
530
|
-
if (!pt[t] &&
|
|
531
|
-
if (
|
|
527
|
+
let fn = function(e, t) {
|
|
528
|
+
return !!(yt && e.hasChildNodes() && !Q(e.firstElementChild) && S(Ie, e.textContent) && S(Ie, e.innerHTML) || yt && e.namespaceURI === G && t === "style" && Q(e.firstElementChild) || e.nodeType === A.processingInstruction || yt && e.nodeType === A.comment && S(Le, e.data));
|
|
529
|
+
}, pn = function(e, t) {
|
|
530
|
+
if (!pt[t] && _n(t) && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, t) || R.tagNameCheck instanceof Function && R.tagNameCheck(t))) return !1;
|
|
531
|
+
if (kt && !W[t]) {
|
|
532
532
|
let t = y(e), n = v(e);
|
|
533
533
|
if (n && t) {
|
|
534
534
|
let r = n.length;
|
|
535
535
|
for (let i = r - 1; i >= 0; --i) {
|
|
536
|
-
let r =
|
|
536
|
+
let r = At ? n[i] : ee(n[i], !0);
|
|
537
537
|
t.insertBefore(r, fe(e));
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
return
|
|
542
|
-
},
|
|
543
|
-
if ($(F.beforeSanitizeElements, e, null),
|
|
544
|
-
let n =
|
|
541
|
+
return Y(e), !0;
|
|
542
|
+
}, mn = function(e) {
|
|
543
|
+
if ($(F.beforeSanitizeElements, e, null), dn(e)) return Y(e), !0;
|
|
544
|
+
let n = q(D ? D(e) : e.nodeName);
|
|
545
545
|
if ($(F.uponSanitizeElement, e, {
|
|
546
546
|
tagName: n,
|
|
547
547
|
allowedTags: I
|
|
548
|
-
}),
|
|
549
|
-
if (pt[n] || !(z.tagCheck instanceof Function && z.tagCheck(n)) && !I[n]) return
|
|
550
|
-
if ((T ? T(e) : e.nodeType) === A.element &&
|
|
548
|
+
}), fn(e, n)) return Y(e), !0;
|
|
549
|
+
if (pt[n] || !(z.tagCheck instanceof Function && z.tagCheck(n)) && !I[n]) return pn(e, n);
|
|
550
|
+
if ((T ? T(e) : e.nodeType) === A.element && !nn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && S(Re, e.innerHTML)) return Y(e), !0;
|
|
551
551
|
if (B && e.nodeType === A.text) {
|
|
552
|
-
let n =
|
|
552
|
+
let n = ln(e.textContent);
|
|
553
553
|
e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
554
554
|
}
|
|
555
555
|
return $(F.afterSanitizeElements, e, null), !1;
|
|
556
|
-
},
|
|
557
|
-
if (mt[t] ||
|
|
556
|
+
}, hn = function(e, t, r) {
|
|
557
|
+
if (mt[t] || Et && (t === "id" || t === "name") && (r in n || r in Jt)) return !1;
|
|
558
558
|
let i = L[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
|
|
559
559
|
if (!(gt && S(at, t)) && !(ht && S(ot, t))) {
|
|
560
560
|
if (!i) {
|
|
561
|
-
if (!(
|
|
562
|
-
} else if (!
|
|
561
|
+
if (!(_n(e) && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, e) || R.tagNameCheck instanceof Function && R.tagNameCheck(e)) && (R.attributeNameCheck instanceof RegExp && S(R.attributeNameCheck, t) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(t, e)) || t === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, r) || R.tagNameCheck instanceof Function && R.tagNameCheck(r)))) return !1;
|
|
562
|
+
} else if (!Pt[t] && !S(ut, ce(r, ct, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && le(r, "data:") === 0 && Mt[e]) && !(_t && !S(st, ce(r, ct, ""))) && r) return !1;
|
|
563
563
|
}
|
|
564
564
|
return !0;
|
|
565
|
-
},
|
|
565
|
+
}, gn = E({}, [
|
|
566
566
|
"annotation-xml",
|
|
567
567
|
"color-profile",
|
|
568
568
|
"font-face",
|
|
@@ -571,66 +571,66 @@ function Ue() {
|
|
|
571
571
|
"font-face-src",
|
|
572
572
|
"font-face-uri",
|
|
573
573
|
"missing-glyph"
|
|
574
|
-
]),
|
|
575
|
-
return !
|
|
576
|
-
},
|
|
574
|
+
]), _n = function(e) {
|
|
575
|
+
return !gn[ae(e)] && S(lt, e);
|
|
576
|
+
}, vn = function(e, t, n, r) {
|
|
577
577
|
if (M && typeof m == "object" && typeof m.getAttributeType == "function" && !n) switch (m.getAttributeType(e, t)) {
|
|
578
578
|
case "TrustedHTML": return P(r);
|
|
579
579
|
case "TrustedScriptURL": return Je(r);
|
|
580
580
|
}
|
|
581
581
|
return r;
|
|
582
|
-
},
|
|
582
|
+
}, yn = function(e, n, r, i) {
|
|
583
583
|
try {
|
|
584
|
-
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i),
|
|
584
|
+
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? Y(e) : re(t.removed);
|
|
585
585
|
} catch {
|
|
586
|
-
|
|
586
|
+
X(n, e);
|
|
587
587
|
}
|
|
588
|
-
},
|
|
588
|
+
}, bn = function(e) {
|
|
589
589
|
$(F.beforeSanitizeAttributes, e, null);
|
|
590
590
|
let t = e.attributes;
|
|
591
|
-
if (!t ||
|
|
591
|
+
if (!t || dn(e)) return;
|
|
592
592
|
let n = {
|
|
593
593
|
attrName: "",
|
|
594
594
|
attrValue: "",
|
|
595
595
|
keepAttr: !0,
|
|
596
596
|
allowedAttributes: L,
|
|
597
597
|
forceKeepAttr: void 0
|
|
598
|
-
}, r = t.length, i =
|
|
598
|
+
}, r = t.length, i = q(e.nodeName);
|
|
599
599
|
for (; r--;) {
|
|
600
|
-
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l =
|
|
601
|
-
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(F.uponSanitizeAttribute, e, n), d = n.attrValue,
|
|
602
|
-
|
|
600
|
+
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = q(o), u = c, d = o === "value" ? u : ue(u);
|
|
601
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(F.uponSanitizeAttribute, e, n), d = n.attrValue, Dt && (l === "id" || l === "name") && le(d, Ot) !== 0 && (X(o, e), d = Ot + d), yt && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
602
|
+
X(o, e);
|
|
603
603
|
continue;
|
|
604
604
|
}
|
|
605
605
|
if (l === "attributename" && se(d, "href")) {
|
|
606
|
-
|
|
606
|
+
X(o, e);
|
|
607
607
|
continue;
|
|
608
608
|
}
|
|
609
609
|
if (!n.forceKeepAttr) {
|
|
610
610
|
if (!n.keepAttr) {
|
|
611
|
-
|
|
611
|
+
X(o, e);
|
|
612
612
|
continue;
|
|
613
613
|
}
|
|
614
614
|
if (!vt && S(ze, d)) {
|
|
615
|
-
|
|
615
|
+
X(o, e);
|
|
616
616
|
continue;
|
|
617
617
|
}
|
|
618
|
-
if (B && (d =
|
|
619
|
-
|
|
618
|
+
if (B && (d = ln(d)), !hn(i, l, d)) {
|
|
619
|
+
X(o, e);
|
|
620
620
|
continue;
|
|
621
621
|
}
|
|
622
|
-
d =
|
|
622
|
+
d = vn(i, l, s, d), d !== u && yn(e, o, s, d);
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
$(F.afterSanitizeAttributes, e, null);
|
|
626
|
-
},
|
|
627
|
-
let t = null, n =
|
|
628
|
-
for ($(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(F.uponSanitizeShadowNode, t, null),
|
|
626
|
+
}, xn = function(e) {
|
|
627
|
+
let t = null, n = cn(e);
|
|
628
|
+
for ($(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(F.uponSanitizeShadowNode, t, null), mn(t), bn(t), Z(t.content) && xn(t.content), (T ? T(t) : t.nodeType) === A.element) {
|
|
629
629
|
let e = x(t);
|
|
630
|
-
|
|
630
|
+
Z(e) && (Sn(e), xn(e));
|
|
631
631
|
}
|
|
632
632
|
$(F.afterSanitizeShadowDOM, e, null);
|
|
633
|
-
},
|
|
633
|
+
}, Sn = function(e) {
|
|
634
634
|
let t = [{
|
|
635
635
|
node: e,
|
|
636
636
|
shadow: null
|
|
@@ -638,7 +638,7 @@ function Ue() {
|
|
|
638
638
|
for (; t.length > 0;) {
|
|
639
639
|
let e = t.pop();
|
|
640
640
|
if (e.shadow) {
|
|
641
|
-
|
|
641
|
+
xn(e.shadow);
|
|
642
642
|
continue;
|
|
643
643
|
}
|
|
644
644
|
let n = e.node, r = (T ? T(n) : n.nodeType) === A.element, i = v(n);
|
|
@@ -648,9 +648,9 @@ function Ue() {
|
|
|
648
648
|
});
|
|
649
649
|
if (r) {
|
|
650
650
|
let e = D ? D(n) : null;
|
|
651
|
-
if (typeof e == "string" &&
|
|
651
|
+
if (typeof e == "string" && q(e) === "template") {
|
|
652
652
|
let e = n.content;
|
|
653
|
-
|
|
653
|
+
Z(e) && t.push({
|
|
654
654
|
node: e,
|
|
655
655
|
shadow: null
|
|
656
656
|
});
|
|
@@ -658,7 +658,7 @@ function Ue() {
|
|
|
658
658
|
}
|
|
659
659
|
if (r) {
|
|
660
660
|
let e = x(n);
|
|
661
|
-
|
|
661
|
+
Z(e) && t.push({
|
|
662
662
|
node: null,
|
|
663
663
|
shadow: e
|
|
664
664
|
}, {
|
|
@@ -670,60 +670,62 @@ function Ue() {
|
|
|
670
670
|
};
|
|
671
671
|
return t.sanitize = function(e) {
|
|
672
672
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
673
|
-
if (
|
|
673
|
+
if (Rt = !e, Rt && (e = "<!-->"), typeof e != "string" && !Q(e) && (e = pe(e), typeof e != "string")) throw C("dirty is not a string, aborting");
|
|
674
674
|
if (!t.isSupported) return e;
|
|
675
|
-
bt
|
|
676
|
-
let c =
|
|
675
|
+
bt ? (I = xt, L = St) : Xt(n), (F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && (I = O(I)), F.uponSanitizeAttribute.length > 0 && (L = O(L)), t.removed = [];
|
|
676
|
+
let c = At && typeof e != "string" && Q(e);
|
|
677
677
|
if (c) {
|
|
678
678
|
let t = D ? D(e) : e.nodeName;
|
|
679
679
|
if (typeof t == "string") {
|
|
680
|
-
let e =
|
|
680
|
+
let e = q(t);
|
|
681
681
|
if (!I[e] || pt[e]) throw C("root node is forbidden and cannot be sanitized in-place");
|
|
682
682
|
}
|
|
683
|
-
if (
|
|
683
|
+
if (dn(e)) throw C("root node is clobbered and cannot be sanitized in-place");
|
|
684
684
|
try {
|
|
685
|
-
|
|
685
|
+
Sn(e);
|
|
686
686
|
} catch (t) {
|
|
687
|
-
throw
|
|
687
|
+
throw rn(e), t;
|
|
688
688
|
}
|
|
689
|
-
} else if (
|
|
689
|
+
} else if (Q(e)) i = sn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === A.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Sn(a);
|
|
690
690
|
else {
|
|
691
|
-
if (!H && !B && !V && e.indexOf("<") === -1) return M &&
|
|
692
|
-
if (i =
|
|
691
|
+
if (!H && !B && !V && e.indexOf("<") === -1) return M && Tt ? P(e) : e;
|
|
692
|
+
if (i = sn(e), !i) return H ? null : Tt ? N : "";
|
|
693
693
|
}
|
|
694
|
-
i &&
|
|
695
|
-
let l =
|
|
694
|
+
i && Ct && Y(i.firstChild);
|
|
695
|
+
let l = cn(c ? e : i);
|
|
696
696
|
try {
|
|
697
|
-
for (; o = l.nextNode();)
|
|
697
|
+
for (; o = l.nextNode();) mn(o), bn(o), Z(o.content) && xn(o.content);
|
|
698
698
|
} catch (t) {
|
|
699
|
-
throw c &&
|
|
699
|
+
throw c && rn(e), t;
|
|
700
700
|
}
|
|
701
701
|
if (c) return te(t.removed, (e) => {
|
|
702
|
-
e.element &&
|
|
703
|
-
}), B &&
|
|
702
|
+
e.element && on(e.element);
|
|
703
|
+
}), B && un(e), e;
|
|
704
704
|
if (H) {
|
|
705
|
-
if (B &&
|
|
705
|
+
if (B && un(i), wt) for (s = $e.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
706
706
|
else s = i;
|
|
707
707
|
return (L.shadowroot || L.shadowrootmode) && (s = tt.call(r, s, !0)), s;
|
|
708
708
|
}
|
|
709
709
|
let u = V ? i.outerHTML : i.innerHTML;
|
|
710
|
-
return V && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Pe, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u =
|
|
710
|
+
return V && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Pe, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = ln(u)), M && Tt ? P(u) : u;
|
|
711
711
|
}, t.setConfig = function() {
|
|
712
|
-
|
|
712
|
+
Xt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), bt = !0, xt = I, St = L;
|
|
713
713
|
}, t.clearConfig = function() {
|
|
714
|
-
|
|
714
|
+
J = null, bt = !1, xt = null, St = null, M = We, N = "";
|
|
715
715
|
}, t.isValidAttribute = function(e, t, n) {
|
|
716
|
-
return
|
|
716
|
+
return J || Xt({}), hn(q(e), q(t), n);
|
|
717
717
|
}, t.addHook = function(e, t) {
|
|
718
|
-
typeof t == "function" && g(F[e], t);
|
|
718
|
+
typeof t == "function" && b(F, e) && g(F[e], t);
|
|
719
719
|
}, t.removeHook = function(e, t) {
|
|
720
|
-
if (
|
|
721
|
-
|
|
722
|
-
|
|
720
|
+
if (b(F, e)) {
|
|
721
|
+
if (t !== void 0) {
|
|
722
|
+
let n = ne(F[e], t);
|
|
723
|
+
return n === -1 ? void 0 : ie(F[e], n, 1)[0];
|
|
724
|
+
}
|
|
725
|
+
return re(F[e]);
|
|
723
726
|
}
|
|
724
|
-
return re(F[e]);
|
|
725
727
|
}, t.removeHooks = function(e) {
|
|
726
|
-
F[e] = [];
|
|
728
|
+
b(F, e) && (F[e] = []);
|
|
727
729
|
}, t.removeAllHooks = function() {
|
|
728
730
|
F = He();
|
|
729
731
|
}, t;
|