@burdenoff/microfe-support 2026.527.5 → 2026.529.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.
- package/dist/node_modules/dompurify/dist/purify.es.js +347 -265
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/dist/support/pages/JobApplicationDetailPage.js +2 -2
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js +2 -2
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/utils/supportFiles.js +2 -4
- package/dist/support/utils/supportFiles.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,94 +1,137 @@
|
|
|
1
1
|
//#region node_modules/dompurify/dist/purify.es.mjs
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
(t == null || t > e.length) && (t = e.length);
|
|
4
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
5
|
+
return r;
|
|
6
|
+
}
|
|
7
|
+
function t(e) {
|
|
8
|
+
if (Array.isArray(e)) return e;
|
|
9
|
+
}
|
|
10
|
+
function n(e, t) {
|
|
11
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
12
|
+
if (n != null) {
|
|
13
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
14
|
+
try {
|
|
15
|
+
if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
l = !0, i = e;
|
|
18
|
+
} finally {
|
|
19
|
+
try {
|
|
20
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
21
|
+
} finally {
|
|
22
|
+
if (l) throw i;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return s;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function r() {
|
|
29
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
30
|
+
}
|
|
31
|
+
function i(e, i) {
|
|
32
|
+
return t(e) || n(e, i) || a(e, i) || r();
|
|
33
|
+
}
|
|
34
|
+
function a(t, n) {
|
|
35
|
+
if (t) {
|
|
36
|
+
if (typeof t == "string") return e(t, n);
|
|
37
|
+
var r = {}.toString.call(t).slice(8, -1);
|
|
38
|
+
return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? e(t, n) : void 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
var o = Object.entries, s = Object.setPrototypeOf, c = Object.isFrozen, l = Object.getPrototypeOf, u = Object.getOwnPropertyDescriptor, d = Object.freeze, f = Object.seal, p = Object.create, m = typeof Reflect < "u" && Reflect, ee = m.apply, te = m.construct;
|
|
42
|
+
d ||= function(e) {
|
|
4
43
|
return e;
|
|
5
|
-
},
|
|
44
|
+
}, f ||= function(e) {
|
|
6
45
|
return e;
|
|
7
|
-
},
|
|
46
|
+
}, ee ||= function(e, t) {
|
|
8
47
|
var n = [...arguments].slice(2);
|
|
9
48
|
return e.apply(t, n);
|
|
10
|
-
},
|
|
49
|
+
}, te ||= function(e) {
|
|
11
50
|
return new e(...[...arguments].slice(1));
|
|
12
51
|
};
|
|
13
|
-
var
|
|
14
|
-
function
|
|
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, v = E(String.prototype.toLowerCase), ae = E(String.prototype.toString), oe = E(String.prototype.match), y = E(String.prototype.replace), se = E(String.prototype.indexOf), ce = E(String.prototype.trim), le = E(Number.prototype.toString), b = E(Boolean.prototype.toString), x = typeof BigInt > "u" ? null : E(BigInt.prototype.toString), S = typeof Symbol > "u" ? null : E(Symbol.prototype.toString), C = E(Object.prototype.hasOwnProperty), w = E(Object.prototype.toString), T = E(RegExp.prototype.test), ue = D(TypeError);
|
|
53
|
+
function E(e) {
|
|
15
54
|
return function(t) {
|
|
16
55
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
17
56
|
var n = [...arguments].slice(1);
|
|
18
|
-
return
|
|
57
|
+
return ee(e, t, n);
|
|
19
58
|
};
|
|
20
59
|
}
|
|
21
|
-
function
|
|
60
|
+
function D(e) {
|
|
22
61
|
return function() {
|
|
23
|
-
return
|
|
62
|
+
return te(e, [...arguments]);
|
|
24
63
|
};
|
|
25
64
|
}
|
|
26
|
-
function
|
|
27
|
-
let
|
|
28
|
-
if (
|
|
29
|
-
let
|
|
30
|
-
for (;
|
|
31
|
-
let
|
|
32
|
-
if (typeof
|
|
33
|
-
let e = i
|
|
34
|
-
e !==
|
|
65
|
+
function O(e, t) {
|
|
66
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v;
|
|
67
|
+
if (s && s(e, null), !_(t)) return e;
|
|
68
|
+
let r = t.length;
|
|
69
|
+
for (; r--;) {
|
|
70
|
+
let i = t[r];
|
|
71
|
+
if (typeof i == "string") {
|
|
72
|
+
let e = n(i);
|
|
73
|
+
e !== i && (c(t) || (t[r] = e), i = e);
|
|
35
74
|
}
|
|
36
|
-
e[
|
|
75
|
+
e[i] = !0;
|
|
37
76
|
}
|
|
38
77
|
return e;
|
|
39
78
|
}
|
|
40
|
-
function
|
|
41
|
-
for (let t = 0; t < e.length; t++)
|
|
79
|
+
function k(e) {
|
|
80
|
+
for (let t = 0; t < e.length; t++) C(e, t) || (e[t] = null);
|
|
42
81
|
return e;
|
|
43
82
|
}
|
|
44
|
-
function
|
|
45
|
-
let
|
|
46
|
-
for (let
|
|
47
|
-
|
|
83
|
+
function A(e) {
|
|
84
|
+
let t = p(null);
|
|
85
|
+
for (let r of o(e)) {
|
|
86
|
+
var n = i(r, 2);
|
|
87
|
+
let a = n[0], o = n[1];
|
|
88
|
+
C(e, a) && (_(o) ? t[a] = k(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = A(o) : t[a] = o);
|
|
89
|
+
}
|
|
90
|
+
return t;
|
|
48
91
|
}
|
|
49
|
-
function
|
|
92
|
+
function de(e) {
|
|
50
93
|
switch (typeof e) {
|
|
51
94
|
case "string": return e;
|
|
52
|
-
case "number": return
|
|
53
|
-
case "boolean": return
|
|
54
|
-
case "bigint": return
|
|
55
|
-
case "symbol": return
|
|
56
|
-
case "undefined": return
|
|
95
|
+
case "number": return le(e);
|
|
96
|
+
case "boolean": return b(e);
|
|
97
|
+
case "bigint": return x ? x(e) : "0";
|
|
98
|
+
case "symbol": return S ? S(e) : "Symbol()";
|
|
99
|
+
case "undefined": return w(e);
|
|
57
100
|
case "function":
|
|
58
101
|
case "object": {
|
|
59
|
-
if (e === null) return
|
|
60
|
-
let t = e, n =
|
|
102
|
+
if (e === null) return w(e);
|
|
103
|
+
let t = e, n = j(t, "toString");
|
|
61
104
|
if (typeof n == "function") {
|
|
62
105
|
let e = n(t);
|
|
63
|
-
return typeof e == "string" ? e :
|
|
106
|
+
return typeof e == "string" ? e : w(e);
|
|
64
107
|
}
|
|
65
|
-
return
|
|
108
|
+
return w(e);
|
|
66
109
|
}
|
|
67
|
-
default: return
|
|
110
|
+
default: return w(e);
|
|
68
111
|
}
|
|
69
112
|
}
|
|
70
|
-
function
|
|
113
|
+
function j(e, t) {
|
|
71
114
|
for (; e !== null;) {
|
|
72
|
-
let n =
|
|
115
|
+
let n = u(e, t);
|
|
73
116
|
if (n) {
|
|
74
|
-
if (n.get) return
|
|
75
|
-
if (typeof n.value == "function") return
|
|
117
|
+
if (n.get) return E(n.get);
|
|
118
|
+
if (typeof n.value == "function") return E(n.value);
|
|
76
119
|
}
|
|
77
|
-
e =
|
|
120
|
+
e = l(e);
|
|
78
121
|
}
|
|
79
122
|
function n() {
|
|
80
123
|
return null;
|
|
81
124
|
}
|
|
82
125
|
return n;
|
|
83
126
|
}
|
|
84
|
-
function
|
|
127
|
+
function fe(e) {
|
|
85
128
|
try {
|
|
86
|
-
return
|
|
129
|
+
return T(e, ""), !0;
|
|
87
130
|
} catch {
|
|
88
131
|
return !1;
|
|
89
132
|
}
|
|
90
133
|
}
|
|
91
|
-
var
|
|
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([
|
|
92
135
|
"feBlend",
|
|
93
136
|
"feColorMatrix",
|
|
94
137
|
"feComponentTransfer",
|
|
@@ -114,7 +157,7 @@ var de = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
114
157
|
"feSpotLight",
|
|
115
158
|
"feTile",
|
|
116
159
|
"feTurbulence"
|
|
117
|
-
]),
|
|
160
|
+
]), ge = d([
|
|
118
161
|
"animate",
|
|
119
162
|
"color-profile",
|
|
120
163
|
"cursor",
|
|
@@ -137,7 +180,7 @@ var de = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
137
180
|
"solidcolor",
|
|
138
181
|
"unknown",
|
|
139
182
|
"use"
|
|
140
|
-
]),
|
|
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([
|
|
141
184
|
"maction",
|
|
142
185
|
"maligngroup",
|
|
143
186
|
"malignmark",
|
|
@@ -153,33 +196,28 @@ var de = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
153
196
|
"annotation-xml",
|
|
154
197
|
"mprescripts",
|
|
155
198
|
"none"
|
|
156
|
-
]),
|
|
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([
|
|
157
200
|
"xlink:href",
|
|
158
201
|
"xml:id",
|
|
159
202
|
"xlink:title",
|
|
160
203
|
"xml:space",
|
|
161
204
|
"xmlns:xlink"
|
|
162
|
-
]),
|
|
163
|
-
__proto__: null,
|
|
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 = {
|
|
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 = {
|
|
175
206
|
element: 1,
|
|
207
|
+
attribute: 2,
|
|
176
208
|
text: 3,
|
|
209
|
+
cdataSection: 4,
|
|
210
|
+
entityReference: 5,
|
|
211
|
+
entityNode: 6,
|
|
177
212
|
progressingInstruction: 7,
|
|
178
213
|
comment: 8,
|
|
179
|
-
document: 9
|
|
180
|
-
|
|
214
|
+
document: 9,
|
|
215
|
+
documentType: 10,
|
|
216
|
+
documentFragment: 11,
|
|
217
|
+
notation: 12
|
|
218
|
+
}, Pe = function() {
|
|
181
219
|
return typeof window > "u" ? null : window;
|
|
182
|
-
},
|
|
220
|
+
}, Fe = function(e, t) {
|
|
183
221
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
184
222
|
let n = null, r = "data-tt-policy-suffix";
|
|
185
223
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -196,7 +234,7 @@ var de = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
196
234
|
} catch {
|
|
197
235
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
198
236
|
}
|
|
199
|
-
},
|
|
237
|
+
}, Ie = function() {
|
|
200
238
|
return {
|
|
201
239
|
afterSanitizeAttributes: [],
|
|
202
240
|
afterSanitizeElements: [],
|
|
@@ -209,28 +247,32 @@ var de = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
209
247
|
uponSanitizeShadowNode: []
|
|
210
248
|
};
|
|
211
249
|
};
|
|
212
|
-
function
|
|
213
|
-
let
|
|
214
|
-
if (
|
|
215
|
-
let
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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.7", t.removed = [], !e || !e.document || e.document.nodeType !== M.document || !e.Element) return t.isSupported = !1, t;
|
|
253
|
+
let n = e.document, r = n, i = r.currentScript;
|
|
254
|
+
e.DocumentFragment;
|
|
255
|
+
let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
|
|
256
|
+
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"), le = j(m, "nextSibling"), b = j(m, "childNodes"), x = j(m, "parentNode"), S = j(m, "shadowRoot"), w = j(m, "attributes"), E = s && s.prototype ? j(s.prototype, "nodeType") : null, D = s && s.prototype ? j(s.prototype, "nodeName") : null;
|
|
258
|
+
if (typeof a == "function") {
|
|
259
|
+
let e = n.createElement("template");
|
|
260
|
+
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
219
261
|
}
|
|
220
|
-
let
|
|
221
|
-
|
|
222
|
-
let
|
|
223
|
-
...de,
|
|
224
|
-
...fe,
|
|
262
|
+
let k, N = "", Re = n, ze = Re.implementation, Be = Re.createNodeIterator, Ve = Re.createDocumentFragment, He = Re.getElementsByTagName, Ue = r.importNode, P = Ie();
|
|
263
|
+
t.isSupported = typeof o == "function" && typeof x == "function" && ze && ze.createHTMLDocument !== void 0;
|
|
264
|
+
let We = we, Ge = Te, Ke = Ee, qe = De, Je = Oe, Ye = Ae, Xe = je, Ze = Ne, Qe = ke, F = null, $e = O({}, [
|
|
225
265
|
...pe,
|
|
266
|
+
...me,
|
|
226
267
|
...he,
|
|
227
|
-
..._e
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
...ye,
|
|
268
|
+
..._e,
|
|
269
|
+
...ye
|
|
270
|
+
]), I = null, et = O({}, [
|
|
231
271
|
...be,
|
|
232
|
-
...xe
|
|
233
|
-
|
|
272
|
+
...xe,
|
|
273
|
+
...Se,
|
|
274
|
+
...Ce
|
|
275
|
+
]), L = Object.seal(p(null, {
|
|
234
276
|
tagNameCheck: {
|
|
235
277
|
writable: !0,
|
|
236
278
|
configurable: !1,
|
|
@@ -249,7 +291,7 @@ function Me() {
|
|
|
249
291
|
enumerable: !0,
|
|
250
292
|
value: !1
|
|
251
293
|
}
|
|
252
|
-
})),
|
|
294
|
+
})), R = null, tt = null, z = Object.seal(p(null, {
|
|
253
295
|
tagCheck: {
|
|
254
296
|
writable: !0,
|
|
255
297
|
configurable: !1,
|
|
@@ -262,7 +304,7 @@ function Me() {
|
|
|
262
304
|
enumerable: !0,
|
|
263
305
|
value: null
|
|
264
306
|
}
|
|
265
|
-
})),
|
|
307
|
+
})), nt = !0, rt = !0, it = !1, at = !0, B = !1, V = !0, H = !1, ot = !1, st = !1, U = !1, ct = !1, lt = !1, ut = !0, dt = !1, ft = "user-content-", pt = !0, mt = !1, W = {}, G = null, ht = O({}, [
|
|
266
308
|
"annotation-xml",
|
|
267
309
|
"audio",
|
|
268
310
|
"colgroup",
|
|
@@ -288,14 +330,14 @@ function Me() {
|
|
|
288
330
|
"title",
|
|
289
331
|
"video",
|
|
290
332
|
"xmp"
|
|
291
|
-
]),
|
|
333
|
+
]), gt = null, _t = O({}, [
|
|
292
334
|
"audio",
|
|
293
335
|
"video",
|
|
294
336
|
"img",
|
|
295
337
|
"source",
|
|
296
338
|
"image",
|
|
297
339
|
"track"
|
|
298
|
-
]),
|
|
340
|
+
]), vt = null, yt = O({}, [
|
|
299
341
|
"alt",
|
|
300
342
|
"class",
|
|
301
343
|
"for",
|
|
@@ -310,153 +352,179 @@ function Me() {
|
|
|
310
352
|
"value",
|
|
311
353
|
"style",
|
|
312
354
|
"xmlns"
|
|
313
|
-
]),
|
|
314
|
-
|
|
315
|
-
|
|
355
|
+
]), bt = "http://www.w3.org/1998/Math/MathML", xt = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, St = !1, Ct = null, wt = O({}, [
|
|
356
|
+
bt,
|
|
357
|
+
xt,
|
|
316
358
|
K
|
|
317
|
-
],
|
|
359
|
+
], ae), Tt = O({}, [
|
|
318
360
|
"mi",
|
|
319
361
|
"mo",
|
|
320
362
|
"mn",
|
|
321
363
|
"ms",
|
|
322
364
|
"mtext"
|
|
323
|
-
]),
|
|
365
|
+
]), Et = O({}, ["annotation-xml"]), Dt = O({}, [
|
|
324
366
|
"title",
|
|
325
367
|
"style",
|
|
326
368
|
"font",
|
|
327
369
|
"a",
|
|
328
370
|
"script"
|
|
329
|
-
]),
|
|
371
|
+
]), Ot = null, kt = ["application/xhtml+xml", "text/html"], J = null, Y = null, At = n.createElement("form"), jt = function(e) {
|
|
330
372
|
return e instanceof RegExp || e instanceof Function;
|
|
331
|
-
},
|
|
373
|
+
}, Mt = function() {
|
|
332
374
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
333
|
-
if (
|
|
334
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
375
|
+
if (Y && Y === e) return;
|
|
376
|
+
(!e || typeof e != "object") && (e = {}), e = A(e), Ot = kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Ot === "application/xhtml+xml" ? ae : v, F = C(e, "ALLOWED_TAGS") && _(e.ALLOWED_TAGS) ? O({}, e.ALLOWED_TAGS, J) : $e, I = C(e, "ALLOWED_ATTR") && _(e.ALLOWED_ATTR) ? O({}, e.ALLOWED_ATTR, J) : et, Ct = C(e, "ALLOWED_NAMESPACES") && _(e.ALLOWED_NAMESPACES) ? O({}, e.ALLOWED_NAMESPACES, ae) : wt, vt = C(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) ? O(A(yt), e.ADD_URI_SAFE_ATTR, J) : yt, gt = C(e, "ADD_DATA_URI_TAGS") && _(e.ADD_DATA_URI_TAGS) ? O(A(_t), e.ADD_DATA_URI_TAGS, J) : _t, G = C(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) ? O({}, e.FORBID_CONTENTS, J) : ht, R = C(e, "FORBID_TAGS") && _(e.FORBID_TAGS) ? O({}, e.FORBID_TAGS, J) : A({}), tt = C(e, "FORBID_ATTR") && _(e.FORBID_ATTR) ? O({}, e.FORBID_ATTR, J) : A({}), W = C(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? A(e.USE_PROFILES) : e.USE_PROFILES : !1, nt = e.ALLOW_ARIA_ATTR !== !1, rt = e.ALLOW_DATA_ATTR !== !1, it = e.ALLOW_UNKNOWN_PROTOCOLS || !1, at = 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, ct = e.RETURN_DOM_FRAGMENT || !1, lt = e.RETURN_TRUSTED_TYPE || !1, st = e.FORCE_BODY || !1, ut = e.SANITIZE_DOM !== !1, dt = e.SANITIZE_NAMED_PROPS || !1, pt = e.KEEP_CONTENT !== !1, mt = e.IN_PLACE || !1, Qe = fe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ke, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Tt = C(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? A(e.MATHML_TEXT_INTEGRATION_POINTS) : O({}, [
|
|
335
377
|
"mi",
|
|
336
378
|
"mo",
|
|
337
379
|
"mn",
|
|
338
380
|
"ms",
|
|
339
381
|
"mtext"
|
|
340
|
-
]),
|
|
341
|
-
let t =
|
|
342
|
-
if (
|
|
382
|
+
]), Et = C(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? A(e.HTML_INTEGRATION_POINTS) : O({}, ["annotation-xml"]);
|
|
383
|
+
let t = C(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? A(e.CUSTOM_ELEMENT_HANDLING) : p(null);
|
|
384
|
+
if (L = p(null), C(t, "tagNameCheck") && jt(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), C(t, "attributeNameCheck") && jt(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), C(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), B && (rt = !1), ct && (U = !0), W && (F = O({}, ye), I = p(null), W.html === !0 && (O(F, pe), O(I, be)), W.svg === !0 && (O(F, me), O(I, xe), O(I, Ce)), W.svgFilters === !0 && (O(F, he), O(I, xe), O(I, Ce)), W.mathMl === !0 && (O(F, _e), O(I, Se), O(I, Ce))), z.tagCheck = null, z.attributeCheck = null, C(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (F === $e && (F = A(F)), O(F, e.ADD_TAGS, J))), C(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (I === et && (I = A(I)), O(I, e.ADD_ATTR, J))), C(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) && O(vt, e.ADD_URI_SAFE_ATTR, J), C(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) && (G === ht && (G = A(G)), O(G, e.FORBID_CONTENTS, J)), C(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (G === ht && (G = A(G)), O(G, e.ADD_FORBID_CONTENTS, J)), pt && (F["#text"] = !0), H && O(F, [
|
|
343
385
|
"html",
|
|
344
386
|
"head",
|
|
345
387
|
"body"
|
|
346
|
-
]),
|
|
347
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
348
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
349
|
-
|
|
350
|
-
} else
|
|
351
|
-
|
|
352
|
-
},
|
|
353
|
-
...
|
|
354
|
-
...
|
|
355
|
-
...
|
|
356
|
-
]),
|
|
357
|
-
let t =
|
|
388
|
+
]), F.table && (O(F, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
389
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw ue("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
390
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw ue("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
391
|
+
k = e.TRUSTED_TYPES_POLICY, N = k.createHTML("");
|
|
392
|
+
} else k === void 0 && (k = Fe(f, i)), k !== null && typeof N == "string" && (N = k.createHTML(""));
|
|
393
|
+
(P.uponSanitizeElement.length > 0 || P.uponSanitizeAttribute.length > 0) && F === $e && (F = A(F)), P.uponSanitizeAttribute.length > 0 && I === et && (I = A(I)), d && d(e), Y = e;
|
|
394
|
+
}, Nt = O({}, [
|
|
395
|
+
...me,
|
|
396
|
+
...he,
|
|
397
|
+
...ge
|
|
398
|
+
]), Pt = O({}, [..._e, ...ve]), Ft = function(e) {
|
|
399
|
+
let t = x(e);
|
|
358
400
|
(!t || !t.tagName) && (t = {
|
|
359
401
|
namespaceURI: q,
|
|
360
402
|
tagName: "template"
|
|
361
403
|
});
|
|
362
|
-
let n =
|
|
363
|
-
return
|
|
364
|
-
},
|
|
365
|
-
|
|
404
|
+
let n = v(e.tagName), r = v(t.tagName);
|
|
405
|
+
return Ct[e.namespaceURI] ? e.namespaceURI === xt ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === bt ? n === "svg" && (r === "annotation-xml" || Tt[r]) : !!Nt[n] : e.namespaceURI === bt ? t.namespaceURI === K ? n === "math" : t.namespaceURI === xt ? n === "math" && Et[r] : !!Pt[n] : e.namespaceURI === K ? t.namespaceURI === xt && !Et[r] || t.namespaceURI === bt && !Tt[r] ? !1 : !Pt[n] && (Dt[n] || !Nt[n]) : !!(Ot === "application/xhtml+xml" && Ct[e.namespaceURI]) : !1;
|
|
406
|
+
}, X = function(e) {
|
|
407
|
+
g(t.removed, { element: e });
|
|
366
408
|
try {
|
|
367
|
-
|
|
409
|
+
x(e).removeChild(e);
|
|
368
410
|
} catch {
|
|
369
|
-
|
|
411
|
+
te(e);
|
|
370
412
|
}
|
|
371
|
-
},
|
|
413
|
+
}, Z = function(e, n) {
|
|
372
414
|
try {
|
|
373
|
-
|
|
374
|
-
attribute:
|
|
375
|
-
from:
|
|
415
|
+
g(t.removed, {
|
|
416
|
+
attribute: n.getAttributeNode(e),
|
|
417
|
+
from: n
|
|
376
418
|
});
|
|
377
419
|
} catch {
|
|
378
|
-
|
|
420
|
+
g(t.removed, {
|
|
379
421
|
attribute: null,
|
|
380
|
-
from:
|
|
422
|
+
from: n
|
|
381
423
|
});
|
|
382
424
|
}
|
|
383
|
-
if (
|
|
384
|
-
|
|
425
|
+
if (n.removeAttribute(e), e === "is") if (U || ct) try {
|
|
426
|
+
X(n);
|
|
385
427
|
} catch {}
|
|
386
428
|
else try {
|
|
387
|
-
|
|
429
|
+
n.setAttribute(e, "");
|
|
388
430
|
} catch {}
|
|
389
|
-
},
|
|
390
|
-
let t = null,
|
|
391
|
-
if (
|
|
431
|
+
}, It = function(e) {
|
|
432
|
+
let t = null, r = null;
|
|
433
|
+
if (st) e = "<remove></remove>" + e;
|
|
392
434
|
else {
|
|
393
|
-
let t =
|
|
394
|
-
|
|
435
|
+
let t = oe(e, /^[\r\n\t ]+/);
|
|
436
|
+
r = t && t[0];
|
|
395
437
|
}
|
|
396
|
-
|
|
397
|
-
let i =
|
|
438
|
+
Ot === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
439
|
+
let i = k ? k.createHTML(e) : e;
|
|
398
440
|
if (q === K) try {
|
|
399
|
-
t = new
|
|
441
|
+
t = new u().parseFromString(i, Ot);
|
|
400
442
|
} catch {}
|
|
401
443
|
if (!t || !t.documentElement) {
|
|
402
|
-
t =
|
|
444
|
+
t = ze.createDocument(q, "template", null);
|
|
403
445
|
try {
|
|
404
|
-
t.documentElement.innerHTML =
|
|
446
|
+
t.documentElement.innerHTML = St ? N : i;
|
|
405
447
|
} catch {}
|
|
406
448
|
}
|
|
407
449
|
let a = t.body || t.documentElement;
|
|
408
|
-
return e &&
|
|
409
|
-
},
|
|
410
|
-
return
|
|
411
|
-
},
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
450
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? He.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
|
|
451
|
+
}, Lt = function(e) {
|
|
452
|
+
return Be.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
453
|
+
}, Rt = function(e) {
|
|
454
|
+
e.normalize();
|
|
455
|
+
let t = Be.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
|
|
456
|
+
for (; n;) {
|
|
457
|
+
let e = n.data;
|
|
458
|
+
h([
|
|
459
|
+
We,
|
|
460
|
+
Ge,
|
|
461
|
+
Ke
|
|
462
|
+
], (t) => {
|
|
463
|
+
e = y(e, t, " ");
|
|
464
|
+
}), n.data = e, n = t.nextNode();
|
|
465
|
+
}
|
|
466
|
+
}, zt = function(e) {
|
|
467
|
+
let t = D ? D(e) : null;
|
|
468
|
+
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 !== E(e) || e.childNodes !== b(e);
|
|
469
|
+
}, Bt = function(e) {
|
|
470
|
+
if (!E || typeof e != "object" || !e) return !1;
|
|
471
|
+
try {
|
|
472
|
+
return E(e) === M.documentFragment;
|
|
473
|
+
} catch {
|
|
474
|
+
return !1;
|
|
475
|
+
}
|
|
476
|
+
}, Vt = function(e) {
|
|
477
|
+
if (!E || typeof e != "object" || !e) return !1;
|
|
478
|
+
try {
|
|
479
|
+
return typeof E(e) == "number";
|
|
480
|
+
} catch {
|
|
481
|
+
return !1;
|
|
482
|
+
}
|
|
415
483
|
};
|
|
416
|
-
function
|
|
417
|
-
|
|
418
|
-
e.call(
|
|
484
|
+
function Q(e, n, r) {
|
|
485
|
+
h(e, (e) => {
|
|
486
|
+
e.call(t, n, r, Y);
|
|
419
487
|
});
|
|
420
488
|
}
|
|
421
|
-
let
|
|
422
|
-
let
|
|
423
|
-
if (
|
|
424
|
-
let r =
|
|
425
|
-
if (
|
|
489
|
+
let Ht = function(e) {
|
|
490
|
+
let n = null;
|
|
491
|
+
if (Q(P.beforeSanitizeElements, e, null), zt(e)) return X(e), !0;
|
|
492
|
+
let r = J(e.nodeName);
|
|
493
|
+
if (Q(P.uponSanitizeElement, e, {
|
|
426
494
|
tagName: r,
|
|
427
|
-
allowedTags:
|
|
428
|
-
}),
|
|
429
|
-
if (
|
|
430
|
-
if (!
|
|
431
|
-
if (
|
|
432
|
-
let t =
|
|
495
|
+
allowedTags: F
|
|
496
|
+
}), V && e.hasChildNodes() && !Vt(e.firstElementChild) && T(/<[/\w!]/g, e.innerHTML) && T(/<[/\w!]/g, e.textContent) || V && e.namespaceURI === K && r === "style" && Vt(e.firstElementChild) || e.nodeType === M.progressingInstruction || V && e.nodeType === M.comment && T(/<[/\w]/g, e.data)) return X(e), !0;
|
|
497
|
+
if (R[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !F[r]) {
|
|
498
|
+
if (!R[r] && Gt(r) && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r))) return !1;
|
|
499
|
+
if (pt && !G[r]) {
|
|
500
|
+
let t = x(e), n = b(e);
|
|
433
501
|
if (n && t) {
|
|
434
502
|
let r = n.length;
|
|
435
503
|
for (let i = r - 1; i >= 0; --i) {
|
|
436
|
-
let r =
|
|
437
|
-
t.insertBefore(r,
|
|
504
|
+
let r = ee(n[i], !0);
|
|
505
|
+
t.insertBefore(r, le(e));
|
|
438
506
|
}
|
|
439
507
|
}
|
|
440
508
|
}
|
|
441
|
-
return
|
|
509
|
+
return X(e), !0;
|
|
442
510
|
}
|
|
443
|
-
return e
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
511
|
+
return (E ? E(e) : e.nodeType) === M.element && !Ft(e) || (r === "noscript" || r === "noembed" || r === "noframes") && T(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (B && e.nodeType === M.text && (n = e.textContent, h([
|
|
512
|
+
We,
|
|
513
|
+
Ge,
|
|
514
|
+
Ke
|
|
447
515
|
], (e) => {
|
|
448
|
-
|
|
449
|
-
}), e.textContent !==
|
|
450
|
-
},
|
|
451
|
-
if (
|
|
452
|
-
let i =
|
|
453
|
-
if (!(
|
|
454
|
-
if (!i ||
|
|
455
|
-
if (!(
|
|
456
|
-
} else if (!
|
|
516
|
+
n = y(n, e, " ");
|
|
517
|
+
}), e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n)), Q(P.afterSanitizeElements, e, null), !1);
|
|
518
|
+
}, Ut = function(e, t, r) {
|
|
519
|
+
if (tt[t] || ut && (t === "id" || t === "name") && (r in n || r in At)) return !1;
|
|
520
|
+
let i = I[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
|
|
521
|
+
if (!(rt && !tt[t] && T(qe, t)) && !(nt && T(Je, t))) {
|
|
522
|
+
if (!i || tt[t]) {
|
|
523
|
+
if (!(Gt(e) && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && T(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
|
|
524
|
+
} else if (!vt[t] && !T(Qe, y(r, Xe, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && se(r, "data:") === 0 && gt[e]) && !(it && !T(Ye, y(r, Xe, ""))) && r) return !1;
|
|
457
525
|
}
|
|
458
526
|
return !0;
|
|
459
|
-
},
|
|
527
|
+
}, Wt = O({}, [
|
|
460
528
|
"annotation-xml",
|
|
461
529
|
"color-profile",
|
|
462
530
|
"font-face",
|
|
@@ -465,135 +533,149 @@ function Me() {
|
|
|
465
533
|
"font-face-src",
|
|
466
534
|
"font-face-uri",
|
|
467
535
|
"missing-glyph"
|
|
468
|
-
]),
|
|
469
|
-
return !
|
|
470
|
-
},
|
|
471
|
-
|
|
472
|
-
let
|
|
473
|
-
if (!
|
|
536
|
+
]), Gt = function(e) {
|
|
537
|
+
return !Wt[v(e)] && T(Ze, e);
|
|
538
|
+
}, Kt = function(e) {
|
|
539
|
+
Q(P.beforeSanitizeAttributes, e, null);
|
|
540
|
+
let n = e.attributes;
|
|
541
|
+
if (!n || zt(e)) return;
|
|
474
542
|
let r = {
|
|
475
543
|
attrName: "",
|
|
476
544
|
attrValue: "",
|
|
477
545
|
keepAttr: !0,
|
|
478
|
-
allowedAttributes:
|
|
546
|
+
allowedAttributes: I,
|
|
479
547
|
forceKeepAttr: void 0
|
|
480
|
-
}, i =
|
|
548
|
+
}, i = n.length;
|
|
481
549
|
for (; i--;) {
|
|
482
|
-
let
|
|
483
|
-
if (r.attrName =
|
|
484
|
-
|
|
550
|
+
let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : ce(u);
|
|
551
|
+
if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(P.uponSanitizeAttribute, e, r), d = r.attrValue, dt && (l === "id" || l === "name") && se(d, ft) !== 0 && (Z(o, e), d = ft + d), V && T(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
552
|
+
Z(o, e);
|
|
485
553
|
continue;
|
|
486
554
|
}
|
|
487
|
-
if (
|
|
488
|
-
|
|
555
|
+
if (l === "attributename" && oe(d, "href")) {
|
|
556
|
+
Z(o, e);
|
|
489
557
|
continue;
|
|
490
558
|
}
|
|
491
559
|
if (r.forceKeepAttr) continue;
|
|
492
560
|
if (!r.keepAttr) {
|
|
493
|
-
|
|
561
|
+
Z(o, e);
|
|
494
562
|
continue;
|
|
495
563
|
}
|
|
496
|
-
if (!
|
|
497
|
-
|
|
564
|
+
if (!at && T(/\/>/i, d)) {
|
|
565
|
+
Z(o, e);
|
|
498
566
|
continue;
|
|
499
567
|
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
568
|
+
B && h([
|
|
569
|
+
We,
|
|
570
|
+
Ge,
|
|
571
|
+
Ke
|
|
504
572
|
], (e) => {
|
|
505
|
-
d =
|
|
573
|
+
d = y(d, e, " ");
|
|
506
574
|
});
|
|
507
|
-
let
|
|
508
|
-
if (!
|
|
509
|
-
|
|
575
|
+
let p = J(e.nodeName);
|
|
576
|
+
if (!Ut(p, l, d)) {
|
|
577
|
+
Z(o, e);
|
|
510
578
|
continue;
|
|
511
579
|
}
|
|
512
|
-
if (
|
|
580
|
+
if (k && typeof f == "object" && typeof f.getAttributeType == "function" && !s) switch (f.getAttributeType(p, l)) {
|
|
513
581
|
case "TrustedHTML":
|
|
514
|
-
d =
|
|
582
|
+
d = k.createHTML(d);
|
|
515
583
|
break;
|
|
516
584
|
case "TrustedScriptURL":
|
|
517
|
-
d =
|
|
585
|
+
d = k.createScriptURL(d);
|
|
518
586
|
break;
|
|
519
587
|
}
|
|
520
|
-
if (d !==
|
|
521
|
-
|
|
588
|
+
if (d !== u) try {
|
|
589
|
+
s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), zt(e) ? X(e) : re(t.removed);
|
|
522
590
|
} catch {
|
|
523
|
-
|
|
591
|
+
Z(o, e);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
Q(P.afterSanitizeAttributes, e, null);
|
|
595
|
+
}, qt = function(e) {
|
|
596
|
+
let t = null, n = Lt(e);
|
|
597
|
+
for (Q(P.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(P.uponSanitizeShadowNode, t, null), Ht(t), Kt(t), Bt(t.content) && qt(t.content), (E ? E(t) : t.nodeType) === M.element) {
|
|
598
|
+
let e = S ? S(t) : t.shadowRoot;
|
|
599
|
+
Bt(e) && ($(e), qt(e));
|
|
600
|
+
}
|
|
601
|
+
Q(P.afterSanitizeShadowDOM, e, null);
|
|
602
|
+
}, $ = function(e) {
|
|
603
|
+
let t = E ? E(e) : e.nodeType;
|
|
604
|
+
if (t === M.element) {
|
|
605
|
+
let t = S ? S(e) : e.shadowRoot;
|
|
606
|
+
Bt(t) && ($(t), qt(t));
|
|
607
|
+
}
|
|
608
|
+
let n = b ? b(e) : e.childNodes;
|
|
609
|
+
if (!n) return;
|
|
610
|
+
let r = [];
|
|
611
|
+
h(n, (e) => {
|
|
612
|
+
g(r, e);
|
|
613
|
+
});
|
|
614
|
+
for (let e of r) $(e);
|
|
615
|
+
if (t === M.element) {
|
|
616
|
+
let t = D ? D(e) : null;
|
|
617
|
+
if (typeof t == "string" && J(t) === "template") {
|
|
618
|
+
let t = e.content;
|
|
619
|
+
Bt(t) && $(t);
|
|
524
620
|
}
|
|
525
621
|
}
|
|
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);
|
|
531
622
|
};
|
|
532
|
-
return
|
|
533
|
-
let
|
|
534
|
-
if (
|
|
535
|
-
if (!
|
|
536
|
-
if (
|
|
537
|
-
let t = e.nodeName;
|
|
623
|
+
return t.sanitize = function(e) {
|
|
624
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
625
|
+
if (St = !e, St && (e = "<!-->"), typeof e != "string" && !Vt(e) && (e = de(e), typeof e != "string")) throw ue("dirty is not a string, aborting");
|
|
626
|
+
if (!t.isSupported) return e;
|
|
627
|
+
if (ot || Mt(n), t.removed = [], typeof e == "string" && (mt = !1), mt) {
|
|
628
|
+
let t = D ? D(e) : e.nodeName;
|
|
538
629
|
if (typeof t == "string") {
|
|
539
|
-
let e =
|
|
540
|
-
if (!
|
|
630
|
+
let e = J(t);
|
|
631
|
+
if (!F[e] || R[e]) throw ue("root node is forbidden and cannot be sanitized in-place");
|
|
541
632
|
}
|
|
542
|
-
|
|
633
|
+
if (zt(e)) throw ue("root node is clobbered and cannot be sanitized in-place");
|
|
634
|
+
$(e);
|
|
635
|
+
} else if (Vt(e)) i = It("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === M.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), $(a);
|
|
543
636
|
else {
|
|
544
|
-
if (!
|
|
545
|
-
if (
|
|
637
|
+
if (!U && !B && !H && e.indexOf("<") === -1) return k && lt ? k.createHTML(e) : e;
|
|
638
|
+
if (i = It(e), !i) return U ? null : lt ? N : "";
|
|
546
639
|
}
|
|
547
|
-
|
|
548
|
-
let
|
|
549
|
-
for (; o =
|
|
550
|
-
if (
|
|
551
|
-
if (
|
|
552
|
-
if (
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
u([
|
|
556
|
-
Le,
|
|
557
|
-
Re,
|
|
558
|
-
N
|
|
559
|
-
], (t) => {
|
|
560
|
-
e = h(e, t, " ");
|
|
561
|
-
}), r.innerHTML = e;
|
|
562
|
-
}
|
|
563
|
-
if (et) for (s = Pe.call(r.ownerDocument); r.firstChild;) s.appendChild(r.firstChild);
|
|
564
|
-
else s = r;
|
|
565
|
-
return (F.shadowroot || F.shadowrootmode) && (s = Ie.call(i, s, !0)), s;
|
|
640
|
+
i && st && X(i.firstChild);
|
|
641
|
+
let c = Lt(mt ? e : i);
|
|
642
|
+
for (; o = c.nextNode();) Ht(o), Kt(o), Bt(o.content) && qt(o.content);
|
|
643
|
+
if (mt) return B && Rt(e), e;
|
|
644
|
+
if (U) {
|
|
645
|
+
if (B && Rt(i), ct) for (s = Ve.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
646
|
+
else s = i;
|
|
647
|
+
return (I.shadowroot || I.shadowrootmode) && (s = Ue.call(r, s, !0)), s;
|
|
566
648
|
}
|
|
567
|
-
let
|
|
568
|
-
return
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
649
|
+
let l = H ? i.outerHTML : i.innerHTML;
|
|
650
|
+
return H && F["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && T(Me, i.ownerDocument.doctype.name) && (l = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + l), B && h([
|
|
651
|
+
We,
|
|
652
|
+
Ge,
|
|
653
|
+
Ke
|
|
572
654
|
], (e) => {
|
|
573
|
-
|
|
574
|
-
}),
|
|
575
|
-
},
|
|
576
|
-
|
|
577
|
-
},
|
|
578
|
-
|
|
579
|
-
},
|
|
580
|
-
return
|
|
581
|
-
},
|
|
582
|
-
typeof t == "function" &&
|
|
583
|
-
},
|
|
655
|
+
l = y(l, e, " ");
|
|
656
|
+
}), k && lt ? k.createHTML(l) : l;
|
|
657
|
+
}, t.setConfig = function() {
|
|
658
|
+
Mt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), ot = !0;
|
|
659
|
+
}, t.clearConfig = function() {
|
|
660
|
+
Y = null, ot = !1;
|
|
661
|
+
}, t.isValidAttribute = function(e, t, n) {
|
|
662
|
+
return Y || Mt({}), Ut(J(e), J(t), n);
|
|
663
|
+
}, t.addHook = function(e, t) {
|
|
664
|
+
typeof t == "function" && g(P[e], t);
|
|
665
|
+
}, t.removeHook = function(e, t) {
|
|
584
666
|
if (t !== void 0) {
|
|
585
|
-
let n =
|
|
586
|
-
return n === -1 ? void 0 :
|
|
667
|
+
let n = ne(P[e], t);
|
|
668
|
+
return n === -1 ? void 0 : ie(P[e], n, 1)[0];
|
|
587
669
|
}
|
|
588
|
-
return
|
|
589
|
-
},
|
|
590
|
-
|
|
591
|
-
},
|
|
592
|
-
|
|
593
|
-
},
|
|
670
|
+
return re(P[e]);
|
|
671
|
+
}, t.removeHooks = function(e) {
|
|
672
|
+
P[e] = [];
|
|
673
|
+
}, t.removeAllHooks = function() {
|
|
674
|
+
P = Ie();
|
|
675
|
+
}, t;
|
|
594
676
|
}
|
|
595
|
-
var
|
|
677
|
+
var N = Le();
|
|
596
678
|
//#endregion
|
|
597
|
-
export {
|
|
679
|
+
export { N as purify };
|
|
598
680
|
|
|
599
681
|
//# sourceMappingURL=purify.es.js.map
|