@anoki/fse-ui 1.10.1-RC2.13 → 1.10.1-RC2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/GroupCodeExemptionFilterDropDown/GroupCodeExemptionFilterDropDown.css +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs113.js.map +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs310.js +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs335.js +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs359.js +1 -1
- package/dist/index.cjs400.js +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs462.js +27 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/index.cjs463.js +1 -2
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs464.js +1 -27
- package/dist/index.cjs464.js.map +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +2 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs474.js +1 -1
- package/dist/index.cjs475.js +1 -1
- package/dist/index.cjs480.js +1 -1
- package/dist/index.cjs480.js.map +1 -1
- package/dist/index.cjs481.js +1 -1
- package/dist/index.cjs481.js.map +1 -1
- package/dist/index.cjs482.js +1 -1
- package/dist/index.cjs482.js.map +1 -1
- package/dist/index.cjs488.js +2 -0
- package/dist/index.cjs488.js.map +1 -0
- package/dist/index.cjs489.js +1 -1
- package/dist/index.cjs489.js.map +1 -1
- package/dist/index.cjs490.js +1 -1
- package/dist/index.cjs490.js.map +1 -1
- package/dist/index.cjs491.js +1 -1
- package/dist/index.cjs491.js.map +1 -1
- package/dist/index.cjs492.js +1 -1
- package/dist/index.cjs492.js.map +1 -1
- package/dist/index.cjs493.js +1 -1
- package/dist/index.cjs493.js.map +1 -1
- package/dist/index.cjs494.js +1 -1
- package/dist/index.cjs494.js.map +1 -1
- package/dist/index.cjs498.js +2 -0
- package/dist/index.cjs498.js.map +1 -0
- package/dist/index.cjs513.js +1 -1
- package/dist/index.cjs527.js +1 -1
- package/dist/index.cjs527.js.map +1 -1
- package/dist/index.cjs528.js +1 -1
- package/dist/index.cjs529.js +1 -1
- package/dist/index.cjs529.js.map +1 -1
- package/dist/index.cjs530.js +1 -1
- package/dist/index.cjs530.js.map +1 -1
- package/dist/index.cjs532.js +1 -1
- package/dist/index.cjs534.js +1 -1
- package/dist/index.cjs537.js +1 -1
- package/dist/index.cjs537.js.map +1 -1
- package/dist/index.cjs538.js +1 -1
- package/dist/index.cjs538.js.map +1 -1
- package/dist/index.cjs576.js +1 -1
- package/dist/index.cjs576.js.map +1 -1
- package/dist/index.cjs577.js +1 -1
- package/dist/index.cjs577.js.map +1 -1
- package/dist/index.cjs578.js +1 -1
- package/dist/index.cjs578.js.map +1 -1
- package/dist/index.cjs579.js +1 -1
- package/dist/index.cjs579.js.map +1 -1
- package/dist/index.cjs580.js +1 -1
- package/dist/index.cjs580.js.map +1 -1
- package/dist/index.cjs581.js +1 -1
- package/dist/index.cjs581.js.map +1 -1
- package/dist/index.cjs582.js +1 -1
- package/dist/index.cjs583.js +1 -1
- package/dist/index.cjs584.js +1 -1
- package/dist/index.cjs589.js +1 -1
- package/dist/index.cjs593.js +1 -1
- package/dist/index.cjs594.js +1 -1
- package/dist/index.cjs601.js +1 -1
- package/dist/index.cjs606.js +1 -1
- package/dist/index.cjs645.js +1 -1
- package/dist/index.cjs647.js +1 -1
- package/dist/index.cjs648.js +1 -1
- package/dist/index.cjs655.js +1 -1
- package/dist/index.cjs662.js +1 -38
- package/dist/index.cjs662.js.map +1 -1
- package/dist/index.cjs663.js +38 -1
- package/dist/index.cjs663.js.map +1 -1
- package/dist/index.cjs664.js +1 -1
- package/dist/index.cjs664.js.map +1 -1
- package/dist/index.cjs665.js +1 -1
- package/dist/index.cjs665.js.map +1 -1
- package/dist/index.cjs666.js +1 -1
- package/dist/index.cjs666.js.map +1 -1
- package/dist/index.cjs667.js +1 -1
- package/dist/index.cjs667.js.map +1 -1
- package/dist/index.cjs668.js +1 -1
- package/dist/index.cjs668.js.map +1 -1
- package/dist/index.cjs669.js +1 -1
- package/dist/index.cjs669.js.map +1 -1
- package/dist/index.cjs670.js +1 -1
- package/dist/index.cjs670.js.map +1 -1
- package/dist/index.cjs671.js +1 -1
- package/dist/index.cjs671.js.map +1 -1
- package/dist/index.cjs672.js +1 -1
- package/dist/index.cjs672.js.map +1 -1
- package/dist/index.es113.js +11 -12
- package/dist/index.es113.js.map +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es258.js +2 -2
- package/dist/index.es265.js +1 -1
- package/dist/index.es266.js +2 -2
- package/dist/index.es267.js +2 -2
- package/dist/index.es310.js +3 -3
- package/dist/index.es321.js +1 -1
- package/dist/index.es328.js +8 -8
- package/dist/index.es335.js +1 -1
- package/dist/index.es340.js +1 -1
- package/dist/index.es351.js +1 -1
- package/dist/index.es359.js +2 -2
- package/dist/index.es400.js +1 -1
- package/dist/index.es441.js +1 -1
- package/dist/index.es462.js +3674 -5
- package/dist/index.es462.js.map +1 -1
- package/dist/index.es463.js +5 -520
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es464.js +2 -3675
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es465.js +5 -5
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +521 -2
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +1 -1
- package/dist/index.es474.js +1 -1
- package/dist/index.es475.js +8 -8
- package/dist/index.es480.js +5 -14
- package/dist/index.es480.js.map +1 -1
- package/dist/index.es481.js +24 -5
- package/dist/index.es481.js.map +1 -1
- package/dist/index.es482.js +67 -23
- package/dist/index.es482.js.map +1 -1
- package/dist/index.es488.js +128 -0
- package/dist/index.es488.js.map +1 -0
- package/dist/index.es489.js +126 -116
- package/dist/index.es489.js.map +1 -1
- package/dist/index.es490.js +13 -134
- package/dist/index.es490.js.map +1 -1
- package/dist/index.es491.js +14 -13
- package/dist/index.es491.js.map +1 -1
- package/dist/index.es492.js +8 -14
- package/dist/index.es492.js.map +1 -1
- package/dist/index.es493.js +50 -9
- package/dist/index.es493.js.map +1 -1
- package/dist/index.es494.js +55 -49
- package/dist/index.es494.js.map +1 -1
- package/dist/index.es498.js +18 -0
- package/dist/index.es498.js.map +1 -0
- package/dist/index.es513.js +1 -1
- package/dist/index.es527.js +131 -8
- package/dist/index.es527.js.map +1 -1
- package/dist/index.es528.js +1 -1
- package/dist/index.es529.js +9 -3
- package/dist/index.es529.js.map +1 -1
- package/dist/index.es530.js +2 -131
- package/dist/index.es530.js.map +1 -1
- package/dist/index.es532.js +1 -1
- package/dist/index.es534.js +4 -4
- package/dist/index.es537.js +14 -2
- package/dist/index.es537.js.map +1 -1
- package/dist/index.es538.js +2 -14
- package/dist/index.es538.js.map +1 -1
- package/dist/index.es576.js +22 -202
- package/dist/index.es576.js.map +1 -1
- package/dist/index.es577.js +27 -20
- package/dist/index.es577.js.map +1 -1
- package/dist/index.es578.js +5 -393
- package/dist/index.es578.js.map +1 -1
- package/dist/index.es579.js +202 -22
- package/dist/index.es579.js.map +1 -1
- package/dist/index.es580.js +20 -27
- package/dist/index.es580.js.map +1 -1
- package/dist/index.es581.js +393 -5
- package/dist/index.es581.js.map +1 -1
- package/dist/index.es582.js +1 -1
- package/dist/index.es583.js +1 -1
- package/dist/index.es584.js +1 -1
- package/dist/index.es589.js +1 -1
- package/dist/index.es593.js +1 -1
- package/dist/index.es594.js +8 -8
- package/dist/index.es601.js +2 -2
- package/dist/index.es606.js +3 -3
- package/dist/index.es645.js +1 -1
- package/dist/index.es647.js +5 -5
- package/dist/index.es648.js +1 -1
- package/dist/index.es655.js +2 -2
- package/dist/index.es662.js +65 -69
- package/dist/index.es662.js.map +1 -1
- package/dist/index.es663.js +68 -8
- package/dist/index.es663.js.map +1 -1
- package/dist/index.es664.js +9 -14
- package/dist/index.es664.js.map +1 -1
- package/dist/index.es665.js +14 -62
- package/dist/index.es665.js.map +1 -1
- package/dist/index.es666.js +61 -64
- package/dist/index.es666.js.map +1 -1
- package/dist/index.es667.js +3 -522
- package/dist/index.es667.js.map +1 -1
- package/dist/index.es668.js +509 -113
- package/dist/index.es668.js.map +1 -1
- package/dist/index.es669.js +121 -123
- package/dist/index.es669.js.map +1 -1
- package/dist/index.es670.js +129 -3
- package/dist/index.es670.js.map +1 -1
- package/dist/index.es671.js +3 -2
- package/dist/index.es671.js.map +1 -1
- package/dist/index.es672.js +2 -4
- package/dist/index.es672.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.cjs483.js +0 -2
- package/dist/index.cjs483.js.map +0 -1
- package/dist/index.cjs495.js +0 -2
- package/dist/index.cjs495.js.map +0 -1
- package/dist/index.es483.js +0 -72
- package/dist/index.es483.js.map +0 -1
- package/dist/index.es495.js +0 -59
- package/dist/index.es495.js.map +0 -1
- /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
package/dist/index.es463.js
CHANGED
@@ -1,524 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
if (At) return xe;
|
5
|
-
At = 1;
|
6
|
-
const {
|
7
|
-
entries: Pe,
|
8
|
-
setPrototypeOf: ve,
|
9
|
-
isFrozen: St,
|
10
|
-
getPrototypeOf: Rt,
|
11
|
-
getOwnPropertyDescriptor: yt
|
12
|
-
} = Object;
|
13
|
-
let {
|
14
|
-
freeze: E,
|
15
|
-
seal: O,
|
16
|
-
create: ke
|
17
|
-
} = Object, {
|
18
|
-
apply: fe,
|
19
|
-
construct: ue
|
20
|
-
} = typeof Reflect < "u" && Reflect;
|
21
|
-
E || (E = function(o) {
|
22
|
-
return o;
|
23
|
-
}), O || (O = function(o) {
|
24
|
-
return o;
|
25
|
-
}), fe || (fe = function(o, l, s) {
|
26
|
-
return o.apply(l, s);
|
27
|
-
}), ue || (ue = function(o, l) {
|
28
|
-
return new o(...l);
|
29
|
-
});
|
30
|
-
const J = h(Array.prototype.forEach), Ot = h(Array.prototype.lastIndexOf), Ue = h(Array.prototype.pop), z = h(Array.prototype.push), Lt = h(Array.prototype.splice), Q = h(String.prototype.toLowerCase), me = h(String.prototype.toString), Fe = h(String.prototype.match), G = h(String.prototype.replace), Nt = h(String.prototype.indexOf), Dt = h(String.prototype.trim), L = h(Object.prototype.hasOwnProperty), g = h(RegExp.prototype.test), W = bt(TypeError);
|
31
|
-
function h(r) {
|
32
|
-
return function(o) {
|
33
|
-
o instanceof RegExp && (o.lastIndex = 0);
|
34
|
-
for (var l = arguments.length, s = new Array(l > 1 ? l - 1 : 0), T = 1; T < l; T++)
|
35
|
-
s[T - 1] = arguments[T];
|
36
|
-
return fe(r, o, s);
|
37
|
-
};
|
38
|
-
}
|
39
|
-
function bt(r) {
|
40
|
-
return function() {
|
41
|
-
for (var o = arguments.length, l = new Array(o), s = 0; s < o; s++)
|
42
|
-
l[s] = arguments[s];
|
43
|
-
return ue(r, l);
|
44
|
-
};
|
45
|
-
}
|
46
|
-
function a(r, o) {
|
47
|
-
let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Q;
|
48
|
-
ve && ve(r, null);
|
49
|
-
let s = o.length;
|
50
|
-
for (; s--; ) {
|
51
|
-
let T = o[s];
|
52
|
-
if (typeof T == "string") {
|
53
|
-
const b = l(T);
|
54
|
-
b !== T && (St(o) || (o[s] = b), T = b);
|
55
|
-
}
|
56
|
-
r[T] = !0;
|
57
|
-
}
|
58
|
-
return r;
|
59
|
-
}
|
60
|
-
function It(r) {
|
61
|
-
for (let o = 0; o < r.length; o++)
|
62
|
-
L(r, o) || (r[o] = null);
|
63
|
-
return r;
|
64
|
-
}
|
65
|
-
function C(r) {
|
66
|
-
const o = ke(null);
|
67
|
-
for (const [l, s] of Pe(r))
|
68
|
-
L(r, l) && (Array.isArray(s) ? o[l] = It(s) : s && typeof s == "object" && s.constructor === Object ? o[l] = C(s) : o[l] = s);
|
69
|
-
return o;
|
70
|
-
}
|
71
|
-
function B(r, o) {
|
72
|
-
for (; r !== null; ) {
|
73
|
-
const s = yt(r, o);
|
74
|
-
if (s) {
|
75
|
-
if (s.get)
|
76
|
-
return h(s.get);
|
77
|
-
if (typeof s.value == "function")
|
78
|
-
return h(s.value);
|
79
|
-
}
|
80
|
-
r = Rt(r);
|
81
|
-
}
|
82
|
-
function l() {
|
83
|
-
return null;
|
84
|
-
}
|
85
|
-
return l;
|
86
|
-
}
|
87
|
-
const He = E(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), pe = E(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), de = E(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Mt = E(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Te = E(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ct = E(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ze = E(["#text"]), Ge = E(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), _e = E(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), We = E(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ee = E(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), wt = O(/\{\{[\w\W]*|[\w\W]*\}\}/gm), xt = O(/<%[\w\W]*|[\w\W]*%>/gm), Pt = O(/\$\{[\w\W]*/gm), vt = O(/^data-[\-\w.\u00B7-\uFFFF]+$/), kt = O(/^aria-[\-\w]+$/), Be = O(
|
88
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
89
|
-
// eslint-disable-line no-useless-escape
|
90
|
-
), Ut = O(/^(?:\w+script|data):/i), Ft = O(
|
91
|
-
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
92
|
-
// eslint-disable-line no-control-regex
|
93
|
-
), Ye = O(/^html$/i), Ht = O(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
94
|
-
var Xe = /* @__PURE__ */ Object.freeze({
|
95
|
-
__proto__: null,
|
96
|
-
ARIA_ATTR: kt,
|
97
|
-
ATTR_WHITESPACE: Ft,
|
98
|
-
CUSTOM_ELEMENT: Ht,
|
99
|
-
DATA_ATTR: vt,
|
100
|
-
DOCTYPE_NAME: Ye,
|
101
|
-
ERB_EXPR: xt,
|
102
|
-
IS_ALLOWED_URI: Be,
|
103
|
-
IS_SCRIPT_OR_DATA: Ut,
|
104
|
-
MUSTACHE_EXPR: wt,
|
105
|
-
TMPLIT_EXPR: Pt
|
106
|
-
});
|
107
|
-
const Y = {
|
108
|
-
element: 1,
|
109
|
-
text: 3,
|
110
|
-
// Deprecated
|
111
|
-
progressingInstruction: 7,
|
112
|
-
comment: 8,
|
113
|
-
document: 9
|
114
|
-
}, zt = function() {
|
115
|
-
return typeof window > "u" ? null : window;
|
116
|
-
}, Gt = function(o, l) {
|
117
|
-
if (typeof o != "object" || typeof o.createPolicy != "function")
|
118
|
-
return null;
|
119
|
-
let s = null;
|
120
|
-
const T = "data-tt-policy-suffix";
|
121
|
-
l && l.hasAttribute(T) && (s = l.getAttribute(T));
|
122
|
-
const b = "dompurify" + (s ? "#" + s : "");
|
123
|
-
try {
|
124
|
-
return o.createPolicy(b, {
|
125
|
-
createHTML(x) {
|
126
|
-
return x;
|
127
|
-
},
|
128
|
-
createScriptURL(x) {
|
129
|
-
return x;
|
130
|
-
}
|
131
|
-
});
|
132
|
-
} catch {
|
133
|
-
return console.warn("TrustedTypes policy " + b + " could not be created."), null;
|
134
|
-
}
|
135
|
-
}, je = function() {
|
136
|
-
return {
|
137
|
-
afterSanitizeAttributes: [],
|
138
|
-
afterSanitizeElements: [],
|
139
|
-
afterSanitizeShadowDOM: [],
|
140
|
-
beforeSanitizeAttributes: [],
|
141
|
-
beforeSanitizeElements: [],
|
142
|
-
beforeSanitizeShadowDOM: [],
|
143
|
-
uponSanitizeAttribute: [],
|
144
|
-
uponSanitizeElement: [],
|
145
|
-
uponSanitizeShadowNode: []
|
146
|
-
};
|
147
|
-
};
|
148
|
-
function Ve() {
|
149
|
-
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : zt();
|
150
|
-
const o = (i) => Ve(i);
|
151
|
-
if (o.version = "3.2.5", o.removed = [], !r || !r.document || r.document.nodeType !== Y.document || !r.Element)
|
152
|
-
return o.isSupported = !1, o;
|
153
|
-
let {
|
154
|
-
document: l
|
155
|
-
} = r;
|
156
|
-
const s = l, T = s.currentScript, {
|
157
|
-
DocumentFragment: b,
|
158
|
-
HTMLTemplateElement: x,
|
159
|
-
Node: Ee,
|
160
|
-
Element: qe,
|
161
|
-
NodeFilter: X,
|
162
|
-
NamedNodeMap: Bt = r.NamedNodeMap || r.MozNamedAttrMap,
|
163
|
-
HTMLFormElement: Yt,
|
164
|
-
DOMParser: Xt,
|
165
|
-
trustedTypes: te
|
166
|
-
} = r, j = qe.prototype, jt = B(j, "cloneNode"), Vt = B(j, "remove"), qt = B(j, "nextSibling"), $t = B(j, "childNodes"), ne = B(j, "parentNode");
|
167
|
-
if (typeof x == "function") {
|
168
|
-
const i = l.createElement("template");
|
169
|
-
i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
|
170
|
-
}
|
171
|
-
let A, V = "";
|
172
|
-
const {
|
173
|
-
implementation: ge,
|
174
|
-
createNodeIterator: Kt,
|
175
|
-
createDocumentFragment: Zt,
|
176
|
-
getElementsByTagName: Jt
|
177
|
-
} = l, {
|
178
|
-
importNode: Qt
|
179
|
-
} = s;
|
180
|
-
let S = je();
|
181
|
-
o.isSupported = typeof Pe == "function" && typeof ne == "function" && ge && ge.createHTMLDocument !== void 0;
|
182
|
-
const {
|
183
|
-
MUSTACHE_EXPR: he,
|
184
|
-
ERB_EXPR: Ae,
|
185
|
-
TMPLIT_EXPR: Se,
|
186
|
-
DATA_ATTR: en,
|
187
|
-
ARIA_ATTR: tn,
|
188
|
-
IS_SCRIPT_OR_DATA: nn,
|
189
|
-
ATTR_WHITESPACE: $e,
|
190
|
-
CUSTOM_ELEMENT: on
|
191
|
-
} = Xe;
|
192
|
-
let {
|
193
|
-
IS_ALLOWED_URI: Ke
|
194
|
-
} = Xe, u = null;
|
195
|
-
const Ze = a({}, [...He, ...pe, ...de, ...Te, ...ze]);
|
196
|
-
let p = null;
|
197
|
-
const Je = a({}, [...Ge, ..._e, ...We, ...ee]);
|
198
|
-
let f = Object.seal(ke(null, {
|
199
|
-
tagNameCheck: {
|
200
|
-
writable: !0,
|
201
|
-
configurable: !1,
|
202
|
-
enumerable: !0,
|
203
|
-
value: null
|
204
|
-
},
|
205
|
-
attributeNameCheck: {
|
206
|
-
writable: !0,
|
207
|
-
configurable: !1,
|
208
|
-
enumerable: !0,
|
209
|
-
value: null
|
210
|
-
},
|
211
|
-
allowCustomizedBuiltInElements: {
|
212
|
-
writable: !0,
|
213
|
-
configurable: !1,
|
214
|
-
enumerable: !0,
|
215
|
-
value: !1
|
216
|
-
}
|
217
|
-
})), q = null, Re = null, Qe = !0, ye = !0, et = !1, tt = !0, P = !1, Oe = !0, w = !1, Le = !1, Ne = !1, v = !1, oe = !1, ie = !1, nt = !0, ot = !1;
|
218
|
-
const an = "user-content-";
|
219
|
-
let De = !0, $ = !1, k = {}, U = null;
|
220
|
-
const it = a({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
221
|
-
let at = null;
|
222
|
-
const rt = a({}, ["audio", "video", "img", "source", "image", "track"]);
|
223
|
-
let be = null;
|
224
|
-
const st = a({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ae = "http://www.w3.org/1998/Math/MathML", re = "http://www.w3.org/2000/svg", I = "http://www.w3.org/1999/xhtml";
|
225
|
-
let F = I, Ie = !1, Me = null;
|
226
|
-
const rn = a({}, [ae, re, I], me);
|
227
|
-
let se = a({}, ["mi", "mo", "mn", "ms", "mtext"]), le = a({}, ["annotation-xml"]);
|
228
|
-
const sn = a({}, ["title", "style", "font", "a", "script"]);
|
229
|
-
let K = null;
|
230
|
-
const ln = ["application/xhtml+xml", "text/html"], cn = "text/html";
|
231
|
-
let m = null, H = null;
|
232
|
-
const fn = l.createElement("form"), lt = function(e) {
|
233
|
-
return e instanceof RegExp || e instanceof Function;
|
234
|
-
}, Ce = function() {
|
235
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
236
|
-
if (!(H && H === e)) {
|
237
|
-
if ((!e || typeof e != "object") && (e = {}), e = C(e), K = // eslint-disable-next-line unicorn/prefer-includes
|
238
|
-
ln.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? cn : e.PARSER_MEDIA_TYPE, m = K === "application/xhtml+xml" ? me : Q, u = L(e, "ALLOWED_TAGS") ? a({}, e.ALLOWED_TAGS, m) : Ze, p = L(e, "ALLOWED_ATTR") ? a({}, e.ALLOWED_ATTR, m) : Je, Me = L(e, "ALLOWED_NAMESPACES") ? a({}, e.ALLOWED_NAMESPACES, me) : rn, be = L(e, "ADD_URI_SAFE_ATTR") ? a(C(st), e.ADD_URI_SAFE_ATTR, m) : st, at = L(e, "ADD_DATA_URI_TAGS") ? a(C(rt), e.ADD_DATA_URI_TAGS, m) : rt, U = L(e, "FORBID_CONTENTS") ? a({}, e.FORBID_CONTENTS, m) : it, q = L(e, "FORBID_TAGS") ? a({}, e.FORBID_TAGS, m) : {}, Re = L(e, "FORBID_ATTR") ? a({}, e.FORBID_ATTR, m) : {}, k = L(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Qe = e.ALLOW_ARIA_ATTR !== !1, ye = e.ALLOW_DATA_ATTR !== !1, et = e.ALLOW_UNKNOWN_PROTOCOLS || !1, tt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, Oe = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, oe = e.RETURN_DOM_FRAGMENT || !1, ie = e.RETURN_TRUSTED_TYPE || !1, Ne = e.FORCE_BODY || !1, nt = e.SANITIZE_DOM !== !1, ot = e.SANITIZE_NAMED_PROPS || !1, De = e.KEEP_CONTENT !== !1, $ = e.IN_PLACE || !1, Ke = e.ALLOWED_URI_REGEXP || Be, F = e.NAMESPACE || I, se = e.MATHML_TEXT_INTEGRATION_POINTS || se, le = e.HTML_INTEGRATION_POINTS || le, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && lt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && lt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (f.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (f.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (ye = !1), oe && (v = !0), k && (u = a({}, ze), p = [], k.html === !0 && (a(u, He), a(p, Ge)), k.svg === !0 && (a(u, pe), a(p, _e), a(p, ee)), k.svgFilters === !0 && (a(u, de), a(p, _e), a(p, ee)), k.mathMl === !0 && (a(u, Te), a(p, We), a(p, ee))), e.ADD_TAGS && (u === Ze && (u = C(u)), a(u, e.ADD_TAGS, m)), e.ADD_ATTR && (p === Je && (p = C(p)), a(p, e.ADD_ATTR, m)), e.ADD_URI_SAFE_ATTR && a(be, e.ADD_URI_SAFE_ATTR, m), e.FORBID_CONTENTS && (U === it && (U = C(U)), a(U, e.FORBID_CONTENTS, m)), De && (u["#text"] = !0), w && a(u, ["html", "head", "body"]), u.table && (a(u, ["tbody"]), delete q.tbody), e.TRUSTED_TYPES_POLICY) {
|
239
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
240
|
-
throw W('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
241
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
242
|
-
throw W('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
243
|
-
A = e.TRUSTED_TYPES_POLICY, V = A.createHTML("");
|
244
|
-
} else
|
245
|
-
A === void 0 && (A = Gt(te, T)), A !== null && typeof V == "string" && (V = A.createHTML(""));
|
246
|
-
E && E(e), H = e;
|
247
|
-
}
|
248
|
-
}, ct = a({}, [...pe, ...de, ...Mt]), ft = a({}, [...Te, ...Ct]), un = function(e) {
|
249
|
-
let t = ne(e);
|
250
|
-
(!t || !t.tagName) && (t = {
|
251
|
-
namespaceURI: F,
|
252
|
-
tagName: "template"
|
253
|
-
});
|
254
|
-
const n = Q(e.tagName), c = Q(t.tagName);
|
255
|
-
return Me[e.namespaceURI] ? e.namespaceURI === re ? t.namespaceURI === I ? n === "svg" : t.namespaceURI === ae ? n === "svg" && (c === "annotation-xml" || se[c]) : !!ct[n] : e.namespaceURI === ae ? t.namespaceURI === I ? n === "math" : t.namespaceURI === re ? n === "math" && le[c] : !!ft[n] : e.namespaceURI === I ? t.namespaceURI === re && !le[c] || t.namespaceURI === ae && !se[c] ? !1 : !ft[n] && (sn[n] || !ct[n]) : !!(K === "application/xhtml+xml" && Me[e.namespaceURI]) : !1;
|
256
|
-
}, N = function(e) {
|
257
|
-
z(o.removed, {
|
258
|
-
element: e
|
259
|
-
});
|
260
|
-
try {
|
261
|
-
ne(e).removeChild(e);
|
262
|
-
} catch {
|
263
|
-
Vt(e);
|
264
|
-
}
|
265
|
-
}, ce = function(e, t) {
|
266
|
-
try {
|
267
|
-
z(o.removed, {
|
268
|
-
attribute: t.getAttributeNode(e),
|
269
|
-
from: t
|
270
|
-
});
|
271
|
-
} catch {
|
272
|
-
z(o.removed, {
|
273
|
-
attribute: null,
|
274
|
-
from: t
|
275
|
-
});
|
276
|
-
}
|
277
|
-
if (t.removeAttribute(e), e === "is")
|
278
|
-
if (v || oe)
|
279
|
-
try {
|
280
|
-
N(t);
|
281
|
-
} catch {
|
282
|
-
}
|
283
|
-
else
|
284
|
-
try {
|
285
|
-
t.setAttribute(e, "");
|
286
|
-
} catch {
|
287
|
-
}
|
288
|
-
}, ut = function(e) {
|
289
|
-
let t = null, n = null;
|
290
|
-
if (Ne)
|
291
|
-
e = "<remove></remove>" + e;
|
292
|
-
else {
|
293
|
-
const d = Fe(e, /^[\r\n\t ]+/);
|
294
|
-
n = d && d[0];
|
295
|
-
}
|
296
|
-
K === "application/xhtml+xml" && F === I && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
297
|
-
const c = A ? A.createHTML(e) : e;
|
298
|
-
if (F === I)
|
299
|
-
try {
|
300
|
-
t = new Xt().parseFromString(c, K);
|
301
|
-
} catch {
|
302
|
-
}
|
303
|
-
if (!t || !t.documentElement) {
|
304
|
-
t = ge.createDocument(F, "template", null);
|
305
|
-
try {
|
306
|
-
t.documentElement.innerHTML = Ie ? V : c;
|
307
|
-
} catch {
|
308
|
-
}
|
309
|
-
}
|
310
|
-
const _ = t.body || t.documentElement;
|
311
|
-
return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), F === I ? Jt.call(t, w ? "html" : "body")[0] : w ? t.documentElement : _;
|
312
|
-
}, mt = function(e) {
|
313
|
-
return Kt.call(
|
314
|
-
e.ownerDocument || e,
|
315
|
-
e,
|
316
|
-
// eslint-disable-next-line no-bitwise
|
317
|
-
X.SHOW_ELEMENT | X.SHOW_COMMENT | X.SHOW_TEXT | X.SHOW_PROCESSING_INSTRUCTION | X.SHOW_CDATA_SECTION,
|
318
|
-
null
|
319
|
-
);
|
320
|
-
}, we = function(e) {
|
321
|
-
return e instanceof Yt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof Bt) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
322
|
-
}, pt = function(e) {
|
323
|
-
return typeof Ee == "function" && e instanceof Ee;
|
324
|
-
};
|
325
|
-
function M(i, e, t) {
|
326
|
-
J(i, (n) => {
|
327
|
-
n.call(o, e, t, H);
|
328
|
-
});
|
329
|
-
}
|
330
|
-
const dt = function(e) {
|
331
|
-
let t = null;
|
332
|
-
if (M(S.beforeSanitizeElements, e, null), we(e))
|
333
|
-
return N(e), !0;
|
334
|
-
const n = m(e.nodeName);
|
335
|
-
if (M(S.uponSanitizeElement, e, {
|
336
|
-
tagName: n,
|
337
|
-
allowedTags: u
|
338
|
-
}), e.hasChildNodes() && !pt(e.firstElementChild) && g(/<[/\w!]/g, e.innerHTML) && g(/<[/\w!]/g, e.textContent) || e.nodeType === Y.progressingInstruction || Oe && e.nodeType === Y.comment && g(/<[/\w]/g, e.data))
|
339
|
-
return N(e), !0;
|
340
|
-
if (!u[n] || q[n]) {
|
341
|
-
if (!q[n] && _t(n) && (f.tagNameCheck instanceof RegExp && g(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
|
342
|
-
return !1;
|
343
|
-
if (De && !U[n]) {
|
344
|
-
const c = ne(e) || e.parentNode, _ = $t(e) || e.childNodes;
|
345
|
-
if (_ && c) {
|
346
|
-
const d = _.length;
|
347
|
-
for (let y = d - 1; y >= 0; --y) {
|
348
|
-
const D = jt(_[y], !0);
|
349
|
-
D.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(D, qt(e));
|
350
|
-
}
|
351
|
-
}
|
352
|
-
}
|
353
|
-
return N(e), !0;
|
354
|
-
}
|
355
|
-
return e instanceof qe && !un(e) || (n === "noscript" || n === "noembed" || n === "noframes") && g(/<\/no(script|embed|frames)/i, e.innerHTML) ? (N(e), !0) : (P && e.nodeType === Y.text && (t = e.textContent, J([he, Ae, Se], (c) => {
|
356
|
-
t = G(t, c, " ");
|
357
|
-
}), e.textContent !== t && (z(o.removed, {
|
358
|
-
element: e.cloneNode()
|
359
|
-
}), e.textContent = t)), M(S.afterSanitizeElements, e, null), !1);
|
360
|
-
}, Tt = function(e, t, n) {
|
361
|
-
if (nt && (t === "id" || t === "name") && (n in l || n in fn))
|
362
|
-
return !1;
|
363
|
-
if (!(ye && !Re[t] && g(en, t))) {
|
364
|
-
if (!(Qe && g(tn, t))) {
|
365
|
-
if (!p[t] || Re[t]) {
|
366
|
-
if (
|
367
|
-
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
368
|
-
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
369
|
-
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
370
|
-
!(_t(e) && (f.tagNameCheck instanceof RegExp && g(f.tagNameCheck, e) || f.tagNameCheck instanceof Function && f.tagNameCheck(e)) && (f.attributeNameCheck instanceof RegExp && g(f.attributeNameCheck, t) || f.attributeNameCheck instanceof Function && f.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
371
|
-
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
372
|
-
t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && g(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
|
373
|
-
) return !1;
|
374
|
-
} else if (!be[t]) {
|
375
|
-
if (!g(Ke, G(n, $e, ""))) {
|
376
|
-
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Nt(n, "data:") === 0 && at[e])) {
|
377
|
-
if (!(et && !g(nn, G(n, $e, "")))) {
|
378
|
-
if (n)
|
379
|
-
return !1;
|
380
|
-
}
|
381
|
-
}
|
382
|
-
}
|
383
|
-
}
|
384
|
-
}
|
385
|
-
}
|
386
|
-
return !0;
|
387
|
-
}, _t = function(e) {
|
388
|
-
return e !== "annotation-xml" && Fe(e, on);
|
389
|
-
}, Et = function(e) {
|
390
|
-
M(S.beforeSanitizeAttributes, e, null);
|
391
|
-
const {
|
392
|
-
attributes: t
|
393
|
-
} = e;
|
394
|
-
if (!t || we(e))
|
395
|
-
return;
|
396
|
-
const n = {
|
397
|
-
attrName: "",
|
398
|
-
attrValue: "",
|
399
|
-
keepAttr: !0,
|
400
|
-
allowedAttributes: p,
|
401
|
-
forceKeepAttr: void 0
|
402
|
-
};
|
403
|
-
let c = t.length;
|
404
|
-
for (; c--; ) {
|
405
|
-
const _ = t[c], {
|
406
|
-
name: d,
|
407
|
-
namespaceURI: y,
|
408
|
-
value: D
|
409
|
-
} = _, Z = m(d);
|
410
|
-
let R = d === "value" ? D : Dt(D);
|
411
|
-
if (n.attrName = Z, n.attrValue = R, n.keepAttr = !0, n.forceKeepAttr = void 0, M(S.uponSanitizeAttribute, e, n), R = n.attrValue, ot && (Z === "id" || Z === "name") && (ce(d, e), R = an + R), Oe && g(/((--!?|])>)|<\/(style|title)/i, R)) {
|
412
|
-
ce(d, e);
|
413
|
-
continue;
|
414
|
-
}
|
415
|
-
if (n.forceKeepAttr || (ce(d, e), !n.keepAttr))
|
416
|
-
continue;
|
417
|
-
if (!tt && g(/\/>/i, R)) {
|
418
|
-
ce(d, e);
|
419
|
-
continue;
|
420
|
-
}
|
421
|
-
P && J([he, Ae, Se], (ht) => {
|
422
|
-
R = G(R, ht, " ");
|
423
|
-
});
|
424
|
-
const gt = m(e.nodeName);
|
425
|
-
if (Tt(gt, Z, R)) {
|
426
|
-
if (A && typeof te == "object" && typeof te.getAttributeType == "function" && !y)
|
427
|
-
switch (te.getAttributeType(gt, Z)) {
|
428
|
-
case "TrustedHTML": {
|
429
|
-
R = A.createHTML(R);
|
430
|
-
break;
|
431
|
-
}
|
432
|
-
case "TrustedScriptURL": {
|
433
|
-
R = A.createScriptURL(R);
|
434
|
-
break;
|
435
|
-
}
|
436
|
-
}
|
437
|
-
try {
|
438
|
-
y ? e.setAttributeNS(y, d, R) : e.setAttribute(d, R), we(e) ? N(e) : Ue(o.removed);
|
439
|
-
} catch {
|
440
|
-
}
|
441
|
-
}
|
442
|
-
}
|
443
|
-
M(S.afterSanitizeAttributes, e, null);
|
444
|
-
}, mn = function i(e) {
|
445
|
-
let t = null;
|
446
|
-
const n = mt(e);
|
447
|
-
for (M(S.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
|
448
|
-
M(S.uponSanitizeShadowNode, t, null), dt(t), Et(t), t.content instanceof b && i(t.content);
|
449
|
-
M(S.afterSanitizeShadowDOM, e, null);
|
450
|
-
};
|
451
|
-
return o.sanitize = function(i) {
|
452
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, c = null, _ = null;
|
453
|
-
if (Ie = !i, Ie && (i = "<!-->"), typeof i != "string" && !pt(i))
|
454
|
-
if (typeof i.toString == "function") {
|
455
|
-
if (i = i.toString(), typeof i != "string")
|
456
|
-
throw W("dirty is not a string, aborting");
|
457
|
-
} else
|
458
|
-
throw W("toString is not a function");
|
459
|
-
if (!o.isSupported)
|
460
|
-
return i;
|
461
|
-
if (Le || Ce(e), o.removed = [], typeof i == "string" && ($ = !1), $) {
|
462
|
-
if (i.nodeName) {
|
463
|
-
const D = m(i.nodeName);
|
464
|
-
if (!u[D] || q[D])
|
465
|
-
throw W("root node is forbidden and cannot be sanitized in-place");
|
466
|
-
}
|
467
|
-
} else if (i instanceof Ee)
|
468
|
-
t = ut("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === Y.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
|
469
|
-
else {
|
470
|
-
if (!v && !P && !w && // eslint-disable-next-line unicorn/prefer-includes
|
471
|
-
i.indexOf("<") === -1)
|
472
|
-
return A && ie ? A.createHTML(i) : i;
|
473
|
-
if (t = ut(i), !t)
|
474
|
-
return v ? null : ie ? V : "";
|
475
|
-
}
|
476
|
-
t && Ne && N(t.firstChild);
|
477
|
-
const d = mt($ ? i : t);
|
478
|
-
for (; c = d.nextNode(); )
|
479
|
-
dt(c), Et(c), c.content instanceof b && mn(c.content);
|
480
|
-
if ($)
|
481
|
-
return i;
|
482
|
-
if (v) {
|
483
|
-
if (oe)
|
484
|
-
for (_ = Zt.call(t.ownerDocument); t.firstChild; )
|
485
|
-
_.appendChild(t.firstChild);
|
486
|
-
else
|
487
|
-
_ = t;
|
488
|
-
return (p.shadowroot || p.shadowrootmode) && (_ = Qt.call(s, _, !0)), _;
|
489
|
-
}
|
490
|
-
let y = w ? t.outerHTML : t.innerHTML;
|
491
|
-
return w && u["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && g(Ye, t.ownerDocument.doctype.name) && (y = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
|
492
|
-
` + y), P && J([he, Ae, Se], (D) => {
|
493
|
-
y = G(y, D, " ");
|
494
|
-
}), A && ie ? A.createHTML(y) : y;
|
495
|
-
}, o.setConfig = function() {
|
496
|
-
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
497
|
-
Ce(i), Le = !0;
|
498
|
-
}, o.clearConfig = function() {
|
499
|
-
H = null, Le = !1;
|
500
|
-
}, o.isValidAttribute = function(i, e, t) {
|
501
|
-
H || Ce({});
|
502
|
-
const n = m(i), c = m(e);
|
503
|
-
return Tt(n, c, t);
|
504
|
-
}, o.addHook = function(i, e) {
|
505
|
-
typeof e == "function" && z(S[i], e);
|
506
|
-
}, o.removeHook = function(i, e) {
|
507
|
-
if (e !== void 0) {
|
508
|
-
const t = Ot(S[i], e);
|
509
|
-
return t === -1 ? void 0 : Lt(S[i], t, 1)[0];
|
510
|
-
}
|
511
|
-
return Ue(S[i]);
|
512
|
-
}, o.removeHooks = function(i) {
|
513
|
-
S[i] = [];
|
514
|
-
}, o.removeAllHooks = function() {
|
515
|
-
S = je();
|
516
|
-
}, o;
|
517
|
-
}
|
518
|
-
var Wt = Ve();
|
519
|
-
return xe = Wt, xe;
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
2
|
+
function l(e) {
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
520
4
|
}
|
521
5
|
export {
|
522
|
-
|
6
|
+
o as commonjsGlobal,
|
7
|
+
l as getDefaultExportFromCjs
|
523
8
|
};
|
524
9
|
//# sourceMappingURL=index.es463.js.map
|