@gatewaze/admin-embed 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/README.md +42 -0
  2. package/dist/AiSkillsPicker-dbFhcanE.js +373 -0
  3. package/dist/ContentAccessPage-D0HRqPFc.js +264 -0
  4. package/dist/DataTable-fe6yRVpF.js +1984 -0
  5. package/dist/DetailPageHeader-D_v7924k.js +69 -0
  6. package/dist/EditionEmail-CyhC8232.js +8382 -0
  7. package/dist/GuideContent-DBXKCu7r.js +7580 -0
  8. package/dist/HostMediaTab-BsIBEQ1v.js +440 -0
  9. package/dist/InboxPage-C8ivCKdx.js +1112 -0
  10. package/dist/NewsletterCanvasEditor--B06apn3.js +11453 -0
  11. package/dist/NewsletterSetupWizard-BqV6-fa5.js +347 -0
  12. package/dist/NewsletterSignup-DRVZIpOs.js +224 -0
  13. package/dist/Page-D3u8IZ2a.js +14 -0
  14. package/dist/Toaster-Cde0i6IA.js +18 -0
  15. package/dist/Tooltip-CqxUlW1d.js +746 -0
  16. package/dist/_collectionSlug_-B3UN6M-Q.js +308 -0
  17. package/dist/_collection_-Qz4k_Qjl.js +139 -0
  18. package/dist/_edition_-DQXwkI_-.js +301 -0
  19. package/dist/_id_-CtT7rT9f.js +257 -0
  20. package/dist/_id_-CzScE4Qn.js +1197 -0
  21. package/dist/_virtual_gatewaze-modules-BeloWlOa.js +991 -0
  22. package/dist/admin-B0Mmrh_O.js +1239 -0
  23. package/dist/admin-CcfoK6vD.js +17 -0
  24. package/dist/admin-embed.js +21844 -0
  25. package/dist/admin.css +2 -0
  26. package/dist/block-editor-vXBShAue.js +226 -0
  27. package/dist/brand-DklYwIeA.js +11 -0
  28. package/dist/brick-editor-CmBitMMK.js +225 -0
  29. package/dist/broadcastService-CBqXNt_N.js +190 -0
  30. package/dist/classnames-uWIYaD6z.js +44 -0
  31. package/dist/contentAccessService-Cs7tdAo-.js +59 -0
  32. package/dist/context-jzuubYRz.js +5 -0
  33. package/dist/createSafeContext-P1pK0sAN.js +17 -0
  34. package/dist/detail-B8SVFJJr.js +26285 -0
  35. package/dist/detail-uFBxRbLF.js +2966 -0
  36. package/dist/dist-DTrOExw8.js +38806 -0
  37. package/dist/edition-slug-CARO24Bs.js +7 -0
  38. package/dist/export-edition-html-C_hdXQu5.js +18893 -0
  39. package/dist/floating-ui.dom-Cyv879E9.js +987 -0
  40. package/dist/hooks-C377EXJG.js +2974 -0
  41. package/dist/img/mlops-logo.png +0 -0
  42. package/dist/img/mlops-logo2.png +0 -0
  43. package/dist/index.d.ts +105 -0
  44. package/dist/jsx-runtime-CjozyJt-.js +180 -0
  45. package/dist/lib-CylJmhlJ.js +828 -0
  46. package/dist/list-C0cz0aQz.js +451 -0
  47. package/dist/list-CIVgIGsU.js +166 -0
  48. package/dist/logo/mlops-alt.png +0 -0
  49. package/dist/logo/mlops-logo.png +0 -0
  50. package/dist/new-r4KWpqa6.js +80 -0
  51. package/dist/outline-DwDYhYcF.js +6538 -0
  52. package/dist/pages-Ersfxcz7.js +216 -0
  53. package/dist/preview/12627f.jpg +0 -0
  54. package/dist/preview/af009d.jpg +0 -0
  55. package/dist/public-api-LD11kMxh.js +238 -0
  56. package/dist/react-DB2tPNit.js +933 -0
  57. package/dist/react-dom-giQNVXng.js +267 -0
  58. package/dist/registry-4XrV9iNG.js +7 -0
  59. package/dist/render-BtUWfMUt.js +59634 -0
  60. package/dist/resolvePeopleByEmail-hivX2l07.js +828 -0
  61. package/dist/runtime-config.js +10 -0
  62. package/dist/sends-BkPO6PG2.js +182 -0
  63. package/dist/server.browser-Pj3QUa7k.js +15227 -0
  64. package/dist/shim-BCerG8nb.js +6681 -0
  65. package/dist/sonnerHostBridge-CXuCMM3R.js +665 -0
  66. package/dist/src-BWDAOzZO.js +799 -0
  67. package/dist/starter-templates-CFs-QUdF.js +3077 -0
  68. package/dist/storage-VDSvnkvR.js +39 -0
  69. package/dist/templateParser-BQ2IsJ6c.js +49 -0
  70. package/dist/templates-rjQjWsRr.js +253 -0
  71. package/dist/theme/gatewaze/android-icon-144x144.png +0 -0
  72. package/dist/theme/gatewaze/android-icon-192x192.png +0 -0
  73. package/dist/theme/gatewaze/android-icon-36x36.png +0 -0
  74. package/dist/theme/gatewaze/android-icon-48x48.png +0 -0
  75. package/dist/theme/gatewaze/android-icon-72x72.png +0 -0
  76. package/dist/theme/gatewaze/android-icon-96x96.png +0 -0
  77. package/dist/theme/gatewaze/favicon-144x144.png +0 -0
  78. package/dist/theme/gatewaze/favicon-16x16.png +0 -0
  79. package/dist/theme/gatewaze/favicon-192x192.png +0 -0
  80. package/dist/theme/gatewaze/favicon-32x32.png +0 -0
  81. package/dist/theme/gatewaze/favicon-96x96.png +0 -0
  82. package/dist/theme/gatewaze/favicon.ico +0 -0
  83. package/dist/theme/gatewaze/gatewaze-icon-512.png +0 -0
  84. package/dist/theme/gatewaze/gatewaze-logo-black.svg +24 -0
  85. package/dist/theme/gatewaze/gatewaze-logo-white.svg +20 -0
  86. package/dist/theme/gatewaze/gatewaze-poweredby-black.svg +25 -0
  87. package/dist/theme/gatewaze/gatewaze-poweredby-white.svg +25 -0
  88. package/dist/theme/gatewaze/logo_black.svg +24 -0
  89. package/dist/theme/gatewaze/logo_white.svg +20 -0
  90. package/dist/theme-D6odw5nx.js +586 -0
  91. package/dist/ui-DRIo9Krs.js +9747 -0
  92. package/dist/upload-DMNfZ6FX.js +505 -0
  93. package/dist/useModuleFeature-DgsFIUpv.js +8 -0
  94. package/dist/utils-BcVvIjaY.js +36 -0
  95. package/dist/with-selector-B8eSdVx_.js +100 -0
  96. package/package.json +33 -0
@@ -0,0 +1,799 @@
1
+ //#region ../../node_modules/.pnpm/dompurify@3.4.12/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 = T(Array.prototype.forEach), te = T(Array.prototype.lastIndexOf), ne = T(Array.prototype.pop), _ = T(Array.prototype.push), re = T(Array.prototype.splice), v = Array.isArray, ie = T(String.prototype.toLowerCase), ae = T(String.prototype.toString), oe = T(String.prototype.match), se = T(String.prototype.replace), ce = T(String.prototype.indexOf), le = T(String.prototype.trim), ue = T(Number.prototype.toString), de = T(Boolean.prototype.toString), y = typeof BigInt > "u" ? null : T(BigInt.prototype.toString), b = typeof Symbol > "u" ? null : T(Symbol.prototype.toString), x = T(Object.prototype.hasOwnProperty), S = T(Object.prototype.toString), C = T(RegExp.prototype.test), w = E(TypeError);
53
+ function T(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 E(e) {
61
+ return function() {
62
+ return ee(e, [...arguments]);
63
+ };
64
+ }
65
+ function D(e, t) {
66
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ie;
67
+ if (s && s(e, null), !v(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 O(e) {
80
+ for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
81
+ return e;
82
+ }
83
+ function k(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
+ x(e, a) && (t[a] = v(o) ? O(o) : o && typeof o == "object" && o.constructor === Object ? k(o) : o);
89
+ }
90
+ return t;
91
+ }
92
+ function fe(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 y ? y(e) : "0";
98
+ case "symbol": return b ? b(e) : "Symbol()";
99
+ case "undefined": return S(e);
100
+ case "function":
101
+ case "object": {
102
+ if (e === null) return S(e);
103
+ let t = e, n = A(t, "toString");
104
+ if (typeof n == "function") {
105
+ let e = n(t);
106
+ return typeof e == "string" ? e : S(e);
107
+ }
108
+ return S(e);
109
+ }
110
+ default: return S(e);
111
+ }
112
+ }
113
+ function A(e, t) {
114
+ for (; e !== null;) {
115
+ let n = u(e, t);
116
+ if (n) {
117
+ if (n.get) return T(n.get);
118
+ if (typeof n.value == "function") return T(n.value);
119
+ }
120
+ e = l(e);
121
+ }
122
+ function n() {
123
+ return null;
124
+ }
125
+ return n;
126
+ }
127
+ function pe(e) {
128
+ try {
129
+ return C(e, ""), !0;
130
+ } catch {
131
+ return !1;
132
+ }
133
+ }
134
+ var me = 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(".")), he = 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(".")), ge = 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
+ ]), _e = 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
+ ]), ve = 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(".")), ye = 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
+ ]), be = d(["#text"]), xe = 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(".")), Se = 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.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.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(".")), Ce = 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(".")), we = d([
200
+ "xlink:href",
201
+ "xml:id",
202
+ "xlink:title",
203
+ "xml:space",
204
+ "xmlns:xlink"
205
+ ]), Te = f(/{{[\w\W]*|^[\w\W]*}}/g), Ee = f(/<%[\w\W]*|^[\w\W]*%>/g), De = f(/\${[\w\W]*/g), Oe = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), ke = f(/^aria-[\-\w]+$/), Ae = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), je = f(/^(?:\w+script|data):/i), Me = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ne = f(/^html$/i), Pe = f(/^[a-z][.\w]*(-[.\w]+)+$/i), Fe = f(/<[/\w!]/g), Ie = f(/<[/\w]/g), Le = f(/<\/no(script|embed|frames)/i), Re = f(/\/>/i), j = {
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
+ }, ze = function() {
219
+ return typeof window > "u" ? null : window;
220
+ }, Be = function(e, t) {
221
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
222
+ let n = null, r = "data-tt-policy-suffix";
223
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
224
+ let i = "dompurify" + (n ? "#" + n : "");
225
+ try {
226
+ return e.createPolicy(i, {
227
+ createHTML(e) {
228
+ return e;
229
+ },
230
+ createScriptURL(e) {
231
+ return e;
232
+ }
233
+ });
234
+ } catch {
235
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
236
+ }
237
+ }, Ve = function() {
238
+ return {
239
+ afterSanitizeAttributes: [],
240
+ afterSanitizeElements: [],
241
+ afterSanitizeShadowDOM: [],
242
+ beforeSanitizeAttributes: [],
243
+ beforeSanitizeElements: [],
244
+ beforeSanitizeShadowDOM: [],
245
+ uponSanitizeAttribute: [],
246
+ uponSanitizeElement: [],
247
+ uponSanitizeShadowNode: []
248
+ };
249
+ }, M = function(e, t, n, r) {
250
+ return x(e, t) && v(e[t]) ? D(r.base ? k(r.base) : {}, e[t], r.transform) : n;
251
+ };
252
+ function He() {
253
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ze(), t = (e) => He(e);
254
+ if (t.version = "3.4.12", t.removed = [], !e || !e.document || e.document.nodeType !== j.document || !e.Element) return t.isSupported = !1, t;
255
+ let n = e.document, r = n, i = r.currentScript;
256
+ e.DocumentFragment;
257
+ let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
258
+ e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
259
+ let u = e.DOMParser, m = e.trustedTypes, h = c.prototype, ee = A(h, "cloneNode"), ue = A(h, "remove"), de = A(h, "nextSibling"), y = A(h, "childNodes"), b = A(h, "parentNode"), S = A(h, "shadowRoot"), T = A(h, "attributes"), E = s && s.prototype ? A(s.prototype, "nodeType") : null, O = s && s.prototype ? A(s.prototype, "nodeName") : null;
260
+ if (typeof a == "function") {
261
+ let e = n.createElement("template");
262
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
263
+ }
264
+ let N, P = "", Ue, We = !1, Ge = 0, Ke = function() {
265
+ if (Ge > 0) throw w("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.");
266
+ }, F = function(e) {
267
+ Ke(), Ge++;
268
+ try {
269
+ return N.createHTML(e);
270
+ } finally {
271
+ Ge--;
272
+ }
273
+ }, qe = function(e) {
274
+ Ke(), Ge++;
275
+ try {
276
+ return N.createScriptURL(e);
277
+ } finally {
278
+ Ge--;
279
+ }
280
+ }, Je = function() {
281
+ return We ||= (Ue = Be(m, i), !0), Ue;
282
+ }, Ye = n, Xe = Ye.implementation, Ze = Ye.createNodeIterator, Qe = Ye.createDocumentFragment, $e = Ye.getElementsByTagName, et = r.importNode, I = Ve();
283
+ t.isSupported = typeof o == "function" && typeof b == "function" && Xe && Xe.createHTMLDocument !== void 0;
284
+ let tt = Te, nt = Ee, rt = De, it = Oe, at = ke, ot = je, st = Me, ct = Pe, lt = Ae, L = null, ut = D({}, [
285
+ ...me,
286
+ ...he,
287
+ ...ge,
288
+ ...ve,
289
+ ...be
290
+ ]), R = null, dt = D({}, [
291
+ ...xe,
292
+ ...Se,
293
+ ...Ce,
294
+ ...we
295
+ ]), z = Object.seal(p(null, {
296
+ tagNameCheck: {
297
+ writable: !0,
298
+ configurable: !1,
299
+ enumerable: !0,
300
+ value: null
301
+ },
302
+ attributeNameCheck: {
303
+ writable: !0,
304
+ configurable: !1,
305
+ enumerable: !0,
306
+ value: null
307
+ },
308
+ allowCustomizedBuiltInElements: {
309
+ writable: !0,
310
+ configurable: !1,
311
+ enumerable: !0,
312
+ value: !1
313
+ }
314
+ })), ft = null, pt = null, B = Object.seal(p(null, {
315
+ tagCheck: {
316
+ writable: !0,
317
+ configurable: !1,
318
+ enumerable: !0,
319
+ value: null
320
+ },
321
+ attributeCheck: {
322
+ writable: !0,
323
+ configurable: !1,
324
+ enumerable: !0,
325
+ value: null
326
+ }
327
+ })), mt = !0, ht = !0, gt = !1, _t = !0, V = !1, H = !0, U = !1, vt = !1, yt = null, bt = null, xt = !1, W = !1, St = !1, Ct = !1, wt = !0, Tt = !1, Et = "user-content-", Dt = !0, Ot = !1, G = {}, K = null, kt = D({}, /* @__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(".")), At = null, jt = D({}, [
328
+ "audio",
329
+ "video",
330
+ "img",
331
+ "source",
332
+ "image",
333
+ "track"
334
+ ]), Mt = null, Nt = D({}, [
335
+ "alt",
336
+ "class",
337
+ "for",
338
+ "id",
339
+ "label",
340
+ "name",
341
+ "pattern",
342
+ "placeholder",
343
+ "role",
344
+ "summary",
345
+ "title",
346
+ "value",
347
+ "style",
348
+ "xmlns"
349
+ ]), Pt = "http://www.w3.org/1998/Math/MathML", Ft = "http://www.w3.org/2000/svg", q = "http://www.w3.org/1999/xhtml", J = q, It = !1, Lt = null, Rt = D({}, [
350
+ Pt,
351
+ Ft,
352
+ q
353
+ ], ae), zt = d([
354
+ "mi",
355
+ "mo",
356
+ "mn",
357
+ "ms",
358
+ "mtext"
359
+ ]), Bt = D({}, zt), Vt = d(["annotation-xml"]), Ht = D({}, Vt), Ut = D({}, [
360
+ "title",
361
+ "style",
362
+ "font",
363
+ "a",
364
+ "script"
365
+ ]), Wt = null, Gt = ["application/xhtml+xml", "text/html"], Y = null, X = null, Kt = n.createElement("form"), qt = function(e) {
366
+ return e instanceof RegExp || e instanceof Function;
367
+ }, Jt = function() {
368
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
369
+ if (X && X === e) return;
370
+ (!e || typeof e != "object") && (e = {}), e = k(e), Wt = Gt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = Wt === "application/xhtml+xml" ? ae : ie, L = M(e, "ALLOWED_TAGS", ut, { transform: Y }), R = M(e, "ALLOWED_ATTR", dt, { transform: Y }), Lt = M(e, "ALLOWED_NAMESPACES", Rt, { transform: ae }), Mt = M(e, "ADD_URI_SAFE_ATTR", Nt, {
371
+ transform: Y,
372
+ base: Nt
373
+ }), At = M(e, "ADD_DATA_URI_TAGS", jt, {
374
+ transform: Y,
375
+ base: jt
376
+ }), K = M(e, "FORBID_CONTENTS", kt, { transform: Y }), ft = M(e, "FORBID_TAGS", k({}), { transform: Y }), pt = M(e, "FORBID_ATTR", k({}), { transform: Y }), G = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? k(e.USE_PROFILES) : e.USE_PROFILES : !1, mt = e.ALLOW_ARIA_ATTR !== !1, ht = e.ALLOW_DATA_ATTR !== !1, gt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, _t = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, H = e.SAFE_FOR_XML !== !1, U = e.WHOLE_DOCUMENT || !1, W = 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, lt = pe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ae, J = typeof e.NAMESPACE == "string" ? e.NAMESPACE : q, Bt = x(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? k(e.MATHML_TEXT_INTEGRATION_POINTS) : D({}, zt), Ht = x(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? k(e.HTML_INTEGRATION_POINTS) : D({}, Vt);
377
+ let t = x(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? k(e.CUSTOM_ELEMENT_HANDLING) : p(null);
378
+ if (z = p(null), x(t, "tagNameCheck") && qt(t.tagNameCheck) && (z.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && qt(t.attributeNameCheck) && (z.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(z), V && (ht = !1), St && (W = !0), G && (L = D({}, be), R = p(null), G.html === !0 && (D(L, me), D(R, xe)), G.svg === !0 && (D(L, he), D(R, Se), D(R, we)), G.svgFilters === !0 && (D(L, ge), D(R, Se), D(R, we)), G.mathMl === !0 && (D(L, ve), D(R, Ce), D(R, we))), B.tagCheck = null, B.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : v(e.ADD_TAGS) && (L === ut && (L = k(L)), D(L, e.ADD_TAGS, Y))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : v(e.ADD_ATTR) && (R === dt && (R = k(R)), D(R, e.ADD_ATTR, Y))), x(e, "ADD_URI_SAFE_ATTR") && v(e.ADD_URI_SAFE_ATTR) && D(Mt, e.ADD_URI_SAFE_ATTR, Y), x(e, "FORBID_CONTENTS") && v(e.FORBID_CONTENTS) && (K === kt && (K = k(K)), D(K, e.FORBID_CONTENTS, Y)), x(e, "ADD_FORBID_CONTENTS") && v(e.ADD_FORBID_CONTENTS) && (K === kt && (K = k(K)), D(K, e.ADD_FORBID_CONTENTS, Y)), Dt && (L["#text"] = !0), U && D(L, [
379
+ "html",
380
+ "head",
381
+ "body"
382
+ ]), L.table && (D(L, ["tbody"]), delete ft.tbody), e.TRUSTED_TYPES_POLICY) {
383
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw w("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
384
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw w("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
385
+ let t = N;
386
+ N = e.TRUSTED_TYPES_POLICY;
387
+ try {
388
+ P = F("");
389
+ } catch (e) {
390
+ throw N = t, e;
391
+ }
392
+ } else e.TRUSTED_TYPES_POLICY === null ? (N = void 0, P = "") : (N === void 0 && (N = Je()), N && typeof P == "string" && (P = F("")));
393
+ d && d(e), X = e;
394
+ }, Yt = D({}, [
395
+ ...he,
396
+ ...ge,
397
+ ..._e
398
+ ]), Xt = D({}, [...ve, ...ye]), Zt = function(e, t, n) {
399
+ return t.namespaceURI === q ? e === "svg" : t.namespaceURI === Pt ? e === "svg" && (n === "annotation-xml" || Bt[n]) : !!Yt[e];
400
+ }, Qt = function(e, t, n) {
401
+ return t.namespaceURI === q ? e === "math" : t.namespaceURI === Ft ? e === "math" && Ht[n] : !!Xt[e];
402
+ }, $t = function(e, t, n) {
403
+ return t.namespaceURI === Ft && !Ht[n] || t.namespaceURI === Pt && !Bt[n] ? !1 : !Xt[e] && (Ut[e] || !Yt[e]);
404
+ }, en = function(e) {
405
+ let t = b(e);
406
+ (!t || !t.tagName) && (t = {
407
+ namespaceURI: J,
408
+ tagName: "template"
409
+ });
410
+ let n = ie(e.tagName), r = ie(t.tagName);
411
+ return Lt[e.namespaceURI] ? e.namespaceURI === Ft ? Zt(n, t, r) : e.namespaceURI === Pt ? Qt(n, t, r) : e.namespaceURI === q ? $t(n, t, r) : !!(Wt === "application/xhtml+xml" && Lt[e.namespaceURI]) : !1;
412
+ }, Z = function(e) {
413
+ _(t.removed, { element: e });
414
+ try {
415
+ b(e).removeChild(e);
416
+ } catch {
417
+ if (ue(e), !b(e)) throw w("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
418
+ }
419
+ }, tn = function(e) {
420
+ rn(e);
421
+ let t = y(e);
422
+ if (t) {
423
+ let e = [];
424
+ g(t, (t) => {
425
+ _(e, t);
426
+ }), g(e, (e) => {
427
+ try {
428
+ ue(e);
429
+ } catch {}
430
+ });
431
+ }
432
+ let n = T(e);
433
+ if (n) for (let t = n.length - 1; t >= 0; --t) {
434
+ let r = n[t], i = r && r.name;
435
+ if (typeof i == "string") try {
436
+ e.removeAttribute(i);
437
+ } catch {}
438
+ }
439
+ }, Q = function(e, n) {
440
+ try {
441
+ _(t.removed, {
442
+ attribute: n.getAttributeNode(e),
443
+ from: n
444
+ });
445
+ } catch {
446
+ _(t.removed, {
447
+ attribute: null,
448
+ from: n
449
+ });
450
+ }
451
+ if (n.removeAttribute(e), e === "is") if (W || St) try {
452
+ Z(n);
453
+ } catch {}
454
+ else try {
455
+ n.setAttribute(e, "");
456
+ } catch {}
457
+ }, nn = function(e) {
458
+ let t = T(e);
459
+ if (t) for (let n = t.length - 1; n >= 0; --n) {
460
+ let r = t[n], i = r && r.name;
461
+ if (!(typeof i != "string" || R[Y(i)])) try {
462
+ e.removeAttribute(i);
463
+ } catch {}
464
+ }
465
+ }, rn = function(e) {
466
+ let t = [e];
467
+ for (; t.length > 0;) {
468
+ let e = t.pop();
469
+ (E ? E(e) : e.nodeType) === j.element && nn(e);
470
+ let n = y(e);
471
+ if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
472
+ }
473
+ }, an = function(e) {
474
+ if (!H) return;
475
+ let t = [e];
476
+ for (; t.length > 0;) {
477
+ let e = t.pop(), n = E ? E(e) : e.nodeType;
478
+ if (n === j.processingInstruction || n === j.comment && C(Ie, e.data)) {
479
+ try {
480
+ ue(e);
481
+ } catch {}
482
+ continue;
483
+ }
484
+ if (n === j.element) {
485
+ let t = e, n = Y(O ? O(e) : e.nodeName);
486
+ try {
487
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
488
+ } catch {}
489
+ }
490
+ let r = y(e);
491
+ if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
492
+ }
493
+ }, on = function(e) {
494
+ let t = null, r = null;
495
+ if (xt) e = "<remove></remove>" + e;
496
+ else {
497
+ let t = oe(e, /^[\r\n\t ]+/);
498
+ r = t && t[0];
499
+ }
500
+ Wt === "application/xhtml+xml" && J === q && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
501
+ let i = N ? F(e) : e;
502
+ if (J === q) try {
503
+ t = new u().parseFromString(i, Wt);
504
+ } catch {}
505
+ if (!t || !t.documentElement) {
506
+ t = Xe.createDocument(J, "template", null);
507
+ try {
508
+ t.documentElement.innerHTML = It ? P : i;
509
+ } catch {}
510
+ }
511
+ let a = t.body || t.documentElement;
512
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), J === q ? $e.call(t, U ? "html" : "body")[0] : U ? t.documentElement : a;
513
+ }, sn = function(e) {
514
+ return Ze.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
515
+ }, cn = function(e) {
516
+ return e = se(e, tt, " "), e = se(e, nt, " "), e = se(e, rt, " "), e;
517
+ }, ln = function(e) {
518
+ e.normalize();
519
+ let t = Ze.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
520
+ for (; n;) n.data = cn(n.data), n = t.nextNode();
521
+ let r = e.querySelectorAll?.call(e, "template");
522
+ r && g(r, (e) => {
523
+ dn(e.content) && ln(e.content);
524
+ });
525
+ }, un = function(e) {
526
+ let t = O ? O(e) : null;
527
+ return typeof t != "string" || Y(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== T(e) || typeof e.removeAttribute != "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);
528
+ }, dn = function(e) {
529
+ if (!E || typeof e != "object" || !e) return !1;
530
+ try {
531
+ return E(e) === j.documentFragment;
532
+ } catch {
533
+ return !1;
534
+ }
535
+ }, fn = function(e) {
536
+ if (!E || typeof e != "object" || !e) return !1;
537
+ try {
538
+ return typeof E(e) == "number";
539
+ } catch {
540
+ return !1;
541
+ }
542
+ };
543
+ function $(e, n, r) {
544
+ e.length !== 0 && g(e, (e) => {
545
+ e.call(t, n, r, X);
546
+ });
547
+ }
548
+ let pn = function(e, t) {
549
+ return !!(H && e.hasChildNodes() && !fn(e.firstElementChild) && C(Fe, e.textContent) && C(Fe, e.innerHTML) || H && e.namespaceURI === q && t === "style" && fn(e.firstElementChild) || e.nodeType === j.processingInstruction || H && e.nodeType === j.comment && C(Ie, e.data));
550
+ }, mn = function(e, t) {
551
+ if (!ft[t] && vn(t) && (z.tagNameCheck instanceof RegExp && C(z.tagNameCheck, t) || z.tagNameCheck instanceof Function && z.tagNameCheck(t))) return !1;
552
+ if (Dt && !K[t]) {
553
+ let t = b(e), n = y(e);
554
+ if (n && t) {
555
+ let r = n.length;
556
+ for (let i = r - 1; i >= 0; --i) {
557
+ let r = Ot ? n[i] : ee(n[i], !0);
558
+ t.insertBefore(r, de(e));
559
+ }
560
+ }
561
+ }
562
+ return Z(e), !0;
563
+ }, hn = function(e, n) {
564
+ if ($(I.beforeSanitizeElements, e, null), e !== n && b(e) === null) return !0;
565
+ if (un(e)) return Z(e), !0;
566
+ let r = Y(O ? O(e) : e.nodeName);
567
+ if ($(I.uponSanitizeElement, e, {
568
+ tagName: r,
569
+ allowedTags: L
570
+ }), e !== n && b(e) === null) return !0;
571
+ if (pn(e, r)) return Z(e), !0;
572
+ if (ft[r] || !(B.tagCheck instanceof Function && B.tagCheck(r)) && !L[r]) {
573
+ let t = mn(e, r);
574
+ return t === !1 && $(I.afterSanitizeElements, e, null), t;
575
+ }
576
+ if ((E ? E(e) : e.nodeType) === j.element && !en(e) || (r === "noscript" || r === "noembed" || r === "noframes") && C(Le, e.innerHTML)) return Z(e), !0;
577
+ if (V && e.nodeType === j.text) {
578
+ let n = cn(e.textContent);
579
+ e.textContent !== n && (_(t.removed, { element: e.cloneNode() }), e.textContent = n);
580
+ }
581
+ return $(I.afterSanitizeElements, e, null), !1;
582
+ }, gn = function(e, t, r) {
583
+ if (pt[t] || H && t === "patchsrc" || H && t === "for" && e !== "label" && e !== "output" || wt && (t === "id" || t === "name") && (r in n || r in Kt)) return !1;
584
+ let i = R[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
585
+ if (!(ht && C(it, t)) && !(mt && C(at, t))) {
586
+ if (!i) {
587
+ if (!(vn(e) && (z.tagNameCheck instanceof RegExp && C(z.tagNameCheck, e) || z.tagNameCheck instanceof Function && z.tagNameCheck(e)) && (z.attributeNameCheck instanceof RegExp && C(z.attributeNameCheck, t) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(t, e)) || t === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && C(z.tagNameCheck, r) || z.tagNameCheck instanceof Function && z.tagNameCheck(r)))) return !1;
588
+ } else if (!Mt[t] && !C(lt, se(r, st, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ce(r, "data:") === 0 && At[e]) && !(gt && !C(ot, se(r, st, ""))) && r) return !1;
589
+ }
590
+ return !0;
591
+ }, _n = D({}, [
592
+ "annotation-xml",
593
+ "color-profile",
594
+ "font-face",
595
+ "font-face-format",
596
+ "font-face-name",
597
+ "font-face-src",
598
+ "font-face-uri",
599
+ "missing-glyph"
600
+ ]), vn = function(e) {
601
+ return !_n[ie(e)] && C(ct, e);
602
+ }, yn = function(e, t, n, r) {
603
+ if (N && typeof m == "object" && typeof m.getAttributeType == "function" && !n) switch (m.getAttributeType(e, t)) {
604
+ case "TrustedHTML": return F(r);
605
+ case "TrustedScriptURL": return qe(r);
606
+ }
607
+ return r;
608
+ }, bn = function(e, n, r, i) {
609
+ try {
610
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), un(e) ? Z(e) : ne(t.removed);
611
+ } catch {
612
+ Q(n, e);
613
+ }
614
+ }, xn = function(e) {
615
+ $(I.beforeSanitizeAttributes, e, null);
616
+ let t = e.attributes;
617
+ if (!t || un(e)) return;
618
+ let n = {
619
+ attrName: "",
620
+ attrValue: "",
621
+ keepAttr: !0,
622
+ allowedAttributes: R,
623
+ forceKeepAttr: void 0
624
+ }, r = t.length, i = Y(e.nodeName);
625
+ for (; r--;) {
626
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = Y(o), u = c, d = o === "value" ? u : le(u);
627
+ if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(I.uponSanitizeAttribute, e, n), d = n.attrValue, Tt && (l === "id" || l === "name") && ce(d, Et) !== 0 && (Q(o, e), d = Et + d), H && C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
628
+ Q(o, e);
629
+ continue;
630
+ }
631
+ if (l === "attributename" && oe(d, "href")) {
632
+ Q(o, e);
633
+ continue;
634
+ }
635
+ if (!n.forceKeepAttr) {
636
+ if (!n.keepAttr) {
637
+ Q(o, e);
638
+ continue;
639
+ }
640
+ if (!_t && C(Re, d)) {
641
+ Q(o, e);
642
+ continue;
643
+ }
644
+ if (V && (d = cn(d)), !gn(i, l, d)) {
645
+ Q(o, e);
646
+ continue;
647
+ }
648
+ d = yn(i, l, s, d), d !== u && bn(e, o, s, d);
649
+ }
650
+ }
651
+ $(I.afterSanitizeAttributes, e, null);
652
+ }, Sn = function(e) {
653
+ let t = null, n = sn(e);
654
+ for ($(I.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(I.uponSanitizeShadowNode, t, null), hn(t, e), xn(t), dn(t.content) && Sn(t.content), (E ? E(t) : t.nodeType) === j.element) {
655
+ let e = S(t);
656
+ dn(e) && (Cn(e), Sn(e));
657
+ }
658
+ $(I.afterSanitizeShadowDOM, e, null);
659
+ }, Cn = function(e) {
660
+ let t = [{
661
+ node: e,
662
+ shadow: null
663
+ }];
664
+ for (; t.length > 0;) {
665
+ let e = t.pop();
666
+ if (e.shadow) {
667
+ Sn(e.shadow);
668
+ continue;
669
+ }
670
+ let n = e.node, r = (E ? E(n) : n.nodeType) === j.element, i = y(n);
671
+ if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
672
+ node: i[e],
673
+ shadow: null
674
+ });
675
+ if (r) {
676
+ let e = O ? O(n) : null;
677
+ if (typeof e == "string" && Y(e) === "template") {
678
+ let e = n.content;
679
+ dn(e) && t.push({
680
+ node: e,
681
+ shadow: null
682
+ });
683
+ }
684
+ }
685
+ if (r) {
686
+ let e = S(n);
687
+ dn(e) && t.push({
688
+ node: null,
689
+ shadow: e
690
+ }, {
691
+ node: e,
692
+ shadow: null
693
+ });
694
+ }
695
+ }
696
+ };
697
+ return t.sanitize = function(e) {
698
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
699
+ if (It = !e, It && (e = "<!-->"), typeof e != "string" && !fn(e) && (e = fe(e), typeof e != "string")) throw w("dirty is not a string, aborting");
700
+ if (!t.isSupported) return e;
701
+ vt ? (L = yt, R = bt) : Jt(n), (I.uponSanitizeElement.length > 0 || I.uponSanitizeAttribute.length > 0) && (L = k(L)), I.uponSanitizeAttribute.length > 0 && (R = k(R)), t.removed = [];
702
+ let c = Ot && typeof e != "string" && fn(e);
703
+ if (c) {
704
+ an(e);
705
+ let t = O ? O(e) : e.nodeName;
706
+ if (typeof t == "string") {
707
+ let n = Y(t);
708
+ if (!L[n] || ft[n]) throw tn(e), w("root node is forbidden and cannot be sanitized in-place");
709
+ }
710
+ if (un(e)) throw tn(e), w("root node is clobbered and cannot be sanitized in-place");
711
+ try {
712
+ Cn(e);
713
+ } catch (t) {
714
+ throw tn(e), t;
715
+ }
716
+ } else if (fn(e)) i = on("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === j.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Cn(a);
717
+ else {
718
+ if (!W && !V && !U && e.indexOf("<") === -1) return N && Ct ? F(e) : e;
719
+ if (i = on(e), !i) return W ? null : Ct ? P : "";
720
+ }
721
+ i && xt && Z(i.firstChild);
722
+ let l = c ? e : i, u = sn(l);
723
+ try {
724
+ for (; o = u.nextNode();) hn(o, l), xn(o), dn(o.content) && Sn(o.content);
725
+ } catch (n) {
726
+ throw c && (tn(e), g(t.removed, (e) => {
727
+ e.element && rn(e.element);
728
+ })), n;
729
+ }
730
+ if (c) return g(t.removed, (e) => {
731
+ e.element && rn(e.element);
732
+ }), V && ln(e), e;
733
+ if (W) {
734
+ if (V && ln(i), St) for (s = Qe.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
735
+ else s = i;
736
+ return (R.shadowroot || R.shadowrootmode) && (s = et.call(r, s, !0)), s;
737
+ }
738
+ let d = U ? i.outerHTML : i.innerHTML;
739
+ return U && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && C(Ne, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), V && (d = cn(d)), N && Ct ? F(d) : d;
740
+ }, t.setConfig = function() {
741
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
742
+ Jt(e), vt = !0, yt = L, bt = R;
743
+ }, t.clearConfig = function() {
744
+ X = null, vt = !1, yt = null, bt = null, N = Ue, P = "";
745
+ }, t.isValidAttribute = function(e, t, n) {
746
+ X || Jt({});
747
+ let r = Y(e), i = Y(t);
748
+ return gn(r, i, n);
749
+ }, t.addHook = function(e, t) {
750
+ typeof t == "function" && x(I, e) && _(I[e], t);
751
+ }, t.removeHook = function(e, t) {
752
+ if (x(I, e)) {
753
+ if (t !== void 0) {
754
+ let n = te(I[e], t);
755
+ return n === -1 ? void 0 : re(I[e], n, 1)[0];
756
+ }
757
+ return ne(I[e]);
758
+ }
759
+ }, t.removeHooks = function(e) {
760
+ x(I, e) && (I[e] = []);
761
+ }, t.removeAllHooks = function() {
762
+ I = Ve();
763
+ }, t;
764
+ }
765
+ var N = He();
766
+ N.sanitize.bind(N), N.isSupported, N.addHook.bind(N), N.removeHook.bind(N), N.removeHooks.bind(N), N.removeAllHooks.bind(N), N.setConfig.bind(N), N.clearConfig.bind(N), N.isValidAttribute.bind(N), N.version, N.removed;
767
+ //#endregion
768
+ //#region ../shared/src/sanitisers/dompurify-config.ts
769
+ var P = [
770
+ "a",
771
+ "abbr",
772
+ "b",
773
+ "br",
774
+ "em",
775
+ "i",
776
+ "p",
777
+ "span",
778
+ "strong",
779
+ "u",
780
+ "h1",
781
+ "h2",
782
+ "h3",
783
+ "h4",
784
+ "h5",
785
+ "h6",
786
+ "ul",
787
+ "ol",
788
+ "li",
789
+ "blockquote",
790
+ "code",
791
+ "pre"
792
+ ], Ue = [
793
+ "href",
794
+ "title",
795
+ "target",
796
+ "rel"
797
+ ];
798
+ [...P], [...Ue];
799
+ //#endregion