@burdenoff/microfe-bigconsole 2026.1010.12 → 2026.1012.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +19 -0
  2. package/dist/bigconsole/BigConsoleRoot.js +88 -82
  3. package/dist/bigconsole/BigConsoleRoutes.js +163 -136
  4. package/dist/bigconsole/assistant/assistantProduct.js +1 -4
  5. package/dist/bigconsole/assistant/pageContext.d.ts +0 -14
  6. package/dist/bigconsole/assistant/pageContext.js +1 -6
  7. package/dist/bigconsole/assistant/recordAdapters.js +26 -27
  8. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
  9. package/dist/bigconsole/components/common/index.d.ts +0 -1
  10. package/dist/bigconsole/components/common/index.js +0 -1
  11. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
  12. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
  13. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
  14. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +58 -57
  15. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
  16. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
  17. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
  18. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
  19. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +110 -110
  20. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
  21. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
  22. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +164 -173
  23. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
  24. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
  25. package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
  26. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
  27. package/dist/bigconsole/components/dashboard/WidgetPalette.js +165 -163
  28. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
  29. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
  30. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
  31. package/dist/bigconsole/components/datasink/DataSinkCard.js +50 -51
  32. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
  33. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
  34. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
  35. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
  36. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
  37. package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
  38. package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
  39. package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
  40. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
  41. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +76 -77
  42. package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -96
  43. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
  44. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
  45. package/dist/bigconsole/components/widgets/PropertiesPanel.js +499 -507
  46. package/dist/bigconsole/components/widgets/WidgetRegistry.js +0 -1
  47. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
  48. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
  49. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
  50. package/dist/bigconsole/components/widgets/custom/CustomWidget.js +73 -131
  51. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
  52. package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
  53. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
  54. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
  55. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +28 -9
  56. package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +115 -42
  57. package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.d.ts +20 -0
  58. package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.js +10 -0
  59. package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts +2 -1
  60. package/dist/bigconsole/components/widgets/iframe-widget/index.js +3 -2
  61. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
  62. package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
  63. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
  64. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
  65. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
  66. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
  67. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
  68. package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
  69. package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +110 -27
  70. package/dist/bigconsole/components/widgets/text-widget/textData.d.ts +6 -0
  71. package/dist/bigconsole/components/widgets/text-widget/textData.js +17 -14
  72. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
  73. package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
  74. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
  75. package/dist/bigconsole/context/BigConsoleContext.d.ts +10 -0
  76. package/dist/bigconsole/context/BigConsoleContext.js +47 -30
  77. package/dist/bigconsole/context/index.d.ts +1 -1
  78. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +58 -49
  79. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +74 -72
  80. package/dist/bigconsole/customWidget/proposalPreview.d.ts +5 -0
  81. package/dist/bigconsole/customWidget/proposalPreview.js +31 -0
  82. package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +0 -23
  83. package/dist/bigconsole/hooks/useDataSinkAlerts.js +113 -138
  84. package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +7 -0
  85. package/dist/bigconsole/hooks/useDataSinkOperations.js +109 -98
  86. package/dist/bigconsole/hooks/useDataSinkSubscription.js +0 -1
  87. package/dist/bigconsole/hooks/useDrilldown.js +68 -67
  88. package/dist/bigconsole/hooks/useExportDataSink.js +1 -1
  89. package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
  90. package/dist/bigconsole/hooks/useImportDataSink.js +102 -90
  91. package/dist/bigconsole/pages/AdminPage.js +130 -130
  92. package/dist/bigconsole/pages/DashboardBuilderPage.js +60 -72
  93. package/dist/bigconsole/pages/DashboardViewPage.js +235 -258
  94. package/dist/bigconsole/pages/DashboardsPage.js +221 -269
  95. package/dist/bigconsole/pages/DataParsersPage.js +157 -180
  96. package/dist/bigconsole/pages/DataSinkAlertsPage.js +55 -62
  97. package/dist/bigconsole/pages/DataSinkBuilderPage.js +318 -295
  98. package/dist/bigconsole/pages/DataSinkViewPage.js +256 -255
  99. package/dist/bigconsole/pages/DataSinksPage.js +216 -251
  100. package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
  101. package/dist/bigconsole/pages/InsightsPage.js +265 -279
  102. package/dist/bigconsole/pages/OverviewPage.js +47 -47
  103. package/dist/bigconsole/pages/ParserBuilderPage.js +213 -229
  104. package/dist/bigconsole/pages/ParserViewPage.js +97 -97
  105. package/dist/bigconsole/pages/PipelineBuilderPage.js +214 -256
  106. package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
  107. package/dist/bigconsole/pages/PipelinesPage.js +88 -107
  108. package/dist/bigconsole/pages/SettingsPage.js +173 -179
  109. package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
  110. package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
  111. package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
  112. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
  113. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +235 -122
  114. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +6 -1
  115. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +151 -151
  116. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
  117. package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +29 -0
  118. package/dist/bigconsole/renderers/adapters/adaptiveCardContent.js +51 -0
  119. package/dist/bigconsole/store/widgetStore.d.ts +0 -12
  120. package/dist/bigconsole/store/widgetStore.js +1 -3
  121. package/dist/bigconsole/types/index.d.ts +17 -2
  122. package/dist/bigconsole/utils/backendError.d.ts +0 -18
  123. package/dist/bigconsole/utils/dataSinkPayload.d.ts +48 -0
  124. package/dist/bigconsole/utils/dataSinkPayload.js +38 -0
  125. package/dist/bigconsole/utils/index.d.ts +2 -0
  126. package/dist/bigconsole/utils/safeUrl.d.ts +79 -0
  127. package/dist/bigconsole/utils/safeUrl.js +93 -0
  128. package/dist/bigconsole/utils/sanitizeHtml.d.ts +16 -0
  129. package/dist/bigconsole/utils/sanitizeHtml.js +67 -0
  130. package/dist/bigconsole/workflowOpen.js +14 -15
  131. package/dist/generated/wspace-operations.d.ts +138 -8
  132. package/dist/generated/wspace-operations.js +281 -240
  133. package/dist/node_modules/dompurify/dist/purify.es.js +800 -0
  134. package/package.json +9 -5
  135. package/dist/bigconsole/assistant/displayCopy.d.ts +0 -32
  136. package/dist/bigconsole/assistant/pageControls.d.ts +0 -81
  137. package/dist/bigconsole/assistant/pageControls.js +0 -169
  138. package/dist/bigconsole/assistant/previewControl.d.ts +0 -16
  139. package/dist/bigconsole/assistant/previewControl.js +0 -10
  140. package/dist/bigconsole/assistant/usePreviewControl.d.ts +0 -2
  141. package/dist/bigconsole/assistant/usePreviewControl.js +0 -20
  142. package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -11
  143. package/dist/bigconsole/components/common/SortBySelect.js +0 -29
  144. package/dist/bigconsole/constants/backendErrors.js +0 -94
  145. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -14
  146. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +0 -32
  147. package/dist/bigconsole/utils/backendError.js +0 -42
  148. package/dist/bigconsole/utils/dashboardList.d.ts +0 -28
  149. package/dist/bigconsole/utils/dashboardList.js +0 -15
  150. package/dist/bigconsole/utils/dataSinkList.d.ts +0 -15
  151. package/dist/bigconsole/utils/dataSinkList.js +0 -15
  152. package/dist/bigconsole/utils/formDirty.d.ts +0 -82
  153. package/dist/bigconsole/utils/formDirty.js +0 -21
  154. package/dist/bigconsole/utils/insightsDraft.d.ts +0 -29
  155. package/dist/bigconsole/utils/insightsDraft.js +0 -8
  156. package/dist/bigconsole/utils/layoutBaseline.d.ts +0 -130
  157. package/dist/bigconsole/utils/layoutBaseline.js +0 -96
  158. package/dist/bigconsole/utils/listSort.d.ts +0 -80
  159. package/dist/bigconsole/utils/listSort.js +0 -85
  160. package/dist/bigconsole/utils/widgetFormDirty.d.ts +0 -16
  161. package/dist/bigconsole/utils/widgetFormDirty.js +0 -13
@@ -0,0 +1,800 @@
1
+ //#region node_modules/dompurify/dist/purify.es.mjs
2
+ function e(e, t) {
3
+ (t == null || t > e.length) && (t = e.length);
4
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
5
+ return r;
6
+ }
7
+ function t(e) {
8
+ if (Array.isArray(e)) return e;
9
+ }
10
+ function n(e, t) {
11
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
12
+ if (n != null) {
13
+ var r, i, a, o, s = [], c = !0, l = !1;
14
+ try {
15
+ if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
16
+ } catch (e) {
17
+ l = !0, i = e;
18
+ } finally {
19
+ try {
20
+ if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
21
+ } finally {
22
+ if (l) throw i;
23
+ }
24
+ }
25
+ return s;
26
+ }
27
+ }
28
+ function r() {
29
+ throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
30
+ }
31
+ function i(e, i) {
32
+ return t(e) || n(e, i) || a(e, i) || r();
33
+ }
34
+ function a(t, n) {
35
+ if (t) {
36
+ if (typeof t == "string") return e(t, n);
37
+ var r = {}.toString.call(t).slice(8, -1);
38
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? e(t, n) : void 0;
39
+ }
40
+ }
41
+ var o = Object.entries, s = Object.setPrototypeOf, c = Object.isFrozen, l = Object.getPrototypeOf, u = Object.getOwnPropertyDescriptor, d = Object.freeze, f = Object.seal, p = Object.create, m = typeof Reflect < "u" && Reflect, h = m.apply, ee = m.construct;
42
+ d ||= function(e) {
43
+ return e;
44
+ }, f ||= function(e) {
45
+ return e;
46
+ }, h ||= function(e, t) {
47
+ var n = [...arguments].slice(2);
48
+ return e.apply(t, n);
49
+ }, ee ||= function(e) {
50
+ return new e(...[...arguments].slice(1));
51
+ };
52
+ var g = w(Array.prototype.forEach), te = w(Array.prototype.lastIndexOf), ne = w(Array.prototype.pop), re = w(Array.prototype.push), ie = w(Array.prototype.splice), _ = Array.isArray, ae = w(String.prototype.toLowerCase), oe = w(String.prototype.toString), se = w(String.prototype.match), v = w(String.prototype.replace), ce = w(String.prototype.indexOf), le = w(String.prototype.trim), ue = w(Number.prototype.toString), de = w(Boolean.prototype.toString), fe = typeof BigInt > "u" ? null : w(BigInt.prototype.toString), y = typeof Symbol > "u" ? null : w(Symbol.prototype.toString), b = w(Object.prototype.hasOwnProperty), x = w(Object.prototype.toString), S = w(RegExp.prototype.test), C = pe(TypeError);
53
+ function w(e) {
54
+ return function(t) {
55
+ t instanceof RegExp && (t.lastIndex = 0);
56
+ var n = [...arguments].slice(1);
57
+ return h(e, t, n);
58
+ };
59
+ }
60
+ function pe(e) {
61
+ return function() {
62
+ return ee(e, [...arguments]);
63
+ };
64
+ }
65
+ function T(e, t) {
66
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae;
67
+ if (s && s(e, null), !_(t)) return e;
68
+ let r = t.length;
69
+ for (; r--;) {
70
+ let i = t[r];
71
+ if (typeof i == "string") {
72
+ let e = n(i);
73
+ e !== i && (c(t) || (t[r] = e), i = e);
74
+ }
75
+ e[i] = !0;
76
+ }
77
+ return e;
78
+ }
79
+ function E(e) {
80
+ for (let t = 0; t < e.length; t++) b(e, t) || (e[t] = null);
81
+ return e;
82
+ }
83
+ function D(e) {
84
+ let t = p(null);
85
+ for (let r of o(e)) {
86
+ var n = i(r, 2);
87
+ let a = n[0], o = n[1];
88
+ b(e, a) && (_(o) ? t[a] = E(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = D(o) : t[a] = o);
89
+ }
90
+ return t;
91
+ }
92
+ function me(e) {
93
+ switch (typeof e) {
94
+ case "string": return e;
95
+ case "number": return ue(e);
96
+ case "boolean": return de(e);
97
+ case "bigint": return fe ? fe(e) : "0";
98
+ case "symbol": return y ? y(e) : "Symbol()";
99
+ case "undefined": return x(e);
100
+ case "function":
101
+ case "object": {
102
+ if (e === null) return x(e);
103
+ let t = e, n = O(t, "toString");
104
+ if (typeof n == "function") {
105
+ let e = n(t);
106
+ return typeof e == "string" ? e : x(e);
107
+ }
108
+ return x(e);
109
+ }
110
+ default: return x(e);
111
+ }
112
+ }
113
+ function O(e, t) {
114
+ for (; e !== null;) {
115
+ let n = u(e, t);
116
+ if (n) {
117
+ if (n.get) return w(n.get);
118
+ if (typeof n.value == "function") return w(n.value);
119
+ }
120
+ e = l(e);
121
+ }
122
+ function n() {
123
+ return null;
124
+ }
125
+ return n;
126
+ }
127
+ function he(e) {
128
+ try {
129
+ return S(e, ""), !0;
130
+ } catch {
131
+ return !1;
132
+ }
133
+ }
134
+ var ge = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), _e = d(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), ve = d([
135
+ "feBlend",
136
+ "feColorMatrix",
137
+ "feComponentTransfer",
138
+ "feComposite",
139
+ "feConvolveMatrix",
140
+ "feDiffuseLighting",
141
+ "feDisplacementMap",
142
+ "feDistantLight",
143
+ "feDropShadow",
144
+ "feFlood",
145
+ "feFuncA",
146
+ "feFuncB",
147
+ "feFuncG",
148
+ "feFuncR",
149
+ "feGaussianBlur",
150
+ "feImage",
151
+ "feMerge",
152
+ "feMergeNode",
153
+ "feMorphology",
154
+ "feOffset",
155
+ "fePointLight",
156
+ "feSpecularLighting",
157
+ "feSpotLight",
158
+ "feTile",
159
+ "feTurbulence"
160
+ ]), ye = d([
161
+ "animate",
162
+ "color-profile",
163
+ "cursor",
164
+ "discard",
165
+ "font-face",
166
+ "font-face-format",
167
+ "font-face-name",
168
+ "font-face-src",
169
+ "font-face-uri",
170
+ "foreignobject",
171
+ "hatch",
172
+ "hatchpath",
173
+ "mesh",
174
+ "meshgradient",
175
+ "meshpatch",
176
+ "meshrow",
177
+ "missing-glyph",
178
+ "script",
179
+ "set",
180
+ "solidcolor",
181
+ "unknown",
182
+ "use"
183
+ ]), be = d(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), xe = d([
184
+ "maction",
185
+ "maligngroup",
186
+ "malignmark",
187
+ "mlongdiv",
188
+ "mscarries",
189
+ "mscarry",
190
+ "msgroup",
191
+ "mstack",
192
+ "msline",
193
+ "msrow",
194
+ "semantics",
195
+ "annotation",
196
+ "annotation-xml",
197
+ "mprescripts",
198
+ "none"
199
+ ]), Se = d(["#text"]), Ce = d(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), we = d(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Te = d(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Ee = d([
200
+ "xlink:href",
201
+ "xml:id",
202
+ "xlink:title",
203
+ "xml:space",
204
+ "xmlns:xlink"
205
+ ]), De = f(/{{[\w\W]*|^[\w\W]*}}/g), Oe = f(/<%[\w\W]*|^[\w\W]*%>/g), ke = f(/\${[\w\W]*/g), Ae = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), je = f(/^aria-[\-\w]+$/), Me = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ne = f(/^(?:\w+script|data):/i), Pe = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Fe = f(/^html$/i), Ie = f(/^[a-z][.\w]*(-[.\w]+)+$/i), Le = f(/<[/\w!]/g), Re = f(/<[/\w]/g), ze = f(/<\/no(script|embed|frames)/i), Be = f(/\/>/i), k = {
206
+ element: 1,
207
+ attribute: 2,
208
+ text: 3,
209
+ cdataSection: 4,
210
+ entityReference: 5,
211
+ entityNode: 6,
212
+ processingInstruction: 7,
213
+ comment: 8,
214
+ document: 9,
215
+ documentType: 10,
216
+ documentFragment: 11,
217
+ notation: 12
218
+ }, A = [
219
+ "style",
220
+ "script",
221
+ "xmp",
222
+ "iframe",
223
+ "noembed",
224
+ "noframes",
225
+ "plaintext",
226
+ "noscript"
227
+ ], Ve = d(T({}, A)), He = function() {
228
+ let e = {};
229
+ return g(A, (t) => {
230
+ e[t] = f(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
231
+ }), d(e);
232
+ }(), Ue = function() {
233
+ return typeof window > "u" ? null : window;
234
+ }, We = function(e, t) {
235
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
236
+ let n = null, r = "data-tt-policy-suffix";
237
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
238
+ let i = "dompurify" + (n ? "#" + n : "");
239
+ try {
240
+ return e.createPolicy(i, {
241
+ createHTML(e) {
242
+ return e;
243
+ },
244
+ createScriptURL(e) {
245
+ return e;
246
+ }
247
+ });
248
+ } catch {
249
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
250
+ }
251
+ }, Ge = function() {
252
+ return {
253
+ afterSanitizeAttributes: [],
254
+ afterSanitizeElements: [],
255
+ afterSanitizeShadowDOM: [],
256
+ beforeSanitizeAttributes: [],
257
+ beforeSanitizeElements: [],
258
+ beforeSanitizeShadowDOM: [],
259
+ uponSanitizeAttribute: [],
260
+ uponSanitizeElement: [],
261
+ uponSanitizeShadowNode: []
262
+ };
263
+ }, j = function(e, t, n, r) {
264
+ return b(e, t) && _(e[t]) ? T(r.base ? D(r.base) : {}, e[t], r.transform) : n;
265
+ }, Ke = function(e, t, n) {
266
+ let r = b(e, t) ? e[t] : void 0;
267
+ return r && typeof r == "object" ? D(r) : n();
268
+ };
269
+ function qe() {
270
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ue(), t = (e) => qe(e);
271
+ if (t.version = "3.4.15", t.removed = [], !e || !e.document || e.document.nodeType !== k.document || !e.Element) return t.isSupported = !1, t;
272
+ let n = e.document, r = n, i = r.currentScript;
273
+ e.DocumentFragment;
274
+ let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
275
+ e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
276
+ let u = e.DOMParser, m = e.trustedTypes, h = c.prototype, ee = O(h, "cloneNode"), ue = O(h, "remove"), de = O(h, "removeAttributeNode"), fe = O(h, "nextSibling"), y = O(h, "childNodes"), x = O(h, "parentNode"), w = O(h, "shadowRoot"), pe = O(h, "attributes"), E = s && s.prototype ? O(s.prototype, "nodeType") : null, A = s && s.prototype ? O(s.prototype, "nodeName") : null, Je = s && s.prototype ? O(s.prototype, "ownerDocument") : null, Ye = function(e) {
277
+ return E ? E(e) : e.nodeType;
278
+ }, Xe = function(e) {
279
+ return A ? A(e) : e.nodeName;
280
+ };
281
+ if (typeof a == "function") {
282
+ let e = n.createElement("template");
283
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
284
+ }
285
+ let M, N = "", Ze, Qe = !1, $e = 0, et = function() {
286
+ if ($e > 0) throw C("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.");
287
+ }, P = function(e) {
288
+ et(), $e++;
289
+ try {
290
+ return M.createHTML(e);
291
+ } finally {
292
+ $e--;
293
+ }
294
+ }, tt = function(e) {
295
+ et(), $e++;
296
+ try {
297
+ return M.createScriptURL(e);
298
+ } finally {
299
+ $e--;
300
+ }
301
+ }, nt = function() {
302
+ return Qe ||= (Ze = We(m, i), !0), Ze;
303
+ }, rt = n, it = rt.implementation, at = rt.createNodeIterator, ot = rt.createDocumentFragment, st = rt.getElementsByTagName, ct = r.importNode, F = Ge();
304
+ t.isSupported = typeof o == "function" && typeof x == "function" && it && it.createHTMLDocument !== void 0;
305
+ let lt = De, ut = Oe, dt = ke, ft = Ae, pt = je, mt = Ne, ht = Pe, gt = Ie, _t = Me, I = null, vt = T({}, [
306
+ ...ge,
307
+ ..._e,
308
+ ...ve,
309
+ ...be,
310
+ ...Se
311
+ ]), L = null, yt = T({}, [
312
+ ...Ce,
313
+ ...we,
314
+ ...Te,
315
+ ...Ee
316
+ ]), R = Object.seal(p(null, {
317
+ tagNameCheck: {
318
+ writable: !0,
319
+ configurable: !1,
320
+ enumerable: !0,
321
+ value: null
322
+ },
323
+ attributeNameCheck: {
324
+ writable: !0,
325
+ configurable: !1,
326
+ enumerable: !0,
327
+ value: null
328
+ },
329
+ allowCustomizedBuiltInElements: {
330
+ writable: !0,
331
+ configurable: !1,
332
+ enumerable: !0,
333
+ value: !1
334
+ }
335
+ })), bt = null, xt = null, z = Object.seal(p(null, {
336
+ tagCheck: {
337
+ writable: !0,
338
+ configurable: !1,
339
+ enumerable: !0,
340
+ value: null
341
+ },
342
+ attributeCheck: {
343
+ writable: !0,
344
+ configurable: !1,
345
+ enumerable: !0,
346
+ value: null
347
+ }
348
+ })), St = !0, Ct = !0, wt = !1, Tt = !0, B = !1, V = !0, H = !1, Et = !1, Dt = null, Ot = null, kt = !1, U = !1, At = !1, jt = !1, Mt = !0, Nt = !1, Pt = "user-content-", Ft = !0, It = !1, W = {}, G = null, Lt = T({}, /* @__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(".")), Rt = null, zt = T({}, [
349
+ "audio",
350
+ "video",
351
+ "img",
352
+ "source",
353
+ "image",
354
+ "track"
355
+ ]), Bt = null, Vt = T({}, [
356
+ "alt",
357
+ "class",
358
+ "for",
359
+ "id",
360
+ "label",
361
+ "name",
362
+ "pattern",
363
+ "placeholder",
364
+ "role",
365
+ "summary",
366
+ "title",
367
+ "value",
368
+ "style",
369
+ "xmlns"
370
+ ]), Ht = "http://www.w3.org/1998/Math/MathML", Ut = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, Wt = !1, Gt = null, Kt = T({}, [
371
+ Ht,
372
+ Ut,
373
+ K
374
+ ], oe), qt = d([
375
+ "mi",
376
+ "mo",
377
+ "mn",
378
+ "ms",
379
+ "mtext"
380
+ ]), Jt = T({}, qt), Yt = d(["annotation-xml"]), Xt = T({}, Yt), Zt = T({}, [
381
+ "title",
382
+ "style",
383
+ "font",
384
+ "a",
385
+ "script"
386
+ ]), Qt = null, $t = ["application/xhtml+xml", "text/html"], J = null, Y = null, en = n.createElement("form"), tn = function(e) {
387
+ return e instanceof RegExp || e instanceof Function;
388
+ }, nn = function() {
389
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
390
+ if (Y && Y === e) return;
391
+ (!e || typeof e != "object") && (e = {}), e = D(e), Qt = $t.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Qt === "application/xhtml+xml" ? oe : ae, I = j(e, "ALLOWED_TAGS", vt, { transform: J }), L = j(e, "ALLOWED_ATTR", yt, { transform: J }), Gt = j(e, "ALLOWED_NAMESPACES", Kt, { transform: oe }), Bt = j(e, "ADD_URI_SAFE_ATTR", Vt, {
392
+ transform: J,
393
+ base: Vt
394
+ }), Rt = j(e, "ADD_DATA_URI_TAGS", zt, {
395
+ transform: J,
396
+ base: zt
397
+ }), G = j(e, "FORBID_CONTENTS", Lt, { transform: J }), bt = j(e, "FORBID_TAGS", D({}), { transform: J }), xt = j(e, "FORBID_ATTR", D({}), { transform: J }), W = b(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? D(e.USE_PROFILES) : e.USE_PROFILES : !1, St = e.ALLOW_ARIA_ATTR !== !1, Ct = e.ALLOW_DATA_ATTR !== !1, wt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Tt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, V = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, U = e.RETURN_DOM || !1, At = e.RETURN_DOM_FRAGMENT || !1, jt = e.RETURN_TRUSTED_TYPE || !1, kt = e.FORCE_BODY || !1, Mt = e.SANITIZE_DOM !== !1, Nt = e.SANITIZE_NAMED_PROPS || !1, Ft = e.KEEP_CONTENT !== !1, It = e.IN_PLACE || !1, _t = he(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Me, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Jt = Ke(e, "MATHML_TEXT_INTEGRATION_POINTS", () => T({}, qt)), Xt = Ke(e, "HTML_INTEGRATION_POINTS", () => T({}, Yt));
398
+ let t = Ke(e, "CUSTOM_ELEMENT_HANDLING", () => p(null));
399
+ if (R = p(null), b(t, "tagNameCheck") && tn(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), b(t, "attributeNameCheck") && tn(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), b(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(R), B && (Ct = !1), At && (U = !0), W && (I = T({}, Se), L = p(null), W.html === !0 && (T(I, ge), T(L, Ce)), W.svg === !0 && (T(I, _e), T(L, we), T(L, Ee)), W.svgFilters === !0 && (T(I, ve), T(L, we), T(L, Ee)), W.mathMl === !0 && (T(I, be), T(L, Te), T(L, Ee))), z.tagCheck = null, z.attributeCheck = null, b(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (I === vt && (I = D(I)), T(I, e.ADD_TAGS, J))), b(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (L === yt && (L = D(L)), T(L, e.ADD_ATTR, J))), b(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (G === Lt && (G = D(G)), T(G, e.ADD_FORBID_CONTENTS, J)), Ft && (I["#text"] = !0), H && T(I, [
400
+ "html",
401
+ "head",
402
+ "body"
403
+ ]), I.table && (T(I, ["tbody"]), delete bt.tbody), e.TRUSTED_TYPES_POLICY) {
404
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
405
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
406
+ let t = M;
407
+ M = e.TRUSTED_TYPES_POLICY;
408
+ try {
409
+ N = P("");
410
+ } catch (e) {
411
+ throw M = t, e;
412
+ }
413
+ } else e.TRUSTED_TYPES_POLICY === null ? (M = void 0, N = "") : (M === void 0 && (M = nt()), M && typeof N == "string" && (N = P("")));
414
+ d && d(e), Y = e;
415
+ }, rn = T({}, [
416
+ ..._e,
417
+ ...ve,
418
+ ...ye
419
+ ]), an = T({}, [...be, ...xe]), on = function(e, t, n) {
420
+ return t.namespaceURI === K ? e === "svg" : t.namespaceURI === Ht ? e === "svg" && (n === "annotation-xml" || Jt[n]) : !!rn[e];
421
+ }, sn = function(e, t, n) {
422
+ return t.namespaceURI === K ? e === "math" : t.namespaceURI === Ut ? e === "math" && Xt[n] : !!an[e];
423
+ }, cn = function(e, t, n) {
424
+ return t.namespaceURI === Ut && !Xt[n] || t.namespaceURI === Ht && !Jt[n] ? !1 : !an[e] && (Zt[e] || !rn[e]);
425
+ }, ln = function(e) {
426
+ let t = x(e);
427
+ (!t || !t.tagName) && (t = {
428
+ namespaceURI: q,
429
+ tagName: "template"
430
+ });
431
+ let n = ae(e.tagName), r = ae(t.tagName);
432
+ return Gt[e.namespaceURI] ? e.namespaceURI === Ut ? on(n, t, r) : e.namespaceURI === Ht ? sn(n, t, r) : e.namespaceURI === K ? cn(n, t, r) : !!(Qt === "application/xhtml+xml" && Gt[e.namespaceURI]) : !1;
433
+ }, X = function(e) {
434
+ re(t.removed, { element: e });
435
+ try {
436
+ x(e).removeChild(e);
437
+ } catch {
438
+ if (ue(e), !x(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");
439
+ }
440
+ }, un = function(e, t, n) {
441
+ try {
442
+ de(e, t);
443
+ } catch {
444
+ try {
445
+ e.removeAttribute(n);
446
+ } catch {}
447
+ }
448
+ }, dn = function(e) {
449
+ pn(e);
450
+ let t = y(e);
451
+ if (t) {
452
+ let e = [];
453
+ g(t, (t) => {
454
+ re(e, t);
455
+ }), g(e, (e) => {
456
+ try {
457
+ ue(e);
458
+ } catch {}
459
+ });
460
+ }
461
+ let n = pe(e);
462
+ if (n) for (let t = n.length - 1; t >= 0; --t) {
463
+ let r = n[t], i = r && r.name;
464
+ typeof i == "string" && un(e, r, i);
465
+ }
466
+ }, Z = function(e, n, r) {
467
+ if (!r) try {
468
+ r = n.getAttributeNode(e);
469
+ } catch {
470
+ r = null;
471
+ }
472
+ re(t.removed, {
473
+ attribute: r || null,
474
+ from: n
475
+ });
476
+ try {
477
+ r ? de(n, r) : n.removeAttribute(e);
478
+ } catch {
479
+ try {
480
+ n.removeAttribute(e);
481
+ } catch {}
482
+ }
483
+ if (e === "is") if (U || At) try {
484
+ X(n);
485
+ } catch {}
486
+ else try {
487
+ n.setAttribute(e, "");
488
+ } catch {}
489
+ }, fn = function(e) {
490
+ let t = pe(e);
491
+ if (t) for (let n = t.length - 1; n >= 0; --n) {
492
+ let r = t[n], i = r && r.name;
493
+ typeof i != "string" || L[J(i)] || un(e, r, i);
494
+ }
495
+ }, pn = function(e) {
496
+ let t = [e];
497
+ for (; t.length > 0;) {
498
+ let e = t.pop();
499
+ Ye(e) === k.element && fn(e);
500
+ let n = y(e);
501
+ if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
502
+ }
503
+ }, mn = function(e, t) {
504
+ return V ? e === "patchsrc" ? !0 : e === "for" && t !== "label" && t !== "output" : !1;
505
+ }, hn = function(e) {
506
+ if (!V) return;
507
+ let t = [e];
508
+ for (; t.length > 0;) {
509
+ let e = t.pop(), n = Ye(e);
510
+ if (n === k.processingInstruction || n === k.comment && S(Re, e.data)) {
511
+ try {
512
+ ue(e);
513
+ } catch {}
514
+ continue;
515
+ }
516
+ if (n === k.element) {
517
+ let t = e, n = J(Xe(e));
518
+ try {
519
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && mn("for", n) && t.removeAttribute("for");
520
+ } catch {}
521
+ }
522
+ let r = y(e);
523
+ if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
524
+ }
525
+ }, gn = function(e) {
526
+ let t = null, r = null;
527
+ if (kt) e = "<remove></remove>" + e;
528
+ else {
529
+ let t = se(e, /^[\r\n\t ]+/);
530
+ r = t && t[0];
531
+ }
532
+ Qt === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
533
+ let i = M ? P(e) : e;
534
+ if (q === K) try {
535
+ t = new u().parseFromString(i, Qt);
536
+ } catch {}
537
+ if (!t || !t.documentElement) {
538
+ t = it.createDocument(q, "template", null);
539
+ try {
540
+ t.documentElement.innerHTML = Wt ? N : i;
541
+ } catch {}
542
+ }
543
+ let a = t.body || t.documentElement;
544
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? st.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
545
+ }, _n = function(e) {
546
+ let t = Je ? Je(e) : e.ownerDocument;
547
+ return at.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
548
+ }, vn = function(e) {
549
+ return e = v(e, lt, " "), e = v(e, ut, " "), e = v(e, dt, " "), e;
550
+ }, yn = function(e) {
551
+ e.normalize();
552
+ let t = Je ? Je(e) : e.ownerDocument, n = at.call(t || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
553
+ for (; r;) r.data = vn(r.data), r = n.nextNode();
554
+ let i = e.querySelectorAll?.call(e, "template");
555
+ i && g(i, (e) => {
556
+ Q(e.content) && yn(e.content);
557
+ });
558
+ }, bn = function(e) {
559
+ let t = A ? A(e) : null;
560
+ return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== pe(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== E(e) || e.childNodes !== y(e);
561
+ }, Q = function(e) {
562
+ if (!E || typeof e != "object" || !e) return !1;
563
+ try {
564
+ return E(e) === k.documentFragment;
565
+ } catch {
566
+ return !1;
567
+ }
568
+ }, xn = function(e) {
569
+ if (!E || typeof e != "object" || !e) return !1;
570
+ try {
571
+ return typeof E(e) == "number";
572
+ } catch {
573
+ return !1;
574
+ }
575
+ };
576
+ function $(e, n, r) {
577
+ e.length !== 0 && g(e, (e) => {
578
+ e.call(t, n, r, Y);
579
+ });
580
+ }
581
+ let Sn = function(e, t) {
582
+ return !!(V && e.hasChildNodes() && !xn(e.firstElementChild) && S(Le, e.textContent) && S(Le, e.innerHTML) || V && e.namespaceURI === K && Ve[t] && (xn(e.firstElementChild) || typeof e.textContent == "string" && S(He[t], e.textContent)) || e.nodeType === k.processingInstruction || V && e.nodeType === k.comment && S(Re, e.data));
583
+ }, Cn = function(e, t) {
584
+ return e instanceof RegExp ? S(e, t) : e instanceof Function ? !!e(t, ...[...arguments].slice(2)) : !1;
585
+ }, wn = function(e, t, n) {
586
+ if (!bt[t] && An(t) && Cn(R.tagNameCheck, t)) return !1;
587
+ if (Ft && !G[t]) {
588
+ let t = x(e), r = y(e);
589
+ if (r && t) {
590
+ let i = r.length;
591
+ for (let a = i - 1; a >= 0; --a) {
592
+ let i = e === n ? ee(r[a], !0) : r[a];
593
+ t.insertBefore(i, fe(e));
594
+ }
595
+ }
596
+ }
597
+ return X(e), !0;
598
+ }, Tn = function(e, t, n, r) {
599
+ return e.length === 0 ? t : t === n || t === r ? D(t) : t;
600
+ }, En = function(e, t) {
601
+ return e === t || x(e) !== null ? !1 : (It && pn(e), !0);
602
+ }, Dn = function(e, n) {
603
+ if ($(F.beforeSanitizeElements, e, null), En(e, n)) return !0;
604
+ if (bn(e)) return X(e), !0;
605
+ let r = J(Xe(e));
606
+ if (I = Tn(F.uponSanitizeElement, I, vt, Dt), $(F.uponSanitizeElement, e, {
607
+ tagName: r,
608
+ allowedTags: I
609
+ }), En(e, n)) return !0;
610
+ if (Sn(e, r)) return X(e), !0;
611
+ if (bt[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !I[r]) {
612
+ let t = wn(e, r, n);
613
+ return t === !1 && $(F.afterSanitizeElements, e, null), t;
614
+ }
615
+ if (Ye(e) === k.element && !ln(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(ze, e.innerHTML)) return X(e), !0;
616
+ if (B && e.nodeType === k.text) {
617
+ let n = vn(e.textContent);
618
+ e.textContent !== n && (re(t.removed, { element: e.cloneNode() }), e.textContent = n);
619
+ }
620
+ return $(F.afterSanitizeElements, e, null), !1;
621
+ }, On = function(e, t, r) {
622
+ if (xt[t] || mn(t, e) || Mt && (t === "id" || t === "name") && (r in n || r in en)) return !1;
623
+ let i = L[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
624
+ return Ct && S(ft, t) || St && S(pt, t) ? !0 : i ? Bt[t] || S(_t, v(r, ht, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ce(r, "data:") === 0 && Rt[e] || wt && !S(mt, v(r, ht, "")) ? !0 : !r : An(e) && Cn(R.tagNameCheck, e) && Cn(R.attributeNameCheck, t, e) || t === "is" && R.allowCustomizedBuiltInElements && Cn(R.tagNameCheck, r);
625
+ }, kn = T({}, [
626
+ "annotation-xml",
627
+ "color-profile",
628
+ "font-face",
629
+ "font-face-format",
630
+ "font-face-name",
631
+ "font-face-src",
632
+ "font-face-uri",
633
+ "missing-glyph"
634
+ ]), An = function(e) {
635
+ return !kn[ae(e)] && S(gt, e);
636
+ }, jn = function(e, t, n, r) {
637
+ if (M && typeof m == "object" && typeof m.getAttributeType == "function" && !n) switch (m.getAttributeType(e, t)) {
638
+ case "TrustedHTML": return P(r);
639
+ case "TrustedScriptURL": return tt(r);
640
+ }
641
+ return r;
642
+ }, Mn = function(e, t, n, r) {
643
+ try {
644
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), bn(e) ? (X(e), !1) : !0;
645
+ } catch {
646
+ return Z(t, e), !1;
647
+ }
648
+ }, Nn = function(e) {
649
+ $(F.beforeSanitizeAttributes, e, null);
650
+ let n = e.attributes;
651
+ if (!n || bn(e)) return;
652
+ L = Tn(F.uponSanitizeAttribute, L, yt, Ot);
653
+ let r = {
654
+ attrName: "",
655
+ attrValue: "",
656
+ keepAttr: !0,
657
+ allowedAttributes: L,
658
+ forceKeepAttr: void 0
659
+ }, i = n.length, a = J(e.nodeName);
660
+ for (; i--;) {
661
+ let o = n[i], s = o.name, c = o.namespaceURI, l = o.value, u = J(s), d = l, f = s === "value" ? d : le(d), p = !1;
662
+ if (r.attrName = u, r.attrValue = f, r.keepAttr = !0, r.forceKeepAttr = void 0, $(F.uponSanitizeAttribute, e, r), f = r.attrValue, Nt && (u === "id" || u === "name") && ce(f, Pt) !== 0 && (Z(s, e, o), f = Pt + f, p = !0), V && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
663
+ Z(s, e, o);
664
+ continue;
665
+ }
666
+ if (u === "attributename" && se(f, "href")) {
667
+ Z(s, e, o);
668
+ continue;
669
+ }
670
+ if (!r.forceKeepAttr) {
671
+ if (!r.keepAttr) {
672
+ Z(s, e, o);
673
+ continue;
674
+ }
675
+ if (!Tt && S(Be, f)) {
676
+ Z(s, e, o);
677
+ continue;
678
+ }
679
+ if (B && (f = vn(f)), !On(a, u, f)) {
680
+ Z(s, e, o);
681
+ continue;
682
+ }
683
+ f = jn(a, u, c, f), f !== d && Mn(e, s, c, f) && p && ne(t.removed);
684
+ }
685
+ }
686
+ $(F.afterSanitizeAttributes, e, null);
687
+ }, Pn = function(e) {
688
+ let t = null, n = _n(e);
689
+ for ($(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(F.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t), Q(t.content) && Pn(t.content), Ye(t) === k.element) {
690
+ let e = w(t);
691
+ Q(e) && (Fn(e), Pn(e));
692
+ }
693
+ $(F.afterSanitizeShadowDOM, e, null);
694
+ }, Fn = function(e) {
695
+ let t = [{
696
+ node: e,
697
+ shadow: null
698
+ }];
699
+ for (; t.length > 0;) {
700
+ let e = t.pop();
701
+ if (e.shadow) {
702
+ Pn(e.shadow);
703
+ continue;
704
+ }
705
+ let n = e.node, r = Ye(n) === k.element, i = y(n);
706
+ if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
707
+ node: i[e],
708
+ shadow: null
709
+ });
710
+ if (r) {
711
+ let e = A ? A(n) : null;
712
+ if (typeof e == "string" && J(e) === "template") {
713
+ let e = n.content;
714
+ Q(e) && t.push({
715
+ node: e,
716
+ shadow: null
717
+ });
718
+ }
719
+ }
720
+ if (r) {
721
+ let e = w(n);
722
+ Q(e) && t.push({
723
+ node: null,
724
+ shadow: e
725
+ }, {
726
+ node: e,
727
+ shadow: null
728
+ });
729
+ }
730
+ }
731
+ };
732
+ return t.sanitize = function(e) {
733
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
734
+ if (Wt = !e, Wt && (e = "<!-->"), typeof e != "string" && !xn(e) && (e = me(e), typeof e != "string")) throw C("dirty is not a string, aborting");
735
+ if (!t.isSupported) return e;
736
+ Et ? (I = Dt, L = Ot) : nn(n), (F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && (I = D(I)), F.uponSanitizeAttribute.length > 0 && (L = D(L)), t.removed = [];
737
+ let c = It && typeof e != "string" && xn(e);
738
+ if (c) {
739
+ hn(e);
740
+ let t = Xe(e);
741
+ if (typeof t == "string") {
742
+ let n = J(t);
743
+ if (!I[n] || bt[n]) throw dn(e), C("root node is forbidden and cannot be sanitized in-place");
744
+ }
745
+ if (bn(e)) throw dn(e), C("root node is clobbered and cannot be sanitized in-place");
746
+ try {
747
+ Fn(e);
748
+ } catch (t) {
749
+ throw dn(e), t;
750
+ }
751
+ } else if (xn(e)) i = gn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === k.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
752
+ else {
753
+ if (!U && !B && !H && e.indexOf("<") === -1) return M && jt ? P(e) : e;
754
+ if (i = gn(e), !i) return U ? null : jt ? N : "";
755
+ }
756
+ i && kt && X(i.firstChild);
757
+ let l = c ? e : i;
758
+ try {
759
+ let e = _n(l);
760
+ for (; o = e.nextNode();) Dn(o, l), Nn(o), Q(o.content) && Pn(o.content);
761
+ } catch (n) {
762
+ throw c && (dn(e), g(t.removed, (e) => {
763
+ e.element && pn(e.element);
764
+ })), n;
765
+ }
766
+ if (c) return g(t.removed, (e) => {
767
+ e.element && pn(e.element);
768
+ }), B && yn(e), e;
769
+ if (U) {
770
+ if (B && yn(i), At) for (s = ot.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
771
+ else s = i;
772
+ return (L.shadowroot || L.shadowrootmode) && (s = ct.call(r, s, !0)), s;
773
+ }
774
+ let u = H ? i.outerHTML : i.innerHTML;
775
+ return H && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Fe, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = vn(u)), M && jt ? P(u) : u;
776
+ }, t.setConfig = function() {
777
+ nn(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Et = !0, Dt = I, Ot = L;
778
+ }, t.clearConfig = function() {
779
+ Y = null, Et = !1, Dt = null, Ot = null, M = Ze, N = "";
780
+ }, t.isValidAttribute = function(e, t, n) {
781
+ return Y || nn({}), On(J(e), J(t), n);
782
+ }, t.addHook = function(e, t) {
783
+ typeof t == "function" && b(F, e) && re(F[e], t);
784
+ }, t.removeHook = function(e, t) {
785
+ if (b(F, e)) {
786
+ if (t !== void 0) {
787
+ let n = te(F[e], t);
788
+ return n === -1 ? void 0 : ie(F[e], n, 1)[0];
789
+ }
790
+ return ne(F[e]);
791
+ }
792
+ }, t.removeHooks = function(e) {
793
+ b(F, e) && (F[e] = []);
794
+ }, t.removeAllHooks = function() {
795
+ F = Ge();
796
+ }, t;
797
+ }
798
+ var Je = qe();
799
+ //#endregion
800
+ export { Je as purify };