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