@phillips/seldon 1.67.0 → 1.67.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Search/SearchResults/SearchResults.js +17 -21
- package/dist/scss/componentStyles.scss +0 -1
- package/package.json +1 -1
- package/dist/_virtual/attributes-to-props.js +0 -4
- package/dist/_virtual/constants.js +0 -4
- package/dist/_virtual/dom-to-react.js +0 -4
- package/dist/_virtual/domparser.js +0 -4
- package/dist/_virtual/html-to-dom.js +0 -4
- package/dist/_virtual/index10.js +0 -4
- package/dist/_virtual/index11.js +0 -4
- package/dist/_virtual/index7.js +0 -4
- package/dist/_virtual/index8.js +0 -4
- package/dist/_virtual/index9.js +0 -4
- package/dist/_virtual/node.js +0 -4
- package/dist/_virtual/possibleStandardNamesOptimized.js +0 -4
- package/dist/_virtual/utilities.js +0 -4
- package/dist/_virtual/utilities2.js +0 -4
- package/dist/_virtual/utilities3.js +0 -4
- package/dist/components/HTMLParser/HTMLParser.d.ts +0 -24
- package/dist/components/HTMLParser/HTMLParser.js +0 -21
- package/dist/components/HTMLParser/index.d.ts +0 -1
- package/dist/components/HTMLParser/utils.d.ts +0 -7
- package/dist/components/HTMLParser/utils.js +0 -31
- package/dist/node_modules/domelementtype/lib/index.js +0 -12
- package/dist/node_modules/domhandler/lib/index.js +0 -84
- package/dist/node_modules/domhandler/lib/node.js +0 -356
- package/dist/node_modules/dompurify/dist/purify.es.js +0 -522
- package/dist/node_modules/html-dom-parser/lib/client/constants.js +0 -38
- package/dist/node_modules/html-dom-parser/lib/client/domparser.js +0 -56
- package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +0 -20
- package/dist/node_modules/html-dom-parser/lib/client/utilities.js +0 -55
- package/dist/node_modules/html-react-parser/esm/index.js +0 -7
- package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +0 -40
- package/dist/node_modules/html-react-parser/lib/dom-to-react.js +0 -60
- package/dist/node_modules/html-react-parser/lib/index.js +0 -42
- package/dist/node_modules/html-react-parser/lib/utilities.js +0 -58
- package/dist/node_modules/inline-style-parser/index.js +0 -86
- package/dist/node_modules/react-property/lib/index.js +0 -440
- package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +0 -493
- package/dist/node_modules/style-to-js/cjs/index.js +0 -19
- package/dist/node_modules/style-to-js/cjs/utilities.js +0 -16
- package/dist/node_modules/style-to-object/cjs/index.js +0 -21
- package/dist/scss/components/HTMLParser/_htmlParser.scss +0 -5
|
@@ -1,522 +0,0 @@
|
|
|
1
|
-
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
2
|
-
const {
|
|
3
|
-
entries: pt,
|
|
4
|
-
setPrototypeOf: at,
|
|
5
|
-
isFrozen: Wt,
|
|
6
|
-
getPrototypeOf: Gt,
|
|
7
|
-
getOwnPropertyDescriptor: Bt
|
|
8
|
-
} = Object;
|
|
9
|
-
let {
|
|
10
|
-
freeze: A,
|
|
11
|
-
seal: L,
|
|
12
|
-
create: dt
|
|
13
|
-
} = Object, {
|
|
14
|
-
apply: be,
|
|
15
|
-
construct: Ce
|
|
16
|
-
} = typeof Reflect != "undefined" && Reflect;
|
|
17
|
-
A || (A = function(o) {
|
|
18
|
-
return o;
|
|
19
|
-
});
|
|
20
|
-
L || (L = function(o) {
|
|
21
|
-
return o;
|
|
22
|
-
});
|
|
23
|
-
be || (be = function(o, l, r) {
|
|
24
|
-
return o.apply(l, r);
|
|
25
|
-
});
|
|
26
|
-
Ce || (Ce = function(o, l) {
|
|
27
|
-
return new o(...l);
|
|
28
|
-
});
|
|
29
|
-
const ae = R(Array.prototype.forEach), rt = R(Array.prototype.pop), V = R(Array.prototype.push), se = R(String.prototype.toLowerCase), Le = R(String.prototype.toString), st = R(String.prototype.match), $ = R(String.prototype.replace), Yt = R(String.prototype.indexOf), Xt = R(String.prototype.trim), O = R(Object.prototype.hasOwnProperty), h = R(RegExp.prototype.test), q = jt(TypeError);
|
|
30
|
-
function R(s) {
|
|
31
|
-
return function(o) {
|
|
32
|
-
for (var l = arguments.length, r = new Array(l > 1 ? l - 1 : 0), T = 1; T < l; T++)
|
|
33
|
-
r[T - 1] = arguments[T];
|
|
34
|
-
return be(s, o, r);
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function jt(s) {
|
|
38
|
-
return function() {
|
|
39
|
-
for (var o = arguments.length, l = new Array(o), r = 0; r < o; r++)
|
|
40
|
-
l[r] = arguments[r];
|
|
41
|
-
return Ce(s, l);
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function a(s, o) {
|
|
45
|
-
let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : se;
|
|
46
|
-
at && at(s, null);
|
|
47
|
-
let r = o.length;
|
|
48
|
-
for (; r--; ) {
|
|
49
|
-
let T = o[r];
|
|
50
|
-
if (typeof T == "string") {
|
|
51
|
-
const b = l(T);
|
|
52
|
-
b !== T && (Wt(o) || (o[r] = b), T = b);
|
|
53
|
-
}
|
|
54
|
-
s[T] = !0;
|
|
55
|
-
}
|
|
56
|
-
return s;
|
|
57
|
-
}
|
|
58
|
-
function Vt(s) {
|
|
59
|
-
for (let o = 0; o < s.length; o++)
|
|
60
|
-
O(s, o) || (s[o] = null);
|
|
61
|
-
return s;
|
|
62
|
-
}
|
|
63
|
-
function w(s) {
|
|
64
|
-
const o = dt(null);
|
|
65
|
-
for (const [l, r] of pt(s))
|
|
66
|
-
O(s, l) && (Array.isArray(r) ? o[l] = Vt(r) : r && typeof r == "object" && r.constructor === Object ? o[l] = w(r) : o[l] = r);
|
|
67
|
-
return o;
|
|
68
|
-
}
|
|
69
|
-
function K(s, o) {
|
|
70
|
-
for (; s !== null; ) {
|
|
71
|
-
const r = Bt(s, o);
|
|
72
|
-
if (r) {
|
|
73
|
-
if (r.get)
|
|
74
|
-
return R(r.get);
|
|
75
|
-
if (typeof r.value == "function")
|
|
76
|
-
return R(r.value);
|
|
77
|
-
}
|
|
78
|
-
s = Gt(s);
|
|
79
|
-
}
|
|
80
|
-
function l() {
|
|
81
|
-
return null;
|
|
82
|
-
}
|
|
83
|
-
return l;
|
|
84
|
-
}
|
|
85
|
-
const lt = A(["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"]), Oe = A(["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"]), ye = A(["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"]), $t = A(["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"]), De = A(["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"]), qt = A(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ct = A(["#text"]), ft = A(["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"]), Ne = A(["accent-height", "accumulate", "additive", "alignment-baseline", "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", "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", "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", "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", "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"]), ut = A(["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"]), re = A(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Kt = L(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Zt = L(/<%[\w\W]*|[\w\W]*%>/gm), Jt = L(/\${[\w\W]*}/gm), Qt = L(/^data-[\-\w.\u00B7-\uFFFF]/), en = L(/^aria-[\-\w]+$/), Tt = L(
|
|
86
|
-
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
87
|
-
// eslint-disable-line no-useless-escape
|
|
88
|
-
), tn = L(/^(?:\w+script|data):/i), nn = L(
|
|
89
|
-
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
90
|
-
// eslint-disable-line no-control-regex
|
|
91
|
-
), _t = L(/^html$/i), on = L(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
92
|
-
var mt = /* @__PURE__ */ Object.freeze({
|
|
93
|
-
__proto__: null,
|
|
94
|
-
MUSTACHE_EXPR: Kt,
|
|
95
|
-
ERB_EXPR: Zt,
|
|
96
|
-
TMPLIT_EXPR: Jt,
|
|
97
|
-
DATA_ATTR: Qt,
|
|
98
|
-
ARIA_ATTR: en,
|
|
99
|
-
IS_ALLOWED_URI: Tt,
|
|
100
|
-
IS_SCRIPT_OR_DATA: tn,
|
|
101
|
-
ATTR_WHITESPACE: nn,
|
|
102
|
-
DOCTYPE_NAME: _t,
|
|
103
|
-
CUSTOM_ELEMENT: on
|
|
104
|
-
});
|
|
105
|
-
const Z = {
|
|
106
|
-
element: 1,
|
|
107
|
-
attribute: 2,
|
|
108
|
-
text: 3,
|
|
109
|
-
cdataSection: 4,
|
|
110
|
-
entityReference: 5,
|
|
111
|
-
// Deprecated
|
|
112
|
-
entityNode: 6,
|
|
113
|
-
// Deprecated
|
|
114
|
-
progressingInstruction: 7,
|
|
115
|
-
comment: 8,
|
|
116
|
-
document: 9,
|
|
117
|
-
documentType: 10,
|
|
118
|
-
documentFragment: 11,
|
|
119
|
-
notation: 12
|
|
120
|
-
// Deprecated
|
|
121
|
-
}, an = function() {
|
|
122
|
-
return typeof window == "undefined" ? null : window;
|
|
123
|
-
}, rn = function(o, l) {
|
|
124
|
-
if (typeof o != "object" || typeof o.createPolicy != "function")
|
|
125
|
-
return null;
|
|
126
|
-
let r = null;
|
|
127
|
-
const T = "data-tt-policy-suffix";
|
|
128
|
-
l && l.hasAttribute(T) && (r = l.getAttribute(T));
|
|
129
|
-
const b = "dompurify" + (r ? "#" + r : "");
|
|
130
|
-
try {
|
|
131
|
-
return o.createPolicy(b, {
|
|
132
|
-
createHTML(x) {
|
|
133
|
-
return x;
|
|
134
|
-
},
|
|
135
|
-
createScriptURL(x) {
|
|
136
|
-
return x;
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
} catch {
|
|
140
|
-
return console.warn("TrustedTypes policy " + b + " could not be created."), null;
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
function Et() {
|
|
144
|
-
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : an();
|
|
145
|
-
const o = (i) => Et(i);
|
|
146
|
-
if (o.version = "3.1.6", o.removed = [], !s || !s.document || s.document.nodeType !== Z.document)
|
|
147
|
-
return o.isSupported = !1, o;
|
|
148
|
-
let {
|
|
149
|
-
document: l
|
|
150
|
-
} = s;
|
|
151
|
-
const r = l, T = r.currentScript, {
|
|
152
|
-
DocumentFragment: b,
|
|
153
|
-
HTMLTemplateElement: x,
|
|
154
|
-
Node: le,
|
|
155
|
-
Element: Ie,
|
|
156
|
-
NodeFilter: z,
|
|
157
|
-
NamedNodeMap: gt = s.NamedNodeMap || s.MozNamedAttrMap,
|
|
158
|
-
HTMLFormElement: ht,
|
|
159
|
-
DOMParser: At,
|
|
160
|
-
trustedTypes: J
|
|
161
|
-
} = s, W = Ie.prototype, St = K(W, "cloneNode"), Rt = K(W, "remove"), Lt = K(W, "nextSibling"), Ot = K(W, "childNodes"), Q = K(W, "parentNode");
|
|
162
|
-
if (typeof x == "function") {
|
|
163
|
-
const i = l.createElement("template");
|
|
164
|
-
i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
|
|
165
|
-
}
|
|
166
|
-
let E, G = "";
|
|
167
|
-
const {
|
|
168
|
-
implementation: ce,
|
|
169
|
-
createNodeIterator: yt,
|
|
170
|
-
createDocumentFragment: Dt,
|
|
171
|
-
getElementsByTagName: Nt
|
|
172
|
-
} = l, {
|
|
173
|
-
importNode: bt
|
|
174
|
-
} = r;
|
|
175
|
-
let y = {};
|
|
176
|
-
o.isSupported = typeof pt == "function" && typeof Q == "function" && ce && ce.createHTMLDocument !== void 0;
|
|
177
|
-
const {
|
|
178
|
-
MUSTACHE_EXPR: fe,
|
|
179
|
-
ERB_EXPR: ue,
|
|
180
|
-
TMPLIT_EXPR: me,
|
|
181
|
-
DATA_ATTR: Ct,
|
|
182
|
-
ARIA_ATTR: It,
|
|
183
|
-
IS_SCRIPT_OR_DATA: Mt,
|
|
184
|
-
ATTR_WHITESPACE: Me,
|
|
185
|
-
CUSTOM_ELEMENT: wt
|
|
186
|
-
} = mt;
|
|
187
|
-
let {
|
|
188
|
-
IS_ALLOWED_URI: we
|
|
189
|
-
} = mt, u = null;
|
|
190
|
-
const xe = a({}, [...lt, ...Oe, ...ye, ...De, ...ct]);
|
|
191
|
-
let m = null;
|
|
192
|
-
const Pe = a({}, [...ft, ...Ne, ...ut, ...re]);
|
|
193
|
-
let f = Object.seal(dt(null, {
|
|
194
|
-
tagNameCheck: {
|
|
195
|
-
writable: !0,
|
|
196
|
-
configurable: !1,
|
|
197
|
-
enumerable: !0,
|
|
198
|
-
value: null
|
|
199
|
-
},
|
|
200
|
-
attributeNameCheck: {
|
|
201
|
-
writable: !0,
|
|
202
|
-
configurable: !1,
|
|
203
|
-
enumerable: !0,
|
|
204
|
-
value: null
|
|
205
|
-
},
|
|
206
|
-
allowCustomizedBuiltInElements: {
|
|
207
|
-
writable: !0,
|
|
208
|
-
configurable: !1,
|
|
209
|
-
enumerable: !0,
|
|
210
|
-
value: !1
|
|
211
|
-
}
|
|
212
|
-
})), B = null, pe = null, ve = !0, de = !0, ke = !1, Ue = !0, P = !1, Te = !0, M = !1, _e = !1, Ee = !1, v = !1, ee = !1, te = !1, Fe = !0, He = !1;
|
|
213
|
-
const xt = "user-content-";
|
|
214
|
-
let ge = !0, Y = !1, k = {}, U = null;
|
|
215
|
-
const ze = 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"]);
|
|
216
|
-
let We = null;
|
|
217
|
-
const Ge = a({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
218
|
-
let he = null;
|
|
219
|
-
const Be = a({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ne = "http://www.w3.org/1998/Math/MathML", oe = "http://www.w3.org/2000/svg", C = "http://www.w3.org/1999/xhtml";
|
|
220
|
-
let F = C, Ae = !1, Se = null;
|
|
221
|
-
const Pt = a({}, [ne, oe, C], Le);
|
|
222
|
-
let X = null;
|
|
223
|
-
const vt = ["application/xhtml+xml", "text/html"], kt = "text/html";
|
|
224
|
-
let p = null, H = null;
|
|
225
|
-
const Ut = l.createElement("form"), Ye = function(e) {
|
|
226
|
-
return e instanceof RegExp || e instanceof Function;
|
|
227
|
-
}, Re = function() {
|
|
228
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
229
|
-
if (!(H && H === e)) {
|
|
230
|
-
if ((!e || typeof e != "object") && (e = {}), e = w(e), X = // eslint-disable-next-line unicorn/prefer-includes
|
|
231
|
-
vt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? kt : e.PARSER_MEDIA_TYPE, p = X === "application/xhtml+xml" ? Le : se, u = O(e, "ALLOWED_TAGS") ? a({}, e.ALLOWED_TAGS, p) : xe, m = O(e, "ALLOWED_ATTR") ? a({}, e.ALLOWED_ATTR, p) : Pe, Se = O(e, "ALLOWED_NAMESPACES") ? a({}, e.ALLOWED_NAMESPACES, Le) : Pt, he = O(e, "ADD_URI_SAFE_ATTR") ? a(
|
|
232
|
-
w(Be),
|
|
233
|
-
// eslint-disable-line indent
|
|
234
|
-
e.ADD_URI_SAFE_ATTR,
|
|
235
|
-
// eslint-disable-line indent
|
|
236
|
-
p
|
|
237
|
-
// eslint-disable-line indent
|
|
238
|
-
) : Be, We = O(e, "ADD_DATA_URI_TAGS") ? a(
|
|
239
|
-
w(Ge),
|
|
240
|
-
// eslint-disable-line indent
|
|
241
|
-
e.ADD_DATA_URI_TAGS,
|
|
242
|
-
// eslint-disable-line indent
|
|
243
|
-
p
|
|
244
|
-
// eslint-disable-line indent
|
|
245
|
-
) : Ge, U = O(e, "FORBID_CONTENTS") ? a({}, e.FORBID_CONTENTS, p) : ze, B = O(e, "FORBID_TAGS") ? a({}, e.FORBID_TAGS, p) : {}, pe = O(e, "FORBID_ATTR") ? a({}, e.FORBID_ATTR, p) : {}, k = O(e, "USE_PROFILES") ? e.USE_PROFILES : !1, ve = e.ALLOW_ARIA_ATTR !== !1, de = e.ALLOW_DATA_ATTR !== !1, ke = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ue = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, Te = e.SAFE_FOR_XML !== !1, M = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, ee = e.RETURN_DOM_FRAGMENT || !1, te = e.RETURN_TRUSTED_TYPE || !1, Ee = e.FORCE_BODY || !1, Fe = e.SANITIZE_DOM !== !1, He = e.SANITIZE_NAMED_PROPS || !1, ge = e.KEEP_CONTENT !== !1, Y = e.IN_PLACE || !1, we = e.ALLOWED_URI_REGEXP || Tt, F = e.NAMESPACE || C, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ye(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ye(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 && (de = !1), ee && (v = !0), k && (u = a({}, ct), m = [], k.html === !0 && (a(u, lt), a(m, ft)), k.svg === !0 && (a(u, Oe), a(m, Ne), a(m, re)), k.svgFilters === !0 && (a(u, ye), a(m, Ne), a(m, re)), k.mathMl === !0 && (a(u, De), a(m, ut), a(m, re))), e.ADD_TAGS && (u === xe && (u = w(u)), a(u, e.ADD_TAGS, p)), e.ADD_ATTR && (m === Pe && (m = w(m)), a(m, e.ADD_ATTR, p)), e.ADD_URI_SAFE_ATTR && a(he, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (U === ze && (U = w(U)), a(U, e.FORBID_CONTENTS, p)), ge && (u["#text"] = !0), M && a(u, ["html", "head", "body"]), u.table && (a(u, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
246
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
247
|
-
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
248
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
249
|
-
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
250
|
-
E = e.TRUSTED_TYPES_POLICY, G = E.createHTML("");
|
|
251
|
-
} else
|
|
252
|
-
E === void 0 && (E = rn(J, T)), E !== null && typeof G == "string" && (G = E.createHTML(""));
|
|
253
|
-
A && A(e), H = e;
|
|
254
|
-
}
|
|
255
|
-
}, Xe = a({}, ["mi", "mo", "mn", "ms", "mtext"]), je = a({}, ["foreignobject", "annotation-xml"]), Ft = a({}, ["title", "style", "font", "a", "script"]), Ve = a({}, [...Oe, ...ye, ...$t]), $e = a({}, [...De, ...qt]), Ht = function(e) {
|
|
256
|
-
let t = Q(e);
|
|
257
|
-
(!t || !t.tagName) && (t = {
|
|
258
|
-
namespaceURI: F,
|
|
259
|
-
tagName: "template"
|
|
260
|
-
});
|
|
261
|
-
const n = se(e.tagName), c = se(t.tagName);
|
|
262
|
-
return Se[e.namespaceURI] ? e.namespaceURI === oe ? t.namespaceURI === C ? n === "svg" : t.namespaceURI === ne ? n === "svg" && (c === "annotation-xml" || Xe[c]) : !!Ve[n] : e.namespaceURI === ne ? t.namespaceURI === C ? n === "math" : t.namespaceURI === oe ? n === "math" && je[c] : !!$e[n] : e.namespaceURI === C ? t.namespaceURI === oe && !je[c] || t.namespaceURI === ne && !Xe[c] ? !1 : !$e[n] && (Ft[n] || !Ve[n]) : !!(X === "application/xhtml+xml" && Se[e.namespaceURI]) : !1;
|
|
263
|
-
}, D = function(e) {
|
|
264
|
-
V(o.removed, {
|
|
265
|
-
element: e
|
|
266
|
-
});
|
|
267
|
-
try {
|
|
268
|
-
Q(e).removeChild(e);
|
|
269
|
-
} catch {
|
|
270
|
-
Rt(e);
|
|
271
|
-
}
|
|
272
|
-
}, ie = function(e, t) {
|
|
273
|
-
try {
|
|
274
|
-
V(o.removed, {
|
|
275
|
-
attribute: t.getAttributeNode(e),
|
|
276
|
-
from: t
|
|
277
|
-
});
|
|
278
|
-
} catch {
|
|
279
|
-
V(o.removed, {
|
|
280
|
-
attribute: null,
|
|
281
|
-
from: t
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
if (t.removeAttribute(e), e === "is" && !m[e])
|
|
285
|
-
if (v || ee)
|
|
286
|
-
try {
|
|
287
|
-
D(t);
|
|
288
|
-
} catch {
|
|
289
|
-
}
|
|
290
|
-
else
|
|
291
|
-
try {
|
|
292
|
-
t.setAttribute(e, "");
|
|
293
|
-
} catch {
|
|
294
|
-
}
|
|
295
|
-
}, qe = function(e) {
|
|
296
|
-
let t = null, n = null;
|
|
297
|
-
if (Ee)
|
|
298
|
-
e = "<remove></remove>" + e;
|
|
299
|
-
else {
|
|
300
|
-
const d = st(e, /^[\r\n\t ]+/);
|
|
301
|
-
n = d && d[0];
|
|
302
|
-
}
|
|
303
|
-
X === "application/xhtml+xml" && F === C && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
304
|
-
const c = E ? E.createHTML(e) : e;
|
|
305
|
-
if (F === C)
|
|
306
|
-
try {
|
|
307
|
-
t = new At().parseFromString(c, X);
|
|
308
|
-
} catch {
|
|
309
|
-
}
|
|
310
|
-
if (!t || !t.documentElement) {
|
|
311
|
-
t = ce.createDocument(F, "template", null);
|
|
312
|
-
try {
|
|
313
|
-
t.documentElement.innerHTML = Ae ? G : c;
|
|
314
|
-
} catch {
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
const _ = t.body || t.documentElement;
|
|
318
|
-
return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), F === C ? Nt.call(t, M ? "html" : "body")[0] : M ? t.documentElement : _;
|
|
319
|
-
}, Ke = function(e) {
|
|
320
|
-
return yt.call(
|
|
321
|
-
e.ownerDocument || e,
|
|
322
|
-
e,
|
|
323
|
-
// eslint-disable-next-line no-bitwise
|
|
324
|
-
z.SHOW_ELEMENT | z.SHOW_COMMENT | z.SHOW_TEXT | z.SHOW_PROCESSING_INSTRUCTION | z.SHOW_CDATA_SECTION,
|
|
325
|
-
null
|
|
326
|
-
);
|
|
327
|
-
}, Ze = function(e) {
|
|
328
|
-
return e instanceof ht && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof gt) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
329
|
-
}, Je = function(e) {
|
|
330
|
-
return typeof le == "function" && e instanceof le;
|
|
331
|
-
}, I = function(e, t, n) {
|
|
332
|
-
y[e] && ae(y[e], (c) => {
|
|
333
|
-
c.call(o, t, n, H);
|
|
334
|
-
});
|
|
335
|
-
}, Qe = function(e) {
|
|
336
|
-
let t = null;
|
|
337
|
-
if (I("beforeSanitizeElements", e, null), Ze(e))
|
|
338
|
-
return D(e), !0;
|
|
339
|
-
const n = p(e.nodeName);
|
|
340
|
-
if (I("uponSanitizeElement", e, {
|
|
341
|
-
tagName: n,
|
|
342
|
-
allowedTags: u
|
|
343
|
-
}), e.hasChildNodes() && !Je(e.firstElementChild) && h(/<[/\w]/g, e.innerHTML) && h(/<[/\w]/g, e.textContent) || e.nodeType === Z.progressingInstruction || Te && e.nodeType === Z.comment && h(/<[/\w]/g, e.data))
|
|
344
|
-
return D(e), !0;
|
|
345
|
-
if (!u[n] || B[n]) {
|
|
346
|
-
if (!B[n] && tt(n) && (f.tagNameCheck instanceof RegExp && h(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
|
|
347
|
-
return !1;
|
|
348
|
-
if (ge && !U[n]) {
|
|
349
|
-
const c = Q(e) || e.parentNode, _ = Ot(e) || e.childNodes;
|
|
350
|
-
if (_ && c) {
|
|
351
|
-
const d = _.length;
|
|
352
|
-
for (let S = d - 1; S >= 0; --S) {
|
|
353
|
-
const N = St(_[S], !0);
|
|
354
|
-
N.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(N, Lt(e));
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
return D(e), !0;
|
|
359
|
-
}
|
|
360
|
-
return e instanceof Ie && !Ht(e) || (n === "noscript" || n === "noembed" || n === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (D(e), !0) : (P && e.nodeType === Z.text && (t = e.textContent, ae([fe, ue, me], (c) => {
|
|
361
|
-
t = $(t, c, " ");
|
|
362
|
-
}), e.textContent !== t && (V(o.removed, {
|
|
363
|
-
element: e.cloneNode()
|
|
364
|
-
}), e.textContent = t)), I("afterSanitizeElements", e, null), !1);
|
|
365
|
-
}, et = function(e, t, n) {
|
|
366
|
-
if (Fe && (t === "id" || t === "name") && (n in l || n in Ut))
|
|
367
|
-
return !1;
|
|
368
|
-
if (!(de && !pe[t] && h(Ct, t))) {
|
|
369
|
-
if (!(ve && h(It, t))) {
|
|
370
|
-
if (!m[t] || pe[t]) {
|
|
371
|
-
if (
|
|
372
|
-
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
373
|
-
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
374
|
-
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
375
|
-
!(tt(e) && (f.tagNameCheck instanceof RegExp && h(f.tagNameCheck, e) || f.tagNameCheck instanceof Function && f.tagNameCheck(e)) && (f.attributeNameCheck instanceof RegExp && h(f.attributeNameCheck, t) || f.attributeNameCheck instanceof Function && f.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
376
|
-
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
377
|
-
t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && h(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
|
|
378
|
-
) return !1;
|
|
379
|
-
} else if (!he[t]) {
|
|
380
|
-
if (!h(we, $(n, Me, ""))) {
|
|
381
|
-
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Yt(n, "data:") === 0 && We[e])) {
|
|
382
|
-
if (!(ke && !h(Mt, $(n, Me, "")))) {
|
|
383
|
-
if (n)
|
|
384
|
-
return !1;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
return !0;
|
|
392
|
-
}, tt = function(e) {
|
|
393
|
-
return e !== "annotation-xml" && st(e, wt);
|
|
394
|
-
}, nt = function(e) {
|
|
395
|
-
I("beforeSanitizeAttributes", e, null);
|
|
396
|
-
const {
|
|
397
|
-
attributes: t
|
|
398
|
-
} = e;
|
|
399
|
-
if (!t)
|
|
400
|
-
return;
|
|
401
|
-
const n = {
|
|
402
|
-
attrName: "",
|
|
403
|
-
attrValue: "",
|
|
404
|
-
keepAttr: !0,
|
|
405
|
-
allowedAttributes: m
|
|
406
|
-
};
|
|
407
|
-
let c = t.length;
|
|
408
|
-
for (; c--; ) {
|
|
409
|
-
const _ = t[c], {
|
|
410
|
-
name: d,
|
|
411
|
-
namespaceURI: S,
|
|
412
|
-
value: N
|
|
413
|
-
} = _, j = p(d);
|
|
414
|
-
let g = d === "value" ? N : Xt(N);
|
|
415
|
-
if (n.attrName = j, n.attrValue = g, n.keepAttr = !0, n.forceKeepAttr = void 0, I("uponSanitizeAttribute", e, n), g = n.attrValue, Te && h(/((--!?|])>)|<\/(style|title)/i, g)) {
|
|
416
|
-
ie(d, e);
|
|
417
|
-
continue;
|
|
418
|
-
}
|
|
419
|
-
if (n.forceKeepAttr || (ie(d, e), !n.keepAttr))
|
|
420
|
-
continue;
|
|
421
|
-
if (!Ue && h(/\/>/i, g)) {
|
|
422
|
-
ie(d, e);
|
|
423
|
-
continue;
|
|
424
|
-
}
|
|
425
|
-
P && ae([fe, ue, me], (it) => {
|
|
426
|
-
g = $(g, it, " ");
|
|
427
|
-
});
|
|
428
|
-
const ot = p(e.nodeName);
|
|
429
|
-
if (et(ot, j, g)) {
|
|
430
|
-
if (He && (j === "id" || j === "name") && (ie(d, e), g = xt + g), E && typeof J == "object" && typeof J.getAttributeType == "function" && !S)
|
|
431
|
-
switch (J.getAttributeType(ot, j)) {
|
|
432
|
-
case "TrustedHTML": {
|
|
433
|
-
g = E.createHTML(g);
|
|
434
|
-
break;
|
|
435
|
-
}
|
|
436
|
-
case "TrustedScriptURL": {
|
|
437
|
-
g = E.createScriptURL(g);
|
|
438
|
-
break;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
try {
|
|
442
|
-
S ? e.setAttributeNS(S, d, g) : e.setAttribute(d, g), Ze(e) ? D(e) : rt(o.removed);
|
|
443
|
-
} catch {
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
I("afterSanitizeAttributes", e, null);
|
|
448
|
-
}, zt = function i(e) {
|
|
449
|
-
let t = null;
|
|
450
|
-
const n = Ke(e);
|
|
451
|
-
for (I("beforeSanitizeShadowDOM", e, null); t = n.nextNode(); )
|
|
452
|
-
I("uponSanitizeShadowNode", t, null), !Qe(t) && (t.content instanceof b && i(t.content), nt(t));
|
|
453
|
-
I("afterSanitizeShadowDOM", e, null);
|
|
454
|
-
};
|
|
455
|
-
return o.sanitize = function(i) {
|
|
456
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, c = null, _ = null;
|
|
457
|
-
if (Ae = !i, Ae && (i = "<!-->"), typeof i != "string" && !Je(i))
|
|
458
|
-
if (typeof i.toString == "function") {
|
|
459
|
-
if (i = i.toString(), typeof i != "string")
|
|
460
|
-
throw q("dirty is not a string, aborting");
|
|
461
|
-
} else
|
|
462
|
-
throw q("toString is not a function");
|
|
463
|
-
if (!o.isSupported)
|
|
464
|
-
return i;
|
|
465
|
-
if (_e || Re(e), o.removed = [], typeof i == "string" && (Y = !1), Y) {
|
|
466
|
-
if (i.nodeName) {
|
|
467
|
-
const N = p(i.nodeName);
|
|
468
|
-
if (!u[N] || B[N])
|
|
469
|
-
throw q("root node is forbidden and cannot be sanitized in-place");
|
|
470
|
-
}
|
|
471
|
-
} else if (i instanceof le)
|
|
472
|
-
t = qe("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === Z.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
|
|
473
|
-
else {
|
|
474
|
-
if (!v && !P && !M && // eslint-disable-next-line unicorn/prefer-includes
|
|
475
|
-
i.indexOf("<") === -1)
|
|
476
|
-
return E && te ? E.createHTML(i) : i;
|
|
477
|
-
if (t = qe(i), !t)
|
|
478
|
-
return v ? null : te ? G : "";
|
|
479
|
-
}
|
|
480
|
-
t && Ee && D(t.firstChild);
|
|
481
|
-
const d = Ke(Y ? i : t);
|
|
482
|
-
for (; c = d.nextNode(); )
|
|
483
|
-
Qe(c) || (c.content instanceof b && zt(c.content), nt(c));
|
|
484
|
-
if (Y)
|
|
485
|
-
return i;
|
|
486
|
-
if (v) {
|
|
487
|
-
if (ee)
|
|
488
|
-
for (_ = Dt.call(t.ownerDocument); t.firstChild; )
|
|
489
|
-
_.appendChild(t.firstChild);
|
|
490
|
-
else
|
|
491
|
-
_ = t;
|
|
492
|
-
return (m.shadowroot || m.shadowrootmode) && (_ = bt.call(r, _, !0)), _;
|
|
493
|
-
}
|
|
494
|
-
let S = M ? t.outerHTML : t.innerHTML;
|
|
495
|
-
return M && u["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && h(_t, t.ownerDocument.doctype.name) && (S = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
|
|
496
|
-
` + S), P && ae([fe, ue, me], (N) => {
|
|
497
|
-
S = $(S, N, " ");
|
|
498
|
-
}), E && te ? E.createHTML(S) : S;
|
|
499
|
-
}, o.setConfig = function() {
|
|
500
|
-
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
501
|
-
Re(i), _e = !0;
|
|
502
|
-
}, o.clearConfig = function() {
|
|
503
|
-
H = null, _e = !1;
|
|
504
|
-
}, o.isValidAttribute = function(i, e, t) {
|
|
505
|
-
H || Re({});
|
|
506
|
-
const n = p(i), c = p(e);
|
|
507
|
-
return et(n, c, t);
|
|
508
|
-
}, o.addHook = function(i, e) {
|
|
509
|
-
typeof e == "function" && (y[i] = y[i] || [], V(y[i], e));
|
|
510
|
-
}, o.removeHook = function(i) {
|
|
511
|
-
if (y[i])
|
|
512
|
-
return rt(y[i]);
|
|
513
|
-
}, o.removeHooks = function(i) {
|
|
514
|
-
y[i] && (y[i] = []);
|
|
515
|
-
}, o.removeAllHooks = function() {
|
|
516
|
-
y = {};
|
|
517
|
-
}, o;
|
|
518
|
-
}
|
|
519
|
-
var sn = Et();
|
|
520
|
-
export {
|
|
521
|
-
sn as default
|
|
522
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { __exports as i } from "../../../../_virtual/constants.js";
|
|
2
|
-
(function(e) {
|
|
3
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES = void 0, e.CASE_SENSITIVE_TAG_NAMES = [
|
|
4
|
-
"animateMotion",
|
|
5
|
-
"animateTransform",
|
|
6
|
-
"clipPath",
|
|
7
|
-
"feBlend",
|
|
8
|
-
"feColorMatrix",
|
|
9
|
-
"feComponentTransfer",
|
|
10
|
-
"feComposite",
|
|
11
|
-
"feConvolveMatrix",
|
|
12
|
-
"feDiffuseLighting",
|
|
13
|
-
"feDisplacementMap",
|
|
14
|
-
"feDropShadow",
|
|
15
|
-
"feFlood",
|
|
16
|
-
"feFuncA",
|
|
17
|
-
"feFuncB",
|
|
18
|
-
"feFuncG",
|
|
19
|
-
"feFuncR",
|
|
20
|
-
"feGaussianBlur",
|
|
21
|
-
"feImage",
|
|
22
|
-
"feMerge",
|
|
23
|
-
"feMergeNode",
|
|
24
|
-
"feMorphology",
|
|
25
|
-
"feOffset",
|
|
26
|
-
"fePointLight",
|
|
27
|
-
"feSpecularLighting",
|
|
28
|
-
"feSpotLight",
|
|
29
|
-
"feTile",
|
|
30
|
-
"feTurbulence",
|
|
31
|
-
"foreignObject",
|
|
32
|
-
"linearGradient",
|
|
33
|
-
"radialGradient",
|
|
34
|
-
"textPath"
|
|
35
|
-
], e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES.reduce(function(f, n) {
|
|
36
|
-
return f[n.toLowerCase()] = n, f;
|
|
37
|
-
}, {});
|
|
38
|
-
})(i);
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { __exports as E } from "../../../../_virtual/domparser.js";
|
|
2
|
-
Object.defineProperty(E, "__esModule", { value: !0 });
|
|
3
|
-
E.default = _;
|
|
4
|
-
var l = "html", m = "head", n = "body", M = /<([a-zA-Z]+[0-9]?)/, y = /<head[^]*>/i, T = /<body[^]*>/i, c = function(e, r) {
|
|
5
|
-
throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
|
|
6
|
-
}, v = function(e, r) {
|
|
7
|
-
throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
|
|
8
|
-
}, w = typeof window == "object" && window.DOMParser;
|
|
9
|
-
if (typeof w == "function") {
|
|
10
|
-
var S = new w(), b = "text/html";
|
|
11
|
-
v = function(e, r) {
|
|
12
|
-
return r && (e = "<".concat(r, ">").concat(e, "</").concat(r, ">")), S.parseFromString(e, b);
|
|
13
|
-
}, c = v;
|
|
14
|
-
}
|
|
15
|
-
if (typeof document == "object" && document.implementation) {
|
|
16
|
-
var a = document.implementation.createHTMLDocument();
|
|
17
|
-
c = function(e, r) {
|
|
18
|
-
if (r) {
|
|
19
|
-
var o = a.documentElement.querySelector(r);
|
|
20
|
-
return o && (o.innerHTML = e), a;
|
|
21
|
-
}
|
|
22
|
-
return a.documentElement.innerHTML = e, a;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
var i = typeof document == "object" && document.createElement("template"), s;
|
|
26
|
-
i && i.content && (s = function(e) {
|
|
27
|
-
return i.innerHTML = e, i.content.childNodes;
|
|
28
|
-
});
|
|
29
|
-
function _(e) {
|
|
30
|
-
var r, o, u = e.match(M), p = u && u[1] ? u[1].toLowerCase() : "";
|
|
31
|
-
switch (p) {
|
|
32
|
-
case l: {
|
|
33
|
-
var d = v(e);
|
|
34
|
-
if (!y.test(e)) {
|
|
35
|
-
var t = d.querySelector(m);
|
|
36
|
-
(r = t == null ? void 0 : t.parentNode) === null || r === void 0 || r.removeChild(t);
|
|
37
|
-
}
|
|
38
|
-
if (!T.test(e)) {
|
|
39
|
-
var t = d.querySelector(n);
|
|
40
|
-
(o = t == null ? void 0 : t.parentNode) === null || o === void 0 || o.removeChild(t);
|
|
41
|
-
}
|
|
42
|
-
return d.querySelectorAll(l);
|
|
43
|
-
}
|
|
44
|
-
case m:
|
|
45
|
-
case n: {
|
|
46
|
-
var f = c(e).querySelectorAll(p);
|
|
47
|
-
return T.test(e) && y.test(e) ? f[0].parentNode.childNodes : f;
|
|
48
|
-
}
|
|
49
|
-
default: {
|
|
50
|
-
if (s)
|
|
51
|
-
return s(e);
|
|
52
|
-
var t = c(e, n).querySelector(n);
|
|
53
|
-
return t.childNodes;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { commonjsGlobal as e } from "../../../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
import { __exports as o } from "../../../../_virtual/html-to-dom.js";
|
|
3
|
-
import "./domparser.js";
|
|
4
|
-
import "./utilities.js";
|
|
5
|
-
import { __exports as i } from "../../../../_virtual/domparser.js";
|
|
6
|
-
import { __exports as u } from "../../../../_virtual/utilities2.js";
|
|
7
|
-
var s = e && e.__importDefault || function(r) {
|
|
8
|
-
return r && r.__esModule ? r : { default: r };
|
|
9
|
-
};
|
|
10
|
-
Object.defineProperty(o, "__esModule", { value: !0 });
|
|
11
|
-
o.default = n;
|
|
12
|
-
var f = s(i), m = u, _ = /<(![a-zA-Z\s]+)>/;
|
|
13
|
-
function n(r) {
|
|
14
|
-
if (typeof r != "string")
|
|
15
|
-
throw new TypeError("First argument must be a string");
|
|
16
|
-
if (!r)
|
|
17
|
-
return [];
|
|
18
|
-
var t = r.match(_), a = t ? t[1] : void 0;
|
|
19
|
-
return (0, m.formatDOM)((0, f.default)(r), null, a);
|
|
20
|
-
}
|