@burdenoff/microfe-support 2026.510.52 → 2026.511.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,22 +10,22 @@ a ||= function(e) {
|
|
|
10
10
|
}, l ||= function(e) {
|
|
11
11
|
return new e(...[...arguments].slice(1));
|
|
12
12
|
};
|
|
13
|
-
var u =
|
|
14
|
-
function
|
|
13
|
+
var u = x(Array.prototype.forEach), d = x(Array.prototype.lastIndexOf), ee = x(Array.prototype.pop), f = x(Array.prototype.push), te = x(Array.prototype.splice), p = Array.isArray, m = x(String.prototype.toLowerCase), ne = x(String.prototype.toString), re = x(String.prototype.match), h = x(String.prototype.replace), ie = x(String.prototype.indexOf), ae = x(String.prototype.trim), oe = x(Number.prototype.toString), se = x(Boolean.prototype.toString), g = typeof BigInt > "u" ? null : x(BigInt.prototype.toString), ce = typeof Symbol > "u" ? null : x(Symbol.prototype.toString), _ = x(Object.prototype.hasOwnProperty), v = x(Object.prototype.toString), y = x(RegExp.prototype.test), b = S(TypeError);
|
|
14
|
+
function x(e) {
|
|
15
15
|
return function(t) {
|
|
16
16
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
17
17
|
var n = [...arguments].slice(1);
|
|
18
18
|
return c(e, t, n);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function S(e) {
|
|
22
22
|
return function() {
|
|
23
23
|
return l(e, [...arguments]);
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
28
|
-
t && t(e, null);
|
|
26
|
+
function C(e, r) {
|
|
27
|
+
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : m;
|
|
28
|
+
if (t && t(e, null), !p(r)) return e;
|
|
29
29
|
let a = r.length;
|
|
30
30
|
for (; a--;) {
|
|
31
31
|
let t = r[a];
|
|
@@ -37,21 +37,42 @@ function v(e, r) {
|
|
|
37
37
|
}
|
|
38
38
|
return e;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
for (let t = 0; t < e.length; t++)
|
|
40
|
+
function w(e) {
|
|
41
|
+
for (let t = 0; t < e.length; t++) _(e, t) || (e[t] = null);
|
|
42
42
|
return e;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function T(t) {
|
|
45
45
|
let n = s(null);
|
|
46
|
-
for (let [r, i] of e(t))
|
|
46
|
+
for (let [r, i] of e(t)) _(t, r) && (p(i) ? n[r] = w(i) : i && typeof i == "object" && i.constructor === Object ? n[r] = T(i) : n[r] = i);
|
|
47
47
|
return n;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function le(e) {
|
|
50
|
+
switch (typeof e) {
|
|
51
|
+
case "string": return e;
|
|
52
|
+
case "number": return oe(e);
|
|
53
|
+
case "boolean": return se(e);
|
|
54
|
+
case "bigint": return g ? g(e) : "0";
|
|
55
|
+
case "symbol": return ce ? ce(e) : "Symbol()";
|
|
56
|
+
case "undefined": return v(e);
|
|
57
|
+
case "function":
|
|
58
|
+
case "object": {
|
|
59
|
+
if (e === null) return v(e);
|
|
60
|
+
let t = e, n = E(t, "toString");
|
|
61
|
+
if (typeof n == "function") {
|
|
62
|
+
let e = n(t);
|
|
63
|
+
return typeof e == "string" ? e : v(e);
|
|
64
|
+
}
|
|
65
|
+
return v(e);
|
|
66
|
+
}
|
|
67
|
+
default: return v(e);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function E(e, t) {
|
|
50
71
|
for (; e !== null;) {
|
|
51
72
|
let n = i(e, t);
|
|
52
73
|
if (n) {
|
|
53
|
-
if (n.get) return
|
|
54
|
-
if (typeof n.value == "function") return
|
|
74
|
+
if (n.get) return x(n.get);
|
|
75
|
+
if (typeof n.value == "function") return x(n.value);
|
|
55
76
|
}
|
|
56
77
|
e = r(e);
|
|
57
78
|
}
|
|
@@ -60,7 +81,14 @@ function x(e, t) {
|
|
|
60
81
|
}
|
|
61
82
|
return n;
|
|
62
83
|
}
|
|
63
|
-
|
|
84
|
+
function ue(e) {
|
|
85
|
+
try {
|
|
86
|
+
return y(e, ""), !0;
|
|
87
|
+
} catch {
|
|
88
|
+
return !1;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
var de = a(/* @__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(".")), fe = a(/* @__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(".")), pe = a([
|
|
64
92
|
"feBlend",
|
|
65
93
|
"feColorMatrix",
|
|
66
94
|
"feComponentTransfer",
|
|
@@ -86,7 +114,7 @@ var ce = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
86
114
|
"feSpotLight",
|
|
87
115
|
"feTile",
|
|
88
116
|
"feTurbulence"
|
|
89
|
-
]),
|
|
117
|
+
]), me = a([
|
|
90
118
|
"animate",
|
|
91
119
|
"color-profile",
|
|
92
120
|
"cursor",
|
|
@@ -109,7 +137,7 @@ var ce = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
109
137
|
"solidcolor",
|
|
110
138
|
"unknown",
|
|
111
139
|
"use"
|
|
112
|
-
]),
|
|
140
|
+
]), he = a(/* @__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(".")), ge = a([
|
|
113
141
|
"maction",
|
|
114
142
|
"maligngroup",
|
|
115
143
|
"malignmark",
|
|
@@ -125,33 +153,33 @@ var ce = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
125
153
|
"annotation-xml",
|
|
126
154
|
"mprescripts",
|
|
127
155
|
"none"
|
|
128
|
-
]),
|
|
156
|
+
]), _e = a(["#text"]), ve = a(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.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(".")), ye = a(/* @__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(".")), be = a(/* @__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(".")), xe = a([
|
|
129
157
|
"xlink:href",
|
|
130
158
|
"xml:id",
|
|
131
159
|
"xlink:title",
|
|
132
160
|
"xml:space",
|
|
133
161
|
"xmlns:xlink"
|
|
134
|
-
]),
|
|
162
|
+
]), Se = o(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ce = o(/<%[\w\W]*|[\w\W]*%>/gm), we = o(/\$\{[\w\W]*/gm), Te = o(/^data-[\-\w.\u00B7-\uFFFF]+$/), D = o(/^aria-[\-\w]+$/), Ee = o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), O = o(/^(?:\w+script|data):/i), k = o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), De = o(/^html$/i), A = o(/^[a-z][.\w]*(-[.\w]+)+$/i), Oe = /* @__PURE__ */ Object.freeze({
|
|
135
163
|
__proto__: null,
|
|
136
|
-
ARIA_ATTR:
|
|
137
|
-
ATTR_WHITESPACE:
|
|
138
|
-
CUSTOM_ELEMENT:
|
|
139
|
-
DATA_ATTR:
|
|
140
|
-
DOCTYPE_NAME:
|
|
141
|
-
ERB_EXPR:
|
|
142
|
-
IS_ALLOWED_URI:
|
|
143
|
-
IS_SCRIPT_OR_DATA:
|
|
144
|
-
MUSTACHE_EXPR:
|
|
145
|
-
TMPLIT_EXPR:
|
|
146
|
-
}),
|
|
164
|
+
ARIA_ATTR: D,
|
|
165
|
+
ATTR_WHITESPACE: k,
|
|
166
|
+
CUSTOM_ELEMENT: A,
|
|
167
|
+
DATA_ATTR: Te,
|
|
168
|
+
DOCTYPE_NAME: De,
|
|
169
|
+
ERB_EXPR: Ce,
|
|
170
|
+
IS_ALLOWED_URI: Ee,
|
|
171
|
+
IS_SCRIPT_OR_DATA: O,
|
|
172
|
+
MUSTACHE_EXPR: Se,
|
|
173
|
+
TMPLIT_EXPR: we
|
|
174
|
+
}), j = {
|
|
147
175
|
element: 1,
|
|
148
176
|
text: 3,
|
|
149
177
|
progressingInstruction: 7,
|
|
150
178
|
comment: 8,
|
|
151
179
|
document: 9
|
|
152
|
-
},
|
|
180
|
+
}, ke = function() {
|
|
153
181
|
return typeof window > "u" ? null : window;
|
|
154
|
-
},
|
|
182
|
+
}, Ae = function(e, t) {
|
|
155
183
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
156
184
|
let n = null, r = "data-tt-policy-suffix";
|
|
157
185
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -168,7 +196,7 @@ var ce = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
168
196
|
} catch {
|
|
169
197
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
170
198
|
}
|
|
171
|
-
},
|
|
199
|
+
}, je = function() {
|
|
172
200
|
return {
|
|
173
201
|
afterSanitizeAttributes: [],
|
|
174
202
|
afterSanitizeElements: [],
|
|
@@ -181,28 +209,28 @@ var ce = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
181
209
|
uponSanitizeShadowNode: []
|
|
182
210
|
};
|
|
183
211
|
};
|
|
184
|
-
function
|
|
185
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
186
|
-
if (n.version = "3.4.
|
|
187
|
-
let { document: r } = t, i = r, o = i.currentScript, { DocumentFragment: c, HTMLTemplateElement: l, Node:
|
|
212
|
+
function Me() {
|
|
213
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ke(), n = (e) => Me(e);
|
|
214
|
+
if (n.version = "3.4.2", n.removed = [], !t || !t.document || t.document.nodeType !== j.document || !t.Element) return n.isSupported = !1, n;
|
|
215
|
+
let { document: r } = t, i = r, o = i.currentScript, { DocumentFragment: c, HTMLTemplateElement: l, Node: oe, Element: se, NodeFilter: g, NamedNodeMap: ce = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: v, DOMParser: x, trustedTypes: S } = t, w = se.prototype, Se = E(w, "cloneNode"), Ce = E(w, "remove"), we = E(w, "nextSibling"), Te = E(w, "childNodes"), D = E(w, "parentNode");
|
|
188
216
|
if (typeof l == "function") {
|
|
189
217
|
let e = r.createElement("template");
|
|
190
218
|
e.content && e.content.ownerDocument && (r = e.content.ownerDocument);
|
|
191
219
|
}
|
|
192
|
-
let
|
|
193
|
-
n.isSupported = typeof e == "function" && typeof
|
|
194
|
-
let { MUSTACHE_EXPR:
|
|
195
|
-
...
|
|
196
|
-
...le,
|
|
197
|
-
...ue,
|
|
220
|
+
let O, k = "", { implementation: A, createNodeIterator: Ne, createDocumentFragment: Pe, getElementsByTagName: Fe } = r, { importNode: Ie } = i, M = je();
|
|
221
|
+
n.isSupported = typeof e == "function" && typeof D == "function" && A && A.createHTMLDocument !== void 0;
|
|
222
|
+
let { MUSTACHE_EXPR: Le, ERB_EXPR: Re, TMPLIT_EXPR: N, DATA_ATTR: ze, ARIA_ATTR: Be, IS_SCRIPT_OR_DATA: Ve, ATTR_WHITESPACE: He, CUSTOM_ELEMENT: Ue } = Oe, { IS_ALLOWED_URI: We } = Oe, P = null, Ge = C({}, [
|
|
223
|
+
...de,
|
|
198
224
|
...fe,
|
|
199
|
-
...
|
|
200
|
-
]), N = null, Ge = v({}, [
|
|
225
|
+
...pe,
|
|
201
226
|
...he,
|
|
202
|
-
...
|
|
203
|
-
|
|
204
|
-
...
|
|
205
|
-
|
|
227
|
+
..._e
|
|
228
|
+
]), F = null, Ke = C({}, [
|
|
229
|
+
...ve,
|
|
230
|
+
...ye,
|
|
231
|
+
...be,
|
|
232
|
+
...xe
|
|
233
|
+
]), I = Object.seal(s(null, {
|
|
206
234
|
tagNameCheck: {
|
|
207
235
|
writable: !0,
|
|
208
236
|
configurable: !1,
|
|
@@ -221,7 +249,7 @@ function Ae() {
|
|
|
221
249
|
enumerable: !0,
|
|
222
250
|
value: !1
|
|
223
251
|
}
|
|
224
|
-
})),
|
|
252
|
+
})), L = null, qe = null, R = Object.seal(s(null, {
|
|
225
253
|
tagCheck: {
|
|
226
254
|
writable: !0,
|
|
227
255
|
configurable: !1,
|
|
@@ -234,7 +262,7 @@ function Ae() {
|
|
|
234
262
|
enumerable: !0,
|
|
235
263
|
value: null
|
|
236
264
|
}
|
|
237
|
-
})),
|
|
265
|
+
})), Je = !0, Ye = !0, Xe = !1, Ze = !0, z = !1, B = !0, V = !1, Qe = !1, $e = !1, H = !1, et = !1, tt = !1, nt = !0, rt = !1, it = "user-content-", at = !0, U = !1, W = {}, G = null, ot = C({}, [
|
|
238
266
|
"annotation-xml",
|
|
239
267
|
"audio",
|
|
240
268
|
"colgroup",
|
|
@@ -260,14 +288,14 @@ function Ae() {
|
|
|
260
288
|
"title",
|
|
261
289
|
"video",
|
|
262
290
|
"xmp"
|
|
263
|
-
]),
|
|
291
|
+
]), st = null, ct = C({}, [
|
|
264
292
|
"audio",
|
|
265
293
|
"video",
|
|
266
294
|
"img",
|
|
267
295
|
"source",
|
|
268
296
|
"image",
|
|
269
297
|
"track"
|
|
270
|
-
]),
|
|
298
|
+
]), lt = null, ut = C({}, [
|
|
271
299
|
"alt",
|
|
272
300
|
"class",
|
|
273
301
|
"for",
|
|
@@ -282,54 +310,61 @@ function Ae() {
|
|
|
282
310
|
"value",
|
|
283
311
|
"style",
|
|
284
312
|
"xmlns"
|
|
285
|
-
]),
|
|
286
|
-
|
|
287
|
-
|
|
313
|
+
]), dt = "http://www.w3.org/1998/Math/MathML", ft = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, pt = !1, mt = null, ht = C({}, [
|
|
314
|
+
dt,
|
|
315
|
+
ft,
|
|
288
316
|
K
|
|
289
|
-
],
|
|
317
|
+
], ne), gt = C({}, [
|
|
290
318
|
"mi",
|
|
291
319
|
"mo",
|
|
292
320
|
"mn",
|
|
293
321
|
"ms",
|
|
294
322
|
"mtext"
|
|
295
|
-
]),
|
|
323
|
+
]), _t = C({}, ["annotation-xml"]), vt = C({}, [
|
|
296
324
|
"title",
|
|
297
325
|
"style",
|
|
298
326
|
"font",
|
|
299
327
|
"a",
|
|
300
328
|
"script"
|
|
301
|
-
]), J = null,
|
|
329
|
+
]), J = null, yt = ["application/xhtml+xml", "text/html"], Y = null, X = null, bt = r.createElement("form"), xt = function(e) {
|
|
302
330
|
return e instanceof RegExp || e instanceof Function;
|
|
303
|
-
},
|
|
331
|
+
}, St = function() {
|
|
304
332
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
305
|
-
if (
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
333
|
+
if (X && X === e) return;
|
|
334
|
+
(!e || typeof e != "object") && (e = {}), e = T(e), J = yt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = J === "application/xhtml+xml" ? ne : m, P = _(e, "ALLOWED_TAGS") && p(e.ALLOWED_TAGS) ? C({}, e.ALLOWED_TAGS, Y) : Ge, F = _(e, "ALLOWED_ATTR") && p(e.ALLOWED_ATTR) ? C({}, e.ALLOWED_ATTR, Y) : Ke, mt = _(e, "ALLOWED_NAMESPACES") && p(e.ALLOWED_NAMESPACES) ? C({}, e.ALLOWED_NAMESPACES, ne) : ht, lt = _(e, "ADD_URI_SAFE_ATTR") && p(e.ADD_URI_SAFE_ATTR) ? C(T(ut), e.ADD_URI_SAFE_ATTR, Y) : ut, st = _(e, "ADD_DATA_URI_TAGS") && p(e.ADD_DATA_URI_TAGS) ? C(T(ct), e.ADD_DATA_URI_TAGS, Y) : ct, G = _(e, "FORBID_CONTENTS") && p(e.FORBID_CONTENTS) ? C({}, e.FORBID_CONTENTS, Y) : ot, L = _(e, "FORBID_TAGS") && p(e.FORBID_TAGS) ? C({}, e.FORBID_TAGS, Y) : T({}), qe = _(e, "FORBID_ATTR") && p(e.FORBID_ATTR) ? C({}, e.FORBID_ATTR, Y) : T({}), W = _(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? T(e.USE_PROFILES) : e.USE_PROFILES : !1, Je = e.ALLOW_ARIA_ATTR !== !1, Ye = e.ALLOW_DATA_ATTR !== !1, Xe = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ze = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = e.SAFE_FOR_TEMPLATES || !1, B = e.SAFE_FOR_XML !== !1, V = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, et = e.RETURN_DOM_FRAGMENT || !1, tt = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, nt = e.SANITIZE_DOM !== !1, rt = e.SANITIZE_NAMED_PROPS || !1, at = e.KEEP_CONTENT !== !1, U = e.IN_PLACE || !1, We = ue(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ee, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, gt = _(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? T(e.MATHML_TEXT_INTEGRATION_POINTS) : C({}, [
|
|
335
|
+
"mi",
|
|
336
|
+
"mo",
|
|
337
|
+
"mn",
|
|
338
|
+
"ms",
|
|
339
|
+
"mtext"
|
|
340
|
+
]), _t = _(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? T(e.HTML_INTEGRATION_POINTS) : C({}, ["annotation-xml"]);
|
|
341
|
+
let t = _(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? T(e.CUSTOM_ELEMENT_HANDLING) : s(null);
|
|
342
|
+
if (I = s(null), _(t, "tagNameCheck") && xt(t.tagNameCheck) && (I.tagNameCheck = t.tagNameCheck), _(t, "attributeNameCheck") && xt(t.attributeNameCheck) && (I.attributeNameCheck = t.attributeNameCheck), _(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), z && (Ye = !1), et && (H = !0), W && (P = C({}, _e), F = s(null), W.html === !0 && (C(P, de), C(F, ve)), W.svg === !0 && (C(P, fe), C(F, ye), C(F, xe)), W.svgFilters === !0 && (C(P, pe), C(F, ye), C(F, xe)), W.mathMl === !0 && (C(P, he), C(F, be), C(F, xe))), R.tagCheck = null, R.attributeCheck = null, _(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? R.tagCheck = e.ADD_TAGS : p(e.ADD_TAGS) && (P === Ge && (P = T(P)), C(P, e.ADD_TAGS, Y))), _(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? R.attributeCheck = e.ADD_ATTR : p(e.ADD_ATTR) && (F === Ke && (F = T(F)), C(F, e.ADD_ATTR, Y))), _(e, "ADD_URI_SAFE_ATTR") && p(e.ADD_URI_SAFE_ATTR) && C(lt, e.ADD_URI_SAFE_ATTR, Y), _(e, "FORBID_CONTENTS") && p(e.FORBID_CONTENTS) && (G === ot && (G = T(G)), C(G, e.FORBID_CONTENTS, Y)), _(e, "ADD_FORBID_CONTENTS") && p(e.ADD_FORBID_CONTENTS) && (G === ot && (G = T(G)), C(G, e.ADD_FORBID_CONTENTS, Y)), at && (P["#text"] = !0), V && C(P, [
|
|
343
|
+
"html",
|
|
344
|
+
"head",
|
|
345
|
+
"body"
|
|
346
|
+
]), P.table && (C(P, ["tbody"]), delete L.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
347
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw b("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
348
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw b("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
349
|
+
O = e.TRUSTED_TYPES_POLICY, k = O.createHTML("");
|
|
350
|
+
} else O === void 0 && (O = Ae(S, o)), O !== null && typeof k == "string" && (k = O.createHTML(""));
|
|
351
|
+
a && a(e), X = e;
|
|
352
|
+
}, Ct = C({}, [
|
|
353
|
+
...fe,
|
|
354
|
+
...pe,
|
|
355
|
+
...me
|
|
356
|
+
]), wt = C({}, [...he, ...ge]), Tt = function(e) {
|
|
357
|
+
let t = D(e);
|
|
323
358
|
(!t || !t.tagName) && (t = {
|
|
324
359
|
namespaceURI: q,
|
|
325
360
|
tagName: "template"
|
|
326
361
|
});
|
|
327
|
-
let n =
|
|
328
|
-
return
|
|
362
|
+
let n = m(e.tagName), r = m(t.tagName);
|
|
363
|
+
return mt[e.namespaceURI] ? e.namespaceURI === ft ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === dt ? n === "svg" && (r === "annotation-xml" || gt[r]) : !!Ct[n] : e.namespaceURI === dt ? t.namespaceURI === K ? n === "math" : t.namespaceURI === ft ? n === "math" && _t[r] : !!wt[n] : e.namespaceURI === K ? t.namespaceURI === ft && !_t[r] || t.namespaceURI === dt && !gt[r] ? !1 : !wt[n] && (vt[n] || !Ct[n]) : !!(J === "application/xhtml+xml" && mt[e.namespaceURI]) : !1;
|
|
329
364
|
}, Z = function(e) {
|
|
330
365
|
f(n.removed, { element: e });
|
|
331
366
|
try {
|
|
332
|
-
|
|
367
|
+
D(e).removeChild(e);
|
|
333
368
|
} catch {
|
|
334
369
|
Ce(e);
|
|
335
370
|
}
|
|
@@ -345,101 +380,111 @@ function Ae() {
|
|
|
345
380
|
from: t
|
|
346
381
|
});
|
|
347
382
|
}
|
|
348
|
-
if (t.removeAttribute(e), e === "is") if (
|
|
383
|
+
if (t.removeAttribute(e), e === "is") if (H || et) try {
|
|
349
384
|
Z(t);
|
|
350
385
|
} catch {}
|
|
351
386
|
else try {
|
|
352
387
|
t.setAttribute(e, "");
|
|
353
388
|
} catch {}
|
|
354
|
-
},
|
|
389
|
+
}, Et = function(e) {
|
|
355
390
|
let t = null, n = null;
|
|
356
|
-
if (
|
|
391
|
+
if ($e) e = "<remove></remove>" + e;
|
|
357
392
|
else {
|
|
358
|
-
let t =
|
|
393
|
+
let t = re(e, /^[\r\n\t ]+/);
|
|
359
394
|
n = t && t[0];
|
|
360
395
|
}
|
|
361
396
|
J === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
362
|
-
let i =
|
|
397
|
+
let i = O ? O.createHTML(e) : e;
|
|
363
398
|
if (q === K) try {
|
|
364
|
-
t = new
|
|
399
|
+
t = new x().parseFromString(i, J);
|
|
365
400
|
} catch {}
|
|
366
401
|
if (!t || !t.documentElement) {
|
|
367
|
-
t =
|
|
402
|
+
t = A.createDocument(q, "template", null);
|
|
368
403
|
try {
|
|
369
|
-
t.documentElement.innerHTML =
|
|
404
|
+
t.documentElement.innerHTML = pt ? k : i;
|
|
370
405
|
} catch {}
|
|
371
406
|
}
|
|
372
407
|
let a = t.body || t.documentElement;
|
|
373
|
-
return e && n && a.insertBefore(r.createTextNode(n), a.childNodes[0] || null), q === K ?
|
|
374
|
-
},
|
|
375
|
-
return
|
|
376
|
-
},
|
|
377
|
-
return e instanceof
|
|
378
|
-
},
|
|
379
|
-
return typeof
|
|
408
|
+
return e && n && a.insertBefore(r.createTextNode(n), a.childNodes[0] || null), q === K ? Fe.call(t, V ? "html" : "body")[0] : V ? t.documentElement : a;
|
|
409
|
+
}, Dt = function(e) {
|
|
410
|
+
return Ne.call(e.ownerDocument || e, e, g.SHOW_ELEMENT | g.SHOW_COMMENT | g.SHOW_TEXT | g.SHOW_PROCESSING_INSTRUCTION | g.SHOW_CDATA_SECTION, null);
|
|
411
|
+
}, Ot = function(e) {
|
|
412
|
+
return e instanceof v && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ce) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
413
|
+
}, kt = function(e) {
|
|
414
|
+
return typeof oe == "function" && e instanceof oe;
|
|
380
415
|
};
|
|
381
416
|
function $(e, t, r) {
|
|
382
417
|
u(e, (e) => {
|
|
383
418
|
e.call(n, t, r, X);
|
|
384
419
|
});
|
|
385
420
|
}
|
|
386
|
-
let
|
|
421
|
+
let At = function(e) {
|
|
387
422
|
let t = null;
|
|
388
|
-
if ($(
|
|
423
|
+
if ($(M.beforeSanitizeElements, e, null), Ot(e)) return Z(e), !0;
|
|
389
424
|
let r = Y(e.nodeName);
|
|
390
|
-
if ($(
|
|
425
|
+
if ($(M.uponSanitizeElement, e, {
|
|
391
426
|
tagName: r,
|
|
392
|
-
allowedTags:
|
|
393
|
-
}),
|
|
394
|
-
if (
|
|
395
|
-
if (!
|
|
396
|
-
if (
|
|
397
|
-
let t =
|
|
427
|
+
allowedTags: P
|
|
428
|
+
}), B && e.hasChildNodes() && !kt(e.firstElementChild) && y(/<[/\w!]/g, e.innerHTML) && y(/<[/\w!]/g, e.textContent) || B && e.namespaceURI === K && r === "style" && kt(e.firstElementChild) || e.nodeType === j.progressingInstruction || B && e.nodeType === j.comment && y(/<[/\w]/g, e.data)) return Z(e), !0;
|
|
429
|
+
if (L[r] || !(R.tagCheck instanceof Function && R.tagCheck(r)) && !P[r]) {
|
|
430
|
+
if (!L[r] && Nt(r) && (I.tagNameCheck instanceof RegExp && y(I.tagNameCheck, r) || I.tagNameCheck instanceof Function && I.tagNameCheck(r))) return !1;
|
|
431
|
+
if (at && !G[r]) {
|
|
432
|
+
let t = D(e) || e.parentNode, n = Te(e) || e.childNodes;
|
|
398
433
|
if (n && t) {
|
|
399
434
|
let r = n.length;
|
|
400
435
|
for (let i = r - 1; i >= 0; --i) {
|
|
401
436
|
let r = Se(n[i], !0);
|
|
402
|
-
|
|
437
|
+
t.insertBefore(r, we(e));
|
|
403
438
|
}
|
|
404
439
|
}
|
|
405
440
|
}
|
|
406
441
|
return Z(e), !0;
|
|
407
442
|
}
|
|
408
|
-
return e instanceof se && !
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
443
|
+
return e instanceof se && !Tt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && y(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Z(e), !0) : (z && e.nodeType === j.text && (t = e.textContent, u([
|
|
444
|
+
Le,
|
|
445
|
+
Re,
|
|
446
|
+
N
|
|
412
447
|
], (e) => {
|
|
413
|
-
t =
|
|
414
|
-
}), e.textContent !== t && (f(n.removed, { element: e.cloneNode() }), e.textContent = t)), $(
|
|
415
|
-
},
|
|
416
|
-
if (
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
448
|
+
t = h(t, e, " ");
|
|
449
|
+
}), e.textContent !== t && (f(n.removed, { element: e.cloneNode() }), e.textContent = t)), $(M.afterSanitizeElements, e, null), !1);
|
|
450
|
+
}, jt = function(e, t, n) {
|
|
451
|
+
if (qe[t] || nt && (t === "id" || t === "name") && (n in r || n in bt)) return !1;
|
|
452
|
+
let i = F[t] || R.attributeCheck instanceof Function && R.attributeCheck(t, e);
|
|
453
|
+
if (!(Ye && !qe[t] && y(ze, t)) && !(Je && y(Be, t))) {
|
|
454
|
+
if (!i || qe[t]) {
|
|
455
|
+
if (!(Nt(e) && (I.tagNameCheck instanceof RegExp && y(I.tagNameCheck, e) || I.tagNameCheck instanceof Function && I.tagNameCheck(e)) && (I.attributeNameCheck instanceof RegExp && y(I.attributeNameCheck, t) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(t, e)) || t === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && y(I.tagNameCheck, n) || I.tagNameCheck instanceof Function && I.tagNameCheck(n)))) return !1;
|
|
456
|
+
} else if (!lt[t] && !y(We, h(n, He, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ie(n, "data:") === 0 && st[e]) && !(Xe && !y(Ve, h(n, He, ""))) && n) return !1;
|
|
421
457
|
}
|
|
422
458
|
return !0;
|
|
423
|
-
},
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
459
|
+
}, Mt = C({}, [
|
|
460
|
+
"annotation-xml",
|
|
461
|
+
"color-profile",
|
|
462
|
+
"font-face",
|
|
463
|
+
"font-face-format",
|
|
464
|
+
"font-face-name",
|
|
465
|
+
"font-face-src",
|
|
466
|
+
"font-face-uri",
|
|
467
|
+
"missing-glyph"
|
|
468
|
+
]), Nt = function(e) {
|
|
469
|
+
return !Mt[m(e)] && y(Ue, e);
|
|
470
|
+
}, Pt = function(e) {
|
|
471
|
+
$(M.beforeSanitizeAttributes, e, null);
|
|
427
472
|
let { attributes: t } = e;
|
|
428
|
-
if (!t ||
|
|
473
|
+
if (!t || Ot(e)) return;
|
|
429
474
|
let r = {
|
|
430
475
|
attrName: "",
|
|
431
476
|
attrValue: "",
|
|
432
477
|
keepAttr: !0,
|
|
433
|
-
allowedAttributes:
|
|
478
|
+
allowedAttributes: F,
|
|
434
479
|
forceKeepAttr: void 0
|
|
435
480
|
}, i = t.length;
|
|
436
481
|
for (; i--;) {
|
|
437
|
-
let { name: a, namespaceURI: o, value: s } = t[i], c = Y(a), l = s, d = a === "value" ? l :
|
|
438
|
-
if (r.attrName = c, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, $(
|
|
482
|
+
let { name: a, namespaceURI: o, value: s } = t[i], c = Y(a), l = s, d = a === "value" ? l : ae(l);
|
|
483
|
+
if (r.attrName = c, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, $(M.uponSanitizeAttribute, e, r), d = r.attrValue, rt && (c === "id" || c === "name") && ie(d, it) !== 0 && (Q(a, e), d = it + d), B && y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
439
484
|
Q(a, e);
|
|
440
485
|
continue;
|
|
441
486
|
}
|
|
442
|
-
if (c === "attributename" &&
|
|
487
|
+
if (c === "attributename" && re(d, "href")) {
|
|
443
488
|
Q(a, e);
|
|
444
489
|
continue;
|
|
445
490
|
}
|
|
@@ -448,108 +493,107 @@ function Ae() {
|
|
|
448
493
|
Q(a, e);
|
|
449
494
|
continue;
|
|
450
495
|
}
|
|
451
|
-
if (!
|
|
496
|
+
if (!Ze && y(/\/>/i, d)) {
|
|
452
497
|
Q(a, e);
|
|
453
498
|
continue;
|
|
454
499
|
}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
500
|
+
z && u([
|
|
501
|
+
Le,
|
|
502
|
+
Re,
|
|
503
|
+
N
|
|
459
504
|
], (e) => {
|
|
460
|
-
d =
|
|
505
|
+
d = h(d, e, " ");
|
|
461
506
|
});
|
|
462
507
|
let f = Y(e.nodeName);
|
|
463
|
-
if (!
|
|
508
|
+
if (!jt(f, c, d)) {
|
|
464
509
|
Q(a, e);
|
|
465
510
|
continue;
|
|
466
511
|
}
|
|
467
|
-
if (
|
|
512
|
+
if (O && typeof S == "object" && typeof S.getAttributeType == "function" && !o) switch (S.getAttributeType(f, c)) {
|
|
468
513
|
case "TrustedHTML":
|
|
469
|
-
d =
|
|
514
|
+
d = O.createHTML(d);
|
|
470
515
|
break;
|
|
471
516
|
case "TrustedScriptURL":
|
|
472
|
-
d =
|
|
517
|
+
d = O.createScriptURL(d);
|
|
473
518
|
break;
|
|
474
519
|
}
|
|
475
520
|
if (d !== l) try {
|
|
476
|
-
o ? e.setAttributeNS(o, a, d) : e.setAttribute(a, d),
|
|
521
|
+
o ? e.setAttributeNS(o, a, d) : e.setAttribute(a, d), Ot(e) ? Z(e) : ee(n.removed);
|
|
477
522
|
} catch {
|
|
478
523
|
Q(a, e);
|
|
479
524
|
}
|
|
480
525
|
}
|
|
481
|
-
$(
|
|
482
|
-
},
|
|
483
|
-
let t = null, n =
|
|
484
|
-
for ($(
|
|
485
|
-
$(
|
|
526
|
+
$(M.afterSanitizeAttributes, e, null);
|
|
527
|
+
}, Ft = function(e) {
|
|
528
|
+
let t = null, n = Dt(e);
|
|
529
|
+
for ($(M.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(M.uponSanitizeShadowNode, t, null), At(t), Pt(t), t.content instanceof c && Ft(t.content);
|
|
530
|
+
$(M.afterSanitizeShadowDOM, e, null);
|
|
486
531
|
};
|
|
487
532
|
return n.sanitize = function(e) {
|
|
488
533
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, a = null, o = null, s = null;
|
|
489
|
-
if (
|
|
490
|
-
if (e = e.toString(), typeof e != "string") throw g("dirty is not a string, aborting");
|
|
491
|
-
} else throw g("toString is not a function");
|
|
534
|
+
if (pt = !e, pt && (e = "<!-->"), typeof e != "string" && !kt(e) && (e = le(e), typeof e != "string")) throw b("dirty is not a string, aborting");
|
|
492
535
|
if (!n.isSupported) return e;
|
|
493
|
-
if (
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
536
|
+
if (Qe || St(t), n.removed = [], typeof e == "string" && (U = !1), U) {
|
|
537
|
+
let t = e.nodeName;
|
|
538
|
+
if (typeof t == "string") {
|
|
539
|
+
let e = Y(t);
|
|
540
|
+
if (!P[e] || L[e]) throw b("root node is forbidden and cannot be sanitized in-place");
|
|
497
541
|
}
|
|
498
|
-
} else if (e instanceof
|
|
542
|
+
} else if (e instanceof oe) r = Et("<!---->"), a = r.ownerDocument.importNode(e, !0), a.nodeType === j.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? r = a : r.appendChild(a);
|
|
499
543
|
else {
|
|
500
|
-
if (!
|
|
501
|
-
if (r =
|
|
544
|
+
if (!H && !z && !V && e.indexOf("<") === -1) return O && tt ? O.createHTML(e) : e;
|
|
545
|
+
if (r = Et(e), !r) return H ? null : tt ? k : "";
|
|
502
546
|
}
|
|
503
|
-
r &&
|
|
504
|
-
let l =
|
|
505
|
-
for (; o = l.nextNode();)
|
|
547
|
+
r && $e && Z(r.firstChild);
|
|
548
|
+
let l = Dt(U ? e : r);
|
|
549
|
+
for (; o = l.nextNode();) At(o), Pt(o), o.content instanceof c && Ft(o.content);
|
|
506
550
|
if (U) return e;
|
|
507
|
-
if (
|
|
508
|
-
if (
|
|
551
|
+
if (H) {
|
|
552
|
+
if (z) {
|
|
509
553
|
r.normalize();
|
|
510
554
|
let e = r.innerHTML;
|
|
511
555
|
u([
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
556
|
+
Le,
|
|
557
|
+
Re,
|
|
558
|
+
N
|
|
515
559
|
], (t) => {
|
|
516
|
-
e =
|
|
560
|
+
e = h(e, t, " ");
|
|
517
561
|
}), r.innerHTML = e;
|
|
518
562
|
}
|
|
519
|
-
if (
|
|
563
|
+
if (et) for (s = Pe.call(r.ownerDocument); r.firstChild;) s.appendChild(r.firstChild);
|
|
520
564
|
else s = r;
|
|
521
|
-
return (
|
|
565
|
+
return (F.shadowroot || F.shadowrootmode) && (s = Ie.call(i, s, !0)), s;
|
|
522
566
|
}
|
|
523
|
-
let d =
|
|
524
|
-
return
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
567
|
+
let d = V ? r.outerHTML : r.innerHTML;
|
|
568
|
+
return V && P["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && y(De, r.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + d), z && u([
|
|
569
|
+
Le,
|
|
570
|
+
Re,
|
|
571
|
+
N
|
|
528
572
|
], (e) => {
|
|
529
|
-
d =
|
|
530
|
-
}),
|
|
573
|
+
d = h(d, e, " ");
|
|
574
|
+
}), O && tt ? O.createHTML(d) : d;
|
|
531
575
|
}, n.setConfig = function() {
|
|
532
|
-
|
|
576
|
+
St(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Qe = !0;
|
|
533
577
|
}, n.clearConfig = function() {
|
|
534
|
-
X = null,
|
|
578
|
+
X = null, Qe = !1;
|
|
535
579
|
}, n.isValidAttribute = function(e, t, n) {
|
|
536
|
-
return X ||
|
|
580
|
+
return X || St({}), jt(Y(e), Y(t), n);
|
|
537
581
|
}, n.addHook = function(e, t) {
|
|
538
|
-
typeof t == "function" && f(
|
|
582
|
+
typeof t == "function" && f(M[e], t);
|
|
539
583
|
}, n.removeHook = function(e, t) {
|
|
540
584
|
if (t !== void 0) {
|
|
541
|
-
let n = d(
|
|
542
|
-
return n === -1 ? void 0 : te(
|
|
585
|
+
let n = d(M[e], t);
|
|
586
|
+
return n === -1 ? void 0 : te(M[e], n, 1)[0];
|
|
543
587
|
}
|
|
544
|
-
return ee(
|
|
588
|
+
return ee(M[e]);
|
|
545
589
|
}, n.removeHooks = function(e) {
|
|
546
|
-
|
|
590
|
+
M[e] = [];
|
|
547
591
|
}, n.removeAllHooks = function() {
|
|
548
|
-
|
|
592
|
+
M = je();
|
|
549
593
|
}, n;
|
|
550
594
|
}
|
|
551
|
-
var
|
|
595
|
+
var Ne = Me();
|
|
552
596
|
//#endregion
|
|
553
|
-
export {
|
|
597
|
+
export { Ne as purify };
|
|
554
598
|
|
|
555
599
|
//# sourceMappingURL=purify.es.js.map
|