import * as p from "vue";
import { t as Xe } from "@opentinyvue/vue-locale";
function Te(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 dr(e) {
  if (Array.isArray(e)) return Te(e);
}
function ct(e, t) {
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
}
function vr(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, pt(n.key), n);
  }
}
function dt(e, t, r) {
  return t && vr(e.prototype, t), Object.defineProperty(e, "prototype", {
    writable: !1
  }), e;
}
function vt(e, t, r) {
  return (t = pt(t)) in e ? Object.defineProperty(e, t, {
    value: r,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[t] = r, e;
}
function pr(e) {
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
}
function gr() {
  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 Ye(e, t) {
  var r = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(e);
    t && (n = n.filter(function(i) {
      return Object.getOwnPropertyDescriptor(e, i).enumerable;
    })), r.push.apply(r, n);
  }
  return r;
}
function $(e) {
  for (var t = 1; t < arguments.length; t++) {
    var r = arguments[t] != null ? arguments[t] : {};
    t % 2 ? Ye(Object(r), !0).forEach(function(n) {
      vt(e, n, r[n]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ye(Object(r)).forEach(function(n) {
      Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
    });
  }
  return e;
}
function ee(e) {
  return dr(e) || pr(e) || mr(e) || gr();
}
function hr(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 pt(e) {
  var t = hr(e, "string");
  return typeof t == "symbol" ? t : t + "";
}
function j(e) {
  "@babel/helpers - typeof";
  return j = 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;
  }, j(e);
}
function mr(e, t) {
  if (e) {
    if (typeof e == "string") return Te(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) ? Te(e, t) : void 0;
  }
}
var Oe = { exports: {} }, b = {}, Se = { exports: {} }, U = {};
function gt() {
  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 yr(e, t, r) {
}
function br(e, t, r) {
}
var wr = /javascript\s*\:/img;
function _r(e, t) {
  return wr.test(t) ? "" : t;
}
U.whiteList = gt();
U.getDefaultWhiteList = gt;
U.onAttr = yr;
U.onIgnoreAttr = br;
U.safeAttrValue = _r;
var xr = {
  indexOf: function(t, r) {
    var n, i;
    if (Array.prototype.indexOf)
      return t.indexOf(r);
    for (n = 0, i = t.length; n < i; n++)
      if (t[n] === r)
        return n;
    return -1;
  },
  forEach: function(t, r, n) {
    var i, a;
    if (Array.prototype.forEach)
      return t.forEach(r, n);
    for (i = 0, a = t.length; i < a; i++)
      r.call(n, t[i], i, 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, "");
  }
}, Q = xr;
function Ar(e, t) {
  e = Q.trimRight(e), e[e.length - 1] !== ";" && (e += ";");
  var r = e.length, n = !1, i = 0, a = 0, o = "";
  function s() {
    if (!n) {
      var f = Q.trim(e.slice(i, a)), c = f.indexOf(":");
      if (c !== -1) {
        var d = Q.trim(f.slice(0, c)), v = Q.trim(f.slice(c + 1));
        if (d) {
          var g = t(i, o.length, d, v, f);
          g && (o += g + "; ");
        }
      }
    }
    i = a + 1;
  }
  for (; a < r; a++) {
    var l = e[a];
    if (l === "/" && e[a + 1] === "*") {
      var u = e.indexOf("*/", a + 2);
      if (u === -1) break;
      a = u + 1, i = a + 1, n = !1;
    } else l === "(" ? n = !0 : l === ")" ? n = !1 : l === ";" ? n || s() : l === `
` && s();
  }
  return Q.trim(o);
}
var Er = Ar, oe = U, Cr = Er;
function Qe(e) {
  return e == null;
}
function Tr(e) {
  var t = {};
  for (var r in e)
    t[r] = e[r];
  return t;
}
function ht(e) {
  e = Tr(e || {}), e.whiteList = e.whiteList || oe.whiteList, e.onAttr = e.onAttr || oe.onAttr, e.onIgnoreAttr = e.onIgnoreAttr || oe.onIgnoreAttr, e.safeAttrValue = e.safeAttrValue || oe.safeAttrValue, this.options = e;
}
ht.prototype.process = function(e) {
  if (e = e || "", e = e.toString(), !e) return "";
  var t = this, r = t.options, n = r.whiteList, i = r.onAttr, a = r.onIgnoreAttr, o = r.safeAttrValue, s = Cr(e, function(l, u, f, c, d) {
    var v = n[f], g = !1;
    if (v === !0 ? g = v : typeof v == "function" ? g = v(c) : v instanceof RegExp && (g = v.test(c)), g !== !0 && (g = !1), c = o(f, c), !!c) {
      var y = {
        position: u,
        sourcePosition: l,
        source: d,
        isWhite: g
      };
      if (g) {
        var h = i(f, c, y);
        return Qe(h) ? f + ":" + c : h;
      } else {
        var h = a(f, c, y);
        if (!Qe(h))
          return h;
      }
    }
  });
  return s;
};
var Or = ht;
(function(e, t) {
  var r = U, n = Or;
  function i(o, s) {
    var l = new n(s);
    return l.process(o);
  }
  t = e.exports = i, t.FilterCSS = n;
  for (var a in r) t[a] = r[a];
  typeof window < "u" && (window.filterCSS = e.exports);
})(Se, Se.exports);
var Ne = Se.exports, Be = {
  indexOf: function(t, r) {
    var n, i;
    if (Array.prototype.indexOf)
      return t.indexOf(r);
    for (n = 0, i = t.length; n < i; n++)
      if (t[n] === r)
        return n;
    return -1;
  },
  forEach: function(t, r, n) {
    var i, a;
    if (Array.prototype.forEach)
      return t.forEach(r, n);
    for (i = 0, a = t.length; i < a; i++)
      r.call(n, t[i], i, 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;
  }
}, Sr = Ne.FilterCSS, kr = Ne.getDefaultWhiteList, he = Be;
function mt() {
  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 yt = new Sr();
function Ir(e, t, r) {
}
function Pr(e, t, r) {
}
function Mr(e, t, r) {
}
function Rr(e, t, r) {
}
function bt(e) {
  return e.replace(Lr, "&lt;").replace(Fr, "&gt;");
}
function $r(e, t, r, n) {
  if (r = Ct(r), t === "href" || t === "src") {
    if (r = he.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 (se.lastIndex = 0, se.test(r))
      return "";
  } else if (t === "style") {
    if (Ze.lastIndex = 0, Ze.test(r) || (Je.lastIndex = 0, Je.test(r) && (se.lastIndex = 0, se.test(r))))
      return "";
    n !== !1 && (n = n || yt, r = n.process(r));
  }
  return r = Tt(r), r;
}
var Lr = /</g, Fr = />/g, jr = /"/g, Dr = /&quot;/g, zr = /&#([a-zA-Z0-9]*);?/gim, Nr = /&colon;?/gim, Br = /&newline;?/gim, se = /((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, Ze = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, Je = /u\s*r\s*l\s*\(.*/gi;
function wt(e) {
  return e.replace(jr, "&quot;");
}
function _t(e) {
  return e.replace(Dr, '"');
}
function xt(e) {
  return e.replace(zr, function(r, n) {
    return n[0] === "x" || n[0] === "X" ? String.fromCharCode(parseInt(n.substr(1), 16)) : String.fromCharCode(parseInt(n, 10));
  });
}
function At(e) {
  return e.replace(Nr, ":").replace(Br, " ");
}
function Et(e) {
  for (var t = "", r = 0, n = e.length; r < n; r++)
    t += e.charCodeAt(r) < 32 ? " " : e.charAt(r);
  return he.trim(t);
}
function Ct(e) {
  return e = _t(e), e = xt(e), e = At(e), e = Et(e), e;
}
function Tt(e) {
  return e = wt(e), e = bt(e), e;
}
function Vr() {
  return "";
}
function Wr(e, t) {
  typeof t != "function" && (t = function() {
  });
  var r = !Array.isArray(e);
  function n(o) {
    return r ? !0 : he.indexOf(e, o) !== -1;
  }
  var i = [], a = !1;
  return {
    onIgnoreTag: function(s, l, u) {
      if (n(s))
        if (u.isClosing) {
          var f = "[/removed]", c = u.position + f.length;
          return i.push([a !== !1 ? a : u.position, c]), a = !1, f;
        } else
          return a || (a = u.position), "[removed]";
      else
        return t(s, l, u);
    },
    remove: function(s) {
      var l = "", u = 0;
      return he.forEach(i, function(f) {
        l += s.slice(u, f[0]), u = f[1];
      }), l += s.slice(u), l;
    }
  };
}
function Gr(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 i = e.indexOf("-->", n);
    if (i === -1)
      break;
    r = i + 3;
  }
  return t;
}
function Ur(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("");
}
b.whiteList = mt();
b.getDefaultWhiteList = mt;
b.onTag = Ir;
b.onIgnoreTag = Pr;
b.onTagAttr = Mr;
b.onIgnoreTagAttr = Rr;
b.safeAttrValue = $r;
b.escapeHtml = bt;
b.escapeQuote = wt;
b.unescapeQuote = _t;
b.escapeHtmlEntities = xt;
b.escapeDangerHtml5Entities = At;
b.clearNonPrintableCharacter = Et;
b.friendlyAttrValue = Ct;
b.escapeAttrValue = Tt;
b.onIgnoreTagStripAll = Vr;
b.StripTagBody = Wr;
b.stripCommentTag = Gr;
b.stripBlankChar = Ur;
b.cssFilter = yt;
b.getDefaultCSSWhiteList = kr;
var _e = {}, B = Be;
function Hr(e) {
  var t = B.spaceIndex(e), r;
  return t === -1 ? r = e.slice(1, -1) : r = e.slice(1, t + 1), r = B.trim(r).toLowerCase(), r.slice(0, 1) === "/" && (r = r.slice(1)), r.slice(-1) === "/" && (r = r.slice(0, -1)), r;
}
function qr(e) {
  return e.slice(0, 2) === "</";
}
function Kr(e, t, r) {
  var n = "", i = 0, a = !1, o = !1, s = 0, l = e.length, u = "", f = "";
  e: for (s = 0; s < l; s++) {
    var c = e.charAt(s);
    if (a === !1) {
      if (c === "<") {
        a = s;
        continue;
      }
    } else if (o === !1) {
      if (c === "<") {
        n += r(e.slice(i, s)), a = s, i = s;
        continue;
      }
      if (c === ">" || s === l - 1) {
        n += r(e.slice(i, a)), f = e.slice(a, s + 1), u = Hr(f), n += t(a, n.length, u, f, qr(f)), i = s + 1, a = !1;
        continue;
      }
      if (c === '"' || c === "'")
        for (var d = 1, v = e.charAt(s - d); v.trim() === "" || v === "="; ) {
          if (v === "=") {
            o = c;
            continue e;
          }
          v = e.charAt(s - ++d);
        }
    } else if (c === o) {
      o = !1;
      continue;
    }
  }
  return i < l && (n += r(e.substr(i))), n;
}
var Xr = /[^a-zA-Z0-9\\_:.-]/gim;
function Yr(e, t) {
  var r = 0, n = 0, i = [], a = !1, o = e.length;
  function s(d, v) {
    if (d = B.trim(d), d = d.replace(Xr, "").toLowerCase(), !(d.length < 1)) {
      var g = t(d, v || "");
      g && i.push(g);
    }
  }
  for (var l = 0; l < o; l++) {
    var u = e.charAt(l), f, c;
    if (a === !1 && u === "=") {
      a = e.slice(r, l), r = l + 1, n = e.charAt(r) === '"' || e.charAt(r) === "'" ? r : Zr(e, l + 1);
      continue;
    }
    if (a !== !1 && l === n) {
      if (c = e.indexOf(u, l + 1), c === -1)
        break;
      f = B.trim(e.slice(n + 1, c)), s(a, f), a = !1, l = c, r = l + 1;
      continue;
    }
    if (/\s|\n|\t/.test(u))
      if (e = e.replace(/\s|\n|\t/g, " "), a === !1)
        if (c = Qr(e, l), c === -1) {
          f = B.trim(e.slice(r, l)), s(f), a = !1, r = l + 1;
          continue;
        } else {
          l = c - 1;
          continue;
        }
      else if (c = Jr(e, l - 1), c === -1) {
        f = B.trim(e.slice(r, l)), f = et(f), s(a, f), a = !1, r = l + 1;
        continue;
      } else
        continue;
  }
  return r < e.length && (a === !1 ? s(e.slice(r)) : s(a, et(B.trim(e.slice(r))))), B.trim(i.join(" "));
}
function Qr(e, t) {
  for (; t < e.length; t++) {
    var r = e[t];
    if (r !== " ")
      return r === "=" ? t : -1;
  }
}
function Zr(e, t) {
  for (; t < e.length; t++) {
    var r = e[t];
    if (r !== " ")
      return r === "'" || r === '"' ? t : -1;
  }
}
function Jr(e, t) {
  for (; t > 0; t--) {
    var r = e[t];
    if (r !== " ")
      return r === "=" ? t : -1;
  }
}
function en(e) {
  return e[0] === '"' && e[e.length - 1] === '"' || e[0] === "'" && e[e.length - 1] === "'";
}
function et(e) {
  return en(e) ? e.substr(1, e.length - 2) : e;
}
_e.parseTag = Kr;
_e.parseAttr = Yr;
var tn = Ne.FilterCSS, R = b, Ot = _e, rn = Ot.parseTag, nn = Ot.parseAttr, ve = Be;
function le(e) {
  return e == null;
}
function an(e) {
  var t = ve.spaceIndex(e);
  if (t === -1)
    return {
      html: "",
      closing: e[e.length - 2] === "/"
    };
  e = ve.trim(e.slice(t + 1, -1));
  var r = e[e.length - 1] === "/";
  return r && (e = ve.trim(e.slice(0, -1))), {
    html: e,
    closing: r
  };
}
function on(e) {
  var t = {};
  for (var r in e)
    t[r] = e[r];
  return t;
}
function sn(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 St(e) {
  e = on(e || {}), e.stripIgnoreTag && (e.onIgnoreTag && console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'), e.onIgnoreTag = R.onIgnoreTagStripAll), e.whiteList || e.allowList ? e.whiteList = sn(e.whiteList || e.allowList) : e.whiteList = R.whiteList, e.onTag = e.onTag || R.onTag, e.onTagAttr = e.onTagAttr || R.onTagAttr, e.onIgnoreTag = e.onIgnoreTag || R.onIgnoreTag, e.onIgnoreTagAttr = e.onIgnoreTagAttr || R.onIgnoreTagAttr, e.safeAttrValue = e.safeAttrValue || R.safeAttrValue, e.escapeHtml = e.escapeHtml || R.escapeHtml, this.options = e, e.css === !1 ? this.cssFilter = !1 : (e.css = e.css || {}, this.cssFilter = new tn(e.css));
}
St.prototype.process = function(e) {
  if (e = e || "", e = e.toString(), !e) return "";
  var t = this, r = t.options, n = r.whiteList, i = r.onTag, a = r.onIgnoreTag, o = r.onTagAttr, s = r.onIgnoreTagAttr, l = r.safeAttrValue, u = r.escapeHtml, f = t.cssFilter;
  r.stripBlankChar && (e = R.stripBlankChar(e)), r.allowCommentTag || (e = R.stripCommentTag(e));
  var c = !1;
  r.stripIgnoreTagBody && (c = R.StripTagBody(r.stripIgnoreTagBody, a), a = c.onIgnoreTag);
  var d = rn(e, function(v, g, y, h, x) {
    var w = {
      sourcePosition: v,
      position: g,
      isClosing: x,
      isWhite: Object.prototype.hasOwnProperty.call(n, y)
    }, _ = i(y, h, w);
    if (!le(_)) return _;
    if (w.isWhite) {
      if (w.isClosing)
        return "</" + y + ">";
      var m = an(h), A = n[y], I = nn(m.html, function(S, P) {
        var k = ve.indexOf(A, S) !== -1, M = o(y, S, P, k);
        return le(M) ? k ? (P = l(y, S, P, f), P ? S + '="' + P + '"' : S) : (M = s(y, S, P, k), le(M) ? void 0 : M) : M;
      });
      return h = "<" + y, I && (h += " " + I), m.closing && (h += " /"), h += ">", h;
    } else
      return _ = a(y, h, w), le(_) ? u(h) : _;
  }, u);
  return c && (d = c.remove(d)), d;
};
var ln = St;
(function(e, t) {
  var r = b, n = _e, i = ln;
  function a(s, l) {
    var u = new i(l);
    return u.process(s);
  }
  t = e.exports = a, t.filterXSS = a, t.FilterXSS = i, (function() {
    for (var s in r)
      t[s] = r[s];
    for (var l in n)
      t[l] = n[l];
  })(), typeof window < "u" && (window.filterXSS = e.exports);
  function o() {
    return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
  }
  o() && (self.filterXSS = e.exports);
})(Oe, Oe.exports);
var ke = Oe.exports, Ie = {
  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"]
    }
  }
}, un = ke.getDefaultWhiteList && ke.getDefaultWhiteList() || {};
Ie.html.whiteList = Object.assign(un, Ie.html.whiteList);
new ke.FilterXSS(Ie.html);
var fn = Object.prototype.hasOwnProperty, cn = fn.toString;
cn.call(Object);
var C = typeof window > "u", dn = function() {
  var t = 8;
  return document.addEventListener && window.performance && (t = 9, window.atob && window.matchMedia && (t = 10, !window.attachEvent && !document.all && (t = 11))), t;
}, vn = 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 (C) return null;
  var e = {
    name: "",
    version: 0,
    isDoc: typeof document < "u",
    isMobile: !1,
    isPC: !0,
    isNode: C,
    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 = dn(), 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), vn(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 i = document.body || document.documentElement;
    ["webkit", "khtml", "moz", "ms", "o"].forEach(function(a) {
      e["-" + a] = !!i[a + "MatchesSelector"];
    });
  }
  return e;
})();
var q = function(t, r, n) {
  var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
  t && r && n && t.addEventListener(r, n, i);
}, pe = function(t, r, n) {
  var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
  t && r && t.removeEventListener(r, n, i);
}, ue = function(t) {
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
  if (t) {
    var n = r.split(" ").filter(function(i) {
      return i;
    });
    n.forEach(function(i) {
      return t.classList.add(i);
    });
  }
}, fe = function(t, r) {
  if (!(!t || !r)) {
    var n = r.split(" ").filter(function(i) {
      return i;
    });
    n.forEach(function(i) {
      return t.classList.remove(i);
    });
  }
}, kt = (function() {
  if (typeof Map < "u")
    return Map;
  var e = function(r, n) {
    var i = -1;
    return r.some(function(a, o) {
      return a[0] === n ? (i = o, !0) : !1;
    }), i;
  };
  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), i = this.__entries__[n];
      return i && i[1];
    }, t.prototype.set = function(r, n) {
      var i = e(this.__entries__, r);
      ~i ? this.__entries__[i][1] = n : this.__entries__.push([r, n]);
    }, t.prototype.delete = function(r) {
      var n = this.__entries__, i = e(n, r);
      ~i && n.splice(i, 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 i = 0, a = this.__entries__; i < a.length; i++) {
        var o = a[i];
        r.call(n, o[1], o[0]);
      }
    }, t;
  })();
})(), pn = globalThis.Function, me = (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 : pn("return this")();
})(), gn = (function() {
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(me) : function(e) {
    return setTimeout(function() {
      return e(Date.now());
    }, 1e3 / 60);
  };
})(), hn = 2;
function mn(e, t) {
  var r = !1, n = !1, i = 0, a, o = function() {
    r && (r = !1, e()), n && a();
  }, s = function() {
    gn(o);
  };
  return a = function() {
    var u = Date.now();
    if (r) {
      if (u - i < hn)
        return;
      n = !0;
    } else
      r = !0, n = !1, setTimeout(s, t);
    i = u;
  }, a;
}
var yn = 20, bn = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], wn = typeof MutationObserver < "u", _n = (function() {
  function e() {
    this.observers_ = [], this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = mn(this.refresh.bind(this), yn);
  }
  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 (!(C || this.connected_)) {
      if (q(document, "transitionend", this.onTransitionEnd_), q(window, "resize", this.refresh), wn) {
        this.mutationsObserver_ = new MutationObserver(this.refresh);
        var t = {
          attributes: !0,
          childList: !0,
          characterData: !0,
          subtree: !0
        };
        this.mutationsObserver_.observe(document, t);
      } else
        q(document, "DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0;
      this.connected_ = !0;
    }
  }, e.prototype.disconnect_ = function() {
    C || !this.connected_ || (pe(document, "transitionend", this.onTransitionEnd_), pe(window, "resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && pe(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, i = bn.some(function(a) {
      return !!~n.indexOf(a);
    });
    i && this.refresh();
  }, e.getInstance = function() {
    return this._instance || (this._instance = new e()), this._instance;
  }, e._instance = null, e;
})(), It = function(t, r) {
  for (var n = 0, i = Object.keys(r); n < i.length; n++) {
    var a = i[n];
    Object.defineProperty(t, a, {
      value: r[a],
      configurable: !0,
      writable: !1,
      enumerable: !1
    });
  }
  return t;
}, xe = function(t, r, n, i) {
  return {
    x: t,
    y: r,
    width: n,
    height: i
  };
}, K = function(t) {
  var r = t && t.ownerDocument && t.ownerDocument.defaultView;
  return r || me;
}, Pt = xe(0, 0, 0, 0), ye = function(t) {
  return parseFloat(t) || 0;
}, tt = function(t) {
  for (var r = [], n = 1; n < arguments.length; n++)
    r[n - 1] = arguments[n];
  return r.reduce(function(i, a) {
    var o = t["border-".concat(a, "-width")];
    return i + ye(o);
  }, 0);
}, xn = function(t) {
  for (var r = ["top", "right", "bottom", "left"], n = {}, i = 0, a = r; i < a.length; i++) {
    var o = a[i], s = t["padding-".concat(o)];
    n[o] = ye(s);
  }
  return n;
}, An = function(t) {
  var r = t.getBBox();
  return xe(0, 0, r.width, r.height);
}, En = function(t) {
  return t === K(t).document.documentElement;
}, Cn = function(t) {
  var r = t.clientWidth, n = t.clientHeight;
  if (!n && !r)
    return Pt;
  var i = K(t).getComputedStyle(t), a = xn(i), o = a.top + a.bottom, s = a.left + a.right, l = ye(i.width), u = ye(i.height);
  if (i.boxSizing === "border-box" && (Math.round(u + o) !== n && (u -= tt(i, "top", "bottom") + o), Math.round(l + s) !== r && (l -= tt(i, "left", "right") + s)), !En(t)) {
    var f = Math.round(u + o) - n, c = Math.round(l + s) - r;
    Math.abs(f) !== 1 && (u -= f), Math.abs(c) !== 1 && (l -= c);
  }
  return xe(a.left, a.top, l, u);
}, Tn = /* @__PURE__ */ (function() {
  return typeof SVGGraphicsElement < "u" ? function(e) {
    return e instanceof K(e).SVGGraphicsElement;
  } : function(e) {
    return e instanceof K(e).SVGElement && typeof e.getBBox == "function";
  };
})(), On = function(t) {
  return C ? Pt : Tn(t) ? An(t) : Cn(t);
}, Sn = function(t) {
  var r = t.x, n = t.y, i = t.width, a = t.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(o.prototype);
  return It(s, {
    x: r,
    y: n,
    width: i,
    height: a,
    top: n,
    right: r + i,
    bottom: a + n,
    left: r
  }), s;
}, kn = (function() {
  function e(t) {
    this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = xe(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 = On(this.target);
    return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
  }, e;
})(), In = /* @__PURE__ */ (function() {
  function e(t, r) {
    var n = Sn(r);
    It(this, {
      target: t,
      contentRect: n
    });
  }
  return e;
})(), Pn = (function() {
  function e(t, r, n) {
    if (this.observations_ = new kt(), 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 K(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 kn(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 K(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 In(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;
})(), Mt = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new kt(), Rt = /* @__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 = _n.getInstance(), n = new Pn(t, r, this);
    Mt.set(this, n);
  }
  return e;
})();
["observe", "unobserve", "disconnect"].forEach(function(e) {
  Rt.prototype[e] = function() {
    var t;
    return (t = Mt.get(this))[e].apply(t, arguments);
  };
});
(function() {
  return typeof me.ResizeObserver < "u" ? me.ResizeObserver : Rt;
})();
var Mn = "tcirzywvqlkjhgfbZQG_FLOWHSUBDNIMYREVKCAJxp57XP043891T62-modnaesu";
Mn.split("").reverse().join("");
function Rn(e) {
  return !C && (e.document.all || e.document.documentMode) && !e.crypto && e.msCrypto;
}
function $n(e) {
  if (Rn(e)) {
    e.crypto = e.msCrypto;
    var t = e.crypto.getRandomValues;
    e.crypto.getRandomValues = function(r) {
      for (var n = t.call(e.crypto, r), i = [], a = 0; a < r.length; a++)
        i[a] = n[a];
      return i;
    };
  }
}
var Ln = globalThis;
$n(Ln);
function Ve(e) {
  var t = /* @__PURE__ */ Object.create(null);
  return function(n) {
    var i = t[n];
    return i || (t[n] = e(n));
  };
}
var Fn = /-(\w)/g, jn = Ve(function(e) {
  return e.replace(Fn, function(t, r) {
    return r ? r.toUpperCase() : "";
  });
}), Dn = Ve(function(e) {
  return e.charAt(0).toUpperCase() + e.slice(1);
}), zn = /\B([A-Z])/g, Nn = Ve(function(e) {
  return e.replace(zn, "-$1").toLowerCase();
}), Bn = "-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", Vn = "-00:00,+00:00,+01:00,+02:00,+03:00,+03:30,+04:00,+04:30,+05:00,+05:30,+05:45,+06:00", Wn = "+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(ee(Bn.split(",")), ee(Vn.split(",")), ee(Wn.split(",")));
var Gn = {
  Escape: 27
}, $t = {
  fullMonths: "January,February,March,April,May,June,July,August,September,October,November,December".split(","),
  fullWeeks: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
}, We = ["\\d\\d?", "\\d{3}", "\\d{4}"], N = We[0], Un = We[1], Hn = We[2], Z = "[^\\s]+", rt = function() {
}, Lt = function(t, r) {
  for (var n = [], i = 0, a = t.length; i < a; i++)
    n.push(t[i].substr(0, r));
  return n;
}, nt = function(t) {
  return function(r, n, i) {
    var a = i[t].indexOf(n.charAt(0).toUpperCase() + n.substr(1).toLowerCase());
    ~a && (r.month = a);
  };
}, qn = $t.fullWeeks, Kn = $t.fullMonths;
Lt(Kn, 3);
Lt(qn, 3);
var H = {
  d: [N, function(e, t) {
    e.day = t;
  }],
  Do: [N + Z, function(e, t) {
    e.day = parseInt(t, 10);
  }],
  M: [N, function(e, t) {
    e.month = t - 1;
  }],
  yy: [N, function(e, t) {
    var r = /* @__PURE__ */ new Date(), n = Number(String(r.getFullYear()).substr(0, 2));
    e.year = String(t > 68 ? n - 1 : n) + t;
  }],
  h: [N, function(e, t) {
    e.hour = t;
  }],
  m: [N, function(e, t) {
    e.minute = t;
  }],
  s: [N, function(e, t) {
    e.second = t;
  }],
  yyyy: [Hn, function(e, t) {
    e.year = t;
  }],
  S: ["\\d", function(e, t) {
    e.millisecond = t * 100;
  }],
  SS: ["\\d{2}", function(e, t) {
    e.millisecond = t * 10;
  }],
  SSS: [Un, function(e, t) {
    e.millisecond = t;
  }],
  D: [N, rt],
  ddd: [Z, rt],
  MMM: [Z, nt("monthNamesShort")],
  MMMM: [Z, nt("monthNames")],
  a: [Z, function(e, t, r) {
    var n = t.toLowerCase();
    n === r.amPm[0] ? e.isPm = !1 : n === r.amPm[1] && (e.isPm = !0);
  }],
  ZZ: ["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z", function(e, t) {
    var r = String(t).match(/([+-]|\d\d)/gi), n;
    r && (n = Number(r[1] * 60) + parseInt(r[2], 10), e.timezoneOffset = r[0] === "+" ? n : -n);
  }]
}, Xn = ["A", "DD", "dd", "mm", "hh", "MM", "ss", "hh", "H", "HH"];
H.dddd = H.ddd;
Xn.forEach(function(e) {
  e === "MM" ? H[e] = H[e.substr(0, 1)] : H[e] = H[e.substr(0, 1).toLowerCase()];
});
var Yn = function() {
}, Qn = (function() {
  return C ? function(e) {
    setTimeout(function() {
      return e(Date.now());
    }, 1e3 / 60);
  } : window.requestAnimationFrame.bind(window);
})(), Pe = function(t) {
  t.scheduled || (t.scheduled = !0, t.raf(Zn.bind(null, t)));
}, Zn = function(t) {
  var r = t.reads, n = t.writes, i;
  try {
    t.runTasks(r), t.runTasks(n);
  } catch (a) {
    i = a;
  }
  if (t.scheduled = !1, (r.length || n.length) && Pe(t), i)
    if (t.catch)
      t.catch(i);
    else
      throw i;
}, it = function(t, r) {
  var n = t.indexOf(r);
  return !!~n && !!t.splice(n, 1);
}, Jn = function(t, r) {
  for (var n in r)
    Object.hasOwnProperty.call(r, n) && (t[n] = r[n]);
}, ei = /* @__PURE__ */ (function() {
  function e() {
    ct(this, e), this.reads = [], this.writes = [], this.raf = Qn.bind(window);
  }
  return dt(e, [{
    key: "runTasks",
    value: function(r) {
      for (var n; n = r.shift(); ) n();
    }
  }, {
    key: "measure",
    value: function(r, n) {
      var i = n ? r.bind(n) : r;
      return this.reads.push(i), Pe(this), i;
    }
  }, {
    key: "mutate",
    value: function(r, n) {
      var i = n ? r.bind(n) : r;
      return this.writes.push(i), Pe(this), i;
    }
  }, {
    key: "clear",
    value: function(r) {
      return it(this.reads, r) || it(this.writes, r);
    }
  }, {
    key: "extend",
    value: function(r) {
      if (!r || j(r) !== "object") throw new Error("[TINY][FastDom] expected object");
      var n = Object.create(this);
      return Jn(n, r), n.fastdom = this, n.initialize && n.initialize(), n;
    }
  }]);
})(), Ft = new ei(), at = function(t, r, n, i) {
  var a = t._tasks, o = t.fastdom, s, l = new Promise(function(u, f) {
    s = o[r](function() {
      a.delete(l);
      try {
        u(i ? n.call(i) : n());
      } catch (c) {
        f(c);
      }
    }, i);
  });
  return a.set(l, s), l;
}, ti = {
  initialize: function() {
    this._tasks = /* @__PURE__ */ new Map();
  },
  mutate: function(t, r) {
    return at(this, "mutate", t, r);
  },
  measure: function(t, r) {
    return at(this, "measure", t, r);
  },
  clear: function(t) {
    var r = this._tasks, n = r.get(t);
    this.fastdom.clear(n), r.delete(t);
  }
};
Ft.extend(ti);
var ri = function(t, r) {
  for (var n = r.length; n--; )
    t.clear(r[n]), r.splice(n, 1);
}, ni = function(t, r) {
  var n = t.indexOf(r);
  return !!~n && !!t.splice(n, 1);
}, ii = /* @__PURE__ */ (function() {
  function e(t) {
    ct(this, e), this.fastdom = t, this.tasks = [];
  }
  return dt(e, [{
    key: "measure",
    value: function(r, n) {
      var i = this.tasks, a = this.fastdom.measure(function() {
        return i.splice(i.indexOf(a)), r.call(n);
      });
      return i.push(a), a;
    }
  }, {
    key: "mutate",
    value: function(r, n) {
      var i = this.tasks, a = this.fastdom.mutate(function() {
        return i.splice(i.indexOf(a)), r.call(n);
      });
      return this.tasks.push(a), a;
    }
  }, {
    key: "clear",
    value: function(r) {
      return arguments.length || ri(this.fastdom, this.tasks), ni(this.tasks, r), this.fastdom.clear(r);
    }
  }]);
})(), ai = {
  sandbox: function() {
    return new ii(this.fastdom);
  }
};
Ft.extend(ai);
var oi = ["fullscreenElement", "fullscreenEnabled", "requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenerror"], si = ["mozFullScreenElement", "mozFullScreenEnabled", "mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozfullscreenerror"], li = ["webkitFullscreenElement", "webkitFullscreenEnabled", "webkitRequestFullscreen", "webkitExitFullscreen", "webkitfullscreenchange", "webkitfullscreenerror"], ui = ["msFullscreenElement", "msFullscreenEnabled", "msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "MSFullscreenError"], Ae = [oi, li, si, ui], L = typeof window < "u" && typeof window.document < "u" ? window.document : {}, E = null, fi = function() {
  if (!C)
    for (var t = 0, r = Ae.length; t < r; t++) {
      var n = Ae[t];
      if (n && n[1] in L) {
        for (E = {}, t = 0; t < n.length; t++)
          E[Ae[0][t]] = n[t];
        return;
      }
    }
};
fi();
var ot = {
  change: E && E.fullscreenchange,
  error: E && E.fullscreenerror
}, Me = {
  request: function(t, r) {
    var n = this;
    return new Promise(function(i, a) {
      var o = function() {
        n.off("change", o), i();
      };
      if (n.on("change", o), t = t || (C ? null : L.documentElement), t && E && t[E.requestFullscreen]) {
        var s = t[E.requestFullscreen](r);
        s instanceof Promise && s.then(o).catch(a);
      } else
        a(new Error("Fullscreen API not supported or element is null."));
    });
  },
  exit: function() {
    var t = this;
    return new Promise(function(r, n) {
      if (!t.isFullscreen) {
        r();
        return;
      }
      var i = function() {
        t.off("change", i), r();
      };
      if (t.on("change", i), !C && E && L[E.exitFullscreen]) {
        var a = L[E.exitFullscreen]();
        a instanceof Promise && a.then(i).catch(n);
      } else
        n(new Error("Fullscreen API not supported."));
    });
  },
  toggle: function(t, r) {
    return this.isFullscreen ? this.exit() : this.request(t, r);
  },
  onchange: function(t) {
    this.on("change", t);
  },
  onerror: function(t) {
    this.on("error", t);
  },
  on: function(t, r) {
    var n = ot[t];
    n && !C && q(L, n, r);
  },
  off: function(t, r) {
    var n = ot[t];
    n && !C && pe(L, n, r);
  },
  raw: E || {}
};
C ? Object.defineProperties(Me, {
  isFullscreen: {
    get: function() {
      return !1;
    }
  },
  element: {
    enumerable: !0,
    get: function() {
      return null;
    }
  },
  isEnabled: {
    enumerable: !0,
    get: function() {
      return !1;
    }
  }
}) : Object.defineProperties(Me, {
  isFullscreen: {
    get: function() {
      return !!L[E && E.fullscreenElement];
    }
  },
  element: {
    enumerable: !0,
    get: function() {
      return L[E && E.fullscreenElement];
    }
  },
  isEnabled: {
    enumerable: !0,
    get: function() {
      return !!L[E && E.fullscreenEnabled];
    }
  }
});
Me.isEnabled;
function ci(e, t, r, n) {
  var i, a = 0;
  typeof t != "boolean" && (n = r, r = t, t = void 0);
  function o() {
    var l = this, u = (/* @__PURE__ */ new Date()).valueOf() - a, f = arguments;
    function c() {
      a = (/* @__PURE__ */ new Date()).valueOf(), r.apply(l, f);
    }
    function d() {
      i = void 0;
    }
    n && !i && c(), i && clearTimeout(i);
    var v = n === void 0;
    v && u > e ? c() : t !== !0 && (i = setTimeout(n ? d : c, v ? e - u : e));
  }
  function s() {
    i && (clearTimeout(i), i = null);
  }
  return o._cancel = s, o;
}
function di(e, t, r) {
  return ci(e, t, !1);
}
var W = null, vi = "ws://localhost", st = [27197, 27198, 27199], Ee = 0, G, jt = 1e3, Dt = 3e4, pi = 0, Ge = {}, zt, gi = 20 * 1e3, lt = null, Nt = null, Re = {}, Bt = {}, T = {}, Vt = function() {
}, Wt = function() {
}, Gt = function(t) {
  clearTimeout(Re[t]), delete Ge[t], delete Re[t];
}, hi = function() {
  Nt = setTimeout(function() {
    W.close();
  }, 5e3);
}, D = function(t, r) {
  var n = pi++;
  if (n = String(n), t.cid = n, !G) {
    r && setTimeout(r, 0, {
      ok: !1,
      message: "eSpace is not logged in."
    });
    return;
  }
  typeof r == "function" && (Ge[n] = r, Re[n] = setTimeout(function() {
    r({
      ok: !1,
      message: "time out"
    }), Gt(n);
  }, Dt)), W.send(JSON.stringify(t));
}, Ut = function() {
  lt = setTimeout(function() {
    G ? D({
      type: "heartbeat"
    }, function() {
      Ut();
    }) : clearTimeout(lt);
  }, gi);
}, mi = function(t) {
  G = !0, Ut(), clearTimeout(zt), clearTimeout(Nt), Wt(t);
}, yi = function(t) {
  var r = t.data;
  if (typeof r == "string" && (r = r.replace(/^\d+/, ""), !!r)) {
    try {
      r = JSON.parse(r);
    } catch (o) {
      return !o;
    }
    if (G) {
      var n = Bt[r.type];
      if (n)
        return n(r.data);
      var i = r.cid, a = Ge[i];
      a && (r.ok ? a(null, r.data) : a({
        ok: r.ok
      }), Gt(i));
    } else
      r.type === "eSpace-ctrl-connection-success" ? mi(r.data) : W.close();
  }
}, bi = function() {
  W.onopen = hi, W.onclose = wi, W.onmessage = yi;
}, Ht = function(t) {
  zt = setTimeout(function() {
    Ee >= st.length && (Ee = 0), W = new WebSocket(vi + ":" + st[Ee++]), bi();
  }, t || 0);
}, wi = function() {
  (G || typeof G > "u") && (G = !1, Vt()), Ht(jt);
};
T.init = function(e) {
  e && (Dt = e.timeout || 3e4, jt = e.pollingInterval || 0), Ht();
};
T.ready = function(e) {
  Wt = e;
};
T.error = function(e) {
  Vt = e;
};
var ut = function(t, r, n) {
  for (var i = [], a = 0; a < r; a++) {
    var o = t;
    a && (o += a);
    var s = n[o];
    s && i.push(s);
  }
  return i;
};
T.on = function(e, t) {
  Bt[e] = t;
};
T.getUserInfo = function(e, t) {
  var r = function(i, a) {
    if (i)
      return t(i);
    var o = function(c) {
      return {
        account: c.account,
        name: c.name,
        mobile: ut("mobile", 6, c),
        office_phone: ut("office_phone", 6, c),
        home_phone: c.home_phone,
        ip_phone: c.ip_phone,
        other_phone: c.other_phone
      };
    };
    if (a.account)
      t(null, o(a));
    else {
      var s = {};
      for (var l in a)
        if (Object.prototype.hasOwnProperty.call(a, l)) {
          var u = a[l];
          s[l] = u && o(u);
        }
      t(null, s);
    }
  };
  D({
    type: "get-user-info",
    param: e
  }, r);
};
T.subscribeUserStatus = function(e, t) {
  Array.isArray(e) && e.forEach(function(r) {
  }), D({
    type: "subscribe-user-status",
    param: e
  }, t);
};
T.eSpaceCall = function(e, t, r) {
  D({
    type: "espace-call",
    param: {
      account: e,
      number: t
    }
  }, r);
};
T.eSpaceCallByAccount = function(e, t) {
  D({
    type: "espace-call",
    param: {
      account: e
    }
  }, t);
};
T.eSpaceCallByNumber = function(e, t) {
  D({
    type: "espace-call",
    param: {
      number: e
    }
  }, t);
};
T.showImDialog = function(e, t) {
  D({
    type: "show-espace-im-dialog",
    param: e
  }, t);
};
T.showGroupDialog = function(e, t) {
  D({
    type: "show-espace-im-group-dialog",
    param: e
  }, t);
};
T.addContactList = function(e, t) {
  D({
    type: "add-contact-list",
    param: e
  }, t);
};
if (C || !window.WebSocket) {
  var _i = function() {
  };
  for (var Ce in T)
    if (Object.prototype.hasOwnProperty.call(T, Ce)) {
      var xi = T[Ce];
      typeof xi == "function" && (T[Ce] = _i);
    }
}
var ce = {}, J = {
  leave: "v-modal-leave",
  enter: "v-modal-enter",
  modal: "v-modal"
}, Ai = function(t, r) {
  for (var n = t.length - 1; n >= 0; n--)
    if (t[n].id === r) {
      t.splice(n, 1);
      break;
    }
}, $e, O = {
  step: 2,
  zIndex: 2e3,
  globalScroll: !1,
  // 是否打开全局滚动监听
  modalFade: !0,
  modalStack: [],
  modalDom: null,
  // 当前model挂载的div.
  hasModal: !1,
  // 当前是否有Modal
  popLockClass: "popup-parent--hidden",
  oldBodyBorder: "",
  viewportWindow: null,
  fixBodyBorder: function() {
    var t = window.innerWidth - document.documentElement.clientWidth;
    t && (this.oldBodyBorder = document.documentElement.style.borderRight, document.body.style.borderRight = "".concat(t, "px solid transparent"));
  },
  resetBodyBorder: function() {
    document.body.style.borderRight = this.oldBodyBorder, this.oldBodyBorder = "";
  },
  /** 全局反注册 */
  deregister: function(t) {
    t && (ce[t] = null, delete ce[t]);
  },
  /** 返回全局实例 */
  getInstance: function(t) {
    return ce[t];
  },
  /** 全局注册   仅vue-popup.ts中使用，instance就是vm, 把vm注册到 vm._popupId 这个键值上 */
  register: function(t, r) {
    t && r && (ce[t] = r);
  },
  nextZIndex: function() {
    var t = O.zIndex;
    return O.zIndex += O.step, t;
  },
  /** 打开遮罩层， 仅vue-popup.ts中使用。 dom = vm.$el 或者 undefined (appendtoBody时)  */
  openModal: function(t, r, n, i, a) {
    if (!C && !(!t || r === void 0)) {
      this.modalFade = a;
      for (var o = 0, s = this.modalStack.length; o < s; o++) {
        var l = this.modalStack[o];
        if (l.id === t)
          return;
      }
      var u = $e();
      if (ue(u, J.modal), this.modalFade && !O.hasModal && ue(u, J.enter), i) {
        var f = i.trim().split(/\s+/);
        f.forEach(function(d) {
          return ue(u, d);
        });
      }
      setTimeout(function() {
        fe(u, J.enter);
      }, 200), r && (u.style.zIndex = r.toString()), u.style.display = "", u.tabIndex = 0;
      var c;
      n && n.parentNode && n.parentNode.nodeType !== 11 ? c = n.parentNode : c = document.body, c.appendChild(u), this.modalStack.push({
        id: t,
        zIndex: r,
        modalClass: i
      });
    }
  },
  /** 点击背景遮罩层时，调用栈顶的popup，调用它的close() */
  doOnModalClick: function() {
    var t = O.modalStack, r = t[t.length - 1];
    if (r) {
      var n = O.getInstance(r.id);
      n && n.closeOnClickModal && typeof n.close == "function" && n.close();
    }
  },
  closeModal: function(t) {
    var r = this.modalStack, n = $e();
    if (r.length > 0) {
      var i = r[r.length - 1];
      if (i.id === t) {
        if (i.modalClass) {
          var a = i.modalClass.trim().split(/\s+/);
          a.forEach(function(s) {
            return fe(n, s);
          });
        }
        r.pop();
        var o = r.length;
        o > 0 && (n.style.zIndex = r[o - 1].zIndex.toString());
      } else
        Ai(r, t);
    }
    r.length === 0 && (this.modalFade && ue(n, J.leave), fe(document.body, this.popLockClass), this.resetBodyBorder(), setTimeout(function() {
      r.length === 0 && (n.parentNode && n.parentNode.removeChild(n), n.style.display = "none", O.modalDom = null), fe(n, J.leave);
    }, 200));
  }
};
$e = function() {
  if (C)
    return null;
  var t = O.modalDom;
  return t ? O.hasModal = !0 : (O.hasModal = !1, t = document.createElement("div"), O.modalDom = t, t.addEventListener("touchmove", function(r) {
    r.preventDefault(), r.stopPropagation();
  }, {
    passive: !0
  }), q(t, "click", function() {
    O.doOnModalClick();
  })), t;
};
C || q(window, "keydown", function(e) {
  if (e.keyCode === Gn.Escape) {
    var t = O.modalStack;
    if (t.length > 0) {
      var r = t[t.length - 1];
      if (!r)
        return;
      var n = O.getInstance(r.id);
      n && n.closeOnPressEscape && (n.handleClose ? n.handleClose("esc") : n.handleAction ? n.handleAction("cancel") : n.close());
    }
  }
});
!C && typeof ResizeObserver == "function" && new ResizeObserver(function(e) {
  e.forEach(function(t) {
    t.target.popperVm && t.contentRect.height > 50 && t.target.popperVm.update();
  });
});
var Ue = function() {
  var t = {}, r = function(a, o) {
    var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
    if (a && typeof a == "string" && typeof o == "function") {
      var l = t[a] || [];
      t[a] = l, l.push(o), o.once = s;
    }
  }, n = {
    emit: function(a) {
      var o = arguments, s = t[a];
      s && (s.forEach(function(l) {
        return l.apply(null, [].slice.call(o, 1));
      }), t[a] = s.filter(function(l) {
        return !l.once;
      }));
    },
    on: r,
    once: function(a, o) {
      r(a, o, !0);
    },
    off: function(a, o) {
      if (a && typeof a == "string") {
        var s = t[a];
        typeof o == "function" ? t[a] = s.filter(function(l) {
          return l !== o;
        }) : delete t[a];
      } else
        t = {};
    }
  };
  return n;
}, Ei = function(t) {
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = {};
  for (var i in t)
    i.indexOf("_") !== 0 && (n[i] = t[i]);
  for (var a in r)
    n[a] = r[a];
  return n;
}, Ci = function(t, r) {
  if (!(!t || !r)) {
    var n = [];
    typeof t == "string" ? n.push(t) : Array.isArray(t) && (n = t);
    var i = [];
    typeof r == "string" ? i.push(r) : Array.isArray(r) && (i = r);
    var a = [];
    return i.forEach(function(o) {
      return n.forEach(function(s) {
        return a.push("".concat(o, ":").concat(s, "-").concat(o));
      });
    }), n.concat(a).join(" ");
  }
}, Ti = function() {
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
  if (j(r) === "object") {
    var n = Array.isArray(r) ? r : Object.keys(r).filter(function(a) {
      return r[a];
    }), i = "";
    return n.forEach(function(a) {
      t[a] && (i += "".concat(t[a], " "));
    }), i;
  } else
    return t[r] || "";
}, Le = typeof window > "u" ? null : window.__Longque__, ha = p.Teleport, qt = p.defineAsyncComponent, Oi = p.markRaw, Kt = function(t) {
  var r = t.view, n = r === void 0 ? void 0 : r, i = t.component, a = i === void 0 ? void 0 : i, o = t.props, s = t.customDesignProps, l = t.context, u = l.attrs, f = l.slots, c = t.extend, d = c === void 0 ? {} : c;
  return function() {
    return p.h(n && n.value || a, $($($($({
      ref: "modeTemplate"
    }, o), u), s), d), f);
  };
}, He = function(t) {
  var r = p.getCurrentInstance();
  return t && Qt(r), r == null ? void 0 : r.appContext.config.globalProperties;
}, Si = function() {
  var t, r = p.getCurrentInstance();
  return (r == null || (t = r.vnode) === null || t === void 0 ? void 0 : t.props) || {};
}, Xt = function() {
  var t, r = p.getCurrentInstance(), n = r == null || (t = r.type) === null || t === void 0 ? void 0 : t.name;
  if (!n) {
    var i, a;
    n = r == null || (i = r.parent) === null || i === void 0 || (a = i.type) === null || a === void 0 ? void 0 : a.name;
  }
  return n || "";
}, ki = function() {
  var t;
  return ((t = p.getCurrentInstance()) === null || t === void 0 ? void 0 : t.appContext) || {
    component: function() {
    }
  };
}, Ii = function() {
  var t = p.getCurrentInstance();
  return (t == null ? void 0 : t.appContext.config.globalProperties) || {};
}, Yt = function() {
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : p.getCurrentInstance(), r = t == null ? void 0 : t.appContext.config.globalProperties.$router, n = r && r.currentRoute.value;
  return {
    route: n,
    router: r
  };
}, Qt = function(t) {
  var r = Ue();
  typeof t.$emitter > "u" && Object.defineProperty(t, "$emitter", {
    get: function() {
      return r;
    }
  });
}, Pi = function(t) {
  var r = function(i, a, o, s) {
    var l = i.subTree && i.subTree.children || i.children;
    Array.isArray(l) && l.forEach(function(u) {
      var f = u.type && u.type.componentName, c = u.component;
      f === a ? (c.emit(o, s), c.$emitter && c.$emitter.emit(o, s)) : r(u, a, o, s);
    });
  };
  return {
    dispatch: function(i, a, o) {
      for (var s = t.parent || t.root, l = s.type && s.type.componentName; s && (!l || l !== i); )
        s = s.parent, s && (l = s.type && s.type.componentName);
      if (s) {
        var u, f;
        (u = s).emit.apply(u, ee([a].concat(o))), s.$emitter && (f = s.$emitter).emit.apply(f, ee([a].concat(o)));
      }
    },
    broadcast: function(i, a, o) {
      r(t, i, a, o);
    }
  };
}, be = function(t) {
  if (t && t.parent) return t.parent.type.name === "AsyncComponentWrapper" && t.parent.parent ? t.parent.parent : t.parent;
}, Mi = function(t) {
  return function(r) {
    var n = be(t), i = 0, a = function(s) {
      return {
        level: i,
        vm: F({}, s),
        el: s.vnode.el,
        options: s.type
      };
    };
    if (typeof r != "function") return n ? a(n) : {};
    for (i++; n && !r(a(n)); )
      n = be(n), i++;
  };
}, Ri = function(t) {
  return function(r) {
    if (typeof r != "function") return Zt(t.subTree);
    var n = 1, i = function(o) {
      if (o) {
        var s = o.children || o.dynamicChildren, l = n++;
        if (Array.isArray(s)) {
          if (s.some(function(u) {
            return u.component && r({
              level: l,
              vm: F({}, u.component),
              el: u.el,
              options: u.type,
              isLevel1: !0
            });
          })) return;
          s.forEach(function(u) {
            return i(u);
          });
        }
      }
    };
    i(t.subTree);
  };
}, $i = /^on[A-Z]/, Li = function(t) {
  var r = {}, n = {};
  for (var i in t) {
    var a = t[i];
    if ($i.test(i) && typeof a == "function") {
      n[Nn(i.substr(2))] = a;
      continue;
    }
    r[i] = a;
  }
  return {
    $attrs: r,
    $listeners: n
  };
}, Zt = function(t) {
  var r = [];
  if (r.refs = {}, t) {
    var n = t.dynamicChildren || t.children;
    Array.isArray(n) ? n.forEach(function(i) {
      if (i.component) {
        var a = F({}, i.component);
        r.push(a), i.props.ref && (r.refs[i.props.ref] = a);
      }
    }) : t.component && r.push(F({}, t.component));
  }
  return r;
}, Fe = function(t, r, n, i) {
  var a = function(l) {
    if (typeof i == "function" && i(l)) return 1;
    Object.defineProperty(t, l, {
      configurable: !0,
      enumerable: !0,
      get: function() {
        return r[n][l];
      },
      set: function(f) {
        return r[n][l] = f;
      }
    });
  };
  for (var o in r[n])
    a(o);
  return t;
}, Fi = function(t, r, n) {
  var i = Le.SKIP_PREFIX_UNDERSCORE;
  Le.createDelegate(r[n], t, i);
}, ji = Le ? Fi : Fe, ft = function(t) {
  return t.indexOf("_") === 0;
}, Jt = function(t, r) {
  return Fe(t, r, "setupState", null), Fe(t, r, "props", ft), ji(t, r, "ctx", ft), t;
}, F = function(t, r) {
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, i = Li(r.attrs), a = i.$attrs, o = i.$listeners, s = r.$emitter;
  s || (Qt(r), s = r.$emitter);
  var l = function() {
    for (var c = arguments.length, d = new Array(c), v = 0; v < c; v++)
      d[v] = arguments[v];
    r.emit.apply(r, d), s.emit.apply(t, d);
  }, u = function(c, d, v) {
    return c[d] = v;
  };
  return n || Jt(t, r), Object.defineProperties(t, {
    $attrs: {
      get: function() {
        return a;
      }
    },
    $children: {
      get: function() {
        return Zt(r.subTree);
      }
    },
    $constants: {
      get: function() {
        return r.props._constants;
      }
    },
    $emit: {
      get: function() {
        return l;
      }
    },
    $el: {
      get: function() {
        return r.vnode.el;
      }
    },
    $listeners: {
      get: function() {
        return o;
      }
    },
    $mode: {
      get: function() {
        return r._tiny_mode;
      }
    },
    $nextTick: {
      get: function() {
        return p.nextTick;
      }
    },
    $off: {
      get: function() {
        return s.off;
      }
    },
    $on: {
      get: function() {
        return s.on;
      }
    },
    $once: {
      get: function() {
        return s.once;
      }
    },
    $options: {
      get: function() {
        return {
          componentName: r.type.componentName
        };
      }
    },
    $parent: {
      get: function() {
        return r.parent && F({}, be(r));
      }
    },
    $refs: {
      get: function() {
        return r.refs;
      }
    },
    $renderless: {
      get: function() {
        return r.props.tiny_renderless;
      }
    },
    $scopedSlots: {
      get: function() {
        return r.slots;
      }
    },
    $set: {
      get: function() {
        return u;
      }
    },
    $slots: {
      get: function() {
        return r.slots;
      }
    },
    $template: {
      get: function() {
        return r.props.tiny_template;
      }
    }
  }), t;
}, Di = function(t, r) {
  for (var n in t.refs)
    Object.prototype.hasOwnProperty.call(t.refs, n) && (r[n] = t.refs[n]);
}, zi = function(t, r) {
  var n, i, a = p.getCurrentInstance(), o = a == null ? void 0 : a.appContext.config.globalProperties, s = Yt(a), l = s.route, u = s.router, f = a == null || (n = a.proxy) === null || n === void 0 || (i = n.$root) === null || i === void 0 ? void 0 : i.$i18n, c = Pi(a), d = c.dispatch, v = c.broadcast, g = Mi(a), y = Ri(a), h = F({}, a, t), x = t.emit, w = {}, _ = typeof a.props.tiny_template > "u" && be(a), m = _ ? F({}, _) : a.parent ? F({}, a.parent) : null, A = function(k) {
    var M, ne = k.name, ie = k.value, ae = _ ? _.ctx : a == null || (M = a.parent) === null || M === void 0 ? void 0 : M.ctx;
    ae[ne] = ie, m[ne] = ie;
  }, I = function(k) {
    Object.defineProperties(h, k), Object.defineProperties(a == null ? void 0 : a.ctx, k);
  }, S = function(k) {
    m && Object.defineProperties(m, k);
  };
  return p.onBeforeMount(function() {
    return Jt(h, a);
  }), p.onMounted(function() {
    return Di(a, w);
  }), {
    framework: "vue3",
    vm: h,
    emit: x,
    emitter: Ue,
    route: l,
    router: u,
    dispatch: d,
    broadcast: v,
    parentHandler: g,
    childrenHandler: y,
    i18n: f,
    refs: w,
    slots: a == null ? void 0 : a.slots,
    scopedSlots: a == null ? void 0 : a.slots,
    attrs: t.attrs,
    parent: m,
    nextTick: p.nextTick,
    constants: a == null ? void 0 : a.props._constants,
    mode: r,
    isPCMode: r === "pc",
    isMobileMode: r === "mobile",
    service: o != null && o.$getService ? o == null ? void 0 : o.$getService(h) : o == null ? void 0 : o.$service,
    getService: function() {
      return o == null ? void 0 : o.$getService(h);
    },
    setParentAttribute: A,
    defineInstanceProperties: I,
    defineParentInstanceProperties: S
  };
}, de = function(t, r, n) {
  if (typeof t[r] < "u") {
    var i = t[r];
    t[n] = function(a, o, s) {
      s.context = o.instance, i(a, o, s);
    }, delete t[r];
  }
}, Ni = function(t) {
  for (var r in t) {
    var n = t[r];
    de(n, "inserted", "mounted"), de(n, "bind", "beforeMount"), de(n, "update", "updated"), de(n, "unbind", "unmounted");
  }
  return t;
}, Bi = function(t) {
  return t;
}, Vi = p.Text, Wi = p.Comment, Gi = function(t) {
  return !t || !t.type || [Vi, Wi].includes(t.type);
}, Ui = function(t) {
  var r = {};
  for (var n in t)
    if (n === "class" || n === "style")
      r[n] = t[n];
    else if (n === "on" || n === "nativeOn") {
      var i = t[n];
      for (var a in i) r["on".concat(Dn(jn(a)))] = i[a];
    } else if (n === "attrs" || n === "props" || n === "domProps") {
      var o = t[n];
      for (var s in o) r[s] = o[s];
    } else
      r[n] = t[n];
  return r;
}, Hi = function(t) {
  var r = t, n = !1;
  if (typeof t == "string" && typeof document < "u") {
    var i = document.createElement(t), a = ["SVG", "CIRCLE", "PATH"];
    i instanceof HTMLUnknownElement && !a.includes(i.nodeName) || t.includes("-") ? (t = t.toLowerCase(), n = !0, t === "transition" ? r = p.Transition : t === "transition-group" ? r = p.TransitionGroup : r = p.resolveComponent(t)) : r = t;
  }
  return {
    type: r,
    component: t,
    customElement: n
  };
}, qi = function(t, r, n) {
  var i = {}, a = n, o = Hi(t), s = o.customElement, l = o.type;
  return t = o.component, r && j(r) === "object" && !Array.isArray(r) ? (i = Ui(r), r.scopedSlots && (a = r.scopedSlots)) : (typeof r == "string" || Array.isArray(r)) && (n = r), (typeof n == "string" || Array.isArray(n)) && (a = typeof t != "string" || s ? function() {
    return n;
  } : n), p.h(l, i, a);
}, Ki = function(t) {
  return function(r) {
    var n = r.component, i = r.propsData, a = r.el, o = Object.assign(n, {
      provide: vt({}, t.configKey, t.configInstance)
    }), s = p.createVNode(o, i);
    return p.render(s, a), F({}, s.component);
  };
}, Xi = p.defineComponent, er = !1, ma = !0, Yi = p.isVNode, ya = p.KeepAlive, je = function(t) {
  var r = [];
  return Object.keys(t).forEach(function(n) {
    return t[n] && r.push(n);
  }), r.join(" ");
}, Qi = function(t) {
  var r = [];
  return t.forEach(function(n) {
    typeof n == "string" ? r.push(n) : j(n) === "object" && r.push(je(n));
  }), r.join(" ");
}, De = function(t) {
  if (!t)
    return "";
  if (typeof t == "string")
    return t;
  if (Array.isArray(t) && t.length > 0) {
    var r = [];
    return t.forEach(function(n) {
      n && (typeof n == "string" ? r.push(n) : Array.isArray(n) ? r.push(Qi(n)) : j(n) === "object" && r.push(je(n)));
    }), r.join(" ");
  }
  return j(t) === "object" ? je(t) : "";
}, ba = function(t) {
  var r = De(t), n = Array.from(new Set(r.split(" "))).filter(function(i) {
    return i;
  });
  return De(n);
}, Zi = function() {
  var t = p.ref(""), r = ["2xl", "xl", "lg", "md", "sm"], n = function(l) {
    return C || typeof matchMedia != "function" ? {
      matches: !1,
      media: l,
      addEventListener: function() {
      },
      removeEventListener: function() {
      }
    } : window.matchMedia(l);
  }, i = {
    "2xl": n("(min-width:1536px)"),
    xl: n("(min-width:1280px)"),
    lg: n("(min-width:1024px)"),
    md: n("(min-width:768px)"),
    sm: n("(min-width:640px)")
  }, a = function() {
    for (var l = 0; l < r.length; l++) {
      var u = r[l];
      if (i[u].matches) {
        t.value = u;
        return;
      }
    }
    t.value = "default";
  }, o = di(0, function() {
    return a();
  });
  return a(), r.forEach(function(s) {
    return i[s].addEventListener("change", o);
  }), p.onBeforeUnmount(function() {
    r.forEach(function(s) {
      return i[s].removeEventListener("change", o);
    });
  }), {
    current: t
  };
};
function wa() {
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100, t = p.ref(0), r;
  function n() {
    r = requestAnimationFrame(function() {
      t.value++, !(t.value >= e) && n();
    });
  }
  function i() {
    r && (cancelAnimationFrame(r), r = 0);
  }
  return n(), p.onBeforeUnmount(function() {
    return i();
  }), {
    defer: function(o) {
      return t.value >= o;
    },
    reset: function() {
      i(), t.value = 0, n();
    },
    cancel: i
  };
}
var Ji = ["IconLoadingShadow", "IconNoData"], tr = 0, rr = function(t, r) {
  {
    var n;
    if ((n = t.props) !== null && n !== void 0 && n.id) {
      var i = "".concat(t.props.id).concat(tr);
      r[t.props.id] = i, t.props.id = i;
    }
  }
  Array.isArray(t == null ? void 0 : t.children) && t.children.forEach(function(a) {
    rr(a, r);
  });
}, nr = function(t, r) {
  var n = ["fill", "mask", "filter"];
  n.forEach(function(i) {
    {
      var a, o;
      if ((a = t.props) !== null && a !== void 0 && (o = a[i]) !== null && o !== void 0 && o.includes("url(#")) {
        var s = t.props[i].replace("url(#", "").replace(")", ""), l = r[s];
        l && (t.props[i] = "url(#".concat(l, ")"));
      }
    }
  }), Array.isArray(t == null ? void 0 : t.children) && t.children.forEach(function(i) {
    nr(i, r);
  });
}, ea = function(t) {
  if (t) {
    var r = {};
    rr(t, r), nr(t, r), tr++;
  }
}, ta = function(t) {
  var r = t.onMounted, n = t.onActivated, i = t.nextTick;
  return function(a) {
    var o;
    r(function() {
      a(), i(function() {
        return o = !0;
      });
    }), n(function() {
      return o && a();
    });
  };
}, ra = function(t) {
  var r = t.getCurrentInstance, n = t.isVue2, i = t.nextTick, a = t.onUnmounted;
  return function() {
    var o = r().proxy;
    n || Object.defineProperty(o, "$scopedSlots", {
      configurable: !0,
      value: null
    }), Object.defineProperty(o, "instanceSlots", {
      configurable: !0,
      get: function() {
        return o.$scopedSlots || o.$slots;
      }
    }), a(function() {
      i(function() {
        n || delete o.$scopedSlots, delete o.instanceSlots;
      });
    });
  };
}, na = function(t) {
  var r = t.computed, n = t.getCurrentInstance, i = t.inject, a = t.markRaw, o = t.nextTick, s = t.onMounted, l = t.onActivated, u = t.onUnmounted, f = t.provide, c = t.reactive, d = t.toRef;
  return function() {
    var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, g = v.relationKey, y = v.relationContainer, h = v.onChange, x = v.childrenKey, w = v.delivery;
    if (!g)
      throw new Error("[TINY Error]<relationKey> must exist.");
    var _ = n(), m = c({
      children: [],
      indexInParent: -1
    }), A = i(g, null), I = [];
    if (A) {
      var S = A.link, P = A.unlink, k = A.callbacks, M = A.childrenKey, ne = A.delivery;
      I = k, x = x || M || "instanceChildren", w = ne, m.indexInParent = S(_), u(function() {
        return P(_);
      });
    } else {
      x = x || "instanceChildren";
      var ie = ta({
        onMounted: s,
        onActivated: l,
        nextTick: o
      }), ae = h ? function() {
        return o(h);
      } : Yn, X;
      o(function() {
        var z = typeof y == "function" ? y() : y;
        z && (X = new MutationObserver(function(Y, V) {
          var Ke = [];
          ir(z.childNodes, Ke), I.forEach(function(cr) {
            return cr(Ke, Y, V);
          }), ae();
        }), X.observe(z, {
          attributes: !0,
          childList: !0,
          subtree: !0
        }));
      }), ie(function() {
        return ae();
      }), u(function() {
        X && (X.disconnect(), X = null), I = null;
      });
    }
    var ur = function(Y) {
      var V = Y.proxy;
      return m.children.push(a(V)), r(function() {
        return m.children.indexOf(V);
      });
    }, fr = function(Y) {
      var V = m.children.indexOf(Y.proxy);
      V > -1 && m.children.splice(V, 1);
    };
    return I.push(function(z) {
      return ia(m.children, z);
    }), f(g, {
      link: ur,
      unlink: fr,
      callbacks: I,
      childrenKey: x,
      delivery: w
    }), Object.defineProperty(_.proxy, x, {
      configurable: !0,
      get: function() {
        return m.children;
      }
    }), u(function() {
      return delete _.proxy[x];
    }), {
      children: d(m, "children"),
      index: d(m, "indexInParent"),
      delivery: w
    };
  };
}, ir = function(t, r) {
  t.length && t.forEach(function(n) {
    r.push(n), n.childNodes && ir(n.childNodes, r);
  });
}, ia = function(t, r) {
  t.sort(function(n, i) {
    return r.indexOf(n.$el) - r.indexOf(i.$el);
  });
};
const _a = "3.27.0";
var xa = ra($($({}, p), {}, {
  isVue2: er
})), Aa = na($($({}, p), {}, {
  isVue2: er
})), re = "Tiny", aa = {
  tiny_mode: String,
  tiny_mode_root: Boolean,
  tiny_template: [Function, Object],
  tiny_renderless: Function,
  tiny_theme: String,
  tiny_mcp_config: Object,
  tiny_chart_theme: Object
}, oa = ["tiny_mode", "tiny_mode_root", "tiny_template", "tiny_renderless", "_constants", "tiny_theme", "tiny_chart_theme", "tiny_mcp_config"], qe = function(t, r) {
  var n = function(c) {
    return ~["pc", "mobile", "mobile-first"].indexOf(c);
  }, i = He(r), a = typeof t.tiny_mode == "string" ? t.tiny_mode : null, o = p.inject("TinyMode", null), s;
  typeof i.tiny_mode == "string" ? s = i.tiny_mode : i.tiny_mode && (s = i.tiny_mode.value), n(a) || (a = null), n(o) || (o = null), n(s) || (s = null);
  var l = a || o || s || "pc";
  t.tiny_mode_root && p.provide("TinyMode", l);
  var u = p.getCurrentInstance();
  return Object.defineProperty(u, "_tiny_mode", {
    value: l
  }), l;
}, sa = function(t, r) {
  var n = function(f) {
    return ~["tiny", "saas"].indexOf(f);
  }, i = He(r), a = typeof t.tiny_theme == "string" ? t.tiny_theme : null, o = p.inject("TinyTheme", null), s = i.tiny_theme && i.tiny_theme.value;
  n(a) || (a = null), n(o) || (o = null), n(s) || (s = null);
  var l = a || o || s || "tiny";
  return l;
}, la = function(t, r) {
  var n = He(r), i = j(t.tiny_chart_theme) === "object" ? t.tiny_chart_theme : null, a = p.inject("TinyChartTheme", null), o = n.tiny_chart_theme && n.tiny_chart_theme.value, s = i || a || o || null;
  return s;
}, we = {
  configKey: Symbol("designConfigKey"),
  configInstance: null
}, Ea = function(t) {
  Object.keys(t).length && (p.provide(we.configKey, t), we.configInstance = t);
}, ua = Ki(we), ar = {
  designConfig: null,
  twMerge: function() {
    return "";
  }
}, or = function() {
  var t, r, n, i = ar.designConfig || p.inject(we.configKey, {});
  i = ((t = i) === null || t === void 0 ? void 0 : t.value) || i || {};
  var a = (r = i) === null || r === void 0 || (n = r.components) === null || n === void 0 ? void 0 : n[Xt().replace(re, "")];
  return {
    designConfig: a,
    globalDesignConfig: i
  };
}, fa = function() {
  var t, r = te.mcpConfig, n = Xt().replace(re, "");
  return r == null || (t = r.components) === null || t === void 0 ? void 0 : t[n];
}, te = {
  mcpConfig: null,
  createMcpTools: null
}, Ca = function(t, r) {
  te.mcpConfig = t, te.createMcpTools = r;
}, ca = function(t) {
  var r = t.props, n = t.context, i = t.template, a = t.extend, o = a === void 0 ? {} : a, s = qe(r, n), l = p.computed(function() {
    if (typeof r.tiny_template < "u") return r.tiny_template;
    var g = i(s, r);
    return typeof g == "function" ? qt(g) : g;
  }), u = or(), f = u.designConfig, c = {}, d = f == null ? void 0 : f.props;
  if (d) {
    var v = Si();
    Object.keys(d).forEach(function(g) {
      var y = g.replace(/-(\w)/g, function(x, w) {
        return w.toUpperCase();
      }), h = g.replace(/([A-Z])/g, "-$1").toLowerCase();
      !Object.prototype.hasOwnProperty.call(v, y) && !Object.prototype.hasOwnProperty.call(v, h) && (c[g] = d[g]);
    });
  }
  return Kt({
    view: l,
    props: r,
    customDesignProps: c,
    context: n,
    extend: o
  });
}, ze = function() {
  for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
    r[n] = arguments[n];
  return ar.twMerge(De(r));
}, da = function(t) {
  var r = t.props, n = t.context, i = t.renderless, a = t.api, o = t.extendOptions, s = o === void 0 ? {} : o, l = t.mono, u = l === void 0 ? !1 : l, f = t.classes, c = f === void 0 ? {} : f, d = typeof r.tiny_renderless == "function" ? r.tiny_renderless : i, v = or(), g = v.designConfig, y = v.globalDesignConfig, h = $($({
    $prefix: re,
    t: Xe
  }, zi(n, qe(r, n))), {}, {
    designConfig: g,
    globalDesignConfig: y,
    useBreakpoint: Zi,
    mergeClass: ze
  });
  h.vm.theme = sa(r, n), h.vm.chartTheme = la(r, n);
  var x = d(r, p, h, s);
  typeof (g == null ? void 0 : g.renderless) == "function" && Object.assign(x, g.renderless(r, p, h, x));
  var w = {
    t: Xe,
    vm: h.vm,
    f: Ei,
    a: sr,
    d: h.defineInstanceProperties,
    dp: h.defineParentInstanceProperties,
    gcls: function(A) {
      return Ti(c, A);
    },
    m: ze
  };
  w.d({
    slots: {
      get: function() {
        return h.vm.$slots;
      },
      configurable: !0
    },
    scopedSlots: {
      get: function() {
        return h.vm.$scopedSlots;
      },
      configurable: !0
    }
  }), w.dp({
    slots: {
      get: function() {
        return h.parent.$slots;
      },
      configurable: !0
    },
    scopedSlots: {
      get: function() {
        return h.parent.$scopedSlots;
      },
      configurable: !0
    }
  }), lr(), Array.isArray(a) && (Array.isArray(g == null ? void 0 : g.api) && (a = a.concat(g.api)), a.forEach(function(m) {
    var A = x[m];
    typeof A < "u" && (w[m] = A, u || h.setParentAttribute({
      name: m,
      value: A
    }));
  }));
  var _ = fa();
  return _ && r.tiny_mcp_config && te.createMcpTools && te.createMcpTools(w.vm, r.tiny_mcp_config, _), w;
};
function va(e) {
  var t = e.name, r = t === void 0 ? "Icon" : t, n = e.component;
  return function(i) {
    return Oi(Xi({
      name: re + r,
      setup: function(o, s) {
        var l = s.attrs || {}, u = l.fill, f = l.width, c = l.height, d = l["custom-class"], v = l["first-color"], g = l["second-color"], y = Object.assign({}, o, i || null), h = qe(y, s), x = h === "mobile-first", w = {
          "data-tag": x ? "tiny-svg" : null
        }, _ = w, m = "tiny-svg";
        x && (m = ze("h-4 w-4 inline-block", d || "", y.class || ""));
        var A = Object.assign({
          style: {
            fill: u,
            width: f,
            height: c,
            "--tiny-first-color": v || "",
            "--tiny-second-color": g || ""
          },
          class: m,
          isSvg: !0
        }, _);
        return A.nativeOn = s.listeners, Ji.includes(r) && (n.__raw_render || (n.__raw_render = n.render), n.render = function() {
          var I = n.__raw_render.bind(this), S = I.apply(void 0, arguments);
          return ea(S), S;
        }), Kt({
          component: n,
          props: y,
          context: s,
          extend: A
        });
      }
    }));
  };
}
var sr = function(t, r, n) {
  var i = {}, a = function(l) {
    var u = r.some(function(f) {
      return new RegExp(f).test(l);
    });
    (n && u || !n && !u) && (i[l] = t[l]);
  };
  for (var o in t)
    a(o);
  return i;
}, ge = {}, lr = function() {
  for (var t in ge) {
    var r = ge[t];
    typeof r.install == "function" && r.install(ki()), typeof r.init == "function" && r.init(Ii());
  }
  ge = {};
}, pa = function(t) {
  t.install = function(r) {
    r.component(t.name, t);
  };
};
const Ta = {
  h: qi,
  directive: Ni,
  parseVnode: Bi,
  isEmptyVnode: Gi,
  useRouter: Yt,
  emitter: Ue,
  createComponent: ua,
  defineAsyncComponent: qt,
  filterAttrs: sr,
  initComponent: lr,
  setupComponent: ge,
  svg: va,
  $prefix: re,
  $props: aa,
  props: oa,
  $setup: ca,
  setup: da,
  hooks: p,
  getElementStatusClass: Ci,
  $install: pa,
  isVnode: Yi
};
export {
  pa as $install,
  re as $prefix,
  aa as $props,
  ca as $setup,
  ya as KeepAlive,
  ha as Teleport,
  Ii as appProperties,
  ua as createComponent,
  ar as customDesignConfig,
  ba as deduplicateCssClass,
  Ta as default,
  qt as defineAsyncComponent,
  Xi as defineComponent,
  we as design,
  Ni as directive,
  Ue as emitter,
  sr as filterAttrs,
  Ci as getElementStatusClass,
  qi as h,
  p as hooks,
  lr as initComponent,
  Gi as isEmptyVnode,
  Yi as isVnode,
  er as isVue2,
  ma as isVue3,
  ze as mergeClass,
  Bi as parseVnode,
  oa as props,
  Ea as provideDesignConfig,
  Ca as registerMcpConfig,
  qe as resolveMode,
  sa as resolveTheme,
  da as setup,
  ge as setupComponent,
  De as stringifyCssClass,
  Qi as stringifyCssClassArray,
  je as stringifyCssClassObject,
  va as svg,
  Zi as useBreakpoint,
  wa as useDefer,
  xa as useInstanceSlots,
  Aa as useRelation,
  Yt as useRouter,
  _a as version
};
