@opentiny/vue-runtime
Version:
An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
1,305 lines • 126 kB
JavaScript
import { defineComponent as et, $props as tt, createComponent as rt, deduplicateCssClass as Zr, stringifyCssClass as Kr, setup as er, $prefix as nt, hooks as De, parseVnode as tr, isEmptyVnode as rr, mergeClass as bt, $setup as Qr, h as en } from "@opentiny/vue-common";
function Le(e, t) {
(t == null || t > e.length) && (t = e.length);
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
return n;
}
function tn(e) {
if (Array.isArray(e)) return e;
}
function rn(e) {
if (Array.isArray(e)) return Le(e);
}
function ot(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
}
function nn(e, t) {
for (var r = 0; r < t.length; r++) {
var n = t[r];
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, nr(n.key), n);
}
}
function it(e, t, r) {
return t && nn(e.prototype, t), Object.defineProperty(e, "prototype", {
writable: !1
}), e;
}
function on(e, t) {
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (!r) {
if (Array.isArray(e) || (r = at(e)) || t) {
r && (e = r);
var n = 0, o = function() {
};
return {
s: o,
n: function() {
return n >= e.length ? {
done: !0
} : {
done: !1,
value: e[n++]
};
},
e: function(l) {
throw l;
},
f: o
};
}
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
var i, s = !0, a = !1;
return {
s: function() {
r = r.call(e);
},
n: function() {
var l = r.next();
return s = l.done, l;
},
e: function(l) {
a = !0, i = l;
},
f: function() {
try {
s || r.return == null || r.return();
} finally {
if (a) throw i;
}
}
};
}
function $(e, t, r) {
return (t = nr(t)) in e ? Object.defineProperty(e, t, {
value: r,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = r, e;
}
function an(e) {
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
}
function sn(e, t) {
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
if (r != null) {
var n, o, i, s, a = [], l = !0, u = !1;
try {
if (i = (r = r.call(e)).next, t !== 0) for (; !(l = (n = i.call(r)).done) && (a.push(n.value), a.length !== t); l = !0) ;
} catch (c) {
u = !0, o = c;
} finally {
try {
if (!l && r.return != null && (s = r.return(), Object(s) !== s)) return;
} finally {
if (u) throw o;
}
}
return a;
}
}
function ln() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function un() {
throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function yt(e, t) {
var r = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
t && (n = n.filter(function(o) {
return Object.getOwnPropertyDescriptor(e, o).enumerable;
})), r.push.apply(r, n);
}
return r;
}
function ee(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t] != null ? arguments[t] : {};
t % 2 ? yt(Object(r), !0).forEach(function(n) {
$(e, n, r[n]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : yt(Object(r)).forEach(function(n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
});
}
return e;
}
function fn(e, t) {
return tn(e) || sn(e, t) || at(e, t) || ln();
}
function ke(e) {
return rn(e) || an(e) || at(e) || un();
}
function cn(e, t) {
if (typeof e != "object" || !e) return e;
var r = e[Symbol.toPrimitive];
if (r !== void 0) {
var n = r.call(e, t);
if (typeof n != "object") return n;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return String(e);
}
function nr(e) {
var t = cn(e, "string");
return typeof t == "symbol" ? t : t + "";
}
function be(e) {
"@babel/helpers - typeof";
return be = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
return typeof t;
} : function(t) {
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, be(e);
}
function at(e, t) {
if (e) {
if (typeof e == "string") return Le(e, t);
var r = {}.toString.call(e).slice(8, -1);
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Le(e, t) : void 0;
}
}
var Ve = { exports: {} }, x = {}, je = { exports: {} }, X = {};
function or() {
var e = {};
return e["align-content"] = !1, e["align-items"] = !1, e["align-self"] = !1, e["alignment-adjust"] = !1, e["alignment-baseline"] = !1, e.all = !1, e["anchor-point"] = !1, e.animation = !1, e["animation-delay"] = !1, e["animation-direction"] = !1, e["animation-duration"] = !1, e["animation-fill-mode"] = !1, e["animation-iteration-count"] = !1, e["animation-name"] = !1, e["animation-play-state"] = !1, e["animation-timing-function"] = !1, e.azimuth = !1, e["backface-visibility"] = !1, e.background = !0, e["background-attachment"] = !0, e["background-clip"] = !0, e["background-color"] = !0, e["background-image"] = !0, e["background-origin"] = !0, e["background-position"] = !0, e["background-repeat"] = !0, e["background-size"] = !0, e["baseline-shift"] = !1, e.binding = !1, e.bleed = !1, e["bookmark-label"] = !1, e["bookmark-level"] = !1, e["bookmark-state"] = !1, e.border = !0, e["border-bottom"] = !0, e["border-bottom-color"] = !0, e["border-bottom-left-radius"] = !0, e["border-bottom-right-radius"] = !0, e["border-bottom-style"] = !0, e["border-bottom-width"] = !0, e["border-collapse"] = !0, e["border-color"] = !0, e["border-image"] = !0, e["border-image-outset"] = !0, e["border-image-repeat"] = !0, e["border-image-slice"] = !0, e["border-image-source"] = !0, e["border-image-width"] = !0, e["border-left"] = !0, e["border-left-color"] = !0, e["border-left-style"] = !0, e["border-left-width"] = !0, e["border-radius"] = !0, e["border-right"] = !0, e["border-right-color"] = !0, e["border-right-style"] = !0, e["border-right-width"] = !0, e["border-spacing"] = !0, e["border-style"] = !0, e["border-top"] = !0, e["border-top-color"] = !0, e["border-top-left-radius"] = !0, e["border-top-right-radius"] = !0, e["border-top-style"] = !0, e["border-top-width"] = !0, e["border-width"] = !0, e.bottom = !1, e["box-decoration-break"] = !0, e["box-shadow"] = !0, e["box-sizing"] = !0, e["box-snap"] = !0, e["box-suppress"] = !0, e["break-after"] = !0, e["break-before"] = !0, e["break-inside"] = !0, e["caption-side"] = !1, e.chains = !1, e.clear = !0, e.clip = !1, e["clip-path"] = !1, e["clip-rule"] = !1, e.color = !0, e["color-interpolation-filters"] = !0, e["column-count"] = !1, e["column-fill"] = !1, e["column-gap"] = !1, e["column-rule"] = !1, e["column-rule-color"] = !1, e["column-rule-style"] = !1, e["column-rule-width"] = !1, e["column-span"] = !1, e["column-width"] = !1, e.columns = !1, e.contain = !1, e.content = !1, e["counter-increment"] = !1, e["counter-reset"] = !1, e["counter-set"] = !1, e.crop = !1, e.cue = !1, e["cue-after"] = !1, e["cue-before"] = !1, e.cursor = !1, e.direction = !1, e.display = !0, e["display-inside"] = !0, e["display-list"] = !0, e["display-outside"] = !0, e["dominant-baseline"] = !1, e.elevation = !1, e["empty-cells"] = !1, e.filter = !1, e.flex = !1, e["flex-basis"] = !1, e["flex-direction"] = !1, e["flex-flow"] = !1, e["flex-grow"] = !1, e["flex-shrink"] = !1, e["flex-wrap"] = !1, e.float = !1, e["float-offset"] = !1, e["flood-color"] = !1, e["flood-opacity"] = !1, e["flow-from"] = !1, e["flow-into"] = !1, e.font = !0, e["font-family"] = !0, e["font-feature-settings"] = !0, e["font-kerning"] = !0, e["font-language-override"] = !0, e["font-size"] = !0, e["font-size-adjust"] = !0, e["font-stretch"] = !0, e["font-style"] = !0, e["font-synthesis"] = !0, e["font-variant"] = !0, e["font-variant-alternates"] = !0, e["font-variant-caps"] = !0, e["font-variant-east-asian"] = !0, e["font-variant-ligatures"] = !0, e["font-variant-numeric"] = !0, e["font-variant-position"] = !0, e["font-weight"] = !0, e.grid = !1, e["grid-area"] = !1, e["grid-auto-columns"] = !1, e["grid-auto-flow"] = !1, e["grid-auto-rows"] = !1, e["grid-column"] = !1, e["grid-column-end"] = !1, e["grid-column-start"] = !1, e["grid-row"] = !1, e["grid-row-end"] = !1, e["grid-row-start"] = !1, e["grid-template"] = !1, e["grid-template-areas"] = !1, e["grid-template-columns"] = !1, e["grid-template-rows"] = !1, e["hanging-punctuation"] = !1, e.height = !0, e.hyphens = !1, e.icon = !1, e["image-orientation"] = !1, e["image-resolution"] = !1, e["ime-mode"] = !1, e["initial-letters"] = !1, e["inline-box-align"] = !1, e["justify-content"] = !1, e["justify-items"] = !1, e["justify-self"] = !1, e.left = !1, e["letter-spacing"] = !0, e["lighting-color"] = !0, e["line-box-contain"] = !1, e["line-break"] = !1, e["line-grid"] = !1, e["line-height"] = !1, e["line-snap"] = !1, e["line-stacking"] = !1, e["line-stacking-ruby"] = !1, e["line-stacking-shift"] = !1, e["line-stacking-strategy"] = !1, e["list-style"] = !0, e["list-style-image"] = !0, e["list-style-position"] = !0, e["list-style-type"] = !0, e.margin = !0, e["margin-bottom"] = !0, e["margin-left"] = !0, e["margin-right"] = !0, e["margin-top"] = !0, e["marker-offset"] = !1, e["marker-side"] = !1, e.marks = !1, e.mask = !1, e["mask-box"] = !1, e["mask-box-outset"] = !1, e["mask-box-repeat"] = !1, e["mask-box-slice"] = !1, e["mask-box-source"] = !1, e["mask-box-width"] = !1, e["mask-clip"] = !1, e["mask-image"] = !1, e["mask-origin"] = !1, e["mask-position"] = !1, e["mask-repeat"] = !1, e["mask-size"] = !1, e["mask-source-type"] = !1, e["mask-type"] = !1, e["max-height"] = !0, e["max-lines"] = !1, e["max-width"] = !0, e["min-height"] = !0, e["min-width"] = !0, e["move-to"] = !1, e["nav-down"] = !1, e["nav-index"] = !1, e["nav-left"] = !1, e["nav-right"] = !1, e["nav-up"] = !1, e["object-fit"] = !1, e["object-position"] = !1, e.opacity = !1, e.order = !1, e.orphans = !1, e.outline = !1, e["outline-color"] = !1, e["outline-offset"] = !1, e["outline-style"] = !1, e["outline-width"] = !1, e.overflow = !1, e["overflow-wrap"] = !1, e["overflow-x"] = !1, e["overflow-y"] = !1, e.padding = !0, e["padding-bottom"] = !0, e["padding-left"] = !0, e["padding-right"] = !0, e["padding-top"] = !0, e.page = !1, e["page-break-after"] = !1, e["page-break-before"] = !1, e["page-break-inside"] = !1, e["page-policy"] = !1, e.pause = !1, e["pause-after"] = !1, e["pause-before"] = !1, e.perspective = !1, e["perspective-origin"] = !1, e.pitch = !1, e["pitch-range"] = !1, e["play-during"] = !1, e.position = !1, e["presentation-level"] = !1, e.quotes = !1, e["region-fragment"] = !1, e.resize = !1, e.rest = !1, e["rest-after"] = !1, e["rest-before"] = !1, e.richness = !1, e.right = !1, e.rotation = !1, e["rotation-point"] = !1, e["ruby-align"] = !1, e["ruby-merge"] = !1, e["ruby-position"] = !1, e["shape-image-threshold"] = !1, e["shape-outside"] = !1, e["shape-margin"] = !1, e.size = !1, e.speak = !1, e["speak-as"] = !1, e["speak-header"] = !1, e["speak-numeral"] = !1, e["speak-punctuation"] = !1, e["speech-rate"] = !1, e.stress = !1, e["string-set"] = !1, e["tab-size"] = !1, e["table-layout"] = !1, e["text-align"] = !0, e["text-align-last"] = !0, e["text-combine-upright"] = !0, e["text-decoration"] = !0, e["text-decoration-color"] = !0, e["text-decoration-line"] = !0, e["text-decoration-skip"] = !0, e["text-decoration-style"] = !0, e["text-emphasis"] = !0, e["text-emphasis-color"] = !0, e["text-emphasis-position"] = !0, e["text-emphasis-style"] = !0, e["text-height"] = !0, e["text-indent"] = !0, e["text-justify"] = !0, e["text-orientation"] = !0, e["text-overflow"] = !0, e["text-shadow"] = !0, e["text-space-collapse"] = !0, e["text-transform"] = !0, e["text-underline-position"] = !0, e["text-wrap"] = !0, e.top = !1, e.transform = !1, e["transform-origin"] = !1, e["transform-style"] = !1, e.transition = !1, e["transition-delay"] = !1, e["transition-duration"] = !1, e["transition-property"] = !1, e["transition-timing-function"] = !1, e["unicode-bidi"] = !1, e["vertical-align"] = !1, e.visibility = !1, e["voice-balance"] = !1, e["voice-duration"] = !1, e["voice-family"] = !1, e["voice-pitch"] = !1, e["voice-range"] = !1, e["voice-rate"] = !1, e["voice-stress"] = !1, e["voice-volume"] = !1, e.volume = !1, e["white-space"] = !1, e.widows = !1, e.width = !0, e["will-change"] = !1, e["word-break"] = !0, e["word-spacing"] = !0, e["word-wrap"] = !0, e["wrap-flow"] = !1, e["wrap-through"] = !1, e["writing-mode"] = !1, e["z-index"] = !1, e;
}
function pn(e, t, r) {
}
function dn(e, t, r) {
}
var vn = /javascript\s*\:/img;
function hn(e, t) {
return vn.test(t) ? "" : t;
}
X.whiteList = or();
X.getDefaultWhiteList = or;
X.onAttr = pn;
X.onIgnoreAttr = dn;
X.safeAttrValue = hn;
var mn = {
indexOf: function(t, r) {
var n, o;
if (Array.prototype.indexOf)
return t.indexOf(r);
for (n = 0, o = t.length; n < o; n++)
if (t[n] === r)
return n;
return -1;
},
forEach: function(t, r, n) {
var o, i;
if (Array.prototype.forEach)
return t.forEach(r, n);
for (o = 0, i = t.length; o < i; o++)
r.call(n, t[o], o, t);
},
trim: function(t) {
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
},
trimRight: function(t) {
return String.prototype.trimRight ? t.trimRight() : t.replace(/(\s*$)/g, "");
}
}, ne = mn;
function gn(e, t) {
e = ne.trimRight(e), e[e.length - 1] !== ";" && (e += ";");
var r = e.length, n = !1, o = 0, i = 0, s = "";
function a() {
if (!n) {
var c = ne.trim(e.slice(o, i)), f = c.indexOf(":");
if (f !== -1) {
var p = ne.trim(c.slice(0, f)), v = ne.trim(c.slice(f + 1));
if (p) {
var d = t(o, s.length, p, v, c);
d && (s += d + "; ");
}
}
}
o = i + 1;
}
for (; i < r; i++) {
var l = e[i];
if (l === "/" && e[i + 1] === "*") {
var u = e.indexOf("*/", i + 2);
if (u === -1) break;
i = u + 1, o = i + 1, n = !1;
} else l === "(" ? n = !0 : l === ")" ? n = !1 : l === ";" ? n || a() : l === `
` && a();
}
return ne.trim(s);
}
var bn = gn, fe = X, yn = bn;
function wt(e) {
return e == null;
}
function wn(e) {
var t = {};
for (var r in e)
t[r] = e[r];
return t;
}
function ir(e) {
e = wn(e || {}), e.whiteList = e.whiteList || fe.whiteList, e.onAttr = e.onAttr || fe.onAttr, e.onIgnoreAttr = e.onIgnoreAttr || fe.onIgnoreAttr, e.safeAttrValue = e.safeAttrValue || fe.safeAttrValue, this.options = e;
}
ir.prototype.process = function(e) {
if (e = e || "", e = e.toString(), !e) return "";
var t = this, r = t.options, n = r.whiteList, o = r.onAttr, i = r.onIgnoreAttr, s = r.safeAttrValue, a = yn(e, function(l, u, c, f, p) {
var v = n[c], d = !1;
if (v === !0 ? d = v : typeof v == "function" ? d = v(f) : v instanceof RegExp && (d = v.test(f)), d !== !0 && (d = !1), f = s(c, f), !!f) {
var h = {
position: u,
sourcePosition: l,
source: p,
isWhite: d
};
if (d) {
var m = o(c, f, h);
return wt(m) ? c + ":" + f : m;
} else {
var m = i(c, f, h);
if (!wt(m))
return m;
}
}
});
return a;
};
var xn = ir;
(function(e, t) {
var r = X, n = xn;
function o(s, a) {
var l = new n(a);
return l.process(s);
}
t = e.exports = o, t.FilterCSS = n;
for (var i in r) t[i] = r[i];
typeof window < "u" && (window.filterCSS = e.exports);
})(je, je.exports);
var st = je.exports, lt = {
indexOf: function(t, r) {
var n, o;
if (Array.prototype.indexOf)
return t.indexOf(r);
for (n = 0, o = t.length; n < o; n++)
if (t[n] === r)
return n;
return -1;
},
forEach: function(t, r, n) {
var o, i;
if (Array.prototype.forEach)
return t.forEach(r, n);
for (o = 0, i = t.length; o < i; o++)
r.call(n, t[o], o, t);
},
trim: function(t) {
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
},
spaceIndex: function(t) {
var r = /\s|\n|\t/, n = r.exec(t);
return n ? n.index : -1;
}
}, _n = st.FilterCSS, En = st.getDefaultWhiteList, ye = lt;
function ar() {
return {
a: ["target", "href", "title"],
abbr: ["title"],
address: [],
area: ["shape", "coords", "href", "alt"],
article: [],
aside: [],
audio: ["autoplay", "controls", "crossorigin", "loop", "muted", "preload", "src"],
b: [],
bdi: ["dir"],
bdo: ["dir"],
big: [],
blockquote: ["cite"],
br: [],
caption: [],
center: [],
cite: [],
code: [],
col: ["align", "valign", "span", "width"],
colgroup: ["align", "valign", "span", "width"],
dd: [],
del: ["datetime"],
details: ["open"],
div: [],
dl: [],
dt: [],
em: [],
figcaption: [],
figure: [],
font: ["color", "size", "face"],
footer: [],
h1: [],
h2: [],
h3: [],
h4: [],
h5: [],
h6: [],
header: [],
hr: [],
i: [],
img: ["src", "alt", "title", "width", "height"],
ins: ["datetime"],
li: [],
mark: [],
nav: [],
ol: [],
p: [],
pre: [],
s: [],
section: [],
small: [],
span: [],
sub: [],
summary: [],
sup: [],
strong: [],
strike: [],
table: ["width", "border", "align", "valign"],
tbody: ["align", "valign"],
td: ["width", "rowspan", "colspan", "align", "valign"],
tfoot: ["align", "valign"],
th: ["width", "rowspan", "colspan", "align", "valign"],
thead: ["align", "valign"],
tr: ["rowspan", "align", "valign"],
tt: [],
u: [],
ul: [],
video: ["autoplay", "controls", "crossorigin", "loop", "muted", "playsinline", "poster", "preload", "src", "height", "width"]
};
}
var sr = new _n();
function Sn(e, t, r) {
}
function On(e, t, r) {
}
function Tn(e, t, r) {
}
function An(e, t, r) {
}
function lr(e) {
return e.replace(Cn, "<").replace(Pn, ">");
}
function kn(e, t, r, n) {
if (r = vr(r), t === "href" || t === "src") {
if (r = ye.trim(r), r === "#") return "#";
if (!(r.substr(0, 7) === "http://" || r.substr(0, 8) === "https://" || r.substr(0, 7) === "mailto:" || r.substr(0, 4) === "tel:" || r.substr(0, 11) === "data:image/" || r.substr(0, 6) === "ftp://" || r.substr(0, 2) === "./" || r.substr(0, 3) === "../" || r[0] === "#" || r[0] === "/"))
return "";
} else if (t === "background") {
if (ce.lastIndex = 0, ce.test(r))
return "";
} else if (t === "style") {
if (xt.lastIndex = 0, xt.test(r) || (_t.lastIndex = 0, _t.test(r) && (ce.lastIndex = 0, ce.test(r))))
return "";
n !== !1 && (n = n || sr, r = n.process(r));
}
return r = hr(r), r;
}
var Cn = /</g, Pn = />/g, Rn = /"/g, In = /"/g, Fn = /&#([a-zA-Z0-9]*);?/gim, Mn = /:?/gim, Bn = /&newline;?/gim, ce = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, xt = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, _t = /u\s*r\s*l\s*\(.*/gi;
function ur(e) {
return e.replace(Rn, """);
}
function fr(e) {
return e.replace(In, '"');
}
function cr(e) {
return e.replace(Fn, function(r, n) {
return n[0] === "x" || n[0] === "X" ? String.fromCharCode(parseInt(n.substr(1), 16)) : String.fromCharCode(parseInt(n, 10));
});
}
function pr(e) {
return e.replace(Mn, ":").replace(Bn, " ");
}
function dr(e) {
for (var t = "", r = 0, n = e.length; r < n; r++)
t += e.charCodeAt(r) < 32 ? " " : e.charAt(r);
return ye.trim(t);
}
function vr(e) {
return e = fr(e), e = cr(e), e = pr(e), e = dr(e), e;
}
function hr(e) {
return e = ur(e), e = lr(e), e;
}
function Nn() {
return "";
}
function Dn(e, t) {
typeof t != "function" && (t = function() {
});
var r = !Array.isArray(e);
function n(s) {
return r ? !0 : ye.indexOf(e, s) !== -1;
}
var o = [], i = !1;
return {
onIgnoreTag: function(a, l, u) {
if (n(a))
if (u.isClosing) {
var c = "[/removed]", f = u.position + c.length;
return o.push([i !== !1 ? i : u.position, f]), i = !1, c;
} else
return i || (i = u.position), "[removed]";
else
return t(a, l, u);
},
remove: function(a) {
var l = "", u = 0;
return ye.forEach(o, function(c) {
l += a.slice(u, c[0]), u = c[1];
}), l += a.slice(u), l;
}
};
}
function Ln(e) {
for (var t = "", r = 0; r < e.length; ) {
var n = e.indexOf("<!--", r);
if (n === -1) {
t += e.slice(r);
break;
}
t += e.slice(r, n);
var o = e.indexOf("-->", n);
if (o === -1)
break;
r = o + 3;
}
return t;
}
function Vn(e) {
var t = e.split("");
return t = t.filter(function(r) {
var n = r.charCodeAt(0);
return n === 127 ? !1 : n <= 31 ? n === 10 || n === 13 : !0;
}), t.join("");
}
x.whiteList = ar();
x.getDefaultWhiteList = ar;
x.onTag = Sn;
x.onIgnoreTag = On;
x.onTagAttr = Tn;
x.onIgnoreTagAttr = An;
x.safeAttrValue = kn;
x.escapeHtml = lr;
x.escapeQuote = ur;
x.unescapeQuote = fr;
x.escapeHtmlEntities = cr;
x.escapeDangerHtml5Entities = pr;
x.clearNonPrintableCharacter = dr;
x.friendlyAttrValue = vr;
x.escapeAttrValue = hr;
x.onIgnoreTagStripAll = Nn;
x.StripTagBody = Dn;
x.stripCommentTag = Ln;
x.stripBlankChar = Vn;
x.cssFilter = sr;
x.getDefaultCSSWhiteList = En;
var Se = {}, z = lt;
function jn(e) {
var t = z.spaceIndex(e), r;
return t === -1 ? r = e.slice(1, -1) : r = e.slice(1, t + 1), r = z.trim(r).toLowerCase(), r.slice(0, 1) === "/" && (r = r.slice(1)), r.slice(-1) === "/" && (r = r.slice(0, -1)), r;
}
function zn(e) {
return e.slice(0, 2) === "</";
}
function Hn(e, t, r) {
var n = "", o = 0, i = !1, s = !1, a = 0, l = e.length, u = "", c = "";
e: for (a = 0; a < l; a++) {
var f = e.charAt(a);
if (i === !1) {
if (f === "<") {
i = a;
continue;
}
} else if (s === !1) {
if (f === "<") {
n += r(e.slice(o, a)), i = a, o = a;
continue;
}
if (f === ">" || a === l - 1) {
n += r(e.slice(o, i)), c = e.slice(i, a + 1), u = jn(c), n += t(i, n.length, u, c, zn(c)), o = a + 1, i = !1;
continue;
}
if (f === '"' || f === "'")
for (var p = 1, v = e.charAt(a - p); v.trim() === "" || v === "="; ) {
if (v === "=") {
s = f;
continue e;
}
v = e.charAt(a - ++p);
}
} else if (f === s) {
s = !1;
continue;
}
}
return o < l && (n += r(e.substr(o))), n;
}
var $n = /[^a-zA-Z0-9\\_:.-]/gim;
function Wn(e, t) {
var r = 0, n = 0, o = [], i = !1, s = e.length;
function a(p, v) {
if (p = z.trim(p), p = p.replace($n, "").toLowerCase(), !(p.length < 1)) {
var d = t(p, v || "");
d && o.push(d);
}
}
for (var l = 0; l < s; l++) {
var u = e.charAt(l), c, f;
if (i === !1 && u === "=") {
i = e.slice(r, l), r = l + 1, n = e.charAt(r) === '"' || e.charAt(r) === "'" ? r : Gn(e, l + 1);
continue;
}
if (i !== !1 && l === n) {
if (f = e.indexOf(u, l + 1), f === -1)
break;
c = z.trim(e.slice(n + 1, f)), a(i, c), i = !1, l = f, r = l + 1;
continue;
}
if (/\s|\n|\t/.test(u))
if (e = e.replace(/\s|\n|\t/g, " "), i === !1)
if (f = Un(e, l), f === -1) {
c = z.trim(e.slice(r, l)), a(c), i = !1, r = l + 1;
continue;
} else {
l = f - 1;
continue;
}
else if (f = qn(e, l - 1), f === -1) {
c = z.trim(e.slice(r, l)), c = Et(c), a(i, c), i = !1, r = l + 1;
continue;
} else
continue;
}
return r < e.length && (i === !1 ? a(e.slice(r)) : a(i, Et(z.trim(e.slice(r))))), z.trim(o.join(" "));
}
function Un(e, t) {
for (; t < e.length; t++) {
var r = e[t];
if (r !== " ")
return r === "=" ? t : -1;
}
}
function Gn(e, t) {
for (; t < e.length; t++) {
var r = e[t];
if (r !== " ")
return r === "'" || r === '"' ? t : -1;
}
}
function qn(e, t) {
for (; t > 0; t--) {
var r = e[t];
if (r !== " ")
return r === "=" ? t : -1;
}
}
function Jn(e) {
return e[0] === '"' && e[e.length - 1] === '"' || e[0] === "'" && e[e.length - 1] === "'";
}
function Et(e) {
return Jn(e) ? e.substr(1, e.length - 2) : e;
}
Se.parseTag = Hn;
Se.parseAttr = Wn;
var Xn = st.FilterCSS, B = x, mr = Se, Yn = mr.parseTag, Zn = mr.parseAttr, he = lt;
function pe(e) {
return e == null;
}
function Kn(e) {
var t = he.spaceIndex(e);
if (t === -1)
return {
html: "",
closing: e[e.length - 2] === "/"
};
e = he.trim(e.slice(t + 1, -1));
var r = e[e.length - 1] === "/";
return r && (e = he.trim(e.slice(0, -1))), {
html: e,
closing: r
};
}
function Qn(e) {
var t = {};
for (var r in e)
t[r] = e[r];
return t;
}
function eo(e) {
var t = {};
for (var r in e)
Array.isArray(e[r]) ? t[r.toLowerCase()] = e[r].map(function(n) {
return n.toLowerCase();
}) : t[r.toLowerCase()] = e[r];
return t;
}
function gr(e) {
e = Qn(e || {}), e.stripIgnoreTag && (e.onIgnoreTag && console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'), e.onIgnoreTag = B.onIgnoreTagStripAll), e.whiteList || e.allowList ? e.whiteList = eo(e.whiteList || e.allowList) : e.whiteList = B.whiteList, e.onTag = e.onTag || B.onTag, e.onTagAttr = e.onTagAttr || B.onTagAttr, e.onIgnoreTag = e.onIgnoreTag || B.onIgnoreTag, e.onIgnoreTagAttr = e.onIgnoreTagAttr || B.onIgnoreTagAttr, e.safeAttrValue = e.safeAttrValue || B.safeAttrValue, e.escapeHtml = e.escapeHtml || B.escapeHtml, this.options = e, e.css === !1 ? this.cssFilter = !1 : (e.css = e.css || {}, this.cssFilter = new Xn(e.css));
}
gr.prototype.process = function(e) {
if (e = e || "", e = e.toString(), !e) return "";
var t = this, r = t.options, n = r.whiteList, o = r.onTag, i = r.onIgnoreTag, s = r.onTagAttr, a = r.onIgnoreTagAttr, l = r.safeAttrValue, u = r.escapeHtml, c = t.cssFilter;
r.stripBlankChar && (e = B.stripBlankChar(e)), r.allowCommentTag || (e = B.stripCommentTag(e));
var f = !1;
r.stripIgnoreTagBody && (f = B.StripTagBody(r.stripIgnoreTagBody, i), i = f.onIgnoreTag);
var p = Yn(e, function(v, d, h, m, g) {
var _ = {
sourcePosition: v,
position: d,
isClosing: g,
isWhite: Object.prototype.hasOwnProperty.call(n, h)
}, S = o(h, m, _);
if (!pe(S)) return S;
if (_.isWhite) {
if (_.isClosing)
return "</" + h + ">";
var O = Kn(m), H = n[h], T = Zn(O.html, function(b, y) {
var M = he.indexOf(H, b) !== -1, F = s(h, b, y, M);
return pe(F) ? M ? (y = l(h, b, y, c), y ? b + '="' + y + '"' : b) : (F = a(h, b, y, M), pe(F) ? void 0 : F) : F;
});
return m = "<" + h, T && (m += " " + T), O.closing && (m += " /"), m += ">", m;
} else
return S = i(h, m, _), pe(S) ? u(m) : S;
}, u);
return f && (p = f.remove(p)), p;
};
var to = gr;
(function(e, t) {
var r = x, n = Se, o = to;
function i(a, l) {
var u = new o(l);
return u.process(a);
}
t = e.exports = i, t.filterXSS = i, t.FilterXSS = o, (function() {
for (var a in r)
t[a] = r[a];
for (var l in n)
t[l] = n[l];
})(), typeof window < "u" && (window.filterXSS = e.exports);
function s() {
return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
}
s() && (self.filterXSS = e.exports);
})(Ve, Ve.exports);
var ze = Ve.exports, He = {
html: {
whiteList: {
a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "href", "data-last-modified"],
address: ["class", "style"],
area: ["class", "style"],
article: ["class", "style"],
aside: ["class", "style"],
audio: ["class", "style"],
b: ["class", "style"],
bdi: ["class", "style"],
bdo: ["class", "style"],
big: ["class", "style"],
blockquote: ["class", "style"],
br: ["class", "style"],
caption: ["class", "style"],
center: ["class", "style"],
cite: ["class", "style"],
code: ["class", "style"],
col: ["class", "style"],
colgroup: ["class", "style"],
dd: ["class", "style"],
del: ["class", "style"],
details: ["class", "style"],
div: ["class", "style", "spellcheck", "data-gramm", "spellcheck", "data-mode", "data-position", "data-row", "data-cell", "data-rowspan", "data-colspan", "data-cell-bg", "data-parent-bg"],
dl: ["class", "style"],
dt: ["class", "style"],
em: ["class", "style"],
figcaption: ["class", "style"],
figure: ["class", "style"],
font: ["class", "style"],
footer: ["class", "style"],
h1: ["class", "style"],
h2: ["class", "style"],
h3: ["class", "style"],
h4: ["class", "style"],
h5: ["class", "style"],
h6: ["class", "style"],
header: ["class", "style"],
hr: ["class", "style"],
i: ["class", "style", "data-image-id", "data-image"],
img: ["class", "style", "data-image-id", "src"],
input: ["class", "style", "data-formula", "data-link", "data-video"],
ins: ["class", "style"],
li: ["class", "style"],
mark: ["class", "style"],
nav: ["class", "style"],
ol: ["class", "style"],
p: ["class", "style"],
pre: ["class", "style"],
s: ["class", "style"],
section: ["class", "style"],
small: ["class", "style"],
span: ["class", "style", "contenteditable", "color", "style"],
sub: ["class", "style"],
summary: ["class", "style"],
sup: ["class", "style"],
strong: ["class", "style"],
strike: ["class", "style"],
svg: ["class", "style", "t", "viewBox", "viewbox", "version", "xmlns", "p-id", "xmlns:xlink"],
path: ["d", "p-id"],
table: ["class", "style"],
tbody: ["class", "style"],
td: ["class", "style", "data-row", "data-cell", "data-cell-bg", "data-parent-bg"],
tfoot: ["class", "style"],
th: ["class", "style"],
thead: ["class", "style"],
tr: ["class", "style", "data-row"],
tt: ["class", "style"],
u: ["class", "style"],
ul: ["class", "style"],
video: ["class", "style"]
}
}
}, ro = ze.getDefaultWhiteList && ze.getDefaultWhiteList() || {};
He.html.whiteList = Object.assign(ro, He.html.whiteList);
new ze.FilterXSS(He.html);
var br = Object.prototype.toString, ut = Object.prototype.hasOwnProperty, no = Object.getPrototypeOf, yr = ut.toString, oo = yr.call(Object), io = {
"[object Error]": "error",
"[object Object]": "object",
"[object RegExp]": "regExp",
"[object Date]": "date",
"[object Array]": "array",
"[object Function]": "function",
"[object AsyncFunction]": "asyncFunction",
"[object String]": "string",
"[object Number]": "number",
"[object Boolean]": "boolean"
}, ft = function(t) {
return t == null;
}, te = function(t) {
return ft(t) ? String(t) : io[br.call(t)] || "object";
}, $e = function(t) {
return te(t) === "object";
}, J = function(t) {
if (!t || br.call(t) !== "[object Object]")
return !1;
var r = no(t);
if (!r)
return !0;
var n = ut.call(r, "constructor") && r.constructor;
return typeof n == "function" && yr.call(n) === oo;
}, w = typeof window > "u", ao = function() {
var t = 8;
return document.addEventListener && window.performance && (t = 9, window.atob && window.matchMedia && (t = 10, !window.attachEvent && !document.all && (t = 11))), t;
}, so = function(t) {
t.chrome && ~navigator.userAgent.indexOf("Edg") ? (t.name = "edge", t.edge = !0, delete t.chrome) : !document.documentMode && window.StyleMedia && (t.name = "edge", t.edge = !0);
};
(function() {
if (w) return null;
var e = {
name: "",
version: 0,
isDoc: typeof document < "u",
isMobile: !1,
isPC: !0,
isNode: w,
chrome: !1,
ie: !1,
firefox: !1,
safari: !1,
opera: !1,
edge: !1
}, t = /(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent);
e.isMobile = t, e.isPC = !t;
var r;
if (window.chrome && (window.chrome.webstore || /^Google\b/.test(window.navigator.vendor)) ? (e.name = "chrome", e.chrome = !0, r = navigator.userAgent.match(/chrome\/(\d+)/i), e.version = !!r && !!r[1] && parseInt(r[1], 10), r = void 0) : document.all || document.documentMode ? (e.name = "ie", e.version = ao(), e.ie = !0) : typeof window.InstallTrigger < "u" ? (e.name = "firefox", e.firefox = !0) : Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0 ? (e.name = "safari", e.safari = !0) : (window.opr && window.opr.addons || window.opera) && (e.name = "opera", e.opera = !0), so(e), !~["ie", "chrome"].indexOf(e.name)) {
var n = e.name + "/(\\d+)";
r = navigator.userAgent.match(new RegExp(n, "i")), e.version = !!r && !!r[1] && parseInt(r[1], 10), r = void 0;
}
if (e.isDoc) {
var o = document.body || document.documentElement;
["webkit", "khtml", "moz", "ms", "o"].forEach(function(i) {
e["-" + i] = !!o[i + "MatchesSelector"];
});
}
return e;
})();
var lo = /([:\-_]+(.))/g, uo = /^moz([A-Z])/, fo = function(t) {
return t.replace(lo, function(r, n, o, i) {
return i ? o.toUpperCase() : o;
}).replace(uo, "Moz$1");
}, E = function(t, r, n) {
var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
t && r && n && t.addEventListener(r, n, o);
}, I = function(t, r, n) {
var o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
t && r && t.removeEventListener(r, n, o);
}, co = function(t, r, n) {
var o = function(s) {
n && n.call(this, s), I(t, r, o);
};
E(t, r, o);
}, se = function(t) {
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
if (t) {
var n = r.split(" ").filter(function(o) {
return o;
});
n.forEach(function(o) {
return t.classList.add(o);
});
}
}, le = function(t, r) {
if (!(!t || !r)) {
var n = r.split(" ").filter(function(o) {
return o;
});
n.forEach(function(o) {
return t.classList.remove(o);
});
}
}, St = function(t, r) {
if (!w) {
if (!t || !r)
return null;
r = fo(r), r === "float" && (r = "cssFloat");
try {
if (t.style[r])
return t.style[r];
var n = window.getComputedStyle(t);
return n ? n[r] : null;
} catch {
return t.style[r];
}
}
}, po = function(t, r) {
if (!w) {
var n = !ft(r), o;
return n ? o = St(t, "overflow-y") : o = St(t, "overflow"), o ? o.match(/(scroll|auto)/) : null;
}
}, vo = function(t, r) {
if (!w) {
for (var n = t; n; ) {
if (~[window, document, document.documentElement].indexOf(n))
return window;
if (po(n, r))
return n;
n = n.parentNode;
}
return n;
}
}, ct = function(t) {
if (w) return !1;
if (t) {
var r = getComputedStyle(t);
if (r.getPropertyValue("position") === "fixed") {
if (r.getPropertyValue("display") === "none")
return !0;
if (t.parentNode !== document.body)
return ct(t.parentNode);
} else
return t.offsetParent === null;
}
return !1;
}, wr = (function() {
if (typeof Map < "u")
return Map;
var e = function(r, n) {
var o = -1;
return r.some(function(i, s) {
return i[0] === n ? (o = s, !0) : !1;
}), o;
};
return (function() {
function t() {
this.__entries__ = [];
}
return Object.defineProperty(t.prototype, "size", {
get: function() {
return this.__entries__.length;
},
enumerable: !0,
configurable: !0
}), t.prototype.get = function(r) {
var n = e(this.__entries__, r), o = this.__entries__[n];
return o && o[1];
}, t.prototype.set = function(r, n) {
var o = e(this.__entries__, r);
~o ? this.__entries__[o][1] = n : this.__entries__.push([r, n]);
}, t.prototype.delete = function(r) {
var n = this.__entries__, o = e(n, r);
~o && n.splice(o, 1);
}, t.prototype.clear = function() {
this.__entries__.splice(0);
}, t.prototype.has = function(r) {
return !!~e(this.__entries__, r);
}, t.prototype.forEach = function(r, n) {
n === void 0 && (n = null);
for (var o = 0, i = this.__entries__; o < i.length; o++) {
var s = i[o];
r.call(n, s[1], s[0]);
}
}, t;
})();
})(), ho = globalThis.Function, we = (function() {
var e = function(r) {
return r.Math === Math;
};
return typeof global < "u" && e(global) ? global : typeof self < "u" && e(self) ? self : typeof window < "u" && e(window) ? window : ho("return this")();
})(), mo = (function() {
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(we) : function(e) {
return setTimeout(function() {
return e(Date.now());
}, 1e3 / 60);
};
})(), go = 2;
function bo(e, t) {
var r = !1, n = !1, o = 0, i, s = function() {
r && (r = !1, e()), n && i();
}, a = function() {
mo(s);
};
return i = function() {
var u = Date.now();
if (r) {
if (u - o < go)
return;
n = !0;
} else
r = !0, n = !1, setTimeout(a, t);
o = u;
}, i;
}
var yo = 20, wo = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], xo = typeof MutationObserver < "u", _o = (function() {
function e() {
this.observers_ = [], this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = bo(this.refresh.bind(this), yo);
}
return e.prototype.addObserver = function(t) {
!~this.observers_.indexOf(t) && this.observers_.push(t), !this.connected_ && this.connect_();
}, e.prototype.removeObserver = function(t) {
var r = this.observers_, n = r.indexOf(t);
~n && r.splice(n, 1), !r.length && this.connected_ && this.disconnect_();
}, e.prototype.refresh = function() {
var t = this.updateObservers_();
t && this.refresh();
}, e.prototype.updateObservers_ = function() {
var t = this.observers_.filter(function(r) {
return r.gatherActive(), r.hasActive();
});
return t.forEach(function(r) {
return r.broadcastActive();
}), t.length > 0;
}, e.prototype.connect_ = function() {
if (!(w || this.connected_)) {
if (E(document, "transitionend", this.onTransitionEnd_), E(window, "resize", this.refresh), xo) {
this.mutationsObserver_ = new MutationObserver(this.refresh);
var t = {
attributes: !0,
childList: !0,
characterData: !0,
subtree: !0
};
this.mutationsObserver_.observe(document, t);
} else
E(document, "DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0;
this.connected_ = !0;
}
}, e.prototype.disconnect_ = function() {
w || !this.connected_ || (I(document, "transitionend", this.onTransitionEnd_), I(window, "resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && I(document, "DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
}, e.prototype.onTransitionEnd_ = function(t) {
var r = t.propertyName, n = r === void 0 ? "" : r, o = wo.some(function(i) {
return !!~n.indexOf(i);
});
o && this.refresh();
}, e.getInstance = function() {
return this._instance || (this._instance = new e()), this._instance;
}, e._instance = null, e;
})(), xr = function(t, r) {
for (var n = 0, o = Object.keys(r); n < o.length; n++) {
var i = o[n];
Object.defineProperty(t, i, {
value: r[i],
configurable: !0,
writable: !1,
enumerable: !1
});
}
return t;
}, Oe = function(t, r, n, o) {
return {
x: t,
y: r,
width: n,
height: o
};
}, re = function(t) {
var r = t && t.ownerDocument && t.ownerDocument.defaultView;
return r || we;
}, _r = Oe(0, 0, 0, 0), xe = function(t) {
return parseFloat(t) || 0;
}, Ot = function(t) {
for (var r = [], n = 1; n < arguments.length; n++)
r[n - 1] = arguments[n];
return r.reduce(function(o, i) {
var s = t["border-".concat(i, "-width")];
return o + xe(s);
}, 0);
}, Eo = function(t) {
for (var r = ["top", "right", "bottom", "left"], n = {}, o = 0, i = r; o < i.length; o++) {
var s = i[o], a = t["padding-".concat(s)];
n[s] = xe(a);
}
return n;
}, So = function(t) {
var r = t.getBBox();
return Oe(0, 0, r.width, r.height);
}, Oo = function(t) {
return t === re(t).document.documentElement;
}, To = function(t) {
var r = t.clientWidth, n = t.clientHeight;
if (!n && !r)
return _r;
var o = re(t).getComputedStyle(t), i = Eo(o), s = i.top + i.bottom, a = i.left + i.right, l = xe(o.width), u = xe(o.height);
if (o.boxSizing === "border-box" && (Math.round(u + s) !== n && (u -= Ot(o, "top", "bottom") + s), Math.round(l + a) !== r && (l -= Ot(o, "left", "right") + a)), !Oo(t)) {
var c = Math.round(u + s) - n, f = Math.round(l + a) - r;
Math.abs(c) !== 1 && (u -= c), Math.abs(f) !== 1 && (l -= f);
}
return Oe(i.left, i.top, l, u);
}, Ao = /* @__PURE__ */ (function() {
return typeof SVGGraphicsElement < "u" ? function(e) {
return e instanceof re(e).SVGGraphicsElement;
} : function(e) {
return e instanceof re(e).SVGElement && typeof e.getBBox == "function";
};
})(), ko = function(t) {
return w ? _r : Ao(t) ? So(t) : To(t);
}, Co = function(t) {
var r = t.x, n = t.y, o = t.width, i = t.height, s = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, a = Object.create(s.prototype);
return xr(a, {
x: r,
y: n,
width: o,
height: i,
top: n,
right: r + o,
bottom: i + n,
left: r
}), a;
}, Po = (function() {
function e(t) {
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Oe(0, 0, 0, 0), this.target = t;
}
return e.prototype.broadcastRect = function() {
var t = this.contentRect_;
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
}, e.prototype.isActive = function() {
var t = ko(this.target);
return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
}, e;
})(), Ro = /* @__PURE__ */ (function() {
function e(t, r) {
var n = Co(r);
xr(this, {
target: t,
contentRect: n
});
}
return e;
})(), Io = (function() {
function e(t, r, n) {
if (this.observations_ = new wr(), this.activeObservations_ = [], typeof t != "function")
throw new TypeError("[TINY-Resize] The callback provided as parameter 1 is not a function.");
this.callback_ = t, this.controller_ = r, this.callbackCtx_ = n;
}
return e.prototype.observe = function(t) {
if (!arguments.length)
throw new TypeError("[TINY-Resize] 1 argument required, but only 0 present.");
if (!(typeof Element > "u" || !(Element instanceof Object))) {
if (!(t instanceof re(t).Element))
throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
var r = this.observations_;
r.has(t) || (r.set(t, new Po(t)), this.controller_.addObserver(this), this.controller_.refresh());
}
}, e.prototype.unobserve = function(t) {
if (!arguments.length)
throw new TypeError("[TINY-Resize]1 argument required, but only 0 present.");
if (!(typeof Element > "u" || !(Element instanceof Object))) {
if (!(t instanceof re(t).Element))
throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
var r = this.observations_;
r.has(t) && (r.delete(t), !r.size && this.controller_.removeObserver(this));
}
}, e.prototype.gatherActive = function() {
var t = this;
this.clearActive(), this.observations_.forEach(function(r) {
r.isActive() && t.activeObservations_.push(r);
});
}, e.prototype.disconnect = function() {
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
}, e.prototype.broadcastActive = function() {
if (this.hasActive()) {
var t = this.callbackCtx_, r = this.activeObservations_.map(function(n) {
return new Ro(n.target, n.broadcastRect());
});
this.callback_.call(t, r, t), this.clearActive();
}
}, e.prototype.hasActive = function() {
return this.activeObservations_.length > 0;
}, e.prototype.clearActive = function() {
this.activeObservations_.splice(0);
}, e;
})(), Er = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new wr(), Sr = /* @__PURE__ */ (function() {
function e(t) {
if (!(this instanceof e))
throw new TypeError("[TINY-Resize] Cannot call a class as a function.");
if (!arguments.length)
throw new TypeError("[TINY-Resize] 1 argument required, but only 0 present.");
var r = _o.getInstance(), n = new Io(t, r, this);
Er.set(this, n);
}
return e;
})();
["observe", "unobserve", "disconnect"].forEach(function(e) {
Sr.prototype[e] = function() {
var t;
return (t = Er.get(this))[e].apply(t, arguments);
};
});
(function() {
return typeof we.ResizeObserver < "u" ? we.ResizeObserver : Sr;
})();
var Fo = "tcirzywvqlkjhgfbZQG_FLOWHSUBDNIMYREVKCAJxp57XP043891T62-modnaesu";
Fo.split("").reverse().join("");
function Mo(e) {
return !w && (e.document.all || e.document.documentMode) && !e.crypto && e.msCrypto;
}
function Bo(e) {
if (Mo(e)) {
e.crypto = e.msCrypto;
var t = e.crypto.getRandomValues;
e.crypto.getRandomValues = function(r) {
for (var n = t.call(e.crypto, r), o = [], i = 0; i < r.length; i++)
o[i] = n[i];
return o;
};
}
}
var No = globalThis;
Bo(No);
var pt, Do = function(t, r, n) {
if (!(!t || !J(t) || !r || typeof r != "string")) {
var o = r.split("."), i = t, s = o.length;
if (s > 1) {
for (var a = 0, l = a; l < s; l++)
if (i = i[o[l]], ft(i))
return i;
return i;
} else
return i[o[0]];
}
}, Lo = function(t, r, n, o) {
if (!t || !J(t) || !r || typeof r != "string")
return t;
var i = r.split("."), s = t, a = i.length, l = i[0];
if (a > 1) {
a--;
for (var u = s, c, f, p = 0; p < a; p++)
c = i[p], f = u[c], (f === null || !J(f)) && (u[c] = {}, f = u[c]), u = f;
l = i[a], u[l] = n;
} else
s[l] = n;
return s;
}, We = function(t, r, n, o) {
var i = function(a, l, u, c) {
var f = {};
return l.forEach(function(p) {
return Lo(f, p, Do(a, p));
}), f;
};
return J(t) ? Array.isArray(r) ? i(t, r) : pt(n !== !1, {}, t) : t;
}, Vo = function(t) {
return Array.isArray(t) ? t.map(function(r) {
return We(r);
}) : t;
}, jo = function(t, r, n, o, i) {
var s;
if (n && o && (J(o) || (s = Array.isArray(o))))
if (s)
s = !1, t[r] = Vo(o);
else {
var a = i && J(i) ? i : {};
t[r] = pt(n, a, o);
}
else if (o !== void 0)
try {
t[r] = o;
} catch {
}
};
pt = function() {
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
r[n] = arguments[n];
var o = r.length, i = r[0] || {}, s = 1, a = !1;
for (te(i) === "boolean" && (a = i, i = r[s] || {}, s++), !$e(i) && te(i) !== "function" && (i = {}); s < o; s++) {
var l = r[s];
if (l !== null && $e(l))
for (var u = Object.keys(l), c = 0, f = u; c < f.length; c++) {
var p = f[c], v = i[p], d = l[p];
i !== d && jo(i, p, a, d, v);
}
}
return i;
};
var _e, dt = function(t, r, n, o) {
if (te(t) === te(r)) {
if (n = n !== !1, Array.isArray(o)) {
var i = We(t, o), s = We(r, o);
return dt(i, s, n);
}
var a = _e(t, r, n), l = _e(r, t, n);
return a && l;
}
return !1;
};
_e = function(t, r, n) {
if (!J(t)) {
if (!Array.isArray(t))
return t === r;
if (t.length !== r.length)
return !1;
for (var o = 0, i = t.length; o < i; o++) {
var s = dt(t[o], r[o], n);
if (!s)
return !1;
}
return !0;
}
for (var a = !0, l = Object.keys(t), u = 0, c = l; u < c.length; u++) {
var f = c[u];
if (ut.call(r, f)) {
var p = t[f], v = r[f];
n && $e(p) || Array.isArray(p) ? a = _e(p, v, n) : a = p === v;
} else
a = !1;
if (a === !1)
break;
}
return a;
};
var zo = function() {
var t = 4294967296;
return globalThis.crypto.getRandomValues(new Uint32Array(1))[0] / t;
}, Ho = function() {
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 8;
return t + zo().toString().substr(2, r);
}, $o = "-12:00,-11:00,-10:00,-09:30,-08:00,-07:00,-06:00,-05:00,-04:30,-04:00,-03:30,-02:00,-01:00", Wo = "-00:00,+00:00,+01:00,+02:00,+03:00,+03:30,+04:00,+04:30,+05:00,+05:30,+05:45,+06:00", Uo = "+06:30,+07:00,+08:00,+09:00,+10:00,+10:30,+11:00,+11:30,+12:00,+12:45,+13:00,+14:00";
[].concat(ke($o.split(",")), ke(Wo.split(",")), ke(Uo.split(",")));
var Go = {
Escape: 27
}, Or = {
fullMonths: "January,February,March,April,May,June,July,August,September,October,November,December".split(","),
fullWeeks: ["Sunday",