@plumile/ui 0.1.184 → 0.1.185

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 (31) hide show
  1. package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +0 -2
  2. package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +2 -0
  3. package/lib/esm/atomic/molecules/markdown/components/MarkdownInlineCode.css.js +1 -0
  4. package/lib/esm/atomic/molecules/markdown/components/MarkdownLink.css.js +0 -1
  5. package/lib/esm/node_modules/dompurify/dist/purify.es.js +255 -267
  6. package/lib/esm/node_modules/dompurify/dist/purify.es.js.map +1 -1
  7. package/lib/esm/node_modules/es-toolkit/dist/_internal/globalThis.js +1 -1
  8. package/lib/esm/node_modules/es-toolkit/dist/_internal/globalThis.js.map +1 -1
  9. package/lib/esm/node_modules/es-toolkit/dist/compat/function/memoize.js.map +1 -1
  10. package/lib/esm/node_modules/es-toolkit/dist/compat/object/clone.js.map +1 -1
  11. package/lib/esm/node_modules/es-toolkit/dist/compat/object/cloneDeep.js.map +1 -1
  12. package/lib/esm/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js.map +1 -1
  13. package/lib/esm/node_modules/es-toolkit/dist/compat/object/merge.js.map +1 -1
  14. package/lib/esm/node_modules/es-toolkit/dist/compat/object/mergeWith.js.map +1 -1
  15. package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArguments.js.map +1 -1
  16. package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArray.js.map +1 -1
  17. package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js.map +1 -1
  18. package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js.map +1 -1
  19. package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +1 -1
  20. package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js.map +1 -1
  21. package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js.map +1 -1
  22. package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js.map +1 -1
  23. package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js.map +1 -1
  24. package/lib/esm/node_modules/es-toolkit/dist/function/noop.js.map +1 -1
  25. package/lib/esm/node_modules/es-toolkit/dist/object/clone.js.map +1 -1
  26. package/lib/esm/node_modules/es-toolkit/dist/object/cloneDeepWith.js.map +1 -1
  27. package/lib/esm/node_modules/es-toolkit/dist/predicate/isBuffer.js.map +1 -1
  28. package/lib/esm/node_modules/es-toolkit/dist/predicate/isLength.js.map +1 -1
  29. package/lib/esm/node_modules/es-toolkit/dist/predicate/isPrimitive.js.map +1 -1
  30. package/lib/esm/node_modules/es-toolkit/dist/predicate/isTypedArray.js.map +1 -1
  31. package/package.json +3 -3
@@ -38,31 +38,31 @@ function a(t, n) {
38
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
39
  }
40
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, ee = m.apply, te = m.construct;
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
42
  d ||= function(e) {
43
43
  return e;
44
44
  }, f ||= function(e) {
45
45
  return e;
46
- }, ee ||= function(e, t) {
46
+ }, h ||= function(e, t) {
47
47
  var n = [...arguments].slice(2);
48
48
  return e.apply(t, n);
49
- }, te ||= function(e) {
49
+ }, ee ||= function(e) {
50
50
  return new e(...[...arguments].slice(1));
51
51
  };
52
- var h = E(Array.prototype.forEach), ne = E(Array.prototype.lastIndexOf), re = E(Array.prototype.pop), g = E(Array.prototype.push), ie = E(Array.prototype.splice), _ = Array.isArray, ae = E(String.prototype.toLowerCase), oe = E(String.prototype.toString), se = E(String.prototype.match), v = E(String.prototype.replace), ce = E(String.prototype.indexOf), le = E(String.prototype.trim), ue = E(Number.prototype.toString), y = E(Boolean.prototype.toString), b = typeof BigInt > "u" ? null : E(BigInt.prototype.toString), x = typeof Symbol > "u" ? null : E(Symbol.prototype.toString), S = E(Object.prototype.hasOwnProperty), C = E(Object.prototype.toString), w = E(RegExp.prototype.test), T = D(TypeError);
53
- function E(e) {
52
+ var te = w(Array.prototype.forEach), ne = w(Array.prototype.lastIndexOf), re = w(Array.prototype.pop), g = w(Array.prototype.push), ie = w(Array.prototype.splice), _ = Array.isArray, ae = w(String.prototype.toLowerCase), oe = w(String.prototype.toString), se = w(String.prototype.match), ce = w(String.prototype.replace), le = w(String.prototype.indexOf), ue = w(String.prototype.trim), de = w(Number.prototype.toString), fe = w(Boolean.prototype.toString), v = typeof BigInt > "u" ? null : w(BigInt.prototype.toString), y = typeof Symbol > "u" ? null : w(Symbol.prototype.toString), b = w(Object.prototype.hasOwnProperty), x = w(Object.prototype.toString), S = w(RegExp.prototype.test), C = T(TypeError);
53
+ function w(e) {
54
54
  return function(t) {
55
55
  t instanceof RegExp && (t.lastIndex = 0);
56
56
  var n = [...arguments].slice(1);
57
- return ee(e, t, n);
57
+ return h(e, t, n);
58
58
  };
59
59
  }
60
- function D(e) {
60
+ function T(e) {
61
61
  return function() {
62
- return te(e, [...arguments]);
62
+ return ee(e, [...arguments]);
63
63
  };
64
64
  }
65
- function O(e, t) {
65
+ function E(e, t) {
66
66
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae;
67
67
  if (s && s(e, null), !_(t)) return e;
68
68
  let r = t.length;
@@ -76,46 +76,46 @@ function O(e, t) {
76
76
  }
77
77
  return e;
78
78
  }
79
- function k(e) {
80
- for (let t = 0; t < e.length; t++) S(e, t) || (e[t] = null);
79
+ function D(e) {
80
+ for (let t = 0; t < e.length; t++) b(e, t) || (e[t] = null);
81
81
  return e;
82
82
  }
83
- function A(e) {
83
+ function O(e) {
84
84
  let t = p(null);
85
85
  for (let r of o(e)) {
86
86
  var n = i(r, 2);
87
87
  let a = n[0], o = n[1];
88
- S(e, a) && (_(o) ? t[a] = k(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = A(o) : t[a] = o);
88
+ b(e, a) && (_(o) ? t[a] = D(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = O(o) : t[a] = o);
89
89
  }
90
90
  return t;
91
91
  }
92
- function de(e) {
92
+ function pe(e) {
93
93
  switch (typeof e) {
94
94
  case "string": return e;
95
- case "number": return ue(e);
96
- case "boolean": return y(e);
97
- case "bigint": return b ? b(e) : "0";
98
- case "symbol": return x ? x(e) : "Symbol()";
99
- case "undefined": return C(e);
95
+ case "number": return de(e);
96
+ case "boolean": return fe(e);
97
+ case "bigint": return v ? v(e) : "0";
98
+ case "symbol": return y ? y(e) : "Symbol()";
99
+ case "undefined": return x(e);
100
100
  case "function":
101
101
  case "object": {
102
- if (e === null) return C(e);
103
- let t = e, n = j(t, "toString");
102
+ if (e === null) return x(e);
103
+ let t = e, n = k(t, "toString");
104
104
  if (typeof n == "function") {
105
105
  let e = n(t);
106
- return typeof e == "string" ? e : C(e);
106
+ return typeof e == "string" ? e : x(e);
107
107
  }
108
- return C(e);
108
+ return x(e);
109
109
  }
110
- default: return C(e);
110
+ default: return x(e);
111
111
  }
112
112
  }
113
- function j(e, t) {
113
+ function k(e, t) {
114
114
  for (; e !== null;) {
115
115
  let n = u(e, t);
116
116
  if (n) {
117
- if (n.get) return E(n.get);
118
- if (typeof n.value == "function") return E(n.value);
117
+ if (n.get) return w(n.get);
118
+ if (typeof n.value == "function") return w(n.value);
119
119
  }
120
120
  e = l(e);
121
121
  }
@@ -124,14 +124,14 @@ function j(e, t) {
124
124
  }
125
125
  return n;
126
126
  }
127
- function fe(e) {
127
+ function me(e) {
128
128
  try {
129
- return w(e, ""), !0;
129
+ return S(e, ""), !0;
130
130
  } catch {
131
131
  return !1;
132
132
  }
133
133
  }
134
- var pe = 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(".")), me = 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(".")), he = d([
134
+ var he = 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(".")), ge = 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(".")), _e = d([
135
135
  "feBlend",
136
136
  "feColorMatrix",
137
137
  "feComponentTransfer",
@@ -157,7 +157,7 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
157
157
  "feSpotLight",
158
158
  "feTile",
159
159
  "feTurbulence"
160
- ]), ge = d([
160
+ ]), ve = d([
161
161
  "animate",
162
162
  "color-profile",
163
163
  "cursor",
@@ -180,7 +180,7 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
180
180
  "solidcolor",
181
181
  "unknown",
182
182
  "use"
183
- ]), _e = 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(".")), ve = d([
183
+ ]), ye = 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(".")), be = d([
184
184
  "maction",
185
185
  "maligngroup",
186
186
  "malignmark",
@@ -196,28 +196,28 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
196
196
  "annotation-xml",
197
197
  "mprescripts",
198
198
  "none"
199
- ]), ye = d(["#text"]), be = 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(".")), xe = 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.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-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(".")), Se = 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(".")), Ce = d([
199
+ ]), xe = d(["#text"]), Se = 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(".")), Ce = 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.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-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(".")), we = 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(".")), Te = d([
200
200
  "xlink:href",
201
201
  "xml:id",
202
202
  "xlink:title",
203
203
  "xml:space",
204
204
  "xmlns:xlink"
205
- ]), we = f(/{{[\w\W]*|^[\w\W]*}}/g), Te = f(/<%[\w\W]*|^[\w\W]*%>/g), Ee = f(/\${[\w\W]*/g), De = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Oe = f(/^aria-[\-\w]+$/), ke = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ae = f(/^(?:\w+script|data):/i), je = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Me = f(/^html$/i), Ne = f(/^[a-z][.\w]*(-[.\w]+)+$/i), M = {
205
+ ]), Ee = f(/{{[\w\W]*|^[\w\W]*}}/g), De = f(/<%[\w\W]*|^[\w\W]*%>/g), Oe = f(/\${[\w\W]*/g), ke = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ae = f(/^aria-[\-\w]+$/), je = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Me = f(/^(?:\w+script|data):/i), Ne = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Pe = f(/^html$/i), Fe = f(/^[a-z][.\w]*(-[.\w]+)+$/i), Ie = f(/<[/\w!]/g), Le = f(/<[/\w]/g), Re = f(/<\/no(script|embed|frames)/i), ze = f(/\/>/i), A = {
206
206
  element: 1,
207
207
  attribute: 2,
208
208
  text: 3,
209
209
  cdataSection: 4,
210
210
  entityReference: 5,
211
211
  entityNode: 6,
212
- progressingInstruction: 7,
212
+ processingInstruction: 7,
213
213
  comment: 8,
214
214
  document: 9,
215
215
  documentType: 10,
216
216
  documentFragment: 11,
217
217
  notation: 12
218
- }, Pe = function() {
218
+ }, Be = function() {
219
219
  return typeof window > "u" ? null : window;
220
- }, Fe = function(e, t) {
220
+ }, Ve = function(e, t) {
221
221
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
222
222
  let n = null, r = "data-tt-policy-suffix";
223
223
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -234,7 +234,7 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
234
234
  } catch {
235
235
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
236
236
  }
237
- }, Ie = function() {
237
+ }, He = function() {
238
238
  return {
239
239
  afterSanitizeAttributes: [],
240
240
  afterSanitizeElements: [],
@@ -246,50 +246,52 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
246
246
  uponSanitizeElement: [],
247
247
  uponSanitizeShadowNode: []
248
248
  };
249
+ }, j = function(e, t, n, r) {
250
+ return b(e, t) && _(e[t]) ? E(r.base ? O(r.base) : {}, e[t], r.transform) : n;
249
251
  };
250
- function Le() {
251
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Pe(), t = (e) => Le(e);
252
- if (t.version = "3.4.9", t.removed = [], !e || !e.document || e.document.nodeType !== M.document || !e.Element) return t.isSupported = !1, t;
252
+ function Ue() {
253
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Be(), t = (e) => Ue(e);
254
+ if (t.version = "3.4.10", t.removed = [], !e || !e.document || e.document.nodeType !== A.document || !e.Element) return t.isSupported = !1, t;
253
255
  let n = e.document, r = n, i = r.currentScript;
254
256
  e.DocumentFragment;
255
257
  let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
256
258
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
257
- let u = e.DOMParser, f = e.trustedTypes, m = c.prototype, ee = j(m, "cloneNode"), te = j(m, "remove"), ue = j(m, "nextSibling"), y = j(m, "childNodes"), b = j(m, "parentNode"), x = j(m, "shadowRoot"), C = j(m, "attributes"), E = s && s.prototype ? j(s.prototype, "nodeType") : null, D = s && s.prototype ? j(s.prototype, "nodeName") : null;
259
+ let u = e.DOMParser, m = e.trustedTypes, h = c.prototype, ee = k(h, "cloneNode"), de = k(h, "remove"), fe = k(h, "nextSibling"), v = k(h, "childNodes"), y = k(h, "parentNode"), x = k(h, "shadowRoot"), w = k(h, "attributes"), T = s && s.prototype ? k(s.prototype, "nodeType") : null, D = s && s.prototype ? k(s.prototype, "nodeName") : null;
258
260
  if (typeof a == "function") {
259
261
  let e = n.createElement("template");
260
262
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
261
263
  }
262
- let k, N = "", Re, ze = !1, Be = 0, Ve = function() {
263
- if (Be > 0) throw T("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.");
264
+ let M, N = "", We, Ge = !1, Ke = 0, qe = function() {
265
+ if (Ke > 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.");
264
266
  }, P = function(e) {
265
- Ve(), Be++;
267
+ qe(), Ke++;
266
268
  try {
267
- return k.createHTML(e);
269
+ return M.createHTML(e);
268
270
  } finally {
269
- Be--;
271
+ Ke--;
270
272
  }
271
- }, He = function(e) {
272
- Ve(), Be++;
273
+ }, Je = function(e) {
274
+ qe(), Ke++;
273
275
  try {
274
- return k.createScriptURL(e);
276
+ return M.createScriptURL(e);
275
277
  } finally {
276
- Be--;
278
+ Ke--;
277
279
  }
278
- }, Ue = function() {
279
- return ze ||= (Re = Fe(f, i), !0), Re;
280
- }, We = n, Ge = We.implementation, Ke = We.createNodeIterator, qe = We.createDocumentFragment, Je = We.getElementsByTagName, Ye = r.importNode, F = Ie();
281
- t.isSupported = typeof o == "function" && typeof b == "function" && Ge && Ge.createHTMLDocument !== void 0;
282
- let Xe = we, Ze = Te, Qe = Ee, $e = De, et = Oe, tt = Ae, nt = je, rt = Ne, it = ke, I = null, at = O({}, [
283
- ...pe,
284
- ...me,
280
+ }, Ye = function() {
281
+ return Ge ||= (We = Ve(m, i), !0), We;
282
+ }, Xe = n, Ze = Xe.implementation, Qe = Xe.createNodeIterator, $e = Xe.createDocumentFragment, et = Xe.getElementsByTagName, tt = r.importNode, F = He();
283
+ t.isSupported = typeof o == "function" && typeof y == "function" && Ze && Ze.createHTMLDocument !== void 0;
284
+ let nt = Ee, rt = De, it = Oe, at = ke, ot = Ae, st = Me, ct = Ne, lt = Fe, ut = je, I = null, dt = E({}, [
285
285
  ...he,
286
+ ...ge,
286
287
  ..._e,
287
- ...ye
288
- ]), L = null, ot = O({}, [
289
- ...be,
290
- ...xe,
288
+ ...ye,
289
+ ...xe
290
+ ]), L = null, ft = E({}, [
291
291
  ...Se,
292
- ...Ce
292
+ ...Ce,
293
+ ...we,
294
+ ...Te
293
295
  ]), R = Object.seal(p(null, {
294
296
  tagNameCheck: {
295
297
  writable: !0,
@@ -309,7 +311,7 @@ function Le() {
309
311
  enumerable: !0,
310
312
  value: !1
311
313
  }
312
- })), z = null, st = null, B = Object.seal(p(null, {
314
+ })), pt = null, mt = null, z = Object.seal(p(null, {
313
315
  tagCheck: {
314
316
  writable: !0,
315
317
  configurable: !1,
@@ -322,14 +324,14 @@ function Le() {
322
324
  enumerable: !0,
323
325
  value: null
324
326
  }
325
- })), ct = !0, lt = !0, ut = !1, dt = !0, V = !1, ft = !0, H = !1, pt = !1, mt = !1, U = !1, ht = !1, gt = !1, _t = !0, vt = !1, yt = "user-content-", bt = !0, xt = !1, W = {}, G = null, St = O({}, /* @__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(".")), Ct = null, wt = O({}, [
327
+ })), ht = !0, gt = !0, _t = !1, vt = !0, B = !1, yt = !0, V = !1, bt = !1, xt = !1, H = !1, St = !1, Ct = !1, wt = !0, Tt = !1, Et = "user-content-", Dt = !0, Ot = !1, U = {}, W = null, kt = 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(".")), At = null, jt = E({}, [
326
328
  "audio",
327
329
  "video",
328
330
  "img",
329
331
  "source",
330
332
  "image",
331
333
  "track"
332
- ]), Tt = null, Et = O({}, [
334
+ ]), Mt = null, Nt = E({}, [
333
335
  "alt",
334
336
  "class",
335
337
  "for",
@@ -344,83 +346,89 @@ function Le() {
344
346
  "value",
345
347
  "style",
346
348
  "xmlns"
347
- ]), Dt = "http://www.w3.org/1998/Math/MathML", Ot = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, kt = !1, At = null, jt = O({}, [
348
- Dt,
349
- Ot,
350
- K
351
- ], oe), Mt = O({}, [
349
+ ]), Pt = "http://www.w3.org/1998/Math/MathML", Ft = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, It = !1, Lt = null, Rt = E({}, [
350
+ Pt,
351
+ Ft,
352
+ G
353
+ ], oe), zt = d([
352
354
  "mi",
353
355
  "mo",
354
356
  "mn",
355
357
  "ms",
356
358
  "mtext"
357
- ]), Nt = O({}, ["annotation-xml"]), Pt = O({}, [
359
+ ]), Bt = E({}, zt), Vt = d(["annotation-xml"]), Ht = E({}, Vt), Ut = E({}, [
358
360
  "title",
359
361
  "style",
360
362
  "font",
361
363
  "a",
362
364
  "script"
363
- ]), Ft = null, It = ["application/xhtml+xml", "text/html"], J = null, Y = null, Lt = n.createElement("form"), Rt = function(e) {
365
+ ]), q = null, Wt = ["application/xhtml+xml", "text/html"], J = null, Y = null, Gt = n.createElement("form"), Kt = function(e) {
364
366
  return e instanceof RegExp || e instanceof Function;
365
- }, zt = function() {
367
+ }, qt = function() {
366
368
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
367
369
  if (Y && Y === e) return;
368
- (!e || typeof e != "object") && (e = {}), e = A(e), Ft = It.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Ft === "application/xhtml+xml" ? oe : ae, I = S(e, "ALLOWED_TAGS") && _(e.ALLOWED_TAGS) ? O({}, e.ALLOWED_TAGS, J) : at, L = S(e, "ALLOWED_ATTR") && _(e.ALLOWED_ATTR) ? O({}, e.ALLOWED_ATTR, J) : ot, At = S(e, "ALLOWED_NAMESPACES") && _(e.ALLOWED_NAMESPACES) ? O({}, e.ALLOWED_NAMESPACES, oe) : jt, Tt = S(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) ? O(A(Et), e.ADD_URI_SAFE_ATTR, J) : Et, Ct = S(e, "ADD_DATA_URI_TAGS") && _(e.ADD_DATA_URI_TAGS) ? O(A(wt), e.ADD_DATA_URI_TAGS, J) : wt, G = S(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) ? O({}, e.FORBID_CONTENTS, J) : St, z = S(e, "FORBID_TAGS") && _(e.FORBID_TAGS) ? O({}, e.FORBID_TAGS, J) : A({}), st = S(e, "FORBID_ATTR") && _(e.FORBID_ATTR) ? O({}, e.FORBID_ATTR, J) : A({}), W = S(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? A(e.USE_PROFILES) : e.USE_PROFILES : !1, ct = e.ALLOW_ARIA_ATTR !== !1, lt = e.ALLOW_DATA_ATTR !== !1, ut = e.ALLOW_UNKNOWN_PROTOCOLS || !1, dt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, ft = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, U = e.RETURN_DOM || !1, ht = e.RETURN_DOM_FRAGMENT || !1, gt = e.RETURN_TRUSTED_TYPE || !1, mt = e.FORCE_BODY || !1, _t = e.SANITIZE_DOM !== !1, vt = e.SANITIZE_NAMED_PROPS || !1, bt = e.KEEP_CONTENT !== !1, xt = e.IN_PLACE || !1, it = fe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ke, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Mt = S(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? A(e.MATHML_TEXT_INTEGRATION_POINTS) : O({}, [
369
- "mi",
370
- "mo",
371
- "mn",
372
- "ms",
373
- "mtext"
374
- ]), Nt = S(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? A(e.HTML_INTEGRATION_POINTS) : O({}, ["annotation-xml"]);
375
- let t = S(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? A(e.CUSTOM_ELEMENT_HANDLING) : p(null);
376
- if (R = p(null), S(t, "tagNameCheck") && Rt(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), S(t, "attributeNameCheck") && Rt(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), S(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), V && (lt = !1), ht && (U = !0), W && (I = O({}, ye), L = p(null), W.html === !0 && (O(I, pe), O(L, be)), W.svg === !0 && (O(I, me), O(L, xe), O(L, Ce)), W.svgFilters === !0 && (O(I, he), O(L, xe), O(L, Ce)), W.mathMl === !0 && (O(I, _e), O(L, Se), O(L, Ce))), B.tagCheck = null, B.attributeCheck = null, S(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (I === at && (I = A(I)), O(I, e.ADD_TAGS, J))), S(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (L === ot && (L = A(L)), O(L, e.ADD_ATTR, J))), S(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) && O(Tt, e.ADD_URI_SAFE_ATTR, J), S(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) && (G === St && (G = A(G)), O(G, e.FORBID_CONTENTS, J)), S(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (G === St && (G = A(G)), O(G, e.ADD_FORBID_CONTENTS, J)), bt && (I["#text"] = !0), H && O(I, [
370
+ (!e || typeof e != "object") && (e = {}), e = O(e), q = Wt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = q === "application/xhtml+xml" ? oe : ae, I = j(e, "ALLOWED_TAGS", dt, { transform: J }), L = j(e, "ALLOWED_ATTR", ft, { transform: J }), Lt = j(e, "ALLOWED_NAMESPACES", Rt, { transform: oe }), Mt = j(e, "ADD_URI_SAFE_ATTR", Nt, {
371
+ transform: J,
372
+ base: Nt
373
+ }), At = j(e, "ADD_DATA_URI_TAGS", jt, {
374
+ transform: J,
375
+ base: jt
376
+ }), W = j(e, "FORBID_CONTENTS", kt, { transform: J }), pt = j(e, "FORBID_TAGS", O({}), { transform: J }), mt = j(e, "FORBID_ATTR", O({}), { transform: J }), U = b(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? O(e.USE_PROFILES) : e.USE_PROFILES : !1, ht = e.ALLOW_ARIA_ATTR !== !1, gt = e.ALLOW_DATA_ATTR !== !1, _t = e.ALLOW_UNKNOWN_PROTOCOLS || !1, vt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, yt = e.SAFE_FOR_XML !== !1, V = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, St = e.RETURN_DOM_FRAGMENT || !1, Ct = e.RETURN_TRUSTED_TYPE || !1, xt = e.FORCE_BODY || !1, wt = e.SANITIZE_DOM !== !1, Tt = e.SANITIZE_NAMED_PROPS || !1, Dt = e.KEEP_CONTENT !== !1, Ot = e.IN_PLACE || !1, ut = me(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : je, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, Bt = b(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? O(e.MATHML_TEXT_INTEGRATION_POINTS) : E({}, zt), Ht = b(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? O(e.HTML_INTEGRATION_POINTS) : E({}, Vt);
377
+ let t = b(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? O(e.CUSTOM_ELEMENT_HANDLING) : p(null);
378
+ if (R = p(null), b(t, "tagNameCheck") && Kt(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), b(t, "attributeNameCheck") && Kt(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), b(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(R), B && (gt = !1), St && (H = !0), U && (I = E({}, xe), L = p(null), U.html === !0 && (E(I, he), E(L, Se)), U.svg === !0 && (E(I, ge), E(L, Ce), E(L, Te)), U.svgFilters === !0 && (E(I, _e), E(L, Ce), E(L, Te)), U.mathMl === !0 && (E(I, ye), E(L, we), E(L, Te))), z.tagCheck = null, z.attributeCheck = null, b(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (I === dt && (I = O(I)), E(I, e.ADD_TAGS, J))), b(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (L === ft && (L = O(L)), E(L, e.ADD_ATTR, J))), b(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) && E(Mt, e.ADD_URI_SAFE_ATTR, J), b(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) && (W === kt && (W = O(W)), E(W, e.FORBID_CONTENTS, J)), b(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (W === kt && (W = O(W)), E(W, e.ADD_FORBID_CONTENTS, J)), Dt && (I["#text"] = !0), V && E(I, [
377
379
  "html",
378
380
  "head",
379
381
  "body"
380
- ]), I.table && (O(I, ["tbody"]), delete z.tbody), e.TRUSTED_TYPES_POLICY) {
381
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw T("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
382
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw T("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
383
- let t = k;
384
- k = e.TRUSTED_TYPES_POLICY;
382
+ ]), I.table && (E(I, ["tbody"]), delete pt.tbody), e.TRUSTED_TYPES_POLICY) {
383
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
384
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
385
+ let t = M;
386
+ M = e.TRUSTED_TYPES_POLICY;
385
387
  try {
386
388
  N = P("");
387
389
  } catch (e) {
388
- throw k = t, e;
390
+ throw M = t, e;
389
391
  }
390
- } else e.TRUSTED_TYPES_POLICY === null ? (k = void 0, N = "") : (k === void 0 && (k = Ue()), k && typeof N == "string" && (N = P("")));
391
- (F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && I === at && (I = A(I)), F.uponSanitizeAttribute.length > 0 && L === ot && (L = A(L)), d && d(e), Y = e;
392
- }, Bt = O({}, [
393
- ...me,
394
- ...he,
395
- ...ge
396
- ]), Vt = O({}, [..._e, ...ve]), Ht = function(e) {
397
- let t = b(e);
392
+ } else e.TRUSTED_TYPES_POLICY === null ? (M = void 0, N = "") : (M === void 0 && (M = Ye()), M && typeof N == "string" && (N = P("")));
393
+ (F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && I === dt && (I = O(I)), F.uponSanitizeAttribute.length > 0 && L === ft && (L = O(L)), d && d(e), Y = e;
394
+ }, Jt = E({}, [
395
+ ...ge,
396
+ ..._e,
397
+ ...ve
398
+ ]), Yt = E({}, [...ye, ...be]), Xt = function(e, t, n) {
399
+ return t.namespaceURI === G ? e === "svg" : t.namespaceURI === Pt ? e === "svg" && (n === "annotation-xml" || Bt[n]) : !!Jt[e];
400
+ }, Zt = function(e, t, n) {
401
+ return t.namespaceURI === G ? e === "math" : t.namespaceURI === Ft ? e === "math" && Ht[n] : !!Yt[e];
402
+ }, Qt = function(e, t, n) {
403
+ return t.namespaceURI === Ft && !Ht[n] || t.namespaceURI === Pt && !Bt[n] ? !1 : !Yt[e] && (Ut[e] || !Jt[e]);
404
+ }, $t = function(e) {
405
+ let t = y(e);
398
406
  (!t || !t.tagName) && (t = {
399
- namespaceURI: q,
407
+ namespaceURI: K,
400
408
  tagName: "template"
401
409
  });
402
410
  let n = ae(e.tagName), r = ae(t.tagName);
403
- return At[e.namespaceURI] ? e.namespaceURI === Ot ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === Dt ? n === "svg" && (r === "annotation-xml" || Mt[r]) : !!Bt[n] : e.namespaceURI === Dt ? t.namespaceURI === K ? n === "math" : t.namespaceURI === Ot ? n === "math" && Nt[r] : !!Vt[n] : e.namespaceURI === K ? t.namespaceURI === Ot && !Nt[r] || t.namespaceURI === Dt && !Mt[r] ? !1 : !Vt[n] && (Pt[n] || !Bt[n]) : !!(Ft === "application/xhtml+xml" && At[e.namespaceURI]) : !1;
411
+ return Lt[e.namespaceURI] ? e.namespaceURI === Ft ? Xt(n, t, r) : e.namespaceURI === Pt ? Zt(n, t, r) : e.namespaceURI === G ? Qt(n, t, r) : !!(q === "application/xhtml+xml" && Lt[e.namespaceURI]) : !1;
404
412
  }, X = function(e) {
405
413
  g(t.removed, { element: e });
406
414
  try {
407
- b(e).removeChild(e);
415
+ y(e).removeChild(e);
408
416
  } catch {
409
- if (te(e), !b(e)) throw T("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
417
+ if (de(e), !y(e)) throw C("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
410
418
  }
411
- }, Ut = function(e) {
412
- let t = y ? y(e) : e.childNodes;
419
+ }, en = function(e) {
420
+ let t = v(e);
413
421
  if (t) {
414
422
  let e = [];
415
- h(t, (t) => {
423
+ te(t, (t) => {
416
424
  g(e, t);
417
- }), h(e, (e) => {
425
+ }), te(e, (e) => {
418
426
  try {
419
- te(e);
427
+ de(e);
420
428
  } catch {}
421
429
  });
422
430
  }
423
- let n = C ? C(e) : null;
431
+ let n = w(e);
424
432
  if (n) for (let t = n.length - 1; t >= 0; --t) {
425
433
  let r = n[t], i = r && r.name;
426
434
  if (typeof i == "string") try {
@@ -439,129 +447,122 @@ function Le() {
439
447
  from: n
440
448
  });
441
449
  }
442
- if (n.removeAttribute(e), e === "is") if (U || ht) try {
450
+ if (n.removeAttribute(e), e === "is") if (H || St) try {
443
451
  X(n);
444
452
  } catch {}
445
453
  else try {
446
454
  n.setAttribute(e, "");
447
455
  } catch {}
448
- }, Wt = function(e) {
449
- let t = C ? C(e) : e.attributes;
456
+ }, tn = function(e) {
457
+ let t = w(e);
450
458
  if (t) for (let n = t.length - 1; n >= 0; --n) {
451
459
  let r = t[n], i = r && r.name;
452
460
  if (!(typeof i != "string" || L[J(i)])) try {
453
461
  e.removeAttribute(i);
454
462
  } catch {}
455
463
  }
456
- }, Gt = function(e) {
464
+ }, nn = function(e) {
457
465
  let t = [e];
458
466
  for (; t.length > 0;) {
459
467
  let e = t.pop();
460
- (E ? E(e) : e.nodeType) === M.element && Wt(e);
461
- let n = y ? y(e) : e.childNodes;
468
+ (T ? T(e) : e.nodeType) === A.element && tn(e);
469
+ let n = v(e);
462
470
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
463
471
  }
464
- }, Kt = function(e) {
472
+ }, rn = function(e) {
465
473
  let t = null, r = null;
466
- if (mt) e = "<remove></remove>" + e;
474
+ if (xt) e = "<remove></remove>" + e;
467
475
  else {
468
476
  let t = se(e, /^[\r\n\t ]+/);
469
477
  r = t && t[0];
470
478
  }
471
- Ft === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
472
- let i = k ? P(e) : e;
473
- if (q === K) try {
474
- t = new u().parseFromString(i, Ft);
479
+ q === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
480
+ let i = M ? P(e) : e;
481
+ if (K === G) try {
482
+ t = new u().parseFromString(i, q);
475
483
  } catch {}
476
484
  if (!t || !t.documentElement) {
477
- t = Ge.createDocument(q, "template", null);
485
+ t = Ze.createDocument(K, "template", null);
478
486
  try {
479
- t.documentElement.innerHTML = kt ? N : i;
487
+ t.documentElement.innerHTML = It ? N : i;
480
488
  } catch {}
481
489
  }
482
490
  let a = t.body || t.documentElement;
483
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? Je.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
484
- }, qt = function(e) {
485
- return Ke.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
486
- }, Jt = function(e) {
491
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? et.call(t, V ? "html" : "body")[0] : V ? t.documentElement : a;
492
+ }, an = function(e) {
493
+ return Qe.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
494
+ }, on = function(e) {
495
+ return e = ce(e, nt, " "), e = ce(e, rt, " "), e = ce(e, it, " "), e;
496
+ }, sn = function(e) {
487
497
  e.normalize();
488
- let t = Ke.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
489
- for (; n;) {
490
- let e = n.data;
491
- h([
492
- Xe,
493
- Ze,
494
- Qe
495
- ], (t) => {
496
- e = v(e, t, " ");
497
- }), n.data = e, n = t.nextNode();
498
- }
499
- let r = e.querySelectorAll?.call(e, "template") ?? [];
500
- h(Array.from(r), (e) => {
501
- Q(e.content) && Jt(e.content);
498
+ let t = Qe.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
499
+ for (; n;) n.data = on(n.data), n = t.nextNode();
500
+ let r = e.querySelectorAll?.call(e, "template");
501
+ r && te(r, (e) => {
502
+ Q(e.content) && sn(e.content);
502
503
  });
503
- }, Yt = function(e) {
504
+ }, cn = function(e) {
504
505
  let t = D ? D(e) : null;
505
- return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== C(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);
506
+ return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== w(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== T(e) || e.childNodes !== v(e);
506
507
  }, Q = function(e) {
507
- if (!E || typeof e != "object" || !e) return !1;
508
+ if (!T || typeof e != "object" || !e) return !1;
508
509
  try {
509
- return E(e) === M.documentFragment;
510
+ return T(e) === A.documentFragment;
510
511
  } catch {
511
512
  return !1;
512
513
  }
513
- }, Xt = function(e) {
514
- if (!E || typeof e != "object" || !e) return !1;
514
+ }, ln = function(e) {
515
+ if (!T || typeof e != "object" || !e) return !1;
515
516
  try {
516
- return typeof E(e) == "number";
517
+ return typeof T(e) == "number";
517
518
  } catch {
518
519
  return !1;
519
520
  }
520
521
  };
521
522
  function $(e, n, r) {
522
- h(e, (e) => {
523
+ e.length !== 0 && te(e, (e) => {
523
524
  e.call(t, n, r, Y);
524
525
  });
525
526
  }
526
- let Zt = function(e) {
527
- let n = null;
528
- if ($(F.beforeSanitizeElements, e, null), Yt(e)) return X(e), !0;
529
- let r = J(D ? D(e) : e.nodeName);
530
- if ($(F.uponSanitizeElement, e, {
531
- tagName: r,
532
- allowedTags: I
533
- }), ft && e.hasChildNodes() && !Xt(e.firstElementChild) && w(/<[/\w!]/g, e.innerHTML) && w(/<[/\w!]/g, e.textContent) || ft && e.namespaceURI === K && r === "style" && Xt(e.firstElementChild) || e.nodeType === M.progressingInstruction || ft && e.nodeType === M.comment && w(/<[/\w]/g, e.data)) return X(e), !0;
534
- if (z[r] || !(B.tagCheck instanceof Function && B.tagCheck(r)) && !I[r]) {
535
- if (!z[r] && en(r) && (R.tagNameCheck instanceof RegExp && w(R.tagNameCheck, r) || R.tagNameCheck instanceof Function && R.tagNameCheck(r))) return !1;
536
- if (bt && !G[r]) {
537
- let t = b(e), n = y(e);
538
- if (n && t) {
539
- let r = n.length;
540
- for (let i = r - 1; i >= 0; --i) {
541
- let r = xt ? n[i] : ee(n[i], !0);
542
- t.insertBefore(r, ue(e));
543
- }
527
+ let un = function(e, t) {
528
+ return !!(yt && e.hasChildNodes() && !ln(e.firstElementChild) && S(Ie, e.textContent) && S(Ie, e.innerHTML) || yt && e.namespaceURI === G && t === "style" && ln(e.firstElementChild) || e.nodeType === A.processingInstruction || yt && e.nodeType === A.comment && S(Le, e.data));
529
+ }, dn = function(e, t) {
530
+ if (!pt[t] && hn(t) && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, t) || R.tagNameCheck instanceof Function && R.tagNameCheck(t))) return !1;
531
+ if (Dt && !W[t]) {
532
+ let t = y(e), n = v(e);
533
+ if (n && t) {
534
+ let r = n.length;
535
+ for (let i = r - 1; i >= 0; --i) {
536
+ let r = Ot ? n[i] : ee(n[i], !0);
537
+ t.insertBefore(r, fe(e));
544
538
  }
545
539
  }
546
- return X(e), !0;
547
540
  }
548
- return (E ? E(e) : e.nodeType) === M.element && !Ht(e) || (r === "noscript" || r === "noembed" || r === "noframes") && w(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (V && e.nodeType === M.text && (n = e.textContent, h([
549
- Xe,
550
- Ze,
551
- Qe
552
- ], (e) => {
553
- n = v(n, e, " ");
554
- }), e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n)), $(F.afterSanitizeElements, e, null), !1);
555
- }, Qt = function(e, t, r) {
556
- if (st[t] || _t && (t === "id" || t === "name") && (r in n || r in Lt)) return !1;
557
- let i = L[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
558
- if (!(lt && !st[t] && w($e, t)) && !(ct && w(et, t))) {
559
- if (!i || st[t]) {
560
- if (!(en(e) && (R.tagNameCheck instanceof RegExp && w(R.tagNameCheck, e) || R.tagNameCheck instanceof Function && R.tagNameCheck(e)) && (R.attributeNameCheck instanceof RegExp && w(R.attributeNameCheck, t) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(t, e)) || t === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && w(R.tagNameCheck, r) || R.tagNameCheck instanceof Function && R.tagNameCheck(r)))) return !1;
561
- } else if (!Tt[t] && !w(it, v(r, nt, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ce(r, "data:") === 0 && Ct[e]) && !(ut && !w(tt, v(r, nt, ""))) && r) return !1;
541
+ return X(e), !0;
542
+ }, fn = function(e) {
543
+ if ($(F.beforeSanitizeElements, e, null), cn(e)) return X(e), !0;
544
+ let n = J(D ? D(e) : e.nodeName);
545
+ if ($(F.uponSanitizeElement, e, {
546
+ tagName: n,
547
+ allowedTags: I
548
+ }), un(e, n)) return X(e), !0;
549
+ if (pt[n] || !(z.tagCheck instanceof Function && z.tagCheck(n)) && !I[n]) return dn(e, n);
550
+ if ((T ? T(e) : e.nodeType) === A.element && !$t(e) || (n === "noscript" || n === "noembed" || n === "noframes") && S(Re, e.innerHTML)) return X(e), !0;
551
+ if (B && e.nodeType === A.text) {
552
+ let n = on(e.textContent);
553
+ e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n);
554
+ }
555
+ return $(F.afterSanitizeElements, e, null), !1;
556
+ }, pn = function(e, t, r) {
557
+ if (mt[t] || wt && (t === "id" || t === "name") && (r in n || r in Gt)) return !1;
558
+ let i = L[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
559
+ if (!(gt && S(at, t)) && !(ht && S(ot, t))) {
560
+ if (!i) {
561
+ if (!(hn(e) && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, e) || R.tagNameCheck instanceof Function && R.tagNameCheck(e)) && (R.attributeNameCheck instanceof RegExp && S(R.attributeNameCheck, t) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(t, e)) || t === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, r) || R.tagNameCheck instanceof Function && R.tagNameCheck(r)))) return !1;
562
+ } else if (!Mt[t] && !S(ut, ce(r, ct, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && le(r, "data:") === 0 && At[e]) && !(_t && !S(st, ce(r, ct, ""))) && r) return !1;
562
563
  }
563
564
  return !0;
564
- }, $t = O({}, [
565
+ }, mn = E({}, [
565
566
  "annotation-xml",
566
567
  "color-profile",
567
568
  "font-face",
@@ -570,22 +571,34 @@ function Le() {
570
571
  "font-face-src",
571
572
  "font-face-uri",
572
573
  "missing-glyph"
573
- ]), en = function(e) {
574
- return !$t[ae(e)] && w(rt, e);
575
- }, tn = function(e) {
574
+ ]), hn = function(e) {
575
+ return !mn[ae(e)] && S(lt, e);
576
+ }, gn = function(e, t, n, r) {
577
+ if (M && typeof m == "object" && typeof m.getAttributeType == "function" && !n) switch (m.getAttributeType(e, t)) {
578
+ case "TrustedHTML": return P(r);
579
+ case "TrustedScriptURL": return Je(r);
580
+ }
581
+ return r;
582
+ }, _n = function(e, n, r, i) {
583
+ try {
584
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), cn(e) ? X(e) : re(t.removed);
585
+ } catch {
586
+ Z(n, e);
587
+ }
588
+ }, vn = function(e) {
576
589
  $(F.beforeSanitizeAttributes, e, null);
577
- let n = e.attributes;
578
- if (!n || Yt(e)) return;
579
- let r = {
590
+ let t = e.attributes;
591
+ if (!t || cn(e)) return;
592
+ let n = {
580
593
  attrName: "",
581
594
  attrValue: "",
582
595
  keepAttr: !0,
583
596
  allowedAttributes: L,
584
597
  forceKeepAttr: void 0
585
- }, i = n.length;
586
- for (; i--;) {
587
- let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : le(u);
588
- if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, $(F.uponSanitizeAttribute, e, r), d = r.attrValue, vt && (l === "id" || l === "name") && ce(d, yt) !== 0 && (Z(o, e), d = yt + d), ft && w(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
598
+ }, r = t.length, i = J(e.nodeName);
599
+ for (; r--;) {
600
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : ue(u);
601
+ if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(F.uponSanitizeAttribute, e, n), d = n.attrValue, Tt && (l === "id" || l === "name") && le(d, Et) !== 0 && (Z(o, e), d = Et + d), yt && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
589
602
  Z(o, e);
590
603
  continue;
591
604
  }
@@ -593,50 +606,31 @@ function Le() {
593
606
  Z(o, e);
594
607
  continue;
595
608
  }
596
- if (r.forceKeepAttr) continue;
597
- if (!r.keepAttr) {
598
- Z(o, e);
599
- continue;
600
- }
601
- if (!dt && w(/\/>/i, d)) {
602
- Z(o, e);
603
- continue;
604
- }
605
- V && h([
606
- Xe,
607
- Ze,
608
- Qe
609
- ], (e) => {
610
- d = v(d, e, " ");
611
- });
612
- let p = J(e.nodeName);
613
- if (!Qt(p, l, d)) {
614
- Z(o, e);
615
- continue;
616
- }
617
- if (k && typeof f == "object" && typeof f.getAttributeType == "function" && !s) switch (f.getAttributeType(p, l)) {
618
- case "TrustedHTML":
619
- d = P(d);
620
- break;
621
- case "TrustedScriptURL":
622
- d = He(d);
623
- break;
624
- }
625
- if (d !== u) try {
626
- s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), Yt(e) ? X(e) : re(t.removed);
627
- } catch {
628
- Z(o, e);
609
+ if (!n.forceKeepAttr) {
610
+ if (!n.keepAttr) {
611
+ Z(o, e);
612
+ continue;
613
+ }
614
+ if (!vt && S(ze, d)) {
615
+ Z(o, e);
616
+ continue;
617
+ }
618
+ if (B && (d = on(d)), !pn(i, l, d)) {
619
+ Z(o, e);
620
+ continue;
621
+ }
622
+ d = gn(i, l, s, d), d !== u && _n(e, o, s, d);
629
623
  }
630
624
  }
631
625
  $(F.afterSanitizeAttributes, e, null);
632
- }, nn = function(e) {
633
- let t = null, n = qt(e);
634
- for ($(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(F.uponSanitizeShadowNode, t, null), Zt(t), tn(t), Q(t.content) && nn(t.content), (E ? E(t) : t.nodeType) === M.element) {
635
- let e = x ? x(t) : t.shadowRoot;
636
- Q(e) && (rn(e), nn(e));
626
+ }, yn = function(e) {
627
+ let t = null, n = an(e);
628
+ for ($(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(F.uponSanitizeShadowNode, t, null), fn(t), vn(t), Q(t.content) && yn(t.content), (T ? T(t) : t.nodeType) === A.element) {
629
+ let e = x(t);
630
+ Q(e) && (bn(e), yn(e));
637
631
  }
638
632
  $(F.afterSanitizeShadowDOM, e, null);
639
- }, rn = function(e) {
633
+ }, bn = function(e) {
640
634
  let t = [{
641
635
  node: e,
642
636
  shadow: null
@@ -644,10 +638,10 @@ function Le() {
644
638
  for (; t.length > 0;) {
645
639
  let e = t.pop();
646
640
  if (e.shadow) {
647
- nn(e.shadow);
641
+ yn(e.shadow);
648
642
  continue;
649
643
  }
650
- let n = e.node, r = (E ? E(n) : n.nodeType) === M.element, i = y ? y(n) : n.childNodes;
644
+ let n = e.node, r = (T ? T(n) : n.nodeType) === A.element, i = v(n);
651
645
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
652
646
  node: i[e],
653
647
  shadow: null
@@ -663,7 +657,7 @@ function Le() {
663
657
  }
664
658
  }
665
659
  if (r) {
666
- let e = x ? x(n) : n.shadowRoot;
660
+ let e = x(n);
667
661
  Q(e) && t.push({
668
662
  node: null,
669
663
  shadow: e
@@ -676,56 +670,50 @@ function Le() {
676
670
  };
677
671
  return t.sanitize = function(e) {
678
672
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
679
- if (kt = !e, kt && (e = "<!-->"), typeof e != "string" && !Xt(e) && (e = de(e), typeof e != "string")) throw T("dirty is not a string, aborting");
673
+ if (It = !e, It && (e = "<!-->"), typeof e != "string" && !ln(e) && (e = pe(e), typeof e != "string")) throw C("dirty is not a string, aborting");
680
674
  if (!t.isSupported) return e;
681
- pt || zt(n), t.removed = [];
682
- let c = xt && typeof e != "string" && Xt(e);
675
+ bt || qt(n), t.removed = [];
676
+ let c = Ot && typeof e != "string" && ln(e);
683
677
  if (c) {
684
678
  let t = D ? D(e) : e.nodeName;
685
679
  if (typeof t == "string") {
686
680
  let e = J(t);
687
- if (!I[e] || z[e]) throw T("root node is forbidden and cannot be sanitized in-place");
681
+ if (!I[e] || pt[e]) throw C("root node is forbidden and cannot be sanitized in-place");
688
682
  }
689
- if (Yt(e)) throw T("root node is clobbered and cannot be sanitized in-place");
683
+ if (cn(e)) throw C("root node is clobbered and cannot be sanitized in-place");
690
684
  try {
691
- rn(e);
685
+ bn(e);
692
686
  } catch (t) {
693
- throw Ut(e), t;
687
+ throw en(e), t;
694
688
  }
695
- } else if (Xt(e)) i = Kt("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === M.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), rn(a);
689
+ } else if (ln(e)) i = rn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === A.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), bn(a);
696
690
  else {
697
- if (!U && !V && !H && e.indexOf("<") === -1) return k && gt ? P(e) : e;
698
- if (i = Kt(e), !i) return U ? null : gt ? N : "";
691
+ if (!H && !B && !V && e.indexOf("<") === -1) return M && Ct ? P(e) : e;
692
+ if (i = rn(e), !i) return H ? null : Ct ? N : "";
699
693
  }
700
- i && mt && X(i.firstChild);
701
- let l = qt(c ? e : i);
694
+ i && xt && X(i.firstChild);
695
+ let l = an(c ? e : i);
702
696
  try {
703
- for (; o = l.nextNode();) Zt(o), tn(o), Q(o.content) && nn(o.content);
697
+ for (; o = l.nextNode();) fn(o), vn(o), Q(o.content) && yn(o.content);
704
698
  } catch (t) {
705
- throw c && Ut(e), t;
699
+ throw c && en(e), t;
706
700
  }
707
- if (c) return h(t.removed, (e) => {
708
- e.element && Gt(e.element);
709
- }), V && Jt(e), e;
710
- if (U) {
711
- if (V && Jt(i), ht) for (s = qe.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
701
+ if (c) return te(t.removed, (e) => {
702
+ e.element && nn(e.element);
703
+ }), B && sn(e), e;
704
+ if (H) {
705
+ if (B && sn(i), St) for (s = $e.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
712
706
  else s = i;
713
- return (L.shadowroot || L.shadowrootmode) && (s = Ye.call(r, s, !0)), s;
707
+ return (L.shadowroot || L.shadowrootmode) && (s = tt.call(r, s, !0)), s;
714
708
  }
715
- let u = H ? i.outerHTML : i.innerHTML;
716
- return H && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && w(Me, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), V && h([
717
- Xe,
718
- Ze,
719
- Qe
720
- ], (e) => {
721
- u = v(u, e, " ");
722
- }), k && gt ? P(u) : u;
709
+ let u = V ? i.outerHTML : i.innerHTML;
710
+ return V && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Pe, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = on(u)), M && Ct ? P(u) : u;
723
711
  }, t.setConfig = function() {
724
- zt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), pt = !0;
712
+ qt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), bt = !0;
725
713
  }, t.clearConfig = function() {
726
- Y = null, pt = !1, k = Re, N = "";
714
+ Y = null, bt = !1, M = We, N = "";
727
715
  }, t.isValidAttribute = function(e, t, n) {
728
- return Y || zt({}), Qt(J(e), J(t), n);
716
+ return Y || qt({}), pn(J(e), J(t), n);
729
717
  }, t.addHook = function(e, t) {
730
718
  typeof t == "function" && g(F[e], t);
731
719
  }, t.removeHook = function(e, t) {
@@ -737,11 +725,11 @@ function Le() {
737
725
  }, t.removeHooks = function(e) {
738
726
  F[e] = [];
739
727
  }, t.removeAllHooks = function() {
740
- F = Ie();
728
+ F = He();
741
729
  }, t;
742
730
  }
743
- var N = Le();
731
+ var M = Ue();
744
732
  //#endregion
745
- export { N as purify };
733
+ export { M as purify };
746
734
 
747
735
  //# sourceMappingURL=purify.es.js.map