react-ecosistema-unp 2.5.0 → 2.6.0
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/README.md +354 -25
- package/dist/{AppList-DORGpC4I.js → AppList-CNtk-CBh.js} +56 -55
- package/dist/auth/hooks/useFinalizarSesion.js +12 -12
- package/dist/auth/services/FinSesionService.js +10 -11
- package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
- package/dist/cards/tarjeta-info/TarjetaInfo.js +1 -1
- package/dist/data/tarjeta-datos/TarjetaDatos.js +1 -1
- package/dist/{index-BqaJxgOF.js → index-HaNVi1BU.js} +8 -8
- package/dist/lib/accessibility/barra-accesibilidad/BarraAccesibilidad.d.ts +1 -1
- package/dist/lib/assets/animations/loadingDuck.json.d.ts +1 -1
- package/dist/lib/utils/logger/logger.d.ts +25 -0
- package/dist/lib/utils/modal-radicados/ModalDocumento.d.ts +1 -1
- package/dist/lib/utils/sanitizar-html/sanitizarHtml.d.ts +12 -0
- package/dist/loadingDuck-Deggug5u.js +27 -0
- package/dist/shared/app-list/AppList.js +4 -3
- package/dist/shared/iconos-sistema/IconosSistema.js +1 -1
- package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
- package/dist/shared/menu-lateral/MenuLateral.js +5 -3
- package/dist/shared/notificacion-usuario/NotificacionUsuario.js +194 -745
- package/dist/shared/notificacion-usuario/services/notificacionesService.js +52 -51
- package/dist/shared/user-profile-icon/UserProfileIcon.js +17 -17
- package/dist/shared/ventana-tabs/VentanaTabs.js +1 -1
- package/dist/tables/custom-data-table/CustomDataTable.js +4 -2
- package/dist/tables/custom-data-table-split/CustomDataTableSplit.js +4 -2
- package/dist/tables/eco-data-table/components/EcoBandejaEncabezado.js +3 -2
- package/dist/tables/eco-data-table/components/EcoDataTable/EcoDataTable.js +1 -1
- package/dist/tables/tabla-registros/buscador/Buscador.js +1 -1
- package/dist/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.js +3 -2
- package/dist/tables/tabla-registros/modal-v2/EcoModal.js +1 -1
- package/dist/tables/tabla-registros/tabla/Tabla.js +1 -1
- package/dist/ui/alertas/AlertaFormulario.js +1 -1
- package/dist/ui/animacion/Animacion.js +1 -1
- package/dist/ui/contenido-modal/ContenidoModal.js +1 -1
- package/dist/ui/contenido-modal/ContenidoModalv0.1.js +1 -1
- package/dist/ui/contenido-modal-v2/ContenidoModalV2.js +1 -1
- package/dist/ui/contenido-modal-v2/ModalV2Menu.js +1 -1
- package/dist/ui/icono-tooltip/IconoTooltip.js +1 -1
- package/dist/ui/items-modal/ItemsModal.js +1 -1
- package/dist/ui/nav-formularios-lateral/NavFormulariosLateral.js +1 -1
- package/dist/ui/notificacion-popover-v2/NotificacionPopoverV2.js +80 -79
- package/dist/ui/status-filter-bar/StatusFilterBar.js +1 -1
- package/dist/ui/status-semaphore/StatusSemaphore.js +1 -1
- package/dist/ui/stepper-v2/StepperV2.js +1 -1
- package/dist/utils/components/ProtectedRoute.js +25 -26
- package/dist/utils/components/UserRoute.js +14 -16
- package/dist/utils/eco-provider/EcoContext.js +4 -2
- package/dist/utils/fetch-data/useFetchData.js +60 -59
- package/dist/utils/logger/logger.js +20 -0
- package/dist/utils/modal-radicados/AuxRadicadosComponents/TarjetaRadicado.js +20 -18
- package/dist/utils/modal-radicados/DocumentoVisorEstado.js +4 -3
- package/dist/utils/modal-radicados/ModalDocumento.js +1 -1
- package/dist/utils/modal-radicados/ModalRadicado.js +82 -80
- package/dist/utils/sanitizar-html/sanitizarHtml.js +1486 -0
- package/dist/utils/unp-historico/FetchHistorico.js +6 -5
- package/dist/utils/unp-historico/UnpHistorico.js +3 -2
- package/dist/utils/websocket-manager/websocket.js +19 -18
- package/package.json +28 -18
- package/dist/lib/utils/fetch/fetchInterceptor.d.ts +0 -7
- package/dist/lib/utils/fetch/fingerprintService.d.ts +0 -27
- package/dist/loadingDuck-Diu5KD6X.js +0 -27
- package/dist/utils/fetch/fetchInterceptor.js +0 -98
- package/dist/utils/fetch/fingerprintService.js +0 -1749
|
@@ -0,0 +1,1486 @@
|
|
|
1
|
+
/*! @license DOMPurify 3.4.16 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.16/LICENSE */
|
|
2
|
+
function Ye(o, i) {
|
|
3
|
+
(i == null || i > o.length) && (i = o.length);
|
|
4
|
+
for (var s = 0, c = Array(i); s < i; s++) c[s] = o[s];
|
|
5
|
+
return c;
|
|
6
|
+
}
|
|
7
|
+
function Gn(o) {
|
|
8
|
+
if (Array.isArray(o)) return o;
|
|
9
|
+
}
|
|
10
|
+
function Wn(o, i) {
|
|
11
|
+
var s = o == null ? null : typeof Symbol < "u" && o[Symbol.iterator] || o["@@iterator"];
|
|
12
|
+
if (s != null) {
|
|
13
|
+
var c, u, d, S, ut = [], w = !0, Et = !1;
|
|
14
|
+
try {
|
|
15
|
+
if (d = (s = s.call(o)).next, i !== 0) for (; !(w = (c = d.call(s)).done) && (ut.push(c.value), ut.length !== i); w = !0) ;
|
|
16
|
+
} catch (q) {
|
|
17
|
+
Et = !0, u = q;
|
|
18
|
+
} finally {
|
|
19
|
+
try {
|
|
20
|
+
if (!w && s.return != null && (S = s.return(), Object(S) !== S)) return;
|
|
21
|
+
} finally {
|
|
22
|
+
if (Et) throw u;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return ut;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function Bn() {
|
|
29
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
30
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
31
|
+
}
|
|
32
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
33
|
+
function Yn(o, i) {
|
|
34
|
+
return Gn(o) || Wn(o, i) || jn(o, i) || Bn();
|
|
35
|
+
}
|
|
36
|
+
function jn(o, i) {
|
|
37
|
+
if (o) {
|
|
38
|
+
if (typeof o == "string") return Ye(o, i);
|
|
39
|
+
var s = {}.toString.call(o).slice(8, -1);
|
|
40
|
+
return s === "Object" && o.constructor && (s = o.constructor.name), s === "Map" || s === "Set" ? Array.from(o) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? Ye(o, i) : void 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
const an = Object.entries, je = Object.setPrototypeOf, Xn = Object.isFrozen, $n = Object.getPrototypeOf, Vn = Object.getOwnPropertyDescriptor;
|
|
44
|
+
let y = Object.freeze, b = Object.seal, lt = Object.create, sn = typeof Reflect < "u" && Reflect, le = sn.apply, ce = sn.construct;
|
|
45
|
+
y || (y = function(i) {
|
|
46
|
+
return i;
|
|
47
|
+
});
|
|
48
|
+
b || (b = function(i) {
|
|
49
|
+
return i;
|
|
50
|
+
});
|
|
51
|
+
le || (le = function(i, s) {
|
|
52
|
+
for (var c = arguments.length, u = new Array(c > 2 ? c - 2 : 0), d = 2; d < c; d++) u[d - 2] = arguments[d];
|
|
53
|
+
return i.apply(s, u);
|
|
54
|
+
});
|
|
55
|
+
ce || (ce = function(i) {
|
|
56
|
+
for (var s = arguments.length, c = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++) c[u - 1] = arguments[u];
|
|
57
|
+
return new i(...c);
|
|
58
|
+
});
|
|
59
|
+
const V = E(Array.prototype.forEach), qn = E(Array.prototype.lastIndexOf), Xe = E(Array.prototype.pop), ht = E(Array.prototype.push), Kn = E(Array.prototype.splice), ct = Array.isArray, At = E(String.prototype.toLowerCase), ne = E(String.prototype.toString), $e = E(String.prototype.match), _t = E(String.prototype.replace), Ve = E(String.prototype.indexOf), Zn = E(String.prototype.trim), Jn = E(Number.prototype.toString), Qn = E(Boolean.prototype.toString), qe = typeof BigInt > "u" ? null : E(BigInt.prototype.toString), Ke = typeof Symbol > "u" ? null : E(Symbol.prototype.toString), L = E(Object.prototype.hasOwnProperty), gt = E(Object.prototype.toString), O = E(RegExp.prototype.test), G = to(TypeError);
|
|
60
|
+
function E(o) {
|
|
61
|
+
return function(i) {
|
|
62
|
+
i instanceof RegExp && (i.lastIndex = 0);
|
|
63
|
+
for (var s = arguments.length, c = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++) c[u - 1] = arguments[u];
|
|
64
|
+
return le(o, i, c);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function to(o) {
|
|
68
|
+
return function() {
|
|
69
|
+
for (var i = arguments.length, s = new Array(i), c = 0; c < i; c++) s[c] = arguments[c];
|
|
70
|
+
return ce(o, s);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function m(o, i) {
|
|
74
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : At;
|
|
75
|
+
if (je && je(o, null), !ct(i)) return o;
|
|
76
|
+
let c = i.length;
|
|
77
|
+
for (; c--; ) {
|
|
78
|
+
let u = i[c];
|
|
79
|
+
if (typeof u == "string") {
|
|
80
|
+
const d = s(u);
|
|
81
|
+
d !== u && (Xn(i) || (i[c] = d), u = d);
|
|
82
|
+
}
|
|
83
|
+
o[u] = !0;
|
|
84
|
+
}
|
|
85
|
+
return o;
|
|
86
|
+
}
|
|
87
|
+
function eo(o) {
|
|
88
|
+
for (let i = 0; i < o.length; i++) L(o, i) || (o[i] = null);
|
|
89
|
+
return o;
|
|
90
|
+
}
|
|
91
|
+
function C(o) {
|
|
92
|
+
const i = lt(null);
|
|
93
|
+
for (const c of an(o)) {
|
|
94
|
+
var s = Yn(c, 2);
|
|
95
|
+
const u = s[0], d = s[1];
|
|
96
|
+
L(o, u) && (ct(d) ? i[u] = eo(d) : d && typeof d == "object" && d.constructor === Object ? i[u] = C(d) : i[u] = d);
|
|
97
|
+
}
|
|
98
|
+
return i;
|
|
99
|
+
}
|
|
100
|
+
function no(o) {
|
|
101
|
+
switch (typeof o) {
|
|
102
|
+
case "string":
|
|
103
|
+
return o;
|
|
104
|
+
case "number":
|
|
105
|
+
return Jn(o);
|
|
106
|
+
case "boolean":
|
|
107
|
+
return Qn(o);
|
|
108
|
+
case "bigint":
|
|
109
|
+
return qe ? qe(o) : "0";
|
|
110
|
+
case "symbol":
|
|
111
|
+
return Ke ? Ke(o) : "Symbol()";
|
|
112
|
+
case "undefined":
|
|
113
|
+
return gt(o);
|
|
114
|
+
case "function":
|
|
115
|
+
case "object": {
|
|
116
|
+
if (o === null) return gt(o);
|
|
117
|
+
const i = o, s = P(i, "toString");
|
|
118
|
+
if (typeof s == "function") {
|
|
119
|
+
const c = s(i);
|
|
120
|
+
return typeof c == "string" ? c : gt(c);
|
|
121
|
+
}
|
|
122
|
+
return gt(o);
|
|
123
|
+
}
|
|
124
|
+
default:
|
|
125
|
+
return gt(o);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function P(o, i) {
|
|
129
|
+
for (; o !== null; ) {
|
|
130
|
+
const c = Vn(o, i);
|
|
131
|
+
if (c) {
|
|
132
|
+
if (c.get) return E(c.get);
|
|
133
|
+
if (typeof c.value == "function") return E(c.value);
|
|
134
|
+
}
|
|
135
|
+
o = $n(o);
|
|
136
|
+
}
|
|
137
|
+
function s() {
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
return s;
|
|
141
|
+
}
|
|
142
|
+
function oo(o) {
|
|
143
|
+
try {
|
|
144
|
+
return O(o, ""), !0;
|
|
145
|
+
} catch {
|
|
146
|
+
return !1;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const Ze = y([
|
|
150
|
+
"a",
|
|
151
|
+
"abbr",
|
|
152
|
+
"acronym",
|
|
153
|
+
"address",
|
|
154
|
+
"area",
|
|
155
|
+
"article",
|
|
156
|
+
"aside",
|
|
157
|
+
"audio",
|
|
158
|
+
"b",
|
|
159
|
+
"bdi",
|
|
160
|
+
"bdo",
|
|
161
|
+
"big",
|
|
162
|
+
"blink",
|
|
163
|
+
"blockquote",
|
|
164
|
+
"body",
|
|
165
|
+
"br",
|
|
166
|
+
"button",
|
|
167
|
+
"canvas",
|
|
168
|
+
"caption",
|
|
169
|
+
"center",
|
|
170
|
+
"cite",
|
|
171
|
+
"code",
|
|
172
|
+
"col",
|
|
173
|
+
"colgroup",
|
|
174
|
+
"content",
|
|
175
|
+
"data",
|
|
176
|
+
"datalist",
|
|
177
|
+
"dd",
|
|
178
|
+
"decorator",
|
|
179
|
+
"del",
|
|
180
|
+
"details",
|
|
181
|
+
"dfn",
|
|
182
|
+
"dialog",
|
|
183
|
+
"dir",
|
|
184
|
+
"div",
|
|
185
|
+
"dl",
|
|
186
|
+
"dt",
|
|
187
|
+
"element",
|
|
188
|
+
"em",
|
|
189
|
+
"fieldset",
|
|
190
|
+
"figcaption",
|
|
191
|
+
"figure",
|
|
192
|
+
"font",
|
|
193
|
+
"footer",
|
|
194
|
+
"form",
|
|
195
|
+
"h1",
|
|
196
|
+
"h2",
|
|
197
|
+
"h3",
|
|
198
|
+
"h4",
|
|
199
|
+
"h5",
|
|
200
|
+
"h6",
|
|
201
|
+
"head",
|
|
202
|
+
"header",
|
|
203
|
+
"hgroup",
|
|
204
|
+
"hr",
|
|
205
|
+
"html",
|
|
206
|
+
"i",
|
|
207
|
+
"img",
|
|
208
|
+
"input",
|
|
209
|
+
"ins",
|
|
210
|
+
"kbd",
|
|
211
|
+
"label",
|
|
212
|
+
"legend",
|
|
213
|
+
"li",
|
|
214
|
+
"main",
|
|
215
|
+
"map",
|
|
216
|
+
"mark",
|
|
217
|
+
"marquee",
|
|
218
|
+
"menu",
|
|
219
|
+
"menuitem",
|
|
220
|
+
"meter",
|
|
221
|
+
"nav",
|
|
222
|
+
"nobr",
|
|
223
|
+
"ol",
|
|
224
|
+
"optgroup",
|
|
225
|
+
"option",
|
|
226
|
+
"output",
|
|
227
|
+
"p",
|
|
228
|
+
"picture",
|
|
229
|
+
"pre",
|
|
230
|
+
"progress",
|
|
231
|
+
"q",
|
|
232
|
+
"rp",
|
|
233
|
+
"rt",
|
|
234
|
+
"ruby",
|
|
235
|
+
"s",
|
|
236
|
+
"samp",
|
|
237
|
+
"search",
|
|
238
|
+
"section",
|
|
239
|
+
"select",
|
|
240
|
+
"shadow",
|
|
241
|
+
"slot",
|
|
242
|
+
"small",
|
|
243
|
+
"source",
|
|
244
|
+
"spacer",
|
|
245
|
+
"span",
|
|
246
|
+
"strike",
|
|
247
|
+
"strong",
|
|
248
|
+
"style",
|
|
249
|
+
"sub",
|
|
250
|
+
"summary",
|
|
251
|
+
"sup",
|
|
252
|
+
"table",
|
|
253
|
+
"tbody",
|
|
254
|
+
"td",
|
|
255
|
+
"template",
|
|
256
|
+
"textarea",
|
|
257
|
+
"tfoot",
|
|
258
|
+
"th",
|
|
259
|
+
"thead",
|
|
260
|
+
"time",
|
|
261
|
+
"tr",
|
|
262
|
+
"track",
|
|
263
|
+
"tt",
|
|
264
|
+
"u",
|
|
265
|
+
"ul",
|
|
266
|
+
"var",
|
|
267
|
+
"video",
|
|
268
|
+
"wbr"
|
|
269
|
+
]), oe = y([
|
|
270
|
+
"svg",
|
|
271
|
+
"a",
|
|
272
|
+
"altglyph",
|
|
273
|
+
"altglyphdef",
|
|
274
|
+
"altglyphitem",
|
|
275
|
+
"animatecolor",
|
|
276
|
+
"animatemotion",
|
|
277
|
+
"animatetransform",
|
|
278
|
+
"circle",
|
|
279
|
+
"clippath",
|
|
280
|
+
"defs",
|
|
281
|
+
"desc",
|
|
282
|
+
"ellipse",
|
|
283
|
+
"enterkeyhint",
|
|
284
|
+
"exportparts",
|
|
285
|
+
"filter",
|
|
286
|
+
"font",
|
|
287
|
+
"g",
|
|
288
|
+
"glyph",
|
|
289
|
+
"glyphref",
|
|
290
|
+
"hkern",
|
|
291
|
+
"image",
|
|
292
|
+
"inputmode",
|
|
293
|
+
"line",
|
|
294
|
+
"lineargradient",
|
|
295
|
+
"marker",
|
|
296
|
+
"mask",
|
|
297
|
+
"metadata",
|
|
298
|
+
"mpath",
|
|
299
|
+
"part",
|
|
300
|
+
"path",
|
|
301
|
+
"pattern",
|
|
302
|
+
"polygon",
|
|
303
|
+
"polyline",
|
|
304
|
+
"radialgradient",
|
|
305
|
+
"rect",
|
|
306
|
+
"stop",
|
|
307
|
+
"style",
|
|
308
|
+
"switch",
|
|
309
|
+
"symbol",
|
|
310
|
+
"text",
|
|
311
|
+
"textpath",
|
|
312
|
+
"title",
|
|
313
|
+
"tref",
|
|
314
|
+
"tspan",
|
|
315
|
+
"view",
|
|
316
|
+
"vkern"
|
|
317
|
+
]), re = y([
|
|
318
|
+
"feBlend",
|
|
319
|
+
"feColorMatrix",
|
|
320
|
+
"feComponentTransfer",
|
|
321
|
+
"feComposite",
|
|
322
|
+
"feConvolveMatrix",
|
|
323
|
+
"feDiffuseLighting",
|
|
324
|
+
"feDisplacementMap",
|
|
325
|
+
"feDistantLight",
|
|
326
|
+
"feDropShadow",
|
|
327
|
+
"feFlood",
|
|
328
|
+
"feFuncA",
|
|
329
|
+
"feFuncB",
|
|
330
|
+
"feFuncG",
|
|
331
|
+
"feFuncR",
|
|
332
|
+
"feGaussianBlur",
|
|
333
|
+
"feImage",
|
|
334
|
+
"feMerge",
|
|
335
|
+
"feMergeNode",
|
|
336
|
+
"feMorphology",
|
|
337
|
+
"feOffset",
|
|
338
|
+
"fePointLight",
|
|
339
|
+
"feSpecularLighting",
|
|
340
|
+
"feSpotLight",
|
|
341
|
+
"feTile",
|
|
342
|
+
"feTurbulence"
|
|
343
|
+
]), ro = y([
|
|
344
|
+
"animate",
|
|
345
|
+
"color-profile",
|
|
346
|
+
"cursor",
|
|
347
|
+
"discard",
|
|
348
|
+
"font-face",
|
|
349
|
+
"font-face-format",
|
|
350
|
+
"font-face-name",
|
|
351
|
+
"font-face-src",
|
|
352
|
+
"font-face-uri",
|
|
353
|
+
"foreignobject",
|
|
354
|
+
"hatch",
|
|
355
|
+
"hatchpath",
|
|
356
|
+
"mesh",
|
|
357
|
+
"meshgradient",
|
|
358
|
+
"meshpatch",
|
|
359
|
+
"meshrow",
|
|
360
|
+
"missing-glyph",
|
|
361
|
+
"script",
|
|
362
|
+
"set",
|
|
363
|
+
"solidcolor",
|
|
364
|
+
"unknown",
|
|
365
|
+
"use"
|
|
366
|
+
]), ie = y([
|
|
367
|
+
"math",
|
|
368
|
+
"menclose",
|
|
369
|
+
"merror",
|
|
370
|
+
"mfenced",
|
|
371
|
+
"mfrac",
|
|
372
|
+
"mglyph",
|
|
373
|
+
"mi",
|
|
374
|
+
"mlabeledtr",
|
|
375
|
+
"mmultiscripts",
|
|
376
|
+
"mn",
|
|
377
|
+
"mo",
|
|
378
|
+
"mover",
|
|
379
|
+
"mpadded",
|
|
380
|
+
"mphantom",
|
|
381
|
+
"mroot",
|
|
382
|
+
"mrow",
|
|
383
|
+
"ms",
|
|
384
|
+
"mspace",
|
|
385
|
+
"msqrt",
|
|
386
|
+
"mstyle",
|
|
387
|
+
"msub",
|
|
388
|
+
"msup",
|
|
389
|
+
"msubsup",
|
|
390
|
+
"mtable",
|
|
391
|
+
"mtd",
|
|
392
|
+
"mtext",
|
|
393
|
+
"mtr",
|
|
394
|
+
"munder",
|
|
395
|
+
"munderover",
|
|
396
|
+
"mprescripts"
|
|
397
|
+
]), io = y([
|
|
398
|
+
"maction",
|
|
399
|
+
"maligngroup",
|
|
400
|
+
"malignmark",
|
|
401
|
+
"mlongdiv",
|
|
402
|
+
"mscarries",
|
|
403
|
+
"mscarry",
|
|
404
|
+
"msgroup",
|
|
405
|
+
"mstack",
|
|
406
|
+
"msline",
|
|
407
|
+
"msrow",
|
|
408
|
+
"semantics",
|
|
409
|
+
"annotation",
|
|
410
|
+
"annotation-xml",
|
|
411
|
+
"mprescripts",
|
|
412
|
+
"none"
|
|
413
|
+
]), Je = y(["#text"]), Qe = y([
|
|
414
|
+
"accept",
|
|
415
|
+
"action",
|
|
416
|
+
"align",
|
|
417
|
+
"alt",
|
|
418
|
+
"autocapitalize",
|
|
419
|
+
"autocomplete",
|
|
420
|
+
"autopictureinpicture",
|
|
421
|
+
"autoplay",
|
|
422
|
+
"background",
|
|
423
|
+
"bgcolor",
|
|
424
|
+
"border",
|
|
425
|
+
"capture",
|
|
426
|
+
"cellpadding",
|
|
427
|
+
"cellspacing",
|
|
428
|
+
"checked",
|
|
429
|
+
"cite",
|
|
430
|
+
"class",
|
|
431
|
+
"clear",
|
|
432
|
+
"color",
|
|
433
|
+
"cols",
|
|
434
|
+
"colspan",
|
|
435
|
+
"command",
|
|
436
|
+
"commandfor",
|
|
437
|
+
"controls",
|
|
438
|
+
"controlslist",
|
|
439
|
+
"coords",
|
|
440
|
+
"crossorigin",
|
|
441
|
+
"datetime",
|
|
442
|
+
"decoding",
|
|
443
|
+
"default",
|
|
444
|
+
"dir",
|
|
445
|
+
"disabled",
|
|
446
|
+
"disablepictureinpicture",
|
|
447
|
+
"disableremoteplayback",
|
|
448
|
+
"download",
|
|
449
|
+
"draggable",
|
|
450
|
+
"enctype",
|
|
451
|
+
"enterkeyhint",
|
|
452
|
+
"exportparts",
|
|
453
|
+
"face",
|
|
454
|
+
"for",
|
|
455
|
+
"headers",
|
|
456
|
+
"height",
|
|
457
|
+
"hidden",
|
|
458
|
+
"high",
|
|
459
|
+
"href",
|
|
460
|
+
"hreflang",
|
|
461
|
+
"id",
|
|
462
|
+
"inert",
|
|
463
|
+
"inputmode",
|
|
464
|
+
"integrity",
|
|
465
|
+
"ismap",
|
|
466
|
+
"kind",
|
|
467
|
+
"label",
|
|
468
|
+
"lang",
|
|
469
|
+
"list",
|
|
470
|
+
"loading",
|
|
471
|
+
"loop",
|
|
472
|
+
"low",
|
|
473
|
+
"max",
|
|
474
|
+
"maxlength",
|
|
475
|
+
"media",
|
|
476
|
+
"method",
|
|
477
|
+
"min",
|
|
478
|
+
"minlength",
|
|
479
|
+
"multiple",
|
|
480
|
+
"muted",
|
|
481
|
+
"name",
|
|
482
|
+
"nonce",
|
|
483
|
+
"noshade",
|
|
484
|
+
"novalidate",
|
|
485
|
+
"nowrap",
|
|
486
|
+
"open",
|
|
487
|
+
"optimum",
|
|
488
|
+
"part",
|
|
489
|
+
"pattern",
|
|
490
|
+
"placeholder",
|
|
491
|
+
"playsinline",
|
|
492
|
+
"popover",
|
|
493
|
+
"popovertarget",
|
|
494
|
+
"popovertargetaction",
|
|
495
|
+
"poster",
|
|
496
|
+
"preload",
|
|
497
|
+
"pubdate",
|
|
498
|
+
"radiogroup",
|
|
499
|
+
"readonly",
|
|
500
|
+
"rel",
|
|
501
|
+
"required",
|
|
502
|
+
"rev",
|
|
503
|
+
"reversed",
|
|
504
|
+
"role",
|
|
505
|
+
"rows",
|
|
506
|
+
"rowspan",
|
|
507
|
+
"spellcheck",
|
|
508
|
+
"scope",
|
|
509
|
+
"selected",
|
|
510
|
+
"shape",
|
|
511
|
+
"size",
|
|
512
|
+
"sizes",
|
|
513
|
+
"slot",
|
|
514
|
+
"span",
|
|
515
|
+
"srclang",
|
|
516
|
+
"start",
|
|
517
|
+
"src",
|
|
518
|
+
"srcset",
|
|
519
|
+
"step",
|
|
520
|
+
"style",
|
|
521
|
+
"summary",
|
|
522
|
+
"tabindex",
|
|
523
|
+
"title",
|
|
524
|
+
"translate",
|
|
525
|
+
"type",
|
|
526
|
+
"usemap",
|
|
527
|
+
"valign",
|
|
528
|
+
"value",
|
|
529
|
+
"width",
|
|
530
|
+
"wrap",
|
|
531
|
+
"xmlns"
|
|
532
|
+
]), ae = y([
|
|
533
|
+
"accent-height",
|
|
534
|
+
"accumulate",
|
|
535
|
+
"additive",
|
|
536
|
+
"alignment-baseline",
|
|
537
|
+
"amplitude",
|
|
538
|
+
"ascent",
|
|
539
|
+
"attributename",
|
|
540
|
+
"attributetype",
|
|
541
|
+
"azimuth",
|
|
542
|
+
"basefrequency",
|
|
543
|
+
"baseline-shift",
|
|
544
|
+
"begin",
|
|
545
|
+
"bias",
|
|
546
|
+
"by",
|
|
547
|
+
"class",
|
|
548
|
+
"clip",
|
|
549
|
+
"clippathunits",
|
|
550
|
+
"clip-path",
|
|
551
|
+
"clip-rule",
|
|
552
|
+
"color",
|
|
553
|
+
"color-interpolation",
|
|
554
|
+
"color-interpolation-filters",
|
|
555
|
+
"color-profile",
|
|
556
|
+
"color-rendering",
|
|
557
|
+
"cx",
|
|
558
|
+
"cy",
|
|
559
|
+
"d",
|
|
560
|
+
"dx",
|
|
561
|
+
"dy",
|
|
562
|
+
"diffuseconstant",
|
|
563
|
+
"direction",
|
|
564
|
+
"display",
|
|
565
|
+
"divisor",
|
|
566
|
+
"dominant-baseline",
|
|
567
|
+
"dur",
|
|
568
|
+
"edgemode",
|
|
569
|
+
"elevation",
|
|
570
|
+
"end",
|
|
571
|
+
"exponent",
|
|
572
|
+
"fill",
|
|
573
|
+
"fill-opacity",
|
|
574
|
+
"fill-rule",
|
|
575
|
+
"filter",
|
|
576
|
+
"filterunits",
|
|
577
|
+
"flood-color",
|
|
578
|
+
"flood-opacity",
|
|
579
|
+
"font-family",
|
|
580
|
+
"font-size",
|
|
581
|
+
"font-size-adjust",
|
|
582
|
+
"font-stretch",
|
|
583
|
+
"font-style",
|
|
584
|
+
"font-variant",
|
|
585
|
+
"font-weight",
|
|
586
|
+
"fx",
|
|
587
|
+
"fy",
|
|
588
|
+
"g1",
|
|
589
|
+
"g2",
|
|
590
|
+
"glyph-name",
|
|
591
|
+
"glyphref",
|
|
592
|
+
"gradientunits",
|
|
593
|
+
"gradienttransform",
|
|
594
|
+
"height",
|
|
595
|
+
"href",
|
|
596
|
+
"id",
|
|
597
|
+
"image-rendering",
|
|
598
|
+
"in",
|
|
599
|
+
"in2",
|
|
600
|
+
"intercept",
|
|
601
|
+
"k",
|
|
602
|
+
"k1",
|
|
603
|
+
"k2",
|
|
604
|
+
"k3",
|
|
605
|
+
"k4",
|
|
606
|
+
"kerning",
|
|
607
|
+
"keypoints",
|
|
608
|
+
"keysplines",
|
|
609
|
+
"keytimes",
|
|
610
|
+
"lang",
|
|
611
|
+
"lengthadjust",
|
|
612
|
+
"letter-spacing",
|
|
613
|
+
"kernelmatrix",
|
|
614
|
+
"kernelunitlength",
|
|
615
|
+
"lighting-color",
|
|
616
|
+
"local",
|
|
617
|
+
"marker-end",
|
|
618
|
+
"marker-mid",
|
|
619
|
+
"marker-start",
|
|
620
|
+
"markerheight",
|
|
621
|
+
"markerunits",
|
|
622
|
+
"markerwidth",
|
|
623
|
+
"maskcontentunits",
|
|
624
|
+
"maskunits",
|
|
625
|
+
"max",
|
|
626
|
+
"mask",
|
|
627
|
+
"mask-type",
|
|
628
|
+
"media",
|
|
629
|
+
"method",
|
|
630
|
+
"mode",
|
|
631
|
+
"min",
|
|
632
|
+
"name",
|
|
633
|
+
"numoctaves",
|
|
634
|
+
"offset",
|
|
635
|
+
"operator",
|
|
636
|
+
"opacity",
|
|
637
|
+
"order",
|
|
638
|
+
"orient",
|
|
639
|
+
"orientation",
|
|
640
|
+
"origin",
|
|
641
|
+
"overflow",
|
|
642
|
+
"paint-order",
|
|
643
|
+
"path",
|
|
644
|
+
"pathlength",
|
|
645
|
+
"patterncontentunits",
|
|
646
|
+
"patterntransform",
|
|
647
|
+
"patternunits",
|
|
648
|
+
"pointer-events",
|
|
649
|
+
"points",
|
|
650
|
+
"preservealpha",
|
|
651
|
+
"preserveaspectratio",
|
|
652
|
+
"primitiveunits",
|
|
653
|
+
"r",
|
|
654
|
+
"rx",
|
|
655
|
+
"ry",
|
|
656
|
+
"radius",
|
|
657
|
+
"refx",
|
|
658
|
+
"refy",
|
|
659
|
+
"repeatcount",
|
|
660
|
+
"repeatdur",
|
|
661
|
+
"restart",
|
|
662
|
+
"result",
|
|
663
|
+
"rotate",
|
|
664
|
+
"scale",
|
|
665
|
+
"seed",
|
|
666
|
+
"shape-rendering",
|
|
667
|
+
"slope",
|
|
668
|
+
"specularconstant",
|
|
669
|
+
"specularexponent",
|
|
670
|
+
"spreadmethod",
|
|
671
|
+
"startoffset",
|
|
672
|
+
"stddeviation",
|
|
673
|
+
"stitchtiles",
|
|
674
|
+
"stop-color",
|
|
675
|
+
"stop-opacity",
|
|
676
|
+
"stroke-dasharray",
|
|
677
|
+
"stroke-dashoffset",
|
|
678
|
+
"stroke-linecap",
|
|
679
|
+
"stroke-linejoin",
|
|
680
|
+
"stroke-miterlimit",
|
|
681
|
+
"stroke-opacity",
|
|
682
|
+
"stroke",
|
|
683
|
+
"stroke-width",
|
|
684
|
+
"style",
|
|
685
|
+
"surfacescale",
|
|
686
|
+
"systemlanguage",
|
|
687
|
+
"tabindex",
|
|
688
|
+
"tablevalues",
|
|
689
|
+
"targetx",
|
|
690
|
+
"targety",
|
|
691
|
+
"transform",
|
|
692
|
+
"transform-origin",
|
|
693
|
+
"text-anchor",
|
|
694
|
+
"text-decoration",
|
|
695
|
+
"text-orientation",
|
|
696
|
+
"text-rendering",
|
|
697
|
+
"textlength",
|
|
698
|
+
"type",
|
|
699
|
+
"u1",
|
|
700
|
+
"u2",
|
|
701
|
+
"unicode",
|
|
702
|
+
"values",
|
|
703
|
+
"vector-effect",
|
|
704
|
+
"viewbox",
|
|
705
|
+
"visibility",
|
|
706
|
+
"version",
|
|
707
|
+
"vert-adv-y",
|
|
708
|
+
"vert-origin-x",
|
|
709
|
+
"vert-origin-y",
|
|
710
|
+
"width",
|
|
711
|
+
"word-spacing",
|
|
712
|
+
"wrap",
|
|
713
|
+
"writing-mode",
|
|
714
|
+
"xchannelselector",
|
|
715
|
+
"ychannelselector",
|
|
716
|
+
"x",
|
|
717
|
+
"x1",
|
|
718
|
+
"x2",
|
|
719
|
+
"xmlns",
|
|
720
|
+
"y",
|
|
721
|
+
"y1",
|
|
722
|
+
"y2",
|
|
723
|
+
"z",
|
|
724
|
+
"zoomandpan"
|
|
725
|
+
]), tn = y([
|
|
726
|
+
"accent",
|
|
727
|
+
"accentunder",
|
|
728
|
+
"align",
|
|
729
|
+
"bevelled",
|
|
730
|
+
"close",
|
|
731
|
+
"columnalign",
|
|
732
|
+
"columnlines",
|
|
733
|
+
"columnspacing",
|
|
734
|
+
"columnspan",
|
|
735
|
+
"denomalign",
|
|
736
|
+
"depth",
|
|
737
|
+
"dir",
|
|
738
|
+
"display",
|
|
739
|
+
"displaystyle",
|
|
740
|
+
"encoding",
|
|
741
|
+
"fence",
|
|
742
|
+
"frame",
|
|
743
|
+
"height",
|
|
744
|
+
"href",
|
|
745
|
+
"id",
|
|
746
|
+
"largeop",
|
|
747
|
+
"length",
|
|
748
|
+
"linethickness",
|
|
749
|
+
"lquote",
|
|
750
|
+
"lspace",
|
|
751
|
+
"mathbackground",
|
|
752
|
+
"mathcolor",
|
|
753
|
+
"mathsize",
|
|
754
|
+
"mathvariant",
|
|
755
|
+
"maxsize",
|
|
756
|
+
"minsize",
|
|
757
|
+
"movablelimits",
|
|
758
|
+
"notation",
|
|
759
|
+
"numalign",
|
|
760
|
+
"open",
|
|
761
|
+
"rowalign",
|
|
762
|
+
"rowlines",
|
|
763
|
+
"rowspacing",
|
|
764
|
+
"rowspan",
|
|
765
|
+
"rspace",
|
|
766
|
+
"rquote",
|
|
767
|
+
"scriptlevel",
|
|
768
|
+
"scriptminsize",
|
|
769
|
+
"scriptsizemultiplier",
|
|
770
|
+
"selection",
|
|
771
|
+
"separator",
|
|
772
|
+
"separators",
|
|
773
|
+
"stretchy",
|
|
774
|
+
"subscriptshift",
|
|
775
|
+
"supscriptshift",
|
|
776
|
+
"symmetric",
|
|
777
|
+
"voffset",
|
|
778
|
+
"width",
|
|
779
|
+
"xmlns"
|
|
780
|
+
]), xt = y([
|
|
781
|
+
"xlink:href",
|
|
782
|
+
"xml:id",
|
|
783
|
+
"xlink:title",
|
|
784
|
+
"xml:space",
|
|
785
|
+
"xmlns:xlink"
|
|
786
|
+
]), ao = b(/{{[\w\W]*|^[\w\W]*}}/g), so = b(/<%[\w\W]*|^[\w\W]*%>/g), lo = b(/\${[\w\W]*/g), co = b(/^data-[\-\w.\u00B7-\uFFFF]+$/), uo = b(/^aria-[\-\w]+$/), en = b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), fo = b(/^(?:\w+script|data):/i), po = b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), mo = b(/^html$/i), To = b(/^[a-z][.\w]*(-[.\w]+)+$/i), nn = b(/<[/\w!]/g), on = b(/<[/\w]/g), ho = b(/<\/no(script|embed|frames)/i), _o = b(/\/>/i), N = {
|
|
787
|
+
element: 1,
|
|
788
|
+
attribute: 2,
|
|
789
|
+
text: 3,
|
|
790
|
+
cdataSection: 4,
|
|
791
|
+
entityReference: 5,
|
|
792
|
+
entityNode: 6,
|
|
793
|
+
processingInstruction: 7,
|
|
794
|
+
comment: 8,
|
|
795
|
+
document: 9,
|
|
796
|
+
documentType: 10,
|
|
797
|
+
documentFragment: 11,
|
|
798
|
+
notation: 12
|
|
799
|
+
}, ln = [
|
|
800
|
+
"style",
|
|
801
|
+
"script",
|
|
802
|
+
"xmp",
|
|
803
|
+
"iframe",
|
|
804
|
+
"noembed",
|
|
805
|
+
"noframes",
|
|
806
|
+
"plaintext",
|
|
807
|
+
"noscript"
|
|
808
|
+
], go = y(m({}, ln)), Ao = (function() {
|
|
809
|
+
const o = {};
|
|
810
|
+
return V(ln, (i) => {
|
|
811
|
+
o[i] = b(new RegExp("</" + i + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
812
|
+
}), y(o);
|
|
813
|
+
})(), Eo = function() {
|
|
814
|
+
return typeof window > "u" ? null : window;
|
|
815
|
+
}, yo = function(i, s) {
|
|
816
|
+
if (typeof i != "object" || typeof i.createPolicy != "function") return null;
|
|
817
|
+
let c = null;
|
|
818
|
+
const u = "data-tt-policy-suffix";
|
|
819
|
+
s && s.hasAttribute(u) && (c = s.getAttribute(u));
|
|
820
|
+
const d = "dompurify" + (c ? "#" + c : "");
|
|
821
|
+
try {
|
|
822
|
+
return i.createPolicy(d, {
|
|
823
|
+
createHTML(S) {
|
|
824
|
+
return S;
|
|
825
|
+
},
|
|
826
|
+
createScriptURL(S) {
|
|
827
|
+
return S;
|
|
828
|
+
}
|
|
829
|
+
});
|
|
830
|
+
} catch {
|
|
831
|
+
return console.warn("TrustedTypes policy " + d + " could not be created."), null;
|
|
832
|
+
}
|
|
833
|
+
}, rn = function() {
|
|
834
|
+
return {
|
|
835
|
+
afterSanitizeAttributes: [],
|
|
836
|
+
afterSanitizeElements: [],
|
|
837
|
+
afterSanitizeShadowDOM: [],
|
|
838
|
+
beforeSanitizeAttributes: [],
|
|
839
|
+
beforeSanitizeElements: [],
|
|
840
|
+
beforeSanitizeShadowDOM: [],
|
|
841
|
+
uponSanitizeAttribute: [],
|
|
842
|
+
uponSanitizeElement: [],
|
|
843
|
+
uponSanitizeShadowNode: []
|
|
844
|
+
};
|
|
845
|
+
}, W = function(i, s, c, u) {
|
|
846
|
+
return L(i, s) && ct(i[s]) ? m(u.base ? C(u.base) : {}, i[s], u.transform) : c;
|
|
847
|
+
}, se = function(i, s, c) {
|
|
848
|
+
const u = L(i, s) ? i[s] : void 0;
|
|
849
|
+
return u && typeof u == "object" ? C(u) : c();
|
|
850
|
+
};
|
|
851
|
+
function cn() {
|
|
852
|
+
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Eo();
|
|
853
|
+
const i = (r) => cn(r);
|
|
854
|
+
if (i.version = "3.4.16", i.removed = [], !o || !o.document || o.document.nodeType !== N.document || !o.Element)
|
|
855
|
+
return i.isSupported = !1, i;
|
|
856
|
+
let s = o.document;
|
|
857
|
+
const c = s, u = c.currentScript;
|
|
858
|
+
o.DocumentFragment;
|
|
859
|
+
const d = o.HTMLTemplateElement, S = o.Node, ut = o.Element, w = o.NodeFilter;
|
|
860
|
+
o.NamedNodeMap === void 0 && (o.NamedNodeMap || o.MozNamedAttrMap), o.HTMLFormElement;
|
|
861
|
+
const Et = o.DOMParser, q = o.trustedTypes, U = ut.prototype, fn = P(U, "cloneNode"), kt = P(U, "remove"), ue = P(U, "removeAttributeNode"), pn = P(U, "nextSibling"), K = P(U, "childNodes"), Z = P(U, "parentNode"), fe = P(U, "shadowRoot"), Ut = P(U, "attributes"), B = S && S.prototype ? P(S.prototype, "nodeType") : null, J = S && S.prototype ? P(S.prototype, "nodeName") : null, yt = S && S.prototype ? P(S.prototype, "ownerDocument") : null, ft = function(t) {
|
|
862
|
+
return B ? B(t) : t.nodeType;
|
|
863
|
+
}, Ft = function(t) {
|
|
864
|
+
return J ? J(t) : t.nodeName;
|
|
865
|
+
};
|
|
866
|
+
if (typeof d == "function") {
|
|
867
|
+
const r = s.createElement("template");
|
|
868
|
+
r.content && r.content.ownerDocument && (s = r.content.ownerDocument);
|
|
869
|
+
}
|
|
870
|
+
let D, Y = "", zt, pe = !1, pt = 0;
|
|
871
|
+
const me = function() {
|
|
872
|
+
if (pt > 0) throw G('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.');
|
|
873
|
+
}, Q = function(t) {
|
|
874
|
+
me(), pt++;
|
|
875
|
+
try {
|
|
876
|
+
return D.createHTML(t);
|
|
877
|
+
} finally {
|
|
878
|
+
pt--;
|
|
879
|
+
}
|
|
880
|
+
}, mn = function(t) {
|
|
881
|
+
me(), pt++;
|
|
882
|
+
try {
|
|
883
|
+
return D.createScriptURL(t);
|
|
884
|
+
} finally {
|
|
885
|
+
pt--;
|
|
886
|
+
}
|
|
887
|
+
}, dn = function() {
|
|
888
|
+
return pe || (zt = yo(q, u), pe = !0), zt;
|
|
889
|
+
}, St = s, Ht = St.implementation, de = St.createNodeIterator, Tn = St.createDocumentFragment, hn = St.getElementsByTagName, _n = c.importNode;
|
|
890
|
+
let T = rn();
|
|
891
|
+
i.isSupported = typeof an == "function" && typeof Z == "function" && Ht && Ht.createHTMLDocument !== void 0;
|
|
892
|
+
const gn = ao, An = so, En = lo, yn = co, Sn = uo, bn = fo, Te = po, On = To;
|
|
893
|
+
let he = en, h = null;
|
|
894
|
+
const Gt = m({}, [
|
|
895
|
+
...Ze,
|
|
896
|
+
...oe,
|
|
897
|
+
...re,
|
|
898
|
+
...ie,
|
|
899
|
+
...Je
|
|
900
|
+
]);
|
|
901
|
+
let _ = null;
|
|
902
|
+
const Wt = m({}, [
|
|
903
|
+
...Qe,
|
|
904
|
+
...ae,
|
|
905
|
+
...tn,
|
|
906
|
+
...xt
|
|
907
|
+
]);
|
|
908
|
+
let v = Object.seal(lt(null, {
|
|
909
|
+
tagNameCheck: {
|
|
910
|
+
writable: !0,
|
|
911
|
+
configurable: !1,
|
|
912
|
+
enumerable: !0,
|
|
913
|
+
value: null
|
|
914
|
+
},
|
|
915
|
+
attributeNameCheck: {
|
|
916
|
+
writable: !0,
|
|
917
|
+
configurable: !1,
|
|
918
|
+
enumerable: !0,
|
|
919
|
+
value: null
|
|
920
|
+
},
|
|
921
|
+
allowCustomizedBuiltInElements: {
|
|
922
|
+
writable: !0,
|
|
923
|
+
configurable: !1,
|
|
924
|
+
enumerable: !0,
|
|
925
|
+
value: !1
|
|
926
|
+
}
|
|
927
|
+
})), mt = null, _e = null;
|
|
928
|
+
const F = Object.seal(lt(null, {
|
|
929
|
+
tagCheck: {
|
|
930
|
+
writable: !0,
|
|
931
|
+
configurable: !1,
|
|
932
|
+
enumerable: !0,
|
|
933
|
+
value: null
|
|
934
|
+
},
|
|
935
|
+
attributeCheck: {
|
|
936
|
+
writable: !0,
|
|
937
|
+
configurable: !1,
|
|
938
|
+
enumerable: !0,
|
|
939
|
+
value: null
|
|
940
|
+
}
|
|
941
|
+
}));
|
|
942
|
+
let ge = !0, Bt = !0, Ae = !1, Ee = !0, z = !1, j = !0, X = !1, Yt = !1, bt = null, Ot = null, jt = !1, tt = !1, Rt = !1, Dt = !1, ye = !0, Se = !1;
|
|
943
|
+
const be = "user-content-";
|
|
944
|
+
let Xt = !0, $t = !1, et = {}, nt = null;
|
|
945
|
+
const Oe = m({}, [
|
|
946
|
+
"annotation-xml",
|
|
947
|
+
"audio",
|
|
948
|
+
"colgroup",
|
|
949
|
+
"desc",
|
|
950
|
+
"foreignobject",
|
|
951
|
+
"head",
|
|
952
|
+
"iframe",
|
|
953
|
+
"math",
|
|
954
|
+
"mi",
|
|
955
|
+
"mn",
|
|
956
|
+
"mo",
|
|
957
|
+
"ms",
|
|
958
|
+
"mtext",
|
|
959
|
+
"noembed",
|
|
960
|
+
"noframes",
|
|
961
|
+
"noscript",
|
|
962
|
+
"plaintext",
|
|
963
|
+
"script",
|
|
964
|
+
"selectedcontent",
|
|
965
|
+
"style",
|
|
966
|
+
"svg",
|
|
967
|
+
"template",
|
|
968
|
+
"thead",
|
|
969
|
+
"title",
|
|
970
|
+
"video",
|
|
971
|
+
"xmp"
|
|
972
|
+
]);
|
|
973
|
+
let Re = null;
|
|
974
|
+
const De = m({}, [
|
|
975
|
+
"audio",
|
|
976
|
+
"video",
|
|
977
|
+
"img",
|
|
978
|
+
"source",
|
|
979
|
+
"image",
|
|
980
|
+
"track"
|
|
981
|
+
]);
|
|
982
|
+
let Le = null;
|
|
983
|
+
const we = m({}, [
|
|
984
|
+
"alt",
|
|
985
|
+
"class",
|
|
986
|
+
"for",
|
|
987
|
+
"id",
|
|
988
|
+
"label",
|
|
989
|
+
"name",
|
|
990
|
+
"pattern",
|
|
991
|
+
"placeholder",
|
|
992
|
+
"role",
|
|
993
|
+
"summary",
|
|
994
|
+
"title",
|
|
995
|
+
"value",
|
|
996
|
+
"style",
|
|
997
|
+
"xmlns"
|
|
998
|
+
]), Lt = "http://www.w3.org/1998/Math/MathML", wt = "http://www.w3.org/2000/svg", x = "http://www.w3.org/1999/xhtml";
|
|
999
|
+
let ot = x, Vt = !1, qt = null;
|
|
1000
|
+
const Rn = m({}, [
|
|
1001
|
+
Lt,
|
|
1002
|
+
wt,
|
|
1003
|
+
x
|
|
1004
|
+
], ne), Ie = y([
|
|
1005
|
+
"mi",
|
|
1006
|
+
"mo",
|
|
1007
|
+
"mn",
|
|
1008
|
+
"ms",
|
|
1009
|
+
"mtext"
|
|
1010
|
+
]);
|
|
1011
|
+
let Kt = m({}, Ie);
|
|
1012
|
+
const Ne = y(["annotation-xml"]);
|
|
1013
|
+
let Zt = m({}, Ne);
|
|
1014
|
+
const Dn = m({}, [
|
|
1015
|
+
"title",
|
|
1016
|
+
"style",
|
|
1017
|
+
"font",
|
|
1018
|
+
"a",
|
|
1019
|
+
"script"
|
|
1020
|
+
]);
|
|
1021
|
+
let dt = null;
|
|
1022
|
+
const Ln = ["application/xhtml+xml", "text/html"], wn = "text/html";
|
|
1023
|
+
let A = null, rt = null;
|
|
1024
|
+
const In = s.createElement("form"), Ce = function(t) {
|
|
1025
|
+
return t instanceof RegExp || t instanceof Function;
|
|
1026
|
+
}, Jt = function() {
|
|
1027
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1028
|
+
if (rt && rt === t) return;
|
|
1029
|
+
(!t || typeof t != "object") && (t = {}), t = C(t), dt = Ln.indexOf(t.PARSER_MEDIA_TYPE) === -1 ? wn : t.PARSER_MEDIA_TYPE, A = dt === "application/xhtml+xml" ? ne : At, h = W(t, "ALLOWED_TAGS", Gt, { transform: A }), _ = W(t, "ALLOWED_ATTR", Wt, { transform: A }), qt = W(t, "ALLOWED_NAMESPACES", Rn, { transform: ne }), Le = W(t, "ADD_URI_SAFE_ATTR", we, {
|
|
1030
|
+
transform: A,
|
|
1031
|
+
base: we
|
|
1032
|
+
}), Re = W(t, "ADD_DATA_URI_TAGS", De, {
|
|
1033
|
+
transform: A,
|
|
1034
|
+
base: De
|
|
1035
|
+
}), nt = W(t, "FORBID_CONTENTS", Oe, { transform: A }), mt = W(t, "FORBID_TAGS", C({}), { transform: A }), _e = W(t, "FORBID_ATTR", C({}), { transform: A }), et = L(t, "USE_PROFILES") ? t.USE_PROFILES && typeof t.USE_PROFILES == "object" ? C(t.USE_PROFILES) : t.USE_PROFILES : !1, ge = t.ALLOW_ARIA_ATTR !== !1, Bt = t.ALLOW_DATA_ATTR !== !1, Ae = t.ALLOW_UNKNOWN_PROTOCOLS || !1, Ee = t.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = t.SAFE_FOR_TEMPLATES || !1, j = t.SAFE_FOR_XML !== !1, X = t.WHOLE_DOCUMENT || !1, tt = t.RETURN_DOM || !1, Rt = t.RETURN_DOM_FRAGMENT || !1, Dt = t.RETURN_TRUSTED_TYPE || !1, jt = t.FORCE_BODY || !1, ye = t.SANITIZE_DOM !== !1, Se = t.SANITIZE_NAMED_PROPS || !1, Xt = t.KEEP_CONTENT !== !1, $t = t.IN_PLACE || !1, he = oo(t.ALLOWED_URI_REGEXP) ? t.ALLOWED_URI_REGEXP : en, ot = typeof t.NAMESPACE == "string" ? t.NAMESPACE : x, Kt = se(t, "MATHML_TEXT_INTEGRATION_POINTS", () => m({}, Ie)), Zt = se(t, "HTML_INTEGRATION_POINTS", () => m({}, Ne));
|
|
1036
|
+
const e = se(t, "CUSTOM_ELEMENT_HANDLING", () => lt(null));
|
|
1037
|
+
if (v = lt(null), L(e, "tagNameCheck") && Ce(e.tagNameCheck) && (v.tagNameCheck = e.tagNameCheck), L(e, "attributeNameCheck") && Ce(e.attributeNameCheck) && (v.attributeNameCheck = e.attributeNameCheck), L(e, "allowCustomizedBuiltInElements") && typeof e.allowCustomizedBuiltInElements == "boolean" && (v.allowCustomizedBuiltInElements = e.allowCustomizedBuiltInElements), b(v), z && (Bt = !1), Rt && (tt = !0), et && (h = m({}, Je), _ = lt(null), et.html === !0 && (m(h, Ze), m(_, Qe)), et.svg === !0 && (m(h, oe), m(_, ae), m(_, xt)), et.svgFilters === !0 && (m(h, re), m(_, ae), m(_, xt)), et.mathMl === !0 && (m(h, ie), m(_, tn), m(_, xt))), F.tagCheck = null, F.attributeCheck = null, L(t, "ADD_TAGS") && (typeof t.ADD_TAGS == "function" ? F.tagCheck = t.ADD_TAGS : ct(t.ADD_TAGS) && (h === Gt && (h = C(h)), m(h, t.ADD_TAGS, A))), L(t, "ADD_ATTR") && (typeof t.ADD_ATTR == "function" ? F.attributeCheck = t.ADD_ATTR : ct(t.ADD_ATTR) && (_ === Wt && (_ = C(_)), m(_, t.ADD_ATTR, A))), L(t, "ADD_FORBID_CONTENTS") && ct(t.ADD_FORBID_CONTENTS) && (nt === Oe && (nt = C(nt)), m(nt, t.ADD_FORBID_CONTENTS, A)), Xt && (h["#text"] = !0), X && m(h, [
|
|
1038
|
+
"html",
|
|
1039
|
+
"head",
|
|
1040
|
+
"body"
|
|
1041
|
+
]), h.table && (m(h, ["tbody"]), delete mt.tbody), t.TRUSTED_TYPES_POLICY) {
|
|
1042
|
+
if (typeof t.TRUSTED_TYPES_POLICY.createHTML != "function") throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1043
|
+
if (typeof t.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1044
|
+
const n = D;
|
|
1045
|
+
D = t.TRUSTED_TYPES_POLICY;
|
|
1046
|
+
try {
|
|
1047
|
+
Y = Q("");
|
|
1048
|
+
} catch (a) {
|
|
1049
|
+
throw D = n, a;
|
|
1050
|
+
}
|
|
1051
|
+
} else t.TRUSTED_TYPES_POLICY === null ? (D = void 0, Y = "") : (D === void 0 && (D = dn()), D && typeof Y == "string" && (Y = Q("")));
|
|
1052
|
+
y && y(t), rt = t;
|
|
1053
|
+
}, Me = m({}, [
|
|
1054
|
+
...oe,
|
|
1055
|
+
...re,
|
|
1056
|
+
...ro
|
|
1057
|
+
]), Pe = m({}, [...ie, ...io]), Nn = function(t, e, n) {
|
|
1058
|
+
return e.namespaceURI === x ? t === "svg" : e.namespaceURI === Lt ? t === "svg" && (n === "annotation-xml" || Kt[n]) : !!Me[t];
|
|
1059
|
+
}, Cn = function(t, e, n) {
|
|
1060
|
+
return e.namespaceURI === x ? t === "math" : e.namespaceURI === wt ? t === "math" && Zt[n] : !!Pe[t];
|
|
1061
|
+
}, Mn = function(t, e, n) {
|
|
1062
|
+
return e.namespaceURI === wt && !Zt[n] || e.namespaceURI === Lt && !Kt[n] ? !1 : !Pe[t] && (Dn[t] || !Me[t]);
|
|
1063
|
+
}, Pn = function(t) {
|
|
1064
|
+
let e = Z(t);
|
|
1065
|
+
(!e || !e.tagName) && (e = {
|
|
1066
|
+
namespaceURI: ot,
|
|
1067
|
+
tagName: "template"
|
|
1068
|
+
});
|
|
1069
|
+
const n = At(t.tagName), a = At(e.tagName);
|
|
1070
|
+
return qt[t.namespaceURI] ? t.namespaceURI === wt ? Nn(n, e, a) : t.namespaceURI === Lt ? Cn(n, e, a) : t.namespaceURI === x ? Mn(n, e, a) : !!(dt === "application/xhtml+xml" && qt[t.namespaceURI]) : !1;
|
|
1071
|
+
}, H = function(t) {
|
|
1072
|
+
ht(i.removed, { element: t });
|
|
1073
|
+
try {
|
|
1074
|
+
Z(t).removeChild(t);
|
|
1075
|
+
} catch {
|
|
1076
|
+
if (kt(t), !Z(t)) throw G("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
1077
|
+
}
|
|
1078
|
+
}, ve = function(t, e, n) {
|
|
1079
|
+
try {
|
|
1080
|
+
ue(t, e);
|
|
1081
|
+
} catch {
|
|
1082
|
+
try {
|
|
1083
|
+
t.removeAttribute(n);
|
|
1084
|
+
} catch {
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
}, It = function(t) {
|
|
1088
|
+
Nt(t);
|
|
1089
|
+
const e = K(t);
|
|
1090
|
+
if (e) {
|
|
1091
|
+
const a = [];
|
|
1092
|
+
V(e, (l) => {
|
|
1093
|
+
ht(a, l);
|
|
1094
|
+
}), V(a, (l) => {
|
|
1095
|
+
try {
|
|
1096
|
+
kt(l);
|
|
1097
|
+
} catch {
|
|
1098
|
+
}
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
const n = Ut(t);
|
|
1102
|
+
if (n) for (let a = n.length - 1; a >= 0; --a) {
|
|
1103
|
+
const l = n[a], f = l && l.name;
|
|
1104
|
+
typeof f == "string" && ve(t, l, f);
|
|
1105
|
+
}
|
|
1106
|
+
}, $ = function(t, e, n) {
|
|
1107
|
+
if (!n) try {
|
|
1108
|
+
n = e.getAttributeNode(t);
|
|
1109
|
+
} catch {
|
|
1110
|
+
n = null;
|
|
1111
|
+
}
|
|
1112
|
+
ht(i.removed, {
|
|
1113
|
+
attribute: n || null,
|
|
1114
|
+
from: e
|
|
1115
|
+
});
|
|
1116
|
+
try {
|
|
1117
|
+
n ? ue(e, n) : e.removeAttribute(t);
|
|
1118
|
+
} catch {
|
|
1119
|
+
try {
|
|
1120
|
+
e.removeAttribute(t);
|
|
1121
|
+
} catch {
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
if (t === "is")
|
|
1125
|
+
if (tt || Rt) try {
|
|
1126
|
+
H(e);
|
|
1127
|
+
} catch {
|
|
1128
|
+
}
|
|
1129
|
+
else try {
|
|
1130
|
+
e.setAttribute(t, "");
|
|
1131
|
+
} catch {
|
|
1132
|
+
}
|
|
1133
|
+
}, vn = function(t) {
|
|
1134
|
+
const e = Ut(t);
|
|
1135
|
+
if (e)
|
|
1136
|
+
for (let n = e.length - 1; n >= 0; --n) {
|
|
1137
|
+
const a = e[n], l = a && a.name;
|
|
1138
|
+
typeof l != "string" || _[A(l)] || ve(t, a, l);
|
|
1139
|
+
}
|
|
1140
|
+
}, Nt = function(t) {
|
|
1141
|
+
const e = [t];
|
|
1142
|
+
for (; e.length > 0; ) {
|
|
1143
|
+
const n = e.pop();
|
|
1144
|
+
ft(n) === N.element && vn(n);
|
|
1145
|
+
const a = K(n);
|
|
1146
|
+
if (a) for (let l = a.length - 1; l >= 0; --l) e.push(a[l]);
|
|
1147
|
+
}
|
|
1148
|
+
}, xe = function(t, e) {
|
|
1149
|
+
return j ? t === "patchsrc" ? !0 : t === "for" && e !== "label" && e !== "output" : !1;
|
|
1150
|
+
}, xn = function(t) {
|
|
1151
|
+
if (!j) return;
|
|
1152
|
+
const e = [t];
|
|
1153
|
+
for (; e.length > 0; ) {
|
|
1154
|
+
const n = e.pop(), a = ft(n);
|
|
1155
|
+
if (a === N.processingInstruction || a === N.comment && O(on, n.data)) {
|
|
1156
|
+
try {
|
|
1157
|
+
kt(n);
|
|
1158
|
+
} catch {
|
|
1159
|
+
}
|
|
1160
|
+
continue;
|
|
1161
|
+
}
|
|
1162
|
+
if (a === N.element) {
|
|
1163
|
+
const f = n, p = A(Ft(n));
|
|
1164
|
+
try {
|
|
1165
|
+
f.hasAttribute && f.hasAttribute("patchsrc") && f.removeAttribute("patchsrc"), f.hasAttribute && f.hasAttribute("for") && xe("for", p) && f.removeAttribute("for");
|
|
1166
|
+
} catch {
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
const l = K(n);
|
|
1170
|
+
if (l) for (let f = l.length - 1; f >= 0; --f) e.push(l[f]);
|
|
1171
|
+
}
|
|
1172
|
+
}, ke = function(t) {
|
|
1173
|
+
let e = null, n = null;
|
|
1174
|
+
if (jt) t = "<remove></remove>" + t;
|
|
1175
|
+
else {
|
|
1176
|
+
const f = $e(t, /^[\r\n\t ]+/);
|
|
1177
|
+
n = f && f[0];
|
|
1178
|
+
}
|
|
1179
|
+
dt === "application/xhtml+xml" && ot === x && (t = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + t + "</body></html>");
|
|
1180
|
+
const a = D ? Q(t) : t;
|
|
1181
|
+
if (ot === x) try {
|
|
1182
|
+
e = new Et().parseFromString(a, dt);
|
|
1183
|
+
} catch {
|
|
1184
|
+
}
|
|
1185
|
+
if (!e || !e.documentElement) {
|
|
1186
|
+
e = Ht.createDocument(ot, "template", null);
|
|
1187
|
+
try {
|
|
1188
|
+
e.documentElement.innerHTML = Vt ? Y : a;
|
|
1189
|
+
} catch {
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
const l = e.body || e.documentElement;
|
|
1193
|
+
return t && n && l.insertBefore(s.createTextNode(n), l.childNodes[0] || null), ot === x ? hn.call(e, X ? "html" : "body")[0] : X ? e.documentElement : l;
|
|
1194
|
+
}, Ue = function(t) {
|
|
1195
|
+
const e = yt ? yt(t) : t.ownerDocument;
|
|
1196
|
+
return de.call(e || t, t, w.SHOW_ELEMENT | w.SHOW_COMMENT | w.SHOW_TEXT | w.SHOW_PROCESSING_INSTRUCTION | w.SHOW_CDATA_SECTION, null);
|
|
1197
|
+
}, Ct = function(t) {
|
|
1198
|
+
return t = _t(t, gn, " "), t = _t(t, An, " "), t = _t(t, En, " "), t;
|
|
1199
|
+
}, Qt = function(t) {
|
|
1200
|
+
var e;
|
|
1201
|
+
t.normalize();
|
|
1202
|
+
const n = yt ? yt(t) : t.ownerDocument, a = de.call(n || t, t, w.SHOW_TEXT | w.SHOW_COMMENT | w.SHOW_CDATA_SECTION | w.SHOW_PROCESSING_INSTRUCTION, null);
|
|
1203
|
+
let l = a.nextNode();
|
|
1204
|
+
for (; l; )
|
|
1205
|
+
l.data = Ct(l.data), l = a.nextNode();
|
|
1206
|
+
const f = (e = t.querySelectorAll) === null || e === void 0 ? void 0 : e.call(t, "template");
|
|
1207
|
+
f && V(f, (p) => {
|
|
1208
|
+
it(p.content) && Qt(p.content);
|
|
1209
|
+
});
|
|
1210
|
+
}, Mt = function(t) {
|
|
1211
|
+
const e = J ? J(t) : null;
|
|
1212
|
+
return typeof e != "string" || A(e) !== "form" ? !1 : typeof t.nodeName != "string" || typeof t.textContent != "string" || typeof t.removeChild != "function" || t.attributes !== Ut(t) || typeof t.removeAttribute != "function" || typeof t.removeAttributeNode != "function" || typeof t.getAttributeNode != "function" || typeof t.setAttribute != "function" || typeof t.namespaceURI != "string" || typeof t.insertBefore != "function" || typeof t.hasChildNodes != "function" || t.nodeType !== B(t) || t.childNodes !== K(t);
|
|
1213
|
+
}, it = function(t) {
|
|
1214
|
+
if (!B || typeof t != "object" || t === null) return !1;
|
|
1215
|
+
try {
|
|
1216
|
+
return B(t) === N.documentFragment;
|
|
1217
|
+
} catch {
|
|
1218
|
+
return !1;
|
|
1219
|
+
}
|
|
1220
|
+
}, Tt = function(t) {
|
|
1221
|
+
if (!B || typeof t != "object" || t === null) return !1;
|
|
1222
|
+
try {
|
|
1223
|
+
return typeof B(t) == "number";
|
|
1224
|
+
} catch {
|
|
1225
|
+
return !1;
|
|
1226
|
+
}
|
|
1227
|
+
};
|
|
1228
|
+
function k(r, t, e) {
|
|
1229
|
+
r.length !== 0 && V(r, (n) => {
|
|
1230
|
+
n.call(i, t, e, rt);
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
const kn = function(t, e) {
|
|
1234
|
+
return !!(j && t.hasChildNodes() && !Tt(t.firstElementChild) && O(nn, t.textContent) && O(nn, t.innerHTML) || j && t.namespaceURI === x && go[e] && (Tt(t.firstElementChild) || typeof t.textContent == "string" && O(Ao[e], t.textContent)) || t.nodeType === N.processingInstruction || j && t.nodeType === N.comment && O(on, t.data));
|
|
1235
|
+
}, Pt = function(t, e) {
|
|
1236
|
+
if (t instanceof RegExp) return O(t, e);
|
|
1237
|
+
if (t instanceof Function) {
|
|
1238
|
+
for (var n = arguments.length, a = new Array(n > 2 ? n - 2 : 0), l = 2; l < n; l++) a[l - 2] = arguments[l];
|
|
1239
|
+
return !!t(e, ...a);
|
|
1240
|
+
}
|
|
1241
|
+
return !1;
|
|
1242
|
+
}, Un = function(t, e, n) {
|
|
1243
|
+
if (!mt[e] && Ge(e) && Pt(v.tagNameCheck, e)) return !1;
|
|
1244
|
+
if (Xt && !nt[e]) {
|
|
1245
|
+
const a = Z(t), l = K(t);
|
|
1246
|
+
if (l && a) {
|
|
1247
|
+
const f = l.length;
|
|
1248
|
+
for (let p = f - 1; p >= 0; --p) {
|
|
1249
|
+
const g = t === n ? fn(l[p], !0) : l[p];
|
|
1250
|
+
a.insertBefore(g, pn(t));
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
return H(t), !0;
|
|
1255
|
+
}, Fe = function(t, e, n, a) {
|
|
1256
|
+
return t.length === 0 ? e : e === n || e === a ? C(e) : e;
|
|
1257
|
+
}, at = function(t, e) {
|
|
1258
|
+
return t === e || Z(t) !== null ? !1 : ($t && Nt(t), !0);
|
|
1259
|
+
}, ze = function(t, e) {
|
|
1260
|
+
if (k(T.beforeSanitizeElements, t, null), at(t, e)) return !0;
|
|
1261
|
+
if (Mt(t))
|
|
1262
|
+
return H(t), !0;
|
|
1263
|
+
const n = A(Ft(t));
|
|
1264
|
+
if (h = Fe(T.uponSanitizeElement, h, Gt, bt), k(T.uponSanitizeElement, t, {
|
|
1265
|
+
tagName: n,
|
|
1266
|
+
allowedTags: h
|
|
1267
|
+
}), at(t, e)) return !0;
|
|
1268
|
+
if (kn(t, n))
|
|
1269
|
+
return H(t), !0;
|
|
1270
|
+
if (mt[n] || !(F.tagCheck instanceof Function && F.tagCheck(n)) && !h[n]) {
|
|
1271
|
+
const a = Un(t, n, e);
|
|
1272
|
+
return a === !1 && (k(T.afterSanitizeElements, t, null), at(t, e)) ? !0 : a;
|
|
1273
|
+
}
|
|
1274
|
+
if (ft(t) === N.element && !Pn(t) || (n === "noscript" || n === "noembed" || n === "noframes") && O(ho, t.innerHTML))
|
|
1275
|
+
return H(t), !0;
|
|
1276
|
+
if (z && t.nodeType === N.text) {
|
|
1277
|
+
const a = Ct(t.textContent);
|
|
1278
|
+
t.textContent !== a && (ht(i.removed, { element: t.cloneNode() }), t.textContent = a);
|
|
1279
|
+
}
|
|
1280
|
+
return k(T.afterSanitizeElements, t, null), at(t, e);
|
|
1281
|
+
}, He = function(t, e, n) {
|
|
1282
|
+
if (_e[e] || xe(e, t) || ye && (e === "id" || e === "name") && (n in s || n in In)) return !1;
|
|
1283
|
+
const a = _[e] || F.attributeCheck instanceof Function && F.attributeCheck(e, t);
|
|
1284
|
+
return Bt && O(yn, e) || ge && O(Sn, e) ? !0 : a ? Le[e] || O(he, _t(n, Te, "")) || (e === "src" || e === "xlink:href" || e === "href") && t !== "script" && Ve(n, "data:") === 0 && Re[t] || Ae && !O(bn, _t(n, Te, "")) ? !0 : !n : Ge(t) && Pt(v.tagNameCheck, t) && Pt(v.attributeNameCheck, e, t) || e === "is" && v.allowCustomizedBuiltInElements && Pt(v.tagNameCheck, n);
|
|
1285
|
+
}, Fn = m({}, [
|
|
1286
|
+
"annotation-xml",
|
|
1287
|
+
"color-profile",
|
|
1288
|
+
"font-face",
|
|
1289
|
+
"font-face-format",
|
|
1290
|
+
"font-face-name",
|
|
1291
|
+
"font-face-src",
|
|
1292
|
+
"font-face-uri",
|
|
1293
|
+
"missing-glyph"
|
|
1294
|
+
]), Ge = function(t) {
|
|
1295
|
+
return !Fn[At(t)] && O(On, t);
|
|
1296
|
+
}, zn = function(t, e, n, a) {
|
|
1297
|
+
if (D && typeof q == "object" && typeof q.getAttributeType == "function" && !n) switch (q.getAttributeType(t, e)) {
|
|
1298
|
+
case "TrustedHTML":
|
|
1299
|
+
return Q(a);
|
|
1300
|
+
case "TrustedScriptURL":
|
|
1301
|
+
return mn(a);
|
|
1302
|
+
}
|
|
1303
|
+
return a;
|
|
1304
|
+
}, Hn = function(t, e, n, a) {
|
|
1305
|
+
try {
|
|
1306
|
+
return n ? t.setAttributeNS(n, e, a) : t.setAttribute(e, a), Mt(t) ? (H(t), !1) : !0;
|
|
1307
|
+
} catch {
|
|
1308
|
+
return $(e, t), !1;
|
|
1309
|
+
}
|
|
1310
|
+
}, We = function(t, e) {
|
|
1311
|
+
if (k(T.beforeSanitizeAttributes, t, null), at(t, e)) return;
|
|
1312
|
+
const n = t.attributes;
|
|
1313
|
+
if (!n || Mt(t)) return;
|
|
1314
|
+
_ = Fe(T.uponSanitizeAttribute, _, Wt, Ot);
|
|
1315
|
+
const a = {
|
|
1316
|
+
attrName: "",
|
|
1317
|
+
attrValue: "",
|
|
1318
|
+
keepAttr: !0,
|
|
1319
|
+
allowedAttributes: _,
|
|
1320
|
+
forceKeepAttr: void 0
|
|
1321
|
+
};
|
|
1322
|
+
let l = n.length;
|
|
1323
|
+
const f = A(t.nodeName);
|
|
1324
|
+
for (; l--; ) {
|
|
1325
|
+
const p = n[l], g = p.name, M = p.namespaceURI, I = p.value, st = A(g), ee = I;
|
|
1326
|
+
let R = g === "value" ? ee : Zn(ee), Be = !1;
|
|
1327
|
+
if (a.attrName = st, a.attrValue = R, a.keepAttr = !0, a.forceKeepAttr = void 0, k(T.uponSanitizeAttribute, t, a), R = a.attrValue, Se && (st === "id" || st === "name") && Ve(R, be) !== 0 && ($(g, t, p), R = be + R, Be = !0), j && O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, R)) {
|
|
1328
|
+
$(g, t, p);
|
|
1329
|
+
continue;
|
|
1330
|
+
}
|
|
1331
|
+
if (st === "attributename" && $e(R, "href")) {
|
|
1332
|
+
$(g, t, p);
|
|
1333
|
+
continue;
|
|
1334
|
+
}
|
|
1335
|
+
if (!a.forceKeepAttr) {
|
|
1336
|
+
if (!a.keepAttr) {
|
|
1337
|
+
$(g, t, p);
|
|
1338
|
+
continue;
|
|
1339
|
+
}
|
|
1340
|
+
if (!Ee && O(_o, R)) {
|
|
1341
|
+
$(g, t, p);
|
|
1342
|
+
continue;
|
|
1343
|
+
}
|
|
1344
|
+
if (z && (R = Ct(R)), !He(f, st, R)) {
|
|
1345
|
+
$(g, t, p);
|
|
1346
|
+
continue;
|
|
1347
|
+
}
|
|
1348
|
+
R = zn(f, st, M, R), R !== ee && Hn(t, g, M, R) && Be && Xe(i.removed);
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
k(T.afterSanitizeAttributes, t, null), at(t, e);
|
|
1352
|
+
}, vt = function(t) {
|
|
1353
|
+
let e = null;
|
|
1354
|
+
const n = Ue(t);
|
|
1355
|
+
for (k(T.beforeSanitizeShadowDOM, t, null); e = n.nextNode(); )
|
|
1356
|
+
if (k(T.uponSanitizeShadowNode, e, null), ze(e, t), We(e, t), it(e.content) && vt(e.content), ft(e) === N.element) {
|
|
1357
|
+
const a = fe(e);
|
|
1358
|
+
it(a) && (te(a), vt(a));
|
|
1359
|
+
}
|
|
1360
|
+
k(T.afterSanitizeShadowDOM, t, null);
|
|
1361
|
+
}, te = function(t) {
|
|
1362
|
+
const e = [{
|
|
1363
|
+
node: t,
|
|
1364
|
+
shadow: null
|
|
1365
|
+
}];
|
|
1366
|
+
for (; e.length > 0; ) {
|
|
1367
|
+
const n = e.pop();
|
|
1368
|
+
if (n.shadow) {
|
|
1369
|
+
vt(n.shadow);
|
|
1370
|
+
continue;
|
|
1371
|
+
}
|
|
1372
|
+
const a = n.node, l = ft(a) === N.element, f = K(a);
|
|
1373
|
+
if (f) for (let p = f.length - 1; p >= 0; --p) e.push({
|
|
1374
|
+
node: f[p],
|
|
1375
|
+
shadow: null
|
|
1376
|
+
});
|
|
1377
|
+
if (l) {
|
|
1378
|
+
const p = J ? J(a) : null;
|
|
1379
|
+
if (typeof p == "string" && A(p) === "template") {
|
|
1380
|
+
const g = a.content;
|
|
1381
|
+
it(g) && e.push({
|
|
1382
|
+
node: g,
|
|
1383
|
+
shadow: null
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
if (l) {
|
|
1388
|
+
const p = fe(a);
|
|
1389
|
+
it(p) && e.push({
|
|
1390
|
+
node: null,
|
|
1391
|
+
shadow: p
|
|
1392
|
+
}, {
|
|
1393
|
+
node: p,
|
|
1394
|
+
shadow: null
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
};
|
|
1399
|
+
return i.sanitize = function(r) {
|
|
1400
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = null, n = null, a = null, l = null;
|
|
1401
|
+
if (Vt = !r, Vt && (r = "<!-->"), typeof r != "string" && !Tt(r) && (r = no(r), typeof r != "string"))
|
|
1402
|
+
throw G("dirty is not a string, aborting");
|
|
1403
|
+
if (!i.isSupported) return r;
|
|
1404
|
+
Yt ? (h = bt, _ = Ot) : Jt(t), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (h = C(h)), T.uponSanitizeAttribute.length > 0 && (_ = C(_)), i.removed = [];
|
|
1405
|
+
const f = $t && typeof r != "string" && Tt(r);
|
|
1406
|
+
if (f) {
|
|
1407
|
+
xn(r);
|
|
1408
|
+
const M = Ft(r);
|
|
1409
|
+
if (typeof M == "string") {
|
|
1410
|
+
const I = A(M);
|
|
1411
|
+
if (!h[I] || mt[I])
|
|
1412
|
+
throw It(r), G("root node is forbidden and cannot be sanitized in-place");
|
|
1413
|
+
}
|
|
1414
|
+
if (Mt(r))
|
|
1415
|
+
throw It(r), G("root node is clobbered and cannot be sanitized in-place");
|
|
1416
|
+
try {
|
|
1417
|
+
te(r);
|
|
1418
|
+
} catch (I) {
|
|
1419
|
+
throw It(r), I;
|
|
1420
|
+
}
|
|
1421
|
+
} else if (Tt(r))
|
|
1422
|
+
e = ke("<!---->"), n = e.ownerDocument.importNode(r, !0), n.nodeType === N.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? e = n : e.appendChild(n), te(e);
|
|
1423
|
+
else {
|
|
1424
|
+
if (!tt && !z && !X && r.indexOf("<") === -1) return D && Dt ? Q(r) : r;
|
|
1425
|
+
if (e = ke(r), !e) return tt ? null : Dt ? Y : "";
|
|
1426
|
+
}
|
|
1427
|
+
e && jt && H(e.firstChild);
|
|
1428
|
+
const p = f ? r : e;
|
|
1429
|
+
try {
|
|
1430
|
+
const M = Ue(p);
|
|
1431
|
+
for (; a = M.nextNode(); )
|
|
1432
|
+
ze(a, p), We(a, p), it(a.content) && vt(a.content);
|
|
1433
|
+
} catch (M) {
|
|
1434
|
+
throw f && (It(r), V(i.removed, (I) => {
|
|
1435
|
+
I.element && Nt(I.element);
|
|
1436
|
+
})), M;
|
|
1437
|
+
}
|
|
1438
|
+
if (f) {
|
|
1439
|
+
let M = !1;
|
|
1440
|
+
if (V(i.removed, (I) => {
|
|
1441
|
+
I.element && (I.element === r && (M = !0), Nt(I.element));
|
|
1442
|
+
}), M) throw G("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
1443
|
+
return z && Qt(r), r;
|
|
1444
|
+
}
|
|
1445
|
+
if (tt) {
|
|
1446
|
+
if (z && Qt(e), Rt)
|
|
1447
|
+
for (l = Tn.call(e.ownerDocument); e.firstChild; ) l.appendChild(e.firstChild);
|
|
1448
|
+
else l = e;
|
|
1449
|
+
return (_.shadowroot || _.shadowrootmode) && (l = _n.call(c, l, !0)), l;
|
|
1450
|
+
}
|
|
1451
|
+
let g = X ? e.outerHTML : e.innerHTML;
|
|
1452
|
+
return X && h["!doctype"] && e.ownerDocument && e.ownerDocument.doctype && e.ownerDocument.doctype.name && O(mo, e.ownerDocument.doctype.name) && (g = "<!DOCTYPE " + e.ownerDocument.doctype.name + `>
|
|
1453
|
+
` + g), z && (g = Ct(g)), D && Dt ? Q(g) : g;
|
|
1454
|
+
}, i.setConfig = function() {
|
|
1455
|
+
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1456
|
+
Jt(r), Yt = !0, bt = h, Ot = _;
|
|
1457
|
+
}, i.clearConfig = function() {
|
|
1458
|
+
rt = null, Yt = !1, bt = null, Ot = null, D = zt, Y = "";
|
|
1459
|
+
}, i.isValidAttribute = function(r, t, e) {
|
|
1460
|
+
rt || Jt({});
|
|
1461
|
+
const n = A(r), a = A(t);
|
|
1462
|
+
return He(n, a, e);
|
|
1463
|
+
}, i.addHook = function(r, t) {
|
|
1464
|
+
typeof t == "function" && L(T, r) && ht(T[r], t);
|
|
1465
|
+
}, i.removeHook = function(r, t) {
|
|
1466
|
+
if (L(T, r)) {
|
|
1467
|
+
if (t !== void 0) {
|
|
1468
|
+
const e = qn(T[r], t);
|
|
1469
|
+
return e === -1 ? void 0 : Kn(T[r], e, 1)[0];
|
|
1470
|
+
}
|
|
1471
|
+
return Xe(T[r]);
|
|
1472
|
+
}
|
|
1473
|
+
}, i.removeHooks = function(r) {
|
|
1474
|
+
L(T, r) && (T[r] = []);
|
|
1475
|
+
}, i.removeAllHooks = function() {
|
|
1476
|
+
T = rn();
|
|
1477
|
+
}, i;
|
|
1478
|
+
}
|
|
1479
|
+
var un = cn();
|
|
1480
|
+
un.addHook("afterSanitizeAttributes", (o) => {
|
|
1481
|
+
o.tagName === "A" && o.hasAttribute("target") && o.setAttribute("rel", "noopener noreferrer");
|
|
1482
|
+
});
|
|
1483
|
+
const So = (o) => un.sanitize(o ?? "", { ADD_ATTR: ["target"] });
|
|
1484
|
+
export {
|
|
1485
|
+
So as sanitizarHtml
|
|
1486
|
+
};
|