@deot/docs-client 1.1.3 → 1.1.5

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 (55) hide show
  1. package/README.md +88 -4
  2. package/dist/chunks/browser-Cmwcvs-d.js +505 -0
  3. package/dist/chunks/cdn-DQoETju_-DS-873Vi.js +38 -0
  4. package/dist/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +14 -0
  5. package/dist/chunks/compile-BHD98Ttf-BJaenUUQ.js +79915 -0
  6. package/dist/chunks/compiler-sfc.esm-browser-B4_kBkG5.js +24975 -0
  7. package/dist/chunks/dayjs.min-B3g34Qcz.js +300 -0
  8. package/dist/chunks/dist-0ySyXNpo.js +415 -0
  9. package/dist/chunks/dist-9UPCn_ag.js +24601 -0
  10. package/dist/chunks/dist-B44jICwZ.js +22 -0
  11. package/dist/chunks/dist-BQyOK8Qy.js +17 -0
  12. package/dist/chunks/dist-BUw25nXJ.js +65 -0
  13. package/dist/chunks/dist-BeOE8qTX.js +345 -0
  14. package/dist/chunks/dist-C3V7reR4.js +197 -0
  15. package/dist/chunks/dist-C8z9l0mA.js +58 -0
  16. package/dist/chunks/dist-CI9Lp9Cj.js +247 -0
  17. package/dist/chunks/dist-COjpr4FU.js +426 -0
  18. package/dist/chunks/dist-CQir6D4y.js +244 -0
  19. package/dist/chunks/dist-Cxf7_ocf.js +44 -0
  20. package/dist/chunks/dist-DF4kisl2.js +43 -0
  21. package/dist/chunks/dist-DLj8yJdm.js +38 -0
  22. package/dist/chunks/dist-DWn6r6un.js +76 -0
  23. package/dist/chunks/dist-DWqBe2Ah.js +132 -0
  24. package/dist/chunks/dist-D_Uqh6m9.js +80 -0
  25. package/dist/chunks/dist-DcIU51zW.js +166 -0
  26. package/dist/chunks/dist-kiZUqqzR.js +27 -0
  27. package/dist/chunks/dist-oZ12SGqg.js +6 -0
  28. package/dist/chunks/dist-uXnwGrO3.js +76 -0
  29. package/dist/chunks/dist-va7FmnW4.js +156 -0
  30. package/dist/chunks/{echarts-I1Rk_oCV.js → echarts-Dk-pu7GM.js} +450 -398
  31. package/dist/chunks/files-BqucFldk-B-hTQ-ip.js +148 -0
  32. package/dist/chunks/html2canvas-Deo0mM5K.js +4022 -0
  33. package/dist/chunks/index.es-UlJ0gfdF.js +5757 -0
  34. package/dist/chunks/jspdf.es.min-CJc40v7q.js +17873 -0
  35. package/dist/chunks/jsx-CwMPlI4_-CAiik-V7.js +128454 -0
  36. package/dist/chunks/jszip.min-BbVwZKYP.js +3044 -0
  37. package/dist/chunks/linker-xqjVl0X0-CWWI367H.js +118 -0
  38. package/dist/chunks/local-sandbox-DvcgaBOa-CzJxrdVx.js +298 -0
  39. package/dist/chunks/lodash-Cxf6dD_I.js +5161 -0
  40. package/dist/chunks/modules-BGzPcoRR-C9BWX8hC.js +154 -0
  41. package/dist/chunks/{photoswipe.esm-CT37djgx.js → photoswipe.esm-B0V-xGTB.js} +36 -31
  42. package/dist/chunks/pinia-pDJilYOg.js +326 -0
  43. package/dist/chunks/purify.es-BiqY1C6m.js +867 -0
  44. package/dist/chunks/remote-mq4zvrI1-Bib9tTkb.js +104 -0
  45. package/dist/chunks/script-DjUf9uWK-Cu5Kla_E.js +15055 -0
  46. package/dist/chunks/store-BOyC8F2y-CbodPye0.js +17037 -0
  47. package/dist/chunks/vue-router-C0mj8Ot5.js +1196 -0
  48. package/dist/chunks/vue.runtime.esm-bundler-XxHGOLq2.js +4879 -0
  49. package/dist/index.cjs +997 -340
  50. package/dist/index.d.ts +2 -1
  51. package/dist/index.js +42205 -103464
  52. package/dist/index.style.css +3 -4
  53. package/package.json +9 -9
  54. package/dist/chunks/_commonjsHelpers-BFTU3MAI-D_7z5o6A.js +0 -8
  55. package/dist/chunks/jsx-H2PmTOgp-C0GVSSMR.js +0 -128281
@@ -0,0 +1,867 @@
1
+ globalThis.process;
2
+ //#region node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.mjs
3
+ function e(e, t) {
4
+ this.v = e, this.k = t;
5
+ }
6
+ function t(e, t) {
7
+ (t == null || t > e.length) && (t = e.length);
8
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
9
+ return r;
10
+ }
11
+ function n(e) {
12
+ if (Array.isArray(e)) return e;
13
+ }
14
+ function r(e, t) {
15
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
16
+ if (n != null) {
17
+ var r, i, a, o, s = [], c = !0, l = !1;
18
+ try {
19
+ if (a = (n = n.call(e)).next, t === 0) {
20
+ if (Object(n) !== n) return;
21
+ c = !1;
22
+ } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
23
+ } catch (e) {
24
+ l = !0, i = e;
25
+ } finally {
26
+ try {
27
+ if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
28
+ } finally {
29
+ if (l) throw i;
30
+ }
31
+ }
32
+ return s;
33
+ }
34
+ }
35
+ function i() {
36
+ throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
37
+ }
38
+ function a(e, t) {
39
+ return n(e) || r(e, t) || o(e, t) || i();
40
+ }
41
+ function o(e, n) {
42
+ if (e) {
43
+ if (typeof e == "string") return t(e, n);
44
+ var r = {}.toString.call(e).slice(8, -1);
45
+ 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;
46
+ }
47
+ }
48
+ function s(t) {
49
+ var n, r;
50
+ function i(n, r) {
51
+ try {
52
+ var o = t[n](r), s = o.value, c = s instanceof e;
53
+ Promise.resolve(c ? s.v : s).then(function(e) {
54
+ if (c) {
55
+ var r = n === "return" && s.k ? n : "next";
56
+ if (!s.k || e.done) return i(r, e);
57
+ e = t[r](e).value;
58
+ }
59
+ a(!!o.done, e);
60
+ }, function(e) {
61
+ i("throw", e);
62
+ });
63
+ } catch (e) {
64
+ a(2, e);
65
+ }
66
+ }
67
+ function a(e, t) {
68
+ e === 2 ? n.reject(t) : n.resolve({
69
+ value: t,
70
+ done: e
71
+ }), (n = n.next) ? i(n.key, n.arg) : r = null;
72
+ }
73
+ this._invoke = function(e, t) {
74
+ return new Promise(function(a, o) {
75
+ var s = {
76
+ key: e,
77
+ arg: t,
78
+ resolve: a,
79
+ reject: o,
80
+ next: null
81
+ };
82
+ r ? r = r.next = s : (n = r = s, i(e, t));
83
+ });
84
+ }, typeof t.return != "function" && (this.return = void 0);
85
+ }
86
+ s.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
87
+ return this;
88
+ }, s.prototype.next = function(e) {
89
+ return this._invoke("next", e);
90
+ }, s.prototype.throw = function(e) {
91
+ return this._invoke("throw", e);
92
+ }, s.prototype.return = function(e) {
93
+ return this._invoke("return", e);
94
+ };
95
+ 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;
96
+ p ||= function(e) {
97
+ return e;
98
+ }, m ||= function(e) {
99
+ return e;
100
+ }, te ||= function(e, t) {
101
+ var n = [...arguments].slice(2);
102
+ return e.apply(t, n);
103
+ }, ne ||= function(e) {
104
+ return new e(...[...arguments].slice(1));
105
+ };
106
+ var g = w(Array.prototype.forEach);
107
+ Array.prototype.indexOf;
108
+ var re = w(Array.prototype.lastIndexOf), ie = w(Array.prototype.pop), ae = w(Array.prototype.push);
109
+ Array.prototype.slice;
110
+ 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);
111
+ function w(e) {
112
+ return function(t) {
113
+ t instanceof RegExp && (t.lastIndex = 0);
114
+ var n = [...arguments].slice(1);
115
+ return te(e, t, n);
116
+ };
117
+ }
118
+ function T(e) {
119
+ return function() {
120
+ return ne(e, [...arguments]);
121
+ };
122
+ }
123
+ function E(e, t) {
124
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : se;
125
+ if (l && l(e, null), !_(t)) return e;
126
+ let r = t.length;
127
+ for (; r--;) {
128
+ let i = t[r];
129
+ if (typeof i == "string") {
130
+ let e = n(i);
131
+ e !== i && (u(t) || (t[r] = e), i = e);
132
+ }
133
+ e[i] = !0;
134
+ }
135
+ return e;
136
+ }
137
+ function he(e) {
138
+ for (let t = 0; t < e.length; t++) b(e, t) || (e[t] = null);
139
+ return e;
140
+ }
141
+ function D(e) {
142
+ let t = h(null);
143
+ for (let r of c(e)) {
144
+ var n = a(r, 2);
145
+ let i = n[0], o = n[1];
146
+ b(e, i) && (t[i] = _(o) ? he(o) : o && typeof o == "object" && o.constructor === Object ? D(o) : o);
147
+ }
148
+ return t;
149
+ }
150
+ function ge(e) {
151
+ switch (typeof e) {
152
+ case "string": return e;
153
+ case "number": return pe(e);
154
+ case "boolean": return v(e);
155
+ case "bigint": return y ? y(e) : "0";
156
+ case "symbol": return me ? me(e) : "Symbol()";
157
+ case "undefined": return x(e);
158
+ case "function":
159
+ case "object": {
160
+ if (e === null) return x(e);
161
+ let t = e, n = O(t, "toString");
162
+ if (typeof n == "function") {
163
+ let e = n(t);
164
+ return typeof e == "string" ? e : x(e);
165
+ }
166
+ return x(e);
167
+ }
168
+ default: return x(e);
169
+ }
170
+ }
171
+ function O(e, t) {
172
+ for (; e !== null;) {
173
+ let n = f(e, t);
174
+ if (n) {
175
+ if (n.get) return w(n.get);
176
+ if (typeof n.value == "function") return w(n.value);
177
+ }
178
+ e = d(e);
179
+ }
180
+ function n() {
181
+ return null;
182
+ }
183
+ return n;
184
+ }
185
+ function _e(e) {
186
+ try {
187
+ return S(e, ""), !0;
188
+ } catch {
189
+ return !1;
190
+ }
191
+ }
192
+ 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([
193
+ "feBlend",
194
+ "feColorMatrix",
195
+ "feComponentTransfer",
196
+ "feComposite",
197
+ "feConvolveMatrix",
198
+ "feDiffuseLighting",
199
+ "feDisplacementMap",
200
+ "feDistantLight",
201
+ "feDropShadow",
202
+ "feFlood",
203
+ "feFuncA",
204
+ "feFuncB",
205
+ "feFuncG",
206
+ "feFuncR",
207
+ "feGaussianBlur",
208
+ "feImage",
209
+ "feMerge",
210
+ "feMergeNode",
211
+ "feMorphology",
212
+ "feOffset",
213
+ "fePointLight",
214
+ "feSpecularLighting",
215
+ "feSpotLight",
216
+ "feTile",
217
+ "feTurbulence"
218
+ ]), xe = p([
219
+ "animate",
220
+ "color-profile",
221
+ "cursor",
222
+ "discard",
223
+ "font-face",
224
+ "font-face-format",
225
+ "font-face-name",
226
+ "font-face-src",
227
+ "font-face-uri",
228
+ "foreignobject",
229
+ "hatch",
230
+ "hatchpath",
231
+ "mesh",
232
+ "meshgradient",
233
+ "meshpatch",
234
+ "meshrow",
235
+ "missing-glyph",
236
+ "script",
237
+ "set",
238
+ "solidcolor",
239
+ "unknown",
240
+ "use"
241
+ ]), 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([
242
+ "maction",
243
+ "maligngroup",
244
+ "malignmark",
245
+ "mlongdiv",
246
+ "mscarries",
247
+ "mscarry",
248
+ "msgroup",
249
+ "mstack",
250
+ "msline",
251
+ "msrow",
252
+ "semantics",
253
+ "annotation",
254
+ "annotation-xml",
255
+ "mprescripts",
256
+ "none"
257
+ ]), 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([
258
+ "xlink:href",
259
+ "xml:id",
260
+ "xlink:title",
261
+ "xml:space",
262
+ "xmlns:xlink"
263
+ ]), 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 = {
264
+ element: 1,
265
+ attribute: 2,
266
+ text: 3,
267
+ cdataSection: 4,
268
+ entityReference: 5,
269
+ entityNode: 6,
270
+ processingInstruction: 7,
271
+ comment: 8,
272
+ document: 9,
273
+ documentType: 10,
274
+ documentFragment: 11,
275
+ notation: 12
276
+ }, A = [
277
+ "style",
278
+ "script",
279
+ "xmp",
280
+ "iframe",
281
+ "noembed",
282
+ "noframes",
283
+ "plaintext",
284
+ "noscript"
285
+ ], Ue = p(E({}, A)), We = function() {
286
+ let e = {};
287
+ return g(A, (t) => {
288
+ e[t] = m(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
289
+ }), p(e);
290
+ }(), Ge = function() {
291
+ return typeof window > "u" ? null : window;
292
+ }, Ke = function(e, t) {
293
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
294
+ let n = null, r = "data-tt-policy-suffix";
295
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
296
+ let i = "dompurify" + (n ? "#" + n : "");
297
+ try {
298
+ return e.createPolicy(i, {
299
+ createHTML(e) {
300
+ return e;
301
+ },
302
+ createScriptURL(e) {
303
+ return e;
304
+ }
305
+ });
306
+ } catch {
307
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
308
+ }
309
+ }, qe = function() {
310
+ return {
311
+ afterSanitizeAttributes: [],
312
+ afterSanitizeElements: [],
313
+ afterSanitizeShadowDOM: [],
314
+ beforeSanitizeAttributes: [],
315
+ beforeSanitizeElements: [],
316
+ beforeSanitizeShadowDOM: [],
317
+ uponSanitizeAttribute: [],
318
+ uponSanitizeElement: [],
319
+ uponSanitizeShadowNode: []
320
+ };
321
+ }, j = function(e, t, n, r) {
322
+ return b(e, t) && _(e[t]) ? E(r.base ? D(r.base) : {}, e[t], r.transform) : n;
323
+ }, Je = function(e, t, n) {
324
+ let r = b(e, t) ? e[t] : void 0;
325
+ return r && typeof r == "object" ? D(r) : n();
326
+ };
327
+ function Ye() {
328
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ge(), t = (e) => Ye(e);
329
+ if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== k.document || !e.Element) return t.isSupported = !1, t;
330
+ let n = e.document, r = n, i = r.currentScript;
331
+ e.DocumentFragment;
332
+ let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, l = e.NodeFilter;
333
+ e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
334
+ 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) {
335
+ return w ? w(e) : e.nodeType;
336
+ }, Xe = function(e) {
337
+ return T ? T(e) : e.nodeName;
338
+ };
339
+ if (typeof a == "function") {
340
+ let e = n.createElement("template");
341
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
342
+ }
343
+ let M, N = "", Ze, Qe = !1, $e = 0, et = function() {
344
+ 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.");
345
+ }, P = function(e) {
346
+ et(), $e++;
347
+ try {
348
+ return M.createHTML(e);
349
+ } finally {
350
+ $e--;
351
+ }
352
+ }, tt = function(e) {
353
+ et(), $e++;
354
+ try {
355
+ return M.createScriptURL(e);
356
+ } finally {
357
+ $e--;
358
+ }
359
+ }, nt = function() {
360
+ return Qe ||= (Ze = Ke(d, i), !0), Ze;
361
+ }, rt = n, it = rt.implementation, at = rt.createNodeIterator, ot = rt.createDocumentFragment, st = rt.getElementsByTagName, ct = r.importNode, F = qe();
362
+ t.isSupported = typeof c == "function" && typeof y == "function" && it && it.createHTMLDocument !== void 0;
363
+ let lt = ke, ut = Ae, dt = je, ft = Me, pt = Ne, mt = Fe, ht = Ie, gt = Re, _t = Pe, I = null, vt = E({}, [
364
+ ...ve,
365
+ ...ye,
366
+ ...be,
367
+ ...Se,
368
+ ...we
369
+ ]), L = null, yt = E({}, [
370
+ ...Te,
371
+ ...Ee,
372
+ ...De,
373
+ ...Oe
374
+ ]), R = Object.seal(h(null, {
375
+ tagNameCheck: {
376
+ writable: !0,
377
+ configurable: !1,
378
+ enumerable: !0,
379
+ value: null
380
+ },
381
+ attributeNameCheck: {
382
+ writable: !0,
383
+ configurable: !1,
384
+ enumerable: !0,
385
+ value: null
386
+ },
387
+ allowCustomizedBuiltInElements: {
388
+ writable: !0,
389
+ configurable: !1,
390
+ enumerable: !0,
391
+ value: !1
392
+ }
393
+ })), bt = null, xt = null, z = Object.seal(h(null, {
394
+ tagCheck: {
395
+ writable: !0,
396
+ configurable: !1,
397
+ enumerable: !0,
398
+ value: null
399
+ },
400
+ attributeCheck: {
401
+ writable: !0,
402
+ configurable: !1,
403
+ enumerable: !0,
404
+ value: null
405
+ }
406
+ })), 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({}, [
407
+ "audio",
408
+ "video",
409
+ "img",
410
+ "source",
411
+ "image",
412
+ "track"
413
+ ]), Bt = null, Vt = E({}, [
414
+ "alt",
415
+ "class",
416
+ "for",
417
+ "id",
418
+ "label",
419
+ "name",
420
+ "pattern",
421
+ "placeholder",
422
+ "role",
423
+ "summary",
424
+ "title",
425
+ "value",
426
+ "style",
427
+ "xmlns"
428
+ ]), 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({}, [
429
+ Ht,
430
+ Ut,
431
+ K
432
+ ], ce), qt = p([
433
+ "mi",
434
+ "mo",
435
+ "mn",
436
+ "ms",
437
+ "mtext"
438
+ ]), Jt = E({}, qt), Yt = p(["annotation-xml"]), Xt = E({}, Yt), Zt = E({}, [
439
+ "title",
440
+ "style",
441
+ "font",
442
+ "a",
443
+ "script"
444
+ ]), Qt = null, $t = ["application/xhtml+xml", "text/html"], J = null, Y = null, en = n.createElement("form"), tn = function(e) {
445
+ return e instanceof RegExp || e instanceof Function;
446
+ }, nn = function() {
447
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
448
+ if (Y && Y === e) return;
449
+ (!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, {
450
+ transform: J,
451
+ base: Vt
452
+ }), Rt = j(e, "ADD_DATA_URI_TAGS", zt, {
453
+ transform: J,
454
+ base: zt
455
+ }), 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));
456
+ let t = Je(e, "CUSTOM_ELEMENT_HANDLING", () => h(null));
457
+ 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, [
458
+ "html",
459
+ "head",
460
+ "body"
461
+ ]), I.table && (E(I, ["tbody"]), delete bt.tbody), e.TRUSTED_TYPES_POLICY) {
462
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
463
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
464
+ let t = M;
465
+ M = e.TRUSTED_TYPES_POLICY;
466
+ try {
467
+ N = P("");
468
+ } catch (e) {
469
+ throw M = t, e;
470
+ }
471
+ } else e.TRUSTED_TYPES_POLICY === null ? (M = void 0, N = "") : (M === void 0 && (M = nt()), M && typeof N == "string" && (N = P("")));
472
+ p && p(e), Y = e;
473
+ }, rn = E({}, [
474
+ ...ye,
475
+ ...be,
476
+ ...xe
477
+ ]), an = E({}, [...Se, ...Ce]), on = function(e, t, n) {
478
+ return t.namespaceURI === K ? e === "svg" : t.namespaceURI === Ht ? e === "svg" && (n === "annotation-xml" || Jt[n]) : !!rn[e];
479
+ }, sn = function(e, t, n) {
480
+ return t.namespaceURI === K ? e === "math" : t.namespaceURI === Ut ? e === "math" && Xt[n] : !!an[e];
481
+ }, cn = function(e, t, n) {
482
+ return t.namespaceURI === Ut && !Xt[n] || t.namespaceURI === Ht && !Jt[n] ? !1 : !an[e] && (Zt[e] || !rn[e]);
483
+ }, ln = function(e) {
484
+ let t = y(e);
485
+ (!t || !t.tagName) && (t = {
486
+ namespaceURI: q,
487
+ tagName: "template"
488
+ });
489
+ let n = se(e.tagName), r = se(t.tagName);
490
+ 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;
491
+ }, X = function(e) {
492
+ ae(t.removed, { element: e });
493
+ try {
494
+ y(e).removeChild(e);
495
+ } catch {
496
+ 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");
497
+ }
498
+ }, un = function(e, t, n) {
499
+ try {
500
+ ne(e, t);
501
+ } catch {
502
+ try {
503
+ e.removeAttribute(n);
504
+ } catch {}
505
+ }
506
+ }, dn = function(e) {
507
+ pn(e);
508
+ let t = v(e);
509
+ if (t) {
510
+ let e = [];
511
+ g(t, (t) => {
512
+ ae(e, t);
513
+ }), g(e, (e) => {
514
+ try {
515
+ te(e);
516
+ } catch {}
517
+ });
518
+ }
519
+ let n = x(e);
520
+ if (n) for (let t = n.length - 1; t >= 0; --t) {
521
+ let r = n[t], i = r && r.name;
522
+ typeof i == "string" && un(e, r, i);
523
+ }
524
+ }, Z = function(e, n, r) {
525
+ if (!r) try {
526
+ r = n.getAttributeNode(e);
527
+ } catch {
528
+ r = null;
529
+ }
530
+ ae(t.removed, {
531
+ attribute: r || null,
532
+ from: n
533
+ });
534
+ try {
535
+ r ? ne(n, r) : n.removeAttribute(e);
536
+ } catch {
537
+ try {
538
+ n.removeAttribute(e);
539
+ } catch {}
540
+ }
541
+ if (e === "is") {
542
+ if (U || At) try {
543
+ X(n);
544
+ } catch {}
545
+ else try {
546
+ n.setAttribute(e, "");
547
+ } catch {}
548
+ }
549
+ }, fn = function(e) {
550
+ let t = x(e);
551
+ if (t) for (let n = t.length - 1; n >= 0; --n) {
552
+ let r = t[n], i = r && r.name;
553
+ typeof i != "string" || L[J(i)] || un(e, r, i);
554
+ }
555
+ }, pn = function(e) {
556
+ let t = [e];
557
+ for (; t.length > 0;) {
558
+ let e = t.pop();
559
+ A(e) === k.element && fn(e);
560
+ let n = v(e);
561
+ if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
562
+ }
563
+ }, mn = function(e, t) {
564
+ return V ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
565
+ }, hn = function(e) {
566
+ if (!V) return;
567
+ let t = [e];
568
+ for (; t.length > 0;) {
569
+ let e = t.pop(), n = A(e);
570
+ if (n === k.processingInstruction || n === k.comment && S(Be, e.data)) {
571
+ try {
572
+ te(e);
573
+ } catch {}
574
+ continue;
575
+ }
576
+ if (n === k.element) {
577
+ let t = e, n = J(Xe(e));
578
+ try {
579
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && mn("for", n) && t.removeAttribute("for");
580
+ } catch {}
581
+ }
582
+ let r = v(e);
583
+ if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
584
+ }
585
+ }, gn = function(e) {
586
+ let t = null, r = null;
587
+ if (kt) e = "<remove></remove>" + e;
588
+ else {
589
+ let t = le(e, /^[\r\n\t ]+/);
590
+ r = t && t[0];
591
+ }
592
+ Qt === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
593
+ let i = M ? P(e) : e;
594
+ if (q === K) try {
595
+ t = new u().parseFromString(i, Qt);
596
+ } catch {}
597
+ if (!t || !t.documentElement) {
598
+ t = it.createDocument(q, "template", null);
599
+ try {
600
+ t.documentElement.innerHTML = Wt ? N : i;
601
+ } catch {}
602
+ }
603
+ let a = t.body || t.documentElement;
604
+ 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;
605
+ }, _n = function(e) {
606
+ let t = he ? he(e) : e.ownerDocument;
607
+ return at.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
608
+ }, vn = function(e) {
609
+ return e = ue(e, lt, " "), e = ue(e, ut, " "), e = ue(e, dt, " "), e;
610
+ }, yn = function(e) {
611
+ e.normalize();
612
+ 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();
613
+ for (; r;) r.data = vn(r.data), r = n.nextNode();
614
+ let i = e.querySelectorAll?.call(e, "template");
615
+ i && g(i, (e) => {
616
+ xn(e.content) && yn(e.content);
617
+ });
618
+ }, bn = function(e) {
619
+ let t = T ? T(e) : null;
620
+ 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);
621
+ }, xn = function(e) {
622
+ if (!w || typeof e != "object" || !e) return !1;
623
+ try {
624
+ return w(e) === k.documentFragment;
625
+ } catch {
626
+ return !1;
627
+ }
628
+ }, Sn = function(e) {
629
+ if (!w || typeof e != "object" || !e) return !1;
630
+ try {
631
+ return typeof w(e) == "number";
632
+ } catch {
633
+ return !1;
634
+ }
635
+ };
636
+ function Q(e, n, r) {
637
+ e.length !== 0 && g(e, (e) => {
638
+ e.call(t, n, r, Y);
639
+ });
640
+ }
641
+ let Cn = function(e, t) {
642
+ 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));
643
+ }, wn = function(e, t) {
644
+ return e instanceof RegExp ? S(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
645
+ }, Tn = function(e, t, n) {
646
+ if (!bt[t] && An(t) && wn(R.tagNameCheck, t)) return !1;
647
+ if (Ft && !G[t]) {
648
+ let t = y(e), r = v(e);
649
+ if (r && t) {
650
+ let i = r.length;
651
+ for (let a = i - 1; a >= 0; --a) {
652
+ let i = e === n ? ee(r[a], !0) : r[a];
653
+ t.insertBefore(i, pe(e));
654
+ }
655
+ }
656
+ }
657
+ return X(e), !0;
658
+ }, En = function(e, t, n, r) {
659
+ return e.length === 0 ? t : t === n || t === r ? D(t) : t;
660
+ }, $ = function(e, t) {
661
+ return e === t || y(e) !== null ? !1 : (It && pn(e), !0);
662
+ }, Dn = function(e, n) {
663
+ if (Q(F.beforeSanitizeElements, e, null), $(e, n)) return !0;
664
+ if (bn(e)) return X(e), !0;
665
+ let r = J(Xe(e));
666
+ if (I = En(F.uponSanitizeElement, I, vt, Dt), Q(F.uponSanitizeElement, e, {
667
+ tagName: r,
668
+ allowedTags: I
669
+ }), $(e, n)) return !0;
670
+ if (Cn(e, r)) return X(e), !0;
671
+ if (bt[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !I[r]) {
672
+ let t = Tn(e, r, n);
673
+ return t === !1 && (Q(F.afterSanitizeElements, e, null), $(e, n)) ? !0 : t;
674
+ }
675
+ if (A(e) === k.element && !ln(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(Ve, e.innerHTML)) return X(e), !0;
676
+ if (B && e.nodeType === k.text) {
677
+ let n = vn(e.textContent);
678
+ e.textContent !== n && (ae(t.removed, { element: e.cloneNode() }), e.textContent = n);
679
+ }
680
+ return Q(F.afterSanitizeElements, e, null), $(e, n);
681
+ }, On = function(e, t, r) {
682
+ if (xt[t] || mn(t, e) || Mt && (t === "id" || t === "name") && (r in n || r in en)) return !1;
683
+ let i = L[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
684
+ 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);
685
+ }, kn = E({}, [
686
+ "annotation-xml",
687
+ "color-profile",
688
+ "font-face",
689
+ "font-face-format",
690
+ "font-face-name",
691
+ "font-face-src",
692
+ "font-face-uri",
693
+ "missing-glyph"
694
+ ]), An = function(e) {
695
+ return !kn[se(e)] && S(gt, e);
696
+ }, jn = function(e, t, n, r) {
697
+ if (M && typeof d == "object" && typeof d.getAttributeType == "function" && !n) switch (d.getAttributeType(e, t)) {
698
+ case "TrustedHTML": return P(r);
699
+ case "TrustedScriptURL": return tt(r);
700
+ }
701
+ return r;
702
+ }, Mn = function(e, t, n, r) {
703
+ try {
704
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !bn(e) || (X(e), !1);
705
+ } catch {
706
+ return Z(t, e), !1;
707
+ }
708
+ }, Nn = function(e, n) {
709
+ if (Q(F.beforeSanitizeAttributes, e, null), $(e, n)) return;
710
+ let r = e.attributes;
711
+ if (!r || bn(e)) return;
712
+ L = En(F.uponSanitizeAttribute, L, yt, Ot);
713
+ let i = {
714
+ attrName: "",
715
+ attrValue: "",
716
+ keepAttr: !0,
717
+ allowedAttributes: L,
718
+ forceKeepAttr: void 0
719
+ }, a = r.length, o = J(e.nodeName);
720
+ for (; a--;) {
721
+ 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;
722
+ 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)) {
723
+ Z(s, e, n);
724
+ continue;
725
+ }
726
+ if (u === "attributename" && le(f, "href")) {
727
+ Z(s, e, n);
728
+ continue;
729
+ }
730
+ if (!i.forceKeepAttr) {
731
+ if (!i.keepAttr) {
732
+ Z(s, e, n);
733
+ continue;
734
+ }
735
+ if (!Tt && S(He, f)) {
736
+ Z(s, e, n);
737
+ continue;
738
+ }
739
+ if (B && (f = vn(f)), !On(o, u, f)) {
740
+ Z(s, e, n);
741
+ continue;
742
+ }
743
+ f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && ie(t.removed);
744
+ }
745
+ }
746
+ Q(F.afterSanitizeAttributes, e, null), $(e, n);
747
+ }, Pn = function(e) {
748
+ let t = null, n = _n(e);
749
+ 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) {
750
+ let e = me(t);
751
+ xn(e) && (Fn(e), Pn(e));
752
+ }
753
+ Q(F.afterSanitizeShadowDOM, e, null);
754
+ }, Fn = function(e) {
755
+ let t = [{
756
+ node: e,
757
+ shadow: null
758
+ }];
759
+ for (; t.length > 0;) {
760
+ let e = t.pop();
761
+ if (e.shadow) {
762
+ Pn(e.shadow);
763
+ continue;
764
+ }
765
+ let n = e.node, r = A(n) === k.element, i = v(n);
766
+ if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
767
+ node: i[e],
768
+ shadow: null
769
+ });
770
+ if (r) {
771
+ let e = T ? T(n) : null;
772
+ if (typeof e == "string" && J(e) === "template") {
773
+ let e = n.content;
774
+ xn(e) && t.push({
775
+ node: e,
776
+ shadow: null
777
+ });
778
+ }
779
+ }
780
+ if (r) {
781
+ let e = me(n);
782
+ xn(e) && t.push({
783
+ node: null,
784
+ shadow: e
785
+ }, {
786
+ node: e,
787
+ shadow: null
788
+ });
789
+ }
790
+ }
791
+ };
792
+ return t.sanitize = function(e) {
793
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
794
+ if (Wt = !e, Wt && (e = "<!-->"), typeof e != "string" && !Sn(e) && (e = ge(e), typeof e != "string")) throw C("dirty is not a string, aborting");
795
+ if (!t.isSupported) return e;
796
+ 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 = [];
797
+ let c = It && typeof e != "string" && Sn(e);
798
+ if (c) {
799
+ hn(e);
800
+ let t = Xe(e);
801
+ if (typeof t == "string") {
802
+ let n = J(t);
803
+ if (!I[n] || bt[n]) throw dn(e), C("root node is forbidden and cannot be sanitized in-place");
804
+ }
805
+ if (bn(e)) throw dn(e), C("root node is clobbered and cannot be sanitized in-place");
806
+ try {
807
+ Fn(e);
808
+ } catch (t) {
809
+ throw dn(e), t;
810
+ }
811
+ } 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);
812
+ else {
813
+ if (!U && !B && !H && e.indexOf("<") === -1) return M && jt ? P(e) : e;
814
+ if (i = gn(e), !i) return U ? null : jt ? N : "";
815
+ }
816
+ i && kt && X(i.firstChild);
817
+ let l = c ? e : i;
818
+ try {
819
+ let e = _n(l);
820
+ for (; o = e.nextNode();) Dn(o, l), Nn(o, l), xn(o.content) && Pn(o.content);
821
+ } catch (n) {
822
+ throw c && (dn(e), g(t.removed, (e) => {
823
+ e.element && pn(e.element);
824
+ })), n;
825
+ }
826
+ if (c) {
827
+ let n = !1;
828
+ if (g(t.removed, (t) => {
829
+ t.element && (t.element === e && (n = !0), pn(t.element));
830
+ }), n) throw C("a node selected for removal could not be safely returned; refusing to sanitize in place");
831
+ return B && yn(e), e;
832
+ }
833
+ if (U) {
834
+ if (B && yn(i), At) for (s = ot.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
835
+ else s = i;
836
+ return (L.shadowroot || L.shadowrootmode) && (s = ct.call(r, s, !0)), s;
837
+ }
838
+ let u = H ? i.outerHTML : i.innerHTML;
839
+ 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;
840
+ }, t.setConfig = function() {
841
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
842
+ nn(e), Et = !0, Dt = I, Ot = L;
843
+ }, t.clearConfig = function() {
844
+ Y = null, Et = !1, Dt = null, Ot = null, M = Ze, N = "";
845
+ }, t.isValidAttribute = function(e, t, n) {
846
+ Y || nn({});
847
+ let r = J(e), i = J(t);
848
+ return On(r, i, n);
849
+ }, t.addHook = function(e, t) {
850
+ typeof t == "function" && b(F, e) && ae(F[e], t);
851
+ }, t.removeHook = function(e, t) {
852
+ if (b(F, e)) {
853
+ if (t !== void 0) {
854
+ let n = re(F[e], t);
855
+ return n === -1 ? void 0 : oe(F[e], n, 1)[0];
856
+ }
857
+ return ie(F[e]);
858
+ }
859
+ }, t.removeHooks = function(e) {
860
+ b(F, e) && (F[e] = []);
861
+ }, t.removeAllHooks = function() {
862
+ F = qe();
863
+ }, t;
864
+ }
865
+ var Xe = Ye();
866
+ //#endregion
867
+ export { Xe as default };