@ianicdev/datatables2 0.10.5 → 0.10.7

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.
Files changed (51) hide show
  1. package/dist/{Columns-CPCKKIx3.cjs → Columns-BQBgwIE4.cjs} +1 -1
  2. package/dist/{Columns-ZxF5CuL6.js → Columns-CeOoSZPT.js} +1 -1
  3. package/dist/{Comparison-DfPeTvCT.cjs → Comparison-TwSFYOo8.cjs} +1 -1
  4. package/dist/{Comparison-CMTDEfUJ.js → Comparison-w8X0sSEz.js} +6 -6
  5. package/dist/Datepicker-Bfg7S8gY.cjs +2 -0
  6. package/dist/Datepicker-DZj1h3YE.js +1425 -0
  7. package/dist/{Download-CjD4NWhV.cjs → Download-CtOrEQa0.cjs} +1 -1
  8. package/dist/{Download-CBodg9GI.js → Download-h5jMMWzV.js} +3 -3
  9. package/dist/{Options-BHx4o8aa.js → Options-Cf8cNif9.js} +1 -1
  10. package/dist/{Options-e0hJOpF8.cjs → Options-DgUkT0h1.cjs} +1 -1
  11. package/dist/{RefreshTable-DlG8UH4c.js → RefreshTable-B5qFMtYy.js} +2 -2
  12. package/dist/{RefreshTable-CyPWCK3e.cjs → RefreshTable-CyPzzQ1S.cjs} +1 -1
  13. package/dist/{Search-DDRz2N_S.js → Search--1ntexbx.js} +2 -2
  14. package/dist/{Search-D4UmoZpS.cjs → Search-YN4Jt4eC.cjs} +1 -1
  15. package/dist/{Table-QxreAQB1.js → Table-5pQ_bwxC.js} +3 -3
  16. package/dist/{Table-ACmKFpAk.cjs → Table-WgtgmVfz.cjs} +1 -1
  17. package/dist/{TableServer-pRzLKhVw.cjs → TableServer-7AzrveN2.cjs} +1 -1
  18. package/dist/{TableServer-BQUFKBeQ.js → TableServer-Bewaghu8.js} +3 -3
  19. package/dist/{cellRender-B3IOPLJf.js → cellRender-Cy88VFEF.js} +451 -452
  20. package/dist/cellRender-kbJfFjXc.cjs +1 -0
  21. package/dist/{dataTables-Be-U1RVV.js → dataTables-ej1IEGzo.js} +1385 -1388
  22. package/dist/dataTables-z7fPX2Wi.cjs +4 -0
  23. package/dist/datatables.cjs +1 -1
  24. package/dist/datatables.js +1 -1
  25. package/dist/datatables2.css +1 -1
  26. package/dist/html2canvas.esm-B5qzocYs.cjs +5 -0
  27. package/dist/{html2canvas.esm-DQ00cQCm.js → html2canvas.esm-BWVIUcAF.js} +5 -55
  28. package/dist/{index-5WIEduUN.js → index-C3S1kkaI.js} +2 -2
  29. package/dist/index-CiJ4XY6g.cjs +1 -0
  30. package/dist/index-DfPhvU77.js +5865 -0
  31. package/dist/{index-CDteNa2i.cjs → index-EmvtFwx8.cjs} +1 -1
  32. package/dist/{index.es-Ciudu1vj.cjs → index.es-BtDW7HTQ.cjs} +1 -1
  33. package/dist/{index.es-eRsZ1LFr.js → index.es-Bv6Mb9BC.js} +2 -2
  34. package/dist/{jspdf-B3ZoDzKb.cjs → jspdf-BsORS480.cjs} +2 -2
  35. package/dist/{jspdf-ooxm5O8S.js → jspdf-D9i2dan7.js} +3 -3
  36. package/dist/purify.es-B-PIlM9I.js +552 -0
  37. package/dist/purify.es-B-_4ubwQ.cjs +2 -0
  38. package/dist/{xlsx-BiH37OJz.cjs → xlsx-D4qEY9Uo.cjs} +5 -5
  39. package/dist/{xlsx-Beik4N2o.js → xlsx-VYa4XHDj.js} +8 -48
  40. package/package.json +14 -13
  41. package/dist/Datepicker-BLYCUwKH.js +0 -1411
  42. package/dist/Datepicker-CbsULJsG.cjs +0 -2
  43. package/dist/cellRender-CA6S9KvF.cjs +0 -1
  44. package/dist/dataTables-BbXv6am2.cjs +0 -4
  45. package/dist/html2canvas.esm-CNmnTSlr.cjs +0 -5
  46. package/dist/index-BAxGZLuh.js +0 -4533
  47. package/dist/index-m_LBTAkz.cjs +0 -1
  48. package/dist/purify.es-BwLardii.js +0 -527
  49. package/dist/purify.es-ClceE12G.cjs +0 -2
  50. package/dist/sortablejs-C0WJhxmJ.js +0 -1254
  51. package/dist/sortablejs-Da6TYh39.cjs +0 -1
@@ -8343,14 +8343,14 @@ function sf(r) {
8343
8343
  }, r.loadImageFile = r.loadFile;
8344
8344
  })(Mt.API), (function(r) {
8345
8345
  function t() {
8346
- return (Jt.html2canvas ? Promise.resolve(Jt.html2canvas) : import("./html2canvas.esm-DQ00cQCm.js")).catch(function(l) {
8346
+ return (Jt.html2canvas ? Promise.resolve(Jt.html2canvas) : import("./html2canvas.esm-BWVIUcAF.js")).catch(function(l) {
8347
8347
  return Promise.reject(new Error("Could not load html2canvas: " + l));
8348
8348
  }).then(function(l) {
8349
8349
  return l.default ? l.default : l;
8350
8350
  });
8351
8351
  }
8352
8352
  function e() {
8353
- return (Jt.DOMPurify ? Promise.resolve(Jt.DOMPurify) : import("./purify.es-BwLardii.js")).catch(function(l) {
8353
+ return (Jt.DOMPurify ? Promise.resolve(Jt.DOMPurify) : import("./purify.es-B-PIlM9I.js")).catch(function(l) {
8354
8354
  return Promise.reject(new Error("Could not load dompurify: " + l));
8355
8355
  }).then(function(l) {
8356
8356
  return l.default ? l.default : l;
@@ -9048,7 +9048,7 @@ endobj\r
9048
9048
  var h = u.getContext("2d");
9049
9049
  h.fillStyle = "#fff", h.fillRect(0, 0, u.width, u.height);
9050
9050
  var p = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, w = this;
9051
- return (Jt.canvg ? Promise.resolve(Jt.canvg) : import("./index.es-eRsZ1LFr.js")).catch(function(x) {
9051
+ return (Jt.canvg ? Promise.resolve(Jt.canvg) : import("./index.es-Bv6Mb9BC.js")).catch(function(x) {
9052
9052
  return Promise.reject(new Error("Could not load canvg: " + x));
9053
9053
  }).then(function(x) {
9054
9054
  return x.default ? x.default : x;
@@ -0,0 +1,552 @@
1
+ const {
2
+ entries: _t,
3
+ setPrototypeOf: ct,
4
+ isFrozen: Yt,
5
+ getPrototypeOf: Xt,
6
+ getOwnPropertyDescriptor: jt
7
+ } = Object;
8
+ let {
9
+ freeze: S,
10
+ seal: y,
11
+ create: Pe
12
+ } = Object, {
13
+ apply: ve,
14
+ construct: ke
15
+ } = typeof Reflect < "u" && Reflect;
16
+ S || (S = function(o) {
17
+ return o;
18
+ });
19
+ y || (y = function(o) {
20
+ return o;
21
+ });
22
+ ve || (ve = function(o, l) {
23
+ for (var a = arguments.length, c = new Array(a > 2 ? a - 2 : 0), O = 2; O < a; O++)
24
+ c[O - 2] = arguments[O];
25
+ return o.apply(l, c);
26
+ });
27
+ ke || (ke = function(o) {
28
+ for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
29
+ a[c - 1] = arguments[c];
30
+ return new o(...a);
31
+ });
32
+ const ce = R(Array.prototype.forEach), Vt = R(Array.prototype.lastIndexOf), ft = R(Array.prototype.pop), q = R(Array.prototype.push), $t = R(Array.prototype.splice), ue = R(String.prototype.toLowerCase), Ne = R(String.prototype.toString), Ie = R(String.prototype.match), K = R(String.prototype.replace), qt = R(String.prototype.indexOf), Kt = R(String.prototype.trim), b = R(Object.prototype.hasOwnProperty), A = R(RegExp.prototype.test), Z = Zt(TypeError);
33
+ function R(s) {
34
+ return function(o) {
35
+ o instanceof RegExp && (o.lastIndex = 0);
36
+ for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
37
+ a[c - 1] = arguments[c];
38
+ return ve(s, o, a);
39
+ };
40
+ }
41
+ function Zt(s) {
42
+ return function() {
43
+ for (var o = arguments.length, l = new Array(o), a = 0; a < o; a++)
44
+ l[a] = arguments[a];
45
+ return ke(s, l);
46
+ };
47
+ }
48
+ function r(s, o) {
49
+ let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ue;
50
+ ct && ct(s, null);
51
+ let a = o.length;
52
+ for (; a--; ) {
53
+ let c = o[a];
54
+ if (typeof c == "string") {
55
+ const O = l(c);
56
+ O !== c && (Yt(o) || (o[a] = O), c = O);
57
+ }
58
+ s[c] = !0;
59
+ }
60
+ return s;
61
+ }
62
+ function Jt(s) {
63
+ for (let o = 0; o < s.length; o++)
64
+ b(s, o) || (s[o] = null);
65
+ return s;
66
+ }
67
+ function M(s) {
68
+ const o = Pe(null);
69
+ for (const [l, a] of _t(s))
70
+ b(s, l) && (Array.isArray(a) ? o[l] = Jt(a) : a && typeof a == "object" && a.constructor === Object ? o[l] = M(a) : o[l] = a);
71
+ return o;
72
+ }
73
+ function J(s, o) {
74
+ for (; s !== null; ) {
75
+ const a = jt(s, o);
76
+ if (a) {
77
+ if (a.get)
78
+ return R(a.get);
79
+ if (typeof a.value == "function")
80
+ return R(a.value);
81
+ }
82
+ s = Xt(s);
83
+ }
84
+ function l() {
85
+ return null;
86
+ }
87
+ return l;
88
+ }
89
+ const ut = 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"]), Ce = 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", "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"]), Qt = 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"]), we = 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"]), en = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mt = S(["#text"]), pt = 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"]), xe = 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", "mask-type", "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"]), dt = 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"]), fe = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), tn = y(/\{\{[\w\W]*|[\w\W]*\}\}/gm), nn = y(/<%[\w\W]*|[\w\W]*%>/gm), on = y(/\$\{[\w\W]*/gm), an = y(/^data-[\-\w.\u00B7-\uFFFF]+$/), rn = y(/^aria-[\-\w]+$/), gt = y(
90
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
91
+ // eslint-disable-line no-useless-escape
92
+ ), sn = y(/^(?:\w+script|data):/i), ln = y(
93
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
94
+ // eslint-disable-line no-control-regex
95
+ ), ht = y(/^html$/i), cn = y(/^[a-z][.\w]*(-[.\w]+)+$/i);
96
+ var Tt = /* @__PURE__ */ Object.freeze({
97
+ __proto__: null,
98
+ ARIA_ATTR: rn,
99
+ ATTR_WHITESPACE: ln,
100
+ CUSTOM_ELEMENT: cn,
101
+ DATA_ATTR: an,
102
+ DOCTYPE_NAME: ht,
103
+ ERB_EXPR: nn,
104
+ IS_ALLOWED_URI: gt,
105
+ IS_SCRIPT_OR_DATA: sn,
106
+ MUSTACHE_EXPR: tn,
107
+ TMPLIT_EXPR: on
108
+ });
109
+ const Q = {
110
+ element: 1,
111
+ text: 3,
112
+ // Deprecated
113
+ progressingInstruction: 7,
114
+ comment: 8,
115
+ document: 9
116
+ }, fn = function() {
117
+ return typeof window > "u" ? null : window;
118
+ }, un = function(o, l) {
119
+ if (typeof o != "object" || typeof o.createPolicy != "function")
120
+ return null;
121
+ let a = null;
122
+ const c = "data-tt-policy-suffix";
123
+ l && l.hasAttribute(c) && (a = l.getAttribute(c));
124
+ const O = "dompurify" + (a ? "#" + a : "");
125
+ try {
126
+ return o.createPolicy(O, {
127
+ createHTML(P) {
128
+ return P;
129
+ },
130
+ createScriptURL(P) {
131
+ return P;
132
+ }
133
+ });
134
+ } catch {
135
+ return console.warn("TrustedTypes policy " + O + " could not be created."), null;
136
+ }
137
+ }, Et = function() {
138
+ return {
139
+ afterSanitizeAttributes: [],
140
+ afterSanitizeElements: [],
141
+ afterSanitizeShadowDOM: [],
142
+ beforeSanitizeAttributes: [],
143
+ beforeSanitizeElements: [],
144
+ beforeSanitizeShadowDOM: [],
145
+ uponSanitizeAttribute: [],
146
+ uponSanitizeElement: [],
147
+ uponSanitizeShadowNode: []
148
+ };
149
+ };
150
+ function At() {
151
+ let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : fn();
152
+ const o = (i) => At(i);
153
+ if (o.version = "3.3.0", o.removed = [], !s || !s.document || s.document.nodeType !== Q.document || !s.Element)
154
+ return o.isSupported = !1, o;
155
+ let {
156
+ document: l
157
+ } = s;
158
+ const a = l, c = a.currentScript, {
159
+ DocumentFragment: O,
160
+ HTMLTemplateElement: P,
161
+ Node: me,
162
+ Element: Ue,
163
+ NodeFilter: B,
164
+ NamedNodeMap: St = s.NamedNodeMap || s.MozNamedAttrMap,
165
+ HTMLFormElement: Rt,
166
+ DOMParser: Ot,
167
+ trustedTypes: ee
168
+ } = s, Y = Ue.prototype, Lt = J(Y, "cloneNode"), yt = J(Y, "remove"), bt = J(Y, "nextSibling"), Dt = J(Y, "childNodes"), te = J(Y, "parentNode");
169
+ if (typeof P == "function") {
170
+ const i = l.createElement("template");
171
+ i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
172
+ }
173
+ let g, X = "";
174
+ const {
175
+ implementation: pe,
176
+ createNodeIterator: Nt,
177
+ createDocumentFragment: It,
178
+ getElementsByTagName: Ct
179
+ } = l, {
180
+ importNode: Mt
181
+ } = a;
182
+ let h = Et();
183
+ o.isSupported = typeof _t == "function" && typeof te == "function" && pe && pe.createHTMLDocument !== void 0;
184
+ const {
185
+ MUSTACHE_EXPR: de,
186
+ ERB_EXPR: Te,
187
+ TMPLIT_EXPR: Ee,
188
+ DATA_ATTR: wt,
189
+ ARIA_ATTR: xt,
190
+ IS_SCRIPT_OR_DATA: Pt,
191
+ ATTR_WHITESPACE: Fe,
192
+ CUSTOM_ELEMENT: vt
193
+ } = Tt;
194
+ let {
195
+ IS_ALLOWED_URI: He
196
+ } = Tt, p = null;
197
+ const ze = r({}, [...ut, ...Ce, ...Me, ...we, ...mt]);
198
+ let T = null;
199
+ const Ge = r({}, [...pt, ...xe, ...dt, ...fe]);
200
+ let u = Object.seal(Pe(null, {
201
+ tagNameCheck: {
202
+ writable: !0,
203
+ configurable: !1,
204
+ enumerable: !0,
205
+ value: null
206
+ },
207
+ attributeNameCheck: {
208
+ writable: !0,
209
+ configurable: !1,
210
+ enumerable: !0,
211
+ value: null
212
+ },
213
+ allowCustomizedBuiltInElements: {
214
+ writable: !0,
215
+ configurable: !1,
216
+ enumerable: !0,
217
+ value: !1
218
+ }
219
+ })), j = null, _e = null;
220
+ const v = Object.seal(Pe(null, {
221
+ tagCheck: {
222
+ writable: !0,
223
+ configurable: !1,
224
+ enumerable: !0,
225
+ value: null
226
+ },
227
+ attributeCheck: {
228
+ writable: !0,
229
+ configurable: !1,
230
+ enumerable: !0,
231
+ value: null
232
+ }
233
+ }));
234
+ let We = !0, ge = !0, Be = !1, Ye = !0, k = !1, ne = !0, w = !1, he = !1, Ae = !1, U = !1, oe = !1, ie = !1, Xe = !0, je = !1;
235
+ const kt = "user-content-";
236
+ let Se = !0, V = !1, F = {}, H = null;
237
+ const Ve = 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"]);
238
+ let $e = null;
239
+ const qe = r({}, ["audio", "video", "img", "source", "image", "track"]);
240
+ let Re = null;
241
+ const Ke = r({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ae = "http://www.w3.org/1998/Math/MathML", re = "http://www.w3.org/2000/svg", N = "http://www.w3.org/1999/xhtml";
242
+ let z = N, Oe = !1, Le = null;
243
+ const Ut = r({}, [ae, re, N], Ne);
244
+ let se = r({}, ["mi", "mo", "mn", "ms", "mtext"]), le = r({}, ["annotation-xml"]);
245
+ const Ft = r({}, ["title", "style", "font", "a", "script"]);
246
+ let $ = null;
247
+ const Ht = ["application/xhtml+xml", "text/html"], zt = "text/html";
248
+ let d = null, G = null;
249
+ const Gt = l.createElement("form"), Ze = function(e) {
250
+ return e instanceof RegExp || e instanceof Function;
251
+ }, ye = function() {
252
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
253
+ if (!(G && G === e)) {
254
+ if ((!e || typeof e != "object") && (e = {}), e = M(e), $ = // eslint-disable-next-line unicorn/prefer-includes
255
+ Ht.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? zt : e.PARSER_MEDIA_TYPE, d = $ === "application/xhtml+xml" ? Ne : ue, p = b(e, "ALLOWED_TAGS") ? r({}, e.ALLOWED_TAGS, d) : ze, T = b(e, "ALLOWED_ATTR") ? r({}, e.ALLOWED_ATTR, d) : Ge, Le = b(e, "ALLOWED_NAMESPACES") ? r({}, e.ALLOWED_NAMESPACES, Ne) : Ut, Re = b(e, "ADD_URI_SAFE_ATTR") ? r(M(Ke), e.ADD_URI_SAFE_ATTR, d) : Ke, $e = b(e, "ADD_DATA_URI_TAGS") ? r(M(qe), e.ADD_DATA_URI_TAGS, d) : qe, H = b(e, "FORBID_CONTENTS") ? r({}, e.FORBID_CONTENTS, d) : Ve, j = b(e, "FORBID_TAGS") ? r({}, e.FORBID_TAGS, d) : M({}), _e = b(e, "FORBID_ATTR") ? r({}, e.FORBID_ATTR, d) : M({}), F = b(e, "USE_PROFILES") ? e.USE_PROFILES : !1, We = e.ALLOW_ARIA_ATTR !== !1, ge = e.ALLOW_DATA_ATTR !== !1, Be = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ye = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, k = e.SAFE_FOR_TEMPLATES || !1, ne = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, U = e.RETURN_DOM || !1, oe = e.RETURN_DOM_FRAGMENT || !1, ie = e.RETURN_TRUSTED_TYPE || !1, Ae = e.FORCE_BODY || !1, Xe = e.SANITIZE_DOM !== !1, je = e.SANITIZE_NAMED_PROPS || !1, Se = e.KEEP_CONTENT !== !1, V = e.IN_PLACE || !1, He = e.ALLOWED_URI_REGEXP || gt, z = e.NAMESPACE || N, se = e.MATHML_TEXT_INTEGRATION_POINTS || se, le = e.HTML_INTEGRATION_POINTS || le, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ze(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), k && (ge = !1), oe && (U = !0), F && (p = r({}, mt), T = [], F.html === !0 && (r(p, ut), r(T, pt)), F.svg === !0 && (r(p, Ce), r(T, xe), r(T, fe)), F.svgFilters === !0 && (r(p, Me), r(T, xe), r(T, fe)), F.mathMl === !0 && (r(p, we), r(T, dt), r(T, fe))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? v.tagCheck = e.ADD_TAGS : (p === ze && (p = M(p)), r(p, e.ADD_TAGS, d))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? v.attributeCheck = e.ADD_ATTR : (T === Ge && (T = M(T)), r(T, e.ADD_ATTR, d))), e.ADD_URI_SAFE_ATTR && r(Re, e.ADD_URI_SAFE_ATTR, d), e.FORBID_CONTENTS && (H === Ve && (H = M(H)), r(H, e.FORBID_CONTENTS, d)), Se && (p["#text"] = !0), w && r(p, ["html", "head", "body"]), p.table && (r(p, ["tbody"]), delete j.tbody), e.TRUSTED_TYPES_POLICY) {
256
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
257
+ throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
258
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
259
+ throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
260
+ g = e.TRUSTED_TYPES_POLICY, X = g.createHTML("");
261
+ } else
262
+ g === void 0 && (g = un(ee, c)), g !== null && typeof X == "string" && (X = g.createHTML(""));
263
+ S && S(e), G = e;
264
+ }
265
+ }, Je = r({}, [...Ce, ...Me, ...Qt]), Qe = r({}, [...we, ...en]), Wt = function(e) {
266
+ let t = te(e);
267
+ (!t || !t.tagName) && (t = {
268
+ namespaceURI: z,
269
+ tagName: "template"
270
+ });
271
+ const n = ue(e.tagName), f = ue(t.tagName);
272
+ return Le[e.namespaceURI] ? e.namespaceURI === re ? t.namespaceURI === N ? n === "svg" : t.namespaceURI === ae ? n === "svg" && (f === "annotation-xml" || se[f]) : !!Je[n] : e.namespaceURI === ae ? t.namespaceURI === N ? n === "math" : t.namespaceURI === re ? n === "math" && le[f] : !!Qe[n] : e.namespaceURI === N ? t.namespaceURI === re && !le[f] || t.namespaceURI === ae && !se[f] ? !1 : !Qe[n] && (Ft[n] || !Je[n]) : !!($ === "application/xhtml+xml" && Le[e.namespaceURI]) : !1;
273
+ }, D = function(e) {
274
+ q(o.removed, {
275
+ element: e
276
+ });
277
+ try {
278
+ te(e).removeChild(e);
279
+ } catch {
280
+ yt(e);
281
+ }
282
+ }, x = function(e, t) {
283
+ try {
284
+ q(o.removed, {
285
+ attribute: t.getAttributeNode(e),
286
+ from: t
287
+ });
288
+ } catch {
289
+ q(o.removed, {
290
+ attribute: null,
291
+ from: t
292
+ });
293
+ }
294
+ if (t.removeAttribute(e), e === "is")
295
+ if (U || oe)
296
+ try {
297
+ D(t);
298
+ } catch {
299
+ }
300
+ else
301
+ try {
302
+ t.setAttribute(e, "");
303
+ } catch {
304
+ }
305
+ }, et = function(e) {
306
+ let t = null, n = null;
307
+ if (Ae)
308
+ e = "<remove></remove>" + e;
309
+ else {
310
+ const m = Ie(e, /^[\r\n\t ]+/);
311
+ n = m && m[0];
312
+ }
313
+ $ === "application/xhtml+xml" && z === N && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
314
+ const f = g ? g.createHTML(e) : e;
315
+ if (z === N)
316
+ try {
317
+ t = new Ot().parseFromString(f, $);
318
+ } catch {
319
+ }
320
+ if (!t || !t.documentElement) {
321
+ t = pe.createDocument(z, "template", null);
322
+ try {
323
+ t.documentElement.innerHTML = Oe ? X : f;
324
+ } catch {
325
+ }
326
+ }
327
+ const _ = t.body || t.documentElement;
328
+ return e && n && _.insertBefore(l.createTextNode(n), _.childNodes[0] || null), z === N ? Ct.call(t, w ? "html" : "body")[0] : w ? t.documentElement : _;
329
+ }, tt = function(e) {
330
+ return Nt.call(
331
+ e.ownerDocument || e,
332
+ e,
333
+ // eslint-disable-next-line no-bitwise
334
+ B.SHOW_ELEMENT | B.SHOW_COMMENT | B.SHOW_TEXT | B.SHOW_PROCESSING_INSTRUCTION | B.SHOW_CDATA_SECTION,
335
+ null
336
+ );
337
+ }, be = function(e) {
338
+ return e instanceof Rt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof St) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
339
+ }, nt = function(e) {
340
+ return typeof me == "function" && e instanceof me;
341
+ };
342
+ function I(i, e, t) {
343
+ ce(i, (n) => {
344
+ n.call(o, e, t, G);
345
+ });
346
+ }
347
+ const ot = function(e) {
348
+ let t = null;
349
+ if (I(h.beforeSanitizeElements, e, null), be(e))
350
+ return D(e), !0;
351
+ const n = d(e.nodeName);
352
+ if (I(h.uponSanitizeElement, e, {
353
+ tagName: n,
354
+ allowedTags: p
355
+ }), ne && e.hasChildNodes() && !nt(e.firstElementChild) && A(/<[/\w!]/g, e.innerHTML) && A(/<[/\w!]/g, e.textContent) || e.nodeType === Q.progressingInstruction || ne && e.nodeType === Q.comment && A(/<[/\w]/g, e.data))
356
+ return D(e), !0;
357
+ if (!(v.tagCheck instanceof Function && v.tagCheck(n)) && (!p[n] || j[n])) {
358
+ if (!j[n] && at(n) && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
359
+ return !1;
360
+ if (Se && !H[n]) {
361
+ const f = te(e) || e.parentNode, _ = Dt(e) || e.childNodes;
362
+ if (_ && f) {
363
+ const m = _.length;
364
+ for (let L = m - 1; L >= 0; --L) {
365
+ const C = Lt(_[L], !0);
366
+ C.__removalCount = (e.__removalCount || 0) + 1, f.insertBefore(C, bt(e));
367
+ }
368
+ }
369
+ }
370
+ return D(e), !0;
371
+ }
372
+ return e instanceof Ue && !Wt(e) || (n === "noscript" || n === "noembed" || n === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (D(e), !0) : (k && e.nodeType === Q.text && (t = e.textContent, ce([de, Te, Ee], (f) => {
373
+ t = K(t, f, " ");
374
+ }), e.textContent !== t && (q(o.removed, {
375
+ element: e.cloneNode()
376
+ }), e.textContent = t)), I(h.afterSanitizeElements, e, null), !1);
377
+ }, it = function(e, t, n) {
378
+ if (Xe && (t === "id" || t === "name") && (n in l || n in Gt))
379
+ return !1;
380
+ if (!(ge && !_e[t] && A(wt, t))) {
381
+ if (!(We && A(xt, t))) {
382
+ if (!(v.attributeCheck instanceof Function && v.attributeCheck(t, e))) {
383
+ if (!T[t] || _e[t]) {
384
+ if (
385
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
386
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
387
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
388
+ !(at(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
389
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
390
+ t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && A(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
391
+ ) return !1;
392
+ } else if (!Re[t]) {
393
+ if (!A(He, K(n, Fe, ""))) {
394
+ if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && qt(n, "data:") === 0 && $e[e])) {
395
+ if (!(Be && !A(Pt, K(n, Fe, "")))) {
396
+ if (n)
397
+ return !1;
398
+ }
399
+ }
400
+ }
401
+ }
402
+ }
403
+ }
404
+ }
405
+ return !0;
406
+ }, at = function(e) {
407
+ return e !== "annotation-xml" && Ie(e, vt);
408
+ }, rt = function(e) {
409
+ I(h.beforeSanitizeAttributes, e, null);
410
+ const {
411
+ attributes: t
412
+ } = e;
413
+ if (!t || be(e))
414
+ return;
415
+ const n = {
416
+ attrName: "",
417
+ attrValue: "",
418
+ keepAttr: !0,
419
+ allowedAttributes: T,
420
+ forceKeepAttr: void 0
421
+ };
422
+ let f = t.length;
423
+ for (; f--; ) {
424
+ const _ = t[f], {
425
+ name: m,
426
+ namespaceURI: L,
427
+ value: C
428
+ } = _, W = d(m), De = C;
429
+ let E = m === "value" ? De : Kt(De);
430
+ if (n.attrName = W, n.attrValue = E, n.keepAttr = !0, n.forceKeepAttr = void 0, I(h.uponSanitizeAttribute, e, n), E = n.attrValue, je && (W === "id" || W === "name") && (x(m, e), E = kt + E), ne && A(/((--!?|])>)|<\/(style|title|textarea)/i, E)) {
431
+ x(m, e);
432
+ continue;
433
+ }
434
+ if (W === "attributename" && Ie(E, "href")) {
435
+ x(m, e);
436
+ continue;
437
+ }
438
+ if (n.forceKeepAttr)
439
+ continue;
440
+ if (!n.keepAttr) {
441
+ x(m, e);
442
+ continue;
443
+ }
444
+ if (!Ye && A(/\/>/i, E)) {
445
+ x(m, e);
446
+ continue;
447
+ }
448
+ k && ce([de, Te, Ee], (lt) => {
449
+ E = K(E, lt, " ");
450
+ });
451
+ const st = d(e.nodeName);
452
+ if (!it(st, W, E)) {
453
+ x(m, e);
454
+ continue;
455
+ }
456
+ if (g && typeof ee == "object" && typeof ee.getAttributeType == "function" && !L)
457
+ switch (ee.getAttributeType(st, W)) {
458
+ case "TrustedHTML": {
459
+ E = g.createHTML(E);
460
+ break;
461
+ }
462
+ case "TrustedScriptURL": {
463
+ E = g.createScriptURL(E);
464
+ break;
465
+ }
466
+ }
467
+ if (E !== De)
468
+ try {
469
+ L ? e.setAttributeNS(L, m, E) : e.setAttribute(m, E), be(e) ? D(e) : ft(o.removed);
470
+ } catch {
471
+ x(m, e);
472
+ }
473
+ }
474
+ I(h.afterSanitizeAttributes, e, null);
475
+ }, Bt = function i(e) {
476
+ let t = null;
477
+ const n = tt(e);
478
+ for (I(h.beforeSanitizeShadowDOM, e, null); t = n.nextNode(); )
479
+ I(h.uponSanitizeShadowNode, t, null), ot(t), rt(t), t.content instanceof O && i(t.content);
480
+ I(h.afterSanitizeShadowDOM, e, null);
481
+ };
482
+ return o.sanitize = function(i) {
483
+ let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, f = null, _ = null;
484
+ if (Oe = !i, Oe && (i = "<!-->"), typeof i != "string" && !nt(i))
485
+ if (typeof i.toString == "function") {
486
+ if (i = i.toString(), typeof i != "string")
487
+ throw Z("dirty is not a string, aborting");
488
+ } else
489
+ throw Z("toString is not a function");
490
+ if (!o.isSupported)
491
+ return i;
492
+ if (he || ye(e), o.removed = [], typeof i == "string" && (V = !1), V) {
493
+ if (i.nodeName) {
494
+ const C = d(i.nodeName);
495
+ if (!p[C] || j[C])
496
+ throw Z("root node is forbidden and cannot be sanitized in-place");
497
+ }
498
+ } else if (i instanceof me)
499
+ t = et("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === Q.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
500
+ else {
501
+ if (!U && !k && !w && // eslint-disable-next-line unicorn/prefer-includes
502
+ i.indexOf("<") === -1)
503
+ return g && ie ? g.createHTML(i) : i;
504
+ if (t = et(i), !t)
505
+ return U ? null : ie ? X : "";
506
+ }
507
+ t && Ae && D(t.firstChild);
508
+ const m = tt(V ? i : t);
509
+ for (; f = m.nextNode(); )
510
+ ot(f), rt(f), f.content instanceof O && Bt(f.content);
511
+ if (V)
512
+ return i;
513
+ if (U) {
514
+ if (oe)
515
+ for (_ = It.call(t.ownerDocument); t.firstChild; )
516
+ _.appendChild(t.firstChild);
517
+ else
518
+ _ = t;
519
+ return (T.shadowroot || T.shadowrootmode) && (_ = Mt.call(a, _, !0)), _;
520
+ }
521
+ let L = w ? t.outerHTML : t.innerHTML;
522
+ return w && p["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(ht, t.ownerDocument.doctype.name) && (L = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
523
+ ` + L), k && ce([de, Te, Ee], (C) => {
524
+ L = K(L, C, " ");
525
+ }), g && ie ? g.createHTML(L) : L;
526
+ }, o.setConfig = function() {
527
+ let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
528
+ ye(i), he = !0;
529
+ }, o.clearConfig = function() {
530
+ G = null, he = !1;
531
+ }, o.isValidAttribute = function(i, e, t) {
532
+ G || ye({});
533
+ const n = d(i), f = d(e);
534
+ return it(n, f, t);
535
+ }, o.addHook = function(i, e) {
536
+ typeof e == "function" && q(h[i], e);
537
+ }, o.removeHook = function(i, e) {
538
+ if (e !== void 0) {
539
+ const t = Vt(h[i], e);
540
+ return t === -1 ? void 0 : $t(h[i], t, 1)[0];
541
+ }
542
+ return ft(h[i]);
543
+ }, o.removeHooks = function(i) {
544
+ h[i] = [];
545
+ }, o.removeAllHooks = function() {
546
+ h = Et();
547
+ }, o;
548
+ }
549
+ var mn = At();
550
+ export {
551
+ mn as default
552
+ };