iking-web-ui-pro 1.0.33 → 1.0.35
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/IkApprovalProcess/ik.index.es.js +1111 -1034
- package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +7661 -6388
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkAutoCard/ik.index.es.js +13 -13
- package/dist/IkBaseDialog/ik.index.es.js +72 -72
- package/dist/IkBottomOperate/ik.index.es.js +43 -19
- package/dist/IkBtnContent/ik.index.es.js +2 -2
- package/dist/IkBtnSetting/ik.index.es.js +54 -50
- package/dist/IkCalendar/ik.index.es.js +1426 -1362
- package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +30 -30
- package/dist/IkCurrencyInput/ik.index.es.js +2 -2
- package/dist/IkDescription/ik.index.es.js +7486 -6213
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +7423 -6154
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkDragList/ik.index.es.js +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +40 -40
- package/dist/IkFileIcon/ik.index.es.js +45 -45
- package/dist/IkHorizontalStepBar/ik.index.es.js +12 -12
- package/dist/IkIconPicker/ik.index.es.js +78 -78
- package/dist/IkImageUploadEditor/ik.index.es.js +2263 -2582
- package/dist/IkImageViewer/ik.index.es.js +26 -26
- package/dist/IkMonacoEditor/ik.index.es.js +74 -74
- package/dist/IkOnlyOffice/ik.index.es.js +1397 -139
- package/dist/IkPageFull/ik.index.es.js +1298 -1221
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPageTabs/ik.index.es.js +1 -1
- package/dist/IkPickerUser/ik.index.es.js +680 -624
- package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
- package/dist/IkPlayer/ik.index.es.js +3548 -3537
- package/dist/IkPlayer/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +7444 -6175
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +7375 -6106
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkPrint/{html2canvas.esm-DgdJBc_o.mjs → html2canvas.esm-dgT_1dIT.mjs} +78 -78
- package/dist/IkPrint/ik.index.es.js +132 -104
- package/dist/IkPrint/{index.es-CKOlDLRQ.mjs → index.es-DzGIwinU.mjs} +1800 -1762
- package/dist/IkPrint/jspdf.es.min-ByQMz4Ps.mjs +9956 -0
- package/dist/IkPrint/purify.es-Bb-cVdCo.mjs +536 -0
- package/dist/IkPrintConfig/ik.index.es.js +3 -3
- package/dist/IkPrintView/ik.index.es.js +1 -1
- package/dist/IkRadioGroup/ik.index.es.js +45 -45
- package/dist/IkSearch/ik.index.es.js +863 -807
- package/dist/IkSearch/iking-web-ui-pro.css +1 -1
- package/dist/IkSearchHead/ik.index.es.js +5 -5
- package/dist/IkSelectTag/ik.index.es.js +8 -10
- package/dist/IkSideText/ik.index.es.js +61 -61
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkStatu/ik.index.es.js +1 -1
- package/dist/IkStatuOver/ik.index.es.js +5 -7
- package/dist/IkSvgIcon/ik.index.es.js +52 -52
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +1562 -304
- package/dist/IkTinymce/ik.index.es.js +29099 -29715
- package/dist/IkTooltip/ik.index.es.js +2 -2
- package/dist/IkTree/ik.index.es.js +4 -4
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +7646 -6377
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +205 -205
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +66 -66
- package/dist/{html2canvas.esm-DgdJBc_o.mjs → html2canvas.esm-dgT_1dIT.mjs} +78 -78
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/{index-CAKmb_Mu.mjs → index-8cLb_Ghz.mjs} +42466 -41968
- package/dist/{index.es-CGVvoq4d.mjs → index.es-BeSZHwLo.mjs} +1799 -1761
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +275 -270
- package/dist/jspdf.es.min-BjAV_A3L.mjs +9956 -0
- package/dist/purify.es-Bb-cVdCo.mjs +536 -0
- package/dist/src/components/IkDescription/index.d.ts +15 -0
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +9 -0
- package/dist/src/components/IkDragList/index.d.ts +9 -9
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +3 -3
- package/dist/src/components/IkPageFull/src/IkDialog.d.ts +1 -1
- package/dist/src/components/IkPickerUser/index.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +1 -1
- package/dist/src/components/IkPreviewFile/index.d.ts +3 -3
- package/dist/src/components/IkPreviewFile/src/IkPreviewFile.vue.d.ts +2 -2
- package/package.json +1 -1
- package/dist/IkPrint/jspdf.es.min-CTJMR-3s.mjs +0 -10596
- package/dist/IkPrint/purify.es-ofLoJV2y.mjs +0 -537
- package/dist/jspdf.es.min-XzfyGVex.mjs +0 -10596
- package/dist/purify.es-ofLoJV2y.mjs +0 -537
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */
|
|
2
|
+
const {
|
|
3
|
+
entries: Tt,
|
|
4
|
+
setPrototypeOf: st,
|
|
5
|
+
isFrozen: Bt,
|
|
6
|
+
getPrototypeOf: Yt,
|
|
7
|
+
getOwnPropertyDescriptor: Xt
|
|
8
|
+
} = Object;
|
|
9
|
+
let {
|
|
10
|
+
freeze: S,
|
|
11
|
+
seal: y,
|
|
12
|
+
create: Et
|
|
13
|
+
} = Object, {
|
|
14
|
+
apply: xe,
|
|
15
|
+
construct: Pe
|
|
16
|
+
} = typeof Reflect < "u" && Reflect;
|
|
17
|
+
S || (S = function(o) {
|
|
18
|
+
return o;
|
|
19
|
+
});
|
|
20
|
+
y || (y = function(o) {
|
|
21
|
+
return o;
|
|
22
|
+
});
|
|
23
|
+
xe || (xe = function(o, l) {
|
|
24
|
+
for (var a = arguments.length, c = new Array(a > 2 ? a - 2 : 0), O = 2; O < a; O++)
|
|
25
|
+
c[O - 2] = arguments[O];
|
|
26
|
+
return o.apply(l, c);
|
|
27
|
+
});
|
|
28
|
+
Pe || (Pe = function(o) {
|
|
29
|
+
for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
|
|
30
|
+
a[c - 1] = arguments[c];
|
|
31
|
+
return new o(...a);
|
|
32
|
+
});
|
|
33
|
+
const le = R(Array.prototype.forEach), jt = R(Array.prototype.lastIndexOf), lt = R(Array.prototype.pop), $ = R(Array.prototype.push), Vt = R(Array.prototype.splice), fe = R(String.prototype.toLowerCase), be = R(String.prototype.toString), Ne = R(String.prototype.match), q = R(String.prototype.replace), $t = R(String.prototype.indexOf), qt = R(String.prototype.trim), D = R(Object.prototype.hasOwnProperty), A = R(RegExp.prototype.test), K = Kt(TypeError);
|
|
34
|
+
function R(s) {
|
|
35
|
+
return function(o) {
|
|
36
|
+
o instanceof RegExp && (o.lastIndex = 0);
|
|
37
|
+
for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
|
|
38
|
+
a[c - 1] = arguments[c];
|
|
39
|
+
return xe(s, o, a);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function Kt(s) {
|
|
43
|
+
return function() {
|
|
44
|
+
for (var o = arguments.length, l = new Array(o), a = 0; a < o; a++)
|
|
45
|
+
l[a] = arguments[a];
|
|
46
|
+
return Pe(s, l);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function r(s, o) {
|
|
50
|
+
let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe;
|
|
51
|
+
st && st(s, null);
|
|
52
|
+
let a = o.length;
|
|
53
|
+
for (; a--; ) {
|
|
54
|
+
let c = o[a];
|
|
55
|
+
if (typeof c == "string") {
|
|
56
|
+
const O = l(c);
|
|
57
|
+
O !== c && (Bt(o) || (o[a] = O), c = O);
|
|
58
|
+
}
|
|
59
|
+
s[c] = !0;
|
|
60
|
+
}
|
|
61
|
+
return s;
|
|
62
|
+
}
|
|
63
|
+
function Zt(s) {
|
|
64
|
+
for (let o = 0; o < s.length; o++)
|
|
65
|
+
D(s, o) || (s[o] = null);
|
|
66
|
+
return s;
|
|
67
|
+
}
|
|
68
|
+
function C(s) {
|
|
69
|
+
const o = Et(null);
|
|
70
|
+
for (const [l, a] of Tt(s))
|
|
71
|
+
D(s, l) && (Array.isArray(a) ? o[l] = Zt(a) : a && typeof a == "object" && a.constructor === Object ? o[l] = C(a) : o[l] = a);
|
|
72
|
+
return o;
|
|
73
|
+
}
|
|
74
|
+
function Z(s, o) {
|
|
75
|
+
for (; s !== null; ) {
|
|
76
|
+
const a = Xt(s, o);
|
|
77
|
+
if (a) {
|
|
78
|
+
if (a.get)
|
|
79
|
+
return R(a.get);
|
|
80
|
+
if (typeof a.value == "function")
|
|
81
|
+
return R(a.value);
|
|
82
|
+
}
|
|
83
|
+
s = Yt(s);
|
|
84
|
+
}
|
|
85
|
+
function l() {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return l;
|
|
89
|
+
}
|
|
90
|
+
const ct = S(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ie = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "slot", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Me = S(["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"]), Jt = S(["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"]), Ce = S(["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 = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ft = S(["#text"]), ut = S(["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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), we = S(["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"]), mt = S(["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"]), ce = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), en = y(/\{\{[\w\W]*|[\w\W]*\}\}/gm), tn = y(/<%[\w\W]*|[\w\W]*%>/gm), nn = y(/\$\{[\w\W]*/gm), on = y(/^data-[\-\w.\u00B7-\uFFFF]+$/), an = y(/^aria-[\-\w]+$/), _t = y(
|
|
91
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
92
|
+
// eslint-disable-line no-useless-escape
|
|
93
|
+
), rn = y(/^(?:\w+script|data):/i), sn = y(
|
|
94
|
+
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
95
|
+
// eslint-disable-line no-control-regex
|
|
96
|
+
), gt = y(/^html$/i), ln = y(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
97
|
+
var pt = /* @__PURE__ */ Object.freeze({
|
|
98
|
+
__proto__: null,
|
|
99
|
+
ARIA_ATTR: an,
|
|
100
|
+
ATTR_WHITESPACE: sn,
|
|
101
|
+
CUSTOM_ELEMENT: ln,
|
|
102
|
+
DATA_ATTR: on,
|
|
103
|
+
DOCTYPE_NAME: gt,
|
|
104
|
+
ERB_EXPR: tn,
|
|
105
|
+
IS_ALLOWED_URI: _t,
|
|
106
|
+
IS_SCRIPT_OR_DATA: rn,
|
|
107
|
+
MUSTACHE_EXPR: en,
|
|
108
|
+
TMPLIT_EXPR: nn
|
|
109
|
+
});
|
|
110
|
+
const J = {
|
|
111
|
+
element: 1,
|
|
112
|
+
text: 3,
|
|
113
|
+
// Deprecated
|
|
114
|
+
progressingInstruction: 7,
|
|
115
|
+
comment: 8,
|
|
116
|
+
document: 9
|
|
117
|
+
}, cn = function() {
|
|
118
|
+
return typeof window > "u" ? null : window;
|
|
119
|
+
}, fn = function(o, l) {
|
|
120
|
+
if (typeof o != "object" || typeof o.createPolicy != "function")
|
|
121
|
+
return null;
|
|
122
|
+
let a = null;
|
|
123
|
+
const c = "data-tt-policy-suffix";
|
|
124
|
+
l && l.hasAttribute(c) && (a = l.getAttribute(c));
|
|
125
|
+
const O = "dompurify" + (a ? "#" + a : "");
|
|
126
|
+
try {
|
|
127
|
+
return o.createPolicy(O, {
|
|
128
|
+
createHTML(P) {
|
|
129
|
+
return P;
|
|
130
|
+
},
|
|
131
|
+
createScriptURL(P) {
|
|
132
|
+
return P;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
} catch {
|
|
136
|
+
return console.warn("TrustedTypes policy " + O + " could not be created."), null;
|
|
137
|
+
}
|
|
138
|
+
}, dt = function() {
|
|
139
|
+
return {
|
|
140
|
+
afterSanitizeAttributes: [],
|
|
141
|
+
afterSanitizeElements: [],
|
|
142
|
+
afterSanitizeShadowDOM: [],
|
|
143
|
+
beforeSanitizeAttributes: [],
|
|
144
|
+
beforeSanitizeElements: [],
|
|
145
|
+
beforeSanitizeShadowDOM: [],
|
|
146
|
+
uponSanitizeAttribute: [],
|
|
147
|
+
uponSanitizeElement: [],
|
|
148
|
+
uponSanitizeShadowNode: []
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
function ht() {
|
|
152
|
+
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : cn();
|
|
153
|
+
const o = (i) => ht(i);
|
|
154
|
+
if (o.version = "3.2.7", o.removed = [], !s || !s.document || s.document.nodeType !== J.document || !s.Element)
|
|
155
|
+
return o.isSupported = !1, o;
|
|
156
|
+
let {
|
|
157
|
+
document: l
|
|
158
|
+
} = s;
|
|
159
|
+
const a = l, c = a.currentScript, {
|
|
160
|
+
DocumentFragment: O,
|
|
161
|
+
HTMLTemplateElement: P,
|
|
162
|
+
Node: ue,
|
|
163
|
+
Element: ve,
|
|
164
|
+
NodeFilter: W,
|
|
165
|
+
NamedNodeMap: At = s.NamedNodeMap || s.MozNamedAttrMap,
|
|
166
|
+
HTMLFormElement: St,
|
|
167
|
+
DOMParser: Rt,
|
|
168
|
+
trustedTypes: Q
|
|
169
|
+
} = s, B = ve.prototype, Ot = Z(B, "cloneNode"), Lt = Z(B, "remove"), yt = Z(B, "nextSibling"), Dt = Z(B, "childNodes"), ee = Z(B, "parentNode");
|
|
170
|
+
if (typeof P == "function") {
|
|
171
|
+
const i = l.createElement("template");
|
|
172
|
+
i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
|
|
173
|
+
}
|
|
174
|
+
let g, Y = "";
|
|
175
|
+
const {
|
|
176
|
+
implementation: me,
|
|
177
|
+
createNodeIterator: bt,
|
|
178
|
+
createDocumentFragment: Nt,
|
|
179
|
+
getElementsByTagName: It
|
|
180
|
+
} = l, {
|
|
181
|
+
importNode: Mt
|
|
182
|
+
} = a;
|
|
183
|
+
let h = dt();
|
|
184
|
+
o.isSupported = typeof Tt == "function" && typeof ee == "function" && me && me.createHTMLDocument !== void 0;
|
|
185
|
+
const {
|
|
186
|
+
MUSTACHE_EXPR: pe,
|
|
187
|
+
ERB_EXPR: de,
|
|
188
|
+
TMPLIT_EXPR: Te,
|
|
189
|
+
DATA_ATTR: Ct,
|
|
190
|
+
ARIA_ATTR: wt,
|
|
191
|
+
IS_SCRIPT_OR_DATA: xt,
|
|
192
|
+
ATTR_WHITESPACE: ke,
|
|
193
|
+
CUSTOM_ELEMENT: Pt
|
|
194
|
+
} = pt;
|
|
195
|
+
let {
|
|
196
|
+
IS_ALLOWED_URI: Ue
|
|
197
|
+
} = pt, p = null;
|
|
198
|
+
const Fe = r({}, [...ct, ...Ie, ...Me, ...Ce, ...ft]);
|
|
199
|
+
let T = null;
|
|
200
|
+
const He = r({}, [...ut, ...we, ...mt, ...ce]);
|
|
201
|
+
let u = Object.seal(Et(null, {
|
|
202
|
+
tagNameCheck: {
|
|
203
|
+
writable: !0,
|
|
204
|
+
configurable: !1,
|
|
205
|
+
enumerable: !0,
|
|
206
|
+
value: null
|
|
207
|
+
},
|
|
208
|
+
attributeNameCheck: {
|
|
209
|
+
writable: !0,
|
|
210
|
+
configurable: !1,
|
|
211
|
+
enumerable: !0,
|
|
212
|
+
value: null
|
|
213
|
+
},
|
|
214
|
+
allowCustomizedBuiltInElements: {
|
|
215
|
+
writable: !0,
|
|
216
|
+
configurable: !1,
|
|
217
|
+
enumerable: !0,
|
|
218
|
+
value: !1
|
|
219
|
+
}
|
|
220
|
+
})), X = null, Ee = null, ze = !0, _e = !0, Ge = !1, We = !0, v = !1, te = !0, w = !1, ge = !1, he = !1, k = !1, ne = !1, oe = !1, Be = !0, Ye = !1;
|
|
221
|
+
const vt = "user-content-";
|
|
222
|
+
let Ae = !0, j = !1, U = {}, F = null;
|
|
223
|
+
const Xe = r({}, ["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"]);
|
|
224
|
+
let je = null;
|
|
225
|
+
const Ve = r({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
226
|
+
let Se = null;
|
|
227
|
+
const $e = r({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ie = "http://www.w3.org/1998/Math/MathML", ae = "http://www.w3.org/2000/svg", N = "http://www.w3.org/1999/xhtml";
|
|
228
|
+
let H = N, Re = !1, Oe = null;
|
|
229
|
+
const kt = r({}, [ie, ae, N], be);
|
|
230
|
+
let re = r({}, ["mi", "mo", "mn", "ms", "mtext"]), se = r({}, ["annotation-xml"]);
|
|
231
|
+
const Ut = r({}, ["title", "style", "font", "a", "script"]);
|
|
232
|
+
let V = null;
|
|
233
|
+
const Ft = ["application/xhtml+xml", "text/html"], Ht = "text/html";
|
|
234
|
+
let d = null, z = null;
|
|
235
|
+
const zt = l.createElement("form"), qe = function(e) {
|
|
236
|
+
return e instanceof RegExp || e instanceof Function;
|
|
237
|
+
}, Le = function() {
|
|
238
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
239
|
+
if (!(z && z === e)) {
|
|
240
|
+
if ((!e || typeof e != "object") && (e = {}), e = C(e), V = // eslint-disable-next-line unicorn/prefer-includes
|
|
241
|
+
Ft.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Ht : e.PARSER_MEDIA_TYPE, d = V === "application/xhtml+xml" ? be : fe, p = D(e, "ALLOWED_TAGS") ? r({}, e.ALLOWED_TAGS, d) : Fe, T = D(e, "ALLOWED_ATTR") ? r({}, e.ALLOWED_ATTR, d) : He, Oe = D(e, "ALLOWED_NAMESPACES") ? r({}, e.ALLOWED_NAMESPACES, be) : kt, Se = D(e, "ADD_URI_SAFE_ATTR") ? r(C($e), e.ADD_URI_SAFE_ATTR, d) : $e, je = D(e, "ADD_DATA_URI_TAGS") ? r(C(Ve), e.ADD_DATA_URI_TAGS, d) : Ve, F = D(e, "FORBID_CONTENTS") ? r({}, e.FORBID_CONTENTS, d) : Xe, X = D(e, "FORBID_TAGS") ? r({}, e.FORBID_TAGS, d) : C({}), Ee = D(e, "FORBID_ATTR") ? r({}, e.FORBID_ATTR, d) : C({}), U = D(e, "USE_PROFILES") ? e.USE_PROFILES : !1, ze = e.ALLOW_ARIA_ATTR !== !1, _e = e.ALLOW_DATA_ATTR !== !1, Ge = e.ALLOW_UNKNOWN_PROTOCOLS || !1, We = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, v = e.SAFE_FOR_TEMPLATES || !1, te = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, k = e.RETURN_DOM || !1, ne = e.RETURN_DOM_FRAGMENT || !1, oe = e.RETURN_TRUSTED_TYPE || !1, he = e.FORCE_BODY || !1, Be = e.SANITIZE_DOM !== !1, Ye = e.SANITIZE_NAMED_PROPS || !1, Ae = e.KEEP_CONTENT !== !1, j = e.IN_PLACE || !1, Ue = e.ALLOWED_URI_REGEXP || _t, H = e.NAMESPACE || N, re = e.MATHML_TEXT_INTEGRATION_POINTS || re, se = e.HTML_INTEGRATION_POINTS || se, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), v && (_e = !1), ne && (k = !0), U && (p = r({}, ft), T = [], U.html === !0 && (r(p, ct), r(T, ut)), U.svg === !0 && (r(p, Ie), r(T, we), r(T, ce)), U.svgFilters === !0 && (r(p, Me), r(T, we), r(T, ce)), U.mathMl === !0 && (r(p, Ce), r(T, mt), r(T, ce))), e.ADD_TAGS && (p === Fe && (p = C(p)), r(p, e.ADD_TAGS, d)), e.ADD_ATTR && (T === He && (T = C(T)), r(T, e.ADD_ATTR, d)), e.ADD_URI_SAFE_ATTR && r(Se, e.ADD_URI_SAFE_ATTR, d), e.FORBID_CONTENTS && (F === Xe && (F = C(F)), r(F, e.FORBID_CONTENTS, d)), Ae && (p["#text"] = !0), w && r(p, ["html", "head", "body"]), p.table && (r(p, ["tbody"]), delete X.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
242
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
243
|
+
throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
244
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
245
|
+
throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
246
|
+
g = e.TRUSTED_TYPES_POLICY, Y = g.createHTML("");
|
|
247
|
+
} else
|
|
248
|
+
g === void 0 && (g = fn(Q, c)), g !== null && typeof Y == "string" && (Y = g.createHTML(""));
|
|
249
|
+
S && S(e), z = e;
|
|
250
|
+
}
|
|
251
|
+
}, Ke = r({}, [...Ie, ...Me, ...Jt]), Ze = r({}, [...Ce, ...Qt]), Gt = function(e) {
|
|
252
|
+
let t = ee(e);
|
|
253
|
+
(!t || !t.tagName) && (t = {
|
|
254
|
+
namespaceURI: H,
|
|
255
|
+
tagName: "template"
|
|
256
|
+
});
|
|
257
|
+
const n = fe(e.tagName), f = fe(t.tagName);
|
|
258
|
+
return Oe[e.namespaceURI] ? e.namespaceURI === ae ? t.namespaceURI === N ? n === "svg" : t.namespaceURI === ie ? n === "svg" && (f === "annotation-xml" || re[f]) : !!Ke[n] : e.namespaceURI === ie ? t.namespaceURI === N ? n === "math" : t.namespaceURI === ae ? n === "math" && se[f] : !!Ze[n] : e.namespaceURI === N ? t.namespaceURI === ae && !se[f] || t.namespaceURI === ie && !re[f] ? !1 : !Ze[n] && (Ut[n] || !Ke[n]) : !!(V === "application/xhtml+xml" && Oe[e.namespaceURI]) : !1;
|
|
259
|
+
}, b = function(e) {
|
|
260
|
+
$(o.removed, {
|
|
261
|
+
element: e
|
|
262
|
+
});
|
|
263
|
+
try {
|
|
264
|
+
ee(e).removeChild(e);
|
|
265
|
+
} catch {
|
|
266
|
+
Lt(e);
|
|
267
|
+
}
|
|
268
|
+
}, x = function(e, t) {
|
|
269
|
+
try {
|
|
270
|
+
$(o.removed, {
|
|
271
|
+
attribute: t.getAttributeNode(e),
|
|
272
|
+
from: t
|
|
273
|
+
});
|
|
274
|
+
} catch {
|
|
275
|
+
$(o.removed, {
|
|
276
|
+
attribute: null,
|
|
277
|
+
from: t
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
if (t.removeAttribute(e), e === "is")
|
|
281
|
+
if (k || ne)
|
|
282
|
+
try {
|
|
283
|
+
b(t);
|
|
284
|
+
} catch {
|
|
285
|
+
}
|
|
286
|
+
else
|
|
287
|
+
try {
|
|
288
|
+
t.setAttribute(e, "");
|
|
289
|
+
} catch {
|
|
290
|
+
}
|
|
291
|
+
}, Je = function(e) {
|
|
292
|
+
let t = null, n = null;
|
|
293
|
+
if (he)
|
|
294
|
+
e = "<remove></remove>" + e;
|
|
295
|
+
else {
|
|
296
|
+
const m = Ne(e, /^[\r\n\t ]+/);
|
|
297
|
+
n = m && m[0];
|
|
298
|
+
}
|
|
299
|
+
V === "application/xhtml+xml" && H === N && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
300
|
+
const f = g ? g.createHTML(e) : e;
|
|
301
|
+
if (H === N)
|
|
302
|
+
try {
|
|
303
|
+
t = new Rt().parseFromString(f, V);
|
|
304
|
+
} catch {
|
|
305
|
+
}
|
|
306
|
+
if (!t || !t.documentElement) {
|
|
307
|
+
t = me.createDocument(H, "template", null);
|
|
308
|
+
try {
|
|
309
|
+
t.documentElement.innerHTML = Re ? Y : f;
|
|
310
|
+
} catch {
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
const _ = t.body || t.documentElement;
|
|
314
|
+
return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), H === N ? It.call(t, w ? "html" : "body")[0] : w ? t.documentElement : _;
|
|
315
|
+
}, Qe = function(e) {
|
|
316
|
+
return bt.call(
|
|
317
|
+
e.ownerDocument || e,
|
|
318
|
+
e,
|
|
319
|
+
// eslint-disable-next-line no-bitwise
|
|
320
|
+
W.SHOW_ELEMENT | W.SHOW_COMMENT | W.SHOW_TEXT | W.SHOW_PROCESSING_INSTRUCTION | W.SHOW_CDATA_SECTION,
|
|
321
|
+
null
|
|
322
|
+
);
|
|
323
|
+
}, ye = function(e) {
|
|
324
|
+
return e instanceof St && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof At) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
325
|
+
}, et = function(e) {
|
|
326
|
+
return typeof ue == "function" && e instanceof ue;
|
|
327
|
+
};
|
|
328
|
+
function I(i, e, t) {
|
|
329
|
+
le(i, (n) => {
|
|
330
|
+
n.call(o, e, t, z);
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
const tt = function(e) {
|
|
334
|
+
let t = null;
|
|
335
|
+
if (I(h.beforeSanitizeElements, e, null), ye(e))
|
|
336
|
+
return b(e), !0;
|
|
337
|
+
const n = d(e.nodeName);
|
|
338
|
+
if (I(h.uponSanitizeElement, e, {
|
|
339
|
+
tagName: n,
|
|
340
|
+
allowedTags: p
|
|
341
|
+
}), te && e.hasChildNodes() && !et(e.firstElementChild) && A(/<[/\w!]/g, e.innerHTML) && A(/<[/\w!]/g, e.textContent) || e.nodeType === J.progressingInstruction || te && e.nodeType === J.comment && A(/<[/\w]/g, e.data))
|
|
342
|
+
return b(e), !0;
|
|
343
|
+
if (!p[n] || X[n]) {
|
|
344
|
+
if (!X[n] && ot(n) && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
|
|
345
|
+
return !1;
|
|
346
|
+
if (Ae && !F[n]) {
|
|
347
|
+
const f = ee(e) || e.parentNode, _ = Dt(e) || e.childNodes;
|
|
348
|
+
if (_ && f) {
|
|
349
|
+
const m = _.length;
|
|
350
|
+
for (let L = m - 1; L >= 0; --L) {
|
|
351
|
+
const M = Ot(_[L], !0);
|
|
352
|
+
M.__removalCount = (e.__removalCount || 0) + 1, f.insertBefore(M, yt(e));
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return b(e), !0;
|
|
357
|
+
}
|
|
358
|
+
return e instanceof ve && !Gt(e) || (n === "noscript" || n === "noembed" || n === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (b(e), !0) : (v && e.nodeType === J.text && (t = e.textContent, le([pe, de, Te], (f) => {
|
|
359
|
+
t = q(t, f, " ");
|
|
360
|
+
}), e.textContent !== t && ($(o.removed, {
|
|
361
|
+
element: e.cloneNode()
|
|
362
|
+
}), e.textContent = t)), I(h.afterSanitizeElements, e, null), !1);
|
|
363
|
+
}, nt = function(e, t, n) {
|
|
364
|
+
if (Be && (t === "id" || t === "name") && (n in l || n in zt))
|
|
365
|
+
return !1;
|
|
366
|
+
if (!(_e && !Ee[t] && A(Ct, t))) {
|
|
367
|
+
if (!(ze && A(wt, t))) {
|
|
368
|
+
if (!T[t] || Ee[t]) {
|
|
369
|
+
if (
|
|
370
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
371
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
372
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
373
|
+
!(ot(e) && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, e) || u.tagNameCheck instanceof Function && u.tagNameCheck(e)) && (u.attributeNameCheck instanceof RegExp && A(u.attributeNameCheck, t) || u.attributeNameCheck instanceof Function && u.attributeNameCheck(t, e)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
374
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
375
|
+
t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
|
|
376
|
+
) return !1;
|
|
377
|
+
} else if (!Se[t]) {
|
|
378
|
+
if (!A(Ue, q(n, ke, ""))) {
|
|
379
|
+
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && $t(n, "data:") === 0 && je[e])) {
|
|
380
|
+
if (!(Ge && !A(xt, q(n, ke, "")))) {
|
|
381
|
+
if (n)
|
|
382
|
+
return !1;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return !0;
|
|
390
|
+
}, ot = function(e) {
|
|
391
|
+
return e !== "annotation-xml" && Ne(e, Pt);
|
|
392
|
+
}, it = function(e) {
|
|
393
|
+
I(h.beforeSanitizeAttributes, e, null);
|
|
394
|
+
const {
|
|
395
|
+
attributes: t
|
|
396
|
+
} = e;
|
|
397
|
+
if (!t || ye(e))
|
|
398
|
+
return;
|
|
399
|
+
const n = {
|
|
400
|
+
attrName: "",
|
|
401
|
+
attrValue: "",
|
|
402
|
+
keepAttr: !0,
|
|
403
|
+
allowedAttributes: T,
|
|
404
|
+
forceKeepAttr: void 0
|
|
405
|
+
};
|
|
406
|
+
let f = t.length;
|
|
407
|
+
for (; f--; ) {
|
|
408
|
+
const _ = t[f], {
|
|
409
|
+
name: m,
|
|
410
|
+
namespaceURI: L,
|
|
411
|
+
value: M
|
|
412
|
+
} = _, G = d(m), De = M;
|
|
413
|
+
let E = m === "value" ? De : qt(De);
|
|
414
|
+
if (n.attrName = G, n.attrValue = E, n.keepAttr = !0, n.forceKeepAttr = void 0, I(h.uponSanitizeAttribute, e, n), E = n.attrValue, Ye && (G === "id" || G === "name") && (x(m, e), E = vt + E), te && A(/((--!?|])>)|<\/(style|title|textarea)/i, E)) {
|
|
415
|
+
x(m, e);
|
|
416
|
+
continue;
|
|
417
|
+
}
|
|
418
|
+
if (G === "attributename" && Ne(E, "href")) {
|
|
419
|
+
x(m, e);
|
|
420
|
+
continue;
|
|
421
|
+
}
|
|
422
|
+
if (n.forceKeepAttr)
|
|
423
|
+
continue;
|
|
424
|
+
if (!n.keepAttr) {
|
|
425
|
+
x(m, e);
|
|
426
|
+
continue;
|
|
427
|
+
}
|
|
428
|
+
if (!We && A(/\/>/i, E)) {
|
|
429
|
+
x(m, e);
|
|
430
|
+
continue;
|
|
431
|
+
}
|
|
432
|
+
v && le([pe, de, Te], (rt) => {
|
|
433
|
+
E = q(E, rt, " ");
|
|
434
|
+
});
|
|
435
|
+
const at = d(e.nodeName);
|
|
436
|
+
if (!nt(at, G, E)) {
|
|
437
|
+
x(m, e);
|
|
438
|
+
continue;
|
|
439
|
+
}
|
|
440
|
+
if (g && typeof Q == "object" && typeof Q.getAttributeType == "function" && !L)
|
|
441
|
+
switch (Q.getAttributeType(at, G)) {
|
|
442
|
+
case "TrustedHTML": {
|
|
443
|
+
E = g.createHTML(E);
|
|
444
|
+
break;
|
|
445
|
+
}
|
|
446
|
+
case "TrustedScriptURL": {
|
|
447
|
+
E = g.createScriptURL(E);
|
|
448
|
+
break;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
if (E !== De)
|
|
452
|
+
try {
|
|
453
|
+
L ? e.setAttributeNS(L, m, E) : e.setAttribute(m, E), ye(e) ? b(e) : lt(o.removed);
|
|
454
|
+
} catch {
|
|
455
|
+
x(m, e);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
I(h.afterSanitizeAttributes, e, null);
|
|
459
|
+
}, Wt = function i(e) {
|
|
460
|
+
let t = null;
|
|
461
|
+
const n = Qe(e);
|
|
462
|
+
for (I(h.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
|
|
463
|
+
I(h.uponSanitizeShadowNode, t, null), tt(t), it(t), t.content instanceof O && i(t.content);
|
|
464
|
+
I(h.afterSanitizeShadowDOM, e, null);
|
|
465
|
+
};
|
|
466
|
+
return o.sanitize = function(i) {
|
|
467
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, f = null, _ = null;
|
|
468
|
+
if (Re = !i, Re && (i = "<!-->"), typeof i != "string" && !et(i))
|
|
469
|
+
if (typeof i.toString == "function") {
|
|
470
|
+
if (i = i.toString(), typeof i != "string")
|
|
471
|
+
throw K("dirty is not a string, aborting");
|
|
472
|
+
} else
|
|
473
|
+
throw K("toString is not a function");
|
|
474
|
+
if (!o.isSupported)
|
|
475
|
+
return i;
|
|
476
|
+
if (ge || Le(e), o.removed = [], typeof i == "string" && (j = !1), j) {
|
|
477
|
+
if (i.nodeName) {
|
|
478
|
+
const M = d(i.nodeName);
|
|
479
|
+
if (!p[M] || X[M])
|
|
480
|
+
throw K("root node is forbidden and cannot be sanitized in-place");
|
|
481
|
+
}
|
|
482
|
+
} else if (i instanceof ue)
|
|
483
|
+
t = Je("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === J.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
|
|
484
|
+
else {
|
|
485
|
+
if (!k && !v && !w && // eslint-disable-next-line unicorn/prefer-includes
|
|
486
|
+
i.indexOf("<") === -1)
|
|
487
|
+
return g && oe ? g.createHTML(i) : i;
|
|
488
|
+
if (t = Je(i), !t)
|
|
489
|
+
return k ? null : oe ? Y : "";
|
|
490
|
+
}
|
|
491
|
+
t && he && b(t.firstChild);
|
|
492
|
+
const m = Qe(j ? i : t);
|
|
493
|
+
for (; f = m.nextNode(); )
|
|
494
|
+
tt(f), it(f), f.content instanceof O && Wt(f.content);
|
|
495
|
+
if (j)
|
|
496
|
+
return i;
|
|
497
|
+
if (k) {
|
|
498
|
+
if (ne)
|
|
499
|
+
for (_ = Nt.call(t.ownerDocument); t.firstChild; )
|
|
500
|
+
_.appendChild(t.firstChild);
|
|
501
|
+
else
|
|
502
|
+
_ = t;
|
|
503
|
+
return (T.shadowroot || T.shadowrootmode) && (_ = Mt.call(a, _, !0)), _;
|
|
504
|
+
}
|
|
505
|
+
let L = w ? t.outerHTML : t.innerHTML;
|
|
506
|
+
return w && p["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(gt, t.ownerDocument.doctype.name) && (L = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
|
|
507
|
+
` + L), v && le([pe, de, Te], (M) => {
|
|
508
|
+
L = q(L, M, " ");
|
|
509
|
+
}), g && oe ? g.createHTML(L) : L;
|
|
510
|
+
}, o.setConfig = function() {
|
|
511
|
+
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
512
|
+
Le(i), ge = !0;
|
|
513
|
+
}, o.clearConfig = function() {
|
|
514
|
+
z = null, ge = !1;
|
|
515
|
+
}, o.isValidAttribute = function(i, e, t) {
|
|
516
|
+
z || Le({});
|
|
517
|
+
const n = d(i), f = d(e);
|
|
518
|
+
return nt(n, f, t);
|
|
519
|
+
}, o.addHook = function(i, e) {
|
|
520
|
+
typeof e == "function" && $(h[i], e);
|
|
521
|
+
}, o.removeHook = function(i, e) {
|
|
522
|
+
if (e !== void 0) {
|
|
523
|
+
const t = jt(h[i], e);
|
|
524
|
+
return t === -1 ? void 0 : Vt(h[i], t, 1)[0];
|
|
525
|
+
}
|
|
526
|
+
return lt(h[i]);
|
|
527
|
+
}, o.removeHooks = function(i) {
|
|
528
|
+
h[i] = [];
|
|
529
|
+
}, o.removeAllHooks = function() {
|
|
530
|
+
h = dt();
|
|
531
|
+
}, o;
|
|
532
|
+
}
|
|
533
|
+
var un = ht();
|
|
534
|
+
export {
|
|
535
|
+
un as default
|
|
536
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, computed as p, reactive as u, onMounted as l,
|
|
1
|
+
import { defineComponent as m, computed as p, reactive as u, onMounted as l, createElementBlock as h, createCommentVNode as k, openBlock as x } from "vue";
|
|
2
2
|
const I = (n, c) => (n.install = (e) => {
|
|
3
3
|
for (const o of [n, ...Object.values({})])
|
|
4
4
|
e.component(o.name, o);
|
|
@@ -41,13 +41,13 @@ const I = (n, c) => (n.install = (e) => {
|
|
|
41
41
|
};
|
|
42
42
|
return l(() => {
|
|
43
43
|
d();
|
|
44
|
-
}), (r, i) => t.src ? (
|
|
44
|
+
}), (r, i) => t.src ? (x(), h("iframe", {
|
|
45
45
|
key: 0,
|
|
46
46
|
width: "100%",
|
|
47
47
|
height: "100%",
|
|
48
48
|
src: t.src,
|
|
49
49
|
frameborder: "0"
|
|
50
|
-
}, null, 8, P)) :
|
|
50
|
+
}, null, 8, P)) : k("v-if", !0);
|
|
51
51
|
}
|
|
52
52
|
}), g = I(_);
|
|
53
53
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, computed as f, reactive as p, watch as h, onMounted as w, resolveComponent as _,
|
|
1
|
+
import { defineComponent as u, computed as f, reactive as p, watch as h, onMounted as w, resolveComponent as _, createBlock as v, openBlock as i, withCtx as I, createElementVNode as V, normalizeStyle as k, createElementBlock as g, createCommentVNode as x } from "vue";
|
|
2
2
|
const y = (t, n) => (t.install = (e) => {
|
|
3
3
|
for (const l of [t, ...Object.values({})])
|
|
4
4
|
e.component(l.name, l);
|