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