umaki 0.1.1 → 0.2.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/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/dayjs.min.js +4 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/isBetween.js +4 -0
- package/dist/_virtual/purify.js +4 -0
- package/dist/_virtual/store2.js +4 -0
- package/dist/_virtual/ua-parser.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +86 -2869
- package/dist/libs/control/bgScrollStop.js +7 -0
- package/dist/libs/control/pd.js +4 -0
- package/dist/libs/control/scrollToHash.js +21 -0
- package/dist/libs/control/videoPlayControl.js +19 -0
- package/dist/libs/convert/changeDateStringToSpecificFormat.js +5 -0
- package/dist/libs/convert/jsonStringToJsonObject.js +9 -0
- package/dist/libs/get/getAspectRatio.js +8 -0
- package/dist/libs/get/getClassNames.js +4 -0
- package/dist/libs/get/getDocumentHeight.js +4 -0
- package/dist/libs/get/getEventPaths.js +17 -0
- package/dist/libs/get/getGcd.js +8 -0
- package/dist/libs/get/getOrientation.js +4 -0
- package/dist/libs/get/getParentList.js +7 -0
- package/dist/libs/get/getQueryParams.js +16 -0
- package/dist/libs/get/getRem.js +4 -0
- package/dist/libs/get/getScrollbarWidth.js +4 -0
- package/dist/libs/get/getSessionStorage.js +8 -0
- package/dist/libs/get/getStringLength.js +5 -0
- package/dist/libs/get/getStylePropertyValue.js +4 -0
- package/dist/libs/get/getStylePropertyValueToNumber.js +5 -0
- package/dist/libs/get/getUaData.js +16 -0
- package/dist/libs/is/isBetweenDateTime.js +12 -0
- package/dist/libs/is/isExistAllElements.js +4 -0
- package/dist/libs/is/isIpad.js +9 -0
- package/dist/libs/is/isKeyExists.js +4 -0
- package/dist/libs/is/isSafari.js +8 -0
- package/dist/libs/is/isScrollable.js +7 -0
- package/dist/libs/is/isTouchSupport.js +5 -0
- package/dist/libs/remove/removeAllHtmlTags.js +9 -0
- package/dist/libs/remove/removeAttribute.js +6 -0
- package/dist/libs/remove/removeSessionStorage.js +7 -0
- package/dist/libs/remove/removeStylePropertyValue.js +6 -0
- package/dist/libs/set/set100vh.js +7 -0
- package/dist/libs/set/set100vw.js +7 -0
- package/dist/libs/set/setAttribute.js +6 -0
- package/dist/libs/set/setScrollPositionToCenter.js +7 -0
- package/dist/libs/set/setSessionStorage.js +7 -0
- package/dist/libs/set/setStylePropertyValue.js +6 -0
- package/dist/libs/to/toBoolean.js +4 -0
- package/dist/libs/to/toPositiveNumber.js +4 -0
- package/dist/libs/transform/wrapTextWithSpans.js +17 -0
- package/dist/libs/wait/sleep.js +4 -0
- package/dist/libs/wait/waitForAllMediaLoaded.js +28 -0
- package/dist/node_modules/dayjs/dayjs.min.js +282 -0
- package/dist/node_modules/dayjs/plugin/isBetween.js +19 -0
- package/dist/node_modules/decode-uri-component/index.js +55 -0
- package/dist/node_modules/dompurify/dist/purify.js +531 -0
- package/dist/node_modules/filter-obj/index.js +20 -0
- package/dist/node_modules/is-touch-device/build/index.js +16 -0
- package/dist/node_modules/isomorphic-dompurify/browser.js +7 -0
- package/dist/node_modules/query-string/base.js +257 -0
- package/dist/node_modules/query-string/index.js +4 -0
- package/dist/node_modules/runes2/dist/index.esm.js +76 -0
- package/dist/node_modules/split-on-first/index.js +14 -0
- package/dist/node_modules/store2/dist/store2.js +225 -0
- package/dist/node_modules/ua-parser-js/src/ua-parser.js +1218 -0
- package/package.json +4 -1
- package/dist/index.umd.cjs +0 -3
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
import { commonjsGlobal as un } from "../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as we } from "../../../_virtual/purify.js";
|
|
3
|
+
/*! @license DOMPurify 3.1.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.1.7/LICENSE */
|
|
4
|
+
var ht;
|
|
5
|
+
function Tn() {
|
|
6
|
+
return ht ? we.exports : (ht = 1, function(At, mn) {
|
|
7
|
+
(function(ce, J) {
|
|
8
|
+
At.exports = J();
|
|
9
|
+
})(un, function() {
|
|
10
|
+
const {
|
|
11
|
+
entries: ce,
|
|
12
|
+
setPrototypeOf: J,
|
|
13
|
+
isFrozen: St,
|
|
14
|
+
getPrototypeOf: Rt,
|
|
15
|
+
getOwnPropertyDescriptor: yt
|
|
16
|
+
} = Object;
|
|
17
|
+
let {
|
|
18
|
+
freeze: E,
|
|
19
|
+
seal: y,
|
|
20
|
+
create: xe
|
|
21
|
+
} = Object, {
|
|
22
|
+
apply: fe,
|
|
23
|
+
construct: ue
|
|
24
|
+
} = typeof Reflect < "u" && Reflect;
|
|
25
|
+
E || (E = function(o) {
|
|
26
|
+
return o;
|
|
27
|
+
}), y || (y = function(o) {
|
|
28
|
+
return o;
|
|
29
|
+
}), fe || (fe = function(o, l, a) {
|
|
30
|
+
return o.apply(l, a);
|
|
31
|
+
}), ue || (ue = function(o, l) {
|
|
32
|
+
return new o(...l);
|
|
33
|
+
});
|
|
34
|
+
const Q = R(Array.prototype.forEach), Pe = R(Array.prototype.pop), z = R(Array.prototype.push), ee = R(String.prototype.toLowerCase), me = R(String.prototype.toString), ve = R(String.prototype.match), G = R(String.prototype.replace), Lt = R(String.prototype.indexOf), Ot = R(String.prototype.trim), L = R(Object.prototype.hasOwnProperty), g = R(RegExp.prototype.test), W = Dt(TypeError);
|
|
35
|
+
function R(s) {
|
|
36
|
+
return function(o) {
|
|
37
|
+
for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), T = 1; T < l; T++)
|
|
38
|
+
a[T - 1] = arguments[T];
|
|
39
|
+
return fe(s, o, a);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function Dt(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 ue(s, l);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function r(s, o) {
|
|
50
|
+
let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ee;
|
|
51
|
+
J && J(s, null);
|
|
52
|
+
let a = o.length;
|
|
53
|
+
for (; a--; ) {
|
|
54
|
+
let T = o[a];
|
|
55
|
+
if (typeof T == "string") {
|
|
56
|
+
const b = l(T);
|
|
57
|
+
b !== T && (St(o) || (o[a] = b), T = b);
|
|
58
|
+
}
|
|
59
|
+
s[T] = !0;
|
|
60
|
+
}
|
|
61
|
+
return s;
|
|
62
|
+
}
|
|
63
|
+
function Nt(s) {
|
|
64
|
+
for (let o = 0; o < s.length; o++)
|
|
65
|
+
L(s, o) || (s[o] = null);
|
|
66
|
+
return s;
|
|
67
|
+
}
|
|
68
|
+
function M(s) {
|
|
69
|
+
const o = xe(null);
|
|
70
|
+
for (const [l, a] of ce(s))
|
|
71
|
+
L(s, l) && (Array.isArray(a) ? o[l] = Nt(a) : a && typeof a == "object" && a.constructor === Object ? o[l] = M(a) : o[l] = a);
|
|
72
|
+
return o;
|
|
73
|
+
}
|
|
74
|
+
function B(s, o) {
|
|
75
|
+
for (; s !== null; ) {
|
|
76
|
+
const a = yt(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 = Rt(s);
|
|
84
|
+
}
|
|
85
|
+
function l() {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return l;
|
|
89
|
+
}
|
|
90
|
+
const ke = 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"]), bt = 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"]), Ue = E(["#text"]), Fe = 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"]), He = 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"]), te = E(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), It = y(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Mt = y(/<%[\w\W]*|[\w\W]*%>/gm), wt = y(/\${[\w\W]*}/gm), xt = y(/^data-[\-\w.\u00B7-\uFFFF]/), Pt = y(/^aria-[\-\w]+$/), ze = y(
|
|
91
|
+
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
92
|
+
// eslint-disable-line no-useless-escape
|
|
93
|
+
), vt = y(/^(?:\w+script|data):/i), kt = y(
|
|
94
|
+
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
95
|
+
// eslint-disable-line no-control-regex
|
|
96
|
+
), Ge = y(/^html$/i), Ut = y(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
97
|
+
var We = /* @__PURE__ */ Object.freeze({
|
|
98
|
+
__proto__: null,
|
|
99
|
+
MUSTACHE_EXPR: It,
|
|
100
|
+
ERB_EXPR: Mt,
|
|
101
|
+
TMPLIT_EXPR: wt,
|
|
102
|
+
DATA_ATTR: xt,
|
|
103
|
+
ARIA_ATTR: Pt,
|
|
104
|
+
IS_ALLOWED_URI: ze,
|
|
105
|
+
IS_SCRIPT_OR_DATA: vt,
|
|
106
|
+
ATTR_WHITESPACE: kt,
|
|
107
|
+
DOCTYPE_NAME: Ge,
|
|
108
|
+
CUSTOM_ELEMENT: Ut
|
|
109
|
+
});
|
|
110
|
+
const Y = {
|
|
111
|
+
element: 1,
|
|
112
|
+
attribute: 2,
|
|
113
|
+
text: 3,
|
|
114
|
+
cdataSection: 4,
|
|
115
|
+
entityReference: 5,
|
|
116
|
+
// Deprecated
|
|
117
|
+
entityNode: 6,
|
|
118
|
+
// Deprecated
|
|
119
|
+
progressingInstruction: 7,
|
|
120
|
+
comment: 8,
|
|
121
|
+
document: 9,
|
|
122
|
+
documentType: 10,
|
|
123
|
+
documentFragment: 11,
|
|
124
|
+
notation: 12
|
|
125
|
+
// Deprecated
|
|
126
|
+
}, Ft = function() {
|
|
127
|
+
return typeof window > "u" ? null : window;
|
|
128
|
+
}, Ht = function(o, l) {
|
|
129
|
+
if (typeof o != "object" || typeof o.createPolicy != "function")
|
|
130
|
+
return null;
|
|
131
|
+
let a = null;
|
|
132
|
+
const T = "data-tt-policy-suffix";
|
|
133
|
+
l && l.hasAttribute(T) && (a = l.getAttribute(T));
|
|
134
|
+
const b = "dompurify" + (a ? "#" + a : "");
|
|
135
|
+
try {
|
|
136
|
+
return o.createPolicy(b, {
|
|
137
|
+
createHTML(x) {
|
|
138
|
+
return x;
|
|
139
|
+
},
|
|
140
|
+
createScriptURL(x) {
|
|
141
|
+
return x;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
} catch {
|
|
145
|
+
return console.warn("TrustedTypes policy " + b + " could not be created."), null;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
function Be() {
|
|
149
|
+
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ft();
|
|
150
|
+
const o = (i) => Be(i);
|
|
151
|
+
if (o.version = "3.1.7", o.removed = [], !s || !s.document || s.document.nodeType !== Y.document)
|
|
152
|
+
return o.isSupported = !1, o;
|
|
153
|
+
let {
|
|
154
|
+
document: l
|
|
155
|
+
} = s;
|
|
156
|
+
const a = l, T = a.currentScript, {
|
|
157
|
+
DocumentFragment: b,
|
|
158
|
+
HTMLTemplateElement: x,
|
|
159
|
+
Node: Ee,
|
|
160
|
+
Element: Ye,
|
|
161
|
+
NodeFilter: X,
|
|
162
|
+
NamedNodeMap: Gt = s.NamedNodeMap || s.MozNamedAttrMap,
|
|
163
|
+
HTMLFormElement: Wt,
|
|
164
|
+
DOMParser: Bt,
|
|
165
|
+
trustedTypes: ne
|
|
166
|
+
} = s, j = Ye.prototype, Yt = B(j, "cloneNode"), Xt = B(j, "remove"), jt = B(j, "nextSibling"), Vt = B(j, "childNodes"), oe = 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 h, V = "";
|
|
172
|
+
const {
|
|
173
|
+
implementation: ge,
|
|
174
|
+
createNodeIterator: qt,
|
|
175
|
+
createDocumentFragment: $t,
|
|
176
|
+
getElementsByTagName: Kt
|
|
177
|
+
} = l, {
|
|
178
|
+
importNode: Zt
|
|
179
|
+
} = a;
|
|
180
|
+
let O = {};
|
|
181
|
+
o.isSupported = typeof ce == "function" && typeof oe == "function" && ge && ge.createHTMLDocument !== void 0;
|
|
182
|
+
const {
|
|
183
|
+
MUSTACHE_EXPR: he,
|
|
184
|
+
ERB_EXPR: Ae,
|
|
185
|
+
TMPLIT_EXPR: Se,
|
|
186
|
+
DATA_ATTR: Jt,
|
|
187
|
+
ARIA_ATTR: Qt,
|
|
188
|
+
IS_SCRIPT_OR_DATA: en,
|
|
189
|
+
ATTR_WHITESPACE: Xe,
|
|
190
|
+
CUSTOM_ELEMENT: tn
|
|
191
|
+
} = We;
|
|
192
|
+
let {
|
|
193
|
+
IS_ALLOWED_URI: je
|
|
194
|
+
} = We, u = null;
|
|
195
|
+
const Ve = r({}, [...ke, ...pe, ...de, ...Te, ...Ue]);
|
|
196
|
+
let m = null;
|
|
197
|
+
const qe = r({}, [...Fe, ..._e, ...He, ...te]);
|
|
198
|
+
let f = Object.seal(xe(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, $e = !0, ye = !0, Ke = !1, Ze = !0, P = !1, Le = !0, w = !1, Oe = !1, De = !1, v = !1, ie = !1, re = !1, Je = !0, Qe = !1;
|
|
218
|
+
const nn = "user-content-";
|
|
219
|
+
let Ne = !0, $ = !1, k = {}, U = null;
|
|
220
|
+
const et = 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"]);
|
|
221
|
+
let tt = null;
|
|
222
|
+
const nt = r({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
223
|
+
let be = null;
|
|
224
|
+
const ot = r({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ae = "http://www.w3.org/1998/Math/MathML", se = "http://www.w3.org/2000/svg", C = "http://www.w3.org/1999/xhtml";
|
|
225
|
+
let F = C, Ce = !1, Ie = null;
|
|
226
|
+
const on = r({}, [ae, se, C], me);
|
|
227
|
+
let K = null;
|
|
228
|
+
const rn = ["application/xhtml+xml", "text/html"], an = "text/html";
|
|
229
|
+
let p = null, H = null;
|
|
230
|
+
const sn = l.createElement("form"), it = function(e) {
|
|
231
|
+
return e instanceof RegExp || e instanceof Function;
|
|
232
|
+
}, Me = function() {
|
|
233
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
234
|
+
if (!(H && H === e)) {
|
|
235
|
+
if ((!e || typeof e != "object") && (e = {}), e = M(e), K = // eslint-disable-next-line unicorn/prefer-includes
|
|
236
|
+
rn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? an : e.PARSER_MEDIA_TYPE, p = K === "application/xhtml+xml" ? me : ee, u = L(e, "ALLOWED_TAGS") ? r({}, e.ALLOWED_TAGS, p) : Ve, m = L(e, "ALLOWED_ATTR") ? r({}, e.ALLOWED_ATTR, p) : qe, Ie = L(e, "ALLOWED_NAMESPACES") ? r({}, e.ALLOWED_NAMESPACES, me) : on, be = L(e, "ADD_URI_SAFE_ATTR") ? r(
|
|
237
|
+
M(ot),
|
|
238
|
+
// eslint-disable-line indent
|
|
239
|
+
e.ADD_URI_SAFE_ATTR,
|
|
240
|
+
// eslint-disable-line indent
|
|
241
|
+
p
|
|
242
|
+
// eslint-disable-line indent
|
|
243
|
+
) : ot, tt = L(e, "ADD_DATA_URI_TAGS") ? r(
|
|
244
|
+
M(nt),
|
|
245
|
+
// eslint-disable-line indent
|
|
246
|
+
e.ADD_DATA_URI_TAGS,
|
|
247
|
+
// eslint-disable-line indent
|
|
248
|
+
p
|
|
249
|
+
// eslint-disable-line indent
|
|
250
|
+
) : nt, U = L(e, "FORBID_CONTENTS") ? r({}, e.FORBID_CONTENTS, p) : et, q = L(e, "FORBID_TAGS") ? r({}, e.FORBID_TAGS, p) : {}, Re = L(e, "FORBID_ATTR") ? r({}, e.FORBID_ATTR, p) : {}, k = L(e, "USE_PROFILES") ? e.USE_PROFILES : !1, $e = e.ALLOW_ARIA_ATTR !== !1, ye = e.ALLOW_DATA_ATTR !== !1, Ke = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ze = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, Le = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, ie = e.RETURN_DOM_FRAGMENT || !1, re = e.RETURN_TRUSTED_TYPE || !1, De = e.FORCE_BODY || !1, Je = e.SANITIZE_DOM !== !1, Qe = e.SANITIZE_NAMED_PROPS || !1, Ne = e.KEEP_CONTENT !== !1, $ = e.IN_PLACE || !1, je = e.ALLOWED_URI_REGEXP || ze, F = e.NAMESPACE || C, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && it(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), ie && (v = !0), k && (u = r({}, Ue), m = [], k.html === !0 && (r(u, ke), r(m, Fe)), k.svg === !0 && (r(u, pe), r(m, _e), r(m, te)), k.svgFilters === !0 && (r(u, de), r(m, _e), r(m, te)), k.mathMl === !0 && (r(u, Te), r(m, He), r(m, te))), e.ADD_TAGS && (u === Ve && (u = M(u)), r(u, e.ADD_TAGS, p)), e.ADD_ATTR && (m === qe && (m = M(m)), r(m, e.ADD_ATTR, p)), e.ADD_URI_SAFE_ATTR && r(be, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (U === et && (U = M(U)), r(U, e.FORBID_CONTENTS, p)), Ne && (u["#text"] = !0), w && r(u, ["html", "head", "body"]), u.table && (r(u, ["tbody"]), delete q.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
251
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
252
|
+
throw W('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
253
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
254
|
+
throw W('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
255
|
+
h = e.TRUSTED_TYPES_POLICY, V = h.createHTML("");
|
|
256
|
+
} else
|
|
257
|
+
h === void 0 && (h = Ht(ne, T)), h !== null && typeof V == "string" && (V = h.createHTML(""));
|
|
258
|
+
E && E(e), H = e;
|
|
259
|
+
}
|
|
260
|
+
}, rt = r({}, ["mi", "mo", "mn", "ms", "mtext"]), at = r({}, ["annotation-xml"]), ln = r({}, ["title", "style", "font", "a", "script"]), st = r({}, [...pe, ...de, ...bt]), lt = r({}, [...Te, ...Ct]), cn = function(e) {
|
|
261
|
+
let t = oe(e);
|
|
262
|
+
(!t || !t.tagName) && (t = {
|
|
263
|
+
namespaceURI: F,
|
|
264
|
+
tagName: "template"
|
|
265
|
+
});
|
|
266
|
+
const n = ee(e.tagName), c = ee(t.tagName);
|
|
267
|
+
return Ie[e.namespaceURI] ? e.namespaceURI === se ? t.namespaceURI === C ? n === "svg" : t.namespaceURI === ae ? n === "svg" && (c === "annotation-xml" || rt[c]) : !!st[n] : e.namespaceURI === ae ? t.namespaceURI === C ? n === "math" : t.namespaceURI === se ? n === "math" && at[c] : !!lt[n] : e.namespaceURI === C ? t.namespaceURI === se && !at[c] || t.namespaceURI === ae && !rt[c] ? !1 : !lt[n] && (ln[n] || !st[n]) : !!(K === "application/xhtml+xml" && Ie[e.namespaceURI]) : !1;
|
|
268
|
+
}, D = function(e) {
|
|
269
|
+
z(o.removed, {
|
|
270
|
+
element: e
|
|
271
|
+
});
|
|
272
|
+
try {
|
|
273
|
+
oe(e).removeChild(e);
|
|
274
|
+
} catch {
|
|
275
|
+
Xt(e);
|
|
276
|
+
}
|
|
277
|
+
}, le = function(e, t) {
|
|
278
|
+
try {
|
|
279
|
+
z(o.removed, {
|
|
280
|
+
attribute: t.getAttributeNode(e),
|
|
281
|
+
from: t
|
|
282
|
+
});
|
|
283
|
+
} catch {
|
|
284
|
+
z(o.removed, {
|
|
285
|
+
attribute: null,
|
|
286
|
+
from: t
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
if (t.removeAttribute(e), e === "is" && !m[e])
|
|
290
|
+
if (v || ie)
|
|
291
|
+
try {
|
|
292
|
+
D(t);
|
|
293
|
+
} catch {
|
|
294
|
+
}
|
|
295
|
+
else
|
|
296
|
+
try {
|
|
297
|
+
t.setAttribute(e, "");
|
|
298
|
+
} catch {
|
|
299
|
+
}
|
|
300
|
+
}, ct = function(e) {
|
|
301
|
+
let t = null, n = null;
|
|
302
|
+
if (De)
|
|
303
|
+
e = "<remove></remove>" + e;
|
|
304
|
+
else {
|
|
305
|
+
const d = ve(e, /^[\r\n\t ]+/);
|
|
306
|
+
n = d && d[0];
|
|
307
|
+
}
|
|
308
|
+
K === "application/xhtml+xml" && F === C && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
309
|
+
const c = h ? h.createHTML(e) : e;
|
|
310
|
+
if (F === C)
|
|
311
|
+
try {
|
|
312
|
+
t = new Bt().parseFromString(c, K);
|
|
313
|
+
} catch {
|
|
314
|
+
}
|
|
315
|
+
if (!t || !t.documentElement) {
|
|
316
|
+
t = ge.createDocument(F, "template", null);
|
|
317
|
+
try {
|
|
318
|
+
t.documentElement.innerHTML = Ce ? V : c;
|
|
319
|
+
} catch {
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
const _ = t.body || t.documentElement;
|
|
323
|
+
return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), F === C ? Kt.call(t, w ? "html" : "body")[0] : w ? t.documentElement : _;
|
|
324
|
+
}, ft = function(e) {
|
|
325
|
+
return qt.call(
|
|
326
|
+
e.ownerDocument || e,
|
|
327
|
+
e,
|
|
328
|
+
// eslint-disable-next-line no-bitwise
|
|
329
|
+
X.SHOW_ELEMENT | X.SHOW_COMMENT | X.SHOW_TEXT | X.SHOW_PROCESSING_INSTRUCTION | X.SHOW_CDATA_SECTION,
|
|
330
|
+
null
|
|
331
|
+
);
|
|
332
|
+
}, ut = function(e) {
|
|
333
|
+
return e instanceof Wt && (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");
|
|
334
|
+
}, mt = function(e) {
|
|
335
|
+
return typeof Ee == "function" && e instanceof Ee;
|
|
336
|
+
}, I = function(e, t, n) {
|
|
337
|
+
O[e] && Q(O[e], (c) => {
|
|
338
|
+
c.call(o, t, n, H);
|
|
339
|
+
});
|
|
340
|
+
}, pt = function(e) {
|
|
341
|
+
let t = null;
|
|
342
|
+
if (I("beforeSanitizeElements", e, null), ut(e))
|
|
343
|
+
return D(e), !0;
|
|
344
|
+
const n = p(e.nodeName);
|
|
345
|
+
if (I("uponSanitizeElement", e, {
|
|
346
|
+
tagName: n,
|
|
347
|
+
allowedTags: u
|
|
348
|
+
}), e.hasChildNodes() && !mt(e.firstElementChild) && g(/<[/\w]/g, e.innerHTML) && g(/<[/\w]/g, e.textContent) || e.nodeType === Y.progressingInstruction || Le && e.nodeType === Y.comment && g(/<[/\w]/g, e.data))
|
|
349
|
+
return D(e), !0;
|
|
350
|
+
if (!u[n] || q[n]) {
|
|
351
|
+
if (!q[n] && Tt(n) && (f.tagNameCheck instanceof RegExp && g(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
|
|
352
|
+
return !1;
|
|
353
|
+
if (Ne && !U[n]) {
|
|
354
|
+
const c = oe(e) || e.parentNode, _ = Vt(e) || e.childNodes;
|
|
355
|
+
if (_ && c) {
|
|
356
|
+
const d = _.length;
|
|
357
|
+
for (let S = d - 1; S >= 0; --S) {
|
|
358
|
+
const N = Yt(_[S], !0);
|
|
359
|
+
N.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(N, jt(e));
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return D(e), !0;
|
|
364
|
+
}
|
|
365
|
+
return e instanceof Ye && !cn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && g(/<\/no(script|embed|frames)/i, e.innerHTML) ? (D(e), !0) : (P && e.nodeType === Y.text && (t = e.textContent, Q([he, Ae, Se], (c) => {
|
|
366
|
+
t = G(t, c, " ");
|
|
367
|
+
}), e.textContent !== t && (z(o.removed, {
|
|
368
|
+
element: e.cloneNode()
|
|
369
|
+
}), e.textContent = t)), I("afterSanitizeElements", e, null), !1);
|
|
370
|
+
}, dt = function(e, t, n) {
|
|
371
|
+
if (Je && (t === "id" || t === "name") && (n in l || n in sn))
|
|
372
|
+
return !1;
|
|
373
|
+
if (!(ye && !Re[t] && g(Jt, t))) {
|
|
374
|
+
if (!($e && g(Qt, t))) {
|
|
375
|
+
if (!m[t] || Re[t]) {
|
|
376
|
+
if (
|
|
377
|
+
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
378
|
+
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
379
|
+
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
380
|
+
!(Tt(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
|
|
381
|
+
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
382
|
+
t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && g(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
|
|
383
|
+
) return !1;
|
|
384
|
+
} else if (!be[t]) {
|
|
385
|
+
if (!g(je, G(n, Xe, ""))) {
|
|
386
|
+
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Lt(n, "data:") === 0 && tt[e])) {
|
|
387
|
+
if (!(Ke && !g(en, G(n, Xe, "")))) {
|
|
388
|
+
if (n)
|
|
389
|
+
return !1;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
return !0;
|
|
397
|
+
}, Tt = function(e) {
|
|
398
|
+
return e !== "annotation-xml" && ve(e, tn);
|
|
399
|
+
}, _t = function(e) {
|
|
400
|
+
I("beforeSanitizeAttributes", e, null);
|
|
401
|
+
const {
|
|
402
|
+
attributes: t
|
|
403
|
+
} = e;
|
|
404
|
+
if (!t)
|
|
405
|
+
return;
|
|
406
|
+
const n = {
|
|
407
|
+
attrName: "",
|
|
408
|
+
attrValue: "",
|
|
409
|
+
keepAttr: !0,
|
|
410
|
+
allowedAttributes: m
|
|
411
|
+
};
|
|
412
|
+
let c = t.length;
|
|
413
|
+
for (; c--; ) {
|
|
414
|
+
const _ = t[c], {
|
|
415
|
+
name: d,
|
|
416
|
+
namespaceURI: S,
|
|
417
|
+
value: N
|
|
418
|
+
} = _, Z = p(d);
|
|
419
|
+
let A = d === "value" ? N : Ot(N);
|
|
420
|
+
if (n.attrName = Z, n.attrValue = A, n.keepAttr = !0, n.forceKeepAttr = void 0, I("uponSanitizeAttribute", e, n), A = n.attrValue, n.forceKeepAttr || (le(d, e), !n.keepAttr))
|
|
421
|
+
continue;
|
|
422
|
+
if (!Ze && g(/\/>/i, A)) {
|
|
423
|
+
le(d, e);
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
P && Q([he, Ae, Se], (gt) => {
|
|
427
|
+
A = G(A, gt, " ");
|
|
428
|
+
});
|
|
429
|
+
const Et = p(e.nodeName);
|
|
430
|
+
if (dt(Et, Z, A)) {
|
|
431
|
+
if (Qe && (Z === "id" || Z === "name") && (le(d, e), A = nn + A), Le && g(/((--!?|])>)|<\/(style|title)/i, A)) {
|
|
432
|
+
le(d, e);
|
|
433
|
+
continue;
|
|
434
|
+
}
|
|
435
|
+
if (h && typeof ne == "object" && typeof ne.getAttributeType == "function" && !S)
|
|
436
|
+
switch (ne.getAttributeType(Et, Z)) {
|
|
437
|
+
case "TrustedHTML": {
|
|
438
|
+
A = h.createHTML(A);
|
|
439
|
+
break;
|
|
440
|
+
}
|
|
441
|
+
case "TrustedScriptURL": {
|
|
442
|
+
A = h.createScriptURL(A);
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
try {
|
|
447
|
+
S ? e.setAttributeNS(S, d, A) : e.setAttribute(d, A), ut(e) ? D(e) : Pe(o.removed);
|
|
448
|
+
} catch {
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
I("afterSanitizeAttributes", e, null);
|
|
453
|
+
}, fn = function i(e) {
|
|
454
|
+
let t = null;
|
|
455
|
+
const n = ft(e);
|
|
456
|
+
for (I("beforeSanitizeShadowDOM", e, null); t = n.nextNode(); )
|
|
457
|
+
I("uponSanitizeShadowNode", t, null), !pt(t) && (t.content instanceof b && i(t.content), _t(t));
|
|
458
|
+
I("afterSanitizeShadowDOM", e, null);
|
|
459
|
+
};
|
|
460
|
+
return o.sanitize = function(i) {
|
|
461
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, c = null, _ = null;
|
|
462
|
+
if (Ce = !i, Ce && (i = "<!-->"), typeof i != "string" && !mt(i))
|
|
463
|
+
if (typeof i.toString == "function") {
|
|
464
|
+
if (i = i.toString(), typeof i != "string")
|
|
465
|
+
throw W("dirty is not a string, aborting");
|
|
466
|
+
} else
|
|
467
|
+
throw W("toString is not a function");
|
|
468
|
+
if (!o.isSupported)
|
|
469
|
+
return i;
|
|
470
|
+
if (Oe || Me(e), o.removed = [], typeof i == "string" && ($ = !1), $) {
|
|
471
|
+
if (i.nodeName) {
|
|
472
|
+
const N = p(i.nodeName);
|
|
473
|
+
if (!u[N] || q[N])
|
|
474
|
+
throw W("root node is forbidden and cannot be sanitized in-place");
|
|
475
|
+
}
|
|
476
|
+
} else if (i instanceof Ee)
|
|
477
|
+
t = ct("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === Y.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
|
|
478
|
+
else {
|
|
479
|
+
if (!v && !P && !w && // eslint-disable-next-line unicorn/prefer-includes
|
|
480
|
+
i.indexOf("<") === -1)
|
|
481
|
+
return h && re ? h.createHTML(i) : i;
|
|
482
|
+
if (t = ct(i), !t)
|
|
483
|
+
return v ? null : re ? V : "";
|
|
484
|
+
}
|
|
485
|
+
t && De && D(t.firstChild);
|
|
486
|
+
const d = ft($ ? i : t);
|
|
487
|
+
for (; c = d.nextNode(); )
|
|
488
|
+
pt(c) || (c.content instanceof b && fn(c.content), _t(c));
|
|
489
|
+
if ($)
|
|
490
|
+
return i;
|
|
491
|
+
if (v) {
|
|
492
|
+
if (ie)
|
|
493
|
+
for (_ = $t.call(t.ownerDocument); t.firstChild; )
|
|
494
|
+
_.appendChild(t.firstChild);
|
|
495
|
+
else
|
|
496
|
+
_ = t;
|
|
497
|
+
return (m.shadowroot || m.shadowrootmode) && (_ = Zt.call(a, _, !0)), _;
|
|
498
|
+
}
|
|
499
|
+
let S = w ? t.outerHTML : t.innerHTML;
|
|
500
|
+
return w && u["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && g(Ge, t.ownerDocument.doctype.name) && (S = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
|
|
501
|
+
` + S), P && Q([he, Ae, Se], (N) => {
|
|
502
|
+
S = G(S, N, " ");
|
|
503
|
+
}), h && re ? h.createHTML(S) : S;
|
|
504
|
+
}, o.setConfig = function() {
|
|
505
|
+
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
506
|
+
Me(i), Oe = !0;
|
|
507
|
+
}, o.clearConfig = function() {
|
|
508
|
+
H = null, Oe = !1;
|
|
509
|
+
}, o.isValidAttribute = function(i, e, t) {
|
|
510
|
+
H || Me({});
|
|
511
|
+
const n = p(i), c = p(e);
|
|
512
|
+
return dt(n, c, t);
|
|
513
|
+
}, o.addHook = function(i, e) {
|
|
514
|
+
typeof e == "function" && (O[i] = O[i] || [], z(O[i], e));
|
|
515
|
+
}, o.removeHook = function(i) {
|
|
516
|
+
if (O[i])
|
|
517
|
+
return Pe(O[i]);
|
|
518
|
+
}, o.removeHooks = function(i) {
|
|
519
|
+
O[i] && (O[i] = []);
|
|
520
|
+
}, o.removeAllHooks = function() {
|
|
521
|
+
O = {};
|
|
522
|
+
}, o;
|
|
523
|
+
}
|
|
524
|
+
var zt = Be();
|
|
525
|
+
return zt;
|
|
526
|
+
});
|
|
527
|
+
}(we), we.exports);
|
|
528
|
+
}
|
|
529
|
+
export {
|
|
530
|
+
Tn as __require
|
|
531
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
function f(n, t) {
|
|
2
|
+
const o = {};
|
|
3
|
+
if (Array.isArray(t))
|
|
4
|
+
for (const e of t) {
|
|
5
|
+
const r = Object.getOwnPropertyDescriptor(n, e);
|
|
6
|
+
r != null && r.enumerable && Object.defineProperty(o, e, r);
|
|
7
|
+
}
|
|
8
|
+
else
|
|
9
|
+
for (const e of Reflect.ownKeys(n)) {
|
|
10
|
+
const r = Object.getOwnPropertyDescriptor(n, e);
|
|
11
|
+
if (r.enumerable) {
|
|
12
|
+
const s = n[e];
|
|
13
|
+
t(e, s, n) && Object.defineProperty(o, e, r);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return o;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
f as includeKeys
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs as u } from "../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as e } from "../../../_virtual/index.js";
|
|
3
|
+
(function(t, o) {
|
|
4
|
+
Object.defineProperty(o, "__esModule", {
|
|
5
|
+
value: !0
|
|
6
|
+
}), o.default = n;
|
|
7
|
+
function n() {
|
|
8
|
+
return !!(typeof window < "u" && ("ontouchstart" in window || window.DocumentTouch && typeof document < "u" && document instanceof window.DocumentTouch)) || !!(typeof navigator < "u" && (navigator.maxTouchPoints || navigator.msMaxTouchPoints));
|
|
9
|
+
}
|
|
10
|
+
t.exports = o.default;
|
|
11
|
+
})(e, e.exports);
|
|
12
|
+
var i = e.exports;
|
|
13
|
+
const a = /* @__PURE__ */ u(i);
|
|
14
|
+
export {
|
|
15
|
+
a as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs as o } from "../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../dompurify/dist/purify.js";
|
|
3
|
+
var e = window.DOMPurify || (window.DOMPurify = r().default || r());
|
|
4
|
+
const t = /* @__PURE__ */ o(e);
|
|
5
|
+
export {
|
|
6
|
+
t as default
|
|
7
|
+
};
|