@burdenoff/microfe-support 2026.1014.2 → 2026.1014.3

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.
@@ -1,18 +1,24 @@
1
1
  //#region node_modules/dompurify/dist/purify.es.mjs
2
2
  function e(e, t) {
3
+ this.v = e, this.k = t;
4
+ }
5
+ function t(e, t) {
3
6
  (t == null || t > e.length) && (t = e.length);
4
7
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
5
8
  return r;
6
9
  }
7
- function t(e) {
10
+ function n(e) {
8
11
  if (Array.isArray(e)) return e;
9
12
  }
10
- function n(e, t) {
13
+ function r(e, t) {
11
14
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
12
15
  if (n != null) {
13
16
  var r, i, a, o, s = [], c = !0, l = !1;
14
17
  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);
18
+ if (a = (n = n.call(e)).next, t === 0) {
19
+ if (Object(n) !== n) return;
20
+ c = !1;
21
+ } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
16
22
  } catch (e) {
17
23
  l = !0, i = e;
18
24
  } finally {
@@ -25,113 +31,164 @@ function n(e, t) {
25
31
  return s;
26
32
  }
27
33
  }
28
- function r() {
34
+ function i() {
29
35
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
30
36
  }
31
- function i(e, i) {
32
- return t(e) || n(e, i) || a(e, i) || r();
37
+ function a(e, t) {
38
+ return n(e) || r(e, t) || o(e, t) || i();
33
39
  }
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;
40
+ function o(e, n) {
41
+ if (e) {
42
+ if (typeof e == "string") return t(e, n);
43
+ var r = {}.toString.call(e).slice(8, -1);
44
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? t(e, n) : void 0;
39
45
  }
40
46
  }
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) {
47
+ function s(t) {
48
+ var n, r;
49
+ function i(n, r) {
50
+ try {
51
+ var o = t[n](r), s = o.value, c = s instanceof e;
52
+ Promise.resolve(c ? s.v : s).then(function(e) {
53
+ if (c) {
54
+ var r = n === "return" && s.k ? n : "next";
55
+ if (!s.k || e.done) return i(r, e);
56
+ e = t[r](e).value;
57
+ }
58
+ a(!!o.done, e);
59
+ }, function(e) {
60
+ i("throw", e);
61
+ });
62
+ } catch (e) {
63
+ a(2, e);
64
+ }
65
+ }
66
+ function a(e, t) {
67
+ e === 2 ? n.reject(t) : n.resolve({
68
+ value: t,
69
+ done: e
70
+ }), (n = n.next) ? i(n.key, n.arg) : r = null;
71
+ }
72
+ this._invoke = function(e, t) {
73
+ return new Promise(function(a, o) {
74
+ var s = {
75
+ key: e,
76
+ arg: t,
77
+ resolve: a,
78
+ reject: o,
79
+ next: null
80
+ };
81
+ r ? r = r.next = s : (n = r = s, i(e, t));
82
+ });
83
+ }, typeof t.return != "function" && (this.return = void 0);
84
+ }
85
+ s.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
86
+ return this;
87
+ }, s.prototype.next = function(e) {
88
+ return this._invoke("next", e);
89
+ }, s.prototype.throw = function(e) {
90
+ return this._invoke("throw", e);
91
+ }, s.prototype.return = function(e) {
92
+ return this._invoke("return", e);
93
+ };
94
+ var c = Object.entries, l = Object.setPrototypeOf, u = Object.isFrozen, d = Object.getPrototypeOf, f = Object.getOwnPropertyDescriptor, p = Object.freeze, m = Object.seal, h = Object.create, ee = typeof Reflect < "u" && Reflect, te = ee.apply, ne = ee.construct;
95
+ p ||= function(e) {
43
96
  return e;
44
- }, f ||= function(e) {
97
+ }, m ||= function(e) {
45
98
  return e;
46
- }, h ||= function(e, t) {
99
+ }, te ||= function(e, t) {
47
100
  var n = [...arguments].slice(2);
48
101
  return e.apply(t, n);
49
- }, ee ||= function(e) {
102
+ }, ne ||= function(e) {
50
103
  return new e(...[...arguments].slice(1));
51
104
  };
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) {
105
+ var g = w(Array.prototype.forEach);
106
+ Array.prototype.indexOf;
107
+ var re = w(Array.prototype.lastIndexOf), ie = w(Array.prototype.pop), ae = w(Array.prototype.push);
108
+ Array.prototype.slice;
109
+ var oe = w(Array.prototype.splice), _ = Array.isArray, se = w(String.prototype.toLowerCase), ce = w(String.prototype.toString), le = w(String.prototype.match), ue = w(String.prototype.replace), de = w(String.prototype.indexOf), fe = w(String.prototype.trim), pe = w(Number.prototype.toString), v = w(Boolean.prototype.toString), y = typeof BigInt > "u" ? null : w(BigInt.prototype.toString), me = typeof Symbol > "u" ? null : w(Symbol.prototype.toString), b = w(Object.prototype.hasOwnProperty), x = w(Object.prototype.toString), S = w(RegExp.prototype.test), C = T(TypeError);
110
+ function w(e) {
54
111
  return function(t) {
55
112
  t instanceof RegExp && (t.lastIndex = 0);
56
113
  var n = [...arguments].slice(1);
57
- return h(e, t, n);
114
+ return te(e, t, n);
58
115
  };
59
116
  }
60
- function E(e) {
117
+ function T(e) {
61
118
  return function() {
62
- return ee(e, [...arguments]);
119
+ return ne(e, [...arguments]);
63
120
  };
64
121
  }
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;
122
+ function E(e, t) {
123
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : se;
124
+ if (l && l(e, null), !_(t)) return e;
68
125
  let r = t.length;
69
126
  for (; r--;) {
70
127
  let i = t[r];
71
128
  if (typeof i == "string") {
72
129
  let e = n(i);
73
- e !== i && (c(t) || (t[r] = e), i = e);
130
+ e !== i && (u(t) || (t[r] = e), i = e);
74
131
  }
75
132
  e[i] = !0;
76
133
  }
77
134
  return e;
78
135
  }
79
- function O(e) {
80
- for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
136
+ function he(e) {
137
+ for (let t = 0; t < e.length; t++) b(e, t) || (e[t] = null);
81
138
  return e;
82
139
  }
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);
140
+ function D(e) {
141
+ let t = h(null);
142
+ for (let r of c(e)) {
143
+ var n = a(r, 2);
144
+ let i = n[0], o = n[1];
145
+ b(e, i) && (t[i] = _(o) ? he(o) : o && typeof o == "object" && o.constructor === Object ? D(o) : o);
89
146
  }
90
147
  return t;
91
148
  }
92
- function fe(e) {
149
+ function ge(e) {
93
150
  switch (typeof e) {
94
151
  case "string": return e;
95
- case "number": return ue(e);
96
- case "boolean": return de(e);
152
+ case "number": return pe(e);
153
+ case "boolean": return v(e);
97
154
  case "bigint": return y ? y(e) : "0";
98
- case "symbol": return b ? b(e) : "Symbol()";
99
- case "undefined": return S(e);
155
+ case "symbol": return me ? me(e) : "Symbol()";
156
+ case "undefined": return x(e);
100
157
  case "function":
101
158
  case "object": {
102
- if (e === null) return S(e);
103
- let t = e, n = A(t, "toString");
159
+ if (e === null) return x(e);
160
+ let t = e, n = O(t, "toString");
104
161
  if (typeof n == "function") {
105
162
  let e = n(t);
106
- return typeof e == "string" ? e : S(e);
163
+ return typeof e == "string" ? e : x(e);
107
164
  }
108
- return S(e);
165
+ return x(e);
109
166
  }
110
- default: return S(e);
167
+ default: return x(e);
111
168
  }
112
169
  }
113
- function A(e, t) {
170
+ function O(e, t) {
114
171
  for (; e !== null;) {
115
- let n = u(e, t);
172
+ let n = f(e, t);
116
173
  if (n) {
117
- if (n.get) return T(n.get);
118
- if (typeof n.value == "function") return T(n.value);
174
+ if (n.get) return w(n.get);
175
+ if (typeof n.value == "function") return w(n.value);
119
176
  }
120
- e = l(e);
177
+ e = d(e);
121
178
  }
122
179
  function n() {
123
180
  return null;
124
181
  }
125
182
  return n;
126
183
  }
127
- function pe(e) {
184
+ function _e(e) {
128
185
  try {
129
- return C(e, ""), !0;
186
+ return S(e, ""), !0;
130
187
  } catch {
131
188
  return !1;
132
189
  }
133
190
  }
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([
191
+ var ve = p(/* @__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(".")), ye = p(/* @__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(".")), be = p([
135
192
  "feBlend",
136
193
  "feColorMatrix",
137
194
  "feComponentTransfer",
@@ -157,7 +214,7 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
157
214
  "feSpotLight",
158
215
  "feTile",
159
216
  "feTurbulence"
160
- ]), _e = d([
217
+ ]), xe = p([
161
218
  "animate",
162
219
  "color-profile",
163
220
  "cursor",
@@ -180,7 +237,7 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
180
237
  "solidcolor",
181
238
  "unknown",
182
239
  "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([
240
+ ]), Se = p(/* @__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(".")), Ce = p([
184
241
  "maction",
185
242
  "maligngroup",
186
243
  "malignmark",
@@ -196,13 +253,13 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
196
253
  "annotation-xml",
197
254
  "mprescripts",
198
255
  "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([
256
+ ]), we = p(["#text"]), Te = p(/* @__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(".")), Ee = p(/* @__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(".")), De = p(/* @__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(".")), Oe = p([
200
257
  "xlink:href",
201
258
  "xml:id",
202
259
  "xlink:title",
203
260
  "xml:space",
204
261
  "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 = {
262
+ ]), ke = m(/{{[\w\W]*|^[\w\W]*}}/g), Ae = m(/<%[\w\W]*|^[\w\W]*%>/g), je = m(/\${[\w\W]*/g), Me = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ne = m(/^aria-[\-\w]+$/), Pe = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Fe = m(/^(?:\w+script|data):/i), Ie = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Le = m(/^html$/i), Re = m(/^[a-z][.\w]*(-[.\w]+)+$/i), ze = m(/<[/\w!]/g), Be = m(/<[/\w]/g), Ve = m(/<\/no(script|embed|frames)/i), He = m(/\/>/i), k = {
206
263
  element: 1,
207
264
  attribute: 2,
208
265
  text: 3,
@@ -215,9 +272,23 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
215
272
  documentType: 10,
216
273
  documentFragment: 11,
217
274
  notation: 12
218
- }, ze = function() {
275
+ }, A = [
276
+ "style",
277
+ "script",
278
+ "xmp",
279
+ "iframe",
280
+ "noembed",
281
+ "noframes",
282
+ "plaintext",
283
+ "noscript"
284
+ ], Ue = p(E({}, A)), We = function() {
285
+ let e = {};
286
+ return g(A, (t) => {
287
+ e[t] = m(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
288
+ }), p(e);
289
+ }(), Ge = function() {
219
290
  return typeof window > "u" ? null : window;
220
- }, Be = function(e, t) {
291
+ }, Ke = function(e, t) {
221
292
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
222
293
  let n = null, r = "data-tt-policy-suffix";
223
294
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -234,7 +305,7 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
234
305
  } catch {
235
306
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
236
307
  }
237
- }, Ve = function() {
308
+ }, qe = function() {
238
309
  return {
239
310
  afterSanitizeAttributes: [],
240
311
  afterSanitizeElements: [],
@@ -246,53 +317,60 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
246
317
  uponSanitizeElement: [],
247
318
  uponSanitizeShadowNode: []
248
319
  };
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;
320
+ }, j = function(e, t, n, r) {
321
+ return b(e, t) && _(e[t]) ? E(r.base ? D(r.base) : {}, e[t], r.transform) : n;
322
+ }, Je = function(e, t, n) {
323
+ let r = b(e, t) ? e[t] : void 0;
324
+ return r && typeof r == "object" ? D(r) : n();
251
325
  };
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.13", t.removed = [], !e || !e.document || e.document.nodeType !== j.document || !e.Element) return t.isSupported = !1, t;
326
+ function Ye() {
327
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ge(), t = (e) => Ye(e);
328
+ if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== k.document || !e.Element) return t.isSupported = !1, t;
255
329
  let n = e.document, r = n, i = r.currentScript;
256
330
  e.DocumentFragment;
257
- let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
331
+ let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, l = e.NodeFilter;
258
332
  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, Ue = s && s.prototype ? A(s.prototype, "ownerDocument") : null;
333
+ let u = e.DOMParser, d = e.trustedTypes, f = s.prototype, ee = O(f, "cloneNode"), te = O(f, "remove"), ne = O(f, "removeAttributeNode"), pe = O(f, "nextSibling"), v = O(f, "childNodes"), y = O(f, "parentNode"), me = O(f, "shadowRoot"), x = O(f, "attributes"), w = o && o.prototype ? O(o.prototype, "nodeType") : null, T = o && o.prototype ? O(o.prototype, "nodeName") : null, he = o && o.prototype ? O(o.prototype, "ownerDocument") : null, A = function(e) {
334
+ return w ? w(e) : e.nodeType;
335
+ }, Xe = function(e) {
336
+ return T ? T(e) : e.nodeName;
337
+ };
260
338
  if (typeof a == "function") {
261
339
  let e = n.createElement("template");
262
340
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
263
341
  }
264
- let N, P = "", We, Ge = !1, Ke = 0, qe = function() {
265
- if (Ke > 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
- qe(), Ke++;
342
+ let M, N = "", Ze, Qe = !1, $e = 0, et = function() {
343
+ 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.");
344
+ }, P = function(e) {
345
+ et(), $e++;
268
346
  try {
269
- return N.createHTML(e);
347
+ return M.createHTML(e);
270
348
  } finally {
271
- Ke--;
349
+ $e--;
272
350
  }
273
- }, Je = function(e) {
274
- qe(), Ke++;
351
+ }, tt = function(e) {
352
+ et(), $e++;
275
353
  try {
276
- return N.createScriptURL(e);
354
+ return M.createScriptURL(e);
277
355
  } finally {
278
- Ke--;
279
- }
280
- }, Ye = function() {
281
- return Ge ||= (We = Be(m, i), !0), We;
282
- }, Xe = n, Ze = Xe.implementation, Qe = Xe.createNodeIterator, $e = Xe.createDocumentFragment, et = Xe.getElementsByTagName, tt = r.importNode, I = Ve();
283
- t.isSupported = typeof o == "function" && typeof b == "function" && Ze && Ze.createHTMLDocument !== void 0;
284
- let nt = Te, rt = Ee, it = De, at = Oe, ot = ke, st = je, ct = Me, lt = Pe, ut = Ae, L = null, dt = D({}, [
285
- ...me,
286
- ...he,
287
- ...ge,
356
+ $e--;
357
+ }
358
+ }, nt = function() {
359
+ return Qe ||= (Ze = Ke(d, i), !0), Ze;
360
+ }, rt = n, it = rt.implementation, at = rt.createNodeIterator, ot = rt.createDocumentFragment, st = rt.getElementsByTagName, ct = r.importNode, F = qe();
361
+ t.isSupported = typeof c == "function" && typeof y == "function" && it && it.createHTMLDocument !== void 0;
362
+ let lt = ke, ut = Ae, dt = je, ft = Me, pt = Ne, mt = Fe, ht = Ie, gt = Re, _t = Pe, I = null, vt = E({}, [
288
363
  ...ve,
289
- ...be
290
- ]), R = null, ft = D({}, [
291
- ...xe,
364
+ ...ye,
365
+ ...be,
292
366
  ...Se,
293
- ...Ce,
294
367
  ...we
295
- ]), z = Object.seal(p(null, {
368
+ ]), L = null, yt = E({}, [
369
+ ...Te,
370
+ ...Ee,
371
+ ...De,
372
+ ...Oe
373
+ ]), R = Object.seal(h(null, {
296
374
  tagNameCheck: {
297
375
  writable: !0,
298
376
  configurable: !1,
@@ -311,7 +389,7 @@ function He() {
311
389
  enumerable: !0,
312
390
  value: !1
313
391
  }
314
- })), pt = null, mt = null, B = Object.seal(p(null, {
392
+ })), bt = null, xt = null, z = Object.seal(h(null, {
315
393
  tagCheck: {
316
394
  writable: !0,
317
395
  configurable: !1,
@@ -324,14 +402,14 @@ function He() {
324
402
  enumerable: !0,
325
403
  value: null
326
404
  }
327
- })), ht = !0, gt = !0, _t = !1, vt = !0, V = !1, H = !0, U = !1, yt = !1, bt = null, xt = null, St = !1, W = !1, Ct = !1, wt = !1, Tt = !0, Et = !1, Dt = "user-content-", Ot = !0, kt = !1, G = {}, K = null, At = 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(".")), jt = null, Mt = D({}, [
405
+ })), 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 = 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(".")), Rt = null, zt = E({}, [
328
406
  "audio",
329
407
  "video",
330
408
  "img",
331
409
  "source",
332
410
  "image",
333
411
  "track"
334
- ]), Nt = null, Pt = D({}, [
412
+ ]), Bt = null, Vt = E({}, [
335
413
  "alt",
336
414
  "class",
337
415
  "for",
@@ -346,254 +424,264 @@ function He() {
346
424
  "value",
347
425
  "style",
348
426
  "xmlns"
349
- ]), Ft = "http://www.w3.org/1998/Math/MathML", It = "http://www.w3.org/2000/svg", q = "http://www.w3.org/1999/xhtml", J = q, Lt = !1, Rt = null, zt = D({}, [
350
- Ft,
351
- It,
352
- q
353
- ], ae), Bt = d([
427
+ ]), 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 = E({}, [
428
+ Ht,
429
+ Ut,
430
+ K
431
+ ], ce), qt = p([
354
432
  "mi",
355
433
  "mo",
356
434
  "mn",
357
435
  "ms",
358
436
  "mtext"
359
- ]), Vt = D({}, Bt), Ht = d(["annotation-xml"]), Ut = D({}, Ht), Wt = D({}, [
437
+ ]), Jt = E({}, qt), Yt = p(["annotation-xml"]), Xt = E({}, Yt), Zt = E({}, [
360
438
  "title",
361
439
  "style",
362
440
  "font",
363
441
  "a",
364
442
  "script"
365
- ]), Gt = null, Kt = ["application/xhtml+xml", "text/html"], Y = null, X = null, qt = n.createElement("form"), Jt = function(e) {
443
+ ]), Qt = null, $t = ["application/xhtml+xml", "text/html"], J = null, Y = null, en = n.createElement("form"), tn = function(e) {
366
444
  return e instanceof RegExp || e instanceof Function;
367
- }, Yt = function() {
445
+ }, nn = function() {
368
446
  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), Gt = Kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = Gt === "application/xhtml+xml" ? ae : ie, L = M(e, "ALLOWED_TAGS", dt, { transform: Y }), R = M(e, "ALLOWED_ATTR", ft, { transform: Y }), Rt = M(e, "ALLOWED_NAMESPACES", zt, { transform: ae }), Nt = M(e, "ADD_URI_SAFE_ATTR", Pt, {
371
- transform: Y,
372
- base: Pt
373
- }), jt = M(e, "ADD_DATA_URI_TAGS", Mt, {
374
- transform: Y,
375
- base: Mt
376
- }), K = M(e, "FORBID_CONTENTS", At, { transform: Y }), pt = M(e, "FORBID_TAGS", k({}), { transform: Y }), mt = 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, 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, V = e.SAFE_FOR_TEMPLATES || !1, H = e.SAFE_FOR_XML !== !1, U = e.WHOLE_DOCUMENT || !1, W = e.RETURN_DOM || !1, Ct = e.RETURN_DOM_FRAGMENT || !1, wt = e.RETURN_TRUSTED_TYPE || !1, St = e.FORCE_BODY || !1, Tt = e.SANITIZE_DOM !== !1, Et = e.SANITIZE_NAMED_PROPS || !1, Ot = e.KEEP_CONTENT !== !1, kt = e.IN_PLACE || !1, ut = pe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ae, J = typeof e.NAMESPACE == "string" ? e.NAMESPACE : q, Vt = 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({}, Bt), Ut = x(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? k(e.HTML_INTEGRATION_POINTS) : D({}, Ht);
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") && Jt(t.tagNameCheck) && (z.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && Jt(t.attributeNameCheck) && (z.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(z), V && (gt = !1), Ct && (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 === dt && (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 === ft && (R = k(R)), D(R, e.ADD_ATTR, Y))), x(e, "ADD_URI_SAFE_ATTR") && v(e.ADD_URI_SAFE_ATTR) && D(Nt, e.ADD_URI_SAFE_ATTR, Y), x(e, "FORBID_CONTENTS") && v(e.FORBID_CONTENTS) && (K === At && (K = k(K)), D(K, e.FORBID_CONTENTS, Y)), x(e, "ADD_FORBID_CONTENTS") && v(e.ADD_FORBID_CONTENTS) && (K === At && (K = k(K)), D(K, e.ADD_FORBID_CONTENTS, Y)), Ot && (L["#text"] = !0), U && D(L, [
447
+ if (Y && Y === e) return;
448
+ (!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" ? ce : se, I = j(e, "ALLOWED_TAGS", vt, { transform: J }), L = j(e, "ALLOWED_ATTR", yt, { transform: J }), Gt = j(e, "ALLOWED_NAMESPACES", Kt, { transform: ce }), Bt = j(e, "ADD_URI_SAFE_ATTR", Vt, {
449
+ transform: J,
450
+ base: Vt
451
+ }), Rt = j(e, "ADD_DATA_URI_TAGS", zt, {
452
+ transform: J,
453
+ base: zt
454
+ }), 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 = _e(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Pe, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Jt = Je(e, "MATHML_TEXT_INTEGRATION_POINTS", () => E({}, qt)), Xt = Je(e, "HTML_INTEGRATION_POINTS", () => E({}, Yt));
455
+ let t = Je(e, "CUSTOM_ELEMENT_HANDLING", () => h(null));
456
+ if (R = h(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), m(R), B && (Ct = !1), At && (U = !0), W && (I = E({}, we), L = h(null), W.html === !0 && (E(I, ve), E(L, Te)), W.svg === !0 && (E(I, ye), E(L, Ee), E(L, Oe)), W.svgFilters === !0 && (E(I, be), E(L, Ee), E(L, Oe)), W.mathMl === !0 && (E(I, Se), E(L, De), E(L, Oe))), 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)), E(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)), E(L, e.ADD_ATTR, J))), b(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (G === Lt && (G = D(G)), E(G, e.ADD_FORBID_CONTENTS, J)), Ft && (I["#text"] = !0), H && E(I, [
379
457
  "html",
380
458
  "head",
381
459
  "body"
382
- ]), L.table && (D(L, ["tbody"]), delete pt.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;
460
+ ]), I.table && (E(I, ["tbody"]), delete bt.tbody), e.TRUSTED_TYPES_POLICY) {
461
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
462
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
463
+ let t = M;
464
+ M = e.TRUSTED_TYPES_POLICY;
387
465
  try {
388
- P = F("");
466
+ N = P("");
389
467
  } catch (e) {
390
- throw N = t, e;
468
+ throw M = t, e;
391
469
  }
392
- } else e.TRUSTED_TYPES_POLICY === null ? (N = void 0, P = "") : (N === void 0 && (N = Ye()), N && typeof P == "string" && (P = F("")));
393
- d && d(e), X = e;
394
- }, Xt = D({}, [
395
- ...he,
396
- ...ge,
397
- ..._e
398
- ]), Zt = D({}, [...ve, ...ye]), Qt = function(e, t, n) {
399
- return t.namespaceURI === q ? e === "svg" : t.namespaceURI === Ft ? e === "svg" && (n === "annotation-xml" || Vt[n]) : !!Xt[e];
400
- }, $t = function(e, t, n) {
401
- return t.namespaceURI === q ? e === "math" : t.namespaceURI === It ? e === "math" && Ut[n] : !!Zt[e];
402
- }, en = function(e, t, n) {
403
- return t.namespaceURI === It && !Ut[n] || t.namespaceURI === Ft && !Vt[n] ? !1 : !Zt[e] && (Wt[e] || !Xt[e]);
404
- }, tn = function(e) {
405
- let t = b(e);
470
+ } else e.TRUSTED_TYPES_POLICY === null ? (M = void 0, N = "") : (M === void 0 && (M = nt()), M && typeof N == "string" && (N = P("")));
471
+ p && p(e), Y = e;
472
+ }, rn = E({}, [
473
+ ...ye,
474
+ ...be,
475
+ ...xe
476
+ ]), an = E({}, [...Se, ...Ce]), on = function(e, t, n) {
477
+ return t.namespaceURI === K ? e === "svg" : t.namespaceURI === Ht ? e === "svg" && (n === "annotation-xml" || Jt[n]) : !!rn[e];
478
+ }, sn = function(e, t, n) {
479
+ return t.namespaceURI === K ? e === "math" : t.namespaceURI === Ut ? e === "math" && Xt[n] : !!an[e];
480
+ }, cn = function(e, t, n) {
481
+ return t.namespaceURI === Ut && !Xt[n] || t.namespaceURI === Ht && !Jt[n] ? !1 : !an[e] && (Zt[e] || !rn[e]);
482
+ }, ln = function(e) {
483
+ let t = y(e);
406
484
  (!t || !t.tagName) && (t = {
407
- namespaceURI: J,
485
+ namespaceURI: q,
408
486
  tagName: "template"
409
487
  });
410
- let n = ie(e.tagName), r = ie(t.tagName);
411
- return Rt[e.namespaceURI] ? e.namespaceURI === It ? Qt(n, t, r) : e.namespaceURI === Ft ? $t(n, t, r) : e.namespaceURI === q ? en(n, t, r) : !!(Gt === "application/xhtml+xml" && Rt[e.namespaceURI]) : !1;
412
- }, Z = function(e) {
413
- _(t.removed, { element: e });
488
+ let n = se(e.tagName), r = se(t.tagName);
489
+ 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;
490
+ }, X = function(e) {
491
+ ae(t.removed, { element: e });
414
492
  try {
415
- b(e).removeChild(e);
493
+ y(e).removeChild(e);
416
494
  } 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");
495
+ if (te(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
496
  }
419
- }, nn = function(e) {
420
- an(e);
421
- let t = y(e);
497
+ }, un = function(e, t, n) {
498
+ try {
499
+ ne(e, t);
500
+ } catch {
501
+ try {
502
+ e.removeAttribute(n);
503
+ } catch {}
504
+ }
505
+ }, dn = function(e) {
506
+ pn(e);
507
+ let t = v(e);
422
508
  if (t) {
423
509
  let e = [];
424
510
  g(t, (t) => {
425
- _(e, t);
511
+ ae(e, t);
426
512
  }), g(e, (e) => {
427
513
  try {
428
- ue(e);
514
+ te(e);
429
515
  } catch {}
430
516
  });
431
517
  }
432
- let n = T(e);
518
+ let n = x(e);
433
519
  if (n) for (let t = n.length - 1; t >= 0; --t) {
434
520
  let r = n[t], i = r && r.name;
435
- if (typeof i == "string") try {
436
- e.removeAttribute(i);
437
- } catch {}
521
+ typeof i == "string" && un(e, r, i);
438
522
  }
439
- }, Q = function(e, n) {
523
+ }, Z = function(e, n, r) {
524
+ if (!r) try {
525
+ r = n.getAttributeNode(e);
526
+ } catch {
527
+ r = null;
528
+ }
529
+ ae(t.removed, {
530
+ attribute: r || null,
531
+ from: n
532
+ });
440
533
  try {
441
- _(t.removed, {
442
- attribute: n.getAttributeNode(e),
443
- from: n
444
- });
534
+ r ? ne(n, r) : n.removeAttribute(e);
445
535
  } catch {
446
- _(t.removed, {
447
- attribute: null,
448
- from: n
449
- });
536
+ try {
537
+ n.removeAttribute(e);
538
+ } catch {}
450
539
  }
451
- if (n.removeAttribute(e), e === "is") {
452
- if (W || Ct) try {
453
- Z(n);
540
+ if (e === "is") {
541
+ if (U || At) try {
542
+ X(n);
454
543
  } catch {}
455
544
  else try {
456
545
  n.setAttribute(e, "");
457
546
  } catch {}
458
547
  }
459
- }, rn = function(e) {
460
- let t = T(e);
548
+ }, fn = function(e) {
549
+ let t = x(e);
461
550
  if (t) for (let n = t.length - 1; n >= 0; --n) {
462
551
  let r = t[n], i = r && r.name;
463
- if (!(typeof i != "string" || R[Y(i)])) try {
464
- e.removeAttribute(i);
465
- } catch {}
552
+ typeof i != "string" || L[J(i)] || un(e, r, i);
466
553
  }
467
- }, an = function(e) {
554
+ }, pn = function(e) {
468
555
  let t = [e];
469
556
  for (; t.length > 0;) {
470
557
  let e = t.pop();
471
- (E ? E(e) : e.nodeType) === j.element && rn(e);
472
- let n = y(e);
558
+ A(e) === k.element && fn(e);
559
+ let n = v(e);
473
560
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
474
561
  }
475
- }, on = function(e) {
476
- if (!H) return;
562
+ }, mn = function(e, t) {
563
+ return V ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
564
+ }, hn = function(e) {
565
+ if (!V) return;
477
566
  let t = [e];
478
567
  for (; t.length > 0;) {
479
- let e = t.pop(), n = E ? E(e) : e.nodeType;
480
- if (n === j.processingInstruction || n === j.comment && C(Ie, e.data)) {
568
+ let e = t.pop(), n = A(e);
569
+ if (n === k.processingInstruction || n === k.comment && S(Be, e.data)) {
481
570
  try {
482
- ue(e);
571
+ te(e);
483
572
  } catch {}
484
573
  continue;
485
574
  }
486
- if (n === j.element) {
487
- let t = e, n = Y(O ? O(e) : e.nodeName);
575
+ if (n === k.element) {
576
+ let t = e, n = J(Xe(e));
488
577
  try {
489
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
578
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && mn("for", n) && t.removeAttribute("for");
490
579
  } catch {}
491
580
  }
492
- let r = y(e);
581
+ let r = v(e);
493
582
  if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
494
583
  }
495
- }, sn = function(e) {
584
+ }, gn = function(e) {
496
585
  let t = null, r = null;
497
- if (St) e = "<remove></remove>" + e;
586
+ if (kt) e = "<remove></remove>" + e;
498
587
  else {
499
- let t = oe(e, /^[\r\n\t ]+/);
588
+ let t = le(e, /^[\r\n\t ]+/);
500
589
  r = t && t[0];
501
590
  }
502
- Gt === "application/xhtml+xml" && J === q && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
503
- let i = N ? F(e) : e;
504
- if (J === q) try {
505
- t = new u().parseFromString(i, Gt);
591
+ Qt === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
592
+ let i = M ? P(e) : e;
593
+ if (q === K) try {
594
+ t = new u().parseFromString(i, Qt);
506
595
  } catch {}
507
596
  if (!t || !t.documentElement) {
508
- t = Ze.createDocument(J, "template", null);
597
+ t = it.createDocument(q, "template", null);
509
598
  try {
510
- t.documentElement.innerHTML = Lt ? P : i;
599
+ t.documentElement.innerHTML = Wt ? N : i;
511
600
  } catch {}
512
601
  }
513
602
  let a = t.body || t.documentElement;
514
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), J === q ? et.call(t, U ? "html" : "body")[0] : U ? t.documentElement : a;
515
- }, cn = function(e) {
516
- let t = Ue ? Ue(e) : e.ownerDocument;
517
- return Qe.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
518
- }, ln = function(e) {
519
- return e = se(e, nt, " "), e = se(e, rt, " "), e = se(e, it, " "), e;
520
- }, un = function(e) {
603
+ 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;
604
+ }, _n = function(e) {
605
+ let t = he ? he(e) : e.ownerDocument;
606
+ return at.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
607
+ }, vn = function(e) {
608
+ return e = ue(e, lt, " "), e = ue(e, ut, " "), e = ue(e, dt, " "), e;
609
+ }, yn = function(e) {
521
610
  e.normalize();
522
- let t = Ue ? Ue(e) : e.ownerDocument, n = Qe.call(t || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
523
- for (; r;) r.data = ln(r.data), r = n.nextNode();
611
+ let t = he ? he(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();
612
+ for (; r;) r.data = vn(r.data), r = n.nextNode();
524
613
  let i = e.querySelectorAll?.call(e, "template");
525
614
  i && g(i, (e) => {
526
- fn(e.content) && un(e.content);
615
+ xn(e.content) && yn(e.content);
527
616
  });
528
- }, dn = function(e) {
529
- let t = O ? O(e) : null;
530
- 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);
531
- }, fn = function(e) {
532
- if (!E || typeof e != "object" || !e) return !1;
617
+ }, bn = function(e) {
618
+ let t = T ? T(e) : null;
619
+ return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== x(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 !== w(e) || e.childNodes !== v(e);
620
+ }, xn = function(e) {
621
+ if (!w || typeof e != "object" || !e) return !1;
533
622
  try {
534
- return E(e) === j.documentFragment;
623
+ return w(e) === k.documentFragment;
535
624
  } catch {
536
625
  return !1;
537
626
  }
538
- }, pn = function(e) {
539
- if (!E || typeof e != "object" || !e) return !1;
627
+ }, Sn = function(e) {
628
+ if (!w || typeof e != "object" || !e) return !1;
540
629
  try {
541
- return typeof E(e) == "number";
630
+ return typeof w(e) == "number";
542
631
  } catch {
543
632
  return !1;
544
633
  }
545
634
  };
546
- function $(e, n, r) {
635
+ function Q(e, n, r) {
547
636
  e.length !== 0 && g(e, (e) => {
548
- e.call(t, n, r, X);
637
+ e.call(t, n, r, Y);
549
638
  });
550
639
  }
551
- let mn = function(e, t) {
552
- return !!(H && e.hasChildNodes() && !pn(e.firstElementChild) && C(Fe, e.textContent) && C(Fe, e.innerHTML) || H && e.namespaceURI === q && t === "style" && pn(e.firstElementChild) || e.nodeType === j.processingInstruction || H && e.nodeType === j.comment && C(Ie, e.data));
553
- }, hn = function(e, t, n) {
554
- if (!pt[t] && bn(t) && (z.tagNameCheck instanceof RegExp && C(z.tagNameCheck, t) || z.tagNameCheck instanceof Function && z.tagNameCheck(t))) return !1;
555
- if (Ot && !K[t]) {
556
- let t = b(e), r = y(e);
640
+ let Cn = function(e, t) {
641
+ return !!(V && e.hasChildNodes() && !Sn(e.firstElementChild) && S(ze, e.textContent) && S(ze, e.innerHTML) || V && e.namespaceURI === K && Ue[t] && (Sn(e.firstElementChild) || typeof e.textContent == "string" && S(We[t], e.textContent)) || e.nodeType === k.processingInstruction || V && e.nodeType === k.comment && S(Be, e.data));
642
+ }, wn = function(e, t) {
643
+ return e instanceof RegExp ? S(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
644
+ }, Tn = function(e, t, n) {
645
+ if (!bt[t] && An(t) && wn(R.tagNameCheck, t)) return !1;
646
+ if (Ft && !G[t]) {
647
+ let t = y(e), r = v(e);
557
648
  if (r && t) {
558
649
  let i = r.length;
559
650
  for (let a = i - 1; a >= 0; --a) {
560
651
  let i = e === n ? ee(r[a], !0) : r[a];
561
- t.insertBefore(i, de(e));
652
+ t.insertBefore(i, pe(e));
562
653
  }
563
654
  }
564
655
  }
565
- return Z(e), !0;
566
- }, gn = function(e, t, n, r) {
567
- return e.length === 0 ? t : t === n || t === r ? k(t) : t;
568
- }, _n = function(e, n) {
569
- if ($(I.beforeSanitizeElements, e, null), e !== n && b(e) === null) return kt && an(e), !0;
570
- if (dn(e)) return Z(e), !0;
571
- let r = Y(O ? O(e) : e.nodeName);
572
- if (L = gn(I.uponSanitizeElement, L, dt, bt), $(I.uponSanitizeElement, e, {
656
+ return X(e), !0;
657
+ }, En = function(e, t, n, r) {
658
+ return e.length === 0 ? t : t === n || t === r ? D(t) : t;
659
+ }, $ = function(e, t) {
660
+ return e === t || y(e) !== null ? !1 : (It && pn(e), !0);
661
+ }, Dn = function(e, n) {
662
+ if (Q(F.beforeSanitizeElements, e, null), $(e, n)) return !0;
663
+ if (bn(e)) return X(e), !0;
664
+ let r = J(Xe(e));
665
+ if (I = En(F.uponSanitizeElement, I, vt, Dt), Q(F.uponSanitizeElement, e, {
573
666
  tagName: r,
574
- allowedTags: L
575
- }), e !== n && b(e) === null) return kt && an(e), !0;
576
- if (mn(e, r)) return Z(e), !0;
577
- if (pt[r] || !(B.tagCheck instanceof Function && B.tagCheck(r)) && !L[r]) {
578
- let t = hn(e, r, n);
579
- return t === !1 && $(I.afterSanitizeElements, e, null), t;
580
- }
581
- if ((E ? E(e) : e.nodeType) === j.element && !tn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && C(Le, e.innerHTML)) return Z(e), !0;
582
- if (V && e.nodeType === j.text) {
583
- let n = ln(e.textContent);
584
- e.textContent !== n && (_(t.removed, { element: e.cloneNode() }), e.textContent = n);
585
- }
586
- return $(I.afterSanitizeElements, e, null), !1;
587
- }, vn = function(e, t, r) {
588
- if (mt[t] || H && t === "patchsrc" || H && t === "for" && e !== "label" && e !== "output" || Tt && (t === "id" || t === "name") && (r in n || r in qt)) return !1;
589
- let i = R[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
590
- if (!(gt && C(at, t)) && !(ht && C(ot, t))) {
591
- if (!i) {
592
- if (!(bn(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;
593
- } else if (!Nt[t] && !C(ut, se(r, ct, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ce(r, "data:") === 0 && jt[e]) && !(_t && !C(st, se(r, ct, ""))) && r) return !1;
594
- }
595
- return !0;
596
- }, yn = D({}, [
667
+ allowedTags: I
668
+ }), $(e, n)) return !0;
669
+ if (Cn(e, r)) return X(e), !0;
670
+ if (bt[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !I[r]) {
671
+ let t = Tn(e, r, n);
672
+ return t === !1 && (Q(F.afterSanitizeElements, e, null), $(e, n)) ? !0 : t;
673
+ }
674
+ if (A(e) === k.element && !ln(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(Ve, e.innerHTML)) return X(e), !0;
675
+ if (B && e.nodeType === k.text) {
676
+ let n = vn(e.textContent);
677
+ e.textContent !== n && (ae(t.removed, { element: e.cloneNode() }), e.textContent = n);
678
+ }
679
+ return Q(F.afterSanitizeElements, e, null), $(e, n);
680
+ }, On = function(e, t, r) {
681
+ if (xt[t] || mn(t, e) || Mt && (t === "id" || t === "name") && (r in n || r in en)) return !1;
682
+ let i = L[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
683
+ return Ct && S(ft, t) || St && S(pt, t) ? !0 : i ? Bt[t] || S(_t, ue(r, ht, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && de(r, "data:") === 0 && Rt[e] || wt && !S(mt, ue(r, ht, "")) ? !0 : !r : An(e) && wn(R.tagNameCheck, e) && wn(R.attributeNameCheck, t, e) || t === "is" && R.allowCustomizedBuiltInElements && wn(R.tagNameCheck, r);
684
+ }, kn = E({}, [
597
685
  "annotation-xml",
598
686
  "color-profile",
599
687
  "font-face",
@@ -602,67 +690,67 @@ function He() {
602
690
  "font-face-src",
603
691
  "font-face-uri",
604
692
  "missing-glyph"
605
- ]), bn = function(e) {
606
- return !yn[ie(e)] && C(lt, e);
607
- }, xn = function(e, t, n, r) {
608
- if (N && typeof m == "object" && typeof m.getAttributeType == "function" && !n) switch (m.getAttributeType(e, t)) {
609
- case "TrustedHTML": return F(r);
610
- case "TrustedScriptURL": return Je(r);
693
+ ]), An = function(e) {
694
+ return !kn[se(e)] && S(gt, e);
695
+ }, jn = function(e, t, n, r) {
696
+ if (M && typeof d == "object" && typeof d.getAttributeType == "function" && !n) switch (d.getAttributeType(e, t)) {
697
+ case "TrustedHTML": return P(r);
698
+ case "TrustedScriptURL": return tt(r);
611
699
  }
612
700
  return r;
613
- }, Sn = function(e, n, r, i) {
701
+ }, Mn = function(e, t, n, r) {
614
702
  try {
615
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? Z(e) : ne(t.removed);
703
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !bn(e) || (X(e), !1);
616
704
  } catch {
617
- Q(n, e);
618
- }
619
- }, Cn = function(e) {
620
- $(I.beforeSanitizeAttributes, e, null);
621
- let t = e.attributes;
622
- if (!t || dn(e)) return;
623
- R = gn(I.uponSanitizeAttribute, R, ft, xt);
624
- let n = {
705
+ return Z(t, e), !1;
706
+ }
707
+ }, Nn = function(e, n) {
708
+ if (Q(F.beforeSanitizeAttributes, e, null), $(e, n)) return;
709
+ let r = e.attributes;
710
+ if (!r || bn(e)) return;
711
+ L = En(F.uponSanitizeAttribute, L, yt, Ot);
712
+ let i = {
625
713
  attrName: "",
626
714
  attrValue: "",
627
715
  keepAttr: !0,
628
- allowedAttributes: R,
716
+ allowedAttributes: L,
629
717
  forceKeepAttr: void 0
630
- }, r = t.length, i = Y(e.nodeName);
631
- for (; r--;) {
632
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = Y(o), u = c, d = o === "value" ? u : le(u);
633
- if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(I.uponSanitizeAttribute, e, n), d = n.attrValue, Et && (l === "id" || l === "name") && ce(d, Dt) !== 0 && (Q(o, e), d = Dt + d), H && C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
634
- Q(o, e);
718
+ }, a = r.length, o = J(e.nodeName);
719
+ for (; a--;) {
720
+ let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = J(s), d = l, f = s === "value" ? d : fe(d), p = !1;
721
+ if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, Q(F.uponSanitizeAttribute, e, i), f = i.attrValue, Nt && (u === "id" || u === "name") && de(f, Pt) !== 0 && (Z(s, e, n), f = Pt + f, p = !0), V && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
722
+ Z(s, e, n);
635
723
  continue;
636
724
  }
637
- if (l === "attributename" && oe(d, "href")) {
638
- Q(o, e);
725
+ if (u === "attributename" && le(f, "href")) {
726
+ Z(s, e, n);
639
727
  continue;
640
728
  }
641
- if (!n.forceKeepAttr) {
642
- if (!n.keepAttr) {
643
- Q(o, e);
729
+ if (!i.forceKeepAttr) {
730
+ if (!i.keepAttr) {
731
+ Z(s, e, n);
644
732
  continue;
645
733
  }
646
- if (!vt && C(Re, d)) {
647
- Q(o, e);
734
+ if (!Tt && S(He, f)) {
735
+ Z(s, e, n);
648
736
  continue;
649
737
  }
650
- if (V && (d = ln(d)), !vn(i, l, d)) {
651
- Q(o, e);
738
+ if (B && (f = vn(f)), !On(o, u, f)) {
739
+ Z(s, e, n);
652
740
  continue;
653
741
  }
654
- d = xn(i, l, s, d), d !== u && Sn(e, o, s, d);
742
+ f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && ie(t.removed);
655
743
  }
656
744
  }
657
- $(I.afterSanitizeAttributes, e, null);
658
- }, wn = function(e) {
659
- let t = null, n = cn(e);
660
- for ($(I.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(I.uponSanitizeShadowNode, t, null), _n(t, e), Cn(t), fn(t.content) && wn(t.content), (E ? E(t) : t.nodeType) === j.element) {
661
- let e = S(t);
662
- fn(e) && (Tn(e), wn(e));
745
+ Q(F.afterSanitizeAttributes, e, null), $(e, n);
746
+ }, Pn = function(e) {
747
+ let t = null, n = _n(e);
748
+ for (Q(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(F.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t, e), xn(t.content) && Pn(t.content), A(t) === k.element) {
749
+ let e = me(t);
750
+ xn(e) && (Fn(e), Pn(e));
663
751
  }
664
- $(I.afterSanitizeShadowDOM, e, null);
665
- }, Tn = function(e) {
752
+ Q(F.afterSanitizeShadowDOM, e, null);
753
+ }, Fn = function(e) {
666
754
  let t = [{
667
755
  node: e,
668
756
  shadow: null
@@ -670,27 +758,27 @@ function He() {
670
758
  for (; t.length > 0;) {
671
759
  let e = t.pop();
672
760
  if (e.shadow) {
673
- wn(e.shadow);
761
+ Pn(e.shadow);
674
762
  continue;
675
763
  }
676
- let n = e.node, r = (E ? E(n) : n.nodeType) === j.element, i = y(n);
764
+ let n = e.node, r = A(n) === k.element, i = v(n);
677
765
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
678
766
  node: i[e],
679
767
  shadow: null
680
768
  });
681
769
  if (r) {
682
- let e = O ? O(n) : null;
683
- if (typeof e == "string" && Y(e) === "template") {
770
+ let e = T ? T(n) : null;
771
+ if (typeof e == "string" && J(e) === "template") {
684
772
  let e = n.content;
685
- fn(e) && t.push({
773
+ xn(e) && t.push({
686
774
  node: e,
687
775
  shadow: null
688
776
  });
689
777
  }
690
778
  }
691
779
  if (r) {
692
- let e = S(n);
693
- fn(e) && t.push({
780
+ let e = me(n);
781
+ xn(e) && t.push({
694
782
  node: null,
695
783
  shadow: e
696
784
  }, {
@@ -702,75 +790,79 @@ function He() {
702
790
  };
703
791
  return t.sanitize = function(e) {
704
792
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
705
- if (Lt = !e, Lt && (e = "<!-->"), typeof e != "string" && !pn(e) && (e = fe(e), typeof e != "string")) throw w("dirty is not a string, aborting");
793
+ if (Wt = !e, Wt && (e = "<!-->"), typeof e != "string" && !Sn(e) && (e = ge(e), typeof e != "string")) throw C("dirty is not a string, aborting");
706
794
  if (!t.isSupported) return e;
707
- yt ? (L = bt, R = xt) : Yt(n), (I.uponSanitizeElement.length > 0 || I.uponSanitizeAttribute.length > 0) && (L = k(L)), I.uponSanitizeAttribute.length > 0 && (R = k(R)), t.removed = [];
708
- let c = kt && typeof e != "string" && pn(e);
795
+ 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 = [];
796
+ let c = It && typeof e != "string" && Sn(e);
709
797
  if (c) {
710
- on(e);
711
- let t = O ? O(e) : e.nodeName;
798
+ hn(e);
799
+ let t = Xe(e);
712
800
  if (typeof t == "string") {
713
- let n = Y(t);
714
- if (!L[n] || pt[n]) throw nn(e), w("root node is forbidden and cannot be sanitized in-place");
801
+ let n = J(t);
802
+ if (!I[n] || bt[n]) throw dn(e), C("root node is forbidden and cannot be sanitized in-place");
715
803
  }
716
- if (dn(e)) throw nn(e), w("root node is clobbered and cannot be sanitized in-place");
804
+ if (bn(e)) throw dn(e), C("root node is clobbered and cannot be sanitized in-place");
717
805
  try {
718
- Tn(e);
806
+ Fn(e);
719
807
  } catch (t) {
720
- throw nn(e), t;
808
+ throw dn(e), t;
721
809
  }
722
- } else if (pn(e)) i = sn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === j.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Tn(a);
810
+ } else if (Sn(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);
723
811
  else {
724
- if (!W && !V && !U && e.indexOf("<") === -1) return N && wt ? F(e) : e;
725
- if (i = sn(e), !i) return W ? null : wt ? P : "";
812
+ if (!U && !B && !H && e.indexOf("<") === -1) return M && jt ? P(e) : e;
813
+ if (i = gn(e), !i) return U ? null : jt ? N : "";
726
814
  }
727
- i && St && Z(i.firstChild);
815
+ i && kt && X(i.firstChild);
728
816
  let l = c ? e : i;
729
817
  try {
730
- let e = cn(l);
731
- for (; o = e.nextNode();) _n(o, l), Cn(o), fn(o.content) && wn(o.content);
818
+ let e = _n(l);
819
+ for (; o = e.nextNode();) Dn(o, l), Nn(o, l), xn(o.content) && Pn(o.content);
732
820
  } catch (n) {
733
- throw c && (nn(e), g(t.removed, (e) => {
734
- e.element && an(e.element);
821
+ throw c && (dn(e), g(t.removed, (e) => {
822
+ e.element && pn(e.element);
735
823
  })), n;
736
824
  }
737
- if (c) return g(t.removed, (e) => {
738
- e.element && an(e.element);
739
- }), V && un(e), e;
740
- if (W) {
741
- if (V && un(i), Ct) for (s = $e.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
825
+ if (c) {
826
+ let n = !1;
827
+ if (g(t.removed, (t) => {
828
+ t.element && (t.element === e && (n = !0), pn(t.element));
829
+ }), n) throw C("a node selected for removal could not be safely returned; refusing to sanitize in place");
830
+ return B && yn(e), e;
831
+ }
832
+ if (U) {
833
+ if (B && yn(i), At) for (s = ot.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
742
834
  else s = i;
743
- return (R.shadowroot || R.shadowrootmode) && (s = tt.call(r, s, !0)), s;
835
+ return (L.shadowroot || L.shadowrootmode) && (s = ct.call(r, s, !0)), s;
744
836
  }
745
- let u = U ? i.outerHTML : i.innerHTML;
746
- return U && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && C(Ne, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), V && (u = ln(u)), N && wt ? F(u) : u;
837
+ let u = H ? i.outerHTML : i.innerHTML;
838
+ return H && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Le, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = vn(u)), M && jt ? P(u) : u;
747
839
  }, t.setConfig = function() {
748
840
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
749
- Yt(e), yt = !0, bt = L, xt = R;
841
+ nn(e), Et = !0, Dt = I, Ot = L;
750
842
  }, t.clearConfig = function() {
751
- X = null, yt = !1, bt = null, xt = null, N = We, P = "";
843
+ Y = null, Et = !1, Dt = null, Ot = null, M = Ze, N = "";
752
844
  }, t.isValidAttribute = function(e, t, n) {
753
- X || Yt({});
754
- let r = Y(e), i = Y(t);
755
- return vn(r, i, n);
845
+ Y || nn({});
846
+ let r = J(e), i = J(t);
847
+ return On(r, i, n);
756
848
  }, t.addHook = function(e, t) {
757
- typeof t == "function" && x(I, e) && _(I[e], t);
849
+ typeof t == "function" && b(F, e) && ae(F[e], t);
758
850
  }, t.removeHook = function(e, t) {
759
- if (x(I, e)) {
851
+ if (b(F, e)) {
760
852
  if (t !== void 0) {
761
- let n = te(I[e], t);
762
- return n === -1 ? void 0 : re(I[e], n, 1)[0];
853
+ let n = re(F[e], t);
854
+ return n === -1 ? void 0 : oe(F[e], n, 1)[0];
763
855
  }
764
- return ne(I[e]);
856
+ return ie(F[e]);
765
857
  }
766
858
  }, t.removeHooks = function(e) {
767
- x(I, e) && (I[e] = []);
859
+ b(F, e) && (F[e] = []);
768
860
  }, t.removeAllHooks = function() {
769
- I = Ve();
861
+ F = qe();
770
862
  }, t;
771
863
  }
772
- var Ue = He();
864
+ var Xe = Ye();
773
865
  //#endregion
774
- export { Ue as default };
866
+ export { Xe as default };
775
867
 
776
868
  //# sourceMappingURL=purify.es.js.map