import { D as N_, E as I_, d as L_, O as Iz, w as Lz, l as Ww, aS as Rz, aT as Mz, aO as zz } from "./index-209f628e.js";
var ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function $z(t10) {
  return t10 && t10.__esModule && Object.prototype.hasOwnProperty.call(t10, "default") ? t10.default : t10;
}
function Ju(t10) {
  var e = { exports: {} };
  return t10(e, e.exports), e.exports;
}
var yi, xg, yh = function(t10) {
  return t10 && t10.Math == Math && t10;
}, kt = yh(typeof globalThis == "object" && globalThis) || yh(typeof window == "object" && window) || yh(typeof self == "object" && self) || yh(typeof ae == "object" && ae) || /* @__PURE__ */ (function() {
  return this;
})() || Function("return this")(), O3 = Function.prototype, $C = O3.apply, Hz = O3.bind, HC = O3.call, R_ = typeof Reflect == "object" && Reflect.apply || (Hz ? HC.bind($C) : function() {
  return HC.apply($C, arguments);
}), M_ = Function.prototype, Gw = M_.bind, qw = M_.call, Vz = Gw && Gw.bind(qw), pe = Gw ? function(t10) {
  return t10 && Vz(qw, t10);
} : function(t10) {
  return t10 && function() {
    return qw.apply(t10, arguments);
  };
}, dr = function(t10) {
  return typeof t10 == "function";
}, Ur = function(t10) {
  try {
    return !!t10();
  } catch {
    return true;
  }
}, zr = !Ur((function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
})), yc = Function.prototype.call, Qr = yc.bind ? yc.bind(yc) : function() {
  return yc.apply(yc, arguments);
}, VC = {}.propertyIsEnumerable, UC = Object.getOwnPropertyDescriptor, Uz = UC && !VC.call({ 1: 2 }, 1) ? function(t10) {
  var e = UC(this, t10);
  return !!e && e.enumerable;
} : VC, k3 = { f: Uz }, Un = function(t10, e) {
  return { enumerable: !(1 & t10), configurable: !(2 & t10), writable: !(4 & t10), value: e };
}, Wz = pe({}.toString), Gz = pe("".slice), du = function(t10) {
  return Gz(Wz(t10), 8, -1);
}, xm = kt.Object, qz = pe("".split), z_ = Ur((function() {
  return !xm("z").propertyIsEnumerable(0);
})) ? function(t10) {
  return du(t10) == "String" ? qz(t10, "") : xm(t10);
} : xm, Kz = kt.TypeError, B3 = function(t10) {
  if (t10 == null) throw Kz("Can't call method on " + t10);
  return t10;
}, To = function(t10) {
  return z_(B3(t10));
}, wn = function(t10) {
  return typeof t10 == "object" ? t10 !== null : dr(t10);
}, Zr = {}, WC = function(t10) {
  return dr(t10) ? t10 : void 0;
}, ql = function(t10, e) {
  return arguments.length < 2 ? WC(Zr[t10]) || WC(kt[t10]) : Zr[t10] && Zr[t10][e] || kt[t10] && kt[t10][e];
}, bd = pe({}.isPrototypeOf), Sm = ql("navigator", "userAgent") || "", GC = kt.process, qC = kt.Deno, KC = GC && GC.versions || qC && qC.version, YC = KC && KC.v8;
YC && (xg = (yi = YC.split("."))[0] > 0 && yi[0] < 4 ? 1 : +(yi[0] + yi[1])), !xg && Sm && (!(yi = Sm.match(/Edge\/(\d+)/)) || yi[1] >= 74) && (yi = Sm.match(/Chrome\/(\d+)/)) && (xg = +yi[1]);
var mh, ov = xg, uo = !!Object.getOwnPropertySymbols && !Ur((function() {
  var t10 = /* @__PURE__ */ Symbol();
  return !String(t10) || !(Object(t10) instanceof Symbol) || !Symbol.sham && ov && ov < 41;
})), F3 = uo && !Symbol.sham && typeof Symbol.iterator == "symbol", Yz = kt.Object, il = F3 ? function(t10) {
  return typeof t10 == "symbol";
} : function(t10) {
  var e = ql("Symbol");
  return dr(e) && bd(e.prototype, Yz(t10));
}, Xz = kt.String, Kw = function(t10) {
  try {
    return Xz(t10);
  } catch {
    return "Object";
  }
}, Zz = kt.TypeError, T3 = function(t10) {
  if (dr(t10)) return t10;
  throw Zz(Kw(t10) + " is not a function");
}, iv = function(t10, e) {
  var r = t10[e];
  return r == null ? void 0 : T3(r);
}, Jz = kt.TypeError, Qz = Object.defineProperty, Gi = kt["__core-js_shared__"] || (function(t10, e) {
  try {
    Qz(kt, t10, { value: e, configurable: true, writable: true });
  } catch {
    kt[t10] = e;
  }
  return e;
})("__core-js_shared__", {}), Qu = Ju((function(t10) {
  (t10.exports = function(e, r) {
    return Gi[e] || (Gi[e] = r !== void 0 ? r : {});
  })("versions", []).push({ version: "3.19.3", mode: "pure", copyright: "\xA9 2021 Denis Pushkarev (zloirock.ru)" });
})), t$ = kt.Object, yp = function(t10) {
  return t$(B3(t10));
}, e$ = pe({}.hasOwnProperty), Vt = Object.hasOwn || function(t10, e) {
  return e$(yp(t10), e);
}, r$ = 0, n$ = Math.random(), o$ = pe(1 .toString), av = function(t10) {
  return "Symbol(" + (t10 === void 0 ? "" : t10) + ")_" + o$(++r$ + n$, 36);
}, mc = Qu("wks"), pu = kt.Symbol, XC = pu && pu.for, i$ = F3 ? pu : pu && pu.withoutSetter || av, Or = function(t10) {
  if (!Vt(mc, t10) || !uo && typeof mc[t10] != "string") {
    var e = "Symbol." + t10;
    uo && Vt(pu, t10) ? mc[t10] = pu[t10] : mc[t10] = F3 && XC ? XC(e) : i$(e);
  }
  return mc[t10];
}, a$ = kt.TypeError, u$ = Or("toPrimitive"), s$ = function(t10, e) {
  if (!wn(t10) || il(t10)) return t10;
  var r, n = iv(t10, u$);
  if (n) {
    if (r = Qr(n, t10, e), !wn(r) || il(r)) return r;
    throw a$("Can't convert object to primitive value");
  }
  return (function(o, i) {
    var a, u;
    if (dr(a = o.toString) && !wn(u = Qr(a, o)) || dr(a = o.valueOf) && !wn(u = Qr(a, o))) return u;
    throw Jz("Can't convert object to primitive value");
  })(t10);
}, Kl = function(t10) {
  var e = s$(t10, "string");
  return il(e) ? e : e + "";
}, Yw = kt.document, l$ = wn(Yw) && wn(Yw.createElement), $_ = function(t10) {
  return l$ ? Yw.createElement(t10) : {};
}, H_ = !zr && !Ur((function() {
  return Object.defineProperty($_("div"), "a", { get: function() {
    return 7;
  } }).a != 7;
})), ZC = Object.getOwnPropertyDescriptor, c$ = zr ? ZC : function(t10, e) {
  if (t10 = To(t10), e = Kl(e), H_) try {
    return ZC(t10, e);
  } catch {
  }
  if (Vt(t10, e)) return Un(!Qr(k3.f, t10, e), t10[e]);
}, gy = { f: c$ }, f$ = /#|\.prototype\./, mp = function(t10, e) {
  var r = p$[d$(t10)];
  return r == g$ || r != h$ && (dr(e) ? Ur(e) : !!e);
}, d$ = mp.normalize = function(t10) {
  return String(t10).replace(f$, ".").toLowerCase();
}, p$ = mp.data = {}, h$ = mp.NATIVE = "N", g$ = mp.POLYFILL = "P", v$ = mp, JC = pe(pe.bind), _3 = function(t10, e) {
  return T3(t10), e === void 0 ? t10 : JC ? JC(t10, e) : function() {
    return t10.apply(e, arguments);
  };
}, y$ = kt.String, m$ = kt.TypeError, rn = function(t10) {
  if (wn(t10)) return t10;
  throw m$(y$(t10) + " is not an object");
}, b$ = kt.TypeError, QC = Object.defineProperty, w$ = zr ? QC : function(t10, e, r) {
  if (rn(t10), e = Kl(e), rn(r), H_) try {
    return QC(t10, e, r);
  } catch {
  }
  if ("get" in r || "set" in r) throw b$("Accessors not supported");
  return "value" in r && (t10[e] = r.value), t10;
}, Sa = { f: w$ }, Fr = zr ? function(t10, e, r) {
  return Sa.f(t10, e, Un(1, r));
} : function(t10, e, r) {
  return t10[e] = r, t10;
}, E$ = gy.f, D$ = function(t10) {
  var e = function(r, n, o) {
    if (this instanceof e) {
      switch (arguments.length) {
        case 0:
          return new t10();
        case 1:
          return new t10(r);
        case 2:
          return new t10(r, n);
      }
      return new t10(r, n, o);
    }
    return R_(t10, this, arguments);
  };
  return e.prototype = t10.prototype, e;
}, Wo = function(t10, e) {
  var r, n, o, i, a, u, s, l, c = t10.target, f = t10.global, d = t10.stat, p = t10.proto, v = f ? kt : d ? kt[c] : (kt[c] || {}).prototype, y = f ? Zr : Zr[c] || Fr(Zr, c, {})[c], g = y.prototype;
  for (o in e) r = !v$(f ? o : c + (d ? "." : "#") + o, t10.forced) && v && Vt(v, o), a = y[o], r && (u = t10.noTargetGet ? (l = E$(v, o)) && l.value : v[o]), i = r && u ? u : e[o], r && typeof a == typeof i || (s = t10.bind && r ? _3(i, kt) : t10.wrap && r ? D$(i) : p && dr(i) ? pe(i) : i, (t10.sham || i && i.sham || a && a.sham) && Fr(s, "sham", true), Fr(y, o, s), p && (Vt(Zr, n = c + "Prototype") || Fr(Zr, n, {}), Fr(Zr[n], o, i), t10.real && g && !g[o] && Fr(g, o, i)));
}, tx = Qu("keys"), vy = function(t10) {
  return tx[t10] || (tx[t10] = av(t10));
}, C$ = !Ur((function() {
  function t10() {
  }
  return t10.prototype.constructor = null, Object.getPrototypeOf(new t10()) !== t10.prototype;
})), ex = vy("IE_PROTO"), Xw = kt.Object, x$ = Xw.prototype, uv = C$ ? Xw.getPrototypeOf : function(t10) {
  var e = yp(t10);
  if (Vt(e, ex)) return e[ex];
  var r = e.constructor;
  return dr(r) && e instanceof r ? r.prototype : e instanceof Xw ? x$ : null;
}, S$ = kt.String, A$ = kt.TypeError, sv = Object.setPrototypeOf || ("__proto__" in {} ? (function() {
  var t10, e = false, r = {};
  try {
    (t10 = pe(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(r, []), e = r instanceof Array;
  } catch {
  }
  return function(n, o) {
    return rn(n), (function(i) {
      if (typeof i == "object" || dr(i)) return i;
      throw A$("Can't set " + S$(i) + " as a prototype");
    })(o), e ? t10(n, o) : n.__proto__ = o, n;
  };
})() : void 0), O$ = Math.ceil, k$ = Math.floor, P3 = function(t10) {
  var e = +t10;
  return e != e || e === 0 ? 0 : (e > 0 ? k$ : O$)(e);
}, B$ = Math.max, F$ = Math.min, Zw = function(t10, e) {
  var r = P3(t10);
  return r < 0 ? B$(r + e, 0) : F$(r, e);
}, T$ = Math.min, bp = function(t10) {
  return (e = t10.length) > 0 ? T$(P3(e), 9007199254740991) : 0;
  var e;
}, _$ = function(t10) {
  return function(e, r, n) {
    var o, i = To(e), a = bp(i), u = Zw(n, a);
    if (t10 && r != r) {
      for (; a > u; ) if ((o = i[u++]) != o) return true;
    } else for (; a > u; u++) if ((t10 || u in i) && i[u] === r) return t10 || u || 0;
    return !t10 && -1;
  };
}, P$ = { indexOf: _$(false) }, wp = {}, j$ = P$.indexOf, rx = pe([].push), V_ = function(t10, e) {
  var r, n = To(t10), o = 0, i = [];
  for (r in n) !Vt(wp, r) && Vt(n, r) && rx(i, r);
  for (; e.length > o; ) Vt(n, r = e[o++]) && (~j$(i, r) || rx(i, r));
  return i;
}, lv = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], N$ = lv.concat("length", "prototype"), I$ = Object.getOwnPropertyNames || function(t10) {
  return V_(t10, N$);
}, j3 = { f: I$ }, Sg = { f: Object.getOwnPropertySymbols }, L$ = pe([].concat), R$ = ql("Reflect", "ownKeys") || function(t10) {
  var e = j3.f(rn(t10)), r = Sg.f;
  return r ? L$(e, r(t10)) : e;
}, N3 = Object.keys || function(t10) {
  return V_(t10, lv);
}, M$ = zr ? Object.defineProperties : function(t10, e) {
  rn(t10);
  for (var r, n = To(e), o = N3(e), i = o.length, a = 0; i > a; ) Sa.f(t10, r = o[a++], n[r]);
  return t10;
}, z$ = ql("document", "documentElement"), U_ = vy("IE_PROTO"), Am = function() {
}, W_ = function(t10) {
  return "<script>" + t10 + "<\/script>";
}, nx = function(t10) {
  t10.write(W_("")), t10.close();
  var e = t10.parentWindow.Object;
  return t10 = null, e;
}, Ag = function() {
  try {
    mh = new ActiveXObject("htmlfile");
  } catch {
  }
  var t10, e;
  Ag = typeof document < "u" ? document.domain && mh ? nx(mh) : ((e = $_("iframe")).style.display = "none", z$.appendChild(e), e.src = "javascript:", (t10 = e.contentWindow.document).open(), t10.write(W_("document.F=Object")), t10.close(), t10.F) : nx(mh);
  for (var r = lv.length; r--; ) delete Ag.prototype[lv[r]];
  return Ag();
};
wp[U_] = true;
var ni = Object.create || function(t10, e) {
  var r;
  return t10 !== null ? (Am.prototype = rn(t10), r = new Am(), Am.prototype = null, r[U_] = t10) : r = Ag(), e === void 0 ? r : M$(r, e);
}, Jw = function(t10, e, r) {
  var n = Kl(e);
  n in t10 ? Sa.f(t10, n, Un(0, r)) : t10[n] = r;
}, $$ = kt.Array, H$ = Math.max, G_ = function(t10, e, r) {
  for (var n = bp(t10), o = Zw(e, n), i = Zw(n, n), a = $$(H$(i - o, 0)), u = 0; o < i; o++, u++) Jw(a, u, t10[o]);
  return a.length = u, a;
}, V$ = pe("".replace), U$ = pe("".split), W$ = pe([].join), Qw = String(Error("zxcasd").stack), q_ = /\n\s*at [^:]*:[^\n]*/, G$ = q_.test(Qw), q$ = /@[^\n]*\n/.test(Qw) && !/zxcasd/.test(Qw), K$ = function(t10, e) {
  if (typeof t10 != "string") return t10;
  if (G$) for (; e--; ) t10 = V$(t10, q_, "");
  else if (q$) return W$(G_(U$(t10, `
`), e), `
`);
  return t10;
}, Y$ = function(t10, e) {
  wn(e) && "cause" in e && Fr(t10, "cause", e.cause);
}, Qo = {}, X$ = Or("iterator"), Z$ = Array.prototype, K_ = {};
K_[Or("toStringTag")] = "z";
var I3 = String(K_) === "[object z]", J$ = Or("toStringTag"), Q$ = kt.Object, tH = du(/* @__PURE__ */ (function() {
  return arguments;
})()) == "Arguments", Ep = I3 ? du : function(t10) {
  var e, r, n;
  return t10 === void 0 ? "Undefined" : t10 === null ? "Null" : typeof (r = (function(o, i) {
    try {
      return o[i];
    } catch {
    }
  })(e = Q$(t10), J$)) == "string" ? r : tH ? du(e) : (n = du(e)) == "Object" && dr(e.callee) ? "Arguments" : n;
}, eH = Or("iterator"), ox = function(t10) {
  if (t10 != null) return iv(t10, eH) || iv(t10, "@@iterator") || Qo[Ep(t10)];
}, rH = kt.TypeError, ix = function(t10, e, r) {
  var n, o;
  rn(t10);
  try {
    if (!(n = iv(t10, "return"))) {
      if (e === "throw") throw r;
      return r;
    }
    n = Qr(n, t10);
  } catch (i) {
    o = true, n = i;
  }
  if (e === "throw") throw r;
  if (o) throw n;
  return rn(n), r;
}, nH = kt.TypeError, Og = function(t10, e) {
  this.stopped = t10, this.result = e;
}, ax = Og.prototype, oH = function(t10, e, r) {
  var n, o, i, a, u, s, l, c = r && r.that, f = !(!r || !r.AS_ENTRIES), d = !(!r || !r.IS_ITERATOR), p = !(!r || !r.INTERRUPTED), v = _3(e, c), y = function(m) {
    return n && ix(n, "normal", m), new Og(true, m);
  }, g = function(m) {
    return f ? (rn(m), p ? v(m[0], m[1], y) : v(m[0], m[1])) : p ? v(m, y) : v(m);
  };
  if (d) n = t10;
  else {
    if (!(o = ox(t10))) throw nH(Kw(t10) + " is not iterable");
    if ((function(m) {
      return m !== void 0 && (Qo.Array === m || Z$[X$] === m);
    })(o)) {
      for (i = 0, a = bp(t10); a > i; i++) if ((u = g(t10[i])) && bd(ax, u)) return u;
      return new Og(false);
    }
    n = (function(m, h) {
      var b = arguments.length < 2 ? ox(m) : h;
      if (T3(b)) return rn(Qr(b, m));
      throw rH(Kw(m) + " is not iterable");
    })(t10, o);
  }
  for (s = n.next; !(l = Qr(s, n)).done; ) {
    try {
      u = g(l.value);
    } catch (m) {
      ix(n, "throw", m);
    }
    if (typeof u == "object" && u && bd(ax, u)) return u;
  }
  return new Og(false);
}, iH = kt.String, wd = function(t10) {
  if (Ep(t10) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  return iH(t10);
}, aH = function(t10, e) {
  return t10 === void 0 ? arguments.length < 2 ? "" : e : wd(t10);
}, uH = !Ur((function() {
  var t10 = Error("a");
  return !("stack" in t10) || (Object.defineProperty(t10, "stack", Un(1, 7)), t10.stack !== 7);
})), sH = Or("toStringTag"), cv = kt.Error, lH = [].push, Ed = function(t10, e) {
  var r, n = arguments.length > 2 ? arguments[2] : void 0, o = bd(Om, this);
  sv ? r = sv(new cv(void 0), o ? uv(this) : Om) : (r = o ? this : ni(Om), Fr(r, sH, "Error")), Fr(r, "message", aH(e, "")), uH && Fr(r, "stack", K$(r.stack, 1)), Y$(r, n);
  var i = [];
  return oH(t10, lH, { that: i }), Fr(r, "errors", i), r;
};
sv ? sv(Ed, cv) : (function(t10, e) {
  for (var r = R$(e), n = Sa.f, o = gy.f, i = 0; i < r.length; i++) {
    var a = r[i];
    Vt(t10, a) || n(t10, a, o(e, a));
  }
})(Ed, cv);
var Om = Ed.prototype = ni(cv.prototype, { constructor: Un(1, Ed), message: Un(1, ""), name: Un(1, "AggregateError") });
Wo({ global: true }, { AggregateError: Ed });
var cH = pe(Function.toString);
dr(Gi.inspectSource) || (Gi.inspectSource = function(t10) {
  return cH(t10);
});
var fv, Yf, dv, Y_ = Gi.inspectSource, ux = kt.WeakMap, fH = dr(ux) && /native code/.test(Y_(ux)), t4 = kt.TypeError, dH = kt.WeakMap;
if (fH || Gi.state) {
  var La = Gi.state || (Gi.state = new dH()), pH = pe(La.get), sx = pe(La.has), hH = pe(La.set);
  fv = function(t10, e) {
    if (sx(La, t10)) throw new t4("Object already initialized");
    return e.facade = t10, hH(La, t10, e), e;
  }, Yf = function(t10) {
    return pH(La, t10) || {};
  }, dv = function(t10) {
    return sx(La, t10);
  };
} else {
  var gs = vy("state");
  wp[gs] = true, fv = function(t10, e) {
    if (Vt(t10, gs)) throw new t4("Object already initialized");
    return e.facade = t10, Fr(t10, gs, e), e;
  }, Yf = function(t10) {
    return Vt(t10, gs) ? t10[gs] : {};
  }, dv = function(t10) {
    return Vt(t10, gs);
  };
}
var zi, lx, cx, Yl = { set: fv, get: Yf, has: dv, enforce: function(t10) {
  return dv(t10) ? Yf(t10) : fv(t10, {});
}, getterFor: function(t10) {
  return function(e) {
    var r;
    if (!wn(e) || (r = Yf(e)).type !== t10) throw t4("Incompatible receiver, " + t10 + " required");
    return r;
  };
} }, X_ = Function.prototype, gH = zr && Object.getOwnPropertyDescriptor, fx = Vt(X_, "name"), vH = { PROPER: fx && (function() {
}).name === "something", CONFIGURABLE: fx && (!zr || zr && gH(X_, "name").configurable) }, pv = function(t10, e, r, n) {
  Fr(t10, e, r);
}, e4 = Or("iterator"), Z_ = false;
[].keys && ("next" in (cx = [].keys()) ? (lx = uv(uv(cx))) !== Object.prototype && (zi = lx) : Z_ = true);
var yH = zi == null || Ur((function() {
  var t10 = {};
  return zi[e4].call(t10) !== t10;
}));
zi = yH ? {} : ni(zi), dr(zi[e4]) || pv(zi, e4, (function() {
  return this;
}));
var J_ = { IteratorPrototype: zi, BUGGY_SAFARI_ITERATORS: Z_ }, mH = I3 ? {}.toString : function() {
  return "[object " + Ep(this) + "]";
}, bH = Sa.f, dx = Or("toStringTag"), hv = function(t10, e, r, n) {
  if (t10) {
    var o = r ? t10 : t10.prototype;
    Vt(o, dx) || bH(o, dx, { configurable: true, value: e }), n && !I3 && Fr(o, "toString", mH);
  }
}, wH = J_.IteratorPrototype, EH = function() {
  return this;
}, DH = vH.PROPER, km = J_.BUGGY_SAFARI_ITERATORS, CH = Or("iterator"), xH = function() {
  return this;
}, Q_ = function(t10, e, r, n, o, i, a) {
  (function(g, m, h, b) {
    var w = m + " Iterator";
    g.prototype = ni(wH, { next: Un(1, h) }), hv(g, w, false, true), Qo[w] = EH;
  })(r, e, n);
  var u, s, l = function(g) {
    if (g === o && v) return v;
    if (!km && g in d) return d[g];
    switch (g) {
      case "keys":
      case "values":
      case "entries":
        return function() {
          return new r(this, g);
        };
    }
    return function() {
      return new r(this);
    };
  }, c = e + " Iterator", f = false, d = t10.prototype, p = d[CH] || d["@@iterator"] || o && d[o], v = !km && p || l(o), y = e == "Array" && d.entries || p;
  return y && (u = uv(y.call(new t10()))) !== Object.prototype && u.next && (hv(u, c, true, true), Qo[c] = xH), DH && o == "values" && p && p.name !== "values" && (f = true, v = function() {
    return Qr(p, this);
  }), o && (s = { values: l("values"), keys: l("keys"), entries: l("entries") }, a || Wo({ target: e, proto: true, forced: km || f }, s)), Qo[e] = v, s;
}, SH = Yl.set, AH = Yl.getterFor("Array Iterator");
Q_(Array, "Array", (function(t10, e) {
  SH(this, { type: "Array Iterator", target: To(t10), index: 0, kind: e });
}), (function() {
  var t10 = AH(this), e = t10.target, r = t10.kind, n = t10.index++;
  return !e || n >= e.length ? (t10.target = void 0, { value: void 0, done: true }) : r == "keys" ? { value: n, done: false } : r == "values" ? { value: e[n], done: false } : { value: [n, e[n]], done: false };
}), "values"), Qo.Arguments = Qo.Array;
var OH = pe("".charAt), px = pe("".charCodeAt), kH = pe("".slice), BH = function(t10) {
  return function(e, r) {
    var n, o, i = wd(B3(e)), a = P3(r), u = i.length;
    return a < 0 || a >= u ? t10 ? "" : void 0 : (n = px(i, a)) < 55296 || n > 56319 || a + 1 === u || (o = px(i, a + 1)) < 56320 || o > 57343 ? t10 ? OH(i, a) : n : t10 ? kH(i, a, a + 2) : o - 56320 + (n - 55296 << 10) + 65536;
  };
}, FH = { charAt: BH(true) }.charAt, TH = Yl.set, _H = Yl.getterFor("String Iterator");
Q_(String, "String", (function(t10) {
  TH(this, { type: "String Iterator", string: wd(t10), index: 0 });
}), (function() {
  var t10, e = _H(this), r = e.string, n = e.index;
  return n >= r.length ? { value: void 0, done: true } : (t10 = FH(r, n), e.index += t10.length, { value: t10, done: false });
}));
var PH = Zr.AggregateError, hx = Or("toStringTag");
for (var Bm in { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }) {
  var gx = kt[Bm], Fm = gx && gx.prototype;
  Fm && Ep(Fm) !== hx && Fr(Fm, hx, Bm), Qo[Bm] = Qo.Array;
}
var mi, kg, jH = PH, bh = function(t10) {
  return t10 && t10.Math == Math && t10;
}, Et = bh(typeof globalThis == "object" && globalThis) || bh(typeof window == "object" && window) || bh(typeof self == "object" && self) || bh(typeof ae == "object" && ae) || /* @__PURE__ */ (function() {
  return this;
})() || Function("return this")(), ur = function(t10) {
  try {
    return !!t10();
  } catch {
    return true;
  }
}, xo = !ur((function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
})), bc = Function.prototype.call, fr = bc.bind ? bc.bind(bc) : function() {
  return bc.apply(bc, arguments);
}, vx = {}.propertyIsEnumerable, yx = Object.getOwnPropertyDescriptor, NH = yx && !vx.call({ 1: 2 }, 1) ? function(t10) {
  var e = yx(this, t10);
  return !!e && e.enumerable;
} : vx, IH = { f: NH }, qi = function(t10, e) {
  return { enumerable: !(1 & t10), configurable: !(2 & t10), writable: !(4 & t10), value: e };
}, tP = Function.prototype, r4 = tP.bind, n4 = tP.call, LH = r4 && r4.bind(n4), re = r4 ? function(t10) {
  return t10 && LH(n4, t10);
} : function(t10) {
  return t10 && function() {
    return n4.apply(t10, arguments);
  };
}, RH = re({}.toString), MH = re("".slice), hu = function(t10) {
  return MH(RH(t10), 8, -1);
}, Tm = Et.Object, zH = re("".split), eP = ur((function() {
  return !Tm("z").propertyIsEnumerable(0);
})) ? function(t10) {
  return hu(t10) == "String" ? zH(t10, "") : Tm(t10);
} : Tm, $H = Et.TypeError, yy = function(t10) {
  if (t10 == null) throw $H("Can't call method on " + t10);
  return t10;
}, Xl = function(t10) {
  return eP(yy(t10));
}, tr = function(t10) {
  return typeof t10 == "function";
}, ho = function(t10) {
  return typeof t10 == "object" ? t10 !== null : tr(t10);
}, HH = function(t10) {
  return tr(t10) ? t10 : void 0;
}, Dp = function(t10, e) {
  return arguments.length < 2 ? HH(Et[t10]) : Et[t10] && Et[t10][e];
}, gv = re({}.isPrototypeOf), _m = Dp("navigator", "userAgent") || "", mx = Et.process, bx = Et.Deno, wx = mx && mx.versions || bx && bx.version, Ex = wx && wx.v8;
Ex && (kg = (mi = Ex.split("."))[0] > 0 && mi[0] < 4 ? 1 : +(mi[0] + mi[1])), !kg && _m && (!(mi = _m.match(/Edge\/(\d+)/)) || mi[1] >= 74) && (mi = _m.match(/Chrome\/(\d+)/)) && (kg = +mi[1]);
var Dx = kg, o4 = !!Object.getOwnPropertySymbols && !ur((function() {
  var t10 = /* @__PURE__ */ Symbol();
  return !String(t10) || !(Object(t10) instanceof Symbol) || !Symbol.sham && Dx && Dx < 41;
})), L3 = o4 && !Symbol.sham && typeof Symbol.iterator == "symbol", VH = Et.Object, i4 = L3 ? function(t10) {
  return typeof t10 == "symbol";
} : function(t10) {
  var e = Dp("Symbol");
  return tr(e) && gv(e.prototype, VH(t10));
}, UH = Et.String, a4 = function(t10) {
  try {
    return UH(t10);
  } catch {
    return "Object";
  }
}, WH = Et.TypeError, R3 = function(t10) {
  if (tr(t10)) return t10;
  throw WH(a4(t10) + " is not a function");
}, Dd = function(t10, e) {
  var r = t10[e];
  return r == null ? void 0 : R3(r);
}, GH = Et.TypeError, qH = Object.defineProperty, M3 = function(t10, e) {
  try {
    qH(Et, t10, { value: e, configurable: true, writable: true });
  } catch {
    Et[t10] = e;
  }
  return e;
}, Ki = Et["__core-js_shared__"] || M3("__core-js_shared__", {}), z3 = Ju((function(t10) {
  (t10.exports = function(e, r) {
    return Ki[e] || (Ki[e] = r !== void 0 ? r : {});
  })("versions", []).push({ version: "3.19.3", mode: "global", copyright: "\xA9 2021 Denis Pushkarev (zloirock.ru)" });
})), KH = Et.Object, $3 = function(t10) {
  return KH(yy(t10));
}, YH = re({}.hasOwnProperty), $r = Object.hasOwn || function(t10, e) {
  return YH($3(t10), e);
}, XH = 0, ZH = Math.random(), JH = re(1 .toString), rP = function(t10) {
  return "Symbol(" + (t10 === void 0 ? "" : t10) + ")_" + JH(++XH + ZH, 36);
}, wc = z3("wks"), gu = Et.Symbol, Cx = gu && gu.for, QH = L3 ? gu : gu && gu.withoutSetter || rP, Pr = function(t10) {
  if (!$r(wc, t10) || !o4 && typeof wc[t10] != "string") {
    var e = "Symbol." + t10;
    o4 && $r(gu, t10) ? wc[t10] = gu[t10] : wc[t10] = L3 && Cx ? Cx(e) : QH(e);
  }
  return wc[t10];
}, tV = Et.TypeError, eV = Pr("toPrimitive"), rV = function(t10, e) {
  if (!ho(t10) || i4(t10)) return t10;
  var r, n = Dd(t10, eV);
  if (n) {
    if (r = fr(n, t10, e), !ho(r) || i4(r)) return r;
    throw tV("Can't convert object to primitive value");
  }
  return (function(o, i) {
    var a, u;
    if (tr(a = o.toString) && !ho(u = fr(a, o)) || tr(a = o.valueOf) && !ho(u = fr(a, o))) return u;
    throw GH("Can't convert object to primitive value");
  })(t10);
}, H3 = function(t10) {
  var e = rV(t10, "string");
  return i4(e) ? e : e + "";
}, u4 = Et.document, nV = ho(u4) && ho(u4.createElement), V3 = function(t10) {
  return nV ? u4.createElement(t10) : {};
}, nP = !xo && !ur((function() {
  return Object.defineProperty(V3("div"), "a", { get: function() {
    return 7;
  } }).a != 7;
})), xx = Object.getOwnPropertyDescriptor, oV = xo ? xx : function(t10, e) {
  if (t10 = Xl(t10), e = H3(e), nP) try {
    return xx(t10, e);
  } catch {
  }
  if ($r(t10, e)) return qi(!fr(IH.f, t10, e), t10[e]);
}, U3 = { f: oV }, iV = Et.String, aV = Et.TypeError, nn = function(t10) {
  if (ho(t10)) return t10;
  throw aV(iV(t10) + " is not an object");
}, uV = Et.TypeError, Sx = Object.defineProperty, sV = xo ? Sx : function(t10, e, r) {
  if (nn(t10), e = H3(e), nn(r), nP) try {
    return Sx(t10, e, r);
  } catch {
  }
  if ("get" in r || "set" in r) throw uV("Accessors not supported");
  return "value" in r && (t10[e] = r.value), t10;
}, Zl = { f: sV }, Rr = xo ? function(t10, e, r) {
  return Zl.f(t10, e, qi(1, r));
} : function(t10, e, r) {
  return t10[e] = r, t10;
}, lV = re(Function.toString);
tr(Ki.inspectSource) || (Ki.inspectSource = function(t10) {
  return lV(t10);
});
var vv, Xf, yv, W3 = Ki.inspectSource, Ax = Et.WeakMap, cV = tr(Ax) && /native code/.test(W3(Ax)), Ox = z3("keys"), G3 = function(t10) {
  return Ox[t10] || (Ox[t10] = rP(t10));
}, q3 = {}, s4 = Et.TypeError, fV = Et.WeakMap;
if (cV || Ki.state) {
  var Ra = Ki.state || (Ki.state = new fV()), dV = re(Ra.get), kx = re(Ra.has), pV = re(Ra.set);
  vv = function(t10, e) {
    if (kx(Ra, t10)) throw new s4("Object already initialized");
    return e.facade = t10, pV(Ra, t10, e), e;
  }, Xf = function(t10) {
    return dV(Ra, t10) || {};
  }, yv = function(t10) {
    return kx(Ra, t10);
  };
} else {
  var vs = G3("state");
  q3[vs] = true, vv = function(t10, e) {
    if ($r(t10, vs)) throw new s4("Object already initialized");
    return e.facade = t10, Rr(t10, vs, e), e;
  }, Xf = function(t10) {
    return $r(t10, vs) ? t10[vs] : {};
  }, yv = function(t10) {
    return $r(t10, vs);
  };
}
var Iu = { set: vv, get: Xf, has: yv, enforce: function(t10) {
  return yv(t10) ? Xf(t10) : vv(t10, {});
}, getterFor: function(t10) {
  return function(e) {
    var r;
    if (!ho(e) || (r = Xf(e)).type !== t10) throw s4("Incompatible receiver, " + t10 + " required");
    return r;
  };
} }, oP = Function.prototype, hV = xo && Object.getOwnPropertyDescriptor, Bx = $r(oP, "name"), K3 = { PROPER: Bx && (function() {
}).name === "something", CONFIGURABLE: Bx && (!xo || xo && hV(oP, "name").configurable) }, Lu = Ju((function(t10) {
  var e = K3.CONFIGURABLE, r = Iu.get, n = Iu.enforce, o = String(String).split("String");
  (t10.exports = function(i, a, u, s) {
    var l, c = !!s && !!s.unsafe, f = !!s && !!s.enumerable, d = !!s && !!s.noTargetGet, p = s && s.name !== void 0 ? s.name : a;
    tr(u) && (String(p).slice(0, 7) === "Symbol(" && (p = "[" + String(p).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!$r(u, "name") || e && u.name !== p) && Rr(u, "name", p), (l = n(u)).source || (l.source = o.join(typeof p == "string" ? p : ""))), i !== Et ? (c ? !d && i[a] && (f = true) : delete i[a], f ? i[a] = u : Rr(i, a, u)) : f ? i[a] = u : M3(a, u);
  })(Function.prototype, "toString", (function() {
    return tr(this) && r(this).source || W3(this);
  }));
})), gV = Math.ceil, vV = Math.floor, Y3 = function(t10) {
  var e = +t10;
  return e != e || e === 0 ? 0 : (e > 0 ? vV : gV)(e);
}, yV = Math.max, mV = Math.min, l4 = function(t10, e) {
  var r = Y3(t10);
  return r < 0 ? yV(r + e, 0) : mV(r, e);
}, bV = Math.min, iP = function(t10) {
  return t10 > 0 ? bV(Y3(t10), 9007199254740991) : 0;
}, my = function(t10) {
  return iP(t10.length);
}, wV = function(t10) {
  return function(e, r, n) {
    var o, i = Xl(e), a = my(i), u = l4(n, a);
    if (t10 && r != r) {
      for (; a > u; ) if ((o = i[u++]) != o) return true;
    } else for (; a > u; u++) if ((t10 || u in i) && i[u] === r) return t10 || u || 0;
    return !t10 && -1;
  };
}, EV = { indexOf: wV(false) }.indexOf, Fx = re([].push), aP = function(t10, e) {
  var r, n = Xl(t10), o = 0, i = [];
  for (r in n) !$r(q3, r) && $r(n, r) && Fx(i, r);
  for (; e.length > o; ) $r(n, r = e[o++]) && (~EV(i, r) || Fx(i, r));
  return i;
}, mv = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], DV = mv.concat("length", "prototype"), CV = Object.getOwnPropertyNames || function(t10) {
  return aP(t10, DV);
}, xV = { f: CV }, SV = { f: Object.getOwnPropertySymbols }, AV = re([].concat), OV = Dp("Reflect", "ownKeys") || function(t10) {
  var e = xV.f(nn(t10)), r = SV.f;
  return r ? AV(e, r(t10)) : e;
}, uP = function(t10, e) {
  for (var r = OV(e), n = Zl.f, o = U3.f, i = 0; i < r.length; i++) {
    var a = r[i];
    $r(t10, a) || n(t10, a, o(e, a));
  }
}, kV = /#|\.prototype\./, Cp = function(t10, e) {
  var r = FV[BV(t10)];
  return r == _V || r != TV && (tr(e) ? ur(e) : !!e);
}, BV = Cp.normalize = function(t10) {
  return String(t10).replace(kV, ".").toLowerCase();
}, FV = Cp.data = {}, TV = Cp.NATIVE = "N", _V = Cp.POLYFILL = "P", PV = Cp, jV = U3.f, xp = function(t10, e) {
  var r, n, o, i, a, u = t10.target, s = t10.global, l = t10.stat;
  if (r = s ? Et : l ? Et[u] || M3(u, {}) : (Et[u] || {}).prototype) for (n in e) {
    if (i = e[n], o = t10.noTargetGet ? (a = jV(r, n)) && a.value : r[n], !PV(s ? n : u + (l ? "." : "#") + n, t10.forced) && o !== void 0) {
      if (typeof i == typeof o) continue;
      uP(i, o);
    }
    (t10.sham || o && o.sham) && Rr(i, "sham", true), Lu(r, n, i, t10);
  }
}, sP = {};
sP[Pr("toStringTag")] = "z";
var wh, X3 = String(sP) === "[object z]", NV = Pr("toStringTag"), IV = Et.Object, LV = hu(/* @__PURE__ */ (function() {
  return arguments;
})()) == "Arguments", by = X3 ? hu : function(t10) {
  var e, r, n;
  return t10 === void 0 ? "Undefined" : t10 === null ? "Null" : typeof (r = (function(o, i) {
    try {
      return o[i];
    } catch {
    }
  })(e = IV(t10), NV)) == "string" ? r : LV ? hu(e) : (n = hu(e)) == "Object" && tr(e.callee) ? "Arguments" : n;
}, RV = Et.String, vu = function(t10) {
  if (by(t10) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  return RV(t10);
}, MV = function() {
  var t10 = nn(this), e = "";
  return t10.global && (e += "g"), t10.ignoreCase && (e += "i"), t10.multiline && (e += "m"), t10.dotAll && (e += "s"), t10.unicode && (e += "u"), t10.sticky && (e += "y"), e;
}, Z3 = Et.RegExp, lP = ur((function() {
  var t10 = Z3("a", "y");
  return t10.lastIndex = 2, t10.exec("abcd") != null;
}));
lP || ur((function() {
  return !Z3("a", "y").sticky;
}));
var zV = lP || ur((function() {
  var t10 = Z3("^r", "gy");
  return t10.lastIndex = 2, t10.exec("str") != null;
})), $V = { BROKEN_CARET: zV }, HV = Object.keys || function(t10) {
  return aP(t10, mv);
}, VV = xo ? Object.defineProperties : function(t10, e) {
  nn(t10);
  for (var r, n = Xl(e), o = HV(e), i = o.length, a = 0; i > a; ) Zl.f(t10, r = o[a++], n[r]);
  return t10;
}, UV = Dp("document", "documentElement"), cP = G3("IE_PROTO"), Pm = function() {
}, fP = function(t10) {
  return "<script>" + t10 + "<\/script>";
}, Tx = function(t10) {
  t10.write(fP("")), t10.close();
  var e = t10.parentWindow.Object;
  return t10 = null, e;
}, Bg = function() {
  try {
    wh = new ActiveXObject("htmlfile");
  } catch {
  }
  var t10, e;
  Bg = typeof document < "u" ? document.domain && wh ? Tx(wh) : ((e = V3("iframe")).style.display = "none", UV.appendChild(e), e.src = "javascript:", (t10 = e.contentWindow.document).open(), t10.write(fP("document.F=Object")), t10.close(), t10.F) : Tx(wh);
  for (var r = mv.length; r--; ) delete Bg.prototype[mv[r]];
  return Bg();
};
q3[cP] = true;
var _x, jm, Sp = Object.create || function(t10, e) {
  var r;
  return t10 !== null ? (Pm.prototype = nn(t10), r = new Pm(), Pm.prototype = null, r[cP] = t10) : r = Bg(), e === void 0 ? r : VV(r, e);
}, WV = Et.RegExp, GV = ur((function() {
  var t10 = WV(".", "s");
  return !(t10.dotAll && t10.exec(`
`) && t10.flags === "s");
})), qV = Et.RegExp, KV = ur((function() {
  var t10 = qV("(?<a>b)", "g");
  return t10.exec("b").groups.a !== "b" || "b".replace(t10, "$<a>c") !== "bc";
})), YV = Iu.get, XV = z3("native-string-replace", String.prototype.replace), bv = RegExp.prototype.exec, c4 = bv, ZV = re("".charAt), JV = re("".indexOf), QV = re("".replace), Nm = re("".slice), Im = (jm = /b*/g, fr(bv, _x = /a/, "a"), fr(bv, jm, "a"), _x.lastIndex !== 0 || jm.lastIndex !== 0), Px = $V.BROKEN_CARET, Lm = /()??/.exec("")[1] !== void 0;
(Im || Lm || Px || GV || KV) && (c4 = function(t10) {
  var e, r, n, o, i, a, u, s = this, l = YV(s), c = vu(t10), f = l.raw;
  if (f) return f.lastIndex = s.lastIndex, e = fr(c4, f, c), s.lastIndex = f.lastIndex, e;
  var d = l.groups, p = Px && s.sticky, v = fr(MV, s), y = s.source, g = 0, m = c;
  if (p && (v = QV(v, "y", ""), JV(v, "g") === -1 && (v += "g"), m = Nm(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && ZV(c, s.lastIndex - 1) !== `
`) && (y = "(?: " + y + ")", m = " " + m, g++), r = new RegExp("^(?:" + y + ")", v)), Lm && (r = new RegExp("^" + y + "$(?!\\s)", v)), Im && (n = s.lastIndex), o = fr(bv, p ? r : s, m), p ? o ? (o.input = Nm(o.input, g), o[0] = Nm(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : Im && o && (s.lastIndex = s.global ? o.index + o[0].length : n), Lm && o && o.length > 1 && fr(XV, o[0], r, (function() {
    for (i = 1; i < arguments.length - 2; i++) arguments[i] === void 0 && (o[i] = void 0);
  })), o && d) for (o.groups = a = Sp(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
  return o;
});
var wv = c4;
xp({ target: "RegExp", proto: true, forced: /./.exec !== wv }, { exec: wv });
var tU = Pr("species"), jx = RegExp.prototype, eU = re("".charAt), Nx = re("".charCodeAt), rU = re("".slice), nU = function(t10) {
  return function(e, r) {
    var n, o, i = vu(yy(e)), a = Y3(r), u = i.length;
    return a < 0 || a >= u ? t10 ? "" : void 0 : (n = Nx(i, a)) < 55296 || n > 56319 || a + 1 === u || (o = Nx(i, a + 1)) < 56320 || o > 57343 ? t10 ? eU(i, a) : n : t10 ? rU(i, a, a + 2) : o - 56320 + (n - 55296 << 10) + 65536;
  };
}, dP = { charAt: nU(true) }, oU = dP.charAt, iU = function(t10, e, r) {
  return e + (r ? oU(t10, e).length : 1);
}, aU = Et.TypeError, Ix = function(t10, e) {
  var r = t10.exec;
  if (tr(r)) {
    var n = fr(r, t10, e);
    return n !== null && nn(n), n;
  }
  if (hu(t10) === "RegExp") return fr(wv, t10, e);
  throw aU("RegExp#exec called on incompatible receiver");
};
(function(t10, e, r, n) {
  var o = Pr(t10), i = !ur((function() {
    var l = {};
    return l[o] = function() {
      return 7;
    }, ""[t10](l) != 7;
  })), a = i && !ur((function() {
    var l = false, c = /a/;
    return t10 === "split" && ((c = {}).constructor = {}, c.constructor[tU] = function() {
      return c;
    }, c.flags = "", c[o] = /./[o]), c.exec = function() {
      return l = true, null;
    }, c[o](""), !l;
  }));
  if (!i || !a || r) {
    var u = re(/./[o]), s = e(o, ""[t10], (function(l, c, f, d, p) {
      var v = re(l), y = c.exec;
      return y === wv || y === jx.exec ? i && !p ? { done: true, value: u(c, f, d) } : { done: true, value: v(f, c, d) } : { done: false };
    }));
    Lu(String.prototype, t10, s[0]), Lu(jx, o, s[1]);
  }
})("match", (function(t10, e, r) {
  return [function(n) {
    var o = yy(this), i = n == null ? void 0 : Dd(n, t10);
    return i ? fr(i, n, o) : new RegExp(n)[t10](vu(o));
  }, function(n) {
    var o = nn(this), i = vu(n), a = r(e, o, i);
    if (a.done) return a.value;
    if (!o.global) return Ix(o, i);
    var u = o.unicode;
    o.lastIndex = 0;
    for (var s, l = [], c = 0; (s = Ix(o, i)) !== null; ) {
      var f = vu(s[0]);
      l[c] = f, f === "" && (o.lastIndex = iU(i, iP(o.lastIndex), u)), c++;
    }
    return c === 0 ? null : l;
  }];
})), xp({ global: true }, { globalThis: Et });
var uU = !ur((function() {
  function t10() {
  }
  return t10.prototype.constructor = null, Object.getPrototypeOf(new t10()) !== t10.prototype;
})), Lx = G3("IE_PROTO"), f4 = Et.Object, sU = f4.prototype, Cd = uU ? f4.getPrototypeOf : function(t10) {
  var e = $3(t10);
  if ($r(e, Lx)) return e[Lx];
  var r = e.constructor;
  return tr(r) && e instanceof r ? r.prototype : e instanceof f4 ? sU : null;
}, lU = Et.String, cU = Et.TypeError, ml = Object.setPrototypeOf || ("__proto__" in {} ? (function() {
  var t10, e = false, r = {};
  try {
    (t10 = re(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(r, []), e = r instanceof Array;
  } catch {
  }
  return function(n, o) {
    return nn(n), (function(i) {
      if (typeof i == "object" || tr(i)) return i;
      throw cU("Can't set " + lU(i) + " as a prototype");
    })(o), e ? t10(n, o) : n.__proto__ = o, n;
  };
})() : void 0), fU = Et.Array, dU = Math.max, pU = re("".replace), hU = re("".split), gU = re([].join), d4 = String(Error("zxcasd").stack), pP = /\n\s*at [^:]*:[^\n]*/, vU = pP.test(d4), yU = /@[^\n]*\n/.test(d4) && !/zxcasd/.test(d4), mU = function(t10, e) {
  if (typeof t10 != "string") return t10;
  if (vU) for (; e--; ) t10 = pU(t10, pP, "");
  else if (yU) return gU((function(r, n, o) {
    for (var i, a, u, s, l = my(r), c = l4(n, l), f = l4(l, l), d = fU(dU(f - c, 0)), p = 0; c < f; c++, p++) i = d, a = p, u = r[c], s = void 0, (s = H3(a)) in i ? Zl.f(i, s, qi(0, u)) : i[s] = u;
    return d.length = p, d;
  })(hU(t10, `
`), e), `
`);
  return t10;
}, bU = function(t10, e) {
  ho(e) && "cause" in e && Rr(t10, "cause", e.cause);
}, Rx = re(re.bind), hP = function(t10, e) {
  return R3(t10), e === void 0 ? t10 : Rx ? Rx(t10, e) : function() {
    return t10.apply(e, arguments);
  };
}, bl = {}, wU = Pr("iterator"), EU = Array.prototype, DU = Pr("iterator"), Mx = function(t10) {
  if (t10 != null) return Dd(t10, DU) || Dd(t10, "@@iterator") || bl[by(t10)];
}, CU = Et.TypeError, zx = function(t10, e, r) {
  var n, o;
  nn(t10);
  try {
    if (!(n = Dd(t10, "return"))) {
      if (e === "throw") throw r;
      return r;
    }
    n = fr(n, t10);
  } catch (i) {
    o = true, n = i;
  }
  if (e === "throw") throw r;
  if (o) throw n;
  return nn(n), r;
}, xU = Et.TypeError, Fg = function(t10, e) {
  this.stopped = t10, this.result = e;
}, $x = Fg.prototype, SU = function(t10, e, r) {
  var n, o, i, a, u, s, l, c = r && r.that, f = !(!r || !r.AS_ENTRIES), d = !(!r || !r.IS_ITERATOR), p = !(!r || !r.INTERRUPTED), v = hP(e, c), y = function(m) {
    return n && zx(n, "normal", m), new Fg(true, m);
  }, g = function(m) {
    return f ? (nn(m), p ? v(m[0], m[1], y) : v(m[0], m[1])) : p ? v(m, y) : v(m);
  };
  if (d) n = t10;
  else {
    if (!(o = Mx(t10))) throw xU(a4(t10) + " is not iterable");
    if ((function(m) {
      return m !== void 0 && (bl.Array === m || EU[wU] === m);
    })(o)) {
      for (i = 0, a = my(t10); a > i; i++) if ((u = g(t10[i])) && gv($x, u)) return u;
      return new Fg(false);
    }
    n = (function(m, h) {
      var b = arguments.length < 2 ? Mx(m) : h;
      if (R3(b)) return nn(fr(b, m));
      throw CU(a4(m) + " is not iterable");
    })(t10, o);
  }
  for (s = n.next; !(l = fr(s, n)).done; ) {
    try {
      u = g(l.value);
    } catch (m) {
      zx(n, "throw", m);
    }
    if (typeof u == "object" && u && gv($x, u)) return u;
  }
  return new Fg(false);
}, AU = function(t10, e) {
  return t10 === void 0 ? arguments.length < 2 ? "" : e : vu(t10);
}, OU = !ur((function() {
  var t10 = Error("a");
  return !("stack" in t10) || (Object.defineProperty(t10, "stack", qi(1, 7)), t10.stack !== 7);
})), kU = Pr("toStringTag"), Ev = Et.Error, BU = [].push, xd = function(t10, e) {
  var r, n = arguments.length > 2 ? arguments[2] : void 0, o = gv(Rm, this);
  ml ? r = ml(new Ev(void 0), o ? Cd(this) : Rm) : (r = o ? this : Sp(Rm), Rr(r, kU, "Error")), Rr(r, "message", AU(e, "")), OU && Rr(r, "stack", mU(r.stack, 1)), bU(r, n);
  var i = [];
  return SU(t10, BU, { that: i }), Rr(r, "errors", i), r;
};
ml ? ml(xd, Ev) : uP(xd, Ev);
var Rm = xd.prototype = Sp(Ev.prototype, { constructor: qi(1, xd), message: qi(1, ""), name: qi(1, "AggregateError") });
xp({ global: true }, { AggregateError: xd });
var p4 = Pr("unscopables"), h4 = Array.prototype;
h4[p4] == null && Zl.f(h4, p4, { configurable: true, value: Sp(null) });
var yu, Hx, Vx, Mm = function(t10) {
  h4[p4][t10] = true;
}, g4 = Pr("iterator"), gP = false;
[].keys && ("next" in (Vx = [].keys()) ? (Hx = Cd(Cd(Vx))) !== Object.prototype && (yu = Hx) : gP = true);
var FU = yu == null || ur((function() {
  var t10 = {};
  return yu[g4].call(t10) !== t10;
}));
FU && (yu = {}), tr(yu[g4]) || Lu(yu, g4, (function() {
  return this;
}));
var J3 = { IteratorPrototype: yu, BUGGY_SAFARI_ITERATORS: gP }, TU = Zl.f, Ux = Pr("toStringTag"), Wx = function(t10, e, r) {
  t10 && !$r(t10 = r ? t10 : t10.prototype, Ux) && TU(t10, Ux, { configurable: true, value: e });
}, _U = J3.IteratorPrototype, PU = function() {
  return this;
}, jU = K3.PROPER, NU = K3.CONFIGURABLE, Gx = J3.IteratorPrototype, zm = J3.BUGGY_SAFARI_ITERATORS, Ec = Pr("iterator"), IU = function() {
  return this;
}, vP = function(t10, e, r, n, o, i, a) {
  (function(g, m, h, b) {
    var w = m + " Iterator";
    g.prototype = Sp(_U, { next: qi(1, h) }), Wx(g, w, false), bl[w] = PU;
  })(r, e, n);
  var u, s, l = function(g) {
    if (g === o && v) return v;
    if (!zm && g in d) return d[g];
    switch (g) {
      case "keys":
      case "values":
      case "entries":
        return function() {
          return new r(this, g);
        };
    }
    return function() {
      return new r(this);
    };
  }, c = e + " Iterator", f = false, d = t10.prototype, p = d[Ec] || d["@@iterator"] || o && d[o], v = !zm && p || l(o), y = e == "Array" && d.entries || p;
  return y && (u = Cd(y.call(new t10()))) !== Object.prototype && u.next && (Cd(u) !== Gx && (ml ? ml(u, Gx) : tr(u[Ec]) || Lu(u, Ec, IU)), Wx(u, c, true)), jU && o == "values" && p && p.name !== "values" && (NU ? Rr(d, "name", "values") : (f = true, v = function() {
    return fr(p, this);
  })), o && (s = { values: l("values"), keys: l("keys"), entries: l("entries") }, a || xp({ target: e, proto: true, forced: zm || f }, s)), d[Ec] !== v && Lu(d, Ec, v, { name: o }), bl[e] = v, s;
}, LU = Iu.set, RU = Iu.getterFor("Array Iterator"), Mf = vP(Array, "Array", (function(t10, e) {
  LU(this, { type: "Array Iterator", target: Xl(t10), index: 0, kind: e });
}), (function() {
  var t10 = RU(this), e = t10.target, r = t10.kind, n = t10.index++;
  return !e || n >= e.length ? (t10.target = void 0, { value: void 0, done: true }) : r == "keys" ? { value: n, done: false } : r == "values" ? { value: e[n], done: false } : { value: [n, e[n]], done: false };
}), "values");
bl.Arguments = bl.Array, Mm("keys"), Mm("values"), Mm("entries");
var MU = dP.charAt, zU = Iu.set, $U = Iu.getterFor("String Iterator");
vP(String, "String", (function(t10) {
  zU(this, { type: "String Iterator", string: vu(t10), index: 0 });
}), (function() {
  var t10, e = $U(this), r = e.string, n = e.index;
  return n >= r.length ? { value: void 0, done: true } : (t10 = MU(r, n), e.index += t10.length, { value: t10, done: false });
}));
var $m, Dv = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }, Hm = V3("span").classList, qx = Hm && Hm.constructor && Hm.constructor.prototype, yP = qx === Object.prototype ? void 0 : qx, Vm = Pr("iterator"), Kx = Pr("toStringTag"), Um = Mf.values, mP = function(t10, e) {
  if (t10) {
    if (t10[Vm] !== Um) try {
      Rr(t10, Vm, Um);
    } catch {
      t10[Vm] = Um;
    }
    if (t10[Kx] || Rr(t10, Kx, e), Dv[e]) {
      for (var r in Mf) if (t10[r] !== Mf[r]) try {
        Rr(t10, r, Mf[r]);
      } catch {
        t10[r] = Mf[r];
      }
    }
  }
};
for (var Wm in Dv) mP(Et[Wm] && Et[Wm].prototype, Wm);
mP(yP, "DOMTokenList"), typeof global > "u" ? ("ActiveXObject" in window && console.error(`\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668
 Sorry, wangEditor V5+ versions do not support IE browser.`), Yx(), Xx()) : global && (!(($m = global.navigator) === null || $m === void 0) && $m.userAgent.match("QQBrowser")) && (Yx(), Xx());
function Yx() {
  typeof globalThis > "u" && (window.globalThis = window);
}
function Xx() {
  jH === void 0 && (window.AggregateError = function(t10, e) {
    var r = new Error(e);
    return r.errors = t10, r;
  });
}
var Zx, Cv = Array.isArray || function(t10) {
  return du(t10) == "Array";
}, bP = function() {
}, HU = [], wP = ql("Reflect", "construct"), Q3 = /^\s*(?:class|function)\b/, VU = pe(Q3.exec), UU = !Q3.exec(bP), Dc = function(t10) {
  if (!dr(t10)) return false;
  try {
    return wP(bP, HU, t10), true;
  } catch {
    return false;
  }
}, WU = !wP || Ur((function() {
  var t10;
  return Dc(Dc.call) || !Dc(Object) || !Dc((function() {
    t10 = true;
  })) || t10;
})) ? function(t10) {
  if (!dr(t10)) return false;
  switch (Ep(t10)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return false;
  }
  return UU || !!VU(Q3, Y_(t10));
} : Dc, GU = Or("species"), Jx = kt.Array, EP = function(t10, e) {
  return new ((function(r) {
    var n;
    return Cv(r) && (n = r.constructor, (WU(n) && (n === Jx || Cv(n.prototype)) || wn(n) && (n = n[GU]) === null) && (n = void 0)), n === void 0 ? Jx : n;
  })(t10))(e === 0 ? 0 : e);
}, qU = Or("species"), DP = Or("isConcatSpreadable"), Qx = kt.TypeError, KU = ov >= 51 || !Ur((function() {
  var t10 = [];
  return t10[DP] = false, t10.concat()[0] !== t10;
})), YU = (Zx = "concat", ov >= 51 || !Ur((function() {
  var t10 = [];
  return (t10.constructor = {})[qU] = function() {
    return { foo: 1 };
  }, t10[Zx](Boolean).foo !== 1;
}))), XU = function(t10) {
  if (!wn(t10)) return false;
  var e = t10[DP];
  return e !== void 0 ? !!e : Cv(t10);
};
Wo({ target: "Array", proto: true, forced: !KU || !YU }, { concat: function(t10) {
  var e, r, n, o, i, a = yp(this), u = EP(a, 0), s = 0;
  for (e = -1, n = arguments.length; e < n; e++) if (XU(i = e === -1 ? a : arguments[e])) {
    if (s + (o = bp(i)) > 9007199254740991) throw Qx("Maximum allowed index exceeded");
    for (r = 0; r < o; r++, s++) r in i && Jw(u, s, i[r]);
  } else {
    if (s >= 9007199254740991) throw Qx("Maximum allowed index exceeded");
    Jw(u, s++, i);
  }
  return u.length = s, u;
} });
var tS = j3.f, eS = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], CP = { f: function(t10) {
  return eS && du(t10) == "Window" ? (function(e) {
    try {
      return tS(e);
    } catch {
      return G_(eS);
    }
  })(t10) : tS(To(t10));
} }, ZU = pe([].slice), t5 = { f: Or }, JU = Sa.f, Pe = function(t10) {
  var e = Zr.Symbol || (Zr.Symbol = {});
  Vt(e, t10) || JU(e, t10, { value: t5.f(t10) });
}, rS = pe([].push), QU = function(t10) {
  var e = t10 == 1, r = t10 == 2, n = t10 == 3, o = t10 == 4, i = t10 == 6, a = t10 == 7, u = t10 == 5 || i;
  return function(s, l, c, f) {
    for (var d, p, v = yp(s), y = z_(v), g = _3(l, c), m = bp(y), h = 0, b = f || EP, w = e ? b(s, m) : r || a ? b(s, 0) : void 0; m > h; h++) if ((u || h in y) && (p = g(d = y[h], h, v), t10)) if (e) w[h] = p;
    else if (p) switch (t10) {
      case 3:
        return true;
      case 5:
        return d;
      case 6:
        return h;
      case 2:
        rS(w, d);
    }
    else switch (t10) {
      case 4:
        return false;
      case 7:
        rS(w, d);
    }
    return i ? -1 : n || o ? o : w;
  };
}, wy = { forEach: QU(0) }.forEach, Ir = vy("hidden"), nS = Or("toPrimitive"), tW = Yl.set, oS = Yl.getterFor("Symbol"), $n = Object.prototype, Ii = kt.Symbol, $i = Ii && Ii.prototype, iS = kt.TypeError, Gm = kt.QObject, Cc = ql("JSON", "stringify"), xP = gy.f, Li = Sa.f, SP = CP.f, eW = k3.f, AP = pe([].push), oi = Qu("symbols"), Ap = Qu("op-symbols"), qm = Qu("string-to-symbol-registry"), Km = Qu("symbol-to-string-registry"), rW = Qu("wks"), Ym = !Gm || !Gm.prototype || !Gm.prototype.findChild, v4 = zr && Ur((function() {
  return ni(Li({}, "a", { get: function() {
    return Li(this, "a", { value: 7 }).a;
  } })).a != 7;
})) ? function(t10, e, r) {
  var n = xP($n, e);
  n && delete $n[e], Li(t10, e, r), n && t10 !== $n && Li($n, e, n);
} : Li, Xm = function(t10, e) {
  var r = oi[t10] = ni($i);
  return tW(r, { type: "Symbol", tag: t10, description: e }), zr || (r.description = e), r;
}, xv = function(t10, e, r) {
  t10 === $n && xv(Ap, e, r), rn(t10);
  var n = Kl(e);
  return rn(r), Vt(oi, n) ? (r.enumerable ? (Vt(t10, Ir) && t10[Ir][n] && (t10[Ir][n] = false), r = ni(r, { enumerable: Un(0, false) })) : (Vt(t10, Ir) || Li(t10, Ir, Un(1, {})), t10[Ir][n] = true), v4(t10, n, r)) : Li(t10, n, r);
}, aS = function(t10, e) {
  rn(t10);
  var r = To(e), n = N3(r).concat(y4(r));
  return wy(n, (function(o) {
    zr && !Qr(OP, r, o) || xv(t10, o, r[o]);
  })), t10;
}, OP = function(t10) {
  var e = Kl(t10), r = Qr(eW, this, e);
  return !(this === $n && Vt(oi, e) && !Vt(Ap, e)) && (!(r || !Vt(this, e) || !Vt(oi, e) || Vt(this, Ir) && this[Ir][e]) || r);
}, uS = function(t10, e) {
  var r = To(t10), n = Kl(e);
  if (r !== $n || !Vt(oi, n) || Vt(Ap, n)) {
    var o = xP(r, n);
    return !o || !Vt(oi, n) || Vt(r, Ir) && r[Ir][n] || (o.enumerable = true), o;
  }
}, sS = function(t10) {
  var e = SP(To(t10)), r = [];
  return wy(e, (function(n) {
    Vt(oi, n) || Vt(wp, n) || AP(r, n);
  })), r;
}, y4 = function(t10) {
  var e = t10 === $n, r = SP(e ? Ap : To(t10)), n = [];
  return wy(r, (function(o) {
    !Vt(oi, o) || e && !Vt($n, o) || AP(n, oi[o]);
  })), n;
};
if (uo || ($i = (Ii = function() {
  if (bd($i, this)) throw iS("Symbol is not a constructor");
  var t10 = arguments.length && arguments[0] !== void 0 ? wd(arguments[0]) : void 0, e = av(t10), r = function(n) {
    this === $n && Qr(r, Ap, n), Vt(this, Ir) && Vt(this[Ir], e) && (this[Ir][e] = false), v4(this, e, Un(1, n));
  };
  return zr && Ym && v4($n, e, { configurable: true, set: r }), Xm(e, t10);
}).prototype, pv($i, "toString", (function() {
  return oS(this).tag;
})), pv(Ii, "withoutSetter", (function(t10) {
  return Xm(av(t10), t10);
})), k3.f = OP, Sa.f = xv, gy.f = uS, j3.f = CP.f = sS, Sg.f = y4, t5.f = function(t10) {
  return Xm(Or(t10), t10);
}, zr && Li($i, "description", { configurable: true, get: function() {
  return oS(this).description;
} })), Wo({ global: true, wrap: true, forced: !uo, sham: !uo }, { Symbol: Ii }), wy(N3(rW), (function(t10) {
  Pe(t10);
})), Wo({ target: "Symbol", stat: true, forced: !uo }, { for: function(t10) {
  var e = wd(t10);
  if (Vt(qm, e)) return qm[e];
  var r = Ii(e);
  return qm[e] = r, Km[r] = e, r;
}, keyFor: function(t10) {
  if (!il(t10)) throw iS(t10 + " is not a symbol");
  if (Vt(Km, t10)) return Km[t10];
}, useSetter: function() {
  Ym = true;
}, useSimple: function() {
  Ym = false;
} }), Wo({ target: "Object", stat: true, forced: !uo, sham: !zr }, { create: function(t10, e) {
  return e === void 0 ? ni(t10) : aS(ni(t10), e);
}, defineProperty: xv, defineProperties: aS, getOwnPropertyDescriptor: uS }), Wo({ target: "Object", stat: true, forced: !uo }, { getOwnPropertyNames: sS, getOwnPropertySymbols: y4 }), Wo({ target: "Object", stat: true, forced: Ur((function() {
  Sg.f(1);
})) }, { getOwnPropertySymbols: function(t10) {
  return Sg.f(yp(t10));
} }), Cc) {
  var nW = !uo || Ur((function() {
    var t10 = Ii();
    return Cc([t10]) != "[null]" || Cc({ a: t10 }) != "{}" || Cc(Object(t10)) != "{}";
  }));
  Wo({ target: "JSON", stat: true, forced: nW }, { stringify: function(t10, e, r) {
    var n = ZU(arguments), o = e;
    if ((wn(e) || t10 !== void 0) && !il(t10)) return Cv(e) || (e = function(i, a) {
      if (dr(o) && (a = Qr(o, this, i, a)), !il(a)) return a;
    }), n[1] = e, R_(Cc, null, n);
  } });
}
if (!$i[nS]) {
  var oW = $i.valueOf;
  pv($i, nS, (function(t10) {
    return Qr(oW, this);
  }));
}
hv(Ii, "Symbol"), wp[Ir] = true, Pe("asyncIterator"), Pe("hasInstance"), Pe("isConcatSpreadable"), Pe("iterator"), Pe("match"), Pe("matchAll"), Pe("replace"), Pe("search"), Pe("species"), Pe("split"), Pe("toPrimitive"), Pe("toStringTag"), Pe("unscopables"), hv(kt.JSON, "JSON", true);
var iW = Zr.Symbol;
Pe("asyncDispose"), Pe("dispose"), Pe("matcher"), Pe("metadata"), Pe("observable"), Pe("patternMatch"), Pe("replaceAll");
var Eh = iW, aW = t5.f("iterator"), uW = Ju((function(t10) {
  function e(r) {
    return typeof Eh == "function" && typeof aW == "symbol" ? (t10.exports = e = function(n) {
      return typeof n;
    }, t10.exports.default = t10.exports, t10.exports.__esModule = true) : (t10.exports = e = function(n) {
      return n && typeof Eh == "function" && n.constructor === Eh && n !== Eh.prototype ? "symbol" : typeof n;
    }, t10.exports.default = t10.exports, t10.exports.__esModule = true), e(r);
  }
  t10.exports = e, t10.exports.default = t10.exports, t10.exports.__esModule = true;
})), sW = $z(uW), kP = U3.f, lW = ur((function() {
  kP(1);
}));
if (xp({ target: "Object", stat: true, forced: !xo || lW, sham: !xo }, { getOwnPropertyDescriptor: function(t10, e) {
  return kP(Xl(t10), e);
} }), (typeof global > "u" ? "undefined" : sW(global)) === "object") {
  var cW = Object.getOwnPropertyDescriptor(global, "window");
  global.window && !cW.set || (global.window = global, global.requestAnimationFrame = function() {
  }, global.navigator = { userAgent: "" }, global.location = { hostname: "0.0.0.0", port: 0, protocol: "http:" }, global.btoa = function() {
  }, global.crypto = { getRandomValues: function(t10) {
    return nodeCrypto.randomFillSync(t10);
  } }), global.document != null && global.document.getElementsByTagName == null && (global.document.getElementsByTagName = function() {
    return [];
  });
}
function lS(t10) {
  return Object.prototype.toString.call(t10) === "[object Object]";
}
function Er(t10) {
  var e, r;
  return lS(t10) !== false && ((e = t10.constructor) === void 0 || lS(r = e.prototype) !== false && r.hasOwnProperty("isPrototypeOf") !== false);
}
function zn(t10) {
  for (var e = arguments.length, r = Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++) r[n - 1] = arguments[n];
  throw Error("[Immer] minified error nr: " + t10 + (r.length ? " " + r.map((function(o) {
    return "'" + o + "'";
  })).join(",") : "") + ". Find the full error at: https://bit.ly/3cXEKWf");
}
function Ru(t10) {
  return !!t10 && !!t10[on];
}
function Mu(t10) {
  return !!t10 && ((function(e) {
    if (!e || typeof e != "object") return false;
    var r = Object.getPrototypeOf(e);
    if (r === null) return true;
    var n = Object.hasOwnProperty.call(r, "constructor") && r.constructor;
    return n === Object || typeof n == "function" && Function.toString.call(n) === vW;
  })(t10) || Array.isArray(t10) || !!t10[yS] || !!t10.constructor[yS] || e5(t10) || r5(t10));
}
function Sd(t10, e, r) {
  r === void 0 && (r = false), wl(t10) === 0 ? (r ? Object.keys : u5)(t10).forEach((function(n) {
    r && typeof n == "symbol" || e(n, t10[n], t10);
  })) : t10.forEach((function(n, o) {
    return e(o, n, t10);
  }));
}
function wl(t10) {
  var e = t10[on];
  return e ? e.i > 3 ? e.i - 4 : e.i : Array.isArray(t10) ? 1 : e5(t10) ? 2 : r5(t10) ? 3 : 0;
}
function m4(t10, e) {
  return wl(t10) === 2 ? t10.has(e) : Object.prototype.hasOwnProperty.call(t10, e);
}
function BP(t10, e, r) {
  var n = wl(t10);
  n === 2 ? t10.set(e, r) : n === 3 ? (t10.delete(e), t10.add(r)) : t10[e] = r;
}
function e5(t10) {
  return hW && t10 instanceof Map;
}
function r5(t10) {
  return gW && t10 instanceof Set;
}
function Xa(t10) {
  return t10.o || t10.t;
}
function n5(t10) {
  if (Array.isArray(t10)) return Array.prototype.slice.call(t10);
  var e = yW(t10);
  delete e[on];
  for (var r = u5(e), n = 0; n < r.length; n++) {
    var o = r[n], i = e[o];
    i.writable === false && (i.writable = true, i.configurable = true), (i.get || i.set) && (e[o] = { configurable: true, writable: true, enumerable: i.enumerable, value: t10[o] });
  }
  return Object.create(Object.getPrototypeOf(t10), e);
}
function o5(t10, e) {
  return e === void 0 && (e = false), i5(t10) || Ru(t10) || !Mu(t10) || (wl(t10) > 1 && (t10.set = t10.add = t10.clear = t10.delete = fW), Object.freeze(t10), e && Sd(t10, (function(r, n) {
    return o5(n, true);
  }), true)), t10;
}
function fW() {
  zn(2);
}
function i5(t10) {
  return t10 == null || typeof t10 != "object" || Object.isFrozen(t10);
}
function ti(t10) {
  var e = mW[t10];
  return e || zn(18, t10), e;
}
function cS() {
  return Ad;
}
function Zm(t10, e) {
  e && (ti("Patches"), t10.u = [], t10.s = [], t10.v = e);
}
function Sv(t10) {
  b4(t10), t10.p.forEach(dW), t10.p = null;
}
function b4(t10) {
  t10 === Ad && (Ad = t10.l);
}
function fS(t10) {
  return Ad = { p: [], l: Ad, h: t10, m: true, _: 0 };
}
function dW(t10) {
  var e = t10[on];
  e.i === 0 || e.i === 1 ? e.j() : e.O = true;
}
function Jm(t10, e) {
  e._ = e.p.length;
  var r = e.p[0], n = t10 !== void 0 && t10 !== r;
  return e.h.g || ti("ES5").S(e, t10, n), n ? (r[on].P && (Sv(e), zn(4)), Mu(t10) && (t10 = Av(e, t10), e.l || Ov(e, t10)), e.u && ti("Patches").M(r[on], t10, e.u, e.s)) : t10 = Av(e, r, []), Sv(e), e.u && e.v(e.u, e.s), t10 !== FP ? t10 : void 0;
}
function Av(t10, e, r) {
  if (i5(e)) return e;
  var n = e[on];
  if (!n) return Sd(e, (function(i, a) {
    return dS(t10, n, e, i, a, r);
  }), true), e;
  if (n.A !== t10) return e;
  if (!n.P) return Ov(t10, n.t, true), n.t;
  if (!n.I) {
    n.I = true, n.A._--;
    var o = n.i === 4 || n.i === 5 ? n.o = n5(n.k) : n.o;
    Sd(n.i === 3 ? new Set(o) : o, (function(i, a) {
      return dS(t10, n, o, i, a, r);
    })), Ov(t10, o, false), r && t10.u && ti("Patches").R(n, r, t10.u, t10.s);
  }
  return n.o;
}
function dS(t10, e, r, n, o, i) {
  if (Ru(o)) {
    var a = Av(t10, o, i && e && e.i !== 3 && !m4(e.D, n) ? i.concat(n) : void 0);
    if (BP(r, n, a), !Ru(a)) return;
    t10.m = false;
  }
  if (Mu(o) && !i5(o)) {
    if (!t10.h.F && t10._ < 1) return;
    Av(t10, o), e && e.A.l || Ov(t10, o);
  }
}
function Ov(t10, e, r) {
  r === void 0 && (r = false), t10.h.F && t10.m && o5(e, r);
}
function Qm(t10, e) {
  var r = t10[on];
  return (r ? Xa(r) : t10)[e];
}
function pS(t10, e) {
  if (e in t10) for (var r = Object.getPrototypeOf(t10); r; ) {
    var n = Object.getOwnPropertyDescriptor(r, e);
    if (n) return n;
    r = Object.getPrototypeOf(r);
  }
}
function w4(t10) {
  t10.P || (t10.P = true, t10.l && w4(t10.l));
}
function t1(t10) {
  t10.o || (t10.o = n5(t10.t));
}
function E4(t10, e, r) {
  var n = e5(e) ? ti("MapSet").N(e, r) : r5(e) ? ti("MapSet").T(e, r) : t10.g ? (function(o, i) {
    var a = Array.isArray(o), u = { i: a ? 1 : 0, A: i ? i.A : cS(), P: false, I: false, D: {}, l: i, t: o, k: null, o: null, j: null, C: false }, s = u, l = Tg;
    a && (s = [u], l = _g);
    var c = Proxy.revocable(s, l), f = c.revoke, d = c.proxy;
    return u.k = d, u.j = f, d;
  })(e, r) : ti("ES5").J(e, r);
  return (r ? r.A : cS()).p.push(n), n;
}
function pW(t10) {
  return Ru(t10) || zn(22, t10), (function e(r) {
    if (!Mu(r)) return r;
    var n, o = r[on], i = wl(r);
    if (o) {
      if (!o.P && (o.i < 4 || !ti("ES5").K(o))) return o.t;
      o.I = true, n = hS(r, i), o.I = false;
    } else n = hS(r, i);
    return Sd(n, (function(a, u) {
      o && (function(s, l) {
        return wl(s) === 2 ? s.get(l) : s[l];
      })(o.t, a) === u || BP(n, a, e(u));
    })), i === 3 ? new Set(n) : n;
  })(t10);
}
function hS(t10, e) {
  switch (e) {
    case 2:
      return new Map(t10);
    case 3:
      return Array.from(t10);
  }
  return n5(t10);
}
var gS, Ad, a5 = typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol("x") == "symbol", hW = typeof Map < "u", gW = typeof Set < "u", vS = typeof Proxy < "u" && Proxy.revocable !== void 0 && typeof Reflect < "u", FP = a5 ? /* @__PURE__ */ Symbol.for("immer-nothing") : ((gS = {})["immer-nothing"] = true, gS), yS = a5 ? /* @__PURE__ */ Symbol.for("immer-draftable") : "__$immer_draftable", on = a5 ? /* @__PURE__ */ Symbol.for("immer-state") : "__$immer_state", vW = "" + Object.prototype.constructor, u5 = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols !== void 0 ? function(t10) {
  return Object.getOwnPropertyNames(t10).concat(Object.getOwnPropertySymbols(t10));
} : Object.getOwnPropertyNames, yW = Object.getOwnPropertyDescriptors || function(t10) {
  var e = {};
  return u5(t10).forEach((function(r) {
    e[r] = Object.getOwnPropertyDescriptor(t10, r);
  })), e;
}, mW = {}, Tg = { get: function(t10, e) {
  if (e === on) return t10;
  var r = Xa(t10);
  if (!m4(r, e)) return (function(o, i, a) {
    var u, s = pS(i, a);
    return s ? "value" in s ? s.value : (u = s.get) === null || u === void 0 ? void 0 : u.call(o.k) : void 0;
  })(t10, r, e);
  var n = r[e];
  return t10.I || !Mu(n) ? n : n === Qm(t10.t, e) ? (t1(t10), t10.o[e] = E4(t10.A.h, n, t10)) : n;
}, has: function(t10, e) {
  return e in Xa(t10);
}, ownKeys: function(t10) {
  return Reflect.ownKeys(Xa(t10));
}, set: function(t10, e, r) {
  var n = pS(Xa(t10), e);
  if (n == null ? void 0 : n.set) return n.set.call(t10.k, r), true;
  if (!t10.P) {
    var o = Qm(Xa(t10), e), i = o == null ? void 0 : o[on];
    if (i && i.t === r) return t10.o[e] = r, t10.D[e] = false, true;
    if ((function(a, u) {
      return a === u ? a !== 0 || 1 / a == 1 / u : a != a && u != u;
    })(r, o) && (r !== void 0 || m4(t10.t, e))) return true;
    t1(t10), w4(t10);
  }
  return t10.o[e] === r && typeof r != "number" && (r !== void 0 || e in t10.o) || (t10.o[e] = r, t10.D[e] = true, true);
}, deleteProperty: function(t10, e) {
  return Qm(t10.t, e) !== void 0 || e in t10.t ? (t10.D[e] = false, t1(t10), w4(t10)) : delete t10.D[e], t10.o && delete t10.o[e], true;
}, getOwnPropertyDescriptor: function(t10, e) {
  var r = Xa(t10), n = Reflect.getOwnPropertyDescriptor(r, e);
  return n && { writable: true, configurable: t10.i !== 1 || e !== "length", enumerable: n.enumerable, value: r[e] };
}, defineProperty: function() {
  zn(11);
}, getPrototypeOf: function(t10) {
  return Object.getPrototypeOf(t10.t);
}, setPrototypeOf: function() {
  zn(12);
} }, _g = {};
Sd(Tg, (function(t10, e) {
  _g[t10] = function() {
    return arguments[0] = arguments[0][0], e.apply(this, arguments);
  };
})), _g.deleteProperty = function(t10, e) {
  return Tg.deleteProperty.call(this, t10[0], e);
}, _g.set = function(t10, e, r) {
  return Tg.set.call(this, t10[0], e, r, t10[0]);
};
var bW = (function() {
  function t10(r) {
    var n = this;
    this.g = vS, this.F = true, this.produce = function(o, i, a) {
      if (typeof o == "function" && typeof i != "function") {
        var u = i;
        i = o;
        var s = n;
        return function(p) {
          var v = this;
          p === void 0 && (p = u);
          for (var y = arguments.length, g = Array(y > 1 ? y - 1 : 0), m = 1; m < y; m++) g[m - 1] = arguments[m];
          return s.produce(p, (function(h) {
            var b;
            return (b = i).call.apply(b, [v, h].concat(g));
          }));
        };
      }
      var l;
      if (typeof i != "function" && zn(6), a !== void 0 && typeof a != "function" && zn(7), Mu(o)) {
        var c = fS(n), f = E4(n, o, void 0), d = true;
        try {
          l = i(f), d = false;
        } finally {
          d ? Sv(c) : b4(c);
        }
        return typeof Promise < "u" && l instanceof Promise ? l.then((function(p) {
          return Zm(c, a), Jm(p, c);
        }), (function(p) {
          throw Sv(c), p;
        })) : (Zm(c, a), Jm(l, c));
      }
      if (!o || typeof o != "object") return (l = i(o)) === FP ? void 0 : (l === void 0 && (l = o), n.F && o5(l, true), l);
      zn(21, o);
    }, this.produceWithPatches = function(o, i) {
      return typeof o == "function" ? function(s) {
        for (var l = arguments.length, c = Array(l > 1 ? l - 1 : 0), f = 1; f < l; f++) c[f - 1] = arguments[f];
        return n.produceWithPatches(s, (function(d) {
          return o.apply(void 0, [d].concat(c));
        }));
      } : [n.produce(o, i, (function(s, l) {
        a = s, u = l;
      })), a, u];
      var a, u;
    }, typeof (r == null ? void 0 : r.useProxies) == "boolean" && this.setUseProxies(r.useProxies), typeof (r == null ? void 0 : r.autoFreeze) == "boolean" && this.setAutoFreeze(r.autoFreeze);
  }
  var e = t10.prototype;
  return e.createDraft = function(r) {
    Mu(r) || zn(8), Ru(r) && (r = pW(r));
    var n = fS(this), o = E4(this, r, void 0);
    return o[on].C = true, b4(n), o;
  }, e.finishDraft = function(r, n) {
    var o = (r && r[on]).A;
    return Zm(o, n), Jm(void 0, o);
  }, e.setAutoFreeze = function(r) {
    this.F = r;
  }, e.setUseProxies = function(r) {
    r && !vS && zn(20), this.g = r;
  }, e.applyPatches = function(r, n) {
    var o;
    for (o = n.length - 1; o >= 0; o--) {
      var i = n[o];
      if (i.path.length === 0 && i.op === "replace") {
        r = i.value;
        break;
      }
    }
    o > -1 && (n = n.slice(o + 1));
    var a = ti("Patches").$;
    return Ru(r) ? a(r, n) : this.produce(r, (function(u) {
      return a(u, n);
    }));
  }, t10;
})(), Yr = new bW(), Ey = Yr.produce;
Yr.produceWithPatches.bind(Yr), Yr.setAutoFreeze.bind(Yr), Yr.setUseProxies.bind(Yr), Yr.applyPatches.bind(Yr);
var mS = Yr.createDraft.bind(Yr), bS = Yr.finishDraft.bind(Yr);
function _o(t10, e, r) {
  return e in t10 ? Object.defineProperty(t10, e, { value: r, enumerable: true, configurable: true, writable: true }) : t10[e] = r, t10;
}
var kv = /* @__PURE__ */ new WeakMap(), xc = /* @__PURE__ */ new WeakMap(), wS = /* @__PURE__ */ new WeakMap(), ES = /* @__PURE__ */ new WeakMap(), DS = /* @__PURE__ */ new WeakMap(), CS = /* @__PURE__ */ new WeakMap();
function xS(t10, e) {
  var r = Object.keys(t10);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(t10);
    e && (n = n.filter((function(o) {
      return Object.getOwnPropertyDescriptor(t10, o).enumerable;
    }))), r.push.apply(r, n);
  }
  return r;
}
function Dh(t10) {
  for (var e = 1; e < arguments.length; e++) {
    var r = arguments[e] != null ? arguments[e] : {};
    e % 2 ? xS(Object(r), true).forEach((function(n) {
      _o(t10, n, r[n]);
    })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t10, Object.getOwnPropertyDescriptors(r)) : xS(Object(r)).forEach((function(n) {
      Object.defineProperty(t10, n, Object.getOwnPropertyDescriptor(r, n));
    }));
  }
  return t10;
}
var wW = () => {
  var t10 = { children: [], operations: [], selection: null, marks: null, isInline: () => false, isVoid: () => false, onChange: () => {
  }, apply: (e) => {
    for (var r of E.pathRefs(t10)) XW.transform(r, e);
    for (var n of E.pointRefs(t10)) ZW.transform(n, e);
    for (var o of E.rangeRefs(t10)) QW.transform(o, e);
    var i = /* @__PURE__ */ new Set(), a = [], u = (d) => {
      if (d) {
        var p = d.join(",");
        i.has(p) || (i.add(p), a.push(d));
      }
    }, s = kv.get(t10) || [], l = EW(e);
    for (var c of s) u(j.transform(c, e));
    for (var f of l) u(f);
    kv.set(t10, a), N.transform(t10, e), t10.operations.push(e), E.normalize(t10), e.type === "set_selection" && (t10.marks = null), xc.get(t10) || (xc.set(t10, true), Promise.resolve().then((() => {
      xc.set(t10, false), t10.onChange(), t10.operations = [];
    })));
  }, addMark: (e, r) => {
    var { selection: n } = t10;
    if (n) if (L.isExpanded(n)) N.setNodes(t10, { [e]: r }, { match: ot.isText, split: true });
    else {
      var o = Dh(Dh({}, E.marks(t10) || {}), {}, { [e]: r });
      t10.marks = o, xc.get(t10) || t10.onChange();
    }
  }, deleteBackward: (e) => {
    var { selection: r } = t10;
    r && L.isCollapsed(r) && N.delete(t10, { unit: e, reverse: true });
  }, deleteForward: (e) => {
    var { selection: r } = t10;
    r && L.isCollapsed(r) && N.delete(t10, { unit: e });
  }, deleteFragment: (e) => {
    var { selection: r } = t10;
    r && L.isExpanded(r) && N.delete(t10, { reverse: e === "backward" });
  }, getFragment: () => {
    var { selection: e } = t10;
    return e ? J.fragment(t10, e) : [];
  }, insertBreak: () => {
    N.splitNodes(t10, { always: true });
  }, insertFragment: (e) => {
    N.insertFragment(t10, e);
  }, insertNode: (e) => {
    N.insertNodes(t10, e);
  }, insertText: (e) => {
    var { selection: r, marks: n } = t10;
    if (r) {
      if (n) {
        var o = Dh({ text: e }, n);
        N.insertNodes(t10, o);
      } else N.insertText(t10, e);
      t10.marks = null;
    }
  }, normalizeNode: (e) => {
    var [r, n] = e;
    if (!ot.isText(r)) if (ct.isElement(r) && r.children.length === 0) N.insertNodes(t10, { text: "" }, { at: n.concat(0), voids: true });
    else for (var o = !E.isEditor(r) && ct.isElement(r) && (t10.isInline(r) || r.children.length === 0 || ot.isText(r.children[0]) || t10.isInline(r.children[0])), i = 0, a = 0; a < r.children.length; a++, i++) {
      var u = J.get(t10, n);
      if (!ot.isText(u)) {
        var s = r.children[a], l = u.children[i - 1], c = a === r.children.length - 1;
        (ot.isText(s) || ct.isElement(s) && t10.isInline(s)) !== o ? (N.removeNodes(t10, { at: n.concat(i), voids: true }), i--) : ct.isElement(s) ? t10.isInline(s) && (l != null && ot.isText(l) ? c && (N.insertNodes(t10, { text: "" }, { at: n.concat(i + 1), voids: true }), i++) : (N.insertNodes(t10, { text: "" }, { at: n.concat(i), voids: true }), i++)) : l != null && ot.isText(l) && (ot.equals(s, l, { loose: true }) ? (N.mergeNodes(t10, { at: n.concat(i), voids: true }), i--) : l.text === "" ? (N.removeNodes(t10, { at: n.concat(i - 1), voids: true }), i--) : s.text === "" && (N.removeNodes(t10, { at: n.concat(i), voids: true }), i--));
      }
    }
  }, removeMark: (e) => {
    var { selection: r } = t10;
    if (r) if (L.isExpanded(r)) N.unsetNodes(t10, e, { match: ot.isText, split: true });
    else {
      var n = Dh({}, E.marks(t10) || {});
      delete n[e], t10.marks = n, xc.get(t10) || t10.onChange();
    }
  } };
  return t10;
}, EW = (t10) => {
  switch (t10.type) {
    case "insert_text":
    case "remove_text":
    case "set_node":
      var { path: e } = t10;
      return j.levels(e);
    case "insert_node":
      var { node: r, path: n } = t10, o = j.levels(n), i = ot.isText(r) ? [] : Array.from(J.nodes(r), ((w) => {
        var [, D] = w;
        return n.concat(D);
      }));
      return [...o, ...i];
    case "merge_node":
      var { path: a } = t10;
      return [...j.ancestors(a), j.previous(a)];
    case "move_node":
      var { path: u, newPath: s } = t10;
      if (j.equals(u, s)) return [];
      var l = [], c = [];
      for (var f of j.ancestors(u)) {
        var d = j.transform(f, t10);
        l.push(d);
      }
      for (var p of j.ancestors(s)) {
        var v = j.transform(p, t10);
        c.push(v);
      }
      var y = c[c.length - 1], g = s[s.length - 1], m = y.concat(g);
      return [...l, ...c, m];
    case "remove_node":
      var { path: h } = t10;
      return [...j.ancestors(h)];
    case "split_node":
      var { path: b } = t10;
      return [...j.levels(b), j.next(b)];
    default:
      return [];
  }
};
function ii(t10, e) {
  if (t10 == null) return {};
  var r, n, o = (function(a, u) {
    if (a == null) return {};
    var s, l, c = {}, f = Object.keys(a);
    for (l = 0; l < f.length; l++) s = f[l], u.indexOf(s) >= 0 || (c[s] = a[s]);
    return c;
  })(t10, e);
  if (Object.getOwnPropertySymbols) {
    var i = Object.getOwnPropertySymbols(t10);
    for (n = 0; n < i.length; n++) r = i[n], e.indexOf(r) >= 0 || Object.prototype.propertyIsEnumerable.call(t10, r) && (o[r] = t10[r]);
  }
  return o;
}
var xt, D4 = function(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], r = !e, n = e ? AW(t10) : t10, o = xt.None, i = xt.None, a = 0, u = null;
  for (var s of n) {
    var l = s.codePointAt(0);
    if (!l) break;
    var c = RW(s, l);
    if ([o, i] = r ? [i, c] : [c, o], Qs(o, xt.ZWJ) && Qs(i, xt.ExtPict) && !HW(r ? t10.substring(0, a) : t10.substring(0, t10.length - a)) || Qs(o, xt.RI) && Qs(i, xt.RI) && !(u = u !== null ? !u : !!r || UW(t10.substring(0, t10.length - a))) || o !== xt.None && i !== xt.None && zW(o, i)) break;
    a += s.length;
  }
  return a || 1;
}, DW = /\s/, CW = /[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, xW = /['\u2018\u2019]/, C4 = (t10, e, r) => {
  if (r) {
    var n = t10.length - e;
    return [t10.slice(n, t10.length), t10.slice(0, n)];
  }
  return [t10.slice(0, e), t10.slice(e)];
}, SW = function t(e, r) {
  var n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
  if (DW.test(e)) return false;
  if (xW.test(e)) {
    var o = D4(r, n), [i, a] = C4(r, o, n);
    if (t(i, a, n)) return true;
  }
  return !CW.test(e);
}, AW = function* (t10) {
  for (var e = t10.length - 1, r = 0; r < t10.length; r++) {
    var n = t10.charAt(e - r);
    if (kW(n.charCodeAt(0))) {
      var o = t10.charAt(e - r - 1);
      if (OW(o.charCodeAt(0))) {
        yield o + n, r++;
        continue;
      }
    }
    yield n;
  }
}, OW = (t10) => t10 >= 55296 && t10 <= 56319, kW = (t10) => t10 >= 56320 && t10 <= 57343;
(function(t10) {
  t10[t10.None = 0] = "None", t10[t10.Extend = 1] = "Extend", t10[t10.ZWJ = 2] = "ZWJ", t10[t10.RI = 4] = "RI", t10[t10.Prepend = 8] = "Prepend", t10[t10.SpacingMark = 16] = "SpacingMark", t10[t10.L = 32] = "L", t10[t10.V = 64] = "V", t10[t10.T = 128] = "T", t10[t10.LV = 256] = "LV", t10[t10.LVT = 512] = "LVT", t10[t10.ExtPict = 1024] = "ExtPict", t10[t10.Any = 2048] = "Any";
})(xt || (xt = {}));
var BW = /^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/, FW = /^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/, TW = /^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/, _W = /^[\u1100-\u115F\uA960-\uA97C]$/, PW = /^[\u1160-\u11A7\uD7B0-\uD7C6]$/, jW = /^[\u11A8-\u11FF\uD7CB-\uD7FB]$/, NW = /^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/, IW = /^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/, LW = /^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/, RW = (t10, e) => {
  var r = xt.Any;
  return t10.search(BW) !== -1 && (r |= xt.Extend), e === 8205 && (r |= xt.ZWJ), e >= 127462 && e <= 127487 && (r |= xt.RI), t10.search(FW) !== -1 && (r |= xt.Prepend), t10.search(TW) !== -1 && (r |= xt.SpacingMark), t10.search(_W) !== -1 && (r |= xt.L), t10.search(PW) !== -1 && (r |= xt.V), t10.search(jW) !== -1 && (r |= xt.T), t10.search(NW) !== -1 && (r |= xt.LV), t10.search(IW) !== -1 && (r |= xt.LVT), t10.search(LW) !== -1 && (r |= xt.ExtPict), r;
};
function Qs(t10, e) {
  return (t10 & e) != 0;
}
var MW = [[xt.L, xt.L | xt.V | xt.LV | xt.LVT], [xt.LV | xt.V, xt.V | xt.T], [xt.LVT | xt.T, xt.T], [xt.Any, xt.Extend | xt.ZWJ], [xt.Any, xt.SpacingMark], [xt.Prepend, xt.Any], [xt.ZWJ, xt.ExtPict], [xt.RI, xt.RI]];
function zW(t10, e) {
  return MW.findIndex(((r) => Qs(t10, r[0]) && Qs(e, r[1]))) === -1;
}
var $W = /(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/, HW = (t10) => t10.search($W) !== -1, VW = /(?:\uD83C[\uDDE6-\uDDFF])+$/g, UW = (t10) => {
  var e = t10.match(VW);
  return e !== null && e[0].length / 2 % 2 == 1;
}, SS = (t10) => Er(t10) && J.isNodeList(t10.children) && !E.isEditor(t10), ct = { isAncestor: (t10) => Er(t10) && J.isNodeList(t10.children), isElement: SS, isElementList: (t10) => Array.isArray(t10) && t10.every(((e) => ct.isElement(e))), isElementProps: (t10) => t10.children !== void 0, isElementType: function(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "type";
  return SS(t10) && t10[r] === e;
}, matches(t10, e) {
  for (var r in e) if (r !== "children" && t10[r] !== e[r]) return false;
  return true;
} }, WW = ["text"], GW = ["text"];
function AS(t10, e) {
  var r = Object.keys(t10);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(t10);
    e && (n = n.filter((function(o) {
      return Object.getOwnPropertyDescriptor(t10, o).enumerable;
    }))), r.push.apply(r, n);
  }
  return r;
}
function ys(t10) {
  for (var e = 1; e < arguments.length; e++) {
    var r = arguments[e] != null ? arguments[e] : {};
    e % 2 ? AS(Object(r), true).forEach((function(n) {
      _o(t10, n, r[n]);
    })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t10, Object.getOwnPropertyDescriptors(r)) : AS(Object(r)).forEach((function(n) {
      Object.defineProperty(t10, n, Object.getOwnPropertyDescriptor(r, n));
    }));
  }
  return t10;
}
var OS = /* @__PURE__ */ new WeakMap(), E = { above(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { voids: r = false, mode: n = "lowest", at: o = t10.selection, match: i } = e;
  if (o) {
    var a = E.path(t10, o), u = n === "lowest";
    for (var [s, l] of E.levels(t10, { at: a, voids: r, match: i, reverse: u })) if (!ot.isText(s) && !j.equals(a, l)) return [s, l];
  }
}, addMark(t10, e, r) {
  t10.addMark(e, r);
}, after(t10, e) {
  var r, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = { anchor: E.point(t10, e, { edge: "end" }), focus: E.end(t10, []) }, { distance: i = 1 } = n, a = 0;
  for (var u of E.positions(t10, ys(ys({}, n), {}, { at: o }))) {
    if (a > i) break;
    a !== 0 && (r = u), a++;
  }
  return r;
}, before(t10, e) {
  var r, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = { anchor: E.start(t10, []), focus: E.point(t10, e, { edge: "start" }) }, { distance: i = 1 } = n, a = 0;
  for (var u of E.positions(t10, ys(ys({}, n), {}, { at: o, reverse: true }))) {
    if (a > i) break;
    a !== 0 && (r = u), a++;
  }
  return r;
}, deleteBackward(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { unit: r = "character" } = e;
  t10.deleteBackward(r);
}, deleteForward(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { unit: r = "character" } = e;
  t10.deleteForward(r);
}, deleteFragment(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { direction: r = "forward" } = e;
  t10.deleteFragment(r);
}, edges: (t10, e) => [E.start(t10, e), E.end(t10, e)], end: (t10, e) => E.point(t10, e, { edge: "end" }), first(t10, e) {
  var r = E.path(t10, e, { edge: "start" });
  return E.node(t10, r);
}, fragment(t10, e) {
  var r = E.range(t10, e);
  return J.fragment(t10, r);
}, hasBlocks: (t10, e) => e.children.some(((r) => E.isBlock(t10, r))), hasInlines: (t10, e) => e.children.some(((r) => ot.isText(r) || E.isInline(t10, r))), hasTexts: (t10, e) => e.children.every(((r) => ot.isText(r))), insertBreak(t10) {
  t10.insertBreak();
}, insertFragment(t10, e) {
  t10.insertFragment(e);
}, insertNode(t10, e) {
  t10.insertNode(e);
}, insertText(t10, e) {
  t10.insertText(e);
}, isBlock: (t10, e) => ct.isElement(e) && !t10.isInline(e), isEditor(t10) {
  if (!Er(t10)) return false;
  var e = OS.get(t10);
  if (e !== void 0) return e;
  var r = typeof t10.addMark == "function" && typeof t10.apply == "function" && typeof t10.deleteBackward == "function" && typeof t10.deleteForward == "function" && typeof t10.deleteFragment == "function" && typeof t10.insertBreak == "function" && typeof t10.insertFragment == "function" && typeof t10.insertNode == "function" && typeof t10.insertText == "function" && typeof t10.isInline == "function" && typeof t10.isVoid == "function" && typeof t10.normalizeNode == "function" && typeof t10.onChange == "function" && typeof t10.removeMark == "function" && (t10.marks === null || Er(t10.marks)) && (t10.selection === null || L.isRange(t10.selection)) && J.isNodeList(t10.children) && Hi.isOperationList(t10.operations);
  return OS.set(t10, r), r;
}, isEnd(t10, e, r) {
  var n = E.end(t10, r);
  return Bt.equals(e, n);
}, isEdge: (t10, e, r) => E.isStart(t10, e, r) || E.isEnd(t10, e, r), isEmpty(t10, e) {
  var { children: r } = e, [n] = r;
  return r.length === 0 || r.length === 1 && ot.isText(n) && n.text === "" && !t10.isVoid(e);
}, isInline: (t10, e) => ct.isElement(e) && t10.isInline(e), isNormalizing(t10) {
  var e = wS.get(t10);
  return e === void 0 || e;
}, isStart(t10, e, r) {
  if (e.offset !== 0) return false;
  var n = E.start(t10, r);
  return Bt.equals(e, n);
}, isVoid: (t10, e) => ct.isElement(e) && t10.isVoid(e), last(t10, e) {
  var r = E.path(t10, e, { edge: "end" });
  return E.node(t10, r);
}, leaf(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = E.path(t10, e, r);
  return [J.leaf(t10, n), n];
}, *levels(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { at: r = t10.selection, reverse: n = false, voids: o = false } = e, { match: i } = e;
  if (i == null && (i = () => true), r) {
    var a = [], u = E.path(t10, r);
    for (var [s, l] of J.levels(t10, u)) if (i(s, l) && (a.push([s, l]), !o && E.isVoid(t10, s))) break;
    n && a.reverse(), yield* a;
  }
}, marks(t10) {
  var { marks: e, selection: r } = t10;
  if (!r) return null;
  if (e) return e;
  if (L.isExpanded(r)) {
    var [n] = E.nodes(t10, { match: ot.isText });
    if (n) {
      var [o] = n;
      return ii(o, WW);
    }
    return {};
  }
  var { anchor: i } = r, { path: a } = i, [u] = E.leaf(t10, a);
  if (i.offset === 0) {
    var s = E.previous(t10, { at: a, match: ot.isText }), l = E.above(t10, { match: (p) => E.isBlock(t10, p) });
    if (s && l) {
      var [c, f] = s, [, d] = l;
      j.isAncestor(d, f) && (u = c);
    }
  }
  return ii(u, GW);
}, next(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { mode: r = "lowest", voids: n = false } = e, { match: o, at: i = t10.selection } = e;
  if (i) {
    var a = E.after(t10, i, { voids: n });
    if (a) {
      var [, u] = E.last(t10, []), s = [a.path, u];
      if (j.isPath(i) && i.length === 0) throw new Error("Cannot get the next node from the root node!");
      if (o == null) if (j.isPath(i)) {
        var [l] = E.parent(t10, i);
        o = (f) => l.children.includes(f);
      } else o = () => true;
      var [c] = E.nodes(t10, { at: s, match: o, mode: r, voids: n });
      return c;
    }
  }
}, node(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = E.path(t10, e, r);
  return [J.get(t10, n), n];
}, *nodes(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { at: r = t10.selection, mode: n = "all", universal: o = false, reverse: i = false, voids: a = false } = e, { match: u } = e;
  if (u || (u = () => true), r) {
    var s, l;
    if (qW.isSpan(r)) s = r[0], l = r[1];
    else {
      var c = E.path(t10, r, { edge: "start" }), f = E.path(t10, r, { edge: "end" });
      s = i ? f : c, l = i ? c : f;
    }
    var d, p = J.nodes(t10, { reverse: i, from: s, to: l, pass: (b) => {
      var [w] = b;
      return !a && E.isVoid(t10, w);
    } }), v = [];
    for (var [y, g] of p) {
      var m = d && j.compare(g, d[1]) === 0;
      if (n !== "highest" || !m) {
        if (u(y, g)) if (n === "lowest" && m) d = [y, g];
        else {
          var h = n === "lowest" ? d : [y, g];
          h && (o ? v.push(h) : yield h), d = [y, g];
        }
        else if (o && !m && ot.isText(y)) return;
      }
    }
    n === "lowest" && d && (o ? v.push(d) : yield d), o && (yield* v);
  }
}, normalize(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { force: r = false } = e, n = (i) => kv.get(i) || [];
  if (E.isNormalizing(t10)) {
    if (r) {
      var o = Array.from(J.nodes(t10), ((i) => {
        var [, a] = i;
        return a;
      }));
      kv.set(t10, o);
    }
    n(t10).length !== 0 && E.withoutNormalizing(t10, (() => {
      for (var i of n(t10)) if (J.has(t10, i)) {
        var a = E.node(t10, i), [u, s] = a;
        ct.isElement(u) && u.children.length === 0 && t10.normalizeNode(a);
      }
      for (var l = 42 * n(t10).length, c = 0; n(t10).length !== 0; ) {
        if (c > l) throw new Error(`
            Could not completely normalize the editor after `.concat(l, ` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
          `));
        var f = n(t10).pop();
        if (J.has(t10, f)) {
          var d = E.node(t10, f);
          t10.normalizeNode(d);
        }
        c++;
      }
    }));
  }
}, parent(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = E.path(t10, e, r), o = j.parent(n);
  return E.node(t10, o);
}, path(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { depth: n, edge: o } = r;
  if (j.isPath(e)) {
    if (o === "start") {
      var [, i] = J.first(t10, e);
      e = i;
    } else if (o === "end") {
      var [, a] = J.last(t10, e);
      e = a;
    }
  }
  return L.isRange(e) && (e = o === "start" ? L.start(e) : o === "end" ? L.end(e) : j.common(e.anchor.path, e.focus.path)), Bt.isPoint(e) && (e = e.path), n != null && (e = e.slice(0, n)), e;
}, hasPath: (t10, e) => J.has(t10, e), pathRef(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { affinity: n = "forward" } = r, o = { current: e, affinity: n, unref() {
    var { current: i } = o;
    return E.pathRefs(t10).delete(o), o.current = null, i;
  } };
  return E.pathRefs(t10).add(o), o;
}, pathRefs(t10) {
  var e = ES.get(t10);
  return e || (e = /* @__PURE__ */ new Set(), ES.set(t10, e)), e;
}, point(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { edge: n = "start" } = r;
  if (j.isPath(e)) {
    var o;
    if (n === "end") {
      var [, i] = J.last(t10, e);
      o = i;
    } else {
      var [, a] = J.first(t10, e);
      o = a;
    }
    var u = J.get(t10, o);
    if (!ot.isText(u)) throw new Error("Cannot get the ".concat(n, " point in the node at path [").concat(e, "] because it has no ").concat(n, " text node."));
    return { path: o, offset: n === "end" ? u.text.length : 0 };
  }
  if (L.isRange(e)) {
    var [s, l] = L.edges(e);
    return n === "start" ? s : l;
  }
  return e;
}, pointRef(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { affinity: n = "forward" } = r, o = { current: e, affinity: n, unref() {
    var { current: i } = o;
    return E.pointRefs(t10).delete(o), o.current = null, i;
  } };
  return E.pointRefs(t10).add(o), o;
}, pointRefs(t10) {
  var e = DS.get(t10);
  return e || (e = /* @__PURE__ */ new Set(), DS.set(t10, e)), e;
}, *positions(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { at: r = t10.selection, unit: n = "offset", reverse: o = false, voids: i = false } = e;
  if (r) {
    var a = E.range(t10, r), [u, s] = L.edges(a), l = o ? s : u, c = false, f = "", d = 0, p = 0, v = 0;
    for (var [y, g] of E.nodes(t10, { at: r, reverse: o, voids: i })) {
      if (ct.isElement(y)) {
        if (!i && t10.isVoid(y)) {
          yield E.start(t10, g);
          continue;
        }
        if (t10.isInline(y)) continue;
        if (E.hasInlines(t10, y)) {
          var m = j.isAncestor(g, s.path) ? s : E.end(t10, g), h = j.isAncestor(g, u.path) ? u : E.start(t10, g);
          f = E.string(t10, { anchor: h, focus: m }, { voids: i }), c = true;
        }
      }
      if (ot.isText(y)) {
        var b = j.equals(g, l.path);
        for (b ? (p = o ? l.offset : y.text.length - l.offset, v = l.offset) : (p = y.text.length, v = o ? p : 0), (b || c || n === "offset") && (yield { path: g, offset: v }, c = false); ; ) {
          if (d === 0) {
            if (f === "") break;
            d = w(f, n, o), f = C4(f, d, o)[1];
          }
          if (v = o ? v - d : v + d, (p -= d) < 0) {
            d = -p;
            break;
          }
          d = 0, yield { path: g, offset: v };
        }
      }
    }
  }
  function w(D, x, C) {
    return x === "character" ? D4(D, C) : x === "word" ? (function(O) {
      for (var T = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], R = 0, H = false; O.length > 0; ) {
        var M = D4(O, T), [K, U] = C4(O, M, T);
        if (SW(K, U, T)) H = true, R += M;
        else {
          if (H) break;
          R += M;
        }
        O = U;
      }
      return R;
    })(D, C) : x === "line" || x === "block" ? D.length : 1;
  }
}, previous(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { mode: r = "lowest", voids: n = false } = e, { match: o, at: i = t10.selection } = e;
  if (i) {
    var a = E.before(t10, i, { voids: n });
    if (a) {
      var [, u] = E.first(t10, []), s = [a.path, u];
      if (j.isPath(i) && i.length === 0) throw new Error("Cannot get the previous node from the root node!");
      if (o == null) if (j.isPath(i)) {
        var [l] = E.parent(t10, i);
        o = (f) => l.children.includes(f);
      } else o = () => true;
      var [c] = E.nodes(t10, { reverse: true, at: s, match: o, mode: r, voids: n });
      return c;
    }
  }
}, range: (t10, e, r) => L.isRange(e) && !r ? e : { anchor: E.start(t10, e), focus: E.end(t10, r || e) }, rangeRef(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { affinity: n = "forward" } = r, o = { current: e, affinity: n, unref() {
    var { current: i } = o;
    return E.rangeRefs(t10).delete(o), o.current = null, i;
  } };
  return E.rangeRefs(t10).add(o), o;
}, rangeRefs(t10) {
  var e = CS.get(t10);
  return e || (e = /* @__PURE__ */ new Set(), CS.set(t10, e)), e;
}, removeMark(t10, e) {
  t10.removeMark(e);
}, setNormalizing(t10, e) {
  wS.set(t10, e);
}, start: (t10, e) => E.point(t10, e, { edge: "start" }), string(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { voids: n = false } = r, o = E.range(t10, e), [i, a] = L.edges(o), u = "";
  for (var [s, l] of E.nodes(t10, { at: o, match: ot.isText, voids: n })) {
    var c = s.text;
    j.equals(l, a.path) && (c = c.slice(0, a.offset)), j.equals(l, i.path) && (c = c.slice(i.offset)), u += c;
  }
  return u;
}, unhangRange(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { voids: n = false } = r, [o, i] = L.edges(e);
  if (o.offset !== 0 || i.offset !== 0 || L.isCollapsed(e)) return e;
  var a = E.above(t10, { at: i, match: (d) => E.isBlock(t10, d) }), u = a ? a[1] : [], s = { anchor: E.start(t10, []), focus: i }, l = true;
  for (var [c, f] of E.nodes(t10, { at: s, match: ot.isText, reverse: true, voids: n })) if (l) l = false;
  else if (c.text !== "" || j.isBefore(f, u)) {
    i = { path: f, offset: c.text.length };
    break;
  }
  return { anchor: o, focus: i };
}, void(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  return E.above(t10, ys(ys({}, e), {}, { match: (r) => E.isVoid(t10, r) }));
}, withoutNormalizing(t10, e) {
  var r = E.isNormalizing(t10);
  E.setNormalizing(t10, false);
  try {
    e();
  } finally {
    E.setNormalizing(t10, r);
  }
  E.normalize(t10);
} }, qW = { isSpan: (t10) => Array.isArray(t10) && t10.length === 2 && t10.every(j.isPath) }, KW = ["children"], YW = ["text"], kS = /* @__PURE__ */ new WeakMap(), J = { ancestor(t10, e) {
  var r = J.get(t10, e);
  if (ot.isText(r)) throw new Error("Cannot get the ancestor node at path [".concat(e, "] because it refers to a text node instead: ").concat(r));
  return r;
}, *ancestors(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  for (var n of j.ancestors(e, r)) {
    var o = [J.ancestor(t10, n), n];
    yield o;
  }
}, child(t10, e) {
  if (ot.isText(t10)) throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t10)));
  var r = t10.children[e];
  if (r == null) throw new Error("Cannot get child at index `".concat(e, "` in node: ").concat(JSON.stringify(t10)));
  return r;
}, *children(t10, e) {
  for (var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { reverse: n = false } = r, o = J.ancestor(t10, e), { children: i } = o, a = n ? i.length - 1 : 0; n ? a >= 0 : a < i.length; ) {
    var u = J.child(o, a), s = e.concat(a);
    yield [u, s], a = n ? a - 1 : a + 1;
  }
}, common(t10, e, r) {
  var n = j.common(e, r);
  return [J.get(t10, n), n];
}, descendant(t10, e) {
  var r = J.get(t10, e);
  if (E.isEditor(r)) throw new Error("Cannot get the descendant node at path [".concat(e, "] because it refers to the root editor node instead: ").concat(r));
  return r;
}, *descendants(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  for (var [r, n] of J.nodes(t10, e)) n.length !== 0 && (yield [r, n]);
}, *elements(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  for (var [r, n] of J.nodes(t10, e)) ct.isElement(r) && (yield [r, n]);
}, extractProps: (t10) => ct.isAncestor(t10) ? ii(t10, KW) : ii(t10, YW), first(t10, e) {
  for (var r = e.slice(), n = J.get(t10, r); n && !ot.isText(n) && n.children.length !== 0; ) n = n.children[0], r.push(0);
  return [n, r];
}, fragment(t10, e) {
  if (ot.isText(t10)) throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t10)));
  var r = Ey({ children: t10.children }, ((n) => {
    var [o, i] = L.edges(e), a = J.nodes(n, { reverse: true, pass: (d) => {
      var [, p] = d;
      return !L.includes(e, p);
    } });
    for (var [, u] of a) {
      if (!L.includes(e, u)) {
        var s = J.parent(n, u), l = u[u.length - 1];
        s.children.splice(l, 1);
      }
      if (j.equals(u, i.path)) {
        var c = J.leaf(n, u);
        c.text = c.text.slice(0, i.offset);
      }
      if (j.equals(u, o.path)) {
        var f = J.leaf(n, u);
        f.text = f.text.slice(o.offset);
      }
    }
    E.isEditor(n) && (n.selection = null);
  }));
  return r.children;
}, get(t10, e) {
  for (var r = t10, n = 0; n < e.length; n++) {
    var o = e[n];
    if (ot.isText(r) || !r.children[o]) throw new Error("Cannot find a descendant at path [".concat(e, "] in node: ").concat(JSON.stringify(t10)));
    r = r.children[o];
  }
  return r;
}, has(t10, e) {
  for (var r = t10, n = 0; n < e.length; n++) {
    var o = e[n];
    if (ot.isText(r) || !r.children[o]) return false;
    r = r.children[o];
  }
  return true;
}, isNode: (t10) => ot.isText(t10) || ct.isElement(t10) || E.isEditor(t10), isNodeList(t10) {
  if (!Array.isArray(t10)) return false;
  var e = kS.get(t10);
  if (e !== void 0) return e;
  var r = t10.every(((n) => J.isNode(n)));
  return kS.set(t10, r), r;
}, last(t10, e) {
  for (var r = e.slice(), n = J.get(t10, r); n && !ot.isText(n) && n.children.length !== 0; ) {
    var o = n.children.length - 1;
    n = n.children[o], r.push(o);
  }
  return [n, r];
}, leaf(t10, e) {
  var r = J.get(t10, e);
  if (!ot.isText(r)) throw new Error("Cannot get the leaf node at path [".concat(e, "] because it refers to a non-leaf node: ").concat(r));
  return r;
}, *levels(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  for (var n of j.levels(e, r)) {
    var o = J.get(t10, n);
    yield [o, n];
  }
}, matches: (t10, e) => ct.isElement(t10) && ct.isElementProps(e) && ct.matches(t10, e) || ot.isText(t10) && ot.isTextProps(e) && ot.matches(t10, e), *nodes(t10) {
  for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { pass: r, reverse: n = false } = e, { from: o = [], to: i } = e, a = /* @__PURE__ */ new Set(), u = [], s = t10; !i || !(n ? j.isBefore(u, i) : j.isAfter(u, i)); ) if (a.has(s) || (yield [s, u]), a.has(s) || ot.isText(s) || s.children.length === 0 || r != null && r([s, u]) !== false) {
    if (u.length === 0) break;
    if (!n) {
      var l = j.next(u);
      if (J.has(t10, l)) {
        u = l, s = J.get(t10, u);
        continue;
      }
    }
    n && u[u.length - 1] !== 0 ? (u = j.previous(u), s = J.get(t10, u)) : (u = j.parent(u), s = J.get(t10, u), a.add(s));
  } else {
    a.add(s);
    var c = n ? s.children.length - 1 : 0;
    j.isAncestor(u, o) && (c = o[u.length]), u = u.concat(c), s = J.get(t10, u);
  }
}, parent(t10, e) {
  var r = j.parent(e), n = J.get(t10, r);
  if (ot.isText(n)) throw new Error("Cannot get the parent of path [".concat(e, "] because it does not exist in the root."));
  return n;
}, string: (t10) => ot.isText(t10) ? t10.text : t10.children.map(J.string).join(""), *texts(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  for (var [r, n] of J.nodes(t10, e)) ot.isText(r) && (yield [r, n]);
} };
function BS(t10, e) {
  var r = Object.keys(t10);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(t10);
    e && (n = n.filter((function(o) {
      return Object.getOwnPropertyDescriptor(t10, o).enumerable;
    }))), r.push.apply(r, n);
  }
  return r;
}
function ze(t10) {
  for (var e = 1; e < arguments.length; e++) {
    var r = arguments[e] != null ? arguments[e] : {};
    e % 2 ? BS(Object(r), true).forEach((function(n) {
      _o(t10, n, r[n]);
    })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t10, Object.getOwnPropertyDescriptors(r)) : BS(Object(r)).forEach((function(n) {
      Object.defineProperty(t10, n, Object.getOwnPropertyDescriptor(r, n));
    }));
  }
  return t10;
}
var Hi = { isNodeOperation: (t10) => Hi.isOperation(t10) && t10.type.endsWith("_node"), isOperation(t10) {
  if (!Er(t10)) return false;
  switch (t10.type) {
    case "insert_node":
    case "remove_node":
      return j.isPath(t10.path) && J.isNode(t10.node);
    case "insert_text":
    case "remove_text":
      return typeof t10.offset == "number" && typeof t10.text == "string" && j.isPath(t10.path);
    case "merge_node":
      return typeof t10.position == "number" && j.isPath(t10.path) && Er(t10.properties);
    case "move_node":
      return j.isPath(t10.path) && j.isPath(t10.newPath);
    case "set_node":
      return j.isPath(t10.path) && Er(t10.properties) && Er(t10.newProperties);
    case "set_selection":
      return t10.properties === null && L.isRange(t10.newProperties) || t10.newProperties === null && L.isRange(t10.properties) || Er(t10.properties) && Er(t10.newProperties);
    case "split_node":
      return j.isPath(t10.path) && typeof t10.position == "number" && Er(t10.properties);
    default:
      return false;
  }
}, isOperationList: (t10) => Array.isArray(t10) && t10.every(((e) => Hi.isOperation(e))), isSelectionOperation: (t10) => Hi.isOperation(t10) && t10.type.endsWith("_selection"), isTextOperation: (t10) => Hi.isOperation(t10) && t10.type.endsWith("_text"), inverse(t10) {
  switch (t10.type) {
    case "insert_node":
      return ze(ze({}, t10), {}, { type: "remove_node" });
    case "insert_text":
      return ze(ze({}, t10), {}, { type: "remove_text" });
    case "merge_node":
      return ze(ze({}, t10), {}, { type: "split_node", path: j.previous(t10.path) });
    case "move_node":
      var { newPath: e, path: r } = t10;
      if (j.equals(e, r)) return t10;
      if (j.isSibling(r, e)) return ze(ze({}, t10), {}, { path: e, newPath: r });
      var n = j.transform(r, t10), o = j.transform(j.next(r), t10);
      return ze(ze({}, t10), {}, { path: n, newPath: o });
    case "remove_node":
      return ze(ze({}, t10), {}, { type: "insert_node" });
    case "remove_text":
      return ze(ze({}, t10), {}, { type: "insert_text" });
    case "set_node":
      var { properties: i, newProperties: a } = t10;
      return ze(ze({}, t10), {}, { properties: a, newProperties: i });
    case "set_selection":
      var { properties: u, newProperties: s } = t10;
      return ze(ze({}, t10), {}, u == null ? { properties: s, newProperties: null } : s == null ? { properties: null, newProperties: u } : { properties: s, newProperties: u });
    case "split_node":
      return ze(ze({}, t10), {}, { type: "merge_node", path: j.next(t10.path) });
  }
} }, j = { ancestors(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { reverse: r = false } = e, n = j.levels(t10, e);
  return n = r ? n.slice(1) : n.slice(0, -1);
}, common(t10, e) {
  for (var r = [], n = 0; n < t10.length && n < e.length; n++) {
    var o = t10[n];
    if (o !== e[n]) break;
    r.push(o);
  }
  return r;
}, compare(t10, e) {
  for (var r = Math.min(t10.length, e.length), n = 0; n < r; n++) {
    if (t10[n] < e[n]) return -1;
    if (t10[n] > e[n]) return 1;
  }
  return 0;
}, endsAfter(t10, e) {
  var r = t10.length - 1, n = t10.slice(0, r), o = e.slice(0, r), i = t10[r], a = e[r];
  return j.equals(n, o) && i > a;
}, endsAt(t10, e) {
  var r = t10.length, n = t10.slice(0, r), o = e.slice(0, r);
  return j.equals(n, o);
}, endsBefore(t10, e) {
  var r = t10.length - 1, n = t10.slice(0, r), o = e.slice(0, r), i = t10[r], a = e[r];
  return j.equals(n, o) && i < a;
}, equals: (t10, e) => t10.length === e.length && t10.every(((r, n) => r === e[n])), hasPrevious: (t10) => t10[t10.length - 1] > 0, isAfter: (t10, e) => j.compare(t10, e) === 1, isAncestor: (t10, e) => t10.length < e.length && j.compare(t10, e) === 0, isBefore: (t10, e) => j.compare(t10, e) === -1, isChild: (t10, e) => t10.length === e.length + 1 && j.compare(t10, e) === 0, isCommon: (t10, e) => t10.length <= e.length && j.compare(t10, e) === 0, isDescendant: (t10, e) => t10.length > e.length && j.compare(t10, e) === 0, isParent: (t10, e) => t10.length + 1 === e.length && j.compare(t10, e) === 0, isPath: (t10) => Array.isArray(t10) && (t10.length === 0 || typeof t10[0] == "number"), isSibling(t10, e) {
  if (t10.length !== e.length) return false;
  var r = t10.slice(0, -1), n = e.slice(0, -1);
  return t10[t10.length - 1] !== e[e.length - 1] && j.equals(r, n);
}, levels(t10) {
  for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { reverse: r = false } = e, n = [], o = 0; o <= t10.length; o++) n.push(t10.slice(0, o));
  return r && n.reverse(), n;
}, next(t10) {
  if (t10.length === 0) throw new Error("Cannot get the next path of a root path [".concat(t10, "], because it has no next index."));
  var e = t10[t10.length - 1];
  return t10.slice(0, -1).concat(e + 1);
}, parent(t10) {
  if (t10.length === 0) throw new Error("Cannot get the parent path of the root path [".concat(t10, "]."));
  return t10.slice(0, -1);
}, previous(t10) {
  if (t10.length === 0) throw new Error("Cannot get the previous path of a root path [".concat(t10, "], because it has no previous index."));
  var e = t10[t10.length - 1];
  if (e <= 0) throw new Error("Cannot get the previous path of a first child path [".concat(t10, "] because it would result in a negative index."));
  return t10.slice(0, -1).concat(e - 1);
}, relative(t10, e) {
  if (!j.isAncestor(e, t10) && !j.equals(t10, e)) throw new Error("Cannot get the relative path of [".concat(t10, "] inside ancestor [").concat(e, "], because it is not above or equal to the path."));
  return t10.slice(e.length);
}, transform(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  return Ey(t10, ((n) => {
    var { affinity: o = "forward" } = r;
    if (t10 && (t10 == null ? void 0 : t10.length) !== 0) {
      if (n === null) return null;
      switch (e.type) {
        case "insert_node":
          var { path: i } = e;
          (j.equals(i, n) || j.endsBefore(i, n) || j.isAncestor(i, n)) && (n[i.length - 1] += 1);
          break;
        case "remove_node":
          var { path: a } = e;
          if (j.equals(a, n) || j.isAncestor(a, n)) return null;
          j.endsBefore(a, n) && (n[a.length - 1] -= 1);
          break;
        case "merge_node":
          var { path: u, position: s } = e;
          j.equals(u, n) || j.endsBefore(u, n) ? n[u.length - 1] -= 1 : j.isAncestor(u, n) && (n[u.length - 1] -= 1, n[u.length] += s);
          break;
        case "split_node":
          var { path: l, position: c } = e;
          if (j.equals(l, n)) {
            if (o === "forward") n[n.length - 1] += 1;
            else if (o !== "backward") return null;
          } else j.endsBefore(l, n) ? n[l.length - 1] += 1 : j.isAncestor(l, n) && t10[l.length] >= c && (n[l.length - 1] += 1, n[l.length] -= c);
          break;
        case "move_node":
          var { path: f, newPath: d } = e;
          if (j.equals(f, d)) return;
          if (j.isAncestor(f, n) || j.equals(f, n)) {
            var p = d.slice();
            return j.endsBefore(f, d) && f.length < d.length && (p[f.length - 1] -= 1), p.concat(n.slice(f.length));
          }
          j.isSibling(f, d) && (j.isAncestor(d, n) || j.equals(d, n)) ? j.endsBefore(f, n) ? n[f.length - 1] -= 1 : n[f.length - 1] += 1 : j.endsBefore(d, n) || j.equals(d, n) || j.isAncestor(d, n) ? (j.endsBefore(f, n) && (n[f.length - 1] -= 1), n[d.length - 1] += 1) : j.endsBefore(f, n) && (j.equals(d, n) && (n[d.length - 1] += 1), n[f.length - 1] -= 1);
      }
    }
  }));
} }, XW = { transform(t10, e) {
  var { current: r, affinity: n } = t10;
  if (r != null) {
    var o = j.transform(r, e, { affinity: n });
    t10.current = o, o == null && t10.unref();
  }
} };
function FS(t10, e) {
  var r = Object.keys(t10);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(t10);
    e && (n = n.filter((function(o) {
      return Object.getOwnPropertyDescriptor(t10, o).enumerable;
    }))), r.push.apply(r, n);
  }
  return r;
}
function TS(t10) {
  for (var e = 1; e < arguments.length; e++) {
    var r = arguments[e] != null ? arguments[e] : {};
    e % 2 ? FS(Object(r), true).forEach((function(n) {
      _o(t10, n, r[n]);
    })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t10, Object.getOwnPropertyDescriptors(r)) : FS(Object(r)).forEach((function(n) {
      Object.defineProperty(t10, n, Object.getOwnPropertyDescriptor(r, n));
    }));
  }
  return t10;
}
var Bt = { compare(t10, e) {
  var r = j.compare(t10.path, e.path);
  return r === 0 ? t10.offset < e.offset ? -1 : t10.offset > e.offset ? 1 : 0 : r;
}, isAfter: (t10, e) => Bt.compare(t10, e) === 1, isBefore: (t10, e) => Bt.compare(t10, e) === -1, equals: (t10, e) => t10.offset === e.offset && j.equals(t10.path, e.path), isPoint: (t10) => Er(t10) && typeof t10.offset == "number" && j.isPath(t10.path), transform(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  return Ey(t10, ((n) => {
    if (n === null) return null;
    var { affinity: o = "forward" } = r, { path: i, offset: a } = n;
    switch (e.type) {
      case "insert_node":
      case "move_node":
        n.path = j.transform(i, e, r);
        break;
      case "insert_text":
        j.equals(e.path, i) && e.offset <= a && (n.offset += e.text.length);
        break;
      case "merge_node":
        j.equals(e.path, i) && (n.offset += e.position), n.path = j.transform(i, e, r);
        break;
      case "remove_text":
        j.equals(e.path, i) && e.offset <= a && (n.offset -= Math.min(a - e.offset, e.text.length));
        break;
      case "remove_node":
        if (j.equals(e.path, i) || j.isAncestor(e.path, i)) return null;
        n.path = j.transform(i, e, r);
        break;
      case "split_node":
        if (j.equals(e.path, i)) {
          if (e.position === a && o == null) return null;
          (e.position < a || e.position === a && o === "forward") && (n.offset -= e.position, n.path = j.transform(i, e, TS(TS({}, r), {}, { affinity: "forward" })));
        } else n.path = j.transform(i, e, r);
    }
  }));
} }, ZW = { transform(t10, e) {
  var { current: r, affinity: n } = t10;
  if (r != null) {
    var o = Bt.transform(r, e, { affinity: n });
    t10.current = o, o == null && t10.unref();
  }
} }, JW = ["anchor", "focus"];
function _S(t10, e) {
  var r = Object.keys(t10);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(t10);
    e && (n = n.filter((function(o) {
      return Object.getOwnPropertyDescriptor(t10, o).enumerable;
    }))), r.push.apply(r, n);
  }
  return r;
}
var L = { edges(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { reverse: r = false } = e, { anchor: n, focus: o } = t10;
  return L.isBackward(t10) === r ? [n, o] : [o, n];
}, end(t10) {
  var [, e] = L.edges(t10);
  return e;
}, equals: (t10, e) => Bt.equals(t10.anchor, e.anchor) && Bt.equals(t10.focus, e.focus), includes(t10, e) {
  if (L.isRange(e)) {
    if (L.includes(t10, e.anchor) || L.includes(t10, e.focus)) return true;
    var [r, n] = L.edges(t10), [o, i] = L.edges(e);
    return Bt.isBefore(r, o) && Bt.isAfter(n, i);
  }
  var [a, u] = L.edges(t10), s = false, l = false;
  return Bt.isPoint(e) ? (s = Bt.compare(e, a) >= 0, l = Bt.compare(e, u) <= 0) : (s = j.compare(e, a.path) >= 0, l = j.compare(e, u.path) <= 0), s && l;
}, intersection(t10, e) {
  var r = ii(t10, JW), [n, o] = L.edges(t10), [i, a] = L.edges(e), u = Bt.isBefore(n, i) ? i : n, s = Bt.isBefore(o, a) ? o : a;
  return Bt.isBefore(s, u) ? null : (function(l) {
    for (var c = 1; c < arguments.length; c++) {
      var f = arguments[c] != null ? arguments[c] : {};
      c % 2 ? _S(Object(f), true).forEach((function(d) {
        _o(l, d, f[d]);
      })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(l, Object.getOwnPropertyDescriptors(f)) : _S(Object(f)).forEach((function(d) {
        Object.defineProperty(l, d, Object.getOwnPropertyDescriptor(f, d));
      }));
    }
    return l;
  })({ anchor: u, focus: s }, r);
}, isBackward(t10) {
  var { anchor: e, focus: r } = t10;
  return Bt.isAfter(e, r);
}, isCollapsed(t10) {
  var { anchor: e, focus: r } = t10;
  return Bt.equals(e, r);
}, isExpanded: (t10) => !L.isCollapsed(t10), isForward: (t10) => !L.isBackward(t10), isRange: (t10) => Er(t10) && Bt.isPoint(t10.anchor) && Bt.isPoint(t10.focus), *points(t10) {
  yield [t10.anchor, "anchor"], yield [t10.focus, "focus"];
}, start(t10) {
  var [e] = L.edges(t10);
  return e;
}, transform(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  return Ey(t10, ((n) => {
    if (n === null) return null;
    var o, i, { affinity: a = "inward" } = r;
    if (a === "inward") {
      var u = L.isCollapsed(n);
      L.isForward(n) ? (o = "forward", i = u ? o : "backward") : (o = "backward", i = u ? o : "forward");
    } else a === "outward" ? L.isForward(n) ? (o = "backward", i = "forward") : (o = "forward", i = "backward") : (o = a, i = a);
    var s = Bt.transform(n.anchor, e, { affinity: o }), l = Bt.transform(n.focus, e, { affinity: i });
    if (!s || !l) return null;
    n.anchor = s, n.focus = l;
  }));
} }, QW = { transform(t10, e) {
  var { current: r, affinity: n } = t10;
  if (r != null) {
    var o = L.transform(r, e, { affinity: n });
    t10.current = o, o == null && t10.unref();
  }
} }, TP = (t10, e) => {
  for (var r in t10) {
    var n = t10[r], o = e[r];
    if (Er(n) && Er(o)) {
      if (!TP(n, o)) return false;
    } else if (Array.isArray(n) && Array.isArray(o)) {
      if (n.length !== o.length) return false;
      for (var i = 0; i < n.length; i++) if (n[i] !== o[i]) return false;
    } else if (n !== o) return false;
  }
  for (var a in e) if (t10[a] === void 0 && e[a] !== void 0) return false;
  return true;
}, tG = ["text"], eG = ["anchor", "focus"];
function PS(t10, e) {
  var r = Object.keys(t10);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(t10);
    e && (n = n.filter((function(o) {
      return Object.getOwnPropertyDescriptor(t10, o).enumerable;
    }))), r.push.apply(r, n);
  }
  return r;
}
function zo(t10) {
  for (var e = 1; e < arguments.length; e++) {
    var r = arguments[e] != null ? arguments[e] : {};
    e % 2 ? PS(Object(r), true).forEach((function(n) {
      _o(t10, n, r[n]);
    })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t10, Object.getOwnPropertyDescriptors(r)) : PS(Object(r)).forEach((function(n) {
      Object.defineProperty(t10, n, Object.getOwnPropertyDescriptor(r, n));
    }));
  }
  return t10;
}
var ot = { equals(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { loose: n = false } = r;
  function o(i) {
    return ii(i, tG);
  }
  return TP(n ? o(t10) : t10, n ? o(e) : e);
}, isText: (t10) => Er(t10) && typeof t10.text == "string", isTextList: (t10) => Array.isArray(t10) && t10.every(((e) => ot.isText(e))), isTextProps: (t10) => t10.text !== void 0, matches(t10, e) {
  for (var r in e) if (r !== "text" && (!t10.hasOwnProperty(r) || t10[r] !== e[r])) return false;
  return true;
}, decorations(t10, e) {
  var r = [zo({}, t10)];
  for (var n of e) {
    var o = ii(n, eG), [i, a] = L.edges(n), u = [], s = 0;
    for (var l of r) {
      var { length: c } = l.text, f = s;
      if (s += c, i.offset <= f && a.offset >= s) Object.assign(l, o), u.push(l);
      else if (i.offset !== a.offset && (i.offset === s || a.offset === f) || i.offset > s || a.offset < f || a.offset === f && f !== 0) u.push(l);
      else {
        var d = l, p = void 0, v = void 0;
        if (a.offset < s) {
          var y = a.offset - f;
          v = zo(zo({}, d), {}, { text: d.text.slice(y) }), d = zo(zo({}, d), {}, { text: d.text.slice(0, y) });
        }
        if (i.offset > f) {
          var g = i.offset - f;
          p = zo(zo({}, d), {}, { text: d.text.slice(0, g) }), d = zo(zo({}, d), {}, { text: d.text.slice(g) });
        }
        Object.assign(d, o), p && u.push(p), u.push(d), v && u.push(v);
      }
    }
    r = u;
  }
  return r;
} };
function jS(t10, e) {
  var r = Object.keys(t10);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(t10);
    e && (n = n.filter((function(o) {
      return Object.getOwnPropertyDescriptor(t10, o).enumerable;
    }))), r.push.apply(r, n);
  }
  return r;
}
function Sc(t10) {
  for (var e = 1; e < arguments.length; e++) {
    var r = arguments[e] != null ? arguments[e] : {};
    e % 2 ? jS(Object(r), true).forEach((function(n) {
      _o(t10, n, r[n]);
    })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t10, Object.getOwnPropertyDescriptors(r)) : jS(Object(r)).forEach((function(n) {
      Object.defineProperty(t10, n, Object.getOwnPropertyDescriptor(r, n));
    }));
  }
  return t10;
}
var rG = { transform(t10, e) {
  t10.children = mS(t10.children);
  var r = t10.selection && mS(t10.selection);
  try {
    r = ((n, o, i) => {
      switch (i.type) {
        case "insert_node":
          var { path: a, node: u } = i, s = J.parent(n, a), l = a[a.length - 1];
          if (l > s.children.length) throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a, "] because the destination is past the end of the node."));
          if (s.children.splice(l, 0, u), o) for (var [c, f] of L.points(o)) o[f] = Bt.transform(c, i);
          break;
        case "insert_text":
          var { path: d, offset: p, text: v } = i;
          if (v.length === 0) break;
          var y = J.leaf(n, d), g = y.text.slice(0, p), m = y.text.slice(p);
          if (y.text = g + v + m, o) for (var [h, b] of L.points(o)) o[b] = Bt.transform(h, i);
          break;
        case "merge_node":
          var { path: w } = i, D = J.get(n, w), x = j.previous(w), C = J.get(n, x), O = J.parent(n, w), T = w[w.length - 1];
          if (ot.isText(D) && ot.isText(C)) C.text += D.text;
          else {
            if (ot.isText(D) || ot.isText(C)) throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w, "] to nodes of different interfaces: ").concat(D, " ").concat(C));
            C.children.push(...D.children);
          }
          if (O.children.splice(T, 1), o) for (var [R, H] of L.points(o)) o[H] = Bt.transform(R, i);
          break;
        case "move_node":
          var { path: M, newPath: K } = i;
          if (j.isAncestor(M, K)) throw new Error("Cannot move a path [".concat(M, "] to new path [").concat(K, "] because the destination is inside itself."));
          var U = J.get(n, M), W = J.parent(n, M), q = M[M.length - 1];
          W.children.splice(q, 1);
          var et = j.transform(M, i), st = J.get(n, j.parent(et)), ut = et[et.length - 1];
          if (st.children.splice(ut, 0, U), o) for (var [at, k] of L.points(o)) o[k] = Bt.transform(at, i);
          break;
        case "remove_node":
          var { path: S } = i, P = S[S.length - 1];
          if (J.parent(n, S).children.splice(P, 1), o) for (var [$, Y] of L.points(o)) {
            var V = Bt.transform($, i);
            if (o != null && V != null) o[Y] = V;
            else {
              var it = void 0, gt = void 0;
              for (var [vt, Dt] of J.texts(n)) {
                if (j.compare(Dt, S) !== -1) {
                  gt = [vt, Dt];
                  break;
                }
                it = [vt, Dt];
              }
              var G = false;
              it && gt && (G = j.equals(gt[1], S) ? !j.hasPrevious(gt[1]) : j.common(it[1], S).length < j.common(gt[1], S).length), it && !G ? ($.path = it[1], $.offset = it[0].text.length) : gt ? ($.path = gt[1], $.offset = 0) : o = null;
            }
          }
          break;
        case "remove_text":
          var { path: It, offset: At, text: dt } = i;
          if (dt.length === 0) break;
          var Ot = J.leaf(n, It), Oe = Ot.text.slice(0, At), $t = Ot.text.slice(At + dt.length);
          if (Ot.text = Oe + $t, o) for (var [Qt, ge] of L.points(o)) o[ge] = Bt.transform(Qt, i);
          break;
        case "set_node":
          var { path: hr, properties: Mt, newProperties: jr } = i;
          if (hr.length === 0) throw new Error("Cannot set properties on the root node!");
          var Pn = J.get(n, hr);
          for (var Qn in jr) {
            if (Qn === "children" || Qn === "text") throw new Error('Cannot set the "'.concat(Qn, '" property of nodes!'));
            var cs = jr[Qn];
            cs == null ? delete Pn[Qn] : Pn[Qn] = cs;
          }
          for (var Pa in Mt) jr.hasOwnProperty(Pa) || delete Pn[Pa];
          break;
        case "set_selection":
          var { newProperties: jn } = i;
          if (jn == null) o = jn;
          else {
            if (o == null) {
              if (!L.isRange(jn)) throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(jn), " when there is no current selection."));
              o = Sc({}, jn);
            }
            for (var to in jn) {
              var jo = jn[to];
              if (jo == null) {
                if (to === "anchor" || to === "focus") throw new Error('Cannot remove the "'.concat(to, '" selection property'));
                delete o[to];
              } else o[to] = jo;
            }
          }
          break;
        case "split_node":
          var { path: gr, position: vr, properties: yr } = i;
          if (gr.length === 0) throw new Error('Cannot apply a "split_node" operation at path ['.concat(gr, "] because the root node cannot be split."));
          var kr, er = J.get(n, gr), fn = J.parent(n, gr), pc = gr[gr.length - 1];
          if (ot.isText(er)) {
            var di = er.text.slice(0, vr), No = er.text.slice(vr);
            er.text = di, kr = Sc(Sc({}, yr), {}, { text: No });
          } else {
            var fs = er.children.slice(0, vr), ja = er.children.slice(vr);
            er.children = fs, kr = Sc(Sc({}, yr), {}, { children: ja });
          }
          if (fn.children.splice(pc + 1, 0, kr), o) for (var [ds, Nn] of L.points(o)) o[Nn] = Bt.transform(ds, i);
      }
      return o;
    })(t10, r, e);
  } finally {
    t10.children = bS(t10.children), t10.selection = r ? Ru(r) ? bS(r) : r : null;
  }
} }, nG = ["text"], oG = ["children"];
function NS(t10, e) {
  var r = Object.keys(t10);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(t10);
    e && (n = n.filter((function(o) {
      return Object.getOwnPropertyDescriptor(t10, o).enumerable;
    }))), r.push.apply(r, n);
  }
  return r;
}
function IS(t10) {
  for (var e = 1; e < arguments.length; e++) {
    var r = arguments[e] != null ? arguments[e] : {};
    e % 2 ? NS(Object(r), true).forEach((function(n) {
      _o(t10, n, r[n]);
    })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t10, Object.getOwnPropertyDescriptors(r)) : NS(Object(r)).forEach((function(n) {
      Object.defineProperty(t10, n, Object.getOwnPropertyDescriptor(r, n));
    }));
  }
  return t10;
}
var iG = { insertNodes(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  E.withoutNormalizing(t10, (() => {
    var { hanging: n = false, voids: o = false, mode: i = "lowest" } = r, { at: a, match: u, select: s } = r;
    if (J.isNode(e) && (e = [e]), e.length !== 0) {
      var [l] = e;
      if (a || (a = t10.selection ? t10.selection : t10.children.length > 0 ? E.end(t10, []) : [0], s = true), s == null && (s = false), L.isRange(a)) if (n || (a = E.unhangRange(t10, a)), L.isCollapsed(a)) a = a.anchor;
      else {
        var [, c] = L.edges(a), f = E.pointRef(t10, c);
        N.delete(t10, { at: a }), a = f.unref();
      }
      if (Bt.isPoint(a)) {
        u == null && (u = ot.isText(l) ? (x) => ot.isText(x) : t10.isInline(l) ? (x) => ot.isText(x) || E.isInline(t10, x) : (x) => E.isBlock(t10, x));
        var [d] = E.nodes(t10, { at: a.path, match: u, mode: i, voids: o });
        if (!d) return;
        var [, p] = d, v = E.pathRef(t10, p), y = E.isEnd(t10, a, p);
        N.splitNodes(t10, { at: a, match: u, mode: i, voids: o });
        var g = v.unref();
        a = y ? j.next(g) : g;
      }
      var m = j.parent(a), h = a[a.length - 1];
      if (o || !E.void(t10, { at: m })) {
        for (var b of e) {
          var w = m.concat(h);
          h++, t10.apply({ type: "insert_node", path: w, node: b }), a = j.next(a);
        }
        if (a = j.previous(a), s) {
          var D = E.end(t10, a);
          D && N.select(t10, D);
        }
      }
    }
  }));
}, liftNodes(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  E.withoutNormalizing(t10, (() => {
    var { at: r = t10.selection, mode: n = "lowest", voids: o = false } = e, { match: i } = e;
    if (i == null && (i = j.isPath(r) ? ms(t10, r) : (b) => E.isBlock(t10, b)), r) {
      var a = E.nodes(t10, { at: r, match: i, mode: n, voids: o }), u = Array.from(a, ((b) => {
        var [, w] = b;
        return E.pathRef(t10, w);
      }));
      for (var s of u) {
        var l = s.unref();
        if (l.length < 2) throw new Error("Cannot lift node at a path [".concat(l, "] because it has a depth of less than `2`."));
        var c = E.node(t10, j.parent(l)), [f, d] = c, p = l[l.length - 1], { length: v } = f.children;
        if (v === 1) {
          var y = j.next(d);
          N.moveNodes(t10, { at: l, to: y, voids: o }), N.removeNodes(t10, { at: d, voids: o });
        } else if (p === 0) N.moveNodes(t10, { at: l, to: d, voids: o });
        else if (p === v - 1) {
          var g = j.next(d);
          N.moveNodes(t10, { at: l, to: g, voids: o });
        } else {
          var m = j.next(l), h = j.next(d);
          N.splitNodes(t10, { at: m, voids: o }), N.moveNodes(t10, { at: l, to: h, voids: o });
        }
      }
    }
  }));
}, mergeNodes(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  E.withoutNormalizing(t10, (() => {
    var { match: r, at: n = t10.selection } = e, { hanging: o = false, voids: i = false, mode: a = "lowest" } = e;
    if (n) {
      if (r == null) if (j.isPath(n)) {
        var [u] = E.parent(t10, n);
        r = (T) => u.children.includes(T);
      } else r = (T) => E.isBlock(t10, T);
      if (!o && L.isRange(n) && (n = E.unhangRange(t10, n)), L.isRange(n)) if (L.isCollapsed(n)) n = n.anchor;
      else {
        var [, s] = L.edges(n), l = E.pointRef(t10, s);
        N.delete(t10, { at: n }), n = l.unref(), e.at == null && N.select(t10, n);
      }
      var [c] = E.nodes(t10, { at: n, match: r, voids: i, mode: a }), f = E.previous(t10, { at: n, match: r, voids: i, mode: a });
      if (c && f) {
        var [d, p] = c, [v, y] = f;
        if (p.length !== 0 && y.length !== 0) {
          var g, m, h = j.next(y), b = j.common(p, y), w = j.isSibling(p, y), D = Array.from(E.levels(t10, { at: p }), ((T) => {
            var [R] = T;
            return R;
          })).slice(b.length).slice(0, -1), x = E.above(t10, { at: p, mode: "highest", match: (T) => D.includes(T) && _P(t10, T) }), C = x && E.pathRef(t10, x[1]);
          if (ot.isText(d) && ot.isText(v)) {
            var O = ii(d, nG);
            m = v.text.length, g = O;
          } else {
            if (!ct.isElement(d) || !ct.isElement(v)) throw new Error("Cannot merge the node at path [".concat(p, "] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d), " ").concat(JSON.stringify(v)));
            O = ii(d, oG), m = v.children.length, g = O;
          }
          w || N.moveNodes(t10, { at: p, to: h, voids: i }), C && N.removeNodes(t10, { at: C.current, voids: i }), ct.isElement(v) && E.isEmpty(t10, v) || ot.isText(v) && v.text === "" && y[y.length - 1] !== 0 ? N.removeNodes(t10, { at: y, voids: i }) : t10.apply({ type: "merge_node", path: h, position: m, properties: g }), C && C.unref();
        }
      }
    }
  }));
}, moveNodes(t10, e) {
  E.withoutNormalizing(t10, (() => {
    var { to: r, at: n = t10.selection, mode: o = "lowest", voids: i = false } = e, { match: a } = e;
    if (n) {
      a == null && (a = j.isPath(n) ? ms(t10, n) : (p) => E.isBlock(t10, p));
      var u = E.pathRef(t10, r), s = E.nodes(t10, { at: n, match: a, mode: o, voids: i }), l = Array.from(s, ((p) => {
        var [, v] = p;
        return E.pathRef(t10, v);
      }));
      for (var c of l) {
        var f = c.unref(), d = u.current;
        f.length !== 0 && t10.apply({ type: "move_node", path: f, newPath: d }), u.current && j.isSibling(d, f) && j.isAfter(d, f) && (u.current = j.next(u.current));
      }
      u.unref();
    }
  }));
}, removeNodes(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  E.withoutNormalizing(t10, (() => {
    var { hanging: r = false, voids: n = false, mode: o = "lowest" } = e, { at: i = t10.selection, match: a } = e;
    if (i) {
      a == null && (a = j.isPath(i) ? ms(t10, i) : (d) => E.isBlock(t10, d)), !r && L.isRange(i) && (i = E.unhangRange(t10, i));
      var u = E.nodes(t10, { at: i, match: a, mode: o, voids: n }), s = Array.from(u, ((d) => {
        var [, p] = d;
        return E.pathRef(t10, p);
      }));
      for (var l of s) {
        var c = l.unref();
        if (c) {
          var [f] = E.node(t10, c);
          t10.apply({ type: "remove_node", path: c, node: f });
        }
      }
    }
  }));
}, setNodes(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  E.withoutNormalizing(t10, (() => {
    var { match: n, at: o = t10.selection } = r, { hanging: i = false, mode: a = "lowest", split: u = false, voids: s = false } = r;
    if (o) {
      if (n == null && (n = j.isPath(o) ? ms(t10, o) : (D) => E.isBlock(t10, D)), !i && L.isRange(o) && (o = E.unhangRange(t10, o)), u && L.isRange(o)) {
        if (L.isCollapsed(o) && E.leaf(t10, o.anchor)[0].text.length > 0) return;
        var l = E.rangeRef(t10, o, { affinity: "inward" }), [c, f] = L.edges(o), d = a === "lowest" ? "lowest" : "highest", p = E.isEnd(t10, f, f.path);
        N.splitNodes(t10, { at: f, match: n, mode: d, voids: s, always: !p });
        var v = E.isStart(t10, c, c.path);
        N.splitNodes(t10, { at: c, match: n, mode: d, voids: s, always: !v }), o = l.unref(), r.at == null && N.select(t10, o);
      }
      for (var [y, g] of E.nodes(t10, { at: o, match: n, mode: a, voids: s })) {
        var m = {}, h = {};
        if (g.length !== 0) {
          var b = false;
          for (var w in e) w !== "children" && w !== "text" && e[w] !== y[w] && (b = true, y.hasOwnProperty(w) && (m[w] = y[w]), e[w] != null && (h[w] = e[w]));
          b && t10.apply({ type: "set_node", path: g, properties: m, newProperties: h });
        }
      }
    }
  }));
}, splitNodes(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  E.withoutNormalizing(t10, (() => {
    var { mode: r = "lowest", voids: n = false } = e, { match: o, at: i = t10.selection, height: a = 0, always: u = false } = e;
    if (o == null && (o = (U) => E.isBlock(t10, U)), L.isRange(i) && (i = aG(t10, i)), j.isPath(i)) {
      var s = i, l = E.point(t10, s), [c] = E.parent(t10, s);
      o = (U) => U === c, a = l.path.length - s.length + 1, i = l, u = true;
    }
    if (i) {
      var f = E.pointRef(t10, i, { affinity: "backward" }), [d] = E.nodes(t10, { at: i, match: o, mode: r, voids: n });
      if (d) {
        var p = E.void(t10, { at: i, mode: "highest" });
        if (!n && p) {
          var [v, y] = p;
          if (ct.isElement(v) && t10.isInline(v)) {
            var g = E.after(t10, y);
            if (!g) {
              var m = j.next(y);
              N.insertNodes(t10, { text: "" }, { at: m, voids: n }), g = E.point(t10, m);
            }
            i = g, u = true;
          }
          a = i.path.length - y.length + 1, u = true;
        }
        var h = E.pointRef(t10, i), b = i.path.length - a, [, w] = d, D = i.path.slice(0, b), x = a === 0 ? i.offset : i.path[b] + 0;
        for (var [C, O] of E.levels(t10, { at: D, reverse: true, voids: n })) {
          var T = false;
          if (O.length < w.length || O.length === 0 || !n && E.isVoid(t10, C)) break;
          var R = f.current, H = E.isEnd(t10, R, O);
          if (u || !f || !E.isEdge(t10, R, O)) {
            T = true;
            var M = J.extractProps(C);
            t10.apply({ type: "split_node", path: O, position: x, properties: M });
          }
          x = O[O.length - 1] + (T || H ? 1 : 0);
        }
        if (e.at == null) {
          var K = h.current || E.end(t10, []);
          N.select(t10, K);
        }
        f.unref(), h.unref();
      }
    }
  }));
}, unsetNodes(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  Array.isArray(e) || (e = [e]);
  var n = {};
  for (var o of e) n[o] = null;
  N.setNodes(t10, n, r);
}, unwrapNodes(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  E.withoutNormalizing(t10, (() => {
    var { mode: r = "lowest", split: n = false, voids: o = false } = e, { at: i = t10.selection, match: a } = e;
    if (i) {
      a == null && (a = j.isPath(i) ? ms(t10, i) : (d) => E.isBlock(t10, d)), j.isPath(i) && (i = E.range(t10, i));
      var u = L.isRange(i) ? E.rangeRef(t10, i) : null, s = E.nodes(t10, { at: i, match: a, mode: r, voids: o }), l = Array.from(s, ((d) => {
        var [, p] = d;
        return E.pathRef(t10, p);
      })).reverse(), c = function(d) {
        var p = d.unref(), [v] = E.node(t10, p), y = E.range(t10, p);
        n && u && (y = L.intersection(u.current, y)), N.liftNodes(t10, { at: y, match: (g) => ct.isAncestor(v) && v.children.includes(g), voids: o });
      };
      for (var f of l) c(f);
      u && u.unref();
    }
  }));
}, wrapNodes(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  E.withoutNormalizing(t10, (() => {
    var { mode: n = "lowest", split: o = false, voids: i = false } = r, { match: a, at: u = t10.selection } = r;
    if (u) {
      if (a == null && (a = j.isPath(u) ? ms(t10, u) : t10.isInline(e) ? (g) => E.isInline(t10, g) || ot.isText(g) : (g) => E.isBlock(t10, g)), o && L.isRange(u)) {
        var [s, l] = L.edges(u), c = E.rangeRef(t10, u, { affinity: "inward" });
        N.splitNodes(t10, { at: l, match: a, voids: i }), N.splitNodes(t10, { at: s, match: a, voids: i }), u = c.unref(), r.at == null && N.select(t10, u);
      }
      var f = Array.from(E.nodes(t10, { at: u, match: t10.isInline(e) ? (g) => E.isBlock(t10, g) : (g) => E.isEditor(g), mode: "lowest", voids: i }));
      for (var [, d] of f) {
        var p = L.isRange(u) ? L.intersection(u, E.range(t10, d)) : u;
        if (p) {
          var v = Array.from(E.nodes(t10, { at: p, match: a, mode: n, voids: i }));
          if (v.length > 0) {
            var y = (function() {
              var [g] = v, m = v[v.length - 1], [, h] = g, [, b] = m;
              if (h.length === 0 && b.length === 0) return "continue";
              var w = j.equals(h, b) ? j.parent(h) : j.common(h, b), D = E.range(t10, h, b), x = E.node(t10, w), [C] = x, O = w.length + 1, T = j.next(b.slice(0, O)), R = IS(IS({}, e), {}, { children: [] });
              N.insertNodes(t10, R, { at: T, voids: i }), N.moveNodes(t10, { at: D, match: (H) => ct.isAncestor(C) && C.children.includes(H), to: T.concat(0), voids: i });
            })();
            if (y === "continue") continue;
          }
        }
      }
    }
  }));
} }, _P = (t10, e) => {
  if (ct.isElement(e)) {
    var r = e;
    return !!E.isVoid(t10, e) || r.children.length === 1 && _P(t10, r.children[0]);
  }
  return !E.isEditor(e);
}, aG = (t10, e) => {
  if (L.isCollapsed(e)) return e.anchor;
  var [, r] = L.edges(e), n = E.pointRef(t10, r);
  return N.delete(t10, { at: e }), n.unref();
}, ms = (t10, e) => {
  var [r] = E.node(t10, e);
  return (n) => n === r;
};
function LS(t10, e) {
  var r = Object.keys(t10);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(t10);
    e && (n = n.filter((function(o) {
      return Object.getOwnPropertyDescriptor(t10, o).enumerable;
    }))), r.push.apply(r, n);
  }
  return r;
}
function RS(t10) {
  for (var e = 1; e < arguments.length; e++) {
    var r = arguments[e] != null ? arguments[e] : {};
    e % 2 ? LS(Object(r), true).forEach((function(n) {
      _o(t10, n, r[n]);
    })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t10, Object.getOwnPropertyDescriptors(r)) : LS(Object(r)).forEach((function(n) {
      Object.defineProperty(t10, n, Object.getOwnPropertyDescriptor(r, n));
    }));
  }
  return t10;
}
var uG = { collapse(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { edge: r = "anchor" } = e, { selection: n } = t10;
  if (n) {
    if (r === "anchor") N.select(t10, n.anchor);
    else if (r === "focus") N.select(t10, n.focus);
    else if (r === "start") {
      var [o] = L.edges(n);
      N.select(t10, o);
    } else if (r === "end") {
      var [, i] = L.edges(n);
      N.select(t10, i);
    }
  }
}, deselect(t10) {
  var { selection: e } = t10;
  e && t10.apply({ type: "set_selection", properties: e, newProperties: null });
}, move(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { selection: r } = t10, { distance: n = 1, unit: o = "character", reverse: i = false } = e, { edge: a = null } = e;
  if (r) {
    a === "start" && (a = L.isBackward(r) ? "focus" : "anchor"), a === "end" && (a = L.isBackward(r) ? "anchor" : "focus");
    var { anchor: u, focus: s } = r, l = { distance: n, unit: o }, c = {};
    if (a == null || a === "anchor") {
      var f = i ? E.before(t10, u, l) : E.after(t10, u, l);
      f && (c.anchor = f);
    }
    if (a == null || a === "focus") {
      var d = i ? E.before(t10, s, l) : E.after(t10, s, l);
      d && (c.focus = d);
    }
    N.setSelection(t10, c);
  }
}, select(t10, e) {
  var { selection: r } = t10;
  if (e = E.range(t10, e), r) N.setSelection(t10, e);
  else {
    if (!L.isRange(e)) throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));
    t10.apply({ type: "set_selection", properties: r, newProperties: e });
  }
}, setPoint(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, { selection: n } = t10, { edge: o = "both" } = r;
  if (n) {
    o === "start" && (o = L.isBackward(n) ? "focus" : "anchor"), o === "end" && (o = L.isBackward(n) ? "anchor" : "focus");
    var { anchor: i, focus: a } = n, u = o === "anchor" ? i : a;
    N.setSelection(t10, { [o === "anchor" ? "anchor" : "focus"]: RS(RS({}, u), e) });
  }
}, setSelection(t10, e) {
  var { selection: r } = t10, n = {}, o = {};
  if (r) {
    for (var i in e) (i === "anchor" && e.anchor != null && !Bt.equals(e.anchor, r.anchor) || i === "focus" && e.focus != null && !Bt.equals(e.focus, r.focus) || i !== "anchor" && i !== "focus" && e[i] !== r[i]) && (n[i] = r[i], o[i] = e[i]);
    Object.keys(n).length > 0 && t10.apply({ type: "set_selection", properties: n, newProperties: o });
  }
} }, sG = { delete(t10) {
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  E.withoutNormalizing(t10, (() => {
    var { reverse: r = false, unit: n = "character", distance: o = 1, voids: i = false } = e, { at: a = t10.selection, hanging: u = false } = e;
    if (a) {
      if (L.isRange(a) && L.isCollapsed(a) && (a = a.anchor), Bt.isPoint(a)) {
        var s = E.void(t10, { at: a, mode: "highest" });
        if (!i && s) {
          var [, l] = s;
          a = l;
        } else {
          var c = { unit: n, distance: o };
          a = { anchor: a, focus: r ? E.before(t10, a, c) || E.start(t10, []) : E.after(t10, a, c) || E.end(t10, []) }, u = true;
        }
      }
      if (j.isPath(a)) N.removeNodes(t10, { at: a, voids: i });
      else if (!L.isCollapsed(a)) {
        if (!u) {
          var [, f] = L.edges(a), d = E.end(t10, []);
          Bt.equals(f, d) || (a = E.unhangRange(t10, a, { voids: i }));
        }
        var [p, v] = L.edges(a), y = E.above(t10, { match: (gt) => E.isBlock(t10, gt), at: p, voids: i }), g = E.above(t10, { match: (gt) => E.isBlock(t10, gt), at: v, voids: i }), m = y && g && !j.equals(y[1], g[1]), h = j.equals(p.path, v.path), b = i ? null : E.void(t10, { at: p, mode: "highest" }), w = i ? null : E.void(t10, { at: v, mode: "highest" });
        if (b) {
          var D = E.before(t10, p);
          D && y && j.isAncestor(y[1], D.path) && (p = D);
        }
        if (w) {
          var x = E.after(t10, v);
          x && g && j.isAncestor(g[1], x.path) && (v = x);
        }
        var C, O = [];
        for (var T of E.nodes(t10, { at: a, voids: i })) {
          var [R, H] = T;
          C && j.compare(H, C) === 0 || (!i && E.isVoid(t10, R) || !j.isCommon(H, p.path) && !j.isCommon(H, v.path)) && (O.push(T), C = H);
        }
        var M = Array.from(O, ((gt) => {
          var [, vt] = gt;
          return E.pathRef(t10, vt);
        })), K = E.pointRef(t10, p), U = E.pointRef(t10, v);
        if (!h && !b) {
          var W = K.current, [q] = E.leaf(t10, W), { path: et } = W, { offset: st } = p, ut = q.text.slice(st);
          ut.length > 0 && t10.apply({ type: "remove_text", path: et, offset: st, text: ut });
        }
        for (var at of M) {
          var k = at.unref();
          N.removeNodes(t10, { at: k, voids: i });
        }
        if (!w) {
          var S = U.current, [P] = E.leaf(t10, S), { path: $ } = S, Y = h ? p.offset : 0, V = P.text.slice(Y, v.offset);
          V.length > 0 && t10.apply({ type: "remove_text", path: $, offset: Y, text: V });
        }
        !h && m && U.current && K.current && N.mergeNodes(t10, { at: U.current, hanging: true, voids: i });
        var it = r ? K.unref() || U.unref() : U.unref() || K.unref();
        e.at == null && it && N.select(t10, it);
      }
    }
  }));
}, insertFragment(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  E.withoutNormalizing(t10, (() => {
    var { hanging: n = false, voids: o = false } = r, { at: i = t10.selection } = r;
    if (e.length && i) {
      if (L.isRange(i)) if (n || (i = E.unhangRange(t10, i)), L.isCollapsed(i)) i = i.anchor;
      else {
        var [, a] = L.edges(i);
        if (!o && E.void(t10, { at: a })) return;
        var u = E.pointRef(t10, a);
        N.delete(t10, { at: i }), i = u.unref();
      }
      else j.isPath(i) && (i = E.start(t10, i));
      if (o || !E.void(t10, { at: i })) {
        var s = E.above(t10, { at: i, match: (S) => E.isInline(t10, S), mode: "highest", voids: o });
        if (s) {
          var [, l] = s;
          E.isEnd(t10, i, l) ? i = E.after(t10, l) : E.isStart(t10, i, l) && (i = E.before(t10, l));
        }
        var c = E.above(t10, { match: (S) => E.isBlock(t10, S), at: i, voids: o }), [, f] = c, d = E.isStart(t10, i, f), p = E.isEnd(t10, i, f), v = d && p, y = !d || d && p, g = !p, [, m] = J.first({ children: e }, []), [, h] = J.last({ children: e }, []), b = [], w = (S) => {
          var [P, $] = S;
          return $.length !== 0 && (!!v || !(y && j.isAncestor($, m) && ct.isElement(P) && !t10.isVoid(P) && !t10.isInline(P)) && !(g && j.isAncestor($, h) && ct.isElement(P) && !t10.isVoid(P) && !t10.isInline(P)));
        };
        for (var D of J.nodes({ children: e }, { pass: w })) w(D) && b.push(D);
        var x = [], C = [], O = [], T = true, R = false;
        for (var [H] of b) ct.isElement(H) && !t10.isInline(H) ? (T = false, R = true, C.push(H)) : T ? x.push(H) : O.push(H);
        var [M] = E.nodes(t10, { at: i, match: (S) => ot.isText(S) || E.isInline(t10, S), mode: "highest", voids: o }), [, K] = M, U = E.isStart(t10, i, K), W = E.isEnd(t10, i, K), q = E.pathRef(t10, p ? j.next(f) : f), et = E.pathRef(t10, W ? j.next(K) : K), st = E.pathRef(t10, f);
        N.splitNodes(t10, { at: i, match: (S) => R ? E.isBlock(t10, S) : ot.isText(S) || E.isInline(t10, S), mode: R ? "lowest" : "highest", voids: o });
        var ut = E.pathRef(t10, !U || U && W ? j.next(K) : K);
        if (N.insertNodes(t10, x, { at: ut.current, match: (S) => ot.isText(S) || E.isInline(t10, S), mode: "highest", voids: o }), v && C.length && N.delete(t10, { at: st.unref(), voids: o }), N.insertNodes(t10, C, { at: q.current, match: (S) => E.isBlock(t10, S), mode: "lowest", voids: o }), N.insertNodes(t10, O, { at: et.current, match: (S) => ot.isText(S) || E.isInline(t10, S), mode: "highest", voids: o }), !r.at) {
          var at;
          at = O.length > 0 ? j.previous(et.current) : C.length > 0 ? j.previous(q.current) : j.previous(ut.current);
          var k = E.end(t10, at);
          N.select(t10, k);
        }
        ut.unref(), q.unref(), et.unref();
      }
    }
  }));
}, insertText(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
  E.withoutNormalizing(t10, (() => {
    var { voids: n = false } = r, { at: o = t10.selection } = r;
    if (o) {
      if (j.isPath(o) && (o = E.range(t10, o)), L.isRange(o)) if (L.isCollapsed(o)) o = o.anchor;
      else {
        var i = L.end(o);
        if (!n && E.void(t10, { at: i })) return;
        var a = E.pointRef(t10, i);
        N.delete(t10, { at: o, voids: n }), o = a.unref(), N.setSelection(t10, { anchor: o, focus: o });
      }
      if (n || !E.void(t10, { at: o })) {
        var { path: u, offset: s } = o;
        e.length > 0 && t10.apply({ type: "insert_text", path: u, offset: s, text: e });
      }
    }
  }));
} };
function MS(t10, e) {
  var r = Object.keys(t10);
  if (Object.getOwnPropertySymbols) {
    var n = Object.getOwnPropertySymbols(t10);
    e && (n = n.filter((function(o) {
      return Object.getOwnPropertyDescriptor(t10, o).enumerable;
    }))), r.push.apply(r, n);
  }
  return r;
}
function Ch(t10) {
  for (var e = 1; e < arguments.length; e++) {
    var r = arguments[e] != null ? arguments[e] : {};
    e % 2 ? MS(Object(r), true).forEach((function(n) {
      _o(t10, n, r[n]);
    })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t10, Object.getOwnPropertyDescriptors(r)) : MS(Object(r)).forEach((function(n) {
      Object.defineProperty(t10, n, Object.getOwnPropertyDescriptor(r, n));
    }));
  }
  return t10;
}
var N = Ch(Ch(Ch(Ch({}, rG), iG), uG), sG), x4 = "[object Map]", S4 = "[object Set]", lG = /^\[object .+?Constructor\]$/, cG = /^(?:0|[1-9]\d*)$/, fG = "[\\ud800-\\udfff]", A4 = "[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]", O4 = "\\ud83c[\\udffb-\\udfff]", PP = "[^\\ud800-\\udfff]", jP = "(?:\\ud83c[\\udde6-\\uddff]){2}", NP = "[\\ud800-\\udbff][\\udc00-\\udfff]", zS = "(?:" + A4 + "|" + O4 + ")?", dG = "[\\ufe0e\\ufe0f]?" + zS + ("(?:\\u200d(?:" + [PP, jP, NP].join("|") + ")[\\ufe0e\\ufe0f]?" + zS + ")*"), pG = "(?:" + [PP + A4 + "?", A4, jP, NP, fG].join("|") + ")", hG = RegExp(O4 + "(?=" + O4 + ")|" + pG + dG, "g"), gG = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"), vG = typeof ae == "object" && ae && ae.Object === Object && ae, yG = typeof self == "object" && self && self.Object === Object && self, ts = vG || yG || Function("return this")();
function mG(t10, e) {
  return (function(r, n) {
    for (var o = -1, i = r ? r.length : 0, a = Array(i); ++o < i; ) a[o] = n(r[o], o, r);
    return a;
  })(e, (function(r) {
    return t10[r];
  }));
}
function bG(t10) {
  var e = -1, r = Array(t10.size);
  return t10.forEach((function(n, o) {
    r[++e] = [o, n];
  })), r;
}
function wG(t10) {
  var e = -1, r = Array(t10.size);
  return t10.forEach((function(n) {
    r[++e] = n;
  })), r;
}
function EG(t10) {
  return (function(e) {
    return gG.test(e);
  })(t10) ? (function(e) {
    return e.match(hG) || [];
  })(t10) : (function(e) {
    return e.split("");
  })(t10);
}
var $S, HS, DG = Function.prototype, Dy = Object.prototype, e1 = ts["__core-js_shared__"], VS = (function() {
  var t10 = /[^.]+$/.exec(e1 && e1.keys && e1.keys.IE_PROTO || "");
  return t10 ? "Symbol(src)_1." + t10 : "";
})(), IP = DG.toString, Bv = Dy.hasOwnProperty, Op = Dy.toString, CG = RegExp("^" + IP.call(Bv).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), US = ts.Symbol, r1 = US ? US.iterator : void 0, xG = Dy.propertyIsEnumerable, SG = ($S = Object.keys, HS = Object, function(t10) {
  return $S(HS(t10));
}), k4 = kp(ts, "DataView"), B4 = kp(ts, "Map"), F4 = kp(ts, "Promise"), T4 = kp(ts, "Set"), _4 = kp(ts, "WeakMap"), AG = es(k4), OG = es(B4), kG = es(F4), BG = es(T4), FG = es(_4);
function TG(t10, e) {
  var r = LP(t10) || (function(a) {
    return (function(u) {
      return zP(u) && s5(u);
    })(a) && Bv.call(a, "callee") && (!xG.call(a, "callee") || Op.call(a) == "[object Arguments]");
  })(t10) ? (function(a, u) {
    for (var s = -1, l = Array(a); ++s < a; ) l[s] = u(s);
    return l;
  })(t10.length, String) : [], n = r.length, o = !!n;
  for (var i in t10) !Bv.call(t10, i) || o && (i == "length" || jG(i, n)) || r.push(i);
  return r;
}
function _G(t10) {
  if (!MP(t10) || (function(r) {
    return !!VS && VS in r;
  })(t10)) return false;
  var e = RP(t10) || (function(r) {
    var n = false;
    if (r != null && typeof r.toString != "function") try {
      n = !!(r + "");
    } catch {
    }
    return n;
  })(t10) ? CG : lG;
  return e.test(es(t10));
}
function PG(t10) {
  if (r = (e = t10) && e.constructor, n = typeof r == "function" && r.prototype || Dy, e !== n) return SG(t10);
  var e, r, n, o = [];
  for (var i in Object(t10)) Bv.call(t10, i) && i != "constructor" && o.push(i);
  return o;
}
function kp(t10, e) {
  var r = (function(n, o) {
    return n == null ? void 0 : n[o];
  })(t10, e);
  return _G(r) ? r : void 0;
}
var Za = function(t10) {
  return Op.call(t10);
};
function jG(t10, e) {
  return !!(e = e ?? 9007199254740991) && (typeof t10 == "number" || cG.test(t10)) && t10 > -1 && t10 % 1 == 0 && t10 < e;
}
function es(t10) {
  if (t10 != null) {
    try {
      return IP.call(t10);
    } catch {
    }
    try {
      return t10 + "";
    } catch {
    }
  }
  return "";
}
(k4 && Za(new k4(new ArrayBuffer(1))) != "[object DataView]" || B4 && Za(new B4()) != x4 || F4 && Za(F4.resolve()) != "[object Promise]" || T4 && Za(new T4()) != S4 || _4 && Za(new _4()) != "[object WeakMap]") && (Za = function(t10) {
  var e = Op.call(t10), r = e == "[object Object]" ? t10.constructor : void 0, n = r ? es(r) : void 0;
  if (n) switch (n) {
    case AG:
      return "[object DataView]";
    case OG:
      return x4;
    case kG:
      return "[object Promise]";
    case BG:
      return S4;
    case FG:
      return "[object WeakMap]";
  }
  return e;
});
var LP = Array.isArray;
function s5(t10) {
  return t10 != null && (function(e) {
    return typeof e == "number" && e > -1 && e % 1 == 0 && e <= 9007199254740991;
  })(t10.length) && !RP(t10);
}
function RP(t10) {
  var e = MP(t10) ? Op.call(t10) : "";
  return e == "[object Function]" || e == "[object GeneratorFunction]";
}
function MP(t10) {
  var e = typeof t10;
  return !!t10 && (e == "object" || e == "function");
}
function zP(t10) {
  return !!t10 && typeof t10 == "object";
}
function NG(t10) {
  return t10 ? mG(t10, (function(e) {
    return s5(e) ? TG(e) : PG(e);
  })(t10)) : [];
}
var WS = function(t10) {
  if (!t10) return [];
  if (s5(t10)) return (function(r) {
    return typeof r == "string" || !LP(r) && zP(r) && Op.call(r) == "[object String]";
  })(t10) ? EG(t10) : (function(r, n) {
    var o = -1, i = r.length;
    for (n || (n = Array(i)); ++o < i; ) n[o] = r[o];
    return n;
  })(t10);
  if (r1 && t10[r1]) return (function(r) {
    for (var n, o = []; !(n = r.next()).done; ) o.push(n.value);
    return o;
  })(t10[r1]());
  var e = Za(t10);
  return (e == x4 ? bG : e == S4 ? wG : NG)(t10);
};
function GS(t10) {
  return t10 !== null && typeof t10 == "object" && "constructor" in t10 && t10.constructor === Object;
}
function l5(t10, e) {
  t10 === void 0 && (t10 = {}), e === void 0 && (e = {}), Object.keys(e).forEach((function(r) {
    t10[r] === void 0 ? t10[r] = e[r] : GS(e[r]) && GS(t10[r]) && Object.keys(e[r]).length > 0 && l5(t10[r], e[r]);
  }));
}
var $P = { body: {}, addEventListener: function() {
}, removeEventListener: function() {
}, activeElement: { blur: function() {
}, nodeName: "" }, querySelector: function() {
  return null;
}, querySelectorAll: function() {
  return [];
}, getElementById: function() {
  return null;
}, createEvent: function() {
  return { initEvent: function() {
  } };
}, createElement: function() {
  return { children: [], childNodes: [], style: {}, setAttribute: function() {
  }, getElementsByTagName: function() {
    return [];
  } };
}, createElementNS: function() {
  return {};
}, importNode: function() {
  return null;
}, location: { hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: "" } };
function Bp() {
  var t10 = typeof document < "u" ? document : {};
  return l5(t10, $P), t10;
}
var IG = { document: $P, navigator: { userAgent: "" }, location: { hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: "" }, history: { replaceState: function() {
}, pushState: function() {
}, go: function() {
}, back: function() {
} }, CustomEvent: function() {
  return this;
}, addEventListener: function() {
}, removeEventListener: function() {
}, getComputedStyle: function() {
  return { getPropertyValue: function() {
    return "";
  } };
}, Image: function() {
}, Date: function() {
}, screen: {}, setTimeout: function() {
}, clearTimeout: function() {
}, matchMedia: function() {
  return {};
}, requestAnimationFrame: function(t10) {
  return typeof setTimeout > "u" ? (t10(), null) : setTimeout(t10, 0);
}, cancelAnimationFrame: function(t10) {
  typeof setTimeout < "u" && clearTimeout(t10);
} };
function rs() {
  var t10 = typeof window < "u" ? window : {};
  return l5(t10, IG), t10;
}
function P4(t10) {
  return P4 = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
    return e.__proto__ || Object.getPrototypeOf(e);
  }, P4(t10);
}
function Fv(t10, e) {
  return Fv = Object.setPrototypeOf || function(r, n) {
    return r.__proto__ = n, r;
  }, Fv(t10, e);
}
function LG() {
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return false;
  if (typeof Proxy == "function") return true;
  try {
    return Date.prototype.toString.call(Reflect.construct(Date, [], (function() {
    }))), true;
  } catch {
    return false;
  }
}
function j4(t10, e, r) {
  return j4 = LG() ? Reflect.construct : function(n, o, i) {
    var a = [null];
    a.push.apply(a, o);
    var u = new (Function.bind.apply(n, a))();
    return i && Fv(u, i.prototype), u;
  }, j4.apply(null, arguments);
}
function N4(t10) {
  var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
  return N4 = function(r) {
    if (r === null || !(function(o) {
      return Function.toString.call(o).indexOf("[native code]") !== -1;
    })(r)) return r;
    if (typeof r != "function") throw new TypeError("Super expression must either be null or a function");
    if (e !== void 0) {
      if (e.has(r)) return e.get(r);
      e.set(r, n);
    }
    function n() {
      return j4(r, arguments, P4(this).constructor);
    }
    return n.prototype = Object.create(r.prototype, { constructor: { value: n, enumerable: false, writable: true, configurable: true } }), Fv(n, r);
  }, N4(t10);
}
var Vi = (function(t10) {
  var e, r;
  function n(o) {
    var i, a, u;
    return i = t10.call.apply(t10, [this].concat(o)) || this, a = (function(s) {
      if (s === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
      return s;
    })(i), u = a.__proto__, Object.defineProperty(a, "__proto__", { get: function() {
      return u;
    }, set: function(s) {
      u.__proto__ = s;
    } }), i;
  }
  return r = t10, (e = n).prototype = Object.create(r.prototype), e.prototype.constructor = e, e.__proto__ = r, n;
})(N4(Array));
function Cy(t10) {
  t10 === void 0 && (t10 = []);
  var e = [];
  return t10.forEach((function(r) {
    Array.isArray(r) ? e.push.apply(e, Cy(r)) : e.push(r);
  })), e;
}
function HP(t10, e) {
  return Array.prototype.filter.call(t10, e);
}
function B(t10, e) {
  var r = rs(), n = Bp(), o = [];
  if (!e && t10 instanceof Vi) return t10;
  if (!t10) return new Vi(o);
  if (typeof t10 == "string") {
    var i = t10.trim();
    if (i.indexOf("<") >= 0 && i.indexOf(">") >= 0) {
      var a = "div";
      i.indexOf("<li") === 0 && (a = "ul"), i.indexOf("<tr") === 0 && (a = "tbody"), i.indexOf("<td") !== 0 && i.indexOf("<th") !== 0 || (a = "tr"), i.indexOf("<tbody") === 0 && (a = "table"), i.indexOf("<option") === 0 && (a = "select");
      var u = n.createElement(a);
      u.innerHTML = i;
      for (var s = 0; s < u.childNodes.length; s += 1) o.push(u.childNodes[s]);
    } else o = (function(l, c) {
      if (typeof l != "string") return [l];
      for (var f = [], d = c.querySelectorAll(l), p = 0; p < d.length; p += 1) f.push(d[p]);
      return f;
    })(t10.trim(), e || n);
  } else if (t10.nodeType || t10 === r || t10 === n) o.push(t10);
  else if (Array.isArray(t10)) {
    if (t10 instanceof Vi) return t10;
    o = t10;
  }
  return new Vi((function(l) {
    for (var c = [], f = 0; f < l.length; f += 1) c.indexOf(l[f]) === -1 && c.push(l[f]);
    return c;
  })(o));
}
function El() {
  for (var t10 = arguments.length, e = new Array(t10), r = 0; r < t10; r++) e[r] = arguments[r];
  var n = Cy(e.map((function(o) {
    return o.split(" ");
  })));
  return this.forEach((function(o) {
    var i;
    (i = o.classList).add.apply(i, n);
  })), this;
}
function Dl() {
  for (var t10 = arguments.length, e = new Array(t10), r = 0; r < t10; r++) e[r] = arguments[r];
  var n = Cy(e.map((function(o) {
    return o.split(" ");
  })));
  return this.forEach((function(o) {
    var i;
    (i = o.classList).remove.apply(i, n);
  })), this;
}
function Cl() {
  for (var t10 = arguments.length, e = new Array(t10), r = 0; r < t10; r++) e[r] = arguments[r];
  var n = Cy(e.map((function(o) {
    return o.split(" ");
  })));
  return HP(this, (function(o) {
    return n.filter((function(i) {
      return o.classList.contains(i);
    })).length > 0;
  })).length > 0;
}
function Sn(t10, e) {
  if (arguments.length === 1 && typeof t10 == "string") return this[0] ? this[0].getAttribute(t10) : void 0;
  for (var r = 0; r < this.length; r += 1) if (arguments.length === 2) this[r].setAttribute(t10, e);
  else for (var n in t10) this[r][n] = t10[n], this[r].setAttribute(n, t10[n]);
  return this;
}
function Tv(t10) {
  for (var e = 0; e < this.length; e += 1) this[e].removeAttribute(t10);
  return this;
}
function xl() {
  var t10 = this[0];
  if (t10) {
    var e, r = {};
    if (t10.dataset) for (var n in t10.dataset) r[n] = t10.dataset[n];
    else for (var o = 0; o < t10.attributes.length; o += 1) {
      var i = t10.attributes[o];
      i.name.indexOf("data-") >= 0 && (r[e = i.name.split("data-")[1], e.toLowerCase().replace(/-(.)/g, (function(u, s) {
        return s.toUpperCase();
      }))] = i.value);
    }
    for (var a in r) r[a] === "false" ? r[a] = false : r[a] === "true" ? r[a] = true : parseFloat(r[a]) === 1 * r[a] && (r[a] *= 1);
    return r;
  }
}
function So(t10) {
  if (t10 === void 0) {
    var e = this[0];
    if (!e) return;
    if (e.multiple && e.nodeName.toLowerCase() === "select") {
      for (var r = [], n = 0; n < e.selectedOptions.length; n += 1) r.push(e.selectedOptions[n].value);
      return r;
    }
    return e.value;
  }
  for (var o = 0; o < this.length; o += 1) {
    var i = this[o];
    if (Array.isArray(t10) && i.multiple && i.nodeName.toLowerCase() === "select") for (var a = 0; a < i.options.length; a += 1) i.options[a].selected = t10.indexOf(i.options[a].value) >= 0;
    else i.value = t10;
  }
  return this;
}
function Ao() {
  for (var t10 = arguments.length, e = new Array(t10), r = 0; r < t10; r++) e[r] = arguments[r];
  var n = e[0], o = e[1], i = e[2], a = e[3];
  function u(y) {
    var g = y.target;
    if (g) {
      var m = y.target.dom7EventData || [];
      if (m.indexOf(y) < 0 && m.unshift(y), B(g).is(o)) i.apply(g, m);
      else for (var h = B(g).parents(), b = 0; b < h.length; b += 1) B(h[b]).is(o) && i.apply(h[b], m);
    }
  }
  function s(y) {
    var g = y && y.target && y.target.dom7EventData || [];
    g.indexOf(y) < 0 && g.unshift(y), i.apply(this, g);
  }
  typeof e[1] == "function" && (n = e[0], i = e[1], a = e[2], o = void 0), a || (a = false);
  for (var l, c = n.split(" "), f = 0; f < this.length; f += 1) {
    var d = this[f];
    if (o) for (l = 0; l < c.length; l += 1) {
      var p = c[l];
      d.dom7LiveListeners || (d.dom7LiveListeners = {}), d.dom7LiveListeners[p] || (d.dom7LiveListeners[p] = []), d.dom7LiveListeners[p].push({ listener: i, proxyListener: u }), d.addEventListener(p, u, a);
    }
    else for (l = 0; l < c.length; l += 1) {
      var v = c[l];
      d.dom7Listeners || (d.dom7Listeners = {}), d.dom7Listeners[v] || (d.dom7Listeners[v] = []), d.dom7Listeners[v].push({ listener: i, proxyListener: s }), d.addEventListener(v, s, a);
    }
  }
  return this;
}
function qS() {
  for (var t10 = arguments.length, e = new Array(t10), r = 0; r < t10; r++) e[r] = arguments[r];
  var n = e[0], o = e[1], i = e[2], a = e[3];
  typeof e[1] == "function" && (n = e[0], i = e[1], a = e[2], o = void 0), a || (a = false);
  for (var u = n.split(" "), s = 0; s < u.length; s += 1) for (var l = u[s], c = 0; c < this.length; c += 1) {
    var f = this[c], d = void 0;
    if (!o && f.dom7Listeners ? d = f.dom7Listeners[l] : o && f.dom7LiveListeners && (d = f.dom7LiveListeners[l]), d && d.length) for (var p = d.length - 1; p >= 0; p -= 1) {
      var v = d[p];
      i && v.listener === i || i && v.listener && v.listener.dom7proxy && v.listener.dom7proxy === i ? (f.removeEventListener(l, v.proxyListener, a), d.splice(p, 1)) : i || (f.removeEventListener(l, v.proxyListener, a), d.splice(p, 1));
    }
  }
  return this;
}
function _v() {
  var t10 = rs();
  return this[0] === t10 ? t10.innerWidth : this.length > 0 ? parseFloat(this.css("width")) : null;
}
function Pv() {
  var t10 = rs();
  return this[0] === t10 ? t10.innerHeight : this.length > 0 ? parseFloat(this.css("height")) : null;
}
function KS() {
  if (this.length > 0) {
    var t10 = rs(), e = Bp(), r = this[0], n = r.getBoundingClientRect(), o = e.body, i = r.clientTop || o.clientTop || 0, a = r.clientLeft || o.clientLeft || 0, u = r === t10 ? t10.scrollY : r.scrollTop, s = r === t10 ? t10.scrollX : r.scrollLeft;
    return { top: n.top + u - i, left: n.left + s - a };
  }
  return null;
}
function Sl() {
  for (var t10 = 0; t10 < this.length; t10 += 1) this[t10].style.display = "none";
  return this;
}
function jv() {
  for (var t10 = rs(), e = 0; e < this.length; e += 1) {
    var r = this[e];
    r.style.display === "none" && (r.style.display = ""), t10.getComputedStyle(r, null).getPropertyValue("display") === "none" && (r.style.display = "block");
  }
  return this;
}
function Nv(t10, e) {
  var r, n = rs();
  if (arguments.length === 1) {
    if (typeof t10 != "string") {
      for (r = 0; r < this.length; r += 1) for (var o in t10) this[r].style[o] = t10[o];
      return this;
    }
    if (this[0]) return n.getComputedStyle(this[0], null).getPropertyValue(t10);
  }
  if (arguments.length === 2 && typeof t10 == "string") {
    for (r = 0; r < this.length; r += 1) this[r].style[t10] = e;
    return this;
  }
  return this;
}
function Iv(t10) {
  return t10 ? (this.forEach((function(e, r) {
    t10.apply(e, [e, r]);
  })), this) : this;
}
function YS(t10) {
  return B(HP(this, t10));
}
function pa(t10) {
  if (t10 === void 0) return this[0] ? this[0].innerHTML : null;
  for (var e = 0; e < this.length; e += 1) this[e].innerHTML = t10;
  return this;
}
function Lv(t10) {
  if (t10 === void 0) return this[0] ? this[0].textContent.trim() : null;
  for (var e = 0; e < this.length; e += 1) this[e].textContent = t10;
  return this;
}
function XS(t10) {
  var e, r, n = rs(), o = Bp(), i = this[0];
  if (!i || t10 === void 0) return false;
  if (typeof t10 == "string") {
    if (i.matches) return i.matches(t10);
    if (i.webkitMatchesSelector) return i.webkitMatchesSelector(t10);
    if (i.msMatchesSelector) return i.msMatchesSelector(t10);
    for (e = B(t10), r = 0; r < e.length; r += 1) if (e[r] === i) return true;
    return false;
  }
  if (t10 === o) return i === o;
  if (t10 === n) return i === n;
  if (t10.nodeType || t10 instanceof Vi) {
    for (e = t10.nodeType ? [t10] : t10, r = 0; r < e.length; r += 1) if (e[r] === i) return true;
    return false;
  }
  return false;
}
function An() {
  for (var t10, e = Bp(), r = 0; r < arguments.length; r += 1) {
    t10 = r < 0 || arguments.length <= r ? void 0 : arguments[r];
    for (var n = 0; n < this.length; n += 1) if (typeof t10 == "string") {
      var o = e.createElement("div");
      for (o.innerHTML = t10; o.firstChild; ) this[n].appendChild(o.firstChild);
    } else if (t10 instanceof Vi) for (var i = 0; i < t10.length; i += 1) this[n].appendChild(t10[i]);
    else this[n].appendChild(t10);
  }
  return this;
}
function ZS(t10) {
  var e, r, n = Bp();
  for (e = 0; e < this.length; e += 1) if (typeof t10 == "string") {
    var o = n.createElement("div");
    for (o.innerHTML = t10, r = o.childNodes.length - 1; r >= 0; r -= 1) this[e].insertBefore(o.childNodes[r], this[e].childNodes[0]);
  } else if (t10 instanceof Vi) for (r = 0; r < t10.length; r += 1) this[e].insertBefore(t10[r], this[e].childNodes[0]);
  else this[e].insertBefore(t10, this[e].childNodes[0]);
  return this;
}
function Al(t10) {
  for (var e = [], r = 0; r < this.length; r += 1) this[r].parentNode !== null && (t10 ? B(this[r].parentNode).is(t10) && e.push(this[r].parentNode) : e.push(this[r].parentNode));
  return B(e);
}
function Rv(t10) {
  for (var e = [], r = 0; r < this.length; r += 1) for (var n = this[r].parentNode; n; ) t10 ? B(n).is(t10) && e.push(n) : e.push(n), n = n.parentNode;
  return B(e);
}
function Ol(t10) {
  for (var e = [], r = 0; r < this.length; r += 1) for (var n = this[r].querySelectorAll(t10), o = 0; o < n.length; o += 1) e.push(n[o]);
  return B(e);
}
function kl(t10) {
  for (var e = [], r = 0; r < this.length; r += 1) for (var n = this[r].children, o = 0; o < n.length; o += 1) t10 && !B(n[o]).is(t10) || e.push(n[o]);
  return B(e);
}
function Bl() {
  for (var t10 = 0; t10 < this.length; t10 += 1) this[t10].parentNode && this[t10].parentNode.removeChild(this[t10]);
  return this;
}
function Fl() {
  for (var t10 = 0; t10 < this.length; t10 += 1) {
    var e = this[t10];
    if (e.nodeType === 1) {
      for (var r = 0; r < e.childNodes.length; r += 1) e.childNodes[r].parentNode && e.childNodes[r].parentNode.removeChild(e.childNodes[r]);
      e.textContent = "";
    }
  }
  return this;
}
B.fn = Vi.prototype;
var RG = "resize scroll".split(" ");
function VP(t10) {
  return function() {
    for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
    if (r[0] === void 0) {
      for (var o = 0; o < this.length; o += 1) RG.indexOf(t10) < 0 && (t10 in this[o] ? this[o][t10]() : B(this[o]).trigger(t10));
      return this;
    }
    return this.on.apply(this, [t10].concat(r));
  };
}
var JS = VP("click"), ha = VP("focus"), MG = "[object GeneratorFunction]", zG = /^(?:0|[1-9]\d*)$/;
function $G(t10, e) {
  for (var r = -1, n = t10 ? t10.length : 0; ++r < n && e(t10[r], r, t10) !== false; ) ;
  return t10;
}
var xy = Object.prototype, I4 = xy.hasOwnProperty, UP = xy.toString, HG = xy.propertyIsEnumerable, VG = /* @__PURE__ */ (function(t10, e) {
  return function(r) {
    return t10(e(r));
  };
})(Object.keys, Object);
function UG(t10, e) {
  var r = WP(t10) || (function(a) {
    return (function(u) {
      return /* @__PURE__ */ (function(s) {
        return !!s && typeof s == "object";
      })(u) && c5(u);
    })(a) && I4.call(a, "callee") && (!HG.call(a, "callee") || UP.call(a) == "[object Arguments]");
  })(t10) ? (function(a, u) {
    for (var s = -1, l = Array(a); ++s < a; ) l[s] = u(s);
    return l;
  })(t10.length, String) : [], n = r.length, o = !!n;
  for (var i in t10) !I4.call(t10, i) || o && (i == "length" || KG(i, n)) || r.push(i);
  return r;
}
var QS, WG = (QS = function(t10, e) {
  return t10 && GG(t10, e, YG);
}, function(t10, e) {
  if (t10 == null) return t10;
  if (!c5(t10)) return QS(t10, e);
  for (var r = t10.length, n = -1, o = Object(t10); ++n < r && e(o[n], n, o) !== false; ) ;
  return t10;
}), GG = /* @__PURE__ */ (function(t10) {
  return function(e, r, n) {
    for (var o = -1, i = Object(e), a = n(e), u = a.length; u--; ) {
      var s = a[++o];
      if (r(i[s], s, i) === false) break;
    }
    return e;
  };
})();
function qG(t10) {
  if (r = (e = t10) && e.constructor, n = typeof r == "function" && r.prototype || xy, e !== n) return VG(t10);
  var e, r, n, o = [];
  for (var i in Object(t10)) I4.call(t10, i) && i != "constructor" && o.push(i);
  return o;
}
function KG(t10, e) {
  return !!(e = e ?? 9007199254740991) && (typeof t10 == "number" || zG.test(t10)) && t10 > -1 && t10 % 1 == 0 && t10 < e;
}
var WP = Array.isArray;
function c5(t10) {
  return t10 != null && (function(e) {
    return typeof e == "number" && e > -1 && e % 1 == 0 && e <= 9007199254740991;
  })(t10.length) && !(function(e) {
    var r = (function(n) {
      var o = typeof n;
      return !!n && (o == "object" || o == "function");
    })(e) ? UP.call(e) : "";
    return r == "[object Function]" || r == MG;
  })(t10);
}
function YG(t10) {
  return c5(t10) ? UG(t10) : qG(t10);
}
function XG(t10) {
  return t10;
}
var f5 = function(t10, e) {
  return (WP(t10) ? $G : WG)(t10, typeof e == "function" ? e : XG);
};
let GP = (t10 = 21) => {
  let e = "", r = crypto.getRandomValues(new Uint8Array(t10));
  for (; t10--; ) {
    let n = 63 & r[t10];
    e += n < 36 ? n.toString(36) : n < 62 ? (n - 26).toString(36).toUpperCase() : n < 63 ? "_" : "-";
  }
  return e;
};
var ZG = /^\s+|\s+$/g, JG = /^[-+]0x[0-9a-f]+$/i, QG = /^0b[01]+$/i, tq = /^0o[0-7]+$/i, eq = parseInt, rq = typeof ae == "object" && ae && ae.Object === Object && ae, nq = typeof self == "object" && self && self.Object === Object && self, oq = rq || nq || Function("return this")(), iq = Object.prototype.toString, aq = Math.max, uq = Math.min, n1 = function() {
  return oq.Date.now();
};
function sq(t10, e, r) {
  var n, o, i, a, u, s, l = 0, c = false, f = false, d = true;
  if (typeof t10 != "function") throw new TypeError("Expected a function");
  function p(b) {
    var w = n, D = o;
    return n = o = void 0, l = b, a = t10.apply(D, w);
  }
  function v(b) {
    return l = b, u = setTimeout(g, e), c ? p(b) : a;
  }
  function y(b) {
    var w = b - s;
    return s === void 0 || w >= e || w < 0 || f && b - l >= i;
  }
  function g() {
    var b = n1();
    if (y(b)) return m(b);
    u = setTimeout(g, (function(w) {
      var D = e - (w - s);
      return f ? uq(D, i - (w - l)) : D;
    })(b));
  }
  function m(b) {
    return u = void 0, d && n ? p(b) : (n = o = void 0, a);
  }
  function h() {
    var b = n1(), w = y(b);
    if (n = arguments, o = this, s = b, w) {
      if (u === void 0) return v(s);
      if (f) return u = setTimeout(g, e), p(s);
    }
    return u === void 0 && (u = setTimeout(g, e)), a;
  }
  return e = tA(e) || 0, Mv(r) && (c = !!r.leading, i = (f = "maxWait" in r) ? aq(tA(r.maxWait) || 0, e) : i, d = "trailing" in r ? !!r.trailing : d), h.cancel = function() {
    u !== void 0 && clearTimeout(u), l = 0, n = s = o = u = void 0;
  }, h.flush = function() {
    return u === void 0 ? a : m(n1());
  }, h;
}
function Mv(t10) {
  var e = typeof t10;
  return !!t10 && (e == "object" || e == "function");
}
function tA(t10) {
  if (typeof t10 == "number") return t10;
  if ((function(n) {
    return typeof n == "symbol" || /* @__PURE__ */ (function(o) {
      return !!o && typeof o == "object";
    })(n) && iq.call(n) == "[object Symbol]";
  })(t10)) return NaN;
  if (Mv(t10)) {
    var e = typeof t10.valueOf == "function" ? t10.valueOf() : t10;
    t10 = Mv(e) ? e + "" : e;
  }
  if (typeof t10 != "string") return t10 === 0 ? t10 : +t10;
  t10 = t10.replace(ZG, "");
  var r = QG.test(t10);
  return r || tq.test(t10) ? eq(t10.slice(2), r ? 2 : 8) : JG.test(t10) ? NaN : +t10;
}
var zu = function(t10, e, r) {
  var n = true, o = true;
  if (typeof t10 != "function") throw new TypeError("Expected a function");
  return Mv(r) && (n = "leading" in r ? !!r.leading : n, o = "trailing" in r ? !!r.trailing : o), sq(t10, e, { leading: n, maxWait: e, trailing: o });
};
const lq = { createElement: function(t10, e) {
  return document.createElement(t10, e);
}, createElementNS: function(t10, e, r) {
  return document.createElementNS(t10, e, r);
}, createTextNode: function(t10) {
  return document.createTextNode(t10);
}, createComment: function(t10) {
  return document.createComment(t10);
}, insertBefore: function(t10, e, r) {
  t10.insertBefore(e, r);
}, removeChild: function(t10, e) {
  t10.removeChild(e);
}, appendChild: function(t10, e) {
  t10.appendChild(e);
}, parentNode: function(t10) {
  return t10.parentNode;
}, nextSibling: function(t10) {
  return t10.nextSibling;
}, tagName: function(t10) {
  return t10.tagName;
}, setTextContent: function(t10, e) {
  t10.textContent = e;
}, getTextContent: function(t10) {
  return t10.textContent;
}, isElement: function(t10) {
  return t10.nodeType === 1;
}, isText: function(t10) {
  return t10.nodeType === 3;
}, isComment: function(t10) {
  return t10.nodeType === 8;
} };
function Od(t10, e, r, n, o) {
  return { sel: t10, data: e, children: r, text: n, elm: o, key: e === void 0 ? void 0 : e.key };
}
const L4 = Array.isArray;
function Pg(t10) {
  return typeof t10 == "string" || typeof t10 == "number" || t10 instanceof String || t10 instanceof Number;
}
function o1(t10) {
  return t10 === void 0;
}
function Kr(t10) {
  return t10 !== void 0;
}
const eA = Od("", {}, [], void 0, void 0);
function Ac(t10, e) {
  var r, n;
  const o = t10.key === e.key, i = ((r = t10.data) === null || r === void 0 ? void 0 : r.is) === ((n = e.data) === null || n === void 0 ? void 0 : n.is);
  return t10.sel === e.sel && o && i;
}
function cq(t10, e, r) {
  var n;
  const o = {};
  for (let i = e; i <= r; ++i) {
    const a = (n = t10[i]) === null || n === void 0 ? void 0 : n.key;
    a !== void 0 && (o[a] = i);
  }
  return o;
}
const fq = ["create", "update", "remove", "destroy", "pre", "post"];
function dq(t10, e) {
  const r = { create: [], update: [], remove: [], destroy: [], pre: [], post: [] }, n = lq;
  for (const f of fq) for (const d of t10) {
    const p = d[f];
    p !== void 0 && r[f].push(p);
  }
  function o(f) {
    const d = f.id ? "#" + f.id : "", p = f.getAttribute("class"), v = p ? "." + p.split(" ").join(".") : "";
    return Od(n.tagName(f).toLowerCase() + d + v, {}, [], void 0, f);
  }
  function i(f, d) {
    return function() {
      if (--d == 0) {
        const p = n.parentNode(f);
        n.removeChild(p, f);
      }
    };
  }
  function a(f, d) {
    var p, v;
    let y, g = f.data;
    if (g !== void 0) {
      const b = (p = g.hook) === null || p === void 0 ? void 0 : p.init;
      Kr(b) && (b(f), g = f.data);
    }
    const m = f.children, h = f.sel;
    if (h === "!") o1(f.text) && (f.text = ""), f.elm = n.createComment(f.text);
    else if (h !== void 0) {
      const b = h.indexOf("#"), w = h.indexOf(".", b), D = b > 0 ? b : h.length, x = w > 0 ? w : h.length, C = b !== -1 || w !== -1 ? h.slice(0, Math.min(D, x)) : h, O = f.elm = Kr(g) && Kr(y = g.ns) ? n.createElementNS(y, C, g) : n.createElement(C, g);
      for (D < x && O.setAttribute("id", h.slice(D + 1, x)), w > 0 && O.setAttribute("class", h.slice(x + 1).replace(/\./g, " ")), y = 0; y < r.create.length; ++y) r.create[y](eA, f);
      if (L4(m)) for (y = 0; y < m.length; ++y) {
        const R = m[y];
        R != null && n.appendChild(O, a(R, d));
      }
      else Pg(f.text) && n.appendChild(O, n.createTextNode(f.text));
      const T = f.data.hook;
      Kr(T) && ((v = T.create) === null || v === void 0 || v.call(T, eA, f), T.insert && d.push(f));
    } else f.elm = n.createTextNode(f.text);
    return f.elm;
  }
  function u(f, d, p, v, y, g) {
    for (; v <= y; ++v) {
      const m = p[v];
      m != null && n.insertBefore(f, a(m, g), d);
    }
  }
  function s(f) {
    var d, p;
    const v = f.data;
    if (v !== void 0) {
      (p = (d = v == null ? void 0 : v.hook) === null || d === void 0 ? void 0 : d.destroy) === null || p === void 0 || p.call(d, f);
      for (let y = 0; y < r.destroy.length; ++y) r.destroy[y](f);
      if (f.children !== void 0) for (let y = 0; y < f.children.length; ++y) {
        const g = f.children[y];
        g != null && typeof g != "string" && s(g);
      }
    }
  }
  function l(f, d, p, v) {
    for (var y, g; p <= v; ++p) {
      let m, h;
      const b = d[p];
      if (b != null) if (Kr(b.sel)) {
        s(b), m = r.remove.length + 1, h = i(b.elm, m);
        for (let D = 0; D < r.remove.length; ++D) r.remove[D](b, h);
        const w = (g = (y = b == null ? void 0 : b.data) === null || y === void 0 ? void 0 : y.hook) === null || g === void 0 ? void 0 : g.remove;
        Kr(w) ? w(b, h) : h();
      } else n.removeChild(f, b.elm);
    }
  }
  function c(f, d, p) {
    var v, y, g, m, h;
    const b = (v = d.data) === null || v === void 0 ? void 0 : v.hook;
    (y = b == null ? void 0 : b.prepatch) === null || y === void 0 || y.call(b, f, d);
    const w = d.elm = f.elm, D = f.children, x = d.children;
    if (f !== d) {
      if (d.data !== void 0) {
        for (let C = 0; C < r.update.length; ++C) r.update[C](f, d);
        (m = (g = d.data.hook) === null || g === void 0 ? void 0 : g.update) === null || m === void 0 || m.call(g, f, d);
      }
      o1(d.text) ? Kr(D) && Kr(x) ? D !== x && (function(C, O, T, R) {
        let H, M, K, U, W = 0, q = 0, et = O.length - 1, st = O[0], ut = O[et], at = T.length - 1, k = T[0], S = T[at];
        for (; W <= et && q <= at; ) st == null ? st = O[++W] : ut == null ? ut = O[--et] : k == null ? k = T[++q] : S == null ? S = T[--at] : Ac(st, k) ? (c(st, k, R), st = O[++W], k = T[++q]) : Ac(ut, S) ? (c(ut, S, R), ut = O[--et], S = T[--at]) : Ac(st, S) ? (c(st, S, R), n.insertBefore(C, st.elm, n.nextSibling(ut.elm)), st = O[++W], S = T[--at]) : Ac(ut, k) ? (c(ut, k, R), n.insertBefore(C, ut.elm, st.elm), ut = O[--et], k = T[++q]) : (H === void 0 && (H = cq(O, W, et)), M = H[k.key], o1(M) ? n.insertBefore(C, a(k, R), st.elm) : (K = O[M], K.sel !== k.sel ? n.insertBefore(C, a(k, R), st.elm) : (c(K, k, R), O[M] = void 0, n.insertBefore(C, K.elm, st.elm))), k = T[++q]);
        (W <= et || q <= at) && (W > et ? (U = T[at + 1] == null ? null : T[at + 1].elm, u(C, U, T, q, at, R)) : l(C, O, W, et));
      })(w, D, x, p) : Kr(x) ? (Kr(f.text) && n.setTextContent(w, ""), u(w, null, x, 0, x.length - 1, p)) : Kr(D) ? l(w, D, 0, D.length - 1) : Kr(f.text) && n.setTextContent(w, "") : f.text !== d.text && (Kr(D) && l(w, D, 0, D.length - 1), n.setTextContent(w, d.text)), (h = b == null ? void 0 : b.postpatch) === null || h === void 0 || h.call(b, f, d);
    }
  }
  return function(f, d) {
    let p, v, y;
    const g = [];
    for (p = 0; p < r.pre.length; ++p) r.pre[p]();
    for ((function(m) {
      return m.sel !== void 0;
    })(f) || (f = o(f)), Ac(f, d) ? c(f, d, g) : (v = f.elm, y = n.parentNode(v), a(d, g), y !== null && (n.insertBefore(y, d.elm, n.nextSibling(v)), l(y, [f], 0, 0))), p = 0; p < g.length; ++p) g[p].data.hook.insert(g[p]);
    for (p = 0; p < r.post.length; ++p) r.post[p]();
    return d;
  };
}
function qP(t10, e, r) {
  if (t10.ns = "http://www.w3.org/2000/svg", r !== "foreignObject" && e !== void 0) for (let n = 0; n < e.length; ++n) {
    const o = e[n].data;
    o !== void 0 && qP(o, e[n].children, e[n].sel);
  }
}
function Tl(t10, e, r) {
  let n, o, i, a = {};
  if (r !== void 0 ? (e !== null && (a = e), L4(r) ? n = r : Pg(r) ? o = r.toString() : r && r.sel && (n = [r])) : e != null && (L4(e) ? n = e : Pg(e) ? o = e.toString() : e && e.sel ? n = [e] : a = e), n !== void 0) for (i = 0; i < n.length; ++i) Pg(n[i]) && (n[i] = Od(void 0, void 0, void 0, n[i], void 0));
  return t10[0] !== "s" || t10[1] !== "v" || t10[2] !== "g" || t10.length !== 3 && t10[3] !== "." && t10[3] !== "#" || qP(a, n, t10), Od(t10, a, n, o, void 0);
}
function rA(t10, e) {
  let r;
  const n = e.elm;
  let o = t10.data.attrs, i = e.data.attrs;
  if ((o || i) && o !== i) {
    for (r in o = o || {}, i = i || {}, i) {
      const a = i[r];
      o[r] !== a && (a === true ? n.setAttribute(r, "") : a === false ? n.removeAttribute(r) : r.charCodeAt(0) !== 120 ? n.setAttribute(r, a) : r.charCodeAt(3) === 58 ? n.setAttributeNS("http://www.w3.org/XML/1998/namespace", r, a) : r.charCodeAt(5) === 58 ? n.setAttributeNS("http://www.w3.org/1999/xlink", r, a) : n.setAttribute(r, a));
    }
    for (r in o) r in i || n.removeAttribute(r);
  }
}
const pq = { create: rA, update: rA };
function nA(t10, e) {
  let r, n;
  const o = e.elm;
  let i = t10.data.class, a = e.data.class;
  if ((i || a) && i !== a) {
    for (n in i = i || {}, a = a || {}, i) i[n] && !Object.prototype.hasOwnProperty.call(a, n) && o.classList.remove(n);
    for (n in a) r = a[n], r !== i[n] && o.classList[r ? "add" : "remove"](n);
  }
}
const hq = { create: nA, update: nA }, oA = /[A-Z]/g;
function iA(t10, e) {
  const r = e.elm;
  let n, o = t10.data.dataset, i = e.data.dataset;
  if (!o && !i || o === i) return;
  o = o || {}, i = i || {};
  const a = r.dataset;
  for (n in o) i[n] || (a ? n in a && delete a[n] : r.removeAttribute("data-" + n.replace(oA, "-$&").toLowerCase()));
  for (n in i) o[n] !== i[n] && (a ? a[n] = i[n] : r.setAttribute("data-" + n.replace(oA, "-$&").toLowerCase(), i[n]));
}
const gq = { create: iA, update: iA };
function KP(t10, e, r) {
  if (typeof t10 == "function") t10.call(e, r, e);
  else if (typeof t10 == "object") for (let n = 0; n < t10.length; n++) KP(t10[n], e, r);
}
function vq(t10, e) {
  const r = t10.type, n = e.data.on;
  n && n[r] && KP(n[r], e, t10);
}
function i1(t10, e) {
  const r = t10.data.on, n = t10.listener, o = t10.elm, i = e && e.data.on, a = e && e.elm;
  let u;
  if (r !== i) {
    if (r && n) if (i) for (u in r) i[u] || o.removeEventListener(u, n, false);
    else for (u in r) o.removeEventListener(u, n, false);
    if (i) {
      const s = e.listener = t10.listener || function l(c) {
        vq(c, l.vnode);
      };
      if (s.vnode = e, r) for (u in i) r[u] || a.addEventListener(u, s, false);
      else for (u in i) a.addEventListener(u, s, false);
    }
  }
}
const yq = { create: i1, update: i1, destroy: i1 };
function aA(t10, e) {
  let r, n, o;
  const i = e.elm;
  let a = t10.data.props, u = e.data.props;
  if ((a || u) && a !== u) for (r in a = a || {}, u = u || {}, u) n = u[r], o = a[r], o === n || r === "value" && i[r] === n || (i[r] = n);
}
const mq = { create: aA, update: aA }, uA = typeof window < "u" && window.requestAnimationFrame.bind(window) || setTimeout;
let a1 = false;
function bq(t10, e, r) {
  (function(n) {
    uA((function() {
      uA(n);
    }));
  })((function() {
    t10[e] = r;
  }));
}
function sA(t10, e) {
  let r, n;
  const o = e.elm;
  let i = t10.data.style, a = e.data.style;
  if (!i && !a || i === a) return;
  i = i || {}, a = a || {};
  const u = "delayed" in i;
  for (n in i) a[n] || (n[0] === "-" && n[1] === "-" ? o.style.removeProperty(n) : o.style[n] = "");
  for (n in a) if (r = a[n], n === "delayed" && a.delayed) for (const s in a.delayed) r = a.delayed[s], u && r === i.delayed[s] || bq(o.style, s, r);
  else n !== "remove" && r !== i[n] && (n[0] === "-" && n[1] === "-" ? o.style.setProperty(n, r) : o.style[n] = r);
}
const wq = { pre: function() {
  a1 = false;
}, create: sA, update: sA, destroy: function(t10) {
  let e, r;
  const n = t10.elm, o = t10.data.style;
  if (o && (e = o.destroy)) for (r in e) n.style[r] = e[r];
}, remove: function(t10, e) {
  const r = t10.data.style;
  if (!r || !r.remove) return void e();
  let n;
  a1 || (t10.elm.offsetLeft, a1 = true);
  const o = t10.elm;
  let i = 0;
  const a = r.remove;
  let u = 0;
  const s = [];
  for (n in a) s.push(n), o.style[n] = a[n];
  const l = getComputedStyle(o)["transition-property"].split(", ");
  for (; i < l.length; ++i) s.indexOf(l[i]) !== -1 && u++;
  o.addEventListener("transitionend", (function(c) {
    c.target === o && --u, u === 0 && e();
  }));
} };
function YP(t10, e) {
  for (const r of t10) r != null && r !== false && r !== "" && (Array.isArray(r) ? YP(r, e) : typeof r == "string" || typeof r == "number" || typeof r == "boolean" ? e.push(Od(void 0, void 0, void 0, String(r), void 0)) : e.push(r));
  return e;
}
function bt(t10, e, ...r) {
  const n = YP(r, []);
  return typeof t10 == "function" ? t10(e, n) : n.length === 1 && !n[0].sel && n[0].text ? Tl(t10, e, n[0].text) : Tl(t10, e, n);
}
bt || (bt = {});
var Eq = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Dq = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, XP = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Cq = "[\\ud800-\\udfff]", lA = "[" + XP + "]", zv = "[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]", ZP = "\\d+", xq = "[\\u2700-\\u27bf]", JP = "[a-z\\xdf-\\xf6\\xf8-\\xff]", QP = "[^\\ud800-\\udfff" + XP + ZP + "\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]", R4 = "\\ud83c[\\udffb-\\udfff]", tj = "[^\\ud800-\\udfff]", d5 = "(?:\\ud83c[\\udde6-\\uddff]){2}", p5 = "[\\ud800-\\udbff][\\udc00-\\udfff]", qs = "[A-Z\\xc0-\\xd6\\xd8-\\xde]", cA = "(?:" + JP + "|" + QP + ")", Sq = "(?:" + qs + "|" + QP + ")", fA = "(?:" + zv + "|" + R4 + ")?", ej = "[\\ufe0e\\ufe0f]?" + fA + ("(?:\\u200d(?:" + [tj, d5, p5].join("|") + ")[\\ufe0e\\ufe0f]?" + fA + ")*"), Aq = "(?:" + [xq, d5, p5].join("|") + ")" + ej, Oq = "(?:" + [tj + zv + "?", zv, d5, p5, Cq].join("|") + ")", kq = RegExp("['\u2019]", "g"), Bq = RegExp(zv, "g"), Fq = RegExp(R4 + "(?=" + R4 + ")|" + Oq + ej, "g"), Tq = RegExp([qs + "?" + JP + "+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=" + [lA, qs, "$"].join("|") + ")", Sq + "+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=" + [lA, qs + cA, "$"].join("|") + ")", qs + "?" + cA + "+(?:['\u2019](?:d|ll|m|re|s|t|ve))?", qs + "+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?", ZP, Aq].join("|"), "g"), _q = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"), Pq = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, jq = typeof ae == "object" && ae && ae.Object === Object && ae, Nq = typeof self == "object" && self && self.Object === Object && self, Iq = jq || Nq || Function("return this")(), u1, Lq = (u1 = { \u00C0: "A", \u00C1: "A", \u00C2: "A", \u00C3: "A", \u00C4: "A", \u00C5: "A", \u00E0: "a", \u00E1: "a", \u00E2: "a", \u00E3: "a", \u00E4: "a", \u00E5: "a", \u00C7: "C", \u00E7: "c", \u00D0: "D", \u00F0: "d", \u00C8: "E", \u00C9: "E", \u00CA: "E", \u00CB: "E", \u00E8: "e", \u00E9: "e", \u00EA: "e", \u00EB: "e", \u00CC: "I", \u00CD: "I", \u00CE: "I", \u00CF: "I", \u00EC: "i", \u00ED: "i", \u00EE: "i", \u00EF: "i", \u00D1: "N", \u00F1: "n", \u00D2: "O", \u00D3: "O", \u00D4: "O", \u00D5: "O", \u00D6: "O", \u00D8: "O", \u00F2: "o", \u00F3: "o", \u00F4: "o", \u00F5: "o", \u00F6: "o", \u00F8: "o", \u00D9: "U", \u00DA: "U", \u00DB: "U", \u00DC: "U", \u00F9: "u", \u00FA: "u", \u00FB: "u", \u00FC: "u", \u00DD: "Y", \u00FD: "y", \u00FF: "y", \u00C6: "Ae", \u00E6: "ae", \u00DE: "Th", \u00FE: "th", \u00DF: "ss", \u0100: "A", \u0102: "A", \u0104: "A", \u0101: "a", \u0103: "a", \u0105: "a", \u0106: "C", \u0108: "C", \u010A: "C", \u010C: "C", \u0107: "c", \u0109: "c", \u010B: "c", \u010D: "c", \u010E: "D", \u0110: "D", \u010F: "d", \u0111: "d", \u0112: "E", \u0114: "E", \u0116: "E", \u0118: "E", \u011A: "E", \u0113: "e", \u0115: "e", \u0117: "e", \u0119: "e", \u011B: "e", \u011C: "G", \u011E: "G", \u0120: "G", \u0122: "G", \u011D: "g", \u011F: "g", \u0121: "g", \u0123: "g", \u0124: "H", \u0126: "H", \u0125: "h", \u0127: "h", \u0128: "I", \u012A: "I", \u012C: "I", \u012E: "I", \u0130: "I", \u0129: "i", \u012B: "i", \u012D: "i", \u012F: "i", \u0131: "i", \u0134: "J", \u0135: "j", \u0136: "K", \u0137: "k", \u0138: "k", \u0139: "L", \u013B: "L", \u013D: "L", \u013F: "L", \u0141: "L", \u013A: "l", \u013C: "l", \u013E: "l", \u0140: "l", \u0142: "l", \u0143: "N", \u0145: "N", \u0147: "N", \u014A: "N", \u0144: "n", \u0146: "n", \u0148: "n", \u014B: "n", \u014C: "O", \u014E: "O", \u0150: "O", \u014D: "o", \u014F: "o", \u0151: "o", \u0154: "R", \u0156: "R", \u0158: "R", \u0155: "r", \u0157: "r", \u0159: "r", \u015A: "S", \u015C: "S", \u015E: "S", \u0160: "S", \u015B: "s", \u015D: "s", \u015F: "s", \u0161: "s", \u0162: "T", \u0164: "T", \u0166: "T", \u0163: "t", \u0165: "t", \u0167: "t", \u0168: "U", \u016A: "U", \u016C: "U", \u016E: "U", \u0170: "U", \u0172: "U", \u0169: "u", \u016B: "u", \u016D: "u", \u016F: "u", \u0171: "u", \u0173: "u", \u0174: "W", \u0175: "w", \u0176: "Y", \u0177: "y", \u0178: "Y", \u0179: "Z", \u017B: "Z", \u017D: "Z", \u017A: "z", \u017C: "z", \u017E: "z", \u0132: "IJ", \u0133: "ij", \u0152: "Oe", \u0153: "oe", \u0149: "'n", \u017F: "ss" }, function(t10) {
  return u1 == null ? void 0 : u1[t10];
});
function rj(t10) {
  return _q.test(t10);
}
function Rq(t10) {
  return rj(t10) ? (function(e) {
    return e.match(Fq) || [];
  })(t10) : (function(e) {
    return e.split("");
  })(t10);
}
var Mq = Object.prototype.toString, dA = Iq.Symbol, pA = dA ? dA.prototype : void 0, hA = pA ? pA.toString : void 0;
function zq(t10) {
  if (typeof t10 == "string") return t10;
  if ((function(r) {
    return typeof r == "symbol" || /* @__PURE__ */ (function(n) {
      return !!n && typeof n == "object";
    })(r) && Mq.call(r) == "[object Symbol]";
  })(t10)) return hA ? hA.call(t10) : "";
  var e = t10 + "";
  return e == "0" && 1 / t10 == -1 / 0 ? "-0" : e;
}
function $q(t10, e, r) {
  var n = t10.length;
  return r = r === void 0 ? n : r, !e && r >= n ? t10 : (function(o, i, a) {
    var u = -1, s = o.length;
    i < 0 && (i = -i > s ? 0 : s + i), (a = a > s ? s : a) < 0 && (a += s), s = i > a ? 0 : a - i >>> 0, i >>>= 0;
    for (var l = Array(s); ++u < s; ) l[u] = o[u + i];
    return l;
  })(t10, e, r);
}
function jg(t10) {
  return t10 == null ? "" : zq(t10);
}
var gA, Hq = (gA = function(t10, e, r) {
  return e = e.toLowerCase(), t10 + (r ? Vq(jg(e).toLowerCase()) : e);
}, function(t10) {
  return (function(e, r, n, o) {
    var i = -1, a = e ? e.length : 0;
    for (o; ++i < a; ) n = r(n, e[i], i, e);
    return n;
  })((function(e, r, n) {
    return e = jg(e), (r = r) === void 0 ? (function(o) {
      return Pq.test(o);
    })(e) ? (function(o) {
      return o.match(Tq) || [];
    })(e) : (function(o) {
      return o.match(Eq) || [];
    })(e) : e.match(r) || [];
  })((function(e) {
    return (e = jg(e)) && e.replace(Dq, Lq).replace(Bq, "");
  })(t10).replace(kq, "")), gA, "");
}), vA, Vq = (vA = "toUpperCase", function(t10) {
  var e = rj(t10 = jg(t10)) ? Rq(t10) : void 0, r = e ? e[0] : t10.charAt(0), n = e ? $q(e, 1).join("") : t10.slice(1);
  return r[vA]() + n;
});
for (var Uq = Hq, Wq = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), s1 = { alt: "altKey", control: "ctrlKey", meta: "metaKey", shift: "shiftKey" }, nj = { add: "+", break: "pause", cmd: "meta", command: "meta", ctl: "control", ctrl: "control", del: "delete", down: "arrowdown", esc: "escape", ins: "insert", left: "arrowleft", mod: Wq ? "meta" : "control", opt: "alt", option: "alt", return: "enter", right: "arrowright", space: " ", spacebar: " ", up: "arrowup", win: "meta", windows: "meta" }, h5 = { backspace: 8, tab: 9, enter: 13, shift: 16, control: 17, alt: 18, pause: 19, capslock: 20, escape: 27, " ": 32, pageup: 33, pagedown: 34, end: 35, home: 36, arrowleft: 37, arrowup: 38, arrowright: 39, arrowdown: 40, insert: 45, delete: 46, meta: 91, numlock: 144, scrolllock: 145, ";": 186, "=": 187, ",": 188, "-": 189, ".": 190, "/": 191, "`": 192, "[": 219, "\\": 220, "]": 221, "'": 222 }, xh = 1; xh < 20; xh++) h5["f" + xh] = 111 + xh;
function oj(t10, e, r) {
  e && !("byKey" in e) && (r = e, e = null), Array.isArray(t10) || (t10 = [t10]);
  var n = t10.map((function(i) {
    return (function(a, u) {
      var s = u && u.byKey, l = {}, c = (a = a.replace("++", "+add")).split("+"), f = c.length;
      for (var d in s1) l[s1[d]] = false;
      var p = true, v = false, y = void 0;
      try {
        for (var g, m = c[Symbol.iterator](); !(p = (g = m.next()).done); p = true) {
          var h = g.value, b = h.endsWith("?") && h.length > 1;
          b && (h = h.slice(0, -1));
          var w = ij(h), D = s1[w];
          if (h.length > 1 && !D && !nj[h] && !h5[w]) throw new TypeError('Unknown modifier: "' + h + '"');
          f !== 1 && D || (s ? l.key = w : l.which = Gq(h)), D && (l[D] = !b || null);
        }
      } catch (x) {
        v = true, y = x;
      } finally {
        try {
          !p && m.return && m.return();
        } finally {
          if (v) throw y;
        }
      }
      return l;
    })(i, e);
  })), o = function(i) {
    return n.some((function(a) {
      return (function(u, s) {
        for (var l in u) {
          var c = u[l], f = void 0;
          if (c != null && ((f = l === "key" && s.key != null ? s.key.toLowerCase() : l === "which" ? c === 91 && s.which === 93 ? 91 : s.which : s[l]) != null || c !== false) && f !== c) return false;
        }
        return true;
      })(a, i);
    }));
  };
  return r == null ? o : o(r);
}
function Gq(t10) {
  return t10 = ij(t10), h5[t10] || t10.toUpperCase().charCodeAt(0);
}
function ij(t10) {
  return t10 = t10.toLowerCase(), t10 = nj[t10] || t10;
}
var qq = oj, l1 = function(t10, e) {
  return oj(t10, { byKey: true }, e);
}, Kq = /^\s+|\s+$/g, Yq = /^[-+]0x[0-9a-f]+$/i, Xq = /^0b[01]+$/i, Zq = /^0o[0-7]+$/i, Jq = parseInt, Qq = typeof ae == "object" && ae && ae.Object === Object && ae, tK = typeof self == "object" && self && self.Object === Object && self, eK = Qq || tK || Function("return this")(), rK = Object.prototype.toString, nK = Math.max, oK = Math.min, c1 = function() {
  return eK.Date.now();
};
function M4(t10) {
  var e = typeof t10;
  return !!t10 && (e == "object" || e == "function");
}
function yA(t10) {
  if (typeof t10 == "number") return t10;
  if ((function(n) {
    return typeof n == "symbol" || /* @__PURE__ */ (function(o) {
      return !!o && typeof o == "object";
    })(n) && rK.call(n) == "[object Symbol]";
  })(t10)) return NaN;
  if (M4(t10)) {
    var e = typeof t10.valueOf == "function" ? t10.valueOf() : t10;
    t10 = M4(e) ? e + "" : e;
  }
  if (typeof t10 != "string") return t10 === 0 ? t10 : +t10;
  t10 = t10.replace(Kq, "");
  var r = Xq.test(t10);
  return r || Zq.test(t10) ? Jq(t10.slice(2), r ? 2 : 8) : Yq.test(t10) ? NaN : +t10;
}
var bs, aj = function(t10, e, r) {
  var n, o, i, a, u, s, l = 0, c = false, f = false, d = true;
  if (typeof t10 != "function") throw new TypeError("Expected a function");
  function p(b) {
    var w = n, D = o;
    return n = o = void 0, l = b, a = t10.apply(D, w);
  }
  function v(b) {
    return l = b, u = setTimeout(g, e), c ? p(b) : a;
  }
  function y(b) {
    var w = b - s;
    return s === void 0 || w >= e || w < 0 || f && b - l >= i;
  }
  function g() {
    var b = c1();
    if (y(b)) return m(b);
    u = setTimeout(g, (function(w) {
      var D = e - (w - s);
      return f ? oK(D, i - (w - l)) : D;
    })(b));
  }
  function m(b) {
    return u = void 0, d && n ? p(b) : (n = o = void 0, a);
  }
  function h() {
    var b = c1(), w = y(b);
    if (n = arguments, o = this, s = b, w) {
      if (u === void 0) return v(s);
      if (f) return u = setTimeout(g, e), p(s);
    }
    return u === void 0 && (u = setTimeout(g, e)), a;
  }
  return e = yA(e) || 0, M4(r) && (c = !!r.leading, i = (f = "maxWait" in r) ? nK(yA(r.maxWait) || 0, e) : i, d = "trailing" in r ? !!r.trailing : d), h.cancel = function() {
    u !== void 0 && clearTimeout(u), l = 0, n = s = o = u = void 0;
  }, h.flush = function() {
    return u === void 0 ? a : m(c1());
  }, h;
}, uj = Ju((function(t10, e) {
  var r = "__lodash_hash_undefined__", n = 9007199254740991, o = "[object Arguments]", i = "[object Boolean]", a = "[object Date]", u = "[object Function]", s = "[object GeneratorFunction]", l = "[object Map]", c = "[object Number]", f = "[object Object]", d = "[object Promise]", p = "[object RegExp]", v = "[object Set]", y = "[object String]", g = "[object Symbol]", m = "[object WeakMap]", h = "[object ArrayBuffer]", b = "[object DataView]", w = "[object Float32Array]", D = "[object Float64Array]", x = "[object Int8Array]", C = "[object Int16Array]", O = "[object Int32Array]", T = "[object Uint8Array]", R = "[object Uint8ClampedArray]", H = "[object Uint16Array]", M = "[object Uint32Array]", K = /\w*$/, U = /^\[object .+?Constructor\]$/, W = /^(?:0|[1-9]\d*)$/, q = {};
  q[o] = q["[object Array]"] = q[h] = q[b] = q[i] = q[a] = q[w] = q[D] = q[x] = q[C] = q[O] = q[l] = q[c] = q[f] = q[p] = q[v] = q[y] = q[g] = q[T] = q[R] = q[H] = q[M] = true, q["[object Error]"] = q[u] = q[m] = false;
  var et = typeof ae == "object" && ae && ae.Object === Object && ae, st = typeof self == "object" && self && self.Object === Object && self, ut = et || st || Function("return this")(), at = e && !e.nodeType && e, k = at && t10 && !t10.nodeType && t10, S = k && k.exports === at;
  function P(F, z) {
    return F.set(z[0], z[1]), F;
  }
  function $(F, z) {
    return F.add(z), F;
  }
  function Y(F, z, nt, lt) {
    var zt = -1, ve = F ? F.length : 0;
    for (lt; ++zt < ve; ) nt = z(nt, F[zt], zt, F);
    return nt;
  }
  function V(F) {
    var z = false;
    if (F != null && typeof F.toString != "function") try {
      z = !!(F + "");
    } catch {
    }
    return z;
  }
  function it(F) {
    var z = -1, nt = Array(F.size);
    return F.forEach((function(lt, zt) {
      nt[++z] = [zt, lt];
    })), nt;
  }
  function gt(F, z) {
    return function(nt) {
      return F(z(nt));
    };
  }
  function vt(F) {
    var z = -1, nt = Array(F.size);
    return F.forEach((function(lt) {
      nt[++z] = lt;
    })), nt;
  }
  var Dt = Array.prototype, G = Function.prototype, It = Object.prototype, At = ut["__core-js_shared__"], dt = (function() {
    var F = /[^.]+$/.exec(At && At.keys && At.keys.IE_PROTO || "");
    return F ? "Symbol(src)_1." + F : "";
  })(), Ot = G.toString, Oe = It.hasOwnProperty, $t = It.toString, Qt = RegExp("^" + Ot.call(Oe).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), ge = S ? ut.Buffer : void 0, hr = ut.Symbol, Mt = ut.Uint8Array, jr = gt(Object.getPrototypeOf, Object), Pn = Object.create, Qn = It.propertyIsEnumerable, cs = Dt.splice, Pa = Object.getOwnPropertySymbols, jn = ge ? ge.isBuffer : void 0, to = gt(Object.keys, Object), jo = eo(ut, "DataView"), gr = eo(ut, "Map"), vr = eo(ut, "Promise"), yr = eo(ut, "Set"), kr = eo(ut, "WeakMap"), er = eo(Object, "create"), fn = no(jo), pc = no(gr), di = no(vr), No = no(yr), fs = no(kr), ja = hr ? hr.prototype : void 0, ds = ja ? ja.valueOf : void 0;
  function Nn(F) {
    var z = -1, nt = F ? F.length : 0;
    for (this.clear(); ++z < nt; ) {
      var lt = F[z];
      this.set(lt[0], lt[1]);
    }
  }
  function dn(F) {
    var z = -1, nt = F ? F.length : 0;
    for (this.clear(); ++z < nt; ) {
      var lt = F[z];
      this.set(lt[0], lt[1]);
    }
  }
  function Io(F) {
    var z = -1, nt = F ? F.length : 0;
    for (this.clear(); ++z < nt; ) {
      var lt = F[z];
      this.set(lt[0], lt[1]);
    }
  }
  function In(F) {
    this.__data__ = new dn(F);
  }
  function pi(F, z) {
    var nt = _(F) || (function(se) {
      return (function(Ut) {
        return /* @__PURE__ */ (function(Ye) {
          return !!Ye && typeof Ye == "object";
        })(Ut) && I(Ut);
      })(se) && Oe.call(se, "callee") && (!Qn.call(se, "callee") || $t.call(se) == o);
    })(F) ? (function(se, Ut) {
      for (var Ye = -1, mr = Array(se); ++Ye < se; ) mr[Ye] = Ut(Ye);
      return mr;
    })(F.length, String) : [], lt = nt.length, zt = !!lt;
    for (var ve in F) !Oe.call(F, ve) || zt && (ve == "length" || lh(ve, lt)) || nt.push(ve);
    return nt;
  }
  function uh(F, z, nt) {
    var lt = F[z];
    Oe.call(F, z) && ch(lt, nt) && (nt !== void 0 || z in F) || (F[z] = nt);
  }
  function qr(F, z) {
    for (var nt = F.length; nt--; ) if (ch(F[nt][0], z)) return nt;
    return -1;
  }
  function hc(F, z, nt, lt, zt, ve, se) {
    var Ut;
    if (lt && (Ut = ve ? lt(F, zt, ve, se) : lt(F)), Ut !== void 0) return Ut;
    if (!te(F)) return F;
    var Ye = _(F);
    if (Ye) {
      if (Ut = (function(mt) {
        var Xt = mt.length, _e = mt.constructor(Xt);
        return Xt && typeof mt[0] == "string" && Oe.call(mt, "index") && (_e.index = mt.index, _e.input = mt.input), _e;
      })(F), !z) return (function(mt, Xt) {
        var _e = -1, Lt = mt.length;
        for (Xt || (Xt = Array(Lt)); ++_e < Lt; ) Xt[_e] = mt[_e];
        return Xt;
      })(F, Ut);
    } else {
      var mr = ro(F), Na = mr == u || mr == s;
      if (Z(F)) return (function(mt, Xt) {
        if (Xt) return mt.slice();
        var _e = new mt.constructor(mt.length);
        return mt.copy(_e), _e;
      })(F, z);
      if (mr == f || mr == o || Na && !ve) {
        if (V(F)) return ve ? F : {};
        if (Ut = (function(mt) {
          return typeof mt.constructor != "function" || hi(mt) ? {} : (Xt = jr(mt), te(Xt) ? Pn(Xt) : {});
          var Xt;
        })(Na ? {} : F), !z) return (function(mt, Xt) {
          return sh(mt, gc(mt), Xt);
        })(F, (function(mt, Xt) {
          return mt && sh(Xt, Pt(Xt), mt);
        })(Ut, F));
      } else {
        if (!q[mr]) return ve ? F : {};
        Ut = (function(mt, Xt, _e, Lt) {
          var Wt = mt.constructor;
          switch (Xt) {
            case h:
              return ps(mt);
            case i:
            case a:
              return new Wt(+mt);
            case b:
              return (function(Gt, ke) {
                var Br = ke ? ps(Gt.buffer) : Gt.buffer;
                return new Gt.constructor(Br, Gt.byteOffset, Gt.byteLength);
              })(mt, Lt);
            case w:
            case D:
            case x:
            case C:
            case O:
            case T:
            case R:
            case H:
            case M:
              return (function(Gt, ke) {
                var Br = ke ? ps(Gt.buffer) : Gt.buffer;
                return new Gt.constructor(Br, Gt.byteOffset, Gt.length);
              })(mt, Lt);
            case l:
              return (function(Gt, ke, Br) {
                return Y(ke ? Br(it(Gt), true) : it(Gt), P, new Gt.constructor());
              })(mt, Lt, _e);
            case c:
            case y:
              return new Wt(mt);
            case p:
              return (function(Gt) {
                var ke = new Gt.constructor(Gt.source, K.exec(Gt));
                return ke.lastIndex = Gt.lastIndex, ke;
              })(mt);
            case v:
              return (function(Gt, ke, Br) {
                return Y(ke ? Br(vt(Gt), true) : vt(Gt), $, new Gt.constructor());
              })(mt, Lt, _e);
            case g:
              return (function(Gt) {
                return ds ? Object(ds.call(Gt)) : {};
              })(mt);
          }
        })(F, mr, hc, z);
      }
    }
    se || (se = new In());
    var Mo = se.get(F);
    if (Mo) return Mo;
    if (se.set(F, Ut), !Ye) var gi = nt ? (function(mt) {
      return (function(Xt, _e, Lt) {
        var Wt = _e(Xt);
        return _(Xt) ? Wt : (function(Gt, ke) {
          for (var Br = -1, Nr = ke.length, Ln = Gt.length; ++Br < Nr; ) Gt[Ln + Br] = ke[Br];
          return Gt;
        })(Wt, Lt(Xt));
      })(mt, Pt, gc);
    })(F) : Pt(F);
    return (function(mt, Xt) {
      for (var _e = -1, Lt = mt ? mt.length : 0; ++_e < Lt && Xt(mt[_e], _e, mt) !== false; ) ;
    })(gi || F, (function(mt, Xt) {
      gi && (mt = F[Xt = mt]), uh(Ut, Xt, hc(mt, z, nt, lt, Xt, F, se));
    })), Ut;
  }
  function Lo(F) {
    return !(!te(F) || (function(z) {
      return !!dt && dt in z;
    })(F)) && (ht(F) || V(F) ? Qt : U).test(no(F));
  }
  function ps(F) {
    var z = new F.constructor(F.byteLength);
    return new Mt(z).set(new Mt(F)), z;
  }
  function sh(F, z, nt, lt) {
    nt || (nt = {});
    for (var zt = -1, ve = z.length; ++zt < ve; ) {
      var se = z[zt], Ut = void 0;
      uh(nt, se, Ut === void 0 ? F[se] : Ut);
    }
    return nt;
  }
  function Ro(F, z) {
    var nt, lt, zt = F.__data__;
    return ((lt = typeof (nt = z)) == "string" || lt == "number" || lt == "symbol" || lt == "boolean" ? nt !== "__proto__" : nt === null) ? zt[typeof z == "string" ? "string" : "hash"] : zt.map;
  }
  function eo(F, z) {
    var nt = (function(lt, zt) {
      return lt == null ? void 0 : lt[zt];
    })(F, z);
    return Lo(nt) ? nt : void 0;
  }
  Nn.prototype.clear = function() {
    this.__data__ = er ? er(null) : {};
  }, Nn.prototype.delete = function(F) {
    return this.has(F) && delete this.__data__[F];
  }, Nn.prototype.get = function(F) {
    var z = this.__data__;
    if (er) {
      var nt = z[F];
      return nt === r ? void 0 : nt;
    }
    return Oe.call(z, F) ? z[F] : void 0;
  }, Nn.prototype.has = function(F) {
    var z = this.__data__;
    return er ? z[F] !== void 0 : Oe.call(z, F);
  }, Nn.prototype.set = function(F, z) {
    return this.__data__[F] = er && z === void 0 ? r : z, this;
  }, dn.prototype.clear = function() {
    this.__data__ = [];
  }, dn.prototype.delete = function(F) {
    var z = this.__data__, nt = qr(z, F);
    return !(nt < 0) && (nt == z.length - 1 ? z.pop() : cs.call(z, nt, 1), true);
  }, dn.prototype.get = function(F) {
    var z = this.__data__, nt = qr(z, F);
    return nt < 0 ? void 0 : z[nt][1];
  }, dn.prototype.has = function(F) {
    return qr(this.__data__, F) > -1;
  }, dn.prototype.set = function(F, z) {
    var nt = this.__data__, lt = qr(nt, F);
    return lt < 0 ? nt.push([F, z]) : nt[lt][1] = z, this;
  }, Io.prototype.clear = function() {
    this.__data__ = { hash: new Nn(), map: new (gr || dn)(), string: new Nn() };
  }, Io.prototype.delete = function(F) {
    return Ro(this, F).delete(F);
  }, Io.prototype.get = function(F) {
    return Ro(this, F).get(F);
  }, Io.prototype.has = function(F) {
    return Ro(this, F).has(F);
  }, Io.prototype.set = function(F, z) {
    return Ro(this, F).set(F, z), this;
  }, In.prototype.clear = function() {
    this.__data__ = new dn();
  }, In.prototype.delete = function(F) {
    return this.__data__.delete(F);
  }, In.prototype.get = function(F) {
    return this.__data__.get(F);
  }, In.prototype.has = function(F) {
    return this.__data__.has(F);
  }, In.prototype.set = function(F, z) {
    var nt = this.__data__;
    if (nt instanceof dn) {
      var lt = nt.__data__;
      if (!gr || lt.length < 199) return lt.push([F, z]), this;
      nt = this.__data__ = new Io(lt);
    }
    return nt.set(F, z), this;
  };
  var gc = Pa ? gt(Pa, Object) : function() {
    return [];
  }, ro = function(F) {
    return $t.call(F);
  };
  function lh(F, z) {
    return !!(z = z ?? n) && (typeof F == "number" || W.test(F)) && F > -1 && F % 1 == 0 && F < z;
  }
  function hi(F) {
    var z = F && F.constructor;
    return F === (typeof z == "function" && z.prototype || It);
  }
  function no(F) {
    if (F != null) {
      try {
        return Ot.call(F);
      } catch {
      }
      try {
        return F + "";
      } catch {
      }
    }
    return "";
  }
  function ch(F, z) {
    return F === z || F != F && z != z;
  }
  (jo && ro(new jo(new ArrayBuffer(1))) != b || gr && ro(new gr()) != l || vr && ro(vr.resolve()) != d || yr && ro(new yr()) != v || kr && ro(new kr()) != m) && (ro = function(F) {
    var z = $t.call(F), nt = z == f ? F.constructor : void 0, lt = nt ? no(nt) : void 0;
    if (lt) switch (lt) {
      case fn:
        return b;
      case pc:
        return l;
      case di:
        return d;
      case No:
        return v;
      case fs:
        return m;
    }
    return z;
  });
  var _ = Array.isArray;
  function I(F) {
    return F != null && (function(z) {
      return typeof z == "number" && z > -1 && z % 1 == 0 && z <= n;
    })(F.length) && !ht(F);
  }
  var Z = jn || function() {
    return false;
  };
  function ht(F) {
    var z = te(F) ? $t.call(F) : "";
    return z == u || z == s;
  }
  function te(F) {
    var z = typeof F;
    return !!F && (z == "object" || z == "function");
  }
  function Pt(F) {
    return I(F) ? pi(F) : (function(z) {
      if (!hi(z)) return to(z);
      var nt = [];
      for (var lt in Object(z)) Oe.call(z, lt) && lt != "constructor" && nt.push(lt);
      return nt;
    })(F);
  }
  t10.exports = function(F) {
    return hc(F, true, true);
  };
}));
function mA(t10, e) {
  if (!Object.prototype.hasOwnProperty.call(t10, e)) throw new TypeError("attempted to use private field on non-instance");
  return t10;
}
var iK = 0;
function aK(t10) {
  return "__private_" + iK++ + "_" + t10;
}
function uK(t10, e, r) {
  const n = [];
  return t10.forEach(((o) => typeof o != "string" ? n.push(o) : e[Symbol.split](o).forEach(((i, a, u) => {
    i !== "" && n.push(i), a < u.length - 1 && n.push(r);
  })))), n;
}
function bA(t10, e) {
  const r = /\$/g;
  let n = [t10];
  if (e == null) return n;
  for (const o of Object.keys(e)) if (o !== "_") {
    let i = e[o];
    typeof i == "string" && (i = r[Symbol.replace](i, "$$$$")), n = uK(n, new RegExp(`%\\{${o}\\}`, "g"), i);
  }
  return n;
}
var sj = (bs = aK("apply"), class {
  constructor(t10) {
    Object.defineProperty(this, bs, { value: sK }), this.locale = { strings: {}, pluralize: (e) => e === 1 ? 0 : 1 }, Array.isArray(t10) ? t10.forEach(mA(this, bs)[bs], this) : mA(this, bs)[bs](t10);
  }
  translate(t10, e) {
    return this.translateArray(t10, e).join("");
  }
  translateArray(t10, e) {
    if (!(function(n, o) {
      return Object.prototype.hasOwnProperty.call(n, o);
    })(this.locale.strings, t10)) throw new Error(`missing string: ${t10}`);
    const r = this.locale.strings[t10];
    if (typeof r == "object") {
      if (e && e.smart_count !== void 0) return bA(r[this.locale.pluralize(e.smart_count)], e);
      throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}");
    }
    return bA(r, e);
  }
});
function sK(t10) {
  if (t10 == null || !t10.strings) return;
  const e = this.locale;
  this.locale = { ...e, strings: { ...e.strings, ...t10.strings } }, this.locale.pluralize = t10.pluralize || e.pluralize;
}
var lj = function() {
  var t10 = {}, e = t10._fns = {};
  return t10.emit = function(r, n, o, i, a, u, s) {
    var l = (function(c) {
      for (var f = e[c] ? e[c] : [], d = c.indexOf(":"), p = d === -1 ? [c] : [c.substring(0, d), c.substring(d + 1)], v = Object.keys(e), y = 0, g = v.length; y < g; y++) {
        var m = v[y];
        if (m === "*" && (f = f.concat(e[m])), p.length === 2 && p[0] === m) {
          f = f.concat(e[m]);
          break;
        }
      }
      return f;
    })(r);
    l.length && (function(c, f, d) {
      for (var p = 0, v = f.length; p < v && f[p]; p++) f[p].event = c, f[p].apply(f[p], d);
    })(r, l, [n, o, i, a, u, s]);
  }, t10.on = function(r, n) {
    e[r] || (e[r] = []), e[r].push(n);
  }, t10.once = function(r, n) {
    this.on(r, (function o() {
      n.apply(this, arguments), t10.off(r, o);
    }));
  }, t10.off = function(r, n) {
    var o = [];
    if (r && n) for (var i = this._fns[r], a = 0, u = i ? i.length : 0; a < u; a++) i[a] !== n && o.push(i[a]);
    o.length ? this._fns[r] = o : delete this._fns[r];
  }, t10;
}, lK = { nanoid: (t10 = 21) => {
  let e = "", r = crypto.getRandomValues(new Uint8Array(t10));
  for (; t10--; ) {
    let n = 63 & r[t10];
    e += n < 36 ? n.toString(36) : n < 62 ? (n - 26).toString(36).toUpperCase() : n < 63 ? "_" : "-";
  }
  return e;
} }, f1 = function(t10) {
  if (typeof t10 != "number" || isNaN(t10)) throw new TypeError("Expected a number, got " + typeof t10);
  var e = t10 < 0, r = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
  if (e && (t10 = -t10), t10 < 1) return (e ? "-" : "") + t10 + " B";
  var n = Math.min(Math.floor(Math.log(t10) / Math.log(1024)), r.length - 1);
  t10 = Number(t10 / Math.pow(1024, n));
  var o = r[n];
  return t10 >= 10 || t10 % 1 == 0 ? (e ? "-" : "") + t10.toFixed(0) + " " + o : (e ? "-" : "") + t10.toFixed(1) + " " + o;
};
function cj(t10, e) {
  this.text = t10 = t10 || "", this.hasWild = ~t10.indexOf("*"), this.separator = e, this.parts = t10.split(e);
}
cj.prototype.match = function(t10) {
  var e, r, n = true, o = this.parts, i = o.length;
  if (typeof t10 == "string" || t10 instanceof String) if (this.hasWild || this.text == t10) {
    for (r = (t10 || "").split(this.separator), e = 0; n && e < i; e++) o[e] !== "*" && (n = e < r.length && o[e] === r[e]);
    n = n && r;
  } else n = false;
  else if (typeof t10.splice == "function") for (n = [], e = t10.length; e--; ) this.match(t10[e]) && (n[n.length] = t10[e]);
  else if (typeof t10 == "object") for (var a in n = {}, t10) this.match(a) && (n[a] = t10[a]);
  return n;
};
var cK = /[\/\+\.]/, fK = function(t10, e) {
  function r(n) {
    var o = (function(i, a, u) {
      var s = new cj(i, u || /[\/\.]/);
      return a !== void 0 ? s.match(a) : s;
    })(n, t10, cK);
    return o && o.length >= 2;
  }
  return e ? r(e.split(";")[0]) : r;
}, dK = 0;
function pK(t10) {
  return "__private_" + dK++ + "_" + t10;
}
var d1 = pK("publish");
class fj {
  constructor() {
    Object.defineProperty(this, d1, { value: hK }), this.state = {}, this.callbacks = [];
  }
  getState() {
    return this.state;
  }
  setState(e) {
    const r = { ...this.state }, n = { ...this.state, ...e };
    this.state = n, (function(o, i) {
      if (!Object.prototype.hasOwnProperty.call(o, i)) throw new TypeError("attempted to use private field on non-instance");
      return o;
    })(this, d1)[d1](r, n, e);
  }
  subscribe(e) {
    return this.callbacks.push(e), () => {
      this.callbacks.splice(this.callbacks.indexOf(e), 1);
    };
  }
}
function hK() {
  for (var t10 = arguments.length, e = new Array(t10), r = 0; r < t10; r++) e[r] = arguments[r];
  this.callbacks.forEach(((n) => {
    n(...e);
  }));
}
fj.VERSION = "2.0.3";
var wA = function(t10) {
  const e = t10.lastIndexOf(".");
  return e === -1 || e === t10.length - 1 ? { name: t10, extension: void 0 } : { name: t10.slice(0, e), extension: t10.slice(e + 1) };
}, EA = { md: "text/markdown", markdown: "text/markdown", mp4: "video/mp4", mp3: "audio/mp3", svg: "image/svg+xml", jpg: "image/jpeg", png: "image/png", gif: "image/gif", heic: "image/heic", heif: "image/heif", yaml: "text/yaml", yml: "text/yaml", csv: "text/csv", tsv: "text/tab-separated-values", tab: "text/tab-separated-values", avi: "video/x-msvideo", mks: "video/x-matroska", mkv: "video/x-matroska", mov: "video/quicktime", doc: "application/msword", docm: "application/vnd.ms-word.document.macroenabled.12", docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", dot: "application/msword", dotm: "application/vnd.ms-word.template.macroenabled.12", dotx: "application/vnd.openxmlformats-officedocument.wordprocessingml.template", xla: "application/vnd.ms-excel", xlam: "application/vnd.ms-excel.addin.macroenabled.12", xlc: "application/vnd.ms-excel", xlf: "application/x-xliff+xml", xlm: "application/vnd.ms-excel", xls: "application/vnd.ms-excel", xlsb: "application/vnd.ms-excel.sheet.binary.macroenabled.12", xlsm: "application/vnd.ms-excel.sheet.macroenabled.12", xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", xlt: "application/vnd.ms-excel", xltm: "application/vnd.ms-excel.template.macroenabled.12", xltx: "application/vnd.openxmlformats-officedocument.spreadsheetml.template", xlw: "application/vnd.ms-excel", txt: "text/plain", text: "text/plain", conf: "text/plain", log: "text/plain", pdf: "application/pdf", zip: "application/zip", "7z": "application/x-7z-compressed", rar: "application/x-rar-compressed", tar: "application/x-tar", gz: "application/gzip", dmg: "application/x-apple-diskimage" };
function DA(t10) {
  let e = "";
  return t10.replace(/[^A-Z0-9]/gi, ((r) => (e += `-${(function(n) {
    return n.charCodeAt(0).toString(32);
  })(r)}`, "/"))) + e;
}
var gK = function(t10) {
  if (t10 == null && (t10 = typeof navigator < "u" ? navigator.userAgent : null), !t10) return true;
  const e = /Edge\/(\d+\.\d+)/.exec(t10);
  if (!e) return true;
  const r = e[1];
  let [n, o] = r.split(".");
  return n = parseInt(n, 10), o = parseInt(o, 10), n < 15 || n === 15 && o < 15063 || n > 18 || n === 18 && o >= 18218;
};
function p1(t10) {
  return t10 < 10 ? `0${t10}` : t10.toString();
}
var Sh = function() {
  const t10 = /* @__PURE__ */ new Date();
  return `${p1(t10.getHours())}:${p1(t10.getMinutes())}:${p1(t10.getSeconds())}`;
}, dj = { justErrorsLogger: { debug: () => {
}, warn: () => {
}, error: function() {
  for (var t10 = arguments.length, e = new Array(t10), r = 0; r < t10; r++) e[r] = arguments[r];
  return console.error(`[Uppy] [${Sh()}]`, ...e);
} }, debugLogger: { debug: function() {
  for (var t10 = arguments.length, e = new Array(t10), r = 0; r < t10; r++) e[r] = arguments[r];
  return console.debug(`[Uppy] [${Sh()}]`, ...e);
}, warn: function() {
  for (var t10 = arguments.length, e = new Array(t10), r = 0; r < t10; r++) e[r] = arguments[r];
  return console.warn(`[Uppy] [${Sh()}]`, ...e);
}, error: function() {
  for (var t10 = arguments.length, e = new Array(t10), r = 0; r < t10; r++) e[r] = arguments[r];
  return console.error(`[Uppy] [${Sh()}]`, ...e);
} } }, vK = { strings: { addBulkFilesFailed: { 0: "Failed to add %{smart_count} file due to an internal error", 1: "Failed to add %{smart_count} files due to internal errors" }, youCanOnlyUploadX: { 0: "You can only upload %{smart_count} file", 1: "You can only upload %{smart_count} files" }, youHaveToAtLeastSelectX: { 0: "You have to select at least %{smart_count} file", 1: "You have to select at least %{smart_count} files" }, exceedsSize: "%{file} exceeds maximum allowed size of %{size}", missingRequiredMetaField: "Missing required meta fields", missingRequiredMetaFieldOnFile: "Missing required meta fields in %{fileName}", inferiorSize: "This file is smaller than the allowed size of %{size}", youCanOnlyUploadFileTypes: "You can only upload: %{types}", noMoreFilesAllowed: "Cannot add more files", noDuplicates: "Cannot add the duplicate file '%{fileName}', it already exists", companionError: "Connection with Companion failed", authAborted: "Authentication aborted", companionUnauthorizeHint: "To unauthorize to your %{provider} account, please go to %{url}", failedToUpload: "Failed to upload %{file}", noInternetConnection: "No Internet connection", connectedToInternet: "Connected to the Internet", noFilesFound: "You have no files or folders here", selectX: { 0: "Select %{smart_count}", 1: "Select %{smart_count}" }, allFilesFromFolderNamed: "All files from folder %{name}", openFolderNamed: "Open folder %{name}", cancel: "Cancel", logOut: "Log out", filter: "Filter", resetFilter: "Reset filter", loading: "Loading...", authenticateWithTitle: "Please authenticate with %{pluginName} to select files", authenticateWith: "Connect to %{pluginName}", signInWithGoogle: "Sign in with Google", searchImages: "Search for images", enterTextToSearch: "Enter text to search for images", backToSearch: "Back to Search", emptyFolderAdded: "No files were added from empty folder", folderAlreadyAdded: 'The folder "%{folder}" was already added', folderAdded: { 0: "Added %{smart_count} file from %{folder}", 1: "Added %{smart_count} files from %{folder}" } } }, pj = lK;
let hj, gj;
function ft(t10, e) {
  if (!Object.prototype.hasOwnProperty.call(t10, e)) throw new TypeError("attempted to use private field on non-instance");
  return t10;
}
var yK = 0;
function Ke(t10) {
  return "__private_" + yK++ + "_" + t10;
}
const { nanoid: mK } = pj, { justErrorsLogger: bK, debugLogger: wK } = dj;
class fo extends Error {
  constructor() {
    super(...arguments), this.isRestriction = true;
  }
}
typeof AggregateError > "u" && (globalThis.AggregateError = class extends Error {
  constructor(t10, e) {
    super(e), this.errors = t10;
  }
});
class EK extends AggregateError {
  constructor() {
    super(...arguments), this.isRestriction = true;
  }
}
var cr = Ke("plugins"), Oc = Ke("storeUnsubscribe"), $o = Ke("emitter"), ru = Ke("preProcessors"), nu = Ke("uploaders"), qo = Ke("postProcessors"), Zf = Ke("checkRestrictions"), h1 = Ke("checkMinNumberOfFiles"), kd = Ke("checkRequiredMetaFieldsOnFile"), g1 = Ke("checkRequiredMetaFields"), Xe = Ke("showOrLogErrorAndThrow"), kc = Ke("assertNewUploadAllowed"), Bc = Ke("checkAndCreateFileStateObject"), Fc = Ke("startIfAutoProceed"), v1 = Ke("addListeners"), Mn = Ke("updateOnlineStatus"), Ho = Ke("createUpload"), y1 = Ke("getUpload"), uu = Ke("removeUpload"), Vo = Ke("runUpload");
hj = /* @__PURE__ */ Symbol.for("uppy test: getPlugins"), gj = /* @__PURE__ */ Symbol.for("uppy test: createUpload");
class vj {
  constructor(e) {
    Object.defineProperty(this, Vo, { value: jK }), Object.defineProperty(this, uu, { value: PK }), Object.defineProperty(this, y1, { value: _K }), Object.defineProperty(this, Ho, { value: TK }), Object.defineProperty(this, v1, { value: FK }), Object.defineProperty(this, Fc, { value: BK }), Object.defineProperty(this, Bc, { value: kK }), Object.defineProperty(this, kc, { value: OK }), Object.defineProperty(this, Xe, { value: AK }), Object.defineProperty(this, g1, { value: SK }), Object.defineProperty(this, kd, { value: xK }), Object.defineProperty(this, h1, { value: CK }), Object.defineProperty(this, Zf, { value: DK }), Object.defineProperty(this, cr, { writable: true, value: /* @__PURE__ */ Object.create(null) }), Object.defineProperty(this, Oc, { writable: true, value: void 0 }), Object.defineProperty(this, $o, { writable: true, value: lj() }), Object.defineProperty(this, ru, { writable: true, value: /* @__PURE__ */ new Set() }), Object.defineProperty(this, nu, { writable: true, value: /* @__PURE__ */ new Set() }), Object.defineProperty(this, qo, { writable: true, value: /* @__PURE__ */ new Set() }), Object.defineProperty(this, Mn, { writable: true, value: this.updateOnlineStatus.bind(this) }), this.defaultLocale = vK;
    const r = { id: "uppy", autoProceed: false, allowMultipleUploads: true, allowMultipleUploadBatches: true, debug: false, restrictions: { maxFileSize: null, minFileSize: null, maxTotalFileSize: null, maxNumberOfFiles: null, minNumberOfFiles: null, allowedFileTypes: null, requiredMetaFields: [] }, meta: {}, onBeforeFileAdded: (n) => n, onBeforeUpload: (n) => n, store: new fj(), logger: bK, infoTimeout: 5e3 };
    if (this.opts = { ...r, ...e, restrictions: { ...r.restrictions, ...e && e.restrictions } }, e && e.logger && e.debug ? this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.", "warning") : e && e.debug && (this.opts.logger = wK), this.log(`Using Core v${this.constructor.VERSION}`), this.opts.restrictions.allowedFileTypes && this.opts.restrictions.allowedFileTypes !== null && !Array.isArray(this.opts.restrictions.allowedFileTypes)) throw new TypeError("`restrictions.allowedFileTypes` must be an array");
    this.i18nInit(), this.calculateProgress = zu(this.calculateProgress.bind(this), 500, { leading: true, trailing: true }), this.store = this.opts.store, this.setState({ plugins: {}, files: {}, currentUploads: {}, allowNewUpload: true, capabilities: { uploadProgress: gK(), individualCancellation: true, resumableUploads: false }, totalProgress: 0, meta: { ...this.opts.meta }, info: [], recoveredState: null }), ft(this, Oc)[Oc] = this.store.subscribe(((n, o, i) => {
      this.emit("state-update", n, o, i), this.updateAll(o);
    })), this.opts.debug && typeof window < "u" && (window[this.opts.id] = this), ft(this, v1)[v1]();
  }
  emit(e) {
    for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++) n[o - 1] = arguments[o];
    ft(this, $o)[$o].emit(e, ...n);
  }
  on(e, r) {
    return ft(this, $o)[$o].on(e, r), this;
  }
  once(e, r) {
    return ft(this, $o)[$o].once(e, r), this;
  }
  off(e, r) {
    return ft(this, $o)[$o].off(e, r), this;
  }
  updateAll(e) {
    this.iteratePlugins(((r) => {
      r.update(e);
    }));
  }
  setState(e) {
    this.store.setState(e);
  }
  getState() {
    return this.store.getState();
  }
  get state() {
    return this.getState();
  }
  setFileState(e, r) {
    if (!this.getState().files[e]) throw new Error(`Can\u2019t set state for ${e} (the file could have been removed)`);
    this.setState({ files: { ...this.getState().files, [e]: { ...this.getState().files[e], ...r } } });
  }
  i18nInit() {
    const e = new sj([this.defaultLocale, this.opts.locale]);
    this.i18n = e.translate.bind(e), this.i18nArray = e.translateArray.bind(e), this.locale = e.locale;
  }
  setOptions(e) {
    this.opts = { ...this.opts, ...e, restrictions: { ...this.opts.restrictions, ...e && e.restrictions } }, e.meta && this.setMeta(e.meta), this.i18nInit(), e.locale && this.iteratePlugins(((r) => {
      r.setOptions();
    })), this.setState();
  }
  resetProgress() {
    const e = { percentage: 0, bytesUploaded: 0, uploadComplete: false, uploadStarted: null }, r = { ...this.getState().files }, n = {};
    Object.keys(r).forEach(((o) => {
      const i = { ...r[o] };
      i.progress = { ...i.progress, ...e }, n[o] = i;
    })), this.setState({ files: n, totalProgress: 0 }), this.emit("reset-progress");
  }
  addPreProcessor(e) {
    ft(this, ru)[ru].add(e);
  }
  removePreProcessor(e) {
    return ft(this, ru)[ru].delete(e);
  }
  addPostProcessor(e) {
    ft(this, qo)[qo].add(e);
  }
  removePostProcessor(e) {
    return ft(this, qo)[qo].delete(e);
  }
  addUploader(e) {
    ft(this, nu)[nu].add(e);
  }
  removeUploader(e) {
    return ft(this, nu)[nu].delete(e);
  }
  setMeta(e) {
    const r = { ...this.getState().meta, ...e }, n = { ...this.getState().files };
    Object.keys(n).forEach(((o) => {
      n[o] = { ...n[o], meta: { ...n[o].meta, ...e } };
    })), this.log("Adding metadata:"), this.log(e), this.setState({ meta: r, files: n });
  }
  setFileMeta(e, r) {
    const n = { ...this.getState().files };
    if (!n[e]) return void this.log("Was trying to set metadata for a file that has been removed: ", e);
    const o = { ...n[e].meta, ...r };
    n[e] = { ...n[e], meta: o }, this.setState({ files: n });
  }
  getFile(e) {
    return this.getState().files[e];
  }
  getFiles() {
    const { files: e } = this.getState();
    return Object.values(e);
  }
  getObjectOfFilesPerState() {
    const { files: e, totalProgress: r, error: n } = this.getState(), o = Object.values(e), i = o.filter(((v) => {
      let { progress: y } = v;
      return !y.uploadComplete && y.uploadStarted;
    })), a = o.filter(((v) => !v.progress.uploadStarted)), u = o.filter(((v) => v.progress.uploadStarted || v.progress.preprocess || v.progress.postprocess)), s = o.filter(((v) => v.progress.uploadStarted)), l = o.filter(((v) => v.isPaused)), c = o.filter(((v) => v.progress.uploadComplete)), f = o.filter(((v) => v.error)), d = i.filter(((v) => !v.isPaused)), p = o.filter(((v) => v.progress.preprocess || v.progress.postprocess));
    return { newFiles: a, startedFiles: u, uploadStartedFiles: s, pausedFiles: l, completeFiles: c, erroredFiles: f, inProgressFiles: i, inProgressNotPausedFiles: d, processingFiles: p, isUploadStarted: s.length > 0, isAllComplete: r === 100 && c.length === o.length && p.length === 0, isAllErrored: !!n && f.length === o.length, isAllPaused: i.length !== 0 && l.length === i.length, isUploadInProgress: i.length > 0, isSomeGhost: o.some(((v) => v.isGhost)) };
  }
  validateRestrictions(e, r) {
    try {
      return ft(this, Zf)[Zf](e, r), { result: true };
    } catch (n) {
      return { result: false, reason: n.message };
    }
  }
  checkIfFileAlreadyExists(e) {
    const { files: r } = this.getState();
    return !(!r[e] || r[e].isGhost);
  }
  addFile(e) {
    ft(this, kc)[kc](e);
    const { files: r } = this.getState();
    let n = ft(this, Bc)[Bc](r, e);
    return r[n.id] && r[n.id].isGhost && (n = { ...r[n.id], data: e.data, isGhost: false }, this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)), this.setState({ files: { ...r, [n.id]: n } }), this.emit("file-added", n), this.emit("files-added", [n]), this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`), ft(this, Fc)[Fc](), n.id;
  }
  addFiles(e) {
    ft(this, kc)[kc]();
    const r = { ...this.getState().files }, n = [], o = [];
    for (let i = 0; i < e.length; i++) try {
      let a = ft(this, Bc)[Bc](r, e[i]);
      r[a.id] && r[a.id].isGhost && (a = { ...r[a.id], data: e[i].data, isGhost: false }, this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)), r[a.id] = a, n.push(a);
    } catch (a) {
      a.isRestriction || o.push(a);
    }
    if (this.setState({ files: r }), n.forEach(((i) => {
      this.emit("file-added", i);
    })), this.emit("files-added", n), n.length > 5 ? this.log(`Added batch of ${n.length} files`) : Object.keys(n).forEach(((i) => {
      this.log(`Added file: ${n[i].name}
 id: ${n[i].id}
 type: ${n[i].type}`);
    })), n.length > 0 && ft(this, Fc)[Fc](), o.length > 0) {
      let i = `Multiple errors occurred while adding files:
`;
      if (o.forEach(((a) => {
        i += `
 * ${a.message}`;
      })), this.info({ message: this.i18n("addBulkFilesFailed", { smart_count: o.length }), details: i }, "error", this.opts.infoTimeout), typeof AggregateError == "function") throw new AggregateError(o, i);
      {
        const a = new Error(i);
        throw a.errors = o, a;
      }
    }
  }
  removeFiles(e, r) {
    const { files: n, currentUploads: o } = this.getState(), i = { ...n }, a = { ...o }, u = /* @__PURE__ */ Object.create(null);
    function s(f) {
      return u[f] === void 0;
    }
    e.forEach(((f) => {
      n[f] && (u[f] = n[f], delete i[f]);
    })), Object.keys(a).forEach(((f) => {
      const d = o[f].fileIDs.filter(s);
      d.length !== 0 ? a[f] = { ...o[f], fileIDs: d } : delete a[f];
    }));
    const l = { currentUploads: a, files: i };
    Object.keys(i).length === 0 && (l.allowNewUpload = true, l.error = null, l.recoveredState = null), this.setState(l), this.calculateTotalProgress();
    const c = Object.keys(u);
    c.forEach(((f) => {
      this.emit("file-removed", u[f], r);
    })), c.length > 5 ? this.log(`Removed ${c.length} files`) : this.log(`Removed files: ${c.join(", ")}`);
  }
  removeFile(e, r) {
    r === void 0 && (r = null), this.removeFiles([e], r);
  }
  pauseResume(e) {
    if (!this.getState().capabilities.resumableUploads || this.getFile(e).uploadComplete) return;
    const r = !this.getFile(e).isPaused;
    return this.setFileState(e, { isPaused: r }), this.emit("upload-pause", e, r), r;
  }
  pauseAll() {
    const e = { ...this.getState().files };
    Object.keys(e).filter(((r) => !e[r].progress.uploadComplete && e[r].progress.uploadStarted)).forEach(((r) => {
      const n = { ...e[r], isPaused: true };
      e[r] = n;
    })), this.setState({ files: e }), this.emit("pause-all");
  }
  resumeAll() {
    const e = { ...this.getState().files };
    Object.keys(e).filter(((r) => !e[r].progress.uploadComplete && e[r].progress.uploadStarted)).forEach(((r) => {
      const n = { ...e[r], isPaused: false, error: null };
      e[r] = n;
    })), this.setState({ files: e }), this.emit("resume-all");
  }
  retryAll() {
    const e = { ...this.getState().files }, r = Object.keys(e).filter(((o) => e[o].error));
    if (r.forEach(((o) => {
      const i = { ...e[o], isPaused: false, error: null };
      e[o] = i;
    })), this.setState({ files: e, error: null }), this.emit("retry-all", r), r.length === 0) return Promise.resolve({ successful: [], failed: [] });
    const n = ft(this, Ho)[Ho](r, { forceAllowNewUpload: true });
    return ft(this, Vo)[Vo](n);
  }
  cancelAll() {
    this.emit("cancel-all");
    const { files: e } = this.getState(), r = Object.keys(e);
    r.length && this.removeFiles(r, "cancel-all"), this.setState({ totalProgress: 0, error: null, recoveredState: null });
  }
  retryUpload(e) {
    this.setFileState(e, { error: null, isPaused: false }), this.emit("upload-retry", e);
    const r = ft(this, Ho)[Ho]([e], { forceAllowNewUpload: true });
    return ft(this, Vo)[Vo](r);
  }
  reset() {
    this.cancelAll();
  }
  logout() {
    this.iteratePlugins(((e) => {
      e.provider && e.provider.logout && e.provider.logout();
    }));
  }
  calculateProgress(e, r) {
    if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
    const n = Number.isFinite(r.bytesTotal) && r.bytesTotal > 0;
    this.setFileState(e.id, { progress: { ...this.getFile(e.id).progress, bytesUploaded: r.bytesUploaded, bytesTotal: r.bytesTotal, percentage: n ? Math.round(r.bytesUploaded / r.bytesTotal * 100) : 0 } }), this.calculateTotalProgress();
  }
  calculateTotalProgress() {
    const e = this.getFiles().filter(((s) => s.progress.uploadStarted || s.progress.preprocess || s.progress.postprocess));
    if (e.length === 0) return this.emit("progress", 0), void this.setState({ totalProgress: 0 });
    const r = e.filter(((s) => s.progress.bytesTotal != null)), n = e.filter(((s) => s.progress.bytesTotal == null));
    if (r.length === 0) {
      const s = 100 * e.length, l = n.reduce(((f, d) => f + d.progress.percentage), 0), c = Math.round(l / s * 100);
      return void this.setState({ totalProgress: c });
    }
    let o = r.reduce(((s, l) => s + l.progress.bytesTotal), 0);
    const i = o / r.length;
    o += i * n.length;
    let a = 0;
    r.forEach(((s) => {
      a += s.progress.bytesUploaded;
    })), n.forEach(((s) => {
      a += i * (s.progress.percentage || 0) / 100;
    }));
    let u = o === 0 ? 0 : Math.round(a / o * 100);
    u > 100 && (u = 100), this.setState({ totalProgress: u }), this.emit("progress", u);
  }
  updateOnlineStatus() {
    window.navigator.onLine === void 0 || window.navigator.onLine ? (this.emit("is-online"), this.wasOffline && (this.emit("back-online"), this.info(this.i18n("connectedToInternet"), "success", 3e3), this.wasOffline = false)) : (this.emit("is-offline"), this.info(this.i18n("noInternetConnection"), "error", 0), this.wasOffline = true);
  }
  getID() {
    return this.opts.id;
  }
  use(e, r) {
    if (typeof e != "function") throw new TypeError(`Expected a plugin class, but got ${e === null ? "null" : typeof e}. Please verify that the plugin was imported and spelled correctly.`);
    const n = new e(this, r), o = n.id;
    if (!o) throw new Error("Your plugin must have an id");
    if (!n.type) throw new Error("Your plugin must have a type");
    const i = this.getPlugin(o);
    if (i) {
      const a = `Already found a plugin named '${i.id}'. Tried to use: '${o}'.
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;
      throw new Error(a);
    }
    return e.VERSION && this.log(`Using ${o} v${e.VERSION}`), n.type in ft(this, cr)[cr] ? ft(this, cr)[cr][n.type].push(n) : ft(this, cr)[cr][n.type] = [n], n.install(), this;
  }
  getPlugin(e) {
    for (const r of Object.values(ft(this, cr)[cr])) {
      const n = r.find(((o) => o.id === e));
      if (n != null) return n;
    }
  }
  [hj](e) {
    return ft(this, cr)[cr][e];
  }
  iteratePlugins(e) {
    Object.values(ft(this, cr)[cr]).flat(1).forEach(e);
  }
  removePlugin(e) {
    this.log(`Removing plugin ${e.id}`), this.emit("plugin-remove", e), e.uninstall && e.uninstall();
    const r = ft(this, cr)[cr][e.type], n = r.findIndex(((i) => i.id === e.id));
    n !== -1 && r.splice(n, 1);
    const o = { plugins: { ...this.getState().plugins, [e.id]: void 0 } };
    this.setState(o);
  }
  close() {
    this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`), this.reset(), ft(this, Oc)[Oc](), this.iteratePlugins(((e) => {
      this.removePlugin(e);
    })), typeof window < "u" && window.removeEventListener && (window.removeEventListener("online", ft(this, Mn)[Mn]), window.removeEventListener("offline", ft(this, Mn)[Mn]));
  }
  hideInfo() {
    const { info: e } = this.getState();
    this.setState({ info: e.slice(1) }), this.emit("info-hidden");
  }
  info(e, r, n) {
    r === void 0 && (r = "info"), n === void 0 && (n = 3e3);
    const o = typeof e == "object";
    this.setState({ info: [...this.getState().info, { type: r, message: o ? e.message : e, details: o ? e.details : null }] }), setTimeout((() => this.hideInfo()), n), this.emit("info-visible");
  }
  log(e, r) {
    const { logger: n } = this.opts;
    switch (r) {
      case "error":
        n.error(e);
        break;
      case "warning":
        n.warn(e);
        break;
      default:
        n.debug(e);
    }
  }
  restore(e) {
    return this.log(`Core: attempting to restore upload "${e}"`), this.getState().currentUploads[e] ? ft(this, Vo)[Vo](e) : (ft(this, uu)[uu](e), Promise.reject(new Error("Nonexistent upload")));
  }
  [gj]() {
    return ft(this, Ho)[Ho](...arguments);
  }
  addResultData(e, r) {
    if (!ft(this, y1)[y1](e)) return void this.log(`Not setting result for an upload that has been removed: ${e}`);
    const { currentUploads: n } = this.getState(), o = { ...n[e], result: { ...n[e].result, ...r } };
    this.setState({ currentUploads: { ...n, [e]: o } });
  }
  upload() {
    var e;
    (e = ft(this, cr)[cr].uploader) != null && e.length || this.log("No uploader type plugins are used", "warning");
    let { files: r } = this.getState();
    const n = this.opts.onBeforeUpload(r);
    return n === false ? Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")) : (n && typeof n == "object" && (r = n, this.setState({ files: r })), Promise.resolve().then((() => {
      ft(this, h1)[h1](r), ft(this, g1)[g1](r);
    })).catch(((o) => {
      ft(this, Xe)[Xe](o);
    })).then((() => {
      const { currentUploads: o } = this.getState(), i = Object.values(o).flatMap(((s) => s.fileIDs)), a = [];
      Object.keys(r).forEach(((s) => {
        const l = this.getFile(s);
        l.progress.uploadStarted || i.indexOf(s) !== -1 || a.push(l.id);
      }));
      const u = ft(this, Ho)[Ho](a);
      return ft(this, Vo)[Vo](u);
    })).catch(((o) => {
      ft(this, Xe)[Xe](o, { showInformer: false });
    })));
  }
}
function DK(t10, e) {
  e === void 0 && (e = this.getFiles());
  const { maxFileSize: r, minFileSize: n, maxTotalFileSize: o, maxNumberOfFiles: i, allowedFileTypes: a } = this.opts.restrictions;
  if (i && e.length + 1 > i) throw new fo(`${this.i18n("youCanOnlyUploadX", { smart_count: i })}`);
  if (a && !a.some(((u) => u.indexOf("/") > -1 ? !!t10.type && fK(t10.type.replace(/;.*?$/, ""), u) : !(u[0] !== "." || !t10.extension) && t10.extension.toLowerCase() === u.substr(1).toLowerCase()))) {
    const u = a.join(", ");
    throw new fo(this.i18n("youCanOnlyUploadFileTypes", { types: u }));
  }
  if (o && t10.size != null) {
    let u = 0;
    if (u += t10.size, e.forEach(((s) => {
      u += s.size;
    })), u > o) throw new fo(this.i18n("exceedsSize", { size: f1(o), file: t10.name }));
  }
  if (r && t10.size != null && t10.size > r) throw new fo(this.i18n("exceedsSize", { size: f1(r), file: t10.name }));
  if (n && t10.size != null && t10.size < n) throw new fo(this.i18n("inferiorSize", { size: f1(n) }));
}
function CK(t10) {
  const { minNumberOfFiles: e } = this.opts.restrictions;
  if (Object.keys(t10).length < e) throw new fo(`${this.i18n("youHaveToAtLeastSelectX", { smart_count: e })}`);
}
function xK(t10) {
  const { requiredMetaFields: e } = this.opts.restrictions, { hasOwnProperty: r } = Object.prototype, n = [], o = [];
  for (let i = 0; i < e.length; i++) if (!r.call(t10.meta, e[i]) || t10.meta[e[i]] === "") {
    const a = new fo(`${this.i18n("missingRequiredMetaFieldOnFile", { fileName: t10.name })}`);
    n.push(a), o.push(e[i]), ft(this, Xe)[Xe](a, { file: t10, showInformer: false, throwErr: false });
  }
  return this.setFileState(t10.id, { missingRequiredMetaFields: o }), n;
}
function SK(t10) {
  const e = Object.keys(t10).flatMap(((r) => {
    const n = this.getFile(r);
    return ft(this, kd)[kd](n);
  }));
  if (e.length) throw new EK(e, `${this.i18n("missingRequiredMetaField")}`);
}
function AK(t10, e) {
  let { showInformer: r = true, file: n = null, throwErr: o = true } = e === void 0 ? {} : e;
  const i = typeof t10 == "object" ? t10.message : t10, a = typeof t10 == "object" && t10.details ? t10.details : "";
  let u = i;
  if (a && (u += ` ${a}`), t10.isRestriction ? (this.log(u), this.emit("restriction-failed", n, t10)) : this.log(u, "error"), r && this.info({ message: i, details: a }, "error", this.opts.infoTimeout), o) throw typeof t10 == "object" ? t10 : new Error(t10);
}
function OK(t10) {
  const { allowNewUpload: e } = this.getState();
  e === false && ft(this, Xe)[Xe](new fo(this.i18n("noMoreFilesAllowed")), { file: t10 });
}
function kK(t10, e) {
  const r = (function(f) {
    var d;
    if (f.type) return f.type;
    const p = f.name ? (d = wA(f.name).extension) == null ? void 0 : d.toLowerCase() : null;
    return p && p in EA ? EA[p] : "application/octet-stream";
  })(e), n = (function(f, d) {
    return d.name ? d.name : f.split("/")[0] === "image" ? `${f.split("/")[0]}.${f.split("/")[1]}` : "noname";
  })(r, e), o = wA(n).extension, i = !!e.isRemote, a = (function(f) {
    let d = "uppy";
    return typeof f.name == "string" && (d += `-${DA(f.name.toLowerCase())}`), f.type !== void 0 && (d += `-${f.type}`), f.meta && typeof f.meta.relativePath == "string" && (d += `-${DA(f.meta.relativePath.toLowerCase())}`), f.data.size !== void 0 && (d += `-${f.data.size}`), f.data.lastModified !== void 0 && (d += `-${f.data.lastModified}`), d;
  })({ ...e, type: r });
  if (this.checkIfFileAlreadyExists(a)) {
    const f = new fo(this.i18n("noDuplicates", { fileName: n }));
    ft(this, Xe)[Xe](f, { file: e });
  }
  const u = e.meta || {};
  u.name = n, u.type = r;
  const s = Number.isFinite(e.data.size) ? e.data.size : null;
  let l = { source: e.source || "", id: a, name: n, extension: o || "", meta: { ...this.getState().meta, ...u }, type: r, data: e.data, progress: { percentage: 0, bytesUploaded: 0, bytesTotal: s, uploadComplete: false, uploadStarted: null }, size: s, isRemote: i, remote: e.remote || "", preview: e.preview };
  const c = this.opts.onBeforeFileAdded(l, t10);
  c === false ? ft(this, Xe)[Xe](new fo("Cannot add the file because onBeforeFileAdded returned false."), { showInformer: false, fileDescriptor: e }) : typeof c == "object" && c !== null && (l = c);
  try {
    const f = Object.keys(t10).map(((d) => t10[d]));
    ft(this, Zf)[Zf](l, f);
  } catch (f) {
    ft(this, Xe)[Xe](f, { file: l });
  }
  return l;
}
function BK() {
  this.opts.autoProceed && !this.scheduledAutoProceed && (this.scheduledAutoProceed = setTimeout((() => {
    this.scheduledAutoProceed = null, this.upload().catch(((t10) => {
      t10.isRestriction || this.log(t10.stack || t10.message || t10);
    }));
  }), 4));
}
function FK() {
  const t10 = (e, r, n) => {
    let o = e.message || "Unknown error";
    e.details && (o += ` ${e.details}`), this.setState({ error: o }), r != null && r.id in this.getState().files && this.setFileState(r.id, { error: o, response: n });
  };
  this.on("error", t10), this.on("upload-error", ((e, r, n) => {
    if (t10(r, e, n), typeof r == "object" && r.message) {
      const o = new Error(r.message);
      o.details = r.message, r.details && (o.details += ` ${r.details}`), o.message = this.i18n("failedToUpload", { file: e.name }), ft(this, Xe)[Xe](o, { throwErr: false });
    } else ft(this, Xe)[Xe](r, { throwErr: false });
  })), this.on("upload", (() => {
    this.setState({ error: null });
  })), this.on("upload-started", ((e) => {
    this.getFile(e.id) ? this.setFileState(e.id, { progress: { uploadStarted: Date.now(), uploadComplete: false, percentage: 0, bytesUploaded: 0, bytesTotal: e.size } }) : this.log(`Not setting progress for a file that has been removed: ${e.id}`);
  })), this.on("upload-progress", this.calculateProgress), this.on("upload-success", ((e, r) => {
    if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
    const n = this.getFile(e.id).progress;
    this.setFileState(e.id, { progress: { ...n, postprocess: ft(this, qo)[qo].size > 0 ? { mode: "indeterminate" } : null, uploadComplete: true, percentage: 100, bytesUploaded: n.bytesTotal }, response: r, uploadURL: r.uploadURL, isPaused: false }), e.size == null && this.setFileState(e.id, { size: r.bytesUploaded || n.bytesTotal }), this.calculateTotalProgress();
  })), this.on("preprocess-progress", ((e, r) => {
    this.getFile(e.id) ? this.setFileState(e.id, { progress: { ...this.getFile(e.id).progress, preprocess: r } }) : this.log(`Not setting progress for a file that has been removed: ${e.id}`);
  })), this.on("preprocess-complete", ((e) => {
    if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
    const r = { ...this.getState().files };
    r[e.id] = { ...r[e.id], progress: { ...r[e.id].progress } }, delete r[e.id].progress.preprocess, this.setState({ files: r });
  })), this.on("postprocess-progress", ((e, r) => {
    this.getFile(e.id) ? this.setFileState(e.id, { progress: { ...this.getState().files[e.id].progress, postprocess: r } }) : this.log(`Not setting progress for a file that has been removed: ${e.id}`);
  })), this.on("postprocess-complete", ((e) => {
    if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
    const r = { ...this.getState().files };
    r[e.id] = { ...r[e.id], progress: { ...r[e.id].progress } }, delete r[e.id].progress.postprocess, this.setState({ files: r });
  })), this.on("restored", (() => {
    this.calculateTotalProgress();
  })), this.on("dashboard:file-edit-complete", ((e) => {
    e && ft(this, kd)[kd](e);
  })), typeof window < "u" && window.addEventListener && (window.addEventListener("online", ft(this, Mn)[Mn]), window.addEventListener("offline", ft(this, Mn)[Mn]), setTimeout(ft(this, Mn)[Mn], 3e3));
}
function TK(t10, e) {
  e === void 0 && (e = {});
  const { forceAllowNewUpload: r = false } = e, { allowNewUpload: n, currentUploads: o } = this.getState();
  if (!n && !r) throw new Error("Cannot create a new upload: already uploading.");
  const i = mK();
  return this.emit("upload", { id: i, fileIDs: t10 }), this.setState({ allowNewUpload: this.opts.allowMultipleUploadBatches !== false && this.opts.allowMultipleUploads !== false, currentUploads: { ...o, [i]: { fileIDs: t10, step: 0, result: {} } } }), i;
}
function _K(t10) {
  const { currentUploads: e } = this.getState();
  return e[t10];
}
function PK(t10) {
  const e = { ...this.getState().currentUploads };
  delete e[t10], this.setState({ currentUploads: e });
}
async function jK(t10) {
  let { currentUploads: e } = this.getState(), r = e[t10];
  const n = r.step || 0, o = [...ft(this, ru)[ru], ...ft(this, nu)[nu], ...ft(this, qo)[qo]];
  try {
    for (let a = n; a < o.length && r; a++) {
      const u = o[a], s = { ...r, step: a };
      this.setState({ currentUploads: { ...e, [t10]: s } }), await u(s.fileIDs, t10), e = this.getState().currentUploads, r = e[t10];
    }
  } catch (a) {
    throw this.emit("error", a), ft(this, uu)[uu](t10), a;
  }
  if (r) {
    r.fileIDs.forEach(((l) => {
      const c = this.getFile(l);
      c && c.progress.postprocess && this.emit("postprocess-complete", c);
    }));
    const a = r.fileIDs.map(((l) => this.getFile(l))), u = a.filter(((l) => !l.error)), s = a.filter(((l) => l.error));
    await this.addResultData(t10, { successful: u, failed: s, uploadID: t10 }), e = this.getState().currentUploads, r = e[t10];
  }
  let i;
  return r && (i = r.result, this.emit("complete", i), ft(this, uu)[uu](t10)), i == null && this.log(`Not setting result for an upload that has been removed: ${t10}`), i;
}
vj.VERSION = "2.1.3";
var yj = vj, NK = Ju((function(t10, e) {
  var r, n, o, i, a, u, s, l, c = {}, f = [], d = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
  function p(k, S) {
    for (var P in S) k[P] = S[P];
    return k;
  }
  function v(k) {
    var S = k.parentNode;
    S && S.removeChild(k);
  }
  function y(k, S, P) {
    var $, Y, V, it = {};
    for (V in S) V == "key" ? $ = S[V] : V == "ref" ? Y = S[V] : it[V] = S[V];
    if (arguments.length > 2 && (it.children = arguments.length > 3 ? r.call(arguments, 2) : P), typeof k == "function" && k.defaultProps != null) for (V in k.defaultProps) it[V] === void 0 && (it[V] = k.defaultProps[V]);
    return g(k, it, $, Y, null);
  }
  function g(k, S, P, $, Y) {
    var V = { type: k, props: S, key: P, ref: $, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: Y ?? ++o };
    return Y == null && n.vnode != null && n.vnode(V), V;
  }
  function m(k) {
    return k.children;
  }
  function h(k, S) {
    this.props = k, this.context = S;
  }
  function b(k, S) {
    if (S == null) return k.__ ? b(k.__, k.__.__k.indexOf(k) + 1) : null;
    for (var P; S < k.__k.length; S++) if ((P = k.__k[S]) != null && P.__e != null) return P.__e;
    return typeof k.type == "function" ? b(k) : null;
  }
  function w(k) {
    var S, P;
    if ((k = k.__) != null && k.__c != null) {
      for (k.__e = k.__c.base = null, S = 0; S < k.__k.length; S++) if ((P = k.__k[S]) != null && P.__e != null) {
        k.__e = k.__c.base = P.__e;
        break;
      }
      return w(k);
    }
  }
  function D(k) {
    (!k.__d && (k.__d = true) && a.push(k) && !x.__r++ || s !== n.debounceRendering) && ((s = n.debounceRendering) || u)(x);
  }
  function x() {
    for (var k; x.__r = a.length; ) k = a.sort((function(S, P) {
      return S.__v.__b - P.__v.__b;
    })), a = [], k.some((function(S) {
      var P, $, Y, V, it, gt;
      S.__d && (it = (V = (P = S).__v).__e, (gt = P.__P) && ($ = [], (Y = p({}, V)).__v = V.__v + 1, U(gt, V, Y, P.__n, gt.ownerSVGElement !== void 0, V.__h != null ? [it] : null, $, it ?? b(V), V.__h), W($, V), V.__e != it && w(V)));
    }));
  }
  function C(k, S, P, $, Y, V, it, gt, vt, Dt) {
    var G, It, At, dt, Ot, Oe, $t, Qt = $ && $.__k || f, ge = Qt.length;
    for (P.__k = [], G = 0; G < S.length; G++) if ((dt = P.__k[G] = (dt = S[G]) == null || typeof dt == "boolean" ? null : typeof dt == "string" || typeof dt == "number" || typeof dt == "bigint" ? g(null, dt, null, null, dt) : Array.isArray(dt) ? g(m, { children: dt }, null, null, null) : dt.__b > 0 ? g(dt.type, dt.props, dt.key, null, dt.__v) : dt) != null) {
      if (dt.__ = P, dt.__b = P.__b + 1, (At = Qt[G]) === null || At && dt.key == At.key && dt.type === At.type) Qt[G] = void 0;
      else for (It = 0; It < ge; It++) {
        if ((At = Qt[It]) && dt.key == At.key && dt.type === At.type) {
          Qt[It] = void 0;
          break;
        }
        At = null;
      }
      U(k, dt, At = At || c, Y, V, it, gt, vt, Dt), Ot = dt.__e, (It = dt.ref) && At.ref != It && ($t || ($t = []), At.ref && $t.push(At.ref, null, dt), $t.push(It, dt.__c || Ot, dt)), Ot != null ? (Oe == null && (Oe = Ot), typeof dt.type == "function" && dt.__k === At.__k ? dt.__d = vt = O(dt, vt, k) : vt = T(k, dt, At, Qt, Ot, vt), typeof P.type == "function" && (P.__d = vt)) : vt && At.__e == vt && vt.parentNode != k && (vt = b(At));
    }
    for (P.__e = Oe, G = ge; G--; ) Qt[G] != null && (typeof P.type == "function" && Qt[G].__e != null && Qt[G].__e == P.__d && (P.__d = b($, G + 1)), st(Qt[G], Qt[G]));
    if ($t) for (G = 0; G < $t.length; G++) et($t[G], $t[++G], $t[++G]);
  }
  function O(k, S, P) {
    for (var $, Y = k.__k, V = 0; Y && V < Y.length; V++) ($ = Y[V]) && ($.__ = k, S = typeof $.type == "function" ? O($, S, P) : T(P, $, $, Y, $.__e, S));
    return S;
  }
  function T(k, S, P, $, Y, V) {
    var it, gt, vt;
    if (S.__d !== void 0) it = S.__d, S.__d = void 0;
    else if (P == null || Y != V || Y.parentNode == null) t: if (V == null || V.parentNode !== k) k.appendChild(Y), it = null;
    else {
      for (gt = V, vt = 0; (gt = gt.nextSibling) && vt < $.length; vt += 2) if (gt == Y) break t;
      k.insertBefore(Y, V), it = V;
    }
    return it !== void 0 ? it : Y.nextSibling;
  }
  function R(k, S, P) {
    S[0] === "-" ? k.setProperty(S, P) : k[S] = P == null ? "" : typeof P != "number" || d.test(S) ? P : P + "px";
  }
  function H(k, S, P, $, Y) {
    var V;
    t: if (S === "style") if (typeof P == "string") k.style.cssText = P;
    else {
      if (typeof $ == "string" && (k.style.cssText = $ = ""), $) for (S in $) P && S in P || R(k.style, S, "");
      if (P) for (S in P) $ && P[S] === $[S] || R(k.style, S, P[S]);
    }
    else if (S[0] === "o" && S[1] === "n") V = S !== (S = S.replace(/Capture$/, "")), S = S.toLowerCase() in k ? S.toLowerCase().slice(2) : S.slice(2), k.l || (k.l = {}), k.l[S + V] = P, P ? $ || k.addEventListener(S, V ? K : M, V) : k.removeEventListener(S, V ? K : M, V);
    else if (S !== "dangerouslySetInnerHTML") {
      if (Y) S = S.replace(/xlink[H:h]/, "h").replace(/sName$/, "s");
      else if (S !== "href" && S !== "list" && S !== "form" && S !== "tabIndex" && S !== "download" && S in k) try {
        k[S] = P ?? "";
        break t;
      } catch {
      }
      typeof P == "function" || (P != null && (P !== false || S[0] === "a" && S[1] === "r") ? k.setAttribute(S, P) : k.removeAttribute(S));
    }
  }
  function M(k) {
    this.l[k.type + false](n.event ? n.event(k) : k);
  }
  function K(k) {
    this.l[k.type + true](n.event ? n.event(k) : k);
  }
  function U(k, S, P, $, Y, V, it, gt, vt) {
    var Dt, G, It, At, dt, Ot, Oe, $t, Qt, ge, hr, Mt = S.type;
    if (S.constructor !== void 0) return null;
    P.__h != null && (vt = P.__h, gt = S.__e = P.__e, S.__h = null, V = [gt]), (Dt = n.__b) && Dt(S);
    try {
      t: if (typeof Mt == "function") {
        if ($t = S.props, Qt = (Dt = Mt.contextType) && $[Dt.__c], ge = Dt ? Qt ? Qt.props.value : Dt.__ : $, P.__c ? Oe = (G = S.__c = P.__c).__ = G.__E : ("prototype" in Mt && Mt.prototype.render ? S.__c = G = new Mt($t, ge) : (S.__c = G = new h($t, ge), G.constructor = Mt, G.render = ut), Qt && Qt.sub(G), G.props = $t, G.state || (G.state = {}), G.context = ge, G.__n = $, It = G.__d = true, G.__h = []), G.__s == null && (G.__s = G.state), Mt.getDerivedStateFromProps != null && (G.__s == G.state && (G.__s = p({}, G.__s)), p(G.__s, Mt.getDerivedStateFromProps($t, G.__s))), At = G.props, dt = G.state, It) Mt.getDerivedStateFromProps == null && G.componentWillMount != null && G.componentWillMount(), G.componentDidMount != null && G.__h.push(G.componentDidMount);
        else {
          if (Mt.getDerivedStateFromProps == null && $t !== At && G.componentWillReceiveProps != null && G.componentWillReceiveProps($t, ge), !G.__e && G.shouldComponentUpdate != null && G.shouldComponentUpdate($t, G.__s, ge) === false || S.__v === P.__v) {
            G.props = $t, G.state = G.__s, S.__v !== P.__v && (G.__d = false), G.__v = S, S.__e = P.__e, S.__k = P.__k, S.__k.forEach((function(jr) {
              jr && (jr.__ = S);
            })), G.__h.length && it.push(G);
            break t;
          }
          G.componentWillUpdate != null && G.componentWillUpdate($t, G.__s, ge), G.componentDidUpdate != null && G.__h.push((function() {
            G.componentDidUpdate(At, dt, Ot);
          }));
        }
        G.context = ge, G.props = $t, G.state = G.__s, (Dt = n.__r) && Dt(S), G.__d = false, G.__v = S, G.__P = k, Dt = G.render(G.props, G.state, G.context), G.state = G.__s, G.getChildContext != null && ($ = p(p({}, $), G.getChildContext())), It || G.getSnapshotBeforeUpdate == null || (Ot = G.getSnapshotBeforeUpdate(At, dt)), hr = Dt != null && Dt.type === m && Dt.key == null ? Dt.props.children : Dt, C(k, Array.isArray(hr) ? hr : [hr], S, P, $, Y, V, it, gt, vt), G.base = S.__e, S.__h = null, G.__h.length && it.push(G), Oe && (G.__E = G.__ = null), G.__e = false;
      } else V == null && S.__v === P.__v ? (S.__k = P.__k, S.__e = P.__e) : S.__e = q(P.__e, S, P, $, Y, V, it, vt);
      (Dt = n.diffed) && Dt(S);
    } catch (jr) {
      S.__v = null, (vt || V != null) && (S.__e = gt, S.__h = !!vt, V[V.indexOf(gt)] = null), n.__e(jr, S, P);
    }
  }
  function W(k, S) {
    n.__c && n.__c(S, k), k.some((function(P) {
      try {
        k = P.__h, P.__h = [], k.some((function($) {
          $.call(P);
        }));
      } catch ($) {
        n.__e($, P.__v);
      }
    }));
  }
  function q(k, S, P, $, Y, V, it, gt) {
    var vt, Dt, G, It = P.props, At = S.props, dt = S.type, Ot = 0;
    if (dt === "svg" && (Y = true), V != null) {
      for (; Ot < V.length; Ot++) if ((vt = V[Ot]) && "setAttribute" in vt == !!dt && (dt ? vt.localName === dt : vt.nodeType === 3)) {
        k = vt, V[Ot] = null;
        break;
      }
    }
    if (k == null) {
      if (dt === null) return document.createTextNode(At);
      k = Y ? document.createElementNS("http://www.w3.org/2000/svg", dt) : document.createElement(dt, At.is && At), V = null, gt = false;
    }
    if (dt === null) It === At || gt && k.data === At || (k.data = At);
    else {
      if (V = V && r.call(k.childNodes), Dt = (It = P.props || c).dangerouslySetInnerHTML, G = At.dangerouslySetInnerHTML, !gt) {
        if (V != null) for (It = {}, Ot = 0; Ot < k.attributes.length; Ot++) It[k.attributes[Ot].name] = k.attributes[Ot].value;
        (G || Dt) && (G && (Dt && G.__html == Dt.__html || G.__html === k.innerHTML) || (k.innerHTML = G && G.__html || ""));
      }
      if ((function(Oe, $t, Qt, ge, hr) {
        var Mt;
        for (Mt in Qt) Mt === "children" || Mt === "key" || Mt in $t || H(Oe, Mt, null, Qt[Mt], ge);
        for (Mt in $t) hr && typeof $t[Mt] != "function" || Mt === "children" || Mt === "key" || Mt === "value" || Mt === "checked" || Qt[Mt] === $t[Mt] || H(Oe, Mt, $t[Mt], Qt[Mt], ge);
      })(k, At, It, Y, gt), G) S.__k = [];
      else if (Ot = S.props.children, C(k, Array.isArray(Ot) ? Ot : [Ot], S, P, $, Y && dt !== "foreignObject", V, it, V ? V[0] : P.__k && b(P, 0), gt), V != null) for (Ot = V.length; Ot--; ) V[Ot] != null && v(V[Ot]);
      gt || ("value" in At && (Ot = At.value) !== void 0 && (Ot !== It.value || Ot !== k.value || dt === "progress" && !Ot) && H(k, "value", Ot, It.value, false), "checked" in At && (Ot = At.checked) !== void 0 && Ot !== k.checked && H(k, "checked", Ot, It.checked, false));
    }
    return k;
  }
  function et(k, S, P) {
    try {
      typeof k == "function" ? k(S) : k.current = S;
    } catch ($) {
      n.__e($, P);
    }
  }
  function st(k, S, P) {
    var $, Y;
    if (n.unmount && n.unmount(k), ($ = k.ref) && ($.current && $.current !== k.__e || et($, null, S)), ($ = k.__c) != null) {
      if ($.componentWillUnmount) try {
        $.componentWillUnmount();
      } catch (V) {
        n.__e(V, S);
      }
      $.base = $.__P = null;
    }
    if ($ = k.__k) for (Y = 0; Y < $.length; Y++) $[Y] && st($[Y], S, typeof k.type != "function");
    P || k.__e == null || v(k.__e), k.__e = k.__d = void 0;
  }
  function ut(k, S, P) {
    return this.constructor(k, P);
  }
  function at(k, S, P) {
    var $, Y, V;
    n.__ && n.__(k, S), Y = ($ = typeof P == "function") ? null : P && P.__k || S.__k, V = [], U(S, k = (!$ && P || S).__k = y(m, null, [k]), Y || c, c, S.ownerSVGElement !== void 0, !$ && P ? [P] : Y ? null : S.firstChild ? r.call(S.childNodes) : null, V, !$ && P ? P : Y ? Y.__e : S.firstChild, $), W(V, k);
  }
  r = f.slice, n = { __e: function(k, S) {
    for (var P, $, Y; S = S.__; ) if ((P = S.__c) && !P.__) try {
      if (($ = P.constructor) && $.getDerivedStateFromError != null && (P.setState($.getDerivedStateFromError(k)), Y = P.__d), P.componentDidCatch != null && (P.componentDidCatch(k), Y = P.__d), Y) return P.__E = P;
    } catch (V) {
      k = V;
    }
    throw k;
  } }, o = 0, i = function(k) {
    return k != null && k.constructor === void 0;
  }, h.prototype.setState = function(k, S) {
    var P;
    P = this.__s != null && this.__s !== this.state ? this.__s : this.__s = p({}, this.state), typeof k == "function" && (k = k(p({}, P), this.props)), k && p(P, k), k != null && this.__v && (S && this.__h.push(S), D(this));
  }, h.prototype.forceUpdate = function(k) {
    this.__v && (this.__e = true, k && this.__h.push(k), D(this));
  }, h.prototype.render = m, a = [], u = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, x.__r = 0, l = 0, e.Component = h, e.Fragment = m, e.cloneElement = function(k, S, P) {
    var $, Y, V, it = p({}, k.props);
    for (V in S) V == "key" ? $ = S[V] : V == "ref" ? Y = S[V] : it[V] = S[V];
    return arguments.length > 2 && (it.children = arguments.length > 3 ? r.call(arguments, 2) : P), g(k.type, it, $ || k.key, Y || k.ref, null);
  }, e.createContext = function(k, S) {
    var P = { __c: S = "__cC" + l++, __: k, Consumer: function($, Y) {
      return $.children(Y);
    }, Provider: function($) {
      var Y, V;
      return this.getChildContext || (Y = [], (V = {})[S] = this, this.getChildContext = function() {
        return V;
      }, this.shouldComponentUpdate = function(it) {
        this.props.value !== it.value && Y.some(D);
      }, this.sub = function(it) {
        Y.push(it);
        var gt = it.componentWillUnmount;
        it.componentWillUnmount = function() {
          Y.splice(Y.indexOf(it), 1), gt && gt.call(it);
        };
      }), $.children;
    } };
    return P.Provider.__ = P.Consumer.contextType = P;
  }, e.createElement = y, e.createRef = function() {
    return { current: null };
  }, e.h = y, e.hydrate = function k(S, P) {
    at(S, P, k);
  }, e.isValidElement = i, e.options = n, e.render = at, e.toChildArray = function k(S, P) {
    return P = P || [], S == null || typeof S == "boolean" || (Array.isArray(S) ? S.some((function($) {
      k($, P);
    })) : P.push(S)), P;
  };
})), IK = function(t10, e) {
  return e === void 0 && (e = document), typeof t10 == "string" ? e.querySelector(t10) : ((r = t10) == null ? void 0 : r.nodeType) === Node.ELEMENT_NODE ? t10 : null;
  var r;
}, g5 = class {
  constructor(t10, e) {
    e === void 0 && (e = {}), this.uppy = t10, this.opts = e;
  }
  getPluginState() {
    const { plugins: t10 } = this.uppy.getState();
    return t10[this.id] || {};
  }
  setPluginState(t10) {
    const { plugins: e } = this.uppy.getState();
    this.uppy.setState({ plugins: { ...e, [this.id]: { ...e[this.id], ...t10 } } });
  }
  setOptions(t10) {
    this.opts = { ...this.opts, ...t10 }, this.setPluginState(), this.i18nInit();
  }
  i18nInit() {
    const t10 = new sj([this.defaultLocale, this.uppy.locale, this.opts.locale]);
    this.i18n = t10.translate.bind(t10), this.i18nArray = t10.translateArray.bind(t10), this.setPluginState();
  }
  addTarget() {
    throw new Error("Extend the addTarget method to add your plugin to another plugin's target");
  }
  install() {
  }
  uninstall() {
  }
  render() {
    throw new Error("Extend the render method to add your plugin to a DOM element");
  }
  update() {
  }
  afterUpdate() {
  }
};
function CA(t10, e) {
  if (!Object.prototype.hasOwnProperty.call(t10, e)) throw new TypeError("attempted to use private field on non-instance");
  return t10;
}
var LK = 0;
function RK(t10) {
  return "__private_" + LK++ + "_" + t10;
}
const { render: xA } = NK;
var Tc = RK("updateUI");
class v5 extends g5 {
  constructor() {
    super(...arguments), Object.defineProperty(this, Tc, { writable: true, value: void 0 });
  }
  mount(e, r) {
    const n = r.id, o = IK(e);
    if (o) {
      this.isTargetDOMEl = true;
      const u = document.createDocumentFragment();
      return CA(this, Tc)[Tc] = /* @__PURE__ */ (function(s) {
        let l = null, c = null;
        return function() {
          for (var f = arguments.length, d = new Array(f), p = 0; p < f; p++) d[p] = arguments[p];
          return c = d, l || (l = Promise.resolve().then((() => (l = null, s(...c))))), l;
        };
      })(((s) => {
        this.uppy.getPlugin(this.id) && (xA(this.render(s), u), this.afterUpdate());
      })), this.uppy.log(`Installing ${n} to a DOM element '${e}'`), this.opts.replaceTargetContent && (o.innerHTML = ""), xA(this.render(this.uppy.getState()), u), this.el = u.firstElementChild, o.appendChild(u), this.onMount(), this.el;
    }
    let i;
    if (typeof e == "object" && e instanceof v5) i = e;
    else if (typeof e == "function") {
      const u = e;
      this.uppy.iteratePlugins(((s) => {
        if (s instanceof u) return i = s, false;
      }));
    }
    if (i) return this.uppy.log(`Installing ${n} to ${i.id}`), this.parent = i, this.el = i.addTarget(r), this.onMount(), this.el;
    this.uppy.log(`Not installing ${n}`);
    let a = `Invalid target option given to ${n}.`;
    throw a += typeof e == "function" ? " The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly." : "If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.", new Error(a);
  }
  update(e) {
    var r, n;
    this.el != null && ((r = (n = CA(this, Tc))[Tc]) == null || r.call(n, e));
  }
  unmount() {
    var e;
    this.isTargetDOMEl && ((e = this.el) == null || e.remove()), this.onUnmount();
  }
  onMount() {
  }
  onUnmount() {
  }
}
var MK = v5;
const { debugLogger: zK } = dj;
var zf = yj, $K = yj, HK = MK, VK = g5, UK = zK;
zf.Uppy = $K, zf.UIPlugin = HK, zf.BasePlugin = VK, zf.debugLogger = UK;
class WK extends Error {
  constructor(e, r) {
    r === void 0 && (r = null), super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."), this.cause = e, this.isNetworkError = true, this.request = r;
  }
}
var y5 = WK, m1 = function() {
  return fetch(...arguments).catch(((t10) => {
    throw t10.name === "AbortError" ? t10 : new y5(t10);
  }));
};
class GK extends Error {
  constructor() {
    super("Authorization required"), this.name = "AuthError", this.isAuthError = true;
  }
}
var Ah, bi, ao, wi, SA, qK = GK;
function io(t10, e) {
  if (!Object.prototype.hasOwnProperty.call(t10, e)) throw new TypeError("attempted to use private field on non-instance");
  return t10;
}
var KK = 0;
function b1(t10) {
  return "__private_" + KK++ + "_" + t10;
}
async function w1(t10) {
  if (t10.status === 401) throw new qK();
  const e = t10.json();
  if (t10.status < 200 || t10.status > 300) {
    let r = `Failed request with status: ${t10.status}. ${t10.statusText}`;
    try {
      const n = await e;
      r = n.message ? `${r} message: ${n.message}` : r, r = n.requestId ? `${r} request-Id: ${n.requestId}` : r;
    } finally {
      throw new Error(r);
    }
  }
  return e;
}
var AA = (bi = b1("getPostResponseFunc"), ao = b1("getUrl"), wi = b1("errorHandler"), SA = Ah = class mj {
  constructor(e, r) {
    Object.defineProperty(this, wi, { value: XK }), Object.defineProperty(this, ao, { value: YK }), Object.defineProperty(this, bi, { writable: true, value: (n) => (o) => n ? o : this.onReceiveResponse(o) }), this.uppy = e, this.opts = r, this.onReceiveResponse = this.onReceiveResponse.bind(this), this.allowedHeaders = ["accept", "content-type", "uppy-auth-token"], this.preflightDone = false;
  }
  get hostname() {
    const { companion: e } = this.uppy.getState(), r = this.opts.companionUrl;
    return (e && e[r] ? e[r] : r).replace(/\/$/, "");
  }
  headers() {
    const e = this.opts.companionHeaders || {};
    return Promise.resolve({ ...mj.defaultHeaders, ...e });
  }
  onReceiveResponse(e) {
    const r = this.uppy.getState().companion || {}, n = this.opts.companionUrl, { headers: o } = e;
    return o.has("i-am") && o.get("i-am") !== r[n] && this.uppy.setState({ companion: { ...r, [n]: o.get("i-am") } }), e;
  }
  preflight(e) {
    return this.preflightDone ? Promise.resolve(this.allowedHeaders.slice()) : fetch(io(this, ao)[ao](e), { method: "OPTIONS" }).then(((r) => (r.headers.has("access-control-allow-headers") && (this.allowedHeaders = r.headers.get("access-control-allow-headers").split(",").map(((n) => n.trim().toLowerCase()))), this.preflightDone = true, this.allowedHeaders.slice()))).catch(((r) => (this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`, "warning"), this.preflightDone = true, this.allowedHeaders.slice())));
  }
  preflightAndHeaders(e) {
    return Promise.all([this.preflight(e), this.headers()]).then(((r) => {
      let [n, o] = r;
      return Object.keys(o).forEach(((i) => {
        n.includes(i.toLowerCase()) || (this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`), delete o[i]);
      })), o;
    }));
  }
  get(e, r) {
    return this.preflightAndHeaders(e).then(((n) => m1(io(this, ao)[ao](e), { method: "get", headers: n, credentials: this.opts.companionCookiesRule || "same-origin" }))).then(io(this, bi)[bi](r)).then(w1).catch(io(this, wi)[wi]("get", e));
  }
  post(e, r, n) {
    const o = "post";
    return this.preflightAndHeaders(e).then(((i) => m1(io(this, ao)[ao](e), { method: o, headers: i, credentials: this.opts.companionCookiesRule || "same-origin", body: JSON.stringify(r) }))).then(io(this, bi)[bi](n)).then(w1).catch(io(this, wi)[wi](o, e));
  }
  delete(e, r, n) {
    const o = "delete";
    return this.preflightAndHeaders(e).then(((i) => m1(`${this.hostname}/${e}`, { method: o, headers: i, credentials: this.opts.companionCookiesRule || "same-origin", body: r ? JSON.stringify(r) : null }))).then(io(this, bi)[bi](n)).then(w1).catch(io(this, wi)[wi](o, e));
  }
}, Ah.VERSION = "2.0.4", Ah.defaultHeaders = { Accept: "application/json", "Content-Type": "application/json", "Uppy-Versions": `@uppy/companion-client=${Ah.VERSION}` }, SA);
function YK(t10) {
  return /^(https?:|)\/\//.test(t10) ? t10 : `${this.hostname}/${t10}`;
}
function XK(t10, e) {
  return (r) => {
    var n;
    if ((n = r) == null || !n.isAuthError) {
      const o = new Error(`Could not ${t10} ${io(this, ao)[ao](e)}`);
      o.cause = r, r = o;
    }
    return Promise.reject(r);
  };
}
var ZK = { setItem: (t10, e) => new Promise(((r) => {
  localStorage.setItem(t10, e), r();
})), getItem: (t10) => Promise.resolve(localStorage.getItem(t10)), removeItem: (t10) => new Promise(((e) => {
  localStorage.removeItem(t10), e();
})) }, oo, Ei, pn, br, Oh;
let OA, kA;
function $e(t10, e) {
  if (!Object.prototype.hasOwnProperty.call(t10, e)) throw new TypeError("attempted to use private field on non-instance");
  return t10;
}
var JK = 0;
function _c(t10) {
  return "__private_" + JK++ + "_" + t10;
}
var QK = (oo = _c("queued"), Ei = _c("emitter"), pn = _c("isOpen"), br = _c("socket"), Oh = _c("handleMessage"), OA = /* @__PURE__ */ Symbol.for("uppy test: getSocket"), kA = /* @__PURE__ */ Symbol.for("uppy test: getQueued"), class {
  constructor(t10) {
    Object.defineProperty(this, oo, { writable: true, value: [] }), Object.defineProperty(this, Ei, { writable: true, value: lj() }), Object.defineProperty(this, pn, { writable: true, value: false }), Object.defineProperty(this, br, { writable: true, value: void 0 }), Object.defineProperty(this, Oh, { writable: true, value: (e) => {
      try {
        const r = JSON.parse(e.data);
        this.emit(r.action, r.payload);
      } catch (r) {
        console.log(r);
      }
    } }), this.opts = t10, t10 && t10.autoOpen === false || this.open();
  }
  get isOpen() {
    return $e(this, pn)[pn];
  }
  [OA]() {
    return $e(this, br)[br];
  }
  [kA]() {
    return $e(this, oo)[oo];
  }
  open() {
    $e(this, br)[br] = new WebSocket(this.opts.target), $e(this, br)[br].onopen = () => {
      for ($e(this, pn)[pn] = true; $e(this, oo)[oo].length > 0 && $e(this, pn)[pn]; ) {
        const t10 = $e(this, oo)[oo].shift();
        this.send(t10.action, t10.payload);
      }
    }, $e(this, br)[br].onclose = () => {
      $e(this, pn)[pn] = false;
    }, $e(this, br)[br].onmessage = $e(this, Oh)[Oh];
  }
  close() {
    var t10;
    (t10 = $e(this, br)[br]) == null || t10.close();
  }
  send(t10, e) {
    $e(this, pn)[pn] ? $e(this, br)[br].send(JSON.stringify({ action: t10, payload: e })) : $e(this, oo)[oo].push({ action: t10, payload: e });
  }
  on(t10, e) {
    $e(this, Ei)[Ei].on(t10, e);
  }
  emit(t10, e) {
    $e(this, Ei)[Ei].emit(t10, e);
  }
  once(t10, e) {
    $e(this, Ei)[Ei].once(t10, e);
  }
}), tY = { RequestClient: AA, Provider: class extends AA {
  constructor(t10, e) {
    super(t10, e), this.provider = e.provider, this.id = this.provider, this.name = this.opts.name || ((r) => r.split("-").map(((n) => n.charAt(0).toUpperCase() + n.slice(1))).join(" "))(this.id), this.pluginId = this.opts.pluginId, this.tokenKey = `companion-${this.pluginId}-auth-token`, this.companionKeysParams = this.opts.companionKeysParams, this.preAuthToken = null;
  }
  headers() {
    return Promise.all([super.headers(), this.getAuthToken()]).then(((t10) => {
      let [e, r] = t10;
      const n = {};
      return r && (n["uppy-auth-token"] = r), this.companionKeysParams && (n["uppy-credentials-params"] = btoa(JSON.stringify({ params: this.companionKeysParams }))), { ...e, ...n };
    }));
  }
  onReceiveResponse(t10) {
    t10 = super.onReceiveResponse(t10);
    const e = this.uppy.getPlugin(this.pluginId), r = e.getPluginState().authenticated ? t10.status !== 401 : t10.status < 400;
    return e.setPluginState({ authenticated: r }), t10;
  }
  setAuthToken(t10) {
    return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey, t10);
  }
  getAuthToken() {
    return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey);
  }
  authUrl(t10) {
    return t10 === void 0 && (t10 = {}), this.preAuthToken && (t10.uppyPreAuthToken = this.preAuthToken), `${this.hostname}/${this.id}/connect?${new URLSearchParams(t10)}`;
  }
  fileUrl(t10) {
    return `${this.hostname}/${this.id}/get/${t10}`;
  }
  fetchPreAuthToken() {
    return this.companionKeysParams ? this.post(`${this.id}/preauth/`, { params: this.companionKeysParams }).then(((t10) => {
      this.preAuthToken = t10.token;
    })).catch(((t10) => {
      this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t10}`, "warning");
    })) : Promise.resolve();
  }
  list(t10) {
    return this.get(`${this.id}/list/${t10 || ""}`);
  }
  logout() {
    return this.get(`${this.id}/logout`).then(((t10) => Promise.all([t10, this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then(((t10) => {
      let [e] = t10;
      return e;
    }));
  }
  static initPlugin(t10, e, r) {
    if (t10.type = "acquirer", t10.files = [], r && (t10.opts = { ...r, ...e }), e.serverUrl || e.serverPattern) throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");
    if (e.companionAllowedHosts) {
      const n = e.companionAllowedHosts;
      if (!(typeof n == "string" || Array.isArray(n) || n instanceof RegExp)) throw new TypeError(`${t10.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);
      t10.opts.companionAllowedHosts = n;
    } else /^(?!https?:\/\/).*$/i.test(e.companionUrl) ? t10.opts.companionAllowedHosts = `https://${e.companionUrl.replace(/^\/\//, "")}` : t10.opts.companionAllowedHosts = new URL(e.companionUrl).origin;
    t10.storage = t10.opts.storage || ZK;
  }
}, Socket: QK }, Di, ws, eY = zu((function(t10, e, r) {
  const { progress: n, bytesUploaded: o, bytesTotal: i } = e;
  n && (t10.uppy.log(`Upload progress: ${n}`), t10.uppy.emit("upload-progress", r, { uploader: t10, bytesUploaded: o, bytesTotal: i }));
}), 300, { leading: true, trailing: true });
function Pc(t10, e) {
  if (!Object.prototype.hasOwnProperty.call(t10, e)) throw new TypeError("attempted to use private field on non-instance");
  return t10;
}
var rY = 0;
function BA(t10) {
  return "__private_" + rY++ + "_" + t10;
}
var FA = (Di = BA("emitter"), ws = BA("events"), class {
  constructor(t10) {
    Object.defineProperty(this, Di, { writable: true, value: void 0 }), Object.defineProperty(this, ws, { writable: true, value: [] }), Pc(this, Di)[Di] = t10;
  }
  on(t10, e) {
    return Pc(this, ws)[ws].push([t10, e]), Pc(this, Di)[Di].on(t10, e);
  }
  remove() {
    for (const [t10, e] of Pc(this, ws)[ws].splice(0)) Pc(this, Di)[Di].off(t10, e);
  }
});
function hn(t10, e) {
  if (!Object.prototype.hasOwnProperty.call(t10, e)) throw new TypeError("attempted to use private field on non-instance");
  return t10;
}
var nY = 0;
function Sy(t10) {
  return "__private_" + nY++ + "_" + t10;
}
var Uo = Sy("aliveTimer"), Ma = Sy("isDone"), jc = Sy("onTimedOut"), za = Sy("timeout"), TA = class {
  constructor(t10, e) {
    Object.defineProperty(this, Uo, { writable: true, value: void 0 }), Object.defineProperty(this, Ma, { writable: true, value: false }), Object.defineProperty(this, jc, { writable: true, value: void 0 }), Object.defineProperty(this, za, { writable: true, value: void 0 }), hn(this, za)[za] = t10, hn(this, jc)[jc] = e;
  }
  progress() {
    hn(this, Ma)[Ma] || hn(this, za)[za] > 0 && (clearTimeout(hn(this, Uo)[Uo]), hn(this, Uo)[Uo] = setTimeout(hn(this, jc)[jc], hn(this, za)[za]));
  }
  done() {
    hn(this, Ma)[Ma] || (clearTimeout(hn(this, Uo)[Uo]), hn(this, Uo)[Uo] = null, hn(this, Ma)[Ma] = true);
  }
};
function Ue(t10, e) {
  if (!Object.prototype.hasOwnProperty.call(t10, e)) throw new TypeError("attempted to use private field on non-instance");
  return t10;
}
var oY = 0;
function ns(t10) {
  return "__private_" + oY++ + "_" + t10;
}
function iY() {
  return new Error("Cancelled");
}
var Xr = ns("activeRequests"), Tr = ns("queuedHandlers"), Jf = ns("call"), $f = ns("queueNext"), z4 = ns("next"), E1 = ns("queue"), $4 = ns("dequeue");
function aY(t10) {
  Ue(this, Xr)[Xr] += 1;
  let e, r = false;
  try {
    e = t10();
  } catch (n) {
    throw Ue(this, Xr)[Xr] -= 1, n;
  }
  return { abort: () => {
    r || (r = true, Ue(this, Xr)[Xr] -= 1, e(), Ue(this, $f)[$f]());
  }, done: () => {
    r || (r = true, Ue(this, Xr)[Xr] -= 1, Ue(this, $f)[$f]());
  } };
}
function uY() {
  queueMicrotask((() => Ue(this, z4)[z4]()));
}
function sY() {
  if (Ue(this, Xr)[Xr] >= this.limit || Ue(this, Tr)[Tr].length === 0) return;
  const t10 = Ue(this, Tr)[Tr].shift(), e = Ue(this, Jf)[Jf](t10.fn);
  t10.abort = e.abort, t10.done = e.done;
}
function lY(t10, e) {
  e === void 0 && (e = {});
  const r = { fn: t10, priority: e.priority || 0, abort: () => {
    Ue(this, $4)[$4](r);
  }, done: () => {
    throw new Error("Cannot mark a queued request as done: this indicates a bug");
  } }, n = Ue(this, Tr)[Tr].findIndex(((o) => r.priority > o.priority));
  return n === -1 ? Ue(this, Tr)[Tr].push(r) : Ue(this, Tr)[Tr].splice(n, 0, r), r;
}
function cY(t10) {
  const e = Ue(this, Tr)[Tr].indexOf(t10);
  e !== -1 && Ue(this, Tr)[Tr].splice(e, 1);
}
var fY = { RateLimitedQueue: class {
  constructor(t10) {
    Object.defineProperty(this, $4, { value: cY }), Object.defineProperty(this, E1, { value: lY }), Object.defineProperty(this, z4, { value: sY }), Object.defineProperty(this, $f, { value: uY }), Object.defineProperty(this, Jf, { value: aY }), Object.defineProperty(this, Xr, { writable: true, value: 0 }), Object.defineProperty(this, Tr, { writable: true, value: [] }), this.limit = typeof t10 != "number" || t10 === 0 ? 1 / 0 : t10;
  }
  run(t10, e) {
    return Ue(this, Xr)[Xr] < this.limit ? Ue(this, Jf)[Jf](t10) : Ue(this, E1)[E1](t10, e);
  }
  wrapPromiseFunction(t10, e) {
    var r = this;
    return function() {
      for (var n = arguments.length, o = new Array(n), i = 0; i < n; i++) o[i] = arguments[i];
      let a;
      const u = new Promise(((s, l) => {
        a = r.run((() => {
          let c, f;
          try {
            f = Promise.resolve(t10(...o));
          } catch (d) {
            f = Promise.reject(d);
          }
          return f.then(((d) => {
            c ? l(c) : (a.done(), s(d));
          }), ((d) => {
            c ? l(c) : (a.done(), l(d));
          })), () => {
            c = iY();
          };
        }), e);
      }));
      return u.abort = () => {
        a.abort();
      }, u;
    };
  }
}, internalRateLimitedQueue: /* @__PURE__ */ Symbol("__queue") }, _A, PA, bj = function(t10) {
  return !!t10 && (t10.readyState !== 0 && t10.readyState !== 4 || t10.status === 0);
}, dY = { strings: { timedOut: "Upload stalled for %{seconds} seconds, aborting." } };
const { nanoid: pY } = pj, { Provider: hY, RequestClient: gY, Socket: vY } = tY, { RateLimitedQueue: yY, internalRateLimitedQueue: D1 } = fY;
function jA(t10, e) {
  let r = e;
  return r || (r = new Error("Upload error")), typeof r == "string" && (r = new Error(r)), r instanceof Error || (r = Object.assign(new Error("Upload error"), { data: r })), bj(t10) ? (r = new y5(r, t10), r) : (r.request = t10, r);
}
function NA(t10) {
  return t10.data.slice(0, t10.data.size, t10.meta.type);
}
var mY = (PA = _A = class extends g5 {
  constructor(t10, e) {
    super(t10, e), this.type = "uploader", this.id = this.opts.id || "XHRUpload", this.title = "XHRUpload", this.defaultLocale = dY;
    const r = { formData: true, fieldName: e.bundle ? "files[]" : "file", method: "post", metaFields: null, responseUrlFieldName: "url", bundle: false, headers: {}, timeout: 3e4, limit: 5, withCredentials: false, responseType: "", getResponseData(n) {
      let o = {};
      try {
        o = JSON.parse(n);
      } catch (i) {
        t10.log(i);
      }
      return o;
    }, getResponseError(n, o) {
      let i = new Error("Upload error");
      return bj(o) && (i = new y5(i, o)), i;
    }, validateStatus: (n) => n >= 200 && n < 300 };
    if (this.opts = { ...r, ...e }, this.i18nInit(), this.handleUpload = this.handleUpload.bind(this), D1 in this.opts ? this.requests = this.opts[D1] : this.requests = new yY(this.opts.limit), this.opts.bundle && !this.opts.formData) throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");
    this.uploaderEvents = /* @__PURE__ */ Object.create(null);
  }
  getOptions(t10) {
    const e = this.uppy.getState().xhrUpload, { headers: r } = this.opts, n = { ...this.opts, ...e || {}, ...t10.xhrUpload || {}, headers: {} };
    return typeof r == "function" ? n.headers = r(t10) : Object.assign(n.headers, this.opts.headers), e && Object.assign(n.headers, e.headers), t10.xhrUpload && Object.assign(n.headers, t10.xhrUpload.headers), n;
  }
  addMetadata(t10, e, r) {
    (Array.isArray(r.metaFields) ? r.metaFields : Object.keys(e)).forEach(((n) => {
      t10.append(n, e[n]);
    }));
  }
  createFormDataUpload(t10, e) {
    const r = new FormData();
    this.addMetadata(r, t10.meta, e);
    const n = NA(t10);
    return t10.name ? r.append(e.fieldName, n, t10.meta.name) : r.append(e.fieldName, n), r;
  }
  createBundledUpload(t10, e) {
    const r = new FormData(), { meta: n } = this.uppy.getState();
    return this.addMetadata(r, n, e), t10.forEach(((o) => {
      const i = this.getOptions(o), a = NA(o);
      o.name ? r.append(i.fieldName, a, o.name) : r.append(i.fieldName, a);
    })), r;
  }
  upload(t10, e, r) {
    const n = this.getOptions(t10);
    return this.uppy.log(`uploading ${e} of ${r}`), new Promise(((o, i) => {
      this.uppy.emit("upload-started", t10);
      const a = n.formData ? this.createFormDataUpload(t10, n) : t10.data, u = new XMLHttpRequest();
      this.uploaderEvents[t10.id] = new FA(this.uppy);
      const s = new TA(n.timeout, (() => {
        u.abort(), c.done();
        const f = new Error(this.i18n("timedOut", { seconds: Math.ceil(n.timeout / 1e3) }));
        this.uppy.emit("upload-error", t10, f), i(f);
      })), l = pY();
      u.upload.addEventListener("loadstart", (() => {
        this.uppy.log(`[XHRUpload] ${l} started`);
      })), u.upload.addEventListener("progress", ((f) => {
        this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`), s.progress(), f.lengthComputable && this.uppy.emit("upload-progress", t10, { uploader: this, bytesUploaded: f.loaded, bytesTotal: f.total });
      })), u.addEventListener("load", ((f) => {
        if (this.uppy.log(`[XHRUpload] ${l} finished`), s.done(), c.done(), this.uploaderEvents[t10.id] && (this.uploaderEvents[t10.id].remove(), this.uploaderEvents[t10.id] = null), n.validateStatus(f.target.status, u.responseText, u)) {
          const y = n.getResponseData(u.responseText, u), g = y[n.responseUrlFieldName], m = { status: f.target.status, body: y, uploadURL: g };
          return this.uppy.emit("upload-success", t10, m), g && this.uppy.log(`Download ${t10.name} from ${g}`), o(t10);
        }
        const d = n.getResponseData(u.responseText, u), p = jA(u, n.getResponseError(u.responseText, u)), v = { status: f.target.status, body: d };
        return this.uppy.emit("upload-error", t10, p, v), i(p);
      })), u.addEventListener("error", (() => {
        this.uppy.log(`[XHRUpload] ${l} errored`), s.done(), c.done(), this.uploaderEvents[t10.id] && (this.uploaderEvents[t10.id].remove(), this.uploaderEvents[t10.id] = null);
        const f = jA(u, n.getResponseError(u.responseText, u));
        return this.uppy.emit("upload-error", t10, f), i(f);
      })), u.open(n.method.toUpperCase(), n.endpoint, true), u.withCredentials = n.withCredentials, n.responseType !== "" && (u.responseType = n.responseType);
      const c = this.requests.run((() => {
        this.uppy.emit("upload-started", t10);
        const f = this.getOptions(t10);
        return Object.keys(f.headers).forEach(((d) => {
          u.setRequestHeader(d, f.headers[d]);
        })), u.send(a), () => {
          s.done(), u.abort();
        };
      }));
      this.onFileRemove(t10.id, (() => {
        c.abort(), i(new Error("File removed"));
      })), this.onCancelAll(t10.id, (() => {
        c.abort(), i(new Error("Upload cancelled"));
      }));
    }));
  }
  uploadRemote(t10) {
    const e = this.getOptions(t10);
    return new Promise(((r, n) => {
      this.uppy.emit("upload-started", t10);
      const o = {};
      (Array.isArray(e.metaFields) ? e.metaFields : Object.keys(t10.meta)).forEach(((i) => {
        o[i] = t10.meta[i];
      })), new (t10.remote.providerOptions.provider ? hY : gY)(this.uppy, t10.remote.providerOptions).post(t10.remote.url, { ...t10.remote.body, endpoint: e.endpoint, size: t10.data.size, fieldname: e.fieldName, metadata: o, httpMethod: e.method, useFormData: e.formData, headers: e.headers }).then(((i) => {
        const { token: a } = i, u = (function(c) {
          const f = /^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];
          return `${/^http:\/\//i.test(c) ? "ws" : "wss"}://${f}`;
        })(t10.remote.companionUrl), s = new vY({ target: `${u}/api/${a}`, autoOpen: false });
        this.uploaderEvents[t10.id] = new FA(this.uppy), this.onFileRemove(t10.id, (() => {
          s.send("cancel", {}), l.abort(), r(`upload ${t10.id} was removed`);
        })), this.onCancelAll(t10.id, (() => {
          s.send("cancel", {}), l.abort(), r(`upload ${t10.id} was canceled`);
        })), this.onRetry(t10.id, (() => {
          s.send("pause", {}), s.send("resume", {});
        })), this.onRetryAll(t10.id, (() => {
          s.send("pause", {}), s.send("resume", {});
        })), s.on("progress", ((c) => eY(this, c, t10))), s.on("success", ((c) => {
          const f = e.getResponseData(c.response.responseText, c.response), d = f[e.responseUrlFieldName], p = { status: c.response.status, body: f, uploadURL: d };
          return this.uppy.emit("upload-success", t10, p), l.done(), this.uploaderEvents[t10.id] && (this.uploaderEvents[t10.id].remove(), this.uploaderEvents[t10.id] = null), r();
        })), s.on("error", ((c) => {
          const f = c.response, d = f ? e.getResponseError(f.responseText, f) : Object.assign(new Error(c.error.message), { cause: c.error });
          this.uppy.emit("upload-error", t10, d), l.done(), this.uploaderEvents[t10.id] && (this.uploaderEvents[t10.id].remove(), this.uploaderEvents[t10.id] = null), n(d);
        }));
        const l = this.requests.run((() => (s.open(), t10.isPaused && s.send("pause", {}), () => s.close())));
      })).catch(((i) => {
        this.uppy.emit("upload-error", t10, i), n(i);
      }));
    }));
  }
  uploadBundle(t10) {
    return new Promise(((e, r) => {
      const { endpoint: n } = this.opts, { method: o } = this.opts, i = this.uppy.getState().xhrUpload, a = this.createBundledUpload(t10, { ...this.opts, ...i || {} }), u = new XMLHttpRequest(), s = new TA(this.opts.timeout, (() => {
        u.abort();
        const c = new Error(this.i18n("timedOut", { seconds: Math.ceil(this.opts.timeout / 1e3) }));
        l(c), r(c);
      })), l = (c) => {
        t10.forEach(((f) => {
          this.uppy.emit("upload-error", f, c);
        }));
      };
      u.upload.addEventListener("loadstart", (() => {
        this.uppy.log("[XHRUpload] started uploading bundle"), s.progress();
      })), u.upload.addEventListener("progress", ((c) => {
        s.progress(), c.lengthComputable && t10.forEach(((f) => {
          this.uppy.emit("upload-progress", f, { uploader: this, bytesUploaded: c.loaded / c.total * f.size, bytesTotal: f.size });
        }));
      })), u.addEventListener("load", ((c) => {
        if (s.done(), this.opts.validateStatus(c.target.status, u.responseText, u)) {
          const d = this.opts.getResponseData(u.responseText, u), p = { status: c.target.status, body: d };
          return t10.forEach(((v) => {
            this.uppy.emit("upload-success", v, p);
          })), e();
        }
        const f = this.opts.getResponseError(u.responseText, u) || new Error("Upload error");
        return f.request = u, l(f), r(f);
      })), u.addEventListener("error", (() => {
        s.done();
        const c = this.opts.getResponseError(u.responseText, u) || new Error("Upload error");
        return l(c), r(c);
      })), this.uppy.on("cancel-all", (() => {
        s.done(), u.abort();
      })), u.open(o.toUpperCase(), n, true), u.withCredentials = this.opts.withCredentials, this.opts.responseType !== "" && (u.responseType = this.opts.responseType), Object.keys(this.opts.headers).forEach(((c) => {
        u.setRequestHeader(c, this.opts.headers[c]);
      })), u.send(a), t10.forEach(((c) => {
        this.uppy.emit("upload-started", c);
      }));
    }));
  }
  uploadFiles(t10) {
    const e = t10.map(((r, n) => {
      const o = parseInt(n, 10) + 1, i = t10.length;
      return r.error ? Promise.reject(new Error(r.error)) : r.isRemote ? this.uploadRemote(r, o, i) : this.upload(r, o, i);
    }));
    return (function(r) {
      const n = [], o = [];
      function i(u) {
        n.push(u);
      }
      function a(u) {
        o.push(u);
      }
      return Promise.all(r.map(((u) => u.then(i, a)))).then((() => ({ successful: n, failed: o })));
    })(e);
  }
  onFileRemove(t10, e) {
    this.uploaderEvents[t10].on("file-removed", ((r) => {
      t10 === r.id && e(r.id);
    }));
  }
  onRetry(t10, e) {
    this.uploaderEvents[t10].on("upload-retry", ((r) => {
      t10 === r && e();
    }));
  }
  onRetryAll(t10, e) {
    this.uploaderEvents[t10].on("retry-all", (() => {
      this.uppy.getFile(t10) && e();
    }));
  }
  onCancelAll(t10, e) {
    this.uploaderEvents[t10].on("cancel-all", (() => {
      this.uppy.getFile(t10) && e();
    }));
  }
  handleUpload(t10) {
    if (t10.length === 0) return this.uppy.log("[XHRUpload] No files to upload!"), Promise.resolve();
    this.opts.limit !== 0 || this.opts[D1] || this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0", "warning"), this.uppy.log("[XHRUpload] Uploading...");
    const e = t10.map(((r) => this.uppy.getFile(r)));
    if (this.opts.bundle) {
      if (e.some(((r) => r.isRemote))) throw new Error("Can\u2019t upload remote files when the `bundle: true` option is set");
      if (typeof this.opts.headers == "function") throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");
      return this.uploadBundle(e);
    }
    return this.uploadFiles(e).then((() => null));
  }
  install() {
    if (this.opts.bundle) {
      const { capabilities: t10 } = this.uppy.getState();
      this.uppy.setState({ capabilities: { ...t10, individualCancellation: false } });
    }
    this.uppy.addUploader(this.handleUpload);
  }
  uninstall() {
    if (this.opts.bundle) {
      const { capabilities: t10 } = this.uppy.getState();
      this.uppy.setState({ capabilities: { ...t10, individualCancellation: true } });
    }
    this.uppy.removeUploader(this.handleUpload);
  }
}, _A.VERSION = "2.0.6", PA), IA = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Fp(t10) {
  var e = { exports: {} };
  return t10(e, e.exports), e.exports;
}
var Ci, Ng, kh = function(t10) {
  return t10 && t10.Math == Math && t10;
}, X = kh(typeof globalThis == "object" && globalThis) || kh(typeof window == "object" && window) || kh(typeof self == "object" && self) || kh(typeof IA == "object" && IA) || /* @__PURE__ */ (function() {
  return this;
})() || Function("return this")(), bY = Object.defineProperty, m5 = function(t10, e) {
  try {
    bY(X, t10, { value: e, configurable: true, writable: true });
  } catch {
    X[t10] = e;
  }
  return e;
}, Yi = X["__core-js_shared__"] || m5("__core-js_shared__", {}), b5 = Fp((function(t10) {
  (t10.exports = function(e, r) {
    return Yi[e] || (Yi[e] = r !== void 0 ? r : {});
  })("versions", []).push({ version: "3.19.3", mode: "global", copyright: "\xA9 2021 Denis Pushkarev (zloirock.ru)" });
})), wj = Function.prototype, H4 = wj.bind, V4 = wj.call, wY = H4 && H4.bind(V4), pt = H4 ? function(t10) {
  return t10 && wY(V4, t10);
} : function(t10) {
  return t10 && function() {
    return V4.apply(t10, arguments);
  };
}, EY = X.TypeError, On = function(t10) {
  if (t10 == null) throw EY("Can't call method on " + t10);
  return t10;
}, DY = X.Object, Aa = function(t10) {
  return DY(On(t10));
}, CY = pt({}.hasOwnProperty), Ie = Object.hasOwn || function(t10, e) {
  return CY(Aa(t10), e);
}, xY = 0, SY = Math.random(), AY = pt(1 .toString), w5 = function(t10) {
  return "Symbol(" + (t10 === void 0 ? "" : t10) + ")_" + AY(++xY + SY, 36);
}, ne = function(t10) {
  return typeof t10 == "function";
}, OY = function(t10) {
  return ne(t10) ? t10 : void 0;
}, os = function(t10, e) {
  return arguments.length < 2 ? OY(X[t10]) : X[t10] && X[t10][e];
}, al = os("navigator", "userAgent") || "", LA = X.process, RA = X.Deno, MA = LA && LA.versions || RA && RA.version, zA = MA && MA.v8;
zA && (Ng = (Ci = zA.split("."))[0] > 0 && Ci[0] < 4 ? 1 : +(Ci[0] + Ci[1])), !Ng && al && (!(Ci = al.match(/Edge\/(\d+)/)) || Ci[1] >= 74) && (Ci = al.match(/Chrome\/(\d+)/)) && (Ng = +Ci[1]);
var Bd = Ng, Zt = function(t10) {
  try {
    return !!t10();
  } catch {
    return true;
  }
}, U4 = !!Object.getOwnPropertySymbols && !Zt((function() {
  var t10 = /* @__PURE__ */ Symbol();
  return !String(t10) || !(Object(t10) instanceof Symbol) || !Symbol.sham && Bd && Bd < 41;
})), E5 = U4 && !Symbol.sham && typeof Symbol.iterator == "symbol", Nc = b5("wks"), mu = X.Symbol, $A = mu && mu.for, kY = E5 ? mu : mu && mu.withoutSetter || w5, xe = function(t10) {
  if (!Ie(Nc, t10) || !U4 && typeof Nc[t10] != "string") {
    var e = "Symbol." + t10;
    U4 && Ie(mu, t10) ? Nc[t10] = mu[t10] : Nc[t10] = E5 && $A ? $A(e) : kY(e);
  }
  return Nc[t10];
}, Ej = {};
Ej[xe("toStringTag")] = "z";
var D5 = String(Ej) === "[object z]", nr = !Zt((function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
})), fe = function(t10) {
  return typeof t10 == "object" ? t10 !== null : ne(t10);
}, W4 = X.document, BY = fe(W4) && fe(W4.createElement), Fd = function(t10) {
  return BY ? W4.createElement(t10) : {};
}, Dj = !nr && !Zt((function() {
  return Object.defineProperty(Fd("div"), "a", { get: function() {
    return 7;
  } }).a != 7;
})), FY = X.String, TY = X.TypeError, Le = function(t10) {
  if (fe(t10)) return t10;
  throw TY(FY(t10) + " is not an object");
}, Ic = Function.prototype.call, qt = Ic.bind ? Ic.bind(Ic) : function() {
  return Ic.apply(Ic, arguments);
}, $u = pt({}.isPrototypeOf), _Y = X.Object, C1 = E5 ? function(t10) {
  return typeof t10 == "symbol";
} : function(t10) {
  var e = os("Symbol");
  return ne(e) && $u(e.prototype, _Y(t10));
}, PY = X.String, Ay = function(t10) {
  try {
    return PY(t10);
  } catch {
    return "Object";
  }
}, jY = X.TypeError, ga = function(t10) {
  if (ne(t10)) return t10;
  throw jY(Ay(t10) + " is not a function");
}, Hu = function(t10, e) {
  var r = t10[e];
  return r == null ? void 0 : ga(r);
}, NY = X.TypeError, IY = X.TypeError, LY = xe("toPrimitive"), C5 = function(t10) {
  var e = (function(r, n) {
    if (!fe(r) || C1(r)) return r;
    var o, i = Hu(r, LY);
    if (i) {
      if (o = qt(i, r, n), !fe(o) || C1(o)) return o;
      throw IY("Can't convert object to primitive value");
    }
    return (function(a, u) {
      var s, l;
      if (ne(s = a.toString) && !fe(l = qt(s, a)) || ne(s = a.valueOf) && !fe(l = qt(s, a))) return l;
      throw NY("Can't convert object to primitive value");
    })(r);
  })(t10, "string");
  return C1(e) ? e : e + "";
}, RY = X.TypeError, HA = Object.defineProperty, Jn = { f: nr ? HA : function(t10, e, r) {
  if (Le(t10), e = C5(e), Le(r), Dj) try {
    return HA(t10, e, r);
  } catch {
  }
  if ("get" in r || "set" in r) throw RY("Accessors not supported");
  return "value" in r && (t10[e] = r.value), t10;
} }, Oy = function(t10, e) {
  return { enumerable: !(1 & t10), configurable: !(2 & t10), writable: !(4 & t10), value: e };
}, Wn = nr ? function(t10, e, r) {
  return Jn.f(t10, e, Oy(1, r));
} : function(t10, e, r) {
  return t10[e] = r, t10;
}, MY = pt(Function.toString);
ne(Yi.inspectSource) || (Yi.inspectSource = function(t10) {
  return MY(t10);
});
var $v, Qf, Hv, ky = Yi.inspectSource, VA = X.WeakMap, Cj = ne(VA) && /native code/.test(ky(VA)), UA = b5("keys"), x5 = function(t10) {
  return UA[t10] || (UA[t10] = w5(t10));
}, By = {}, G4 = X.TypeError, zY = X.WeakMap;
if (Cj || Yi.state) {
  var $a = Yi.state || (Yi.state = new zY()), $Y = pt($a.get), WA = pt($a.has), HY = pt($a.set);
  $v = function(t10, e) {
    if (WA($a, t10)) throw new G4("Object already initialized");
    return e.facade = t10, HY($a, t10, e), e;
  }, Qf = function(t10) {
    return $Y($a, t10) || {};
  }, Hv = function(t10) {
    return WA($a, t10);
  };
} else {
  var Es = x5("state");
  By[Es] = true, $v = function(t10, e) {
    if (Ie(t10, Es)) throw new G4("Object already initialized");
    return e.facade = t10, Wn(t10, Es, e), e;
  }, Qf = function(t10) {
    return Ie(t10, Es) ? t10[Es] : {};
  }, Hv = function(t10) {
    return Ie(t10, Es);
  };
}
var Cr = { set: $v, get: Qf, has: Hv, enforce: function(t10) {
  return Hv(t10) ? Qf(t10) : $v(t10, {});
}, getterFor: function(t10) {
  return function(e) {
    var r;
    if (!fe(e) || (r = Qf(e)).type !== t10) throw G4("Incompatible receiver, " + t10 + " required");
    return r;
  };
} }, xj = Function.prototype, VY = nr && Object.getOwnPropertyDescriptor, x1 = Ie(xj, "name"), Jl = { EXISTS: x1, PROPER: x1 && (function() {
}).name === "something", CONFIGURABLE: x1 && (!nr || nr && VY(xj, "name").configurable) }, Hr = Fp((function(t10) {
  var e = Jl.CONFIGURABLE, r = Cr.get, n = Cr.enforce, o = String(String).split("String");
  (t10.exports = function(i, a, u, s) {
    var l, c = !!s && !!s.unsafe, f = !!s && !!s.enumerable, d = !!s && !!s.noTargetGet, p = s && s.name !== void 0 ? s.name : a;
    ne(u) && (String(p).slice(0, 7) === "Symbol(" && (p = "[" + String(p).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!Ie(u, "name") || e && u.name !== p) && Wn(u, "name", p), (l = n(u)).source || (l.source = o.join(typeof p == "string" ? p : ""))), i !== X ? (c ? !d && i[a] && (f = true) : delete i[a], f ? i[a] = u : Wn(i, a, u)) : f ? i[a] = u : m5(a, u);
  })(Function.prototype, "toString", (function() {
    return ne(this) && r(this).source || ky(this);
  }));
})), UY = pt({}.toString), WY = pt("".slice), Gn = function(t10) {
  return WY(UY(t10), 8, -1);
}, GY = xe("toStringTag"), qY = X.Object, KY = Gn(/* @__PURE__ */ (function() {
  return arguments;
})()) == "Arguments", Fy = D5 ? Gn : function(t10) {
  var e, r, n;
  return t10 === void 0 ? "Undefined" : t10 === null ? "Null" : typeof (r = (function(o, i) {
    try {
      return o[i];
    } catch {
    }
  })(e = qY(t10), GY)) == "string" ? r : KY ? Gn(e) : (n = Gn(e)) == "Object" && ne(e.callee) ? "Arguments" : n;
}, YY = D5 ? {}.toString : function() {
  return "[object " + Fy(this) + "]";
};
D5 || Hr(Object.prototype, "toString", YY, { unsafe: true });
var Vv = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }, S1 = Fd("span").classList, GA = S1 && S1.constructor && S1.constructor.prototype, Sj = GA === Object.prototype ? void 0 : GA, qA = pt(pt.bind), Vu = function(t10, e) {
  return ga(t10), e === void 0 ? t10 : qA ? qA(t10, e) : function() {
    return t10.apply(e, arguments);
  };
}, A1 = X.Object, XY = pt("".split), Ty = Zt((function() {
  return !A1("z").propertyIsEnumerable(0);
})) ? function(t10) {
  return Gn(t10) == "String" ? XY(t10, "") : A1(t10);
} : A1, ZY = Math.ceil, JY = Math.floor, Tp = function(t10) {
  var e = +t10;
  return e != e || e === 0 ? 0 : (e > 0 ? JY : ZY)(e);
}, QY = Math.min, Ql = function(t10) {
  return t10 > 0 ? QY(Tp(t10), 9007199254740991) : 0;
}, is = function(t10) {
  return Ql(t10.length);
}, Uv = Array.isArray || function(t10) {
  return Gn(t10) == "Array";
}, Aj = function() {
}, tX = [], Oj = os("Reflect", "construct"), S5 = /^\s*(?:class|function)\b/, eX = pt(S5.exec), rX = !S5.exec(Aj), Lc = function(t10) {
  if (!ne(t10)) return false;
  try {
    return Oj(Aj, tX, t10), true;
  } catch {
    return false;
  }
}, _y = !Oj || Zt((function() {
  var t10;
  return Lc(Lc.call) || !Lc(Object) || !Lc((function() {
    t10 = true;
  })) || t10;
})) ? function(t10) {
  if (!ne(t10)) return false;
  switch (Fy(t10)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return false;
  }
  return rX || !!eX(S5, ky(t10));
} : Lc, nX = xe("species"), KA = X.Array, kj = function(t10, e) {
  return new ((function(r) {
    var n;
    return Uv(r) && (n = r.constructor, (_y(n) && (n === KA || Uv(n.prototype)) || fe(n) && (n = n[nX]) === null) && (n = void 0)), n === void 0 ? KA : n;
  })(t10))(e === 0 ? 0 : e);
}, YA = pt([].push), Rc = function(t10) {
  var e = t10 == 1, r = t10 == 2, n = t10 == 3, o = t10 == 4, i = t10 == 6, a = t10 == 7, u = t10 == 5 || i;
  return function(s, l, c, f) {
    for (var d, p, v = Aa(s), y = Ty(v), g = Vu(l, c), m = is(y), h = 0, b = f || kj, w = e ? b(s, m) : r || a ? b(s, 0) : void 0; m > h; h++) if ((u || h in y) && (p = g(d = y[h], h, v), t10)) if (e) w[h] = p;
    else if (p) switch (t10) {
      case 3:
        return true;
      case 5:
        return d;
      case 6:
        return h;
      case 2:
        YA(w, d);
    }
    else switch (t10) {
      case 4:
        return false;
      case 7:
        YA(w, d);
    }
    return i ? -1 : n || o ? o : w;
  };
}, tc = { forEach: Rc(0), map: Rc(1), filter: Rc(2), find: Rc(5), findIndex: Rc(6) }, Bj = function(t10, e) {
  var r = [][t10];
  return !!r && Zt((function() {
    r.call(null, e || function() {
      throw 1;
    }, 1);
  }));
}, oX = tc.forEach, O1 = Bj("forEach") ? [].forEach : function(t10) {
  return oX(this, t10, arguments.length > 1 ? arguments[1] : void 0);
}, Fj = function(t10) {
  if (t10 && t10.forEach !== O1) try {
    Wn(t10, "forEach", O1);
  } catch {
    t10.forEach = O1;
  }
};
for (var k1 in Vv) Vv[k1] && Fj(X[k1] && X[k1].prototype);
Fj(Sj);
var XA = {}.propertyIsEnumerable, ZA = Object.getOwnPropertyDescriptor, iX = ZA && !XA.call({ 1: 2 }, 1) ? function(t10) {
  var e = ZA(this, t10);
  return !!e && e.enumerable;
} : XA, Tj = { f: iX }, Oa = function(t10) {
  return Ty(On(t10));
}, JA = Object.getOwnPropertyDescriptor, _p = { f: nr ? JA : function(t10, e) {
  if (t10 = Oa(t10), e = C5(e), Dj) try {
    return JA(t10, e);
  } catch {
  }
  if (Ie(t10, e)) return Oy(!qt(Tj.f, t10, e), t10[e]);
} }, aX = Math.max, uX = Math.min, _l = function(t10, e) {
  var r = Tp(t10);
  return r < 0 ? aX(r + e, 0) : uX(r, e);
}, QA = function(t10) {
  return function(e, r, n) {
    var o, i = Oa(e), a = is(i), u = _l(n, a);
    if (t10 && r != r) {
      for (; a > u; ) if ((o = i[u++]) != o) return true;
    } else for (; a > u; u++) if ((t10 || u in i) && i[u] === r) return t10 || u || 0;
    return !t10 && -1;
  };
}, _j = { includes: QA(true), indexOf: QA(false) }, sX = _j.indexOf, t7 = pt([].push), Pj = function(t10, e) {
  var r, n = Oa(t10), o = 0, i = [];
  for (r in n) !Ie(By, r) && Ie(n, r) && t7(i, r);
  for (; e.length > o; ) Ie(n, r = e[o++]) && (~sX(i, r) || t7(i, r));
  return i;
}, Wv = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], lX = Wv.concat("length", "prototype"), Td = { f: Object.getOwnPropertyNames || function(t10) {
  return Pj(t10, lX);
} }, jj = { f: Object.getOwnPropertySymbols }, cX = pt([].concat), fX = os("Reflect", "ownKeys") || function(t10) {
  var e = Td.f(Le(t10)), r = jj.f;
  return r ? cX(e, r(t10)) : e;
}, dX = function(t10, e) {
  for (var r = fX(e), n = Jn.f, o = _p.f, i = 0; i < r.length; i++) {
    var a = r[i];
    Ie(t10, a) || n(t10, a, o(e, a));
  }
}, pX = /#|\.prototype\./, Pp = function(t10, e) {
  var r = gX[hX(t10)];
  return r == yX || r != vX && (ne(e) ? Zt(e) : !!e);
}, hX = Pp.normalize = function(t10) {
  return String(t10).replace(pX, ".").toLowerCase();
}, gX = Pp.data = {}, vX = Pp.NATIVE = "N", yX = Pp.POLYFILL = "P", _d = Pp, mX = _p.f, De = function(t10, e) {
  var r, n, o, i, a, u = t10.target, s = t10.global, l = t10.stat;
  if (r = s ? X : l ? X[u] || m5(u, {}) : (X[u] || {}).prototype) for (n in e) {
    if (i = e[n], o = t10.noTargetGet ? (a = mX(r, n)) && a.value : r[n], !_d(s ? n : u + (l ? "." : "#") + n, t10.forced) && o !== void 0) {
      if (typeof i == typeof o) continue;
      dX(i, o);
    }
    (t10.sham || o && o.sham) && Wn(i, "sham", true), Hr(r, n, i, t10);
  }
}, ul = Object.keys || function(t10) {
  return Pj(t10, Wv);
}, bX = Zt((function() {
  ul(1);
}));
function e7(t10) {
  return Object.prototype.toString.call(t10) === "[object Object]";
}
De({ target: "Object", stat: true, forced: bX }, { keys: function(t10) {
  return ul(Aa(t10));
} });
var wX = { isHistory(t10) {
  return e7(e = t10) !== false && ((r = e.constructor) === void 0 || e7(n = r.prototype) !== false && n.hasOwnProperty("isPrototypeOf") !== false) && Array.isArray(t10.redos) && Array.isArray(t10.undos) && (t10.redos.length === 0 || Hi.isOperationList(t10.redos[0])) && (t10.undos.length === 0 || Hi.isOperationList(t10.undos[0]));
  var e, r, n;
} }, B1 = /* @__PURE__ */ new WeakMap(), F1 = /* @__PURE__ */ new WeakMap(), tl = { isHistoryEditor: (t10) => wX.isHistory(t10.history) && E.isEditor(t10), isMerging: (t10) => F1.get(t10), isSaving: (t10) => B1.get(t10), redo(t10) {
  t10.redo();
}, undo(t10) {
  t10.undo();
}, withoutMerging(t10, e) {
  var r = tl.isMerging(t10);
  F1.set(t10, false), e(), F1.set(t10, r);
}, withoutSaving(t10, e) {
  var r = tl.isSaving(t10);
  B1.set(t10, false), e(), B1.set(t10, r);
} }, EX = X.String, ie = function(t10) {
  if (Fy(t10) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  return EX(t10);
}, A5 = function() {
  var t10 = Le(this), e = "";
  return t10.global && (e += "g"), t10.ignoreCase && (e += "i"), t10.multiline && (e += "m"), t10.dotAll && (e += "s"), t10.unicode && (e += "u"), t10.sticky && (e += "y"), e;
}, DX = Jl.PROPER, q4 = RegExp.prototype, Nj = q4.toString, CX = pt(A5), xX = Zt((function() {
  return Nj.call({ source: "a", flags: "b" }) != "/a/b";
})), SX = DX && Nj.name != "toString";
(xX || SX) && Hr(RegExp.prototype, "toString", (function() {
  var t10 = Le(this), e = ie(t10.source), r = t10.flags;
  return "/" + e + "/" + ie(r === void 0 && $u(q4, t10) && !("flags" in q4) ? CX(t10) : r);
}), { unsafe: true });
var Bh, AX = nr ? Object.defineProperties : function(t10, e) {
  Le(t10);
  for (var r, n = Oa(e), o = ul(e), i = o.length, a = 0; i > a; ) Jn.f(t10, r = o[a++], n[r]);
  return t10;
}, K4 = os("document", "documentElement"), Ij = x5("IE_PROTO"), T1 = function() {
}, Lj = function(t10) {
  return "<script>" + t10 + "<\/script>";
}, r7 = function(t10) {
  t10.write(Lj("")), t10.close();
  var e = t10.parentWindow.Object;
  return t10 = null, e;
}, Ig = function() {
  try {
    Bh = new ActiveXObject("htmlfile");
  } catch {
  }
  var t10, e;
  Ig = typeof document < "u" ? document.domain && Bh ? r7(Bh) : ((e = Fd("iframe")).style.display = "none", K4.appendChild(e), e.src = "javascript:", (t10 = e.contentWindow.document).open(), t10.write(Lj("document.F=Object")), t10.close(), t10.F) : r7(Bh);
  for (var r = Wv.length; r--; ) delete Ig.prototype[Wv[r]];
  return Ig();
};
By[Ij] = true;
var Py = Object.create || function(t10, e) {
  var r;
  return t10 !== null ? (T1.prototype = Le(t10), r = new T1(), T1.prototype = null, r[Ij] = t10) : r = Ig(), e === void 0 ? r : AX(r, e);
}, Y4 = xe("unscopables"), X4 = Array.prototype;
X4[Y4] == null && Jn.f(X4, Y4, { configurable: true, value: Py(null) });
var td = function(t10) {
  X4[Y4][t10] = true;
}, OX = _j.includes;
De({ target: "Array", proto: true }, { includes: function(t10) {
  return OX(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} }), td("includes");
var kX = xe("match"), O5 = function(t10) {
  var e;
  return fe(t10) && ((e = t10[kX]) !== void 0 ? !!e : Gn(t10) == "RegExp");
}, BX = X.TypeError, k5 = function(t10) {
  if (O5(t10)) throw BX("The method doesn't accept regular expressions");
  return t10;
}, FX = xe("match"), B5 = function(t10) {
  var e = /./;
  try {
    "/./"[t10](e);
  } catch {
    try {
      return e[FX] = false, "/./"[t10](e);
    } catch {
    }
  }
  return false;
}, TX = pt("".indexOf);
De({ target: "String", proto: true, forced: !B5("includes") }, { includes: function(t10) {
  return !!~TX(ie(On(this)), ie(k5(t10)), arguments.length > 1 ? arguments[1] : void 0);
} });
var _X = /"/g, PX = pt("".replace);
De({ target: "String", proto: true, forced: Zt((function() {
  var t10 = "".anchor('"');
  return t10 !== t10.toLowerCase() || t10.split('"').length > 3;
})) }, { anchor: function(t10) {
  return e = t10, r = ie(On(this)), n = "<a", (n += ' name="' + PX(ie(e), _X, "&quot;") + '"') + ">" + r + "</a>";
  var e, r, n;
} });
var Z4 = function(t10, e, r) {
  var n, o;
  Le(t10);
  try {
    if (!(n = Hu(t10, "return"))) {
      if (e === "throw") throw r;
      return r;
    }
    n = qt(n, t10);
  } catch (i) {
    o = true, n = i;
  }
  if (e === "throw") throw r;
  if (o) throw n;
  return Le(n), r;
}, jX = function(t10, e, r, n) {
  try {
    return n ? e(Le(r)[0], r[1]) : e(r);
  } catch (o) {
    Z4(t10, "throw", o);
  }
}, Pl = {}, NX = xe("iterator"), IX = Array.prototype, Rj = function(t10) {
  return t10 !== void 0 && (Pl.Array === t10 || IX[NX] === t10);
}, Pd = function(t10, e, r) {
  var n = C5(e);
  n in t10 ? Jn.f(t10, n, Oy(0, r)) : t10[n] = r;
}, LX = xe("iterator"), F5 = function(t10) {
  if (t10 != null) return Hu(t10, LX) || Hu(t10, "@@iterator") || Pl[Fy(t10)];
}, RX = X.TypeError, Mj = function(t10, e) {
  var r = arguments.length < 2 ? F5(t10) : e;
  if (ga(r)) return Le(qt(r, t10));
  throw RX(Ay(t10) + " is not iterable");
}, n7 = X.Array, zj = xe("iterator"), $j = false;
try {
  var MX = 0, o7 = { next: function() {
    return { done: !!MX++ };
  }, return: function() {
    $j = true;
  } };
  o7[zj] = function() {
    return this;
  }, Array.from(o7, (function() {
    throw 2;
  }));
} catch {
}
var T5 = function(t10, e) {
  if (!$j) return false;
  var r = false;
  try {
    var n = {};
    n[zj] = function() {
      return { next: function() {
        return { done: r = true };
      } };
    }, t10(n);
  } catch {
  }
  return r;
}, zX = !T5((function(t10) {
  Array.from(t10);
}));
De({ target: "Array", stat: true, forced: zX }, { from: function(t10) {
  var e = Aa(t10), r = _y(this), n = arguments.length, o = n > 1 ? arguments[1] : void 0, i = o !== void 0;
  i && (o = Vu(o, n > 2 ? arguments[2] : void 0));
  var a, u, s, l, c, f, d = F5(e), p = 0;
  if (!d || this == n7 && Rj(d)) for (a = is(e), u = r ? new this(a) : n7(a); a > p; p++) f = i ? o(e[p], p) : e[p], Pd(u, p, f);
  else for (c = (l = Mj(e, d)).next, u = r ? new this() : []; !(s = qt(c, l)).done; p++) f = i ? jX(l, o, [s.value, p], true) : s.value, Pd(u, p, f);
  return u.length = p, u;
} });
var bu, i7, a7, $X = pt("".charAt), u7 = pt("".charCodeAt), HX = pt("".slice), VX = function(t10) {
  return function(e, r) {
    var n, o, i = ie(On(e)), a = Tp(r), u = i.length;
    return a < 0 || a >= u ? t10 ? "" : void 0 : (n = u7(i, a)) < 55296 || n > 56319 || a + 1 === u || (o = u7(i, a + 1)) < 56320 || o > 57343 ? t10 ? $X(i, a) : n : t10 ? HX(i, a, a + 2) : o - 56320 + (n - 55296 << 10) + 65536;
  };
}, Hj = { charAt: VX(true) }, UX = !Zt((function() {
  function t10() {
  }
  return t10.prototype.constructor = null, Object.getPrototypeOf(new t10()) !== t10.prototype;
})), s7 = x5("IE_PROTO"), J4 = X.Object, WX = J4.prototype, Gv = UX ? J4.getPrototypeOf : function(t10) {
  var e = Aa(t10);
  if (Ie(e, s7)) return e[s7];
  var r = e.constructor;
  return ne(r) && e instanceof r ? r.prototype : e instanceof J4 ? WX : null;
}, Q4 = xe("iterator"), Vj = false;
[].keys && ("next" in (a7 = [].keys()) ? (i7 = Gv(Gv(a7))) !== Object.prototype && (bu = i7) : Vj = true);
var GX = bu == null || Zt((function() {
  var t10 = {};
  return bu[Q4].call(t10) !== t10;
}));
GX && (bu = {}), ne(bu[Q4]) || Hr(bu, Q4, (function() {
  return this;
}));
var _5 = { IteratorPrototype: bu, BUGGY_SAFARI_ITERATORS: Vj }, qX = Jn.f, l7 = xe("toStringTag"), qv = function(t10, e, r) {
  t10 && !Ie(t10 = r ? t10 : t10.prototype, l7) && qX(t10, l7, { configurable: true, value: e });
}, KX = _5.IteratorPrototype, YX = function() {
  return this;
}, XX = X.String, ZX = X.TypeError, jl = Object.setPrototypeOf || ("__proto__" in {} ? (function() {
  var t10, e = false, r = {};
  try {
    (t10 = pt(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(r, []), e = r instanceof Array;
  } catch {
  }
  return function(n, o) {
    return Le(n), (function(i) {
      if (typeof i == "object" || ne(i)) return i;
      throw ZX("Can't set " + XX(i) + " as a prototype");
    })(o), e ? t10(n, o) : n.__proto__ = o, n;
  };
})() : void 0), JX = Jl.PROPER, QX = Jl.CONFIGURABLE, c7 = _5.IteratorPrototype, Fh = _5.BUGGY_SAFARI_ITERATORS, Mc = xe("iterator"), tZ = function() {
  return this;
}, P5 = function(t10, e, r, n, o, i, a) {
  (function(m, h, b, w) {
    var D = h + " Iterator";
    m.prototype = Py(KX, { next: Oy(1, b) }), qv(m, D, false), Pl[D] = YX;
  })(r, e, n);
  var u, s, l, c = function(m) {
    if (m === o && y) return y;
    if (!Fh && m in p) return p[m];
    switch (m) {
      case "keys":
      case "values":
      case "entries":
        return function() {
          return new r(this, m);
        };
    }
    return function() {
      return new r(this);
    };
  }, f = e + " Iterator", d = false, p = t10.prototype, v = p[Mc] || p["@@iterator"] || o && p[o], y = !Fh && v || c(o), g = e == "Array" && p.entries || v;
  if (g && (u = Gv(g.call(new t10()))) !== Object.prototype && u.next && (Gv(u) !== c7 && (jl ? jl(u, c7) : ne(u[Mc]) || Hr(u, Mc, tZ)), qv(u, f, true)), JX && o == "values" && v && v.name !== "values" && (QX ? Wn(p, "name", "values") : (d = true, y = function() {
    return qt(v, this);
  })), o) if (s = { values: c("values"), keys: i ? y : c("keys"), entries: c("entries") }, a) for (l in s) (Fh || d || !(l in p)) && Hr(p, l, s[l]);
  else De({ target: e, proto: true, forced: Fh || d }, s);
  return p[Mc] !== y && Hr(p, Mc, y, { name: o }), Pl[e] = y, s;
}, eZ = Hj.charAt, rZ = Cr.set, nZ = Cr.getterFor("String Iterator");
P5(String, "String", (function(t10) {
  rZ(this, { type: "String Iterator", string: ie(t10), index: 0 });
}), (function() {
  var t10, e = nZ(this), r = e.string, n = e.index;
  return n >= r.length ? { value: void 0, done: true } : (t10 = eZ(r, n), e.index += t10.length, { value: t10, done: false });
}));
var _1, oZ = _p.f, f7 = pt("".endsWith), iZ = pt("".slice), aZ = Math.min, Uj = B5("endsWith"), uZ = !(Uj || (_1 = oZ(String.prototype, "endsWith"), !_1 || _1.writable));
De({ target: "String", proto: true, forced: !uZ && !Uj }, { endsWith: function(t10) {
  var e = ie(On(this));
  k5(t10);
  var r = arguments.length > 1 ? arguments[1] : void 0, n = e.length, o = r === void 0 ? n : aZ(Ql(r), n), i = ie(t10);
  return f7 ? f7(e, i, o) : iZ(e, o - i.length, o) === i;
} });
var sZ = pt([].join), lZ = Ty != Object, cZ = Bj("join", ",");
De({ target: "Array", proto: true, forced: lZ || !cZ }, { join: function(t10) {
  return sZ(Oa(this), t10 === void 0 ? "," : t10);
} });
var fZ = xe("species"), jy = function(t10) {
  return Bd >= 51 || !Zt((function() {
    var e = [];
    return (e.constructor = {})[fZ] = function() {
      return { foo: 1 };
    }, e[t10](Boolean).foo !== 1;
  }));
}, dZ = tc.map, pZ = jy("map");
De({ target: "Array", proto: true, forced: !pZ }, { map: function(t10) {
  return dZ(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} });
var j5 = X.RegExp, tE = Zt((function() {
  var t10 = j5("a", "y");
  return t10.lastIndex = 2, t10.exec("abcd") != null;
})), hZ = tE || Zt((function() {
  return !j5("a", "y").sticky;
})), Ny = { BROKEN_CARET: tE || Zt((function() {
  var t10 = j5("^r", "gy");
  return t10.lastIndex = 2, t10.exec("str") != null;
})), MISSED_STICKY: hZ, UNSUPPORTED_Y: tE }, gZ = X.RegExp, N5 = Zt((function() {
  var t10 = gZ(".", "s");
  return !(t10.dotAll && t10.exec(`
`) && t10.flags === "s");
})), vZ = X.RegExp, I5 = Zt((function() {
  var t10 = vZ("(?<a>b)", "g");
  return t10.exec("b").groups.a !== "b" || "b".replace(t10, "$<a>c") !== "bc";
})), yZ = Cr.get, mZ = b5("native-string-replace", String.prototype.replace), Kv = RegExp.prototype.exec, eE = Kv, bZ = pt("".charAt), wZ = pt("".indexOf), EZ = pt("".replace), P1 = pt("".slice), j1 = (function() {
  var t10 = /a/, e = /b*/g;
  return qt(Kv, t10, "a"), qt(Kv, e, "a"), t10.lastIndex !== 0 || e.lastIndex !== 0;
})(), d7 = Ny.BROKEN_CARET, N1 = /()??/.exec("")[1] !== void 0;
(j1 || N1 || d7 || N5 || I5) && (eE = function(t10) {
  var e, r, n, o, i, a, u, s = this, l = yZ(s), c = ie(t10), f = l.raw;
  if (f) return f.lastIndex = s.lastIndex, e = qt(eE, f, c), s.lastIndex = f.lastIndex, e;
  var d = l.groups, p = d7 && s.sticky, v = qt(A5, s), y = s.source, g = 0, m = c;
  if (p && (v = EZ(v, "y", ""), wZ(v, "g") === -1 && (v += "g"), m = P1(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && bZ(c, s.lastIndex - 1) !== `
`) && (y = "(?: " + y + ")", m = " " + m, g++), r = new RegExp("^(?:" + y + ")", v)), N1 && (r = new RegExp("^" + y + "$(?!\\s)", v)), j1 && (n = s.lastIndex), o = qt(Kv, p ? r : s, m), p ? o ? (o.input = P1(o.input, g), o[0] = P1(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : j1 && o && (s.lastIndex = s.global ? o.index + o[0].length : n), N1 && o && o.length > 1 && qt(mZ, o[0], r, (function() {
    for (i = 1; i < arguments.length - 2; i++) arguments[i] === void 0 && (o[i] = void 0);
  })), o && d) for (o.groups = a = Py(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
  return o;
});
var jd = eE;
De({ target: "RegExp", proto: true, forced: /./.exec !== jd }, { exec: jd });
var L5 = Function.prototype, p7 = L5.apply, DZ = L5.bind, h7 = L5.call, R5 = typeof Reflect == "object" && Reflect.apply || (DZ ? h7.bind(p7) : function() {
  return h7.apply(p7, arguments);
}), CZ = xe("species"), I1 = RegExp.prototype, M5 = function(t10, e, r, n) {
  var o = xe(t10), i = !Zt((function() {
    var l = {};
    return l[o] = function() {
      return 7;
    }, ""[t10](l) != 7;
  })), a = i && !Zt((function() {
    var l = false, c = /a/;
    return t10 === "split" && ((c = {}).constructor = {}, c.constructor[CZ] = function() {
      return c;
    }, c.flags = "", c[o] = /./[o]), c.exec = function() {
      return l = true, null;
    }, c[o](""), !l;
  }));
  if (!i || !a || r) {
    var u = pt(/./[o]), s = e(o, ""[t10], (function(l, c, f, d, p) {
      var v = pt(l), y = c.exec;
      return y === jd || y === I1.exec ? i && !p ? { done: true, value: u(c, f, d) } : { done: true, value: v(f, c, d) } : { done: false };
    }));
    Hr(String.prototype, t10, s[0]), Hr(I1, o, s[1]);
  }
  n && Wn(I1[o], "sham", true);
}, xZ = Hj.charAt, z5 = function(t10, e, r) {
  return e + (r ? xZ(t10, e).length : 1);
}, SZ = Math.floor, L1 = pt("".charAt), AZ = pt("".replace), R1 = pt("".slice), OZ = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, kZ = /\$([$&'`]|\d{1,2})/g, BZ = function(t10, e, r, n, o, i) {
  var a = r + t10.length, u = n.length, s = kZ;
  return o !== void 0 && (o = Aa(o), s = OZ), AZ(i, s, (function(l, c) {
    var f;
    switch (L1(c, 0)) {
      case "$":
        return "$";
      case "&":
        return t10;
      case "`":
        return R1(e, 0, r);
      case "'":
        return R1(e, a);
      case "<":
        f = o[R1(c, 1, -1)];
        break;
      default:
        var d = +c;
        if (d === 0) return l;
        if (d > u) {
          var p = SZ(d / 10);
          return p === 0 ? l : p <= u ? n[p - 1] === void 0 ? L1(c, 1) : n[p - 1] + L1(c, 1) : l;
        }
        f = n[d - 1];
    }
    return f === void 0 ? "" : f;
  }));
}, FZ = X.TypeError, Nd = function(t10, e) {
  var r = t10.exec;
  if (ne(r)) {
    var n = qt(r, t10, e);
    return n !== null && Le(n), n;
  }
  if (Gn(t10) === "RegExp") return qt(jd, t10, e);
  throw FZ("RegExp#exec called on incompatible receiver");
}, rE = xe("replace"), TZ = Math.max, _Z = Math.min, PZ = pt([].concat), M1 = pt([].push), g7 = pt("".indexOf), v7 = pt("".slice), jZ = "a".replace(/./, "$0") === "$0", y7 = !!/./[rE] && /./[rE]("a", "$0") === "";
M5("replace", (function(t10, e, r) {
  var n = y7 ? "$" : "$0";
  return [function(o, i) {
    var a = On(this), u = o == null ? void 0 : Hu(o, rE);
    return u ? qt(u, o, a, i) : qt(e, ie(a), o, i);
  }, function(o, i) {
    var a = Le(this), u = ie(o);
    if (typeof i == "string" && g7(i, n) === -1 && g7(i, "$<") === -1) {
      var s = r(e, a, u, i);
      if (s.done) return s.value;
    }
    var l = ne(i);
    l || (i = ie(i));
    var c = a.global;
    if (c) {
      var f = a.unicode;
      a.lastIndex = 0;
    }
    for (var d = []; ; ) {
      var p = Nd(a, u);
      if (p === null || (M1(d, p), !c)) break;
      ie(p[0]) === "" && (a.lastIndex = z5(u, Ql(a.lastIndex), f));
    }
    for (var v, y = "", g = 0, m = 0; m < d.length; m++) {
      for (var h = ie((p = d[m])[0]), b = TZ(_Z(Tp(p.index), u.length), 0), w = [], D = 1; D < p.length; D++) M1(w, (v = p[D]) === void 0 ? v : String(v));
      var x = p.groups;
      if (l) {
        var C = PZ([h], w, b, u);
        x !== void 0 && M1(C, x);
        var O = ie(R5(i, void 0, C));
      } else O = BZ(h, u, b, w, x, i);
      b >= g && (y += v7(u, g, b) + O, g = b + h.length);
    }
    return y + v7(u, g);
  }];
}), !!Zt((function() {
  var t10 = /./;
  return t10.exec = function() {
    var e = [];
    return e.groups = { a: "7" }, e;
  }, "".replace(t10, "$<a>") !== "7";
})) || !jZ || y7);
var nE = function(t10, e) {
  return nE = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
    r.__proto__ = n;
  } || function(r, n) {
    for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
  }, nE(t10, e);
};
function ec(t10, e) {
  if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
  function r() {
    this.constructor = t10;
  }
  nE(t10, e), t10.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
}
var mn = function() {
  return mn = Object.assign || function(t10) {
    for (var e, r = 1, n = arguments.length; r < n; r++) for (var o in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, o) && (t10[o] = e[o]);
    return t10;
  }, mn.apply(this, arguments);
};
function bn(t10) {
  var e = typeof Symbol == "function" && Symbol.iterator, r = e && t10[e], n = 0;
  if (r) return r.call(t10);
  if (t10 && typeof t10.length == "number") return { next: function() {
    return t10 && n >= t10.length && (t10 = void 0), { value: t10 && t10[n++], done: !t10 };
  } };
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function Ht(t10, e) {
  var r = typeof Symbol == "function" && t10[Symbol.iterator];
  if (!r) return t10;
  var n, o, i = r.call(t10), a = [];
  try {
    for (; (e === void 0 || e-- > 0) && !(n = i.next()).done; ) a.push(n.value);
  } catch (u) {
    o = { error: u };
  } finally {
    try {
      n && !n.done && (r = i.return) && r.call(i);
    } finally {
      if (o) throw o.error;
    }
  }
  return a;
}
function oE(t10, e) {
  for (var r = 0, n = e.length, o = t10.length; r < n; r++, o++) t10[o] = e[r];
  return t10;
}
var NZ = 0, m7 = function() {
  this.id = "" + NZ++;
}, IZ = Cr.set, LZ = Cr.getterFor("Array Iterator"), Hf = P5(Array, "Array", (function(t10, e) {
  IZ(this, { type: "Array Iterator", target: Oa(t10), index: 0, kind: e });
}), (function() {
  var t10 = LZ(this), e = t10.target, r = t10.kind, n = t10.index++;
  return !e || n >= e.length ? (t10.target = void 0, { value: void 0, done: true }) : r == "keys" ? { value: n, done: false } : r == "values" ? { value: e[n], done: false } : { value: [n, e[n]], done: false };
}), "values");
Pl.Arguments = Pl.Array, td("keys"), td("values"), td("entries");
var Nl = function(t10, e, r) {
  for (var n in e) Hr(t10, n, e[n], r);
  return t10;
}, RZ = X.Array, MZ = Math.max, iE = function(t10, e, r) {
  for (var n = is(t10), o = _l(e, n), i = _l(r === void 0 ? n : r, n), a = RZ(MZ(i - o, 0)), u = 0; o < i; o++, u++) Pd(a, u, t10[o]);
  return a.length = u, a;
}, b7 = Td.f, w7 = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], zZ = { f: function(t10) {
  return w7 && Gn(t10) == "Window" ? (function(e) {
    try {
      return b7(e);
    } catch {
      return iE(w7);
    }
  })(t10) : b7(Oa(t10));
} }, E7 = Zt((function() {
  if (typeof ArrayBuffer == "function") {
    var t10 = new ArrayBuffer(8);
    Object.isExtensible(t10) && Object.defineProperty(t10, "a", { value: 8 });
  }
})), Th = Object.isExtensible, su = Zt((function() {
  Th(1);
})) || E7 ? function(t10) {
  return !!fe(t10) && (!E7 || Gn(t10) != "ArrayBuffer") && (!Th || Th(t10));
} : Th, $Z = !Zt((function() {
  return Object.isExtensible(Object.preventExtensions({}));
})), Iy = Fp((function(t10) {
  var e = Jn.f, r = false, n = w5("meta"), o = 0, i = function(u) {
    e(u, n, { value: { objectID: "O" + o++, weakData: {} } });
  }, a = t10.exports = { enable: function() {
    a.enable = function() {
    }, r = true;
    var u = Td.f, s = pt([].splice), l = {};
    l[n] = 1, u(l).length && (Td.f = function(c) {
      for (var f = u(c), d = 0, p = f.length; d < p; d++) if (f[d] === n) {
        s(f, d, 1);
        break;
      }
      return f;
    }, De({ target: "Object", stat: true, forced: true }, { getOwnPropertyNames: zZ.f }));
  }, fastKey: function(u, s) {
    if (!fe(u)) return typeof u == "symbol" ? u : (typeof u == "string" ? "S" : "P") + u;
    if (!Ie(u, n)) {
      if (!su(u)) return "F";
      if (!s) return "E";
      i(u);
    }
    return u[n].objectID;
  }, getWeakData: function(u, s) {
    if (!Ie(u, n)) {
      if (!su(u)) return true;
      if (!s) return false;
      i(u);
    }
    return u[n].weakData;
  }, onFreeze: function(u) {
    return $Z && r && su(u) && !Ie(u, n) && i(u), u;
  } };
  By[n] = true;
})), HZ = X.TypeError, Lg = function(t10, e) {
  this.stopped = t10, this.result = e;
}, D7 = Lg.prototype, Id = function(t10, e, r) {
  var n, o, i, a, u, s, l, c = r && r.that, f = !(!r || !r.AS_ENTRIES), d = !(!r || !r.IS_ITERATOR), p = !(!r || !r.INTERRUPTED), v = Vu(e, c), y = function(m) {
    return n && Z4(n, "normal", m), new Lg(true, m);
  }, g = function(m) {
    return f ? (Le(m), p ? v(m[0], m[1], y) : v(m[0], m[1])) : p ? v(m, y) : v(m);
  };
  if (d) n = t10;
  else {
    if (!(o = F5(t10))) throw HZ(Ay(t10) + " is not iterable");
    if (Rj(o)) {
      for (i = 0, a = is(t10); a > i; i++) if ((u = g(t10[i])) && $u(D7, u)) return u;
      return new Lg(false);
    }
    n = Mj(t10, o);
  }
  for (s = n.next; !(l = qt(s, n)).done; ) {
    try {
      u = g(l.value);
    } catch (m) {
      Z4(n, "throw", m);
    }
    if (typeof u == "object" && u && $u(D7, u)) return u;
  }
  return new Lg(false);
}, VZ = X.TypeError, Ly = function(t10, e) {
  if ($u(e, t10)) return t10;
  throw VZ("Incorrect invocation");
}, Wj = function(t10, e, r) {
  var n, o;
  return jl && ne(n = e.constructor) && n !== r && fe(o = n.prototype) && o !== r.prototype && jl(t10, o), t10;
}, Gj = function(t10, e, r) {
  var n = t10.indexOf("Map") !== -1, o = t10.indexOf("Weak") !== -1, i = n ? "set" : "add", a = X[t10], u = a && a.prototype, s = a, l = {}, c = function(g) {
    var m = pt(u[g]);
    Hr(u, g, g == "add" ? function(h) {
      return m(this, h === 0 ? 0 : h), this;
    } : g == "delete" ? function(h) {
      return !(o && !fe(h)) && m(this, h === 0 ? 0 : h);
    } : g == "get" ? function(h) {
      return o && !fe(h) ? void 0 : m(this, h === 0 ? 0 : h);
    } : g == "has" ? function(h) {
      return !(o && !fe(h)) && m(this, h === 0 ? 0 : h);
    } : function(h, b) {
      return m(this, h === 0 ? 0 : h, b), this;
    });
  };
  if (_d(t10, !ne(a) || !(o || u.forEach && !Zt((function() {
    new a().entries().next();
  }))))) s = r.getConstructor(e, t10, n, i), Iy.enable();
  else if (_d(t10, true)) {
    var f = new s(), d = f[i](o ? {} : -0, 1) != f, p = Zt((function() {
      f.has(1);
    })), v = T5((function(g) {
      new a(g);
    })), y = !o && Zt((function() {
      for (var g = new a(), m = 5; m--; ) g[i](m, m);
      return !g.has(-0);
    }));
    v || ((s = e((function(g, m) {
      Ly(g, u);
      var h = Wj(new a(), g, s);
      return m != null && Id(m, h[i], { that: h, AS_ENTRIES: n }), h;
    }))).prototype = u, u.constructor = s), (p || y) && (c("delete"), c("has"), n && c("get")), (y || d) && c(i), o && u.clear && delete u.clear;
  }
  return l[t10] = s, De({ global: true, forced: s != a }, l), qv(s, t10), o || r.setStrong(s, t10, n), s;
}, _h = Iy.getWeakData, UZ = Cr.set, WZ = Cr.getterFor, GZ = tc.find, qZ = tc.findIndex, KZ = pt([].splice), YZ = 0, Ph = function(t10) {
  return t10.frozen || (t10.frozen = new qj());
}, qj = function() {
  this.entries = [];
}, z1 = function(t10, e) {
  return GZ(t10.entries, (function(r) {
    return r[0] === e;
  }));
};
qj.prototype = { get: function(t10) {
  var e = z1(this, t10);
  if (e) return e[1];
}, has: function(t10) {
  return !!z1(this, t10);
}, set: function(t10, e) {
  var r = z1(this, t10);
  r ? r[1] = e : this.entries.push([t10, e]);
}, delete: function(t10) {
  var e = qZ(this.entries, (function(r) {
    return r[0] === t10;
  }));
  return ~e && KZ(this.entries, e, 1), !!~e;
} };
var zc, Kj = { getConstructor: function(t10, e, r, n) {
  var o = t10((function(s, l) {
    Ly(s, i), UZ(s, { type: e, id: YZ++, frozen: void 0 }), l != null && Id(l, s[n], { that: s, AS_ENTRIES: r });
  })), i = o.prototype, a = WZ(e), u = function(s, l, c) {
    var f = a(s), d = _h(Le(l), true);
    return d === true ? Ph(f).set(l, c) : d[f.id] = c, s;
  };
  return Nl(i, { delete: function(s) {
    var l = a(this);
    if (!fe(s)) return false;
    var c = _h(s);
    return c === true ? Ph(l).delete(s) : c && Ie(c, l.id) && delete c[l.id];
  }, has: function(s) {
    var l = a(this);
    if (!fe(s)) return false;
    var c = _h(s);
    return c === true ? Ph(l).has(s) : c && Ie(c, l.id);
  } }), Nl(i, r ? { get: function(s) {
    var l = a(this);
    if (fe(s)) {
      var c = _h(s);
      return c === true ? Ph(l).get(s) : c ? c[l.id] : void 0;
    }
  }, set: function(s, l) {
    return u(this, s, l);
  } } : { add: function(s) {
    return u(this, s, true);
  } }), o;
} }, jh = Cr.enforce, XZ = !X.ActiveXObject && "ActiveXObject" in X, Yj = function(t10) {
  return function() {
    return t10(this, arguments.length ? arguments[0] : void 0);
  };
}, ZZ = Gj("WeakMap", Yj, Kj);
if (Cj && XZ) {
  zc = Kj.getConstructor(Yj, "WeakMap", true), Iy.enable();
  var $c = ZZ.prototype, C7 = pt($c.delete), Nh = pt($c.has), x7 = pt($c.get), S7 = pt($c.set);
  Nl($c, { delete: function(t10) {
    if (fe(t10) && !su(t10)) {
      var e = jh(this);
      return e.frozen || (e.frozen = new zc()), C7(this, t10) || e.frozen.delete(t10);
    }
    return C7(this, t10);
  }, has: function(t10) {
    if (fe(t10) && !su(t10)) {
      var e = jh(this);
      return e.frozen || (e.frozen = new zc()), Nh(this, t10) || e.frozen.has(t10);
    }
    return Nh(this, t10);
  }, get: function(t10) {
    if (fe(t10) && !su(t10)) {
      var e = jh(this);
      return e.frozen || (e.frozen = new zc()), Nh(this, t10) ? x7(this, t10) : e.frozen.get(t10);
    }
    return x7(this, t10);
  }, set: function(t10, e) {
    if (fe(t10) && !su(t10)) {
      var r = jh(this);
      r.frozen || (r.frozen = new zc()), Nh(this, t10) ? S7(this, t10, e) : r.frozen.set(t10, e);
    } else S7(this, t10, e);
    return this;
  } });
}
var $1 = xe("iterator"), A7 = xe("toStringTag"), H1 = Hf.values, Xj = function(t10, e) {
  if (t10) {
    if (t10[$1] !== H1) try {
      Wn(t10, $1, H1);
    } catch {
      t10[$1] = H1;
    }
    if (t10[A7] || Wn(t10, A7, e), Vv[e]) {
      for (var r in Hf) if (t10[r] !== Hf[r]) try {
        Wn(t10, r, Hf[r]);
      } catch {
        t10[r] = Hf[r];
      }
    }
  }
};
for (var V1 in Vv) Xj(X[V1] && X[V1].prototype, V1);
Xj(Sj, "DOMTokenList");
var aE = /* @__PURE__ */ new WeakMap(), uE = /* @__PURE__ */ new WeakMap(), $5 = /* @__PURE__ */ new WeakMap(), Ry = /* @__PURE__ */ new WeakMap(), sE = /* @__PURE__ */ new WeakMap(), Yv = /* @__PURE__ */ new WeakMap(), H5 = /* @__PURE__ */ new WeakMap(), lE = /* @__PURE__ */ new WeakMap(), Rg = /* @__PURE__ */ new WeakMap(), O7 = /* @__PURE__ */ new WeakMap(), k7 = /* @__PURE__ */ new WeakMap(), B7 = /* @__PURE__ */ new WeakMap(), F7 = /* @__PURE__ */ new WeakMap(), Ld = /* @__PURE__ */ new WeakMap(), Il = /* @__PURE__ */ new WeakMap(), V5 = /* @__PURE__ */ new WeakMap(), Xv = /* @__PURE__ */ new WeakMap(), cE = /* @__PURE__ */ new WeakMap(), Zv = /* @__PURE__ */ new WeakMap(), Mg = /* @__PURE__ */ new WeakMap(), Zj = /* @__PURE__ */ new WeakMap(), wu = /* @__PURE__ */ new WeakMap(), U1 = /* @__PURE__ */ new WeakMap(), T7 = /* @__PURE__ */ new WeakMap(), W1 = /* @__PURE__ */ new WeakMap(), JZ = tc.find, _7 = true;
"find" in [] && Array(1).find((function() {
  _7 = false;
})), De({ target: "Array", proto: true, forced: _7 }, { find: function(t10) {
  return JZ(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} }), td("find"), De({ global: true }, { globalThis: X });
const QZ = ["area", "base", "basefont", "bgsound", "br", "col", "command", "embed", "frame", "hr", "image", "img", "input", "isindex", "keygen", "link", "menuitem", "meta", "nextid", "param", "source", "track", "wbr"];
Nv && (B.fn.css = Nv), An && (B.fn.append = An), El && (B.fn.addClass = El), Dl && (B.fn.removeClass = Dl), Cl && (B.fn.hasClass = Cl), Ao && (B.fn.on = Ao), ha && (B.fn.focus = ha), Sn && (B.fn.attr = Sn), Tv && (B.fn.removeAttr = Tv), Sl && (B.fn.hide = Sl), jv && (B.fn.show = jv), KS && (B.fn.offset = KS), _v && (B.fn.width = _v), Pv && (B.fn.height = Pv), Al && (B.fn.parent = Al), Rv && (B.fn.parents = Rv), XS && (B.fn.is = XS), xl && (B.fn.dataset = xl), So && (B.fn.val = So), Lv && (B.fn.text = Lv), pa && (B.fn.html = pa), kl && (B.fn.children = kl), Bl && (B.fn.remove = Bl), Ol && (B.fn.find = Ol), Iv && (B.fn.each = Iv), Fl && (B.fn.empty = Fl);
var po, wr, U5 = function(t10) {
  return t10 && t10.ownerDocument && t10.ownerDocument.defaultView || null;
}, Rn = function(t10) {
  return Uu(t10) && t10.nodeType === 1;
}, Uu = function(t10) {
  var e = U5(t10);
  return !!e && t10 instanceof e.Node;
}, P7 = function(t10) {
  var e = t10 && t10.anchorNode && U5(t10.anchorNode);
  return !!e && t10 instanceof e.Selection;
}, Jj = function(t10) {
  return Uu(t10) && t10.nodeType === 3;
}, fE = function(t10) {
  var e, r, n;
  return (e = window.document.getElementById(t10)) !== null && e !== void 0 ? e : ((n = (r = window.document.activeElement) === null || r === void 0 ? void 0 : r.shadowRoot) === null || n === void 0 ? void 0 : n.getElementById(t10)) || null;
}, Qj = function(t10, e, r) {
  for (var n, o = t10.childNodes, i = o[e], a = e, u = false, s = false; (Uu(n = i) && n.nodeType === 8 || Rn(i) && i.childNodes.length === 0 || Rn(i) && i.getAttribute("contenteditable") === "false") && (!u || !s); ) a >= o.length ? (u = true, a = e - 1, r = "backward") : a < 0 ? (s = true, a = e + 1, r = "forward") : (i = o[a], e = a, a += r === "forward" ? 1 : -1);
  return [i, e];
}, tJ = function(t10, e, r) {
  return Ht(Qj(t10, e, r), 1)[0];
}, eJ = function t2(e) {
  var r, n, o = "";
  if (Jj(e) && e.nodeValue) return e.nodeValue;
  if (Rn(e)) {
    try {
      for (var i = bn(Array.from(e.childNodes)), a = i.next(); !a.done; a = i.next()) o += t2(a.value);
    } catch (s) {
      r = { error: s };
    } finally {
      try {
        a && !a.done && (n = i.return) && n.call(i);
      } finally {
        if (r) throw r.error;
      }
    }
    var u = getComputedStyle(e).getPropertyValue("display");
    u !== "block" && u !== "list" && u !== "table-row" && e.tagName !== "BR" || (o += `
`);
  }
  return o;
};
function tN(t10, e) {
  if (!(t10 instanceof HTMLElement && t10.dataset.slateVoid === "true")) for (var r = t10.childNodes, n = r.length; n--; ) {
    var o = r[n], i = o.nodeType;
    i == 3 ? e(o, t10) : i != 1 && i != 9 && i != 11 || tN(o, e);
  }
}
function j7(t10) {
  if (t10.length === 0) return "";
  var e = t10[0];
  return e.nodeType !== po.ELEMENT_NODE ? "" : e.tagName.toLowerCase();
}
(wr = po || (po = {}))[wr.ELEMENT_NODE = 1] = "ELEMENT_NODE", wr[wr.TEXT_NODE = 3] = "TEXT_NODE", wr[wr.CDATA_SECTION_NODE = 4] = "CDATA_SECTION_NODE", wr[wr.PROCESSING_INSTRUCTION_NODE = 7] = "PROCESSING_INSTRUCTION_NODE", wr[wr.COMMENT_NODE = 8] = "COMMENT_NODE", wr[wr.DOCUMENT_NODE = 9] = "DOCUMENT_NODE", wr[wr.DOCUMENT_TYPE_NODE = 10] = "DOCUMENT_TYPE_NODE", wr[wr.DOCUMENT_FRAGMENT_NODE = 11] = "DOCUMENT_FRAGMENT_NODE";
var dE = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), ed = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Hc = typeof navigator < "u" && /Version\/[\d\.]+.*Safari/.test(navigator.userAgent), rJ = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), nJ = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), pE = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), Vc = !nJ && !rJ && typeof globalThis < "u" && globalThis.InputEvent && typeof globalThis.InputEvent.prototype.getTargetRanges == "function", A = { getWindow: function(t10) {
  var e = Zj.get(t10);
  if (!e) throw new Error("Unable to find a host window element for this editor");
  return e;
}, findKey: function(t10, e) {
  var r = Mg.get(e);
  return r || (r = new m7(), Mg.set(e, r)), r;
}, setNewKey: function(t10) {
  var e = new m7();
  Mg.set(t10, e);
}, findPath: function(t10, e) {
  for (var r = [], n = e; ; ) {
    var o = Il.get(n);
    if (o == null) {
      if (E.isEditor(n)) return r;
      break;
    }
    var i = Ld.get(n);
    if (i == null) break;
    r.unshift(i), n = o;
  }
  throw new Error("Unable to find the path for Slate node: " + JSON.stringify(e));
}, findDocumentOrShadowRoot: function(t10) {
  if (t10.isDestroyed) return window.document;
  var e = A.toDOMNode(t10, t10), r = e.getRootNode();
  return (r instanceof Document || r instanceof ShadowRoot) && r.getSelection != null ? r : e.ownerDocument;
}, getParentNode: function(t10, e) {
  return Il.get(e) || null;
}, getParentsNodes: function(t10, e) {
  for (var r = [], n = e; n !== t10 && n != null; ) {
    var o = A.getParentNode(t10, n);
    if (o == null) break;
    r.push(o), n = o;
  }
  return r;
}, getTopNode: function(t10, e) {
  var r = [A.findPath(t10, e)[0]];
  return J.get(t10, r);
}, toDOMNode: function(t10, e) {
  var r;
  if (E.isEditor(e)) r = V5.get(t10);
  else {
    var n = A.findKey(t10, e);
    r = cE.get(n);
  }
  if (!r) throw new Error("Cannot resolve a DOM node from Slate node: " + JSON.stringify(e));
  return r;
}, hasDOMNode: function(t10, e, r) {
  r === void 0 && (r = {});
  var n, o = r.editable, i = o !== void 0 && o, a = A.toDOMNode(t10, t10);
  try {
    n = Rn(e) ? e : e.parentElement;
  } catch (u) {
    if (!u.message.includes('Permission denied to access property "nodeType"')) throw u;
  }
  return !!n && n.closest("[data-slate-editor]") === a && (!i || n.isContentEditable || !!n.getAttribute("data-slate-zero-width"));
}, toDOMRange: function(t10, e) {
  var r = e.anchor, n = e.focus, o = L.isBackward(e), i = A.toDOMPoint(t10, r), a = L.isCollapsed(e) ? i : A.toDOMPoint(t10, n), u = A.getWindow(t10).document.createRange(), s = Ht(o ? a : i, 2), l = s[0], c = s[1], f = Ht(o ? i : a, 2), d = f[0], p = f[1], v = !!(Rn(l) ? l : l.parentElement).getAttribute("data-slate-zero-width"), y = !!(Rn(d) ? d : d.parentElement).getAttribute("data-slate-zero-width");
  return u.setStart(l, v ? 1 : c), u.setEnd(d, y ? 1 : p), u;
}, toDOMPoint: function(t10, e) {
  var r, n, o, i = Ht(E.node(t10, e.path), 1)[0], a = A.toDOMNode(t10, i);
  E.void(t10, { at: e }) && (e = { path: e.path, offset: 0 });
  var u = Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")), s = 0;
  try {
    for (var l = bn(u), c = l.next(); !c.done; c = l.next()) {
      var f = c.value, d = f.childNodes[0];
      if (d != null && d.textContent != null) {
        var p = d.textContent.length, v = f.getAttribute("data-slate-length"), y = s + (v == null ? p : parseInt(v, 10));
        if (e.offset <= y) {
          o = [d, Math.min(p, Math.max(0, e.offset - s))];
          break;
        }
        s = y;
      }
    }
  } catch (g) {
    r = { error: g };
  } finally {
    try {
      c && !c.done && (n = l.return) && n.call(l);
    } finally {
      if (r) throw r.error;
    }
  }
  if (!o) throw new Error("Cannot resolve a DOM point from Slate point: " + JSON.stringify(e));
  return o;
}, toSlateNode: function(t10, e) {
  var r = Rn(e) ? e : e.parentElement;
  r && !r.hasAttribute("data-slate-node") && (r = r.closest("[data-slate-node]"));
  var n = r ? Xv.get(r) : null;
  if (!n) throw new Error("Cannot resolve a Slate node from DOM node: " + r);
  return n;
}, findEventRange: function(t10, e) {
  "nativeEvent" in e && (e = e.nativeEvent);
  var r = e.clientX, n = e.clientY, o = e.target;
  if (r == null || n == null) throw new Error("Cannot resolve a Slate range from a DOM event: " + e);
  var i, a = A.toSlateNode(t10, e.target), u = A.findPath(t10, a);
  if (E.isVoid(t10, a)) {
    var s = o.getBoundingClientRect(), l = t10.isInline(a) ? r - s.left < s.left + s.width - r : n - s.top < s.top + s.height - n, c = E.point(t10, u, { edge: l ? "start" : "end" }), f = l ? E.before(t10, c) : E.after(t10, c);
    if (f) return E.range(t10, f);
  }
  var d = this.getWindow(t10).document;
  if (d.caretRangeFromPoint) i = d.caretRangeFromPoint(r, n);
  else {
    var p = d.caretPositionFromPoint(r, n);
    p && ((i = d.createRange()).setStart(p.offsetNode, p.offset), i.setEnd(p.offsetNode, p.offset));
  }
  if (!i) throw new Error("Cannot resolve a Slate range from a DOM event: " + e);
  return A.toSlateRange(t10, i, { exactMatch: false, suppressThrow: false });
}, toSlateRange: function(t10, e, r) {
  var n, o, i, a, u, s = r.exactMatch, l = r.suppressThrow;
  if ((P7(e) ? e.anchorNode : e.startContainer) && (P7(e) ? (n = e.anchorNode, o = e.anchorOffset, i = e.focusNode, a = e.focusOffset, u = pE && window.document.activeElement && window.document.activeElement.shadowRoot ? e.anchorNode === e.focusNode && e.anchorOffset === e.focusOffset : e.isCollapsed) : (n = e.startContainer, o = e.startOffset, i = e.endContainer, a = e.endOffset, u = e.collapsed)), n == null || i == null || o == null || a == null) throw new Error("Cannot resolve a Slate range from DOM range: " + e);
  var c = A.toSlatePoint(t10, [n, o], { exactMatch: s, suppressThrow: l });
  if (!c) return null;
  var f = u ? c : A.toSlatePoint(t10, [i, a], { exactMatch: s, suppressThrow: l });
  if (!f) return null;
  var d = { anchor: c, focus: f };
  return L.isExpanded(d) && L.isForward(d) && Rn(i) && E.void(t10, { at: d.focus, mode: "highest" }) && (d = E.unhangRange(t10, d, { voids: true })), d;
}, toSlatePoint: function(t10, e, r) {
  var n, o = r.exactMatch, i = r.suppressThrow, a = Ht(o ? e : (function(h) {
    var b, w = Ht(h, 2), D = w[0], x = w[1];
    if (Rn(D) && D.childNodes.length) {
      var C = x === D.childNodes.length, O = C ? x - 1 : x;
      for (D = (b = Ht(Qj(D, O, C ? "backward" : "forward"), 2))[0], C = (O = b[1]) < x; Rn(D) && D.childNodes.length; ) {
        var T = C ? D.childNodes.length - 1 : 0;
        D = tJ(D, T, C ? "backward" : "forward");
      }
      x = C && D.textContent != null ? D.textContent.length : 0;
    }
    return [D, x];
  })(e), 2), u = a[0], s = a[1], l = u.parentNode, c = null, f = 0;
  if (l) {
    var d = l.closest('[data-slate-void="true"]'), p = l.closest("[data-slate-leaf]"), v = null;
    if (p) {
      c = p.closest('[data-slate-node="text"]');
      var y = A.getWindow(t10).document.createRange();
      y.setStart(c, 0), y.setEnd(u, s);
      var g = y.cloneContents();
      oE(oE([], Ht(WS(g.querySelectorAll("[data-slate-zero-width]")))), Ht(WS(g.querySelectorAll("[contenteditable=false]")))).forEach((function(h) {
        h.parentNode.removeChild(h);
      })), f = g.textContent.length, v = c;
    } else d && ((p = d.querySelector("[data-slate-leaf]")) ? (c = p.closest('[data-slate-node="text"]'), f = (v = p).textContent.length, v.querySelectorAll("[data-slate-zero-width]").forEach((function(h) {
      f -= h.textContent.length;
    }))) : f = 1);
    v && f === v.textContent.length && (l.hasAttribute("data-slate-zero-width") || ed && (!((n = v.textContent) === null || n === void 0) && n.endsWith(`
`))) && f--;
  }
  if (!c) {
    if (i) return null;
    throw new Error("Cannot resolve a Slate point from DOM point: " + e);
  }
  var m = A.toSlateNode(t10, c);
  return { path: A.findPath(t10, m), offset: f };
}, hasRange: function(t10, e) {
  var r = e.anchor, n = e.focus;
  return E.hasPath(t10, r.path) && E.hasPath(t10, n.path);
}, getNodeType: function(t10) {
  return ct.isElement(t10) ? t10.type : "";
}, checkNodeType: function(t10, e) {
  return this.getNodeType(t10) === e;
}, getNodesStr: function(t10) {
  return t10.map((function(e) {
    return J.string(e);
  })).join("");
}, getSelectedElems: function(t10) {
  var e, r, n = [], o = E.nodes(t10, { universal: true });
  try {
    for (var i = bn(o), a = i.next(); !a.done; a = i.next()) {
      var u = Ht(a.value, 1)[0];
      ct.isElement(u) && n.push(u);
    }
  } catch (s) {
    e = { error: s };
  } finally {
    try {
      a && !a.done && (r = i.return) && r.call(i);
    } finally {
      if (e) throw e.error;
    }
  }
  return n;
}, getSelectedNodeByType: function(t10, e) {
  var r = this, n = Ht(E.nodes(t10, { match: function(i) {
    return r.checkNodeType(i, e);
  }, universal: true }), 1), o = n[0];
  return o == null ? null : o[0];
}, getSelectedTextNode: function(t10) {
  var e = Ht(E.nodes(t10, { match: function(n) {
    return ot.isText(n);
  }, universal: true }), 1), r = e[0];
  return r == null ? null : r[0];
}, isNodeSelected: function(t10, e) {
  var r = Ht(E.nodes(t10, { match: function(o) {
    return o === e;
  }, universal: true }), 1), n = r[0];
  return n != null && Ht(n, 1)[0] === e;
}, isSelectionAtLineEnd: function(t10, e) {
  var r = t10.selection;
  return !!r && (E.isEnd(t10, r.anchor, e) || E.isEnd(t10, r.focus, e));
}, getTextarea: function(t10) {
  var e = aE.get(t10);
  if (e == null) throw new Error("Cannot find textarea instance by editor");
  return e;
}, getToolbar: function(t10) {
  return Ry.get(t10) || null;
}, getHoverbar: function(t10) {
  return Yv.get(t10) || null;
}, normalizeContent: function(t10) {
  t10.children.forEach((function(e, r) {
    t10.normalizeNode([e, [r]]);
  }));
}, getLeftLengthOfMaxLength: function(t10) {
  var e = t10.getConfig(), r = e.maxLength, n = e.onMaxLength;
  if (typeof r != "number" || r <= 0) return 1 / 0;
  var o = r - t10.getText().replace(/\r|\n|(\r\n)/g, "").length;
  return o <= 0 && n && n(t10), o;
}, cleanExposedTexNodeInSelectionBlock: function(t10) {
  var e, r, n, o, i = A.getTextarea(t10).$textArea, a = i == null ? void 0 : i[0].childNodes;
  if (a) try {
    for (var u = bn(Array.from(a)), s = u.next(); !s.done; s = u.next()) {
      var l = s.value;
      if (l.nodeType !== 3) break;
      l.remove();
    }
  } catch (y) {
    e = { error: y };
  } finally {
    try {
      s && !s.done && (r = u.return) && r.call(u);
    } finally {
      if (e) throw e.error;
    }
  }
  var c = E.nodes(t10, { match: function(y) {
    return !(!ct.isElement(y) || t10.isInline(y));
  }, universal: true });
  try {
    for (var f = bn(c), d = f.next(); !d.done; d = f.next()) {
      var p = d.value;
      if (p != null) {
        var v = p[0];
        tN(A.toDOMNode(t10, v), (function(y, g) {
          var m = B(g);
          m.attr("data-slate-string") || m.attr("data-slate-zero-width") || m.attr("data-w-e-reserve") || g.removeChild(y);
        }));
      }
    }
  } catch (y) {
    n = { error: y };
  } finally {
    try {
      d && !d.done && (o = f.return) && o.call(f);
    } finally {
      if (n) throw n.error;
    }
  }
}, isLastNode: function(t10, e) {
  var r = t10.children || [];
  return r[r.length - 1] === e;
}, genEmptyParagraph: function() {
  return { type: "paragraph", children: [{ text: "" }] };
}, isSelectedVoidNode: function(t10) {
  var e, r, n = E.nodes(t10, { match: function(u) {
    return t10.isVoid(u);
  } }), o = 0;
  try {
    for (var i = bn(n), a = i.next(); !a.done; a = i.next()) a.value, o++;
  } catch (u) {
    e = { error: u };
  } finally {
    try {
      a && !a.done && (r = i.return) && r.call(i);
    } finally {
      if (e) throw e.error;
    }
  }
  return o > 0;
}, isSelectedEmptyParagraph: function(t10) {
  var e = t10.selection;
  if (e == null || L.isExpanded(e)) return false;
  var r = A.getSelectedNodeByType(t10, "paragraph");
  if (r === null) return false;
  var n = r.children;
  return n.length === 1 && (n[0].text === "" || void 0);
}, isEmptyPath: function(t10, e) {
  var r = E.node(t10, e);
  if (r == null) return false;
  var n = Ht(r, 1)[0].children;
  return n.length === 1 && n[0].text === "";
} }, oJ = 1, eN = {}, Rd = {}, iJ = tc.filter, aJ = jy("filter");
De({ target: "Array", proto: true, forced: !aJ }, { filter: function(t10) {
  return iJ(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} });
var hE = `	
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`, N7 = pt("".replace), Jv = "[" + hE + "]", uJ = RegExp("^" + Jv + Jv + "*"), sJ = RegExp(Jv + Jv + "*$"), lJ = function(t10) {
  return function(e) {
    var r = ie(On(e));
    return 1 & t10 && (r = N7(r, uJ, "")), 2 & t10 && (r = N7(r, sJ, "")), r;
  };
}, cJ = { trim: lJ(3) }, fJ = Jl.PROPER, dJ = cJ.trim;
De({ target: "String", proto: true, forced: (function(t10) {
  return Zt((function() {
    return !!hE[t10]() || "\u200B\x85\u180E"[t10]() !== "\u200B\x85\u180E" || fJ && hE[t10].name !== t10;
  }));
})("trim") }, { trim: function() {
  return dJ(this);
} });
var gE = [], rN = {};
function pJ(t10, e, r) {
  var n = r.isInline(t10) ? "span" : "div";
  return "<" + n + ">" + e + "</" + n + ">";
}
var Md, Ds, I7, G1, Qv = X.Promise, L7 = xe("species"), W5 = function(t10) {
  var e = os(t10), r = Jn.f;
  nr && e && !e[L7] && r(e, L7, { configurable: true, get: function() {
    return this;
  } });
}, hJ = X.TypeError, gJ = xe("species"), nN = function(t10, e) {
  var r, n = Le(t10).constructor;
  return n === void 0 || (r = Le(n)[gJ]) == null ? e : (function(o) {
    if (_y(o)) return o;
    throw hJ(Ay(o) + " is not a constructor");
  })(r);
}, oN = pt([].slice), iN = /(?:ipad|iphone|ipod).*applewebkit/i.test(al), Xi = Gn(X.process) == "process", vE = X.setImmediate, R7 = X.clearImmediate, vJ = X.process, q1 = X.Dispatch, yJ = X.Function, M7 = X.MessageChannel, mJ = X.String, K1 = 0, rd = {};
try {
  Md = X.location;
} catch {
}
var G5 = function(t10) {
  if (Ie(rd, t10)) {
    var e = rd[t10];
    delete rd[t10], e();
  }
}, Y1 = function(t10) {
  return function() {
    G5(t10);
  };
}, z7 = function(t10) {
  G5(t10.data);
}, $7 = function(t10) {
  X.postMessage(mJ(t10), Md.protocol + "//" + Md.host);
};
vE && R7 || (vE = function(t10) {
  var e = oN(arguments, 1);
  return rd[++K1] = function() {
    R5(ne(t10) ? t10 : yJ(t10), void 0, e);
  }, Ds(K1), K1;
}, R7 = function(t10) {
  delete rd[t10];
}, Xi ? Ds = function(t10) {
  vJ.nextTick(Y1(t10));
} : q1 && q1.now ? Ds = function(t10) {
  q1.now(Y1(t10));
} : M7 && !iN ? (G1 = (I7 = new M7()).port2, I7.port1.onmessage = z7, Ds = Vu(G1.postMessage, G1)) : X.addEventListener && ne(X.postMessage) && !X.importScripts && Md && Md.protocol !== "file:" && !Zt($7) ? (Ds = $7, X.addEventListener("message", z7, false)) : Ds = "onreadystatechange" in Fd("script") ? function(t10) {
  K4.appendChild(Fd("script")).onreadystatechange = function() {
    K4.removeChild(this), G5(t10);
  };
} : function(t10) {
  setTimeout(Y1(t10), 0);
});
var Uc, ou, nd, Ks, X1, Z1, J1, H7, aN = { set: vE }, bJ = /ipad|iphone|ipod/i.test(al) && X.Pebble !== void 0, wJ = /web0s(?!.*chrome)/i.test(al), EJ = _p.f, Q1 = aN.set, V7 = X.MutationObserver || X.WebKitMutationObserver, U7 = X.document, W7 = X.process, Ih = X.Promise, G7 = EJ(X, "queueMicrotask"), uN = G7 && G7.value;
uN || (Uc = function() {
  var t10, e;
  for (Xi && (t10 = W7.domain) && t10.exit(); ou; ) {
    e = ou.fn, ou = ou.next;
    try {
      e();
    } catch (r) {
      throw ou ? Ks() : nd = void 0, r;
    }
  }
  nd = void 0, t10 && t10.enter();
}, iN || Xi || wJ || !V7 || !U7 ? !bJ && Ih && Ih.resolve ? ((J1 = Ih.resolve(void 0)).constructor = Ih, H7 = Vu(J1.then, J1), Ks = function() {
  H7(Uc);
}) : Xi ? Ks = function() {
  W7.nextTick(Uc);
} : (Q1 = Vu(Q1, X), Ks = function() {
  Q1(Uc);
}) : (X1 = true, Z1 = U7.createTextNode(""), new V7(Uc).observe(Z1, { characterData: true }), Ks = function() {
  Z1.data = X1 = !X1;
}));
var tb, q7, sN, K7, lN = uN || function(t10) {
  var e = { fn: t10, next: void 0 };
  nd && (nd.next = e), ou || (ou = e, Ks()), nd = e;
}, DJ = function(t10) {
  var e, r;
  this.promise = new t10((function(n, o) {
    if (e !== void 0 || r !== void 0) throw TypeError("Bad Promise constructor");
    e = n, r = o;
  })), this.resolve = ga(e), this.reject = ga(r);
}, q5 = { f: function(t10) {
  return new DJ(t10);
} }, yE = function(t10) {
  try {
    return { error: false, value: t10() };
  } catch (e) {
    return { error: true, value: e };
  }
}, CJ = typeof window == "object", cN = aN.set, xJ = xe("species"), lo = "Promise", Y7 = Cr.getterFor(lo), SJ = Cr.set, AJ = Cr.getterFor(lo), Ja = Qv && Qv.prototype, go = Qv, Wc = Ja, fN = X.TypeError, mE = X.document, K5 = X.process, sl = q5.f, OJ = sl, kJ = !!(mE && mE.createEvent && X.dispatchEvent), dN = ne(X.PromiseRejectionEvent), pN = false, od = _d(lo, (function() {
  var t10 = ky(go), e = t10 !== String(go);
  if (!e && Bd === 66) return true;
  if (Bd >= 51 && /native code/.test(t10)) return false;
  var r = new go((function(o) {
    o(1);
  })), n = function(o) {
    o((function() {
    }), (function() {
    }));
  };
  return (r.constructor = {})[xJ] = n, !(pN = r.then((function() {
  })) instanceof n) || !e && CJ && !dN;
})), BJ = od || !T5((function(t10) {
  go.all(t10).catch((function() {
  }));
})), hN = function(t10) {
  var e;
  return !(!fe(t10) || !ne(e = t10.then)) && e;
}, Y5 = function(t10, e) {
  if (!t10.notified) {
    t10.notified = true;
    var r = t10.reactions;
    lN((function() {
      for (var n = t10.value, o = t10.state == 1, i = 0; r.length > i; ) {
        var a, u, s, l = r[i++], c = o ? l.ok : l.fail, f = l.resolve, d = l.reject, p = l.domain;
        try {
          c ? (o || (t10.rejection === 2 && TJ(t10), t10.rejection = 1), c === true ? a = n : (p && p.enter(), a = c(n), p && (p.exit(), s = true)), a === l.promise ? d(fN("Promise-chain cycle")) : (u = hN(a)) ? qt(u, a, f, d) : f(a)) : d(n);
        } catch (v) {
          p && !s && p.exit(), d(v);
        }
      }
      t10.reactions = [], t10.notified = false, e && !t10.rejection && FJ(t10);
    }));
  }
}, gN = function(t10, e, r) {
  var n, o;
  kJ ? ((n = mE.createEvent("Event")).promise = e, n.reason = r, n.initEvent(t10, false, true), X.dispatchEvent(n)) : n = { promise: e, reason: r }, !dN && (o = X["on" + t10]) ? o(n) : t10 === "unhandledrejection" && (function(i, a) {
    var u = X.console;
    u && u.error && (arguments.length == 1 ? u.error(i) : u.error(i, a));
  })("Unhandled promise rejection", r);
}, FJ = function(t10) {
  qt(cN, X, (function() {
    var e, r = t10.facade, n = t10.value;
    if (X7(t10) && (e = yE((function() {
      Xi ? K5.emit("unhandledRejection", n, r) : gN("unhandledrejection", r, n);
    })), t10.rejection = Xi || X7(t10) ? 2 : 1, e.error)) throw e.value;
  }));
}, X7 = function(t10) {
  return t10.rejection !== 1 && !t10.parent;
}, TJ = function(t10) {
  qt(cN, X, (function() {
    var e = t10.facade;
    Xi ? K5.emit("rejectionHandled", e) : gN("rejectionhandled", e, t10.value);
  }));
}, el = function(t10, e, r) {
  return function(n) {
    t10(e, n, r);
  };
}, ll = function(t10, e, r) {
  t10.done || (t10.done = true, r && (t10 = r), t10.value = e, t10.state = 2, Y5(t10, true));
}, bE = function(t10, e, r) {
  if (!t10.done) {
    t10.done = true, r && (t10 = r);
    try {
      if (t10.facade === e) throw fN("Promise can't be resolved itself");
      var n = hN(e);
      n ? lN((function() {
        var o = { done: false };
        try {
          qt(n, e, el(bE, o, t10), el(ll, o, t10));
        } catch (i) {
          ll(o, i, t10);
        }
      })) : (t10.value = e, t10.state = 1, Y5(t10, false));
    } catch (o) {
      ll({ done: false }, o, t10);
    }
  }
};
if (od && (Wc = (go = function(t10) {
  Ly(this, Wc), ga(t10), qt(tb, this);
  var e = Y7(this);
  try {
    t10(el(bE, e), el(ll, e));
  } catch (r) {
    ll(e, r);
  }
}).prototype, (tb = function(t10) {
  SJ(this, { type: lo, done: false, notified: false, parent: false, reactions: [], rejection: false, state: 0, value: void 0 });
}).prototype = Nl(Wc, { then: function(t10, e) {
  var r = AJ(this), n = r.reactions, o = sl(nN(this, go));
  return o.ok = !ne(t10) || t10, o.fail = ne(e) && e, o.domain = Xi ? K5.domain : void 0, r.parent = true, n[n.length] = o, r.state != 0 && Y5(r, false), o.promise;
}, catch: function(t10) {
  return this.then(void 0, t10);
} }), q7 = function() {
  var t10 = new tb(), e = Y7(t10);
  this.promise = t10, this.resolve = el(bE, e), this.reject = el(ll, e);
}, q5.f = sl = function(t10) {
  return t10 === go || t10 === sN ? new q7(t10) : OJ(t10);
}, ne(Qv) && Ja !== Object.prototype)) {
  K7 = Ja.then, pN || (Hr(Ja, "then", (function(t10, e) {
    var r = this;
    return new go((function(n, o) {
      qt(K7, r, n, o);
    })).then(t10, e);
  }), { unsafe: true }), Hr(Ja, "catch", Wc.catch, { unsafe: true }));
  try {
    delete Ja.constructor;
  } catch {
  }
  jl && jl(Ja, Wc);
}
De({ global: true, wrap: true, forced: od }, { Promise: go }), qv(go, lo, false), W5(lo), sN = os(lo), De({ target: lo, stat: true, forced: od }, { reject: function(t10) {
  var e = sl(this);
  return qt(e.reject, void 0, t10), e.promise;
} }), De({ target: lo, stat: true, forced: od }, { resolve: function(t10) {
  return (function(e, r) {
    if (Le(e), fe(r) && r.constructor === e) return r;
    var n = q5.f(e);
    return (0, n.resolve)(r), n.promise;
  })(this, t10);
} }), De({ target: lo, stat: true, forced: BJ }, { all: function(t10) {
  var e = this, r = sl(e), n = r.resolve, o = r.reject, i = yE((function() {
    var a = ga(e.resolve), u = [], s = 0, l = 1;
    Id(t10, (function(c) {
      var f = s++, d = false;
      l++, qt(a, e, c).then((function(p) {
        d || (d = true, u[f] = p, --l || n(u));
      }), o);
    })), --l || n(u);
  }));
  return i.error && o(i.value), r.promise;
}, race: function(t10) {
  var e = this, r = sl(e), n = r.reject, o = yE((function() {
    var i = ga(e.resolve);
    Id(t10, (function(a) {
      qt(i, e, a).then(r.resolve, n);
    }));
  }));
  return o.error && n(o.value), r.promise;
} });
var Cs = Ny.UNSUPPORTED_Y, _J = Math.min, vN = [].push, PJ = pt(/./.exec), xs = pt(vN), Gc = pt("".slice);
function kn(t10) {
  Promise.resolve().then(t10);
}
function yN(t10, e) {
  return ct.isElement(t10) ? (function(r, n) {
    var o = r.type, i = o === void 0 ? "" : o, a = r.children, u = a === void 0 ? [] : a, s = E.isVoid(n, r), l = "";
    s || (l = u.map((function(m) {
      return yN(m, n);
    })).join(""));
    var c = (function(m) {
      return rN[m] || pJ;
    })(i), f = c(r, l, n), d = "";
    if (d = typeof f == "string" ? f : f.html || "", s || gE.forEach((function(m) {
      return d = m(r, d);
    })), typeof f == "string") return d;
    var p = f.prefix, v = p === void 0 ? "" : p, y = f.suffix, g = y === void 0 ? "" : y;
    return v && (d = v + d), g && (d += g), d;
  })(t10, e) : (function(r, n) {
    var o = r.text;
    if (o == null) throw new Error("Current node is not slate Text " + JSON.stringify(r));
    var i = o;
    i = (function(s) {
      return s.replace(/ {2}/g, " &nbsp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/庐/g, "&reg;").replace(/漏/g, "&copy;").replace(/鈩?g, "&trade;");
    })(i);
    var a = A.getParentsNodes(n, r).some((function(s) {
      return A.getNodeType(s) === "pre";
    }));
    if (a || (i = i.replace(/\r\n|\r|\n/g, "<br>")), a && (i = i.replace(/&nbsp;/g, " ")), i === "") {
      var u = A.getParentNode(null, r);
      if (!u || u.children.length !== 0) return i;
      i = "<br>";
    }
    return gE.forEach((function(s) {
      return i = s(r, i);
    })), i;
  })(t10, e);
}
function mN(t10) {
  return "w-e-element-" + t10;
}
M5("split", (function(t10, e, r) {
  var n;
  return n = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(o, i) {
    var a = ie(On(this)), u = i === void 0 ? 4294967295 : i >>> 0;
    if (u === 0) return [];
    if (o === void 0) return [a];
    if (!O5(o)) return qt(e, a, o, u);
    for (var s, l, c, f = [], d = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (o.sticky ? "y" : ""), p = 0, v = new RegExp(o.source, d + "g"); (s = qt(jd, v, a)) && !((l = v.lastIndex) > p && (xs(f, Gc(a, p, s.index)), s.length > 1 && s.index < a.length && R5(vN, f, iE(s, 1)), c = s[0].length, p = l, f.length >= u)); ) v.lastIndex === s.index && v.lastIndex++;
    return p === a.length ? !c && PJ(v, "") || xs(f, "") : xs(f, Gc(a, p)), f.length > u ? iE(f, 0, u) : f;
  } : "0".split(void 0, 0).length ? function(o, i) {
    return o === void 0 && i === 0 ? [] : qt(e, this, o, i);
  } : e, [function(o, i) {
    var a = On(this), u = o == null ? void 0 : Hu(o, t10);
    return u ? qt(u, o, a, i) : qt(n, ie(a), o, i);
  }, function(o, i) {
    var a = Le(this), u = ie(o), s = r(n, a, u, i, n !== e);
    if (s.done) return s.value;
    var l = nN(a, RegExp), c = a.unicode, f = (a.ignoreCase ? "i" : "") + (a.multiline ? "m" : "") + (a.unicode ? "u" : "") + (Cs ? "g" : "y"), d = new l(Cs ? "^(?:" + a.source + ")" : a, f), p = i === void 0 ? 4294967295 : i >>> 0;
    if (p === 0) return [];
    if (u.length === 0) return Nd(d, u) === null ? [u] : [];
    for (var v = 0, y = 0, g = []; y < u.length; ) {
      d.lastIndex = Cs ? 0 : y;
      var m, h = Nd(d, Cs ? Gc(u, y) : u);
      if (h === null || (m = _J(Ql(d.lastIndex + (Cs ? y : 0)), u.length)) === v) y = z5(u, y, c);
      else {
        if (xs(g, Gc(u, v, y)), g.length === p) return g;
        for (var b = 1; b <= h.length - 1; b++) if (xs(g, h[b]), g.length === p) return g;
        y = v = m;
      }
    }
    return xs(g, Gc(u, v)), g;
  }];
}), !!Zt((function() {
  var t10 = /(?:)/, e = t10.exec;
  t10.exec = function() {
    return e.apply(this, arguments);
  };
  var r = "ab".split(t10);
  return r.length !== 2 || r[0] !== "a" || r[1] !== "b";
})), Cs);
var Z7 = function(t10, e) {
  var r = (e.top + e.bottom) / 2;
  return t10.top <= r && t10.bottom >= r;
}, J7 = function(t10, e, r) {
  var n = A.toDOMRange(t10, e).getBoundingClientRect(), o = A.toDOMRange(t10, r).getBoundingClientRect();
  return Z7(n, o) && Z7(o, n);
}, bN = ["span", "b", "strong", "i", "em", "s", "strike", "u", "font", "sub", "sup"], wN = [], X5 = [], t0 = {}, jJ = Jn.f, NJ = Td.f, IJ = Cr.enforce, LJ = xe("match"), Xo = X.RegExp, Ys = Xo.prototype, RJ = X.SyntaxError, MJ = pt(A5), zJ = pt(Ys.exec), Lh = pt("".charAt), Q7 = pt("".replace), t9 = pt("".indexOf), $J = pt("".slice), HJ = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, Eu = /a/g, eb = /a/g, VJ = new Xo(Eu) !== Eu, EN = Ny.MISSED_STICKY, UJ = Ny.UNSUPPORTED_Y, WJ = nr && (!VJ || EN || N5 || I5 || Zt((function() {
  return eb[LJ] = false, Xo(Eu) != Eu || Xo(eb) == eb || Xo(Eu, "i") != "/a/i";
})));
if (_d("RegExp", WJ)) {
  for (var xi = function(t10, e) {
    var r, n, o, i, a, u, s = $u(Ys, this), l = O5(t10), c = e === void 0, f = [], d = t10;
    if (!s && l && c && t10.constructor === xi) return t10;
    if ((l || $u(Ys, t10)) && (t10 = t10.source, c && (e = "flags" in d ? d.flags : MJ(d))), t10 = t10 === void 0 ? "" : ie(t10), e = e === void 0 ? "" : ie(e), d = t10, N5 && "dotAll" in Eu && (n = !!e && t9(e, "s") > -1) && (e = Q7(e, /s/g, "")), r = e, EN && "sticky" in Eu && (o = !!e && t9(e, "y") > -1) && UJ && (e = Q7(e, /y/g, "")), I5 && (i = (function(p) {
      for (var v, y = p.length, g = 0, m = "", h = [], b = {}, w = false, D = false, x = 0, C = ""; g <= y; g++) {
        if ((v = Lh(p, g)) === "\\") v += Lh(p, ++g);
        else if (v === "]") w = false;
        else if (!w) switch (true) {
          case v === "[":
            w = true;
            break;
          case v === "(":
            zJ(HJ, $J(p, g + 1)) && (g += 2, D = true), m += v, x++;
            continue;
          case (v === ">" && D):
            if (C === "" || Ie(b, C)) throw new RJ("Invalid capture group name");
            b[C] = true, h[h.length] = [C, x], D = false, C = "";
            continue;
        }
        D ? C += v : m += v;
      }
      return [m, h];
    })(t10), t10 = i[0], f = i[1]), a = Wj(Xo(t10, e), s ? this : Ys, xi), (n || o || f.length) && (u = IJ(a), n && (u.dotAll = true, u.raw = xi((function(p) {
      for (var v, y = p.length, g = 0, m = "", h = false; g <= y; g++) (v = Lh(p, g)) !== "\\" ? h || v !== "." ? (v === "[" ? h = true : v === "]" && (h = false), m += v) : m += "[\\s\\S]" : m += v + Lh(p, ++g);
      return m;
    })(t10), r)), o && (u.sticky = true), f.length && (u.groups = f)), t10 !== d) try {
      Wn(a, "source", d === "" ? "(?:)" : d);
    } catch {
    }
    return a;
  }, GJ = function(t10) {
    t10 in xi || jJ(xi, t10, { configurable: true, get: function() {
      return Xo[t10];
    }, set: function(e) {
      Xo[t10] = e;
    } });
  }, e9 = NJ(Xo), r9 = 0; e9.length > r9; ) GJ(e9[r9++]);
  Ys.constructor = xi, xi.prototype = Ys, Hr(X, "RegExp", xi);
}
W5("RegExp");
var qJ = new RegExp("\xA0", "g");
function DN(t10) {
  return t10.replace(qJ, " ");
}
function n9(t10, e) {
  var r = t10.length;
  if (r) {
    var n = t10[r - 1];
    if (ot.isText(n)) {
      var o = Object.keys(n);
      if (o.length === 1 && o[0] === "text") return n.text = n.text + e, true;
    }
  }
  return false;
}
function KJ(t10, e, r) {
  return { type: "paragraph", children: [{ text: B(t10).text().replace(/\s+/gm, " ") }] };
}
function rb(t10, e) {
  var r = (function(i, a) {
    var u = [];
    if (i.attr("data-w-e-is-void") != null) return u;
    var s = i[0].childNodes;
    return s.length === 1 && s[0].nodeName === "BR" ? (u.push({ text: "" }), u) : (s.forEach((function(l) {
      if (l.nodeType !== po.ELEMENT_NODE) {
        if (l.nodeType === po.TEXT_NODE) {
          var c = l.textContent || "";
          if (c.trim() === "" && c.indexOf(`
`) >= 0) return;
          c && (c = DN(c), n9(u, c) || u.push({ text: c }));
        }
      } else {
        if (l.nodeName === "BR") return void (n9(u, `
`) || u.push({ text: `
` }));
        var f = Z5(B(l), a);
        Array.isArray(f) ? f.forEach((function(d) {
          return u.push(d);
        })) : u.push(f);
      }
    })), u);
  })(t10, e), n = (function(i) {
    for (var a in t0) if (i[0].matches(a)) return t0[a];
    return KJ;
  })(t10), o = n(t10[0], r, e);
  return Array.isArray(o) || (o = [o]), o.forEach((function(i) {
    E.isVoid(e, i) || (r.length === 0 && (i.children = [{ text: t10.text().replace(/\s+/gm, " ") }]), X5.forEach((function(a) {
      i = a(t10[0], i, e);
    })));
  })), o;
}
function nb(t10, e) {
  t10.parents("pre").length === 0 && (t10[0].innerHTML = t10[0].innerHTML.replace(/\s+/gm, " ").replace(/<br>/g, `
`));
  var r = t10[0].textContent || "";
  r = (function(o) {
    return o.replace(/&nbsp;/g, " ").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&reg;/g, "\xAE").replace(/&copy;/g, "\xA9").replace(/&trade;/g, "\u2122").replace(/&quot;/g, '"');
  })(r);
  var n = { text: r = DN(r) };
  return X5.forEach((function(o) {
    n = o(t10[0], n, e);
  })), n;
}
function Z5(t10, e) {
  wN.forEach((function(n) {
    var o = n.selector, i = n.preParseHtml;
    t10[0].matches(o) && (t10 = B(i(t10[0])));
  }));
  var r = j7(t10);
  return r === "span" ? t10.attr("data-w-e-type") ? rb(t10, e) : nb(t10, e) : r === "code" ? j7(t10.parent()) === "pre" ? rb(t10, e) : nb(t10, e) : bN.includes(r) ? nb(t10, e) : rb(t10, e);
}
function CN(t10, e, r) {
  var n = B(r);
  return !!n.attr(e) || (n.attr(e, "true"), t10.on("destroyed", (function() {
    n.removeAttr(e);
  })), false);
}
function o9(t10, e) {
  e === void 0 && (e = "");
  var r = [];
  e === "" && (e = "<p><br></p>"), e.indexOf("<") !== 0 && (e = e.split(/\n/).map((function(o) {
    return "<p>" + o + "</p>";
  })).join(""));
  var n = B("<div>" + e + "</div>");
  return Array.from(n.children()).forEach((function(o) {
    var i = Z5(B(o), t10);
    Array.isArray(i) ? i.forEach((function(a) {
      return r.push(a);
    })) : r.push(i);
  })), r;
}
var YJ = Jn.f, i9 = Iy.fastKey, a9 = Cr.set, ob = Cr.getterFor, XJ = { getConstructor: function(t10, e, r, n) {
  var o = t10((function(l, c) {
    Ly(l, i), a9(l, { type: e, index: Py(null), first: void 0, last: void 0, size: 0 }), nr || (l.size = 0), c != null && Id(c, l[n], { that: l, AS_ENTRIES: r });
  })), i = o.prototype, a = ob(e), u = function(l, c, f) {
    var d, p, v = a(l), y = s(l, c);
    return y ? y.value = f : (v.last = y = { index: p = i9(c, true), key: c, value: f, previous: d = v.last, next: void 0, removed: false }, v.first || (v.first = y), d && (d.next = y), nr ? v.size++ : l.size++, p !== "F" && (v.index[p] = y)), l;
  }, s = function(l, c) {
    var f, d = a(l), p = i9(c);
    if (p !== "F") return d.index[p];
    for (f = d.first; f; f = f.next) if (f.key == c) return f;
  };
  return Nl(i, { clear: function() {
    for (var l = a(this), c = l.index, f = l.first; f; ) f.removed = true, f.previous && (f.previous = f.previous.next = void 0), delete c[f.index], f = f.next;
    l.first = l.last = void 0, nr ? l.size = 0 : this.size = 0;
  }, delete: function(l) {
    var c = this, f = a(c), d = s(c, l);
    if (d) {
      var p = d.next, v = d.previous;
      delete f.index[d.index], d.removed = true, v && (v.next = p), p && (p.previous = v), f.first == d && (f.first = p), f.last == d && (f.last = v), nr ? f.size-- : c.size--;
    }
    return !!d;
  }, forEach: function(l) {
    for (var c, f = a(this), d = Vu(l, arguments.length > 1 ? arguments[1] : void 0); c = c ? c.next : f.first; ) for (d(c.value, c.key, this); c && c.removed; ) c = c.previous;
  }, has: function(l) {
    return !!s(this, l);
  } }), Nl(i, r ? { get: function(l) {
    var c = s(this, l);
    return c && c.value;
  }, set: function(l, c) {
    return u(this, l === 0 ? 0 : l, c);
  } } : { add: function(l) {
    return u(this, l = l === 0 ? 0 : l, l);
  } }), nr && YJ(i, "size", { get: function() {
    return a(this).size;
  } }), o;
}, setStrong: function(t10, e, r) {
  var n = e + " Iterator", o = ob(e), i = ob(n);
  P5(t10, e, (function(a, u) {
    a9(this, { type: n, target: a, state: o(a), kind: u, last: void 0 });
  }), (function() {
    for (var a = i(this), u = a.kind, s = a.last; s && s.removed; ) s = s.previous;
    return a.target && (a.last = s = s ? s.next : a.state.first) ? u == "keys" ? { value: s.key, done: false } : u == "values" ? { value: s.value, done: false } : { value: [s.key, s.value], done: false } : (a.target = void 0, { value: void 0, done: true });
  }), r ? "entries" : "values", !r, true), W5(e);
} };
Gj("Set", (function(t10) {
  return function() {
    return t10(this, arguments.length ? arguments[0] : void 0);
  };
}), XJ);
var u9 = /* @__PURE__ */ new Set(["doctype", "!doctype", "meta", "script", "style", "link", "frame", "iframe", "title", "svg"]);
function s9(t10, e) {
  t10.isInline(e) ? (t10.insertNode(e), e.type === "link" && t10.insertFragment([{ text: "" }])) : N.insertNodes(t10, e, { mode: "highest" });
}
var ZJ = function(t10) {
  var e = t10, r = e.insertText;
  return e.insertFragment, e.setFragmentData = function(n) {
    var o = e.selection;
    if (o) {
      var i = Ht(L.edges(o), 2), a = i[0], u = i[1], s = E.void(e, { at: a.path }), l = E.void(e, { at: u.path });
      if (!L.isCollapsed(o) || s) {
        var c = A.toDOMRange(e, o), f = c.cloneContents(), d = f.childNodes[0];
        if (f.childNodes.forEach((function(D) {
          D.textContent && D.textContent.trim() !== "" && (d = D);
        })), l) {
          var p = Ht(l, 1)[0], v = c.cloneRange(), y = A.toDOMNode(e, p);
          v.setEndAfter(y), f = v.cloneContents();
        }
        if (s && (d = f.querySelector("[data-slate-spacer]")), Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach((function(D) {
          var x = D.getAttribute("data-slate-zero-width") === "n";
          D.textContent = x ? `
` : "";
        })), Jj(d)) {
          var g = d.ownerDocument.createElement("span");
          g.style.whiteSpace = "pre", g.appendChild(d), f.appendChild(g), d = g;
        }
        var m = e.getFragment(), h = JSON.stringify(m), b = window.btoa(encodeURIComponent(h));
        d.setAttribute("data-slate-fragment", b), n.setData("application/x-slate-fragment", b);
        var w = f.ownerDocument.createElement("div");
        return w.appendChild(f), w.setAttribute("hidden", "true"), f.ownerDocument.body.appendChild(w), n.setData("text/html", w.innerHTML), n.setData("text/plain", eJ(w)), f.ownerDocument.body.removeChild(w), n;
      }
    }
  }, e.insertData = function(n) {
    var o, i, a = n.getData("application/x-slate-fragment");
    if (a) {
      var u = decodeURIComponent(window.atob(a)), s = JSON.parse(u);
      e.insertFragment(s);
    } else {
      var l = n.getData("text/plain"), c = n.getData("text/html");
      if (c) e.dangerouslyInsertHtml(c);
      else if (l) {
        var f = l.split(/\r\n|\r|\n/), d = false;
        try {
          for (var p = bn(f), v = p.next(); !v.done; v = p.next()) {
            var y = v.value;
            d && N.splitNodes(e, { always: true }), r(y), d = true;
          }
        } catch (g) {
          o = { error: g };
        } finally {
          try {
            v && !v.done && (i = p.return) && i.call(p);
          } finally {
            if (o) throw o.error;
          }
        }
      }
    }
  }, e;
}, Vf = function(t10) {
  return t10 != null;
}, JJ = { object: true, function: true, undefined: true }, QJ = /^\s*class[\s{/}]/, tQ = Function.prototype.toString, l9 = function(t10) {
  return !!(function(e) {
    if (typeof e != "function" || !hasOwnProperty.call(e, "length")) return false;
    try {
      if (typeof e.length != "number" || typeof e.call != "function" || typeof e.apply != "function") return false;
    } catch {
      return false;
    }
    return !(function(r) {
      if (!(function(n) {
        return !!Vf(n) && hasOwnProperty.call(JJ, typeof n);
      })(r)) return false;
      try {
        return !!r.constructor && r.constructor.prototype === r;
      } catch {
        return false;
      }
    })(e);
  })(t10) && !QJ.test(tQ.call(t10));
}, J5 = function(t10) {
  return t10 != null;
}, eQ = Object.keys, rQ = (function() {
  try {
    return Object.keys("primitive"), true;
  } catch {
    return false;
  }
})() ? Object.keys : function(t10) {
  return eQ(J5(t10) ? Object(t10) : t10);
}, nQ = function(t10) {
  if (!J5(t10)) throw new TypeError("Cannot use null or undefined");
  return t10;
}, oQ = Math.max, c9 = (function() {
  var t10, e = Object.assign;
  return typeof e == "function" && (e(t10 = { foo: "raz" }, { bar: "dwa" }, { trzy: "trzy" }), t10.foo + t10.bar + t10.trzy === "razdwatrzy");
})() ? Object.assign : function(t10, e) {
  var r, n, o, i = oQ(arguments.length, 2);
  for (t10 = Object(nQ(t10)), o = function(a) {
    try {
      t10[a] = e[a];
    } catch (u) {
      r || (r = u);
    }
  }, n = 1; n < i; ++n) rQ(e = arguments[n]).forEach(o);
  if (r !== void 0) throw r;
  return t10;
}, iQ = Array.prototype.forEach, aQ = Object.create, uQ = function(t10, e) {
  var r;
  for (r in t10) e[r] = t10[r];
}, f9 = function(t10) {
  var e = aQ(null);
  return iQ.call(arguments, (function(r) {
    J5(r) && uQ(Object(r), e);
  })), e;
}, ib = "razdwatrzy", sQ = String.prototype.indexOf, qc = typeof ib.contains == "function" && ib.contains("dwa") === true && ib.contains("foo") === false ? String.prototype.contains : function(t10) {
  return sQ.call(this, t10, arguments[1]) > -1;
}, Rh = Fp((function(t10) {
  var e = t10.exports = function(r, n) {
    var o, i, a, u, s;
    return arguments.length < 2 || typeof r != "string" ? (u = n, n = r, r = null) : u = arguments[2], Vf(r) ? (o = qc.call(r, "c"), i = qc.call(r, "e"), a = qc.call(r, "w")) : (o = a = true, i = false), s = { value: n, configurable: o, enumerable: i, writable: a }, u ? c9(f9(u), s) : s;
  };
  e.gs = function(r, n, o) {
    var i, a, u, s;
    return typeof r != "string" ? (u = o, o = n, n = r, r = null) : u = arguments[3], Vf(n) ? l9(n) ? Vf(o) ? l9(o) || (u = o, o = void 0) : o = void 0 : (u = n, n = o = void 0) : n = void 0, Vf(r) ? (i = qc.call(r, "c"), a = qc.call(r, "e")) : (i = true, a = false), s = { get: n, set: o, configurable: i, enumerable: a }, u ? c9(f9(u), s) : s;
  };
})), ab = function(t10) {
  if (typeof t10 != "function") throw new TypeError(t10 + " is not a function");
  return t10;
}, lQ = Fp((function(t10, e) {
  var r, n, o, i, a, u, s, l = Function.prototype.apply, c = Function.prototype.call, f = Object.create, d = Object.defineProperty, p = Object.defineProperties, v = Object.prototype.hasOwnProperty, y = { configurable: true, enumerable: false, writable: true };
  r = function(g, m) {
    var h;
    return ab(m), v.call(this, "__ee__") ? h = this.__ee__ : (h = y.value = f(null), d(this, "__ee__", y), y.value = null), h[g] ? typeof h[g] == "object" ? h[g].push(m) : h[g] = [h[g], m] : h[g] = m, this;
  }, n = function(g, m) {
    var h, b;
    return ab(m), b = this, r.call(this, g, h = function() {
      o.call(b, g, h), l.call(m, this, arguments);
    }), h.__eeOnceListener__ = m, this;
  }, o = function(g, m) {
    var h, b, w, D;
    if (ab(m), !v.call(this, "__ee__")) return this;
    if (!(h = this.__ee__)[g]) return this;
    if (typeof (b = h[g]) == "object") for (D = 0; w = b[D]; ++D) w !== m && w.__eeOnceListener__ !== m || (b.length === 2 ? h[g] = b[D ? 0 : 1] : b.splice(D, 1));
    else b !== m && b.__eeOnceListener__ !== m || delete h[g];
    return this;
  }, i = function(g) {
    var m, h, b, w, D;
    if (v.call(this, "__ee__") && (w = this.__ee__[g])) if (typeof w == "object") {
      for (h = arguments.length, D = new Array(h - 1), m = 1; m < h; ++m) D[m - 1] = arguments[m];
      for (w = w.slice(), m = 0; b = w[m]; ++m) l.call(b, this, D);
    } else switch (arguments.length) {
      case 1:
        c.call(w, this);
        break;
      case 2:
        c.call(w, this, arguments[1]);
        break;
      case 3:
        c.call(w, this, arguments[1], arguments[2]);
        break;
      default:
        for (h = arguments.length, D = new Array(h - 1), m = 1; m < h; ++m) D[m - 1] = arguments[m];
        l.call(w, this, D);
    }
  }, a = { on: r, once: n, off: o, emit: i }, u = { on: Rh(r), once: Rh(n), off: Rh(o), emit: Rh(i) }, s = p({}, u), t10.exports = e = function(g) {
    return g == null ? f(s) : p(Object(g), u);
  }, e.methods = a;
}));
function Mh(t10) {
  var e = T7.get(t10);
  return e == null && (e = lQ(), T7.set(t10, e)), e;
}
var e0 = /* @__PURE__ */ new WeakMap();
function d9(t10, e) {
  var r = e0.get(t10);
  r == null && (r = /* @__PURE__ */ new Set(), e0.set(t10, r)), r.add(e);
}
function cQ(t10) {
  return e0.get(t10) || /* @__PURE__ */ new Set();
}
function fQ(t10) {
  e0.set(t10, /* @__PURE__ */ new Set());
}
function Q5(t10) {
  var e = A.getTextarea(t10).$textAreaContainer, r = e.width(), n = e.height(), o = e.offset();
  return { top: o.top, left: o.left, width: r, height: n };
}
function tD(t10) {
  var e = { top: "0", left: "0" }, r = t10.selection;
  if (r == null) return e;
  var n = Q5(t10);
  if (n == null) return e;
  var o = n.top, i = n.left, a = n.width, u = n.height, s = A.toDOMRange(t10, r).getClientRects()[0];
  if (s == null) return e;
  s.width;
  var l = s.height, c = {}, f = s.top - o, d = s.left - i;
  if (d > a / 2) {
    var p = a - d;
    c.right = p + 5 + "px";
  } else c.left = d + 5 + "px";
  if (f > u / 2) {
    var v = u - f;
    c.bottom = v + 5 + "px";
  } else {
    var y = f + l;
    y < 0 && (y = 0), c.top = y + 5 + "px";
  }
  return c;
}
function eD(t10, e, r) {
  r === void 0 && (r = "modal");
  var n = { top: "0", left: "0" };
  if (t10.selection == null) return n;
  var o = ct.isElement(e) && t10.isVoid(e), i = ct.isElement(e) && t10.isInline(e), a = Zv.get(e);
  if (a == null) return n;
  var u = a.getBoundingClientRect(), s = u.top, l = u.left, c = u.height, f = u.width;
  if (o) {
    var d = (function(C) {
      var O = [];
      O.push(C);
      for (var T = 0; O.length > 0; ) {
        var R = O.pop();
        if (R == null || ++T > 1e4) break;
        var H = R.nodeName;
        if (R.nodeType === 1) {
          var M = H.toLowerCase();
          if (QZ.includes(M) || M === "iframe" || M === "video") return R;
          var K = R.children || [], U = K.length;
          if (U) for (var W = U - 1; W >= 0; W--) O.push(K[W]);
        }
      }
      return null;
    })(a);
    if (d != null) {
      var p = d.getBoundingClientRect();
      s = p.top, c = p.height;
    }
  }
  var v = Q5(t10);
  if (v == null) return n;
  var y, g = v.top, m = v.left, h = v.width, b = v.height, w = {}, D = s - g, x = l - m;
  if (r === "bar") return w.left = x + "px", D > 40 ? w.bottom = b - D + 5 + "px" : w.top = D + c + 5 + "px", w;
  if (r === "modal") return o ? i ? x > (h - f) / 2 ? w.right = h - x + 5 + "px" : w.left = x + f + 5 + "px" : w.left = "20px" : w.left = x + "px", o ? ((y = D) < 0 && (y = 0), w.top = y + "px") : D > (b - c) / 2 ? w.bottom = b - D + 5 + "px" : ((y = D + c) < 0 && (y = 0), w.top = y + 5 + "px"), w;
  throw new Error("type '" + r + "' is invalid");
}
function wE(t10, e) {
  kn((function() {
    var r = Q5(t10);
    if (r != null) {
      var n, o = r.top, i = r.left, a = r.width, u = r.height, s = e.offset(), l = s.top, c = s.left, f = e.width(), d = e.height(), p = l - o, v = c - i, y = e.attr("style");
      if (y.indexOf("top") >= 0 && (n = p + d - u) > 0) {
        var g = e.css("top"), m = parseInt(g.toString()) - n;
        m < 0 && (m = 0), e.css("top", m + "px");
      }
      if (y.indexOf("bottom") >= 0 && l < 0) {
        var h = e.css("bottom"), b = parseInt(h.toString()) - Math.abs(l);
        e.css("bottom", b + "px");
      }
      if (y.indexOf("left") >= 0 && (n = v + f - a) > 0) {
        var w = e.css("left"), D = parseInt(w.toString()) - n;
        D < 0 && (D = 0), e.css("left", D + "px");
      }
      if (y.indexOf("right") >= 0 && c < 0) {
        var x = e.css("right"), C = parseInt(x.toString()) - Math.abs(c);
        e.css("right", C + "px");
      }
    }
  }));
}
var dQ = jy("slice"), pQ = xe("species"), ub = X.Array, hQ = Math.max;
De({ target: "Array", proto: true, forced: !dQ }, { slice: function(t10, e) {
  var r, n, o, i = Oa(this), a = is(i), u = _l(t10, a), s = _l(e === void 0 ? a : e, a);
  if (Uv(i) && (r = i.constructor, (_y(r) && (r === ub || Uv(r.prototype)) || fe(r) && (r = r[pQ]) === null) && (r = void 0), r === ub || r === void 0)) return oN(i, u, s);
  for (n = new (r === void 0 ? ub : r)(hQ(s - u, 0)), o = 0; u < s; u++, o++) u in i && Pd(n, o, i[u]);
  return n.length = o, n;
} });
var gQ = _p.f, p9 = pt("".startsWith), vQ = pt("".slice), yQ = Math.min, xN = B5("startsWith"), mQ = !xN && !!(function() {
  var t10 = gQ(String.prototype, "startsWith");
  return t10 && !t10.writable;
})();
De({ target: "String", proto: true, forced: !mQ && !xN }, { startsWith: function(t10) {
  var e = ie(On(this));
  k5(t10);
  var r = Ql(yQ(arguments.length > 1 ? arguments[1] : void 0, e.length)), n = ie(t10);
  return p9 ? p9(e, n, r) : vQ(e, r, r + n.length) === n;
} });
var Ss = Object.assign, h9 = Object.defineProperty, bQ = pt([].concat), g9 = !Ss || Zt((function() {
  if (nr && Ss({ b: 1 }, Ss(h9({}, "a", { enumerable: true, get: function() {
    h9(this, "b", { value: 3, enumerable: false });
  } }), { b: 2 })).b !== 1) return true;
  var t10 = {}, e = {}, r = /* @__PURE__ */ Symbol(), n = "abcdefghijklmnopqrst";
  return t10[r] = 7, n.split("").forEach((function(o) {
    e[o] = o;
  })), Ss({}, t10)[r] != 7 || ul(Ss({}, e)).join("") != n;
})) ? function(t10, e) {
  for (var r = Aa(t10), n = arguments.length, o = 1, i = jj.f, a = Tj.f; n > o; ) for (var u, s = Ty(arguments[o++]), l = i ? bQ(ul(s), i(s)) : ul(s), c = l.length, f = 0; c > f; ) u = l[f++], nr && !qt(a, s, u) || (r[u] = s[u]);
  return r;
} : Ss;
De({ target: "Object", stat: true, forced: Object.assign !== g9 }, { assign: g9 });
var wQ = ["props", "attrs", "style", "dataset", "on", "hook"];
function SN(t10) {
  var e = t10.data, r = e === void 0 ? {} : e, n = t10.children, o = n === void 0 ? [] : n;
  Object.keys(r).forEach((function(i) {
    var a, u, s = r[i];
    if (i !== "key") {
      if (!wQ.includes(i)) {
        if (i.startsWith("data-")) {
          var l = i.slice(5);
          return l = Uq(l), (function(c, f) {
            c.data == null && (c.data = {});
            var d = c.data;
            d.dataset == null && (d.dataset = {}), Object.assign(d.dataset, f);
          })(t10, ((a = {})[l] = s, a)), void delete r[i];
        }
        (function(c, f) {
          c.data == null && (c.data = {});
          var d = c.data;
          d.props == null && (d.props = {}), Object.assign(d.props, f);
        })(t10, (u = {}, u[i] = s, u)), delete r[i];
      }
    } else t10.key = s;
  })), o.length > 0 && o.forEach((function(i) {
    typeof i != "string" && SN(i);
  }));
}
var EE = [], AN = {};
function EQ(t10, e, r) {
  return bt(r.isInline(t10) ? "span" : "div", null, e);
}
function v9(t10, e) {
  return e === void 0 && (e = false), bt("span", { "data-slate-string": true }, e ? t10 + `
` : t10);
}
function sb(t10, e) {
  return t10 === void 0 && (t10 = 0), e === void 0 && (e = false), bt("span", { "data-slate-zero-width": e ? "n" : "z", "data-slate-length": t10 }, "\uFEFF", e ? bt("br", null) : null);
}
function DE(t10, e, r, n) {
  return Ld.set(t10, e), Il.set(t10, r), ct.isElement(t10) ? (function(o, i) {
    var a, u = A.findKey(i, o), s = i.isInline(o), l = E.isVoid(i, o), c = mN(u.id), f = { id: c, key: u.id, "data-slate-node": "element", "data-slate-inline": s }, d = o.type, p = o.children, v = p === void 0 ? [] : p, y = (function(D) {
      return AN[D] || EQ;
    })(d);
    a = l ? null : v.map((function(D, x) {
      return DE(D, x, o, i);
    }));
    var g = y(o, a, i);
    if (l) {
      f["data-slate-void"] = true;
      var m = s ? "span" : "div", h = Ht(J.texts(o), 1), b = Ht(h[0], 1)[0], w = bt(m, { "data-slate-spacer": true, style: { height: "0", color: "transparent", outline: "none", position: "absolute" } }, DE(b, 0, o, i));
      g = bt(m, { style: { position: "relative" } }, g, w), Ld.set(b, 0), Il.set(b, o);
    }
    return g.data == null && (g.data = {}), Object.assign(g.data, f), l || s || (g = (function(D, x) {
      var C = x;
      return EE.forEach((function(O) {
        C = O(D, x);
      })), C;
    })(o, g)), kn((function() {
      var D = fE(c);
      D != null && (cE.set(u, D), Zv.set(o, D), Xv.set(D, o));
    })), g;
  })(t10, n) : (function(o, i, a) {
    if (o.text == null) throw new Error("Current node is not slate Text " + JSON.stringify(o));
    var u = A.findKey(a, o), s = a.getConfig().decorate;
    if (s == null) throw new Error("Can not get config.decorate");
    var l = A.findPath(a, o), c = s([o, l]), f = ot.decorations(o, c), d = f.map((function(y, g) {
      var m = (function(h, b, w, D, x) {
        b === void 0 && (b = false);
        var C = h.text, O = A.findPath(x, w), T = j.parent(O);
        if (E.isEditor(D)) throw new Error("Text node " + JSON.stringify(w) + " parent is Editor");
        return x.isVoid(D) ? sb(J.string(D).length) : C !== "" || D.children[D.children.length - 1] !== w || x.isInline(D) || E.string(x, T) !== "" ? C === "" ? sb() : b && C.slice(-1) === `
` ? v9(C, true) : v9(C) : sb(0, true);
      })(y, g === f.length - 1, o, i, a);
      return m = (function(h, b) {
        var w = b;
        return EE.forEach((function(D) {
          w = D(h, w);
        })), w;
      })(y, m), bt("span", { "data-slate-leaf": true }, m);
    })), p = (function(y) {
      return "w-e-text-" + y;
    })(u.id), v = bt("span", { "data-slate-node": "text", id: p, key: u.id }, d);
    return kn((function() {
      var y = fE(p);
      y != null && (cE.set(u, y), Zv.set(o, y), Xv.set(y, o));
    })), v;
  })(t10, r, n);
}
function DQ(t10, e) {
  var r, n = t10.$scroll, o = (function(y) {
    return "w-e-textarea-" + y;
  })(t10.id), i = e.getConfig(), a = i.readOnly, u = i.autoFocus, s = (function(y, g) {
    return g === void 0 && (g = false), Tl("div#" + y, { props: { contentEditable: !g } });
  })(o, a), l = e.children || [];
  s.children = l.map((function(y, g) {
    var m = DE(y, g, e, e);
    return SN(m), m;
  }));
  var c = k7.get(t10);
  if (c == null && (c = true), c) {
    var f = (function(y, g) {
      return B(`<div
        id="` + y + `"
        data-slate-editor
        data-slate-node="value"
        suppressContentEditableWarning
        role="textarea"
        spellCheck="true"
        autoCorrect="true"
        autoCapitalize="true"
    ></div>`);
    })(o);
    n.append(f), t10.$textArea = f, r = f[0], (p = dq([hq, mq, wq, gq, yq, pq]))(r, s), k7.set(t10, false), B7.set(t10, p);
  } else {
    var d = F7.get(t10), p = B7.get(t10);
    if (d == null || p == null) return;
    r = d.elm, p(d, s);
  }
  if (r != null || (r = fE(o)) != null) {
    if ((c ? u : e.isFocused()) && r.focus({ preventScroll: true }), c) {
      var v = U5(r);
      v && Zj.set(e, v);
    }
    V5.set(e, r), Zv.set(e, r), Xv.set(r, e), F7.set(t10, s);
  }
}
function y9(t10) {
  return typeof t10 == "object" && t10 != null && t10.nodeType === 1;
}
function m9(t10, e) {
  return (!e || t10 !== "hidden") && t10 !== "visible" && t10 !== "clip";
}
function lb(t10, e) {
  if (t10.clientHeight < t10.scrollHeight || t10.clientWidth < t10.scrollWidth) {
    var r = getComputedStyle(t10, null);
    return m9(r.overflowY, e) || m9(r.overflowX, e) || (function(n) {
      var o = (function(i) {
        if (!i.ownerDocument || !i.ownerDocument.defaultView) return null;
        try {
          return i.ownerDocument.defaultView.frameElement;
        } catch {
          return null;
        }
      })(n);
      return !!o && (o.clientHeight < n.scrollHeight || o.clientWidth < n.scrollWidth);
    })(t10);
  }
  return false;
}
function zh(t10, e, r, n, o, i, a, u) {
  return i < t10 && a > e || i > t10 && a < e ? 0 : i <= t10 && u <= r || a >= e && u >= r ? i - t10 - n : a > e && u < r || i < t10 && u > r ? a - e + o : 0;
}
function b9(t10, e) {
  var r = window, n = e.scrollMode, o = e.block, i = e.inline, a = e.boundary, u = e.skipOverflowHiddenElements, s = typeof a == "function" ? a : function(Dt) {
    return Dt !== a;
  };
  if (!y9(t10)) throw new TypeError("Invalid target");
  for (var l = document.scrollingElement || document.documentElement, c = [], f = t10; y9(f) && s(f); ) {
    if ((f = f.parentElement) === l) {
      c.push(f);
      break;
    }
    f != null && f === document.body && lb(f) && !lb(document.documentElement) || f != null && lb(f, u) && c.push(f);
  }
  for (var d = r.visualViewport ? r.visualViewport.width : innerWidth, p = r.visualViewport ? r.visualViewport.height : innerHeight, v = window.scrollX || pageXOffset, y = window.scrollY || pageYOffset, g = t10.getBoundingClientRect(), m = g.height, h = g.width, b = g.top, w = g.right, D = g.bottom, x = g.left, C = o === "start" || o === "nearest" ? b : o === "end" ? D : b + m / 2, O = i === "center" ? x + h / 2 : i === "end" ? w : x, T = [], R = 0; R < c.length; R++) {
    var H = c[R], M = H.getBoundingClientRect(), K = M.height, U = M.width, W = M.top, q = M.right, et = M.bottom, st = M.left;
    if (n === "if-needed" && b >= 0 && x >= 0 && D <= p && w <= d && b >= W && D <= et && x >= st && w <= q) return T;
    var ut = getComputedStyle(H), at = parseInt(ut.borderLeftWidth, 10), k = parseInt(ut.borderTopWidth, 10), S = parseInt(ut.borderRightWidth, 10), P = parseInt(ut.borderBottomWidth, 10), $ = 0, Y = 0, V = "offsetWidth" in H ? H.offsetWidth - H.clientWidth - at - S : 0, it = "offsetHeight" in H ? H.offsetHeight - H.clientHeight - k - P : 0;
    if (l === H) $ = o === "start" ? C : o === "end" ? C - p : o === "nearest" ? zh(y, y + p, p, k, P, y + C, y + C + m, m) : C - p / 2, Y = i === "start" ? O : i === "center" ? O - d / 2 : i === "end" ? O - d : zh(v, v + d, d, at, S, v + O, v + O + h, h), $ = Math.max(0, $ + y), Y = Math.max(0, Y + v);
    else {
      $ = o === "start" ? C - W - k : o === "end" ? C - et + P + it : o === "nearest" ? zh(W, et, K, k, P + it, C, C + m, m) : C - (W + K / 2) + it / 2, Y = i === "start" ? O - st - at : i === "center" ? O - (st + U / 2) + V / 2 : i === "end" ? O - q + S + V : zh(st, q, U, at, S + V, O, O + h, h);
      var gt = H.scrollLeft, vt = H.scrollTop;
      C += vt - ($ = Math.max(0, Math.min(vt + $, H.scrollHeight - K + it))), O += gt - (Y = Math.max(0, Math.min(gt + Y, H.scrollWidth - U + V)));
    }
    T.push({ el: H, top: $, left: Y });
  }
  return T;
}
function w9(t10) {
  return t10 === Object(t10) && Object.keys(t10).length !== 0;
}
function gn(t10, e) {
  return Uu(e) && A.hasDOMNode(t10, e, { editable: true });
}
function E9(t10, e) {
  if (t10.getConfig().readOnly) return false;
  var r = Xs(t10, e) && A.toSlateNode(t10, e);
  return E.isVoid(t10, r);
}
function Xs(t10, e) {
  return Uu(e) && A.hasDOMNode(t10, e);
}
function ON(t10, e, r) {
  r === void 0 && (r = false);
  var n = e.selection, o = e.getConfig(), i = A.findDocumentOrShadowRoot(e).getSelection();
  if (i && (!t10.isComposing || r) && e.isFocused()) {
    var a = i.type !== "None";
    if (n || a) {
      var u = V5.get(e), s = false;
      if (u.contains(i.anchorNode) && u.contains(i.focusNode) && (s = true), a && s && n) {
        var l = A.toSlateRange(e, i, { exactMatch: true, suppressThrow: true });
        if (l && L.equals(l, n)) {
          var c = true;
          if (L.isCollapsed(n)) {
            var f = i.anchorNode, d = i.anchorOffset;
            if (f === u) {
              var p = u.childNodes, v = void 0;
              (v = p[d]) && v.matches("table") && (c = false), (v = p[d - 1]) && v.matches("table") && (c = false);
            }
          }
          if (c) return;
        }
      }
      if (!n || A.hasRange(e, n)) {
        t10.isUpdatingSelection = true;
        var y = n && A.toDOMRange(e, n);
        if (y) {
          L.isBackward(n) ? i.setBaseAndExtent(y.endContainer, y.endOffset, y.startContainer, y.startOffset) : i.setBaseAndExtent(y.startContainer, y.startOffset, y.endContainer, y.endOffset);
          var g = y.startContainer.parentElement;
          if (!g.closest("[data-slate-spacer]")) {
            g.getBoundingClientRect = y.getBoundingClientRect.bind(y);
            var m = document.body;
            (function(h, b) {
              var w = !h.ownerDocument.documentElement.contains(h);
              if (w9(b) && typeof b.behavior == "function") return b.behavior(w ? [] : b9(h, b));
              if (!w) {
                var D = (function(x) {
                  return x === false ? { block: "end", inline: "nearest" } : w9(x) ? x : { block: "start", inline: "nearest" };
                })(b);
                (function(x, C) {
                  C === void 0 && (C = "auto");
                  var O = "scrollBehavior" in document.body.style;
                  x.forEach((function(T) {
                    var R = T.el, H = T.top, M = T.left;
                    R.scroll && O ? R.scroll({ top: H, left: M, behavior: C }) : (R.scrollTop = H, R.scrollLeft = M);
                  }));
                })(b9(h, D), D.behavior);
              }
            })(g, { scrollMode: "if-needed", boundary: o.scroll ? u.parentElement : m, block: "end", behavior: "smooth" }), delete g.getBoundingClientRect;
          }
        } else i.removeAllRanges();
        setTimeout((function() {
          y && ed && u.focus(), t10.isUpdatingSelection = false;
        }));
      } else e.selection = A.toSlateRange(e, i, { exactMatch: false, suppressThrow: false });
    }
  }
}
var cb = /* @__PURE__ */ new WeakMap(), D9 = /* @__PURE__ */ new WeakMap(), CQ = { bold: "mod+b", compose: ["down", "left", "right", "up", "backspace", "enter"], moveBackward: "left", moveForward: "right", moveWordBackward: "ctrl+left", moveWordForward: "ctrl+right", deleteBackward: "shift?+backspace", deleteForward: "shift?+delete", extendBackward: "shift+left", extendForward: "shift+right", italic: "mod+i", splitBlock: "shift?+enter", undo: "mod+z", tab: "tab", selectAll: "mod+a" }, xQ = { moveLineBackward: "opt+up", moveLineForward: "opt+down", moveWordBackward: "opt+left", moveWordForward: "opt+right", deleteBackward: ["ctrl+backspace", "ctrl+h"], deleteForward: ["ctrl+delete", "ctrl+d"], deleteLineBackward: "cmd+shift?+backspace", deleteLineForward: ["cmd+shift?+delete", "ctrl+k"], deleteWordBackward: "opt+shift?+backspace", deleteWordForward: "opt+shift?+delete", extendLineBackward: "opt+shift+up", extendLineForward: "opt+shift+down", redo: "cmd+shift+z", transposeCharacter: "ctrl+t" }, SQ = { deleteWordBackward: "ctrl+shift?+backspace", deleteWordForward: "ctrl+shift?+delete", redo: ["ctrl+y", "ctrl+shift+z"] }, ye = function(t10) {
  var e = CQ[t10], r = xQ[t10], n = SQ[t10], o = e && l1(e), i = r && l1(r), a = n && l1(n);
  return function(u) {
    return !(!o || !o(u)) || !!(dE && i && i(u)) || !(dE || !a || !a(u));
  };
}, we = { isBold: ye("bold"), isCompose: ye("compose"), isMoveBackward: ye("moveBackward"), isMoveForward: ye("moveForward"), isDeleteBackward: ye("deleteBackward"), isDeleteForward: ye("deleteForward"), isDeleteLineBackward: ye("deleteLineBackward"), isDeleteLineForward: ye("deleteLineForward"), isDeleteWordBackward: ye("deleteWordBackward"), isDeleteWordForward: ye("deleteWordForward"), isExtendBackward: ye("extendBackward"), isExtendForward: ye("extendForward"), isExtendLineBackward: ye("extendLineBackward"), isExtendLineForward: ye("extendLineForward"), isItalic: ye("italic"), isMoveLineBackward: ye("moveLineBackward"), isMoveLineForward: ye("moveLineForward"), isMoveWordBackward: ye("moveWordBackward"), isMoveWordForward: ye("moveWordForward"), isRedo: ye("redo"), isSplitBlock: ye("splitBlock"), isTransposeCharacter: ye("transposeCharacter"), isUndo: ye("undo"), isTab: ye("tab"), isSelectAll: ye("selectAll") };
function He(t10) {
  t10.preventDefault();
}
var AQ = { beforeinput: function(t10, e, r) {
  var n = t10, o = r.getConfig().readOnly;
  if (Vc && !o && gn(r, n.target)) {
    var i = r.selection, a = n.inputType, u = n.dataTransfer || n.data || void 0;
    if (a !== "insertCompositionText" && a !== "deleteCompositionText") {
      if (n.preventDefault(), !a.startsWith("delete") || a.startsWith("deleteBy")) {
        var s = Ht(n.getTargetRanges(), 1)[0];
        if (s) {
          var l = A.toSlateRange(r, s, { exactMatch: false, suppressThrow: false });
          i && L.equals(i, l) || N.select(r, l);
        }
      }
      if (i && L.isExpanded(i) && a.startsWith("delete")) {
        var c = a.endsWith("Backward") ? "backward" : "forward";
        E.deleteFragment(r, { direction: c });
      } else switch (a) {
        case "deleteByComposition":
        case "deleteByCut":
        case "deleteByDrag":
          E.deleteFragment(r);
          break;
        case "deleteContent":
        case "deleteContentForward":
          E.deleteForward(r);
          break;
        case "deleteContentBackward":
          E.deleteBackward(r);
          break;
        case "deleteEntireSoftLine":
          E.deleteBackward(r, { unit: "line" }), E.deleteForward(r, { unit: "line" });
          break;
        case "deleteHardLineBackward":
          E.deleteBackward(r, { unit: "block" });
          break;
        case "deleteSoftLineBackward":
          E.deleteBackward(r, { unit: "line" });
          break;
        case "deleteHardLineForward":
          E.deleteForward(r, { unit: "block" });
          break;
        case "deleteSoftLineForward":
          E.deleteForward(r, { unit: "line" });
          break;
        case "deleteWordBackward":
          E.deleteBackward(r, { unit: "word" });
          break;
        case "deleteWordForward":
          E.deleteForward(r, { unit: "word" });
          break;
        case "insertLineBreak":
        case "insertParagraph":
          E.insertBreak(r);
          break;
        case "insertFromDrop":
        case "insertFromPaste":
        case "insertFromYank":
        case "insertReplacementText":
        case "insertText":
          if (a === "insertFromPaste" && !W1.get(r)) break;
          u instanceof DataTransfer ? r.insertData(u) : typeof u == "string" && E.insertText(r, u);
      }
    }
  }
}, blur: function(t10, e, r) {
  var n = t10, o = e.isUpdatingSelection, i = e.latestElement;
  if (!r.getConfig().readOnly && !o && gn(r, n.target)) {
    var a = A.findDocumentOrShadowRoot(r);
    if (i !== a.activeElement) {
      var u = n.relatedTarget;
      if (!(u === A.toDOMNode(r, r) || Rn(u) && u.hasAttribute("data-slate-spacer"))) {
        if (u != null && Uu(u) && A.hasDOMNode(r, u)) {
          var s = A.toSlateNode(r, u);
          if (ct.isElement(s) && !r.isVoid(s)) return;
        }
        if (Hc) {
          var l = a.getSelection();
          l == null ? void 0 : l.removeAllRanges();
        }
        wu.delete(r);
      }
    }
  }
}, focus: function(t10, e, r) {
  var n = A.toDOMNode(r, r), o = A.findDocumentOrShadowRoot(r);
  e.latestElement = o.activeElement, ed && t10.target !== n ? n.focus() : wu.set(r, true);
}, click: function(t10, e, r) {
  if (!r.getConfig().readOnly && Xs(r, t10.target) && Uu(t10.target)) {
    var n = A.toSlateNode(r, t10.target), o = A.findPath(r, n);
    if (E.hasPath(r, o) && J.get(r, o) === n) {
      var i = E.start(r, o), a = E.end(r, o), u = E.void(r, { at: i }), s = E.void(r, { at: a });
      if (u && s && j.equals(u[1], s[1])) {
        var l = E.range(r, i);
        N.select(r, l);
      }
    }
  }
}, compositionstart: function(t10, e, r) {
  if (gn(r, t10.target)) {
    var n = r.selection;
    if (n && L.isExpanded(n) && (E.deleteFragment(r), Promise.resolve().then((function() {
      ON(e, r, true);
    }))), n && L.isCollapsed(n)) {
      var o = A.toDOMRange(r, n).startContainer, i = o.textContent || "";
      cb.set(r, i), D9.set(r, o);
    }
    e.isComposing = true, (function(a, u) {
      var s;
      u.getConfig().placeholder && u.isEmpty() && a.showPlaceholder && ((s = a.$placeholder) === null || s === void 0 || s.hide(), a.showPlaceholder = false);
    })(e, r);
  }
}, compositionend: function(t10, e, r) {
  var n = t10;
  if (gn(r, n.target)) {
    e.isComposing = false;
    var o = r.selection;
    if (o != null) {
      (pE || ed) && A.cleanExposedTexNodeInSelectionBlock(r);
      for (var i = L.isBackward(o) ? o.focus : o.anchor, a = Ht(E.node(r, [i.path[0]]), 1)[0], u = 0; u < i.path.length; u++) {
        var s = Ht(E.node(r, i.path.slice(0, u + 1)), 1)[0];
        if (ct.isElement(s) && ((Hc || ed) && s.type === "link" || s.type === "code")) {
          A.setNewKey(a);
          break;
        }
      }
      var l = n.data;
      if (l) {
        if (r.getConfig().maxLength) {
          var c = A.getLeftLengthOfMaxLength(r);
          c < l.length ? (A.toDOMRange(r, o).startContainer.textContent = cb.get(r) || "", c > 0 && E.insertText(r, l.slice(0, c)), e.changeViewState()) : E.insertText(r, l);
        } else E.insertText(r, l);
        Hc || setTimeout((function() {
          var f = r.selection;
          if (f != null) {
            var d = D9.get(r);
            d != null && A.toDOMRange(r, f).startContainer !== d && (d.textContent = cb.get(r) || "");
          }
        }));
      }
    }
  }
}, compositionupdate: function(t10, e, r) {
  gn(r, t10.target) && (e.isComposing = true);
}, keydown: function(t10, e, r) {
  var n = t10, o = r.selection;
  if (!r.getConfig().readOnly && !e.isComposing && gn(r, n.target)) {
    if ((function(a, u) {
      var s = Ry.get(a), l = s && s.getMenus(), c = Yv.get(a), f = c && c.getMenus(), d = mn(mn({}, l), f);
      for (var p in d) {
        var v = d[p], y = v.hotkey;
        if (y && qq(y, u) && !v.isDisabled(a)) {
          var g = v.getValue(a);
          v.exec(a, g);
        }
      }
    })(r, n), we.isTab(n)) return He(n), void r.handleTab();
    if (we.isRedo(n)) return He(n), void (typeof r.redo == "function" && r.redo());
    if (we.isUndo(n)) return He(n), void (typeof r.undo == "function" && r.undo());
    if (we.isMoveLineBackward(n)) return He(n), void N.move(r, { unit: "line", reverse: true });
    if (we.isMoveLineForward(n)) return He(n), void N.move(r, { unit: "line" });
    if (we.isExtendLineBackward(n)) return He(n), void N.move(r, { unit: "line", edge: "focus", reverse: true });
    if (we.isExtendLineForward(n)) return He(n), void N.move(r, { unit: "line", edge: "focus" });
    if (we.isMoveBackward(n)) return He(n), void (o && L.isCollapsed(o) ? N.move(r, { reverse: true }) : N.collapse(r, { edge: "start" }));
    if (we.isMoveForward(n)) return He(n), void (o && L.isCollapsed(o) ? N.move(r) : N.collapse(r, { edge: "end" }));
    if (we.isMoveWordBackward(n)) return He(n), o && L.isExpanded(o) && N.collapse(r, { edge: "focus" }), void N.move(r, { unit: "word", reverse: true });
    if (we.isMoveWordForward(n)) return He(n), o && L.isExpanded(o) && N.collapse(r, { edge: "focus" }), void N.move(r, { unit: "word" });
    if (we.isSelectAll(n)) return He(n), void r.selectAll();
    if (Vc) {
      if ((pE || Hc) && o && (we.isDeleteBackward(n) || we.isDeleteForward(n)) && L.isCollapsed(o)) {
        var i = J.parent(r, o.anchor.path);
        if (ct.isElement(i) && E.isVoid(r, i) && E.isInline(r, i)) return n.preventDefault(), void N.delete(r, { unit: "block" });
      }
    } else {
      if (we.isBold(n) || we.isItalic(n) || we.isTransposeCharacter(n)) return void He(n);
      if (we.isSplitBlock(n)) return He(n), void E.insertBreak(r);
      if (we.isDeleteBackward(n)) return He(n), void (o && L.isExpanded(o) ? E.deleteFragment(r, { direction: "backward" }) : E.deleteBackward(r));
      if (we.isDeleteForward(n)) return He(n), void (o && L.isExpanded(o) ? E.deleteFragment(r, { direction: "forward" }) : E.deleteForward(r));
      if (we.isDeleteLineBackward(n)) return He(n), void (o && L.isExpanded(o) ? E.deleteFragment(r, { direction: "backward" }) : E.deleteBackward(r, { unit: "line" }));
      if (we.isDeleteLineForward(n)) return He(n), void (o && L.isExpanded(o) ? E.deleteFragment(r, { direction: "forward" }) : E.deleteForward(r, { unit: "line" }));
      if (we.isDeleteWordBackward(n)) return He(n), void (o && L.isExpanded(o) ? E.deleteFragment(r, { direction: "backward" }) : E.deleteBackward(r, { unit: "word" }));
      if (we.isDeleteWordForward(n)) return He(n), void (o && L.isExpanded(o) ? E.deleteFragment(r, { direction: "forward" }) : E.deleteForward(r, { unit: "word" }));
    }
  }
}, keypress: function(t10, e, r) {
  if (!Vc && !r.getConfig().readOnly && gn(r, t10.target)) {
    t10.preventDefault();
    var n = t10.key;
    E.insertText(r, n);
  }
}, copy: function(t10, e, r) {
  var n = t10;
  if (gn(r, n.target)) {
    n.preventDefault();
    var o = n.clipboardData;
    o != null && r.setFragmentData(o);
  }
}, cut: function(t10, e, r) {
  var n = t10, o = r.selection;
  if (!r.getConfig().readOnly && gn(r, n.target)) {
    n.preventDefault();
    var i = n.clipboardData;
    if (i != null && (r.setFragmentData(i), o)) if (L.isExpanded(o)) E.deleteFragment(r);
    else {
      var a = J.parent(r, o.anchor.path);
      E.isVoid(r, a) && N.delete(r);
    }
  }
}, paste: function(t10, e, r) {
  W1.set(r, true);
  var n = t10;
  if (!r.getConfig().readOnly && gn(r, n.target)) {
    var o = r.getConfig().customPaste;
    if (o && o(r, n) === false) return void W1.set(r, false);
    if (!Vc || (function(a) {
      return a.clipboardData && a.clipboardData.getData("text/plain") !== "" && a.clipboardData.types.length === 1;
    })(n)) {
      n.preventDefault();
      var i = n.clipboardData;
      i != null && r.insertData(i);
    }
  }
}, dragover: function(t10, e, r) {
  if (Xs(r, t10.target)) {
    var n = A.toSlateNode(r, t10.target);
    E.isVoid(r, n) && t10.preventDefault();
  }
}, dragstart: function(t10, e, r) {
  var n = t10;
  if (Xs(r, n.target) && !r.getConfig().readOnly) {
    var o = A.toSlateNode(r, n.target), i = A.findPath(r, o);
    if (E.isVoid(r, o) || E.void(r, { at: i, voids: true })) {
      var a = E.range(r, i);
      N.select(r, a);
    }
    var u = n.dataTransfer;
    u != null && (e.isDraggingInternally = true, r.setFragmentData(u));
  }
}, dragend: function(t10, e, r) {
  var n = t10;
  r.getConfig().readOnly || e.isDraggingInternally && Xs(r, n.target) && (e.isDraggingInternally = false);
}, drop: function(t10, e, r) {
  var n = t10, o = n.dataTransfer;
  if (!r.getConfig().readOnly && Xs(r, n.target) && o != null && !(Vc && Hc && o.files.length > 0)) {
    n.preventDefault();
    var i = r.selection, a = A.findEventRange(r, n);
    N.select(r, a), e.isDraggingInternally && (i && N.delete(r, { at: i }), e.isDraggingInternally = false), r.insertData(o), r.isFocused() || r.focus();
  }
} }, OQ = 1, kQ = (function() {
  function t10(e) {
    var r = this;
    this.id = OQ++, this.$textArea = null, this.$progressBar = B('<div class="w-e-progress-bar"></div>'), this.$maxLengthInfo = B('<div class="w-e-max-length-info"></div>'), this.isComposing = false, this.isUpdatingSelection = false, this.isDraggingInternally = false, this.latestElement = null, this.showPlaceholder = false, this.$placeholder = null, this.latestEditorSelection = null, this.onDOMSelectionChange = zu((function() {
      var a = r.editorInstance;
      (function(u, s) {
        var l = u.isComposing, c = u.isUpdatingSelection, f = u.isDraggingInternally;
        if (!(s.getConfig().readOnly || l || c || f)) {
          var d = A.findDocumentOrShadowRoot(s), p = d.activeElement, v = A.toDOMNode(s, s), y = d.getSelection();
          if (p === v ? (u.latestElement = p, wu.set(s, true)) : wu.delete(s), !y) return N.deselect(s);
          var g = y.anchorNode, m = y.focusNode, h = gn(s, g) || E9(s, g), b = gn(s, m) || E9(s, m);
          if (h && b) {
            var w = A.toSlateRange(s, y, { exactMatch: false, suppressThrow: false });
            N.select(s, w);
          } else N.deselect(s);
        }
      })(r, a);
    }), 100);
    var n = B(e);
    if (n.length === 0) throw new Error("Cannot find textarea DOM by selector '" + e + "'");
    this.$box = n;
    var o = B('<div class="w-e-text-container"></div>');
    o.append(this.$progressBar), o.append(this.$maxLengthInfo), n.append(o);
    var i = B('<div class="w-e-scroll"></div>');
    o.append(i), this.$scroll = i, this.$textAreaContainer = o, kn((function() {
      var a = r.editorInstance, u = A.getWindow(a);
      u.document.addEventListener("selectionchange", r.onDOMSelectionChange), a.on("destroyed", (function() {
        u.document.removeEventListener("selectionchange", r.onDOMSelectionChange);
      })), o.on("click", (function() {
        return a.hidePanelOrModal();
      })), a.on("change", r.changeViewState.bind(r));
      var s = a.getConfig().onChange;
      s && a.on("change", (function() {
        return s(a);
      })), r.onFocusAndOnBlur(), a.on("change", r.changeMaxLengthInfo.bind(r)), r.bindEvent();
    }));
  }
  return Object.defineProperty(t10.prototype, "editorInstance", { get: function() {
    var e = uE.get(this);
    if (e == null) throw new Error("Can not get editor instance");
    return e;
  }, enumerable: false, configurable: true }), t10.prototype.bindEvent = function() {
    var e = this, r = this.$textArea, n = this.$scroll, o = this.editorInstance;
    r != null && (f5(AQ, (function(i, a) {
      r.on(a, (function(u) {
        i(u, e, o);
      }));
    })), o.getConfig().scroll && (n.css("overflow-y", "auto"), n.on("scroll", zu((function() {
      o.emit("scroll");
    }), 100))));
  }, t10.prototype.onFocusAndOnBlur = function() {
    var e = this, r = this.editorInstance, n = r.getConfig(), o = n.onBlur, i = n.onFocus;
    this.latestEditorSelection = r.selection, r.on("change", (function() {
      e.latestEditorSelection == null && r.selection != null ? setTimeout((function() {
        return i && i(r);
      })) : e.latestEditorSelection != null && r.selection == null && setTimeout((function() {
        return o && o(r);
      })), e.latestEditorSelection = r.selection;
    }));
  }, t10.prototype.changeMaxLengthInfo = function() {
    var e = this.editorInstance, r = e.getConfig().maxLength;
    if (r) {
      var n = r - A.getLeftLengthOfMaxLength(e);
      this.$maxLengthInfo[0].innerHTML = n + "/" + r;
    }
  }, t10.prototype.changeProgress = function(e) {
    var r = this.$progressBar;
    r.css("width", e + "%"), e >= 100 && setTimeout((function() {
      r.hide(), r.css("width", "0"), r.show();
    }), 1e3);
  }, t10.prototype.changeViewState = function() {
    var e = this, r = this.editorInstance;
    DQ(this, r), (function(n, o) {
      var i, a = o.getConfig().placeholder;
      if (a) {
        var u = o.isEmpty();
        if (u && !n.showPlaceholder && !n.isComposing) {
          if (n.$placeholder == null) {
            var s = B('<div class="w-e-text-placeholder">' + a + "</div>");
            n.$textAreaContainer.append(s), n.$placeholder = s;
          }
          return n.$placeholder.show(), void (n.showPlaceholder = true);
        }
        !u && n.showPlaceholder && ((i = n.$placeholder) === null || i === void 0 || i.hide(), n.showPlaceholder = false);
      }
    })(this, r), kn((function() {
      ON(e, r);
    }));
  }, t10.prototype.destroy = function() {
    this.$textAreaContainer.remove();
  }, t10;
})();
function rD(t10) {
  t10.removeAttr("width"), t10.removeAttr("height"), t10.removeAttr("fill"), t10.removeAttr("class"), t10.removeAttr("t"), t10.removeAttr("p-id");
  var e = t10.children();
  e.length && rD(e);
}
function nD() {
  return B('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>');
}
function kN() {
  return B('<div class="w-e-bar-divider"></div>');
}
function BN(t10, e, r, n, o) {
  if (o === void 0 && (o = false), e) {
    if (n) {
      var i = dE ? "cmd" : "ctrl";
      n = n.replace("mod", i);
    }
    if (o) n && (t10.attr("data-tooltip", n), t10.addClass("w-e-menu-tooltip-v5"), t10.addClass("tooltip-right"));
    else {
      var a = n ? r + `
` + n : r;
      t10.attr("data-tooltip", a), t10.addClass("w-e-menu-tooltip-v5");
    }
  }
}
M5("match", (function(t10, e, r) {
  return [function(n) {
    var o = On(this), i = n == null ? void 0 : Hu(n, t10);
    return i ? qt(i, n, o) : new RegExp(n)[t10](ie(o));
  }, function(n) {
    var o = Le(this), i = ie(n), a = r(e, o, i);
    if (a.done) return a.value;
    if (!o.global) return Nd(o, i);
    var u = o.unicode;
    o.lastIndex = 0;
    for (var s, l = [], c = 0; (s = Nd(o, i)) !== null; ) {
      var f = ie(s[0]);
      l[c] = f, f === "" && (o.lastIndex = z5(i, Ql(o.lastIndex), u)), c++;
    }
    return c === 0 ? null : l;
  }];
}));
var oD = (function() {
  function t10(e, r, n) {
    var o = this;
    n === void 0 && (n = false), this.$elem = B('<div class="w-e-bar-item"></div>'), this.$button = B('<button type="button"></button>'), this.disabled = false, this.menu = r;
    var i = r.tag, a = r.width;
    if (i !== "button") throw new Error("Invalid tag '" + i + "', expected 'button'");
    var u = r.title, s = r.hotkey, l = s === void 0 ? "" : s, c = r.iconSvg, f = c === void 0 ? "" : c, d = this.$button;
    if (f) {
      var p = B(f);
      rD(p), d.append(p);
    } else d.text(u);
    BN(d, f, u, l, n), n && f && d.append(B('<span class="title">' + u + "</span>")), a && d.css("width", a + "px"), d.attr("data-menu-key", e), this.$elem.append(d), kn((function() {
      return o.init();
    }));
  }
  return t10.prototype.init = function() {
    var e = this;
    this.setActive(), this.setDisabled(), this.$button.on("click", (function(r) {
      r.preventDefault(), Jr(e).hidePanelOrModal(), e.disabled || (e.exec(), e.onButtonClick());
    }));
  }, t10.prototype.exec = function() {
    var e = Jr(this), r = this.menu, n = r.getValue(e);
    r.exec(e, n);
  }, t10.prototype.setActive = function() {
    var e = Jr(this), r = this.$button, n = "active";
    this.menu.isActive(e) ? r.addClass(n) : r.removeClass(n);
  }, t10.prototype.setDisabled = function() {
    var e = Jr(this), r = this.$button, n = this.menu.isDisabled(e);
    (e.selection == null || e.isDisabled()) && (n = true), this.menu.alwaysEnable && (n = false);
    var o = "disabled";
    n ? r.addClass(o) : r.removeClass(o), this.disabled = n;
  }, t10.prototype.changeMenuState = function() {
    this.setActive(), this.setDisabled();
  }, t10;
})(), BQ = (function(t10) {
  function e(r, n, o) {
    return o === void 0 && (o = false), t10.call(this, r, n, o) || this;
  }
  return ec(e, t10), e.prototype.onButtonClick = function() {
  }, e;
})(oD), iD = (function() {
  function t10(e) {
    this.isShow = false, this.showTime = 0, this.record(e);
  }
  return t10.prototype.record = function(e) {
    var r = lE.get(e);
    r == null && (r = /* @__PURE__ */ new Set(), lE.set(e, r)), r.add(this), Rg.set(this, e);
  }, t10.prototype.renderContent = function(e) {
    var r = this.$elem;
    r.empty(), r.append(e);
    var n = this.genSelfElem();
    n && r.append(n);
  }, t10.prototype.appendTo = function(e) {
    var r = this.$elem;
    e.append(r);
  }, t10.prototype.show = function() {
    if (!this.isShow) {
      this.showTime = Date.now(), this.$elem.show(), this.isShow = true;
      var e = Rg.get(this);
      e && e.emit("modalOrPanelShow", this);
    }
  }, t10.prototype.hide = function() {
    if (this.isShow && !(Date.now() - this.showTime < 200)) {
      this.$elem.hide(), this.isShow = false;
      var e = Rg.get(this);
      e && e.emit("modalOrPanelHide");
    }
  }, t10;
})(), FQ = (function(t10) {
  function e(r) {
    var n = t10.call(this, r) || this;
    return n.type = "dropPanel", n.$elem = B('<div class="w-e-drop-panel"></div>'), n;
  }
  return ec(e, t10), e.prototype.genSelfElem = function() {
    return null;
  }, e;
})(iD), TQ = (function(t10) {
  function e(r, n, o) {
    o === void 0 && (o = false);
    var i = t10.call(this, r, n, o) || this;
    if (i.dropPanel = null, i.menu = n, n.showDropPanel) {
      var a = nD();
      i.$button.append(a);
    }
    return i;
  }
  return ec(e, t10), e.prototype.onButtonClick = function() {
    this.menu.showDropPanel && this.handleDropPanel();
  }, e.prototype.handleDropPanel = function() {
    var r = this.menu;
    if (r.getPanelContentElem != null) {
      var n = Jr(this);
      if (this.dropPanel == null) {
        var o = new FQ(n), i = r.getPanelContentElem(n);
        o.renderContent(i), o.appendTo(this.$elem), o.show(), this.dropPanel = o;
      } else {
        var a = this.dropPanel;
        a.isShow ? a.hide() : (i = r.getPanelContentElem(n), a.renderContent(i), a.show());
      }
      var u = this.dropPanel;
      if (u.isShow) {
        var s = this.$elem, l = s.offset().left, c = s.parents(".w-e-bar");
        l - c.offset().left >= c.width() / 2 ? u.$elem.css({ left: "none", right: "0" }) : u.$elem.css({ left: "0", right: "none" });
      }
    }
  }, e;
})(oD), _Q = (function(t10) {
  function e(r, n) {
    n === void 0 && (n = 0);
    var o = t10.call(this, r) || this;
    o.type = "modal", o.$elem = B('<div class="w-e-modal"></div>'), o.width = 0, n && (o.width = n);
    var i = o.$elem;
    return i.on("click", (function(a) {
      return a.stopPropagation();
    })), i.on("keyup", (function(a) {
      a.code === "Escape" && (o.hide(), r.restoreSelection());
    })), o;
  }
  return ec(e, t10), e.prototype.genSelfElem = function() {
    var r = this, n = B('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'), o = Rg.get(this);
    return n.on("click", (function() {
      r.hide(), o == null ? void 0 : o.restoreSelection();
    })), n;
  }, e.prototype.setStyle = function(r) {
    var n = this.width, o = this.$elem;
    o.attr("style", ""), n && o.css("width", n + "px"), o.css(r);
  }, e;
})(iD);
function tn(t10, e, r) {
  var n = B('<label class="babel-container"></label>');
  n.append("<span>" + t10 + "</span>");
  var o = B('<input type="text" id="' + e + '" placeholder="' + (r || "") + '">');
  return n.append(o), [n[0], o[0]];
}
function rc(t10, e) {
  var r = B('<div class="button-container"></div>'), n = B('<button type="button" id="' + t10 + '">' + e + "</button>");
  return r.append(n), [r[0], n[0]];
}
var PQ = (function(t10) {
  function e(r, n, o) {
    o === void 0 && (o = false);
    var i = t10.call(this, r, n, o) || this;
    return i.$body = B("body"), i.modal = null, i.menu = n, i;
  }
  return ec(e, t10), e.prototype.onButtonClick = function() {
    this.menu.showModal && this.handleModal();
  }, e.prototype.getPosition = function() {
    var r = Jr(this), n = this.menu.getModalPositionNode(r);
    return ct.isElement(n) ? eD(r, n, "modal") : tD(r);
  }, e.prototype.handleModal = function() {
    var r = Jr(this), n = this.menu;
    if (this.modal == null) {
      var o = new _Q(r, n.modalWidth);
      this.renderAndShowModal(o, true), this.modal = o;
    } else (o = this.modal).isShow ? o.hide() : this.renderAndShowModal(o, false);
  }, e.prototype.renderAndShowModal = function(r, n) {
    n === void 0 && (n = false);
    var o = Jr(this), i = this.menu;
    if (i.getModalContentElem != null) {
      var a = A.getTextarea(o), u = A.getToolbar(o), s = ((u == null ? void 0 : u.getConfig()) || {}).modalAppendToBody, l = i.getModalContentElem(o);
      if (r.renderContent(l), s) r.setStyle({ left: "0", right: "0" });
      else {
        var c = this.getPosition();
        r.setStyle(c);
      }
      n && (s ? r.appendTo(this.$body) : r.appendTo(a.$textAreaContainer)), r.show(), s || wE(o, r.$elem), setTimeout((function() {
        o.blur();
      }));
    }
  }, e;
})(oD), jQ = (function(t10) {
  function e(r, n) {
    var o = t10.call(this, r) || this;
    return o.type = "selectList", o.$elem = B('<div class="w-e-select-list"></div>'), n && o.$elem.css("width", n + "px"), o.$elem.on("click", (function(i) {
      i.stopPropagation();
    })), o;
  }
  return ec(e, t10), e.prototype.renderList = function(r) {
    var n = this.$elem;
    n.empty();
    var o = B("<ul></ul>");
    r.forEach((function(i) {
      var a = i.value, u = i.text, s = i.selected, l = i.styleForRenderMenuList, c = B('<li data-value="' + a + '"></li>');
      if (l && c.css(l), s) {
        var f = B('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');
        c.append(f), c.addClass("selected");
      }
      c.append(B('<span data-value="' + a + '">' + u + "</span>")), c.attr("title", u), o.append(c);
    })), n.append(o);
  }, e.prototype.genSelfElem = function() {
    return null;
  }, e;
})(iD), NQ = (function() {
  function t10(e, r, n) {
    var o = this;
    n === void 0 && (n = false), this.$elem = B('<div class="w-e-bar-item"></div>'), this.$button = B('<button type="button" class="select-button"></button>'), this.disabled = false, this.selectList = null;
    var i = r.tag, a = r.title, u = r.width, s = r.iconSvg, l = s === void 0 ? "" : s, c = r.hotkey, f = c === void 0 ? "" : c;
    if (i !== "select") throw new Error("Invalid tag '" + i + "', expected 'select'");
    var d = this.$button;
    u && d.css("width", u + "px"), d.attr("data-menu-key", e), BN(d, l, a, f, n), this.$elem.append(d), this.menu = r, kn((function() {
      return o.init();
    }));
  }
  return t10.prototype.init = function() {
    var e = this;
    this.setSelectedValue(), this.$button.on("click", (function(r) {
      r.preventDefault(), Jr(e).hidePanelOrModal(), e.trigger();
    }));
  }, t10.prototype.trigger = function() {
    var e = this, r = Jr(this);
    if (!r.isDisabled() && !this.disabled) {
      var n = this.menu;
      if (this.selectList == null) {
        this.selectList = new jQ(r, n.selectPanelWidth);
        var o = this.selectList, i = n.getOptions(r);
        o.renderList(i), o.appendTo(this.$elem), o.show(), o.$elem.on("click", "li", (function(a) {
          var u = a.target;
          if (u != null) {
            a.preventDefault();
            var s = B(u).attr("data-value");
            e.onChange(s);
          }
        }));
      } else (o = this.selectList).isShow ? o.hide() : (i = n.getOptions(r), o.renderList(i), o.show());
    }
  }, t10.prototype.onChange = function(e) {
    var r = Jr(this), n = this.menu;
    n.exec && n.exec(r, e);
  }, t10.prototype.setSelectedValue = function() {
    var e = Jr(this), r = this.menu, n = r.getValue(e), o = (function(u, s) {
      for (var l = u.length, c = "", f = 0; f < l; f++) {
        var d = u[f];
        if (d.value === s) {
          c = d.text;
          break;
        }
      }
      return c;
    })(r.getOptions(e), n.toString()), i = this.$button, a = nD();
    i.empty(), i.text(o), i.append(a);
  }, t10.prototype.setDisabled = function() {
    var e = Jr(this), r = this.menu.isDisabled(e), n = this.$button;
    (e.selection == null || e.isDisabled()) && (r = true);
    var o = "disabled";
    r ? n.addClass(o) : n.removeClass(o), this.disabled = r;
  }, t10.prototype.changeMenuState = function() {
    this.setSelectedValue(), this.setDisabled();
  }, t10;
})(), C9 = (function() {
  function t10(e) {
    this.$elem = B('<div class="w-e-bar-item w-e-bar-item-group"></div>'), this.$container = B('<div class="w-e-bar-item-menus-container"></div>'), this.$button = B('<button type="button"></button>');
    var r = e.key, n = e.iconSvg, o = e.title, i = this.$elem, a = this.$button;
    if (n) {
      var u = B(n);
      rD(u), a.append(u);
    } else a.text(o);
    a.attr("data-menu-key", r);
    var s = nD();
    a.append(s), i.append(a);
    var l = this.$container;
    i.append(l);
    var c = this.createObserver();
    this.observe(c);
  }
  return t10.prototype.appendBarItem = function(e) {
    var r = e.$elem;
    this.$container.append(r);
  }, t10.prototype.observe = function(e) {
    var r = this.$container;
    e.observe(r[0], { childList: true, subtree: true, attributes: true });
  }, t10.prototype.createObserver = function() {
    var e = this, r = this.$container, n = this.$button, o = new MutationObserver((function() {
      var i = r.find("button"), a = i.length;
      if (a !== 0) {
        var u = 0;
        i.each((function(s) {
          B(s).hasClass("disabled") && u++;
        })), o.disconnect(), u === a ? n.addClass("disabled") : n.removeClass("disabled"), e.observe(o);
      }
    }));
    return o;
  }, t10;
})(), x9 = /* @__PURE__ */ new WeakMap();
function Jr(t10) {
  var e = H5.get(t10);
  if (e == null) throw new Error("Can not get editor instance");
  return e;
}
function FN(t10, e, r) {
  r === void 0 && (r = false);
  var n = x9.get(e);
  if (n) return n;
  var o = e.tag;
  if (o === "button") {
    var i = e.showDropPanel, a = e.showModal;
    n = i ? new TQ(t10, e, r) : a ? new PQ(t10, e, r) : new BQ(t10, e, r);
  }
  if (o === "select" && (n = new NQ(t10, e, r)), n == null) throw new Error("Invalid tag in menu " + JSON.stringify(e));
  return x9.set(e, n), n;
}
function IQ(t10, e) {
  var r = t10.selection;
  return r != null && !L.isCollapsed(r) && !A.getSelectedElems(t10).some((function(n) {
    if (t10.isVoid(n)) return true;
    var o = n.type;
    return !!["pre", "code", "table"].includes(o) || void 0;
  })) && !!ot.isText(e);
}
var LQ = (function() {
  function t10() {
    var e = this;
    this.$elem = B('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'), this.menus = {}, this.hoverbarItems = [], this.prevSelectedNode = null, this.isShow = false, this.changeHoverbarState = aj((function() {
      var r = e.isShow, n = e.getSelectedNodeAndMenuKeys() || {}, o = n.node, i = o === void 0 ? null : o, a = n.menuKeys, u = a === void 0 ? [] : a;
      i != null && e.changeItemsState(), i && ct.isElement(i) && r && e.isSamePath(i, e.prevSelectedNode) || (e.hideAndClean(), i != null && (e.registerItems(u), e.setPosition(i), e.show()), e.prevSelectedNode = i);
    }), 200), kn((function() {
      var r = e.getEditorInstance(), n = e.$elem;
      n.on("mousedown", (function(i) {
        return i.preventDefault();
      }), { passive: false }), A.getTextarea(r).$textAreaContainer.append(n), r.on("change", e.changeHoverbarState);
      var o = e.hideAndClean.bind(e);
      r.on("scroll", o), r.on("fullScreen", o), r.on("unFullScreen", o);
    }));
  }
  return t10.prototype.getMenus = function() {
    return this.menus;
  }, t10.prototype.hideAndClean = function() {
    var e = this.$elem;
    e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"), this.hoverbarItems = [], e.empty(), this.isShow = false;
  }, t10.prototype.checkPositionBottom = function() {
    var e = this.$elem, r = false, n = window.innerHeight;
    n && n >= 360 && n - e[0].getBoundingClientRect().bottom < 360 && (r = true), r ? e.addClass("w-e-bar-bottom") : e.removeClass("w-e-bar-bottom");
  }, t10.prototype.show = function() {
    this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"), this.isShow = true, this.checkPositionBottom();
  }, t10.prototype.changeItemsState = function() {
    var e = this;
    kn((function() {
      e.hoverbarItems.forEach((function(r) {
        r.changeMenuState();
      }));
    }));
  }, t10.prototype.registerItems = function(e) {
    var r = this, n = this.$elem;
    e.forEach((function(o) {
      if (o !== "|") r.registerSingleItem(o);
      else {
        var i = kN();
        n.append(i);
      }
    }));
  }, t10.prototype.registerSingleItem = function(e) {
    var r = this.getEditorInstance(), n = this.menus, o = n[e];
    if (o == null) {
      var i = Rd[e];
      if (i == null) throw new Error("Not found menu item factory by key '" + e + "'");
      if (typeof i != "function") throw new Error("Menu item factory (key='" + e + "') is not a function");
      o = i(), n[e] = o;
    }
    var a = FN(e, o);
    this.hoverbarItems.push(a), H5.set(a, r), this.$elem.append(a.$elem);
  }, t10.prototype.setPosition = function(e) {
    var r = this.getEditorInstance(), n = this.$elem;
    if (n.attr("style", ""), ct.isElement(e)) {
      var o = eD(r, e, "bar");
      return n.css(o), void wE(r, n);
    }
    if (ot.isText(e)) return o = tD(r), n.css(o), void wE(r, n);
    throw new Error("hoverbar.setPosition error, current selected node is not elem nor text");
  }, t10.prototype.getSelectedNodeAndMenuKeys = function() {
    var e = this.getEditorInstance();
    if (e.selection == null) return null;
    var r = this.getHoverbarKeysConf(), n = null, o = [], i = function(u) {
      var s = r[u], l = s.match, c = s.menuKeys, f = c === void 0 ? [] : c, d = l || function(y, g) {
        return A.checkNodeType(g, u);
      }, p = Ht(E.nodes(e, { match: function(y) {
        return d(e, y);
      }, universal: true }), 1), v = p[0];
      if (v != null) return n = v[0], o = f, "break";
    };
    for (var a in r) if (i(a) === "break") break;
    return n == null || o.length === 0 ? null : { node: n, menuKeys: o };
  }, t10.prototype.getEditorInstance = function() {
    var e = sE.get(this);
    if (e == null) throw new Error("Can not get editor instance");
    return e;
  }, t10.prototype.getHoverbarKeysConf = function() {
    var e = this.getEditorInstance().getConfig().hoverbarKeys, r = e === void 0 ? {} : e, n = r.text;
    return n && n.match == null && (n.match = IQ), r;
  }, t10.prototype.isSamePath = function(e, r) {
    if (e == null || r == null) return false;
    var n = A.findPath(null, e), o = A.findPath(null, r);
    return j.equals(n, o);
  }, t10.prototype.destroy = function() {
    this.changeHoverbarState.cancel(), this.$elem.remove(), this.menus = {}, this.hoverbarItems = [], this.prevSelectedNode = null;
  }, t10;
})();
function TN(t10, e, r, n) {
  if (Ld.set(t10, e), Il.set(t10, r), ct.isElement(t10)) {
    var o = t10.children;
    if ((o === void 0 ? [] : o).forEach((function(u, s) {
      return TN(u, s, t10, n);
    })), E.isVoid(n, t10)) {
      var i = Ht(J.texts(t10), 1), a = Ht(i[0], 1)[0];
      Ld.set(a, 0), Il.set(a, t10);
    }
  }
}
function RQ(t10) {
  var e = t10.selector, r = e === void 0 ? "" : e, n = t10.config, o = n === void 0 ? {} : n, i = t10.content, a = t10.html, u = t10.plugins, s = u === void 0 ? [] : u, l = ((m) => {
    var h = m, { apply: b } = h;
    return h.history = { undos: [], redos: [] }, h.redo = () => {
      var { history: w } = h, { redos: D } = w;
      if (D.length > 0) {
        var x = D[D.length - 1];
        tl.withoutSaving(h, (() => {
          E.withoutNormalizing(h, (() => {
            for (var C of x) h.apply(C);
          }));
        })), w.redos.pop(), w.undos.push(x);
      }
    }, h.undo = () => {
      var { history: w } = h, { undos: D } = w;
      if (D.length > 0) {
        var x = D[D.length - 1];
        tl.withoutSaving(h, (() => {
          E.withoutNormalizing(h, (() => {
            var C = x.map(Hi.inverse).reverse();
            for (var O of C) h.apply(O);
          }));
        })), w.redos.push(x), w.undos.pop();
      }
    }, h.apply = (w) => {
      var { operations: D, history: x } = h, { undos: C } = x, O = C[C.length - 1], T = O && O[O.length - 1], R = ((U, W) => !(!W || U.type !== "set_selection" || W.type !== "set_selection"))(w, T), H = tl.isSaving(h), M = tl.isMerging(h);
      if (H == null && (H = ((U, W) => U.type !== "set_selection" || U.properties != null && U.newProperties != null)(w)), H) {
        if (M == null && (M = O != null && (D.length !== 0 || ((U, W) => U.type === "set_selection" || !(!W || U.type !== "insert_text" || W.type !== "insert_text" || U.offset !== W.offset + W.text.length || !j.equals(U.path, W.path)) || !(!W || U.type !== "remove_text" || W.type !== "remove_text" || U.offset + U.text.length !== W.offset || !j.equals(U.path, W.path)))(w, T) || R)), O && M) R && O.pop(), O.push(w);
        else {
          var K = [w];
          C.push(K);
        }
        for (; C.length > 100; ) C.shift();
        ((U) => U.type !== "set_selection")(w) && (x.redos = []);
      }
      b(w);
    }, h;
  })((function(m) {
    var h = m, b = h.insertText, w = h.insertNode, D = h.insertFragment, x = h.dangerouslyInsertHtml;
    return h.insertText = function(C) {
      if (h.getConfig().maxLength) {
        var O = A.getLeftLengthOfMaxLength(h);
        O <= 0 || (O < C.length ? b(C.slice(0, O)) : b(C));
      } else b(C);
    }, h.insertNode = function(C) {
      if (h.getConfig().maxLength) {
        var O = A.getLeftLengthOfMaxLength(h);
        O <= 0 || O < J.string(C).length || w(C);
      } else w(C);
    }, h.insertFragment = function(C) {
      if (h.getConfig().maxLength) if (C.length !== 1) C.forEach((function(T) {
        h.insertNode(T);
      }));
      else {
        var O = C[0];
        if (A.getLeftLengthOfMaxLength(h) < J.string(O).length) return;
        D(C);
      }
      else D(C);
    }, h.dangerouslyInsertHtml = function(C, O) {
      if (C === void 0 && (C = ""), O === void 0 && (O = false), C) if (h.getConfig().maxLength) {
        var T = A.getLeftLengthOfMaxLength(h);
        if (!(T <= 0)) {
          var R = document.createElement("div");
          R.innerHTML = C;
          var H = Array.from(R.childNodes).reduce((function(M, K) {
            var U = K.nodeType, W = K.nodeName;
            return K ? U === po.TEXT_NODE ? M + (K.textContent || "") : U === po.ELEMENT_NODE ? u9.has(W.toLowerCase()) ? M : M + (K.textContent || "") : M : M;
          }), "");
          T < H.length || x(C, O);
        }
      } else x(C, O);
    }, h;
  })((function(m) {
    var h = m;
    return h.on = function(b, w) {
      var D = Mh(h);
      if (D.on(b, w), b === "destroyed" && d9(h, w), b !== "destroyed") {
        var x = function() {
          return D.off(b, w);
        };
        D.on("destroyed", x), d9(h, x);
      }
    }, h.once = function(b, w) {
      Mh(h).once(b, w);
    }, h.off = function(b, w) {
      Mh(h).off(b, w);
    }, h.emit = function(b) {
      for (var w = [], D = 1; D < arguments.length; D++) w[D - 1] = arguments[D];
      var x = Mh(h);
      x.emit.apply(x, oE([b], Ht(w))), b === "destroyed" && (cQ(h).forEach((function(C) {
        return x.off("destroyed", C);
      })), fQ(h));
    }, h;
  })((function(m) {
    var h = m;
    return h.select = function(b) {
      N.select(h, b);
    }, h.deselect = function() {
      var b = h.selection, w = A.findDocumentOrShadowRoot(h).getSelection();
      w && w.rangeCount > 0 && w.removeAllRanges(), b && N.deselect(m);
    }, h.move = function(b, w) {
      w === void 0 && (w = false), b && (b < 0 || N.move(m, { distance: b, unit: "character", reverse: w }));
    }, h.moveReverse = function(b) {
      h.move(b, true);
    }, h.restoreSelection = function() {
      var b = U1.get(h);
      b != null && (h.focus(), N.select(h, b));
    }, h.getSelectionPosition = function() {
      return tD(h);
    }, h.getNodePosition = function(b) {
      return eD(h, b);
    }, h.isSelectedAll = function() {
      var b = h.selection;
      if (b == null) return false;
      var w = Ht(L.edges(b), 2), D = w[0], x = w[1], C = Ht(E.edges(h, []), 2), O = C[0], T = C[1];
      return !(!Bt.equals(D, O) || !Bt.equals(x, T));
    }, h.selectAll = function() {
      var b = E.start(h, []), w = E.end(h, []);
      N.select(h, { anchor: b, focus: w });
    }, h;
  })((function(m) {
    var h = m, b = h.onChange, w = h.insertText, D = h.apply, x = h.deleteBackward;
    return h.insertText = function(C) {
      h.getConfig().readOnly || w(C);
    }, h.apply = function(C) {
      var O, T, R, H, M, K, U, W, q = [];
      switch (C.type) {
        case "insert_text":
        case "remove_text":
        case "set_node":
          try {
            for (var et = bn(E.levels(h, { at: C.path })), st = et.next(); !st.done; st = et.next()) {
              var ut = Ht(st.value, 2), at = ut[0], k = ut[1], S = A.findKey(h, at);
              q.push([k, S]);
            }
          } catch (It) {
            O = { error: It };
          } finally {
            try {
              st && !st.done && (T = et.return) && T.call(et);
            } finally {
              if (O) throw O.error;
            }
          }
          break;
        case "insert_node":
        case "remove_node":
        case "merge_node":
        case "split_node":
          try {
            for (var P = bn(E.levels(h, { at: j.parent(C.path) })), $ = P.next(); !$.done; $ = P.next()) {
              var Y = Ht($.value, 2);
              at = Y[0], k = Y[1], S = A.findKey(h, at), q.push([k, S]);
            }
          } catch (It) {
            R = { error: It };
          } finally {
            try {
              $ && !$.done && (H = P.return) && H.call(P);
            } finally {
              if (R) throw R.error;
            }
          }
          break;
        case "move_node":
          try {
            for (var V = bn(E.levels(h, { at: j.common(j.parent(C.path), j.parent(C.newPath)) })), it = V.next(); !it.done; it = V.next()) {
              var gt = Ht(it.value, 2);
              at = gt[0], k = gt[1], S = A.findKey(h, at), q.push([k, S]);
            }
          } catch (It) {
            M = { error: It };
          } finally {
            try {
              it && !it.done && (K = V.return) && K.call(V);
            } finally {
              if (M) throw M.error;
            }
          }
      }
      D(C);
      try {
        for (var vt = bn(q), Dt = vt.next(); !Dt.done; Dt = vt.next()) {
          var G = Ht(Dt.value, 2);
          k = G[0], S = G[1], at = Ht(E.node(h, k), 1)[0], Mg.set(at, S);
        }
      } catch (It) {
        U = { error: It };
      } finally {
        try {
          Dt && !Dt.done && (W = vt.return) && W.call(vt);
        } finally {
          if (U) throw U.error;
        }
      }
    }, h.deleteBackward = function(C) {
      if (C !== "line") return x(C);
      if (m.selection && L.isCollapsed(m.selection)) {
        var O = E.above(m, { match: function(M) {
          return E.isBlock(m, M);
        }, at: m.selection });
        if (O) {
          var T = Ht(O, 2)[1], R = E.range(m, T, m.selection.anchor), H = (function(M, K) {
            var U = E.range(M, L.end(K)), W = Array.from(E.positions(M, { at: K })), q = 0, et = W.length, st = Math.floor(et / 2);
            if (J7(M, E.range(M, W[q]), U)) return E.range(M, W[q], U);
            if (W.length < 2) return E.range(M, W[W.length - 1], U);
            for (; st !== W.length && st !== q; ) J7(M, E.range(M, W[st]), U) ? et = st : q = st, st = Math.floor((q + et) / 2);
            return E.range(M, W[et], U);
          })(h, R);
          L.isCollapsed(H) || N.delete(m, { at: H });
        }
      }
    }, h.onChange = function() {
      var C = h.selection;
      C != null && U1.set(h, C), h.emit("change"), b();
    }, h.handleTab = function() {
      h.insertText("    ");
    }, h.getHtml = function() {
      var C = h.children;
      return (C === void 0 ? [] : C).map((function(O) {
        return yN(O, h);
      })).join("");
    }, h.getText = function() {
      var C = h.children;
      return (C === void 0 ? [] : C).map((function(O) {
        return J.string(O);
      })).join(`
`);
    }, h.getSelectionText = function() {
      var C = h.selection;
      return C == null ? "" : E.string(m, C);
    }, h.getElemsByType = function(C, O) {
      var T, R;
      O === void 0 && (O = false);
      var H = [], M = E.nodes(h, { at: [], universal: true });
      try {
        for (var K = bn(M), U = K.next(); !U.done; U = K.next()) {
          var W = Ht(U.value, 1)[0];
          if (ct.isElement(W) && (O ? W.type.indexOf(C) >= 0 : W.type === C)) {
            var q = mN(A.findKey(h, W).id);
            H.push(mn(mn({}, W), { id: q }));
          }
        }
      } catch (et) {
        T = { error: et };
      } finally {
        try {
          U && !U.done && (R = K.return) && R.call(K);
        } finally {
          if (T) throw T.error;
        }
      }
      return H;
    }, h.getElemsByTypePrefix = function(C) {
      return h.getElemsByType(C, true);
    }, h.isEmpty = function() {
      var C = h.children, O = C === void 0 ? [] : C;
      if (O.length > 1) return false;
      var T = O[0];
      if (T == null) return true;
      if (ct.isElement(T) && T.type === "paragraph") {
        var R = T.children, H = R === void 0 ? [] : R;
        if (H.length > 1) return false;
        var M = H[0];
        if (M == null || ot.isText(M) && M.text === "") return true;
      }
      return false;
    }, h.clear = function() {
      N.delete(h, { at: { anchor: E.start(h, []), focus: E.end(h, []) } }), h.children.length === 0 && N.insertNodes(h, [{ type: "paragraph", children: [{ text: "" }] }]);
    }, h.getParentNode = function(C) {
      return A.getParentNode(h, C);
    }, h.dangerouslyInsertHtml = function(C, O) {
      if (C === void 0 && (C = ""), O === void 0 && (O = false), C) {
        var T = document.createElement("div");
        T.innerHTML = C;
        var R = Array.from(T.childNodes);
        if (R = R.filter((function(U) {
          var W = U.nodeType, q = U.nodeName;
          return W === po.TEXT_NODE || W === po.ELEMENT_NODE && !u9.has(q.toLowerCase());
        })), R.length !== 0) {
          var H = h.selection;
          if (H != null) {
            var M = null;
            A.isSelectedEmptyParagraph(h) && !O && (M = [H.focus.path[0]]), T.setAttribute("hidden", "true"), document.body.appendChild(T);
            var K = 0;
            R.forEach((function(U) {
              var W = U.nodeType, q = U.nodeName, et = U.textContent, st = et === void 0 ? "" : et;
              if (W !== po.TEXT_NODE) if (q !== "BR") {
                var ut = U, at = false;
                if (bN.includes(q.toLowerCase())) at = true;
                else for (var k in t0) if (ut.matches(k)) {
                  at = true;
                  break;
                }
                if (at) {
                  var S = Z5(B(ut), h);
                  return Array.isArray(S) ? (S.forEach((function($) {
                    return s9(h, $);
                  })), K++) : (s9(h, S), K++), void (A.isSelectedVoidNode(h) && h.move(1));
                }
                var P = window.getComputedStyle(ut).display;
                A.isSelectedEmptyParagraph(h) || P.indexOf("inline") < 0 && h.insertBreak(), h.dangerouslyInsertHtml(ut.innerHTML, true);
              } else h.insertText(`
`);
              else {
                if (!st || !st.trim()) return;
                h.insertNode({ text: st });
              }
            })), K && M && A.isEmptyPath(h, M) && N.removeNodes(h, { at: M }), T.remove();
          }
        }
      }
    }, h.setHtml = function(C) {
      C === void 0 && (C = "");
      var O = h.isDisabled(), T = h.isFocused(), R = JSON.stringify(h.selection);
      h.enable(), h.focus(), h.clear();
      var H = o9(h, C);
      if (N.insertFragment(h, H), T || (h.deselect(), h.blur()), O && (h.deselect(), h.disable()), h.isFocused()) try {
        h.select(JSON.parse(R));
      } catch {
        h.select(E.start(h, []));
      }
    }, h;
  })((function(m) {
    var h = m;
    return h.getAllMenuKeys = function() {
      var b = [];
      for (var w in Rd) b.push(w);
      return b;
    }, h.getConfig = function() {
      var b = O7.get(h);
      if (b == null) throw new Error("Can not get editor config");
      return b;
    }, h.getMenuConfig = function(b) {
      var w = h.getConfig().MENU_CONF;
      return (w === void 0 ? {} : w)[b] || {};
    }, h.alert = function(b, w) {
      w === void 0 && (w = "info");
      var D = h.getConfig().customAlert;
      D && D(b, w);
    }, h;
  })((function(m) {
    var h = ZJ(wW());
    return h.id = "wangEditor-" + oJ++, h.isDestroyed = false, h.isFullScreen = false, h.focus = function(b) {
      if (A.toDOMNode(h, h).focus({ preventScroll: true }), wu.set(h, true), b) {
        var w = E.end(h, []);
        N.select(h, w);
      } else {
        var D = U1.get(h);
        D ? N.select(h, D) : N.select(h, E.start(h, []));
      }
    }, h.isFocused = function() {
      return !!wu.get(h);
    }, h.blur = function() {
      A.toDOMNode(h, h).blur(), N.deselect(h), wu.set(h, false);
    }, h.updateView = function() {
      A.getTextarea(h).changeViewState();
      var b = A.getToolbar(h);
      b && b.changeToolbarState();
      var w = A.getHoverbar(h);
      w && w.changeHoverbarState();
    }, h.destroy = function() {
      if (!h.isDestroyed) {
        var b = A.getTextarea(h);
        b.destroy(), aE.delete(h), uE.delete(b);
        var w = A.getToolbar(h);
        w && (w.destroy(), Ry.delete(h), $5.delete(w));
        var D = A.getHoverbar(h);
        D && (D.destroy(), Yv.delete(h), sE.delete(D)), h.isDestroyed = true, h.emit("destroyed");
      }
    }, h.scrollToElem = function(b) {
      if (!h.getConfig().scroll) {
        var w = "\u7F16\u8F91\u5668\u7981\u7528\u4E86 scroll \uFF0C\u7F16\u8F91\u5668\u5185\u5BB9\u65E0\u6CD5\u6EDA\u52A8\uFF0C\u8BF7\u81EA\u884C\u5B9E\u73B0\u8BE5\u529F\u80FD";
        return w += `
You has disabled editor scroll, please do this yourself`, void console.warn(w);
      }
      var D = B("#" + b);
      if (D.length !== 0) {
        var x = D[0];
        if (!A.hasDOMNode(h, x)) return w = "Element (found by id is '" + b + "') is not in editor DOM", w += `
 \u901A\u8FC7 id '` + b + "' \u627E\u5230\u7684 element \u4E0D\u5728 editor DOM \u4E4B\u5185", void console.error(w, x);
        var C = A.getTextarea(h), O = C.$textAreaContainer, T = C.$scroll, R = D.offset().top, H = O.offset().top;
        T[0].scrollBy({ top: R - H, behavior: "smooth" });
      }
    }, h.showProgressBar = function(b) {
      b < 1 || A.getTextarea(h).changeProgress(b);
    }, h.hidePanelOrModal = function() {
      var b = lE.get(h);
      b == null ? void 0 : b.forEach((function(w) {
        return w.hide();
      }));
    }, h.enable = function() {
      h.getConfig().readOnly = false, h.updateView();
    }, h.disable = function() {
      h.getConfig().readOnly = true, h.updateView();
    }, h.isDisabled = function() {
      return h.getConfig().readOnly;
    }, h.toDOMNode = function(b) {
      return A.toDOMNode(h, b);
    }, h.fullScreen = function() {
      if (!h.isFullScreen) {
        var b = null, w = A.getToolbar(h);
        w && (b = w.$box);
        var D = A.getTextarea(h).$box.parent();
        if (b && b.parent()[0] !== D[0]) throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
\u4E0D\u80FD\u8BBE\u7F6E\u5168\u5C4F\uFF0C\u56E0\u4E3A toolbar DOM \u7236\u8282\u70B9\u548C textarea DOM \u7236\u8282\u70B9\u4E0D\u4E00\u81F4`);
        D.addClass("w-e-full-screen-container");
        var x = D.css("z-index");
        D.attr("data-z-index", x.toString()), h.isFullScreen = true, h.emit("fullScreen");
      }
    }, h.unFullScreen = function() {
      if (h.isFullScreen) {
        var b = A.getTextarea(h).$box.parent();
        setTimeout((function() {
          b.removeClass("w-e-full-screen-container"), h.isFullScreen = false, h.emit("unFullScreen");
        }), 200);
      }
    }, h.getEditableContainer = function() {
      return A.getTextarea(h).$textAreaContainer[0];
    }, h;
  })()))))));
  if (r && (function(m, h) {
    return CN(m, "data-w-e-textarea", h);
  })(l, r)) throw new Error("Repeated create editor by selector '" + r + "'");
  var c = (function(m) {
    m === void 0 && (m = {});
    var h = uj(eN), b = {}, w = m.MENU_CONF, D = w === void 0 ? {} : w;
    return f5(h, (function(x, C) {
      b[C] = mn(mn({}, x), D[C] || {});
    })), delete m.MENU_CONF, mn({ scroll: true, readOnly: false, autoFocus: true, decorate: function() {
      return [];
    }, maxLength: 0, MENU_CONF: b, hoverbarKeys: {}, customAlert: function(x, C) {
      window.alert(C + `:
` + x);
    } }, m);
  })(o);
  O7.set(l, c);
  var f = c.hoverbarKeys, d = f === void 0 ? {} : f;
  if (s.forEach((function(m) {
    l = m(l);
  })), a != null && (l.children = o9(l, a)), i && i.length && (l.children = i), l.children.length === 0 && (l.children = [{ type: "paragraph", children: [{ text: "" }] }]), A.normalizeContent(l), r) {
    var p = new kQ(r);
    aE.set(l, p), uE.set(p, l), p.changeViewState(), kn((function() {
      var m = p.$scroll;
      m != null && m.height() < 300 && console.warn(`\u7F16\u8F91\u533A\u57DF\u9AD8\u5EA6 < 300px \u8FD9\u53EF\u80FD\u4F1A\u5BFC\u81F4 modal hoverbar \u5B9A\u4F4D\u5F02\u5E38
Textarea height < 300px . This may be cause modal and hoverbar position error`, m);
    }));
    var v = void 0;
    Object.keys(d).length > 0 && (v = new LQ(), sE.set(v, l), Yv.set(l, v)), l.on("change", (function() {
      l.hidePanelOrModal();
    })), l.on("scroll", (function() {
      l.hidePanelOrModal();
    }));
  } else l.children.forEach((function(m, h) {
    return TN(m, h, l, l);
  }));
  var y = c.onCreated, g = c.onDestroyed;
  return y && l.on("created", (function() {
    return y(l);
  })), g && l.on("destroyed", (function() {
    return g(l);
  })), kn((function() {
    return l.emit("created");
  })), l;
}
var MQ = jy("splice"), zQ = X.TypeError, $Q = Math.max, HQ = Math.min;
De({ target: "Array", proto: true, forced: !MQ }, { splice: function(t10, e) {
  var r, n, o, i, a, u, s = Aa(this), l = is(s), c = _l(t10, l), f = arguments.length;
  if (f === 0 ? r = n = 0 : f === 1 ? (r = 0, n = l - c) : (r = f - 2, n = HQ($Q(Tp(e), 0), l - c)), l + r - n > 9007199254740991) throw zQ("Maximum allowed length exceeded");
  for (o = kj(s, n), i = 0; i < n; i++) (a = c + i) in s && Pd(o, i, s[a]);
  if (o.length = n, r < n) {
    for (i = c; i < l - n; i++) u = i + r, (a = i + n) in s ? s[u] = s[a] : delete s[u];
    for (i = l; i > l - n + r; i--) delete s[i - 1];
  } else if (r > n) for (i = l - n; i > c; i--) u = i + r - 1, (a = i + n - 1) in s ? s[u] = s[a] : delete s[u];
  for (i = 0; i < r; i++) s[i + c] = arguments[i + 2];
  return s.length = l - n + r, o;
} });
var VQ = (function() {
  function t10(e, r) {
    var n = this;
    this.$toolbar = B('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'), this.menus = {}, this.toolbarItems = [], this.config = {}, this.changeToolbarState = aj((function() {
      n.toolbarItems.forEach((function(a) {
        a.changeMenuState();
      }));
    }), 200), this.config = r;
    var o = B(e);
    if (o.length === 0) throw new Error("Cannot find toolbar DOM by selector '" + e + "'");
    this.$box = o;
    var i = this.$toolbar;
    i.on("mousedown", (function(a) {
      return a.preventDefault();
    }), { passive: false }), o.append(i), kn((function() {
      n.registerItems(), n.changeToolbarState(), n.getEditorInstance().on("change", n.changeToolbarState);
    }));
  }
  return t10.prototype.getMenus = function() {
    return this.menus;
  }, t10.prototype.getConfig = function() {
    return this.config;
  }, t10.prototype.registerItems = function() {
    var e = this, r = "", n = this.$toolbar, o = this.config, i = o.toolbarKeys, a = i === void 0 ? [] : i, u = o.insertKeys, s = u === void 0 ? { index: 0, keys: [] } : u, l = o.excludeKeys, c = l === void 0 ? [] : l, f = uj(a);
    s.keys.length > 0 && (typeof s.keys == "string" && (s.keys = [s.keys]), s.keys.forEach((function(v, y) {
      f.splice(s.index + y, 0, v);
    })));
    var d = f.filter((function(v) {
      if (typeof v == "string") {
        if (c.includes(v)) return false;
      } else if (c.includes(v.key)) return false;
      return true;
    })), p = d.length;
    d.forEach((function(v, y) {
      if (v === "|") {
        if (y === 0 || y + 1 === p || r === "|") return;
        var g = kN();
        return n.append(g), void (r = v);
      }
      if (typeof v == "string") return e.registerSingleItem(v, e), void (r = v);
      e.registerGroup(v), r = "group";
    }));
  }, t10.prototype.registerGroup = function(e) {
    var r = this, n = this.$toolbar, o = (function(l) {
      return new C9(l);
    })(e), i = e.menuKeys, a = i === void 0 ? [] : i, u = this.config.excludeKeys, s = u === void 0 ? [] : u;
    a.forEach((function(l) {
      s.includes(l) || r.registerSingleItem(l, o);
    })), n.append(o.$elem);
  }, t10.prototype.registerSingleItem = function(e, r) {
    var n = this.getEditorInstance(), o = r instanceof C9, i = this.menus, a = i[e];
    if (a == null) {
      var u = Rd[e];
      if (u == null) throw new Error("Not found menu item factory by key '" + e + "'");
      if (typeof u != "function") throw new Error("Menu item factory (key='" + e + "') is not a function");
      a = u(), i[e] = a;
    } else console.warn("Duplicated toolbar menu key '" + e + `'
\u91CD\u590D\u6CE8\u518C\u4E86\u83DC\u5355\u680F menu '` + e + "'");
    var s = FN(e, a, o);
    this.toolbarItems.push(s), H5.set(s, n), o ? r.appendBarItem(s) : r.$toolbar.append(s.$elem);
  }, t10.prototype.getEditorInstance = function() {
    var e = $5.get(this);
    if (e == null) throw new Error("Can not get editor instance");
    return e;
  }, t10.prototype.destroy = function() {
    this.$toolbar.remove(), this.menus = {}, this.toolbarItems = [];
  }, t10;
})(), UQ = Jl.EXISTS, WQ = Jn.f, _N = Function.prototype, GQ = pt(_N.toString), PN = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, qQ = pt(PN.exec);
function jN(t10) {
  var e = t10.server, r = e === void 0 ? "" : e, n = t10.fieldName, o = n === void 0 ? "" : n, i = t10.maxFileSize, a = i === void 0 ? 10485760 : i, u = t10.maxNumberOfFiles, s = u === void 0 ? 100 : u, l = t10.meta, c = l === void 0 ? {} : l, f = t10.metaWithUrl, d = f !== void 0 && f, p = t10.headers, v = p === void 0 ? {} : p, y = t10.withCredentials, g = y !== void 0 && y, m = t10.timeout, h = m === void 0 ? 1e4 : m, b = t10.onBeforeUpload, w = b === void 0 ? function(K) {
    return K;
  } : b, D = t10.onSuccess, x = D === void 0 ? function(K, U) {
  } : D, C = t10.onError, O = C === void 0 ? function(K, U, W) {
    console.error(K.name + " upload error", U, W);
  } : C, T = t10.onProgress, R = T === void 0 ? function(K) {
  } : T;
  if (!r) throw new Error(`Cannot get upload server address
\u6CA1\u6709\u914D\u7F6E\u4E0A\u4F20\u5730\u5740`);
  if (!o) throw new Error(`Cannot get fieldName
\u6CA1\u6709\u914D\u7F6E fieldName`);
  var H = r;
  d && (H = (function(K, U) {
    var W = Ht(K.split("#"), 2), q = W[0], et = W[1], st = [];
    f5(U, (function(at, k) {
      st.push(k + "=" + at);
    }));
    var ut = st.join("&");
    return q = q.indexOf("?") > 0 ? q + "&" + ut : q + "?" + ut, et ? q + "#" + et : q;
  })(H, c));
  var M = new zf({ onBeforeUpload: w, restrictions: { maxFileSize: a, maxNumberOfFiles: s }, meta: c }).use(mY, { endpoint: H, headers: v, formData: true, fieldName: o, bundle: true, withCredentials: g, timeout: h });
  return M.on("upload-success", (function(K, U) {
    var W = U.body, q = W === void 0 ? {} : W;
    try {
      x(K, q);
    } catch (et) {
      console.error("wangEditor upload file - onSuccess error", et);
    }
    M.removeFile(K.id);
  })), M.on("progress", (function(K) {
    K < 1 || R(K);
  })), M.on("upload-error", (function(K, U, W) {
    try {
      O(K, U, W);
    } catch (q) {
      console.error("wangEditor upload file - onError error", q);
    }
    M.removeFile(K.id);
  })), M.on("restriction-failed", (function(K, U) {
    try {
      O(K, U);
    } catch (W) {
      console.error("wangEditor upload file - onError error", W);
    }
    M.removeFile(K.id);
  })), M;
}
function Zi(t10) {
  return Zi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
    return typeof e;
  } : function(e) {
    return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  }, Zi(t10);
}
function KQ(t10, e, r) {
  return e in t10 ? Object.defineProperty(t10, e, { value: r, enumerable: true, configurable: true, writable: true }) : t10[e] = r, t10;
}
function Ve(t10) {
  for (var e = 1; e < arguments.length; e++) {
    var r = arguments[e] != null ? Object(arguments[e]) : {}, n = Object.keys(r);
    typeof Object.getOwnPropertySymbols == "function" && n.push.apply(n, Object.getOwnPropertySymbols(r).filter((function(o) {
      return Object.getOwnPropertyDescriptor(r, o).enumerable;
    }))), n.forEach((function(o) {
      KQ(t10, o, r[o]);
    }));
  }
  return t10;
}
function si(t10, e) {
  if (!(t10 instanceof e)) throw new TypeError("Cannot call a class as a function");
}
function S9(t10, e) {
  for (var r = 0; r < e.length; r++) {
    var n = e[r];
    n.enumerable = n.enumerable || false, n.configurable = true, "value" in n && (n.writable = true), Object.defineProperty(t10, n.key, n);
  }
}
function li(t10, e, r) {
  return e && S9(t10.prototype, e), r && S9(t10, r), t10;
}
function Wu(t10) {
  if (t10 === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  return t10;
}
function zd(t10, e) {
  if (e && (Zi(e) === "object" || typeof e == "function")) return e;
  if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
  return Wu(t10);
}
function Ll(t10) {
  return Ll = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
    return e.__proto__ || Object.getPrototypeOf(e);
  }, Ll(t10);
}
function CE(t10, e) {
  return CE = Object.setPrototypeOf || function(r, n) {
    return r.__proto__ = n, r;
  }, CE(t10, e);
}
function My(t10, e) {
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
  t10.prototype = Object.create(e && e.prototype, { constructor: { value: t10, writable: true, configurable: true } }), e && CE(t10, e);
}
nr && !UQ && WQ(_N, "name", { configurable: true, get: function() {
  try {
    return qQ(PN, GQ(this))[1];
  } catch {
    return "";
  }
} });
var YQ = { type: "logger", log: function(t10) {
  this.output("log", t10);
}, warn: function(t10) {
  this.output("warn", t10);
}, error: function(t10) {
  this.output("error", t10);
}, output: function(t10, e) {
  console && console[t10] && console[t10].apply(console, e);
} }, Zo = new ((function() {
  function t10(e) {
    var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
    si(this, t10), this.init(e, r);
  }
  return li(t10, [{ key: "init", value: function(e) {
    var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
    this.prefix = r.prefix || "i18next:", this.logger = e || YQ, this.options = r, this.debug = r.debug;
  } }, { key: "setDebug", value: function(e) {
    this.debug = e;
  } }, { key: "log", value: function() {
    for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
    return this.forward(r, "log", "", true);
  } }, { key: "warn", value: function() {
    for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
    return this.forward(r, "warn", "", true);
  } }, { key: "error", value: function() {
    for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
    return this.forward(r, "error", "");
  } }, { key: "deprecate", value: function() {
    for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
    return this.forward(r, "warn", "WARNING DEPRECATED: ", true);
  } }, { key: "forward", value: function(e, r, n, o) {
    return o && !this.debug ? null : (typeof e[0] == "string" && (e[0] = "".concat(n).concat(this.prefix, " ").concat(e[0])), this.logger[r](e));
  } }, { key: "create", value: function(e) {
    return new t10(this.logger, Ve({}, { prefix: "".concat(this.prefix, ":").concat(e, ":") }, this.options));
  } }]), t10;
})())(), va = (function() {
  function t10() {
    si(this, t10), this.observers = {};
  }
  return li(t10, [{ key: "on", value: function(e, r) {
    var n = this;
    return e.split(" ").forEach((function(o) {
      n.observers[o] = n.observers[o] || [], n.observers[o].push(r);
    })), this;
  } }, { key: "off", value: function(e, r) {
    this.observers[e] && (r ? this.observers[e] = this.observers[e].filter((function(n) {
      return n !== r;
    })) : delete this.observers[e]);
  } }, { key: "emit", value: function(e) {
    for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++) n[o - 1] = arguments[o];
    if (this.observers[e]) {
      var i = [].concat(this.observers[e]);
      i.forEach((function(u) {
        u.apply(void 0, n);
      }));
    }
    if (this.observers["*"]) {
      var a = [].concat(this.observers["*"]);
      a.forEach((function(u) {
        u.apply(u, [e].concat(n));
      }));
    }
  } }]), t10;
})();
function Kc() {
  var t10, e, r = new Promise((function(n, o) {
    t10 = n, e = o;
  }));
  return r.resolve = t10, r.reject = e, r;
}
function A9(t10) {
  return t10 == null ? "" : "" + t10;
}
function XQ(t10, e, r) {
  t10.forEach((function(n) {
    e[n] && (r[n] = e[n]);
  }));
}
function aD(t10, e, r) {
  function n(u) {
    return u && u.indexOf("###") > -1 ? u.replace(/###/g, ".") : u;
  }
  function o() {
    return !t10 || typeof t10 == "string";
  }
  for (var i = typeof e != "string" ? [].concat(e) : e.split("."); i.length > 1; ) {
    if (o()) return {};
    var a = n(i.shift());
    !t10[a] && r && (t10[a] = new r()), t10 = Object.prototype.hasOwnProperty.call(t10, a) ? t10[a] : {};
  }
  return o() ? {} : { obj: t10, k: n(i.shift()) };
}
function O9(t10, e, r) {
  var n = aD(t10, e, Object);
  n.obj[n.k] = r;
}
function r0(t10, e) {
  var r = aD(t10, e), n = r.obj, o = r.k;
  if (n) return n[o];
}
function k9(t10, e, r) {
  var n = r0(t10, r);
  return n !== void 0 ? n : r0(e, r);
}
function NN(t10, e, r) {
  for (var n in e) n !== "__proto__" && n !== "constructor" && (n in t10 ? typeof t10[n] == "string" || t10[n] instanceof String || typeof e[n] == "string" || e[n] instanceof String ? r && (t10[n] = e[n]) : NN(t10[n], e[n], r) : t10[n] = e[n]);
  return t10;
}
function As(t10) {
  return t10.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
}
var ZQ = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;", "/": "&#x2F;" };
function JQ(t10) {
  return typeof t10 == "string" ? t10.replace(/[&<>"'\/]/g, (function(e) {
    return ZQ[e];
  })) : t10;
}
var zy = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1;
function IN(t10, e) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
  if (t10) {
    if (t10[e]) return t10[e];
    for (var n = e.split(r), o = t10, i = 0; i < n.length; ++i) {
      if (!o || typeof o[n[i]] == "string" && i + 1 < n.length) return;
      if (o[n[i]] === void 0) {
        for (var a = 2, u = n.slice(i, i + a).join(r), s = o[u]; s === void 0 && n.length > i + a; ) a++, s = o[u = n.slice(i, i + a).join(r)];
        if (s === void 0) return;
        if (typeof s == "string") return s;
        if (u && typeof s[u] == "string") return s[u];
        var l = n.slice(i + a).join(r);
        return l ? IN(s, l, r) : void 0;
      }
      o = o[n[i]];
    }
    return o;
  }
}
var QQ = (function(t10) {
  function e(r) {
    var n, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { ns: ["translation"], defaultNS: "translation" };
    return si(this, e), n = zd(this, Ll(e).call(this)), zy && va.call(Wu(n)), n.data = r || {}, n.options = o, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n.options.ignoreJSONStructure === void 0 && (n.options.ignoreJSONStructure = true), n;
  }
  return My(e, va), li(e, [{ key: "addNamespaces", value: function(r) {
    this.options.ns.indexOf(r) < 0 && this.options.ns.push(r);
  } }, { key: "removeNamespaces", value: function(r) {
    var n = this.options.ns.indexOf(r);
    n > -1 && this.options.ns.splice(n, 1);
  } }, { key: "getResource", value: function(r, n, o) {
    var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, a = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, u = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure, s = [r, n];
    o && typeof o != "string" && (s = s.concat(o)), o && typeof o == "string" && (s = s.concat(a ? o.split(a) : o)), r.indexOf(".") > -1 && (s = r.split("."));
    var l = r0(this.data, s);
    return l || !u || typeof o != "string" ? l : IN(this.data && this.data[r] && this.data[r][n], o, a);
  } }, { key: "addResource", value: function(r, n, o, i) {
    var a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : { silent: false }, u = this.options.keySeparator;
    u === void 0 && (u = ".");
    var s = [r, n];
    o && (s = s.concat(u ? o.split(u) : o)), r.indexOf(".") > -1 && (i = n, n = (s = r.split("."))[1]), this.addNamespaces(n), O9(this.data, s, i), a.silent || this.emit("added", r, n, o, i);
  } }, { key: "addResources", value: function(r, n, o) {
    var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : { silent: false };
    for (var a in o) typeof o[a] != "string" && Object.prototype.toString.apply(o[a]) !== "[object Array]" || this.addResource(r, n, a, o[a], { silent: true });
    i.silent || this.emit("added", r, n, o);
  } }, { key: "addResourceBundle", value: function(r, n, o, i, a) {
    var u = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : { silent: false }, s = [r, n];
    r.indexOf(".") > -1 && (i = o, o = n, n = (s = r.split("."))[1]), this.addNamespaces(n);
    var l = r0(this.data, s) || {};
    i ? NN(l, o, a) : l = Ve({}, l, o), O9(this.data, s, l), u.silent || this.emit("added", r, n, o);
  } }, { key: "removeResourceBundle", value: function(r, n) {
    this.hasResourceBundle(r, n) && delete this.data[r][n], this.removeNamespaces(n), this.emit("removed", r, n);
  } }, { key: "hasResourceBundle", value: function(r, n) {
    return this.getResource(r, n) !== void 0;
  } }, { key: "getResourceBundle", value: function(r, n) {
    return n || (n = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? Ve({}, {}, this.getResource(r, n)) : this.getResource(r, n);
  } }, { key: "getDataByLanguage", value: function(r) {
    return this.data[r];
  } }, { key: "toJSON", value: function() {
    return this.data;
  } }]), e;
})(), LN = { processors: {}, addPostProcessor: function(t10) {
  this.processors[t10.name] = t10;
}, handle: function(t10, e, r, n, o) {
  var i = this;
  return t10.forEach((function(a) {
    i.processors[a] && (e = i.processors[a].process(e, r, n, o));
  })), e;
} }, B9 = {}, F9 = (function(t10) {
  function e(r) {
    var n, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
    return si(this, e), n = zd(this, Ll(e).call(this)), zy && va.call(Wu(n)), XQ(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], r, Wu(n)), n.options = o, n.options.keySeparator === void 0 && (n.options.keySeparator = "."), n.logger = Zo.create("translator"), n;
  }
  return My(e, va), li(e, [{ key: "changeLanguage", value: function(r) {
    r && (this.language = r);
  } }, { key: "exists", value: function(r) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { interpolation: {} };
    if (r == null) return false;
    var o = this.resolve(r, n);
    return o && o.res !== void 0;
  } }, { key: "extractFromKey", value: function(r, n) {
    var o = n.nsSeparator !== void 0 ? n.nsSeparator : this.options.nsSeparator;
    o === void 0 && (o = ":");
    var i = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, a = n.ns || this.options.defaultNS;
    if (o && r.indexOf(o) > -1) {
      var u = r.match(this.interpolator.nestingRegexp);
      if (u && u.length > 0) return { key: r, namespaces: a };
      var s = r.split(o);
      (o !== i || o === i && this.options.ns.indexOf(s[0]) > -1) && (a = s.shift()), r = s.join(i);
    }
    return typeof a == "string" && (a = [a]), { key: r, namespaces: a };
  } }, { key: "translate", value: function(r, n, o) {
    var i = this;
    if (Zi(n) !== "object" && this.options.overloadTranslationOptionHandler && (n = this.options.overloadTranslationOptionHandler(arguments)), n || (n = {}), r == null) return "";
    Array.isArray(r) || (r = [String(r)]);
    var a = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, u = this.extractFromKey(r[r.length - 1], n), s = u.key, l = u.namespaces, c = l[l.length - 1], f = n.lng || this.language, d = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
    if (f && f.toLowerCase() === "cimode") {
      if (d) {
        var p = n.nsSeparator || this.options.nsSeparator;
        return c + p + s;
      }
      return s;
    }
    var v = this.resolve(r, n), y = v && v.res, g = v && v.usedKey || s, m = v && v.exactUsedKey || s, h = Object.prototype.toString.apply(y), b = ["[object Number]", "[object Function]", "[object RegExp]"], w = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, D = !this.i18nFormat || this.i18nFormat.handleAsObject, x = typeof y != "string" && typeof y != "boolean" && typeof y != "number";
    if (D && y && x && b.indexOf(h) < 0 && (typeof w != "string" || h !== "[object Array]")) {
      if (!n.returnObjects && !this.options.returnObjects) return this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, y, Ve({}, n, { ns: l })) : "key '".concat(s, " (").concat(this.language, ")' returned an object instead of string.");
      if (a) {
        var C = h === "[object Array]", O = C ? [] : {}, T = C ? m : g;
        for (var R in y) if (Object.prototype.hasOwnProperty.call(y, R)) {
          var H = "".concat(T).concat(a).concat(R);
          O[R] = this.translate(H, Ve({}, n, { joinArrays: false, ns: l })), O[R] === H && (O[R] = y[R]);
        }
        y = O;
      }
    } else if (D && typeof w == "string" && h === "[object Array]") (y = y.join(w)) && (y = this.extendTranslation(y, r, n, o));
    else {
      var M = false, K = false, U = n.count !== void 0 && typeof n.count != "string", W = e.hasDefaultValue(n), q = U ? this.pluralResolver.getSuffix(f, n.count) : "", et = n["defaultValue".concat(q)] || n.defaultValue;
      !this.isValidLookup(y) && W && (M = true, y = et), this.isValidLookup(y) || (K = true, y = s);
      var st = n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, ut = st && K ? void 0 : y, at = W && et !== y && this.options.updateMissing;
      if (K || M || at) {
        if (this.logger.log(at ? "updateKey" : "missingKey", f, c, s, at ? et : y), a) {
          var k = this.resolve(s, Ve({}, n, { keySeparator: false }));
          k && k.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
        }
        var S = [], P = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
        if (this.options.saveMissingTo === "fallback" && P && P[0]) for (var $ = 0; $ < P.length; $++) S.push(P[$]);
        else this.options.saveMissingTo === "all" ? S = this.languageUtils.toResolveHierarchy(n.lng || this.language) : S.push(n.lng || this.language);
        var Y = function(V, it, gt) {
          i.options.missingKeyHandler ? i.options.missingKeyHandler(V, c, it, at ? gt : ut, at, n) : i.backendConnector && i.backendConnector.saveMissing && i.backendConnector.saveMissing(V, c, it, at ? gt : ut, at, n), i.emit("missingKey", V, c, it, y);
        };
        this.options.saveMissing && (this.options.saveMissingPlurals && U ? S.forEach((function(V) {
          i.pluralResolver.getSuffixes(V).forEach((function(it) {
            Y([V], s + it, n["defaultValue".concat(it)] || et);
          }));
        })) : Y(S, s, et));
      }
      y = this.extendTranslation(y, r, n, v, o), K && y === s && this.options.appendNamespaceToMissingKey && (y = "".concat(c, ":").concat(s)), (K || M) && this.options.parseMissingKeyHandler && (y = this.options.parseMissingKeyHandler(y));
    }
    return y;
  } }, { key: "extendTranslation", value: function(r, n, o, i, a) {
    var u = this;
    if (this.i18nFormat && this.i18nFormat.parse) r = this.i18nFormat.parse(r, o, i.usedLng, i.usedNS, i.usedKey, { resolved: i });
    else if (!o.skipInterpolation) {
      o.interpolation && this.interpolator.init(Ve({}, o, { interpolation: Ve({}, this.options.interpolation, o.interpolation) }));
      var s, l = o.interpolation && o.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
      if (l) {
        var c = r.match(this.interpolator.nestingRegexp);
        s = c && c.length;
      }
      var f = o.replace && typeof o.replace != "string" ? o.replace : o;
      if (this.options.interpolation.defaultVariables && (f = Ve({}, this.options.interpolation.defaultVariables, f)), r = this.interpolator.interpolate(r, f, o.lng || this.language, o), l) {
        var d = r.match(this.interpolator.nestingRegexp);
        s < (d && d.length) && (o.nest = false);
      }
      o.nest !== false && (r = this.interpolator.nest(r, (function() {
        for (var y = arguments.length, g = new Array(y), m = 0; m < y; m++) g[m] = arguments[m];
        return a && a[0] === g[0] && !o.context ? (u.logger.warn("It seems you are nesting recursively key: ".concat(g[0], " in key: ").concat(n[0])), null) : u.translate.apply(u, g.concat([n]));
      }), o)), o.interpolation && this.interpolator.reset();
    }
    var p = o.postProcess || this.options.postProcess, v = typeof p == "string" ? [p] : p;
    return r != null && v && v.length && o.applyPostProcessor !== false && (r = LN.handle(v, r, n, this.options && this.options.postProcessPassResolved ? Ve({ i18nResolved: i }, o) : o, this)), r;
  } }, { key: "resolve", value: function(r) {
    var n, o, i, a, u, s = this, l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
    return typeof r == "string" && (r = [r]), r.forEach((function(c) {
      if (!s.isValidLookup(n)) {
        var f = s.extractFromKey(c, l), d = f.key;
        o = d;
        var p = f.namespaces;
        s.options.fallbackNS && (p = p.concat(s.options.fallbackNS));
        var v = l.count !== void 0 && typeof l.count != "string", y = l.context !== void 0 && (typeof l.context == "string" || typeof l.context == "number") && l.context !== "", g = l.lngs ? l.lngs : s.languageUtils.toResolveHierarchy(l.lng || s.language, l.fallbackLng);
        p.forEach((function(m) {
          s.isValidLookup(n) || (u = m, !B9["".concat(g[0], "-").concat(m)] && s.utils && s.utils.hasLoadedNamespace && !s.utils.hasLoadedNamespace(u) && (B9["".concat(g[0], "-").concat(m)] = true, s.logger.warn('key "'.concat(o, '" for languages "').concat(g.join(", "), `" won't get resolved as namespace "`).concat(u, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), g.forEach((function(h) {
            if (!s.isValidLookup(n)) {
              a = h;
              var b, w, D = d, x = [D];
              for (s.i18nFormat && s.i18nFormat.addLookupKeys ? s.i18nFormat.addLookupKeys(x, d, h, m, l) : (v && (b = s.pluralResolver.getSuffix(h, l.count)), v && y && x.push(D + b), y && x.push(D += "".concat(s.options.contextSeparator).concat(l.context)), v && x.push(D += b)); w = x.pop(); ) s.isValidLookup(n) || (i = w, n = s.getResource(h, m, w, l));
            }
          })));
        }));
      }
    })), { res: n, usedKey: o, exactUsedKey: i, usedLng: a, usedNS: u };
  } }, { key: "isValidLookup", value: function(r) {
    return !(r === void 0 || !this.options.returnNull && r === null || !this.options.returnEmptyString && r === "");
  } }, { key: "getResource", value: function(r, n, o) {
    var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
    return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(r, n, o, i) : this.resourceStore.getResource(r, n, o, i);
  } }], [{ key: "hasDefaultValue", value: function(r) {
    var n = "defaultValue";
    for (var o in r) if (Object.prototype.hasOwnProperty.call(r, o) && n === o.substring(0, n.length) && r[o] !== void 0) return true;
    return false;
  } }]), e;
})();
function fb(t10) {
  return t10.charAt(0).toUpperCase() + t10.slice(1);
}
var ttt = (function() {
  function t10(e) {
    si(this, t10), this.options = e, this.whitelist = this.options.supportedLngs || false, this.supportedLngs = this.options.supportedLngs || false, this.logger = Zo.create("languageUtils");
  }
  return li(t10, [{ key: "getScriptPartFromCode", value: function(e) {
    if (!e || e.indexOf("-") < 0) return null;
    var r = e.split("-");
    return r.length === 2 ? null : (r.pop(), r[r.length - 1].toLowerCase() === "x" ? null : this.formatLanguageCode(r.join("-")));
  } }, { key: "getLanguagePartFromCode", value: function(e) {
    if (!e || e.indexOf("-") < 0) return e;
    var r = e.split("-");
    return this.formatLanguageCode(r[0]);
  } }, { key: "formatLanguageCode", value: function(e) {
    if (typeof e == "string" && e.indexOf("-") > -1) {
      var r = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], n = e.split("-");
      return this.options.lowerCaseLng ? n = n.map((function(o) {
        return o.toLowerCase();
      })) : n.length === 2 ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), r.indexOf(n[1].toLowerCase()) > -1 && (n[1] = fb(n[1].toLowerCase()))) : n.length === 3 && (n[0] = n[0].toLowerCase(), n[1].length === 2 && (n[1] = n[1].toUpperCase()), n[0] !== "sgn" && n[2].length === 2 && (n[2] = n[2].toUpperCase()), r.indexOf(n[1].toLowerCase()) > -1 && (n[1] = fb(n[1].toLowerCase())), r.indexOf(n[2].toLowerCase()) > -1 && (n[2] = fb(n[2].toLowerCase()))), n.join("-");
    }
    return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
  } }, { key: "isWhitelisted", value: function(e) {
    return this.logger.deprecate("languageUtils.isWhitelisted", `function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`), this.isSupportedCode(e);
  } }, { key: "isSupportedCode", value: function(e) {
    return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1;
  } }, { key: "getBestMatchFromCodes", value: function(e) {
    var r, n = this;
    return e ? (e.forEach((function(o) {
      if (!r) {
        var i = n.formatLanguageCode(o);
        n.options.supportedLngs && !n.isSupportedCode(i) || (r = i);
      }
    })), !r && this.options.supportedLngs && e.forEach((function(o) {
      if (!r) {
        var i = n.getLanguagePartFromCode(o);
        if (n.isSupportedCode(i)) return r = i;
        r = n.options.supportedLngs.find((function(a) {
          if (a.indexOf(i) === 0) return a;
        }));
      }
    })), r || (r = this.getFallbackCodes(this.options.fallbackLng)[0]), r) : null;
  } }, { key: "getFallbackCodes", value: function(e, r) {
    if (!e) return [];
    if (typeof e == "function" && (e = e(r)), typeof e == "string" && (e = [e]), Object.prototype.toString.apply(e) === "[object Array]") return e;
    if (!r) return e.default || [];
    var n = e[r];
    return n || (n = e[this.getScriptPartFromCode(r)]), n || (n = e[this.formatLanguageCode(r)]), n || (n = e[this.getLanguagePartFromCode(r)]), n || (n = e.default), n || [];
  } }, { key: "toResolveHierarchy", value: function(e, r) {
    var n = this, o = this.getFallbackCodes(r || this.options.fallbackLng || [], e), i = [], a = function(u) {
      u && (n.isSupportedCode(u) ? i.push(u) : n.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)));
    };
    return typeof e == "string" && e.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : typeof e == "string" && a(this.formatLanguageCode(e)), o.forEach((function(u) {
      i.indexOf(u) < 0 && a(n.formatLanguageCode(u));
    })), i;
  } }]), t10;
})(), ett = [{ lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"], nr: [1, 2], fc: 1 }, { lngs: ["af", "an", "ast", "az", "bg", "bn", "ca", "da", "de", "dev", "el", "en", "eo", "es", "et", "eu", "fi", "fo", "fur", "fy", "gl", "gu", "ha", "hi", "hu", "hy", "ia", "it", "kk", "kn", "ku", "lb", "mai", "ml", "mn", "mr", "nah", "nap", "nb", "ne", "nl", "nn", "no", "nso", "pa", "pap", "pms", "ps", "pt-PT", "rm", "sco", "se", "si", "so", "son", "sq", "sv", "sw", "ta", "te", "tk", "ur", "yo"], nr: [1, 2], fc: 2 }, { lngs: ["ay", "bo", "cgg", "fa", "ht", "id", "ja", "jbo", "ka", "km", "ko", "ky", "lo", "ms", "sah", "su", "th", "tt", "ug", "vi", "wo", "zh"], nr: [1], fc: 3 }, { lngs: ["be", "bs", "cnr", "dz", "hr", "ru", "sr", "uk"], nr: [1, 2, 5], fc: 4 }, { lngs: ["ar"], nr: [0, 1, 2, 3, 11, 100], fc: 5 }, { lngs: ["cs", "sk"], nr: [1, 2, 5], fc: 6 }, { lngs: ["csb", "pl"], nr: [1, 2, 5], fc: 7 }, { lngs: ["cy"], nr: [1, 2, 3, 8], fc: 8 }, { lngs: ["fr"], nr: [1, 2], fc: 9 }, { lngs: ["ga"], nr: [1, 2, 3, 7, 11], fc: 10 }, { lngs: ["gd"], nr: [1, 2, 3, 20], fc: 11 }, { lngs: ["is"], nr: [1, 2], fc: 12 }, { lngs: ["jv"], nr: [0, 1], fc: 13 }, { lngs: ["kw"], nr: [1, 2, 3, 4], fc: 14 }, { lngs: ["lt"], nr: [1, 2, 10], fc: 15 }, { lngs: ["lv"], nr: [1, 2, 0], fc: 16 }, { lngs: ["mk"], nr: [1, 2], fc: 17 }, { lngs: ["mnk"], nr: [0, 1, 2], fc: 18 }, { lngs: ["mt"], nr: [1, 2, 11, 20], fc: 19 }, { lngs: ["or"], nr: [2, 1], fc: 2 }, { lngs: ["ro"], nr: [1, 2, 20], fc: 20 }, { lngs: ["sl"], nr: [5, 1, 2, 3], fc: 21 }, { lngs: ["he", "iw"], nr: [1, 2, 20, 21], fc: 22 }], rtt = { 1: function(t10) {
  return +(t10 > 1);
}, 2: function(t10) {
  return +(t10 != 1);
}, 3: function(t10) {
  return 0;
}, 4: function(t10) {
  return t10 % 10 == 1 && t10 % 100 != 11 ? 0 : t10 % 10 >= 2 && t10 % 10 <= 4 && (t10 % 100 < 10 || t10 % 100 >= 20) ? 1 : 2;
}, 5: function(t10) {
  return t10 == 0 ? 0 : t10 == 1 ? 1 : t10 == 2 ? 2 : t10 % 100 >= 3 && t10 % 100 <= 10 ? 3 : t10 % 100 >= 11 ? 4 : 5;
}, 6: function(t10) {
  return t10 == 1 ? 0 : t10 >= 2 && t10 <= 4 ? 1 : 2;
}, 7: function(t10) {
  return t10 == 1 ? 0 : t10 % 10 >= 2 && t10 % 10 <= 4 && (t10 % 100 < 10 || t10 % 100 >= 20) ? 1 : 2;
}, 8: function(t10) {
  return t10 == 1 ? 0 : t10 == 2 ? 1 : t10 != 8 && t10 != 11 ? 2 : 3;
}, 9: function(t10) {
  return +(t10 >= 2);
}, 10: function(t10) {
  return t10 == 1 ? 0 : t10 == 2 ? 1 : t10 < 7 ? 2 : t10 < 11 ? 3 : 4;
}, 11: function(t10) {
  return t10 == 1 || t10 == 11 ? 0 : t10 == 2 || t10 == 12 ? 1 : t10 > 2 && t10 < 20 ? 2 : 3;
}, 12: function(t10) {
  return +(t10 % 10 != 1 || t10 % 100 == 11);
}, 13: function(t10) {
  return +(t10 !== 0);
}, 14: function(t10) {
  return t10 == 1 ? 0 : t10 == 2 ? 1 : t10 == 3 ? 2 : 3;
}, 15: function(t10) {
  return t10 % 10 == 1 && t10 % 100 != 11 ? 0 : t10 % 10 >= 2 && (t10 % 100 < 10 || t10 % 100 >= 20) ? 1 : 2;
}, 16: function(t10) {
  return t10 % 10 == 1 && t10 % 100 != 11 ? 0 : t10 !== 0 ? 1 : 2;
}, 17: function(t10) {
  return t10 == 1 || t10 % 10 == 1 && t10 % 100 != 11 ? 0 : 1;
}, 18: function(t10) {
  return t10 == 0 ? 0 : t10 == 1 ? 1 : 2;
}, 19: function(t10) {
  return t10 == 1 ? 0 : t10 == 0 || t10 % 100 > 1 && t10 % 100 < 11 ? 1 : t10 % 100 > 10 && t10 % 100 < 20 ? 2 : 3;
}, 20: function(t10) {
  return t10 == 1 ? 0 : t10 == 0 || t10 % 100 > 0 && t10 % 100 < 20 ? 1 : 2;
}, 21: function(t10) {
  return t10 % 100 == 1 ? 1 : t10 % 100 == 2 ? 2 : t10 % 100 == 3 || t10 % 100 == 4 ? 3 : 0;
}, 22: function(t10) {
  return t10 == 1 ? 0 : t10 == 2 ? 1 : (t10 < 0 || t10 > 10) && t10 % 10 == 0 ? 2 : 3;
} };
function ntt() {
  var t10 = {};
  return ett.forEach((function(e) {
    e.lngs.forEach((function(r) {
      t10[r] = { numbers: e.nr, plurals: rtt[e.fc] };
    }));
  })), t10;
}
var ott = (function() {
  function t10(e) {
    var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
    si(this, t10), this.languageUtils = e, this.options = r, this.logger = Zo.create("pluralResolver"), this.rules = ntt();
  }
  return li(t10, [{ key: "addRule", value: function(e, r) {
    this.rules[e] = r;
  } }, { key: "getRule", value: function(e) {
    return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
  } }, { key: "needsPlural", value: function(e) {
    var r = this.getRule(e);
    return r && r.numbers.length > 1;
  } }, { key: "getPluralFormsOfKey", value: function(e, r) {
    return this.getSuffixes(e).map((function(n) {
      return r + n;
    }));
  } }, { key: "getSuffixes", value: function(e) {
    var r = this, n = this.getRule(e);
    return n ? n.numbers.map((function(o) {
      return r.getSuffix(e, o);
    })) : [];
  } }, { key: "getSuffix", value: function(e, r) {
    var n = this, o = this.getRule(e);
    if (o) {
      var i = o.noAbs ? o.plurals(r) : o.plurals(Math.abs(r)), a = o.numbers[i];
      this.options.simplifyPluralSuffix && o.numbers.length === 2 && o.numbers[0] === 1 && (a === 2 ? a = "plural" : a === 1 && (a = ""));
      var u = function() {
        return n.options.prepend && a.toString() ? n.options.prepend + a.toString() : a.toString();
      };
      return this.options.compatibilityJSON === "v1" ? a === 1 ? "" : typeof a == "number" ? "_plural_".concat(a.toString()) : u() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && o.numbers.length === 2 && o.numbers[0] === 1 ? u() : this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
    }
    return this.logger.warn("no plural rule found for: ".concat(e)), "";
  } }]), t10;
})(), itt = (function() {
  function t10() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
    si(this, t10), this.logger = Zo.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || function(r) {
      return r;
    }, this.init(e);
  }
  return li(t10, [{ key: "init", value: function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
    e.interpolation || (e.interpolation = { escapeValue: true });
    var r = e.interpolation;
    this.escape = r.escape !== void 0 ? r.escape : JQ, this.escapeValue = r.escapeValue === void 0 || r.escapeValue, this.useRawValueToEscape = r.useRawValueToEscape !== void 0 && r.useRawValueToEscape, this.prefix = r.prefix ? As(r.prefix) : r.prefixEscaped || "{{", this.suffix = r.suffix ? As(r.suffix) : r.suffixEscaped || "}}", this.formatSeparator = r.formatSeparator ? r.formatSeparator : r.formatSeparator || ",", this.unescapePrefix = r.unescapeSuffix ? "" : r.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : r.unescapeSuffix || "", this.nestingPrefix = r.nestingPrefix ? As(r.nestingPrefix) : r.nestingPrefixEscaped || As("$t("), this.nestingSuffix = r.nestingSuffix ? As(r.nestingSuffix) : r.nestingSuffixEscaped || As(")"), this.nestingOptionsSeparator = r.nestingOptionsSeparator ? r.nestingOptionsSeparator : r.nestingOptionsSeparator || ",", this.maxReplaces = r.maxReplaces ? r.maxReplaces : 1e3, this.alwaysFormat = r.alwaysFormat !== void 0 && r.alwaysFormat, this.resetRegExp();
  } }, { key: "reset", value: function() {
    this.options && this.init(this.options);
  } }, { key: "resetRegExp", value: function() {
    var e = "".concat(this.prefix, "(.+?)").concat(this.suffix);
    this.regexp = new RegExp(e, "g");
    var r = "".concat(this.prefix).concat(this.unescapePrefix, "(.+?)").concat(this.unescapeSuffix).concat(this.suffix);
    this.regexpUnescape = new RegExp(r, "g");
    var n = "".concat(this.nestingPrefix, "(.+?)").concat(this.nestingSuffix);
    this.nestingRegexp = new RegExp(n, "g");
  } }, { key: "interpolate", value: function(e, r, n, o) {
    var i, a, u, s = this, l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
    function c(y) {
      return y.replace(/\$/g, "$$$$");
    }
    var f = function(y) {
      if (y.indexOf(s.formatSeparator) < 0) {
        var g = k9(r, l, y);
        return s.alwaysFormat ? s.format(g, void 0, n, Ve({}, o, r, { interpolationkey: y })) : g;
      }
      var m = y.split(s.formatSeparator), h = m.shift().trim(), b = m.join(s.formatSeparator).trim();
      return s.format(k9(r, l, h), b, n, Ve({}, o, r, { interpolationkey: h }));
    };
    this.resetRegExp();
    var d = o && o.missingInterpolationHandler || this.options.missingInterpolationHandler, p = o && o.interpolation && o.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables, v = [{ regex: this.regexpUnescape, safeValue: function(y) {
      return c(y);
    } }, { regex: this.regexp, safeValue: function(y) {
      return s.escapeValue ? c(s.escape(y)) : c(y);
    } }];
    return v.forEach((function(y) {
      for (u = 0; i = y.regex.exec(e); ) {
        if ((a = f(i[1].trim())) === void 0) if (typeof d == "function") {
          var g = d(e, i, o);
          a = typeof g == "string" ? g : "";
        } else {
          if (p) {
            a = i[0];
            continue;
          }
          s.logger.warn("missed to pass in variable ".concat(i[1], " for interpolating ").concat(e)), a = "";
        }
        else typeof a == "string" || s.useRawValueToEscape || (a = A9(a));
        var m = y.safeValue(a);
        if (e = e.replace(i[0], m), p ? (y.regex.lastIndex += m.length, y.regex.lastIndex -= i[0].length) : y.regex.lastIndex = 0, ++u >= s.maxReplaces) break;
      }
    })), e;
  } }, { key: "nest", value: function(e, r) {
    var n, o, i = this, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, u = Ve({}, a);
    function s(d, p) {
      var v = this.nestingOptionsSeparator;
      if (d.indexOf(v) < 0) return d;
      var y = d.split(new RegExp("".concat(v, "[ ]*{"))), g = "{".concat(y[1]);
      d = y[0], g = (g = this.interpolate(g, u)).replace(/'/g, '"');
      try {
        u = JSON.parse(g), p && (u = Ve({}, p, u));
      } catch (m) {
        return this.logger.warn("failed parsing options string in nesting for key ".concat(d), m), "".concat(d).concat(v).concat(g);
      }
      return delete u.defaultValue, d;
    }
    for (u.applyPostProcessor = false, delete u.defaultValue; n = this.nestingRegexp.exec(e); ) {
      var l = [], c = false;
      if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
        var f = n[1].split(this.formatSeparator).map((function(d) {
          return d.trim();
        }));
        n[1] = f.shift(), l = f, c = true;
      }
      if ((o = r(s.call(this, n[1].trim(), u), u)) && n[0] === e && typeof o != "string") return o;
      typeof o != "string" && (o = A9(o)), o || (this.logger.warn("missed to resolve ".concat(n[1], " for nesting ").concat(e)), o = ""), c && (o = l.reduce((function(d, p) {
        return i.format(d, p, a.lng, Ve({}, a, { interpolationkey: n[1].trim() }));
      }), o.trim())), e = e.replace(n[0], o), this.regexp.lastIndex = 0;
    }
    return e;
  } }]), t10;
})(), att = (function(t10) {
  function e(r, n, o) {
    var i, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
    return si(this, e), i = zd(this, Ll(e).call(this)), zy && va.call(Wu(i)), i.backend = r, i.store = n, i.services = o, i.languageUtils = o.languageUtils, i.options = a, i.logger = Zo.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(o, a.backend, a), i;
  }
  return My(e, va), li(e, [{ key: "queueLoad", value: function(r, n, o, i) {
    var a = this, u = [], s = [], l = [], c = [];
    return r.forEach((function(f) {
      var d = true;
      n.forEach((function(p) {
        var v = "".concat(f, "|").concat(p);
        !o.reload && a.store.hasResourceBundle(f, p) ? a.state[v] = 2 : a.state[v] < 0 || (a.state[v] === 1 ? s.indexOf(v) < 0 && s.push(v) : (a.state[v] = 1, d = false, s.indexOf(v) < 0 && s.push(v), u.indexOf(v) < 0 && u.push(v), c.indexOf(p) < 0 && c.push(p)));
      })), d || l.push(f);
    })), (u.length || s.length) && this.queue.push({ pending: s, loaded: {}, errors: [], callback: i }), { toLoad: u, pending: s, toLoadLanguages: l, toLoadNamespaces: c };
  } }, { key: "loaded", value: function(r, n, o) {
    var i = r.split("|"), a = i[0], u = i[1];
    n && this.emit("failedLoading", a, u, n), o && this.store.addResourceBundle(a, u, o), this.state[r] = n ? -1 : 2;
    var s = {};
    this.queue.forEach((function(l) {
      (function(c, f, d, p) {
        var v = aD(c, f, Object), y = v.obj, g = v.k;
        y[g] = y[g] || [], y[g].push(d);
      })(l.loaded, [a], u), (function(c, f) {
        for (var d = c.indexOf(f); d !== -1; ) c.splice(d, 1), d = c.indexOf(f);
      })(l.pending, r), n && l.errors.push(n), l.pending.length !== 0 || l.done || (Object.keys(l.loaded).forEach((function(c) {
        s[c] || (s[c] = []), l.loaded[c].length && l.loaded[c].forEach((function(f) {
          s[c].indexOf(f) < 0 && s[c].push(f);
        }));
      })), l.done = true, l.errors.length ? l.callback(l.errors) : l.callback());
    })), this.emit("loaded", s), this.queue = this.queue.filter((function(l) {
      return !l.done;
    }));
  } }, { key: "read", value: function(r, n, o) {
    var i = this, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 350, s = arguments.length > 5 ? arguments[5] : void 0;
    return r.length ? this.backend[o](r, n, (function(l, c) {
      l && c && a < 5 ? setTimeout((function() {
        i.read.call(i, r, n, o, a + 1, 2 * u, s);
      }), u) : s(l, c);
    })) : s(null, {});
  } }, { key: "prepareLoading", value: function(r, n) {
    var o = this, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = arguments.length > 3 ? arguments[3] : void 0;
    if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), a && a();
    typeof r == "string" && (r = this.languageUtils.toResolveHierarchy(r)), typeof n == "string" && (n = [n]);
    var u = this.queueLoad(r, n, i, a);
    if (!u.toLoad.length) return u.pending.length || a(), null;
    u.toLoad.forEach((function(s) {
      o.loadOne(s);
    }));
  } }, { key: "load", value: function(r, n, o) {
    this.prepareLoading(r, n, {}, o);
  } }, { key: "reload", value: function(r, n, o) {
    this.prepareLoading(r, n, { reload: true }, o);
  } }, { key: "loadOne", value: function(r) {
    var n = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", i = r.split("|"), a = i[0], u = i[1];
    this.read(a, u, "read", void 0, void 0, (function(s, l) {
      s && n.logger.warn("".concat(o, "loading namespace ").concat(u, " for language ").concat(a, " failed"), s), !s && l && n.logger.log("".concat(o, "loaded namespace ").concat(u, " for language ").concat(a), l), n.loaded(r, s, l);
    }));
  } }, { key: "saveMissing", value: function(r, n, o, i, a) {
    var u = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
    this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(n) ? this.logger.warn('did not save key "'.concat(o, '" as the namespace "').concat(n, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!") : o != null && o !== "" && (this.backend && this.backend.create && this.backend.create(r, n, o, i, null, Ve({}, u, { isUpdate: a })), r && r[0] && this.store.addResource(r[0], n, o, i));
  } }]), e;
})();
function utt() {
  return { debug: false, initImmediate: true, ns: ["translation"], defaultNS: ["translation"], fallbackLng: ["dev"], fallbackNS: false, whitelist: false, nonExplicitWhitelist: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: "all", preload: false, simplifyPluralSuffix: true, keySeparator: ".", nsSeparator: ":", pluralSeparator: "_", contextSeparator: "_", partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: "fallback", saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: true, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: function(t10) {
    var e = {};
    if (Zi(t10[1]) === "object" && (e = t10[1]), typeof t10[1] == "string" && (e.defaultValue = t10[1]), typeof t10[2] == "string" && (e.tDescription = t10[2]), Zi(t10[2]) === "object" || Zi(t10[3]) === "object") {
      var r = t10[3] || t10[2];
      Object.keys(r).forEach((function(n) {
        e[n] = r[n];
      }));
    }
    return e;
  }, interpolation: { escapeValue: true, format: function(t10, e, r, n) {
    return t10;
  }, prefix: "{{", suffix: "}}", formatSeparator: ",", unescapePrefix: "-", nestingPrefix: "$t(", nestingSuffix: ")", nestingOptionsSeparator: ",", maxReplaces: 1e3, skipOnVariables: false } };
}
function T9(t10) {
  return typeof t10.ns == "string" && (t10.ns = [t10.ns]), typeof t10.fallbackLng == "string" && (t10.fallbackLng = [t10.fallbackLng]), typeof t10.fallbackNS == "string" && (t10.fallbackNS = [t10.fallbackNS]), t10.whitelist && (t10.whitelist && t10.whitelist.indexOf("cimode") < 0 && (t10.whitelist = t10.whitelist.concat(["cimode"])), t10.supportedLngs = t10.whitelist), t10.nonExplicitWhitelist && (t10.nonExplicitSupportedLngs = t10.nonExplicitWhitelist), t10.supportedLngs && t10.supportedLngs.indexOf("cimode") < 0 && (t10.supportedLngs = t10.supportedLngs.concat(["cimode"])), t10;
}
function $h() {
}
var stt = (function(t10) {
  function e() {
    var r, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
    if (si(this, e), r = zd(this, Ll(e).call(this)), zy && va.call(Wu(r)), r.options = T9(n), r.services = {}, r.logger = Zo, r.modules = { external: [] }, o && !r.isInitialized && !n.isClone) {
      if (!r.options.initImmediate) return r.init(n, o), zd(r, Wu(r));
      setTimeout((function() {
        r.init(n, o);
      }), 0);
    }
    return r;
  }
  return My(e, va), li(e, [{ key: "init", value: function() {
    var r = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
    function i(p) {
      return p ? typeof p == "function" ? new p() : p : null;
    }
    if (typeof n == "function" && (o = n, n = {}), n.whitelist && !n.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), n.nonExplicitWhitelist && !n.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = Ve({}, utt(), this.options, T9(n)), this.format = this.options.interpolation.format, o || (o = $h), !this.options.isClone) {
      this.modules.logger ? Zo.init(i(this.modules.logger), this.options) : Zo.init(null, this.options);
      var a = new ttt(this.options);
      this.store = new QQ(this.options.resources, this.options);
      var u = this.services;
      u.logger = Zo, u.resourceStore = this.store, u.languageUtils = a, u.pluralResolver = new ott(a, { prepend: this.options.pluralSeparator, compatibilityJSON: this.options.compatibilityJSON, simplifyPluralSuffix: this.options.simplifyPluralSuffix }), u.interpolator = new itt(this.options), u.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, u.backendConnector = new att(i(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (function(p) {
        for (var v = arguments.length, y = new Array(v > 1 ? v - 1 : 0), g = 1; g < v; g++) y[g - 1] = arguments[g];
        r.emit.apply(r, [p].concat(y));
      })), this.modules.languageDetector && (u.languageDetector = i(this.modules.languageDetector), u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = i(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new F9(this.services, this.options), this.translator.on("*", (function(p) {
        for (var v = arguments.length, y = new Array(v > 1 ? v - 1 : 0), g = 1; g < v; g++) y[g - 1] = arguments[g];
        r.emit.apply(r, [p].concat(y));
      })), this.modules.external.forEach((function(p) {
        p.init && p.init(r);
      }));
    }
    if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
      var s = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
      s.length > 0 && s[0] !== "dev" && (this.options.lng = s[0]);
    }
    this.services.languageDetector || this.options.lng || this.logger.warn("init: no languageDetector is used and no lng is defined");
    var l = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
    l.forEach((function(p) {
      r[p] = function() {
        var v;
        return (v = r.store)[p].apply(v, arguments);
      };
    }));
    var c = ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"];
    c.forEach((function(p) {
      r[p] = function() {
        var v;
        return (v = r.store)[p].apply(v, arguments), r;
      };
    }));
    var f = Kc(), d = function() {
      var p = function(v, y) {
        r.isInitialized && !r.initializedStoreOnce && r.logger.warn("init: i18next is already initialized. You should call init just once!"), r.isInitialized = true, r.options.isClone || r.logger.log("initialized", r.options), r.emit("initialized", r.options), f.resolve(y), o(v, y);
      };
      if (r.languages && r.options.compatibilityAPI !== "v1" && !r.isInitialized) return p(null, r.t.bind(r));
      r.changeLanguage(r.options.lng, p);
    };
    return this.options.resources || !this.options.initImmediate ? d() : setTimeout(d, 0), f;
  } }, { key: "loadResources", value: function(r) {
    var n = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $h, i = o, a = typeof r == "string" ? r : this.language;
    if (typeof r == "function" && (i = r), !this.options.resources || this.options.partialBundledLanguages) {
      if (a && a.toLowerCase() === "cimode") return i();
      var u = [], s = function(c) {
        c && n.services.languageUtils.toResolveHierarchy(c).forEach((function(f) {
          u.indexOf(f) < 0 && u.push(f);
        }));
      };
      if (a) s(a);
      else {
        var l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
        l.forEach((function(c) {
          return s(c);
        }));
      }
      this.options.preload && this.options.preload.forEach((function(c) {
        return s(c);
      })), this.services.backendConnector.load(u, this.options.ns, i);
    } else i(null);
  } }, { key: "reloadResources", value: function(r, n, o) {
    var i = Kc();
    return r || (r = this.languages), n || (n = this.options.ns), o || (o = $h), this.services.backendConnector.reload(r, n, (function(a) {
      i.resolve(), o(a);
    })), i;
  } }, { key: "use", value: function(r) {
    if (!r) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
    if (!r.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
    return r.type === "backend" && (this.modules.backend = r), (r.type === "logger" || r.log && r.warn && r.error) && (this.modules.logger = r), r.type === "languageDetector" && (this.modules.languageDetector = r), r.type === "i18nFormat" && (this.modules.i18nFormat = r), r.type === "postProcessor" && LN.addPostProcessor(r), r.type === "3rdParty" && this.modules.external.push(r), this;
  } }, { key: "changeLanguage", value: function(r, n) {
    var o = this;
    this.isLanguageChangingTo = r;
    var i = Kc();
    this.emit("languageChanging", r);
    var a = function(u) {
      r || u || !o.services.languageDetector || (u = []);
      var s = typeof u == "string" ? u : o.services.languageUtils.getBestMatchFromCodes(u);
      s && (o.language || (o.language = s, o.languages = o.services.languageUtils.toResolveHierarchy(s)), o.translator.language || o.translator.changeLanguage(s), o.services.languageDetector && o.services.languageDetector.cacheUserLanguage(s)), o.loadResources(s, (function(l) {
        (function(c, f) {
          f ? (o.language = f, o.languages = o.services.languageUtils.toResolveHierarchy(f), o.translator.changeLanguage(f), o.isLanguageChangingTo = void 0, o.emit("languageChanged", f), o.logger.log("languageChanged", f)) : o.isLanguageChangingTo = void 0, i.resolve((function() {
            return o.t.apply(o, arguments);
          })), n && n(c, (function() {
            return o.t.apply(o, arguments);
          }));
        })(l, s);
      }));
    };
    return r || !this.services.languageDetector || this.services.languageDetector.async ? !r && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect(a) : a(r) : a(this.services.languageDetector.detect()), i;
  } }, { key: "getFixedT", value: function(r, n, o) {
    var i = this, a = function u(s, l) {
      var c;
      if (Zi(l) !== "object") {
        for (var f = arguments.length, d = new Array(f > 2 ? f - 2 : 0), p = 2; p < f; p++) d[p - 2] = arguments[p];
        c = i.options.overloadTranslationOptionHandler([s, l].concat(d));
      } else c = Ve({}, l);
      c.lng = c.lng || u.lng, c.lngs = c.lngs || u.lngs, c.ns = c.ns || u.ns;
      var v = i.options.keySeparator || ".", y = o ? "".concat(o).concat(v).concat(s) : s;
      return i.t(y, c);
    };
    return typeof r == "string" ? a.lng = r : a.lngs = r, a.ns = n, a.keyPrefix = o, a;
  } }, { key: "t", value: function() {
    var r;
    return this.translator && (r = this.translator).translate.apply(r, arguments);
  } }, { key: "exists", value: function() {
    var r;
    return this.translator && (r = this.translator).exists.apply(r, arguments);
  } }, { key: "setDefaultNamespace", value: function(r) {
    this.options.defaultNS = r;
  } }, { key: "hasLoadedNamespace", value: function(r) {
    var n = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
    if (!this.isInitialized) return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), false;
    if (!this.languages || !this.languages.length) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), false;
    var i = this.languages[0], a = !!this.options && this.options.fallbackLng, u = this.languages[this.languages.length - 1];
    if (i.toLowerCase() === "cimode") return true;
    var s = function(c, f) {
      var d = n.services.backendConnector.state["".concat(c, "|").concat(f)];
      return d === -1 || d === 2;
    };
    if (o.precheck) {
      var l = o.precheck(this, s);
      if (l !== void 0) return l;
    }
    return !!this.hasResourceBundle(i, r) || !this.services.backendConnector.backend || !(!s(i, r) || a && !s(u, r));
  } }, { key: "loadNamespaces", value: function(r, n) {
    var o = this, i = Kc();
    return this.options.ns ? (typeof r == "string" && (r = [r]), r.forEach((function(a) {
      o.options.ns.indexOf(a) < 0 && o.options.ns.push(a);
    })), this.loadResources((function(a) {
      i.resolve(), n && n(a);
    })), i) : (n && n(), Promise.resolve());
  } }, { key: "loadLanguages", value: function(r, n) {
    var o = Kc();
    typeof r == "string" && (r = [r]);
    var i = this.options.preload || [], a = r.filter((function(u) {
      return i.indexOf(u) < 0;
    }));
    return a.length ? (this.options.preload = i.concat(a), this.loadResources((function(u) {
      o.resolve(), n && n(u);
    })), o) : (n && n(), Promise.resolve());
  } }, { key: "dir", value: function(r) {
    return r || (r = this.languages && this.languages.length > 0 ? this.languages[0] : this.language), r ? ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(r)) >= 0 ? "rtl" : "ltr" : "rtl";
  } }, { key: "createInstance", value: function() {
    var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
    return new e(r, n);
  } }, { key: "cloneInstance", value: function() {
    var r = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $h, i = Ve({}, this.options, n, { isClone: true }), a = new e(i), u = ["store", "services", "language"];
    return u.forEach((function(s) {
      a[s] = r[s];
    })), a.services = Ve({}, this.services), a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a.translator = new F9(a.services, a.options), a.translator.on("*", (function(s) {
      for (var l = arguments.length, c = new Array(l > 1 ? l - 1 : 0), f = 1; f < l; f++) c[f - 1] = arguments[f];
      a.emit.apply(a, [s].concat(c));
    })), a.init(i, o), a.translator.options = a.options, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
  } }, { key: "toJSON", value: function() {
    return { options: this.options, store: this.store, language: this.language, languages: this.languages };
  } }]), e;
})(), n0 = new stt();
function Wr(t10, e) {
  n0.addResourceBundle(t10, "translation", e, true, true);
}
n0.init({ lng: "zh-CN", resources: {} });
var Q = n0.t.bind(n0);
Wr("en", { editor: { more: "More", justify: "Justify", indent: "Indent", image: "Image", video: "Video" } }), Wr("zh-CN", { editor: { more: "\u66F4\u591A", justify: "\u5BF9\u9F50", indent: "\u7F29\u8FDB", image: "\u56FE\u7247", video: "\u89C6\u9891" } });
var ltt = X3 ? {}.toString : function() {
  return "[object " + by(this) + "]";
};
X3 || Lu(Object.prototype, "toString", ltt, { unsafe: true });
var _9 = Array.isArray || function(t10) {
  return hu(t10) == "Array";
}, RN = function() {
}, ctt = [], MN = Dp("Reflect", "construct"), uD = /^\s*(?:class|function)\b/, ftt = re(uD.exec), dtt = !uD.exec(RN), Yc = function(t10) {
  if (!tr(t10)) return false;
  try {
    return MN(RN, ctt, t10), true;
  } catch {
    return false;
  }
}, ptt = !MN || ur((function() {
  var t10;
  return Yc(Yc.call) || !Yc(Object) || !Yc((function() {
    t10 = true;
  })) || t10;
})) ? function(t10) {
  if (!tr(t10)) return false;
  switch (by(t10)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return false;
  }
  return dtt || !!ftt(uD, W3(t10));
} : Yc, htt = Pr("species"), P9 = Et.Array, gtt = function(t10, e) {
  return new ((function(r) {
    var n;
    return _9(r) && (n = r.constructor, (ptt(n) && (n === P9 || _9(n.prototype)) || ho(n) && (n = n[htt]) === null) && (n = void 0)), n === void 0 ? P9 : n;
  })(t10))(e === 0 ? 0 : e);
}, j9 = re([].push), vtt = function(t10) {
  var e = t10 == 1, r = t10 == 2, n = t10 == 3, o = t10 == 4, i = t10 == 6, a = t10 == 7, u = t10 == 5 || i;
  return function(s, l, c, f) {
    for (var d, p, v = $3(s), y = eP(v), g = hP(l, c), m = my(y), h = 0, b = f || gtt, w = e ? b(s, m) : r || a ? b(s, 0) : void 0; m > h; h++) if ((u || h in y) && (p = g(d = y[h], h, v), t10)) if (e) w[h] = p;
    else if (p) switch (t10) {
      case 3:
        return true;
      case 5:
        return d;
      case 6:
        return h;
      case 2:
        j9(w, d);
    }
    else switch (t10) {
      case 4:
        return false;
      case 7:
        j9(w, d);
    }
    return i ? -1 : n || o ? o : w;
  };
}, ytt = { forEach: vtt(0) }.forEach, mtt = (function(t10, e) {
  var r = [][t10];
  return !!r && ur((function() {
    r.call(null, e || function() {
      throw 1;
    }, 1);
  }));
})("forEach"), db = mtt ? [].forEach : function(t10) {
  return ytt(this, t10, arguments.length > 1 ? arguments[1] : void 0);
}, zN = function(t10) {
  if (t10 && t10.forEach !== db) try {
    Rr(t10, "forEach", db);
  } catch {
    t10.forEach = db;
  }
};
for (var pb in Dv) Dv[pb] && zN(Et[pb] && Et[pb].prototype);
zN(yP), Wr("en", { common: { ok: "OK", delete: "Delete", enter: "Enter" }, blockQuote: { title: "Quote" }, codeBlock: { title: "Code block" }, color: { color: "Font color", bgColor: "Back color", default: "Default color", clear: "Clear back color" }, divider: { title: "Divider" }, emotion: { title: "Emotion" }, fontSize: { title: "Font size", default: "Default" }, fontFamily: { title: "Font family", default: "Default" }, fullScreen: { title: "Full screen" }, header: { title: "Header", text: "Text" }, image: { netImage: "Net image", delete: "Delete image", edit: "Edit image", viewLink: "View link", src: "Image src", desc: "Description", link: "Image link" }, indent: { decrease: "Decrease", increase: "Increase" }, justify: { left: "Left", right: "Right", center: "Center", justify: "Justify" }, lineHeight: { title: "Line height", default: "Default" }, link: { insert: "Insert link", text: "Link text", url: "Link source", unLink: "Unlink", edit: "Edit link", view: "View link" }, textStyle: { bold: "Bold", clear: "Clear styles", code: "Inline code", italic: "Italic", sub: "Sub", sup: "Sup", through: "Through", underline: "Underline" }, undo: { undo: "undo", redo: "Redo" }, todo: { todo: "Todo" } }), Wr("zh-CN", { common: { ok: "\u786E\u5B9A", delete: "\u5220\u9664", enter: "\u56DE\u8F66" }, blockQuote: { title: "\u5F15\u7528" }, codeBlock: { title: "\u4EE3\u7801\u5757" }, color: { color: "\u6587\u5B57\u989C\u8272", bgColor: "\u80CC\u666F\u8272", default: "\u9ED8\u8BA4\u989C\u8272", clear: "\u6E05\u9664\u80CC\u666F\u8272" }, divider: { title: "\u5206\u5272\u7EBF" }, emotion: { title: "\u8868\u60C5" }, fontSize: { title: "\u5B57\u53F7", default: "\u9ED8\u8BA4\u5B57\u53F7" }, fontFamily: { title: "\u5B57\u4F53", default: "\u9ED8\u8BA4\u5B57\u4F53" }, fullScreen: { title: "\u5168\u5C4F" }, header: { title: "\u6807\u9898", text: "\u6B63\u6587" }, image: { netImage: "\u7F51\u7EDC\u56FE\u7247", delete: "\u5220\u9664\u56FE\u7247", edit: "\u7F16\u8F91\u56FE\u7247", viewLink: "\u67E5\u770B\u94FE\u63A5", src: "\u56FE\u7247\u5730\u5740", desc: "\u56FE\u7247\u63CF\u8FF0", link: "\u56FE\u7247\u94FE\u63A5" }, indent: { decrease: "\u51CF\u5C11\u7F29\u8FDB", increase: "\u589E\u52A0\u7F29\u8FDB" }, justify: { left: "\u5DE6\u5BF9\u9F50", right: "\u53F3\u5BF9\u9F50", center: "\u5C45\u4E2D\u5BF9\u9F50", justify: "\u4E24\u7AEF\u5BF9\u9F50" }, lineHeight: { title: "\u884C\u9AD8", default: "\u9ED8\u8BA4\u884C\u9AD8" }, link: { insert: "\u63D2\u5165\u94FE\u63A5", text: "\u94FE\u63A5\u6587\u672C", url: "\u94FE\u63A5\u5730\u5740", unLink: "\u53D6\u6D88\u94FE\u63A5", edit: "\u4FEE\u6539\u94FE\u63A5", view: "\u67E5\u770B\u94FE\u63A5" }, textStyle: { bold: "\u7C97\u4F53", clear: "\u6E05\u9664\u683C\u5F0F", code: "\u884C\u5185\u4EE3\u7801", italic: "\u659C\u4F53", sub: "\u4E0B\u6807", sup: "\u4E0A\u6807", through: "\u5220\u9664\u7EBF", underline: "\u4E0B\u5212\u7EBF" }, undo: { undo: "\u64A4\u9500", redo: "\u91CD\u505A" }, todo: { todo: "\u5F85\u529E" } });
var btt = { type: "paragraph", renderElem: function(t10, e, r) {
  return bt("p", null, e);
} }, o0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function $y(t10) {
  var e = { exports: {} };
  return t10(e, e.exports), e.exports;
}
var Si, zg, Hh = function(t10) {
  return t10 && t10.Math == Math && t10;
}, St = Hh(typeof globalThis == "object" && globalThis) || Hh(typeof window == "object" && window) || Hh(typeof self == "object" && self) || Hh(typeof o0 == "object" && o0) || /* @__PURE__ */ (function() {
  return this;
})() || Function("return this")(), Ce = function(t10) {
  try {
    return !!t10();
  } catch {
    return true;
  }
}, Xn = !Ce((function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
})), Xc = Function.prototype.call, Ne = Xc.bind ? Xc.bind(Xc) : function() {
  return Xc.apply(Xc, arguments);
}, N9 = {}.propertyIsEnumerable, I9 = Object.getOwnPropertyDescriptor, wtt = I9 && !N9.call({ 1: 2 }, 1) ? function(t10) {
  var e = I9(this, t10);
  return !!e && e.enumerable;
} : N9, $N = { f: wtt }, sD = function(t10, e) {
  return { enumerable: !(1 & t10), configurable: !(2 & t10), writable: !(4 & t10), value: e };
}, HN = Function.prototype, xE = HN.bind, SE = HN.call, Ett = xE && xE.bind(SE), yt = xE ? function(t10) {
  return t10 && Ett(SE, t10);
} : function(t10) {
  return t10 && function() {
    return SE.apply(t10, arguments);
  };
}, Dtt = yt({}.toString), Ctt = yt("".slice), Ji = function(t10) {
  return Ctt(Dtt(t10), 8, -1);
}, hb = St.Object, xtt = yt("".split), Hy = Ce((function() {
  return !hb("z").propertyIsEnumerable(0);
})) ? function(t10) {
  return Ji(t10) == "String" ? xtt(t10, "") : hb(t10);
} : hb, Stt = St.TypeError, Bn = function(t10) {
  if (t10 == null) throw Stt("Can't call method on " + t10);
  return t10;
}, nc = function(t10) {
  return Hy(Bn(t10));
}, xr = function(t10) {
  return typeof t10 == "function";
}, vo = function(t10) {
  return typeof t10 == "object" ? t10 !== null : xr(t10);
}, Att = function(t10) {
  return xr(t10) ? t10 : void 0;
}, jp = function(t10, e) {
  return arguments.length < 2 ? Att(St[t10]) : St[t10] && St[t10][e];
}, VN = yt({}.isPrototypeOf), gb = jp("navigator", "userAgent") || "", L9 = St.process, R9 = St.Deno, M9 = L9 && L9.versions || R9 && R9.version, z9 = M9 && M9.v8;
z9 && (zg = (Si = z9.split("."))[0] > 0 && Si[0] < 4 ? 1 : +(Si[0] + Si[1])), !zg && gb && (!(Si = gb.match(/Edge\/(\d+)/)) || Si[1] >= 74) && (Si = gb.match(/Chrome\/(\d+)/)) && (zg = +Si[1]);
var AE = zg, OE = !!Object.getOwnPropertySymbols && !Ce((function() {
  var t10 = /* @__PURE__ */ Symbol();
  return !String(t10) || !(Object(t10) instanceof Symbol) || !Symbol.sham && AE && AE < 41;
})), lD = OE && !Symbol.sham && typeof Symbol.iterator == "symbol", Ott = St.Object, vb = lD ? function(t10) {
  return typeof t10 == "symbol";
} : function(t10) {
  var e = jp("Symbol");
  return xr(e) && VN(e.prototype, Ott(t10));
}, ktt = St.String, UN = function(t10) {
  try {
    return ktt(t10);
  } catch {
    return "Object";
  }
}, Btt = St.TypeError, WN = function(t10) {
  if (xr(t10)) return t10;
  throw Btt(UN(t10) + " is not a function");
}, Vy = function(t10, e) {
  var r = t10[e];
  return r == null ? void 0 : WN(r);
}, Ftt = St.TypeError, Ttt = Object.defineProperty, cD = function(t10, e) {
  try {
    Ttt(St, t10, { value: e, configurable: true, writable: true });
  } catch {
    St[t10] = e;
  }
  return e;
}, Qi = St["__core-js_shared__"] || cD("__core-js_shared__", {}), fD = $y((function(t10) {
  (t10.exports = function(e, r) {
    return Qi[e] || (Qi[e] = r !== void 0 ? r : {});
  })("versions", []).push({ version: "3.19.3", mode: "global", copyright: "\xA9 2021 Denis Pushkarev (zloirock.ru)" });
})), _tt = St.Object, Np = function(t10) {
  return _tt(Bn(t10));
}, Ptt = yt({}.hasOwnProperty), En = Object.hasOwn || function(t10, e) {
  return Ptt(Np(t10), e);
}, jtt = 0, Ntt = Math.random(), Itt = yt(1 .toString), GN = function(t10) {
  return "Symbol(" + (t10 === void 0 ? "" : t10) + ")_" + Itt(++jtt + Ntt, 36);
}, Zc = fD("wks"), Du = St.Symbol, $9 = Du && Du.for, Ltt = lD ? Du : Du && Du.withoutSetter || GN, ln = function(t10) {
  if (!En(Zc, t10) || !OE && typeof Zc[t10] != "string") {
    var e = "Symbol." + t10;
    OE && En(Du, t10) ? Zc[t10] = Du[t10] : Zc[t10] = lD && $9 ? $9(e) : Ltt(e);
  }
  return Zc[t10];
}, Rtt = St.TypeError, Mtt = ln("toPrimitive"), dD = function(t10) {
  var e = (function(r, n) {
    if (!vo(r) || vb(r)) return r;
    var o, i = Vy(r, Mtt);
    if (i) {
      if (o = Ne(i, r, n), !vo(o) || vb(o)) return o;
      throw Rtt("Can't convert object to primitive value");
    }
    return (function(a, u) {
      var s, l;
      if (xr(s = a.toString) && !vo(l = Ne(s, a)) || xr(s = a.valueOf) && !vo(l = Ne(s, a))) return l;
      throw Ftt("Can't convert object to primitive value");
    })(r);
  })(t10, "string");
  return vb(e) ? e : e + "";
}, kE = St.document, ztt = vo(kE) && vo(kE.createElement), pD = function(t10) {
  return ztt ? kE.createElement(t10) : {};
}, qN = !Xn && !Ce((function() {
  return Object.defineProperty(pD("div"), "a", { get: function() {
    return 7;
  } }).a != 7;
})), H9 = Object.getOwnPropertyDescriptor, hD = { f: Xn ? H9 : function(t10, e) {
  if (t10 = nc(t10), e = dD(e), qN) try {
    return H9(t10, e);
  } catch {
  }
  if (En(t10, e)) return sD(!Ne($N.f, t10, e), t10[e]);
} }, $tt = St.String, Htt = St.TypeError, en = function(t10) {
  if (vo(t10)) return t10;
  throw Htt($tt(t10) + " is not an object");
}, Vtt = St.TypeError, V9 = Object.defineProperty, oc = { f: Xn ? V9 : function(t10, e, r) {
  if (en(t10), e = dD(e), en(r), qN) try {
    return V9(t10, e, r);
  } catch {
  }
  if ("get" in r || "set" in r) throw Vtt("Accessors not supported");
  return "value" in r && (t10[e] = r.value), t10;
} }, Rl = Xn ? function(t10, e, r) {
  return oc.f(t10, e, sD(1, r));
} : function(t10, e, r) {
  return t10[e] = r, t10;
}, Utt = yt(Function.toString);
xr(Qi.inspectSource) || (Qi.inspectSource = function(t10) {
  return Utt(t10);
});
var BE, i0, FE, gD = Qi.inspectSource, U9 = St.WeakMap, Wtt = xr(U9) && /native code/.test(gD(U9)), W9 = fD("keys"), KN = function(t10) {
  return W9[t10] || (W9[t10] = GN(t10));
}, vD = {}, G9 = St.TypeError, Gtt = St.WeakMap;
if (Wtt || Qi.state) {
  var Ha = Qi.state || (Qi.state = new Gtt()), qtt = yt(Ha.get), q9 = yt(Ha.has), Ktt = yt(Ha.set);
  BE = function(t10, e) {
    if (q9(Ha, t10)) throw new G9("Object already initialized");
    return e.facade = t10, Ktt(Ha, t10, e), e;
  }, i0 = function(t10) {
    return qtt(Ha, t10) || {};
  }, FE = function(t10) {
    return q9(Ha, t10);
  };
} else {
  var Os = KN("state");
  vD[Os] = true, BE = function(t10, e) {
    if (En(t10, Os)) throw new G9("Object already initialized");
    return e.facade = t10, Rl(t10, Os, e), e;
  }, i0 = function(t10) {
    return En(t10, Os) ? t10[Os] : {};
  }, FE = function(t10) {
    return En(t10, Os);
  };
}
var TE = { get: i0, enforce: function(t10) {
  return FE(t10) ? i0(t10) : BE(t10, {});
} }, YN = Function.prototype, Ytt = Xn && Object.getOwnPropertyDescriptor, yb = En(YN, "name"), Uy = { EXISTS: yb, PROPER: yb && (function() {
}).name === "something", CONFIGURABLE: yb && (!Xn || Xn && Ytt(YN, "name").configurable) }, $d = $y((function(t10) {
  var e = Uy.CONFIGURABLE, r = TE.get, n = TE.enforce, o = String(String).split("String");
  (t10.exports = function(i, a, u, s) {
    var l, c = !!s && !!s.unsafe, f = !!s && !!s.enumerable, d = !!s && !!s.noTargetGet, p = s && s.name !== void 0 ? s.name : a;
    xr(u) && (String(p).slice(0, 7) === "Symbol(" && (p = "[" + String(p).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!En(u, "name") || e && u.name !== p) && Rl(u, "name", p), (l = n(u)).source || (l.source = o.join(typeof p == "string" ? p : ""))), i !== St ? (c ? !d && i[a] && (f = true) : delete i[a], f ? i[a] = u : Rl(i, a, u)) : f ? i[a] = u : cD(a, u);
  })(Function.prototype, "toString", (function() {
    return xr(this) && r(this).source || gD(this);
  }));
})), Xtt = Math.ceil, Ztt = Math.floor, ic = function(t10) {
  var e = +t10;
  return e != e || e === 0 ? 0 : (e > 0 ? Ztt : Xtt)(e);
}, Jtt = Math.max, Qtt = Math.min, Hd = function(t10, e) {
  var r = ic(t10);
  return r < 0 ? Jtt(r + e, 0) : Qtt(r, e);
}, tet = Math.min, Ip = function(t10) {
  return t10 > 0 ? tet(ic(t10), 9007199254740991) : 0;
}, Wy = function(t10) {
  return Ip(t10.length);
}, K9 = function(t10) {
  return function(e, r, n) {
    var o, i = nc(e), a = Wy(i), u = Hd(n, a);
    if (t10 && r != r) {
      for (; a > u; ) if ((o = i[u++]) != o) return true;
    } else for (; a > u; u++) if ((t10 || u in i) && i[u] === r) return t10 || u || 0;
    return !t10 && -1;
  };
}, XN = { includes: K9(true), indexOf: K9(false) }, eet = XN.indexOf, Y9 = yt([].push), ZN = function(t10, e) {
  var r, n = nc(t10), o = 0, i = [];
  for (r in n) !En(vD, r) && En(n, r) && Y9(i, r);
  for (; e.length > o; ) En(n, r = e[o++]) && (~eet(i, r) || Y9(i, r));
  return i;
}, a0 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], ret = a0.concat("length", "prototype"), net = { f: Object.getOwnPropertyNames || function(t10) {
  return ZN(t10, ret);
} }, JN = { f: Object.getOwnPropertySymbols }, oet = yt([].concat), iet = jp("Reflect", "ownKeys") || function(t10) {
  var e = net.f(en(t10)), r = JN.f;
  return r ? oet(e, r(t10)) : e;
}, aet = function(t10, e) {
  for (var r = iet(e), n = oc.f, o = hD.f, i = 0; i < r.length; i++) {
    var a = r[i];
    En(t10, a) || n(t10, a, o(e, a));
  }
}, uet = /#|\.prototype\./, Lp = function(t10, e) {
  var r = cet[set(t10)];
  return r == det || r != fet && (xr(e) ? Ce(e) : !!e);
}, set = Lp.normalize = function(t10) {
  return String(t10).replace(uet, ".").toLowerCase();
}, cet = Lp.data = {}, fet = Lp.NATIVE = "N", det = Lp.POLYFILL = "P", pet = Lp, het = hD.f, Je = function(t10, e) {
  var r, n, o, i, a, u = t10.target, s = t10.global, l = t10.stat;
  if (r = s ? St : l ? St[u] || cD(u, {}) : (St[u] || {}).prototype) for (n in e) {
    if (i = e[n], o = t10.noTargetGet ? (a = het(r, n)) && a.value : r[n], !pet(s ? n : u + (l ? "." : "#") + n, t10.forced) && o !== void 0) {
      if (typeof i == typeof o) continue;
      aet(i, o);
    }
    (t10.sham || o && o.sham) && Rl(i, "sham", true), $d(r, n, i, t10);
  }
}, X9 = yt(yt.bind), u0 = Array.isArray || function(t10) {
  return Ji(t10) == "Array";
}, QN = {};
QN[ln("toStringTag")] = "z";
var yD = String(QN) === "[object z]", get = ln("toStringTag"), vet = St.Object, yet = Ji(/* @__PURE__ */ (function() {
  return arguments;
})()) == "Arguments", mD = yD ? Ji : function(t10) {
  var e, r, n;
  return t10 === void 0 ? "Undefined" : t10 === null ? "Null" : typeof (r = (function(o, i) {
    try {
      return o[i];
    } catch {
    }
  })(e = vet(t10), get)) == "string" ? r : yet ? Ji(e) : (n = Ji(e)) == "Object" && xr(e.callee) ? "Arguments" : n;
}, tI = function() {
}, met = [], eI = jp("Reflect", "construct"), bD = /^\s*(?:class|function)\b/, bet = yt(bD.exec), wet = !bD.exec(tI), Jc = function(t10) {
  if (!xr(t10)) return false;
  try {
    return eI(tI, met, t10), true;
  } catch {
    return false;
  }
}, wD = !eI || Ce((function() {
  var t10;
  return Jc(Jc.call) || !Jc(Object) || !Jc((function() {
    t10 = true;
  })) || t10;
})) ? function(t10) {
  if (!xr(t10)) return false;
  switch (mD(t10)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return false;
  }
  return wet || !!bet(bD, gD(t10));
} : Jc, Eet = ln("species"), Z9 = St.Array, Det = function(t10, e) {
  return new ((function(r) {
    var n;
    return u0(r) && (n = r.constructor, (wD(n) && (n === Z9 || u0(n.prototype)) || vo(n) && (n = n[Eet]) === null) && (n = void 0)), n === void 0 ? Z9 : n;
  })(t10))(e === 0 ? 0 : e);
}, J9 = yt([].push), Vh = function(t10) {
  var e = t10 == 1, r = t10 == 2, n = t10 == 3, o = t10 == 4, i = t10 == 6, a = t10 == 7, u = t10 == 5 || i;
  return function(s, l, c, f) {
    for (var d, p, v = Np(s), y = Hy(v), g = (function(D, x) {
      return WN(D), x === void 0 ? D : X9 ? X9(D, x) : function() {
        return D.apply(x, arguments);
      };
    })(l, c), m = Wy(y), h = 0, b = f || Det, w = e ? b(s, m) : r || a ? b(s, 0) : void 0; m > h; h++) if ((u || h in y) && (p = g(d = y[h], h, v), t10)) if (e) w[h] = p;
    else if (p) switch (t10) {
      case 3:
        return true;
      case 5:
        return d;
      case 6:
        return h;
      case 2:
        J9(w, d);
    }
    else switch (t10) {
      case 4:
        return false;
      case 7:
        J9(w, d);
    }
    return i ? -1 : n || o ? o : w;
  };
}, Gy = { forEach: Vh(0), map: Vh(1), filter: Vh(2), find: Vh(5) }, Cet = ln("species"), ED = function(t10) {
  return AE >= 51 || !Ce((function() {
    var e = [];
    return (e.constructor = {})[Cet] = function() {
      return { foo: 1 };
    }, e[t10](Boolean).foo !== 1;
  }));
}, xet = Gy.filter;
Je({ target: "Array", proto: true, forced: !ED("filter") }, { filter: function(t10) {
  return xet(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} });
var Aet = yD ? {}.toString : function() {
  return "[object " + mD(this) + "]";
};
yD || $d(Object.prototype, "toString", Aet, { unsafe: true });
var Uh, Oet = St.String, Ee = function(t10) {
  if (mD(t10) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  return Oet(t10);
}, rI = function() {
  var t10 = en(this), e = "";
  return t10.global && (e += "g"), t10.ignoreCase && (e += "i"), t10.multiline && (e += "m"), t10.dotAll && (e += "s"), t10.unicode && (e += "u"), t10.sticky && (e += "y"), e;
}, DD = St.RegExp, _E = Ce((function() {
  var t10 = DD("a", "y");
  return t10.lastIndex = 2, t10.exec("abcd") != null;
}));
_E || Ce((function() {
  return !DD("a", "y").sticky;
}));
var nI = { BROKEN_CARET: _E || Ce((function() {
  var t10 = DD("^r", "gy");
  return t10.lastIndex = 2, t10.exec("str") != null;
})), UNSUPPORTED_Y: _E }, cl = Object.keys || function(t10) {
  return ZN(t10, a0);
}, ket = Xn ? Object.defineProperties : function(t10, e) {
  en(t10);
  for (var r, n = nc(e), o = cl(e), i = o.length, a = 0; i > a; ) oc.f(t10, r = o[a++], n[r]);
  return t10;
}, Bet = jp("document", "documentElement"), oI = KN("IE_PROTO"), mb = function() {
}, iI = function(t10) {
  return "<script>" + t10 + "<\/script>";
}, Q9 = function(t10) {
  t10.write(iI("")), t10.close();
  var e = t10.parentWindow.Object;
  return t10 = null, e;
}, $g = function() {
  try {
    Uh = new ActiveXObject("htmlfile");
  } catch {
  }
  var t10, e;
  $g = typeof document < "u" ? document.domain && Uh ? Q9(Uh) : ((e = pD("iframe")).style.display = "none", Bet.appendChild(e), e.src = "javascript:", (t10 = e.contentWindow.document).open(), t10.write(iI("document.F=Object")), t10.close(), t10.F) : Q9(Uh);
  for (var r = a0.length; r--; ) delete $g.prototype[a0[r]];
  return $g();
};
vD[oI] = true;
var tO, bb, aI = Object.create || function(t10, e) {
  var r;
  return t10 !== null ? (mb.prototype = en(t10), r = new mb(), mb.prototype = null, r[oI] = t10) : r = $g(), e === void 0 ? r : ket(r, e);
}, Fet = St.RegExp, Tet = Ce((function() {
  var t10 = Fet(".", "s");
  return !(t10.dotAll && t10.exec(`
`) && t10.flags === "s");
})), _et = St.RegExp, Pet = Ce((function() {
  var t10 = _et("(?<a>b)", "g");
  return t10.exec("b").groups.a !== "b" || "b".replace(t10, "$<a>c") !== "bc";
})), jet = TE.get, Net = fD("native-string-replace", String.prototype.replace), s0 = RegExp.prototype.exec, PE = s0, Iet = yt("".charAt), Let = yt("".indexOf), Ret = yt("".replace), wb = yt("".slice), Eb = (bb = /b*/g, Ne(s0, tO = /a/, "a"), Ne(s0, bb, "a"), tO.lastIndex !== 0 || bb.lastIndex !== 0), eO = nI.BROKEN_CARET, Db = /()??/.exec("")[1] !== void 0;
(Eb || Db || eO || Tet || Pet) && (PE = function(t10) {
  var e, r, n, o, i, a, u, s = this, l = jet(s), c = Ee(t10), f = l.raw;
  if (f) return f.lastIndex = s.lastIndex, e = Ne(PE, f, c), s.lastIndex = f.lastIndex, e;
  var d = l.groups, p = eO && s.sticky, v = Ne(rI, s), y = s.source, g = 0, m = c;
  if (p && (v = Ret(v, "y", ""), Let(v, "g") === -1 && (v += "g"), m = wb(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && Iet(c, s.lastIndex - 1) !== `
`) && (y = "(?: " + y + ")", m = " " + m, g++), r = new RegExp("^(?:" + y + ")", v)), Db && (r = new RegExp("^" + y + "$(?!\\s)", v)), Eb && (n = s.lastIndex), o = Ne(s0, p ? r : s, m), p ? o ? (o.input = wb(o.input, g), o[0] = wb(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : Eb && o && (s.lastIndex = s.global ? o.index + o[0].length : n), Db && o && o.length > 1 && Ne(Net, o[0], r, (function() {
    for (i = 1; i < arguments.length - 2; i++) arguments[i] === void 0 && (o[i] = void 0);
  })), o && d) for (o.groups = a = aI(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
  return o;
});
var Vd = PE;
Je({ target: "RegExp", proto: true, forced: /./.exec !== Vd }, { exec: Vd });
var CD = Function.prototype, rO = CD.apply, Met = CD.bind, nO = CD.call, uI = typeof Reflect == "object" && Reflect.apply || (Met ? nO.bind(rO) : function() {
  return nO.apply(rO, arguments);
}), zet = ln("species"), Cb = RegExp.prototype, xD = function(t10, e, r, n) {
  var o = ln(t10), i = !Ce((function() {
    var l = {};
    return l[o] = function() {
      return 7;
    }, ""[t10](l) != 7;
  })), a = i && !Ce((function() {
    var l = false, c = /a/;
    return t10 === "split" && ((c = {}).constructor = {}, c.constructor[zet] = function() {
      return c;
    }, c.flags = "", c[o] = /./[o]), c.exec = function() {
      return l = true, null;
    }, c[o](""), !l;
  }));
  if (!i || !a || r) {
    var u = yt(/./[o]), s = e(o, ""[t10], (function(l, c, f, d, p) {
      var v = yt(l), y = c.exec;
      return y === Vd || y === Cb.exec ? i && !p ? { done: true, value: u(c, f, d) } : { done: true, value: v(f, c, d) } : { done: false };
    }));
    $d(String.prototype, t10, s[0]), $d(Cb, o, s[1]);
  }
  n && Rl(Cb[o], "sham", true);
}, $et = yt("".charAt), oO = yt("".charCodeAt), Het = yt("".slice), Vet = function(t10) {
  return function(e, r) {
    var n, o, i = Ee(Bn(e)), a = ic(r), u = i.length;
    return a < 0 || a >= u ? t10 ? "" : void 0 : (n = oO(i, a)) < 55296 || n > 56319 || a + 1 === u || (o = oO(i, a + 1)) < 56320 || o > 57343 ? t10 ? $et(i, a) : n : t10 ? Het(i, a, a + 2) : o - 56320 + (n - 55296 << 10) + 65536;
  };
}, Uet = Vet(true), SD = function(t10, e, r) {
  return e + (r ? Uet(t10, e).length : 1);
}, Wet = Math.floor, xb = yt("".charAt), Get = yt("".replace), Sb = yt("".slice), qet = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Ket = /\$([$&'`]|\d{1,2})/g, Yet = function(t10, e, r, n, o, i) {
  var a = r + t10.length, u = n.length, s = Ket;
  return o !== void 0 && (o = Np(o), s = qet), Get(i, s, (function(l, c) {
    var f;
    switch (xb(c, 0)) {
      case "$":
        return "$";
      case "&":
        return t10;
      case "`":
        return Sb(e, 0, r);
      case "'":
        return Sb(e, a);
      case "<":
        f = o[Sb(c, 1, -1)];
        break;
      default:
        var d = +c;
        if (d === 0) return l;
        if (d > u) {
          var p = Wet(d / 10);
          return p === 0 ? l : p <= u ? n[p - 1] === void 0 ? xb(c, 1) : n[p - 1] + xb(c, 1) : l;
        }
        f = n[d - 1];
    }
    return f === void 0 ? "" : f;
  }));
}, Xet = St.TypeError, Ud = function(t10, e) {
  var r = t10.exec;
  if (xr(r)) {
    var n = Ne(r, t10, e);
    return n !== null && en(n), n;
  }
  if (Ji(t10) === "RegExp") return Ne(Vd, t10, e);
  throw Xet("RegExp#exec called on incompatible receiver");
}, jE = ln("replace"), Zet = Math.max, Jet = Math.min, Qet = yt([].concat), Ab = yt([].push), iO = yt("".indexOf), aO = yt("".slice), trt = "a".replace(/./, "$0") === "$0", uO = !!/./[jE] && /./[jE]("a", "$0") === "";
xD("replace", (function(t10, e, r) {
  var n = uO ? "$" : "$0";
  return [function(o, i) {
    var a = Bn(this), u = o == null ? void 0 : Vy(o, jE);
    return u ? Ne(u, o, a, i) : Ne(e, Ee(a), o, i);
  }, function(o, i) {
    var a = en(this), u = Ee(o);
    if (typeof i == "string" && iO(i, n) === -1 && iO(i, "$<") === -1) {
      var s = r(e, a, u, i);
      if (s.done) return s.value;
    }
    var l = xr(i);
    l || (i = Ee(i));
    var c = a.global;
    if (c) {
      var f = a.unicode;
      a.lastIndex = 0;
    }
    for (var d = []; ; ) {
      var p = Ud(a, u);
      if (p === null || (Ab(d, p), !c)) break;
      Ee(p[0]) === "" && (a.lastIndex = SD(u, Ip(a.lastIndex), f));
    }
    for (var v, y = "", g = 0, m = 0; m < d.length; m++) {
      for (var h = Ee((p = d[m])[0]), b = Zet(Jet(ic(p.index), u.length), 0), w = [], D = 1; D < p.length; D++) Ab(w, (v = p[D]) === void 0 ? v : String(v));
      var x = p.groups;
      if (l) {
        var C = Qet([h], w, b, u);
        x !== void 0 && Ab(C, x);
        var O = Ee(uI(i, void 0, C));
      } else O = Yet(h, u, b, w, x, i);
      b >= g && (y += aO(u, g, b) + O, g = b + h.length);
    }
    return y + aO(u, g);
  }];
}), !!Ce((function() {
  var t10 = /./;
  return t10.exec = function() {
    var e = [];
    return e.groups = { a: "7" }, e;
  }, "".replace(t10, "$<a>") !== "7";
})) || !trt || uO);
var NE = ln("unscopables"), IE = Array.prototype;
IE[NE] == null && oc.f(IE, NE, { configurable: true, value: aI(null) });
var sI = function(t10) {
  IE[NE][t10] = true;
}, ert = Gy.find, sO = true;
"find" in [] && Array(1).find((function() {
  sO = false;
})), Je({ target: "Array", proto: true, forced: sO }, { find: function(t10) {
  return ert(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} }), sI("find");
var rrt = ln("match"), lI = function(t10) {
  var e;
  return vo(t10) && ((e = t10[rrt]) !== void 0 ? !!e : Ji(t10) == "RegExp");
}, nrt = St.TypeError, ort = ln("species"), cI = function(t10, e, r) {
  var n = dD(e);
  n in t10 ? oc.f(t10, n, sD(0, r)) : t10[n] = r;
}, irt = St.Array, art = Math.max, lO = function(t10, e, r) {
  for (var n = Wy(t10), o = Hd(e, n), i = Hd(r === void 0 ? n : r, n), a = irt(art(i - o, 0)), u = 0; o < i; o++, u++) cI(a, u, t10[o]);
  return a.length = u, a;
}, ks = nI.UNSUPPORTED_Y, urt = Math.min, fI = [].push, srt = yt(/./.exec), Bs = yt(fI), Qc = yt("".slice);
xD("split", (function(t10, e, r) {
  var n;
  return n = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(o, i) {
    var a = Ee(Bn(this)), u = i === void 0 ? 4294967295 : i >>> 0;
    if (u === 0) return [];
    if (o === void 0) return [a];
    if (!lI(o)) return Ne(e, a, o, u);
    for (var s, l, c, f = [], d = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (o.sticky ? "y" : ""), p = 0, v = new RegExp(o.source, d + "g"); (s = Ne(Vd, v, a)) && !((l = v.lastIndex) > p && (Bs(f, Qc(a, p, s.index)), s.length > 1 && s.index < a.length && uI(fI, f, lO(s, 1)), c = s[0].length, p = l, f.length >= u)); ) v.lastIndex === s.index && v.lastIndex++;
    return p === a.length ? !c && srt(v, "") || Bs(f, "") : Bs(f, Qc(a, p)), f.length > u ? lO(f, 0, u) : f;
  } : "0".split(void 0, 0).length ? function(o, i) {
    return o === void 0 && i === 0 ? [] : Ne(e, this, o, i);
  } : e, [function(o, i) {
    var a = Bn(this), u = o == null ? void 0 : Vy(o, t10);
    return u ? Ne(u, o, a, i) : Ne(n, Ee(a), o, i);
  }, function(o, i) {
    var a = en(this), u = Ee(o), s = r(n, a, u, i, n !== e);
    if (s.done) return s.value;
    var l = (function(w, D) {
      var x, C = en(w).constructor;
      return C === void 0 || (x = en(C)[ort]) == null ? D : (function(O) {
        if (wD(O)) return O;
        throw nrt(UN(O) + " is not a constructor");
      })(x);
    })(a, RegExp), c = a.unicode, f = (a.ignoreCase ? "i" : "") + (a.multiline ? "m" : "") + (a.unicode ? "u" : "") + (ks ? "g" : "y"), d = new l(ks ? "^(?:" + a.source + ")" : a, f), p = i === void 0 ? 4294967295 : i >>> 0;
    if (p === 0) return [];
    if (u.length === 0) return Ud(d, u) === null ? [u] : [];
    for (var v = 0, y = 0, g = []; y < u.length; ) {
      d.lastIndex = ks ? 0 : y;
      var m, h = Ud(d, ks ? Qc(u, y) : u);
      if (h === null || (m = urt(Ip(d.lastIndex + (ks ? y : 0)), u.length)) === v) y = SD(u, y, c);
      else {
        if (Bs(g, Qc(u, v, y)), g.length === p) return g;
        for (var b = 1; b <= h.length - 1; b++) if (Bs(g, h[b]), g.length === p) return g;
        y = v = m;
      }
    }
    return Bs(g, Qc(u, v)), g;
  }];
}), !!Ce((function() {
  var t10 = /(?:)/, e = t10.exec;
  t10.exec = function() {
    return e.apply(this, arguments);
  };
  var r = "ab".split(t10);
  return r.length !== 2 || r[0] !== "a" || r[1] !== "b";
})), ks);
var LE = `	
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`, cO = yt("".replace), l0 = "[" + LE + "]", lrt = RegExp("^" + l0 + l0 + "*"), crt = RegExp(l0 + l0 + "*$"), frt = function(t10) {
  return function(e) {
    var r = Ee(Bn(e));
    return 1 & t10 && (r = cO(r, lrt, "")), 2 & t10 && (r = cO(r, crt, "")), r;
  };
}, drt = { trim: frt(3) }, prt = Uy.PROPER, hrt = drt.trim;
function AD(t10) {
  return B("<div>" + t10 + "</div>").children().filter((function(e) {
    return e.tagName !== "BR";
  })).length === 0;
}
function ac(t10) {
  return t10.length === 0 ? "" : t10[0].outerHTML;
}
function uc(t10) {
  return t10.length ? t10[0].tagName.toLowerCase() : "";
}
function qn(t10, e) {
  for (var r = "", n = (t10.attr("style") || "").split(";"), o = n.length, i = 0; i < o; i++) {
    var a = n[i];
    if (a) {
      var u = a.split(":");
      u[0].trim() === e && (r = u[1].trim());
    }
  }
  return r;
}
Je({ target: "String", proto: true, forced: Ce((function() {
  return !!LE.trim() || "\u200B\x85\u180E".trim() !== "\u200B\x85\u180E" || prt && LE.trim.name !== "trim";
})) }, { trim: function() {
  return hrt(this);
} }), Je({ global: true }, { globalThis: St }), Nv && (B.fn.css = Nv), An && (B.fn.append = An), ZS && (B.fn.prepend = ZS), El && (B.fn.addClass = El), Dl && (B.fn.removeClass = Dl), Cl && (B.fn.hasClass = Cl), Ao && (B.fn.on = Ao), qS && (B.fn.off = qS), ha && (B.fn.focus = ha), Sn && (B.fn.attr = Sn), Tv && (B.fn.removeAttr = Tv), Sl && (B.fn.hide = Sl), jv && (B.fn.show = jv), Rv && (B.fn.parents = Rv), xl && (B.fn.dataset = xl), So && (B.fn.val = So), Lv && (B.fn.text = Lv), pa && (B.fn.html = pa), kl && (B.fn.children = kl), Bl && (B.fn.remove = Bl), Ol && (B.fn.find = Ol), _v && (B.fn.width = _v), Pv && (B.fn.height = Pv), YS && (B.fn.filter = YS), Fl && (B.fn.empty = Fl);
var grt = { selector: "p:not([data-w-e-type])", parseElemHtml: function(t10, e, r) {
  var n = B(t10);
  return (e = e.filter((function(o) {
    return !!ot.isText(o) || !!r.isInline(o);
  }))).length === 0 && (e = [{ text: n.text().replace(/\s+/gm, " ") }]), { type: "paragraph", children: e };
} }, RE = function(t10, e) {
  return RE = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
    r.__proto__ = n;
  } || function(r, n) {
    for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
  }, RE(t10, e);
};
function be(t10, e) {
  if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
  function r() {
    this.constructor = t10;
  }
  RE(t10, e), t10.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
}
var ya = function() {
  return ya = Object.assign || function(t10) {
    for (var e, r = 1, n = arguments.length; r < n; r++) for (var o in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, o) && (t10[o] = e[o]);
    return t10;
  }, ya.apply(this, arguments);
};
function ka(t10, e, r, n) {
  return new (r || (r = Promise))((function(o, i) {
    function a(l) {
      try {
        s(n.next(l));
      } catch (c) {
        i(c);
      }
    }
    function u(l) {
      try {
        s(n.throw(l));
      } catch (c) {
        i(c);
      }
    }
    function s(l) {
      var c;
      l.done ? o(l.value) : (c = l.value, c instanceof r ? c : new r((function(f) {
        f(c);
      }))).then(a, u);
    }
    s((n = n.apply(t10, [])).next());
  }));
}
function Ba(t10, e) {
  var r, n, o, i, a = { label: 0, sent: function() {
    if (1 & o[0]) throw o[1];
    return o[1];
  }, trys: [], ops: [] };
  return i = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
    return this;
  }), i;
  function u(s) {
    return function(l) {
      return (function(c) {
        if (r) throw new TypeError("Generator is already executing.");
        for (; a; ) try {
          if (r = 1, n && (o = 2 & c[0] ? n.return : c[0] ? n.throw || ((o = n.return) && o.call(n), 0) : n.next) && !(o = o.call(n, c[1])).done) return o;
          switch (n = 0, o && (c = [2 & c[0], o.value]), c[0]) {
            case 0:
            case 1:
              o = c;
              break;
            case 4:
              return a.label++, { value: c[1], done: false };
            case 5:
              a.label++, n = c[1], c = [0];
              continue;
            case 7:
              c = a.ops.pop(), a.trys.pop();
              continue;
            default:
              if (!((o = (o = a.trys).length > 0 && o[o.length - 1]) || c[0] !== 6 && c[0] !== 2)) {
                a = 0;
                continue;
              }
              if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
                a.label = c[1];
                break;
              }
              if (c[0] === 6 && a.label < o[1]) {
                a.label = o[1], o = c;
                break;
              }
              if (o && a.label < o[2]) {
                a.label = o[2], a.ops.push(c);
                break;
              }
              o[2] && a.ops.pop(), a.trys.pop();
              continue;
          }
          c = e.call(t10, a);
        } catch (f) {
          c = [6, f], n = 0;
        } finally {
          r = o = 0;
        }
        if (5 & c[0]) throw c[1];
        return { value: c[0] ? c[1] : void 0, done: true };
      })([s, l]);
    };
  }
}
function dI(t10) {
  var e = typeof Symbol == "function" && Symbol.iterator, r = e && t10[e], n = 0;
  if (r) return r.call(t10);
  if (t10 && typeof t10.length == "number") return { next: function() {
    return t10 && n >= t10.length && (t10 = void 0), { value: t10 && t10[n++], done: !t10 };
  } };
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function Yt(t10, e) {
  var r = typeof Symbol == "function" && t10[Symbol.iterator];
  if (!r) return t10;
  var n, o, i = r.call(t10), a = [];
  try {
    for (; (e === void 0 || e-- > 0) && !(n = i.next()).done; ) a.push(n.value);
  } catch (u) {
    o = { error: u };
  } finally {
    try {
      n && !n.done && (r = i.return) && r.call(i);
    } finally {
      if (o) throw o.error;
    }
  }
  return a;
}
function fO(t10) {
  var e = Yt(E.nodes(t10, { match: function(i) {
    return t10.children[0] === i;
  }, mode: "highest" }), 1)[0];
  if (e == null) return false;
  var r = e[0];
  if (!ct.isElement(r) || r.type === "paragraph" || J.string(r) !== "") return false;
  var n = r.children, o = n === void 0 ? [] : n;
  return !!ot.isText(o[0]) && (N.setNodes(t10, { type: "paragraph" }), true);
}
var vrt = { renderElems: [btt], elemsToHtml: [{ type: "paragraph", elemToHtml: function(t10, e) {
  return e === "" ? "<p><br></p>" : "<p>" + e + "</p>";
} }], parseElemsHtml: [grt], editorPlugin: function(t10) {
  var e = t10.deleteBackward, r = t10.deleteForward;
  t10.insertText, t10.insertBreak;
  var n = t10;
  return n.deleteBackward = function(o) {
    fO(n) || e(o);
  }, n.deleteForward = function(o) {
    fO(n) || r(o);
  }, n;
} }, yrt = /"/g, mrt = yt("".replace), Uf = function(t10, e, r, n) {
  var o = Ee(Bn(t10)), i = "<" + e;
  return r !== "" && (i += " " + r + '="' + mrt(Ee(n), yrt, "&quot;") + '"'), i + ">" + o + "</" + e + ">";
}, Wf = function(t10) {
  return Ce((function() {
    var e = ""[t10]('"');
    return e !== e.toLowerCase() || e.split('"').length > 3;
  }));
};
function Ob(t10, e) {
  var r = e, n = t10, o = n.bold, i = n.italic, a = n.underline;
  return o && (r = "<strong>" + r + "</strong>"), n.code && (r = "<code>" + r + "</code>"), i && (r = "<em>" + r + "</em>"), a && (r = "<u>" + r + "</u>"), n.through && (r = "<s>" + r + "</s>"), n.sub && (r = "<sub>" + r + "</sub>"), n.sup && (r = "<sup>" + r + "</sup>"), r;
}
function Va(t10, e) {
  return t10.length !== 0 && (!!t10[0].matches(e) || t10.find(e).length > 0);
}
Je({ target: "String", proto: true, forced: Wf("bold") }, { bold: function() {
  return Uf(this, "b", "", "");
} }), Je({ target: "String", proto: true, forced: Wf("italics") }, { italics: function() {
  return Uf(this, "i", "", "");
} }), Je({ target: "String", proto: true, forced: Wf("sub") }, { sub: function() {
  return Uf(this, "sub", "", "");
} }), Je({ target: "String", proto: true, forced: Wf("sup") }, { sup: function() {
  return Uf(this, "sup", "", "");
} });
var dO = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }, kb = pD("span").classList, pO = kb && kb.constructor && kb.constructor.prototype, brt = pO === Object.prototype ? void 0 : pO, pI = function(t10, e) {
  var r = [][t10];
  return !!r && Ce((function() {
    r.call(null, e || function() {
      throw 1;
    }, 1);
  }));
}, wrt = Gy.forEach, Bb = pI("forEach") ? [].forEach : function(t10) {
  return wrt(this, t10, arguments.length > 1 ? arguments[1] : void 0);
}, hI = function(t10) {
  if (t10 && t10.forEach !== Bb) try {
    Rl(t10, "forEach", Bb);
  } catch {
    t10.forEach = Bb;
  }
};
for (var Fb in dO) dO[Fb] && hI(St[Fb] && St[Fb].prototype);
function gI(t10, e) {
  return t10.selection == null || !!Yt(E.nodes(t10, { match: function(r) {
    return A.getNodeType(r) === "pre" || !!E.isVoid(t10, r);
  }, universal: true }), 1)[0];
}
function Ert(t10, e) {
  Object.keys(e).forEach((function(r) {
    r !== "text" && E.removeMark(t10, r);
  }));
}
hI(brt), Je({ target: "Object", stat: true, forced: Ce((function() {
  cl(1);
})) }, { keys: function(t10) {
  return cl(Np(t10));
} });
var as = (function() {
  function t10() {
    this.marksNeedToRemove = [], this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    var r = this.mark, n = E.marks(e);
    return n ? n[r] : !!Yt(E.nodes(e, { match: function(o) {
      return o[r] === true;
    } }), 1)[0];
  }, t10.prototype.isActive = function(e) {
    return !!this.getValue(e);
  }, t10.prototype.isDisabled = function(e) {
    return gI(e, this.mark);
  }, t10.prototype.exec = function(e, r) {
    var n = this.mark, o = this.marksNeedToRemove;
    r ? e.removeMark(n) : (e.addMark(n, true), o && o.forEach((function(i) {
      return e.removeMark(i);
    })));
  }, t10;
})(), Drt = '<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>', Crt = '<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>', xrt = '<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>', Srt = '<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>', Art = '<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>', vI = '<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>', yI = '<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>', Ort = '<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>', krt = '<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>', Brt = '<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>', Frt = '<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>', Trt = '<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>', _rt = '<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>', Prt = '<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>', jrt = '<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>', Nrt = '<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>', Irt = '<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>', Lrt = '<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>', Rrt = '<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>', Mrt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.mark = "bold", r.title = Q("textStyle.bold"), r.iconSvg = Drt, r.hotkey = "mod+b", r;
  }
  return be(e, t10), e;
})(as), zrt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.mark = "code", r.title = Q("textStyle.code"), r.iconSvg = Art, r.hotkey = "mod+e", r;
  }
  return be(e, t10), e;
})(as), $rt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.mark = "italic", r.title = Q("textStyle.italic"), r.iconSvg = xrt, r.hotkey = "mod+i", r;
  }
  return be(e, t10), e;
})(as), Hrt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.mark = "through", r.title = Q("textStyle.through"), r.iconSvg = Srt, r.hotkey = "mod+shift+x", r;
  }
  return be(e, t10), e;
})(as), Vrt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.mark = "underline", r.title = Q("textStyle.underline"), r.iconSvg = Crt, r.hotkey = "mod+u", r;
  }
  return be(e, t10), e;
})(as), Urt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.mark = "sub", r.marksNeedToRemove = ["sup"], r.title = Q("textStyle.sub"), r.iconSvg = Rrt, r.hotkey = "", r;
  }
  return be(e, t10), e;
})(as), Wrt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.mark = "sup", r.marksNeedToRemove = ["sub"], r.title = Q("textStyle.sup"), r.iconSvg = Lrt, r.hotkey = "", r;
  }
  return be(e, t10), e;
})(as), Grt = (function() {
  function t10() {
    this.title = Q("textStyle.clear"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    return gI(e);
  }, t10.prototype.exec = function(e, r) {
    var n, o, i = E.nodes(e, { match: function(s) {
      return ot.isText(s);
    }, universal: true });
    try {
      for (var a = dI(i), u = a.next(); !u.done; u = a.next()) Ert(e, u.value[0]);
    } catch (s) {
      n = { error: s };
    } finally {
      try {
        u && !u.done && (o = a.return) && o.call(a);
      } finally {
        if (n) throw n.error;
      }
    }
  }, t10;
})(), qrt = { renderStyle: function(t10, e) {
  var r = t10, n = r.bold, o = r.italic, i = r.underline, a = r.code, u = r.through, s = r.sub, l = r.sup, c = e;
  return n && (c = bt("strong", null, c)), a && (c = bt("code", null, c)), o && (c = bt("em", null, c)), i && (c = bt("u", null, c)), u && (c = bt("s", null, c)), s && (c = bt("sub", null, c)), l && (c = bt("sup", null, c)), c;
}, menus: [{ key: "bold", factory: function() {
  return new Mrt();
} }, { key: "underline", factory: function() {
  return new Vrt();
} }, { key: "italic", factory: function() {
  return new $rt();
} }, { key: "through", factory: function() {
  return new Hrt();
} }, { key: "code", factory: function() {
  return new zrt();
} }, { key: "sub", factory: function() {
  return new Urt();
} }, { key: "sup", factory: function() {
  return new Wrt();
} }, { key: "clearStyle", factory: function() {
  return new Grt();
} }], styleToHtml: function(t10, e) {
  if (!ot.isText(t10)) return e;
  if (AD(e)) return Ob(t10, e);
  var r = B(e);
  if (uc(r) === "br") return Ob(t10, "<br>");
  var n = r.html();
  return n = Ob(t10, n), r.html(n), ac(r);
}, parseStyleHtml: function(t10, e, r) {
  var n = B(t10);
  if (!ot.isText(e)) return e;
  var o = e;
  return Va(n, "b,strong") && (o.bold = true), Va(n, "i,em") && (o.italic = true), Va(n, "u") && (o.underline = true), Va(n, "s,strike") && (o.through = true), Va(n, "sub") && (o.sub = true), Va(n, "sup") && (o.sup = true), Va(n, "code") && (o.code = true), o;
} };
function Rp(t10) {
  return function(e, r, n) {
    return bt("h" + t10, null, r);
  };
}
var Krt = { type: "header1", renderElem: Rp(1) }, Yrt = { type: "header2", renderElem: Rp(2) }, Xrt = { type: "header3", renderElem: Rp(3) }, Zrt = { type: "header4", renderElem: Rp(4) }, Jrt = { type: "header5", renderElem: Rp(5) }, Qrt = Uy.PROPER, ME = RegExp.prototype, mI = ME.toString, tnt = yt(rI), ent = Ce((function() {
  return mI.call({ source: "a", flags: "b" }) != "/a/b";
})), rnt = Qrt && mI.name != "toString";
(ent || rnt) && $d(RegExp.prototype, "toString", (function() {
  var t10 = en(this), e = Ee(t10.source), r = t10.flags;
  return "/" + e + "/" + Ee(r === void 0 && VN(ME, t10) && !("flags" in ME) ? tnt(t10) : r);
}), { unsafe: true });
var Tb, nnt = St.TypeError, bI = function(t10) {
  if (lI(t10)) throw nnt("The method doesn't accept regular expressions");
  return t10;
}, ont = ln("match"), wI = function(t10) {
  var e = /./;
  try {
    "/./"[t10](e);
  } catch {
    try {
      return e[ont] = false, "/./"[t10](e);
    } catch {
    }
  }
  return false;
}, int = hD.f, hO = yt("".startsWith), ant = yt("".slice), unt = Math.min, gO = wI("startsWith");
function EI(t10) {
  var e = Yt(E.nodes(t10, { match: function(o) {
    return A.getNodeType(o).startsWith("header");
  }, universal: true }), 1), r = e[0];
  if (r == null) return "paragraph";
  var n = Yt(r, 1)[0];
  return A.getNodeType(n);
}
function DI(t10) {
  return t10.selection == null || !Yt(E.nodes(t10, { match: function(e) {
    var r = A.getNodeType(e);
    return r === "paragraph" || !!r.startsWith("header");
  }, universal: true, mode: "highest" }), 1)[0];
}
function CI(t10, e) {
  e && N.setNodes(t10, { type: e });
}
Je({ target: "String", proto: true, forced: !(!gO && (Tb = int(String.prototype, "startsWith"), Tb && !Tb.writable) || gO) }, { startsWith: function(t10) {
  var e = Ee(Bn(this));
  bI(t10);
  var r = Ip(unt(arguments.length > 1 ? arguments[1] : void 0, e.length)), n = Ee(t10);
  return hO ? hO(e, n, r) : ant(e, r, r + n.length) === n;
} });
var snt = (function() {
  function t10() {
    this.title = Q("header.title"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>', this.tag = "select", this.width = 60;
  }
  return t10.prototype.getOptions = function(e) {
    var r = [{ value: "header1", text: "H1", styleForRenderMenuList: { "font-size": "32px", "font-weight": "bold" } }, { value: "header2", text: "H2", styleForRenderMenuList: { "font-size": "24px", "font-weight": "bold" } }, { value: "header3", text: "H3", styleForRenderMenuList: { "font-size": "18px", "font-weight": "bold" } }, { value: "header4", text: "H4", styleForRenderMenuList: { "font-size": "16px", "font-weight": "bold" } }, { value: "header5", text: "H5", styleForRenderMenuList: { "font-size": "13px", "font-weight": "bold" } }, { value: "paragraph", text: Q("header.text") }], n = this.getValue(e).toString();
    return r.forEach((function(o) {
      o.value === n ? o.selected = true : delete o.selected;
    })), r;
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.getValue = function(e) {
    return EI(e);
  }, t10.prototype.isDisabled = function(e) {
    return DI(e);
  }, t10.prototype.exec = function(e, r) {
    CI(e, r.toString());
  }, t10;
})(), Mp = (function() {
  function t10() {
    this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return EI(e);
  }, t10.prototype.isActive = function(e) {
    return this.getValue(e) === this.type;
  }, t10.prototype.isDisabled = function(e) {
    return DI(e);
  }, t10.prototype.exec = function(e, r) {
    var n = this.type;
    CI(e, r === n ? "paragraph" : n);
  }, t10;
})(), lnt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = "H1", r.type = "header1", r;
  }
  return be(e, t10), e;
})(Mp), cnt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = "H2", r.type = "header2", r;
  }
  return be(e, t10), e;
})(Mp), fnt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = "H3", r.type = "header3", r;
  }
  return be(e, t10), e;
})(Mp), dnt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = "H4", r.type = "header4", r;
  }
  return be(e, t10), e;
})(Mp), pnt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = "H5", r.type = "header5", r;
  }
  return be(e, t10), e;
})(Mp), hnt = { key: "headerSelect", factory: function() {
  return new snt();
} }, gnt = { key: "header1", factory: function() {
  return new lnt();
} }, vnt = { key: "header2", factory: function() {
  return new cnt();
} }, ynt = { key: "header3", factory: function() {
  return new fnt();
} }, mnt = { key: "header4", factory: function() {
  return new dnt();
} }, bnt = { key: "header5", factory: function() {
  return new pnt();
} };
function tf(t10) {
  return function(e, r) {
    return "<h" + t10 + ">" + r + "</h" + t10 + ">";
  };
}
function ef(t10) {
  return function(e, r, n) {
    var o = B(e);
    return (r = r.filter((function(i) {
      return !!ot.isText(i) || !!n.isInline(i);
    }))).length === 0 && (r = [{ text: o.text().replace(/\s+/gm, " ") }]), { type: "header" + t10, children: r };
  };
}
var wnt = { renderElems: [Krt, Yrt, Xrt, Zrt, Jrt], elemsToHtml: [{ type: "header1", elemToHtml: tf(1) }, { type: "header2", elemToHtml: tf(2) }, { type: "header3", elemToHtml: tf(3) }, { type: "header4", elemToHtml: tf(4) }, { type: "header5", elemToHtml: tf(5) }], parseElemsHtml: [{ selector: "h1:not([data-w-e-type])", parseElemHtml: ef(1) }, { selector: "h2:not([data-w-e-type])", parseElemHtml: ef(2) }, { selector: "h3:not([data-w-e-type])", parseElemHtml: ef(3) }, { selector: "h4:not([data-w-e-type])", parseElemHtml: ef(4) }, { selector: "h5:not([data-w-e-type])", parseElemHtml: ef(5) }], menus: [hnt, gnt, vnt, ynt, mnt, bnt], editorPlugin: function(t10) {
  var e = t10.insertBreak;
  t10.insertNode;
  var r = t10;
  return r.insertBreak = function() {
    var n = Yt(E.nodes(r, { match: function(o) {
      return A.getNodeType(o).startsWith("header");
    }, universal: true }), 1)[0];
    n && A.isSelectionAtLineEnd(t10, n[1]) ? N.insertNodes(r, { type: "paragraph", children: [{ text: "" }] }, { mode: "highest" }) : e();
  }, r;
} }, Fs = Object.assign, vO = Object.defineProperty, Ent = yt([].concat), yO = !Fs || Ce((function() {
  if (Xn && Fs({ b: 1 }, Fs(vO({}, "a", { enumerable: true, get: function() {
    vO(this, "b", { value: 3, enumerable: false });
  } }), { b: 2 })).b !== 1) return true;
  var t10 = {}, e = {}, r = /* @__PURE__ */ Symbol(), n = "abcdefghijklmnopqrst";
  return t10[r] = 7, n.split("").forEach((function(o) {
    e[o] = o;
  })), Fs({}, t10)[r] != 7 || cl(Fs({}, e)).join("") != n;
})) ? function(t10, e) {
  for (var r = Np(t10), n = arguments.length, o = 1, i = JN.f, a = $N.f; n > o; ) for (var u, s = Hy(arguments[o++]), l = i ? Ent(cl(s), i(s)) : cl(s), c = l.length, f = 0; c > f; ) u = l[f++], Xn && !Ne(a, s, u) || (r[u] = s[u]);
  return r;
} : Fs;
function Gu(t10, e) {
  t10.data == null && (t10.data = {});
  var r = t10.data;
  r.style == null && (r.style = {}), Object.assign(r.style, e);
}
Je({ target: "Object", stat: true, forced: Object.assign !== yO }, { assign: yO });
var Dnt = { selector: "font", preParseHtml: function(t10) {
  var e = B(t10);
  if (uc(e) !== "font") return t10;
  var r = e.attr("color") || "";
  return r && (e.removeAttr("color"), e.css("color", r)), e[0];
} }, xI = (function() {
  function t10() {
    this.tag = "button", this.showDropPanel = true, this.$content = null;
  }
  return t10.prototype.exec = function(e, r) {
  }, t10.prototype.getValue = function(e) {
    var r = this.mark, n = E.marks(e);
    return n && n[r] ? n[r] : "";
  }, t10.prototype.isActive = function(e) {
    return !!this.getValue(e);
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || !!Yt(E.nodes(e, { match: function(r) {
      return A.getNodeType(r) === "pre" || !!E.isVoid(e, r);
    }, universal: true }), 1)[0];
  }, t10.prototype.getPanelContentElem = function(e) {
    var r = this.mark;
    if (this.$content == null) {
      var n = B('<ul class="w-e-panel-content-color"></ul>');
      n.on("click", "li", (function(l) {
        var c = l.target;
        if (c != null && (l.preventDefault(), e.selection != null)) {
          var f = B(c).attr("data-value");
          f === "0" ? E.removeMark(e, r) : E.addMark(e, r, f);
        }
      })), this.$content = n;
    }
    var o = this.$content;
    if (o == null) return document.createElement("ul");
    o.empty();
    var i = this.getValue(e), a = e.getMenuConfig(r).colors;
    (a === void 0 ? [] : a).forEach((function(l) {
      var c = B('<div class="color-block" data-value="' + l + '"></div>');
      c.css("background-color", l);
      var f = B('<li data-value="' + l + '"></li>');
      i === l && f.addClass("active"), f.append(c), o.append(f);
    }));
    var u = "";
    r === "color" && (u = Q("color.default")), r === "bgColor" && (u = Q("color.clear"));
    var s = B(`
      <li data-value="0" class="clear">
        <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
        ` + u + `
      </li>
    `);
    return o.prepend(s), o[0];
  }, t10;
})(), Cnt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = Q("color.color"), r.iconSvg = Ort, r.mark = "color", r;
  }
  return be(e, t10), e;
})(xI), xnt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = Q("color.bgColor"), r.iconSvg = krt, r.mark = "bgColor", r;
  }
  return be(e, t10), e;
})(xI), mO = ["rgb(0, 0, 0)", "rgb(38, 38, 38)", "rgb(89, 89, 89)", "rgb(140, 140, 140)", "rgb(191, 191, 191)", "rgb(217, 217, 217)", "rgb(233, 233, 233)", "rgb(245, 245, 245)", "rgb(250, 250, 250)", "rgb(255, 255, 255)", "rgb(225, 60, 57)", "rgb(231, 95, 51)", "rgb(235, 144, 58)", "rgb(245, 219, 77)", "rgb(114, 192, 64)", "rgb(89, 191, 192)", "rgb(66, 144, 247)", "rgb(54, 88, 226)", "rgb(106, 57, 201)", "rgb(216, 68, 147)", "rgb(251, 233, 230)", "rgb(252, 237, 225)", "rgb(252, 239, 212)", "rgb(252, 251, 207)", "rgb(231, 246, 213)", "rgb(218, 244, 240)", "rgb(217, 237, 250)", "rgb(224, 232, 250)", "rgb(237, 225, 248)", "rgb(246, 226, 234)", "rgb(255, 163, 158)", "rgb(255, 187, 150)", "rgb(255, 213, 145)", "rgb(255, 251, 143)", "rgb(183, 235, 143)", "rgb(135, 232, 222)", "rgb(145, 213, 255)", "rgb(173, 198, 255)", "rgb(211, 173, 247)", "rgb(255, 173, 210)", "rgb(255, 77, 79)", "rgb(255, 122, 69)", "rgb(255, 169, 64)", "rgb(255, 236, 61)", "rgb(115, 209, 61)", "rgb(54, 207, 201)", "rgb(64, 169, 255)", "rgb(89, 126, 247)", "rgb(146, 84, 222)", "rgb(247, 89, 171)", "rgb(207, 19, 34)", "rgb(212, 56, 13)", "rgb(212, 107, 8)", "rgb(212, 177, 6)", "rgb(56, 158, 13)", "rgb(8, 151, 156)", "rgb(9, 109, 217)", "rgb(29, 57, 196)", "rgb(83, 29, 171)", "rgb(196, 29, 127)", "rgb(130, 0, 20)", "rgb(135, 20, 0)", "rgb(135, 56, 0)", "rgb(97, 71, 0)", "rgb(19, 82, 0)", "rgb(0, 71, 79)", "rgb(0, 58, 140)", "rgb(6, 17, 120)", "rgb(34, 7, 94)", "rgb(120, 6, 80)"], Snt = { renderStyle: function(t10, e) {
  var r = t10, n = r.color, o = r.bgColor, i = e;
  return n && Gu(i, { color: n }), o && Gu(i, { backgroundColor: o }), i;
}, styleToHtml: function(t10, e) {
  if (!ot.isText(t10)) return e;
  var r, n = t10, o = n.color, i = n.bgColor;
  return o || i ? ((AD(e) || uc(r = B(e)) !== "span") && (r = B("<span>" + e + "</span>")), o && r.css("color", o), i && r.css("background-color", i), ac(r)) : e;
}, preParseHtml: [Dnt], parseStyleHtml: function(t10, e, r) {
  var n = B(t10);
  if (!ot.isText(e)) return e;
  var o = e, i = qn(n, "color");
  i && (o.color = i);
  var a = qn(n, "background-color");
  return a || (a = qn(n, "background")), a && (o.bgColor = a), o;
}, menus: [{ key: "color", factory: function() {
  return new Cnt();
}, config: { colors: mO } }, { key: "bgColor", factory: function() {
  return new xnt();
}, config: { colors: mO } }] }, Ant = /^(?:\w+:)?\/\/(\S+)$/, Ont = /^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/, knt = /^[^\s\.]+\.\S{2,}$/, Bnt = XN.includes;
function qy(t10) {
  return t10 === void 0 && (t10 = "r"), t10 + "-" + GP();
}
function OD(t10) {
  return t10.replace(/</g, "&lt;").replace(/>/g, "&gt;");
}
function SI(t10, e, r, n) {
  return ka(this, void 0, void 0, (function() {
    var o, i;
    return Ba(this, (function(a) {
      switch (a.label) {
        case 0:
          return (o = e.getMenuConfig(t10).checkLink) ? [4, o(r, n)] : [3, 2];
        case 1:
          if (typeof (i = a.sent()) == "string") return e.alert(i, "error"), [2, false];
          if (i == null) return [2, false];
          a.label = 2;
        case 2:
          return [2, true];
      }
    }));
  }));
}
function AI(t10, e, r) {
  return ka(this, void 0, void 0, (function() {
    var n;
    return Ba(this, (function(o) {
      switch (o.label) {
        case 0:
          return (n = e.getMenuConfig(t10).parseLinkUrl) ? [4, n(r)] : [3, 2];
        case 1:
          return [2, o.sent()];
        case 2:
          return [2, r];
      }
    }));
  }));
}
function kD(t10) {
  return t10.selection == null || !!A.getSelectedElems(t10).some((function(e) {
    var r = e.type;
    return !!t10.isVoid(e) || !!["pre", "code", "link"].includes(r) || void 0;
  }));
}
function _b(t10, e) {
  return { type: "link", url: OD(t10), children: e ? [{ text: e }] : [] };
}
function OI(t10, e, r) {
  return ka(this, void 0, void 0, (function() {
    var n, o, i;
    return Ba(this, (function(a) {
      switch (a.label) {
        case 0:
          return r ? (e || (e = r), t10.restoreSelection(), kD(t10) ? [2] : [4, SI("insertLink", t10, e, r)]) : [2];
        case 1:
          return a.sent() ? [4, AI("insertLink", t10, r)] : [2];
        case 2:
          return n = a.sent(), (o = t10.selection) == null || (L.isCollapsed(o) ? (t10.insertText(" "), i = _b(n, e), N.insertNodes(t10, i), t10.insertFragment([{ text: " " }])) : E.string(t10, o) !== e ? (t10.deleteFragment(), i = _b(n, e), N.insertNodes(t10, i)) : (i = _b(n), N.wrapNodes(t10, i, { split: true }), N.collapse(t10, { edge: "end" }))), [2];
      }
    }));
  }));
}
Je({ target: "Array", proto: true }, { includes: function(t10) {
  return Bnt(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} }), sI("includes");
var Fnt = { type: "link", renderElem: function(t10, e, r) {
  var n = t10, o = n.url, i = n.target;
  return bt("a", { href: o, target: i === void 0 ? "_blank" : i }, e);
} }, Tnt = { selector: "a:not([data-w-e-type])", parseElemHtml: function(t10, e, r) {
  var n = B(t10);
  return (e = e.filter((function(o) {
    return !!ot.isText(o) || !!r.isInline(o);
  }))).length === 0 && (e = [{ text: n.text().replace(/\s+/gm, " ") }]), { type: "link", url: n.attr("href") || "", target: n.attr("target") || "", children: e };
} };
function Pb() {
  return qy("w-e-insert-link");
}
var _nt = (function() {
  function t10() {
    this.title = Q("link.insert"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>', this.tag = "button", this.showModal = true, this.modalWidth = 300, this.$content = null, this.textInputId = Pb(), this.urlInputId = Pb(), this.buttonId = Pb();
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.exec = function(e, r) {
  }, t10.prototype.isDisabled = function(e) {
    return kD(e);
  }, t10.prototype.getModalPositionNode = function(e) {
    return null;
  }, t10.prototype.getModalContentElem = function(e) {
    var r = e.selection, n = this, o = n.textInputId, i = n.urlInputId, a = n.buttonId, u = Yt(tn(Q("link.text"), o), 2), s = u[0], l = B(u[1]), c = Yt(tn(Q("link.url"), i), 2), f = c[0], d = B(c[1]), p = Yt(rc(a, Q("common.ok")), 1)[0];
    if (this.$content == null) {
      var v = B("<div></div>");
      v.on("click", "#" + a, (function(m) {
        m.preventDefault();
        var h = v.find("#" + o).val(), b = v.find("#" + i).val();
        OI(e, h, b), e.hidePanelOrModal();
      })), this.$content = v;
    }
    var y = this.$content;
    if (y.empty(), y.append(s), y.append(f), y.append(p), r == null || L.isCollapsed(r)) l.val("");
    else {
      var g = E.string(e, r);
      l.val(g);
    }
    return d.val(""), setTimeout((function() {
      l.focus();
    })), y[0];
  }, t10;
})();
function bO() {
  return qy("w-e-update-link");
}
var Pnt = (function() {
  function t10() {
    this.title = Q("link.edit"), this.iconSvg = vI, this.tag = "button", this.showModal = true, this.modalWidth = 300, this.$content = null, this.urlInputId = bO(), this.buttonId = bO();
  }
  return t10.prototype.getSelectedLinkElem = function(e) {
    var r = A.getSelectedNodeByType(e, "link");
    return r ?? null;
  }, t10.prototype.getValue = function(e) {
    var r = this.getSelectedLinkElem(e);
    return r && r.url || "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.exec = function(e, r) {
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || this.getSelectedLinkElem(e) == null;
  }, t10.prototype.getModalPositionNode = function(e) {
    return A.getSelectedNodeByType(e, "link");
  }, t10.prototype.getModalContentElem = function(e) {
    var r = this.urlInputId, n = this.buttonId, o = Yt(tn(Q("link.url"), r), 2), i = o[0], a = B(o[1]), u = Yt(rc(n, Q("common.ok")), 1)[0];
    if (this.$content == null) {
      var s = B("<div></div>");
      s.on("click", "button", (function(f) {
        f.preventDefault(), e.restoreSelection();
        var d = A.getSelectedNodeByType(e, "link"), p = d ? J.string(d) : "", v = s.find("#" + r).val();
        (function(y, g, m) {
          ka(this, void 0, void 0, (function() {
            var h, b;
            return Ba(this, (function(w) {
              switch (w.label) {
                case 0:
                  return m ? [4, SI("editLink", y, g, m)] : [2];
                case 1:
                  return w.sent() ? [4, AI("editLink", y, m)] : [2];
                case 2:
                  return h = w.sent(), b = { url: OD(h) }, N.setNodes(y, b, { match: function(D) {
                    return A.checkNodeType(D, "link");
                  } }), [2];
              }
            }));
          }));
        })(e, p, v), e.hidePanelOrModal();
      })), this.$content = s;
    }
    var l = this.$content;
    l.empty(), l.append(i), l.append(u);
    var c = this.getValue(e);
    return a.val(c), setTimeout((function() {
      a.focus();
    })), l[0];
  }, t10;
})(), jnt = (function() {
  function t10() {
    this.title = Q("link.unLink"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || A.getSelectedNodeByType(e, "link") == null;
  }, t10.prototype.exec = function(e, r) {
    this.isDisabled(e) || N.unwrapNodes(e, { match: function(n) {
      return A.checkNodeType(n, "link");
    } });
  }, t10;
})(), Nnt = (function() {
  function t10() {
    this.title = Q("link.view"), this.iconSvg = yI, this.tag = "button";
  }
  return t10.prototype.getSelectedLinkElem = function(e) {
    var r = A.getSelectedNodeByType(e, "link");
    return r ?? null;
  }, t10.prototype.getValue = function(e) {
    var r = this.getSelectedLinkElem(e);
    return r && r.url || "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || this.getSelectedLinkElem(e) == null;
  }, t10.prototype.exec = function(e, r) {
    if (!this.isDisabled(e)) {
      if (!r || typeof r != "string") throw new Error("View link failed, link url is '" + r + "'");
      window.open(r, "_blank");
    }
  }, t10;
})(), wO = { checkLink: function(t10, e) {
  return true;
}, parseLinkUrl: function(t10) {
  return t10;
} }, Int = { renderElems: [Fnt], elemsToHtml: [{ type: "link", elemToHtml: function(t10, e) {
  var r = t10, n = r.url, o = r.target;
  return '<a href="' + n + '" target="' + (o === void 0 ? "_blank" : o) + '">' + e + "</a>";
} }], parseElemsHtml: [Tnt], menus: [{ key: "insertLink", factory: function() {
  return new _nt();
}, config: wO }, { key: "editLink", factory: function() {
  return new Pnt();
}, config: wO }, { key: "unLink", factory: function() {
  return new jnt();
} }, { key: "viewLink", factory: function() {
  return new Nnt();
} }], editorPlugin: function(t10) {
  var e = t10.isInline, r = t10.insertData, n = t10.normalizeNode;
  t10.insertNode, t10.insertText;
  var o = t10;
  return o.isInline = function(i) {
    return i.type === "link" || e(i);
  }, o.insertData = function(i) {
    var a = i.getData("text/plain");
    if ((function(l) {
      if (typeof l != "string") return false;
      var c = l.match(Ant);
      if (!c) return false;
      var f = c[1];
      return !(!f || !Ont.test(f) && !knt.test(f));
    })(a)) {
      if (!kD(o)) {
        var u = o.selection;
        if (u != null) {
          var s = E.string(o, u);
          OI(o, s, a);
        }
      }
    } else r(i);
  }, o.normalizeNode = function(i) {
    var a = Yt(i, 2), u = a[0], s = a[1];
    return A.getNodeType(u) !== "link" ? n([u, s]) : J.string(u) === "" ? N.removeNodes(o, { at: s }) : n([u, s]);
  }, o;
} }, Lnt = yt(1 .valueOf), Rnt = St.RangeError, Mnt = St.RangeError, kI = St.String, BI = Math.floor, zE = yt((function(t10) {
  var e = Ee(Bn(this)), r = "", n = ic(t10);
  if (n < 0 || n == 1 / 0) throw Rnt("Wrong number of repetitions");
  for (; n > 0; (n >>>= 1) && (e += e)) 1 & n && (r += e);
  return r;
})), EO = yt("".slice), rf = yt(1 .toFixed), rl = function(t10, e, r) {
  return e === 0 ? r : e % 2 == 1 ? rl(t10, e - 1, r * t10) : rl(t10 * t10, e / 2, r);
}, Ts = function(t10, e, r) {
  for (var n = -1, o = r; ++n < 6; ) o += e * t10[n], t10[n] = o % 1e7, o = BI(o / 1e7);
}, jb = function(t10, e) {
  for (var r = 6, n = 0; --r >= 0; ) n += t10[r], t10[r] = BI(n / e), n = n % e * 1e7;
}, DO = function(t10) {
  for (var e = 6, r = ""; --e >= 0; ) if (r !== "" || e === 0 || t10[e] !== 0) {
    var n = kI(t10[e]);
    r = r === "" ? n : r + zE("0", 7 - n.length) + n;
  }
  return r;
};
function CO(t10, e) {
  return "w-e-image-container-" + A.findKey(t10, e).id;
}
Je({ target: "Number", proto: true, forced: Ce((function() {
  return rf(8e-5, 3) !== "0.000" || rf(0.9, 0) !== "1" || rf(1.255, 2) !== "1.25" || rf(1000000000000000100, 0) !== "1000000000000000128";
})) || !Ce((function() {
  rf({});
})) }, { toFixed: function(t10) {
  var e, r, n, o, i = Lnt(this), a = ic(t10), u = [0, 0, 0, 0, 0, 0], s = "", l = "0";
  if (a < 0 || a > 20) throw Mnt("Incorrect fraction digits");
  if (i != i) return "NaN";
  if (i <= -1e21 || i >= 1e21) return kI(i);
  if (i < 0 && (s = "-", i = -i), i > 1e-21) if (r = (e = (function(c) {
    for (var f = 0, d = c; d >= 4096; ) f += 12, d /= 4096;
    for (; d >= 2; ) f += 1, d /= 2;
    return f;
  })(i * rl(2, 69, 1)) - 69) < 0 ? i * rl(2, -e, 1) : i / rl(2, e, 1), r *= 4503599627370496, (e = 52 - e) > 0) {
    for (Ts(u, 0, r), n = a; n >= 7; ) Ts(u, 1e7, 0), n -= 7;
    for (Ts(u, rl(10, n, 1), 0), n = e - 1; n >= 23; ) jb(u, 1 << 23), n -= 23;
    jb(u, 1 << n), Ts(u, 1, 1), jb(u, 2), l = DO(u);
  } else Ts(u, 0, r), Ts(u, 1 << -e, 0), l = DO(u) + zE("0", a);
  return a > 0 ? s + ((o = l.length) <= a ? "0." + zE("0", a - o) + l : EO(l, 0, o - a) + "." + EO(l, o - a)) : s + l;
} });
var znt = { type: "image", renderElem: function(t10, e, r) {
  var n = t10, o = n.src, i = n.alt, a = i === void 0 ? "" : i, u = n.href, s = u === void 0 ? "" : u, l = n.style, c = l === void 0 ? {} : l, f = c.width, d = f === void 0 ? "" : f, p = c.height, v = p === void 0 ? "" : p, y = A.isNodeSelected(r, t10), g = {};
  d && (g.width = "100%"), v && (g.height = "100%");
  var m = bt("img", { style: g, src: o, alt: a, "data-href": s }), h = r.isDisabled();
  return y && !h ? (function(b, w, D, x) {
    var C = B("body"), O = CO(b, w), T = x.width, R = x.height, H = 0, M = 0, K = 0, U = false, W = null;
    function q(at) {
      W = (function() {
        var P = B("#" + O);
        if (P.length === 0) throw new Error("Cannot find image container elem");
        return P;
      })(), H = at;
      var k = W.find("img");
      if (k.length === 0) throw new Error("Cannot find image elem");
      M = k.width(), K = k.height(), C.on("mousemove", et), C.on("mouseup", st);
      var S = A.getHoverbar(b);
      S && S.hideAndClean();
    }
    var et = zu((function(at) {
      at.preventDefault();
      var k = at.clientX, S = M + (U ? H - k : k - H), P = K * (S / M);
      W != null && (S <= 15 || P <= 15 || (W.css("width", S + "px"), W.css("height", P + "px")));
    }), 100);
    function st(at) {
      if (C.off("mousemove", et), W != null) {
        var k = W.width().toFixed(2), S = W.height().toFixed(2), P = { style: ya(ya({}, w.style), { width: k + "px", height: S + "px" }) };
        N.setNodes(b, P, { at: A.findPath(b, w) }), C.off("mouseup", st);
      }
    }
    var ut = {};
    return T && (ut.width = T), R && (ut.height = R), bt("div", { id: O, style: ut, className: "w-e-image-container w-e-selected-image-container", on: { mousedown: function(at) {
      var k = B(at.target);
      k.hasClass("w-e-image-dragger") && (at.preventDefault(), (k.hasClass("left-top") || k.hasClass("left-bottom")) && (U = true), q(at.clientX));
    } } }, D, bt("div", { className: "w-e-image-dragger left-top" }), bt("div", { className: "w-e-image-dragger right-top" }), bt("div", { className: "w-e-image-dragger left-bottom" }), bt("div", { className: "w-e-image-dragger right-bottom" }));
  })(r, t10, m, { width: d, height: v }) : (function(b, w, D, x) {
    var C = x.width, O = x.height, T = {};
    return C && (T.width = C), O && (T.height = O), bt("div", { id: CO(b, w), style: T, className: "w-e-image-container" }, D);
  })(r, t10, m, { width: d, height: v });
} }, $nt = { selector: "img:not([data-w-e-type])", parseElemHtml: function(t10, e, r) {
  var n = B(t10), o = n.attr("data-href") || "";
  return o = decodeURIComponent(o), { type: "image", src: n.attr("src") || "", alt: n.attr("alt") || "", href: o, style: { width: qn(n, "width"), height: qn(n, "height") }, children: [{ text: "" }] };
} };
function FI(t10, e, r, n, o) {
  return n === void 0 && (n = ""), o === void 0 && (o = ""), ka(this, void 0, void 0, (function() {
    var i, a;
    return Ba(this, (function(u) {
      switch (u.label) {
        case 0:
          return (i = e.getMenuConfig(t10).checkImage) ? [4, i(r, n, o)] : [3, 2];
        case 1:
          if (typeof (a = u.sent()) == "string") return e.alert(a, "error"), [2, false];
          if (a == null) return [2, false];
          u.label = 2;
        case 2:
          return [2, true];
      }
    }));
  }));
}
function TI(t10, e, r) {
  return ka(this, void 0, void 0, (function() {
    var n;
    return Ba(this, (function(o) {
      switch (o.label) {
        case 0:
          return (n = e.getMenuConfig(t10).parseImageSrc) ? [4, n(r)] : [3, 2];
        case 1:
          return [2, o.sent()];
        case 2:
          return [2, r];
      }
    }));
  }));
}
function Cu(t10, e, r, n) {
  return r === void 0 && (r = ""), n === void 0 && (n = ""), ka(this, void 0, void 0, (function() {
    var o, i, a;
    return Ba(this, (function(u) {
      switch (u.label) {
        case 0:
          return [4, FI("insertImage", t10, e, r, n)];
        case 1:
          return u.sent() ? [4, TI("insertImage", t10, e)] : [2];
        case 2:
          return o = u.sent(), i = { type: "image", src: OD(o), href: n, alt: r, style: {}, children: [{ text: "" }] }, t10.selection === null && t10.restoreSelection(), A.getSelectedNodeByType(t10, "image") && t10.move(1), Ky(t10) || (N.insertNodes(t10, i), (a = t10.getMenuConfig("insertImage").onInsertedImage) && a(i)), [2];
      }
    }));
  }));
}
function Ky(t10) {
  var e = t10.selection;
  return e == null || !L.isCollapsed(e) || !!Yt(E.nodes(t10, { match: function(r) {
    var n = A.getNodeType(r);
    return n === "code" || n === "pre" || n === "link" || n === "list-item" || !!n.startsWith("header") || n === "blockquote" || !!E.isVoid(t10, r);
  }, universal: true }), 1)[0];
}
function Wh() {
  return qy("w-e-insert-image");
}
var Hnt = (function() {
  function t10() {
    this.title = Q("image.netImage"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>', this.tag = "button", this.showModal = true, this.modalWidth = 300, this.$content = null, this.srcInputId = Wh(), this.altInputId = Wh(), this.hrefInputId = Wh(), this.buttonId = Wh();
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.exec = function(e, r) {
  }, t10.prototype.isDisabled = function(e) {
    return Ky(e);
  }, t10.prototype.getModalPositionNode = function(e) {
    return null;
  }, t10.prototype.getModalContentElem = function(e) {
    var r = this, n = this, o = n.srcInputId, i = n.altInputId, a = n.hrefInputId, u = n.buttonId, s = Yt(tn(Q("image.src"), o), 2), l = s[0], c = B(s[1]), f = Yt(tn(Q("image.desc"), i), 2), d = f[0], p = B(f[1]), v = Yt(tn(Q("image.link"), a), 2), y = v[0], g = B(v[1]), m = Yt(rc(u, Q("common.ok")), 1)[0];
    if (this.$content == null) {
      var h = B("<div></div>");
      h.on("click", "#" + u, (function(w) {
        w.preventDefault();
        var D = h.find("#" + o).val().trim(), x = h.find("#" + i).val().trim(), C = h.find("#" + a).val().trim();
        r.insertImage(e, D, x, C), e.hidePanelOrModal();
      })), this.$content = h;
    }
    var b = this.$content;
    return b.empty(), b.append(l), b.append(d), b.append(y), b.append(m), c.val(""), p.val(""), g.val(""), setTimeout((function() {
      c.focus();
    })), b[0];
  }, t10.prototype.insertImage = function(e, r, n, o) {
    n === void 0 && (n = ""), o === void 0 && (o = ""), r && (e.restoreSelection(), this.isDisabled(e) || Cu(e, r, n, o));
  }, t10;
})(), Vnt = (function() {
  function t10() {
    this.title = Q("image.delete"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || A.getSelectedNodeByType(e, "image") == null;
  }, t10.prototype.exec = function(e, r) {
    this.isDisabled(e) || N.removeNodes(e, { match: function(n) {
      return A.checkNodeType(n, "image");
    } });
  }, t10;
})();
function Gh() {
  return qy("w-e-edit-image");
}
var Unt = (function() {
  function t10() {
    this.title = Q("image.edit"), this.iconSvg = vI, this.tag = "button", this.showModal = true, this.modalWidth = 300, this.$content = null, this.srcInputId = Gh(), this.altInputId = Gh(), this.hrefInputId = Gh(), this.buttonId = Gh();
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.getImageNode = function(e) {
    return A.getSelectedNodeByType(e, "image");
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.exec = function(e, r) {
  }, t10.prototype.isDisabled = function(e) {
    var r = e.selection;
    return r == null || !L.isCollapsed(r) || A.getSelectedNodeByType(e, "image") == null;
  }, t10.prototype.getModalPositionNode = function(e) {
    return this.getImageNode(e);
  }, t10.prototype.getModalContentElem = function(e) {
    var r = this, n = this, o = n.srcInputId, i = n.altInputId, a = n.hrefInputId, u = n.buttonId, s = this.getImageNode(e);
    if (s == null) throw new Error("Not found selected image node");
    var l = Yt(tn(Q("image.src"), o), 2), c = l[0], f = B(l[1]), d = Yt(tn(Q("image.desc"), i), 2), p = d[0], v = B(d[1]), y = Yt(tn(Q("image.link"), a), 2), g = y[0], m = B(y[1]), h = Yt(rc(u, Q("common.ok")), 1)[0];
    if (this.$content == null) {
      var b = B("<div></div>");
      b.on("click", "#" + u, (function(H) {
        H.preventDefault();
        var M = b.find("#" + o).val(), K = b.find("#" + i).val(), U = b.find("#" + a).val();
        r.updateImage(e, M, K, U), e.hidePanelOrModal();
      })), this.$content = b;
    }
    var w = this.$content;
    w.empty(), w.append(c), w.append(p), w.append(g), w.append(h);
    var D = s, x = D.src, C = D.alt, O = C === void 0 ? "" : C, T = D.href, R = T === void 0 ? "" : T;
    return f.val(x), v.val(O), m.val(R), setTimeout((function() {
      f.focus();
    })), w[0];
  }, t10.prototype.updateImage = function(e, r, n, o, i) {
    n === void 0 && (n = ""), o === void 0 && (o = ""), i === void 0 && (i = {}), r && (e.restoreSelection(), this.isDisabled(e) || (function(a, u, s, l, c) {
      s === void 0 && (s = ""), l === void 0 && (l = ""), c === void 0 && (c = {}), ka(this, void 0, void 0, (function() {
        var f, d, p, v, y, g;
        return Ba(this, (function(m) {
          switch (m.label) {
            case 0:
              return [4, FI("editImage", a, u, s, l)];
            case 1:
              return m.sent() ? [4, TI("editImage", a, u)] : [2];
            case 2:
              return f = m.sent(), (d = A.getSelectedNodeByType(a, "image")) == null || (p = d.style, v = { src: f, alt: s, href: l, style: ya(ya({}, p === void 0 ? {} : p), c) }, N.setNodes(a, v, { match: function(h) {
                return A.checkNodeType(h, "image");
              } }), y = A.getSelectedNodeByType(a, "image"), (g = a.getMenuConfig("editImage").onUpdatedImage) && g(y)), [2];
          }
        }));
      }));
    })(e, r, n, o, i));
  }, t10;
})(), Wnt = (function() {
  function t10() {
    this.title = Q("image.viewLink"), this.iconSvg = yI, this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    var r = A.getSelectedNodeByType(e, "image");
    return r && r.href || "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || !this.getValue(e);
  }, t10.prototype.exec = function(e, r) {
    if (!this.isDisabled(e)) {
      if (!r || typeof r != "string") throw new Error("View image link failed, image.href is '" + r + "'");
      window.open(r, "_blank");
    }
  }, t10;
})(), BD = (function() {
  function t10() {
    this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.getSelectedNode = function(e) {
    return A.getSelectedNodeByType(e, "image");
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || this.getSelectedNode(e) == null;
  }, t10.prototype.exec = function(e, r) {
    if (!this.isDisabled(e)) {
      var n = this.getSelectedNode(e);
      if (n != null) {
        var o = A.getHoverbar(e);
        o && o.hideAndClean();
        var i = n.style, a = { style: ya(ya({}, i === void 0 ? {} : i), { width: this.value, height: "" }) };
        N.setNodes(e, a, { match: function(u) {
          return A.checkNodeType(u, "image");
        } });
      }
    }
  }, t10;
})(), Gnt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = "30%", r.value = "30%", r;
  }
  return be(e, t10), e;
})(BD), qnt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = "50%", r.value = "50%", r;
  }
  return be(e, t10), e;
})(BD), Knt = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = "100%", r.value = "100%", r;
  }
  return be(e, t10), e;
})(BD), xO = { onInsertedImage: function(t10) {
}, onUpdatedImage: function(t10) {
}, checkImage: function(t10, e, r) {
  return true;
}, parseImageSrc: function(t10) {
  return t10;
} }, Ynt = { renderElems: [znt], elemsToHtml: [{ type: "image", elemToHtml: function(t10, e) {
  var r = t10, n = r.src, o = r.alt, i = o === void 0 ? "" : o, a = r.href, u = a === void 0 ? "" : a, s = r.style, l = s === void 0 ? {} : s, c = l.width, f = c === void 0 ? "" : c, d = l.height, p = d === void 0 ? "" : d, v = "";
  return f && (v += "width: " + f + ";"), p && (v += "height: " + p + ";"), '<img src="' + n + '" alt="' + i + '" data-href="' + u + '" style="' + v + '"/>';
} }], parseElemsHtml: [$nt], menus: [{ key: "insertImage", factory: function() {
  return new Hnt();
}, config: xO }, { key: "deleteImage", factory: function() {
  return new Vnt();
} }, { key: "editImage", factory: function() {
  return new Unt();
}, config: xO }, { key: "viewImageLink", factory: function() {
  return new Wnt();
} }, { key: "imageWidth30", factory: function() {
  return new Gnt();
} }, { key: "imageWidth50", factory: function() {
  return new qnt();
} }, { key: "imageWidth100", factory: function() {
  return new Knt();
} }], editorPlugin: function(t10) {
  var e = t10.isInline, r = t10.isVoid;
  t10.insertNode;
  var n = t10;
  return n.isInline = function(o) {
    return o.type === "image" || e(o);
  }, n.isVoid = function(o) {
    return o.type === "image" || r(o);
  }, n;
} }, Xnt = { type: "todo", renderElem: function(t10, e, r) {
  var n = false;
  r.isDisabled() && (n = true);
  var o = bt("div", { style: { margin: "5px 0" } }, bt("span", { contentEditable: false, style: { marginRight: "0.5em" } }, bt("input", { type: "checkbox", checked: t10.checked, disabled: n, on: { change: function(i) {
    var a = A.findPath(r, t10), u = { checked: i.target.checked };
    N.setNodes(r, u, { at: a });
  } } })), bt("span", null, e));
  return o;
} }, Znt = (function() {
  function t10() {
    this.title = Q("todo.todo"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return !!A.getSelectedNodeByType(e, "todo");
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || !!A.getSelectedElems(e).some((function(r) {
      if (E.isVoid(e, r) && E.isBlock(e, r)) return true;
      var n = r.type;
      return !!["pre", "table", "list-item"].includes(n) || void 0;
    }));
  }, t10.prototype.exec = function(e, r) {
    var n = this.isActive(e);
    N.setNodes(e, { type: n ? "paragraph" : "todo" });
  }, t10;
})(), Jnt = { selector: 'div[data-w-e-type="todo"]', parseElemHtml: function(t10, e, r) {
  var n = B(t10);
  (e = e.filter((function(i) {
    return !!ot.isText(i) || !!r.isInline(i);
  }))).length === 0 && (e = [{ text: n.text().replace(/\s+/gm, " ") }]);
  var o = false;
  return n.find('input[type="checkbox"]').attr("checked") != null && (o = true), { type: "todo", checked: o, children: e };
} }, Qnt = { renderElems: [Xnt], elemsToHtml: [{ type: "todo", elemToHtml: function(t10, e) {
  return '<div data-w-e-type="todo"><input type="checkbox" disabled ' + (t10.checked ? "checked" : "") + ">" + e + "</div>";
} }], preParseHtml: [{ selector: "ul.w-e-todo", preParseHtml: function(t10) {
  var e = B(t10).find("li"), r = B('<div data-w-e-type="todo"></div>'), n = e.find("input[type]");
  return r.append(n), e.children()[0].remove(), r[0].innerHTML = r[0].innerHTML + e[0].innerHTML, r[0];
} }], parseElemsHtml: [Jnt], menus: [{ key: "todo", factory: function() {
  return new Znt();
} }], editorPlugin: function(t10) {
  var e = t10.deleteBackward, r = t10;
  return r.deleteBackward = function(n) {
    var o = t10.selection;
    if (o && L.isCollapsed(o)) {
      var i = A.getSelectedNodeByType(t10, "todo");
      if (i && J.string(i).length === 0) return void N.setNodes(t10, { type: "paragraph" }, { mode: "highest" });
    }
    e(n);
  }, r;
} }, tot = { type: "blockquote", renderElem: function(t10, e, r) {
  return bt("blockquote", null, e);
} }, eot = { selector: "blockquote:not([data-w-e-type])", parseElemHtml: function(t10, e, r) {
  var n = B(t10);
  return (e = e.filter((function(o) {
    return !!ot.isText(o) || !!r.isInline(o);
  }))).length === 0 && (e = [{ text: n.text().replace(/\s+/gm, " ") }]), { type: "blockquote", children: e };
} }, rot = (function() {
  function t10() {
    this.title = Q("blockQuote.title"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return !!A.getSelectedNodeByType(e, "blockquote");
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || !Yt(E.nodes(e, { match: function(r) {
      var n = A.getNodeType(r);
      return n === "paragraph" || n === "blockquote";
    }, universal: true, mode: "highest" }), 1)[0];
  }, t10.prototype.exec = function(e, r) {
    if (!this.isDisabled(e)) {
      var n = this.isActive(e) ? "paragraph" : "blockquote";
      N.setNodes(e, { type: n }, { mode: "highest" });
    }
  }, t10;
})(), not = { key: "blockquote", factory: function() {
  return new rot();
} }, oot = yt([].slice), iot = ED("slice"), aot = ln("species"), Nb = St.Array, uot = Math.max;
Je({ target: "Array", proto: true, forced: !iot }, { slice: function(t10, e) {
  var r, n, o, i = nc(this), a = Wy(i), u = Hd(t10, a), s = Hd(e === void 0 ? a : e, a);
  if (u0(i) && (r = i.constructor, (wD(r) && (r === Nb || u0(r.prototype)) || vo(r) && (r = r[aot]) === null) && (r = void 0), r === Nb || r === void 0)) return oot(i, u, s);
  for (n = new (r === void 0 ? Nb : r)(uot(s - u, 0)), o = 0; u < s; u++, o++) u in i && cI(n, o, i[u]);
  return n.length = o, n;
} });
var sot = { renderElems: [tot], elemsToHtml: [{ type: "blockquote", elemToHtml: function(t10, e) {
  return "<blockquote>" + e + "</blockquote>";
} }], parseElemsHtml: [eot], menus: [not], editorPlugin: function(t10) {
  var e = t10.insertBreak, r = t10.insertText, n = t10;
  return n.insertBreak = function() {
    var o = n.selection;
    if (o == null) return e();
    var i = Yt(E.nodes(t10, { match: function(c) {
      return A.checkNodeType(c, "blockquote");
    }, universal: true }), 1)[0];
    if (!i) return e();
    var a = i[0], u = A.findPath(t10, a), s = E.end(t10, u);
    if (Bt.equals(s, o.focus)) {
      var l = J.string(a);
      if (l && l.slice(-1) === `
`) return t10.deleteBackward("character"), void N.insertNodes(n, { type: "paragraph", children: [{ text: "" }] }, { mode: "highest" });
    }
    r(`
`);
  }, n;
} }, lot = (function() {
  function t10() {
    this.title = Q("emotion.title"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>', this.tag = "button", this.showDropPanel = true, this.$content = null;
  }
  return t10.prototype.exec = function(e, r) {
  }, t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || !!Yt(E.nodes(e, { match: function(r) {
      return A.getNodeType(r) === "pre" || !!E.isVoid(e, r);
    }, universal: true }), 1)[0];
  }, t10.prototype.getPanelContentElem = function(e) {
    if (this.$content == null) {
      var r = B('<ul class="w-e-panel-content-emotion"></ul>');
      r.on("click", "li", (function(i) {
        var a = i.target;
        if (a != null) {
          i.preventDefault();
          var u = B(a).text();
          e.insertText(u);
        }
      })), this.$content = r;
    }
    var n = this.$content;
    if (n == null) return document.createElement("ul");
    n.empty();
    var o = e.getMenuConfig("emotion").emotions;
    return (o === void 0 ? [] : o).forEach((function(i) {
      var a = B("<li>" + i + "</li>");
      n.append(a);
    })), n[0];
  }, t10;
})(), cot = { menus: [{ key: "emotion", factory: function() {
  return new lot();
}, config: { emotions: "\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463} \u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(" ") } }] }, fot = { 1: "12px", 2: "14px", 3: "16px", 4: "19px", 5: "24px", 6: "32px", 7: "48px" }, dot = { selector: "font", preParseHtml: function(t10) {
  var e = B(t10);
  if (uc(e) !== "font") return t10;
  var r = e.attr("size") || "";
  r && (e.removeAttr("size"), e.css("font-size", fot[r]));
  var n = e.attr("face") || "";
  return n && (e.removeAttr("face"), e.css("font-family", n)), e[0];
} }, pot = yt("".indexOf);
Je({ target: "String", proto: true, forced: !wI("includes") }, { includes: function(t10) {
  return !!~pot(Ee(Bn(this)), Ee(bI(t10)), arguments.length > 1 ? arguments[1] : void 0);
} });
var Ai, Hg, qh = function(t10) {
  return t10 && t10.Math == Math && t10;
}, Ft = qh(typeof globalThis == "object" && globalThis) || qh(typeof window == "object" && window) || qh(typeof self == "object" && self) || qh(typeof o0 == "object" && o0) || /* @__PURE__ */ (function() {
  return this;
})() || Function("return this")(), FD = Function.prototype, SO = FD.apply, hot = FD.bind, AO = FD.call, _I = typeof Reflect == "object" && Reflect.apply || (hot ? AO.bind(SO) : function() {
  return AO.apply(SO, arguments);
}), PI = Function.prototype, $E = PI.bind, HE = PI.call, got = $E && $E.bind(HE), Fe = $E ? function(t10) {
  return t10 && got(HE, t10);
} : function(t10) {
  return t10 && function() {
    return HE.apply(t10, arguments);
  };
}, Sr = function(t10) {
  return typeof t10 == "function";
}, an = function(t10) {
  try {
    return !!t10();
  } catch {
    return true;
  }
}, Vr = !an((function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
})), nf = Function.prototype.call, Eo = nf.bind ? nf.bind(nf) : function() {
  return nf.apply(nf, arguments);
}, OO = {}.propertyIsEnumerable, kO = Object.getOwnPropertyDescriptor, vot = kO && !OO.call({ 1: 2 }, 1) ? function(t10) {
  var e = kO(this, t10);
  return !!e && e.enumerable;
} : OO, TD = { f: vot }, qu = function(t10, e) {
  return { enumerable: !(1 & t10), configurable: !(2 & t10), writable: !(4 & t10), value: e };
}, yot = Fe({}.toString), mot = Fe("".slice), xu = function(t10) {
  return mot(yot(t10), 8, -1);
}, Ib = Ft.Object, bot = Fe("".split), jI = an((function() {
  return !Ib("z").propertyIsEnumerable(0);
})) ? function(t10) {
  return xu(t10) == "String" ? bot(t10, "") : Ib(t10);
} : Ib, wot = Ft.TypeError, _D = function(t10) {
  if (t10 == null) throw wot("Can't call method on " + t10);
  return t10;
}, Po = function(t10) {
  return jI(_D(t10));
}, Hn = function(t10) {
  return typeof t10 == "object" ? t10 !== null : Sr(t10);
}, vn = {}, BO = function(t10) {
  return Sr(t10) ? t10 : void 0;
}, zp = function(t10, e) {
  return arguments.length < 2 ? BO(vn[t10]) || BO(Ft[t10]) : vn[t10] && vn[t10][e] || Ft[t10] && Ft[t10][e];
}, NI = Fe({}.isPrototypeOf), Lb = zp("navigator", "userAgent") || "", FO = Ft.process, TO = Ft.Deno, _O = FO && FO.versions || TO && TO.version, PO = _O && _O.v8;
PO && (Hg = (Ai = PO.split("."))[0] > 0 && Ai[0] < 4 ? 1 : +(Ai[0] + Ai[1])), !Hg && Lb && (!(Ai = Lb.match(/Edge\/(\d+)/)) || Ai[1] >= 74) && (Ai = Lb.match(/Chrome\/(\d+)/)) && (Hg = +Ai[1]);
var c0 = Hg, so = !!Object.getOwnPropertySymbols && !an((function() {
  var t10 = /* @__PURE__ */ Symbol();
  return !String(t10) || !(Object(t10) instanceof Symbol) || !Symbol.sham && c0 && c0 < 41;
})), PD = so && !Symbol.sham && typeof Symbol.iterator == "symbol", Eot = Ft.Object, fl = PD ? function(t10) {
  return typeof t10 == "symbol";
} : function(t10) {
  var e = zp("Symbol");
  return Sr(e) && NI(e.prototype, Eot(t10));
}, Dot = Ft.String, Cot = Ft.TypeError, II = function(t10) {
  if (Sr(t10)) return t10;
  throw Cot((function(e) {
    try {
      return Dot(e);
    } catch {
      return "Object";
    }
  })(t10) + " is not a function");
}, xot = Ft.TypeError, Sot = Object.defineProperty, ta = Ft["__core-js_shared__"] || (function(t10, e) {
  try {
    Sot(Ft, t10, { value: e, configurable: true, writable: true });
  } catch {
    Ft[t10] = e;
  }
  return e;
})("__core-js_shared__", {}), us = $y((function(t10) {
  (t10.exports = function(e, r) {
    return ta[e] || (ta[e] = r !== void 0 ? r : {});
  })("versions", []).push({ version: "3.19.3", mode: "pure", copyright: "\xA9 2021 Denis Pushkarev (zloirock.ru)" });
})), Aot = Ft.Object, $p = function(t10) {
  return Aot(_D(t10));
}, Oot = Fe({}.hasOwnProperty), Kt = Object.hasOwn || function(t10, e) {
  return Oot($p(t10), e);
}, kot = 0, Bot = Math.random(), Fot = Fe(1 .toString), f0 = function(t10) {
  return "Symbol(" + (t10 === void 0 ? "" : t10) + ")_" + Fot(++kot + Bot, 36);
}, of = us("wks"), Su = Ft.Symbol, jO = Su && Su.for, Tot = PD ? Su : Su && Su.withoutSetter || f0, cn = function(t10) {
  if (!Kt(of, t10) || !so && typeof of[t10] != "string") {
    var e = "Symbol." + t10;
    so && Kt(Su, t10) ? of[t10] = Su[t10] : of[t10] = PD && jO ? jO(e) : Tot(e);
  }
  return of[t10];
}, _ot = Ft.TypeError, Pot = cn("toPrimitive"), sc = function(t10) {
  var e = (function(r, n) {
    if (!Hn(r) || fl(r)) return r;
    var o, i, a = (o = r[Pot]) == null ? void 0 : II(o);
    if (a) {
      if (i = Eo(a, r, n), !Hn(i) || fl(i)) return i;
      throw _ot("Can't convert object to primitive value");
    }
    return (function(u, s) {
      var l, c;
      if (Sr(l = u.toString) && !Hn(c = Eo(l, u)) || Sr(l = u.valueOf) && !Hn(c = Eo(l, u))) return c;
      throw xot("Can't convert object to primitive value");
    })(r);
  })(t10, "string");
  return fl(e) ? e : e + "";
}, VE = Ft.document, jot = Hn(VE) && Hn(VE.createElement), LI = function(t10) {
  return jot ? VE.createElement(t10) : {};
}, RI = !Vr && !an((function() {
  return Object.defineProperty(LI("div"), "a", { get: function() {
    return 7;
  } }).a != 7;
})), NO = Object.getOwnPropertyDescriptor, jD = { f: Vr ? NO : function(t10, e) {
  if (t10 = Po(t10), e = sc(e), RI) try {
    return NO(t10, e);
  } catch {
  }
  if (Kt(t10, e)) return qu(!Eo(TD.f, t10, e), t10[e]);
} }, Not = /#|\.prototype\./, Hp = function(t10, e) {
  var r = Lot[Iot(t10)];
  return r == Mot || r != Rot && (Sr(e) ? an(e) : !!e);
}, Iot = Hp.normalize = function(t10) {
  return String(t10).replace(Not, ".").toLowerCase();
}, Lot = Hp.data = {}, Rot = Hp.NATIVE = "N", Mot = Hp.POLYFILL = "P", zot = Hp, IO = Fe(Fe.bind), MI = function(t10, e) {
  return II(t10), e === void 0 ? t10 : IO ? IO(t10, e) : function() {
    return t10.apply(e, arguments);
  };
}, $ot = Ft.String, Hot = Ft.TypeError, Ku = function(t10) {
  if (Hn(t10)) return t10;
  throw Hot($ot(t10) + " is not an object");
}, Vot = Ft.TypeError, LO = Object.defineProperty, ss = { f: Vr ? LO : function(t10, e, r) {
  if (Ku(t10), e = sc(e), Ku(r), RI) try {
    return LO(t10, e, r);
  } catch {
  }
  if ("get" in r || "set" in r) throw Vot("Accessors not supported");
  return "value" in r && (t10[e] = r.value), t10;
} }, co = Vr ? function(t10, e, r) {
  return ss.f(t10, e, qu(1, r));
} : function(t10, e, r) {
  return t10[e] = r, t10;
}, Uot = jD.f, Wot = function(t10) {
  var e = function(r, n, o) {
    if (this instanceof e) {
      switch (arguments.length) {
        case 0:
          return new t10();
        case 1:
          return new t10(r);
        case 2:
          return new t10(r, n);
      }
      return new t10(r, n, o);
    }
    return _I(t10, this, arguments);
  };
  return e.prototype = t10.prototype, e;
}, Ni = function(t10, e) {
  var r, n, o, i, a, u, s, l, c = t10.target, f = t10.global, d = t10.stat, p = t10.proto, v = f ? Ft : d ? Ft[c] : (Ft[c] || {}).prototype, y = f ? vn : vn[c] || co(vn, c, {})[c], g = y.prototype;
  for (o in e) r = !zot(f ? o : c + (d ? "." : "#") + o, t10.forced) && v && Kt(v, o), a = y[o], r && (u = t10.noTargetGet ? (l = Uot(v, o)) && l.value : v[o]), i = r && u ? u : e[o], r && typeof a == typeof i || (s = t10.bind && r ? MI(i, Ft) : t10.wrap && r ? Wot(i) : p && Sr(i) ? Fe(i) : i, (t10.sham || i && i.sham || a && a.sham) && co(s, "sham", true), co(y, o, s), p && (Kt(vn, n = c + "Prototype") || co(vn, n, {}), co(vn[n], o, i), t10.real && g && !g[o] && co(g, o, i)));
}, d0 = Array.isArray || function(t10) {
  return xu(t10) == "Array";
}, Got = Math.ceil, qot = Math.floor, ND = function(t10) {
  var e = +t10;
  return e != e || e === 0 ? 0 : (e > 0 ? qot : Got)(e);
}, Kot = Math.min, Yy = function(t10) {
  return (e = t10.length) > 0 ? Kot(ND(e), 9007199254740991) : 0;
  var e;
}, UE = function(t10, e, r) {
  var n = sc(e);
  n in t10 ? ss.f(t10, n, qu(0, r)) : t10[n] = r;
}, zI = {};
zI[cn("toStringTag")] = "z";
var ID = String(zI) === "[object z]", Yot = cn("toStringTag"), Xot = Ft.Object, Zot = xu(/* @__PURE__ */ (function() {
  return arguments;
})()) == "Arguments", Xy = ID ? xu : function(t10) {
  var e, r, n;
  return t10 === void 0 ? "Undefined" : t10 === null ? "Null" : typeof (r = (function(o, i) {
    try {
      return o[i];
    } catch {
    }
  })(e = Xot(t10), Yot)) == "string" ? r : Zot ? xu(e) : (n = xu(e)) == "Object" && Sr(e.callee) ? "Arguments" : n;
}, Jot = Fe(Function.toString);
Sr(ta.inspectSource) || (ta.inspectSource = function(t10) {
  return Jot(t10);
});
var $I = ta.inspectSource, HI = function() {
}, Qot = [], VI = zp("Reflect", "construct"), LD = /^\s*(?:class|function)\b/, tit = Fe(LD.exec), eit = !LD.exec(HI), af = function(t10) {
  if (!Sr(t10)) return false;
  try {
    return VI(HI, Qot, t10), true;
  } catch {
    return false;
  }
}, rit = !VI || an((function() {
  var t10;
  return af(af.call) || !af(Object) || !af((function() {
    t10 = true;
  })) || t10;
})) ? function(t10) {
  if (!Sr(t10)) return false;
  switch (Xy(t10)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return false;
  }
  return eit || !!tit(LD, $I(t10));
} : af, nit = cn("species"), RO = Ft.Array, UI = function(t10, e) {
  return new ((function(r) {
    var n;
    return d0(r) && (n = r.constructor, (rit(n) && (n === RO || d0(n.prototype)) || Hn(n) && (n = n[nit]) === null) && (n = void 0)), n === void 0 ? RO : n;
  })(t10))(e === 0 ? 0 : e);
}, oit = cn("species"), WI = cn("isConcatSpreadable"), MO = Ft.TypeError, iit = c0 >= 51 || !an((function() {
  var t10 = [];
  return t10[WI] = false, t10.concat()[0] !== t10;
})), ait = c0 >= 51 || !an((function() {
  var t10 = [];
  return (t10.constructor = {})[oit] = function() {
    return { foo: 1 };
  }, t10.concat(Boolean).foo !== 1;
})), uit = function(t10) {
  if (!Hn(t10)) return false;
  var e = t10[WI];
  return e !== void 0 ? !!e : d0(t10);
};
Ni({ target: "Array", proto: true, forced: !iit || !ait }, { concat: function(t10) {
  var e, r, n, o, i, a = $p(this), u = UI(a, 0), s = 0;
  for (e = -1, n = arguments.length; e < n; e++) if (uit(i = e === -1 ? a : arguments[e])) {
    if (s + (o = Yy(i)) > 9007199254740991) throw MO("Maximum allowed index exceeded");
    for (r = 0; r < o; r++, s++) r in i && UE(u, s, i[r]);
  } else {
    if (s >= 9007199254740991) throw MO("Maximum allowed index exceeded");
    UE(u, s++, i);
  }
  return u.length = s, u;
} });
var Kh, sit = Ft.String, p0 = function(t10) {
  if (Xy(t10) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  return sit(t10);
}, lit = Math.max, cit = Math.min, WE = function(t10, e) {
  var r = ND(t10);
  return r < 0 ? lit(r + e, 0) : cit(r, e);
}, fit = function(t10) {
  return function(e, r, n) {
    var o, i = Po(e), a = Yy(i), u = WE(n, a);
    if (t10 && r != r) {
      for (; a > u; ) if ((o = i[u++]) != o) return true;
    } else for (; a > u; u++) if ((t10 || u in i) && i[u] === r) return t10 || u || 0;
    return !t10 && -1;
  };
}, dit = { indexOf: fit(false) }, Vp = {}, pit = dit.indexOf, zO = Fe([].push), GI = function(t10, e) {
  var r, n = Po(t10), o = 0, i = [];
  for (r in n) !Kt(Vp, r) && Kt(n, r) && zO(i, r);
  for (; e.length > o; ) Kt(n, r = e[o++]) && (~pit(i, r) || zO(i, r));
  return i;
}, h0 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], RD = Object.keys || function(t10) {
  return GI(t10, h0);
}, hit = Vr ? Object.defineProperties : function(t10, e) {
  Ku(t10);
  for (var r, n = Po(e), o = RD(e), i = o.length, a = 0; i > a; ) ss.f(t10, r = o[a++], n[r]);
  return t10;
}, git = zp("document", "documentElement"), $O = us("keys"), Zy = function(t10) {
  return $O[t10] || ($O[t10] = f0(t10));
}, qI = Zy("IE_PROTO"), Rb = function() {
}, KI = function(t10) {
  return "<script>" + t10 + "<\/script>";
}, HO = function(t10) {
  t10.write(KI("")), t10.close();
  var e = t10.parentWindow.Object;
  return t10 = null, e;
}, Vg = function() {
  try {
    Kh = new ActiveXObject("htmlfile");
  } catch {
  }
  var t10, e;
  Vg = typeof document < "u" ? document.domain && Kh ? HO(Kh) : ((e = LI("iframe")).style.display = "none", git.appendChild(e), e.src = "javascript:", (t10 = e.contentWindow.document).open(), t10.write(KI("document.F=Object")), t10.close(), t10.F) : HO(Kh);
  for (var r = h0.length; r--; ) delete Vg.prototype[h0[r]];
  return Vg();
};
Vp[qI] = true;
var g0, id, v0, Yu = Object.create || function(t10, e) {
  var r;
  return t10 !== null ? (Rb.prototype = Ku(t10), r = new Rb(), Rb.prototype = null, r[qI] = t10) : r = Vg(), e === void 0 ? r : hit(r, e);
}, vit = h0.concat("length", "prototype"), YI = { f: Object.getOwnPropertyNames || function(t10) {
  return GI(t10, vit);
} }, yit = Ft.Array, mit = Math.max, VO = YI.f, UO = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], XI = { f: function(t10) {
  return UO && xu(t10) == "Window" ? (function(e) {
    try {
      return VO(e);
    } catch {
      return (function(n, o, i) {
        for (var a = Yy(n), u = WE(void 0, a), s = WE(a, a), l = yit(mit(s - u, 0)), c = 0; u < s; u++, c++) UE(l, c, n[u]);
        return l.length = c, l;
      })(UO);
    }
  })(t10) : VO(Po(t10));
} }, Mb = { f: Object.getOwnPropertySymbols }, bit = Fe([].slice), y0 = function(t10, e, r, n) {
  co(t10, e, r);
}, MD = { f: cn }, wit = ss.f, je = function(t10) {
  var e = vn.Symbol || (vn.Symbol = {});
  Kt(e, t10) || wit(e, t10, { value: MD.f(t10) });
}, Eit = ID ? {}.toString : function() {
  return "[object " + Xy(this) + "]";
}, Dit = ss.f, WO = cn("toStringTag"), m0 = function(t10, e, r, n) {
  if (t10) {
    var o = r ? t10 : t10.prototype;
    Kt(o, WO) || Dit(o, WO, { configurable: true, value: e }), n && !ID && co(o, "toString", Eit);
  }
}, GO = Ft.WeakMap, Cit = Sr(GO) && /native code/.test($I(GO)), GE = Ft.TypeError, xit = Ft.WeakMap;
if (Cit || ta.state) {
  var Ua = ta.state || (ta.state = new xit()), Sit = Fe(Ua.get), qO = Fe(Ua.has), Ait = Fe(Ua.set);
  g0 = function(t10, e) {
    if (qO(Ua, t10)) throw new GE("Object already initialized");
    return e.facade = t10, Ait(Ua, t10, e), e;
  }, id = function(t10) {
    return Sit(Ua, t10) || {};
  }, v0 = function(t10) {
    return qO(Ua, t10);
  };
} else {
  var _s = Zy("state");
  Vp[_s] = true, g0 = function(t10, e) {
    if (Kt(t10, _s)) throw new GE("Object already initialized");
    return e.facade = t10, co(t10, _s, e), e;
  }, id = function(t10) {
    return Kt(t10, _s) ? t10[_s] : {};
  }, v0 = function(t10) {
    return Kt(t10, _s);
  };
}
var lc = { set: g0, get: id, has: v0, enforce: function(t10) {
  return v0(t10) ? id(t10) : g0(t10, {});
}, getterFor: function(t10) {
  return function(e) {
    var r;
    if (!Hn(e) || (r = id(e)).type !== t10) throw GE("Incompatible receiver, " + t10 + " required");
    return r;
  };
} }, KO = Fe([].push), Oi = function(t10) {
  var e = t10 == 1, r = t10 == 2, n = t10 == 3, o = t10 == 4, i = t10 == 6, a = t10 == 7, u = t10 == 5 || i;
  return function(s, l, c, f) {
    for (var d, p, v = $p(s), y = jI(v), g = MI(l, c), m = Yy(y), h = 0, b = f || UI, w = e ? b(s, m) : r || a ? b(s, 0) : void 0; m > h; h++) if ((u || h in y) && (p = g(d = y[h], h, v), t10)) if (e) w[h] = p;
    else if (p) switch (t10) {
      case 3:
        return true;
      case 5:
        return d;
      case 6:
        return h;
      case 2:
        KO(w, d);
    }
    else switch (t10) {
      case 4:
        return false;
      case 7:
        KO(w, d);
    }
    return i ? -1 : n || o ? o : w;
  };
}, Jy = [Oi(0), Oi(1), Oi(2), Oi(3), Oi(4), Oi(5), Oi(6), Oi(7)][0], Lr = Zy("hidden"), YO = cn("toPrimitive"), Oit = lc.set, XO = lc.getterFor("Symbol"), Vn = Object.prototype, Ri = Ft.Symbol, Ui = Ri && Ri.prototype, ZO = Ft.TypeError, zb = Ft.QObject, uf = zp("JSON", "stringify"), ZI = jD.f, Mi = ss.f, JI = XI.f, kit = TD.f, QI = Fe([].push), ai = us("symbols"), Up = us("op-symbols"), $b = us("string-to-symbol-registry"), Hb = us("symbol-to-string-registry"), Bit = us("wks"), Vb = !zb || !zb.prototype || !zb.prototype.findChild, qE = Vr && an((function() {
  return Yu(Mi({}, "a", { get: function() {
    return Mi(this, "a", { value: 7 }).a;
  } })).a != 7;
})) ? function(t10, e, r) {
  var n = ZI(Vn, e);
  n && delete Vn[e], Mi(t10, e, r), n && t10 !== Vn && Mi(Vn, e, n);
} : Mi, Ub = function(t10, e) {
  var r = ai[t10] = Yu(Ui);
  return Oit(r, { type: "Symbol", tag: t10, description: e }), Vr || (r.description = e), r;
}, b0 = function(t10, e, r) {
  t10 === Vn && b0(Up, e, r), Ku(t10);
  var n = sc(e);
  return Ku(r), Kt(ai, n) ? (r.enumerable ? (Kt(t10, Lr) && t10[Lr][n] && (t10[Lr][n] = false), r = Yu(r, { enumerable: qu(0, false) })) : (Kt(t10, Lr) || Mi(t10, Lr, qu(1, {})), t10[Lr][n] = true), qE(t10, n, r)) : Mi(t10, n, r);
}, JO = function(t10, e) {
  Ku(t10);
  var r = Po(e), n = RD(r).concat(KE(r));
  return Jy(n, (function(o) {
    Vr && !Eo(tL, r, o) || b0(t10, o, r[o]);
  })), t10;
}, tL = function(t10) {
  var e = sc(t10), r = Eo(kit, this, e);
  return !(this === Vn && Kt(ai, e) && !Kt(Up, e)) && (!(r || !Kt(this, e) || !Kt(ai, e) || Kt(this, Lr) && this[Lr][e]) || r);
}, QO = function(t10, e) {
  var r = Po(t10), n = sc(e);
  if (r !== Vn || !Kt(ai, n) || Kt(Up, n)) {
    var o = ZI(r, n);
    return !o || !Kt(ai, n) || Kt(r, Lr) && r[Lr][n] || (o.enumerable = true), o;
  }
}, tk = function(t10) {
  var e = JI(Po(t10)), r = [];
  return Jy(e, (function(n) {
    Kt(ai, n) || Kt(Vp, n) || QI(r, n);
  })), r;
}, KE = function(t10) {
  var e = t10 === Vn, r = JI(e ? Up : Po(t10)), n = [];
  return Jy(r, (function(o) {
    !Kt(ai, o) || e && !Kt(Vn, o) || QI(n, ai[o]);
  })), n;
};
if (so || (Ui = (Ri = function() {
  if (NI(Ui, this)) throw ZO("Symbol is not a constructor");
  var t10 = arguments.length && arguments[0] !== void 0 ? p0(arguments[0]) : void 0, e = f0(t10), r = function(n) {
    this === Vn && Eo(r, Up, n), Kt(this, Lr) && Kt(this[Lr], e) && (this[Lr][e] = false), qE(this, e, qu(1, n));
  };
  return Vr && Vb && qE(Vn, e, { configurable: true, set: r }), Ub(e, t10);
}).prototype, y0(Ui, "toString", (function() {
  return XO(this).tag;
})), y0(Ri, "withoutSetter", (function(t10) {
  return Ub(f0(t10), t10);
})), TD.f = tL, ss.f = b0, jD.f = QO, YI.f = XI.f = tk, Mb.f = KE, MD.f = function(t10) {
  return Ub(cn(t10), t10);
}, Vr && Mi(Ui, "description", { configurable: true, get: function() {
  return XO(this).description;
} })), Ni({ global: true, wrap: true, forced: !so, sham: !so }, { Symbol: Ri }), Jy(RD(Bit), (function(t10) {
  je(t10);
})), Ni({ target: "Symbol", stat: true, forced: !so }, { for: function(t10) {
  var e = p0(t10);
  if (Kt($b, e)) return $b[e];
  var r = Ri(e);
  return $b[e] = r, Hb[r] = e, r;
}, keyFor: function(t10) {
  if (!fl(t10)) throw ZO(t10 + " is not a symbol");
  if (Kt(Hb, t10)) return Hb[t10];
}, useSetter: function() {
  Vb = true;
}, useSimple: function() {
  Vb = false;
} }), Ni({ target: "Object", stat: true, forced: !so, sham: !Vr }, { create: function(t10, e) {
  return e === void 0 ? Yu(t10) : JO(Yu(t10), e);
}, defineProperty: b0, defineProperties: JO, getOwnPropertyDescriptor: QO }), Ni({ target: "Object", stat: true, forced: !so }, { getOwnPropertyNames: tk, getOwnPropertySymbols: KE }), Ni({ target: "Object", stat: true, forced: an((function() {
  Mb.f(1);
})) }, { getOwnPropertySymbols: function(t10) {
  return Mb.f($p(t10));
} }), uf) {
  var Fit = !so || an((function() {
    var t10 = Ri();
    return uf([t10]) != "[null]" || uf({ a: t10 }) != "{}" || uf(Object(t10)) != "{}";
  }));
  Ni({ target: "JSON", stat: true, forced: Fit }, { stringify: function(t10, e, r) {
    var n = bit(arguments), o = e;
    if ((Hn(e) || t10 !== void 0) && !fl(t10)) return d0(e) || (e = function(i, a) {
      if (Sr(o) && (a = Eo(o, this, i, a)), !fl(a)) return a;
    }), n[1] = e, _I(uf, null, n);
  } });
}
if (!Ui[YO]) {
  var Tit = Ui.valueOf;
  y0(Ui, YO, (function(t10) {
    return Eo(Tit, this);
  }));
}
m0(Ri, "Symbol"), Vp[Lr] = true, je("asyncIterator"), je("hasInstance"), je("isConcatSpreadable"), je("iterator"), je("match"), je("matchAll"), je("replace"), je("search"), je("species"), je("split"), je("toPrimitive"), je("toStringTag"), je("unscopables"), m0(Ft.JSON, "JSON", true);
var Wi, ek, rk, _it = vn.Symbol, Au = {}, eL = Function.prototype, Pit = Vr && Object.getOwnPropertyDescriptor, nk = Kt(eL, "name"), jit = { PROPER: nk && (function() {
}).name === "something", CONFIGURABLE: nk && (!Vr || Vr && Pit(eL, "name").configurable) }, Nit = !an((function() {
  function t10() {
  }
  return t10.prototype.constructor = null, Object.getPrototypeOf(new t10()) !== t10.prototype;
})), ok = Zy("IE_PROTO"), YE = Ft.Object, Iit = YE.prototype, XE = Nit ? YE.getPrototypeOf : function(t10) {
  var e = $p(t10);
  if (Kt(e, ok)) return e[ok];
  var r = e.constructor;
  return Sr(r) && e instanceof r ? r.prototype : e instanceof YE ? Iit : null;
}, ZE = cn("iterator"), rL = false;
[].keys && ("next" in (rk = [].keys()) ? (ek = XE(XE(rk))) !== Object.prototype && (Wi = ek) : rL = true);
var Lit = Wi == null || an((function() {
  var t10 = {};
  return Wi[ZE].call(t10) !== t10;
}));
Wi = Lit ? {} : Yu(Wi), Sr(Wi[ZE]) || y0(Wi, ZE, (function() {
  return this;
}));
var nL = { IteratorPrototype: Wi, BUGGY_SAFARI_ITERATORS: rL }, Rit = nL.IteratorPrototype, Mit = function() {
  return this;
};
Ft.String, Ft.TypeError, Object.setPrototypeOf || "__proto__" in {} && (function() {
  var t10 = {};
  try {
    Fe(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set)(t10, []), t10 instanceof Array;
  } catch {
  }
})();
var zit = jit.PROPER, Wb = nL.BUGGY_SAFARI_ITERATORS, $it = cn("iterator"), Hit = function() {
  return this;
}, oL = function(t10, e, r, n, o, i, a) {
  (function(g, m, h, b) {
    var w = m + " Iterator";
    g.prototype = Yu(Rit, { next: qu(1, h) }), m0(g, w, false, true), Au[w] = Mit;
  })(r, e, n);
  var u, s, l = function(g) {
    if (g === o && v) return v;
    if (!Wb && g in d) return d[g];
    switch (g) {
      case "keys":
      case "values":
      case "entries":
        return function() {
          return new r(this, g);
        };
    }
    return function() {
      return new r(this);
    };
  }, c = e + " Iterator", f = false, d = t10.prototype, p = d[$it] || d["@@iterator"] || o && d[o], v = !Wb && p || l(o), y = e == "Array" && d.entries || p;
  return y && (u = XE(y.call(new t10()))) !== Object.prototype && u.next && (m0(u, c, true, true), Au[c] = Hit), zit && o == "values" && p && p.name !== "values" && (f = true, v = function() {
    return Eo(p, this);
  }), o && (s = { values: l("values"), keys: l("keys"), entries: l("entries") }, a || Ni({ target: e, proto: true, forced: Wb || f }, s)), Au[e] = v, s;
}, Vit = lc.set, Uit = lc.getterFor("Array Iterator");
oL(Array, "Array", (function(t10, e) {
  Vit(this, { type: "Array Iterator", target: Po(t10), index: 0, kind: e });
}), (function() {
  var t10 = Uit(this), e = t10.target, r = t10.kind, n = t10.index++;
  return !e || n >= e.length ? (t10.target = void 0, { value: void 0, done: true }) : r == "keys" ? { value: n, done: false } : r == "values" ? { value: e[n], done: false } : { value: [n, e[n]], done: false };
}), "values"), Au.Arguments = Au.Array;
var ik = cn("toStringTag");
for (var Gb in { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }) {
  var ak = Ft[Gb], qb = ak && ak.prototype;
  qb && Xy(qb) !== ik && co(qb, ik, Gb), Au[Gb] = Au.Array;
}
var Wit = _it;
je("asyncDispose"), je("dispose"), je("matcher"), je("metadata"), je("observable"), je("patternMatch"), je("replaceAll");
var Yh = Wit, Git = Fe("".charAt), uk = Fe("".charCodeAt), qit = Fe("".slice), Kit = function(t10) {
  return function(e, r) {
    var n, o, i = p0(_D(e)), a = ND(r), u = i.length;
    return a < 0 || a >= u ? t10 ? "" : void 0 : (n = uk(i, a)) < 55296 || n > 56319 || a + 1 === u || (o = uk(i, a + 1)) < 56320 || o > 57343 ? t10 ? Git(i, a) : n : t10 ? qit(i, a, a + 2) : o - 56320 + (n - 55296 << 10) + 65536;
  };
}, Yit = Kit(true), Xit = lc.set, Zit = lc.getterFor("String Iterator");
oL(String, "String", (function(t10) {
  Xit(this, { type: "String Iterator", string: p0(t10), index: 0 });
}), (function() {
  var t10, e = Zit(this), r = e.string, n = e.index;
  return n >= r.length ? { value: void 0, done: true } : (t10 = Yit(r, n), e.index += t10.length, { value: t10, done: false });
}));
var Jit = MD.f("iterator"), Qit = $y((function(t10) {
  function e(r) {
    return typeof Yh == "function" && typeof Jit == "symbol" ? (t10.exports = e = function(n) {
      return typeof n;
    }, t10.exports.default = t10.exports, t10.exports.__esModule = true) : (t10.exports = e = function(n) {
      return n && typeof Yh == "function" && n.constructor === Yh && n !== Yh.prototype ? "symbol" : typeof n;
    }, t10.exports.default = t10.exports, t10.exports.__esModule = true), e(r);
  }
  t10.exports = e, t10.exports.default = t10.exports, t10.exports.__esModule = true;
})), iL = (function(t10) {
  return t10 && t10.__esModule && Object.prototype.hasOwnProperty.call(t10, "default") ? t10.default : t10;
})(Qit), tat = Uy.EXISTS, eat = oc.f, aL = Function.prototype, rat = yt(aL.toString), uL = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, nat = yt(uL.exec);
Xn && !tat && eat(aL, "name", { configurable: true, get: function() {
  try {
    return nat(uL, rat(this))[1];
  } catch {
    return "";
  }
} });
var sL = (function() {
  function t10() {
    this.tag = "select", this.width = 80;
  }
  return t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.getValue = function(e) {
    var r = this.mark, n = E.marks(e);
    return n && n[r] ? n[r] : "";
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || (this.mark, !!Yt(E.nodes(e, { match: function(r) {
      return A.getNodeType(r) === "pre" || !!E.isVoid(e, r);
    }, universal: true }), 1)[0]);
  }, t10.prototype.exec = function(e, r) {
    var n = this.mark;
    r ? e.addMark(n, r) : e.removeMark(n);
  }, t10;
})(), oat = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = Q("fontSize.title"), r.iconSvg = Brt, r.mark = "fontSize", r;
  }
  return be(e, t10), e.prototype.getOptions = function(r) {
    var n = [], o = r.getMenuConfig(this.mark).fontSizeList, i = o === void 0 ? [] : o;
    n.push({ text: Q("fontSize.default"), value: "" }), i.forEach((function(u) {
      if (typeof u == "string") n.push({ text: u, value: u });
      else if (iL(u) === "object") {
        var s = u.name, l = u.value;
        n.push({ text: s, value: l });
      }
    }));
    var a = this.getValue(r);
    return n.forEach((function(u) {
      u.value === a ? u.selected = true : delete u.selected;
    })), n;
  }, e;
})(sL), iat = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = Q("fontFamily.title"), r.iconSvg = Frt, r.mark = "fontFamily", r.selectPanelWidth = 150, r;
  }
  return be(e, t10), e.prototype.getOptions = function(r) {
    var n = [], o = r.getMenuConfig(this.mark).fontFamilyList, i = o === void 0 ? [] : o;
    n.push({ text: Q("fontFamily.default"), value: "" }), i.forEach((function(u) {
      if (typeof u == "string") n.push({ text: u, value: u, styleForRenderMenuList: { "font-family": u } });
      else if (iL(u) === "object") {
        var s = u.name, l = u.value;
        n.push({ text: s, value: l, styleForRenderMenuList: { "font-family": l } });
      }
    }));
    var a = this.getValue(r);
    return n.forEach((function(u) {
      u.value === a ? u.selected = true : delete u.selected;
    })), n;
  }, e;
})(sL), aat = { renderStyle: function(t10, e) {
  var r = t10, n = r.fontSize, o = r.fontFamily, i = e;
  return n && Gu(i, { fontSize: n }), o && Gu(i, { fontFamily: o }), i;
}, styleToHtml: function(t10, e) {
  if (!ot.isText(t10)) return e;
  var r, n = t10, o = n.fontSize, i = n.fontFamily;
  return o || i ? ((AD(e) || uc(r = B(e)) !== "span") && (r = B("<span>" + e + "</span>")), o && r.css("font-size", o), i && r.css("font-family", i), ac(r)) : e;
}, preParseHtml: [dot], parseStyleHtml: function(t10, e, r) {
  var n = B(t10);
  if (!ot.isText(e)) return e;
  var o = e, i = r.getMenuConfig("fontSize").fontSizeList, a = i === void 0 ? [] : i, u = qn(n, "font-size"), s = a.find((function(p) {
    return p.value && p.value === u;
  })) || a.includes(u);
  u && s && (o.fontSize = u);
  var l = r.getMenuConfig("fontFamily").fontFamilyList, c = l === void 0 ? [] : l, f = qn(n, "font-family").replace(/"/g, ""), d = c.find((function(p) {
    return p.value && p.value === f;
  })) || c.includes(f);
  return f && d && (o.fontFamily = f), o;
}, menus: [{ key: "fontSize", factory: function() {
  return new oat();
}, config: { fontSizeList: ["12px", { name: "13px", value: "13px" }, "14px", "15px", "16px", "19px", { name: "22px", value: "22px" }, "24px", "29px", "32px", "40px", "48px"] } }, { key: "fontFamily", factory: function() {
  return new iat();
}, config: { fontFamilyList: ["\u9ED1\u4F53", { name: "\u4EFF\u5B8B", value: "\u4EFF\u5B8B" }, "\u6977\u4F53", "\u6807\u6977\u4F53", "\u534E\u6587\u4EFF\u5B8B", "\u534E\u6587\u6977\u4F53", { name: "\u5B8B\u4F53", value: "\u5B8B\u4F53" }, "\u5FAE\u8F6F\u96C5\u9ED1", "Arial", "Tahoma", "Verdana", "Times New Roman", "Courier New"] } }] }, uat = { selector: "p,h1,h2,h3,h4,h5", preParseHtml: function(t10) {
  var e = B(t10), r = qn(e, "padding-left");
  return /\dem/.test(r) && e.css("text-indent", "2em"), /\dpx/.test(r) && parseInt(r, 10) % 32 == 0 && e.css("text-indent", "2em"), e[0];
} }, lL = (function() {
  function t10() {
    this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    var r = Yt(E.nodes(e, { match: function(o) {
      return !!o.indent;
    }, universal: true }), 1), n = r[0];
    return n == null ? "" : Yt(n, 1)[0].indent || "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.getMatchNode = function(e) {
    var r = Yt(E.nodes(e, { match: function(n) {
      var o = A.getNodeType(n);
      return o === "paragraph" || !!o.startsWith("header");
    }, universal: true, mode: "highest" }), 1)[0];
    return r == null ? null : r[0];
  }, t10;
})(), sat = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = Q("indent.decrease"), r.iconSvg = Trt, r;
  }
  return be(e, t10), e.prototype.isDisabled = function(r) {
    var n = this.getMatchNode(r);
    return n == null || !n.indent;
  }, e.prototype.exec = function(r, n) {
    N.setNodes(r, { indent: null }, { match: function(o) {
      return ct.isElement(o);
    } });
  }, e;
})(lL), lat = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = Q("indent.increase"), r.iconSvg = _rt, r;
  }
  return be(e, t10), e.prototype.isDisabled = function(r) {
    var n = this.getMatchNode(r);
    return n == null || !!n.indent;
  }, e.prototype.exec = function(r, n) {
    N.setNodes(r, { indent: "2em" }, { match: function(o) {
      return ct.isElement(o);
    }, mode: "highest" });
  }, e;
})(lL), cat = { renderStyle: function(t10, e) {
  if (!ct.isElement(t10)) return e;
  var r = t10.indent, n = e;
  return r && Gu(n, { textIndent: r }), n;
}, styleToHtml: function(t10, e) {
  if (!ct.isElement(t10)) return e;
  var r = t10.indent;
  if (!r) return e;
  var n = B(e);
  return n.css("text-indent", r), ac(n);
}, preParseHtml: [uat], parseStyleHtml: function(t10, e, r) {
  var n = B(t10);
  if (!ct.isElement(e)) return e;
  var o = e, i = qn(n, "text-indent"), a = parseInt(i, 10);
  return i && a > 0 && (o.indent = i), o;
}, menus: [{ key: "indent", factory: function() {
  return new lat();
} }, { key: "delIndent", factory: function() {
  return new sat();
} }] }, Qy = (function() {
  function t10() {
    this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.getMatchNode = function(e) {
    var r = Yt(E.nodes(e, { match: function(n) {
      var o = A.getNodeType(n);
      return o === "paragraph" || o === "blockquote" || !!o.startsWith("header");
    }, universal: true, mode: "highest" }), 1)[0];
    return r == null ? null : r[0];
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || !!A.getSelectedElems(e).some((function(r) {
      if (E.isVoid(e, r) && E.isBlock(e, r)) return true;
      var n = r.type;
      return !!["pre", "code"].includes(n) || void 0;
    }));
  }, t10;
})(), fat = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = Q("justify.left"), r.iconSvg = Prt, r;
  }
  return be(e, t10), e.prototype.exec = function(r, n) {
    N.setNodes(r, { textAlign: "left" }, { match: function(o) {
      return ct.isElement(o) && !r.isInline(o);
    } });
  }, e;
})(Qy), dat = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = Q("justify.right"), r.iconSvg = jrt, r;
  }
  return be(e, t10), e.prototype.exec = function(r, n) {
    N.setNodes(r, { textAlign: "right" }, { match: function(o) {
      return ct.isElement(o) && !r.isInline(o);
    } });
  }, e;
})(Qy), pat = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = Q("justify.center"), r.iconSvg = Nrt, r;
  }
  return be(e, t10), e.prototype.exec = function(r, n) {
    N.setNodes(r, { textAlign: "center" }, { match: function(o) {
      return ct.isElement(o) && !r.isInline(o);
    } });
  }, e;
})(Qy), hat = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.title = Q("justify.justify"), r.iconSvg = Irt, r;
  }
  return be(e, t10), e.prototype.exec = function(r, n) {
    N.setNodes(r, { textAlign: "justify" }, { match: function(o) {
      return ct.isElement(o) && !r.isInline(o);
    } });
  }, e;
})(Qy), gat = { renderStyle: function(t10, e) {
  if (!ct.isElement(t10)) return e;
  var r = t10.textAlign, n = e;
  return r && Gu(n, { textAlign: r }), n;
}, styleToHtml: function(t10, e) {
  if (!ct.isElement(t10)) return e;
  var r = t10.textAlign;
  if (!r) return e;
  var n = B(e);
  return n.css("text-align", r), ac(n);
}, parseStyleHtml: function(t10, e, r) {
  var n = B(t10);
  if (!ct.isElement(e)) return e;
  var o = e, i = qn(n, "text-align");
  return i && (o.textAlign = i), o;
}, menus: [{ key: "justifyLeft", factory: function() {
  return new fat();
} }, { key: "justifyRight", factory: function() {
  return new dat();
} }, { key: "justifyCenter", factory: function() {
  return new pat();
} }, { key: "justifyJustify", factory: function() {
  return new hat();
} }] }, vat = (function() {
  function t10() {
    this.title = Q("lineHeight.title"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>', this.tag = "select", this.width = 80;
  }
  return t10.prototype.getOptions = function(e) {
    var r = [], n = e.getMenuConfig("lineHeight").lineHeightList, o = n === void 0 ? [] : n;
    r.push({ text: Q("lineHeight.default"), value: "" }), o.forEach((function(a) {
      r.push({ text: a, value: a });
    }));
    var i = this.getValue(e);
    return r.forEach((function(a) {
      a.value === i ? a.selected = true : delete a.selected;
    })), r;
  }, t10.prototype.getMatchNode = function(e) {
    var r = Yt(E.nodes(e, { match: function(n) {
      var o = A.getNodeType(n);
      return !!o.startsWith("header") || !!["paragraph", "blockquote", "list-item"].includes(o);
    }, universal: true, mode: "highest" }), 1)[0];
    return r == null ? null : r[0];
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.getValue = function(e) {
    var r = this.getMatchNode(e);
    return r == null ? "" : ct.isElement(r) && r.lineHeight || "";
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || this.getMatchNode(e) == null;
  }, t10.prototype.exec = function(e, r) {
    N.setNodes(e, { lineHeight: r.toString() }, { mode: "highest" });
  }, t10;
})(), yat = { renderStyle: function(t10, e) {
  if (!ct.isElement(t10)) return e;
  var r = t10.lineHeight, n = e;
  return r && Gu(n, { lineHeight: r }), n;
}, styleToHtml: function(t10, e) {
  if (!ct.isElement(t10)) return e;
  var r = t10.lineHeight;
  if (!r) return e;
  var n = B(e);
  return n.css("line-height", r), ac(n);
}, parseStyleHtml: function(t10, e, r) {
  var n = B(t10);
  if (!ct.isElement(e)) return e;
  var o = e, i = r.getMenuConfig("lineHeight").lineHeightList, a = i === void 0 ? [] : i, u = qn(n, "line-height");
  return u && a.includes(u) && (o.lineHeight = u), o;
}, menus: [{ key: "lineHeight", factory: function() {
  return new vat();
}, config: { lineHeightList: ["1", "1.15", "1.5", "2", "2.5", "3"] } }] }, mat = (function() {
  function t10() {
    this.title = Q("undo.redo"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null;
  }, t10.prototype.exec = function(e, r) {
    typeof e.redo == "function" && e.redo();
  }, t10;
})(), bat = (function() {
  function t10() {
    this.title = Q("undo.undo"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null;
  }, t10.prototype.exec = function(e, r) {
    typeof e.undo == "function" && e.undo();
  }, t10;
})(), wat = { menus: [{ key: "redo", factory: function() {
  return new mat();
} }, { key: "undo", factory: function() {
  return new bat();
} }] }, Eat = { type: "divider", renderElem: function(t10, e, r) {
  return Tl("div", { props: { contentEditable: false, className: "w-e-textarea-divider" }, dataset: { selected: A.isNodeSelected(r, t10) ? "true" : "" }, style: {}, on: { mousedown: function(n) {
    return n.preventDefault();
  } } }, [Tl("hr")]);
} }, Dat = (function() {
  function t10() {
    this.title = Q("divider.title"), this.iconSvg = '<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || !!A.getSelectedElems(e).some((function(r) {
      if (e.isVoid(r)) return true;
      var n = A.getNodeType(r);
      return n === "table" || n === "pre" || void 0;
    }));
  }, t10.prototype.exec = function(e, r) {
    N.insertNodes(e, { type: "divider", children: [{ text: "" }] }, { mode: "highest" });
  }, t10;
})(), Cat = { renderElems: [Eat], elemsToHtml: [{ type: "divider", elemToHtml: function(t10, e) {
  return "<hr/>";
} }], parseElemsHtml: [{ selector: "hr:not([data-w-e-type])", parseElemHtml: function(t10, e, r) {
  return { type: "divider", children: [{ text: "" }] };
} }], menus: [{ key: "divider", factory: function() {
  return new Dat();
} }], editorPlugin: function(t10) {
  var e = t10.isVoid, r = t10.normalizeNode, n = t10;
  return n.isVoid = function(o) {
    return o.type === "divider" || e(o);
  }, n.normalizeNode = function(o) {
    var i = Yt(o, 2), a = i[0], u = i[1];
    if (A.getNodeType(a) !== "divider") return r([a, u]);
    A.isLastNode(n, a) && N.insertNodes(n, A.genEmptyParagraph(), { at: [u[0] + 1] });
  }, n;
} }, xat = Gy.map;
Je({ target: "Array", proto: true, forced: !ED("map") }, { map: function(t10) {
  return xat(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} });
var Sat = yt([].join), Aat = Hy != Object, Oat = pI("join", ",");
Je({ target: "Array", proto: true, forced: Aat || !Oat }, { join: function(t10) {
  return Sat(nc(this), t10 === void 0 ? "," : t10);
} });
var kat = (function() {
  function t10() {
    this.title = Q("codeBlock.title"), this.iconSvg = '<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getSelectCodeElem = function(e) {
    var r = A.getSelectedNodeByType(e, "code");
    if (r == null) return null;
    var n = A.getParentNode(e, r);
    return n == null || A.getNodeType(n) !== "pre" ? null : r;
  }, t10.prototype.getValue = function(e) {
    var r = this.getSelectCodeElem(e);
    return r == null ? "" : r.language || "";
  }, t10.prototype.isActive = function(e) {
    return !!this.getSelectCodeElem(e);
  }, t10.prototype.isDisabled = function(e) {
    if (e.selection == null) return true;
    var r = A.getSelectedElems(e);
    return !!r.some((function(n) {
      return e.isVoid(n);
    })) || !r.some((function(n) {
      var o = A.getNodeType(n);
      if (o === "pre" || o === "paragraph") return true;
    }));
  }, t10.prototype.exec = function(e, r) {
    this.isActive(e) ? this.changeToPlainText(e) : this.changeToCodeBlock(e, r.toString());
  }, t10.prototype.changeToPlainText = function(e) {
    var r = this.getSelectCodeElem(e);
    if (r != null) {
      var n = J.string(r);
      N.removeNodes(e, { mode: "highest" });
      var o = n.split(`
`).map((function(i) {
        return { type: "paragraph", children: [{ text: i }] };
      }));
      N.insertNodes(e, o, { mode: "highest" });
    }
  }, t10.prototype.changeToCodeBlock = function(e, r) {
    var n, o, i = [], a = E.nodes(e, { match: function(f) {
      return e.children.includes(f);
    }, universal: true });
    try {
      for (var u = dI(a), s = u.next(); !s.done; s = u.next()) {
        var l = Yt(s.value, 1)[0];
        l && i.push(J.string(l));
      }
    } catch (f) {
      n = { error: f };
    } finally {
      try {
        s && !s.done && (o = u.return) && o.call(u);
      } finally {
        if (n) throw n.error;
      }
    }
    N.removeNodes(e, { mode: "highest" });
    var c = { type: "pre", children: [{ type: "code", language: r, children: [{ text: i.join(`
`) }] }] };
    N.insertNodes(e, c, { mode: "highest" });
  }, t10;
})(), Bat = { key: "codeBlock", factory: function() {
  return new kat();
} };
Je({ target: "String", proto: true, forced: Wf("anchor") }, { anchor: function(t10) {
  return Uf(this, "a", "name", t10);
} }), xD("match", (function(t10, e, r) {
  return [function(n) {
    var o = Bn(this), i = n == null ? void 0 : Vy(n, t10);
    return i ? Ne(i, n, o) : new RegExp(n)[t10](Ee(o));
  }, function(n) {
    var o = en(this), i = Ee(n), a = r(e, o, i);
    if (a.done) return a.value;
    if (!o.global) return Ud(o, i);
    var u = o.unicode;
    o.lastIndex = 0;
    for (var s, l = [], c = 0; (s = Ud(o, i)) !== null; ) {
      var f = Ee(s[0]);
      l[c] = f, f === "" && (o.lastIndex = SD(i, Ip(o.lastIndex), u)), c++;
    }
    return c === 0 ? null : l;
  }];
}));
var Fat = { type: "pre", renderElem: function(t10, e, r) {
  return bt("pre", null, e);
} }, Tat = { type: "code", renderElem: function(t10, e, r) {
  return bt("code", null, e);
} }, _at = { selector: "pre:not([data-w-e-type])", parseElemHtml: function(t10, e, r) {
  var n = B(t10);
  return (e = e.filter((function(o) {
    return A.getNodeType(o) === "code";
  }))).length === 0 && (e = [{ type: "code", language: "", children: [{ text: n[0].textContent || "" }] }]), { type: "pre", children: e.filter((function(o) {
    return A.getNodeType(o) === "code";
  })) };
} }, Pat = { menus: [Bat], editorPlugin: function(t10) {
  var e = t10.insertBreak, r = t10.normalizeNode, n = t10.insertData;
  t10.insertNode;
  var o = t10;
  return o.insertBreak = function() {
    var i = A.getSelectedNodeByType(o, "code");
    if (i != null) {
      var a = (function(l, c) {
        var f = c.selection;
        if (f == null) return "";
        var d = J.string(l), p = f.anchor.offset, v = d.slice(0, p).split(`
`), y = v.length;
        return y === 0 ? "" : v[y - 1];
      })(i, o);
      if (a) {
        var u = a.match(/^\s+/);
        if (u != null && u[0] != null) {
          var s = u[0];
          return void o.insertText(`
` + s);
        }
      }
      o.insertText(`
`);
    } else e();
  }, o.normalizeNode = function(i) {
    var a = Yt(i, 2), u = a[0], s = a[1], l = A.getNodeType(u);
    return l === "code" && s.length <= 1 && N.setNodes(o, { type: "paragraph" }, { at: s }), l === "pre" && (A.isLastNode(o, u) && N.insertNodes(o, A.genEmptyParagraph(), { at: [s[0] + 1] }), A.getNodeType(u.children[0]) !== "code" && (N.unwrapNodes(o), N.setNodes(o, { type: "paragraph" }, { mode: "highest" }))), r([u, s]);
  }, o.insertData = function(i) {
    if (A.getSelectedNodeByType(o, "code") != null) {
      var a = i.getData("text/plain");
      E.insertText(o, a);
    } else n(i);
  }, o;
}, renderElems: [Fat, Tat], elemsToHtml: [{ type: "code", elemToHtml: function(t10, e) {
  return "<code>" + e + "</code>";
} }, { type: "pre", elemToHtml: function(t10, e) {
  return "<pre>" + e + "</pre>";
} }], preParseHtml: [{ selector: "pre>code", preParseHtml: function(t10) {
  var e = B(t10);
  if (uc(e) !== "code") return t10;
  var r = e.find("xmp");
  if (r.length === 0) return t10;
  var n = r.text();
  return r.remove(), e.text(n), e[0];
} }], parseElemsHtml: [{ selector: "pre:not([data-w-e-type])>code", parseElemHtml: function(t10, e, r) {
  return { type: "code", language: "", children: [{ text: B(t10)[0].textContent || "" }] };
} }, _at] }, jat = (function() {
  function t10() {
    this.title = Q("fullScreen.title"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>', this.tag = "button", this.alwaysEnable = true;
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return e.isFullScreen;
  }, t10.prototype.isDisabled = function(e) {
    return false;
  }, t10.prototype.exec = function(e, r) {
    e.isFullScreen ? e.unFullScreen() : e.fullScreen();
  }, t10;
})(), Nat = { menus: [{ key: "fullScreen", factory: function() {
  return new jat();
} }] }, Iat = (function() {
  function t10() {
    this.title = Q("common.enter"), this.iconSvg = '<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    var r = e.selection;
    return r == null || !!L.isExpanded(r);
  }, t10.prototype.exec = function(e, r) {
    var n = e.selection;
    if (n != null) {
      var o = [n.anchor.path[0]];
      N.insertNodes(e, { type: "paragraph", children: [{ text: "" }] }, { at: o }), e.select(E.start(e, o));
    }
  }, t10;
})(), Lat = [qrt, Snt, aat, cat, gat, yat, Ynt, Cat, cot, Int, Pat, sot, wnt, vrt, Qnt, wat, Nat, { menus: [{ key: "enter", factory: function() {
  return new Iat();
} }] }];
Wr("en", { listModule: { unOrderedList: "Unordered list", orderedList: "Ordered list" } }), Wr("zh-CN", { listModule: { unOrderedList: "\u65E0\u5E8F\u5217\u8868", orderedList: "\u6709\u5E8F\u5217\u8868" } });
var sk = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function zD(t10) {
  var e = { exports: {} };
  return t10(e, e.exports), e.exports;
}
var ki, Ug, Xh = function(t10) {
  return t10 && t10.Math == Math && t10;
}, wt = Xh(typeof globalThis == "object" && globalThis) || Xh(typeof window == "object" && window) || Xh(typeof self == "object" && self) || Xh(typeof sk == "object" && sk) || /* @__PURE__ */ (function() {
  return this;
})() || Function("return this")(), cL = Function.prototype, JE = cL.bind, QE = cL.call, Rat = JE && JE.bind(QE), jt = JE ? function(t10) {
  return t10 && Rat(QE, t10);
} : function(t10) {
  return t10 && function() {
    return QE.apply(t10, arguments);
  };
}, Ae = function(t10) {
  try {
    return !!t10();
  } catch {
    return true;
  }
}, Mat = jt({}.toString), zat = jt("".slice), ei = function(t10) {
  return zat(Mat(t10), 8, -1);
}, Kb = wt.Object, $at = jt("".split), fL = Ae((function() {
  return !Kb("z").propertyIsEnumerable(0);
})) ? function(t10) {
  return ei(t10) == "String" ? $at(t10, "") : Kb(t10);
} : Kb, Hat = wt.TypeError, tm = function(t10) {
  if (t10 == null) throw Hat("Can't call method on " + t10);
  return t10;
}, cc = function(t10) {
  return fL(tm(t10));
}, Vat = Object.defineProperty, $D = function(t10, e) {
  try {
    Vat(wt, t10, { value: e, configurable: true, writable: true });
  } catch {
    wt[t10] = e;
  }
  return e;
}, ea = wt["__core-js_shared__"] || $D("__core-js_shared__", {}), HD = zD((function(t10) {
  (t10.exports = function(e, r) {
    return ea[e] || (ea[e] = r !== void 0 ? r : {});
  })("versions", []).push({ version: "3.19.3", mode: "global", copyright: "\xA9 2021 Denis Pushkarev (zloirock.ru)" });
})), Uat = wt.Object, Wp = function(t10) {
  return Uat(tm(t10));
}, Wat = jt({}.hasOwnProperty), Qe = Object.hasOwn || function(t10, e) {
  return Wat(Wp(t10), e);
}, Gat = 0, qat = Math.random(), Kat = jt(1 .toString), VD = function(t10) {
  return "Symbol(" + (t10 === void 0 ? "" : t10) + ")_" + Kat(++Gat + qat, 36);
}, Te = function(t10) {
  return typeof t10 == "function";
}, Yat = function(t10) {
  return Te(t10) ? t10 : void 0;
}, Gp = function(t10, e) {
  return arguments.length < 2 ? Yat(wt[t10]) : wt[t10] && wt[t10][e];
}, Yb = Gp("navigator", "userAgent") || "", lk = wt.process, ck = wt.Deno, fk = lk && lk.versions || ck && ck.version, dk = fk && fk.v8;
dk && (Ug = (ki = dk.split("."))[0] > 0 && ki[0] < 4 ? 1 : +(ki[0] + ki[1])), !Ug && Yb && (!(ki = Yb.match(/Edge\/(\d+)/)) || ki[1] >= 74) && (ki = Yb.match(/Chrome\/(\d+)/)) && (Ug = +ki[1]);
var Zh, t6 = Ug, e6 = !!Object.getOwnPropertySymbols && !Ae((function() {
  var t10 = /* @__PURE__ */ Symbol();
  return !String(t10) || !(Object(t10) instanceof Symbol) || !Symbol.sham && t6 && t6 < 41;
})), UD = e6 && !Symbol.sham && typeof Symbol.iterator == "symbol", sf = HD("wks"), Ou = wt.Symbol, pk = Ou && Ou.for, Xat = UD ? Ou : Ou && Ou.withoutSetter || VD, pr = function(t10) {
  if (!Qe(sf, t10) || !e6 && typeof sf[t10] != "string") {
    var e = "Symbol." + t10;
    e6 && Qe(Ou, t10) ? sf[t10] = Ou[t10] : sf[t10] = UD && pk ? pk(e) : Xat(e);
  }
  return sf[t10];
}, Be = function(t10) {
  return typeof t10 == "object" ? t10 !== null : Te(t10);
}, Zat = wt.String, Jat = wt.TypeError, Gr = function(t10) {
  if (Be(t10)) return t10;
  throw Jat(Zat(t10) + " is not an object");
}, ma = !Ae((function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
})), r6 = wt.document, Qat = Be(r6) && Be(r6.createElement), WD = function(t10) {
  return Qat ? r6.createElement(t10) : {};
}, dL = !ma && !Ae((function() {
  return Object.defineProperty(WD("div"), "a", { get: function() {
    return 7;
  } }).a != 7;
})), lf = Function.prototype.call, ir = lf.bind ? lf.bind(lf) : function() {
  return lf.apply(lf, arguments);
}, w0 = jt({}.isPrototypeOf), tut = wt.Object, Xb = UD ? function(t10) {
  return typeof t10 == "symbol";
} : function(t10) {
  var e = Gp("Symbol");
  return Te(e) && w0(e.prototype, tut(t10));
}, eut = wt.String, n6 = function(t10) {
  try {
    return eut(t10);
  } catch {
    return "Object";
  }
}, rut = wt.TypeError, GD = function(t10) {
  if (Te(t10)) return t10;
  throw rut(n6(t10) + " is not a function");
}, Wd = function(t10, e) {
  var r = t10[e];
  return r == null ? void 0 : GD(r);
}, nut = wt.TypeError, out = wt.TypeError, iut = pr("toPrimitive"), qD = function(t10) {
  var e = (function(r, n) {
    if (!Be(r) || Xb(r)) return r;
    var o, i = Wd(r, iut);
    if (i) {
      if (o = ir(i, r, n), !Be(o) || Xb(o)) return o;
      throw out("Can't convert object to primitive value");
    }
    return (function(a, u) {
      var s, l;
      if (Te(s = a.toString) && !Be(l = ir(s, a)) || Te(s = a.valueOf) && !Be(l = ir(s, a))) return l;
      throw nut("Can't convert object to primitive value");
    })(r);
  })(t10, "string");
  return Xb(e) ? e : e + "";
}, aut = wt.TypeError, hk = Object.defineProperty, ls = { f: ma ? hk : function(t10, e, r) {
  if (Gr(t10), e = qD(e), Gr(r), dL) try {
    return hk(t10, e, r);
  } catch {
  }
  if ("get" in r || "set" in r) throw aut("Accessors not supported");
  return "value" in r && (t10[e] = r.value), t10;
} }, uut = Math.ceil, sut = Math.floor, qp = function(t10) {
  var e = +t10;
  return e != e || e === 0 ? 0 : (e > 0 ? sut : uut)(e);
}, lut = Math.max, cut = Math.min, o6 = function(t10, e) {
  var r = qp(t10);
  return r < 0 ? lut(r + e, 0) : cut(r, e);
}, fut = Math.min, pL = function(t10) {
  return t10 > 0 ? fut(qp(t10), 9007199254740991) : 0;
}, fc = function(t10) {
  return pL(t10.length);
}, gk = function(t10) {
  return function(e, r, n) {
    var o, i = cc(e), a = fc(i), u = o6(n, a);
    if (t10 && r != r) {
      for (; a > u; ) if ((o = i[u++]) != o) return true;
    } else for (; a > u; u++) if ((t10 || u in i) && i[u] === r) return t10 || u || 0;
    return !t10 && -1;
  };
}, hL = { includes: gk(true), indexOf: gk(false) }, em = {}, dut = hL.indexOf, vk = jt([].push), gL = function(t10, e) {
  var r, n = cc(t10), o = 0, i = [];
  for (r in n) !Qe(em, r) && Qe(n, r) && vk(i, r);
  for (; e.length > o; ) Qe(n, r = e[o++]) && (~dut(i, r) || vk(i, r));
  return i;
}, E0 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], put = Object.keys || function(t10) {
  return gL(t10, E0);
}, hut = ma ? Object.defineProperties : function(t10, e) {
  Gr(t10);
  for (var r, n = cc(e), o = put(e), i = o.length, a = 0; i > a; ) ls.f(t10, r = o[a++], n[r]);
  return t10;
}, gut = Gp("document", "documentElement"), yk = HD("keys"), KD = function(t10) {
  return yk[t10] || (yk[t10] = VD(t10));
}, vL = KD("IE_PROTO"), Zb = function() {
}, yL = function(t10) {
  return "<script>" + t10 + "<\/script>";
}, mk = function(t10) {
  t10.write(yL("")), t10.close();
  var e = t10.parentWindow.Object;
  return t10 = null, e;
}, Wg = function() {
  try {
    Zh = new ActiveXObject("htmlfile");
  } catch {
  }
  var t10, e;
  Wg = typeof document < "u" ? document.domain && Zh ? mk(Zh) : ((e = WD("iframe")).style.display = "none", gut.appendChild(e), e.src = "javascript:", (t10 = e.contentWindow.document).open(), t10.write(yL("document.F=Object")), t10.close(), t10.F) : mk(Zh);
  for (var r = E0.length; r--; ) delete Wg.prototype[E0[r]];
  return Wg();
};
em[vL] = true;
var YD = Object.create || function(t10, e) {
  var r;
  return t10 !== null ? (Zb.prototype = Gr(t10), r = new Zb(), Zb.prototype = null, r[vL] = t10) : r = Wg(), e === void 0 ? r : hut(r, e);
}, i6 = pr("unscopables"), a6 = Array.prototype;
a6[i6] == null && ls.f(a6, i6, { configurable: true, value: YD(null) });
var ad = function(t10) {
  a6[i6][t10] = true;
}, Ml = {}, vut = jt(Function.toString);
Te(ea.inspectSource) || (ea.inspectSource = function(t10) {
  return vut(t10);
});
var D0, ud, C0, XD = ea.inspectSource, bk = wt.WeakMap, mL = Te(bk) && /native code/.test(XD(bk)), rm = function(t10, e) {
  return { enumerable: !(1 & t10), configurable: !(2 & t10), writable: !(4 & t10), value: e };
}, ra = ma ? function(t10, e, r) {
  return ls.f(t10, e, rm(1, r));
} : function(t10, e, r) {
  return t10[e] = r, t10;
}, u6 = wt.TypeError, yut = wt.WeakMap;
if (mL || ea.state) {
  var Wa = ea.state || (ea.state = new yut()), mut = jt(Wa.get), wk = jt(Wa.has), but = jt(Wa.set);
  D0 = function(t10, e) {
    if (wk(Wa, t10)) throw new u6("Object already initialized");
    return e.facade = t10, but(Wa, t10, e), e;
  }, ud = function(t10) {
    return mut(Wa, t10) || {};
  }, C0 = function(t10) {
    return wk(Wa, t10);
  };
} else {
  var Ps = KD("state");
  em[Ps] = true, D0 = function(t10, e) {
    if (Qe(t10, Ps)) throw new u6("Object already initialized");
    return e.facade = t10, ra(t10, Ps, e), e;
  }, ud = function(t10) {
    return Qe(t10, Ps) ? t10[Ps] : {};
  }, C0 = function(t10) {
    return Qe(t10, Ps);
  };
}
var ku, Ek, Dk, Oo = { set: D0, get: ud, has: C0, enforce: function(t10) {
  return C0(t10) ? ud(t10) : D0(t10, {});
}, getterFor: function(t10) {
  return function(e) {
    var r;
    if (!Be(e) || (r = ud(e)).type !== t10) throw u6("Incompatible receiver, " + t10 + " required");
    return r;
  };
} }, Ck = {}.propertyIsEnumerable, xk = Object.getOwnPropertyDescriptor, wut = { f: xk && !Ck.call({ 1: 2 }, 1) ? function(t10) {
  var e = xk(this, t10);
  return !!e && e.enumerable;
} : Ck }, Sk = Object.getOwnPropertyDescriptor, bL = { f: ma ? Sk : function(t10, e) {
  if (t10 = cc(t10), e = qD(e), dL) try {
    return Sk(t10, e);
  } catch {
  }
  if (Qe(t10, e)) return rm(!ir(wut.f, t10, e), t10[e]);
} }, wL = Function.prototype, Eut = ma && Object.getOwnPropertyDescriptor, Ak = Qe(wL, "name"), ZD = { PROPER: Ak && (function() {
}).name === "something", CONFIGURABLE: Ak && (!ma || ma && Eut(wL, "name").configurable) }, ui = zD((function(t10) {
  var e = ZD.CONFIGURABLE, r = Oo.get, n = Oo.enforce, o = String(String).split("String");
  (t10.exports = function(i, a, u, s) {
    var l, c = !!s && !!s.unsafe, f = !!s && !!s.enumerable, d = !!s && !!s.noTargetGet, p = s && s.name !== void 0 ? s.name : a;
    Te(u) && (String(p).slice(0, 7) === "Symbol(" && (p = "[" + String(p).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!Qe(u, "name") || e && u.name !== p) && ra(u, "name", p), (l = n(u)).source || (l.source = o.join(typeof p == "string" ? p : ""))), i !== wt ? (c ? !d && i[a] && (f = true) : delete i[a], f ? i[a] = u : ra(i, a, u)) : f ? i[a] = u : $D(a, u);
  })(Function.prototype, "toString", (function() {
    return Te(this) && r(this).source || XD(this);
  }));
})), Dut = E0.concat("length", "prototype"), x0 = { f: Object.getOwnPropertyNames || function(t10) {
  return gL(t10, Dut);
} }, Cut = { f: Object.getOwnPropertySymbols }, xut = jt([].concat), Sut = Gp("Reflect", "ownKeys") || function(t10) {
  var e = x0.f(Gr(t10)), r = Cut.f;
  return r ? xut(e, r(t10)) : e;
}, Aut = function(t10, e) {
  for (var r = Sut(e), n = ls.f, o = bL.f, i = 0; i < r.length; i++) {
    var a = r[i];
    Qe(t10, a) || n(t10, a, o(e, a));
  }
}, Out = /#|\.prototype\./, Kp = function(t10, e) {
  var r = But[kut(t10)];
  return r == Tut || r != Fut && (Te(e) ? Ae(e) : !!e);
}, kut = Kp.normalize = function(t10) {
  return String(t10).replace(Out, ".").toLowerCase();
}, But = Kp.data = {}, Fut = Kp.NATIVE = "N", Tut = Kp.POLYFILL = "P", s6 = Kp, _ut = bL.f, ba = function(t10, e) {
  var r, n, o, i, a, u = t10.target, s = t10.global, l = t10.stat;
  if (r = s ? wt : l ? wt[u] || $D(u, {}) : (wt[u] || {}).prototype) for (n in e) {
    if (i = e[n], o = t10.noTargetGet ? (a = _ut(r, n)) && a.value : r[n], !s6(s ? n : u + (l ? "." : "#") + n, t10.forced) && o !== void 0) {
      if (typeof i == typeof o) continue;
      Aut(i, o);
    }
    (t10.sham || o && o.sham) && ra(i, "sham", true), ui(r, n, i, t10);
  }
}, Put = !Ae((function() {
  function t10() {
  }
  return t10.prototype.constructor = null, Object.getPrototypeOf(new t10()) !== t10.prototype;
})), Ok = KD("IE_PROTO"), l6 = wt.Object, jut = l6.prototype, S0 = Put ? l6.getPrototypeOf : function(t10) {
  var e = Wp(t10);
  if (Qe(e, Ok)) return e[Ok];
  var r = e.constructor;
  return Te(r) && e instanceof r ? r.prototype : e instanceof l6 ? jut : null;
}, c6 = pr("iterator"), EL = false;
[].keys && ("next" in (Dk = [].keys()) ? (Ek = S0(S0(Dk))) !== Object.prototype && (ku = Ek) : EL = true);
var Nut = ku == null || Ae((function() {
  var t10 = {};
  return ku[c6].call(t10) !== t10;
}));
Nut && (ku = {}), Te(ku[c6]) || ui(ku, c6, (function() {
  return this;
}));
var JD = { IteratorPrototype: ku, BUGGY_SAFARI_ITERATORS: EL }, Iut = ls.f, kk = pr("toStringTag"), f6 = function(t10, e, r) {
  t10 && !Qe(t10 = r ? t10 : t10.prototype, kk) && Iut(t10, kk, { configurable: true, value: e });
}, Lut = JD.IteratorPrototype, Rut = function() {
  return this;
}, Mut = wt.String, zut = wt.TypeError, A0 = Object.setPrototypeOf || ("__proto__" in {} ? (function() {
  var t10, e = false, r = {};
  try {
    (t10 = jt(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(r, []), e = r instanceof Array;
  } catch {
  }
  return function(n, o) {
    return Gr(n), (function(i) {
      if (typeof i == "object" || Te(i)) return i;
      throw zut("Can't set " + Mut(i) + " as a prototype");
    })(o), e ? t10(n, o) : n.__proto__ = o, n;
  };
})() : void 0), $ut = ZD.PROPER, Hut = ZD.CONFIGURABLE, Bk = JD.IteratorPrototype, Jb = JD.BUGGY_SAFARI_ITERATORS, cf = pr("iterator"), Vut = function() {
  return this;
}, DL = function(t10, e, r, n, o, i, a) {
  (function(g, m, h, b) {
    var w = m + " Iterator";
    g.prototype = YD(Lut, { next: rm(1, h) }), f6(g, w, false), Ml[w] = Rut;
  })(r, e, n);
  var u, s, l = function(g) {
    if (g === o && v) return v;
    if (!Jb && g in d) return d[g];
    switch (g) {
      case "keys":
      case "values":
      case "entries":
        return function() {
          return new r(this, g);
        };
    }
    return function() {
      return new r(this);
    };
  }, c = e + " Iterator", f = false, d = t10.prototype, p = d[cf] || d["@@iterator"] || o && d[o], v = !Jb && p || l(o), y = e == "Array" && d.entries || p;
  return y && (u = S0(y.call(new t10()))) !== Object.prototype && u.next && (S0(u) !== Bk && (A0 ? A0(u, Bk) : Te(u[cf]) || ui(u, cf, Vut)), f6(u, c, true)), $ut && o == "values" && p && p.name !== "values" && (Hut ? ra(d, "name", "values") : (f = true, v = function() {
    return ir(p, this);
  })), o && (s = { values: l("values"), keys: l("keys"), entries: l("entries") }, a || ba({ target: e, proto: true, forced: Jb || f }, s)), d[cf] !== v && ui(d, cf, v, { name: o }), Ml[e] = v, s;
}, Uut = Oo.set, Wut = Oo.getterFor("Array Iterator"), Gf = DL(Array, "Array", (function(t10, e) {
  Uut(this, { type: "Array Iterator", target: cc(t10), index: 0, kind: e });
}), (function() {
  var t10 = Wut(this), e = t10.target, r = t10.kind, n = t10.index++;
  return !e || n >= e.length ? (t10.target = void 0, { value: void 0, done: true }) : r == "keys" ? { value: n, done: false } : r == "values" ? { value: e[n], done: false } : { value: [n, e[n]], done: false };
}), "values");
Ml.Arguments = Ml.Array, ad("keys"), ad("values"), ad("entries");
var CL = {};
CL[pr("toStringTag")] = "z";
var QD = String(CL) === "[object z]", Gut = pr("toStringTag"), qut = wt.Object, Kut = ei(/* @__PURE__ */ (function() {
  return arguments;
})()) == "Arguments", nm = QD ? ei : function(t10) {
  var e, r, n;
  return t10 === void 0 ? "Undefined" : t10 === null ? "Null" : typeof (r = (function(o, i) {
    try {
      return o[i];
    } catch {
    }
  })(e = qut(t10), Gut)) == "string" ? r : Kut ? ei(e) : (n = ei(e)) == "Object" && Te(e.callee) ? "Arguments" : n;
}, Yut = QD ? {}.toString : function() {
  return "[object " + nm(this) + "]";
};
QD || ui(Object.prototype, "toString", Yut, { unsafe: true });
var Xut = wt.String, Go = function(t10) {
  if (nm(t10) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  return Xut(t10);
}, Zut = jt("".charAt), Fk = jt("".charCodeAt), Jut = jt("".slice), Qut = function(t10) {
  return function(e, r) {
    var n, o, i = Go(tm(e)), a = qp(r), u = i.length;
    return a < 0 || a >= u ? t10 ? "" : void 0 : (n = Fk(i, a)) < 55296 || n > 56319 || a + 1 === u || (o = Fk(i, a + 1)) < 56320 || o > 57343 ? t10 ? Zut(i, a) : n : t10 ? Jut(i, a, a + 2) : o - 56320 + (n - 55296 << 10) + 65536;
  };
}, xL = { charAt: Qut(true) }, tst = xL.charAt, est = Oo.set, rst = Oo.getterFor("String Iterator");
DL(String, "String", (function(t10) {
  est(this, { type: "String Iterator", string: Go(t10), index: 0 });
}), (function() {
  var t10, e = rst(this), r = e.string, n = e.index;
  return n >= r.length ? { value: void 0, done: true } : (t10 = tst(r, n), e.index += t10.length, { value: t10, done: false });
}));
var d6 = function(t10, e, r) {
  for (var n in e) ui(t10, n, e[n], r);
  return t10;
}, nst = wt.Array, ost = Math.max, Tk = x0.f, _k = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], ist = { f: function(t10) {
  return _k && ei(t10) == "Window" ? (function(e) {
    try {
      return Tk(e);
    } catch {
      return (function(n, o, i) {
        for (var a, u, s, l, c = fc(n), f = o6(void 0, c), d = o6(c, c), p = nst(ost(d - f, 0)), v = 0; f < d; f++, v++) a = p, u = v, s = n[f], (l = qD(u)) in a ? ls.f(a, l, rm(0, s)) : a[l] = s;
        return p.length = v, p;
      })(_k);
    }
  })(t10) : Tk(cc(t10));
} }, Pk = Ae((function() {
  if (typeof ArrayBuffer == "function") {
    var t10 = new ArrayBuffer(8);
    Object.isExtensible(t10) && Object.defineProperty(t10, "a", { value: 8 });
  }
})), Jh = Object.isExtensible, lu = Ae((function() {
  Jh(1);
})) || Pk ? function(t10) {
  return !!Be(t10) && (!Pk || ei(t10) != "ArrayBuffer") && (!Jh || Jh(t10));
} : Jh, ast = !Ae((function() {
  return Object.isExtensible(Object.preventExtensions({}));
})), t8 = zD((function(t10) {
  var e = ls.f, r = false, n = VD("meta"), o = 0, i = function(u) {
    e(u, n, { value: { objectID: "O" + o++, weakData: {} } });
  }, a = t10.exports = { enable: function() {
    a.enable = function() {
    }, r = true;
    var u = x0.f, s = jt([].splice), l = {};
    l[n] = 1, u(l).length && (x0.f = function(c) {
      for (var f = u(c), d = 0, p = f.length; d < p; d++) if (f[d] === n) {
        s(f, d, 1);
        break;
      }
      return f;
    }, ba({ target: "Object", stat: true, forced: true }, { getOwnPropertyNames: ist.f }));
  }, fastKey: function(u, s) {
    if (!Be(u)) return typeof u == "symbol" ? u : (typeof u == "string" ? "S" : "P") + u;
    if (!Qe(u, n)) {
      if (!lu(u)) return "F";
      if (!s) return "E";
      i(u);
    }
    return u[n].objectID;
  }, getWeakData: function(u, s) {
    if (!Qe(u, n)) {
      if (!lu(u)) return true;
      if (!s) return false;
      i(u);
    }
    return u[n].weakData;
  }, onFreeze: function(u) {
    return ast && r && lu(u) && !Qe(u, n) && i(u), u;
  } };
  em[n] = true;
})), jk = jt(jt.bind), e8 = function(t10, e) {
  return GD(t10), e === void 0 ? t10 : jk ? jk(t10, e) : function() {
    return t10.apply(e, arguments);
  };
}, ust = pr("iterator"), sst = Array.prototype, lst = pr("iterator"), Nk = function(t10) {
  if (t10 != null) return Wd(t10, lst) || Wd(t10, "@@iterator") || Ml[nm(t10)];
}, cst = wt.TypeError, Ik = function(t10, e, r) {
  var n, o;
  Gr(t10);
  try {
    if (!(n = Wd(t10, "return"))) {
      if (e === "throw") throw r;
      return r;
    }
    n = ir(n, t10);
  } catch (i) {
    o = true, n = i;
  }
  if (e === "throw") throw r;
  if (o) throw n;
  return Gr(n), r;
}, fst = wt.TypeError, Gg = function(t10, e) {
  this.stopped = t10, this.result = e;
}, Lk = Gg.prototype, SL = function(t10, e, r) {
  var n, o, i, a, u, s, l, c, f = r && r.that, d = !(!r || !r.AS_ENTRIES), p = !(!r || !r.IS_ITERATOR), v = !(!r || !r.INTERRUPTED), y = e8(e, f), g = function(h) {
    return n && Ik(n, "normal", h), new Gg(true, h);
  }, m = function(h) {
    return d ? (Gr(h), v ? y(h[0], h[1], g) : y(h[0], h[1])) : v ? y(h, g) : y(h);
  };
  if (p) n = t10;
  else {
    if (!(o = Nk(t10))) throw fst(n6(t10) + " is not iterable");
    if ((c = o) !== void 0 && (Ml.Array === c || sst[ust] === c)) {
      for (i = 0, a = fc(t10); a > i; i++) if ((u = m(t10[i])) && w0(Lk, u)) return u;
      return new Gg(false);
    }
    n = (function(h, b) {
      var w = arguments.length < 2 ? Nk(h) : b;
      if (GD(w)) return Gr(ir(w, h));
      throw cst(n6(h) + " is not iterable");
    })(t10, o);
  }
  for (s = n.next; !(l = ir(s, n)).done; ) {
    try {
      u = m(l.value);
    } catch (h) {
      Ik(n, "throw", h);
    }
    if (typeof u == "object" && u && w0(Lk, u)) return u;
  }
  return new Gg(false);
}, dst = wt.TypeError, AL = function(t10, e) {
  if (w0(e, t10)) return t10;
  throw dst("Incorrect invocation");
}, OL = pr("iterator"), kL = false;
try {
  var pst = 0, Rk = { next: function() {
    return { done: !!pst++ };
  }, return: function() {
    kL = true;
  } };
  Rk[OL] = function() {
    return this;
  }, Array.from(Rk, (function() {
    throw 2;
  }));
} catch {
}
var p6 = Array.isArray || function(t10) {
  return ei(t10) == "Array";
}, BL = function() {
}, hst = [], FL = Gp("Reflect", "construct"), r8 = /^\s*(?:class|function)\b/, gst = jt(r8.exec), vst = !r8.exec(BL), ff = function(t10) {
  if (!Te(t10)) return false;
  try {
    return FL(BL, hst, t10), true;
  } catch {
    return false;
  }
}, yst = !FL || Ae((function() {
  var t10;
  return ff(ff.call) || !ff(Object) || !ff((function() {
    t10 = true;
  })) || t10;
})) ? function(t10) {
  if (!Te(t10)) return false;
  switch (nm(t10)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return false;
  }
  return vst || !!gst(r8, XD(t10));
} : ff, mst = pr("species"), Mk = wt.Array, TL = function(t10, e) {
  return new ((function(r) {
    var n;
    return p6(r) && (n = r.constructor, (yst(n) && (n === Mk || p6(n.prototype)) || Be(n) && (n = n[mst]) === null) && (n = void 0)), n === void 0 ? Mk : n;
  })(t10))(e === 0 ? 0 : e);
}, zk = jt([].push), Qb = function(t10) {
  var e = t10 == 1, r = t10 == 2, n = t10 == 3, o = t10 == 4, i = t10 == 6, a = t10 == 7, u = t10 == 5 || i;
  return function(s, l, c, f) {
    for (var d, p, v = Wp(s), y = fL(v), g = e8(l, c), m = fc(y), h = 0, b = f || TL, w = e ? b(s, m) : r || a ? b(s, 0) : void 0; m > h; h++) if ((u || h in y) && (p = g(d = y[h], h, v), t10)) if (e) w[h] = p;
    else if (p) switch (t10) {
      case 3:
        return true;
      case 5:
        return d;
      case 6:
        return h;
      case 2:
        zk(w, d);
    }
    else switch (t10) {
      case 4:
        return false;
      case 7:
        zk(w, d);
    }
    return i ? -1 : n || o ? o : w;
  };
}, n8 = { filter: Qb(2), find: Qb(5), findIndex: Qb(6) }, Qh = t8.getWeakData, bst = Oo.set, wst = Oo.getterFor, Est = n8.find, Dst = n8.findIndex, Cst = jt([].splice), xst = 0, tg = function(t10) {
  return t10.frozen || (t10.frozen = new _L());
}, _L = function() {
  this.entries = [];
}, t22 = function(t10, e) {
  return Est(t10.entries, (function(r) {
    return r[0] === e;
  }));
};
_L.prototype = { get: function(t10) {
  var e = t22(this, t10);
  if (e) return e[1];
}, has: function(t10) {
  return !!t22(this, t10);
}, set: function(t10, e) {
  var r = t22(this, t10);
  r ? r[1] = e : this.entries.push([t10, e]);
}, delete: function(t10) {
  var e = Dst(this.entries, (function(r) {
    return r[0] === t10;
  }));
  return ~e && Cst(this.entries, e, 1), !!~e;
} };
var df, PL = { getConstructor: function(t10, e, r, n) {
  var o = t10((function(s, l) {
    AL(s, i), bst(s, { type: e, id: xst++, frozen: void 0 }), l != null && SL(l, s[n], { that: s, AS_ENTRIES: r });
  })), i = o.prototype, a = wst(e), u = function(s, l, c) {
    var f = a(s), d = Qh(Gr(l), true);
    return d === true ? tg(f).set(l, c) : d[f.id] = c, s;
  };
  return d6(i, { delete: function(s) {
    var l = a(this);
    if (!Be(s)) return false;
    var c = Qh(s);
    return c === true ? tg(l).delete(s) : c && Qe(c, l.id) && delete c[l.id];
  }, has: function(s) {
    var l = a(this);
    if (!Be(s)) return false;
    var c = Qh(s);
    return c === true ? tg(l).has(s) : c && Qe(c, l.id);
  } }), d6(i, r ? { get: function(s) {
    var l = a(this);
    if (Be(s)) {
      var c = Qh(s);
      return c === true ? tg(l).get(s) : c ? c[l.id] : void 0;
    }
  }, set: function(s, l) {
    return u(this, s, l);
  } } : { add: function(s) {
    return u(this, s, true);
  } }), o;
} }, eg = Oo.enforce, Sst = !wt.ActiveXObject && "ActiveXObject" in wt, jL = function(t10) {
  return function() {
    return t10(this, arguments.length ? arguments[0] : void 0);
  };
}, Ast = (function(t10, e, r) {
  var n = t10.indexOf("Map") !== -1, o = t10.indexOf("Weak") !== -1, i = n ? "set" : "add", a = wt[t10], u = a && a.prototype, s = a, l = {}, c = function(g) {
    var m = jt(u[g]);
    ui(u, g, g == "add" ? function(h) {
      return m(this, h === 0 ? 0 : h), this;
    } : g == "delete" ? function(h) {
      return !(o && !Be(h)) && m(this, h === 0 ? 0 : h);
    } : g == "get" ? function(h) {
      return o && !Be(h) ? void 0 : m(this, h === 0 ? 0 : h);
    } : g == "has" ? function(h) {
      return !(o && !Be(h)) && m(this, h === 0 ? 0 : h);
    } : function(h, b) {
      return m(this, h === 0 ? 0 : h, b), this;
    });
  };
  if (s6(t10, !Te(a) || !(o || u.forEach && !Ae((function() {
    new a().entries().next();
  }))))) s = r.getConstructor(e, t10, n, i), t8.enable();
  else if (s6(t10, true)) {
    var f = new s(), d = f[i](o ? {} : -0, 1) != f, p = Ae((function() {
      f.has(1);
    })), v = (function(g, m) {
      if (!kL) return false;
      var h = false;
      try {
        var b = {};
        b[OL] = function() {
          return { next: function() {
            return { done: h = true };
          } };
        }, (function(w) {
          new a(w);
        })(b);
      } catch {
      }
      return h;
    })(), y = !o && Ae((function() {
      for (var g = new a(), m = 5; m--; ) g[i](m, m);
      return !g.has(-0);
    }));
    v || ((s = e((function(g, m) {
      AL(g, u);
      var h = (function(b, w, D) {
        var x, C;
        return A0 && Te(x = w.constructor) && x !== D && Be(C = x.prototype) && C !== D.prototype && A0(b, C), b;
      })(new a(), g, s);
      return m != null && SL(m, h[i], { that: h, AS_ENTRIES: n }), h;
    }))).prototype = u, u.constructor = s), (p || y) && (c("delete"), c("has"), n && c("get")), (y || d) && c(i), o && u.clear && delete u.clear;
  }
  return l[t10] = s, ba({ global: true, forced: s != a }, l), f6(s, t10), o || r.setStrong(s, t10, n), s;
})("WeakMap", jL, PL);
if (mL && Sst) {
  df = PL.getConstructor(jL, "WeakMap", true), t8.enable();
  var pf = Ast.prototype, $k = jt(pf.delete), rg = jt(pf.has), Hk = jt(pf.get), Vk = jt(pf.set);
  d6(pf, { delete: function(t10) {
    if (Be(t10) && !lu(t10)) {
      var e = eg(this);
      return e.frozen || (e.frozen = new df()), $k(this, t10) || e.frozen.delete(t10);
    }
    return $k(this, t10);
  }, has: function(t10) {
    if (Be(t10) && !lu(t10)) {
      var e = eg(this);
      return e.frozen || (e.frozen = new df()), rg(this, t10) || e.frozen.has(t10);
    }
    return rg(this, t10);
  }, get: function(t10) {
    if (Be(t10) && !lu(t10)) {
      var e = eg(this);
      return e.frozen || (e.frozen = new df()), rg(this, t10) ? Hk(this, t10) : e.frozen.get(t10);
    }
    return Hk(this, t10);
  }, set: function(t10, e) {
    if (Be(t10) && !lu(t10)) {
      var r = eg(this);
      r.frozen || (r.frozen = new df()), rg(this, t10) ? Vk(this, t10, e) : r.frozen.set(t10, e);
    } else Vk(this, t10, e);
    return this;
  } });
}
var NL = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }, e2 = WD("span").classList, Uk = e2 && e2.constructor && e2.constructor.prototype, Ost = Uk === Object.prototype ? void 0 : Uk, r2 = pr("iterator"), Wk = pr("toStringTag"), n2 = Gf.values, IL = function(t10, e) {
  if (t10) {
    if (t10[r2] !== n2) try {
      ra(t10, r2, n2);
    } catch {
      t10[r2] = n2;
    }
    if (t10[Wk] || ra(t10, Wk, e), NL[e]) {
      for (var r in Gf) if (t10[r] !== Gf[r]) try {
        ra(t10, r, Gf[r]);
      } catch {
        t10[r] = Gf[r];
      }
    }
  }
};
for (var o2 in NL) IL(wt[o2] && wt[o2].prototype, o2);
IL(Ost, "DOMTokenList");
var h6 = /* @__PURE__ */ new WeakMap(), kst = { type: "list-item", renderElem: function(t10, e, r) {
  h6.set(t10, r);
  var n = t10, o = n.level, i = o === void 0 ? 0 : o, a = n.ordered, u = { margin: "5px 0 5px " + 20 * i + "px" }, s = "";
  if (a !== void 0 && a) {
    var l = (function(f, d) {
      var p = d, v = p.type, y = p.level, g = y === void 0 ? 0 : y, m = p.ordered, h = m !== void 0 && m;
      if (!h) return -1;
      var b = 1, w = d, D = A.findPath(f, w);
      if (D[0] === 0) return 1;
      for (; D[0] > 0; ) {
        var x = j.previous(D), C = E.node(f, x);
        if (C == null) break;
        var O = C[0], T = O.level, R = T === void 0 ? 0 : T, H = O.type, M = O.ordered;
        if (H !== v || R < g) break;
        if (R === g) {
          if (M !== h) break;
          b++;
        }
        w = O, D = x;
      }
      return b;
    })(r, t10);
    s = l + ".";
  } else s = (function(f) {
    f === void 0 && (f = 0);
    var d = "";
    switch (f) {
      case 0:
        d = "\u2022";
        break;
      case 1:
        d = "\u25E6";
        break;
      default:
        d = "\u25AA";
    }
    return d;
  })(i);
  var c = (function(f) {
    var d, p = f.children || [], v = p.length;
    if (v === 0) return "";
    for (var y = 0; y < v && !d; y++) {
      var g = p[y];
      ot.isText(g) && (d = g);
    }
    return d == null ? "" : d.color || "";
  })(t10);
  return bt("div", { style: u }, bt("span", { contentEditable: false, style: { marginRight: "0.5em", color: c }, "data-w-e-reserve": true }, s), bt("span", null, e));
} }, g6 = function(t10, e) {
  return g6 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
    r.__proto__ = n;
  } || function(r, n) {
    for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
  }, g6(t10, e);
};
function LL(t10, e) {
  if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
  function r() {
    this.constructor = t10;
  }
  g6(t10, e), t10.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
}
function Gk(t10) {
  var e = typeof Symbol == "function" && Symbol.iterator, r = e && t10[e], n = 0;
  if (r) return r.call(t10);
  if (t10 && typeof t10.length == "number") return { next: function() {
    return t10 && n >= t10.length && (t10 = void 0), { value: t10 && t10[n++], done: !t10 };
  } };
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function sd(t10, e) {
  var r = typeof Symbol == "function" && t10[Symbol.iterator];
  if (!r) return t10;
  var n, o, i = r.call(t10), a = [];
  try {
    for (; (e === void 0 || e-- > 0) && !(n = i.next()).done; ) a.push(n.value);
  } catch (u) {
    o = { error: u };
  } finally {
    try {
      n && !n.done && (r = i.return) && r.call(i);
    } finally {
      if (o) throw o.error;
    }
  }
  return a;
}
function qk(t10) {
  return E.nodes(t10, { at: t10.selection || void 0, match: function(e) {
    return A.findPath(t10, e).length === 1;
  } });
}
var Bst = hL.includes;
ba({ target: "Array", proto: true }, { includes: function(t10) {
  return Bst(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} }), ad("includes");
var Kk, i2, Fst = function() {
  var t10 = Gr(this), e = "";
  return t10.global && (e += "g"), t10.ignoreCase && (e += "i"), t10.multiline && (e += "m"), t10.dotAll && (e += "s"), t10.unicode && (e += "u"), t10.sticky && (e += "y"), e;
}, o8 = wt.RegExp, RL = Ae((function() {
  var t10 = o8("a", "y");
  return t10.lastIndex = 2, t10.exec("abcd") != null;
}));
RL || Ae((function() {
  return !o8("a", "y").sticky;
}));
var Tst = { BROKEN_CARET: RL || Ae((function() {
  var t10 = o8("^r", "gy");
  return t10.lastIndex = 2, t10.exec("str") != null;
})) }, _st = wt.RegExp, Pst = Ae((function() {
  var t10 = _st(".", "s");
  return !(t10.dotAll && t10.exec(`
`) && t10.flags === "s");
})), jst = wt.RegExp, Nst = Ae((function() {
  var t10 = jst("(?<a>b)", "g");
  return t10.exec("b").groups.a !== "b" || "b".replace(t10, "$<a>c") !== "bc";
})), Ist = Oo.get, Lst = HD("native-string-replace", String.prototype.replace), O0 = RegExp.prototype.exec, v6 = O0, Rst = jt("".charAt), Mst = jt("".indexOf), zst = jt("".replace), a2 = jt("".slice), u2 = (i2 = /b*/g, ir(O0, Kk = /a/, "a"), ir(O0, i2, "a"), Kk.lastIndex !== 0 || i2.lastIndex !== 0), Yk = Tst.BROKEN_CARET, s2 = /()??/.exec("")[1] !== void 0;
(u2 || s2 || Yk || Pst || Nst) && (v6 = function(t10) {
  var e, r, n, o, i, a, u, s = this, l = Ist(s), c = Go(t10), f = l.raw;
  if (f) return f.lastIndex = s.lastIndex, e = ir(v6, f, c), s.lastIndex = f.lastIndex, e;
  var d = l.groups, p = Yk && s.sticky, v = ir(Fst, s), y = s.source, g = 0, m = c;
  if (p && (v = zst(v, "y", ""), Mst(v, "g") === -1 && (v += "g"), m = a2(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && Rst(c, s.lastIndex - 1) !== `
`) && (y = "(?: " + y + ")", m = " " + m, g++), r = new RegExp("^(?:" + y + ")", v)), s2 && (r = new RegExp("^" + y + "$(?!\\s)", v)), u2 && (n = s.lastIndex), o = ir(O0, p ? r : s, m), p ? o ? (o.input = a2(o.input, g), o[0] = a2(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : u2 && o && (s.lastIndex = s.global ? o.index + o[0].length : n), s2 && o && o.length > 1 && ir(Lst, o[0], r, (function() {
    for (i = 1; i < arguments.length - 2; i++) arguments[i] === void 0 && (o[i] = void 0);
  })), o && d) for (o.groups = a = YD(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
  return o;
});
var k0 = v6;
ba({ target: "RegExp", proto: true, forced: /./.exec !== k0 }, { exec: k0 });
var ML = (function() {
  function t10() {
    this.type = "list-item", this.tag = "button";
  }
  return t10.prototype.getListNode = function(e) {
    var r = this.type;
    return A.getSelectedNodeByType(e, r);
  }, t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    var r = this.getListNode(e);
    if (r == null) return false;
    var n = r.ordered;
    return (n !== void 0 && n) === this.ordered;
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || !!A.getSelectedElems(e).some((function(r) {
      if (E.isVoid(e, r) && E.isBlock(e, r)) return true;
      var n = r.type;
      return !!["pre", "code", "table"].includes(n) || void 0;
    }));
  }, t10.prototype.exec = function(e, r) {
    this.isActive(e) ? N.setNodes(e, { type: "paragraph", ordered: void 0, level: void 0 }) : N.setNodes(e, { type: "list-item", ordered: this.ordered, indent: void 0 });
  }, t10;
})(), $st = '<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>', Hst = '<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>', Vst = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.ordered = false, r.title = Q("listModule.unOrderedList"), r.iconSvg = $st, r;
  }
  return LL(e, t10), e;
})(ML), Ust = (function(t10) {
  function e() {
    var r = t10 !== null && t10.apply(this, arguments) || this;
    return r.ordered = true, r.title = Q("listModule.orderedList"), r.iconSvg = Hst, r;
  }
  return LL(e, t10), e;
})(ML), Wst = { key: "bulletedList", factory: function() {
  return new Vst();
} }, Gst = { key: "numberedList", factory: function() {
  return new Ust();
} }, Xk = [], qst = { type: "list-item", elemToHtml: function(t10, e) {
  var r = "", n = "", o = t10.ordered, i = o !== void 0 && o ? "ol" : "ul", a = (function(l) {
    var c = h6.get(l);
    if (c == null) return 0;
    var f = l, d = f.type, p = f.ordered, v = p !== void 0 && p, y = f.level, g = y === void 0 ? 0 : y, m = A.findPath(c, l);
    if (m[0] === 0) return g + 1;
    var h = j.previous(m), b = E.node(c, h);
    if (!b) return 0;
    var w = sd(b, 1)[0];
    if (A.getNodeType(w) !== d) return g + 1;
    var D = w, x = D.ordered, C = x !== void 0 && x, O = D.level, T = O === void 0 ? 0 : O;
    return T < g ? g - T : T > g ? 0 : T === g ? C === v ? 0 : 1 : 0;
  })(t10);
  if (a > 0) for (var u = 0; u < a; u++) r += "<" + i + ">", Xk.push(i);
  var s = (function(l) {
    var c = h6.get(l);
    if (c == null) return 0;
    var f = l, d = f.type, p = f.ordered, v = p !== void 0 && p, y = f.level, g = y === void 0 ? 0 : y, m = A.findPath(c, l);
    if (m[0] === c.children.length - 1) return g + 1;
    var h = j.next(m), b = E.node(c, h);
    if (!b) return 0;
    var w = sd(b, 1)[0];
    if (A.getNodeType(w) !== d) return g + 1;
    var D = w, x = D.ordered, C = x !== void 0 && x, O = D.level, T = O === void 0 ? 0 : O;
    return T < g ? g - T : T > g ? 0 : T === g ? C === v ? 0 : 1 : 0;
  })(t10);
  if (s > 0) for (u = 0; u < s; u++) n += "</" + Xk.pop() + ">";
  return { html: "<li>" + e + "</li>", prefix: r, suffix: n };
} }, Kst = pr("species"), Yst = n8.filter, Xst = t6 >= 51 || !Ae((function() {
  var t10 = [];
  return (t10.constructor = {})[Kst] = function() {
    return { foo: 1 };
  }, t10.filter(Boolean).foo !== 1;
}));
ba({ target: "Array", proto: true, forced: !Xst }, { filter: function(t10) {
  return Yst(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} });
var i8 = Function.prototype, Zk = i8.apply, Zst = i8.bind, Jk = i8.call, Jst = typeof Reflect == "object" && Reflect.apply || (Zst ? Jk.bind(Zk) : function() {
  return Jk.apply(Zk, arguments);
}), Qk = (pr("species"), RegExp.prototype), Qst = xL.charAt, tlt = function(t10, e, r) {
  return e + (r ? Qst(t10, e).length : 1);
}, elt = Math.floor, l2 = jt("".charAt), rlt = jt("".replace), c2 = jt("".slice), nlt = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, olt = /\$([$&'`]|\d{1,2})/g, ilt = function(t10, e, r, n, o, i) {
  var a = r + t10.length, u = n.length, s = olt;
  return o !== void 0 && (o = Wp(o), s = nlt), rlt(i, s, (function(l, c) {
    var f;
    switch (l2(c, 0)) {
      case "$":
        return "$";
      case "&":
        return t10;
      case "`":
        return c2(e, 0, r);
      case "'":
        return c2(e, a);
      case "<":
        f = o[c2(c, 1, -1)];
        break;
      default:
        var d = +c;
        if (d === 0) return l;
        if (d > u) {
          var p = elt(d / 10);
          return p === 0 ? l : p <= u ? n[p - 1] === void 0 ? l2(c, 1) : n[p - 1] + l2(c, 1) : l;
        }
        f = n[d - 1];
    }
    return f === void 0 ? "" : f;
  }));
}, alt = wt.TypeError, ult = function(t10, e) {
  var r = t10.exec;
  if (Te(r)) {
    var n = ir(r, t10, e);
    return n !== null && Gr(n), n;
  }
  if (ei(t10) === "RegExp") return ir(k0, t10, e);
  throw alt("RegExp#exec called on incompatible receiver");
}, y6 = pr("replace"), slt = Math.max, llt = Math.min, clt = jt([].concat), f2 = jt([].push), tB = jt("".indexOf), eB = jt("".slice), flt = "a".replace(/./, "$0") === "$0", rB = !!/./[y6] && /./[y6]("a", "$0") === "";
(function(t10, e, r, n) {
  var o = pr(t10), i = !Ae((function() {
    var l = {};
    return l[o] = function() {
      return 7;
    }, ""[t10](l) != 7;
  })), a = i && !Ae((function() {
    var l = false, c = /a/;
    return c.exec = function() {
      return l = true, null;
    }, c[o](""), !l;
  }));
  if (!i || !a || r) {
    var u = jt(/./[o]), s = /* @__PURE__ */ (function(l, c, f) {
      var d = rB ? "$" : "$0";
      return [function(p, v) {
        var y = tm(this), g = p == null ? void 0 : Wd(p, y6);
        return g ? ir(g, p, y, v) : ir(c, Go(y), p, v);
      }, function(p, v) {
        var y = Gr(this), g = Go(p);
        if (typeof v == "string" && tB(v, d) === -1 && tB(v, "$<") === -1) {
          var m = f(c, y, g, v);
          if (m.done) return m.value;
        }
        var h = Te(v);
        h || (v = Go(v));
        var b = y.global;
        if (b) {
          var w = y.unicode;
          y.lastIndex = 0;
        }
        for (var D = []; ; ) {
          var x = ult(y, g);
          if (x === null || (f2(D, x), !b)) break;
          Go(x[0]) === "" && (y.lastIndex = tlt(g, pL(y.lastIndex), w));
        }
        for (var C, O = "", T = 0, R = 0; R < D.length; R++) {
          for (var H = Go((x = D[R])[0]), M = slt(llt(qp(x.index), g.length), 0), K = [], U = 1; U < x.length; U++) f2(K, (C = x[U]) === void 0 ? C : String(C));
          var W = x.groups;
          if (h) {
            var q = clt([H], K, M, g);
            W !== void 0 && f2(q, W);
            var et = Go(Jst(v, void 0, q));
          } else et = ilt(H, g, M, K, W, v);
          M >= T && (O += eB(g, T, M) + et, T = M + H.length);
        }
        return O + eB(g, T);
      }];
    })(0, ""[t10], (function(l, c, f, d, p) {
      var v = jt(l), y = c.exec;
      return y === k0 || y === Qk.exec ? i && !p ? { done: true, value: u(c, f, d) } : { done: true, value: v(f, c, d) } : { done: false };
    }));
    ui(String.prototype, t10, s[0]), ui(Qk, o, s[1]);
  }
})("replace", 0, !!Ae((function() {
  var t10 = /./;
  return t10.exec = function() {
    var e = [];
    return e.groups = { a: "7" }, e;
  }, "".replace(t10, "$<a>") !== "7";
})) || !flt || rB);
var dlt = wt.TypeError, zL = function(t10, e, r, n, o, i, a, u) {
  for (var s, l, c = o, f = 0, d = !!a && e8(a, u); f < n; ) {
    if (f in r) {
      if (s = d ? d(r[f], f, e) : r[f], i > 0 && p6(s)) l = fc(s), c = zL(t10, e, s, l, c, i - 1) - 1;
      else {
        if (c >= 9007199254740991) throw dlt("Exceed the acceptable array length");
        t10[c] = s;
      }
      c++;
    }
    f++;
  }
  return c;
}, plt = zL;
function d2(t10) {
  return t10.length ? t10[0].tagName.toLowerCase() : "";
}
ba({ target: "Array", proto: true }, { flat: function() {
  var t10 = arguments.length ? arguments[0] : void 0, e = Wp(this), r = fc(e), n = TL(e, 0);
  return n.length = plt(n, e, e, r, 0, t10 === void 0 ? 1 : qp(t10)), n;
} }), ad("flat"), ba({ global: true }, { globalThis: wt }), An && (B.fn.append = An), Sn && (B.fn.attr = Sn), Al && (B.fn.parent = Al);
var hlt = { renderElems: [kst], editorPlugin: function(t10) {
  var e = t10.deleteBackward, r = t10.handleTab, n = t10.normalizeNode, o = t10;
  return o.deleteBackward = function(i) {
    var a = o.selection;
    if (a != null) if (L.isExpanded(a)) e(i);
    else {
      var u = A.getSelectedNodeByType(o, "list-item");
      if (u != null) if (a.focus.offset !== 0) e(i);
      else {
        var s = u.level, l = s === void 0 ? 0 : s;
        l > 0 ? N.setNodes(o, { level: l - 1 }) : N.setNodes(o, { type: "paragraph", ordered: void 0, level: void 0 });
      }
      else e(i);
    }
    else e(i);
  }, o.handleTab = function() {
    var i, a, u, s, l = o.selection;
    if (l != null) {
      if (L.isCollapsed(l)) {
        var c = A.getSelectedNodeByType(o, "list-item");
        if (c == null) return void r();
        if (l.focus.offset === 0) {
          var f = c.level, d = f === void 0 ? 0 : f;
          return void N.setNodes(o, { level: d + 1 });
        }
      }
      if (L.isExpanded(l)) {
        var p = 0, v = false;
        try {
          for (var y = Gk(qk(o)), g = y.next(); !g.done; g = y.next()) {
            var m = sd(g.value, 1)[0];
            A.getNodeType(m) === "list-item" ? p++ : v = true;
          }
        } catch (C) {
          i = { error: C };
        } finally {
          try {
            g && !g.done && (a = y.return) && a.call(y);
          } finally {
            if (i) throw i.error;
          }
        }
        if (v || p <= 1) return void r();
        try {
          for (var h = Gk(qk(o)), b = h.next(); !b.done; b = h.next()) {
            var w = sd(b.value, 2), D = (m = w[0], w[1]), x = m.level;
            d = x === void 0 ? 0 : x, N.setNodes(o, { level: d + 1 }, { at: D });
          }
        } catch (C) {
          u = { error: C };
        } finally {
          try {
            b && !b.done && (s = h.return) && s.call(h);
          } finally {
            if (u) throw u.error;
          }
        }
      } else r();
    } else r();
  }, o.normalizeNode = function(i) {
    var a = sd(i, 2), u = a[0], s = a[1], l = A.getNodeType(u);
    return l !== "bulleted-list" && l !== "numbered-list" || N.unwrapNodes(o, { at: s }), n([u, s]);
  }, o;
}, menus: [Wst, Gst], elemsToHtml: [qst], parseElemsHtml: [{ selector: "ul:not([data-w-e-type]),ol:not([data-w-e-type])", parseElemHtml: function(t10, e, r) {
  return e.flat(1 / 0);
} }, { selector: "li:not([data-w-e-type])", parseElemHtml: function(t10, e, r) {
  var n = B(t10);
  (e = e.filter((function(a) {
    return !!ot.isText(a) || !!r.isInline(a);
  }))).length === 0 && (e = [{ text: n.text().replace(/\s+/gm, " ") }]);
  var o = (function(a) {
    return d2(a.parent()) === "ol";
  })(n), i = (function(a) {
    for (var u = 0, s = a.parent(), l = d2(s); l === "ul" || l === "ol"; ) l = d2(s = s.parent()), u++;
    return u - 1;
  })(n);
  return { type: "list-item", ordered: o, level: i, children: e };
} }] }, $L = Ju((function(t10, e) {
  var r = "__lodash_hash_undefined__", n = 9007199254740991, o = "[object Arguments]", i = "[object Array]", a = "[object Boolean]", u = "[object Date]", s = "[object Error]", l = "[object Function]", c = "[object Map]", f = "[object Number]", d = "[object Object]", p = "[object Promise]", v = "[object RegExp]", y = "[object Set]", g = "[object String]", m = "[object Symbol]", h = "[object WeakMap]", b = "[object ArrayBuffer]", w = "[object DataView]", D = /^\[object .+?Constructor\]$/, x = /^(?:0|[1-9]\d*)$/, C = {};
  C["[object Float32Array]"] = C["[object Float64Array]"] = C["[object Int8Array]"] = C["[object Int16Array]"] = C["[object Int32Array]"] = C["[object Uint8Array]"] = C["[object Uint8ClampedArray]"] = C["[object Uint16Array]"] = C["[object Uint32Array]"] = true, C[o] = C[i] = C[b] = C[a] = C[w] = C[u] = C[s] = C[l] = C[c] = C[f] = C[d] = C[v] = C[y] = C[g] = C[h] = false;
  var O = typeof ae == "object" && ae && ae.Object === Object && ae, T = typeof self == "object" && self && self.Object === Object && self, R = O || T || Function("return this")(), H = e && !e.nodeType && e, M = H && t10 && !t10.nodeType && t10, K = M && M.exports === H, U = K && O.process, W = (function() {
    try {
      return U && U.binding && U.binding("util");
    } catch {
    }
  })(), q = W && W.isTypedArray;
  function et(_, I) {
    for (var Z = -1, ht = _ == null ? 0 : _.length; ++Z < ht; ) if (I(_[Z], Z, _)) return true;
    return false;
  }
  function st(_) {
    var I = -1, Z = Array(_.size);
    return _.forEach((function(ht, te) {
      Z[++I] = [te, ht];
    })), Z;
  }
  function ut(_) {
    var I = -1, Z = Array(_.size);
    return _.forEach((function(ht) {
      Z[++I] = ht;
    })), Z;
  }
  var at = Array.prototype, k = Function.prototype, S = Object.prototype, P = R["__core-js_shared__"], $ = k.toString, Y = S.hasOwnProperty, V = (function() {
    var _ = /[^.]+$/.exec(P && P.keys && P.keys.IE_PROTO || "");
    return _ ? "Symbol(src)_1." + _ : "";
  })(), it = S.toString, gt = RegExp("^" + $.call(Y).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), vt = K ? R.Buffer : void 0, Dt = R.Symbol, G = R.Uint8Array, It = S.propertyIsEnumerable, At = at.splice, dt = Dt ? Dt.toStringTag : void 0, Ot = Object.getOwnPropertySymbols, Oe = vt ? vt.isBuffer : void 0, $t = /* @__PURE__ */ (function(_, I) {
    return function(Z) {
      return _(I(Z));
    };
  })(Object.keys, Object), Qt = pi(R, "DataView"), ge = pi(R, "Map"), hr = pi(R, "Promise"), Mt = pi(R, "Set"), jr = pi(R, "WeakMap"), Pn = pi(Object, "create"), Qn = Lo(Qt), cs = Lo(ge), Pa = Lo(hr), jn = Lo(Mt), to = Lo(jr), jo = Dt ? Dt.prototype : void 0, gr = jo ? jo.valueOf : void 0;
  function vr(_) {
    var I = -1, Z = _ == null ? 0 : _.length;
    for (this.clear(); ++I < Z; ) {
      var ht = _[I];
      this.set(ht[0], ht[1]);
    }
  }
  function yr(_) {
    var I = -1, Z = _ == null ? 0 : _.length;
    for (this.clear(); ++I < Z; ) {
      var ht = _[I];
      this.set(ht[0], ht[1]);
    }
  }
  function kr(_) {
    var I = -1, Z = _ == null ? 0 : _.length;
    for (this.clear(); ++I < Z; ) {
      var ht = _[I];
      this.set(ht[0], ht[1]);
    }
  }
  function er(_) {
    var I = -1, Z = _ == null ? 0 : _.length;
    for (this.__data__ = new kr(); ++I < Z; ) this.add(_[I]);
  }
  function fn(_) {
    var I = this.__data__ = new yr(_);
    this.size = I.size;
  }
  function pc(_, I) {
    var Z = Ro(_), ht = !Z && sh(_), te = !Z && !ht && eo(_), Pt = !Z && !ht && !te && no(_), F = Z || ht || te || Pt, z = F ? (function(zt, ve) {
      for (var se = -1, Ut = Array(zt); ++se < zt; ) Ut[se] = ve(se);
      return Ut;
    })(_.length, String) : [], nt = z.length;
    for (var lt in _) !Y.call(_, lt) || F && (lt == "length" || te && (lt == "offset" || lt == "parent") || Pt && (lt == "buffer" || lt == "byteLength" || lt == "byteOffset") || hc(lt, nt)) || z.push(lt);
    return z;
  }
  function di(_, I) {
    for (var Z = _.length; Z--; ) if (ps(_[Z][0], I)) return Z;
    return -1;
  }
  function No(_) {
    return _ == null ? _ === void 0 ? "[object Undefined]" : "[object Null]" : dt && dt in Object(_) ? (function(I) {
      var Z = Y.call(I, dt), ht = I[dt];
      try {
        I[dt] = void 0;
        var te = true;
      } catch {
      }
      var Pt = it.call(I);
      return te && (Z ? I[dt] = ht : delete I[dt]), Pt;
    })(_) : (function(I) {
      return it.call(I);
    })(_);
  }
  function fs(_) {
    return hi(_) && No(_) == o;
  }
  function ja(_, I, Z, ht, te) {
    return _ === I || (_ == null || I == null || !hi(_) && !hi(I) ? _ != _ && I != I : (function(Pt, F, z, nt, lt, zt) {
      var ve = Ro(Pt), se = Ro(F), Ut = ve ? i : qr(Pt), Ye = se ? i : qr(F), mr = (Ut = Ut == o ? d : Ut) == d, Na = (Ye = Ye == o ? d : Ye) == d, Mo = Ut == Ye;
      if (Mo && eo(Pt)) {
        if (!eo(F)) return false;
        ve = true, mr = false;
      }
      if (Mo && !mr) return zt || (zt = new fn()), ve || no(Pt) ? dn(Pt, F, z, nt, lt, zt) : (function(Lt, Wt, Gt, ke, Br, Nr, Ln) {
        switch (Gt) {
          case w:
            if (Lt.byteLength != Wt.byteLength || Lt.byteOffset != Wt.byteOffset) return false;
            Lt = Lt.buffer, Wt = Wt.buffer;
          case b:
            return !(Lt.byteLength != Wt.byteLength || !Nr(new G(Lt), new G(Wt)));
          case a:
          case u:
          case f:
            return ps(+Lt, +Wt);
          case s:
            return Lt.name == Wt.name && Lt.message == Wt.message;
          case v:
          case g:
            return Lt == Wt + "";
          case c:
            var vi = st;
          case y:
            var vc = 1 & ke;
            if (vi || (vi = ut), Lt.size != Wt.size && !vc) return false;
            var fh = Ln.get(Lt);
            if (fh) return fh == Wt;
            ke |= 2, Ln.set(Lt, Wt);
            var hs = dn(vi(Lt), vi(Wt), ke, Br, Nr, Ln);
            return Ln.delete(Lt), hs;
          case m:
            if (gr) return gr.call(Lt) == gr.call(Wt);
        }
        return false;
      })(Pt, F, Ut, z, nt, lt, zt);
      if (!(1 & z)) {
        var gi = mr && Y.call(Pt, "__wrapped__"), mt = Na && Y.call(F, "__wrapped__");
        if (gi || mt) {
          var Xt = gi ? Pt.value() : Pt, _e = mt ? F.value() : F;
          return zt || (zt = new fn()), lt(Xt, _e, z, nt, zt);
        }
      }
      return Mo ? (zt || (zt = new fn()), (function(Lt, Wt, Gt, ke, Br, Nr) {
        var Ln = 1 & Gt, vi = Io(Lt), vc = vi.length, fh = Io(Wt).length;
        if (vc != fh && !Ln) return false;
        for (var hs = vc; hs--; ) {
          var Ia = vi[hs];
          if (!(Ln ? Ia in Wt : Y.call(Wt, Ia))) return false;
        }
        var MC = Nr.get(Lt);
        if (MC && Nr.get(Wt)) return MC == Wt;
        var dh = true;
        Nr.set(Lt, Wt), Nr.set(Wt, Lt);
        for (var Cm = Ln; ++hs < vc; ) {
          var ph = Lt[Ia = vi[hs]], hh = Wt[Ia];
          if (ke) var zC = Ln ? ke(hh, ph, Ia, Wt, Lt, Nr) : ke(ph, hh, Ia, Lt, Wt, Nr);
          if (!(zC === void 0 ? ph === hh || Br(ph, hh, Gt, ke, Nr) : zC)) {
            dh = false;
            break;
          }
          Cm || (Cm = Ia == "constructor");
        }
        if (dh && !Cm) {
          var gh = Lt.constructor, vh = Wt.constructor;
          gh == vh || !("constructor" in Lt) || !("constructor" in Wt) || typeof gh == "function" && gh instanceof gh && typeof vh == "function" && vh instanceof vh || (dh = false);
        }
        return Nr.delete(Lt), Nr.delete(Wt), dh;
      })(Pt, F, z, nt, lt, zt)) : false;
    })(_, I, Z, ht, ja, te));
  }
  function ds(_) {
    return !(!lh(_) || (function(I) {
      return !!V && V in I;
    })(_)) && (gc(_) ? gt : D).test(Lo(_));
  }
  function Nn(_) {
    if (Z = (I = _) && I.constructor, ht = typeof Z == "function" && Z.prototype || S, I !== ht) return $t(_);
    var I, Z, ht, te = [];
    for (var Pt in Object(_)) Y.call(_, Pt) && Pt != "constructor" && te.push(Pt);
    return te;
  }
  function dn(_, I, Z, ht, te, Pt) {
    var F = 1 & Z, z = _.length, nt = I.length;
    if (z != nt && !(F && nt > z)) return false;
    var lt = Pt.get(_);
    if (lt && Pt.get(I)) return lt == I;
    var zt = -1, ve = true, se = 2 & Z ? new er() : void 0;
    for (Pt.set(_, I), Pt.set(I, _); ++zt < z; ) {
      var Ut = _[zt], Ye = I[zt];
      if (ht) var mr = F ? ht(Ye, Ut, zt, I, _, Pt) : ht(Ut, Ye, zt, _, I, Pt);
      if (mr !== void 0) {
        if (mr) continue;
        ve = false;
        break;
      }
      if (se) {
        if (!et(I, (function(Na, Mo) {
          if (gi = Mo, !se.has(gi) && (Ut === Na || te(Ut, Na, Z, ht, Pt))) return se.push(Mo);
          var gi;
        }))) {
          ve = false;
          break;
        }
      } else if (Ut !== Ye && !te(Ut, Ye, Z, ht, Pt)) {
        ve = false;
        break;
      }
    }
    return Pt.delete(_), Pt.delete(I), ve;
  }
  function Io(_) {
    return (function(I, Z, ht) {
      var te = Z(I);
      return Ro(I) ? te : (function(Pt, F) {
        for (var z = -1, nt = F.length, lt = Pt.length; ++z < nt; ) Pt[lt + z] = F[z];
        return Pt;
      })(te, ht(I));
    })(_, ch, uh);
  }
  function In(_, I) {
    var Z, ht, te = _.__data__;
    return ((ht = typeof (Z = I)) == "string" || ht == "number" || ht == "symbol" || ht == "boolean" ? Z !== "__proto__" : Z === null) ? te[typeof I == "string" ? "string" : "hash"] : te.map;
  }
  function pi(_, I) {
    var Z = (function(ht, te) {
      return ht == null ? void 0 : ht[te];
    })(_, I);
    return ds(Z) ? Z : void 0;
  }
  vr.prototype.clear = function() {
    this.__data__ = Pn ? Pn(null) : {}, this.size = 0;
  }, vr.prototype.delete = function(_) {
    var I = this.has(_) && delete this.__data__[_];
    return this.size -= I ? 1 : 0, I;
  }, vr.prototype.get = function(_) {
    var I = this.__data__;
    if (Pn) {
      var Z = I[_];
      return Z === r ? void 0 : Z;
    }
    return Y.call(I, _) ? I[_] : void 0;
  }, vr.prototype.has = function(_) {
    var I = this.__data__;
    return Pn ? I[_] !== void 0 : Y.call(I, _);
  }, vr.prototype.set = function(_, I) {
    var Z = this.__data__;
    return this.size += this.has(_) ? 0 : 1, Z[_] = Pn && I === void 0 ? r : I, this;
  }, yr.prototype.clear = function() {
    this.__data__ = [], this.size = 0;
  }, yr.prototype.delete = function(_) {
    var I = this.__data__, Z = di(I, _);
    return !(Z < 0) && (Z == I.length - 1 ? I.pop() : At.call(I, Z, 1), --this.size, true);
  }, yr.prototype.get = function(_) {
    var I = this.__data__, Z = di(I, _);
    return Z < 0 ? void 0 : I[Z][1];
  }, yr.prototype.has = function(_) {
    return di(this.__data__, _) > -1;
  }, yr.prototype.set = function(_, I) {
    var Z = this.__data__, ht = di(Z, _);
    return ht < 0 ? (++this.size, Z.push([_, I])) : Z[ht][1] = I, this;
  }, kr.prototype.clear = function() {
    this.size = 0, this.__data__ = { hash: new vr(), map: new (ge || yr)(), string: new vr() };
  }, kr.prototype.delete = function(_) {
    var I = In(this, _).delete(_);
    return this.size -= I ? 1 : 0, I;
  }, kr.prototype.get = function(_) {
    return In(this, _).get(_);
  }, kr.prototype.has = function(_) {
    return In(this, _).has(_);
  }, kr.prototype.set = function(_, I) {
    var Z = In(this, _), ht = Z.size;
    return Z.set(_, I), this.size += Z.size == ht ? 0 : 1, this;
  }, er.prototype.add = er.prototype.push = function(_) {
    return this.__data__.set(_, r), this;
  }, er.prototype.has = function(_) {
    return this.__data__.has(_);
  }, fn.prototype.clear = function() {
    this.__data__ = new yr(), this.size = 0;
  }, fn.prototype.delete = function(_) {
    var I = this.__data__, Z = I.delete(_);
    return this.size = I.size, Z;
  }, fn.prototype.get = function(_) {
    return this.__data__.get(_);
  }, fn.prototype.has = function(_) {
    return this.__data__.has(_);
  }, fn.prototype.set = function(_, I) {
    var Z = this.__data__;
    if (Z instanceof yr) {
      var ht = Z.__data__;
      if (!ge || ht.length < 199) return ht.push([_, I]), this.size = ++Z.size, this;
      Z = this.__data__ = new kr(ht);
    }
    return Z.set(_, I), this.size = Z.size, this;
  };
  var uh = Ot ? function(_) {
    return _ == null ? [] : (_ = Object(_), (function(I, Z) {
      for (var ht = -1, te = I == null ? 0 : I.length, Pt = 0, F = []; ++ht < te; ) {
        var z = I[ht];
        Z(z, ht, I) && (F[Pt++] = z);
      }
      return F;
    })(Ot(_), (function(I) {
      return It.call(_, I);
    })));
  } : function() {
    return [];
  }, qr = No;
  function hc(_, I) {
    return !!(I = I ?? n) && (typeof _ == "number" || x.test(_)) && _ > -1 && _ % 1 == 0 && _ < I;
  }
  function Lo(_) {
    if (_ != null) {
      try {
        return $.call(_);
      } catch {
      }
      try {
        return _ + "";
      } catch {
      }
    }
    return "";
  }
  function ps(_, I) {
    return _ === I || _ != _ && I != I;
  }
  (Qt && qr(new Qt(new ArrayBuffer(1))) != w || ge && qr(new ge()) != c || hr && qr(hr.resolve()) != p || Mt && qr(new Mt()) != y || jr && qr(new jr()) != h) && (qr = function(_) {
    var I = No(_), Z = I == d ? _.constructor : void 0, ht = Z ? Lo(Z) : "";
    if (ht) switch (ht) {
      case Qn:
        return w;
      case cs:
        return c;
      case Pa:
        return p;
      case jn:
        return y;
      case to:
        return h;
    }
    return I;
  });
  var sh = fs(/* @__PURE__ */ (function() {
    return arguments;
  })()) ? fs : function(_) {
    return hi(_) && Y.call(_, "callee") && !It.call(_, "callee");
  }, Ro = Array.isArray, eo = Oe || function() {
    return false;
  };
  function gc(_) {
    if (!lh(_)) return false;
    var I = No(_);
    return I == l || I == "[object GeneratorFunction]" || I == "[object AsyncFunction]" || I == "[object Proxy]";
  }
  function ro(_) {
    return typeof _ == "number" && _ > -1 && _ % 1 == 0 && _ <= n;
  }
  function lh(_) {
    var I = typeof _;
    return _ != null && (I == "object" || I == "function");
  }
  function hi(_) {
    return _ != null && typeof _ == "object";
  }
  var no = q ? /* @__PURE__ */ (function(_) {
    return function(I) {
      return _(I);
    };
  })(q) : function(_) {
    return hi(_) && ro(_.length) && !!C[No(_)];
  };
  function ch(_) {
    return (I = _) != null && ro(I.length) && !gc(I) ? pc(_) : Nn(_);
    var I;
  }
  t10.exports = function(_, I) {
    return ja(_, I);
  };
}));
Wr("en", { tableModule: { deleteCol: "Delete column", deleteRow: "Delete row", deleteTable: "Delete table", widthAuto: "Width auto", insertCol: "Insert column", insertRow: "Insert row", insertTable: "Insert table", header: "Header" } }), Wr("zh-CN", { tableModule: { deleteCol: "\u5220\u9664\u5217", deleteRow: "\u5220\u9664\u884C", deleteTable: "\u5220\u9664\u8868\u683C", widthAuto: "\u5BBD\u5EA6\u81EA\u9002\u5E94", insertCol: "\u63D2\u5165\u5217", insertRow: "\u63D2\u5165\u884C", insertTable: "\u63D2\u5165\u8868\u683C", header: "\u8868\u5934" } });
var nB = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function HL(t10) {
  var e = { exports: {} };
  return t10(e, e.exports), e.exports;
}
var Bi, qg, ng = function(t10) {
  return t10 && t10.Math == Math && t10;
}, _t = ng(typeof globalThis == "object" && globalThis) || ng(typeof window == "object" && window) || ng(typeof self == "object" && self) || ng(typeof nB == "object" && nB) || /* @__PURE__ */ (function() {
  return this;
})() || Function("return this")(), qe = function(t10) {
  try {
    return !!t10();
  } catch {
    return true;
  }
}, wa = !qe((function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
})), hf = Function.prototype.call, Ze = hf.bind ? hf.bind(hf) : function() {
  return hf.apply(hf, arguments);
}, oB = {}.propertyIsEnumerable, iB = Object.getOwnPropertyDescriptor, glt = { f: iB && !oB.call({ 1: 2 }, 1) ? function(t10) {
  var e = iB(this, t10);
  return !!e && e.enumerable;
} : oB }, a8 = function(t10, e) {
  return { enumerable: !(1 & t10), configurable: !(2 & t10), writable: !(4 & t10), value: e };
}, VL = Function.prototype, m6 = VL.bind, b6 = VL.call, vlt = m6 && m6.bind(b6), Rt = m6 ? function(t10) {
  return t10 && vlt(b6, t10);
} : function(t10) {
  return t10 && function() {
    return b6.apply(t10, arguments);
  };
}, ylt = Rt({}.toString), mlt = Rt("".slice), na = function(t10) {
  return mlt(ylt(t10), 8, -1);
}, p2 = _t.Object, blt = Rt("".split), UL = qe((function() {
  return !p2("z").propertyIsEnumerable(0);
})) ? function(t10) {
  return na(t10) == "String" ? blt(t10, "") : p2(t10);
} : p2, wlt = _t.TypeError, Ea = function(t10) {
  if (t10 == null) throw wlt("Can't call method on " + t10);
  return t10;
}, Yp = function(t10) {
  return UL(Ea(t10));
}, Ar = function(t10) {
  return typeof t10 == "function";
}, yo = function(t10) {
  return typeof t10 == "object" ? t10 !== null : Ar(t10);
}, Elt = function(t10) {
  return Ar(t10) ? t10 : void 0;
}, Xp = function(t10, e) {
  return arguments.length < 2 ? Elt(_t[t10]) : _t[t10] && _t[t10][e];
}, WL = Rt({}.isPrototypeOf), h2 = Xp("navigator", "userAgent") || "", aB = _t.process, uB = _t.Deno, sB = aB && aB.versions || uB && uB.version, lB = sB && sB.v8;
lB && (qg = (Bi = lB.split("."))[0] > 0 && Bi[0] < 4 ? 1 : +(Bi[0] + Bi[1])), !qg && h2 && (!(Bi = h2.match(/Edge\/(\d+)/)) || Bi[1] >= 74) && (Bi = h2.match(/Chrome\/(\d+)/)) && (qg = +Bi[1]);
var w6 = qg, E6 = !!Object.getOwnPropertySymbols && !qe((function() {
  var t10 = /* @__PURE__ */ Symbol();
  return !String(t10) || !(Object(t10) instanceof Symbol) || !Symbol.sham && w6 && w6 < 41;
})), u8 = E6 && !Symbol.sham && typeof Symbol.iterator == "symbol", Dlt = _t.Object, g2 = u8 ? function(t10) {
  return typeof t10 == "symbol";
} : function(t10) {
  var e = Xp("Symbol");
  return Ar(e) && WL(e.prototype, Dlt(t10));
}, Clt = _t.String, GL = function(t10) {
  try {
    return Clt(t10);
  } catch {
    return "Object";
  }
}, xlt = _t.TypeError, qL = function(t10) {
  if (Ar(t10)) return t10;
  throw xlt(GL(t10) + " is not a function");
}, s8 = function(t10, e) {
  var r = t10[e];
  return r == null ? void 0 : qL(r);
}, Slt = _t.TypeError, Alt = Object.defineProperty, l8 = function(t10, e) {
  try {
    Alt(_t, t10, { value: e, configurable: true, writable: true });
  } catch {
    _t[t10] = e;
  }
  return e;
}, oa = _t["__core-js_shared__"] || l8("__core-js_shared__", {}), c8 = HL((function(t10) {
  (t10.exports = function(e, r) {
    return oa[e] || (oa[e] = r !== void 0 ? r : {});
  })("versions", []).push({ version: "3.19.3", mode: "global", copyright: "\xA9 2021 Denis Pushkarev (zloirock.ru)" });
})), Olt = _t.Object, f8 = function(t10) {
  return Olt(Ea(t10));
}, klt = Rt({}.hasOwnProperty), Dn = Object.hasOwn || function(t10, e) {
  return klt(f8(t10), e);
}, Blt = 0, Flt = Math.random(), Tlt = Rt(1 .toString), KL = function(t10) {
  return "Symbol(" + (t10 === void 0 ? "" : t10) + ")_" + Tlt(++Blt + Flt, 36);
}, gf = c8("wks"), Bu = _t.Symbol, cB = Bu && Bu.for, _lt = u8 ? Bu : Bu && Bu.withoutSetter || KL, _n = function(t10) {
  if (!Dn(gf, t10) || !E6 && typeof gf[t10] != "string") {
    var e = "Symbol." + t10;
    E6 && Dn(Bu, t10) ? gf[t10] = Bu[t10] : gf[t10] = u8 && cB ? cB(e) : _lt(e);
  }
  return gf[t10];
}, Plt = _t.TypeError, jlt = _n("toPrimitive"), d8 = function(t10) {
  var e = (function(r, n) {
    if (!yo(r) || g2(r)) return r;
    var o, i = s8(r, jlt);
    if (i) {
      if (o = Ze(i, r, n), !yo(o) || g2(o)) return o;
      throw Plt("Can't convert object to primitive value");
    }
    return (function(a, u) {
      var s, l;
      if (Ar(s = a.toString) && !yo(l = Ze(s, a)) || Ar(s = a.valueOf) && !yo(l = Ze(s, a))) return l;
      throw Slt("Can't convert object to primitive value");
    })(r);
  })(t10, "string");
  return g2(e) ? e : e + "";
}, D6 = _t.document, Nlt = yo(D6) && yo(D6.createElement), p8 = function(t10) {
  return Nlt ? D6.createElement(t10) : {};
}, YL = !wa && !qe((function() {
  return Object.defineProperty(p8("div"), "a", { get: function() {
    return 7;
  } }).a != 7;
})), fB = Object.getOwnPropertyDescriptor, XL = { f: wa ? fB : function(t10, e) {
  if (t10 = Yp(t10), e = d8(e), YL) try {
    return fB(t10, e);
  } catch {
  }
  if (Dn(t10, e)) return a8(!Ze(glt.f, t10, e), t10[e]);
} }, Ilt = _t.String, Llt = _t.TypeError, Cn = function(t10) {
  if (yo(t10)) return t10;
  throw Llt(Ilt(t10) + " is not an object");
}, Rlt = _t.TypeError, dB = Object.defineProperty, Zp = { f: wa ? dB : function(t10, e, r) {
  if (Cn(t10), e = d8(e), Cn(r), YL) try {
    return dB(t10, e, r);
  } catch {
  }
  if ("get" in r || "set" in r) throw Rlt("Accessors not supported");
  return "value" in r && (t10[e] = r.value), t10;
} }, zl = wa ? function(t10, e, r) {
  return Zp.f(t10, e, a8(1, r));
} : function(t10, e, r) {
  return t10[e] = r, t10;
}, Mlt = Rt(Function.toString);
Ar(oa.inspectSource) || (oa.inspectSource = function(t10) {
  return Mlt(t10);
});
var C6, B0, x6, h8 = oa.inspectSource, pB = _t.WeakMap, zlt = Ar(pB) && /native code/.test(h8(pB)), hB = c8("keys"), ZL = function(t10) {
  return hB[t10] || (hB[t10] = KL(t10));
}, g8 = {}, gB = _t.TypeError, $lt = _t.WeakMap;
if (zlt || oa.state) {
  var Ga = oa.state || (oa.state = new $lt()), Hlt = Rt(Ga.get), vB = Rt(Ga.has), Vlt = Rt(Ga.set);
  C6 = function(t10, e) {
    if (vB(Ga, t10)) throw new gB("Object already initialized");
    return e.facade = t10, Vlt(Ga, t10, e), e;
  }, B0 = function(t10) {
    return Hlt(Ga, t10) || {};
  }, x6 = function(t10) {
    return vB(Ga, t10);
  };
} else {
  var js = ZL("state");
  g8[js] = true, C6 = function(t10, e) {
    if (Dn(t10, js)) throw new gB("Object already initialized");
    return e.facade = t10, zl(t10, js, e), e;
  }, B0 = function(t10) {
    return Dn(t10, js) ? t10[js] : {};
  }, x6 = function(t10) {
    return Dn(t10, js);
  };
}
var S6 = { get: B0, enforce: function(t10) {
  return x6(t10) ? B0(t10) : C6(t10, {});
} }, JL = Function.prototype, Ult = wa && Object.getOwnPropertyDescriptor, yB = Dn(JL, "name"), v8 = { PROPER: yB && (function() {
}).name === "something", CONFIGURABLE: yB && (!wa || wa && Ult(JL, "name").configurable) }, Gd = HL((function(t10) {
  var e = v8.CONFIGURABLE, r = S6.get, n = S6.enforce, o = String(String).split("String");
  (t10.exports = function(i, a, u, s) {
    var l, c = !!s && !!s.unsafe, f = !!s && !!s.enumerable, d = !!s && !!s.noTargetGet, p = s && s.name !== void 0 ? s.name : a;
    Ar(u) && (String(p).slice(0, 7) === "Symbol(" && (p = "[" + String(p).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!Dn(u, "name") || e && u.name !== p) && zl(u, "name", p), (l = n(u)).source || (l.source = o.join(typeof p == "string" ? p : ""))), i !== _t ? (c ? !d && i[a] && (f = true) : delete i[a], f ? i[a] = u : zl(i, a, u)) : f ? i[a] = u : l8(a, u);
  })(Function.prototype, "toString", (function() {
    return Ar(this) && r(this).source || h8(this);
  }));
})), Wlt = Math.ceil, Glt = Math.floor, om = function(t10) {
  var e = +t10;
  return e != e || e === 0 ? 0 : (e > 0 ? Glt : Wlt)(e);
}, qlt = Math.max, Klt = Math.min, qd = function(t10, e) {
  var r = om(t10);
  return r < 0 ? qlt(r + e, 0) : Klt(r, e);
}, Ylt = Math.min, y8 = function(t10) {
  return t10 > 0 ? Ylt(om(t10), 9007199254740991) : 0;
}, im = function(t10) {
  return y8(t10.length);
}, Xlt = function(t10) {
  return function(e, r, n) {
    var o, i = Yp(e), a = im(i), u = qd(n, a);
    if (t10 && r != r) {
      for (; a > u; ) if ((o = i[u++]) != o) return true;
    } else for (; a > u; u++) if ((t10 || u in i) && i[u] === r) return t10 || u || 0;
    return !t10 && -1;
  };
}, Zlt = Xlt(false), mB = Rt([].push), QL = function(t10, e) {
  var r, n = Yp(t10), o = 0, i = [];
  for (r in n) !Dn(g8, r) && Dn(n, r) && mB(i, r);
  for (; e.length > o; ) Dn(n, r = e[o++]) && (~Zlt(i, r) || mB(i, r));
  return i;
}, F0 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], Jlt = F0.concat("length", "prototype"), Qlt = { f: Object.getOwnPropertyNames || function(t10) {
  return QL(t10, Jlt);
} }, tct = { f: Object.getOwnPropertySymbols }, ect = Rt([].concat), rct = Xp("Reflect", "ownKeys") || function(t10) {
  var e = Qlt.f(Cn(t10)), r = tct.f;
  return r ? ect(e, r(t10)) : e;
}, nct = function(t10, e) {
  for (var r = rct(e), n = Zp.f, o = XL.f, i = 0; i < r.length; i++) {
    var a = r[i];
    Dn(t10, a) || n(t10, a, o(e, a));
  }
}, oct = /#|\.prototype\./, Jp = function(t10, e) {
  var r = act[ict(t10)];
  return r == sct || r != uct && (Ar(e) ? qe(e) : !!e);
}, ict = Jp.normalize = function(t10) {
  return String(t10).replace(oct, ".").toLowerCase();
}, act = Jp.data = {}, uct = Jp.NATIVE = "N", sct = Jp.POLYFILL = "P", lct = Jp, cct = XL.f, Da = function(t10, e) {
  var r, n, o, i, a, u = t10.target, s = t10.global, l = t10.stat;
  if (r = s ? _t : l ? _t[u] || l8(u, {}) : (_t[u] || {}).prototype) for (n in e) {
    if (i = e[n], o = t10.noTargetGet ? (a = cct(r, n)) && a.value : r[n], !lct(s ? n : u + (l ? "." : "#") + n, t10.forced) && o !== void 0) {
      if (typeof i == typeof o) continue;
      nct(i, o);
    }
    (t10.sham || o && o.sham) && zl(i, "sham", true), Gd(r, n, i, t10);
  }
}, tR = {};
tR[_n("toStringTag")] = "z";
var m8 = String(tR) === "[object z]", fct = _n("toStringTag"), dct = _t.Object, pct = na(/* @__PURE__ */ (function() {
  return arguments;
})()) == "Arguments", b8 = m8 ? na : function(t10) {
  var e, r, n;
  return t10 === void 0 ? "Undefined" : t10 === null ? "Null" : typeof (r = (function(o, i) {
    try {
      return o[i];
    } catch {
    }
  })(e = dct(t10), fct)) == "string" ? r : pct ? na(e) : (n = na(e)) == "Object" && Ar(e.callee) ? "Arguments" : n;
}, hct = _t.String, Dr = function(t10) {
  if (b8(t10) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  return hct(t10);
}, gct = /"/g, vct = Rt("".replace);
Da({ target: "String", proto: true, forced: qe((function() {
  var t10 = "".anchor('"');
  return t10 !== t10.toLowerCase() || t10.split('"').length > 3;
})) }, { anchor: function(t10) {
  return e = t10, r = Dr(Ea(this)), n = "<a", (n += ' name="' + vct(Dr(e), gct, "&quot;") + '"') + ">" + r + "</a>";
  var e, r, n;
} });
var og, eR = function() {
  var t10 = Cn(this), e = "";
  return t10.global && (e += "g"), t10.ignoreCase && (e += "i"), t10.multiline && (e += "m"), t10.dotAll && (e += "s"), t10.unicode && (e += "u"), t10.sticky && (e += "y"), e;
}, w8 = _t.RegExp, A6 = qe((function() {
  var t10 = w8("a", "y");
  return t10.lastIndex = 2, t10.exec("abcd") != null;
}));
A6 || qe((function() {
  return !w8("a", "y").sticky;
}));
var rR = { BROKEN_CARET: A6 || qe((function() {
  var t10 = w8("^r", "gy");
  return t10.lastIndex = 2, t10.exec("str") != null;
})), UNSUPPORTED_Y: A6 }, yct = Object.keys || function(t10) {
  return QL(t10, F0);
}, mct = wa ? Object.defineProperties : function(t10, e) {
  Cn(t10);
  for (var r, n = Yp(e), o = yct(e), i = o.length, a = 0; i > a; ) Zp.f(t10, r = o[a++], n[r]);
  return t10;
}, bct = Xp("document", "documentElement"), nR = ZL("IE_PROTO"), v2 = function() {
}, oR = function(t10) {
  return "<script>" + t10 + "<\/script>";
}, bB = function(t10) {
  t10.write(oR("")), t10.close();
  var e = t10.parentWindow.Object;
  return t10 = null, e;
}, Kg = function() {
  try {
    og = new ActiveXObject("htmlfile");
  } catch {
  }
  var t10, e;
  Kg = typeof document < "u" ? document.domain && og ? bB(og) : ((e = p8("iframe")).style.display = "none", bct.appendChild(e), e.src = "javascript:", (t10 = e.contentWindow.document).open(), t10.write(oR("document.F=Object")), t10.close(), t10.F) : bB(og);
  for (var r = F0.length; r--; ) delete Kg.prototype[F0[r]];
  return Kg();
};
g8[nR] = true;
var wB, y2, iR = Object.create || function(t10, e) {
  var r;
  return t10 !== null ? (v2.prototype = Cn(t10), r = new v2(), v2.prototype = null, r[nR] = t10) : r = Kg(), e === void 0 ? r : mct(r, e);
}, wct = _t.RegExp, Ect = qe((function() {
  var t10 = wct(".", "s");
  return !(t10.dotAll && t10.exec(`
`) && t10.flags === "s");
})), Dct = _t.RegExp, Cct = qe((function() {
  var t10 = Dct("(?<a>b)", "g");
  return t10.exec("b").groups.a !== "b" || "b".replace(t10, "$<a>c") !== "bc";
})), xct = S6.get, Sct = c8("native-string-replace", String.prototype.replace), T0 = RegExp.prototype.exec, O6 = T0, Act = Rt("".charAt), Oct = Rt("".indexOf), kct = Rt("".replace), m2 = Rt("".slice), b2 = (y2 = /b*/g, Ze(T0, wB = /a/, "a"), Ze(T0, y2, "a"), wB.lastIndex !== 0 || y2.lastIndex !== 0), EB = rR.BROKEN_CARET, w2 = /()??/.exec("")[1] !== void 0;
(b2 || w2 || EB || Ect || Cct) && (O6 = function(t10) {
  var e, r, n, o, i, a, u, s = this, l = xct(s), c = Dr(t10), f = l.raw;
  if (f) return f.lastIndex = s.lastIndex, e = Ze(O6, f, c), s.lastIndex = f.lastIndex, e;
  var d = l.groups, p = EB && s.sticky, v = Ze(eR, s), y = s.source, g = 0, m = c;
  if (p && (v = kct(v, "y", ""), Oct(v, "g") === -1 && (v += "g"), m = m2(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && Act(c, s.lastIndex - 1) !== `
`) && (y = "(?: " + y + ")", m = " " + m, g++), r = new RegExp("^(?:" + y + ")", v)), w2 && (r = new RegExp("^" + y + "$(?!\\s)", v)), b2 && (n = s.lastIndex), o = Ze(T0, p ? r : s, m), p ? o ? (o.input = m2(o.input, g), o[0] = m2(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : b2 && o && (s.lastIndex = s.global ? o.index + o[0].length : n), w2 && o && o.length > 1 && Ze(Sct, o[0], r, (function() {
    for (i = 1; i < arguments.length - 2; i++) arguments[i] === void 0 && (o[i] = void 0);
  })), o && d) for (o.groups = a = iR(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
  return o;
});
var Kd = O6;
Da({ target: "RegExp", proto: true, forced: /./.exec !== Kd }, { exec: Kd });
var _0 = Array.isArray || function(t10) {
  return na(t10) == "Array";
}, aR = function() {
}, Bct = [], uR = Xp("Reflect", "construct"), E8 = /^\s*(?:class|function)\b/, Fct = Rt(E8.exec), Tct = !E8.exec(aR), vf = function(t10) {
  if (!Ar(t10)) return false;
  try {
    return uR(aR, Bct, t10), true;
  } catch {
    return false;
  }
}, D8 = !uR || qe((function() {
  var t10;
  return vf(vf.call) || !vf(Object) || !vf((function() {
    t10 = true;
  })) || t10;
})) ? function(t10) {
  if (!Ar(t10)) return false;
  switch (b8(t10)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return false;
  }
  return Tct || !!Fct(E8, h8(t10));
} : vf, sR = function(t10, e, r) {
  var n = d8(e);
  n in t10 ? Zp.f(t10, n, a8(0, r)) : t10[n] = r;
}, _ct = _n("species"), C8 = function(t10) {
  return w6 >= 51 || !qe((function() {
    var e = [];
    return (e.constructor = {})[_ct] = function() {
      return { foo: 1 };
    }, e[t10](Boolean).foo !== 1;
  }));
}, Pct = Rt([].slice), jct = C8("slice"), Nct = _n("species"), E2 = _t.Array, Ict = Math.max;
function Zn(t10, e) {
  var r = typeof Symbol == "function" && t10[Symbol.iterator];
  if (!r) return t10;
  var n, o, i = r.call(t10), a = [];
  try {
    for (; (e === void 0 || e-- > 0) && !(n = i.next()).done; ) a.push(n.value);
  } catch (u) {
    o = { error: u };
  } finally {
    try {
      n && !n.done && (r = i.return) && r.call(i);
    } finally {
      if (o) throw o.error;
    }
  }
  return a;
}
function DB(t10) {
  var e = t10.selection;
  if (e == null) return false;
  var r = Zn(E.nodes(t10, { match: function(i) {
    return A.checkNodeType(i, "table-cell");
  } }), 1)[0];
  if (r) {
    var n = Zn(r, 2)[1], o = E.start(t10, n);
    if (Bt.equals(e.anchor, o)) return true;
  }
  return false;
}
function CB(t10, e) {
  var r, n, o = E.nodes(t10, { at: e, match: function(s) {
    return A.getNodeType(s) === "table";
  } }), i = false;
  try {
    for (var a = (function(s) {
      var l = typeof Symbol == "function" && Symbol.iterator, c = l && s[l], f = 0;
      if (c) return c.call(s);
      if (s && typeof s.length == "number") return { next: function() {
        return s && f >= s.length && (s = void 0), { value: s && s[f++], done: !s };
      } };
      throw new TypeError(l ? "Object is not iterable." : "Symbol.iterator is not defined.");
    })(o), u = a.next(); !u.done; u = a.next()) u.value, i = true;
  } catch (s) {
    r = { error: s };
  } finally {
    try {
      u && !u.done && (n = a.return) && n.call(a);
    } finally {
      if (r) throw r.error;
    }
  }
  return i;
}
Da({ target: "Array", proto: true, forced: !jct }, { slice: function(t10, e) {
  var r, n, o, i = Yp(this), a = im(i), u = qd(t10, a), s = qd(e === void 0 ? a : e, a);
  if (_0(i) && (r = i.constructor, (D8(r) && (r === E2 || _0(r.prototype)) || yo(r) && (r = r[Nct]) === null) && (r = void 0), r === E2 || r === void 0)) return Pct(i, u, s);
  for (n = new (r === void 0 ? E2 : r)(Ict(s - u, 0)), o = 0; u < s; u++, o++) u in i && sR(n, o, i[u]);
  return n.length = o, n;
} });
var xB = Rt(Rt.bind), Lct = _n("species"), SB = _t.Array, Rct = function(t10, e) {
  return new ((function(r) {
    var n;
    return _0(r) && (n = r.constructor, (D8(n) && (n === SB || _0(n.prototype)) || yo(n) && (n = n[Lct]) === null) && (n = void 0)), n === void 0 ? SB : n;
  })(t10))(e === 0 ? 0 : e);
}, AB = Rt([].push), ig = function(t10) {
  var e = t10 == 1, r = t10 == 2, n = t10 == 3, o = t10 == 4, i = t10 == 6, a = t10 == 7, u = t10 == 5 || i;
  return function(s, l, c, f) {
    for (var d, p, v = f8(s), y = UL(v), g = (function(D, x) {
      return qL(D), x === void 0 ? D : xB ? xB(D, x) : function() {
        return D.apply(x, arguments);
      };
    })(l, c), m = im(y), h = 0, b = f || Rct, w = e ? b(s, m) : r || a ? b(s, 0) : void 0; m > h; h++) if ((u || h in y) && (p = g(d = y[h], h, v), t10)) if (e) w[h] = p;
    else if (p) switch (t10) {
      case 3:
        return true;
      case 5:
        return d;
      case 6:
        return h;
      case 2:
        AB(w, d);
    }
    else switch (t10) {
      case 4:
        return false;
      case 7:
        AB(w, d);
    }
    return i ? -1 : n || o ? o : w;
  };
}, am = { forEach: ig(0), map: ig(1), filter: ig(2), find: ig(5) }, Mct = am.map;
Da({ target: "Array", proto: true, forced: !C8("map") }, { map: function(t10) {
  return Mct(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} });
var zct = m8 ? {}.toString : function() {
  return "[object " + b8(this) + "]";
};
function um(t10) {
  var e = t10.children || [];
  return e.length === 0 ? [] : (e[0] || {}).children || [];
}
function lR(t10) {
  return um(t10).every((function(e) {
    return !!e.isHeader;
  }));
}
m8 || Gd(Object.prototype, "toString", zct, { unsafe: true });
var $ct = v8.PROPER, k6 = RegExp.prototype, cR = k6.toString, Hct = Rt(eR), Vct = qe((function() {
  return cR.call({ source: "a", flags: "b" }) != "/a/b";
})), Uct = $ct && cR.name != "toString";
(Vct || Uct) && Gd(RegExp.prototype, "toString", (function() {
  var t10 = Cn(this), e = Dr(t10.source), r = t10.flags;
  return "/" + e + "/" + Dr(r === void 0 && WL(k6, t10) && !("flags" in k6) ? Hct(t10) : r);
}), { unsafe: true });
var B6 = _n("unscopables"), F6 = Array.prototype;
F6[B6] == null && Zp.f(F6, B6, { configurable: true, value: iR(null) });
var Wct = am.find, OB = true;
"find" in [] && Array(1).find((function() {
  OB = false;
})), Da({ target: "Array", proto: true, forced: OB }, { find: function(t10) {
  return Wct(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} }), F6[B6].find = true;
var x8 = Function.prototype, kB = x8.apply, Gct = x8.bind, BB = x8.call, fR = typeof Reflect == "object" && Reflect.apply || (Gct ? BB.bind(kB) : function() {
  return BB.apply(kB, arguments);
}), qct = _n("species"), D2 = RegExp.prototype, dR = function(t10, e, r, n) {
  var o = _n(t10), i = !qe((function() {
    var l = {};
    return l[o] = function() {
      return 7;
    }, ""[t10](l) != 7;
  })), a = i && !qe((function() {
    var l = false, c = /a/;
    return t10 === "split" && ((c = {}).constructor = {}, c.constructor[qct] = function() {
      return c;
    }, c.flags = "", c[o] = /./[o]), c.exec = function() {
      return l = true, null;
    }, c[o](""), !l;
  }));
  if (!i || !a || r) {
    var u = Rt(/./[o]), s = e(o, ""[t10], (function(l, c, f, d, p) {
      var v = Rt(l), y = c.exec;
      return y === Kd || y === D2.exec ? i && !p ? { done: true, value: u(c, f, d) } : { done: true, value: v(f, c, d) } : { done: false };
    }));
    Gd(String.prototype, t10, s[0]), Gd(D2, o, s[1]);
  }
  n && zl(D2[o], "sham", true);
}, Kct = _n("match"), Yct = _t.TypeError, Xct = _n("species"), Zct = Rt("".charAt), FB = Rt("".charCodeAt), Jct = Rt("".slice), Qct = function(t10) {
  return function(e, r) {
    var n, o, i = Dr(Ea(e)), a = om(r), u = i.length;
    return a < 0 || a >= u ? t10 ? "" : void 0 : (n = FB(i, a)) < 55296 || n > 56319 || a + 1 === u || (o = FB(i, a + 1)) < 56320 || o > 57343 ? t10 ? Zct(i, a) : n : t10 ? Jct(i, a, a + 2) : o - 56320 + (n - 55296 << 10) + 65536;
  };
}, tft = Qct(true), pR = function(t10, e, r) {
  return e + (r ? tft(t10, e).length : 1);
}, eft = _t.Array, rft = Math.max, TB = function(t10, e, r) {
  for (var n = im(t10), o = qd(e, n), i = qd(r === void 0 ? n : r, n), a = eft(rft(i - o, 0)), u = 0; o < i; o++, u++) sR(a, u, t10[o]);
  return a.length = u, a;
}, nft = _t.TypeError, T6 = function(t10, e) {
  var r = t10.exec;
  if (Ar(r)) {
    var n = Ze(r, t10, e);
    return n !== null && Cn(n), n;
  }
  if (na(t10) === "RegExp") return Ze(Kd, t10, e);
  throw nft("RegExp#exec called on incompatible receiver");
}, Ns = rR.UNSUPPORTED_Y, oft = Math.min, hR = [].push, ift = Rt(/./.exec), Is = Rt(hR), yf = Rt("".slice);
dR("split", (function(t10, e, r) {
  var n;
  return n = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(o, i) {
    var a, u, s = Dr(Ea(this)), l = i === void 0 ? 4294967295 : i >>> 0;
    if (l === 0) return [];
    if (o === void 0) return [s];
    if (!yo(a = o) || !((u = a[Kct]) !== void 0 ? u : na(a) == "RegExp")) return Ze(e, s, o, l);
    for (var c, f, d, p = [], v = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (o.sticky ? "y" : ""), y = 0, g = new RegExp(o.source, v + "g"); (c = Ze(Kd, g, s)) && !((f = g.lastIndex) > y && (Is(p, yf(s, y, c.index)), c.length > 1 && c.index < s.length && fR(hR, p, TB(c, 1)), d = c[0].length, y = f, p.length >= l)); ) g.lastIndex === c.index && g.lastIndex++;
    return y === s.length ? !d && ift(g, "") || Is(p, "") : Is(p, yf(s, y)), p.length > l ? TB(p, 0, l) : p;
  } : "0".split(void 0, 0).length ? function(o, i) {
    return o === void 0 && i === 0 ? [] : Ze(e, this, o, i);
  } : e, [function(o, i) {
    var a = Ea(this), u = o == null ? void 0 : s8(o, t10);
    return u ? Ze(u, o, a, i) : Ze(n, Dr(a), o, i);
  }, function(o, i) {
    var a = Cn(this), u = Dr(o), s = r(n, a, u, i, n !== e);
    if (s.done) return s.value;
    var l = (function(w, D) {
      var x, C = Cn(w).constructor;
      return C === void 0 || (x = Cn(C)[Xct]) == null ? D : (function(O) {
        if (D8(O)) return O;
        throw Yct(GL(O) + " is not a constructor");
      })(x);
    })(a, RegExp), c = a.unicode, f = (a.ignoreCase ? "i" : "") + (a.multiline ? "m" : "") + (a.unicode ? "u" : "") + (Ns ? "g" : "y"), d = new l(Ns ? "^(?:" + a.source + ")" : a, f), p = i === void 0 ? 4294967295 : i >>> 0;
    if (p === 0) return [];
    if (u.length === 0) return T6(d, u) === null ? [u] : [];
    for (var v = 0, y = 0, g = []; y < u.length; ) {
      d.lastIndex = Ns ? 0 : y;
      var m, h = T6(d, Ns ? yf(u, y) : u);
      if (h === null || (m = oft(y8(d.lastIndex + (Ns ? y : 0)), u.length)) === v) y = pR(u, y, c);
      else {
        if (Is(g, yf(u, v, y)), g.length === p) return g;
        for (var b = 1; b <= h.length - 1; b++) if (Is(g, h[b]), g.length === p) return g;
        y = v = m;
      }
    }
    return Is(g, yf(u, v)), g;
  }];
}), !!qe((function() {
  var t10 = /(?:)/, e = t10.exec;
  t10.exec = function() {
    return e.apply(this, arguments);
  };
  var r = "ab".split(t10);
  return r.length !== 2 || r[0] !== "a" || r[1] !== "b";
})), Ns);
var _6 = `	
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`, _B = Rt("".replace), P0 = "[" + _6 + "]", aft = RegExp("^" + P0 + P0 + "*"), uft = RegExp(P0 + P0 + "*$"), sft = function(t10) {
  return function(e) {
    var r = Dr(Ea(e));
    return 1 & t10 && (r = _B(r, aft, "")), 2 & t10 && (r = _B(r, uft, "")), r;
  };
}, lft = { trim: sft(3) }, cft = v8.PROPER, fft = lft.trim;
function gR(t10) {
  return t10.length ? t10[0].tagName.toLowerCase() : "";
}
Da({ target: "String", proto: true, forced: (function(t10) {
  return qe((function() {
    return !!_6[t10]() || "\u200B\x85\u180E"[t10]() !== "\u200B\x85\u180E" || cft && _6[t10].name !== t10;
  }));
})("trim") }, { trim: function() {
  return fft(this);
} }), Da({ global: true }, { globalThis: _t }), An && (B.fn.append = An), Ao && (B.fn.on = Ao), ha && (B.fn.focus = ha), Sn && (B.fn.attr = Sn), So && (B.fn.val = So), pa && (B.fn.html = pa), xl && (B.fn.dataset = xl), El && (B.fn.addClass = El), Dl && (B.fn.removeClass = Dl), kl && (B.fn.children = kl), Iv && (B.fn.each = Iv), Ol && (B.fn.find = Ol);
var Yd = false, vR = 0, yR = 0, Xd = null, Zd = null, ld = B("body");
function mR(t10) {
  Yd = false, Zd = null, Xd = null, ld.off("mousemove", bR), ld.off("mouseup", mR);
}
ld.on("mousedown", (function(t10) {
  var e = t10.target;
  if ((e.tagName === "TH" || e.tagName === "TD") && e.style.cursor === "col-resize") {
    e.style.cursor = "auto", t10.preventDefault(), Yd = true;
    var r = t10.clientX;
    vR = r;
    var n = e.getBoundingClientRect().width;
    yR = n, ld.on("mousemove", bR), ld.on("mouseup", mR);
  }
}));
var bR = zu((function(t10) {
  if (Yd && Zd != null && Xd != null) {
    t10.preventDefault();
    var e = t10.clientX, r = yR + (e - vR);
    (r = Math.floor(100 * r) / 100) < 30 && (r = 30), N.setNodes(Zd, { width: r.toString() }, { at: Xd });
  }
}), 100), dft = { type: "table", renderElem: function(t10, e, r) {
  var n = (function(u, s) {
    if (u.isDisabled()) return false;
    var l = u.selection;
    if (l == null || L.isCollapsed(l)) return true;
    var c = l.anchor, f = l.focus, d = A.findPath(u, s), p = E.start(u, d), v = E.end(u, d), y = Bt.compare(c, v) <= 0 && Bt.compare(c, p) >= 0, g = Bt.compare(f, v) <= 0 && Bt.compare(f, p) >= 0;
    return !!(y && g && j.equals(c.path.slice(0, 3), f.path.slice(0, 3)));
  })(r, t10), o = t10.width, i = o === void 0 ? "auto" : o, a = bt("div", { className: "table-container", "data-selected": A.isNodeSelected(r, t10), on: { mousedown: function(u) {
    if (u.target.tagName === "DIV" && u.preventDefault(), !r.isDisabled()) {
      var s = A.findPath(r, t10), l = E.start(r, s), c = r.selection;
      c != null ? c.anchor.path[0] !== s[0] && r.select(l) : r.select(l);
    }
  } } }, bt("table", { width: i, contentEditable: n }, bt("colgroup", null, um(t10).map((function(u) {
    var s = u.width;
    return bt("col", { width: s === void 0 ? "auto" : s });
  }))), bt("tbody", null, e)));
  return a;
} }, pft = { type: "table-row", renderElem: function(t10, e, r) {
  return bt("tr", null, e);
} }, hft = { type: "table-cell", renderElem: function(t10, e, r) {
  var n = (function(d, p) {
    var v = A.getParentNode(d, p);
    if (v == null) return false;
    var y = A.getParentNode(d, v);
    return y != null && um(y).some((function(g) {
      return g === p;
    }));
  })(r, t10), o = t10, i = o.colSpan, a = i === void 0 ? 1 : i, u = o.rowSpan, s = u === void 0 ? 1 : u, l = o.isHeader, c = l !== void 0 && l;
  if (!n) return bt("td", { colSpan: a, rowSpan: s }, e);
  var f = bt(c ? "th" : "td", { colSpan: a, rowSpan: s, style: { borderRightWidth: "3px" }, on: { mousemove: zu((function(d) {
    var p = this.elm;
    if (p != null) {
      var v = p.getBoundingClientRect(), y = v.left, g = v.width, m = v.top, h = v.height, b = d.clientX, w = d.clientY;
      Yd || (b > y + g - 5 && b < y + g && w > m && w < m + h ? (p.style.cursor = "col-resize", Zd = r, Xd = A.findPath(r, t10)) : Yd || (p.style.cursor = "auto", Zd = null, Xd = null));
    }
  }), 100) } }, e);
  return f;
} }, gft = { selector: "table", preParseHtml: function(t10) {
  var e = B(t10);
  if (gR(e) !== "table") return t10;
  var r = e.find("tbody");
  if (r.length === 0) return t10;
  var n = e.find("tr");
  return e.append(n), r.remove(), e[0];
} }, vft = am.filter;
Da({ target: "Array", proto: true, forced: !C8("filter") }, { filter: function(t10) {
  return vft(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} });
var yft = Math.floor, C2 = Rt("".charAt), mft = Rt("".replace), x2 = Rt("".slice), bft = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, wft = /\$([$&'`]|\d{1,2})/g, Eft = function(t10, e, r, n, o, i) {
  var a = r + t10.length, u = n.length, s = wft;
  return o !== void 0 && (o = f8(o), s = bft), mft(i, s, (function(l, c) {
    var f;
    switch (C2(c, 0)) {
      case "$":
        return "$";
      case "&":
        return t10;
      case "`":
        return x2(e, 0, r);
      case "'":
        return x2(e, a);
      case "<":
        f = o[x2(c, 1, -1)];
        break;
      default:
        var d = +c;
        if (d === 0) return l;
        if (d > u) {
          var p = yft(d / 10);
          return p === 0 ? l : p <= u ? n[p - 1] === void 0 ? C2(c, 1) : n[p - 1] + C2(c, 1) : l;
        }
        f = n[d - 1];
    }
    return f === void 0 ? "" : f;
  }));
}, P6 = _n("replace"), Dft = Math.max, Cft = Math.min, xft = Rt([].concat), S2 = Rt([].push), PB = Rt("".indexOf), jB = Rt("".slice), Sft = "a".replace(/./, "$0") === "$0", NB = !!/./[P6] && /./[P6]("a", "$0") === "";
dR("replace", (function(t10, e, r) {
  var n = NB ? "$" : "$0";
  return [function(o, i) {
    var a = Ea(this), u = o == null ? void 0 : s8(o, P6);
    return u ? Ze(u, o, a, i) : Ze(e, Dr(a), o, i);
  }, function(o, i) {
    var a = Cn(this), u = Dr(o);
    if (typeof i == "string" && PB(i, n) === -1 && PB(i, "$<") === -1) {
      var s = r(e, a, u, i);
      if (s.done) return s.value;
    }
    var l = Ar(i);
    l || (i = Dr(i));
    var c = a.global;
    if (c) {
      var f = a.unicode;
      a.lastIndex = 0;
    }
    for (var d = []; ; ) {
      var p = T6(a, u);
      if (p === null || (S2(d, p), !c)) break;
      Dr(p[0]) === "" && (a.lastIndex = pR(u, y8(a.lastIndex), f));
    }
    for (var v, y = "", g = 0, m = 0; m < d.length; m++) {
      for (var h = Dr((p = d[m])[0]), b = Dft(Cft(om(p.index), u.length), 0), w = [], D = 1; D < p.length; D++) S2(w, (v = p[D]) === void 0 ? v : String(v));
      var x = p.groups;
      if (l) {
        var C = xft([h], w, b, u);
        x !== void 0 && S2(C, x);
        var O = Dr(fR(i, void 0, C));
      } else O = Eft(h, u, b, w, x, i);
      b >= g && (y += jB(u, g, b) + O, g = b + h.length);
    }
    return y + jB(u, g);
  }];
}), !!qe((function() {
  var t10 = /./;
  return t10.exec = function() {
    var e = [];
    return e.groups = { a: "7" }, e;
  }, "".replace(t10, "$<a>") !== "7";
})) || !Sft || NB);
var Aft = { selector: "td:not([data-w-e-type]),th:not([data-w-e-type])", parseElemHtml: function(t10, e, r) {
  var n = B(t10);
  (e = e.filter((function(u) {
    return !!ot.isText(u) || !!r.isInline(u);
  }))).length === 0 && (e = [{ text: n.text().replace(/\s+/gm, " ") }]);
  var o = parseInt(n.attr("colSpan") || "1"), i = parseInt(n.attr("rowSpan") || "1"), a = n.attr("width") || "auto";
  return { type: "table-cell", isHeader: gR(n) === "th", colSpan: o, rowSpan: i, width: a, children: e };
} }, Oft = { selector: "tr:not([data-w-e-type])", parseElemHtml: function(t10, e, r) {
  return { type: "table-row", children: e.filter((function(n) {
    return A.getNodeType(n) === "table-cell";
  })) };
} }, kft = { selector: "table:not([data-w-e-type])", parseElemHtml: function(t10, e, r) {
  var n = B(t10), o = "auto";
  return (function(i, a) {
    for (var u = "", s = (i.attr("style") || "").split(";"), l = s.length, c = 0; c < l; c++) {
      var f = s[c];
      if (f) {
        var d = f.split(":");
        d[0].trim() === "width" && (u = d[1].trim());
      }
    }
    return u;
  })(n) === "100%" && (o = "100%"), n.attr("width") === "100%" && (o = "100%"), { type: "table", width: o, children: e.filter((function(i) {
    return A.getNodeType(i) === "table-row";
  })) };
} }, Bft = (function() {
  function t10() {
    this.title = Q("tableModule.insertTable"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>', this.tag = "button", this.showDropPanel = true, this.$content = null;
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.exec = function(e, r) {
  }, t10.prototype.isDisabled = function(e) {
    var r = e.selection;
    return r == null || !L.isCollapsed(r) || !!A.getSelectedElems(e).some((function(n) {
      var o = A.getNodeType(n);
      return o === "pre" || o === "table" || o === "list-item" || !!e.isVoid(n);
    }));
  }, t10.prototype.getPanelContentElem = function(e) {
    var r = this;
    if (this.$content) return this.$content[0];
    for (var n = B('<div class="w-e-panel-content-table"></div>'), o = B("<span>0 &times; 0</span>"), i = B("<table></table>"), a = 0; a < 10; a++) {
      for (var u = B("<tr></tr>"), s = 0; s < 10; s++) {
        var l = B("<td></td>");
        l.attr("data-x", s.toString()), l.attr("data-y", a.toString()), u.append(l), l.on("mouseenter", (function(c) {
          var f = c.target;
          if (f != null) {
            var d = B(f).dataset(), p = d.x, v = d.y;
            o[0].innerHTML = p + 1 + " &times; " + (v + 1), i.children().each((function(y) {
              B(y).children().each((function(g) {
                var m = B(g), h = m.dataset(), b = h.x, w = h.y;
                b <= p && w <= v ? m.addClass("active") : m.removeClass("active");
              }));
            }));
          }
        })), l.on("click", (function(c) {
          c.preventDefault();
          var f = c.target;
          if (f != null) {
            var d = B(f).dataset(), p = d.x, v = d.y;
            r.insertTable(e, v + 1, p + 1);
          }
        }));
      }
      i.append(u);
    }
    return n.append(i), n.append(o), this.$content = n, n[0];
  }, t10.prototype.insertTable = function(e, r, n) {
    var o = parseInt(r, 10), i = parseInt(n, 10);
    if (o && i && !(o <= 0 || i <= 0)) {
      A.isSelectedEmptyParagraph(e) && N.removeNodes(e, { mode: "highest" });
      var a = (function(u, s) {
        for (var l = [], c = 0; c < u; c++) {
          for (var f = [], d = 0; d < s; d++) {
            var p = { type: "table-cell", children: [{ text: "" }] };
            c === 0 && (p.isHeader = true), f.push(p);
          }
          l.push({ type: "table-row", children: f });
        }
        return { type: "table", width: "auto", children: l };
      })(o, i);
      N.insertNodes(e, a, { mode: "highest" });
    }
  }, t10;
})(), Fft = (function() {
  function t10() {
    this.title = Q("tableModule.deleteTable"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || A.getSelectedNodeByType(e, "table") == null;
  }, t10.prototype.exec = function(e, r) {
    this.isDisabled(e) || N.removeNodes(e, { mode: "highest" });
  }, t10;
})(), Tft = (function() {
  function t10() {
    this.title = Q("tableModule.insertRow"), this.iconSvg = '<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    var r = e.selection;
    return r == null || !L.isCollapsed(r) || A.getSelectedNodeByType(e, "table") == null;
  }, t10.prototype.exec = function(e, r) {
    if (!this.isDisabled(e)) {
      var n = Zn(E.nodes(e, { match: function(p) {
        return A.checkNodeType(p, "table-cell");
      }, universal: true }), 1), o = Zn(n[0], 2), i = o[0], a = o[1], u = A.getParentNode(e, i), s = (u == null ? void 0 : u.children.length) || 0;
      if (s !== 0) {
        for (var l = { type: "table-row", children: [] }, c = 0; c < s; c++) l.children.push({ type: "table-cell", children: [{ text: "" }] });
        var f = j.parent(a), d = j.next(f);
        N.insertNodes(e, l, { at: d });
      }
    }
  }, t10;
})(), _ft = (function() {
  function t10() {
    this.title = Q("tableModule.deleteRow"), this.iconSvg = '<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    var r = e.selection;
    return r == null || !L.isCollapsed(r) || A.getSelectedNodeByType(e, "table-row") == null;
  }, t10.prototype.exec = function(e, r) {
    if (!this.isDisabled(e)) {
      var n = Zn(E.nodes(e, { match: function(s) {
        return A.checkNodeType(s, "table-row");
      }, universal: true }), 1), o = Zn(n[0], 2), i = o[0], a = o[1], u = A.getParentNode(e, i);
      ((u == null ? void 0 : u.children.length) || 0) <= 1 ? N.removeNodes(e, { mode: "highest" }) : N.removeNodes(e, { at: a });
    }
  }, t10;
})(), IB = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }, A2 = p8("span").classList, LB = A2 && A2.constructor && A2.constructor.prototype, Pft = LB === Object.prototype ? void 0 : LB, jft = am.forEach, Nft = (function(t10, e) {
  var r = [].forEach;
  return !!r && qe((function() {
    r.call(null, (function() {
      throw 1;
    }), 1);
  }));
})(), O2 = Nft ? [].forEach : function(t10) {
  return jft(this, t10, arguments.length > 1 ? arguments[1] : void 0);
}, wR = function(t10) {
  if (t10 && t10.forEach !== O2) try {
    zl(t10, "forEach", O2);
  } catch {
    t10.forEach = O2;
  }
};
for (var k2 in IB) IB[k2] && wR(_t[k2] && _t[k2].prototype);
wR(Pft);
var Ift = (function() {
  function t10() {
    this.title = Q("tableModule.insertCol"), this.iconSvg = '<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    var r = e.selection;
    return r == null || !L.isCollapsed(r) || A.getSelectedNodeByType(e, "table") == null;
  }, t10.prototype.exec = function(e, r) {
    if (!this.isDisabled(e)) {
      var n = Zn(E.nodes(e, { match: function(l) {
        return A.checkNodeType(l, "table-cell");
      }, universal: true }), 1), o = Zn(n[0], 2), i = o[0], a = o[1], u = A.getParentNode(e, i);
      if (u != null) {
        var s = A.getParentNode(e, u);
        s != null && (s.children || []).forEach((function(l, c) {
          ct.isElement(l) && (l.children || []).forEach((function(f) {
            var d = A.findPath(e, f);
            if (d.length === a.length && $L(d.slice(-1), a.slice(-1))) {
              var p = { type: "table-cell", children: [{ text: "" }] };
              c === 0 && lR(s) && (p.isHeader = true), N.insertNodes(e, p, { at: d });
            }
          }));
        }));
      }
    }
  }, t10;
})(), Lft = (function() {
  function t10() {
    this.title = Q("tableModule.deleteCol"), this.iconSvg = '<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    var r = e.selection;
    return r == null || !L.isCollapsed(r) || A.getSelectedNodeByType(e, "table-cell") == null;
  }, t10.prototype.exec = function(e, r) {
    if (!this.isDisabled(e)) {
      var n = Zn(E.nodes(e, { match: function(c) {
        return A.checkNodeType(c, "table-cell");
      }, universal: true }), 1), o = Zn(n[0], 2), i = o[0], a = o[1], u = A.getParentNode(e, i), s = (u == null ? void 0 : u.children.length) || 0;
      if (!u || s <= 1) N.removeNodes(e, { mode: "highest" });
      else {
        var l = A.getParentNode(e, u);
        l != null && (l.children || []).forEach((function(c) {
          ct.isElement(c) && (c.children || []).forEach((function(f) {
            var d = A.findPath(e, f);
            d.length === a.length && $L(d.slice(-1), a.slice(-1)) && N.removeNodes(e, { at: d });
          }));
        }));
      }
    }
  }, t10;
})(), Rft = (function() {
  function t10() {
    this.title = Q("tableModule.header"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    var r = A.getSelectedNodeByType(e, "table");
    return r != null && lR(r);
  }, t10.prototype.isActive = function(e) {
    return !!this.getValue(e);
  }, t10.prototype.isDisabled = function(e) {
    var r = e.selection;
    return r == null || !L.isCollapsed(r) || A.getSelectedNodeByType(e, "table") == null;
  }, t10.prototype.exec = function(e, r) {
    if (!this.isDisabled(e)) {
      var n = !r, o = A.getSelectedNodeByType(e, "table");
      o != null && um(o).forEach((function(i) {
        return N.setNodes(e, { isHeader: n }, { at: A.findPath(e, i) });
      }));
    }
  }, t10;
})(), Mft = (function() {
  function t10() {
    this.title = Q("tableModule.widthAuto"), this.iconSvg = '<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    var r = A.getSelectedNodeByType(e, "table");
    return r != null && r.width === "100%";
  }, t10.prototype.isActive = function(e) {
    return !!this.getValue(e);
  }, t10.prototype.isDisabled = function(e) {
    var r = e.selection;
    return r == null || !L.isCollapsed(r) || A.getSelectedNodeByType(e, "table") == null;
  }, t10.prototype.exec = function(e, r) {
    if (!this.isDisabled(e)) {
      var n = { width: r ? "auto" : "100%" };
      N.setNodes(e, n, { mode: "highest" });
    }
  }, t10;
})(), zft = { renderElems: [dft, pft, hft], elemsToHtml: [{ type: "table", elemToHtml: function(t10, e) {
  var r = t10.width;
  return '<table style="width: ' + (r === void 0 ? "auto" : r) + ';"><tbody>' + e + "</tbody></table>";
} }, { type: "table-row", elemToHtml: function(t10, e) {
  return "<tr>" + e + "</tr>";
} }, { type: "table-cell", elemToHtml: function(t10, e) {
  var r = t10, n = r.colSpan, o = n === void 0 ? 1 : n, i = r.rowSpan, a = i === void 0 ? 1 : i, u = r.isHeader, s = u !== void 0 && u, l = r.width, c = s ? "th" : "td";
  return "<" + c + ' colSpan="' + o + '" rowSpan="' + a + '" width="' + (l === void 0 ? "auto" : l) + '">' + e + "</" + c + ">";
} }], preParseHtml: [gft], parseElemsHtml: [Aft, Oft, kft], menus: [{ key: "insertTable", factory: function() {
  return new Bft();
} }, { key: "deleteTable", factory: function() {
  return new Fft();
} }, { key: "insertTableRow", factory: function() {
  return new Tft();
} }, { key: "deleteTableRow", factory: function() {
  return new _ft();
} }, { key: "insertTableCol", factory: function() {
  return new Ift();
} }, { key: "deleteTableCol", factory: function() {
  return new Lft();
} }, { key: "tableHeader", factory: function() {
  return new Rft();
} }, { key: "tableFullWidth", factory: function() {
  return new Mft();
} }], editorPlugin: function(t10) {
  var e = t10.insertBreak, r = t10.deleteBackward, n = t10.deleteForward, o = t10.normalizeNode, i = t10.insertData, a = t10.handleTab, u = t10.selectAll, s = t10;
  return s.insertBreak = function() {
    A.getSelectedNodeByType(s, "table") == null ? e() : s.insertText(`
`);
  }, s.deleteBackward = function(l) {
    if (!DB(s)) {
      var c = s.selection;
      if (c) {
        var f = E.before(s, c);
        if (f) {
          var d = CB(s, f), p = CB(s, c);
          if (d && !p) return;
        }
      }
      r(l);
    }
  }, s.handleTab = function() {
    var l;
    if (A.getSelectedNodeByType(s, "table")) {
      var c = E.above(t10);
      A.checkNodeType(c[0], "table-cell") && N.select(t10, c[1]);
      var f = E.next(t10);
      if (f) f[0] && f[0].text && (f = (l = E.above(t10, { at: f[1] })) !== null && l !== void 0 ? l : f), N.select(t10, f[1]);
      else {
        var d = s.children || [], p = d.length;
        if (A.checkNodeType(d[p - 1], "table")) {
          var v = A.genEmptyParagraph();
          N.insertNodes(s, v, { at: [p] }), s.handleTab();
        }
      }
    } else a();
  }, s.deleteForward = function(l) {
    DB(s) || n(l);
  }, s.normalizeNode = function(l) {
    var c = Zn(l, 2), f = c[0], d = c[1];
    if (A.getNodeType(f) !== "table") return o([f, d]);
    if (A.isLastNode(s, f)) {
      var p = A.genEmptyParagraph();
      N.insertNodes(s, p, { at: [d[0] + 1] });
    }
  }, s.insertData = function(l) {
    if (A.getSelectedNodeByType(s, "table") != null) {
      var c = l.getData("text/plain");
      c === `
` || /<img[^>]+>/.test(l.getData("text/html")) ? i(l) : E.insertText(s, c);
    } else i(l);
  }, s.selectAll = function() {
    var l = s.selection;
    if (l != null) {
      var c = A.getSelectedNodeByType(s, "table-cell");
      if (c != null) {
        var f = l.anchor, d = l.focus;
        if (j.equals(f.path.slice(0, 3), d.path.slice(0, 3))) if (J.string(c).length !== 0) {
          var p = A.findPath(s, c), v = { anchor: E.start(s, p), focus: E.end(s, p) };
          s.select(v);
        } else u();
        else u();
      } else u();
    } else u();
  }, s;
} };
Wr("en", { videoModule: { delete: "Delete", uploadVideo: "Upload video", insertVideo: "Insert video", videoSrc: "Video source", videoSrcPlaceHolder: "Video file url, or third-party <iframe>", videoPoster: "Video poster", videoPosterPlaceHolder: "Poster image url", ok: "Ok", editSize: "Edit size", width: "Width", height: "Height" } }), Wr("zh-CN", { videoModule: { delete: "\u5220\u9664\u89C6\u9891", uploadVideo: "\u4E0A\u4F20\u89C6\u9891", insertVideo: "\u63D2\u5165\u89C6\u9891", videoSrc: "\u89C6\u9891\u5730\u5740", videoSrcPlaceHolder: "\u89C6\u9891\u6587\u4EF6 url \u6216\u7B2C\u4E09\u65B9 <iframe>", videoPoster: "\u89C6\u9891\u5C01\u9762", videoPosterPlaceHolder: "\u5C01\u9762\u56FE\u7247 url", ok: "\u786E\u5B9A", editSize: "\u4FEE\u6539\u5C3A\u5BF8", width: "\u5BBD\u5EA6", height: "\u9AD8\u5EA6" } });
var j0 = function() {
  return j0 = Object.assign || function(t10) {
    for (var e, r = 1, n = arguments.length; r < n; r++) for (var o in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, o) && (t10[o] = e[o]);
    return t10;
  }, j0.apply(this, arguments);
};
function sm(t10, e, r, n) {
  return new (r || (r = Promise))((function(o, i) {
    function a(l) {
      try {
        s(n.next(l));
      } catch (c) {
        i(c);
      }
    }
    function u(l) {
      try {
        s(n.throw(l));
      } catch (c) {
        i(c);
      }
    }
    function s(l) {
      var c;
      l.done ? o(l.value) : (c = l.value, c instanceof r ? c : new r((function(f) {
        f(c);
      }))).then(a, u);
    }
    s((n = n.apply(t10, [])).next());
  }));
}
function lm(t10, e) {
  var r, n, o, i, a = { label: 0, sent: function() {
    if (1 & o[0]) throw o[1];
    return o[1];
  }, trys: [], ops: [] };
  return i = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
    return this;
  }), i;
  function u(s) {
    return function(l) {
      return (function(c) {
        if (r) throw new TypeError("Generator is already executing.");
        for (; a; ) try {
          if (r = 1, n && (o = 2 & c[0] ? n.return : c[0] ? n.throw || ((o = n.return) && o.call(n), 0) : n.next) && !(o = o.call(n, c[1])).done) return o;
          switch (n = 0, o && (c = [2 & c[0], o.value]), c[0]) {
            case 0:
            case 1:
              o = c;
              break;
            case 4:
              return a.label++, { value: c[1], done: false };
            case 5:
              a.label++, n = c[1], c = [0];
              continue;
            case 7:
              c = a.ops.pop(), a.trys.pop();
              continue;
            default:
              if (!((o = (o = a.trys).length > 0 && o[o.length - 1]) || c[0] !== 6 && c[0] !== 2)) {
                a = 0;
                continue;
              }
              if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
                a.label = c[1];
                break;
              }
              if (c[0] === 6 && a.label < o[1]) {
                a.label = o[1], o = c;
                break;
              }
              if (o && a.label < o[2]) {
                a.label = o[2], a.ops.push(c);
                break;
              }
              o[2] && a.ops.pop(), a.trys.pop();
              continue;
          }
          c = e.call(t10, a);
        } catch (f) {
          c = [6, f], n = 0;
        } finally {
          r = o = 0;
        }
        if (5 & c[0]) throw c[1];
        return { value: c[0] ? c[1] : void 0, done: true };
      })([s, l]);
    };
  }
}
function Fu(t10, e) {
  var r = typeof Symbol == "function" && t10[Symbol.iterator];
  if (!r) return t10;
  var n, o, i = r.call(t10), a = [];
  try {
    for (; (e === void 0 || e-- > 0) && !(n = i.next()).done; ) a.push(n.value);
  } catch (u) {
    o = { error: u };
  } finally {
    try {
      n && !n.done && (r = i.return) && r.call(i);
    } finally {
      if (o) throw o.error;
    }
  }
  return a;
}
function $ft(t10) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var e, r = t10[Symbol.asyncIterator];
  return r ? r.call(t10) : (t10 = (function(o) {
    var i = typeof Symbol == "function" && Symbol.iterator, a = i && o[i], u = 0;
    if (a) return a.call(o);
    if (o && typeof o.length == "number") return { next: function() {
      return o && u >= o.length && (o = void 0), { value: o && o[u++], done: !o };
    } };
    throw new TypeError(i ? "Object is not iterable." : "Symbol.iterator is not defined.");
  })(t10), e = {}, n("next"), n("throw"), n("return"), e[Symbol.asyncIterator] = function() {
    return this;
  }, e);
  function n(o) {
    e[o] = t10[o] && function(i) {
      return new Promise((function(a, u) {
        (function(s, l, c, f) {
          Promise.resolve(f).then((function(d) {
            s({ value: d, done: c });
          }), l);
        })(a, u, (i = t10[o](i)).done, i.value);
      }));
    };
  }
}
var RB = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function S8(t10) {
  var e = { exports: {} };
  return t10(e, e.exports), e.exports;
}
var Fi, Yg, ag = function(t10) {
  return t10 && t10.Math == Math && t10;
}, rt = ag(typeof globalThis == "object" && globalThis) || ag(typeof window == "object" && window) || ag(typeof self == "object" && self) || ag(typeof RB == "object" && RB) || /* @__PURE__ */ (function() {
  return this;
})() || Function("return this")(), ce = function(t10) {
  try {
    return !!t10();
  } catch {
    return true;
  }
}, ko = !ce((function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
})), mf = Function.prototype.call, le = mf.bind ? mf.bind(mf) : function() {
  return mf.apply(mf, arguments);
}, MB = {}.propertyIsEnumerable, zB = Object.getOwnPropertyDescriptor, Hft = { f: zB && !MB.call({ 1: 2 }, 1) ? function(t10) {
  var e = zB(this, t10);
  return !!e && e.enumerable;
} : MB }, cm = function(t10, e) {
  return { enumerable: !(1 & t10), configurable: !(2 & t10), writable: !(4 & t10), value: e };
}, ER = Function.prototype, j6 = ER.bind, N6 = ER.call, Vft = j6 && j6.bind(N6), Ct = j6 ? function(t10) {
  return t10 && Vft(N6, t10);
} : function(t10) {
  return t10 && function() {
    return N6.apply(t10, arguments);
  };
}, Uft = Ct({}.toString), Wft = Ct("".slice), Do = function(t10) {
  return Wft(Uft(t10), 8, -1);
}, B2 = rt.Object, Gft = Ct("".split), A8 = ce((function() {
  return !B2("z").propertyIsEnumerable(0);
})) ? function(t10) {
  return Do(t10) == "String" ? Gft(t10, "") : B2(t10);
} : B2, qft = rt.TypeError, Qp = function(t10) {
  if (t10 == null) throw qft("Can't call method on " + t10);
  return t10;
}, Fa = function(t10) {
  return A8(Qp(t10));
}, oe = function(t10) {
  return typeof t10 == "function";
}, me = function(t10) {
  return typeof t10 == "object" ? t10 !== null : oe(t10);
}, Kft = function(t10) {
  return oe(t10) ? t10 : void 0;
}, Xu = function(t10, e) {
  return arguments.length < 2 ? Kft(rt[t10]) : rt[t10] && rt[t10][e];
}, Jd = Ct({}.isPrototypeOf), dl = Xu("navigator", "userAgent") || "", $B = rt.process, HB = rt.Deno, VB = $B && $B.versions || HB && HB.version, UB = VB && VB.v8;
UB && (Yg = (Fi = UB.split("."))[0] > 0 && Fi[0] < 4 ? 1 : +(Fi[0] + Fi[1])), !Yg && dl && (!(Fi = dl.match(/Edge\/(\d+)/)) || Fi[1] >= 74) && (Fi = dl.match(/Chrome\/(\d+)/)) && (Yg = +Fi[1]);
var Qd = Yg, I6 = !!Object.getOwnPropertySymbols && !ce((function() {
  var t10 = /* @__PURE__ */ Symbol();
  return !String(t10) || !(Object(t10) instanceof Symbol) || !Symbol.sham && Qd && Qd < 41;
})), O8 = I6 && !Symbol.sham && typeof Symbol.iterator == "symbol", Yft = rt.Object, F2 = O8 ? function(t10) {
  return typeof t10 == "symbol";
} : function(t10) {
  var e = Xu("Symbol");
  return oe(e) && Jd(e.prototype, Yft(t10));
}, Xft = rt.String, N0 = function(t10) {
  try {
    return Xft(t10);
  } catch {
    return "Object";
  }
}, Zft = rt.TypeError, Ca = function(t10) {
  if (oe(t10)) return t10;
  throw Zft(N0(t10) + " is not a function");
}, tp = function(t10, e) {
  var r = t10[e];
  return r == null ? void 0 : Ca(r);
}, Jft = rt.TypeError, Qft = Object.defineProperty, k8 = function(t10, e) {
  try {
    Qft(rt, t10, { value: e, configurable: true, writable: true });
  } catch {
    rt[t10] = e;
  }
  return e;
}, ia = rt["__core-js_shared__"] || k8("__core-js_shared__", {}), B8 = S8((function(t10) {
  (t10.exports = function(e, r) {
    return ia[e] || (ia[e] = r !== void 0 ? r : {});
  })("versions", []).push({ version: "3.19.3", mode: "global", copyright: "\xA9 2021 Denis Pushkarev (zloirock.ru)" });
})), tdt = rt.Object, fm = function(t10) {
  return tdt(Qp(t10));
}, edt = Ct({}.hasOwnProperty), We = Object.hasOwn || function(t10, e) {
  return edt(fm(t10), e);
}, rdt = 0, ndt = Math.random(), odt = Ct(1 .toString), F8 = function(t10) {
  return "Symbol(" + (t10 === void 0 ? "" : t10) + ")_" + odt(++rdt + ndt, 36);
}, bf = B8("wks"), Tu = rt.Symbol, WB = Tu && Tu.for, idt = O8 ? Tu : Tu && Tu.withoutSetter || F8, Re = function(t10) {
  if (!We(bf, t10) || !I6 && typeof bf[t10] != "string") {
    var e = "Symbol." + t10;
    I6 && We(Tu, t10) ? bf[t10] = Tu[t10] : bf[t10] = O8 && WB ? WB(e) : idt(e);
  }
  return bf[t10];
}, adt = rt.TypeError, udt = Re("toPrimitive"), T8 = function(t10) {
  var e = (function(r, n) {
    if (!me(r) || F2(r)) return r;
    var o, i = tp(r, udt);
    if (i) {
      if (o = le(i, r, n), !me(o) || F2(o)) return o;
      throw adt("Can't convert object to primitive value");
    }
    return (function(a, u) {
      var s, l;
      if (oe(s = a.toString) && !me(l = le(s, a)) || oe(s = a.valueOf) && !me(l = le(s, a))) return l;
      throw Jft("Can't convert object to primitive value");
    })(r);
  })(t10, "string");
  return F2(e) ? e : e + "";
}, L6 = rt.document, sdt = me(L6) && me(L6.createElement), ep = function(t10) {
  return sdt ? L6.createElement(t10) : {};
}, DR = !ko && !ce((function() {
  return Object.defineProperty(ep("div"), "a", { get: function() {
    return 7;
  } }).a != 7;
})), GB = Object.getOwnPropertyDescriptor, _8 = { f: ko ? GB : function(t10, e) {
  if (t10 = Fa(t10), e = T8(e), DR) try {
    return GB(t10, e);
  } catch {
  }
  if (We(t10, e)) return cm(!le(Hft.f, t10, e), t10[e]);
} }, ldt = rt.String, cdt = rt.TypeError, sr = function(t10) {
  if (me(t10)) return t10;
  throw cdt(ldt(t10) + " is not an object");
}, fdt = rt.TypeError, qB = Object.defineProperty, ci = { f: ko ? qB : function(t10, e, r) {
  if (sr(t10), e = T8(e), sr(r), DR) try {
    return qB(t10, e, r);
  } catch {
  }
  if ("get" in r || "set" in r) throw fdt("Accessors not supported");
  return "value" in r && (t10[e] = r.value), t10;
} }, aa = ko ? function(t10, e, r) {
  return ci.f(t10, e, cm(1, r));
} : function(t10, e, r) {
  return t10[e] = r, t10;
}, ddt = Ct(Function.toString);
oe(ia.inspectSource) || (ia.inspectSource = function(t10) {
  return ddt(t10);
});
var I0, cd, L0, dm = ia.inspectSource, KB = rt.WeakMap, CR = oe(KB) && /native code/.test(dm(KB)), YB = B8("keys"), P8 = function(t10) {
  return YB[t10] || (YB[t10] = F8(t10));
}, pm = {}, R6 = rt.TypeError, pdt = rt.WeakMap;
if (CR || ia.state) {
  var qa = ia.state || (ia.state = new pdt()), hdt = Ct(qa.get), XB = Ct(qa.has), gdt = Ct(qa.set);
  I0 = function(t10, e) {
    if (XB(qa, t10)) throw new R6("Object already initialized");
    return e.facade = t10, gdt(qa, t10, e), e;
  }, cd = function(t10) {
    return hdt(qa, t10) || {};
  }, L0 = function(t10) {
    return XB(qa, t10);
  };
} else {
  var Ls = P8("state");
  pm[Ls] = true, I0 = function(t10, e) {
    if (We(t10, Ls)) throw new R6("Object already initialized");
    return e.facade = t10, aa(t10, Ls, e), e;
  }, cd = function(t10) {
    return We(t10, Ls) ? t10[Ls] : {};
  }, L0 = function(t10) {
    return We(t10, Ls);
  };
}
var un = { set: I0, get: cd, has: L0, enforce: function(t10) {
  return L0(t10) ? cd(t10) : I0(t10, {});
}, getterFor: function(t10) {
  return function(e) {
    var r;
    if (!me(e) || (r = cd(e)).type !== t10) throw R6("Incompatible receiver, " + t10 + " required");
    return r;
  };
} }, xR = Function.prototype, vdt = ko && Object.getOwnPropertyDescriptor, T2 = We(xR, "name"), dc = { EXISTS: T2, PROPER: T2 && (function() {
}).name === "something", CONFIGURABLE: T2 && (!ko || ko && vdt(xR, "name").configurable) }, Fn = S8((function(t10) {
  var e = dc.CONFIGURABLE, r = un.get, n = un.enforce, o = String(String).split("String");
  (t10.exports = function(i, a, u, s) {
    var l, c = !!s && !!s.unsafe, f = !!s && !!s.enumerable, d = !!s && !!s.noTargetGet, p = s && s.name !== void 0 ? s.name : a;
    oe(u) && (String(p).slice(0, 7) === "Symbol(" && (p = "[" + String(p).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!We(u, "name") || e && u.name !== p) && aa(u, "name", p), (l = n(u)).source || (l.source = o.join(typeof p == "string" ? p : ""))), i !== rt ? (c ? !d && i[a] && (f = true) : delete i[a], f ? i[a] = u : aa(i, a, u)) : f ? i[a] = u : k8(a, u);
  })(Function.prototype, "toString", (function() {
    return oe(this) && r(this).source || dm(this);
  }));
})), ydt = Math.ceil, mdt = Math.floor, hm = function(t10) {
  var e = +t10;
  return e != e || e === 0 ? 0 : (e > 0 ? mdt : ydt)(e);
}, bdt = Math.max, wdt = Math.min, rp = function(t10, e) {
  var r = hm(t10);
  return r < 0 ? bdt(r + e, 0) : wdt(r, e);
}, Edt = Math.min, SR = function(t10) {
  return t10 > 0 ? Edt(hm(t10), 9007199254740991) : 0;
}, th = function(t10) {
  return SR(t10.length);
}, ZB = function(t10) {
  return function(e, r, n) {
    var o, i = Fa(e), a = th(i), u = rp(n, a);
    if (t10 && r != r) {
      for (; a > u; ) if ((o = i[u++]) != o) return true;
    } else for (; a > u; u++) if ((t10 || u in i) && i[u] === r) return t10 || u || 0;
    return !t10 && -1;
  };
}, AR = { includes: ZB(true), indexOf: ZB(false) }, Ddt = AR.indexOf, JB = Ct([].push), OR = function(t10, e) {
  var r, n = Fa(t10), o = 0, i = [];
  for (r in n) !We(pm, r) && We(n, r) && JB(i, r);
  for (; e.length > o; ) We(n, r = e[o++]) && (~Ddt(i, r) || JB(i, r));
  return i;
}, R0 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], Cdt = R0.concat("length", "prototype"), M0 = { f: Object.getOwnPropertyNames || function(t10) {
  return OR(t10, Cdt);
} }, xdt = { f: Object.getOwnPropertySymbols }, Sdt = Ct([].concat), Adt = Xu("Reflect", "ownKeys") || function(t10) {
  var e = M0.f(sr(t10)), r = xdt.f;
  return r ? Sdt(e, r(t10)) : e;
}, Odt = function(t10, e) {
  for (var r = Adt(e), n = ci.f, o = _8.f, i = 0; i < r.length; i++) {
    var a = r[i];
    We(t10, a) || n(t10, a, o(e, a));
  }
}, kdt = /#|\.prototype\./, eh = function(t10, e) {
  var r = Fdt[Bdt(t10)];
  return r == _dt || r != Tdt && (oe(e) ? ce(e) : !!e);
}, Bdt = eh.normalize = function(t10) {
  return String(t10).replace(kdt, ".").toLowerCase();
}, Fdt = eh.data = {}, Tdt = eh.NATIVE = "N", _dt = eh.POLYFILL = "P", z0 = eh, Pdt = _8.f, Mr = function(t10, e) {
  var r, n, o, i, a, u = t10.target, s = t10.global, l = t10.stat;
  if (r = s ? rt : l ? rt[u] || k8(u, {}) : (rt[u] || {}).prototype) for (n in e) {
    if (i = e[n], o = t10.noTargetGet ? (a = Pdt(r, n)) && a.value : r[n], !z0(s ? n : u + (l ? "." : "#") + n, t10.forced) && o !== void 0) {
      if (typeof i == typeof o) continue;
      Odt(i, o);
    }
    (t10.sham || o && o.sham) && aa(i, "sham", true), Fn(r, n, i, t10);
  }
}, kR = {};
kR[Re("toStringTag")] = "z";
var j8 = String(kR) === "[object z]", jdt = Re("toStringTag"), Ndt = rt.Object, Idt = Do(/* @__PURE__ */ (function() {
  return arguments;
})()) == "Arguments", gm = j8 ? Do : function(t10) {
  var e, r, n;
  return t10 === void 0 ? "Undefined" : t10 === null ? "Null" : typeof (r = (function(o, i) {
    try {
      return o[i];
    } catch {
    }
  })(e = Ndt(t10), jdt)) == "string" ? r : Idt ? Do(e) : (n = Do(e)) == "Object" && oe(e.callee) ? "Arguments" : n;
}, Ldt = rt.String, yn = function(t10) {
  if (gm(t10) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  return Ldt(t10);
}, M6 = `	
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`, QB = Ct("".replace), $0 = "[" + M6 + "]", Rdt = RegExp("^" + $0 + $0 + "*"), Mdt = RegExp($0 + $0 + "*$"), zdt = function(t10) {
  return function(e) {
    var r = yn(Qp(e));
    return 1 & t10 && (r = QB(r, Rdt, "")), 2 & t10 && (r = QB(r, Mdt, "")), r;
  };
}, $dt = { trim: zdt(3) }, Hdt = dc.PROPER, Vdt = $dt.trim;
function tF(t10) {
  return t10.length ? t10[0].tagName.toLowerCase() : "";
}
function BR(t10, e, r) {
  e === void 0 && (e = "auto"), r === void 0 && (r = "auto");
  var n = B(t10);
  return n.attr("width", e), n.attr("height", r), n[0].outerHTML;
}
Mr({ target: "String", proto: true, forced: ce((function() {
  return !!M6.trim() || "\u200B\x85\u180E".trim() !== "\u200B\x85\u180E" || Hdt && M6.trim.name !== "trim";
})) }, { trim: function() {
  return Vdt(this);
} }), Mr({ global: true }, { globalThis: rt }), An && (B.fn.append = An), Ao && (B.fn.on = Ao), ha && (B.fn.focus = ha), Sn && (B.fn.attr = Sn), So && (B.fn.val = So), pa && (B.fn.html = pa), Al && (B.fn.parent = Al), Cl && (B.fn.hasClass = Cl), Fl && (B.fn.empty = Fl);
var ug, Udt = { type: "video", renderElem: function(t10, e, r) {
  var n, o = t10, i = o.src, a = i === void 0 ? "" : i, u = o.poster, s = u === void 0 ? "" : u, l = o.width, c = l === void 0 ? "auto" : l, f = o.height, d = f === void 0 ? "auto" : f, p = A.isNodeSelected(r, t10);
  if (a.trim().indexOf("<iframe ") === 0) n = bt("div", { className: "w-e-textarea-video-container", "data-selected": p ? "true" : "", innerHTML: BR(a, c, d) });
  else {
    var v = bt("video", { poster: s, controls: true }, bt("source", { src: a, type: "video/mp4" }), `Sorry, your browser doesn't support embedded videos.
 \u62B1\u6B49\uFF0C\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 video \u89C6\u9891`);
    c !== "auto" && (v.data.width = c), d !== "auto" && (v.data.height = d), n = bt("div", { className: "w-e-textarea-video-container", "data-selected": p ? "true" : "" }, v);
  }
  return Tl("div", { props: { contentEditable: false }, on: { mousedown: function(y) {
    return y.preventDefault();
  } } }, n);
} }, Wdt = { type: "video", elemToHtml: function(t10, e) {
  var r = t10, n = r.src, o = n === void 0 ? "" : n, i = r.poster, a = i === void 0 ? "" : i, u = r.width, s = u === void 0 ? "auto" : u, l = r.height, c = l === void 0 ? "auto" : l, f = `<div data-w-e-type="video" data-w-e-is-void>
`;
  return o.trim().indexOf("<iframe ") === 0 ? f += BR(o, s, c) : f += '<video poster="' + a + '" controls="true" width="' + s + '" height="' + c + '"><source src="' + o + '" type="video/mp4"/></video>', f + `
</div>`;
} }, Gdt = Object.keys || function(t10) {
  return OR(t10, R0);
}, qdt = ko ? Object.defineProperties : function(t10, e) {
  sr(t10);
  for (var r, n = Fa(e), o = Gdt(e), i = o.length, a = 0; i > a; ) ci.f(t10, r = o[a++], n[r]);
  return t10;
}, z6 = Xu("document", "documentElement"), FR = P8("IE_PROTO"), _2 = function() {
}, TR = function(t10) {
  return "<script>" + t10 + "<\/script>";
}, eF = function(t10) {
  t10.write(TR("")), t10.close();
  var e = t10.parentWindow.Object;
  return t10 = null, e;
}, Xg = function() {
  try {
    ug = new ActiveXObject("htmlfile");
  } catch {
  }
  var t10, e;
  Xg = typeof document < "u" ? document.domain && ug ? eF(ug) : ((e = ep("iframe")).style.display = "none", z6.appendChild(e), e.src = "javascript:", (t10 = e.contentWindow.document).open(), t10.write(TR("document.F=Object")), t10.close(), t10.F) : eF(ug);
  for (var r = R0.length; r--; ) delete Xg.prototype[R0[r]];
  return Xg();
};
pm[FR] = true;
var N8 = Object.create || function(t10, e) {
  var r;
  return t10 !== null ? (_2.prototype = sr(t10), r = new _2(), _2.prototype = null, r[FR] = t10) : r = Xg(), e === void 0 ? r : qdt(r, e);
}, $6 = Re("unscopables"), H6 = Array.prototype;
H6[$6] == null && ci.f(H6, $6, { configurable: true, value: N8(null) });
var fd = function(t10) {
  H6[$6][t10] = true;
}, Kdt = AR.includes;
Mr({ target: "Array", proto: true }, { includes: function(t10) {
  return Kdt(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} }), fd("includes");
var Ydt = { selector: "iframe,video,p", preParseHtml: function(t10) {
  var e = B(t10), r = e;
  if (tF(e) === "p") {
    var n = e.children();
    if (n.length === 1) {
      var o = n[0], i = o.tagName.toLowerCase();
      ["iframe", "video"].includes(i) && (r = B(o));
    }
  }
  var a = tF(r);
  if (a !== "iframe" && a !== "video" || r.parent().attr("data-w-e-type") === "video") return r[0];
  var u = B('<div data-w-e-type="video" data-w-e-is-void></div>');
  return u.append(r), u[0];
} }, rF = Ct(Ct.bind), np = function(t10, e) {
  return Ca(t10), e === void 0 ? t10 : rF ? rF(t10, e) : function() {
    return t10.apply(e, arguments);
  };
}, H0 = Array.isArray || function(t10) {
  return Do(t10) == "Array";
}, _R = function() {
}, Xdt = [], PR = Xu("Reflect", "construct"), I8 = /^\s*(?:class|function)\b/, Zdt = Ct(I8.exec), Jdt = !I8.exec(_R), wf = function(t10) {
  if (!oe(t10)) return false;
  try {
    return PR(_R, Xdt, t10), true;
  } catch {
    return false;
  }
}, L8 = !PR || ce((function() {
  var t10;
  return wf(wf.call) || !wf(Object) || !wf((function() {
    t10 = true;
  })) || t10;
})) ? function(t10) {
  if (!oe(t10)) return false;
  switch (gm(t10)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return false;
  }
  return Jdt || !!Zdt(I8, dm(t10));
} : wf, Qdt = Re("species"), nF = rt.Array, tpt = function(t10, e) {
  return new ((function(r) {
    var n;
    return H0(r) && (n = r.constructor, (L8(n) && (n === nF || H0(n.prototype)) || me(n) && (n = n[Qdt]) === null) && (n = void 0)), n === void 0 ? nF : n;
  })(t10))(e === 0 ? 0 : e);
}, oF = Ct([].push), iF = function(t10) {
  var e = t10 == 1, r = t10 == 2, n = t10 == 3, o = t10 == 4, i = t10 == 6, a = t10 == 7, u = t10 == 5 || i;
  return function(s, l, c, f) {
    for (var d, p, v = fm(s), y = A8(v), g = np(l, c), m = th(y), h = 0, b = f || tpt, w = e ? b(s, m) : r || a ? b(s, 0) : void 0; m > h; h++) if ((u || h in y) && (p = g(d = y[h], h, v), t10)) if (e) w[h] = p;
    else if (p) switch (t10) {
      case 3:
        return true;
      case 5:
        return d;
      case 6:
        return h;
      case 2:
        oF(w, d);
    }
    else switch (t10) {
      case 4:
        return false;
      case 7:
        oF(w, d);
    }
    return i ? -1 : n || o ? o : w;
  };
}, R8 = { find: iF(5), findIndex: iF(6) }, ept = R8.find, aF = true;
"find" in [] && Array(1).find((function() {
  aF = false;
})), Mr({ target: "Array", proto: true, forced: aF }, { find: function(t10) {
  return ept(this, t10, arguments.length > 1 ? arguments[1] : void 0);
} }), fd("find");
var rpt = j8 ? {}.toString : function() {
  return "[object " + gm(this) + "]";
};
function uF(t10, e, r, n) {
  return e === void 0 && (e = ""), r === void 0 && (r = "auto"), n === void 0 && (n = "auto"), { type: "video", src: t10, poster: e, width: r, height: n, children: [{ text: "" }] };
}
j8 || Fn(Object.prototype, "toString", rpt, { unsafe: true });
var sF, P2, npt = { selector: 'div[data-w-e-type="video"]', parseElemHtml: function(t10, e, r) {
  var n = B(t10), o = "", i = "", a = "auto", u = "auto", s = n.find("iframe");
  if (s.length > 0) return a = s.attr("width") || "auto", u = s.attr("height") || "auto", uF(o = s[0].outerHTML, i, a, u);
  var l = n.find("video");
  return (o = l.attr("src") || "") || l.length > 0 && (o = l.find("source").attr("src") || ""), a = l.attr("width") || "auto", u = l.attr("height") || "auto", uF(o, i = l.attr("poster") || "", a, u);
} }, jR = function() {
  var t10 = sr(this), e = "";
  return t10.global && (e += "g"), t10.ignoreCase && (e += "i"), t10.multiline && (e += "m"), t10.dotAll && (e += "s"), t10.unicode && (e += "u"), t10.sticky && (e += "y"), e;
}, M8 = rt.RegExp, NR = ce((function() {
  var t10 = M8("a", "y");
  return t10.lastIndex = 2, t10.exec("abcd") != null;
}));
NR || ce((function() {
  return !M8("a", "y").sticky;
}));
var opt = { BROKEN_CARET: NR || ce((function() {
  var t10 = M8("^r", "gy");
  return t10.lastIndex = 2, t10.exec("str") != null;
})) }, ipt = rt.RegExp, apt = ce((function() {
  var t10 = ipt(".", "s");
  return !(t10.dotAll && t10.exec(`
`) && t10.flags === "s");
})), upt = rt.RegExp, spt = ce((function() {
  var t10 = upt("(?<a>b)", "g");
  return t10.exec("b").groups.a !== "b" || "b".replace(t10, "$<a>c") !== "bc";
})), lpt = un.get, cpt = B8("native-string-replace", String.prototype.replace), V0 = RegExp.prototype.exec, V6 = V0, fpt = Ct("".charAt), dpt = Ct("".indexOf), ppt = Ct("".replace), j2 = Ct("".slice), N2 = (P2 = /b*/g, le(V0, sF = /a/, "a"), le(V0, P2, "a"), sF.lastIndex !== 0 || P2.lastIndex !== 0), lF = opt.BROKEN_CARET, I2 = /()??/.exec("")[1] !== void 0;
(N2 || I2 || lF || apt || spt) && (V6 = function(t10) {
  var e, r, n, o, i, a, u, s = this, l = lpt(s), c = yn(t10), f = l.raw;
  if (f) return f.lastIndex = s.lastIndex, e = le(V6, f, c), s.lastIndex = f.lastIndex, e;
  var d = l.groups, p = lF && s.sticky, v = le(jR, s), y = s.source, g = 0, m = c;
  if (p && (v = ppt(v, "y", ""), dpt(v, "g") === -1 && (v += "g"), m = j2(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && fpt(c, s.lastIndex - 1) !== `
`) && (y = "(?: " + y + ")", m = " " + m, g++), r = new RegExp("^(?:" + y + ")", v)), I2 && (r = new RegExp("^" + y + "$(?!\\s)", v)), N2 && (n = s.lastIndex), o = le(V0, p ? r : s, m), p ? o ? (o.input = j2(o.input, g), o[0] = j2(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : N2 && o && (s.lastIndex = s.global ? o.index + o[0].length : n), I2 && o && o.length > 1 && le(cpt, o[0], r, (function() {
    for (i = 1; i < arguments.length - 2; i++) arguments[i] === void 0 && (o[i] = void 0);
  })), o && d) for (o.groups = a = N8(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
  return o;
});
var U0 = V6;
Mr({ target: "RegExp", proto: true, forced: /./.exec !== U0 }, { exec: U0 });
var z8 = Function.prototype, cF = z8.apply, hpt = z8.bind, fF = z8.call, IR = typeof Reflect == "object" && Reflect.apply || (hpt ? fF.bind(cF) : function() {
  return fF.apply(cF, arguments);
}), dF = (Re("species"), RegExp.prototype), gpt = Ct("".charAt), pF = Ct("".charCodeAt), vpt = Ct("".slice), ypt = function(t10) {
  return function(e, r) {
    var n, o, i = yn(Qp(e)), a = hm(r), u = i.length;
    return a < 0 || a >= u ? t10 ? "" : void 0 : (n = pF(i, a)) < 55296 || n > 56319 || a + 1 === u || (o = pF(i, a + 1)) < 56320 || o > 57343 ? t10 ? gpt(i, a) : n : t10 ? vpt(i, a, a + 2) : o - 56320 + (n - 55296 << 10) + 65536;
  };
}, LR = { charAt: ypt(true) }, mpt = LR.charAt, bpt = function(t10, e, r) {
  return e + (r ? mpt(t10, e).length : 1);
}, wpt = Math.floor, L2 = Ct("".charAt), Ept = Ct("".replace), R2 = Ct("".slice), Dpt = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Cpt = /\$([$&'`]|\d{1,2})/g, xpt = function(t10, e, r, n, o, i) {
  var a = r + t10.length, u = n.length, s = Cpt;
  return o !== void 0 && (o = fm(o), s = Dpt), Ept(i, s, (function(l, c) {
    var f;
    switch (L2(c, 0)) {
      case "$":
        return "$";
      case "&":
        return t10;
      case "`":
        return R2(e, 0, r);
      case "'":
        return R2(e, a);
      case "<":
        f = o[R2(c, 1, -1)];
        break;
      default:
        var d = +c;
        if (d === 0) return l;
        if (d > u) {
          var p = wpt(d / 10);
          return p === 0 ? l : p <= u ? n[p - 1] === void 0 ? L2(c, 1) : n[p - 1] + L2(c, 1) : l;
        }
        f = n[d - 1];
    }
    return f === void 0 ? "" : f;
  }));
}, Spt = rt.TypeError, Apt = function(t10, e) {
  var r = t10.exec;
  if (oe(r)) {
    var n = le(r, t10, e);
    return n !== null && sr(n), n;
  }
  if (Do(t10) === "RegExp") return le(U0, t10, e);
  throw Spt("RegExp#exec called on incompatible receiver");
}, U6 = Re("replace"), Opt = Math.max, kpt = Math.min, Bpt = Ct([].concat), M2 = Ct([].push), hF = Ct("".indexOf), gF = Ct("".slice), Fpt = "a".replace(/./, "$0") === "$0", vF = !!/./[U6] && /./[U6]("a", "$0") === "";
function RR(t10) {
  return t10 + "-" + GP();
}
(function(t10, e, r, n) {
  var o = Re(t10), i = !ce((function() {
    var l = {};
    return l[o] = function() {
      return 7;
    }, ""[t10](l) != 7;
  })), a = i && !ce((function() {
    var l = false, c = /a/;
    return c.exec = function() {
      return l = true, null;
    }, c[o](""), !l;
  }));
  if (!i || !a || r) {
    var u = Ct(/./[o]), s = /* @__PURE__ */ (function(l, c, f) {
      var d = vF ? "$" : "$0";
      return [function(p, v) {
        var y = Qp(this), g = p == null ? void 0 : tp(p, U6);
        return g ? le(g, p, y, v) : le(c, yn(y), p, v);
      }, function(p, v) {
        var y = sr(this), g = yn(p);
        if (typeof v == "string" && hF(v, d) === -1 && hF(v, "$<") === -1) {
          var m = f(c, y, g, v);
          if (m.done) return m.value;
        }
        var h = oe(v);
        h || (v = yn(v));
        var b = y.global;
        if (b) {
          var w = y.unicode;
          y.lastIndex = 0;
        }
        for (var D = []; ; ) {
          var x = Apt(y, g);
          if (x === null || (M2(D, x), !b)) break;
          yn(x[0]) === "" && (y.lastIndex = bpt(g, SR(y.lastIndex), w));
        }
        for (var C, O = "", T = 0, R = 0; R < D.length; R++) {
          for (var H = yn((x = D[R])[0]), M = Opt(kpt(hm(x.index), g.length), 0), K = [], U = 1; U < x.length; U++) M2(K, (C = x[U]) === void 0 ? C : String(C));
          var W = x.groups;
          if (h) {
            var q = Bpt([H], K, M, g);
            W !== void 0 && M2(q, W);
            var et = yn(IR(v, void 0, q));
          } else et = xpt(H, g, M, K, W, v);
          M >= T && (O += gF(g, T, M) + et, T = M + H.length);
        }
        return O + gF(g, T);
      }];
    })(0, ""[t10], (function(l, c, f, d, p) {
      var v = Ct(l), y = c.exec;
      return y === U0 || y === dF.exec ? i && !p ? { done: true, value: u(c, f, d) } : { done: true, value: v(f, c, d) } : { done: false };
    }));
    Fn(String.prototype, t10, s[0]), Fn(dF, o, s[1]);
  }
})("replace", 0, !!ce((function() {
  var t10 = /./;
  return t10.exec = function() {
    var e = [];
    return e.groups = { a: "7" }, e;
  }, "".replace(t10, "$<a>") !== "7";
})) || !Fpt || vF);
var W0 = rt.Promise, G0 = function(t10, e, r) {
  for (var n in e) Fn(t10, n, e[n], r);
  return t10;
}, Tpt = rt.String, _pt = rt.TypeError, $l = Object.setPrototypeOf || ("__proto__" in {} ? (function() {
  var t10, e = false, r = {};
  try {
    (t10 = Ct(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(r, []), e = r instanceof Array;
  } catch {
  }
  return function(n, o) {
    return sr(n), (function(i) {
      if (typeof i == "object" || oe(i)) return i;
      throw _pt("Can't set " + Tpt(i) + " as a prototype");
    })(o), e ? t10(n, o) : n.__proto__ = o, n;
  };
})() : void 0), Ppt = ci.f, yF = Re("toStringTag"), q0 = function(t10, e, r) {
  t10 && !We(t10 = r ? t10 : t10.prototype, yF) && Ppt(t10, yF, { configurable: true, value: e });
}, mF = Re("species"), jpt = rt.TypeError, $8 = function(t10, e) {
  if (Jd(e, t10)) return t10;
  throw jpt("Incorrect invocation");
}, Hl = {}, Npt = Re("iterator"), Ipt = Array.prototype, Lpt = Re("iterator"), bF = function(t10) {
  if (t10 != null) return tp(t10, Lpt) || tp(t10, "@@iterator") || Hl[gm(t10)];
}, Rpt = rt.TypeError, wF = function(t10, e, r) {
  var n, o;
  sr(t10);
  try {
    if (!(n = tp(t10, "return"))) {
      if (e === "throw") throw r;
      return r;
    }
    n = le(n, t10);
  } catch (i) {
    o = true, n = i;
  }
  if (e === "throw") throw r;
  if (o) throw n;
  return sr(n), r;
}, Mpt = rt.TypeError, Zg = function(t10, e) {
  this.stopped = t10, this.result = e;
}, EF = Zg.prototype, K0 = function(t10, e, r) {
  var n, o, i, a, u, s, l, c, f = r && r.that, d = !(!r || !r.AS_ENTRIES), p = !(!r || !r.IS_ITERATOR), v = !(!r || !r.INTERRUPTED), y = np(e, f), g = function(h) {
    return n && wF(n, "normal", h), new Zg(true, h);
  }, m = function(h) {
    return d ? (sr(h), v ? y(h[0], h[1], g) : y(h[0], h[1])) : v ? y(h, g) : y(h);
  };
  if (p) n = t10;
  else {
    if (!(o = bF(t10))) throw Mpt(N0(t10) + " is not iterable");
    if ((c = o) !== void 0 && (Hl.Array === c || Ipt[Npt] === c)) {
      for (i = 0, a = th(t10); a > i; i++) if ((u = m(t10[i])) && Jd(EF, u)) return u;
      return new Zg(false);
    }
    n = (function(h, b) {
      var w = arguments.length < 2 ? bF(h) : b;
      if (Ca(w)) return sr(le(w, h));
      throw Rpt(N0(h) + " is not iterable");
    })(t10, o);
  }
  for (s = n.next; !(l = le(s, n)).done; ) {
    try {
      u = m(l.value);
    } catch (h) {
      wF(n, "throw", h);
    }
    if (typeof u == "object" && u && Jd(EF, u)) return u;
  }
  return new Zg(false);
}, MR = Re("iterator"), zR = false;
try {
  var zpt = 0, DF = { next: function() {
    return { done: !!zpt++ };
  }, return: function() {
    zR = true;
  } };
  DF[MR] = function() {
    return this;
  }, Array.from(DF, (function() {
    throw 2;
  }));
} catch {
}
var op, Rs, CF, z2, $R = function(t10, e) {
  if (!zR) return false;
  var r = false;
  try {
    var n = {};
    n[MR] = function() {
      return { next: function() {
        return { done: r = true };
      } };
    }, t10(n);
  } catch {
  }
  return r;
}, $pt = rt.TypeError, Hpt = Re("species"), HR = Ct([].slice), VR = /(?:ipad|iphone|ipod).*applewebkit/i.test(dl), ua = Do(rt.process) == "process", W6 = rt.setImmediate, xF = rt.clearImmediate, Vpt = rt.process, $2 = rt.Dispatch, Upt = rt.Function, SF = rt.MessageChannel, Wpt = rt.String, H2 = 0, dd = {};
try {
  op = rt.location;
} catch {
}
var H8 = function(t10) {
  if (We(dd, t10)) {
    var e = dd[t10];
    delete dd[t10], e();
  }
}, V2 = function(t10) {
  return function() {
    H8(t10);
  };
}, AF = function(t10) {
  H8(t10.data);
}, OF = function(t10) {
  rt.postMessage(Wpt(t10), op.protocol + "//" + op.host);
};
W6 && xF || (W6 = function(t10) {
  var e = HR(arguments, 1);
  return dd[++H2] = function() {
    IR(oe(t10) ? t10 : Upt(t10), void 0, e);
  }, Rs(H2), H2;
}, xF = function(t10) {
  delete dd[t10];
}, ua ? Rs = function(t10) {
  Vpt.nextTick(V2(t10));
} : $2 && $2.now ? Rs = function(t10) {
  $2.now(V2(t10));
} : SF && !VR ? (z2 = (CF = new SF()).port2, CF.port1.onmessage = AF, Rs = np(z2.postMessage, z2)) : rt.addEventListener && oe(rt.postMessage) && !rt.importScripts && op && op.protocol !== "file:" && !ce(OF) ? (Rs = OF, rt.addEventListener("message", AF, false)) : Rs = "onreadystatechange" in ep("script") ? function(t10) {
  z6.appendChild(ep("script")).onreadystatechange = function() {
    z6.removeChild(this), H8(t10);
  };
} : function(t10) {
  setTimeout(V2(t10), 0);
});
var Ef, iu, pd, Zs, U2, W2, G2, kF, UR = { set: W6 }, Gpt = /ipad|iphone|ipod/i.test(dl) && rt.Pebble !== void 0, qpt = /web0s(?!.*chrome)/i.test(dl), Kpt = _8.f, q2 = UR.set, BF = rt.MutationObserver || rt.WebKitMutationObserver, FF = rt.document, TF = rt.process, sg = rt.Promise, _F = Kpt(rt, "queueMicrotask"), WR = _F && _F.value;
WR || (Ef = function() {
  var t10, e;
  for (ua && (t10 = TF.domain) && t10.exit(); iu; ) {
    e = iu.fn, iu = iu.next;
    try {
      e();
    } catch (r) {
      throw iu ? Zs() : pd = void 0, r;
    }
  }
  pd = void 0, t10 && t10.enter();
}, VR || ua || qpt || !BF || !FF ? !Gpt && sg && sg.resolve ? ((G2 = sg.resolve(void 0)).constructor = sg, kF = np(G2.then, G2), Zs = function() {
  kF(Ef);
}) : ua ? Zs = function() {
  TF.nextTick(Ef);
} : (q2 = np(q2, rt), Zs = function() {
  q2(Ef);
}) : (U2 = true, W2 = FF.createTextNode(""), new BF(Ef).observe(W2, { characterData: true }), Zs = function() {
  W2.data = U2 = !U2;
}));
var K2, PF, GR, jF, qR = WR || function(t10) {
  var e = { fn: t10, next: void 0 };
  pd && (pd.next = e), iu || (iu = e, Zs()), pd = e;
}, Ypt = function(t10) {
  var e, r;
  this.promise = new t10((function(n, o) {
    if (e !== void 0 || r !== void 0) throw TypeError("Bad Promise constructor");
    e = n, r = o;
  })), this.resolve = Ca(e), this.reject = Ca(r);
}, V8 = { f: function(t10) {
  return new Ypt(t10);
} }, G6 = function(t10) {
  try {
    return { error: false, value: t10() };
  } catch (e) {
    return { error: true, value: e };
  }
}, Xpt = typeof window == "object", KR = UR.set, Zpt = Re("species"), Ko = "Promise", NF = un.getterFor(Ko), Jpt = un.set, Qpt = un.getterFor(Ko), Qa = W0 && W0.prototype, mo = W0, Df = Qa, YR = rt.TypeError, q6 = rt.document, U8 = rt.process, pl = V8.f, tht = pl, eht = !!(q6 && q6.createEvent && rt.dispatchEvent), XR = oe(rt.PromiseRejectionEvent), ZR = false, hd = z0(Ko, (function() {
  var t10 = dm(mo), e = t10 !== String(mo);
  if (!e && Qd === 66) return true;
  if (Qd >= 51 && /native code/.test(t10)) return false;
  var r = new mo((function(o) {
    o(1);
  })), n = function(o) {
    o((function() {
    }), (function() {
    }));
  };
  return (r.constructor = {})[Zpt] = n, !(ZR = r.then((function() {
  })) instanceof n) || !e && Xpt && !XR;
})), rht = hd || !$R((function(t10) {
  mo.all(t10).catch((function() {
  }));
})), JR = function(t10) {
  var e;
  return !(!me(t10) || !oe(e = t10.then)) && e;
}, W8 = function(t10, e) {
  if (!t10.notified) {
    t10.notified = true;
    var r = t10.reactions;
    qR((function() {
      for (var n = t10.value, o = t10.state == 1, i = 0; r.length > i; ) {
        var a, u, s, l = r[i++], c = o ? l.ok : l.fail, f = l.resolve, d = l.reject, p = l.domain;
        try {
          c ? (o || (t10.rejection === 2 && oht(t10), t10.rejection = 1), c === true ? a = n : (p && p.enter(), a = c(n), p && (p.exit(), s = true)), a === l.promise ? d(YR("Promise-chain cycle")) : (u = JR(a)) ? le(u, a, f, d) : f(a)) : d(n);
        } catch (v) {
          p && !s && p.exit(), d(v);
        }
      }
      t10.reactions = [], t10.notified = false, e && !t10.rejection && nht(t10);
    }));
  }
}, QR = function(t10, e, r) {
  var n, o;
  eht ? ((n = q6.createEvent("Event")).promise = e, n.reason = r, n.initEvent(t10, false, true), rt.dispatchEvent(n)) : n = { promise: e, reason: r }, !XR && (o = rt["on" + t10]) ? o(n) : t10 === "unhandledrejection" && (function(i, a) {
    var u = rt.console;
    u && u.error && (arguments.length == 1 ? u.error(i) : u.error(i, a));
  })("Unhandled promise rejection", r);
}, nht = function(t10) {
  le(KR, rt, (function() {
    var e, r = t10.facade, n = t10.value;
    if (IF(t10) && (e = G6((function() {
      ua ? U8.emit("unhandledRejection", n, r) : QR("unhandledrejection", r, n);
    })), t10.rejection = ua || IF(t10) ? 2 : 1, e.error)) throw e.value;
  }));
}, IF = function(t10) {
  return t10.rejection !== 1 && !t10.parent;
}, oht = function(t10) {
  le(KR, rt, (function() {
    var e = t10.facade;
    ua ? U8.emit("rejectionHandled", e) : QR("rejectionhandled", e, t10.value);
  }));
}, nl = function(t10, e, r) {
  return function(n) {
    t10(e, n, r);
  };
}, hl = function(t10, e, r) {
  t10.done || (t10.done = true, r && (t10 = r), t10.value = e, t10.state = 2, W8(t10, true));
}, K6 = function(t10, e, r) {
  if (!t10.done) {
    t10.done = true, r && (t10 = r);
    try {
      if (t10.facade === e) throw YR("Promise can't be resolved itself");
      var n = JR(e);
      n ? qR((function() {
        var o = { done: false };
        try {
          le(n, e, nl(K6, o, t10), nl(hl, o, t10));
        } catch (i) {
          hl(o, i, t10);
        }
      })) : (t10.value = e, t10.state = 1, W8(t10, false));
    } catch (o) {
      hl({ done: false }, o, t10);
    }
  }
};
if (hd && (Df = (mo = function(t10) {
  $8(this, Df), Ca(t10), le(K2, this);
  var e = NF(this);
  try {
    t10(nl(K6, e), nl(hl, e));
  } catch (r) {
    hl(e, r);
  }
}).prototype, (K2 = function(t10) {
  Jpt(this, { type: Ko, done: false, notified: false, parent: false, reactions: [], rejection: false, state: 0, value: void 0 });
}).prototype = G0(Df, { then: function(t10, e) {
  var r = Qpt(this), n = r.reactions, o = pl((function(i, a) {
    var u, s = sr(i).constructor;
    return s === void 0 || (u = sr(s)[Hpt]) == null ? a : (function(l) {
      if (L8(l)) return l;
      throw $pt(N0(l) + " is not a constructor");
    })(u);
  })(this, mo));
  return o.ok = !oe(t10) || t10, o.fail = oe(e) && e, o.domain = ua ? U8.domain : void 0, r.parent = true, n[n.length] = o, r.state != 0 && W8(r, false), o.promise;
}, catch: function(t10) {
  return this.then(void 0, t10);
} }), PF = function() {
  var t10 = new K2(), e = NF(t10);
  this.promise = t10, this.resolve = nl(K6, e), this.reject = nl(hl, e);
}, V8.f = pl = function(t10) {
  return t10 === mo || t10 === GR ? new PF(t10) : tht(t10);
}, oe(W0) && Qa !== Object.prototype)) {
  jF = Qa.then, ZR || (Fn(Qa, "then", (function(t10, e) {
    var r = this;
    return new mo((function(n, o) {
      le(jF, r, n, o);
    })).then(t10, e);
  }), { unsafe: true }), Fn(Qa, "catch", Df.catch, { unsafe: true }));
  try {
    delete Qa.constructor;
  } catch {
  }
  $l && $l(Qa, Df);
}
function ip(t10, e, r) {
  return r === void 0 && (r = ""), sm(this, void 0, void 0, (function() {
    var n, o, i, a, u, s, l;
    return lm(this, (function(c) {
      switch (c.label) {
        case 0:
          return e ? (t10.restoreSelection(), n = t10.getMenuConfig("insertVideo"), o = n.onInsertedVideo, i = n.checkVideo, a = n.parseVideoSrc, [4, i(e, r)]) : [2];
        case 1:
          return typeof (u = c.sent()) == "string" ? (t10.alert(u, "error"), [2]) : u == null ? [2] : [4, a(e)];
        case 2:
          return (s = c.sent()).trim().indexOf("<iframe ") !== 0 && (s = s.replace(/</g, "&lt;").replace(/>/g, "&gt;")), l = { type: "video", src: s, poster: r, children: [{ text: "" }] }, Promise.resolve().then((function() {
            N.insertNodes(t10, l);
          })), o(l), [2];
      }
    }));
  }));
}
function Y2() {
  return RR("w-e-insert-video");
}
Mr({ global: true, wrap: true, forced: hd }, { Promise: mo }), q0(mo, Ko, false), (function(t10) {
  var e = Xu("Promise"), r = ci.f;
  ko && e && !e[mF] && r(e, mF, { configurable: true, get: function() {
    return this;
  } });
})(), GR = Xu(Ko), Mr({ target: Ko, stat: true, forced: hd }, { reject: function(t10) {
  var e = pl(this);
  return le(e.reject, void 0, t10), e.promise;
} }), Mr({ target: Ko, stat: true, forced: hd }, { resolve: function(t10) {
  return (function(e, r) {
    if (sr(e), me(r) && r.constructor === e) return r;
    var n = V8.f(e);
    return (0, n.resolve)(r), n.promise;
  })(this, t10);
} }), Mr({ target: Ko, stat: true, forced: rht }, { all: function(t10) {
  var e = this, r = pl(e), n = r.resolve, o = r.reject, i = G6((function() {
    var a = Ca(e.resolve), u = [], s = 0, l = 1;
    K0(t10, (function(c) {
      var f = s++, d = false;
      l++, le(a, e, c).then((function(p) {
        d || (d = true, u[f] = p, --l || n(u));
      }), o);
    })), --l || n(u);
  }));
  return i.error && o(i.value), r.promise;
}, race: function(t10) {
  var e = this, r = pl(e), n = r.reject, o = G6((function() {
    var i = Ca(e.resolve);
    K0(t10, (function(a) {
      le(i, e, a).then(r.resolve, n);
    }));
  }));
  return o.error && n(o.value), r.promise;
} });
var iht = (function() {
  function t10() {
    this.title = Q("videoModule.insertVideo"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>', this.tag = "button", this.showModal = true, this.modalWidth = 320, this.$content = null, this.srcInputId = Y2(), this.posterInputId = Y2(), this.buttonId = Y2();
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.exec = function(e, r) {
  }, t10.prototype.isDisabled = function(e) {
    var r = e.selection;
    return r == null || !L.isCollapsed(r) || !!A.getSelectedElems(e).some((function(n) {
      var o = A.getNodeType(n);
      return o === "pre" || o === "list-item" || !!e.isVoid(n);
    }));
  }, t10.prototype.getModalPositionNode = function(e) {
    return null;
  }, t10.prototype.getModalContentElem = function(e) {
    var r = this, n = this, o = n.srcInputId, i = n.posterInputId, a = n.buttonId, u = Fu(tn(Q("videoModule.videoSrc"), o, Q("videoModule.videoSrcPlaceHolder")), 2), s = u[0], l = u[1], c = Fu(tn(Q("videoModule.videoPoster"), i, Q("videoModule.videoPosterPlaceHolder")), 2), f = c[0], d = c[1], p = B(l), v = B(d), y = Fu(rc(a, Q("videoModule.ok")), 1)[0];
    if (this.$content == null) {
      var g = B("<div></div>");
      g.on("click", "#" + a, (function(h) {
        return sm(r, void 0, void 0, (function() {
          var b, w;
          return lm(this, (function(D) {
            switch (D.label) {
              case 0:
                return h.preventDefault(), b = g.find("#" + o).val().trim(), w = g.find("#" + i).val().trim(), [4, ip(e, b, w)];
              case 1:
                return D.sent(), e.hidePanelOrModal(), [2];
            }
          }));
        }));
      })), this.$content = g;
    }
    var m = this.$content;
    return m.empty(), m.append(s), m.append(f), m.append(y), p.val(""), v.val(""), setTimeout((function() {
      p.focus();
    })), m[0];
  }, t10;
})(), aht = Ct([].join), uht = A8 != Object, sht = (function(t10, e) {
  var r = [].join;
  return !!r && ce((function() {
    r.call(null, ",", 1);
  }));
})();
Mr({ target: "Array", proto: true, forced: uht || !sht }, { join: function(t10) {
  return aht(Fa(this), t10 === void 0 ? "," : t10);
} });
var _u, LF, RF, lht = !ce((function() {
  function t10() {
  }
  return t10.prototype.constructor = null, Object.getPrototypeOf(new t10()) !== t10.prototype;
})), MF = P8("IE_PROTO"), Y6 = rt.Object, cht = Y6.prototype, Y0 = lht ? Y6.getPrototypeOf : function(t10) {
  var e = fm(t10);
  if (We(e, MF)) return e[MF];
  var r = e.constructor;
  return oe(r) && e instanceof r ? r.prototype : e instanceof Y6 ? cht : null;
}, X6 = Re("iterator"), tM = false;
[].keys && ("next" in (RF = [].keys()) ? (LF = Y0(Y0(RF))) !== Object.prototype && (_u = LF) : tM = true);
var fht = _u == null || ce((function() {
  var t10 = {};
  return _u[X6].call(t10) !== t10;
}));
fht && (_u = {}), oe(_u[X6]) || Fn(_u, X6, (function() {
  return this;
}));
var G8 = { IteratorPrototype: _u, BUGGY_SAFARI_ITERATORS: tM }, dht = G8.IteratorPrototype, pht = function() {
  return this;
}, hht = dc.PROPER, ght = dc.CONFIGURABLE, zF = G8.IteratorPrototype, X2 = G8.BUGGY_SAFARI_ITERATORS, Cf = Re("iterator"), vht = function() {
  return this;
}, eM = function(t10, e, r, n, o, i, a) {
  (function(g, m, h, b) {
    var w = m + " Iterator";
    g.prototype = N8(dht, { next: cm(1, h) }), q0(g, w, false), Hl[w] = pht;
  })(r, e, n);
  var u, s, l = function(g) {
    if (g === o && v) return v;
    if (!X2 && g in d) return d[g];
    switch (g) {
      case "keys":
      case "values":
      case "entries":
        return function() {
          return new r(this, g);
        };
    }
    return function() {
      return new r(this);
    };
  }, c = e + " Iterator", f = false, d = t10.prototype, p = d[Cf] || d["@@iterator"] || o && d[o], v = !X2 && p || l(o), y = e == "Array" && d.entries || p;
  return y && (u = Y0(y.call(new t10()))) !== Object.prototype && u.next && (Y0(u) !== zF && ($l ? $l(u, zF) : oe(u[Cf]) || Fn(u, Cf, vht)), q0(u, c, true)), hht && o == "values" && p && p.name !== "values" && (ght ? aa(d, "name", "values") : (f = true, v = function() {
    return le(p, this);
  })), o && (s = { values: l("values"), keys: l("keys"), entries: l("entries") }, a || Mr({ target: e, proto: true, forced: X2 || f }, s)), d[Cf] !== v && Fn(d, Cf, v, { name: o }), Hl[e] = v, s;
}, yht = un.set, mht = un.getterFor("Array Iterator"), qf = eM(Array, "Array", (function(t10, e) {
  yht(this, { type: "Array Iterator", target: Fa(t10), index: 0, kind: e });
}), (function() {
  var t10 = mht(this), e = t10.target, r = t10.kind, n = t10.index++;
  return !e || n >= e.length ? (t10.target = void 0, { value: void 0, done: true }) : r == "keys" ? { value: n, done: false } : r == "values" ? { value: e[n], done: false } : { value: [n, e[n]], done: false };
}), "values");
Hl.Arguments = Hl.Array, fd("keys"), fd("values"), fd("entries");
var bht = LR.charAt, wht = un.set, Eht = un.getterFor("String Iterator");
eM(String, "String", (function(t10) {
  wht(this, { type: "String Iterator", string: yn(t10), index: 0 });
}), (function() {
  var t10, e = Eht(this), r = e.string, n = e.index;
  return n >= r.length ? { value: void 0, done: true } : (t10 = bht(r, n), e.index += t10.length, { value: t10, done: false });
}));
var rM = function(t10, e, r) {
  var n = T8(e);
  n in t10 ? ci.f(t10, n, cm(0, r)) : t10[n] = r;
}, Dht = rt.Array, Cht = Math.max, $F = M0.f, HF = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], xht = { f: function(t10) {
  return HF && Do(t10) == "Window" ? (function(e) {
    try {
      return $F(e);
    } catch {
      return (function(n, o, i) {
        for (var a = th(n), u = rp(void 0, a), s = rp(a, a), l = Dht(Cht(s - u, 0)), c = 0; u < s; u++, c++) rM(l, c, n[u]);
        return l.length = c, l;
      })(HF);
    }
  })(t10) : $F(Fa(t10));
} }, VF = ce((function() {
  if (typeof ArrayBuffer == "function") {
    var t10 = new ArrayBuffer(8);
    Object.isExtensible(t10) && Object.defineProperty(t10, "a", { value: 8 });
  }
})), lg = Object.isExtensible, cu = ce((function() {
  lg(1);
})) || VF ? function(t10) {
  return !!me(t10) && (!VF || Do(t10) != "ArrayBuffer") && (!lg || lg(t10));
} : lg, Sht = !ce((function() {
  return Object.isExtensible(Object.preventExtensions({}));
})), q8 = S8((function(t10) {
  var e = ci.f, r = false, n = F8("meta"), o = 0, i = function(u) {
    e(u, n, { value: { objectID: "O" + o++, weakData: {} } });
  }, a = t10.exports = { enable: function() {
    a.enable = function() {
    }, r = true;
    var u = M0.f, s = Ct([].splice), l = {};
    l[n] = 1, u(l).length && (M0.f = function(c) {
      for (var f = u(c), d = 0, p = f.length; d < p; d++) if (f[d] === n) {
        s(f, d, 1);
        break;
      }
      return f;
    }, Mr({ target: "Object", stat: true, forced: true }, { getOwnPropertyNames: xht.f }));
  }, fastKey: function(u, s) {
    if (!me(u)) return typeof u == "symbol" ? u : (typeof u == "string" ? "S" : "P") + u;
    if (!We(u, n)) {
      if (!cu(u)) return "F";
      if (!s) return "E";
      i(u);
    }
    return u[n].objectID;
  }, getWeakData: function(u, s) {
    if (!We(u, n)) {
      if (!cu(u)) return true;
      if (!s) return false;
      i(u);
    }
    return u[n].weakData;
  }, onFreeze: function(u) {
    return Sht && r && cu(u) && !We(u, n) && i(u), u;
  } };
  pm[n] = true;
})), cg = q8.getWeakData, Aht = un.set, Oht = un.getterFor, kht = R8.find, Bht = R8.findIndex, Fht = Ct([].splice), Tht = 0, fg = function(t10) {
  return t10.frozen || (t10.frozen = new nM());
}, nM = function() {
  this.entries = [];
}, Z2 = function(t10, e) {
  return kht(t10.entries, (function(r) {
    return r[0] === e;
  }));
};
nM.prototype = { get: function(t10) {
  var e = Z2(this, t10);
  if (e) return e[1];
}, has: function(t10) {
  return !!Z2(this, t10);
}, set: function(t10, e) {
  var r = Z2(this, t10);
  r ? r[1] = e : this.entries.push([t10, e]);
}, delete: function(t10) {
  var e = Bht(this.entries, (function(r) {
    return r[0] === t10;
  }));
  return ~e && Fht(this.entries, e, 1), !!~e;
} };
var xf, oM = { getConstructor: function(t10, e, r, n) {
  var o = t10((function(s, l) {
    $8(s, i), Aht(s, { type: e, id: Tht++, frozen: void 0 }), l != null && K0(l, s[n], { that: s, AS_ENTRIES: r });
  })), i = o.prototype, a = Oht(e), u = function(s, l, c) {
    var f = a(s), d = cg(sr(l), true);
    return d === true ? fg(f).set(l, c) : d[f.id] = c, s;
  };
  return G0(i, { delete: function(s) {
    var l = a(this);
    if (!me(s)) return false;
    var c = cg(s);
    return c === true ? fg(l).delete(s) : c && We(c, l.id) && delete c[l.id];
  }, has: function(s) {
    var l = a(this);
    if (!me(s)) return false;
    var c = cg(s);
    return c === true ? fg(l).has(s) : c && We(c, l.id);
  } }), G0(i, r ? { get: function(s) {
    var l = a(this);
    if (me(s)) {
      var c = cg(s);
      return c === true ? fg(l).get(s) : c ? c[l.id] : void 0;
    }
  }, set: function(s, l) {
    return u(this, s, l);
  } } : { add: function(s) {
    return u(this, s, true);
  } }), o;
} }, dg = un.enforce, _ht = !rt.ActiveXObject && "ActiveXObject" in rt, iM = function(t10) {
  return function() {
    return t10(this, arguments.length ? arguments[0] : void 0);
  };
}, Pht = (function(t10, e, r) {
  var n = t10.indexOf("Map") !== -1, o = t10.indexOf("Weak") !== -1, i = n ? "set" : "add", a = rt[t10], u = a && a.prototype, s = a, l = {}, c = function(g) {
    var m = Ct(u[g]);
    Fn(u, g, g == "add" ? function(h) {
      return m(this, h === 0 ? 0 : h), this;
    } : g == "delete" ? function(h) {
      return !(o && !me(h)) && m(this, h === 0 ? 0 : h);
    } : g == "get" ? function(h) {
      return o && !me(h) ? void 0 : m(this, h === 0 ? 0 : h);
    } : g == "has" ? function(h) {
      return !(o && !me(h)) && m(this, h === 0 ? 0 : h);
    } : function(h, b) {
      return m(this, h === 0 ? 0 : h, b), this;
    });
  };
  if (z0(t10, !oe(a) || !(o || u.forEach && !ce((function() {
    new a().entries().next();
  }))))) s = r.getConstructor(e, t10, n, i), q8.enable();
  else if (z0(t10, true)) {
    var f = new s(), d = f[i](o ? {} : -0, 1) != f, p = ce((function() {
      f.has(1);
    })), v = $R((function(g) {
      new a(g);
    })), y = !o && ce((function() {
      for (var g = new a(), m = 5; m--; ) g[i](m, m);
      return !g.has(-0);
    }));
    v || ((s = e((function(g, m) {
      $8(g, u);
      var h = (function(b, w, D) {
        var x, C;
        return $l && oe(x = w.constructor) && x !== D && me(C = x.prototype) && C !== D.prototype && $l(b, C), b;
      })(new a(), g, s);
      return m != null && K0(m, h[i], { that: h, AS_ENTRIES: n }), h;
    }))).prototype = u, u.constructor = s), (p || y) && (c("delete"), c("has"), n && c("get")), (y || d) && c(i), o && u.clear && delete u.clear;
  }
  return l[t10] = s, Mr({ global: true, forced: s != a }, l), q0(s, t10), o || r.setStrong(s, t10, n), s;
})("WeakMap", iM, oM);
if (CR && _ht) {
  xf = oM.getConstructor(iM, "WeakMap", true), q8.enable();
  var Sf = Pht.prototype, UF = Ct(Sf.delete), pg = Ct(Sf.has), WF = Ct(Sf.get), GF = Ct(Sf.set);
  G0(Sf, { delete: function(t10) {
    if (me(t10) && !cu(t10)) {
      var e = dg(this);
      return e.frozen || (e.frozen = new xf()), UF(this, t10) || e.frozen.delete(t10);
    }
    return UF(this, t10);
  }, has: function(t10) {
    if (me(t10) && !cu(t10)) {
      var e = dg(this);
      return e.frozen || (e.frozen = new xf()), pg(this, t10) || e.frozen.has(t10);
    }
    return pg(this, t10);
  }, get: function(t10) {
    if (me(t10) && !cu(t10)) {
      var e = dg(this);
      return e.frozen || (e.frozen = new xf()), pg(this, t10) ? WF(this, t10) : e.frozen.get(t10);
    }
    return WF(this, t10);
  }, set: function(t10, e) {
    if (me(t10) && !cu(t10)) {
      var r = dg(this);
      r.frozen || (r.frozen = new xf()), pg(this, t10) ? GF(this, t10, e) : r.frozen.set(t10, e);
    } else GF(this, t10, e);
    return this;
  } });
}
var aM = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }, J2 = ep("span").classList, qF = J2 && J2.constructor && J2.constructor.prototype, jht = qF === Object.prototype ? void 0 : qF, Q2 = Re("iterator"), KF = Re("toStringTag"), tw = qf.values, uM = function(t10, e) {
  if (t10) {
    if (t10[Q2] !== tw) try {
      aa(t10, Q2, tw);
    } catch {
      t10[Q2] = tw;
    }
    if (t10[KF] || aa(t10, KF, e), aM[e]) {
      for (var r in qf) if (t10[r] !== qf[r]) try {
        aa(t10, r, qf[r]);
      } catch {
        t10[r] = qf[r];
      }
    }
  }
};
for (var ew in aM) uM(rt[ew] && rt[ew].prototype, ew);
uM(jht, "DOMTokenList");
var Nht = dc.EXISTS, Iht = ci.f, sM = Function.prototype, Lht = Ct(sM.toString), lM = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, Rht = Ct(lM.exec);
ko && !Nht && Iht(sM, "name", { configurable: true, get: function() {
  try {
    return Rht(lM, Lht(this))[1];
  } catch {
    return "";
  }
} });
var Mht = Re("species"), zht = Qd >= 51 || !ce((function() {
  var t10 = [];
  return (t10.constructor = {})[Mht] = function() {
    return { foo: 1 };
  }, t10.slice(Boolean).foo !== 1;
})), $ht = Re("species"), rw = rt.Array, Hht = Math.max;
function cM(t10) {
  return t10.getMenuConfig("uploadVideo");
}
Mr({ target: "Array", proto: true, forced: !zht }, { slice: function(t10, e) {
  var r, n, o, i = Fa(this), a = th(i), u = rp(t10, a), s = rp(e === void 0 ? a : e, a);
  if (H0(i) && (r = i.constructor, (L8(r) && (r === rw || H0(r.prototype)) || me(r) && (r = r[$ht]) === null) && (r = void 0), r === rw || r === void 0)) return HR(i, u, s);
  for (n = new (r === void 0 ? rw : r)(Hht(s - u, 0)), o = 0; u < s; u++, o++) u in i && rM(n, o, i[u]);
  return n.length = o, n;
} });
var YF = /* @__PURE__ */ new WeakMap();
function Vht(t10, e) {
  return sm(this, void 0, void 0, (function() {
    var r, n, o, i;
    return lm(this, (function(a) {
      switch (a.label) {
        case 0:
          return r = (function(u) {
            var s = YF.get(u);
            if (s != null) return s;
            var l = cM(u), c = l.onSuccess, f = l.onProgress, d = l.onFailed, p = l.customInsert, v = l.onError;
            return s = jN(j0(j0({}, l), { onProgress: function(y) {
              u.showProgressBar(y), f && f(y);
            }, onSuccess: function(y, g) {
              if (p) return p(g, (function(O, T) {
                return ip(u, O, T);
              })), void c(y, g);
              var m = g.errno, h = m === void 0 ? 1 : m, b = g.data, w = b === void 0 ? {} : b;
              if (h === 0) {
                var D = w.url, x = D === void 0 ? "" : D, C = w.poster;
                ip(u, x, C === void 0 ? "" : C), c(y, g);
              } else d(y, g);
            }, onError: function(y, g, m) {
              v(y, g, m);
            } })), YF.set(u, s), s;
          })(t10), n = e.name, o = e.type, i = e.size, r.addFile({ name: n, type: o, size: i, data: e }), [4, r.upload()];
        case 1:
          return a.sent(), [2];
      }
    }));
  }));
}
var Uht = (function() {
  function t10() {
    this.title = Q("videoModule.uploadVideo"), this.iconSvg = '<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.exec = function(e, r) {
    var n = this.getMenuConfig(e), o = n.allowedFileTypes, i = o === void 0 ? [] : o, a = n.customBrowseAndUpload;
    if (a) a((function(c, f) {
      return ip(e, c, f);
    }));
    else {
      var u = "";
      i.length > 0 && (u = 'accept="' + i.join(", ") + '"');
      var s = B("body"), l = B('<input type="file" ' + u + " multiple/>");
      l.hide(), s.append(l), l.click(), l.on("change", (function() {
        var c = l[0].files;
        (function(f, d) {
          var p, v;
          sm(this, void 0, void 0, (function() {
            var y, g, m, h, b, w;
            return lm(this, (function(D) {
              switch (D.label) {
                case 0:
                  if (d == null) return [2];
                  y = Array.prototype.slice.call(d), g = cM(f).customUpload, D.label = 1;
                case 1:
                  D.trys.push([1, 9, 10, 15]), m = $ft(y), D.label = 2;
                case 2:
                  return [4, m.next()];
                case 3:
                  return (h = D.sent()).done ? [3, 8] : (b = h.value, g ? [4, g(b, (function(x, C) {
                    return ip(f, x, C);
                  }))] : [3, 5]);
                case 4:
                  return D.sent(), [3, 7];
                case 5:
                  return [4, Vht(f, b)];
                case 6:
                  D.sent(), D.label = 7;
                case 7:
                  return [3, 2];
                case 8:
                  return [3, 15];
                case 9:
                  return w = D.sent(), p = { error: w }, [3, 15];
                case 10:
                  return D.trys.push([10, , 13, 14]), h && !h.done && (v = m.return) ? [4, v.call(m)] : [3, 12];
                case 11:
                  D.sent(), D.label = 12;
                case 12:
                  return [3, 14];
                case 13:
                  if (p) throw p.error;
                  return [7];
                case 14:
                  return [7];
                case 15:
                  return [2];
              }
            }));
          }));
        })(e, c);
      }));
    }
  }, t10.prototype.isDisabled = function(e) {
    var r = e.selection;
    return r == null || !L.isCollapsed(r) || !!A.getSelectedElems(e).some((function(n) {
      var o = A.getNodeType(n);
      return o === "pre" || o === "list-item" || !!e.isVoid(n);
    }));
  }, t10.prototype.getMenuConfig = function(e) {
    return e.getMenuConfig("uploadVideo");
  }, t10;
})(), Wht = dc.PROPER, Z6 = RegExp.prototype, fM = Z6.toString, Ght = Ct(jR), qht = ce((function() {
  return fM.call({ source: "a", flags: "b" }) != "/a/b";
})), Kht = Wht && fM.name != "toString";
function nw() {
  return RR("w-e-insert-video");
}
(qht || Kht) && Fn(RegExp.prototype, "toString", (function() {
  var t10 = sr(this), e = yn(t10.source), r = t10.flags;
  return "/" + e + "/" + yn(r === void 0 && Jd(Z6, t10) && !("flags" in Z6) ? Ght(t10) : r);
}), { unsafe: true });
var Yht = (function() {
  function t10() {
    this.title = Q("videoModule.editSize"), this.tag = "button", this.showModal = true, this.modalWidth = 320, this.$content = null, this.widthInputId = nw(), this.heightInputId = nw(), this.buttonId = nw();
  }
  return t10.prototype.getSelectedVideoNode = function(e) {
    return A.getSelectedNodeByType(e, "video");
  }, t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.exec = function(e, r) {
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || this.getSelectedVideoNode(e) == null;
  }, t10.prototype.getModalPositionNode = function(e) {
    return this.getSelectedVideoNode(e);
  }, t10.prototype.getModalContentElem = function(e) {
    var r = this, n = r.widthInputId, o = r.heightInputId, i = r.buttonId, a = Fu(tn(Q("videoModule.width"), n, "auto"), 2), u = a[0], s = B(a[1]), l = Fu(tn(Q("videoModule.height"), o, "auto"), 2), c = l[0], f = B(l[1]), d = Fu(rc(i, Q("videoModule.ok")), 1)[0];
    if (this.$content == null) {
      var p = B("<div></div>");
      p.on("click", "#" + i, (function(w) {
        w.preventDefault();
        var D = p.find("#" + n).val().trim(), x = p.find("#" + o).val().trim(), C = parseInt(D), O = parseInt(x), T = C ? C.toString() : "auto", R = O ? O.toString() : "auto";
        e.restoreSelection(), N.setNodes(e, { width: T, height: R }, { match: function(H) {
          return A.checkNodeType(H, "video");
        } }), e.hidePanelOrModal();
      })), this.$content = p;
    }
    var v = this.$content;
    v.empty(), v.append(u), v.append(c), v.append(d);
    var y = this.getSelectedVideoNode(e);
    if (y == null) return v[0];
    var g = y.width, m = g === void 0 ? "auto" : g, h = y.height, b = h === void 0 ? "auto" : h;
    return s.val(m), f.val(b), setTimeout((function() {
      s.focus();
    })), v[0];
  }, t10;
})(), Xht = { renderElems: [Udt], elemsToHtml: [Wdt], preParseHtml: [Ydt], parseElemsHtml: [npt], menus: [{ key: "insertVideo", factory: function() {
  return new iht();
}, config: { onInsertedVideo: function(t10) {
}, checkVideo: function(t10, e) {
  return true;
}, parseVideoSrc: function(t10) {
  return t10;
} } }, { key: "uploadVideo", factory: function() {
  return new Uht();
}, config: { server: "", fieldName: "wangeditor-uploaded-video", maxFileSize: 10485760, maxNumberOfFiles: 5, allowedFileTypes: ["video/*"], meta: {}, metaWithUrl: false, withCredentials: false, timeout: 3e4, onBeforeUpload: function(t10) {
  return t10;
}, onProgress: function(t10) {
}, onSuccess: function(t10, e) {
}, onFailed: function(t10, e) {
  console.error("'" + t10.name + "' upload failed", e);
}, onError: function(t10, e, r) {
  console.error("'" + t10.name + " upload error", e, r);
} } }, { key: "editVideoSize", factory: function() {
  return new Yht();
} }], editorPlugin: function(t10) {
  var e = t10.isVoid, r = t10.normalizeNode, n = t10;
  return n.isVoid = function(o) {
    return o.type === "video" || e(o);
  }, n.normalizeNode = function(o) {
    var i = Fu(o, 2), a = i[0], u = i[1];
    return A.getNodeType(a) === "video" && A.isLastNode(n, a) && N.insertNodes(n, A.genEmptyParagraph(), { at: [u[0] + 1] }), r([a, u]);
  }, n;
} };
Wr("en", { uploadImgModule: { uploadImage: "Upload Image", uploadError: "{{fileName}} upload error" } }), Wr("zh-CN", { uploadImgModule: { uploadImage: "\u4E0A\u4F20\u56FE\u7247", uploadError: "{{fileName}} \u4E0A\u4F20\u51FA\u9519" } });
var XF = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function K8(t10) {
  var e = { exports: {} };
  return t10(e, e.exports), e.exports;
}
var Ti, Jg, hg = function(t10) {
  return t10 && t10.Math == Math && t10;
}, tt = hg(typeof globalThis == "object" && globalThis) || hg(typeof window == "object" && window) || hg(typeof self == "object" && self) || hg(typeof XF == "object" && XF) || /* @__PURE__ */ (function() {
  return this;
})() || Function("return this")(), he = function(t10) {
  try {
    return !!t10();
  } catch {
    return true;
  }
}, Bo = !he((function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
})), Af = Function.prototype.call, ee = Af.bind ? Af.bind(Af) : function() {
  return Af.apply(Af, arguments);
}, ZF = {}.propertyIsEnumerable, JF = Object.getOwnPropertyDescriptor, Zht = { f: JF && !ZF.call({ 1: 2 }, 1) ? function(t10) {
  var e = JF(this, t10);
  return !!e && e.enumerable;
} : ZF }, vm = function(t10, e) {
  return { enumerable: !(1 & t10), configurable: !(2 & t10), writable: !(4 & t10), value: e };
}, dM = Function.prototype, J6 = dM.bind, Q6 = dM.call, Jht = J6 && J6.bind(Q6), Tt = J6 ? function(t10) {
  return t10 && Jht(Q6, t10);
} : function(t10) {
  return t10 && function() {
    return Q6.apply(t10, arguments);
  };
}, Qht = Tt({}.toString), tgt = Tt("".slice), Kn = function(t10) {
  return tgt(Qht(t10), 8, -1);
}, ow = tt.Object, egt = Tt("".split), Y8 = he((function() {
  return !ow("z").propertyIsEnumerable(0);
})) ? function(t10) {
  return Kn(t10) == "String" ? egt(t10, "") : ow(t10);
} : ow, rgt = tt.TypeError, ap = function(t10) {
  if (t10 == null) throw rgt("Can't call method on " + t10);
  return t10;
}, Ta = function(t10) {
  return Y8(ap(t10));
}, ue = function(t10) {
  return typeof t10 == "function";
}, de = function(t10) {
  return typeof t10 == "object" ? t10 !== null : ue(t10);
}, ngt = function(t10) {
  return ue(t10) ? t10 : void 0;
}, Zu = function(t10, e) {
  return arguments.length < 2 ? ngt(tt[t10]) : tt[t10] && tt[t10][e];
}, up = Tt({}.isPrototypeOf), gl = Zu("navigator", "userAgent") || "", QF = tt.process, tT = tt.Deno, eT = QF && QF.versions || tT && tT.version, rT = eT && eT.v8;
rT && (Jg = (Ti = rT.split("."))[0] > 0 && Ti[0] < 4 ? 1 : +(Ti[0] + Ti[1])), !Jg && gl && (!(Ti = gl.match(/Edge\/(\d+)/)) || Ti[1] >= 74) && (Ti = gl.match(/Chrome\/(\d+)/)) && (Jg = +Ti[1]);
var sp = Jg, t3 = !!Object.getOwnPropertySymbols && !he((function() {
  var t10 = /* @__PURE__ */ Symbol();
  return !String(t10) || !(Object(t10) instanceof Symbol) || !Symbol.sham && sp && sp < 41;
})), X8 = t3 && !Symbol.sham && typeof Symbol.iterator == "symbol", ogt = tt.Object, iw = X8 ? function(t10) {
  return typeof t10 == "symbol";
} : function(t10) {
  var e = Zu("Symbol");
  return ue(e) && up(e.prototype, ogt(t10));
}, igt = tt.String, X0 = function(t10) {
  try {
    return igt(t10);
  } catch {
    return "Object";
  }
}, agt = tt.TypeError, xa = function(t10) {
  if (ue(t10)) return t10;
  throw agt(X0(t10) + " is not a function");
}, lp = function(t10, e) {
  var r = t10[e];
  return r == null ? void 0 : xa(r);
}, ugt = tt.TypeError, sgt = Object.defineProperty, Z8 = function(t10, e) {
  try {
    sgt(tt, t10, { value: e, configurable: true, writable: true });
  } catch {
    tt[t10] = e;
  }
  return e;
}, sa = tt["__core-js_shared__"] || Z8("__core-js_shared__", {}), J8 = K8((function(t10) {
  (t10.exports = function(e, r) {
    return sa[e] || (sa[e] = r !== void 0 ? r : {});
  })("versions", []).push({ version: "3.19.3", mode: "global", copyright: "\xA9 2021 Denis Pushkarev (zloirock.ru)" });
})), lgt = tt.Object, Q8 = function(t10) {
  return lgt(ap(t10));
}, cgt = Tt({}.hasOwnProperty), Ge = Object.hasOwn || function(t10, e) {
  return cgt(Q8(t10), e);
}, fgt = 0, dgt = Math.random(), pgt = Tt(1 .toString), tC = function(t10) {
  return "Symbol(" + (t10 === void 0 ? "" : t10) + ")_" + pgt(++fgt + dgt, 36);
}, Of = J8("wks"), Pu = tt.Symbol, nT = Pu && Pu.for, hgt = X8 ? Pu : Pu && Pu.withoutSetter || tC, Me = function(t10) {
  if (!Ge(Of, t10) || !t3 && typeof Of[t10] != "string") {
    var e = "Symbol." + t10;
    t3 && Ge(Pu, t10) ? Of[t10] = Pu[t10] : Of[t10] = X8 && nT ? nT(e) : hgt(e);
  }
  return Of[t10];
}, ggt = tt.TypeError, vgt = Me("toPrimitive"), eC = function(t10) {
  var e = (function(r, n) {
    if (!de(r) || iw(r)) return r;
    var o, i = lp(r, vgt);
    if (i) {
      if (o = ee(i, r, n), !de(o) || iw(o)) return o;
      throw ggt("Can't convert object to primitive value");
    }
    return (function(a, u) {
      var s, l;
      if (ue(s = a.toString) && !de(l = ee(s, a)) || ue(s = a.valueOf) && !de(l = ee(s, a))) return l;
      throw ugt("Can't convert object to primitive value");
    })(r);
  })(t10, "string");
  return iw(e) ? e : e + "";
}, e3 = tt.document, ygt = de(e3) && de(e3.createElement), cp = function(t10) {
  return ygt ? e3.createElement(t10) : {};
}, pM = !Bo && !he((function() {
  return Object.defineProperty(cp("div"), "a", { get: function() {
    return 7;
  } }).a != 7;
})), oT = Object.getOwnPropertyDescriptor, rC = { f: Bo ? oT : function(t10, e) {
  if (t10 = Ta(t10), e = eC(e), pM) try {
    return oT(t10, e);
  } catch {
  }
  if (Ge(t10, e)) return vm(!ee(Zht.f, t10, e), t10[e]);
} }, mgt = tt.String, bgt = tt.TypeError, lr = function(t10) {
  if (de(t10)) return t10;
  throw bgt(mgt(t10) + " is not an object");
}, wgt = tt.TypeError, iT = Object.defineProperty, fi = { f: Bo ? iT : function(t10, e, r) {
  if (lr(t10), e = eC(e), lr(r), pM) try {
    return iT(t10, e, r);
  } catch {
  }
  if ("get" in r || "set" in r) throw wgt("Accessors not supported");
  return "value" in r && (t10[e] = r.value), t10;
} }, Co = Bo ? function(t10, e, r) {
  return fi.f(t10, e, vm(1, r));
} : function(t10, e, r) {
  return t10[e] = r, t10;
}, Egt = Tt(Function.toString);
ue(sa.inspectSource) || (sa.inspectSource = function(t10) {
  return Egt(t10);
});
var Z0, gd, J0, ym = sa.inspectSource, aT = tt.WeakMap, hM = ue(aT) && /native code/.test(ym(aT)), uT = J8("keys"), nC = function(t10) {
  return uT[t10] || (uT[t10] = tC(t10));
}, mm = {}, r3 = tt.TypeError, Dgt = tt.WeakMap;
if (hM || sa.state) {
  var Ka = sa.state || (sa.state = new Dgt()), Cgt = Tt(Ka.get), sT = Tt(Ka.has), xgt = Tt(Ka.set);
  Z0 = function(t10, e) {
    if (sT(Ka, t10)) throw new r3("Object already initialized");
    return e.facade = t10, xgt(Ka, t10, e), e;
  }, gd = function(t10) {
    return Cgt(Ka, t10) || {};
  }, J0 = function(t10) {
    return sT(Ka, t10);
  };
} else {
  var Ms = nC("state");
  mm[Ms] = true, Z0 = function(t10, e) {
    if (Ge(t10, Ms)) throw new r3("Object already initialized");
    return e.facade = t10, Co(t10, Ms, e), e;
  }, gd = function(t10) {
    return Ge(t10, Ms) ? t10[Ms] : {};
  }, J0 = function(t10) {
    return Ge(t10, Ms);
  };
}
var sn = { set: Z0, get: gd, has: J0, enforce: function(t10) {
  return J0(t10) ? gd(t10) : Z0(t10, {});
}, getterFor: function(t10) {
  return function(e) {
    var r;
    if (!de(e) || (r = gd(e)).type !== t10) throw r3("Incompatible receiver, " + t10 + " required");
    return r;
  };
} }, gM = Function.prototype, Sgt = Bo && Object.getOwnPropertyDescriptor, aw = Ge(gM, "name"), rh = { EXISTS: aw, PROPER: aw && (function() {
}).name === "something", CONFIGURABLE: aw && (!Bo || Bo && Sgt(gM, "name").configurable) }, Tn = K8((function(t10) {
  var e = rh.CONFIGURABLE, r = sn.get, n = sn.enforce, o = String(String).split("String");
  (t10.exports = function(i, a, u, s) {
    var l, c = !!s && !!s.unsafe, f = !!s && !!s.enumerable, d = !!s && !!s.noTargetGet, p = s && s.name !== void 0 ? s.name : a;
    ue(u) && (String(p).slice(0, 7) === "Symbol(" && (p = "[" + String(p).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!Ge(u, "name") || e && u.name !== p) && Co(u, "name", p), (l = n(u)).source || (l.source = o.join(typeof p == "string" ? p : ""))), i !== tt ? (c ? !d && i[a] && (f = true) : delete i[a], f ? i[a] = u : Co(i, a, u)) : f ? i[a] = u : Z8(a, u);
  })(Function.prototype, "toString", (function() {
    return ue(this) && r(this).source || ym(this);
  }));
})), Agt = Math.ceil, Ogt = Math.floor, oC = function(t10) {
  var e = +t10;
  return e != e || e === 0 ? 0 : (e > 0 ? Ogt : Agt)(e);
}, kgt = Math.max, Bgt = Math.min, fp = function(t10, e) {
  var r = oC(t10);
  return r < 0 ? kgt(r + e, 0) : Bgt(r, e);
}, Fgt = Math.min, vM = function(t10) {
  return t10 > 0 ? Fgt(oC(t10), 9007199254740991) : 0;
}, nh = function(t10) {
  return vM(t10.length);
}, Tgt = function(t10) {
  return function(e, r, n) {
    var o, i = Ta(e), a = nh(i), u = fp(n, a);
    if (t10 && r != r) {
      for (; a > u; ) if ((o = i[u++]) != o) return true;
    } else for (; a > u; u++) if ((t10 || u in i) && i[u] === r) return t10 || u || 0;
    return !t10 && -1;
  };
}, _gt = Tgt(false), lT = Tt([].push), yM = function(t10, e) {
  var r, n = Ta(t10), o = 0, i = [];
  for (r in n) !Ge(mm, r) && Ge(n, r) && lT(i, r);
  for (; e.length > o; ) Ge(n, r = e[o++]) && (~_gt(i, r) || lT(i, r));
  return i;
}, Q0 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], Pgt = Q0.concat("length", "prototype"), ty = { f: Object.getOwnPropertyNames || function(t10) {
  return yM(t10, Pgt);
} }, jgt = { f: Object.getOwnPropertySymbols }, Ngt = Tt([].concat), Igt = Zu("Reflect", "ownKeys") || function(t10) {
  var e = ty.f(lr(t10)), r = jgt.f;
  return r ? Ngt(e, r(t10)) : e;
}, Lgt = function(t10, e) {
  for (var r = Igt(e), n = fi.f, o = rC.f, i = 0; i < r.length; i++) {
    var a = r[i];
    Ge(t10, a) || n(t10, a, o(e, a));
  }
}, Rgt = /#|\.prototype\./, oh = function(t10, e) {
  var r = zgt[Mgt(t10)];
  return r == Hgt || r != $gt && (ue(e) ? he(e) : !!e);
}, Mgt = oh.normalize = function(t10) {
  return String(t10).replace(Rgt, ".").toLowerCase();
}, zgt = oh.data = {}, $gt = oh.NATIVE = "N", Hgt = oh.POLYFILL = "P", ey = oh, Vgt = rC.f, bo = function(t10, e) {
  var r, n, o, i, a, u = t10.target, s = t10.global, l = t10.stat;
  if (r = s ? tt : l ? tt[u] || Z8(u, {}) : (tt[u] || {}).prototype) for (n in e) {
    if (i = e[n], o = t10.noTargetGet ? (a = Vgt(r, n)) && a.value : r[n], !ey(s ? n : u + (l ? "." : "#") + n, t10.forced) && o !== void 0) {
      if (typeof i == typeof o) continue;
      Lgt(i, o);
    }
    (t10.sham || o && o.sham) && Co(i, "sham", true), Tn(r, n, i, t10);
  }
}, ry = Array.isArray || function(t10) {
  return Kn(t10) == "Array";
}, mM = {};
mM[Me("toStringTag")] = "z";
var iC = String(mM) === "[object z]", Ugt = Me("toStringTag"), Wgt = tt.Object, Ggt = Kn(/* @__PURE__ */ (function() {
  return arguments;
})()) == "Arguments", bm = iC ? Kn : function(t10) {
  var e, r, n;
  return t10 === void 0 ? "Undefined" : t10 === null ? "Null" : typeof (r = (function(o, i) {
    try {
      return o[i];
    } catch {
    }
  })(e = Wgt(t10), Ugt)) == "string" ? r : Ggt ? Kn(e) : (n = Kn(e)) == "Object" && ue(e.callee) ? "Arguments" : n;
}, bM = function() {
}, qgt = [], wM = Zu("Reflect", "construct"), aC = /^\s*(?:class|function)\b/, Kgt = Tt(aC.exec), Ygt = !aC.exec(bM), kf = function(t10) {
  if (!ue(t10)) return false;
  try {
    return wM(bM, qgt, t10), true;
  } catch {
    return false;
  }
}, uC = !wM || he((function() {
  var t10;
  return kf(kf.call) || !kf(Object) || !kf((function() {
    t10 = true;
  })) || t10;
})) ? function(t10) {
  if (!ue(t10)) return false;
  switch (bm(t10)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return false;
  }
  return Ygt || !!Kgt(aC, ym(t10));
} : kf, EM = function(t10, e, r) {
  var n = eC(e);
  n in t10 ? fi.f(t10, n, vm(0, r)) : t10[n] = r;
}, Xgt = Me("species"), DM = Tt([].slice), Zgt = sp >= 51 || !he((function() {
  var t10 = [];
  return (t10.constructor = {})[Xgt] = function() {
    return { foo: 1 };
  }, t10.slice(Boolean).foo !== 1;
})), Jgt = Me("species"), uw = tt.Array, Qgt = Math.max;
bo({ target: "Array", proto: true, forced: !Zgt }, { slice: function(t10, e) {
  var r, n, o, i = Ta(this), a = nh(i), u = fp(t10, a), s = fp(e === void 0 ? a : e, a);
  if (ry(i) && (r = i.constructor, (uC(r) && (r === uw || ry(r.prototype)) || de(r) && (r = r[Jgt]) === null) && (r = void 0), r === uw || r === void 0)) return DM(i, u, s);
  for (n = new (r === void 0 ? uw : r)(Qgt(s - u, 0)), o = 0; u < s; u++, o++) u in i && EM(n, o, i[u]);
  return n.length = o, n;
} });
var tvt = iC ? {}.toString : function() {
  return "[object " + bm(this) + "]";
};
iC || Tn(Object.prototype, "toString", tvt, { unsafe: true });
var gg, evt = tt.String, la = function(t10) {
  if (bm(t10) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  return evt(t10);
}, CM = function() {
  var t10 = lr(this), e = "";
  return t10.global && (e += "g"), t10.ignoreCase && (e += "i"), t10.multiline && (e += "m"), t10.dotAll && (e += "s"), t10.unicode && (e += "u"), t10.sticky && (e += "y"), e;
}, sC = tt.RegExp, n3 = he((function() {
  var t10 = sC("a", "y");
  return t10.lastIndex = 2, t10.exec("abcd") != null;
}));
n3 || he((function() {
  return !sC("a", "y").sticky;
}));
var xM = { BROKEN_CARET: n3 || he((function() {
  var t10 = sC("^r", "gy");
  return t10.lastIndex = 2, t10.exec("str") != null;
})), UNSUPPORTED_Y: n3 }, rvt = Object.keys || function(t10) {
  return yM(t10, Q0);
}, nvt = Bo ? Object.defineProperties : function(t10, e) {
  lr(t10);
  for (var r, n = Ta(e), o = rvt(e), i = o.length, a = 0; i > a; ) fi.f(t10, r = o[a++], n[r]);
  return t10;
}, o3 = Zu("document", "documentElement"), SM = nC("IE_PROTO"), sw = function() {
}, AM = function(t10) {
  return "<script>" + t10 + "<\/script>";
}, cT = function(t10) {
  t10.write(AM("")), t10.close();
  var e = t10.parentWindow.Object;
  return t10 = null, e;
}, Qg = function() {
  try {
    gg = new ActiveXObject("htmlfile");
  } catch {
  }
  var t10, e;
  Qg = typeof document < "u" ? document.domain && gg ? cT(gg) : ((e = cp("iframe")).style.display = "none", o3.appendChild(e), e.src = "javascript:", (t10 = e.contentWindow.document).open(), t10.write(AM("document.F=Object")), t10.close(), t10.F) : cT(gg);
  for (var r = Q0.length; r--; ) delete Qg.prototype[Q0[r]];
  return Qg();
};
mm[SM] = true;
var fT, lw, lC = Object.create || function(t10, e) {
  var r;
  return t10 !== null ? (sw.prototype = lr(t10), r = new sw(), sw.prototype = null, r[SM] = t10) : r = Qg(), e === void 0 ? r : nvt(r, e);
}, ovt = tt.RegExp, ivt = he((function() {
  var t10 = ovt(".", "s");
  return !(t10.dotAll && t10.exec(`
`) && t10.flags === "s");
})), avt = tt.RegExp, uvt = he((function() {
  var t10 = avt("(?<a>b)", "g");
  return t10.exec("b").groups.a !== "b" || "b".replace(t10, "$<a>c") !== "bc";
})), svt = sn.get, lvt = J8("native-string-replace", String.prototype.replace), ny = RegExp.prototype.exec, i3 = ny, cvt = Tt("".charAt), fvt = Tt("".indexOf), dvt = Tt("".replace), cw = Tt("".slice), fw = (lw = /b*/g, ee(ny, fT = /a/, "a"), ee(ny, lw, "a"), fT.lastIndex !== 0 || lw.lastIndex !== 0), dT = xM.BROKEN_CARET, dw = /()??/.exec("")[1] !== void 0;
(fw || dw || dT || ivt || uvt) && (i3 = function(t10) {
  var e, r, n, o, i, a, u, s = this, l = svt(s), c = la(t10), f = l.raw;
  if (f) return f.lastIndex = s.lastIndex, e = ee(i3, f, c), s.lastIndex = f.lastIndex, e;
  var d = l.groups, p = dT && s.sticky, v = ee(CM, s), y = s.source, g = 0, m = c;
  if (p && (v = dvt(v, "y", ""), fvt(v, "g") === -1 && (v += "g"), m = cw(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && cvt(c, s.lastIndex - 1) !== `
`) && (y = "(?: " + y + ")", m = " " + m, g++), r = new RegExp("^(?:" + y + ")", v)), dw && (r = new RegExp("^" + y + "$(?!\\s)", v)), fw && (n = s.lastIndex), o = ee(ny, p ? r : s, m), p ? o ? (o.input = cw(o.input, g), o[0] = cw(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : fw && o && (s.lastIndex = s.global ? o.index + o[0].length : n), dw && o && o.length > 1 && ee(lvt, o[0], r, (function() {
    for (i = 1; i < arguments.length - 2; i++) arguments[i] === void 0 && (o[i] = void 0);
  })), o && d) for (o.groups = a = lC(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
  return o;
});
var dp = i3;
bo({ target: "RegExp", proto: true, forced: /./.exec !== dp }, { exec: dp });
var cC = Function.prototype, pT = cC.apply, pvt = cC.bind, hT = cC.call, OM = typeof Reflect == "object" && Reflect.apply || (pvt ? hT.bind(pT) : function() {
  return hT.apply(pT, arguments);
}), hvt = Me("species"), pw = RegExp.prototype, gvt = Me("match"), vvt = tt.TypeError, yvt = Me("species"), kM = function(t10, e) {
  var r, n = lr(t10).constructor;
  return n === void 0 || (r = lr(n)[yvt]) == null ? e : (function(o) {
    if (uC(o)) return o;
    throw vvt(X0(o) + " is not a constructor");
  })(r);
}, mvt = Tt("".charAt), gT = Tt("".charCodeAt), bvt = Tt("".slice), wvt = function(t10) {
  return function(e, r) {
    var n, o, i = la(ap(e)), a = oC(r), u = i.length;
    return a < 0 || a >= u ? t10 ? "" : void 0 : (n = gT(i, a)) < 55296 || n > 56319 || a + 1 === u || (o = gT(i, a + 1)) < 56320 || o > 57343 ? t10 ? mvt(i, a) : n : t10 ? bvt(i, a, a + 2) : o - 56320 + (n - 55296 << 10) + 65536;
  };
}, BM = { charAt: wvt(true) }, Evt = BM.charAt, Dvt = function(t10, e, r) {
  return e + (r ? Evt(t10, e).length : 1);
}, Cvt = tt.Array, xvt = Math.max, a3 = function(t10, e, r) {
  for (var n = nh(t10), o = fp(e, n), i = fp(r === void 0 ? n : r, n), a = Cvt(xvt(i - o, 0)), u = 0; o < i; o++, u++) EM(a, u, t10[o]);
  return a.length = u, a;
}, Svt = tt.TypeError, vT = function(t10, e) {
  var r = t10.exec;
  if (ue(r)) {
    var n = ee(r, t10, e);
    return n !== null && lr(n), n;
  }
  if (Kn(t10) === "RegExp") return ee(dp, t10, e);
  throw Svt("RegExp#exec called on incompatible receiver");
}, zs = xM.UNSUPPORTED_Y, Avt = Math.min, FM = [].push, Ovt = Tt(/./.exec), $s = Tt(FM), Bf = Tt("".slice);
(function(t10, e, r, n) {
  var o = Me(t10), i = !he((function() {
    var l = {};
    return l[o] = function() {
      return 7;
    }, ""[t10](l) != 7;
  })), a = i && !he((function() {
    var l = false, c = /a/;
    return (c = {}).constructor = {}, c.constructor[hvt] = function() {
      return c;
    }, c.flags = "", c[o] = /./[o], c.exec = function() {
      return l = true, null;
    }, c[o](""), !l;
  }));
  if (!i || !a || r) {
    var u = Tt(/./[o]), s = (function(l, c, f) {
      var d;
      return d = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(p, v) {
        var y, g, m = la(ap(this)), h = v === void 0 ? 4294967295 : v >>> 0;
        if (h === 0) return [];
        if (p === void 0) return [m];
        if (!de(y = p) || !((g = y[gvt]) !== void 0 ? g : Kn(y) == "RegExp")) return ee(c, m, p, h);
        for (var b, w, D, x = [], C = (p.ignoreCase ? "i" : "") + (p.multiline ? "m" : "") + (p.unicode ? "u" : "") + (p.sticky ? "y" : ""), O = 0, T = new RegExp(p.source, C + "g"); (b = ee(dp, T, m)) && !((w = T.lastIndex) > O && ($s(x, Bf(m, O, b.index)), b.length > 1 && b.index < m.length && OM(FM, x, a3(b, 1)), D = b[0].length, O = w, x.length >= h)); ) T.lastIndex === b.index && T.lastIndex++;
        return O === m.length ? !D && Ovt(T, "") || $s(x, "") : $s(x, Bf(m, O)), x.length > h ? a3(x, 0, h) : x;
      } : "0".split(void 0, 0).length ? function(p, v) {
        return p === void 0 && v === 0 ? [] : ee(c, this, p, v);
      } : c, [function(p, v) {
        var y = ap(this), g = p == null ? void 0 : lp(p, l);
        return g ? ee(g, p, y, v) : ee(d, la(y), p, v);
      }, function(p, v) {
        var y = lr(this), g = la(p), m = f(d, y, g, v, d !== c);
        if (m.done) return m.value;
        var h = kM(y, RegExp), b = y.unicode, w = (y.ignoreCase ? "i" : "") + (y.multiline ? "m" : "") + (y.unicode ? "u" : "") + (zs ? "g" : "y"), D = new h(zs ? "^(?:" + y.source + ")" : y, w), x = v === void 0 ? 4294967295 : v >>> 0;
        if (x === 0) return [];
        if (g.length === 0) return vT(D, g) === null ? [g] : [];
        for (var C = 0, O = 0, T = []; O < g.length; ) {
          D.lastIndex = zs ? 0 : O;
          var R, H = vT(D, zs ? Bf(g, O) : g);
          if (H === null || (R = Avt(vM(D.lastIndex + (zs ? O : 0)), g.length)) === C) O = Dvt(g, O, b);
          else {
            if ($s(T, Bf(g, C, O)), T.length === x) return T;
            for (var M = 1; M <= H.length - 1; M++) if ($s(T, H[M]), T.length === x) return T;
            O = C = R;
          }
        }
        return $s(T, Bf(g, C)), T;
      }];
    })(o, ""[t10], (function(l, c, f, d, p) {
      var v = Tt(l), y = c.exec;
      return y === dp || y === pw.exec ? i && !p ? { done: true, value: u(c, f, d) } : { done: true, value: v(f, c, d) } : { done: false };
    }));
    Tn(String.prototype, t10, s[0]), Tn(pw, o, s[1]);
  }
  n && Co(pw[o], "sham", true);
})("split", 0, !!he((function() {
  var t10 = /(?:)/, e = t10.exec;
  t10.exec = function() {
    return e.apply(this, arguments);
  };
  var r = "ab".split(t10);
  return r.length !== 2 || r[0] !== "a" || r[1] !== "b";
})), zs);
var oy = function() {
  return oy = Object.assign || function(t10) {
    for (var e, r = 1, n = arguments.length; r < n; r++) for (var o in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, o) && (t10[o] = e[o]);
    return t10;
  }, oy.apply(this, arguments);
};
function fC(t10, e, r, n) {
  return new (r || (r = Promise))((function(o, i) {
    function a(l) {
      try {
        s(n.next(l));
      } catch (c) {
        i(c);
      }
    }
    function u(l) {
      try {
        s(n.throw(l));
      } catch (c) {
        i(c);
      }
    }
    function s(l) {
      var c;
      l.done ? o(l.value) : (c = l.value, c instanceof r ? c : new r((function(f) {
        f(c);
      }))).then(a, u);
    }
    s((n = n.apply(t10, [])).next());
  }));
}
function dC(t10, e) {
  var r, n, o, i, a = { label: 0, sent: function() {
    if (1 & o[0]) throw o[1];
    return o[1];
  }, trys: [], ops: [] };
  return i = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
    return this;
  }), i;
  function u(s) {
    return function(l) {
      return (function(c) {
        if (r) throw new TypeError("Generator is already executing.");
        for (; a; ) try {
          if (r = 1, n && (o = 2 & c[0] ? n.return : c[0] ? n.throw || ((o = n.return) && o.call(n), 0) : n.next) && !(o = o.call(n, c[1])).done) return o;
          switch (n = 0, o && (c = [2 & c[0], o.value]), c[0]) {
            case 0:
            case 1:
              o = c;
              break;
            case 4:
              return a.label++, { value: c[1], done: false };
            case 5:
              a.label++, n = c[1], c = [0];
              continue;
            case 7:
              c = a.ops.pop(), a.trys.pop();
              continue;
            default:
              if (!((o = (o = a.trys).length > 0 && o[o.length - 1]) || c[0] !== 6 && c[0] !== 2)) {
                a = 0;
                continue;
              }
              if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
                a.label = c[1];
                break;
              }
              if (c[0] === 6 && a.label < o[1]) {
                a.label = o[1], o = c;
                break;
              }
              if (o && a.label < o[2]) {
                a.label = o[2], a.ops.push(c);
                break;
              }
              o[2] && a.ops.pop(), a.trys.pop();
              continue;
          }
          c = e.call(t10, a);
        } catch (f) {
          c = [6, f], n = 0;
        } finally {
          r = o = 0;
        }
        if (5 & c[0]) throw c[1];
        return { value: c[0] ? c[1] : void 0, done: true };
      })([s, l]);
    };
  }
}
function kvt(t10) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var e, r = t10[Symbol.asyncIterator];
  return r ? r.call(t10) : (t10 = (function(o) {
    var i = typeof Symbol == "function" && Symbol.iterator, a = i && o[i], u = 0;
    if (a) return a.call(o);
    if (o && typeof o.length == "number") return { next: function() {
      return o && u >= o.length && (o = void 0), { value: o && o[u++], done: !o };
    } };
    throw new TypeError(i ? "Object is not iterable." : "Symbol.iterator is not defined.");
  })(t10), e = {}, n("next"), n("throw"), n("return"), e[Symbol.asyncIterator] = function() {
    return this;
  }, e);
  function n(o) {
    e[o] = t10[o] && function(i) {
      return new Promise((function(a, u) {
        (function(s, l, c, f) {
          Promise.resolve(f).then((function(d) {
            s({ value: d, done: c });
          }), l);
        })(a, u, (i = t10[o](i)).done, i.value);
      }));
    };
  }
}
var u3 = Me("unscopables"), s3 = Array.prototype;
s3[u3] == null && fi.f(s3, u3, { configurable: true, value: lC(null) });
var ju, yT, mT, hw = function(t10) {
  s3[u3][t10] = true;
}, Vl = {}, Bvt = !he((function() {
  function t10() {
  }
  return t10.prototype.constructor = null, Object.getPrototypeOf(new t10()) !== t10.prototype;
})), bT = nC("IE_PROTO"), l3 = tt.Object, Fvt = l3.prototype, iy = Bvt ? l3.getPrototypeOf : function(t10) {
  var e = Q8(t10);
  if (Ge(e, bT)) return e[bT];
  var r = e.constructor;
  return ue(r) && e instanceof r ? r.prototype : e instanceof l3 ? Fvt : null;
}, c3 = Me("iterator"), TM = false;
[].keys && ("next" in (mT = [].keys()) ? (yT = iy(iy(mT))) !== Object.prototype && (ju = yT) : TM = true);
var Tvt = ju == null || he((function() {
  var t10 = {};
  return ju[c3].call(t10) !== t10;
}));
Tvt && (ju = {}), ue(ju[c3]) || Tn(ju, c3, (function() {
  return this;
}));
var pC = { IteratorPrototype: ju, BUGGY_SAFARI_ITERATORS: TM }, _vt = fi.f, wT = Me("toStringTag"), ay = function(t10, e, r) {
  t10 && !Ge(t10 = r ? t10 : t10.prototype, wT) && _vt(t10, wT, { configurable: true, value: e });
}, Pvt = pC.IteratorPrototype, jvt = function() {
  return this;
}, Nvt = tt.String, Ivt = tt.TypeError, Ul = Object.setPrototypeOf || ("__proto__" in {} ? (function() {
  var t10, e = false, r = {};
  try {
    (t10 = Tt(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set))(r, []), e = r instanceof Array;
  } catch {
  }
  return function(n, o) {
    return lr(n), (function(i) {
      if (typeof i == "object" || ue(i)) return i;
      throw Ivt("Can't set " + Nvt(i) + " as a prototype");
    })(o), e ? t10(n, o) : n.__proto__ = o, n;
  };
})() : void 0), Lvt = rh.PROPER, Rvt = rh.CONFIGURABLE, ET = pC.IteratorPrototype, gw = pC.BUGGY_SAFARI_ITERATORS, Ff = Me("iterator"), Mvt = function() {
  return this;
}, _M = function(t10, e, r, n, o, i, a) {
  (function(g, m, h, b) {
    var w = m + " Iterator";
    g.prototype = lC(Pvt, { next: vm(1, h) }), ay(g, w, false), Vl[w] = jvt;
  })(r, e, n);
  var u, s, l = function(g) {
    if (g === o && v) return v;
    if (!gw && g in d) return d[g];
    switch (g) {
      case "keys":
      case "values":
      case "entries":
        return function() {
          return new r(this, g);
        };
    }
    return function() {
      return new r(this);
    };
  }, c = e + " Iterator", f = false, d = t10.prototype, p = d[Ff] || d["@@iterator"] || o && d[o], v = !gw && p || l(o), y = e == "Array" && d.entries || p;
  return y && (u = iy(y.call(new t10()))) !== Object.prototype && u.next && (iy(u) !== ET && (Ul ? Ul(u, ET) : ue(u[Ff]) || Tn(u, Ff, Mvt)), ay(u, c, true)), Lvt && o == "values" && p && p.name !== "values" && (Rvt ? Co(d, "name", "values") : (f = true, v = function() {
    return ee(p, this);
  })), o && (s = { values: l("values"), keys: l("keys"), entries: l("entries") }, a || bo({ target: e, proto: true, forced: gw || f }, s)), d[Ff] !== v && Tn(d, Ff, v, { name: o }), Vl[e] = v, s;
}, zvt = sn.set, $vt = sn.getterFor("Array Iterator"), Kf = _M(Array, "Array", (function(t10, e) {
  zvt(this, { type: "Array Iterator", target: Ta(t10), index: 0, kind: e });
}), (function() {
  var t10 = $vt(this), e = t10.target, r = t10.kind, n = t10.index++;
  return !e || n >= e.length ? (t10.target = void 0, { value: void 0, done: true }) : r == "keys" ? { value: n, done: false } : r == "values" ? { value: e[n], done: false } : { value: [n, e[n]], done: false };
}), "values");
Vl.Arguments = Vl.Array, hw("keys"), hw("values"), hw("entries");
var Hvt = BM.charAt, Vvt = sn.set, Uvt = sn.getterFor("String Iterator");
_M(String, "String", (function(t10) {
  Vvt(this, { type: "String Iterator", string: la(t10), index: 0 });
}), (function() {
  var t10, e = Uvt(this), r = e.string, n = e.index;
  return n >= r.length ? { value: void 0, done: true } : (t10 = Hvt(r, n), e.index += t10.length, { value: t10, done: false });
}));
var uy = function(t10, e, r) {
  for (var n in e) Tn(t10, n, e[n], r);
  return t10;
}, DT = ty.f, CT = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], Wvt = { f: function(t10) {
  return CT && Kn(t10) == "Window" ? (function(e) {
    try {
      return DT(e);
    } catch {
      return a3(CT);
    }
  })(t10) : DT(Ta(t10));
} }, xT = he((function() {
  if (typeof ArrayBuffer == "function") {
    var t10 = new ArrayBuffer(8);
    Object.isExtensible(t10) && Object.defineProperty(t10, "a", { value: 8 });
  }
})), vg = Object.isExtensible, fu = he((function() {
  vg(1);
})) || xT ? function(t10) {
  return !!de(t10) && (!xT || Kn(t10) != "ArrayBuffer") && (!vg || vg(t10));
} : vg, Gvt = !he((function() {
  return Object.isExtensible(Object.preventExtensions({}));
})), hC = K8((function(t10) {
  var e = fi.f, r = false, n = tC("meta"), o = 0, i = function(u) {
    e(u, n, { value: { objectID: "O" + o++, weakData: {} } });
  }, a = t10.exports = { enable: function() {
    a.enable = function() {
    }, r = true;
    var u = ty.f, s = Tt([].splice), l = {};
    l[n] = 1, u(l).length && (ty.f = function(c) {
      for (var f = u(c), d = 0, p = f.length; d < p; d++) if (f[d] === n) {
        s(f, d, 1);
        break;
      }
      return f;
    }, bo({ target: "Object", stat: true, forced: true }, { getOwnPropertyNames: Wvt.f }));
  }, fastKey: function(u, s) {
    if (!de(u)) return typeof u == "symbol" ? u : (typeof u == "string" ? "S" : "P") + u;
    if (!Ge(u, n)) {
      if (!fu(u)) return "F";
      if (!s) return "E";
      i(u);
    }
    return u[n].objectID;
  }, getWeakData: function(u, s) {
    if (!Ge(u, n)) {
      if (!fu(u)) return true;
      if (!s) return false;
      i(u);
    }
    return u[n].weakData;
  }, onFreeze: function(u) {
    return Gvt && r && fu(u) && !Ge(u, n) && i(u), u;
  } };
  mm[n] = true;
})), ST = Tt(Tt.bind), pp = function(t10, e) {
  return xa(t10), e === void 0 ? t10 : ST ? ST(t10, e) : function() {
    return t10.apply(e, arguments);
  };
}, qvt = Me("iterator"), Kvt = Array.prototype, Yvt = Me("iterator"), AT = function(t10) {
  if (t10 != null) return lp(t10, Yvt) || lp(t10, "@@iterator") || Vl[bm(t10)];
}, Xvt = tt.TypeError, OT = function(t10, e, r) {
  var n, o;
  lr(t10);
  try {
    if (!(n = lp(t10, "return"))) {
      if (e === "throw") throw r;
      return r;
    }
    n = ee(n, t10);
  } catch (i) {
    o = true, n = i;
  }
  if (e === "throw") throw r;
  if (o) throw n;
  return lr(n), r;
}, Zvt = tt.TypeError, tv = function(t10, e) {
  this.stopped = t10, this.result = e;
}, kT = tv.prototype, sy = function(t10, e, r) {
  var n, o, i, a, u, s, l, c, f = r && r.that, d = !(!r || !r.AS_ENTRIES), p = !(!r || !r.IS_ITERATOR), v = !(!r || !r.INTERRUPTED), y = pp(e, f), g = function(h) {
    return n && OT(n, "normal", h), new tv(true, h);
  }, m = function(h) {
    return d ? (lr(h), v ? y(h[0], h[1], g) : y(h[0], h[1])) : v ? y(h, g) : y(h);
  };
  if (p) n = t10;
  else {
    if (!(o = AT(t10))) throw Zvt(X0(t10) + " is not iterable");
    if ((c = o) !== void 0 && (Vl.Array === c || Kvt[qvt] === c)) {
      for (i = 0, a = nh(t10); a > i; i++) if ((u = m(t10[i])) && up(kT, u)) return u;
      return new tv(false);
    }
    n = (function(h, b) {
      var w = arguments.length < 2 ? AT(h) : b;
      if (xa(w)) return lr(ee(w, h));
      throw Xvt(X0(h) + " is not iterable");
    })(t10, o);
  }
  for (s = n.next; !(l = ee(s, n)).done; ) {
    try {
      u = m(l.value);
    } catch (h) {
      OT(n, "throw", h);
    }
    if (typeof u == "object" && u && up(kT, u)) return u;
  }
  return new tv(false);
}, Jvt = tt.TypeError, gC = function(t10, e) {
  if (up(e, t10)) return t10;
  throw Jvt("Incorrect invocation");
}, PM = Me("iterator"), jM = false;
try {
  var Qvt = 0, BT = { next: function() {
    return { done: !!Qvt++ };
  }, return: function() {
    jM = true;
  } };
  BT[PM] = function() {
    return this;
  }, Array.from(BT, (function() {
    throw 2;
  }));
} catch {
}
var NM = function(t10, e) {
  if (!jM) return false;
  var r = false;
  try {
    var n = {};
    n[PM] = function() {
      return { next: function() {
        return { done: r = true };
      } };
    }, t10(n);
  } catch {
  }
  return r;
}, t0t = Me("species"), FT = tt.Array, e0t = function(t10, e) {
  return new ((function(r) {
    var n;
    return ry(r) && (n = r.constructor, (uC(n) && (n === FT || ry(n.prototype)) || de(n) && (n = n[t0t]) === null) && (n = void 0)), n === void 0 ? FT : n;
  })(t10))(e === 0 ? 0 : e);
}, TT = Tt([].push), vw = function(t10) {
  var e = t10 == 1, r = t10 == 2, n = t10 == 3, o = t10 == 4, i = t10 == 6, a = t10 == 7, u = t10 == 5 || i;
  return function(s, l, c, f) {
    for (var d, p, v = Q8(s), y = Y8(v), g = pp(l, c), m = nh(y), h = 0, b = f || e0t, w = e ? b(s, m) : r || a ? b(s, 0) : void 0; m > h; h++) if ((u || h in y) && (p = g(d = y[h], h, v), t10)) if (e) w[h] = p;
    else if (p) switch (t10) {
      case 3:
        return true;
      case 5:
        return d;
      case 6:
        return h;
      case 2:
        TT(w, d);
    }
    else switch (t10) {
      case 4:
        return false;
      case 7:
        TT(w, d);
    }
    return i ? -1 : n || o ? o : w;
  };
}, vC = { forEach: vw(0), find: vw(5), findIndex: vw(6) }, yg = hC.getWeakData, r0t = sn.set, n0t = sn.getterFor, o0t = vC.find, i0t = vC.findIndex, a0t = Tt([].splice), u0t = 0, mg = function(t10) {
  return t10.frozen || (t10.frozen = new IM());
}, IM = function() {
  this.entries = [];
}, yw = function(t10, e) {
  return o0t(t10.entries, (function(r) {
    return r[0] === e;
  }));
};
IM.prototype = { get: function(t10) {
  var e = yw(this, t10);
  if (e) return e[1];
}, has: function(t10) {
  return !!yw(this, t10);
}, set: function(t10, e) {
  var r = yw(this, t10);
  r ? r[1] = e : this.entries.push([t10, e]);
}, delete: function(t10) {
  var e = i0t(this.entries, (function(r) {
    return r[0] === t10;
  }));
  return ~e && a0t(this.entries, e, 1), !!~e;
} };
var Tf, LM = { getConstructor: function(t10, e, r, n) {
  var o = t10((function(s, l) {
    gC(s, i), r0t(s, { type: e, id: u0t++, frozen: void 0 }), l != null && sy(l, s[n], { that: s, AS_ENTRIES: r });
  })), i = o.prototype, a = n0t(e), u = function(s, l, c) {
    var f = a(s), d = yg(lr(l), true);
    return d === true ? mg(f).set(l, c) : d[f.id] = c, s;
  };
  return uy(i, { delete: function(s) {
    var l = a(this);
    if (!de(s)) return false;
    var c = yg(s);
    return c === true ? mg(l).delete(s) : c && Ge(c, l.id) && delete c[l.id];
  }, has: function(s) {
    var l = a(this);
    if (!de(s)) return false;
    var c = yg(s);
    return c === true ? mg(l).has(s) : c && Ge(c, l.id);
  } }), uy(i, r ? { get: function(s) {
    var l = a(this);
    if (de(s)) {
      var c = yg(s);
      return c === true ? mg(l).get(s) : c ? c[l.id] : void 0;
    }
  }, set: function(s, l) {
    return u(this, s, l);
  } } : { add: function(s) {
    return u(this, s, true);
  } }), o;
} }, bg = sn.enforce, s0t = !tt.ActiveXObject && "ActiveXObject" in tt, RM = function(t10) {
  return function() {
    return t10(this, arguments.length ? arguments[0] : void 0);
  };
}, l0t = (function(t10, e, r) {
  var n = t10.indexOf("Map") !== -1, o = t10.indexOf("Weak") !== -1, i = n ? "set" : "add", a = tt[t10], u = a && a.prototype, s = a, l = {}, c = function(g) {
    var m = Tt(u[g]);
    Tn(u, g, g == "add" ? function(h) {
      return m(this, h === 0 ? 0 : h), this;
    } : g == "delete" ? function(h) {
      return !(o && !de(h)) && m(this, h === 0 ? 0 : h);
    } : g == "get" ? function(h) {
      return o && !de(h) ? void 0 : m(this, h === 0 ? 0 : h);
    } : g == "has" ? function(h) {
      return !(o && !de(h)) && m(this, h === 0 ? 0 : h);
    } : function(h, b) {
      return m(this, h === 0 ? 0 : h, b), this;
    });
  };
  if (ey(t10, !ue(a) || !(o || u.forEach && !he((function() {
    new a().entries().next();
  }))))) s = r.getConstructor(e, t10, n, i), hC.enable();
  else if (ey(t10, true)) {
    var f = new s(), d = f[i](o ? {} : -0, 1) != f, p = he((function() {
      f.has(1);
    })), v = NM((function(g) {
      new a(g);
    })), y = !o && he((function() {
      for (var g = new a(), m = 5; m--; ) g[i](m, m);
      return !g.has(-0);
    }));
    v || ((s = e((function(g, m) {
      gC(g, u);
      var h = (function(b, w, D) {
        var x, C;
        return Ul && ue(x = w.constructor) && x !== D && de(C = x.prototype) && C !== D.prototype && Ul(b, C), b;
      })(new a(), g, s);
      return m != null && sy(m, h[i], { that: h, AS_ENTRIES: n }), h;
    }))).prototype = u, u.constructor = s), (p || y) && (c("delete"), c("has"), n && c("get")), (y || d) && c(i), o && u.clear && delete u.clear;
  }
  return l[t10] = s, bo({ global: true, forced: s != a }, l), ay(s, t10), o || r.setStrong(s, t10, n), s;
})("WeakMap", RM, LM);
if (hM && s0t) {
  Tf = LM.getConstructor(RM, "WeakMap", true), hC.enable();
  var _f = l0t.prototype, _T = Tt(_f.delete), wg = Tt(_f.has), PT = Tt(_f.get), jT = Tt(_f.set);
  uy(_f, { delete: function(t10) {
    if (de(t10) && !fu(t10)) {
      var e = bg(this);
      return e.frozen || (e.frozen = new Tf()), _T(this, t10) || e.frozen.delete(t10);
    }
    return _T(this, t10);
  }, has: function(t10) {
    if (de(t10) && !fu(t10)) {
      var e = bg(this);
      return e.frozen || (e.frozen = new Tf()), wg(this, t10) || e.frozen.has(t10);
    }
    return wg(this, t10);
  }, get: function(t10) {
    if (de(t10) && !fu(t10)) {
      var e = bg(this);
      return e.frozen || (e.frozen = new Tf()), wg(this, t10) ? PT(this, t10) : e.frozen.get(t10);
    }
    return PT(this, t10);
  }, set: function(t10, e) {
    if (de(t10) && !fu(t10)) {
      var r = bg(this);
      r.frozen || (r.frozen = new Tf()), wg(this, t10) ? jT(this, t10, e) : r.frozen.set(t10, e);
    } else jT(this, t10, e);
    return this;
  } });
}
var ly = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }, mw = cp("span").classList, NT = mw && mw.constructor && mw.constructor.prototype, MM = NT === Object.prototype ? void 0 : NT, bw = Me("iterator"), IT = Me("toStringTag"), ww = Kf.values, zM = function(t10, e) {
  if (t10) {
    if (t10[bw] !== ww) try {
      Co(t10, bw, ww);
    } catch {
      t10[bw] = ww;
    }
    if (t10[IT] || Co(t10, IT, e), ly[e]) {
      for (var r in Kf) if (t10[r] !== Kf[r]) try {
        Co(t10, r, Kf[r]);
      } catch {
        t10[r] = Kf[r];
      }
    }
  }
};
for (var Ew in ly) zM(tt[Ew] && tt[Ew].prototype, Ew);
zM(MM, "DOMTokenList");
var $M = function(t10, e) {
  var r = [][t10];
  return !!r && he((function() {
    r.call(null, e || function() {
      throw 1;
    }, 1);
  }));
}, c0t = vC.forEach, Dw = $M("forEach") ? [].forEach : function(t10) {
  return c0t(this, t10, arguments.length > 1 ? arguments[1] : void 0);
}, HM = function(t10) {
  if (t10 && t10.forEach !== Dw) try {
    Co(t10, "forEach", Dw);
  } catch {
    t10.forEach = Dw;
  }
};
for (var Cw in ly) ly[Cw] && HM(tt[Cw] && tt[Cw].prototype);
HM(MM);
var hp, Hs, LT, xw, cy = tt.Promise, RT = Me("species"), VM = /(?:ipad|iphone|ipod).*applewebkit/i.test(gl), ca = Kn(tt.process) == "process", f3 = tt.setImmediate, MT = tt.clearImmediate, f0t = tt.process, Sw = tt.Dispatch, d0t = tt.Function, zT = tt.MessageChannel, p0t = tt.String, Aw = 0, vd = {};
try {
  hp = tt.location;
} catch {
}
var yC = function(t10) {
  if (Ge(vd, t10)) {
    var e = vd[t10];
    delete vd[t10], e();
  }
}, Ow = function(t10) {
  return function() {
    yC(t10);
  };
}, $T = function(t10) {
  yC(t10.data);
}, HT = function(t10) {
  tt.postMessage(p0t(t10), hp.protocol + "//" + hp.host);
};
f3 && MT || (f3 = function(t10) {
  var e = DM(arguments, 1);
  return vd[++Aw] = function() {
    OM(ue(t10) ? t10 : d0t(t10), void 0, e);
  }, Hs(Aw), Aw;
}, MT = function(t10) {
  delete vd[t10];
}, ca ? Hs = function(t10) {
  f0t.nextTick(Ow(t10));
} : Sw && Sw.now ? Hs = function(t10) {
  Sw.now(Ow(t10));
} : zT && !VM ? (xw = (LT = new zT()).port2, LT.port1.onmessage = $T, Hs = pp(xw.postMessage, xw)) : tt.addEventListener && ue(tt.postMessage) && !tt.importScripts && hp && hp.protocol !== "file:" && !he(HT) ? (Hs = HT, tt.addEventListener("message", $T, false)) : Hs = "onreadystatechange" in cp("script") ? function(t10) {
  o3.appendChild(cp("script")).onreadystatechange = function() {
    o3.removeChild(this), yC(t10);
  };
} : function(t10) {
  setTimeout(Ow(t10), 0);
});
var Pf, au, yd, Js, kw, Bw, Fw, VT, UM = { set: f3 }, h0t = /ipad|iphone|ipod/i.test(gl) && tt.Pebble !== void 0, g0t = /web0s(?!.*chrome)/i.test(gl), v0t = rC.f, Tw = UM.set, UT = tt.MutationObserver || tt.WebKitMutationObserver, WT = tt.document, GT = tt.process, Eg = tt.Promise, qT = v0t(tt, "queueMicrotask"), WM = qT && qT.value;
WM || (Pf = function() {
  var t10, e;
  for (ca && (t10 = GT.domain) && t10.exit(); au; ) {
    e = au.fn, au = au.next;
    try {
      e();
    } catch (r) {
      throw au ? Js() : yd = void 0, r;
    }
  }
  yd = void 0, t10 && t10.enter();
}, VM || ca || g0t || !UT || !WT ? !h0t && Eg && Eg.resolve ? ((Fw = Eg.resolve(void 0)).constructor = Eg, VT = pp(Fw.then, Fw), Js = function() {
  VT(Pf);
}) : ca ? Js = function() {
  GT.nextTick(Pf);
} : (Tw = pp(Tw, tt), Js = function() {
  Tw(Pf);
}) : (kw = true, Bw = WT.createTextNode(""), new UT(Pf).observe(Bw, { characterData: true }), Js = function() {
  Bw.data = kw = !kw;
}));
var _w, KT, GM, YT, qM = WM || function(t10) {
  var e = { fn: t10, next: void 0 };
  yd && (yd.next = e), au || (au = e, Js()), yd = e;
}, y0t = function(t10) {
  var e, r;
  this.promise = new t10((function(n, o) {
    if (e !== void 0 || r !== void 0) throw TypeError("Bad Promise constructor");
    e = n, r = o;
  })), this.resolve = xa(e), this.reject = xa(r);
}, mC = { f: function(t10) {
  return new y0t(t10);
} }, d3 = function(t10) {
  try {
    return { error: false, value: t10() };
  } catch (e) {
    return { error: true, value: e };
  }
}, m0t = typeof window == "object", KM = UM.set, b0t = Me("species"), Yo = "Promise", XT = sn.getterFor(Yo), w0t = sn.set, E0t = sn.getterFor(Yo), tu = cy && cy.prototype, wo = cy, jf = tu, YM = tt.TypeError, p3 = tt.document, bC = tt.process, vl = mC.f, D0t = vl, C0t = !!(p3 && p3.createEvent && tt.dispatchEvent), XM = ue(tt.PromiseRejectionEvent), ZM = false, md = ey(Yo, (function() {
  var t10 = ym(wo), e = t10 !== String(wo);
  if (!e && sp === 66) return true;
  if (sp >= 51 && /native code/.test(t10)) return false;
  var r = new wo((function(o) {
    o(1);
  })), n = function(o) {
    o((function() {
    }), (function() {
    }));
  };
  return (r.constructor = {})[b0t] = n, !(ZM = r.then((function() {
  })) instanceof n) || !e && m0t && !XM;
})), x0t = md || !NM((function(t10) {
  wo.all(t10).catch((function() {
  }));
})), JM = function(t10) {
  var e;
  return !(!de(t10) || !ue(e = t10.then)) && e;
}, wC = function(t10, e) {
  if (!t10.notified) {
    t10.notified = true;
    var r = t10.reactions;
    qM((function() {
      for (var n = t10.value, o = t10.state == 1, i = 0; r.length > i; ) {
        var a, u, s, l = r[i++], c = o ? l.ok : l.fail, f = l.resolve, d = l.reject, p = l.domain;
        try {
          c ? (o || (t10.rejection === 2 && A0t(t10), t10.rejection = 1), c === true ? a = n : (p && p.enter(), a = c(n), p && (p.exit(), s = true)), a === l.promise ? d(YM("Promise-chain cycle")) : (u = JM(a)) ? ee(u, a, f, d) : f(a)) : d(n);
        } catch (v) {
          p && !s && p.exit(), d(v);
        }
      }
      t10.reactions = [], t10.notified = false, e && !t10.rejection && S0t(t10);
    }));
  }
}, QM = function(t10, e, r) {
  var n, o;
  C0t ? ((n = p3.createEvent("Event")).promise = e, n.reason = r, n.initEvent(t10, false, true), tt.dispatchEvent(n)) : n = { promise: e, reason: r }, !XM && (o = tt["on" + t10]) ? o(n) : t10 === "unhandledrejection" && (function(i, a) {
    var u = tt.console;
    u && u.error && (arguments.length == 1 ? u.error(i) : u.error(i, a));
  })("Unhandled promise rejection", r);
}, S0t = function(t10) {
  ee(KM, tt, (function() {
    var e, r = t10.facade, n = t10.value;
    if (ZT(t10) && (e = d3((function() {
      ca ? bC.emit("unhandledRejection", n, r) : QM("unhandledrejection", r, n);
    })), t10.rejection = ca || ZT(t10) ? 2 : 1, e.error)) throw e.value;
  }));
}, ZT = function(t10) {
  return t10.rejection !== 1 && !t10.parent;
}, A0t = function(t10) {
  ee(KM, tt, (function() {
    var e = t10.facade;
    ca ? bC.emit("rejectionHandled", e) : QM("rejectionhandled", e, t10.value);
  }));
}, ol = function(t10, e, r) {
  return function(n) {
    t10(e, n, r);
  };
}, yl = function(t10, e, r) {
  t10.done || (t10.done = true, r && (t10 = r), t10.value = e, t10.state = 2, wC(t10, true));
}, h3 = function(t10, e, r) {
  if (!t10.done) {
    t10.done = true, r && (t10 = r);
    try {
      if (t10.facade === e) throw YM("Promise can't be resolved itself");
      var n = JM(e);
      n ? qM((function() {
        var o = { done: false };
        try {
          ee(n, e, ol(h3, o, t10), ol(yl, o, t10));
        } catch (i) {
          yl(o, i, t10);
        }
      })) : (t10.value = e, t10.state = 1, wC(t10, false));
    } catch (o) {
      yl({ done: false }, o, t10);
    }
  }
};
if (md && (jf = (wo = function(t10) {
  gC(this, jf), xa(t10), ee(_w, this);
  var e = XT(this);
  try {
    t10(ol(h3, e), ol(yl, e));
  } catch (r) {
    yl(e, r);
  }
}).prototype, (_w = function(t10) {
  w0t(this, { type: Yo, done: false, notified: false, parent: false, reactions: [], rejection: false, state: 0, value: void 0 });
}).prototype = uy(jf, { then: function(t10, e) {
  var r = E0t(this), n = r.reactions, o = vl(kM(this, wo));
  return o.ok = !ue(t10) || t10, o.fail = ue(e) && e, o.domain = ca ? bC.domain : void 0, r.parent = true, n[n.length] = o, r.state != 0 && wC(r, false), o.promise;
}, catch: function(t10) {
  return this.then(void 0, t10);
} }), KT = function() {
  var t10 = new _w(), e = XT(t10);
  this.promise = t10, this.resolve = ol(h3, e), this.reject = ol(yl, e);
}, mC.f = vl = function(t10) {
  return t10 === wo || t10 === GM ? new KT(t10) : D0t(t10);
}, ue(cy) && tu !== Object.prototype)) {
  YT = tu.then, ZM || (Tn(tu, "then", (function(t10, e) {
    var r = this;
    return new wo((function(n, o) {
      ee(YT, r, n, o);
    })).then(t10, e);
  }), { unsafe: true }), Tn(tu, "catch", jf.catch, { unsafe: true }));
  try {
    delete tu.constructor;
  } catch {
  }
  Ul && Ul(tu, jf);
}
bo({ global: true, wrap: true, forced: md }, { Promise: wo }), ay(wo, Yo, false), (function(t10) {
  var e = Zu("Promise"), r = fi.f;
  Bo && e && !e[RT] && r(e, RT, { configurable: true, get: function() {
    return this;
  } });
})(), GM = Zu(Yo), bo({ target: Yo, stat: true, forced: md }, { reject: function(t10) {
  var e = vl(this);
  return ee(e.reject, void 0, t10), e.promise;
} }), bo({ target: Yo, stat: true, forced: md }, { resolve: function(t10) {
  return (function(e, r) {
    if (lr(e), de(r) && r.constructor === e) return r;
    var n = mC.f(e);
    return (0, n.resolve)(r), n.promise;
  })(this, t10);
} }), bo({ target: Yo, stat: true, forced: x0t }, { all: function(t10) {
  var e = this, r = vl(e), n = r.resolve, o = r.reject, i = d3((function() {
    var a = xa(e.resolve), u = [], s = 0, l = 1;
    sy(t10, (function(c) {
      var f = s++, d = false;
      l++, ee(a, e, c).then((function(p) {
        d || (d = true, u[f] = p, --l || n(u));
      }), o);
    })), --l || n(u);
  }));
  return i.error && o(i.value), r.promise;
}, race: function(t10) {
  var e = this, r = vl(e), n = r.reject, o = d3((function() {
    var i = xa(e.resolve);
    sy(t10, (function(a) {
      ee(i, e, a).then(r.resolve, n);
    }));
  }));
  return o.error && n(o.value), r.promise;
} });
var O0t = rh.PROPER, g3 = RegExp.prototype, tz = g3.toString, k0t = Tt(CM), B0t = he((function() {
  return tz.call({ source: "a", flags: "b" }) != "/a/b";
})), F0t = O0t && tz.name != "toString";
(B0t || F0t) && Tn(RegExp.prototype, "toString", (function() {
  var t10 = lr(this), e = la(t10.source), r = t10.flags;
  return "/" + e + "/" + la(r === void 0 && up(g3, t10) && !("flags" in g3) ? k0t(t10) : r);
}), { unsafe: true });
var T0t = rh.EXISTS, _0t = fi.f, ez = Function.prototype, P0t = Tt(ez.toString), rz = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, j0t = Tt(rz.exec);
Bo && !T0t && _0t(ez, "name", { configurable: true, get: function() {
  try {
    return j0t(rz, P0t(this))[1];
  } catch {
    return "";
  }
} });
var JT = /* @__PURE__ */ new WeakMap();
function nz(t10) {
  return t10.getMenuConfig("uploadImage");
}
function N0t(t10, e) {
  return fC(this, void 0, void 0, (function() {
    return dC(this, (function(r) {
      return [2, new Promise((function(n) {
        var o = new FileReader();
        o.readAsDataURL(e), o.onload = function() {
          var i = o.result;
          if (i) {
            var a = i.toString(), u = a.indexOf("data:image") === 0 ? "" : a;
            Cu(t10, a, e.name, u), n("ok");
          }
        };
      }))];
    }));
  }));
}
function I0t(t10, e) {
  return fC(this, void 0, void 0, (function() {
    var r, n, o, i;
    return dC(this, (function(a) {
      switch (a.label) {
        case 0:
          return r = (function(u) {
            var s = JT.get(u);
            if (s != null) return s;
            var l = nz(u), c = l.onSuccess, f = l.onProgress, d = l.onFailed, p = l.customInsert, v = l.onError;
            return s = jN(oy(oy({}, l), { onProgress: function(y) {
              u.showProgressBar(y), f && f(y);
            }, onSuccess: function(y, g) {
              if (p) return p(g, (function(R, H, M) {
                return Cu(u, R, H, M);
              })), void c(y, g);
              var m = g.errno, h = m === void 0 ? 1 : m, b = g.data, w = b === void 0 ? {} : b;
              if (h === 0) {
                if (Array.isArray(w)) w.forEach((function(R) {
                  var H = R.url, M = H === void 0 ? "" : H, K = R.alt, U = K === void 0 ? "" : K, W = R.href;
                  Cu(u, M, U, W === void 0 ? "" : W);
                }));
                else {
                  var D = w.url, x = D === void 0 ? "" : D, C = w.alt, O = C === void 0 ? "" : C, T = w.href;
                  Cu(u, x, O, T === void 0 ? "" : T);
                }
                c(y, g);
              } else d(y, g);
            }, onError: function(y, g, m) {
              v(y, g, m);
            } })), JT.set(u, s), s;
          })(t10), n = e.name, o = e.type, i = e.size, r.addFile({ name: n, type: o, size: i, data: e }), [4, r.upload()];
        case 1:
          return a.sent(), [2];
      }
    }));
  }));
}
function oz(t10, e) {
  var r, n;
  return fC(this, void 0, void 0, (function() {
    var o, i, a, u, s, l, c, f, d;
    return dC(this, (function(p) {
      switch (p.label) {
        case 0:
          if (e == null) return [2];
          o = Array.prototype.slice.call(e), i = nz(t10), a = i.customUpload, u = i.base64LimitSize, p.label = 1;
        case 1:
          p.trys.push([1, 11, 12, 17]), s = kvt(o), p.label = 2;
        case 2:
          return [4, s.next()];
        case 3:
          return (l = p.sent()).done ? [3, 10] : (c = l.value, f = c.size, u && f <= u ? [4, N0t(t10, c)] : [3, 5]);
        case 4:
          return p.sent(), [3, 9];
        case 5:
          return a ? [4, a(c, (function(v, y, g) {
            return Cu(t10, v, y, g);
          }))] : [3, 7];
        case 6:
          return p.sent(), [3, 9];
        case 7:
          return [4, I0t(t10, c)];
        case 8:
          p.sent(), p.label = 9;
        case 9:
          return [3, 2];
        case 10:
          return [3, 17];
        case 11:
          return d = p.sent(), r = { error: d }, [3, 17];
        case 12:
          return p.trys.push([12, , 15, 16]), l && !l.done && (n = s.return) ? [4, n.call(s)] : [3, 14];
        case 13:
          p.sent(), p.label = 14;
        case 14:
          return [3, 16];
        case 15:
          if (r) throw r.error;
          return [7];
        case 16:
          return [7];
        case 17:
          return [2];
      }
    }));
  }));
}
var L0t = Tt([].join), R0t = Y8 != Object, M0t = $M("join", ",");
bo({ target: "Array", proto: true, forced: R0t || !M0t }, { join: function(t10) {
  return L0t(Ta(this), t10 === void 0 ? "," : t10);
} }), An && (B.fn.append = An), Ao && (B.fn.on = Ao), Bl && (B.fn.remove = Bl), So && (B.fn.val = So), JS && (B.fn.click = JS), Sl && (B.fn.hide = Sl);
var z0t = (function() {
  function t10() {
    this.title = Q("uploadImgModule.uploadImage"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>', this.tag = "button";
  }
  return t10.prototype.getValue = function(e) {
    return "";
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.isDisabled = function(e) {
    return Ky(e);
  }, t10.prototype.getMenuConfig = function(e) {
    return e.getMenuConfig("uploadImage");
  }, t10.prototype.exec = function(e, r) {
    var n = this.getMenuConfig(e), o = n.allowedFileTypes, i = o === void 0 ? [] : o, a = n.customBrowseAndUpload;
    if (a) a((function(c, f, d) {
      return Cu(e, c, f, d);
    }));
    else {
      var u = "";
      i.length > 0 && (u = 'accept="' + i.join(", ") + '"');
      var s = B("body"), l = B('<input type="file" ' + u + " multiple/>");
      l.hide(), s.append(l), l.click(), l.on("change", (function() {
        var c = l[0].files;
        oz(e, c);
      }));
    }
  }, t10;
})(), $0t = { menus: [{ key: "uploadImage", factory: function() {
  return new z0t();
}, config: { server: "", fieldName: "wangeditor-uploaded-image", maxFileSize: 2097152, maxNumberOfFiles: 100, allowedFileTypes: ["image/*"], meta: {}, metaWithUrl: false, withCredentials: false, timeout: 1e4, onBeforeUpload: function(t10) {
  return t10;
}, onProgress: function(t10) {
}, onSuccess: function(t10, e) {
}, onFailed: function(t10, e) {
  console.error("'" + t10.name + "' upload failed", e);
}, onError: function(t10, e, r) {
  console.error("'" + t10.name + "' upload error", r);
}, base64LimitSize: 0 } }], editorPlugin: function(t10) {
  var e = t10.insertData, r = t10;
  return r.insertData = function(n) {
    if (Ky(r)) e(n);
    else if (n.getData("text/plain")) e(n);
    else {
      var o = n.files;
      o.length <= 0 ? e(n) : Array.prototype.slice.call(o).some((function(i) {
        return (function(a, u) {
          var s = typeof Symbol == "function" && a[Symbol.iterator];
          if (!s) return a;
          var l, c, f = s.call(a), d = [];
          try {
            for (; (u === void 0 || u-- > 0) && !(l = f.next()).done; ) d.push(l.value);
          } catch (p) {
            c = { error: p };
          } finally {
            try {
              l && !l.done && (s = f.return) && s.call(f);
            } finally {
              if (c) throw c.error;
            }
          }
          return d;
        })(i.type.split("/"), 1)[0] === "image";
      })) ? oz(t10, o) : e(n);
    }
  }, r;
} };
Wr("en", { highLightModule: { selectLang: "Language" } }), Wr("zh-CN", { highLightModule: { selectLang: "\u9009\u62E9\u8BED\u8A00" } });
var fy = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function EC(t10) {
  var e = { exports: {} };
  return t10(e, e.exports), e.exports;
}
var _i, ev, Dg = function(t10) {
  return t10 && t10.Math == Math && t10;
}, Nt = Dg(typeof globalThis == "object" && globalThis) || Dg(typeof window == "object" && window) || Dg(typeof self == "object" && self) || Dg(typeof fy == "object" && fy) || /* @__PURE__ */ (function() {
  return this;
})() || Function("return this")(), H0t = Object.defineProperty, DC = function(t10, e) {
  try {
    H0t(Nt, t10, { value: e, configurable: true, writable: true });
  } catch {
    Nt[t10] = e;
  }
  return e;
}, fa = Nt["__core-js_shared__"] || DC("__core-js_shared__", {}), CC = EC((function(t10) {
  (t10.exports = function(e, r) {
    return fa[e] || (fa[e] = r !== void 0 ? r : {});
  })("versions", []).push({ version: "3.19.3", mode: "global", copyright: "\xA9 2021 Denis Pushkarev (zloirock.ru)" });
})), iz = Function.prototype, v3 = iz.bind, y3 = iz.call, V0t = v3 && v3.bind(y3), Jt = v3 ? function(t10) {
  return t10 && V0t(y3, t10);
} : function(t10) {
  return t10 && function() {
    return y3.apply(t10, arguments);
  };
}, U0t = Nt.TypeError, Wl = function(t10) {
  if (t10 == null) throw U0t("Can't call method on " + t10);
  return t10;
}, W0t = Nt.Object, xC = function(t10) {
  return W0t(Wl(t10));
}, G0t = Jt({}.hasOwnProperty), xn = Object.hasOwn || function(t10, e) {
  return G0t(xC(t10), e);
}, q0t = 0, K0t = Math.random(), Y0t = Jt(1 .toString), az = function(t10) {
  return "Symbol(" + (t10 === void 0 ? "" : t10) + ")_" + Y0t(++q0t + K0t, 36);
}, _r = function(t10) {
  return typeof t10 == "function";
}, X0t = function(t10) {
  return _r(t10) ? t10 : void 0;
}, ih = function(t10, e) {
  return arguments.length < 2 ? X0t(Nt[t10]) : Nt[t10] && Nt[t10][e];
}, Pw = ih("navigator", "userAgent") || "", QT = Nt.process, t_ = Nt.Deno, e_ = QT && QT.versions || t_ && t_.version, r_ = e_ && e_.v8;
r_ && (ev = (_i = r_.split("."))[0] > 0 && _i[0] < 4 ? 1 : +(_i[0] + _i[1])), !ev && Pw && (!(_i = Pw.match(/Edge\/(\d+)/)) || _i[1] >= 74) && (_i = Pw.match(/Chrome\/(\d+)/)) && (ev = +_i[1]);
var n_ = ev, ar = function(t10) {
  try {
    return !!t10();
  } catch {
    return true;
  }
}, m3 = !!Object.getOwnPropertySymbols && !ar((function() {
  var t10 = /* @__PURE__ */ Symbol();
  return !String(t10) || !(Object(t10) instanceof Symbol) || !Symbol.sham && n_ && n_ < 41;
})), SC = m3 && !Symbol.sham && typeof Symbol.iterator == "symbol", Nf = CC("wks"), Nu = Nt.Symbol, o_ = Nu && Nu.for, Z0t = SC ? Nu : Nu && Nu.withoutSetter || az, _a = function(t10) {
  if (!xn(Nf, t10) || !m3 && typeof Nf[t10] != "string") {
    var e = "Symbol." + t10;
    m3 && xn(Nu, t10) ? Nf[t10] = Nu[t10] : Nf[t10] = SC && o_ ? o_(e) : Z0t(e);
  }
  return Nf[t10];
}, uz = {};
uz[_a("toStringTag")] = "z";
var AC = String(uz) === "[object z]", Fo = !ar((function() {
  return Object.defineProperty({}, 1, { get: function() {
    return 7;
  } })[1] != 7;
})), Jo = function(t10) {
  return typeof t10 == "object" ? t10 !== null : _r(t10);
}, b3 = Nt.document, J0t = Jo(b3) && Jo(b3.createElement), OC = function(t10) {
  return J0t ? b3.createElement(t10) : {};
}, sz = !Fo && !ar((function() {
  return Object.defineProperty(OC("div"), "a", { get: function() {
    return 7;
  } }).a != 7;
})), Q0t = Nt.String, tyt = Nt.TypeError, Yn = function(t10) {
  if (Jo(t10)) return t10;
  throw tyt(Q0t(t10) + " is not an object");
}, If = Function.prototype.call, or = If.bind ? If.bind(If) : function() {
  return If.apply(If, arguments);
}, lz = Jt({}.isPrototypeOf), eyt = Nt.Object, jw = SC ? function(t10) {
  return typeof t10 == "symbol";
} : function(t10) {
  var e = ih("Symbol");
  return _r(e) && lz(e.prototype, eyt(t10));
}, ryt = Nt.String, cz = function(t10) {
  try {
    return ryt(t10);
  } catch {
    return "Object";
  }
}, nyt = Nt.TypeError, fz = function(t10) {
  if (_r(t10)) return t10;
  throw nyt(cz(t10) + " is not a function");
}, dz = function(t10, e) {
  var r = t10[e];
  return r == null ? void 0 : fz(r);
}, oyt = Nt.TypeError, iyt = Nt.TypeError, ayt = _a("toPrimitive"), kC = function(t10) {
  var e = (function(r, n) {
    if (!Jo(r) || jw(r)) return r;
    var o, i = dz(r, ayt);
    if (i) {
      if (o = or(i, r, n), !Jo(o) || jw(o)) return o;
      throw iyt("Can't convert object to primitive value");
    }
    return (function(a, u) {
      var s, l;
      if (_r(s = a.toString) && !Jo(l = or(s, a)) || _r(s = a.valueOf) && !Jo(l = or(s, a))) return l;
      throw oyt("Can't convert object to primitive value");
    })(r);
  })(t10, "string");
  return jw(e) ? e : e + "";
}, uyt = Nt.TypeError, i_ = Object.defineProperty, wm = { f: Fo ? i_ : function(t10, e, r) {
  if (Yn(t10), e = kC(e), Yn(r), sz) try {
    return i_(t10, e, r);
  } catch {
  }
  if ("get" in r || "set" in r) throw uyt("Accessors not supported");
  return "value" in r && (t10[e] = r.value), t10;
} }, BC = function(t10, e) {
  return { enumerable: !(1 & t10), configurable: !(2 & t10), writable: !(4 & t10), value: e };
}, Gl = Fo ? function(t10, e, r) {
  return wm.f(t10, e, BC(1, r));
} : function(t10, e, r) {
  return t10[e] = r, t10;
}, syt = Jt(Function.toString);
_r(fa.inspectSource) || (fa.inspectSource = function(t10) {
  return syt(t10);
});
var w3, dy, E3, FC = fa.inspectSource, a_ = Nt.WeakMap, lyt = _r(a_) && /native code/.test(FC(a_)), u_ = CC("keys"), pz = function(t10) {
  return u_[t10] || (u_[t10] = az(t10));
}, TC = {}, s_ = Nt.TypeError, cyt = Nt.WeakMap;
if (lyt || fa.state) {
  var Ya = fa.state || (fa.state = new cyt()), fyt = Jt(Ya.get), l_ = Jt(Ya.has), dyt = Jt(Ya.set);
  w3 = function(t10, e) {
    if (l_(Ya, t10)) throw new s_("Object already initialized");
    return e.facade = t10, dyt(Ya, t10, e), e;
  }, dy = function(t10) {
    return fyt(Ya, t10) || {};
  }, E3 = function(t10) {
    return l_(Ya, t10);
  };
} else {
  var Vs = pz("state");
  TC[Vs] = true, w3 = function(t10, e) {
    if (xn(t10, Vs)) throw new s_("Object already initialized");
    return e.facade = t10, Gl(t10, Vs, e), e;
  }, dy = function(t10) {
    return xn(t10, Vs) ? t10[Vs] : {};
  }, E3 = function(t10) {
    return xn(t10, Vs);
  };
}
var D3 = { get: dy, enforce: function(t10) {
  return E3(t10) ? dy(t10) : w3(t10, {});
} }, hz = Function.prototype, pyt = Fo && Object.getOwnPropertyDescriptor, c_ = xn(hz, "name"), gz = { PROPER: c_ && (function() {
}).name === "something", CONFIGURABLE: c_ && (!Fo || Fo && pyt(hz, "name").configurable) }, gp = EC((function(t10) {
  var e = gz.CONFIGURABLE, r = D3.get, n = D3.enforce, o = String(String).split("String");
  (t10.exports = function(i, a, u, s) {
    var l, c = !!s && !!s.unsafe, f = !!s && !!s.enumerable, d = !!s && !!s.noTargetGet, p = s && s.name !== void 0 ? s.name : a;
    _r(u) && (String(p).slice(0, 7) === "Symbol(" && (p = "[" + String(p).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"), (!xn(u, "name") || e && u.name !== p) && Gl(u, "name", p), (l = n(u)).source || (l.source = o.join(typeof p == "string" ? p : ""))), i !== Nt ? (c ? !d && i[a] && (f = true) : delete i[a], f ? i[a] = u : Gl(i, a, u)) : f ? i[a] = u : DC(a, u);
  })(Function.prototype, "toString", (function() {
    return _r(this) && r(this).source || FC(this);
  }));
})), hyt = Jt({}.toString), gyt = Jt("".slice), da = function(t10) {
  return gyt(hyt(t10), 8, -1);
}, vyt = _a("toStringTag"), yyt = Nt.Object, myt = da(/* @__PURE__ */ (function() {
  return arguments;
})()) == "Arguments", _C = AC ? da : function(t10) {
  var e, r, n;
  return t10 === void 0 ? "Undefined" : t10 === null ? "Null" : typeof (r = (function(o, i) {
    try {
      return o[i];
    } catch {
    }
  })(e = yyt(t10), vyt)) == "string" ? r : myt ? da(e) : (n = da(e)) == "Object" && _r(e.callee) ? "Arguments" : n;
}, byt = AC ? {}.toString : function() {
  return "[object " + _C(this) + "]";
};
AC || gp(Object.prototype, "toString", byt, { unsafe: true });
var f_, d_ = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 }, Nw = OC("span").classList, p_ = Nw && Nw.constructor && Nw.constructor.prototype, wyt = p_ === Object.prototype ? void 0 : p_, h_ = Jt(Jt.bind), Iw = Nt.Object, Eyt = Jt("".split), PC = ar((function() {
  return !Iw("z").propertyIsEnumerable(0);
})) ? function(t10) {
  return da(t10) == "String" ? Eyt(t10, "") : Iw(t10);
} : Iw, Dyt = Math.ceil, Cyt = Math.floor, jC = function(t10) {
  var e = +t10;
  return e != e || e === 0 ? 0 : (e > 0 ? Cyt : Dyt)(e);
}, xyt = Math.min, vz = function(t10) {
  return t10 > 0 ? xyt(jC(t10), 9007199254740991) : 0;
}, NC = function(t10) {
  return vz(t10.length);
}, g_ = Array.isArray || function(t10) {
  return da(t10) == "Array";
}, yz = function() {
}, Syt = [], mz = ih("Reflect", "construct"), IC = /^\s*(?:class|function)\b/, Ayt = Jt(IC.exec), Oyt = !IC.exec(yz), Lf = function(t10) {
  if (!_r(t10)) return false;
  try {
    return mz(yz, Syt, t10), true;
  } catch {
    return false;
  }
}, bz = !mz || ar((function() {
  var t10;
  return Lf(Lf.call) || !Lf(Object) || !Lf((function() {
    t10 = true;
  })) || t10;
})) ? function(t10) {
  if (!_r(t10)) return false;
  switch (_C(t10)) {
    case "AsyncFunction":
    case "GeneratorFunction":
    case "AsyncGeneratorFunction":
      return false;
  }
  return Oyt || !!Ayt(IC, FC(t10));
} : Lf, kyt = _a("species"), v_ = Nt.Array, Byt = function(t10, e) {
  return new ((function(r) {
    var n;
    return g_(r) && (n = r.constructor, (bz(n) && (n === v_ || g_(n.prototype)) || Jo(n) && (n = n[kyt]) === null) && (n = void 0)), n === void 0 ? v_ : n;
  })(t10))(e === 0 ? 0 : e);
}, y_ = Jt([].push), Pi = function(t10) {
  var e = t10 == 1, r = t10 == 2, n = t10 == 3, o = t10 == 4, i = t10 == 6, a = t10 == 7, u = t10 == 5 || i;
  return function(s, l, c, f) {
    for (var d, p, v = xC(s), y = PC(v), g = (function(D, x) {
      return fz(D), x === void 0 ? D : h_ ? h_(D, x) : function() {
        return D.apply(x, arguments);
      };
    })(l, c), m = NC(y), h = 0, b = f || Byt, w = e ? b(s, m) : r || a ? b(s, 0) : void 0; m > h; h++) if ((u || h in y) && (p = g(d = y[h], h, v), t10)) if (e) w[h] = p;
    else if (p) switch (t10) {
      case 3:
        return true;
      case 5:
        return d;
      case 6:
        return h;
      case 2:
        y_(w, d);
    }
    else switch (t10) {
      case 4:
        return false;
      case 7:
        y_(w, d);
    }
    return i ? -1 : n || o ? o : w;
  };
}, Fyt = [Pi(0), Pi(1), Pi(2), Pi(3), Pi(4), Pi(5), Pi(6), Pi(7)][0], Lw = (f_ = [].forEach) && ar((function() {
  f_.call(null, (function() {
    throw 1;
  }), 1);
})) ? [].forEach : function(t10) {
  return Fyt(this, t10, arguments.length > 1 ? arguments[1] : void 0);
}, wz = function(t10) {
  if (t10 && t10.forEach !== Lw) try {
    Gl(t10, "forEach", Lw);
  } catch {
    t10.forEach = Lw;
  }
};
for (var Rw in d_) d_[Rw] && wz(Nt[Rw] && Nt[Rw].prototype);
wz(wyt);
var m_ = {}.propertyIsEnumerable, b_ = Object.getOwnPropertyDescriptor, Ez = { f: b_ && !m_.call({ 1: 2 }, 1) ? function(t10) {
  var e = b_(this, t10);
  return !!e && e.enumerable;
} : m_ }, Em = function(t10) {
  return PC(Wl(t10));
}, w_ = Object.getOwnPropertyDescriptor, Dz = { f: Fo ? w_ : function(t10, e) {
  if (t10 = Em(t10), e = kC(e), sz) try {
    return w_(t10, e);
  } catch {
  }
  if (xn(t10, e)) return BC(!or(Ez.f, t10, e), t10[e]);
} }, Tyt = Math.max, _yt = Math.min, C3 = function(t10, e) {
  var r = jC(t10);
  return r < 0 ? Tyt(r + e, 0) : _yt(r, e);
}, Pyt = function(t10) {
  return function(e, r, n) {
    var o, i = Em(e), a = NC(i), u = C3(n, a);
    if (t10 && r != r) {
      for (; a > u; ) if ((o = i[u++]) != o) return true;
    } else for (; a > u; u++) if ((t10 || u in i) && i[u] === r) return t10 || u || 0;
    return !t10 && -1;
  };
}, jyt = Pyt(false), E_ = Jt([].push), Cz = function(t10, e) {
  var r, n = Em(t10), o = 0, i = [];
  for (r in n) !xn(TC, r) && xn(n, r) && E_(i, r);
  for (; e.length > o; ) xn(n, r = e[o++]) && (~jyt(i, r) || E_(i, r));
  return i;
}, py = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"], Nyt = py.concat("length", "prototype"), Iyt = { f: Object.getOwnPropertyNames || function(t10) {
  return Cz(t10, Nyt);
} }, xz = { f: Object.getOwnPropertySymbols }, Lyt = Jt([].concat), Ryt = ih("Reflect", "ownKeys") || function(t10) {
  var e = Iyt.f(Yn(t10)), r = xz.f;
  return r ? Lyt(e, r(t10)) : e;
}, Myt = function(t10, e) {
  for (var r = Ryt(e), n = wm.f, o = Dz.f, i = 0; i < r.length; i++) {
    var a = r[i];
    xn(t10, a) || n(t10, a, o(e, a));
  }
}, zyt = /#|\.prototype\./, ah = function(t10, e) {
  var r = Hyt[$yt(t10)];
  return r == Uyt || r != Vyt && (_r(e) ? ar(e) : !!e);
}, $yt = ah.normalize = function(t10) {
  return String(t10).replace(zyt, ".").toLowerCase();
}, Hyt = ah.data = {}, Vyt = ah.NATIVE = "N", Uyt = ah.POLYFILL = "P", Wyt = ah, Gyt = Dz.f, Dm = function(t10, e) {
  var r, n, o, i, a, u = t10.target, s = t10.global, l = t10.stat;
  if (r = s ? Nt : l ? Nt[u] || DC(u, {}) : (Nt[u] || {}).prototype) for (n in e) {
    if (i = e[n], o = t10.noTargetGet ? (a = Gyt(r, n)) && a.value : r[n], !Wyt(s ? n : u + (l ? "." : "#") + n, t10.forced) && o !== void 0) {
      if (typeof i == typeof o) continue;
      Myt(i, o);
    }
    (t10.sham || o && o.sham) && Gl(i, "sham", true), gp(r, n, i, t10);
  }
}, rv = Object.keys || function(t10) {
  return Cz(t10, py);
}, Us = Object.assign, D_ = Object.defineProperty, qyt = Jt([].concat), C_ = !Us || ar((function() {
  if (Fo && Us({ b: 1 }, Us(D_({}, "a", { enumerable: true, get: function() {
    D_(this, "b", { value: 3, enumerable: false });
  } }), { b: 2 })).b !== 1) return true;
  var t10 = {}, e = {}, r = /* @__PURE__ */ Symbol(), n = "abcdefghijklmnopqrst";
  return t10[r] = 7, n.split("").forEach((function(o) {
    e[o] = o;
  })), Us({}, t10)[r] != 7 || rv(Us({}, e)).join("") != n;
})) ? function(t10, e) {
  for (var r = xC(t10), n = arguments.length, o = 1, i = xz.f, a = Ez.f; n > o; ) for (var u, s = PC(arguments[o++]), l = i ? qyt(rv(s), i(s)) : rv(s), c = l.length, f = 0; c > f; ) u = l[f++], Fo && !or(a, s, u) || (r[u] = s[u]);
  return r;
} : Us;
Dm({ target: "Object", stat: true, forced: Object.assign !== C_ }, { assign: C_ });
var x_ = EC((function(t10) {
  var e = (function(r) {
    var n = /\blang(?:uage)?-([\w-]+)\b/i, o = 0, i = {}, a = { manual: r.Prism && r.Prism.manual, disableWorkerMessageHandler: r.Prism && r.Prism.disableWorkerMessageHandler, util: { encode: function g(m) {
      return m instanceof u ? new u(m.type, g(m.content), m.alias) : Array.isArray(m) ? m.map(g) : m.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
    }, type: function(g) {
      return Object.prototype.toString.call(g).slice(8, -1);
    }, objId: function(g) {
      return g.__id || Object.defineProperty(g, "__id", { value: ++o }), g.__id;
    }, clone: function g(m, h) {
      var b, w;
      switch (h = h || {}, a.util.type(m)) {
        case "Object":
          if (w = a.util.objId(m), h[w]) return h[w];
          for (var D in b = {}, h[w] = b, m) m.hasOwnProperty(D) && (b[D] = g(m[D], h));
          return b;
        case "Array":
          return w = a.util.objId(m), h[w] ? h[w] : (b = [], h[w] = b, m.forEach((function(x, C) {
            b[C] = g(x, h);
          })), b);
        default:
          return m;
      }
    }, getLanguage: function(g) {
      for (; g && !n.test(g.className); ) g = g.parentElement;
      return g ? (g.className.match(n) || [, "none"])[1].toLowerCase() : "none";
    }, currentScript: function() {
      if (typeof document > "u") return null;
      if ("currentScript" in document) return document.currentScript;
      try {
        throw new Error();
      } catch (b) {
        var g = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack) || [])[1];
        if (g) {
          var m = document.getElementsByTagName("script");
          for (var h in m) if (m[h].src == g) return m[h];
        }
        return null;
      }
    }, isActive: function(g, m, h) {
      for (var b = "no-" + m; g; ) {
        var w = g.classList;
        if (w.contains(m)) return true;
        if (w.contains(b)) return false;
        g = g.parentElement;
      }
      return !!h;
    } }, languages: { plain: i, plaintext: i, text: i, txt: i, extend: function(g, m) {
      var h = a.util.clone(a.languages[g]);
      for (var b in m) h[b] = m[b];
      return h;
    }, insertBefore: function(g, m, h, b) {
      var w = (b = b || a.languages)[g], D = {};
      for (var x in w) if (w.hasOwnProperty(x)) {
        if (x == m) for (var C in h) h.hasOwnProperty(C) && (D[C] = h[C]);
        h.hasOwnProperty(x) || (D[x] = w[x]);
      }
      var O = b[g];
      return b[g] = D, a.languages.DFS(a.languages, (function(T, R) {
        R === O && T != g && (this[T] = D);
      })), D;
    }, DFS: function g(m, h, b, w) {
      w = w || {};
      var D = a.util.objId;
      for (var x in m) if (m.hasOwnProperty(x)) {
        h.call(m, x, m[x], b || x);
        var C = m[x], O = a.util.type(C);
        O !== "Object" || w[D(C)] ? O !== "Array" || w[D(C)] || (w[D(C)] = true, g(C, h, x, w)) : (w[D(C)] = true, g(C, h, null, w));
      }
    } }, plugins: {}, highlightAll: function(g, m) {
      a.highlightAllUnder(document, g, m);
    }, highlightAllUnder: function(g, m, h) {
      var b = { callback: h, container: g, selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' };
      a.hooks.run("before-highlightall", b), b.elements = Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)), a.hooks.run("before-all-elements-highlight", b);
      for (var w, D = 0; w = b.elements[D++]; ) a.highlightElement(w, m === true, b.callback);
    }, highlightElement: function(g, m, h) {
      var b = a.util.getLanguage(g), w = a.languages[b];
      g.className = g.className.replace(n, "").replace(/\s+/g, " ") + " language-" + b;
      var D = g.parentElement;
      D && D.nodeName.toLowerCase() === "pre" && (D.className = D.className.replace(n, "").replace(/\s+/g, " ") + " language-" + b);
      var x = { element: g, language: b, grammar: w, code: g.textContent };
      function C(T) {
        x.highlightedCode = T, a.hooks.run("before-insert", x), x.element.innerHTML = x.highlightedCode, a.hooks.run("after-highlight", x), a.hooks.run("complete", x), h && h.call(x.element);
      }
      if (a.hooks.run("before-sanity-check", x), (D = x.element.parentElement) && D.nodeName.toLowerCase() === "pre" && !D.hasAttribute("tabindex") && D.setAttribute("tabindex", "0"), !x.code) return a.hooks.run("complete", x), void (h && h.call(x.element));
      if (a.hooks.run("before-highlight", x), x.grammar) if (m && r.Worker) {
        var O = new Worker(a.filename);
        O.onmessage = function(T) {
          C(T.data);
        }, O.postMessage(JSON.stringify({ language: x.language, code: x.code, immediateClose: true }));
      } else C(a.highlight(x.code, x.grammar, x.language));
      else C(a.util.encode(x.code));
    }, highlight: function(g, m, h) {
      var b = { code: g, grammar: m, language: h };
      return a.hooks.run("before-tokenize", b), b.tokens = a.tokenize(b.code, b.grammar), a.hooks.run("after-tokenize", b), u.stringify(a.util.encode(b.tokens), b.language);
    }, tokenize: function(g, m) {
      var h = m.rest;
      if (h) {
        for (var b in h) m[b] = h[b];
        delete m.rest;
      }
      var w = new c();
      return f(w, w.head, g), l(g, w, m, w.head, 0), (function(D) {
        for (var x = [], C = D.head.next; C !== D.tail; ) x.push(C.value), C = C.next;
        return x;
      })(w);
    }, hooks: { all: {}, add: function(g, m) {
      var h = a.hooks.all;
      h[g] = h[g] || [], h[g].push(m);
    }, run: function(g, m) {
      var h = a.hooks.all[g];
      if (h && h.length) for (var b, w = 0; b = h[w++]; ) b(m);
    } }, Token: u };
    function u(g, m, h, b) {
      this.type = g, this.content = m, this.alias = h, this.length = 0 | (b || "").length;
    }
    function s(g, m, h, b) {
      g.lastIndex = m;
      var w = g.exec(h);
      if (w && b && w[1]) {
        var D = w[1].length;
        w.index += D, w[0] = w[0].slice(D);
      }
      return w;
    }
    function l(g, m, h, b, w, D) {
      for (var x in h) if (h.hasOwnProperty(x) && h[x]) {
        var C = h[x];
        C = Array.isArray(C) ? C : [C];
        for (var O = 0; O < C.length; ++O) {
          if (D && D.cause == x + "," + O) return;
          var T = C[O], R = T.inside, H = !!T.lookbehind, M = !!T.greedy, K = T.alias;
          if (M && !T.pattern.global) {
            var U = T.pattern.toString().match(/[imsuy]*$/)[0];
            T.pattern = RegExp(T.pattern.source, U + "g");
          }
          for (var W = T.pattern || T, q = b.next, et = w; q !== m.tail && !(D && et >= D.reach); et += q.value.length, q = q.next) {
            var st = q.value;
            if (m.length > g.length) return;
            if (!(st instanceof u)) {
              var ut, at = 1;
              if (M) {
                if (!(ut = s(W, et, g, H))) break;
                var k = ut.index, S = ut.index + ut[0].length, P = et;
                for (P += q.value.length; k >= P; ) P += (q = q.next).value.length;
                if (et = P -= q.value.length, q.value instanceof u) continue;
                for (var $ = q; $ !== m.tail && (P < S || typeof $.value == "string"); $ = $.next) at++, P += $.value.length;
                at--, st = g.slice(et, P), ut.index -= et;
              } else if (!(ut = s(W, 0, st, H))) continue;
              k = ut.index;
              var Y = ut[0], V = st.slice(0, k), it = st.slice(k + Y.length), gt = et + st.length;
              D && gt > D.reach && (D.reach = gt);
              var vt = q.prev;
              if (V && (vt = f(m, vt, V), et += V.length), d(m, vt, at), q = f(m, vt, new u(x, R ? a.tokenize(Y, R) : Y, K, Y)), it && f(m, q, it), at > 1) {
                var Dt = { cause: x + "," + O, reach: gt };
                l(g, m, h, q.prev, et, Dt), D && Dt.reach > D.reach && (D.reach = Dt.reach);
              }
            }
          }
        }
      }
    }
    function c() {
      var g = { value: null, prev: null, next: null }, m = { value: null, prev: g, next: null };
      g.next = m, this.head = g, this.tail = m, this.length = 0;
    }
    function f(g, m, h) {
      var b = m.next, w = { value: h, prev: m, next: b };
      return m.next = w, b.prev = w, g.length++, w;
    }
    function d(g, m, h) {
      for (var b = m.next, w = 0; w < h && b !== g.tail; w++) b = b.next;
      m.next = b, b.prev = m, g.length -= w;
    }
    if (r.Prism = a, u.stringify = function g(m, h) {
      if (typeof m == "string") return m;
      if (Array.isArray(m)) {
        var b = "";
        return m.forEach((function(O) {
          b += g(O, h);
        })), b;
      }
      var w = { type: m.type, content: g(m.content, h), tag: "span", classes: ["token", m.type], attributes: {}, language: h }, D = m.alias;
      D && (Array.isArray(D) ? Array.prototype.push.apply(w.classes, D) : w.classes.push(D)), a.hooks.run("wrap", w);
      var x = "";
      for (var C in w.attributes) x += " " + C + '="' + (w.attributes[C] || "").replace(/"/g, "&quot;") + '"';
      return "<" + w.tag + ' class="' + w.classes.join(" ") + '"' + x + ">" + w.content + "</" + w.tag + ">";
    }, !r.document) return r.addEventListener && (a.disableWorkerMessageHandler || r.addEventListener("message", (function(g) {
      var m = JSON.parse(g.data), h = m.language, b = m.code, w = m.immediateClose;
      r.postMessage(a.highlight(b, a.languages[h], h)), w && r.close();
    }), false)), a;
    var p = a.util.currentScript();
    function v() {
      a.manual || a.highlightAll();
    }
    if (p && (a.filename = p.src, p.hasAttribute("data-manual") && (a.manual = true)), !a.manual) {
      var y = document.readyState;
      y === "loading" || y === "interactive" && p && p.defer ? document.addEventListener("DOMContentLoaded", v) : window.requestAnimationFrame ? window.requestAnimationFrame(v) : window.setTimeout(v, 16);
    }
    return a;
  })(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
  t10.exports && (t10.exports = e), fy !== void 0 && (fy.Prism = e), e.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: true }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: true }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: true, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: true, greedy: true, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: true }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: true }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: true, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, e.languages.markup.tag.inside["attr-value"].inside.entity = e.languages.markup.entity, e.languages.markup.doctype.inside["internal-subset"].inside = e.languages.markup, e.hooks.add("wrap", (function(r) {
    r.type === "entity" && (r.attributes.title = r.content.replace(/&amp;/, "&"));
  })), Object.defineProperty(e.languages.markup.tag, "addInlined", { value: function(r, n) {
    var o = {};
    o["language-" + n] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: true, inside: e.languages[n] }, o.cdata = /^<!\[CDATA\[|\]\]>$/i;
    var i = { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: o } };
    i["language-" + n] = { pattern: /[\s\S]+/, inside: e.languages[n] };
    var a = {};
    a[r] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, (function() {
      return r;
    })), "i"), lookbehind: true, greedy: true, inside: i }, e.languages.insertBefore("markup", "cdata", a);
  } }), Object.defineProperty(e.languages.markup.tag, "addAttribute", { value: function(r, n) {
    e.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + r + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: true, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: true, alias: [n, "language-" + n], inside: e.languages[n] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
  } }), e.languages.html = e.languages.markup, e.languages.mathml = e.languages.markup, e.languages.svg = e.languages.markup, e.languages.xml = e.languages.extend("markup", {}), e.languages.ssml = e.languages.xml, e.languages.atom = e.languages.xml, e.languages.rss = e.languages.xml, (function(r) {
    var n = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
    r.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/, inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: true, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: true } } }, url: { pattern: RegExp("\\burl\\((?:" + n.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: true, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + n.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + n.source + ")*(?=\\s*\\{)"), lookbehind: true }, string: { pattern: n, greedy: true }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: true }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: true }, punctuation: /[(){};:,]/ }, r.languages.css.atrule.inside.rest = r.languages.css;
    var o = r.languages.markup;
    o && (o.tag.addInlined("style", "css"), o.tag.addAttribute("style", "css"));
  })(e), e.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: true, greedy: true }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: true, greedy: true }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: true }, "class-name": { pattern: /(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: true, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/, boolean: /\b(?:true|false)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, e.languages.javascript = e.languages.extend("clike", { "class-name": [e.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/, lookbehind: true }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: true }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: true }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), e.languages.javascript["class-name"][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/, e.languages.insertBefore("javascript", "keyword", { regex: { pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/, lookbehind: true, greedy: true, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: true, alias: "language-regex", inside: e.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: true, inside: e.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: true, inside: e.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: true, inside: e.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: true, inside: e.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), e.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: true, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: true, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: true, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: e.languages.javascript } }, string: /[\s\S]+/ } } }), e.languages.markup && (e.languages.markup.tag.addInlined("script", "javascript"), e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, "javascript")), e.languages.js = e.languages.javascript, (function() {
    if (e !== void 0 && typeof document < "u") {
      Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
      var r = { js: "javascript", py: "python", rb: "ruby", ps1: "powershell", psm1: "powershell", sh: "bash", bat: "batch", h: "c", tex: "latex" }, n = "data-src-status", o = 'pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])', i = /\blang(?:uage)?-([\w-]+)\b/i;
      e.hooks.add("before-highlightall", (function(s) {
        s.selector += ", " + o;
      })), e.hooks.add("before-sanity-check", (function(s) {
        var l = s.element;
        if (l.matches(o)) {
          s.code = "", l.setAttribute(n, "loading");
          var c = l.appendChild(document.createElement("CODE"));
          c.textContent = "Loading\u2026";
          var f = l.getAttribute("data-src"), d = s.language;
          if (d === "none") {
            var p = (/\.(\w+)$/.exec(f) || [, "none"])[1];
            d = r[p] || p;
          }
          u(c, d), u(l, d);
          var v = e.plugins.autoloader;
          v && v.loadLanguages(d);
          var y = new XMLHttpRequest();
          y.open("GET", f, true), y.onreadystatechange = function() {
            y.readyState == 4 && (y.status < 400 && y.responseText ? (l.setAttribute(n, "loaded"), c.textContent = y.responseText, e.highlightElement(c)) : (l.setAttribute(n, "failed"), y.status >= 400 ? c.textContent = "\u2716 Error " + y.status + " while fetching file: " + y.statusText : c.textContent = "\u2716 Error: File does not exist or is empty"));
          }, y.send(null);
        }
      })), e.plugins.fileHighlight = { highlight: function(s) {
        for (var l, c = (s || document).querySelectorAll(o), f = 0; l = c[f++]; ) e.highlightElement(l);
      } };
      var a = false;
      e.fileHighlight = function() {
        a || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), a = true), e.plugins.fileHighlight.highlight.apply(this, arguments);
      };
    }
    function u(s, l) {
      var c = s.className;
      c = c.replace(i, " ") + " language-" + l, s.className = c.replace(/\s+/g, " ").trim();
    }
  })();
}));
(function(t10) {
  var e = t10.util.clone(t10.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, n = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, o = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
  function i(s, l) {
    return s = s.replace(/<S>/g, (function() {
      return r;
    })).replace(/<BRACES>/g, (function() {
      return n;
    })).replace(/<SPREAD>/g, (function() {
      return o;
    })), RegExp(s, l);
  }
  o = i(o).source, t10.languages.jsx = t10.languages.extend("markup", e), t10.languages.jsx.tag.pattern = i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), t10.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/i, t10.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i, t10.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, t10.languages.jsx.tag.inside.comment = e.comment, t10.languages.insertBefore("inside", "attr-name", { spread: { pattern: i(/<SPREAD>/.source), inside: t10.languages.jsx } }, t10.languages.jsx.tag), t10.languages.insertBefore("inside", "special-attr", { script: { pattern: i(/=<BRACES>/.source), inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: t10.languages.jsx }, alias: "language-javascript" } }, t10.languages.jsx.tag);
  var a = function(s) {
    return s ? typeof s == "string" ? s : typeof s.content == "string" ? s.content : s.content.map(a).join("") : "";
  }, u = function(s) {
    for (var l = [], c = 0; c < s.length; c++) {
      var f = s[c], d = false;
      if (typeof f != "string" && (f.type === "tag" && f.content[0] && f.content[0].type === "tag" ? f.content[0].content[0].content === "</" ? l.length > 0 && l[l.length - 1].tagName === a(f.content[0].content[1]) && l.pop() : f.content[f.content.length - 1].content === "/>" || l.push({ tagName: a(f.content[0].content[1]), openedBraces: 0 }) : l.length > 0 && f.type === "punctuation" && f.content === "{" ? l[l.length - 1].openedBraces++ : l.length > 0 && l[l.length - 1].openedBraces > 0 && f.type === "punctuation" && f.content === "}" ? l[l.length - 1].openedBraces-- : d = true), (d || typeof f == "string") && l.length > 0 && l[l.length - 1].openedBraces === 0) {
        var p = a(f);
        c < s.length - 1 && (typeof s[c + 1] == "string" || s[c + 1].type === "plain-text") && (p += a(s[c + 1]), s.splice(c + 1, 1)), c > 0 && (typeof s[c - 1] == "string" || s[c - 1].type === "plain-text") && (p = a(s[c - 1]) + p, s.splice(c - 1, 1), c--), s[c] = new t10.Token("plain-text", p, null, p);
      }
      f.content && typeof f.content != "string" && u(f.content);
    }
  };
  t10.hooks.add("after-tokenize", (function(s) {
    s.language !== "jsx" && s.language !== "tsx" || u(s.tokens);
  }));
})(Prism), (function(t10) {
  t10.languages.typescript = t10.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: true, greedy: true, inside: null }, builtin: /\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/ }), t10.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete t10.languages.typescript.parameter;
  var e = t10.languages.extend("typescript", {});
  delete e["class-name"], t10.languages.typescript["class-name"].inside = e, t10.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: true, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e } } } }), t10.languages.ts = t10.languages.typescript;
})(Prism), Prism.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: true }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: true }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: true, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: true, greedy: true, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: true }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: true }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: true, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, Prism.languages.markup.tag.inside["attr-value"].inside.entity = Prism.languages.markup.entity, Prism.languages.markup.doctype.inside["internal-subset"].inside = Prism.languages.markup, Prism.hooks.add("wrap", (function(t10) {
  t10.type === "entity" && (t10.attributes.title = t10.content.replace(/&amp;/, "&"));
})), Object.defineProperty(Prism.languages.markup.tag, "addInlined", { value: function(t10, e) {
  var r = {};
  r["language-" + e] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: true, inside: Prism.languages[e] }, r.cdata = /^<!\[CDATA\[|\]\]>$/i;
  var n = { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: r } };
  n["language-" + e] = { pattern: /[\s\S]+/, inside: Prism.languages[e] };
  var o = {};
  o[t10] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, (function() {
    return t10;
  })), "i"), lookbehind: true, greedy: true, inside: n }, Prism.languages.insertBefore("markup", "cdata", o);
} }), Object.defineProperty(Prism.languages.markup.tag, "addAttribute", { value: function(t10, e) {
  Prism.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + t10 + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: true, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: true, alias: [e, "language-" + e], inside: Prism.languages[e] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
} }), Prism.languages.html = Prism.languages.markup, Prism.languages.mathml = Prism.languages.markup, Prism.languages.svg = Prism.languages.markup, Prism.languages.xml = Prism.languages.extend("markup", {}), Prism.languages.ssml = Prism.languages.xml, Prism.languages.atom = Prism.languages.xml, Prism.languages.rss = Prism.languages.xml, Prism.languages.go = Prism.languages.extend("clike", { string: { pattern: /(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/, greedy: true }, keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/, boolean: /\b(?:_|iota|nil|true|false)\b/, number: /(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i, operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./, builtin: /\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/ }), delete Prism.languages.go["class-name"], (function(t10) {
  var e = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/, r = [{ pattern: /\b(?:false|true)\b/i, alias: "boolean" }, { pattern: /(::\s*)\b[a-z_]\w*\b(?!\s*\()/i, greedy: true, lookbehind: true }, { pattern: /(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i, greedy: true, lookbehind: true }, /\b(?:null)\b/i, /\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/], n = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i, o = /<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/, i = /[{}\[\](),:;]/;
  t10.languages.php = { delimiter: { pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i, alias: "important" }, comment: e, variable: /\$+(?:\w+\b|(?=\{))/i, package: { pattern: /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i, lookbehind: true, inside: { punctuation: /\\/ } }, "class-name-definition": { pattern: /(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i, lookbehind: true, alias: "class-name" }, "function-definition": { pattern: /(\bfunction\s+)[a-z_]\w*(?=\s*\()/i, lookbehind: true, alias: "function" }, keyword: [{ pattern: /(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i, alias: "type-casting", greedy: true, lookbehind: true }, { pattern: /([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i, alias: "type-hint", greedy: true, lookbehind: true }, { pattern: /([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i, alias: "type-hint", greedy: true, lookbehind: true }, { pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i, alias: "return-type", greedy: true, lookbehind: true }, { pattern: /(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i, alias: "return-type", greedy: true, lookbehind: true }, { pattern: /\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i, alias: "type-declaration", greedy: true }, { pattern: /(\|\s*)(?:null|false)\b/i, alias: "type-declaration", greedy: true, lookbehind: true }, { pattern: /\b(?:parent|self|static)(?=\s*::)/i, alias: "static-context", greedy: true }, { pattern: /(\byield\s+)from\b/i, lookbehind: true }, /\bclass\b/i, { pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i, lookbehind: true }], "argument-name": { pattern: /([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i, lookbehind: true }, "class-name": [{ pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i, greedy: true, lookbehind: true }, { pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i, greedy: true, lookbehind: true }, { pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i, greedy: true }, { pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i, alias: "class-name-fully-qualified", greedy: true, lookbehind: true, inside: { punctuation: /\\/ } }, { pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i, alias: "class-name-fully-qualified", greedy: true, inside: { punctuation: /\\/ } }, { pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i, alias: "class-name-fully-qualified", greedy: true, lookbehind: true, inside: { punctuation: /\\/ } }, { pattern: /\b[a-z_]\w*(?=\s*\$)/i, alias: "type-declaration", greedy: true }, { pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i, alias: ["class-name-fully-qualified", "type-declaration"], greedy: true, inside: { punctuation: /\\/ } }, { pattern: /\b[a-z_]\w*(?=\s*::)/i, alias: "static-context", greedy: true }, { pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i, alias: ["class-name-fully-qualified", "static-context"], greedy: true, inside: { punctuation: /\\/ } }, { pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i, alias: "type-hint", greedy: true, lookbehind: true }, { pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i, alias: ["class-name-fully-qualified", "type-hint"], greedy: true, lookbehind: true, inside: { punctuation: /\\/ } }, { pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i, alias: "return-type", greedy: true, lookbehind: true }, { pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i, alias: ["class-name-fully-qualified", "return-type"], greedy: true, lookbehind: true, inside: { punctuation: /\\/ } }], constant: r, function: { pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i, lookbehind: true, inside: { punctuation: /\\/ } }, property: { pattern: /(->\s*)\w+/, lookbehind: true }, number: n, operator: o, punctuation: i };
  var a = { pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/, lookbehind: true, inside: t10.languages.php }, u = [{ pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/, alias: "nowdoc-string", greedy: true, inside: { delimiter: { pattern: /^<<<'[^']+'|[a-z_]\w*;$/i, alias: "symbol", inside: { punctuation: /^<<<'?|[';]$/ } } } }, { pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i, alias: "heredoc-string", greedy: true, inside: { delimiter: { pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i, alias: "symbol", inside: { punctuation: /^<<<"?|[";]$/ } }, interpolation: a } }, { pattern: /`(?:\\[\s\S]|[^\\`])*`/, alias: "backtick-quoted-string", greedy: true }, { pattern: /'(?:\\[\s\S]|[^\\'])*'/, alias: "single-quoted-string", greedy: true }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, alias: "double-quoted-string", greedy: true, inside: { interpolation: a } }];
  t10.languages.insertBefore("php", "variable", { string: u, attribute: { pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im, greedy: true, inside: { "attribute-content": { pattern: /^(#\[)[\s\S]+(?=\]$)/, lookbehind: true, inside: { comment: e, string: u, "attribute-class-name": [{ pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i, alias: "class-name", greedy: true, lookbehind: true }, { pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i, alias: ["class-name", "class-name-fully-qualified"], greedy: true, lookbehind: true, inside: { punctuation: /\\/ } }], constant: r, number: n, operator: o, punctuation: i } }, delimiter: { pattern: /^#\[|\]$/, alias: "punctuation" } } } }), t10.hooks.add("before-tokenize", (function(s) {
    /<\?/.test(s.code) && t10.languages["markup-templating"].buildPlaceholders(s, "php", /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi);
  })), t10.hooks.add("after-tokenize", (function(s) {
    t10.languages["markup-templating"].tokenizePlaceholders(s, "php");
  }));
})(Prism), Prism.languages.c = Prism.languages.extend("clike", { comment: { pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: true }, "class-name": { pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/, lookbehind: true }, keyword: /\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/, function: /\b[a-z_]\w*(?=\s*\()/i, number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i, operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ }), Prism.languages.insertBefore("c", "string", { macro: { pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im, lookbehind: true, greedy: true, alias: "property", inside: { string: [{ pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: true }, Prism.languages.c.string], comment: Prism.languages.c.comment, "macro-name": [{ pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: true }, { pattern: /(^#\s*define\s+)\w+\b(?=\()/i, lookbehind: true, alias: "function" }], directive: { pattern: /^(#\s*)[a-z]+/, lookbehind: true, alias: "keyword" }, "directive-hash": /^#/, punctuation: /##|\\(?=[\r\n])/, expression: { pattern: /\S[\s\S]*/, inside: Prism.languages.c } } }, constant: /\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/ }), delete Prism.languages.c.boolean, Prism.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: true }, "string-interpolation": { pattern: /(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: true, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: true, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: true }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i, greedy: true, alias: "string" }, string: { pattern: /(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: true }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: true }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: true }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/im, lookbehind: true, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:True|False|None)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i, operator: /[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python, (function(t10) {
  var e = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, r = /(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, n = { pattern: RegExp(r + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source), lookbehind: true, inside: { namespace: { pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/, inside: { punctuation: /\./ } }, punctuation: /\./ } };
  t10.languages.java = t10.languages.extend("clike", { "class-name": [n, { pattern: RegExp(r + /[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source), lookbehind: true, inside: n.inside }], keyword: e, function: [t10.languages.clike.function, { pattern: /(::\s*)[a-z_]\w*/, lookbehind: true }], number: /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i, operator: { pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m, lookbehind: true } }), t10.languages.insertBefore("java", "string", { "triple-quoted-string": { pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/, greedy: true, alias: "string" } }), t10.languages.insertBefore("java", "class-name", { annotation: { pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/, lookbehind: true, alias: "punctuation" }, generics: { pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/, inside: { "class-name": n, keyword: e, punctuation: /[<>(),.:]/, operator: /[?&|]/ } }, namespace: { pattern: RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g, (function() {
    return e.source;
  }))), lookbehind: true, inside: { punctuation: /\./ } } });
})(Prism), (function(t10) {
  var e = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, r = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, (function() {
    return e.source;
  }));
  t10.languages.cpp = t10.languages.extend("c", { "class-name": [{ pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g, (function() {
    return e.source;
  }))), lookbehind: true }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/], keyword: e, number: { pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i, greedy: true }, operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/, boolean: /\b(?:true|false)\b/ }), t10.languages.insertBefore("cpp", "string", { module: { pattern: RegExp(/(\b(?:module|import)\s+)/.source + "(?:" + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + "|" + /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, (function() {
    return r;
  })) + ")"), lookbehind: true, greedy: true, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: true } }), t10.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: t10.languages.cpp } } } }), t10.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), t10.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: true, greedy: true, inside: t10.languages.extend("cpp", {}) } }), t10.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, t10.languages.cpp["base-clause"]);
})(Prism), (function(t10) {
  function e(S, P) {
    return S.replace(/<<(\d+)>>/g, (function($, Y) {
      return "(?:" + P[+Y] + ")";
    }));
  }
  function r(S, P, $) {
    return RegExp(e(S, P), "");
  }
  function n(S, P) {
    for (var $ = 0; $ < P; $++) S = S.replace(/<<self>>/g, (function() {
      return "(?:" + S + ")";
    }));
    return S.replace(/<<self>>/g, "[^\\s\\S]");
  }
  var o = "bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void", i = "class enum interface record struct", a = "add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)", u = "abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";
  function s(S) {
    return "\\b(?:" + S.trim().replace(/ /g, "|") + ")\\b";
  }
  var l = s(i), c = RegExp(s(o + " " + i + " " + a + " " + u)), f = s(i + " " + a + " " + u), d = s(o + " " + i + " " + u), p = n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2), v = n(/\((?:[^()]|<<self>>)*\)/.source, 2), y = /@?\b[A-Za-z_]\w*\b/.source, g = e(/<<0>>(?:\s*<<1>>)?/.source, [y, p]), m = e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [f, g]), h = /\[\s*(?:,\s*)*\]/.source, b = e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source, [m, h]), w = e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source, [p, v, h]), D = e(/\(<<0>>+(?:,<<0>>+)+\)/.source, [w]), x = e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source, [D, m, h]), C = { keyword: c, punctuation: /[<>()?,.:[\]]/ }, O = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, T = /"(?:\\.|[^\\"\r\n])*"/.source, R = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
  t10.languages.csharp = t10.languages.extend("clike", { string: [{ pattern: r(/(^|[^$\\])<<0>>/.source, [R]), lookbehind: true, greedy: true }, { pattern: r(/(^|[^@$\\])<<0>>/.source, [T]), lookbehind: true, greedy: true }, { pattern: RegExp(O), greedy: true, alias: "character" }], "class-name": [{ pattern: r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source, [m]), lookbehind: true, inside: C }, { pattern: r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [y, x]), lookbehind: true, inside: C }, { pattern: r(/(\busing\s+)<<0>>(?=\s*=)/.source, [y]), lookbehind: true }, { pattern: r(/(\b<<0>>\s+)<<1>>/.source, [l, g]), lookbehind: true, inside: C }, { pattern: r(/(\bcatch\s*\(\s*)<<0>>/.source, [m]), lookbehind: true, inside: C }, { pattern: r(/(\bwhere\s+)<<0>>/.source, [y]), lookbehind: true }, { pattern: r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [b]), lookbehind: true, inside: C }, { pattern: r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source, [x, d, y]), inside: C }], keyword: c, number: /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i, operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/, punctuation: /\?\.?|::|[{}[\];(),.:]/ }), t10.languages.insertBefore("csharp", "number", { range: { pattern: /\.\./, alias: "operator" } }), t10.languages.insertBefore("csharp", "punctuation", { "named-parameter": { pattern: r(/([(,]\s*)<<0>>(?=\s*:)/.source, [y]), lookbehind: true, alias: "punctuation" } }), t10.languages.insertBefore("csharp", "class-name", { namespace: { pattern: r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source, [y]), lookbehind: true, inside: { punctuation: /\./ } }, "type-expression": { pattern: r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source, [v]), lookbehind: true, alias: "class-name", inside: C }, "return-type": { pattern: r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source, [x, m]), inside: C, alias: "class-name" }, "constructor-invocation": { pattern: r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [x]), lookbehind: true, inside: C, alias: "class-name" }, "generic-method": { pattern: r(/<<0>>\s*<<1>>(?=\s*\()/.source, [y, p]), inside: { function: r(/^<<0>>/.source, [y]), generic: { pattern: RegExp(p), alias: "class-name", inside: C } } }, "type-list": { pattern: r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source, [l, g, y, x, c.source, v, /\bnew\s*\(\s*\)/.source]), lookbehind: true, inside: { "record-arguments": { pattern: r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source, [g, v]), lookbehind: true, greedy: true, inside: t10.languages.csharp }, keyword: c, "class-name": { pattern: RegExp(x), greedy: true, inside: C }, punctuation: /[,()]/ } }, preprocessor: { pattern: /(^[\t ]*)#.*/m, lookbehind: true, alias: "property", inside: { directive: { pattern: /(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/, lookbehind: true, alias: "keyword" } } } });
  var H = T + "|" + O, M = e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source, [H]), K = n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [M]), 2), U = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source, W = e(/<<0>>(?:\s*\(<<1>>*\))?/.source, [m, K]);
  t10.languages.insertBefore("csharp", "class-name", { attribute: { pattern: r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source, [U, W]), lookbehind: true, greedy: true, inside: { target: { pattern: r(/^<<0>>(?=\s*:)/.source, [U]), alias: "keyword" }, "attribute-arguments": { pattern: r(/\(<<0>>*\)/.source, [K]), inside: t10.languages.csharp }, "class-name": { pattern: RegExp(m), inside: { punctuation: /\./ } }, punctuation: /[:,]/ } } });
  var q = /:[^}\r\n]+/.source, et = n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [M]), 2), st = e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [et, q]), ut = n(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source, [H]), 2), at = e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [ut, q]);
  function k(S, P) {
    return { interpolation: { pattern: r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [S]), lookbehind: true, inside: { "format-string": { pattern: r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [P, q]), lookbehind: true, inside: { punctuation: /^:/ } }, punctuation: /^\{|\}$/, expression: { pattern: /[\s\S]+/, alias: "language-csharp", inside: t10.languages.csharp } } }, string: /[\s\S]+/ };
  }
  t10.languages.insertBefore("csharp", "string", { "interpolation-string": [{ pattern: r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source, [st]), lookbehind: true, greedy: true, inside: k(st, et) }, { pattern: r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [at]), lookbehind: true, greedy: true, inside: k(at, ut) }] });
})(Prism), Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp, Prism.languages["visual-basic"] = { comment: { pattern: /(?:['鈥樷€橾|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i, inside: { keyword: /^REM/i } }, directive: { pattern: /#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i, alias: "comment", greedy: true }, string: { pattern: /\$?["鈥溾€漖(?:["鈥溾€漖{2}|[^"鈥溾€漖)*["鈥溾€漖C?/i, greedy: true }, date: { pattern: /#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i, alias: "builtin" }, number: /(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i, boolean: /\b(?:True|False|Nothing)\b/i, keyword: /\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i, operator: [/[+\-*/\\^<=>&#@$%!]/, { pattern: /([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/, lookbehind: true }], punctuation: /[{}().,:?]/ }, Prism.languages.vb = Prism.languages["visual-basic"], Prism.languages.vba = Prism.languages["visual-basic"], Prism.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: true }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: true }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: true, lookbehind: true }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:TRUE|FALSE|NULL)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, (function(t10) {
  t10.languages.ruby = t10.languages.extend("clike", { comment: [/#.*/, { pattern: /^=begin\s[\s\S]*?^=end/m, greedy: true }], "class-name": { pattern: /(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: true, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/ });
  var e = { pattern: /#\{[^}]+\}/, inside: { delimiter: { pattern: /^#\{|\}$/, alias: "tag" }, rest: t10.languages.ruby } };
  delete t10.languages.ruby.function, t10.languages.insertBefore("ruby", "keyword", { regex: [{ pattern: RegExp(/%r/.source + "(?:" + [/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source, /\((?:[^()\\]|\\[\s\S])*\)/.source, /\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source, /\[(?:[^\[\]\\]|\\[\s\S])*\]/.source, /<(?:[^<>\\]|\\[\s\S])*>/.source].join("|") + ")" + /[egimnosux]{0,6}/.source), greedy: true, inside: { interpolation: e } }, { pattern: /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/, lookbehind: true, greedy: true, inside: { interpolation: e } }], variable: /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/, symbol: { pattern: /(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/, lookbehind: true }, "method-definition": { pattern: /(\bdef\s+)[\w.]+/, lookbehind: true, inside: { function: /\w+$/, rest: t10.languages.ruby } } }), t10.languages.insertBefore("ruby", "number", { builtin: /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/, constant: /\b[A-Z]\w*(?:[?!]|\b)/ }), t10.languages.ruby.string = [{ pattern: RegExp(/%[qQiIwWxs]?/.source + "(?:" + [/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source, /\((?:[^()\\]|\\[\s\S])*\)/.source, /\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source, /\[(?:[^\[\]\\]|\\[\s\S])*\]/.source, /<(?:[^<>\\]|\\[\s\S])*>/.source].join("|") + ")"), greedy: true, inside: { interpolation: e } }, { pattern: /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/, greedy: true, inside: { interpolation: e } }, { pattern: /<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i, alias: "heredoc-string", greedy: true, inside: { delimiter: { pattern: /^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i, alias: "symbol", inside: { punctuation: /^<<[-~]?/ } }, interpolation: e } }, { pattern: /<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i, alias: "heredoc-string", greedy: true, inside: { delimiter: { pattern: /^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i, alias: "symbol", inside: { punctuation: /^<<[-~]?'|'$/ } } } }], t10.languages.rb = t10.languages.ruby;
})(Prism), Prism.languages.swift = { comment: { pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/, lookbehind: true, greedy: true }, "string-literal": [{ pattern: RegExp(/(^|[^"#])/.source + "(?:" + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + "|" + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ")" + /(?!["#])/.source), lookbehind: true, greedy: true, inside: { interpolation: { pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: true, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\\($/, alias: "punctuation" }, punctuation: /\\(?=[\r\n])/, string: /[\s\S]+/ } }, { pattern: RegExp(/(^|[^"#])(#+)/.source + "(?:" + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + "|" + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ")\\2"), lookbehind: true, greedy: true, inside: { interpolation: { pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: true, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\#+\($/, alias: "punctuation" }, string: /[\s\S]+/ } }], directive: { pattern: RegExp(/#/.source + "(?:" + /(?:elseif|if)\b/.source + "(?:[ 	]*" + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ")+|" + /(?:else|endif)\b/.source + ")"), alias: "property", inside: { "directive-name": /^#\w+/, boolean: /\b(?:true|false)\b/, number: /\b\d+(?:\.\d+)*\b/, operator: /!|&&|\|\||[<>]=?/, punctuation: /[(),]/ } }, literal: { pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/, alias: "constant" }, "other-directive": { pattern: /#\w+\b/, alias: "property" }, attribute: { pattern: /@\w+/, alias: "atrule" }, "function-definition": { pattern: /(\bfunc\s+)\w+/, lookbehind: true, alias: "function" }, label: { pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/, lookbehind: true, alias: "important" }, keyword: /\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/, boolean: /\b(?:true|false)\b/, nil: { pattern: /\bnil\b/, alias: "constant" }, "short-argument": /\$\d+\b/, omit: { pattern: /\b_\b/, alias: "keyword" }, number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i, "class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/, function: /\b[a-z_]\w*(?=\s*\()/i, constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/, operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/, punctuation: /[{}[\]();,.:\\]/ }, Prism.languages.swift["string-literal"].forEach((function(t10) {
  t10.inside.interpolation.inside = Prism.languages.swift;
})), (function(t10) {
  var e = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", r = { pattern: /(^(["']?)\w+\2)[ \t]+\S.*/, lookbehind: true, alias: "punctuation", inside: null }, n = { bash: r, environment: { pattern: RegExp("\\$" + e), alias: "constant" }, variable: [{ pattern: /\$?\(\([\s\S]+?\)\)/, greedy: true, inside: { variable: [{ pattern: /(^\$\(\([\s\S]+)\)\)/, lookbehind: true }, /^\$\(\(/], number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/, operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/, punctuation: /\(\(?|\)\)?|,|;/ } }, { pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/, greedy: true, inside: { variable: /^\$\(|^`|\)$|`$/ } }, { pattern: /\$\{[^}]+\}/, greedy: true, inside: { operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/, punctuation: /[\[\]]/, environment: { pattern: RegExp("(\\{)" + e), lookbehind: true, alias: "constant" } } }, /\$(?:\w+|[#?*!@$])/], entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/ };
  t10.languages.bash = { shebang: { pattern: /^#!\s*\/.*/, alias: "important" }, comment: { pattern: /(^|[^"{\\$])#.*/, lookbehind: true }, "function-name": [{ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/, lookbehind: true, alias: "function" }, { pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/, alias: "function" }], "for-or-select": { pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/, alias: "variable", lookbehind: true }, "assign-left": { pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/, inside: { environment: { pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + e), lookbehind: true, alias: "constant" } }, alias: "variable", lookbehind: true }, string: [{ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/, lookbehind: true, greedy: true, inside: n }, { pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/, lookbehind: true, greedy: true, inside: { bash: r } }, { pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/, lookbehind: true, greedy: true, inside: n }, { pattern: /(^|[^$\\])'[^']*'/, lookbehind: true, greedy: true }, { pattern: /\$'(?:[^'\\]|\\[\s\S])*'/, greedy: true, inside: { entity: n.entity } }], environment: { pattern: RegExp("\\$?" + e), alias: "constant" }, variable: n.variable, function: { pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/, lookbehind: true }, keyword: { pattern: /(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/, lookbehind: true }, builtin: { pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/, lookbehind: true, alias: "class-name" }, boolean: { pattern: /(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/, lookbehind: true }, "file-descriptor": { pattern: /\B&\d\b/, alias: "important" }, operator: { pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/, inside: { "file-descriptor": { pattern: /^\d/, alias: "important" } } }, punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/, number: { pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/, lookbehind: true } }, r.inside = t10.languages.bash;
  for (var o = ["comment", "function-name", "for-or-select", "assign-left", "string", "environment", "function", "keyword", "builtin", "boolean", "file-descriptor", "operator", "punctuation", "number"], i = n.variable[1].inside, a = 0; a < o.length; a++) i[o[a]] = t10.languages.bash[o[a]];
  t10.languages.shell = t10.languages.bash;
})(Prism), (function(t10) {
  var e = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
  function r(l) {
    return l = l.replace(/<inner>/g, (function() {
      return e;
    })), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + l + ")");
  }
  var n = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, o = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, (function() {
    return n;
  })), i = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
  t10.languages.markdown = t10.languages.extend("markup", {}), t10.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: true, greedy: true, inside: { punctuation: /^---|---$/, "font-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: t10.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + o + i + "(?:" + o + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + o + i + ")(?:" + o + ")*$"), lookbehind: true, inside: { "table-data": { pattern: RegExp(n), inside: t10.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + o + ")" + i + "$"), lookbehind: true, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + o + "$"), inside: { "table-header": { pattern: RegExp(n), alias: "important", inside: t10.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: true, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: true, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: true }, "code-language": { pattern: /^(```).+/, lookbehind: true }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: true, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: true, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: true, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: true }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: true, greedy: true, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: true, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: true, greedy: true, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: true, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: r(/(~~?)(?:(?!~)<inner>)+\2/.source), lookbehind: true, greedy: true, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: true, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: true, greedy: true, alias: ["code", "keyword"] }, url: { pattern: r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source), lookbehind: true, greedy: true, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: true, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: true }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: true }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: true } } } }), ["url", "bold", "italic", "strike"].forEach((function(l) {
    ["url", "bold", "italic", "strike", "code-snippet"].forEach((function(c) {
      l !== c && (t10.languages.markdown[l].inside.content.inside[c] = t10.languages.markdown[c]);
    }));
  })), t10.hooks.add("after-tokenize", (function(l) {
    l.language !== "markdown" && l.language !== "md" || (function c(f) {
      if (f && typeof f != "string") for (var d = 0, p = f.length; d < p; d++) {
        var v = f[d];
        if (v.type === "code") {
          var y = v.content[1], g = v.content[3];
          if (y && g && y.type === "code-language" && g.type === "code-block" && typeof y.content == "string") {
            var m = y.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), h = "language-" + (m = (/[a-z][\w-]*/i.exec(m) || [""])[0].toLowerCase());
            g.alias ? typeof g.alias == "string" ? g.alias = [g.alias, h] : g.alias.push(h) : g.alias = [h];
          }
        } else c(v.content);
      }
    })(l.tokens);
  })), t10.hooks.add("wrap", (function(l) {
    if (l.type === "code-block") {
      for (var c = "", f = 0, d = l.classes.length; f < d; f++) {
        var p = l.classes[f], v = /language-(.+)/.exec(p);
        if (v) {
          c = v[1];
          break;
        }
      }
      var y = t10.languages[c];
      if (y) l.content = t10.highlight((function(m) {
        var h = m.replace(a, "");
        return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, (function(b, w) {
          var D;
          return (w = w.toLowerCase())[0] === "#" ? (D = w[1] === "x" ? parseInt(w.slice(2), 16) : Number(w.slice(1)), s(D)) : u[w] || b;
        }));
      })(l.content), y, c);
      else if (c && c !== "none" && t10.plugins.autoloader) {
        var g = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random());
        l.attributes.id = g, t10.plugins.autoloader.loadLanguages(c, (function() {
          var m = document.getElementById(g);
          m && (m.innerHTML = t10.highlight(m.textContent, t10.languages[c], c));
        }));
      }
    }
  }));
  var a = RegExp(t10.languages.markup.tag.pattern.source, "gi"), u = { amp: "&", lt: "<", gt: ">", quot: '"' }, s = String.fromCodePoint || String.fromCharCode;
  t10.languages.md = t10.languages.markdown;
})(Prism), Prism.languages.lua = { comment: /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m, string: { pattern: /(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/, greedy: true }, number: /\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i, keyword: /\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/, function: /(?!\d)\w+(?=\s*(?:[({]))/, operator: [/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/, { pattern: /(^|[^.])\.\.(?!\.)/, lookbehind: true }], punctuation: /[\[\](){},;]|\.+|:+/ }, Prism.languages.groovy = Prism.languages.extend("clike", { string: [{ pattern: /("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/, greedy: true }, { pattern: /(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/, greedy: true }], keyword: /\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/, number: /\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i, operator: { pattern: /(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/, lookbehind: true }, punctuation: /\.+|[{}[\];(),:$]/ }), Prism.languages.insertBefore("groovy", "string", { shebang: { pattern: /#!.+/, alias: "comment" } }), Prism.languages.insertBefore("groovy", "punctuation", { "spock-block": /\b(?:setup|given|when|then|and|cleanup|expect|where):/ }), Prism.languages.insertBefore("groovy", "function", { annotation: { pattern: /(^|[^.])@\w+/, lookbehind: true, alias: "punctuation" } }), Prism.hooks.add("wrap", (function(t10) {
  if (t10.language === "groovy" && t10.type === "string") {
    var e = t10.content[0];
    if (e != "'") {
      var r = /([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;
      e === "$" && (r = /([^\$])(?:\$(?:\{.*?\}|[\w.]+))/), t10.content = t10.content.replace(/&lt;/g, "<").replace(/&amp;/g, "&"), t10.content = Prism.highlight(t10.content, { expression: { pattern: r, lookbehind: true, inside: Prism.languages.groovy } }), t10.classes.push(e === "/" ? "regex" : "gstring");
    }
  }
}));
var Kyt = ["comment", "prolog", "doctype", "cdata", "punctuation", "namespace", "property", "tag", "boolean", "number", "constant", "symbol", "deleted", "selector", "attr-name", "string", "builtin", "inserted", "operator", "entity", "url", "string", "atrule", "attr-value", "keyword", "function", "class-name", "regex", "important", "variable", "bold", "italic", "entity", "char"];
function Sz(t10) {
  return typeof t10 == "string" ? t10.length : typeof t10.content == "string" ? t10.content.length : t10.content.reduce((function(e, r) {
    return e + Sz(r);
  }), 0);
}
var Cg, Yyt = Nt.String, ri = function(t10) {
  if (_C(t10) === "Symbol") throw TypeError("Cannot convert a Symbol value to a string");
  return Yyt(t10);
}, Az = function() {
  var t10 = Yn(this), e = "";
  return t10.global && (e += "g"), t10.ignoreCase && (e += "i"), t10.multiline && (e += "m"), t10.dotAll && (e += "s"), t10.unicode && (e += "u"), t10.sticky && (e += "y"), e;
}, LC = Nt.RegExp, x3 = ar((function() {
  var t10 = LC("a", "y");
  return t10.lastIndex = 2, t10.exec("abcd") != null;
}));
x3 || ar((function() {
  return !LC("a", "y").sticky;
}));
var Oz = { BROKEN_CARET: x3 || ar((function() {
  var t10 = LC("^r", "gy");
  return t10.lastIndex = 2, t10.exec("str") != null;
})), UNSUPPORTED_Y: x3 }, Xyt = Fo ? Object.defineProperties : function(t10, e) {
  Yn(t10);
  for (var r, n = Em(e), o = rv(e), i = o.length, a = 0; i > a; ) wm.f(t10, r = o[a++], n[r]);
  return t10;
}, Zyt = ih("document", "documentElement"), kz = pz("IE_PROTO"), Mw = function() {
}, Bz = function(t10) {
  return "<script>" + t10 + "<\/script>";
}, S_ = function(t10) {
  t10.write(Bz("")), t10.close();
  var e = t10.parentWindow.Object;
  return t10 = null, e;
}, nv = function() {
  try {
    Cg = new ActiveXObject("htmlfile");
  } catch {
  }
  var t10, e;
  nv = typeof document < "u" ? document.domain && Cg ? S_(Cg) : ((e = OC("iframe")).style.display = "none", Zyt.appendChild(e), e.src = "javascript:", (t10 = e.contentWindow.document).open(), t10.write(Bz("document.F=Object")), t10.close(), t10.F) : S_(Cg);
  for (var r = py.length; r--; ) delete nv.prototype[py[r]];
  return nv();
};
TC[kz] = true;
var A_, zw, Jyt = Object.create || function(t10, e) {
  var r;
  return t10 !== null ? (Mw.prototype = Yn(t10), r = new Mw(), Mw.prototype = null, r[kz] = t10) : r = nv(), e === void 0 ? r : Xyt(r, e);
}, Qyt = Nt.RegExp, tmt = ar((function() {
  var t10 = Qyt(".", "s");
  return !(t10.dotAll && t10.exec(`
`) && t10.flags === "s");
})), emt = Nt.RegExp, rmt = ar((function() {
  var t10 = emt("(?<a>b)", "g");
  return t10.exec("b").groups.a !== "b" || "b".replace(t10, "$<a>c") !== "bc";
})), nmt = D3.get, omt = CC("native-string-replace", String.prototype.replace), hy = RegExp.prototype.exec, S3 = hy, imt = Jt("".charAt), amt = Jt("".indexOf), umt = Jt("".replace), $w = Jt("".slice), Hw = (zw = /b*/g, or(hy, A_ = /a/, "a"), or(hy, zw, "a"), A_.lastIndex !== 0 || zw.lastIndex !== 0), O_ = Oz.BROKEN_CARET, Vw = /()??/.exec("")[1] !== void 0;
(Hw || Vw || O_ || tmt || rmt) && (S3 = function(t10) {
  var e, r, n, o, i, a, u, s = this, l = nmt(s), c = ri(t10), f = l.raw;
  if (f) return f.lastIndex = s.lastIndex, e = or(S3, f, c), s.lastIndex = f.lastIndex, e;
  var d = l.groups, p = O_ && s.sticky, v = or(Az, s), y = s.source, g = 0, m = c;
  if (p && (v = umt(v, "y", ""), amt(v, "g") === -1 && (v += "g"), m = $w(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && imt(c, s.lastIndex - 1) !== `
`) && (y = "(?: " + y + ")", m = " " + m, g++), r = new RegExp("^(?:" + y + ")", v)), Vw && (r = new RegExp("^" + y + "$(?!\\s)", v)), Hw && (n = s.lastIndex), o = or(hy, p ? r : s, m), p ? o ? (o.input = $w(o.input, g), o[0] = $w(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : Hw && o && (s.lastIndex = s.global ? o.index + o[0].length : n), Vw && o && o.length > 1 && or(omt, o[0], r, (function() {
    for (i = 1; i < arguments.length - 2; i++) arguments[i] === void 0 && (o[i] = void 0);
  })), o && d) for (o.groups = a = Jyt(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
  return o;
});
var vp = S3;
Dm({ target: "RegExp", proto: true, forced: /./.exec !== vp }, { exec: vp });
var RC = Function.prototype, k_ = RC.apply, smt = RC.bind, B_ = RC.call, lmt = typeof Reflect == "object" && Reflect.apply || (smt ? B_.bind(k_) : function() {
  return B_.apply(k_, arguments);
}), cmt = _a("species"), Uw = RegExp.prototype, fmt = _a("match"), dmt = Nt.TypeError, pmt = _a("species"), hmt = Jt("".charAt), F_ = Jt("".charCodeAt), gmt = Jt("".slice), vmt = function(t10) {
  return function(e, r) {
    var n, o, i = ri(Wl(e)), a = jC(r), u = i.length;
    return a < 0 || a >= u ? t10 ? "" : void 0 : (n = F_(i, a)) < 55296 || n > 56319 || a + 1 === u || (o = F_(i, a + 1)) < 56320 || o > 57343 ? t10 ? hmt(i, a) : n : t10 ? gmt(i, a, a + 2) : o - 56320 + (n - 55296 << 10) + 65536;
  };
}, ymt = vmt(true), mmt = function(t10, e, r) {
  return e + (r ? ymt(t10, e).length : 1);
}, bmt = Nt.Array, wmt = Math.max, T_ = function(t10, e, r) {
  for (var n, o, i, a, u = NC(t10), s = C3(e, u), l = C3(r === void 0 ? u : r, u), c = bmt(wmt(l - s, 0)), f = 0; s < l; s++, f++) n = c, o = f, i = t10[s], (a = kC(o)) in n ? wm.f(n, a, BC(0, i)) : n[a] = i;
  return c.length = f, c;
}, Emt = Nt.TypeError, __ = function(t10, e) {
  var r = t10.exec;
  if (_r(r)) {
    var n = or(r, t10, e);
    return n !== null && Yn(n), n;
  }
  if (da(t10) === "RegExp") return or(vp, t10, e);
  throw Emt("RegExp#exec called on incompatible receiver");
}, Ws = Oz.UNSUPPORTED_Y, Dmt = Math.min, Fz = [].push, Cmt = Jt(/./.exec), Gs = Jt(Fz), Rf = Jt("".slice);
(function(t10, e, r, n) {
  var o = _a(t10), i = !ar((function() {
    var l = {};
    return l[o] = function() {
      return 7;
    }, ""[t10](l) != 7;
  })), a = i && !ar((function() {
    var l = false, c = /a/;
    return (c = {}).constructor = {}, c.constructor[cmt] = function() {
      return c;
    }, c.flags = "", c[o] = /./[o], c.exec = function() {
      return l = true, null;
    }, c[o](""), !l;
  }));
  if (!i || !a || r) {
    var u = Jt(/./[o]), s = (function(l, c, f) {
      var d;
      return d = "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(p, v) {
        var y, g, m = ri(Wl(this)), h = v === void 0 ? 4294967295 : v >>> 0;
        if (h === 0) return [];
        if (p === void 0) return [m];
        if (!Jo(y = p) || !((g = y[fmt]) !== void 0 ? g : da(y) == "RegExp")) return or(c, m, p, h);
        for (var b, w, D, x = [], C = (p.ignoreCase ? "i" : "") + (p.multiline ? "m" : "") + (p.unicode ? "u" : "") + (p.sticky ? "y" : ""), O = 0, T = new RegExp(p.source, C + "g"); (b = or(vp, T, m)) && !((w = T.lastIndex) > O && (Gs(x, Rf(m, O, b.index)), b.length > 1 && b.index < m.length && lmt(Fz, x, T_(b, 1)), D = b[0].length, O = w, x.length >= h)); ) T.lastIndex === b.index && T.lastIndex++;
        return O === m.length ? !D && Cmt(T, "") || Gs(x, "") : Gs(x, Rf(m, O)), x.length > h ? T_(x, 0, h) : x;
      } : "0".split(void 0, 0).length ? function(p, v) {
        return p === void 0 && v === 0 ? [] : or(c, this, p, v);
      } : c, [function(p, v) {
        var y = Wl(this), g = p == null ? void 0 : dz(p, l);
        return g ? or(g, p, y, v) : or(d, ri(y), p, v);
      }, function(p, v) {
        var y = Yn(this), g = ri(p), m = f(d, y, g, v, d !== c);
        if (m.done) return m.value;
        var h = (function(K, U) {
          var W, q = Yn(K).constructor;
          return q === void 0 || (W = Yn(q)[pmt]) == null ? U : (function(et) {
            if (bz(et)) return et;
            throw dmt(cz(et) + " is not a constructor");
          })(W);
        })(y, RegExp), b = y.unicode, w = (y.ignoreCase ? "i" : "") + (y.multiline ? "m" : "") + (y.unicode ? "u" : "") + (Ws ? "g" : "y"), D = new h(Ws ? "^(?:" + y.source + ")" : y, w), x = v === void 0 ? 4294967295 : v >>> 0;
        if (x === 0) return [];
        if (g.length === 0) return __(D, g) === null ? [g] : [];
        for (var C = 0, O = 0, T = []; O < g.length; ) {
          D.lastIndex = Ws ? 0 : O;
          var R, H = __(D, Ws ? Rf(g, O) : g);
          if (H === null || (R = Dmt(vz(D.lastIndex + (Ws ? O : 0)), g.length)) === C) O = mmt(g, O, b);
          else {
            if (Gs(T, Rf(g, C, O)), T.length === x) return T;
            for (var M = 1; M <= H.length - 1; M++) if (Gs(T, H[M]), T.length === x) return T;
            O = C = R;
          }
        }
        return Gs(T, Rf(g, C)), T;
      }];
    })(o, ""[t10], (function(l, c, f, d, p) {
      var v = Jt(l), y = c.exec;
      return y === vp || y === Uw.exec ? i && !p ? { done: true, value: u(c, f, d) } : { done: true, value: v(f, c, d) } : { done: false };
    }));
    gp(String.prototype, t10, s[0]), gp(Uw, o, s[1]);
  }
  n && Gl(Uw[o], "sham", true);
})("split", 0, !!ar((function() {
  var t10 = /(?:)/, e = t10.exec;
  t10.exec = function() {
    return e.apply(this, arguments);
  };
  var r = "ab".split(t10);
  return r.length !== 2 || r[0] !== "a" || r[1] !== "b";
})), Ws), Dm({ global: true }, { globalThis: Nt }), Sn && (B.fn.attr = Sn);
var xmt = gz.PROPER, A3 = RegExp.prototype, Tz = A3.toString, Smt = Jt(Az), Amt = ar((function() {
  return Tz.call({ source: "a", flags: "b" }) != "/a/b";
})), Omt = xmt && Tz.name != "toString";
(Amt || Omt) && gp(RegExp.prototype, "toString", (function() {
  var t10 = Yn(this), e = ri(t10.source), r = t10.flags;
  return "/" + e + "/" + ri(r === void 0 && lz(A3, t10) && !("flags" in A3) ? Smt(t10) : r);
}), { unsafe: true });
var kmt = (function() {
  function t10() {
    this.title = Q("highLightModule.selectLang"), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>', this.tag = "select", this.width = 95, this.selectPanelWidth = 115;
  }
  return t10.prototype.getOptions = function(e) {
    var r = [], n = e.getMenuConfig("codeSelectLang").codeLangs, o = n === void 0 ? [] : n;
    r.push({ text: "plain text", value: "" }), o.forEach((function(a) {
      var u = a.text, s = a.value;
      r.push({ text: u, value: s });
    }));
    var i = this.getValue(e);
    return r.forEach((function(a) {
      a.value === i ? a.selected = true : delete a.selected;
    })), r;
  }, t10.prototype.isActive = function(e) {
    return false;
  }, t10.prototype.getValue = function(e) {
    var r = this.getSelectCodeElem(e);
    if (r == null || !ct.isElement(r)) return "";
    var n = r.language.toString(), o = e.getMenuConfig("codeSelectLang").codeLangs;
    return (o === void 0 ? [] : o).some((function(i) {
      return i.value === n;
    })) ? n : "";
  }, t10.prototype.isDisabled = function(e) {
    return e.selection == null || !this.getSelectCodeElem(e);
  }, t10.prototype.exec = function(e, r) {
    if (this.getSelectCodeElem(e) != null) {
      var n = { language: r.toString() };
      N.setNodes(e, n, { match: function(o) {
        return A.checkNodeType(o, "code");
      } });
    }
  }, t10.prototype.getSelectCodeElem = function(e) {
    var r = A.getSelectedNodeByType(e, "code");
    if (r == null) return null;
    var n = A.getParentNode(e, r);
    return ct.isElement(n) ? n.type !== "pre" ? null : r : null;
  }, t10;
})(), Bmt = { renderStyle: function(t10, e) {
  var r = t10, n = e, o = "";
  return Kyt.forEach((function(i) {
    r[i] && (o = i);
  })), o && (function(i, a) {
    i.data == null && (i.data = {});
    var u = i.data;
    u.props == null && (u.props = {}), Object.assign(u.props, { className: a });
  })(n, o = "token " + o), n;
}, parseStyleHtml: function(t10, e, r) {
  var n = B(t10);
  if (!ct.isElement(e) || A.getNodeType(e) !== "code") return e;
  var o = e, i = n.attr("class") || "";
  return i.indexOf("language-") === 0 ? o.language = i.split("-")[1] || "" : o.language = i.toLowerCase(), o;
}, menus: [{ key: "codeSelectLang", factory: function() {
  return new kmt();
}, config: { codeLangs: [{ text: "CSS", value: "css" }, { text: "HTML", value: "html" }, { text: "XML", value: "xml" }, { text: "Javascript", value: "javascript" }, { text: "Typescript", value: "typescript" }, { text: "JSX", value: "jsx" }, { text: "Go", value: "go" }, { text: "PHP", value: "php" }, { text: "C", value: "c" }, { text: "Python", value: "python" }, { text: "Java", value: "java" }, { text: "C++", value: "cpp" }, { text: "C#", value: "csharp" }, { text: "Visual Basic", value: "visual-basic" }, { text: "SQL", value: "sql" }, { text: "Ruby", value: "ruby" }, { text: "Swift", value: "swift" }, { text: "Bash", value: "bash" }, { text: "Lua", value: "lua" }, { text: "Groovy", value: "groovy" }, { text: "Markdown", value: "markdown" }] } }], elemsToHtml: [{ type: "code", elemToHtml: function(t10, e) {
  var r = t10.language, n = r === void 0 ? "" : r;
  return "<code " + (n ? 'class="language-' + n + '"' : "") + ">" + e + "</code>";
} }] }, Fmt = /"/g, Tmt = Jt("".replace);
Dm({ target: "String", proto: true, forced: ar((function() {
  var t10 = "".anchor('"');
  return t10 !== t10.toLowerCase() || t10.split('"').length > 3;
})) }, { anchor: function(t10) {
  return e = t10, r = ri(Wl(this)), n = "<a", (n += ' name="' + Tmt(ri(e), Fmt, "&quot;") + '"') + ">" + r + "</a>";
  var e, r, n;
} });
var _z = function(t10) {
  var e, r, n, o = (function(m, h) {
    var b = typeof Symbol == "function" && m[Symbol.iterator];
    if (!b) return m;
    var w, D, x = b.call(m), C = [];
    try {
      for (; (h === void 0 || h-- > 0) && !(w = x.next()).done; ) C.push(w.value);
    } catch (O) {
      D = { error: O };
    } finally {
      try {
        w && !w.done && (b = x.return) && b.call(x);
      } finally {
        if (D) throw D.error;
      }
    }
    return C;
  })(t10, 2), i = o[0], a = o[1], u = [], s = (function(m) {
    if (!ot.isText(m)) return null;
    var h = A.getParentNode(null, m);
    if (h && A.getNodeType(h) === "code") {
      var b = A.getParentNode(null, h);
      if (b && A.getNodeType(b) === "pre") return h;
    }
    return null;
  })(i);
  if (s == null) return u;
  var l = s.language, c = l === void 0 ? "" : l;
  if (!c) return u;
  var f = (function(m, h) {
    if (!h) return [];
    var b = x_.languages[h];
    return b ? x_.tokenize(m.text, b) : [];
  })(i, c), d = 0;
  try {
    for (var p = (function(m) {
      var h = typeof Symbol == "function" && Symbol.iterator, b = h && m[h], w = 0;
      if (b) return b.call(m);
      if (m && typeof m.length == "number") return { next: function() {
        return m && w >= m.length && (m = void 0), { value: m && m[w++], done: !m };
      } };
      throw new TypeError(h ? "Object is not iterable." : "Symbol.iterator is not defined.");
    })(f), v = p.next(); !v.done; v = p.next()) {
      var y = v.value, g = d + Sz(y);
      typeof y != "string" && u.push(((n = {})[y.type] = true, n.anchor = { path: a, offset: d }, n.focus = { path: a, offset: g }, n)), d = g;
    }
  } catch (m) {
    e = { error: m };
  } finally {
    try {
      v && !v.done && (r = p.return) && r.call(p);
    } finally {
      if (e) throw e.error;
    }
  }
  return u;
}, Se = function() {
  return Se = Object.assign || function(t10) {
    for (var e, r = 1, n = arguments.length; r < n; r++) for (var o in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, o) && (t10[o] = e[o]);
    return t10;
  }, Se.apply(this, arguments);
}, rr = (function() {
  function t10() {
    throw new Error(`\u4E0D\u80FD\u5B9E\u4F8B\u5316
Can not construct a instance`);
  }
  return t10.setEditorConfig = function(e) {
    e === void 0 && (e = {}), this.editorConfig = Se(Se({}, this.editorConfig), e);
  }, t10.setSimpleEditorConfig = function(e) {
    e === void 0 && (e = {}), this.simpleEditorConfig = Se(Se({}, this.simpleEditorConfig), e);
  }, t10.setToolbarConfig = function(e) {
    e === void 0 && (e = {}), this.toolbarConfig = Se(Se({}, this.toolbarConfig), e);
  }, t10.setSimpleToolbarConfig = function(e) {
    e === void 0 && (e = {}), this.simpleToolbarConfig = Se(Se({}, this.simpleToolbarConfig), e);
  }, t10.registerPlugin = function(e) {
    this.plugins.push(e);
  }, t10.registerMenu = function(e, r) {
    (function(n, o) {
      var i = n.key, a = n.factory, u = n.config, s = mn(mn({}, u), o || {});
      if (Rd[i] != null) throw new Error("Duplicated key '" + i + "' in menu items");
      Rd[i] = a, (function(l, c) {
        c != null && (eN[l] = c);
      })(i, s);
    })(e, r);
  }, t10.registerRenderElem = function(e) {
    (function(r) {
      var n = r.type, o = r.renderElem;
      AN[n || ""] = o;
    })(e);
  }, t10.registerRenderStyle = function(e) {
    (function(r) {
      EE.push(r);
    })(e);
  }, t10.registerElemToHtml = function(e) {
    (function(r) {
      var n = r.type, o = r.elemToHtml;
      rN[n || ""] = o;
    })(e);
  }, t10.registerStyleToHtml = function(e) {
    (function(r) {
      gE.push(r);
    })(e);
  }, t10.registerPreParseHtml = function(e) {
    (function(r) {
      wN.push(r);
    })(e);
  }, t10.registerParseElemHtml = function(e) {
    (function(r) {
      var n = r.selector, o = r.parseElemHtml;
      t0[n] = o;
    })(e);
  }, t10.registerParseStyleHtml = function(e) {
    (function(r) {
      X5.push(r);
    })(e);
  }, t10.registerModule = function(e) {
    eu(e);
  }, t10.editorConfig = {}, t10.simpleEditorConfig = {}, t10.toolbarConfig = {}, t10.simpleToolbarConfig = {}, t10.plugins = [], t10;
})();
function eu(t10) {
  var e = t10.menus, r = t10.renderElems, n = t10.renderStyle, o = t10.elemsToHtml, i = t10.styleToHtml, a = t10.preParseHtml, u = t10.parseElemsHtml, s = t10.parseStyleHtml, l = t10.editorPlugin;
  e && e.forEach((function(c) {
    return rr.registerMenu(c);
  })), r && r.forEach((function(c) {
    return rr.registerRenderElem(c);
  })), n && rr.registerRenderStyle(n), o && o.forEach((function(c) {
    return rr.registerElemToHtml(c);
  })), i && rr.registerStyleToHtml(i), a && a.forEach((function(c) {
    return rr.registerPreParseHtml(c);
  })), u && u.forEach((function(c) {
    return rr.registerParseElemHtml(c);
  })), s && rr.registerParseStyleHtml(s), l && rr.registerPlugin(l);
}
Lat.forEach((function(t10) {
  return eu(t10);
})), eu(hlt), eu(zft), eu(Xht), eu($0t), eu(Bmt);
var Pz = '<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>', jz = { link: { menuKeys: ["editLink", "unLink", "viewLink"] }, image: { menuKeys: ["imageWidth30", "imageWidth50", "imageWidth100", "editImage", "viewImageLink", "deleteImage"] }, pre: { menuKeys: ["enter", "codeBlock", "codeSelectLang"] }, table: { menuKeys: ["enter", "tableHeader", "tableFullWidth", "insertTableRow", "deleteTableRow", "insertTableCol", "deleteTableCol", "deleteTable"] }, divider: { menuKeys: ["enter"] }, video: { menuKeys: ["enter", "editVideoSize"] } }, _mt = { hoverbarKeys: Se(Se({}, jz), { text: { menuKeys: ["headerSelect", "insertLink", "bulletedList", "|", "bold", "through", "color", "bgColor", "clearStyle"] } }) };
rr.setEditorConfig(Se(Se({}, _mt), { decorate: _z }));
var Pmt = { hoverbarKeys: jz };
rr.setSimpleEditorConfig(Se(Se({}, Pmt), { decorate: _z }));
var jmt = { toolbarKeys: ["headerSelect", "blockquote", "|", "bold", "underline", "italic", { key: "group-more-style", title: Q("editor.more"), iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>', menuKeys: ["through", "code", "sup", "sub", "clearStyle"] }, "color", "bgColor", "|", "fontSize", "fontFamily", "lineHeight", "|", "bulletedList", "numberedList", "todo", { key: "group-justify", title: Q("editor.justify"), iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>', menuKeys: ["justifyLeft", "justifyRight", "justifyCenter", "justifyJustify"] }, { key: "group-indent", title: Q("editor.indent"), iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>', menuKeys: ["indent", "delIndent"] }, "|", "emotion", "insertLink", { key: "group-image", title: Q("editor.image"), iconSvg: Pz, menuKeys: ["insertImage", "uploadImage"] }, { key: "group-video", title: Q("editor.video"), iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>', menuKeys: ["insertVideo", "uploadVideo"] }, "insertTable", "codeBlock", "divider", "|", "undo", "redo", "|", "fullScreen"] };
rr.setToolbarConfig(jmt);
var Nmt = { toolbarKeys: ["blockquote", "header1", "header2", "header3", "|", "bold", "underline", "italic", "through", "color", "bgColor", "clearStyle", "|", "bulletedList", "numberedList", "todo", "justifyLeft", "justifyRight", "justifyCenter", "|", "insertLink", { key: "group-image", title: Q("editor.image"), iconSvg: Pz, menuKeys: ["insertImage", "uploadImage"] }, "insertVideo", "insertTable", "codeBlock", "|", "undo", "redo", "|", "fullScreen"] };
function Imt(t10) {
  t10 === void 0 && (t10 = {});
  var e = t10.selector, r = e === void 0 ? "" : e, n = t10.content, o = n === void 0 ? [] : n, i = t10.html, a = t10.config, u = a === void 0 ? {} : a, s = t10.mode, l = (s === void 0 ? "default" : s) === "simple" ? rr.simpleEditorConfig : rr.editorConfig, c = Se(Se({}, l.hoverbarKeys || {}), u.hoverbarKeys || {});
  return RQ({ selector: r, config: Se(Se(Se({}, l), u), { hoverbarKeys: c }), content: o, html: i, plugins: rr.plugins });
}
function Lmt(t10) {
  var e = t10.selector, r = t10.editor, n = t10.config, o = n === void 0 ? {} : n, i = t10.mode, a = i === void 0 ? "default" : i;
  if (!e) throw new Error("Cannot find 'selector' when create toolbar");
  var u = a === "simple" ? rr.simpleToolbarConfig : rr.toolbarConfig, s = (function(l, c) {
    if (l == null) throw new Error("Cannot create toolbar, because editor is null");
    var f = c.selector, d = c.config, p = d === void 0 ? {} : d;
    if ((function(g, m) {
      return CN(g, "data-w-e-toolbar", m);
    })(l, f)) throw new Error("Repeated create toolbar by selector '" + f + "'");
    var v = mn({ toolbarKeys: [], excludeKeys: [], insertKeys: { index: 0, keys: [] }, modalAppendToBody: false }, p || {}), y = new VQ(f, v);
    return $5.set(y, l), Ry.set(l, y), y;
  })(r, { selector: e, config: Se(Se({}, u), o) });
  return s;
}
rr.setSimpleToolbarConfig(Nmt);
var Rmt = Object.defineProperty, Mmt = Object.defineProperties, zmt = Object.getOwnPropertyDescriptors, P_ = Object.getOwnPropertySymbols, $mt = Object.prototype.hasOwnProperty, Hmt = Object.prototype.propertyIsEnumerable, j_ = (t10, e, r) => e in t10 ? Rmt(t10, e, { enumerable: true, configurable: true, writable: true, value: r }) : t10[e] = r, Vmt = (t10, e) => {
  for (var r in e || (e = {})) $mt.call(e, r) && j_(t10, r, e[r]);
  if (P_) for (var r of P_(e)) Hmt.call(e, r) && j_(t10, r, e[r]);
  return t10;
}, Umt = (t10, e) => Mmt(t10, zmt(e));
function ji(t10) {
  let e = `\u8BF7\u4F7F\u7528 '@${t10}' \u4E8B\u4EF6\uFF0C\u4E0D\u8981\u653E\u5728 props \u4E2D`;
  return e += `
Please use '@${t10}' event instead of props`, e;
}
var Nz = (t10, e) => {
  for (const [r, n] of e) t10[r] = n;
  return t10;
};
const Wmt = L_({ props: { mode: { type: String, default: "default" }, defaultContent: { type: Array, default: [] }, defaultHtml: { type: String, default: "" }, defaultConfig: { type: Object, default: {} }, modelValue: { type: String, default: "" } }, setup(t10, e) {
  const r = Ww(null), n = zz(null), o = Ww(""), i = () => {
    if (!r.value) return;
    const u = Rz(t10.defaultContent);
    Imt({ selector: r.value, mode: t10.mode, content: u || [], html: t10.defaultHtml || t10.modelValue || "", config: Umt(Vmt({}, t10.defaultConfig), { onCreated(s) {
      if (n.value = s, e.emit("onCreated", s), t10.defaultConfig.onCreated) {
        const l = ji("onCreated");
        throw new Error(l);
      }
    }, onChange(s) {
      const l = s.getHtml();
      if (o.value = l, e.emit("update:modelValue", l), e.emit("onChange", s), t10.defaultConfig.onChange) {
        const c = ji("onChange");
        throw new Error(c);
      }
    }, onDestroyed(s) {
      if (e.emit("onDestroyed", s), t10.defaultConfig.onDestroyed) {
        const l = ji("onDestroyed");
        throw new Error(l);
      }
    }, onMaxLength(s) {
      if (e.emit("onMaxLength", s), t10.defaultConfig.onMaxLength) {
        const l = ji("onMaxLength");
        throw new Error(l);
      }
    }, onFocus(s) {
      if (e.emit("onFocus", s), t10.defaultConfig.onFocus) {
        const l = ji("onFocus");
        throw new Error(l);
      }
    }, onBlur(s) {
      if (e.emit("onBlur", s), t10.defaultConfig.onBlur) {
        const l = ji("onBlur");
        throw new Error(l);
      }
    }, customAlert(s, l) {
      if (e.emit("customAlert", s, l), t10.defaultConfig.customAlert) {
        const c = ji("customAlert");
        throw new Error(c);
      }
    }, customPaste: (s, l) => {
      if (t10.defaultConfig.customPaste) {
        const f = ji("customPaste");
        throw new Error(f);
      }
      let c;
      return e.emit("customPaste", s, l, (f) => {
        c = f;
      }), c;
    } }) });
  };
  function a(u) {
    const s = n.value;
    s == null ? void 0 : s.setHtml(u);
  }
  return Iz(() => {
    i();
  }), Lz(() => t10.modelValue, (u) => {
    u !== o.value && a(u);
  }), { box: r };
} }), Gmt = { ref: "box", style: { height: "100%" } };
function qmt(t10, e, r, n, o, i) {
  return N_(), I_("div", Gmt, null, 512);
}
var Jmt = Nz(Wmt, [["render", qmt]]);
const Kmt = L_({ props: { editor: { type: Object }, mode: { type: String, default: "default" }, defaultConfig: { type: Object, default: {} } }, setup(t10) {
  const e = Ww(null), r = (n) => {
    if (e.value) {
      if (n == null) throw new Error("Not found instance of Editor when create <Toolbar/> component");
      A.getToolbar(n) || Lmt({ editor: n, selector: e.value || "<div></div>", mode: t10.mode, config: t10.defaultConfig });
    }
  };
  return Mz(() => {
    const { editor: n } = t10;
    n != null && r(n);
  }), { selector: e };
} }), Ymt = { ref: "selector" };
function Xmt(t10, e, r, n, o, i) {
  return N_(), I_("div", Ymt, null, 512);
}
var Qmt = Nz(Kmt, [["render", Xmt]]);
export {
  Jmt as E,
  Qmt as T
};
