@zipify/wysiwyg 1.0.0-dev.58 → 1.0.0-dev.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wysiwyg.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var ty = Object.defineProperty;
2
2
  var ry = (r, e, t) => e in r ? ty(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var xn = (r, e, t) => (ry(r, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { computed as T, ref as q, watch as tn, inject as z, onUnmounted as Dl, nextTick as pp, provide as ut, onMounted as mp, toRef as fe, reactive as ny } from "vue";
3
+ var $r = (r, e, t) => (ry(r, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { computed as T, ref as q, watch as rn, inject as z, onUnmounted as Dl, nextTick as pp, provide as ft, onMounted as mp, toRef as fe, reactive as ny } from "vue";
5
5
  import { ColorModel as iy, ZipifyColorPicker as oy } from "@zipify/colorpicker";
6
6
  function ce(r) {
7
7
  this.content = r;
@@ -660,7 +660,7 @@ class no {
660
660
  }
661
661
  }
662
662
  const cy = /* @__PURE__ */ Object.create(null);
663
- class vt {
663
+ class gt {
664
664
  constructor(e, t, n, i = H.none) {
665
665
  this.type = e, this.attrs = t, this.marks = i, this.content = n || S.empty;
666
666
  }
@@ -707,10 +707,10 @@ class vt {
707
707
  return this.type == e && to(this.attrs, t || e.defaultAttrs || cy) && H.sameSet(this.marks, n || H.none);
708
708
  }
709
709
  copy(e = null) {
710
- return e == this.content ? this : new vt(this.type, this.attrs, e, this.marks);
710
+ return e == this.content ? this : new gt(this.type, this.attrs, e, this.marks);
711
711
  }
712
712
  mark(e) {
713
- return e == this.marks ? this : new vt(this.type, this.attrs, this.content, e);
713
+ return e == this.marks ? this : new gt(this.type, this.attrs, this.content, e);
714
714
  }
715
715
  cut(e, t = this.content.size) {
716
716
  return e == 0 && t == this.content.size ? this : this.copy(this.content.cut(e, t));
@@ -844,8 +844,8 @@ class vt {
844
844
  return e.nodeType(t.type).create(t.attrs, i, n);
845
845
  }
846
846
  }
847
- vt.prototype.text = void 0;
848
- class io extends vt {
847
+ gt.prototype.text = void 0;
848
+ class io extends gt {
849
849
  constructor(e, t, n, i) {
850
850
  if (super(e, t, null, i), !n)
851
851
  throw new RangeError("Empty text nodes are not allowed");
@@ -1242,12 +1242,12 @@ class oo {
1242
1242
  create(e = null, t, n) {
1243
1243
  if (this.isText)
1244
1244
  throw new Error("NodeType.create can't construct text nodes");
1245
- return new vt(this, this.computeAttrs(e), S.from(t), H.setFrom(n));
1245
+ return new gt(this, this.computeAttrs(e), S.from(t), H.setFrom(n));
1246
1246
  }
1247
1247
  createChecked(e = null, t, n) {
1248
1248
  if (t = S.from(t), !this.validContent(t))
1249
1249
  throw new RangeError("Invalid content for node " + this.name);
1250
- return new vt(this, this.computeAttrs(e), t, H.setFrom(n));
1250
+ return new gt(this, this.computeAttrs(e), t, H.setFrom(n));
1251
1251
  }
1252
1252
  createAndFill(e = null, t, n) {
1253
1253
  if (e = this.computeAttrs(e), t = S.from(t), t.size) {
@@ -1257,7 +1257,7 @@ class oo {
1257
1257
  t = s.append(t);
1258
1258
  }
1259
1259
  let i = this.contentMatch.matchFragment(t), o = i && i.fillBefore(S.empty, !0);
1260
- return o ? new vt(this, e, t.append(o), H.setFrom(n)) : null;
1260
+ return o ? new gt(this, e, t.append(o), H.setFrom(n)) : null;
1261
1261
  }
1262
1262
  validContent(e) {
1263
1263
  let t = this.contentMatch.matchFragment(e);
@@ -1373,7 +1373,7 @@ class _y {
1373
1373
  return typeof e == "string" && (e = this.marks[e]), e.create(t);
1374
1374
  }
1375
1375
  nodeFromJSON(e) {
1376
- return vt.fromJSON(this, e);
1376
+ return gt.fromJSON(this, e);
1377
1377
  }
1378
1378
  markFromJSON(e) {
1379
1379
  return H.fromJSON(this, e);
@@ -1401,7 +1401,7 @@ function eu(r, e) {
1401
1401
  }
1402
1402
  return t;
1403
1403
  }
1404
- class rn {
1404
+ class nn {
1405
1405
  constructor(e, t) {
1406
1406
  this.schema = e, this.rules = t, this.tags = [], this.styles = [], t.forEach((n) => {
1407
1407
  n.tag ? this.tags.push(n) : n.style && this.styles.push(n);
@@ -1474,7 +1474,7 @@ class rn {
1474
1474
  return t;
1475
1475
  }
1476
1476
  static fromSchema(e) {
1477
- return e.cached.domParser || (e.cached.domParser = new rn(e, rn.schemaRules(e)));
1477
+ return e.cached.domParser || (e.cached.domParser = new nn(e, nn.schemaRules(e)));
1478
1478
  }
1479
1479
  }
1480
1480
  const Ap = {
@@ -1856,7 +1856,7 @@ function Cy(r, e) {
1856
1856
  if (r.eq(e[t]))
1857
1857
  return e[t];
1858
1858
  }
1859
- class pt {
1859
+ class mt {
1860
1860
  constructor(e, t) {
1861
1861
  this.nodes = e, this.marks = t;
1862
1862
  }
@@ -1887,7 +1887,7 @@ class pt {
1887
1887
  }), n;
1888
1888
  }
1889
1889
  serializeNodeInner(e, t) {
1890
- let { dom: n, contentDOM: i } = pt.renderSpec(xs(t), this.nodes[e.type.name](e));
1890
+ let { dom: n, contentDOM: i } = mt.renderSpec(xs(t), this.nodes[e.type.name](e));
1891
1891
  if (i) {
1892
1892
  if (e.isLeaf)
1893
1893
  throw new RangeError("Content hole not allowed in a leaf node spec");
@@ -1905,7 +1905,7 @@ class pt {
1905
1905
  }
1906
1906
  serializeMark(e, t, n = {}) {
1907
1907
  let i = this.marks[e.type.name];
1908
- return i && pt.renderSpec(xs(n), i(e, t));
1908
+ return i && mt.renderSpec(xs(n), i(e, t));
1909
1909
  }
1910
1910
  static renderSpec(e, t, n = null) {
1911
1911
  if (typeof t == "string")
@@ -1932,7 +1932,7 @@ class pt {
1932
1932
  throw new RangeError("Content hole must be the only child of its parent node");
1933
1933
  return { dom: a, contentDOM: a };
1934
1934
  } else {
1935
- let { dom: d, contentDOM: h } = pt.renderSpec(e, f, n);
1935
+ let { dom: d, contentDOM: h } = mt.renderSpec(e, f, n);
1936
1936
  if (a.appendChild(d), h) {
1937
1937
  if (s)
1938
1938
  throw new RangeError("Multiple content holes");
@@ -1943,7 +1943,7 @@ class pt {
1943
1943
  return { dom: a, contentDOM: s };
1944
1944
  }
1945
1945
  static fromSchema(e) {
1946
- return e.cached.domSerializer || (e.cached.domSerializer = new pt(this.nodesFromSchema(e), this.marksFromSchema(e)));
1946
+ return e.cached.domSerializer || (e.cached.domSerializer = new mt(this.nodesFromSchema(e), this.marksFromSchema(e)));
1947
1947
  }
1948
1948
  static nodesFromSchema(e) {
1949
1949
  let t = iu(e.nodes);
@@ -2059,15 +2059,15 @@ class Ge {
2059
2059
  }
2060
2060
  }
2061
2061
  Ge.empty = new Ge([]);
2062
- class Yr {
2062
+ class Xr {
2063
2063
  constructor(e = [], t, n = 0, i = e.length) {
2064
2064
  this.maps = e, this.mirror = t, this.from = n, this.to = i;
2065
2065
  }
2066
2066
  slice(e = 0, t = this.maps.length) {
2067
- return new Yr(this.maps, this.mirror, e, t);
2067
+ return new Xr(this.maps, this.mirror, e, t);
2068
2068
  }
2069
2069
  copy() {
2070
- return new Yr(this.maps.slice(), this.mirror && this.mirror.slice(), this.from, this.to);
2070
+ return new Xr(this.maps.slice(), this.mirror && this.mirror.slice(), this.from, this.to);
2071
2071
  }
2072
2072
  appendMap(e, t) {
2073
2073
  this.to = this.maps.push(e), t != null && this.setMirror(this.maps.length - 1, t);
@@ -2095,7 +2095,7 @@ class Yr {
2095
2095
  }
2096
2096
  }
2097
2097
  invert() {
2098
- let e = new Yr();
2098
+ let e = new Xr();
2099
2099
  return e.appendMappingInverted(this), e;
2100
2100
  }
2101
2101
  map(e, t = 1) {
@@ -2183,7 +2183,7 @@ class zt extends Jt {
2183
2183
  return Fe.fromReplace(e, this.from, this.to, o);
2184
2184
  }
2185
2185
  invert() {
2186
- return new mt(this.from, this.to, this.mark);
2186
+ return new vt(this.from, this.to, this.mark);
2187
2187
  }
2188
2188
  map(e) {
2189
2189
  let t = e.mapResult(this.from, 1), n = e.mapResult(this.to, -1);
@@ -2207,7 +2207,7 @@ class zt extends Jt {
2207
2207
  }
2208
2208
  }
2209
2209
  Jt.jsonID("addMark", zt);
2210
- class mt extends Jt {
2210
+ class vt extends Jt {
2211
2211
  constructor(e, t, n) {
2212
2212
  super(), this.from = e, this.to = t, this.mark = n;
2213
2213
  }
@@ -2220,10 +2220,10 @@ class mt extends Jt {
2220
2220
  }
2221
2221
  map(e) {
2222
2222
  let t = e.mapResult(this.from, 1), n = e.mapResult(this.to, -1);
2223
- return t.deleted && n.deleted || t.pos >= n.pos ? null : new mt(t.pos, n.pos, this.mark);
2223
+ return t.deleted && n.deleted || t.pos >= n.pos ? null : new vt(t.pos, n.pos, this.mark);
2224
2224
  }
2225
2225
  merge(e) {
2226
- return e instanceof mt && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new mt(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
2226
+ return e instanceof vt && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new vt(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
2227
2227
  }
2228
2228
  toJSON() {
2229
2229
  return {
@@ -2236,10 +2236,10 @@ class mt extends Jt {
2236
2236
  static fromJSON(e, t) {
2237
2237
  if (typeof t.from != "number" || typeof t.to != "number")
2238
2238
  throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
2239
- return new mt(t.from, t.to, e.markFromJSON(t.mark));
2239
+ return new vt(t.from, t.to, e.markFromJSON(t.mark));
2240
2240
  }
2241
2241
  }
2242
- Jt.jsonID("removeMark", mt);
2242
+ Jt.jsonID("removeMark", vt);
2243
2243
  class ge extends Jt {
2244
2244
  constructor(e, t, n, i = !1) {
2245
2245
  super(), this.from = e, this.to = t, this.slice = n, this.structure = i;
@@ -2352,7 +2352,7 @@ function Ay(r, e, t, n) {
2352
2352
  if (!n.isInSet(f) && c.type.allowsMarkType(n.type)) {
2353
2353
  let d = Math.max(u, e), h = Math.min(u + l.nodeSize, t), p = n.addToSet(f);
2354
2354
  for (let m = 0; m < f.length; m++)
2355
- f[m].isInSet(p) || (s && s.to == d && s.mark.eq(f[m]) ? s.to = h : i.push(s = new mt(d, h, f[m])));
2355
+ f[m].isInSet(p) || (s && s.to == d && s.mark.eq(f[m]) ? s.to = h : i.push(s = new vt(d, h, f[m])));
2356
2356
  a && a.to == d ? a.to = h : o.push(a = new zt(d, h, n));
2357
2357
  }
2358
2358
  }), i.forEach((l) => r.step(l)), o.forEach((l) => r.step(l));
@@ -2381,7 +2381,7 @@ function Ty(r, e, t, n) {
2381
2381
  d ? (d.to = u, d.step = o) : i.push({ style: f, from: Math.max(a, e), to: u, step: o });
2382
2382
  }
2383
2383
  }
2384
- }), i.forEach((s) => r.step(new mt(s.from, s.to, s.style)));
2384
+ }), i.forEach((s) => r.step(new vt(s.from, s.to, s.style)));
2385
2385
  }
2386
2386
  function My(r, e, t, n = t.contentMatch) {
2387
2387
  let i = r.doc.nodeAt(e), o = [], s = e + 1;
@@ -2392,7 +2392,7 @@ function My(r, e, t, n = t.contentMatch) {
2392
2392
  else {
2393
2393
  n = c;
2394
2394
  for (let f = 0; f < l.marks.length; f++)
2395
- t.allowsMarkType(l.marks[f].type) || r.step(new mt(s, u, l.marks[f]));
2395
+ t.allowsMarkType(l.marks[f].type) || r.step(new vt(s, u, l.marks[f]));
2396
2396
  }
2397
2397
  s = u;
2398
2398
  }
@@ -2406,7 +2406,7 @@ function My(r, e, t, n = t.contentMatch) {
2406
2406
  function $y(r, e, t) {
2407
2407
  return (e == 0 || r.canReplace(e, r.childCount)) && (t == r.childCount || r.canReplace(0, t));
2408
2408
  }
2409
- function pn(r) {
2409
+ function mn(r) {
2410
2410
  let t = r.parent.content.cutByIndex(r.startIndex, r.endIndex);
2411
2411
  for (let n = r.depth; ; --n) {
2412
2412
  let i = r.$from.node(n), o = r.$from.index(n), s = r.$to.indexAfter(n);
@@ -2490,7 +2490,7 @@ function Ly(r, e, t, n, i) {
2490
2490
  throw new RangeError("Invalid content for node type " + t.name);
2491
2491
  r.step(new se(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new k(S.from(s), 0, 0), 1, !0));
2492
2492
  }
2493
- function Xr(r, e, t = 1, n) {
2493
+ function Zr(r, e, t = 1, n) {
2494
2494
  let i = r.resolve(e), o = i.depth - t, s = n && n[n.length - 1] || i.parent;
2495
2495
  if (o < 0 || i.parent.type.spec.isolating || !i.parent.canReplace(i.index(), i.parent.childCount) || !s.type.validContent(i.parent.content.cutByIndex(i.index(), i.parent.childCount)))
2496
2496
  return !1;
@@ -2832,18 +2832,18 @@ function Lp(r, e) {
2832
2832
  }
2833
2833
  return t;
2834
2834
  }
2835
- let nn = class extends Error {
2835
+ let on = class extends Error {
2836
2836
  };
2837
- nn = function r(e) {
2837
+ on = function r(e) {
2838
2838
  let t = Error.call(this, e);
2839
2839
  return t.__proto__ = r.prototype, t;
2840
2840
  };
2841
- nn.prototype = Object.create(Error.prototype);
2842
- nn.prototype.constructor = nn;
2843
- nn.prototype.name = "TransformError";
2841
+ on.prototype = Object.create(Error.prototype);
2842
+ on.prototype.constructor = on;
2843
+ on.prototype.name = "TransformError";
2844
2844
  class zp {
2845
2845
  constructor(e) {
2846
- this.doc = e, this.steps = [], this.docs = [], this.mapping = new Yr();
2846
+ this.doc = e, this.steps = [], this.docs = [], this.mapping = new Xr();
2847
2847
  }
2848
2848
  get before() {
2849
2849
  return this.docs.length ? this.docs[0] : this.doc;
@@ -2851,7 +2851,7 @@ class zp {
2851
2851
  step(e) {
2852
2852
  let t = this.maybeStep(e);
2853
2853
  if (t.failed)
2854
- throw new nn(t.failed);
2854
+ throw new on(t.failed);
2855
2855
  return this;
2856
2856
  }
2857
2857
  maybeStep(e) {
@@ -2965,11 +2965,11 @@ class P {
2965
2965
  }
2966
2966
  }
2967
2967
  static findFrom(e, t, n = !1) {
2968
- let i = e.parent.inlineContent ? new B(e) : Pr(e.node(0), e.parent, e.pos, e.index(), t, n);
2968
+ let i = e.parent.inlineContent ? new B(e) : Br(e.node(0), e.parent, e.pos, e.index(), t, n);
2969
2969
  if (i)
2970
2970
  return i;
2971
2971
  for (let o = e.depth - 1; o >= 0; o--) {
2972
- let s = t < 0 ? Pr(e.node(0), e.node(o), e.before(o + 1), e.index(o), t, n) : Pr(e.node(0), e.node(o), e.after(o + 1), e.index(o) + 1, t, n);
2972
+ let s = t < 0 ? Br(e.node(0), e.node(o), e.before(o + 1), e.index(o), t, n) : Br(e.node(0), e.node(o), e.after(o + 1), e.index(o) + 1, t, n);
2973
2973
  if (s)
2974
2974
  return s;
2975
2975
  }
@@ -2979,10 +2979,10 @@ class P {
2979
2979
  return this.findFrom(e, t) || this.findFrom(e, -t) || new Xe(e.node(0));
2980
2980
  }
2981
2981
  static atStart(e) {
2982
- return Pr(e, e, 0, 0, 1) || new Xe(e);
2982
+ return Br(e, e, 0, 0, 1) || new Xe(e);
2983
2983
  }
2984
2984
  static atEnd(e) {
2985
- return Pr(e, e, e.content.size, e.childCount, -1) || new Xe(e);
2985
+ return Br(e, e, e.content.size, e.childCount, -1) || new Xe(e);
2986
2986
  }
2987
2987
  static fromJSON(e, t) {
2988
2988
  if (!t || !t.type)
@@ -3158,7 +3158,7 @@ const Zy = {
3158
3158
  return new Xe(r);
3159
3159
  }
3160
3160
  };
3161
- function Pr(r, e, t, n, i, o = !1) {
3161
+ function Br(r, e, t, n, i, o = !1) {
3162
3162
  if (e.inlineContent)
3163
3163
  return B.create(r, t);
3164
3164
  for (let s = n - (i > 0 ? 0 : 1); i > 0 ? s < e.childCount : s >= 0; s += i) {
@@ -3167,7 +3167,7 @@ function Pr(r, e, t, n, i, o = !1) {
3167
3167
  if (!o && I.isSelectable(a))
3168
3168
  return I.create(r, t - (i < 0 ? a.nodeSize : 0));
3169
3169
  } else {
3170
- let l = Pr(r, a, t + i, i < 0 ? a.childCount : 0, i, o);
3170
+ let l = Br(r, a, t + i, i < 0 ? a.childCount : 0, i, o);
3171
3171
  if (l)
3172
3172
  return l;
3173
3173
  }
@@ -3318,7 +3318,7 @@ class Ts {
3318
3318
  });
3319
3319
  }
3320
3320
  }
3321
- class zr {
3321
+ class jr {
3322
3322
  constructor(e) {
3323
3323
  this.config = e;
3324
3324
  }
@@ -3368,7 +3368,7 @@ class zr {
3368
3368
  applyInner(e) {
3369
3369
  if (!e.before.eq(this.doc))
3370
3370
  throw new RangeError("Applying a mismatched transaction");
3371
- let t = new zr(this.config), n = this.config.fields;
3371
+ let t = new jr(this.config), n = this.config.fields;
3372
3372
  for (let i = 0; i < n.length; i++) {
3373
3373
  let o = n[i];
3374
3374
  t[o.name] = o.apply(e, this[o.name], this, t);
@@ -3379,13 +3379,13 @@ class zr {
3379
3379
  return new Qy(this);
3380
3380
  }
3381
3381
  static create(e) {
3382
- let t = new Ts(e.doc ? e.doc.type.schema : e.schema, e.plugins), n = new zr(t);
3382
+ let t = new Ts(e.doc ? e.doc.type.schema : e.schema, e.plugins), n = new jr(t);
3383
3383
  for (let i = 0; i < t.fields.length; i++)
3384
3384
  n[t.fields[i].name] = t.fields[i].init(e, n);
3385
3385
  return n;
3386
3386
  }
3387
3387
  reconfigure(e) {
3388
- let t = new Ts(this.schema, e.plugins), n = t.fields, i = new zr(t);
3388
+ let t = new Ts(this.schema, e.plugins), n = t.fields, i = new jr(t);
3389
3389
  for (let o = 0; o < n.length; o++) {
3390
3390
  let s = n[o].name;
3391
3391
  i[s] = this.hasOwnProperty(s) ? this[s] : n[o].init(e, i);
@@ -3408,10 +3408,10 @@ class zr {
3408
3408
  throw new RangeError("Invalid input for EditorState.fromJSON");
3409
3409
  if (!e.schema)
3410
3410
  throw new RangeError("Required config field 'schema' missing");
3411
- let i = new Ts(e.schema, e.plugins), o = new zr(i);
3411
+ let i = new Ts(e.schema, e.plugins), o = new jr(i);
3412
3412
  return i.fields.forEach((s) => {
3413
3413
  if (s.name == "doc")
3414
- o.doc = vt.fromJSON(e.schema, t.doc);
3414
+ o.doc = gt.fromJSON(e.schema, t.doc);
3415
3415
  else if (s.name == "selection")
3416
3416
  o.selection = P.fromJSON(o.doc, t.selection);
3417
3417
  else if (s.name == "storedMarks")
@@ -3460,9 +3460,9 @@ class tt {
3460
3460
  return e[this.key];
3461
3461
  }
3462
3462
  }
3463
- const Ut = typeof navigator < "u" ? navigator : null, hu = typeof document < "u" ? document : null, Yt = Ut && Ut.userAgent || "", za = /Edge\/(\d+)/.exec(Yt), Hp = /MSIE \d/.exec(Yt), ja = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yt), Ie = !!(Hp || ja || za), Vt = Hp ? document.documentMode : ja ? +ja[1] : za ? +za[1] : 0, gt = !Ie && /gecko\/(\d+)/i.test(Yt);
3464
- gt && +(/Firefox\/(\d+)/.exec(Yt) || [0, 0])[1];
3465
- const Va = !Ie && /Chrome\/(\d+)/.exec(Yt), be = !!Va, t0 = Va ? +Va[1] : 0, Oe = !Ie && !!Ut && /Apple Computer/.test(Ut.vendor), on = Oe && (/Mobile\/\w+/.test(Yt) || !!Ut && Ut.maxTouchPoints > 2), Be = on || (Ut ? /Mac/.test(Ut.platform) : !1), ft = /Android \d/.test(Yt), Ko = !!hu && "webkitFontSmoothing" in hu.documentElement.style, r0 = Ko ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, $e = function(r) {
3463
+ const Ut = typeof navigator < "u" ? navigator : null, hu = typeof document < "u" ? document : null, Yt = Ut && Ut.userAgent || "", za = /Edge\/(\d+)/.exec(Yt), Hp = /MSIE \d/.exec(Yt), ja = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yt), Ie = !!(Hp || ja || za), Vt = Hp ? document.documentMode : ja ? +ja[1] : za ? +za[1] : 0, yt = !Ie && /gecko\/(\d+)/i.test(Yt);
3464
+ yt && +(/Firefox\/(\d+)/.exec(Yt) || [0, 0])[1];
3465
+ const Va = !Ie && /Chrome\/(\d+)/.exec(Yt), be = !!Va, t0 = Va ? +Va[1] : 0, Oe = !Ie && !!Ut && /Apple Computer/.test(Ut.vendor), sn = Oe && (/Mobile\/\w+/.test(Yt) || !!Ut && Ut.maxTouchPoints > 2), Be = sn || (Ut ? /Mac/.test(Ut.platform) : !1), dt = /Android \d/.test(Yt), Ko = !!hu && "webkitFontSmoothing" in hu.documentElement.style, r0 = Ko ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, $e = function(r) {
3466
3466
  for (var e = 0; ; e++)
3467
3467
  if (r = r.previousSibling, !r)
3468
3468
  return e;
@@ -3471,7 +3471,7 @@ const Va = !Ie && /Chrome\/(\d+)/.exec(Yt), be = !!Va, t0 = Va ? +Va[1] : 0, Oe
3471
3471
  return e && e.nodeType == 11 ? e.host : e;
3472
3472
  };
3473
3473
  let pu = null;
3474
- const St = function(r, e, t) {
3474
+ const Et = function(r, e, t) {
3475
3475
  let n = pu || (pu = document.createRange());
3476
3476
  return n.setEnd(r, t == null ? r.nodeValue.length : t), n.setStart(r, e || 0), n;
3477
3477
  }, ti = function(r, e, t, n) {
@@ -3481,7 +3481,7 @@ function mu(r, e, t, n, i) {
3481
3481
  for (; ; ) {
3482
3482
  if (r == t && e == n)
3483
3483
  return !0;
3484
- if (e == (i < 0 ? 0 : dt(r))) {
3484
+ if (e == (i < 0 ? 0 : ht(r))) {
3485
3485
  let o = r.parentNode;
3486
3486
  if (!o || o.nodeType != 1 || o0(r) || n0.test(r.nodeName) || r.contentEditable == "false")
3487
3487
  return !1;
@@ -3489,22 +3489,22 @@ function mu(r, e, t, n, i) {
3489
3489
  } else if (r.nodeType == 1) {
3490
3490
  if (r = r.childNodes[e + (i < 0 ? -1 : 0)], r.contentEditable == "false")
3491
3491
  return !1;
3492
- e = i < 0 ? dt(r) : 0;
3492
+ e = i < 0 ? ht(r) : 0;
3493
3493
  } else
3494
3494
  return !1;
3495
3495
  }
3496
3496
  }
3497
- function dt(r) {
3497
+ function ht(r) {
3498
3498
  return r.nodeType == 3 ? r.nodeValue.length : r.childNodes.length;
3499
3499
  }
3500
3500
  function i0(r, e, t) {
3501
- for (let n = e == 0, i = e == dt(r); n || i; ) {
3501
+ for (let n = e == 0, i = e == ht(r); n || i; ) {
3502
3502
  if (r == t)
3503
3503
  return !0;
3504
3504
  let o = $e(r);
3505
3505
  if (r = r.parentNode, !r)
3506
3506
  return !1;
3507
- n = n && o == 0, i = i && o == dt(r);
3507
+ n = n && o == 0, i = i && o == ht(r);
3508
3508
  }
3509
3509
  }
3510
3510
  function o0(r) {
@@ -3517,7 +3517,7 @@ const Al = function(r) {
3517
3517
  let e = r.isCollapsed;
3518
3518
  return e && be && r.rangeCount && !r.getRangeAt(0).collapsed && (e = !1), e;
3519
3519
  };
3520
- function jr(r, e) {
3520
+ function Vr(r, e) {
3521
3521
  let t = document.createEvent("Event");
3522
3522
  return t.initEvent("keydown", !0, !0), t.keyCode = r, t.key = t.code = e, t;
3523
3523
  }
@@ -3529,7 +3529,7 @@ function s0(r) {
3529
3529
  bottom: r.documentElement.clientHeight
3530
3530
  };
3531
3531
  }
3532
- function At(r, e) {
3532
+ function Mt(r, e) {
3533
3533
  return typeof r == "number" ? r : r[e];
3534
3534
  }
3535
3535
  function a0(r) {
@@ -3547,7 +3547,7 @@ function vu(r, e, t) {
3547
3547
  if (s.nodeType != 1)
3548
3548
  continue;
3549
3549
  let a = s, l = a == o.body, u = l ? s0(o) : a0(a), c = 0, f = 0;
3550
- if (e.top < u.top + At(n, "top") ? f = -(u.top - e.top + At(i, "top")) : e.bottom > u.bottom - At(n, "bottom") && (f = e.bottom - u.bottom + At(i, "bottom")), e.left < u.left + At(n, "left") ? c = -(u.left - e.left + At(i, "left")) : e.right > u.right - At(n, "right") && (c = e.right - u.right + At(i, "right")), c || f)
3550
+ if (e.top < u.top + Mt(n, "top") ? f = -(u.top - e.top + Mt(i, "top")) : e.bottom > u.bottom - Mt(n, "bottom") && (f = e.bottom - u.bottom + Mt(i, "bottom")), e.left < u.left + Mt(n, "left") ? c = -(u.left - e.left + Mt(i, "left")) : e.right > u.right - Mt(n, "right") && (c = e.right - u.right + Mt(i, "right")), c || f)
3551
3551
  if (l)
3552
3552
  o.defaultView.scrollBy(c, f);
3553
3553
  else {
@@ -3590,18 +3590,18 @@ function qp(r, e) {
3590
3590
  n.scrollTop != i + e && (n.scrollTop = i + e), n.scrollLeft != o && (n.scrollLeft = o);
3591
3591
  }
3592
3592
  }
3593
- let $r = null;
3593
+ let Fr = null;
3594
3594
  function u0(r) {
3595
3595
  if (r.setActive)
3596
3596
  return r.setActive();
3597
- if ($r)
3598
- return r.focus($r);
3597
+ if (Fr)
3598
+ return r.focus(Fr);
3599
3599
  let e = Wp(r);
3600
- r.focus($r == null ? {
3600
+ r.focus(Fr == null ? {
3601
3601
  get preventScroll() {
3602
- return $r = { preventScroll: !0 }, !0;
3602
+ return Fr = { preventScroll: !0 }, !0;
3603
3603
  }
3604
- } : void 0), $r || ($r = !1, qp(e, 0));
3604
+ } : void 0), Fr || (Fr = !1, qp(e, 0));
3605
3605
  }
3606
3606
  function Up(r, e) {
3607
3607
  let t, n = 2e8, i, o = 0, s = e.top, a = e.top;
@@ -3610,7 +3610,7 @@ function Up(r, e) {
3610
3610
  if (l.nodeType == 1)
3611
3611
  c = l.getClientRects();
3612
3612
  else if (l.nodeType == 3)
3613
- c = St(l).getClientRects();
3613
+ c = Et(l).getClientRects();
3614
3614
  else
3615
3615
  continue;
3616
3616
  for (let f = 0; f < c.length; f++) {
@@ -3635,7 +3635,7 @@ function f0(r, e) {
3635
3635
  let t = r.nodeValue.length, n = document.createRange();
3636
3636
  for (let i = 0; i < t; i++) {
3637
3637
  n.setEnd(r, i + 1), n.setStart(r, i);
3638
- let o = Ft(n, 1);
3638
+ let o = Nt(n, 1);
3639
3639
  if (o.top != o.bottom && Tl(e, o))
3640
3640
  return { node: r, offset: i + (e.left >= (o.left + o.right) / 2 ? 1 : 0) };
3641
3641
  }
@@ -3715,7 +3715,7 @@ function m0(r, e) {
3715
3715
  for (let l = o; n && l; l = kl(l))
3716
3716
  l.draggable && (n = void 0);
3717
3717
  if (o = d0(o, e), n) {
3718
- if (gt && n.nodeType == 1 && (i = Math.min(i, n.childNodes.length), i < n.childNodes.length)) {
3718
+ if (yt && n.nodeType == 1 && (i = Math.min(i, n.childNodes.length), i < n.childNodes.length)) {
3719
3719
  let l = n.childNodes[i], u;
3720
3720
  l.nodeName == "IMG" && (u = l.getBoundingClientRect()).right <= e.left && u.bottom > e.top && i++;
3721
3721
  }
@@ -3725,20 +3725,20 @@ function m0(r, e) {
3725
3725
  let a = r.docView.nearestDesc(o, !0);
3726
3726
  return { pos: s, inside: a ? a.posAtStart - a.border : -1 };
3727
3727
  }
3728
- function Ft(r, e) {
3728
+ function Nt(r, e) {
3729
3729
  let t = r.getClientRects();
3730
3730
  return t.length ? t[e < 0 ? 0 : t.length - 1] : r.getBoundingClientRect();
3731
3731
  }
3732
3732
  const v0 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
3733
3733
  function Gp(r, e, t) {
3734
- let { node: n, offset: i } = r.docView.domFromPos(e, t < 0 ? -1 : 1), o = Ko || gt;
3734
+ let { node: n, offset: i } = r.docView.domFromPos(e, t < 0 ? -1 : 1), o = Ko || yt;
3735
3735
  if (n.nodeType == 3)
3736
3736
  if (o && (v0.test(n.nodeValue) || (t < 0 ? !i : i == n.nodeValue.length))) {
3737
- let s = Ft(St(n, i, i), t);
3738
- if (gt && i && /\s/.test(n.nodeValue[i - 1]) && i < n.nodeValue.length) {
3739
- let a = Ft(St(n, i - 1, i - 1), -1);
3737
+ let s = Nt(Et(n, i, i), t);
3738
+ if (yt && i && /\s/.test(n.nodeValue[i - 1]) && i < n.nodeValue.length) {
3739
+ let a = Nt(Et(n, i - 1, i - 1), -1);
3740
3740
  if (a.top == s.top) {
3741
- let l = Ft(St(n, i, i + 1), -1);
3741
+ let l = Nt(Et(n, i, i + 1), -1);
3742
3742
  if (l.top != s.top)
3743
3743
  return Cn(l, l.left < a.left);
3744
3744
  }
@@ -3746,35 +3746,35 @@ function Gp(r, e, t) {
3746
3746
  return s;
3747
3747
  } else {
3748
3748
  let s = i, a = i, l = t < 0 ? 1 : -1;
3749
- return t < 0 && !i ? (a++, l = -1) : t >= 0 && i == n.nodeValue.length ? (s--, l = 1) : t < 0 ? s-- : a++, Cn(Ft(St(n, s, a), l), l < 0);
3749
+ return t < 0 && !i ? (a++, l = -1) : t >= 0 && i == n.nodeValue.length ? (s--, l = 1) : t < 0 ? s-- : a++, Cn(Nt(Et(n, s, a), l), l < 0);
3750
3750
  }
3751
3751
  if (!r.state.doc.resolve(e).parent.inlineContent) {
3752
- if (i && (t < 0 || i == dt(n))) {
3752
+ if (i && (t < 0 || i == ht(n))) {
3753
3753
  let s = n.childNodes[i - 1];
3754
3754
  if (s.nodeType == 1)
3755
3755
  return $s(s.getBoundingClientRect(), !1);
3756
3756
  }
3757
- if (i < dt(n)) {
3757
+ if (i < ht(n)) {
3758
3758
  let s = n.childNodes[i];
3759
3759
  if (s.nodeType == 1)
3760
3760
  return $s(s.getBoundingClientRect(), !0);
3761
3761
  }
3762
3762
  return $s(n.getBoundingClientRect(), t >= 0);
3763
3763
  }
3764
- if (i && (t < 0 || i == dt(n))) {
3765
- let s = n.childNodes[i - 1], a = s.nodeType == 3 ? St(s, dt(s) - (o ? 0 : 1)) : s.nodeType == 1 && (s.nodeName != "BR" || !s.nextSibling) ? s : null;
3764
+ if (i && (t < 0 || i == ht(n))) {
3765
+ let s = n.childNodes[i - 1], a = s.nodeType == 3 ? Et(s, ht(s) - (o ? 0 : 1)) : s.nodeType == 1 && (s.nodeName != "BR" || !s.nextSibling) ? s : null;
3766
3766
  if (a)
3767
- return Cn(Ft(a, 1), !1);
3767
+ return Cn(Nt(a, 1), !1);
3768
3768
  }
3769
- if (i < dt(n)) {
3769
+ if (i < ht(n)) {
3770
3770
  let s = n.childNodes[i];
3771
3771
  for (; s.pmViewDesc && s.pmViewDesc.ignoreForCoords; )
3772
3772
  s = s.nextSibling;
3773
- let a = s ? s.nodeType == 3 ? St(s, 0, o ? 0 : 1) : s.nodeType == 1 ? s : null : null;
3773
+ let a = s ? s.nodeType == 3 ? Et(s, 0, o ? 0 : 1) : s.nodeType == 1 ? s : null : null;
3774
3774
  if (a)
3775
- return Cn(Ft(a, -1), !0);
3775
+ return Cn(Nt(a, -1), !0);
3776
3776
  }
3777
- return Cn(Ft(n.nodeType == 3 ? St(n) : n, -t), t >= 0);
3777
+ return Cn(Nt(n.nodeType == 3 ? Et(n) : n, -t), t >= 0);
3778
3778
  }
3779
3779
  function Cn(r, e) {
3780
3780
  if (r.width == 0)
@@ -3817,7 +3817,7 @@ function g0(r, e, t) {
3817
3817
  if (a.nodeType == 1)
3818
3818
  l = a.getClientRects();
3819
3819
  else if (a.nodeType == 3)
3820
- l = St(a, 0, a.nodeValue.length).getClientRects();
3820
+ l = Et(a, 0, a.nodeValue.length).getClientRects();
3821
3821
  else
3822
3822
  continue;
3823
3823
  for (let u = 0; u < l.length; u++) {
@@ -3846,7 +3846,7 @@ let gu = null, yu = null, bu = !1;
3846
3846
  function _0(r, e, t) {
3847
3847
  return gu == e && yu == t ? bu : (gu = e, yu = t, bu = t == "up" || t == "down" ? g0(r, e, t) : b0(r, e, t));
3848
3848
  }
3849
- const Ze = 0, _u = 1, Vr = 2, yt = 3;
3849
+ const Ze = 0, _u = 1, Hr = 2, bt = 3;
3850
3850
  class ui {
3851
3851
  constructor(e, t, n, i) {
3852
3852
  this.parent = e, this.children = t, this.dom = n, this.contentDOM = i, this.dirty = Ze, n.pmViewDesc = this;
@@ -4081,7 +4081,7 @@ class ui {
4081
4081
  h = m;
4082
4082
  }
4083
4083
  let a = this.domFromPos(e, e ? -1 : 1), l = t == e ? a : this.domFromPos(t, t ? -1 : 1), u = n.getSelection(), c = !1;
4084
- if ((gt || Oe) && e == t) {
4084
+ if ((yt || Oe) && e == t) {
4085
4085
  let { node: d, offset: h } = a;
4086
4086
  if (d.nodeType == 3) {
4087
4087
  if (c = !!(h && d.nodeValue[h - 1] == `
@@ -4100,7 +4100,7 @@ class ui {
4100
4100
  c = p && (p.nodeName == "BR" || p.contentEditable == "false");
4101
4101
  }
4102
4102
  }
4103
- if (gt && u.focusNode && u.focusNode != l.node && u.focusNode.nodeType == 1) {
4103
+ if (yt && u.focusNode && u.focusNode != l.node && u.focusNode.nodeType == 1) {
4104
4104
  let d = u.focusNode.childNodes[u.focusOffset];
4105
4105
  d && d.contentEditable == "false" && (i = !0);
4106
4106
  }
@@ -4137,19 +4137,19 @@ class ui {
4137
4137
  if (n == s ? e <= s && t >= n : e < s && t > n) {
4138
4138
  let a = n + o.border, l = s - o.border;
4139
4139
  if (e >= a && t <= l) {
4140
- this.dirty = e == n || t == s ? Vr : _u, e == a && t == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = yt : o.markDirty(e - a, t - a);
4140
+ this.dirty = e == n || t == s ? Hr : _u, e == a && t == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = bt : o.markDirty(e - a, t - a);
4141
4141
  return;
4142
4142
  } else
4143
- o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? Vr : yt;
4143
+ o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? Hr : bt;
4144
4144
  }
4145
4145
  n = s;
4146
4146
  }
4147
- this.dirty = Vr;
4147
+ this.dirty = Hr;
4148
4148
  }
4149
4149
  markParentsDirty() {
4150
4150
  let e = 1;
4151
4151
  for (let t = this.parent; t; t = t.parent, e++) {
4152
- let n = e == 1 ? Vr : _u;
4152
+ let n = e == 1 ? Hr : _u;
4153
4153
  t.dirty < n && (t.dirty = n);
4154
4154
  }
4155
4155
  }
@@ -4223,13 +4223,13 @@ class _r extends ui {
4223
4223
  }
4224
4224
  static create(e, t, n, i) {
4225
4225
  let o = i.nodeViews[t.type.name], s = o && o(t, i, n);
4226
- return (!s || !s.dom) && (s = pt.renderSpec(document, t.type.spec.toDOM(t, n))), new _r(e, t, s.dom, s.contentDOM || s.dom);
4226
+ return (!s || !s.dom) && (s = mt.renderSpec(document, t.type.spec.toDOM(t, n))), new _r(e, t, s.dom, s.contentDOM || s.dom);
4227
4227
  }
4228
4228
  parseRule() {
4229
- return this.dirty & yt || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM || void 0 };
4229
+ return this.dirty & bt || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM || void 0 };
4230
4230
  }
4231
4231
  matchesMark(e) {
4232
- return this.dirty != yt && this.mark.eq(e);
4232
+ return this.dirty != bt && this.mark.eq(e);
4233
4233
  }
4234
4234
  markDirty(e, t) {
4235
4235
  if (super.markDirty(e, t), this.dirty != Ze) {
@@ -4264,7 +4264,7 @@ class Sr extends ui {
4264
4264
  else if (c.nodeType != 3)
4265
4265
  throw new RangeError("Text must be rendered as a DOM text node");
4266
4266
  } else
4267
- c || ({ dom: c, contentDOM: f } = pt.renderSpec(document, t.type.spec.toDOM(t)));
4267
+ c || ({ dom: c, contentDOM: f } = mt.renderSpec(document, t.type.spec.toDOM(t)));
4268
4268
  !f && !t.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), t.type.spec.draggable && (c.draggable = !0));
4269
4269
  let d = c;
4270
4270
  return c = em(c, n, t), u ? l = new E0(e, t, n, i, c, f || null, d, u, o, s + 1) : t.isText ? new Go(e, t, n, i, c, d, o) : new Sr(e, t, n, i, c, f || null, d, o, s + 1);
@@ -4306,7 +4306,7 @@ class Sr extends ui {
4306
4306
  l.syncToMarks(u.marks, n, e);
4307
4307
  let h;
4308
4308
  l.findNodeMatch(u, c, f, d) || a && e.state.selection.from > i && e.state.selection.to < i + u.nodeSize && (h = l.findIndexWithChild(o.node)) > -1 && l.updateNodeAt(u, c, f, h, e) || l.updateNextNode(u, c, f, e, d) || l.addNode(u, c, f, e, i), i += u.nodeSize;
4309
- }), l.syncToMarks([], n, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Vr) && (s && this.protectLocalComposition(e, s), Zp(this.contentDOM, this.children, e), on && k0(this.dom));
4309
+ }), l.syncToMarks([], n, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Hr) && (s && this.protectLocalComposition(e, s), Zp(this.contentDOM, this.children, e), sn && k0(this.dom));
4310
4310
  }
4311
4311
  localCompositionInfo(e, t) {
4312
4312
  let { from: n, to: i } = e.state.selection;
@@ -4336,7 +4336,7 @@ class Sr extends ui {
4336
4336
  e.input.compositionNodes.push(s), this.children = qa(this.children, n, n + i.length, e, s);
4337
4337
  }
4338
4338
  update(e, t, n, i) {
4339
- return this.dirty == yt || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, n, i), !0);
4339
+ return this.dirty == bt || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, n, i), !0);
4340
4340
  }
4341
4341
  updateInner(e, t, n, i) {
4342
4342
  this.updateOuterDeco(t), this.node = e, this.innerDeco = n, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Ze;
@@ -4371,7 +4371,7 @@ class Go extends Sr {
4371
4371
  return { skip: e || !0 };
4372
4372
  }
4373
4373
  update(e, t, n, i) {
4374
- return this.dirty == yt || this.dirty != Ze && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != Ze || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Ze, !0);
4374
+ return this.dirty == bt || this.dirty != Ze && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != Ze || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Ze, !0);
4375
4375
  }
4376
4376
  inParent() {
4377
4377
  let e = this.parent.contentDOM;
@@ -4394,7 +4394,7 @@ class Go extends Sr {
4394
4394
  return new Go(this.parent, i, this.outerDeco, this.innerDeco, o, o, n);
4395
4395
  }
4396
4396
  markDirty(e, t) {
4397
- super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = yt);
4397
+ super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = bt);
4398
4398
  }
4399
4399
  get domAtom() {
4400
4400
  return !1;
@@ -4419,7 +4419,7 @@ class E0 extends Sr {
4419
4419
  super(e, t, n, i, o, s, a, u, c), this.spec = l;
4420
4420
  }
4421
4421
  update(e, t, n, i) {
4422
- if (this.dirty == yt)
4422
+ if (this.dirty == bt)
4423
4423
  return !1;
4424
4424
  if (this.spec.update) {
4425
4425
  let o = this.spec.update(e, t, n);
@@ -4590,7 +4590,7 @@ class w0 {
4590
4590
  }
4591
4591
  updateNodeAt(e, t, n, i, o) {
4592
4592
  let s = this.top.children[i];
4593
- return s.dirty == yt && s.dom == s.contentDOM && (s.dirty = Vr), s.update(e, t, n, o) ? (this.destroyBetween(this.index, i), this.index = i + 1, !0) : !1;
4593
+ return s.dirty == bt && s.dom == s.contentDOM && (s.dirty = Hr), s.update(e, t, n, o) ? (this.destroyBetween(this.index, i), this.index = i + 1, !0) : !1;
4594
4594
  }
4595
4595
  findIndexWithChild(e) {
4596
4596
  for (; ; ) {
@@ -4617,7 +4617,7 @@ class w0 {
4617
4617
  if (l != null && l != o)
4618
4618
  return !1;
4619
4619
  let u = a.dom;
4620
- if (!(this.lock && (u == this.lock || u.nodeType == 1 && u.contains(this.lock.parentNode)) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty != yt && Wa(t, a.outerDeco))) && a.update(e, t, n, i))
4620
+ if (!(this.lock && (u == this.lock || u.nodeType == 1 && u.contains(this.lock.parentNode)) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty != bt && Wa(t, a.outerDeco))) && a.update(e, t, n, i))
4621
4621
  return this.destroyBetween(this.index, s), a.dom != u && (this.changed = !0), this.index++, !0;
4622
4622
  break;
4623
4623
  }
@@ -4742,7 +4742,7 @@ function A0(r, e) {
4742
4742
  if (r.nodeType == 1 && e > 0) {
4743
4743
  if (r.childNodes.length > e && r.childNodes[e].nodeType == 3)
4744
4744
  return r.childNodes[e];
4745
- r = r.childNodes[e - 1], e = dt(r);
4745
+ r = r.childNodes[e - 1], e = ht(r);
4746
4746
  } else if (r.nodeType == 1 && e < r.childNodes.length)
4747
4747
  r = r.childNodes[e], e = 0;
4748
4748
  else
@@ -4934,7 +4934,7 @@ function Is(r) {
4934
4934
  if (!t)
4935
4935
  return;
4936
4936
  let i, o, s = !1;
4937
- for (gt && t.nodeType == 1 && n < lo(t) && Wn(t.childNodes[n]) && (s = !0); ; )
4937
+ for (yt && t.nodeType == 1 && n < lo(t) && Wn(t.childNodes[n]) && (s = !0); ; )
4938
4938
  if (n > 0) {
4939
4939
  if (t.nodeType != 1)
4940
4940
  break;
@@ -5074,7 +5074,7 @@ function sm(r, e) {
5074
5074
  let h = n.firstChild;
5075
5075
  t.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), n = h.content;
5076
5076
  }
5077
- let s = r.someProp("clipboardSerializer") || pt.fromSchema(r.state.schema), a = dm(), l = a.createElement("div");
5077
+ let s = r.someProp("clipboardSerializer") || mt.fromSchema(r.state.schema), a = dm(), l = a.createElement("div");
5078
5078
  l.appendChild(s.serializeFragment(n, { document: a }));
5079
5079
  let u = l.firstChild, c, f = 0;
5080
5080
  for (; u && u.nodeType == 1 && (c = fm[u.nodeName.toLowerCase()]); ) {
@@ -5107,7 +5107,7 @@ function am(r, e, t, n, i) {
5107
5107
  if (f)
5108
5108
  a = f;
5109
5109
  else {
5110
- let d = i.marks(), { schema: h } = r.state, p = pt.fromSchema(h);
5110
+ let d = i.marks(), { schema: h } = r.state, p = mt.fromSchema(h);
5111
5111
  s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((m) => {
5112
5112
  let v = s.appendChild(document.createElement("p"));
5113
5113
  m && v.appendChild(p.serializeNode(h.text(m, d)));
@@ -5121,7 +5121,7 @@ function am(r, e, t, n, i) {
5121
5121
  if (c && c[3])
5122
5122
  for (let f = +c[3]; f > 0 && s.firstChild; f--)
5123
5123
  s = s.firstChild;
5124
- if (a || (a = (r.someProp("clipboardParser") || r.someProp("domParser") || rn.fromSchema(r.state.schema)).parseSlice(s, {
5124
+ if (a || (a = (r.someProp("clipboardParser") || r.someProp("domParser") || nn.fromSchema(r.state.schema)).parseSlice(s, {
5125
5125
  preserveWhitespace: !!(l || c),
5126
5126
  context: i,
5127
5127
  ruleFromNode(d) {
@@ -5293,11 +5293,11 @@ function U0(r, e) {
5293
5293
  }
5294
5294
  _e.keydown = (r, e) => {
5295
5295
  let t = e;
5296
- if (r.input.shiftKey = t.keyCode == 16 || t.shiftKey, !pm(r, t) && (r.input.lastKeyCode = t.keyCode, r.input.lastKeyCodeTime = Date.now(), !(ft && be && t.keyCode == 13)))
5297
- if (t.keyCode != 229 && r.domObserver.forceFlush(), on && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
5296
+ if (r.input.shiftKey = t.keyCode == 16 || t.shiftKey, !pm(r, t) && (r.input.lastKeyCode = t.keyCode, r.input.lastKeyCodeTime = Date.now(), !(dt && be && t.keyCode == 13)))
5297
+ if (t.keyCode != 229 && r.domObserver.forceFlush(), sn && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
5298
5298
  let n = Date.now();
5299
5299
  r.input.lastIOSEnter = n, r.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
5300
- r.input.lastIOSEnter == n && (r.someProp("handleKeyDown", (i) => i(r, jr(13, "Enter"))), r.input.lastIOSEnter = 0);
5300
+ r.input.lastIOSEnter == n && (r.someProp("handleKeyDown", (i) => i(r, Vr(13, "Enter"))), r.input.lastIOSEnter = 0);
5301
5301
  }, 200);
5302
5302
  } else
5303
5303
  r.someProp("handleKeyDown", (n) => n(r, t)) || R0(r, t) ? t.preventDefault() : cr(r, "key");
@@ -5335,7 +5335,7 @@ function Fl(r, e, t, n, i) {
5335
5335
  return !0;
5336
5336
  return !1;
5337
5337
  }
5338
- function Zr(r, e, t) {
5338
+ function Qr(r, e, t) {
5339
5339
  r.focused || r.focus();
5340
5340
  let n = r.state.tr.setSelection(e);
5341
5341
  t == "pointer" && n.setMeta("pointer", !0), r.dispatch(n);
@@ -5344,7 +5344,7 @@ function G0(r, e) {
5344
5344
  if (e == -1)
5345
5345
  return !1;
5346
5346
  let t = r.state.doc.resolve(e), n = t.nodeAfter;
5347
- return n && n.isAtom && I.isSelectable(n) ? (Zr(r, new I(t), "pointer"), !0) : !1;
5347
+ return n && n.isAtom && I.isSelectable(n) ? (Qr(r, new I(t), "pointer"), !0) : !1;
5348
5348
  }
5349
5349
  function J0(r, e) {
5350
5350
  if (e == -1)
@@ -5359,7 +5359,7 @@ function J0(r, e) {
5359
5359
  break;
5360
5360
  }
5361
5361
  }
5362
- return i != null ? (Zr(r, I.create(r.state.doc, i), "pointer"), !0) : !1;
5362
+ return i != null ? (Qr(r, I.create(r.state.doc, i), "pointer"), !0) : !1;
5363
5363
  }
5364
5364
  function Y0(r, e, t, n, i) {
5365
5365
  return Fl(r, "handleClickOn", e, t, n) || r.someProp("handleClick", (o) => o(r, e, n)) || (i ? J0(r, t) : G0(r, t));
@@ -5375,14 +5375,14 @@ function Q0(r, e, t) {
5375
5375
  return !1;
5376
5376
  let n = r.state.doc;
5377
5377
  if (e == -1)
5378
- return n.inlineContent ? (Zr(r, B.create(n, 0, n.content.size), "pointer"), !0) : !1;
5378
+ return n.inlineContent ? (Qr(r, B.create(n, 0, n.content.size), "pointer"), !0) : !1;
5379
5379
  let i = n.resolve(e);
5380
5380
  for (let o = i.depth + 1; o > 0; o--) {
5381
5381
  let s = o > i.depth ? i.nodeAfter : i.node(o), a = i.before(o);
5382
5382
  if (s.inlineContent)
5383
- Zr(r, B.create(n, a + 1, a + 1 + s.content.size), "pointer");
5383
+ Qr(r, B.create(n, a + 1, a + 1 + s.content.size), "pointer");
5384
5384
  else if (I.isSelectable(s))
5385
- Zr(r, I.create(n, a), "pointer");
5385
+ Qr(r, I.create(n, a), "pointer");
5386
5386
  else
5387
5387
  continue;
5388
5388
  return !0;
@@ -5417,7 +5417,7 @@ class eb {
5417
5417
  node: o,
5418
5418
  pos: s,
5419
5419
  addAttr: !!(this.target && !this.target.draggable),
5420
- setUneditable: !!(this.target && gt && !this.target.hasAttribute("contentEditable"))
5420
+ setUneditable: !!(this.target && yt && !this.target.hasAttribute("contentEditable"))
5421
5421
  }), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
5422
5422
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
5423
5423
  }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), cr(e, "pointer");
@@ -5429,7 +5429,7 @@ class eb {
5429
5429
  if (this.done(), !this.view.dom.contains(e.target))
5430
5430
  return;
5431
5431
  let t = this.pos;
5432
- this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Jo(e))), this.allowDefault || !t ? cr(this.view, "pointer") : Y0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || Oe && this.mightDrag && !this.mightDrag.node.isAtom || be && !(this.view.state.selection instanceof B) && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Zr(this.view, P.near(this.view.state.doc.resolve(t.pos)), "pointer"), e.preventDefault()) : cr(this.view, "pointer");
5432
+ this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Jo(e))), this.allowDefault || !t ? cr(this.view, "pointer") : Y0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || Oe && this.mightDrag && !this.mightDrag.node.isAtom || be && !(this.view.state.selection instanceof B) && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Qr(this.view, P.near(this.view.state.doc.resolve(t.pos)), "pointer"), e.preventDefault()) : cr(this.view, "pointer");
5433
5433
  }
5434
5434
  move(e) {
5435
5435
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0), cr(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -5442,14 +5442,14 @@ ke.contextmenu = (r) => Il(r);
5442
5442
  function pm(r, e) {
5443
5443
  return r.composing ? !0 : Oe && Math.abs(e.timeStamp - r.input.compositionEndedAt) < 500 ? (r.input.compositionEndedAt = -2e8, !0) : !1;
5444
5444
  }
5445
- const tb = ft ? 5e3 : -1;
5445
+ const tb = dt ? 5e3 : -1;
5446
5446
  _e.compositionstart = _e.compositionupdate = (r) => {
5447
5447
  if (!r.composing) {
5448
5448
  r.domObserver.flush();
5449
5449
  let { state: e } = r, t = e.selection.$from;
5450
5450
  if (e.selection.empty && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((n) => n.type.spec.inclusive === !1)))
5451
5451
  r.markCursor = r.state.storedMarks || t.marks(), co(r, !0), r.markCursor = null;
5452
- else if (co(r), gt && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
5452
+ else if (co(r), yt && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
5453
5453
  let n = r.domSelection();
5454
5454
  for (let i = n.focusNode, o = n.focusOffset; i && i.nodeType == 1 && o != 0; ) {
5455
5455
  let s = o < 0 ? i.lastChild : i.childNodes[o - 1];
@@ -5481,7 +5481,7 @@ function rb() {
5481
5481
  return r.initEvent("event", !0, !0), r.timeStamp;
5482
5482
  }
5483
5483
  function co(r, e = !1) {
5484
- if (!(ft && r.domObserver.flushingSoon >= 0)) {
5484
+ if (!(dt && r.domObserver.flushingSoon >= 0)) {
5485
5485
  if (r.domObserver.forceFlush(), vm(r), e || r.docView && r.docView.dirty) {
5486
5486
  let t = tm(r);
5487
5487
  return t && !t.eq(r.state.selection) ? r.dispatch(r.state.tr.setSelection(t)) : r.updateState(r.state), !0;
@@ -5499,12 +5499,12 @@ function nb(r, e) {
5499
5499
  t.parentNode && t.parentNode.removeChild(t), r.focus();
5500
5500
  }, 50);
5501
5501
  }
5502
- const sn = Ie && Vt < 15 || on && r0 < 604;
5502
+ const an = Ie && Vt < 15 || sn && r0 < 604;
5503
5503
  ke.copy = _e.cut = (r, e) => {
5504
5504
  let t = e, n = r.state.selection, i = t.type == "cut";
5505
5505
  if (n.empty)
5506
5506
  return;
5507
- let o = sn ? null : t.clipboardData, s = n.content(), { dom: a, text: l } = sm(r, s);
5507
+ let o = an ? null : t.clipboardData, s = n.content(), { dom: a, text: l } = sm(r, s);
5508
5508
  o ? (t.preventDefault(), o.clearData(), o.setData("text/html", a.innerHTML), o.setData("text/plain", l)) : nb(r, a), i && r.dispatch(r.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
5509
5509
  };
5510
5510
  function ib(r) {
@@ -5529,9 +5529,9 @@ function Ya(r, e, t, n) {
5529
5529
  }
5530
5530
  _e.paste = (r, e) => {
5531
5531
  let t = e;
5532
- if (r.composing && !ft)
5532
+ if (r.composing && !dt)
5533
5533
  return;
5534
- let n = sn ? null : t.clipboardData;
5534
+ let n = an ? null : t.clipboardData;
5535
5535
  n && Ya(r, n.getData("text/plain"), n.getData("text/html"), t) ? t.preventDefault() : ob(r, t);
5536
5536
  };
5537
5537
  class sb {
@@ -5554,7 +5554,7 @@ ke.dragstart = (r, e) => {
5554
5554
  }
5555
5555
  }
5556
5556
  let s = r.state.selection.content(), { dom: a, text: l } = sm(r, s);
5557
- t.dataTransfer.clearData(), t.dataTransfer.setData(sn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", sn || t.dataTransfer.setData("text/plain", l), r.dragging = new sb(s, !t[gm]);
5557
+ t.dataTransfer.clearData(), t.dataTransfer.setData(an ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", an || t.dataTransfer.setData("text/plain", l), r.dragging = new sb(s, !t[gm]);
5558
5558
  };
5559
5559
  ke.dragend = (r) => {
5560
5560
  let e = r.dragging;
@@ -5576,7 +5576,7 @@ _e.drop = (r, e) => {
5576
5576
  let s = n && n.slice;
5577
5577
  s ? r.someProp("transformPasted", (p) => {
5578
5578
  s = p(s);
5579
- }) : s = am(r, t.dataTransfer.getData(sn ? "Text" : "text/plain"), sn ? null : t.dataTransfer.getData("text/html"), !1, o);
5579
+ }) : s = am(r, t.dataTransfer.getData(an ? "Text" : "text/plain"), an ? null : t.dataTransfer.getData("text/html"), !1, o);
5580
5580
  let a = !!(n && !t[gm]);
5581
5581
  if (r.someProp("handleDrop", (p) => p(r, t, s || k.empty, a))) {
5582
5582
  t.preventDefault();
@@ -5611,11 +5611,11 @@ ke.blur = (r, e) => {
5611
5611
  r.focused && (r.domObserver.stop(), r.dom.classList.remove("ProseMirror-focused"), r.domObserver.start(), t.relatedTarget && r.dom.contains(t.relatedTarget) && r.domObserver.currentSelection.clear(), r.focused = !1);
5612
5612
  };
5613
5613
  ke.beforeinput = (r, e) => {
5614
- if (be && ft && e.inputType == "deleteContentBackward") {
5614
+ if (be && dt && e.inputType == "deleteContentBackward") {
5615
5615
  r.domObserver.flushSoon();
5616
5616
  let { domChangeCount: n } = r.input;
5617
5617
  setTimeout(() => {
5618
- if (r.input.domChangeCount != n || (r.dom.blur(), r.focus(), r.someProp("handleKeyDown", (o) => o(r, jr(8, "Backspace")))))
5618
+ if (r.input.domChangeCount != n || (r.dom.blur(), r.focus(), r.someProp("handleKeyDown", (o) => o(r, Vr(8, "Backspace")))))
5619
5619
  return;
5620
5620
  let { $cursor: i } = r.state.selection;
5621
5621
  i && i.pos > 0 && r.dispatch(r.state.tr.delete(i.pos - 1, i.pos).scrollIntoView());
@@ -5723,10 +5723,10 @@ class Le {
5723
5723
  return this.type instanceof Ht;
5724
5724
  }
5725
5725
  }
5726
- const Br = [], hr = {};
5726
+ const Lr = [], hr = {};
5727
5727
  class ue {
5728
5728
  constructor(e, t) {
5729
- this.local = e.length ? e : Br, this.children = t.length ? t : Br;
5729
+ this.local = e.length ? e : Lr, this.children = t.length ? t : Lr;
5730
5730
  }
5731
5731
  static create(e, t) {
5732
5732
  return t.length ? uo(t, e, 0, hr) : ve;
@@ -5755,7 +5755,7 @@ class ue {
5755
5755
  let l = this.local[a].map(e, n, i);
5756
5756
  l && l.type.valid(t, l) ? (s || (s = [])).push(l) : o.onRemove && o.onRemove(this.local[a].spec);
5757
5757
  }
5758
- return this.children.length ? ab(this.children, s || [], e, t, n, i, o) : s ? new ue(s.sort(pr), Br) : ve;
5758
+ return this.children.length ? ab(this.children, s || [], e, t, n, i, o) : s ? new ue(s.sort(pr), Lr) : ve;
5759
5759
  }
5760
5760
  add(e, t) {
5761
5761
  return t.length ? this == ve ? ue.create(e, t) : this.addInner(e, t, 0) : this;
@@ -5818,8 +5818,8 @@ class ue {
5818
5818
  }
5819
5819
  }
5820
5820
  if (i) {
5821
- let a = new ue(i.sort(pr), Br);
5822
- return n ? new Bt([a, n]) : a;
5821
+ let a = new ue(i.sort(pr), Lr);
5822
+ return n ? new Lt([a, n]) : a;
5823
5823
  }
5824
5824
  return n || ve;
5825
5825
  }
@@ -5841,7 +5841,7 @@ class ue {
5841
5841
  }
5842
5842
  localsInner(e) {
5843
5843
  if (this == ve)
5844
- return Br;
5844
+ return Lr;
5845
5845
  if (e.inlineContent || !this.local.some(Ht.is))
5846
5846
  return this.local;
5847
5847
  let t = [];
@@ -5853,13 +5853,13 @@ class ue {
5853
5853
  ue.empty = new ue([], []);
5854
5854
  ue.removeOverlap = Pl;
5855
5855
  const ve = ue.empty;
5856
- class Bt {
5856
+ class Lt {
5857
5857
  constructor(e) {
5858
5858
  this.members = e;
5859
5859
  }
5860
5860
  map(e, t) {
5861
5861
  const n = this.members.map((i) => i.map(e, t, hr));
5862
- return Bt.from(n);
5862
+ return Lt.from(n);
5863
5863
  }
5864
5864
  forChild(e, t) {
5865
5865
  if (t.isLeaf)
@@ -5867,12 +5867,12 @@ class Bt {
5867
5867
  let n = [];
5868
5868
  for (let i = 0; i < this.members.length; i++) {
5869
5869
  let o = this.members[i].forChild(e, t);
5870
- o != ve && (o instanceof Bt ? n = n.concat(o.members) : n.push(o));
5870
+ o != ve && (o instanceof Lt ? n = n.concat(o.members) : n.push(o));
5871
5871
  }
5872
- return Bt.from(n);
5872
+ return Lt.from(n);
5873
5873
  }
5874
5874
  eq(e) {
5875
- if (!(e instanceof Bt) || e.members.length != this.members.length)
5875
+ if (!(e instanceof Lt) || e.members.length != this.members.length)
5876
5876
  return !1;
5877
5877
  for (let t = 0; t < this.members.length; t++)
5878
5878
  if (!this.members[t].eq(e.members[t]))
@@ -5892,7 +5892,7 @@ class Bt {
5892
5892
  t.push(o[s]);
5893
5893
  }
5894
5894
  }
5895
- return t ? Pl(n ? t : t.sort(pr)) : Br;
5895
+ return t ? Pl(n ? t : t.sort(pr)) : Lr;
5896
5896
  }
5897
5897
  static from(e) {
5898
5898
  switch (e.length) {
@@ -5901,7 +5901,7 @@ class Bt {
5901
5901
  case 1:
5902
5902
  return e[0];
5903
5903
  default:
5904
- return new Bt(e);
5904
+ return new Lt(e);
5905
5905
  }
5906
5906
  }
5907
5907
  }
@@ -6033,7 +6033,7 @@ function Rs(r) {
6033
6033
  return r.someProp("decorations", (t) => {
6034
6034
  let n = t(r.state);
6035
6035
  n && n != ve && e.push(n);
6036
- }), r.cursorWrapper && e.push(ue.create(r.state.doc, [r.cursorWrapper.deco])), Bt.from(e);
6036
+ }), r.cursorWrapper && e.push(ue.create(r.state.doc, [r.cursorWrapper.deco])), Lt.from(e);
6037
6037
  }
6038
6038
  const cb = {
6039
6039
  childList: !0,
@@ -6135,7 +6135,7 @@ class db {
6135
6135
  let u = this.registerMutation(e[l], a);
6136
6136
  u && (i = i < 0 ? u.from : Math.min(u.from, i), o = o < 0 ? u.to : Math.max(u.to, o), u.typeOver && (s = !0));
6137
6137
  }
6138
- if (gt && a.length > 1) {
6138
+ if (yt && a.length > 1) {
6139
6139
  let l = a.filter((u) => u.nodeName == "BR");
6140
6140
  if (l.length == 2) {
6141
6141
  let u = l[0], c = l[1];
@@ -6187,7 +6187,7 @@ function pb(r, e, t) {
6187
6187
  if (!y || y.size)
6188
6188
  break;
6189
6189
  }
6190
- let f = r.state.doc, d = r.someProp("domParser") || rn.fromSchema(r.state.schema), h = f.resolve(s), p = null, m = d.parse(n, {
6190
+ let f = r.state.doc, d = r.someProp("domParser") || nn.fromSchema(r.state.schema), h = f.resolve(s), p = null, m = d.parse(n, {
6191
6191
  topNode: h.parent,
6192
6192
  topMatch: h.parent.contentMatchAt(h.index()),
6193
6193
  topOpen: !0,
@@ -6237,7 +6237,7 @@ function vb(r, e, t, n, i) {
6237
6237
  let u = r.state.doc, c = u.slice(l.from, l.to), f, d;
6238
6238
  r.input.lastKeyCode === 8 && Date.now() - 100 < r.input.lastKeyCodeTime ? (f = r.state.selection.to, d = "end") : (f = r.state.selection.from, d = "start"), r.input.lastKeyCode = null;
6239
6239
  let h = bb(c.content, l.doc.content, l.from, f, d);
6240
- if ((on && r.input.lastIOSEnter > Date.now() - 225 || ft) && i.some((E) => E.nodeName == "DIV" || E.nodeName == "P") && (!h || h.endA >= h.endB) && r.someProp("handleKeyDown", (E) => E(r, jr(13, "Enter")))) {
6240
+ if ((sn && r.input.lastIOSEnter > Date.now() - 225 || dt) && i.some((E) => E.nodeName == "DIV" || E.nodeName == "P") && (!h || h.endA >= h.endB) && r.someProp("handleKeyDown", (E) => E(r, Vr(13, "Enter")))) {
6241
6241
  r.input.lastIOSEnter = 0;
6242
6242
  return;
6243
6243
  }
@@ -6253,17 +6253,17 @@ function vb(r, e, t, n, i) {
6253
6253
  }
6254
6254
  r.input.domChangeCount++, r.state.selection.from < r.state.selection.to && h.start == h.endB && r.state.selection instanceof B && (h.start > r.state.selection.from && h.start <= r.state.selection.from + 2 && r.state.selection.from >= l.from ? h.start = r.state.selection.from : h.endA < r.state.selection.to && h.endA >= r.state.selection.to - 2 && r.state.selection.to <= l.to && (h.endB += r.state.selection.to - h.endA, h.endA = r.state.selection.to)), Ie && Vt <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > l.from && l.doc.textBetween(h.start - l.from - 1, h.start - l.from + 1) == " \xA0" && (h.start--, h.endA--, h.endB--);
6255
6255
  let p = l.doc.resolveNoCache(h.start - l.from), m = l.doc.resolveNoCache(h.endB - l.from), v = u.resolve(h.start), g = p.sameParent(m) && p.parent.inlineContent && v.end() >= h.endA, y;
6256
- if ((on && r.input.lastIOSEnter > Date.now() - 225 && (!g || i.some((E) => E.nodeName == "DIV" || E.nodeName == "P")) || !g && p.pos < l.doc.content.size && (y = P.findFrom(l.doc.resolve(p.pos + 1), 1, !0)) && y.head == m.pos) && r.someProp("handleKeyDown", (E) => E(r, jr(13, "Enter")))) {
6256
+ if ((sn && r.input.lastIOSEnter > Date.now() - 225 && (!g || i.some((E) => E.nodeName == "DIV" || E.nodeName == "P")) || !g && p.pos < l.doc.content.size && (y = P.findFrom(l.doc.resolve(p.pos + 1), 1, !0)) && y.head == m.pos) && r.someProp("handleKeyDown", (E) => E(r, Vr(13, "Enter")))) {
6257
6257
  r.input.lastIOSEnter = 0;
6258
6258
  return;
6259
6259
  }
6260
- if (r.state.selection.anchor > h.start && yb(u, h.start, h.endA, p, m) && r.someProp("handleKeyDown", (E) => E(r, jr(8, "Backspace")))) {
6261
- ft && be && r.domObserver.suppressSelectionUpdates();
6260
+ if (r.state.selection.anchor > h.start && yb(u, h.start, h.endA, p, m) && r.someProp("handleKeyDown", (E) => E(r, Vr(8, "Backspace")))) {
6261
+ dt && be && r.domObserver.suppressSelectionUpdates();
6262
6262
  return;
6263
6263
  }
6264
- be && ft && h.endB == h.start && (r.input.lastAndroidDelete = Date.now()), ft && !g && p.start() != m.start() && m.parentOffset == 0 && p.depth == m.depth && l.sel && l.sel.anchor == l.sel.head && l.sel.head == h.endA && (h.endB -= 2, m = l.doc.resolveNoCache(h.endB - l.from), setTimeout(() => {
6264
+ be && dt && h.endB == h.start && (r.input.lastAndroidDelete = Date.now()), dt && !g && p.start() != m.start() && m.parentOffset == 0 && p.depth == m.depth && l.sel && l.sel.anchor == l.sel.head && l.sel.head == h.endA && (h.endB -= 2, m = l.doc.resolveNoCache(h.endB - l.from), setTimeout(() => {
6265
6265
  r.someProp("handleKeyDown", function(E) {
6266
- return E(r, jr(13, "Enter"));
6266
+ return E(r, Vr(13, "Enter"));
6267
6267
  });
6268
6268
  }, 20));
6269
6269
  let D = h.start, _ = h.endA, x, b, C;
@@ -6281,7 +6281,7 @@ function vb(r, e, t, n, i) {
6281
6281
  }
6282
6282
  if (x || (x = r.state.tr.replace(D, _, l.doc.slice(h.start - l.from, h.endB - l.from))), l.sel) {
6283
6283
  let E = Ru(r, x.doc, l.sel);
6284
- E && !(be && ft && r.composing && E.empty && (h.start != h.endB || r.input.lastAndroidDelete < Date.now() - 100) && (E.head == D || E.head == x.mapping.map(_) - 1) || Ie && E.empty && E.head == D) && x.setSelection(E);
6284
+ E && !(be && dt && r.composing && E.empty && (h.start != h.endB || r.input.lastAndroidDelete < Date.now() - 100) && (E.head == D || E.head == x.mapping.map(_) - 1) || Ie && E.empty && E.head == D) && x.setSelection(E);
6285
6285
  }
6286
6286
  b && x.ensureMarks(b), r.dispatch(x.scrollIntoView());
6287
6287
  }
@@ -6690,25 +6690,25 @@ const Fb = (r, e) => r.selection.empty ? !1 : (e && e(r.tr.deleteSelection().scr
6690
6690
  return !1;
6691
6691
  let i = Sm(n);
6692
6692
  if (!i) {
6693
- let s = n.blockRange(), a = s && pn(s);
6693
+ let s = n.blockRange(), a = s && mn(s);
6694
6694
  return a == null ? !1 : (e && e(r.tr.lift(s, a).scrollIntoView()), !0);
6695
6695
  }
6696
6696
  let o = i.nodeBefore;
6697
6697
  if (!o.type.spec.isolating && wm(r, i, e))
6698
6698
  return !0;
6699
- if (n.parent.content.size == 0 && (an(o, "end") || I.isSelectable(o))) {
6699
+ if (n.parent.content.size == 0 && (ln(o, "end") || I.isSelectable(o))) {
6700
6700
  let s = Cl(r.doc, n.before(), n.after(), k.empty);
6701
6701
  if (s && s.slice.size < s.to - s.from) {
6702
6702
  if (e) {
6703
6703
  let a = r.tr.step(s);
6704
- a.setSelection(an(o, "end") ? P.findFrom(a.doc.resolve(a.mapping.map(i.pos, -1)), -1) : I.create(a.doc, i.pos - o.nodeSize)), e(a.scrollIntoView());
6704
+ a.setSelection(ln(o, "end") ? P.findFrom(a.doc.resolve(a.mapping.map(i.pos, -1)), -1) : I.create(a.doc, i.pos - o.nodeSize)), e(a.scrollIntoView());
6705
6705
  }
6706
6706
  return !0;
6707
6707
  }
6708
6708
  }
6709
6709
  return o.isAtom && i.depth == n.depth - 1 ? (e && e(r.tr.delete(i.pos - o.nodeSize, i.pos).scrollIntoView()), !0) : !1;
6710
6710
  };
6711
- function an(r, e, t = !1) {
6711
+ function ln(r, e, t = !1) {
6712
6712
  for (let n = r; n; n = e == "start" ? n.firstChild : n.lastChild) {
6713
6713
  if (n.isTextblock)
6714
6714
  return !0;
@@ -6749,12 +6749,12 @@ const Rb = (r, e, t) => {
6749
6749
  let o = i.nodeAfter;
6750
6750
  if (wm(r, i, e))
6751
6751
  return !0;
6752
- if (n.parent.content.size == 0 && (an(o, "start") || I.isSelectable(o))) {
6752
+ if (n.parent.content.size == 0 && (ln(o, "start") || I.isSelectable(o))) {
6753
6753
  let s = Cl(r.doc, n.before(), n.after(), k.empty);
6754
6754
  if (s && s.slice.size < s.to - s.from) {
6755
6755
  if (e) {
6756
6756
  let a = r.tr.step(s);
6757
- a.setSelection(an(o, "start") ? P.findFrom(a.doc.resolve(a.mapping.map(i.pos)), 1) : I.create(a.doc, a.mapping.map(i.pos))), e(a.scrollIntoView());
6757
+ a.setSelection(ln(o, "start") ? P.findFrom(a.doc.resolve(a.mapping.map(i.pos)), 1) : I.create(a.doc, a.mapping.map(i.pos))), e(a.scrollIntoView());
6758
6758
  }
6759
6759
  return !0;
6760
6760
  }
@@ -6784,7 +6784,7 @@ function Em(r) {
6784
6784
  return null;
6785
6785
  }
6786
6786
  const Bb = (r, e) => {
6787
- let { $from: t, $to: n } = r.selection, i = t.blockRange(n), o = i && pn(i);
6787
+ let { $from: t, $to: n } = r.selection, i = t.blockRange(n), o = i && mn(i);
6788
6788
  return o == null ? !1 : (e && e(r.tr.lift(i, o).scrollIntoView()), !0);
6789
6789
  }, Lb = (r, e) => {
6790
6790
  let { $head: t, $anchor: n } = r.selection;
@@ -6829,10 +6829,10 @@ const zb = (r, e) => {
6829
6829
  return !1;
6830
6830
  if (t.depth > 1 && t.after() != t.end(-1)) {
6831
6831
  let o = t.before();
6832
- if (Xr(r.doc, o))
6832
+ if (Zr(r.doc, o))
6833
6833
  return e && e(r.tr.split(o).scrollIntoView()), !0;
6834
6834
  }
6835
- let n = t.blockRange(), i = n && pn(n);
6835
+ let n = t.blockRange(), i = n && mn(n);
6836
6836
  return i == null ? !1 : (e && e(r.tr.lift(n, i).scrollIntoView()), !0);
6837
6837
  }, Hb = (r, e) => {
6838
6838
  let { $from: t, to: n } = r.selection, i, o = t.sharedDepth(n);
@@ -6860,10 +6860,10 @@ function wm(r, e, t) {
6860
6860
  }
6861
6861
  return !0;
6862
6862
  }
6863
- let l = P.findFrom(e, 1), u = l && l.$from.blockRange(l.$to), c = u && pn(u);
6863
+ let l = P.findFrom(e, 1), u = l && l.$from.blockRange(l.$to), c = u && mn(u);
6864
6864
  if (c != null && c >= e.depth)
6865
6865
  return t && t(r.tr.lift(u, c).scrollIntoView()), !0;
6866
- if (a && an(i, "start", !0) && an(n, "end")) {
6866
+ if (a && ln(i, "start", !0) && ln(n, "end")) {
6867
6867
  let f = n, d = [];
6868
6868
  for (; d.push(f), !f.isTextblock; )
6869
6869
  f = f.lastChild;
@@ -6943,7 +6943,7 @@ function Jb(r, e, t, n, i) {
6943
6943
  t[c].type == i && (s = c + 1);
6944
6944
  let a = t.length - s, l = e.start + t.length - (n ? 2 : 0), u = e.parent;
6945
6945
  for (let c = e.startIndex, f = e.endIndex, d = !0; c < f; c++, d = !1)
6946
- !d && Xr(r.doc, l, a) && (r.split(l, a), l += 2 * a), l += u.child(c).nodeSize;
6946
+ !d && Zr(r.doc, l, a) && (r.split(l, a), l += 2 * a), l += u.child(c).nodeSize;
6947
6947
  return r;
6948
6948
  }
6949
6949
  function Yb(r) {
@@ -6954,7 +6954,7 @@ function Yb(r) {
6954
6954
  }
6955
6955
  function Xb(r, e, t, n) {
6956
6956
  let i = r.tr, o = n.end, s = n.$to.end(n.depth);
6957
- return o < s && (i.step(new se(o - 1, s, o, s, new k(S.from(t.create(null, n.parent.copy())), 1, 0), 1, !0)), n = new no(i.doc.resolve(n.$from.pos), i.doc.resolve(s), n.depth)), e(i.lift(n, pn(n)).scrollIntoView()), !0;
6957
+ return o < s && (i.step(new se(o - 1, s, o, s, new k(S.from(t.create(null, n.parent.copy())), 1, 0), 1, !0)), n = new no(i.doc.resolve(n.$from.pos), i.doc.resolve(s), n.depth)), e(i.lift(n, mn(n)).scrollIntoView()), !0;
6958
6958
  }
6959
6959
  function Zb(r, e, t) {
6960
6960
  let n = r.tr, i = t.parent;
@@ -7169,7 +7169,7 @@ function ae(r, e) {
7169
7169
  }
7170
7170
  return r;
7171
7171
  }
7172
- function mn(...r) {
7172
+ function vn(...r) {
7173
7173
  return r.filter((e) => !!e).reduce((e, t) => {
7174
7174
  const n = { ...e };
7175
7175
  return Object.entries(t).forEach(([i, o]) => {
@@ -7184,7 +7184,7 @@ function mn(...r) {
7184
7184
  function Xa(r, e) {
7185
7185
  return e.filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(r.attrs) || {} : {
7186
7186
  [t.name]: r.attrs[t.name]
7187
- }).reduce((t, n) => mn(t, n), {});
7187
+ }).reduce((t, n) => vn(t, n), {});
7188
7188
  }
7189
7189
  function Om(r) {
7190
7190
  return typeof r == "function";
@@ -7518,9 +7518,9 @@ function d1(r) {
7518
7518
  const e = r.filter((t, n) => r.indexOf(t) !== n);
7519
7519
  return [...new Set(e)];
7520
7520
  }
7521
- class Hr {
7521
+ class Wr {
7522
7522
  constructor(e, t) {
7523
- this.splittableMarks = [], this.editor = t, this.extensions = Hr.resolve(e), this.schema = n1(this.extensions), this.extensions.forEach((n) => {
7523
+ this.splittableMarks = [], this.editor = t, this.extensions = Wr.resolve(e), this.schema = n1(this.extensions), this.extensions.forEach((n) => {
7524
7524
  var i;
7525
7525
  this.editor.extensionStorage[n.name] = n.storage;
7526
7526
  const o = {
@@ -7550,7 +7550,7 @@ class Hr {
7550
7550
  });
7551
7551
  }
7552
7552
  static resolve(e) {
7553
- const t = Hr.sort(Hr.flatten(e)), n = d1(t.map((i) => i.name));
7553
+ const t = Wr.sort(Wr.flatten(e)), n = d1(t.map((i) => i.name));
7554
7554
  return n.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), t;
7555
7555
  }
7556
7556
  static flatten(e) {
@@ -7588,7 +7588,7 @@ class Hr {
7588
7588
  }, {});
7589
7589
  }
7590
7590
  get plugins() {
7591
- const { editor: e } = this, t = Hr.sort([...this.extensions].reverse()), n = [], i = [], o = t.map((s) => {
7591
+ const { editor: e } = this, t = Wr.sort([...this.extensions].reverse()), n = [], i = [], o = t.map((s) => {
7592
7592
  const a = {
7593
7593
  name: s.name,
7594
7594
  options: s.options,
@@ -7749,7 +7749,7 @@ const p1 = te.create({
7749
7749
  const { doc: u, mapping: c } = e, f = u.resolve(c.map(l)), d = u.resolve(c.map(l + a.nodeSize)), h = f.blockRange(d);
7750
7750
  if (!h)
7751
7751
  return;
7752
- const p = pn(h);
7752
+ const p = mn(h);
7753
7753
  if (a.type.isTextblock) {
7754
7754
  const { defaultType: m } = f.parent.contentMatchAt(f.index());
7755
7755
  e.setNodeMarkup(h.start, m);
@@ -7893,7 +7893,7 @@ function po(r, e, t) {
7893
7893
  return console.warn("[tiptap warn]: Invalid content.", "Passed value:", r, "Error:", n), po("", e, t);
7894
7894
  }
7895
7895
  if (typeof r == "string") {
7896
- const n = rn.fromSchema(e);
7896
+ const n = nn.fromSchema(e);
7897
7897
  return t.slice ? n.parseSlice(Gu(r), t.parseOptions).content : n.parse(Gu(r), t.parseOptions);
7898
7898
  }
7899
7899
  return po("", e, t);
@@ -8103,7 +8103,7 @@ function Yu(r, e) {
8103
8103
  const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, editor: i }) => {
8104
8104
  const { selection: o, doc: s } = e, { $from: a, $to: l } = o, u = i.extensionManager.attributes, c = Wi(u, a.node().type.name, a.node().attrs);
8105
8105
  if (o instanceof I && o.node.isBlock)
8106
- return !a.parentOffset || !Xr(s, a.pos) ? !1 : (n && (r && Yu(t, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
8106
+ return !a.parentOffset || !Zr(s, a.pos) ? !1 : (n && (r && Yu(t, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
8107
8107
  if (!a.parent.isBlock)
8108
8108
  return !1;
8109
8109
  if (n) {
@@ -8113,8 +8113,8 @@ const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
8113
8113
  let h = f && d ? [{
8114
8114
  type: d,
8115
8115
  attrs: c
8116
- }] : void 0, p = Xr(e.doc, e.mapping.map(a.pos), 1, h);
8117
- if (!h && !p && Xr(e.doc, e.mapping.map(a.pos), 1, d ? [{ type: d }] : void 0) && (p = !0, h = d ? [{
8116
+ }] : void 0, p = Zr(e.doc, e.mapping.map(a.pos), 1, h);
8117
+ if (!h && !p && Zr(e.doc, e.mapping.map(a.pos), 1, d ? [{ type: d }] : void 0) && (p = !0, h = d ? [{
8118
8118
  type: d,
8119
8119
  attrs: c
8120
8120
  }] : void 0), p && (e.split(e.mapping.map(a.pos), 1, h), d && !f && !a.parentOffset && a.parent.type !== d)) {
@@ -8157,7 +8157,7 @@ const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
8157
8157
  const d = l.pos === a.end() ? c.contentMatchAt(0).defaultType : null, h = Wi(f, c.type.name, c.attrs), p = Wi(f, a.node().type.name, a.node().attrs);
8158
8158
  e.delete(a.pos, l.pos);
8159
8159
  const m = d ? [{ type: s, attrs: h }, { type: d, attrs: p }] : [{ type: s, attrs: h }];
8160
- return Xr(e.doc, a.pos, 2) ? (n && e.split(a.pos, 2, m).scrollIntoView(), !0) : !1;
8160
+ return Zr(e.doc, a.pos, 2) ? (n && e.split(a.pos, 2, m).scrollIntoView(), !0) : !1;
8161
8161
  };
8162
8162
  function c_(r, e) {
8163
8163
  for (let t = r.depth; t > 0; t -= 1) {
@@ -8513,7 +8513,7 @@ function Im(r, e) {
8513
8513
  return t === "node" ? O_(r, e) : t === "mark" ? Fm(r, e) : {};
8514
8514
  }
8515
8515
  function k_(r, e) {
8516
- const t = pt.fromSchema(e).serializeFragment(r), i = document.implementation.createHTMLDocument().createElement("div");
8516
+ const t = mt.fromSchema(e).serializeFragment(r), i = document.implementation.createHTMLDocument().createElement("div");
8517
8517
  return i.appendChild(t), i.innerHTML;
8518
8518
  }
8519
8519
  function A_(r, e) {
@@ -8687,7 +8687,7 @@ class I_ extends e1 {
8687
8687
  }
8688
8688
  createExtensionManager() {
8689
8689
  const t = [...this.options.enableCoreExtensions ? Object.values(C_) : [], ...this.options.extensions].filter((n) => ["extension", "node", "mark"].includes(n == null ? void 0 : n.type));
8690
- this.extensionManager = new Hr(t, this);
8690
+ this.extensionManager = new Wr(t, this);
8691
8691
  }
8692
8692
  createCommandManager() {
8693
8693
  this.commandManager = new Xo({
@@ -8702,7 +8702,7 @@ class I_ extends e1 {
8702
8702
  this.view = new _b(this.options.element, {
8703
8703
  ...this.options.editorProps,
8704
8704
  dispatchTransaction: this.dispatchTransaction.bind(this),
8705
- state: zr.create({
8705
+ state: jr.create({
8706
8706
  doc: e,
8707
8707
  selection: t || void 0
8708
8708
  })
@@ -8881,7 +8881,7 @@ function z_(r) {
8881
8881
  }
8882
8882
  });
8883
8883
  }
8884
- function Ot(r) {
8884
+ function At(r) {
8885
8885
  return new Ll({
8886
8886
  find: r.find,
8887
8887
  handler: ({ state: e, range: t, match: n }) => {
@@ -8945,7 +8945,7 @@ class je {
8945
8945
  })), t;
8946
8946
  }
8947
8947
  }
8948
- class xt {
8948
+ class Ot {
8949
8949
  constructor(e = {}) {
8950
8950
  this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
8951
8951
  name: this.name,
@@ -8961,7 +8961,7 @@ class xt {
8961
8961
  })) || {};
8962
8962
  }
8963
8963
  static create(e = {}) {
8964
- return new xt(e);
8964
+ return new Ot(e);
8965
8965
  }
8966
8966
  configure(e = {}) {
8967
8967
  const t = this.extend();
@@ -8971,7 +8971,7 @@ class xt {
8971
8971
  })), t;
8972
8972
  }
8973
8973
  extend(e = {}) {
8974
- const t = new xt(e);
8974
+ const t = new Ot(e);
8975
8975
  return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(A(t, "addOptions", {
8976
8976
  name: t.name
8977
8977
  })), t.storage = R(A(t, "addStorage", {
@@ -8998,12 +8998,12 @@ function V_(r) {
8998
8998
  }
8999
8999
  });
9000
9000
  }
9001
- var xe = "top", Ve = "bottom", He = "right", Ce = "left", ts = "auto", fi = [xe, Ve, He, Ce], ln = "start", ii = "end", H_ = "clippingParents", Nm = "viewport", On = "popper", W_ = "reference", ef = /* @__PURE__ */ fi.reduce(function(r, e) {
9002
- return r.concat([e + "-" + ln, e + "-" + ii]);
9001
+ var xe = "top", Ve = "bottom", He = "right", Ce = "left", ts = "auto", fi = [xe, Ve, He, Ce], cn = "start", ii = "end", H_ = "clippingParents", Nm = "viewport", On = "popper", W_ = "reference", ef = /* @__PURE__ */ fi.reduce(function(r, e) {
9002
+ return r.concat([e + "-" + cn, e + "-" + ii]);
9003
9003
  }, []), Rm = /* @__PURE__ */ [].concat(fi, [ts]).reduce(function(r, e) {
9004
- return r.concat([e, e + "-" + ln, e + "-" + ii]);
9004
+ return r.concat([e, e + "-" + cn, e + "-" + ii]);
9005
9005
  }, []), q_ = "beforeRead", U_ = "read", K_ = "afterRead", G_ = "beforeMain", J_ = "main", Y_ = "afterMain", X_ = "beforeWrite", Z_ = "write", Q_ = "afterWrite", tl = [q_, U_, K_, G_, J_, Y_, X_, Z_, Q_];
9006
- function bt(r) {
9006
+ function _t(r) {
9007
9007
  return r ? (r.nodeName || "").toLowerCase() : null;
9008
9008
  }
9009
9009
  function rt(r) {
@@ -9015,7 +9015,7 @@ function rt(r) {
9015
9015
  }
9016
9016
  return r;
9017
9017
  }
9018
- function cn(r) {
9018
+ function un(r) {
9019
9019
  var e = rt(r).Element;
9020
9020
  return r instanceof e || r instanceof Element;
9021
9021
  }
@@ -9033,7 +9033,7 @@ function eS(r) {
9033
9033
  var e = r.state;
9034
9034
  Object.keys(e.elements).forEach(function(t) {
9035
9035
  var n = e.styles[t] || {}, i = e.attributes[t] || {}, o = e.elements[t];
9036
- !Ne(o) || !bt(o) || (Object.assign(o.style, n), Object.keys(i).forEach(function(s) {
9036
+ !Ne(o) || !_t(o) || (Object.assign(o.style, n), Object.keys(i).forEach(function(s) {
9037
9037
  var a = i[s];
9038
9038
  a === !1 ? o.removeAttribute(s) : o.setAttribute(s, a === !0 ? "" : a);
9039
9039
  }));
@@ -9057,7 +9057,7 @@ function tS(r) {
9057
9057
  var i = e.elements[n], o = e.attributes[n] || {}, s = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : t[n]), a = s.reduce(function(l, u) {
9058
9058
  return l[u] = "", l;
9059
9059
  }, {});
9060
- !Ne(i) || !bt(i) || (Object.assign(i.style, a), Object.keys(o).forEach(function(l) {
9060
+ !Ne(i) || !_t(i) || (Object.assign(i.style, a), Object.keys(o).forEach(function(l) {
9061
9061
  i.removeAttribute(l);
9062
9062
  }));
9063
9063
  });
@@ -9074,13 +9074,13 @@ const rS = {
9074
9074
  function Qe(r) {
9075
9075
  return r.split("-")[0];
9076
9076
  }
9077
- var mr = Math.max, mo = Math.min, un = Math.round;
9078
- function fn(r, e) {
9077
+ var mr = Math.max, mo = Math.min, fn = Math.round;
9078
+ function dn(r, e) {
9079
9079
  e === void 0 && (e = !1);
9080
9080
  var t = r.getBoundingClientRect(), n = 1, i = 1;
9081
9081
  if (Ne(r) && e) {
9082
9082
  var o = r.offsetHeight, s = r.offsetWidth;
9083
- s > 0 && (n = un(t.width) / s || 1), o > 0 && (i = un(t.height) / o || 1);
9083
+ s > 0 && (n = fn(t.width) / s || 1), o > 0 && (i = fn(t.height) / o || 1);
9084
9084
  }
9085
9085
  return {
9086
9086
  width: t.width / n,
@@ -9094,7 +9094,7 @@ function fn(r, e) {
9094
9094
  };
9095
9095
  }
9096
9096
  function Wl(r) {
9097
- var e = fn(r), t = r.offsetWidth, n = r.offsetHeight;
9097
+ var e = dn(r), t = r.offsetWidth, n = r.offsetHeight;
9098
9098
  return Math.abs(e.width - t) <= 1 && (t = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
9099
9099
  x: r.offsetLeft,
9100
9100
  y: r.offsetTop,
@@ -9120,13 +9120,13 @@ function et(r) {
9120
9120
  return rt(r).getComputedStyle(r);
9121
9121
  }
9122
9122
  function nS(r) {
9123
- return ["table", "td", "th"].indexOf(bt(r)) >= 0;
9123
+ return ["table", "td", "th"].indexOf(_t(r)) >= 0;
9124
9124
  }
9125
9125
  function Zt(r) {
9126
- return ((cn(r) ? r.ownerDocument : r.document) || window.document).documentElement;
9126
+ return ((un(r) ? r.ownerDocument : r.document) || window.document).documentElement;
9127
9127
  }
9128
9128
  function rs(r) {
9129
- return bt(r) === "html" ? r : r.assignedSlot || r.parentNode || (Hl(r) ? r.host : null) || Zt(r);
9129
+ return _t(r) === "html" ? r : r.assignedSlot || r.parentNode || (Hl(r) ? r.host : null) || Zt(r);
9130
9130
  }
9131
9131
  function tf(r) {
9132
9132
  return !Ne(r) || et(r).position === "fixed" ? null : r.offsetParent;
@@ -9139,7 +9139,7 @@ function iS(r) {
9139
9139
  return null;
9140
9140
  }
9141
9141
  var i = rs(r);
9142
- for (Hl(i) && (i = i.host); Ne(i) && ["html", "body"].indexOf(bt(i)) < 0; ) {
9142
+ for (Hl(i) && (i = i.host); Ne(i) && ["html", "body"].indexOf(_t(i)) < 0; ) {
9143
9143
  var o = et(i);
9144
9144
  if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
9145
9145
  return i;
@@ -9150,7 +9150,7 @@ function iS(r) {
9150
9150
  function di(r) {
9151
9151
  for (var e = rt(r), t = tf(r); t && nS(t) && et(t).position === "static"; )
9152
9152
  t = tf(t);
9153
- return t && (bt(t) === "html" || bt(t) === "body" && et(t).position === "static") ? e : t || iS(r) || e;
9153
+ return t && (_t(t) === "html" || _t(t) === "body" && et(t).position === "static") ? e : t || iS(r) || e;
9154
9154
  }
9155
9155
  function ql(r) {
9156
9156
  return ["top", "bottom"].indexOf(r) >= 0 ? "x" : "y";
@@ -9209,7 +9209,7 @@ const cS = {
9209
9209
  requires: ["popperOffsets"],
9210
9210
  requiresIfExists: ["preventOverflow"]
9211
9211
  };
9212
- function dn(r) {
9212
+ function hn(r) {
9213
9213
  return r.split("-")[1];
9214
9214
  }
9215
9215
  var uS = {
@@ -9221,8 +9221,8 @@ var uS = {
9221
9221
  function fS(r) {
9222
9222
  var e = r.x, t = r.y, n = window, i = n.devicePixelRatio || 1;
9223
9223
  return {
9224
- x: un(e * i) / i || 0,
9225
- y: un(t * i) / i || 0
9224
+ x: fn(e * i) / i || 0,
9225
+ y: fn(t * i) / i || 0
9226
9226
  };
9227
9227
  }
9228
9228
  function rf(r) {
@@ -9277,7 +9277,7 @@ function dS(r) {
9277
9277
  }
9278
9278
  var c = {
9279
9279
  placement: Qe(e.placement),
9280
- variation: dn(e.placement),
9280
+ variation: hn(e.placement),
9281
9281
  popper: e.elements.popper,
9282
9282
  popperRect: e.rects.popper,
9283
9283
  gpuAcceleration: i,
@@ -9354,7 +9354,7 @@ function Ul(r) {
9354
9354
  };
9355
9355
  }
9356
9356
  function Kl(r) {
9357
- return fn(Zt(r)).left + Ul(r).scrollLeft;
9357
+ return dn(Zt(r)).left + Ul(r).scrollLeft;
9358
9358
  }
9359
9359
  function yS(r) {
9360
9360
  var e = rt(r), t = Zt(r), n = e.visualViewport, i = t.clientWidth, o = t.clientHeight, s = 0, a = 0;
@@ -9379,7 +9379,7 @@ function Gl(r) {
9379
9379
  return /auto|scroll|overlay|hidden/.test(t + i + n);
9380
9380
  }
9381
9381
  function jm(r) {
9382
- return ["html", "body", "#document"].indexOf(bt(r)) >= 0 ? r.ownerDocument.body : Ne(r) && Gl(r) ? r : jm(rs(r));
9382
+ return ["html", "body", "#document"].indexOf(_t(r)) >= 0 ? r.ownerDocument.body : Ne(r) && Gl(r) ? r : jm(rs(r));
9383
9383
  }
9384
9384
  function Un(r, e) {
9385
9385
  var t;
@@ -9396,16 +9396,16 @@ function rl(r) {
9396
9396
  });
9397
9397
  }
9398
9398
  function _S(r) {
9399
- var e = fn(r);
9399
+ var e = dn(r);
9400
9400
  return e.top = e.top + r.clientTop, e.left = e.left + r.clientLeft, e.bottom = e.top + r.clientHeight, e.right = e.left + r.clientWidth, e.width = r.clientWidth, e.height = r.clientHeight, e.x = e.left, e.y = e.top, e;
9401
9401
  }
9402
9402
  function of(r, e) {
9403
- return e === Nm ? rl(yS(r)) : cn(e) ? _S(e) : rl(bS(Zt(r)));
9403
+ return e === Nm ? rl(yS(r)) : un(e) ? _S(e) : rl(bS(Zt(r)));
9404
9404
  }
9405
9405
  function SS(r) {
9406
9406
  var e = Un(rs(r)), t = ["absolute", "fixed"].indexOf(et(r).position) >= 0, n = t && Ne(r) ? di(r) : r;
9407
- return cn(n) ? e.filter(function(i) {
9408
- return cn(i) && Pm(i, n) && bt(i) !== "body";
9407
+ return un(n) ? e.filter(function(i) {
9408
+ return un(i) && Pm(i, n) && _t(i) !== "body";
9409
9409
  }) : [];
9410
9410
  }
9411
9411
  function ES(r, e, t) {
@@ -9416,7 +9416,7 @@ function ES(r, e, t) {
9416
9416
  return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
9417
9417
  }
9418
9418
  function Vm(r) {
9419
- var e = r.reference, t = r.element, n = r.placement, i = n ? Qe(n) : null, o = n ? dn(n) : null, s = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, l;
9419
+ var e = r.reference, t = r.element, n = r.placement, i = n ? Qe(n) : null, o = n ? hn(n) : null, s = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, l;
9420
9420
  switch (i) {
9421
9421
  case xe:
9422
9422
  l = {
@@ -9452,7 +9452,7 @@ function Vm(r) {
9452
9452
  if (u != null) {
9453
9453
  var c = u === "y" ? "height" : "width";
9454
9454
  switch (o) {
9455
- case ln:
9455
+ case cn:
9456
9456
  l[u] = l[u] - (e[c] / 2 - t[c] / 2);
9457
9457
  break;
9458
9458
  case ii:
@@ -9464,7 +9464,7 @@ function Vm(r) {
9464
9464
  }
9465
9465
  function oi(r, e) {
9466
9466
  e === void 0 && (e = {});
9467
- var t = e, n = t.placement, i = n === void 0 ? r.placement : n, o = t.boundary, s = o === void 0 ? H_ : o, a = t.rootBoundary, l = a === void 0 ? Nm : a, u = t.elementContext, c = u === void 0 ? On : u, f = t.altBoundary, d = f === void 0 ? !1 : f, h = t.padding, p = h === void 0 ? 0 : h, m = Lm(typeof p != "number" ? p : zm(p, fi)), v = c === On ? W_ : On, g = r.rects.popper, y = r.elements[d ? v : c], D = ES(cn(y) ? y : y.contextElement || Zt(r.elements.popper), s, l), _ = fn(r.elements.reference), x = Vm({
9467
+ var t = e, n = t.placement, i = n === void 0 ? r.placement : n, o = t.boundary, s = o === void 0 ? H_ : o, a = t.rootBoundary, l = a === void 0 ? Nm : a, u = t.elementContext, c = u === void 0 ? On : u, f = t.altBoundary, d = f === void 0 ? !1 : f, h = t.padding, p = h === void 0 ? 0 : h, m = Lm(typeof p != "number" ? p : zm(p, fi)), v = c === On ? W_ : On, g = r.rects.popper, y = r.elements[d ? v : c], D = ES(un(y) ? y : y.contextElement || Zt(r.elements.popper), s, l), _ = dn(r.elements.reference), x = Vm({
9468
9468
  reference: _,
9469
9469
  element: g,
9470
9470
  strategy: "absolute",
@@ -9486,8 +9486,8 @@ function oi(r, e) {
9486
9486
  }
9487
9487
  function DS(r, e) {
9488
9488
  e === void 0 && (e = {});
9489
- var t = e, n = t.placement, i = t.boundary, o = t.rootBoundary, s = t.padding, a = t.flipVariations, l = t.allowedAutoPlacements, u = l === void 0 ? Rm : l, c = dn(n), f = c ? a ? ef : ef.filter(function(p) {
9490
- return dn(p) === c;
9489
+ var t = e, n = t.placement, i = t.boundary, o = t.rootBoundary, s = t.padding, a = t.flipVariations, l = t.allowedAutoPlacements, u = l === void 0 ? Rm : l, c = hn(n), f = c ? a ? ef : ef.filter(function(p) {
9490
+ return hn(p) === c;
9491
9491
  }) : fi, d = f.filter(function(p) {
9492
9492
  return u.indexOf(p) >= 0;
9493
9493
  });
@@ -9513,17 +9513,17 @@ function wS(r) {
9513
9513
  function xS(r) {
9514
9514
  var e = r.state, t = r.options, n = r.name;
9515
9515
  if (!e.modifiersData[n]._skip) {
9516
- for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, a = s === void 0 ? !0 : s, l = t.fallbackPlacements, u = t.padding, c = t.boundary, f = t.rootBoundary, d = t.altBoundary, h = t.flipVariations, p = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, v = e.options.placement, g = Qe(v), y = g === v, D = l || (y || !p ? [qi(v)] : wS(v)), _ = [v].concat(D).reduce(function(Mr, kt) {
9517
- return Mr.concat(Qe(kt) === ts ? DS(e, {
9518
- placement: kt,
9516
+ for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, a = s === void 0 ? !0 : s, l = t.fallbackPlacements, u = t.padding, c = t.boundary, f = t.rootBoundary, d = t.altBoundary, h = t.flipVariations, p = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, v = e.options.placement, g = Qe(v), y = g === v, D = l || (y || !p ? [qi(v)] : wS(v)), _ = [v].concat(D).reduce(function(Mr, Tt) {
9517
+ return Mr.concat(Qe(Tt) === ts ? DS(e, {
9518
+ placement: Tt,
9519
9519
  boundary: c,
9520
9520
  rootBoundary: f,
9521
9521
  padding: u,
9522
9522
  flipVariations: p,
9523
9523
  allowedAutoPlacements: m
9524
- }) : kt);
9524
+ }) : Tt);
9525
9525
  }, []), x = e.rects.reference, b = e.rects.popper, C = /* @__PURE__ */ new Map(), E = !0, F = _[0], V = 0; V < _.length; V++) {
9526
- var j = _[V], Q = Qe(j), J = dn(j) === ln, st = [xe, Ve].indexOf(Q) >= 0, Ee = st ? "width" : "height", Y = oi(e, {
9526
+ var j = _[V], Q = Qe(j), J = hn(j) === cn, st = [xe, Ve].indexOf(Q) >= 0, Ee = st ? "width" : "height", Y = oi(e, {
9527
9527
  placement: j,
9528
9528
  boundary: c,
9529
9529
  rootBoundary: f,
@@ -9541,18 +9541,18 @@ function xS(r) {
9541
9541
  C.set(j, K);
9542
9542
  }
9543
9543
  if (E)
9544
- for (var X = p ? 3 : 1, _t = function(kt) {
9545
- var wn = _.find(function(_i) {
9544
+ for (var X = p ? 3 : 1, St = function(Tt) {
9545
+ var xn = _.find(function(_i) {
9546
9546
  var tr = C.get(_i);
9547
9547
  if (tr)
9548
- return tr.slice(0, kt).every(function(bs) {
9548
+ return tr.slice(0, Tt).every(function(bs) {
9549
9549
  return bs;
9550
9550
  });
9551
9551
  });
9552
- if (wn)
9553
- return F = wn, "break";
9554
- }, Dn = X; Dn > 0; Dn--) {
9555
- var bi = _t(Dn);
9552
+ if (xn)
9553
+ return F = xn, "break";
9554
+ }, wn = X; wn > 0; wn--) {
9555
+ var bi = St(wn);
9556
9556
  if (bi === "break")
9557
9557
  break;
9558
9558
  }
@@ -9658,7 +9658,7 @@ function NS(r) {
9658
9658
  rootBoundary: u,
9659
9659
  padding: f,
9660
9660
  altBoundary: c
9661
- }), g = Qe(e.placement), y = dn(e.placement), D = !y, _ = ql(g), x = IS(_), b = e.modifiersData.popperOffsets, C = e.rects.reference, E = e.rects.popper, F = typeof m == "function" ? m(Object.assign({}, e.rects, {
9661
+ }), g = Qe(e.placement), y = hn(e.placement), D = !y, _ = ql(g), x = IS(_), b = e.modifiersData.popperOffsets, C = e.rects.reference, E = e.rects.popper, F = typeof m == "function" ? m(Object.assign({}, e.rects, {
9662
9662
  placement: e.placement
9663
9663
  })) : m, V = typeof F == "number" ? {
9664
9664
  mainAxis: F,
@@ -9672,10 +9672,10 @@ function NS(r) {
9672
9672
  };
9673
9673
  if (!!b) {
9674
9674
  if (o) {
9675
- var J, st = _ === "y" ? xe : Ce, Ee = _ === "y" ? Ve : He, Y = _ === "y" ? "height" : "width", De = b[_], Tr = De + v[st], K = De - v[Ee], X = h ? -E[Y] / 2 : 0, _t = y === ln ? C[Y] : E[Y], Dn = y === ln ? -E[Y] : -C[Y], bi = e.elements.arrow, Mr = h && bi ? Wl(bi) : {
9675
+ var J, st = _ === "y" ? xe : Ce, Ee = _ === "y" ? Ve : He, Y = _ === "y" ? "height" : "width", De = b[_], Tr = De + v[st], K = De - v[Ee], X = h ? -E[Y] / 2 : 0, St = y === cn ? C[Y] : E[Y], wn = y === cn ? -E[Y] : -C[Y], bi = e.elements.arrow, Mr = h && bi ? Wl(bi) : {
9676
9676
  width: 0,
9677
9677
  height: 0
9678
- }, kt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Bm(), wn = kt[st], _i = kt[Ee], tr = qn(0, C[Y], Mr[Y]), bs = D ? C[Y] / 2 - X - tr - wn - V.mainAxis : _t - tr - wn - V.mainAxis, Jg = D ? -C[Y] / 2 + X + tr + _i + V.mainAxis : Dn + tr + _i + V.mainAxis, _s = e.elements.arrow && di(e.elements.arrow), Yg = _s ? _ === "y" ? _s.clientTop || 0 : _s.clientLeft || 0 : 0, Hc = (J = j == null ? void 0 : j[_]) != null ? J : 0, Xg = De + bs - Hc - Yg, Zg = De + Jg - Hc, Wc = qn(h ? mo(Tr, Xg) : Tr, De, h ? mr(K, Zg) : K);
9678
+ }, Tt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Bm(), xn = Tt[st], _i = Tt[Ee], tr = qn(0, C[Y], Mr[Y]), bs = D ? C[Y] / 2 - X - tr - xn - V.mainAxis : St - tr - xn - V.mainAxis, Jg = D ? -C[Y] / 2 + X + tr + _i + V.mainAxis : wn + tr + _i + V.mainAxis, _s = e.elements.arrow && di(e.elements.arrow), Yg = _s ? _ === "y" ? _s.clientTop || 0 : _s.clientLeft || 0 : 0, Hc = (J = j == null ? void 0 : j[_]) != null ? J : 0, Xg = De + bs - Hc - Yg, Zg = De + Jg - Hc, Wc = qn(h ? mo(Tr, Xg) : Tr, De, h ? mr(K, Zg) : K);
9679
9679
  b[_] = Wc, Q[_] = Wc - De;
9680
9680
  }
9681
9681
  if (a) {
@@ -9702,19 +9702,19 @@ function BS(r) {
9702
9702
  return r === rt(r) || !Ne(r) ? Ul(r) : PS(r);
9703
9703
  }
9704
9704
  function LS(r) {
9705
- var e = r.getBoundingClientRect(), t = un(e.width) / r.offsetWidth || 1, n = un(e.height) / r.offsetHeight || 1;
9705
+ var e = r.getBoundingClientRect(), t = fn(e.width) / r.offsetWidth || 1, n = fn(e.height) / r.offsetHeight || 1;
9706
9706
  return t !== 1 || n !== 1;
9707
9707
  }
9708
9708
  function zS(r, e, t) {
9709
9709
  t === void 0 && (t = !1);
9710
- var n = Ne(e), i = Ne(e) && LS(e), o = Zt(e), s = fn(r, i), a = {
9710
+ var n = Ne(e), i = Ne(e) && LS(e), o = Zt(e), s = dn(r, i), a = {
9711
9711
  scrollLeft: 0,
9712
9712
  scrollTop: 0
9713
9713
  }, l = {
9714
9714
  x: 0,
9715
9715
  y: 0
9716
9716
  };
9717
- return (n || !n && !t) && ((bt(e) !== "body" || Gl(o)) && (a = BS(e)), Ne(e) ? (l = fn(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : o && (l.x = Kl(o))), {
9717
+ return (n || !n && !t) && ((_t(e) !== "body" || Gl(o)) && (a = BS(e)), Ne(e) ? (l = dn(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : o && (l.x = Kl(o))), {
9718
9718
  x: s.left + a.scrollLeft - l.x,
9719
9719
  y: s.top + a.scrollTop - l.y,
9720
9720
  width: s.width,
@@ -9758,7 +9758,7 @@ function HS(r) {
9758
9758
  })), e;
9759
9759
  };
9760
9760
  }
9761
- function Tt(r) {
9761
+ function $t(r) {
9762
9762
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
9763
9763
  t[n - 1] = arguments[n];
9764
9764
  return [].concat(t).reduce(function(i, o) {
@@ -9773,25 +9773,25 @@ function qS(r) {
9773
9773
  }).forEach(function(t) {
9774
9774
  switch (t) {
9775
9775
  case "name":
9776
- typeof e.name != "string" && console.error(Tt(nr, String(e.name), '"name"', '"string"', '"' + String(e.name) + '"'));
9776
+ typeof e.name != "string" && console.error($t(nr, String(e.name), '"name"', '"string"', '"' + String(e.name) + '"'));
9777
9777
  break;
9778
9778
  case "enabled":
9779
- typeof e.enabled != "boolean" && console.error(Tt(nr, e.name, '"enabled"', '"boolean"', '"' + String(e.enabled) + '"'));
9779
+ typeof e.enabled != "boolean" && console.error($t(nr, e.name, '"enabled"', '"boolean"', '"' + String(e.enabled) + '"'));
9780
9780
  break;
9781
9781
  case "phase":
9782
- tl.indexOf(e.phase) < 0 && console.error(Tt(nr, e.name, '"phase"', "either " + tl.join(", "), '"' + String(e.phase) + '"'));
9782
+ tl.indexOf(e.phase) < 0 && console.error($t(nr, e.name, '"phase"', "either " + tl.join(", "), '"' + String(e.phase) + '"'));
9783
9783
  break;
9784
9784
  case "fn":
9785
- typeof e.fn != "function" && console.error(Tt(nr, e.name, '"fn"', '"function"', '"' + String(e.fn) + '"'));
9785
+ typeof e.fn != "function" && console.error($t(nr, e.name, '"fn"', '"function"', '"' + String(e.fn) + '"'));
9786
9786
  break;
9787
9787
  case "effect":
9788
- e.effect != null && typeof e.effect != "function" && console.error(Tt(nr, e.name, '"effect"', '"function"', '"' + String(e.fn) + '"'));
9788
+ e.effect != null && typeof e.effect != "function" && console.error($t(nr, e.name, '"effect"', '"function"', '"' + String(e.fn) + '"'));
9789
9789
  break;
9790
9790
  case "requires":
9791
- e.requires != null && !Array.isArray(e.requires) && console.error(Tt(nr, e.name, '"requires"', '"array"', '"' + String(e.requires) + '"'));
9791
+ e.requires != null && !Array.isArray(e.requires) && console.error($t(nr, e.name, '"requires"', '"array"', '"' + String(e.requires) + '"'));
9792
9792
  break;
9793
9793
  case "requiresIfExists":
9794
- Array.isArray(e.requiresIfExists) || console.error(Tt(nr, e.name, '"requiresIfExists"', '"array"', '"' + String(e.requiresIfExists) + '"'));
9794
+ Array.isArray(e.requiresIfExists) || console.error($t(nr, e.name, '"requiresIfExists"', '"array"', '"' + String(e.requiresIfExists) + '"'));
9795
9795
  break;
9796
9796
  case "options":
9797
9797
  case "data":
@@ -9804,7 +9804,7 @@ function qS(r) {
9804
9804
  e.requires && e.requires.forEach(function(n) {
9805
9805
  r.find(function(i) {
9806
9806
  return i.name === n;
9807
- }) == null && console.error(Tt(WS, String(e.name), n, n));
9807
+ }) == null && console.error($t(WS, String(e.name), n, n));
9808
9808
  });
9809
9809
  });
9810
9810
  });
@@ -9862,7 +9862,7 @@ function JS(r) {
9862
9862
  setOptions: function(g) {
9863
9863
  var y = typeof g == "function" ? g(c.options) : g;
9864
9864
  m(), c.options = Object.assign({}, o, c.options, y), c.scrollParents = {
9865
- reference: cn(a) ? Un(a) : a.contextElement ? Un(a.contextElement) : [],
9865
+ reference: un(a) ? Un(a) : a.contextElement ? Un(a.contextElement) : [],
9866
9866
  popper: Un(l)
9867
9867
  };
9868
9868
  var D = VS(KS([].concat(n, c.options.modifiers)));
@@ -10012,7 +10012,7 @@ const ZS = {
10012
10012
  this.DESKTOP
10013
10013
  ];
10014
10014
  }
10015
- }), Qr = Object.freeze({
10015
+ }), en = Object.freeze({
10016
10016
  UPPERCASE: "uppercase",
10017
10017
  LOWERCASE: "lowercase",
10018
10018
  CAPITALIZE: "capitalize"
@@ -10091,7 +10091,7 @@ const ZS = {
10091
10091
  }), jt = Object.freeze({
10092
10092
  BLANK: "_blank",
10093
10093
  SELF: "_self"
10094
- }), ht = Object.freeze({
10094
+ }), pt = Object.freeze({
10095
10095
  URL: "url",
10096
10096
  BLOCK: "block"
10097
10097
  });
@@ -10561,13 +10561,13 @@ var G = function(r) {
10561
10561
  return r && function() {
10562
10562
  return nl.apply(r, arguments);
10563
10563
  };
10564
- }, pD = TypeError, vn = function(r) {
10564
+ }, pD = TypeError, gn = function(r) {
10565
10565
  if (r == null)
10566
10566
  throw pD("Can't call method on " + r);
10567
10567
  return r;
10568
- }, mD = vn, vD = Object, gn = function(r) {
10568
+ }, mD = gn, vD = Object, yn = function(r) {
10569
10569
  return vD(mD(r));
10570
- }, gD = U, yD = gn, bD = gD({}.hasOwnProperty), nt = Object.hasOwn || function(e, t) {
10570
+ }, gD = U, yD = yn, bD = gD({}.hasOwnProperty), nt = Object.hasOwn || function(e, t) {
10571
10571
  return bD(yD(e), t);
10572
10572
  }, _D = U, SD = 0, ED = Math.random(), DD = _D(1 .toString), Zl = function(r) {
10573
10573
  return "Symbol(" + (r === void 0 ? "" : r) + ")_" + DD(++SD + ED, 36);
@@ -10583,12 +10583,12 @@ wf && (Ke = wf.split("."), go = Ke[0] > 0 && Ke[0] < 4 ? 1 : +(Ke[0] + Ke[1]));
10583
10583
  var Ql = go, xf = Ql, kD = G, Xm = !!Object.getOwnPropertySymbols && !kD(function() {
10584
10584
  var r = Symbol();
10585
10585
  return !String(r) || !(Object(r) instanceof Symbol) || !Symbol.sham && xf && xf < 41;
10586
- }), AD = Xm, Zm = AD && !Symbol.sham && typeof Symbol.iterator == "symbol", TD = le, MD = ns.exports, Cf = nt, $D = Zl, Of = Xm, Qm = Zm, Fr = MD("wks"), vr = TD.Symbol, kf = vr && vr.for, FD = Qm ? vr : vr && vr.withoutSetter || $D, Se = function(r) {
10587
- if (!Cf(Fr, r) || !(Of || typeof Fr[r] == "string")) {
10586
+ }), AD = Xm, Zm = AD && !Symbol.sham && typeof Symbol.iterator == "symbol", TD = le, MD = ns.exports, Cf = nt, $D = Zl, Of = Xm, Qm = Zm, Ir = MD("wks"), vr = TD.Symbol, kf = vr && vr.for, FD = Qm ? vr : vr && vr.withoutSetter || $D, Se = function(r) {
10587
+ if (!Cf(Ir, r) || !(Of || typeof Ir[r] == "string")) {
10588
10588
  var e = "Symbol." + r;
10589
- Of && Cf(vr, r) ? Fr[r] = vr[r] : Qm && kf ? Fr[r] = kf(e) : Fr[r] = FD(e);
10589
+ Of && Cf(vr, r) ? Ir[r] = vr[r] : Qm && kf ? Ir[r] = kf(e) : Ir[r] = FD(e);
10590
10590
  }
10591
- return Fr[r];
10591
+ return Ir[r];
10592
10592
  }, ID = Se, ND = ID("toStringTag"), ev = {};
10593
10593
  ev[ND] = "z";
10594
10594
  var ec = String(ev) === "[object z]", it = {}, RD = G, ot = !RD(function() {
@@ -10690,13 +10690,13 @@ var ac = sl.inspectSource, Aw = le, Tw = re, Mw = ac, Ff = Aw.WeakMap, sv = Tw(F
10690
10690
  writable: !(r & 4),
10691
10691
  value: e
10692
10692
  };
10693
- }, $w = ot, Fw = it, Iw = as, yn = $w ? function(r, e, t) {
10693
+ }, $w = ot, Fw = it, Iw = as, bn = $w ? function(r, e, t) {
10694
10694
  return Fw.f(r, e, Iw(1, t));
10695
10695
  } : function(r, e, t) {
10696
10696
  return r[e] = t, r;
10697
10697
  }, Nw = ns.exports, Rw = Zl, If = Nw("keys"), lc = function(r) {
10698
10698
  return If[r] || (If[r] = Rw(r));
10699
- }, ls = {}, Pw = sv, av = le, Zs = U, Bw = We, Lw = yn, Qs = nt, ea = Xl, zw = lc, jw = ls, Nf = "Object already initialized", al = av.TypeError, Vw = av.WeakMap, yo, si, bo, Hw = function(r) {
10699
+ }, ls = {}, Pw = sv, av = le, Zs = U, Bw = We, Lw = bn, Qs = nt, ea = Xl, zw = lc, jw = ls, Nf = "Object already initialized", al = av.TypeError, Vw = av.WeakMap, yo, si, bo, Hw = function(r) {
10700
10700
  return bo(r) ? si(r) : yo(r, {});
10701
10701
  }, Ww = function(r) {
10702
10702
  return function(e) {
@@ -10718,24 +10718,24 @@ if (Pw || ea.state) {
10718
10718
  return Rf(ir, r);
10719
10719
  };
10720
10720
  } else {
10721
- var Ir = zw("state");
10722
- jw[Ir] = !0, yo = function(r, e) {
10723
- if (Qs(r, Ir))
10721
+ var Nr = zw("state");
10722
+ jw[Nr] = !0, yo = function(r, e) {
10723
+ if (Qs(r, Nr))
10724
10724
  throw new al(Nf);
10725
- return e.facade = r, Lw(r, Ir, e), e;
10725
+ return e.facade = r, Lw(r, Nr, e), e;
10726
10726
  }, si = function(r) {
10727
- return Qs(r, Ir) ? r[Ir] : {};
10727
+ return Qs(r, Nr) ? r[Nr] : {};
10728
10728
  }, bo = function(r) {
10729
- return Qs(r, Ir);
10729
+ return Qs(r, Nr);
10730
10730
  };
10731
10731
  }
10732
- var bn = {
10732
+ var _n = {
10733
10733
  set: yo,
10734
10734
  get: si,
10735
10735
  has: bo,
10736
10736
  enforce: Hw,
10737
10737
  getterFor: Ww
10738
- }, Kw = G, Gw = re, Ai = nt, ll = ot, Jw = sc.CONFIGURABLE, Yw = ac, lv = bn, Xw = lv.enforce, Zw = lv.get, Ui = Object.defineProperty, Qw = ll && !Kw(function() {
10738
+ }, Kw = G, Gw = re, Ai = nt, ll = ot, Jw = sc.CONFIGURABLE, Yw = ac, lv = _n, Xw = lv.enforce, Zw = lv.get, Ui = Object.defineProperty, Qw = ll && !Kw(function() {
10739
10739
  return Ui(function() {
10740
10740
  }, "length", { value: 8 }).length !== 8;
10741
10741
  }), ex = String(String).split("String"), tx = iv.exports = function(r, e, t) {
@@ -10871,7 +10871,7 @@ var Ux = !mv || Lx(function() {
10871
10871
  return Lf(r) && (e = r.constructor, Kx(e) && (e === zf || Lf(e.prototype)) ? e = void 0 : Gx(e) && (e = e[Yx], e === null && (e = void 0))), e === void 0 ? zf : e;
10872
10872
  }, Zx = Xx, Qx = function(r, e) {
10873
10873
  return new (Zx(r))(e === 0 ? 0 : e);
10874
- }, eC = dv, tC = U, rC = us, nC = gn, iC = mi, oC = Qx, jf = tC([].push), Mt = function(r) {
10874
+ }, eC = dv, tC = U, rC = us, nC = yn, iC = mi, oC = Qx, jf = tC([].push), Ft = function(r) {
10875
10875
  var e = r == 1, t = r == 2, n = r == 3, i = r == 4, o = r == 6, s = r == 7, a = r == 5 || o;
10876
10876
  return function(l, u, c, f) {
10877
10877
  for (var d = nC(l), h = rC(d), p = eC(u, c), m = iC(h), v = 0, g = f || oC, y = e ? g(l, m) : t || s ? g(l, 0) : void 0, D, _; m > v; v++)
@@ -10899,14 +10899,14 @@ var Ux = !mv || Lx(function() {
10899
10899
  return o ? -1 : n || i ? i : y;
10900
10900
  };
10901
10901
  }, fc = {
10902
- forEach: Mt(0),
10903
- map: Mt(1),
10904
- filter: Mt(2),
10905
- some: Mt(3),
10906
- every: Mt(4),
10907
- find: Mt(5),
10908
- findIndex: Mt(6),
10909
- filterReject: Mt(7)
10902
+ forEach: Ft(0),
10903
+ map: Ft(1),
10904
+ filter: Ft(2),
10905
+ some: Ft(3),
10906
+ every: Ft(4),
10907
+ find: Ft(5),
10908
+ findIndex: Ft(6),
10909
+ filterReject: Ft(7)
10910
10910
  }, sC = G, gv = function(r, e) {
10911
10911
  var t = [][r];
10912
10912
  return !!t && sC(function() {
@@ -10916,7 +10916,7 @@ var Ux = !mv || Lx(function() {
10916
10916
  });
10917
10917
  }, aC = fc.forEach, lC = gv, cC = lC("forEach"), uC = cC ? [].forEach : function(e) {
10918
10918
  return aC(this, e, arguments.length > 1 ? arguments[1] : void 0);
10919
- }, Vf = le, Hf = uv, fC = fv, na = uC, dC = yn, yv = function(r) {
10919
+ }, Vf = le, Hf = uv, fC = fv, na = uC, dC = bn, yv = function(r) {
10920
10920
  if (r && r.forEach !== na)
10921
10921
  try {
10922
10922
  dC(r, "forEach", na);
@@ -10932,9 +10932,9 @@ pc.f = pC ? function(e) {
10932
10932
  var t = _v(this, e);
10933
10933
  return !!t && t.enumerable;
10934
10934
  } : bv;
10935
- var mC = us, vC = vn, _n = function(r) {
10935
+ var mC = us, vC = gn, Sn = function(r) {
10936
10936
  return mC(vC(r));
10937
- }, gC = ot, yC = qe, bC = pc, _C = as, SC = _n, EC = ic, DC = nt, wC = tv, Wf = Object.getOwnPropertyDescriptor;
10937
+ }, gC = ot, yC = qe, bC = pc, _C = as, SC = Sn, EC = ic, DC = nt, wC = tv, Wf = Object.getOwnPropertyDescriptor;
10938
10938
  hc.f = gC ? Wf : function(e, t) {
10939
10939
  if (e = SC(e), t = EC(t), wC)
10940
10940
  try {
@@ -10947,7 +10947,7 @@ hc.f = gC ? Wf : function(e, t) {
10947
10947
  var ds = {}, xC = fs, CC = Math.max, OC = Math.min, Sv = function(r, e) {
10948
10948
  var t = xC(r);
10949
10949
  return t < 0 ? CC(t + e, 0) : OC(t, e);
10950
- }, kC = _n, AC = Sv, TC = mi, qf = function(r) {
10950
+ }, kC = Sn, AC = Sv, TC = mi, qf = function(r) {
10951
10951
  return function(e, t, n) {
10952
10952
  var i = kC(e), o = TC(i), s = AC(n, o), a;
10953
10953
  if (r && t != t) {
@@ -10963,7 +10963,7 @@ var ds = {}, xC = fs, CC = Math.max, OC = Math.min, Sv = function(r, e) {
10963
10963
  }, MC = {
10964
10964
  includes: qf(!0),
10965
10965
  indexOf: qf(!1)
10966
- }, $C = U, oa = nt, FC = _n, IC = MC.indexOf, NC = ls, Uf = $C([].push), Ev = function(r, e) {
10966
+ }, $C = U, oa = nt, FC = Sn, IC = MC.indexOf, NC = ls, Uf = $C([].push), Ev = function(r, e) {
10967
10967
  var t = FC(r), n = 0, i = [], o;
10968
10968
  for (o in t)
10969
10969
  !oa(NC, o) && oa(t, o) && Uf(i, o);
@@ -10997,7 +10997,7 @@ var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Ref
10997
10997
  return t == rO ? !0 : t == tO ? !1 : XC(e) ? YC(e) : !!e;
10998
10998
  }, QC = vi.normalize = function(r) {
10999
10999
  return String(r).replace(ZC, ".").toLowerCase();
11000
- }, eO = vi.data = {}, tO = vi.NATIVE = "N", rO = vi.POLYFILL = "P", Dv = vi, sa = le, nO = hc.f, iO = yn, oO = xr, sO = Yl, aO = JC, lO = Dv, Qt = function(r, e) {
11000
+ }, eO = vi.data = {}, tO = vi.NATIVE = "N", rO = vi.POLYFILL = "P", Dv = vi, sa = le, nO = hc.f, iO = bn, oO = xr, sO = Yl, aO = JC, lO = Dv, Qt = function(r, e) {
11001
11001
  var t = r.target, n = r.global, i = r.stat, o, s, a, l, u, c;
11002
11002
  if (n ? s = sa : i ? s = sa[t] || sO(t, {}) : s = (sa[t] || {}).prototype, s)
11003
11003
  for (a in e) {
@@ -11013,7 +11013,7 @@ var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Ref
11013
11013
  throw TypeError("Cannot convert a Symbol value to a string");
11014
11014
  return uO(r);
11015
11015
  }, wv = `
11016
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`, fO = U, dO = vn, hO = Or, pO = wv, Gf = fO("".replace), _o = "[" + pO + "]", mO = RegExp("^" + _o + _o + "*"), vO = RegExp(_o + _o + "*$"), aa = function(r) {
11016
+ \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`, fO = U, dO = gn, hO = Or, pO = wv, Gf = fO("".replace), _o = "[" + pO + "]", mO = RegExp("^" + _o + _o + "*"), vO = RegExp(_o + _o + "*$"), aa = function(r) {
11017
11017
  return function(e) {
11018
11018
  var t = hO(dO(e));
11019
11019
  return r & 1 && (t = Gf(t, mO, "")), r & 2 && (t = Gf(t, vO, "")), t;
@@ -11033,8 +11033,8 @@ xO({ global: !0, forced: parseInt != Zf }, {
11033
11033
  });
11034
11034
  var CO = Ev, OO = mc, Ov = Object.keys || function(e) {
11035
11035
  return CO(e, OO);
11036
- }, Qf = ot, kO = U, AO = qe, TO = G, la = Ov, MO = vc, $O = pc, FO = gn, IO = us, Nr = Object.assign, ed = Object.defineProperty, NO = kO([].concat), RO = !Nr || TO(function() {
11037
- if (Qf && Nr({ b: 1 }, Nr(ed({}, "a", {
11036
+ }, Qf = ot, kO = U, AO = qe, TO = G, la = Ov, MO = vc, $O = pc, FO = yn, IO = us, Rr = Object.assign, ed = Object.defineProperty, NO = kO([].concat), RO = !Rr || TO(function() {
11037
+ if (Qf && Rr({ b: 1 }, Rr(ed({}, "a", {
11038
11038
  enumerable: !0,
11039
11039
  get: function() {
11040
11040
  ed(this, "b", {
@@ -11047,13 +11047,13 @@ var CO = Ev, OO = mc, Ov = Object.keys || function(e) {
11047
11047
  var r = {}, e = {}, t = Symbol(), n = "abcdefghijklmnopqrst";
11048
11048
  return r[t] = 7, n.split("").forEach(function(i) {
11049
11049
  e[i] = i;
11050
- }), Nr({}, r)[t] != 7 || la(Nr({}, e)).join("") != n;
11050
+ }), Rr({}, r)[t] != 7 || la(Rr({}, e)).join("") != n;
11051
11051
  }) ? function(e, t) {
11052
11052
  for (var n = FO(e), i = arguments.length, o = 1, s = MO.f, a = $O.f; i > o; )
11053
11053
  for (var l = IO(arguments[o++]), u = s ? NO(la(l), s(l)) : la(l), c = u.length, f = 0, d; c > f; )
11054
11054
  d = u[f++], (!Qf || AO(a, l, d)) && (n[d] = l[d]);
11055
11055
  return n;
11056
- } : Nr, PO = Qt, td = RO;
11056
+ } : Rr, PO = Qt, td = RO;
11057
11057
  PO({ target: "Object", stat: !0, arity: 2, forced: Object.assign !== td }, {
11058
11058
  assign: td
11059
11059
  });
@@ -11070,7 +11070,7 @@ HO({ target: "Array", proto: !0, forced: !UO }, {
11070
11070
  return WO(this, e, arguments.length > 1 ? arguments[1] : void 0);
11071
11071
  }
11072
11072
  });
11073
- var kv = {}, KO = ot, GO = rv, JO = it, YO = Re, XO = _n, ZO = Ov;
11073
+ var kv = {}, KO = ot, GO = rv, JO = it, YO = Re, XO = Sn, ZO = Ov;
11074
11074
  kv.f = KO && !GO ? Object.defineProperties : function(e, t) {
11075
11075
  YO(e);
11076
11076
  for (var n = XO(t), i = ZO(t), o = i.length, s = 0, a; o > s; )
@@ -11112,7 +11112,7 @@ var fk = function(r) {
11112
11112
  function r() {
11113
11113
  }
11114
11114
  return r.prototype.constructor = null, Object.getPrototypeOf(new r()) !== r.prototype;
11115
- }), pk = nt, mk = re, vk = gn, gk = lc, yk = hk, sd = gk("IE_PROTO"), hl = Object, bk = hl.prototype, Mv = yk ? hl.getPrototypeOf : function(r) {
11115
+ }), pk = nt, mk = re, vk = yn, gk = lc, yk = hk, sd = gk("IE_PROTO"), hl = Object, bk = hl.prototype, Mv = yk ? hl.getPrototypeOf : function(r) {
11116
11116
  var e = vk(r);
11117
11117
  if (pk(e, sd))
11118
11118
  return e[sd];
@@ -11151,7 +11151,7 @@ var Fv = {
11151
11151
  return function(i, o) {
11152
11152
  return zk(i), jk(o), r ? t(i, o) : i.__proto__ = o, i;
11153
11153
  };
11154
- }() : void 0), Vk = Qt, Hk = qe, Nv = sc, Wk = re, qk = Ik, cd = Mv, ud = Iv, Uk = yc, Kk = yn, da = xr, Gk = Se, Jk = gi, Rv = Fv, Yk = Nv.PROPER, Xk = Nv.CONFIGURABLE, fd = Rv.IteratorPrototype, Mi = Rv.BUGGY_SAFARI_ITERATORS, An = Gk("iterator"), dd = "keys", Tn = "values", hd = "entries", Zk = function() {
11154
+ }() : void 0), Vk = Qt, Hk = qe, Nv = sc, Wk = re, qk = Ik, cd = Mv, ud = Iv, Uk = yc, Kk = bn, da = xr, Gk = Se, Jk = gi, Rv = Fv, Yk = Nv.PROPER, Xk = Nv.CONFIGURABLE, fd = Rv.IteratorPrototype, Mi = Rv.BUGGY_SAFARI_ITERATORS, An = Gk("iterator"), dd = "keys", Tn = "values", hd = "entries", Zk = function() {
11155
11155
  return this;
11156
11156
  }, Pv = function(r, e, t, n, i, o, s) {
11157
11157
  qk(t, e, n);
@@ -11191,7 +11191,7 @@ var Fv = {
11191
11191
  else
11192
11192
  Vk({ target: e, proto: !0, forced: Mi || u }, m);
11193
11193
  return c[An] !== d && da(c, An, d, { name: i }), Jk[e] = d, m;
11194
- }, Qk = _n, bc = fk, pd = gi, Bv = bn, eA = it.f, tA = Pv, rA = ot, Lv = "Array Iterator", nA = Bv.set, iA = Bv.getterFor(Lv), oA = tA(Array, "Array", function(r, e) {
11194
+ }, Qk = Sn, bc = fk, pd = gi, Bv = _n, eA = it.f, tA = Pv, rA = ot, Lv = "Array Iterator", nA = Bv.set, iA = Bv.getterFor(Lv), oA = tA(Array, "Array", function(r, e) {
11195
11195
  nA(this, {
11196
11196
  type: Lv,
11197
11197
  target: Qk(r),
@@ -11210,7 +11210,7 @@ if (rA && md.name !== "values")
11210
11210
  eA(md, "name", { value: "values" });
11211
11211
  } catch {
11212
11212
  }
11213
- var _c = U, sA = fs, aA = Or, lA = vn, cA = _c("".charAt), vd = _c("".charCodeAt), uA = _c("".slice), gd = function(r) {
11213
+ var _c = U, sA = fs, aA = Or, lA = gn, cA = _c("".charAt), vd = _c("".charCodeAt), uA = _c("".slice), gd = function(r) {
11214
11214
  return function(e, t) {
11215
11215
  var n = aA(lA(e)), i = sA(t), o = n.length, s, a;
11216
11216
  return i < 0 || i >= o ? r ? "" : void 0 : (s = vd(n, i), s < 55296 || s > 56319 || i + 1 === o || (a = vd(n, i + 1)) < 56320 || a > 57343 ? r ? cA(n, i) : s : r ? uA(n, i, i + 2) : (s - 55296 << 10) + (a - 56320) + 65536);
@@ -11218,7 +11218,7 @@ var _c = U, sA = fs, aA = Or, lA = vn, cA = _c("".charAt), vd = _c("".charCodeAt
11218
11218
  }, zv = {
11219
11219
  codeAt: gd(!1),
11220
11220
  charAt: gd(!0)
11221
- }, fA = zv.charAt, dA = Or, jv = bn, hA = Pv, Vv = "String Iterator", pA = jv.set, mA = jv.getterFor(Vv);
11221
+ }, fA = zv.charAt, dA = Or, jv = _n, hA = Pv, Vv = "String Iterator", pA = jv.set, mA = jv.getterFor(Vv);
11222
11222
  hA(String, "String", function(r) {
11223
11223
  pA(this, {
11224
11224
  type: Vv,
@@ -11240,7 +11240,7 @@ var vA = xr, Hv = function(r, e, t) {
11240
11240
  for (var n = SA(r), i = yd(e, n), o = yd(t === void 0 ? n : t, n), s = DA(wA(o - i, 0)), a = 0; i < o; i++, a++)
11241
11241
  EA(s, a, r[i]);
11242
11242
  return s.length = a, s;
11243
- }, CA = Cr, OA = _n, qv = ds.f, kA = xA, Uv = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], AA = function(r) {
11243
+ }, CA = Cr, OA = Sn, qv = ds.f, kA = xA, Uv = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], AA = function(r) {
11244
11244
  try {
11245
11245
  return qv(r);
11246
11246
  } catch {
@@ -11261,40 +11261,40 @@ var TA = G, MA = TA(function() {
11261
11261
  return !FA(e) || bd && IA(e) == "ArrayBuffer" ? !1 : Ji ? Ji(e) : !0;
11262
11262
  } : Ji, RA = G, PA = !RA(function() {
11263
11263
  return Object.isExtensible(Object.preventExtensions({}));
11264
- }), BA = Qt, LA = U, zA = ls, jA = We, Sc = nt, VA = it.f, _d = ds, HA = Wv, Ec = Kv, WA = Zl, qA = PA, Gv = !1, Ct = WA("meta"), UA = 0, Dc = function(r) {
11265
- VA(r, Ct, { value: {
11264
+ }), BA = Qt, LA = U, zA = ls, jA = We, Sc = nt, VA = it.f, _d = ds, HA = Wv, Ec = Kv, WA = Zl, qA = PA, Gv = !1, kt = WA("meta"), UA = 0, Dc = function(r) {
11265
+ VA(r, kt, { value: {
11266
11266
  objectID: "O" + UA++,
11267
11267
  weakData: {}
11268
11268
  } });
11269
11269
  }, KA = function(r, e) {
11270
11270
  if (!jA(r))
11271
11271
  return typeof r == "symbol" ? r : (typeof r == "string" ? "S" : "P") + r;
11272
- if (!Sc(r, Ct)) {
11272
+ if (!Sc(r, kt)) {
11273
11273
  if (!Ec(r))
11274
11274
  return "F";
11275
11275
  if (!e)
11276
11276
  return "E";
11277
11277
  Dc(r);
11278
11278
  }
11279
- return r[Ct].objectID;
11279
+ return r[kt].objectID;
11280
11280
  }, GA = function(r, e) {
11281
- if (!Sc(r, Ct)) {
11281
+ if (!Sc(r, kt)) {
11282
11282
  if (!Ec(r))
11283
11283
  return !0;
11284
11284
  if (!e)
11285
11285
  return !1;
11286
11286
  Dc(r);
11287
11287
  }
11288
- return r[Ct].weakData;
11288
+ return r[kt].weakData;
11289
11289
  }, JA = function(r) {
11290
- return qA && Gv && Ec(r) && !Sc(r, Ct) && Dc(r), r;
11290
+ return qA && Gv && Ec(r) && !Sc(r, kt) && Dc(r), r;
11291
11291
  }, YA = function() {
11292
11292
  XA.enable = function() {
11293
11293
  }, Gv = !0;
11294
11294
  var r = _d.f, e = LA([].splice), t = {};
11295
- t[Ct] = 1, r(t).length && (_d.f = function(n) {
11295
+ t[kt] = 1, r(t).length && (_d.f = function(n) {
11296
11296
  for (var i = r(n), o = 0, s = i.length; o < s; o++)
11297
- if (i[o] === Ct) {
11297
+ if (i[o] === kt) {
11298
11298
  e(i, o, 1);
11299
11299
  break;
11300
11300
  }
@@ -11308,7 +11308,7 @@ var TA = G, MA = TA(function() {
11308
11308
  getWeakData: GA,
11309
11309
  onFreeze: JA
11310
11310
  };
11311
- zA[Ct] = !0;
11311
+ zA[kt] = !0;
11312
11312
  var ZA = Se, QA = gi, eT = ZA("iterator"), tT = Array.prototype, rT = function(r) {
11313
11313
  return r !== void 0 && (QA.Array === r || tT[eT] === r);
11314
11314
  }, nT = cs, Sd = pi, iT = gi, oT = Se, sT = oT("iterator"), Jv = function(r) {
@@ -11451,7 +11451,7 @@ var TT = function(r, e) {
11451
11451
  }), l.prototype = a, a.constructor = l), (p || v) && (c("delete"), c("has"), n && c("get")), (v || h) && c(o), i && a.clear && delete a.clear;
11452
11452
  }
11453
11453
  return u[r] = l, IT({ global: !0, constructor: !0, forced: l != s }, u), HT(l, r), i || t.setStrong(l, r, n), l;
11454
- }, UT = U, Ad = Hv, $i = hs.exports.getWeakData, KT = Re, ma = We, GT = Xv, JT = Yv, eg = fc, Td = nt, tg = bn, YT = tg.set, XT = tg.getterFor, ZT = eg.find, QT = eg.findIndex, e2 = UT([].splice), t2 = 0, Fi = function(r) {
11454
+ }, UT = U, Ad = Hv, $i = hs.exports.getWeakData, KT = Re, ma = We, GT = Xv, JT = Yv, eg = fc, Td = nt, tg = _n, YT = tg.set, XT = tg.getterFor, ZT = eg.find, QT = eg.findIndex, e2 = UT([].splice), t2 = 0, Fi = function(r) {
11455
11455
  return r.frozen || (r.frozen = new rg());
11456
11456
  }, rg = function() {
11457
11457
  this.entries = [];
@@ -11524,7 +11524,7 @@ var r2 = {
11524
11524
  }
11525
11525
  }), i;
11526
11526
  }
11527
- }, Md = le, Ii = U, n2 = Hv, i2 = hs.exports, o2 = qT, ng = r2, Ni = We, Ri = Kv, Pi = bn.enforce, s2 = sv, a2 = !Md.ActiveXObject && "ActiveXObject" in Md, Mn, ig = function(r) {
11527
+ }, Md = le, Ii = U, n2 = Hv, i2 = hs.exports, o2 = qT, ng = r2, Ni = We, Ri = Kv, Pi = _n.enforce, s2 = sv, a2 = !Md.ActiveXObject && "ActiveXObject" in Md, Mn, ig = function(r) {
11528
11528
  return function() {
11529
11529
  return r(this, arguments.length ? arguments[0] : void 0);
11530
11530
  };
@@ -11564,7 +11564,7 @@ if (s2 && a2) {
11564
11564
  }
11565
11565
  });
11566
11566
  }
11567
- var Nd = le, og = uv, c2 = fv, zn = oA, ga = yn, sg = Se, ya = sg("iterator"), Rd = sg("toStringTag"), ba = zn.values, ag = function(r, e) {
11567
+ var Nd = le, og = uv, c2 = fv, zn = oA, ga = bn, sg = Se, ya = sg("iterator"), Rd = sg("toStringTag"), ba = zn.values, ag = function(r, e) {
11568
11568
  if (r) {
11569
11569
  if (r[ya] !== ba)
11570
11570
  try {
@@ -11799,7 +11799,7 @@ Dr.prototype.delete = sM;
11799
11799
  Dr.prototype.get = aM;
11800
11800
  Dr.prototype.has = lM;
11801
11801
  Dr.prototype.set = cM;
11802
- function Sn(r) {
11802
+ function En(r) {
11803
11803
  var e = -1, t = r ? r.length : 0;
11804
11804
  for (this.clear(); ++e < t; ) {
11805
11805
  var n = r[e];
@@ -11827,11 +11827,11 @@ function pM(r, e) {
11827
11827
  var t = this.__data__, n = ps(t, r);
11828
11828
  return n < 0 ? t.push([r, e]) : t[n][1] = e, this;
11829
11829
  }
11830
- Sn.prototype.clear = uM;
11831
- Sn.prototype.delete = fM;
11832
- Sn.prototype.get = dM;
11833
- Sn.prototype.has = hM;
11834
- Sn.prototype.set = pM;
11830
+ En.prototype.clear = uM;
11831
+ En.prototype.delete = fM;
11832
+ En.prototype.get = dM;
11833
+ En.prototype.has = hM;
11834
+ En.prototype.set = pM;
11835
11835
  function kr(r) {
11836
11836
  var e = -1, t = r ? r.length : 0;
11837
11837
  for (this.clear(); ++e < t; ) {
@@ -11842,7 +11842,7 @@ function kr(r) {
11842
11842
  function mM() {
11843
11843
  this.__data__ = {
11844
11844
  hash: new Dr(),
11845
- map: new (iM || Sn)(),
11845
+ map: new (iM || En)(),
11846
11846
  string: new Dr()
11847
11847
  };
11848
11848
  }
@@ -11993,12 +11993,12 @@ var yr = function(r) {
11993
11993
  return !1;
11994
11994
  }, Gn = typeof window < "u" ? window : {}, Li = /* @__PURE__ */ new WeakMap(), Ud = /auto|scroll/, $M = /^tb|vertical/, FM = /msie|trident/i.test(Gn.navigator && Gn.navigator.userAgent), at = function(r) {
11995
11995
  return parseFloat(r || "0");
11996
- }, en = function(r, e, t) {
11996
+ }, tn = function(r, e, t) {
11997
11997
  return r === void 0 && (r = 0), e === void 0 && (e = 0), t === void 0 && (t = !1), new TM((t ? e : r) || 0, (t ? r : e) || 0);
11998
11998
  }, Kd = yr({
11999
- devicePixelContentBoxSize: en(),
12000
- borderBoxSize: en(),
12001
- contentBoxSize: en(),
11999
+ devicePixelContentBoxSize: tn(),
12000
+ borderBoxSize: tn(),
12001
+ contentBoxSize: tn(),
12002
12002
  contentRect: new mg(0, 0, 0, 0)
12003
12003
  }), gg = function(r, e) {
12004
12004
  if (e === void 0 && (e = !1), Li.has(r) && !e)
@@ -12006,9 +12006,9 @@ var yr = function(r) {
12006
12006
  if (vg(r))
12007
12007
  return Li.set(r, Kd), Kd;
12008
12008
  var t = getComputedStyle(r), n = Cc(r) && r.ownerSVGElement && r.getBBox(), i = !FM && t.boxSizing === "border-box", o = $M.test(t.writingMode || ""), s = !n && Ud.test(t.overflowY || ""), a = !n && Ud.test(t.overflowX || ""), l = n ? 0 : at(t.paddingTop), u = n ? 0 : at(t.paddingRight), c = n ? 0 : at(t.paddingBottom), f = n ? 0 : at(t.paddingLeft), d = n ? 0 : at(t.borderTopWidth), h = n ? 0 : at(t.borderRightWidth), p = n ? 0 : at(t.borderBottomWidth), m = n ? 0 : at(t.borderLeftWidth), v = f + u, g = l + c, y = m + h, D = d + p, _ = a ? r.offsetHeight - D - r.clientHeight : 0, x = s ? r.offsetWidth - y - r.clientWidth : 0, b = i ? v + y : 0, C = i ? g + D : 0, E = n ? n.width : at(t.width) - b - x, F = n ? n.height : at(t.height) - C - _, V = E + v + x + y, j = F + g + _ + D, Q = yr({
12009
- devicePixelContentBoxSize: en(Math.round(E * devicePixelRatio), Math.round(F * devicePixelRatio), o),
12010
- borderBoxSize: en(V, j, o),
12011
- contentBoxSize: en(E, F, o),
12009
+ devicePixelContentBoxSize: tn(Math.round(E * devicePixelRatio), Math.round(F * devicePixelRatio), o),
12010
+ borderBoxSize: tn(V, j, o),
12011
+ contentBoxSize: tn(E, F, o),
12012
12012
  contentRect: new mg(f, l, E, F)
12013
12013
  });
12014
12014
  return Li.set(r, Q), Q;
@@ -12209,7 +12209,7 @@ var yr = function(r) {
12209
12209
  }, r.toString = function() {
12210
12210
  return "function ResizeObserver () { [polyfill code] }";
12211
12211
  }, r;
12212
- }(), GM = ss, JM = gn, YM = us, XM = mi, ZM = TypeError, Qd = function(r) {
12212
+ }(), GM = ss, JM = yn, YM = us, XM = mi, ZM = TypeError, Qd = function(r) {
12213
12213
  return function(e, t, n, i) {
12214
12214
  GM(t);
12215
12215
  var o = JM(e), s = YM(o), a = XM(o), l = r ? a - 1 : 0, u = r ? -1 : 1;
@@ -12258,17 +12258,17 @@ var c$ = Re, u$ = function() {
12258
12258
  }), b$ = G, _$ = le, S$ = _$.RegExp, E$ = b$(function() {
12259
12259
  var r = S$("(?<a>b)", "g");
12260
12260
  return r.exec("b").groups.a !== "b" || "b".replace(r, "$<a>c") !== "bc";
12261
- }), Wr = qe, vs = U, D$ = Or, w$ = u$, x$ = p$, C$ = ns.exports, O$ = gc, k$ = bn.get, A$ = y$, T$ = E$, M$ = C$("native-string-replace", String.prototype.replace), Eo = RegExp.prototype.exec, gl = Eo, $$ = vs("".charAt), F$ = vs("".indexOf), I$ = vs("".replace), Ca = vs("".slice), yl = function() {
12261
+ }), qr = qe, vs = U, D$ = Or, w$ = u$, x$ = p$, C$ = ns.exports, O$ = gc, k$ = _n.get, A$ = y$, T$ = E$, M$ = C$("native-string-replace", String.prototype.replace), Eo = RegExp.prototype.exec, gl = Eo, $$ = vs("".charAt), F$ = vs("".indexOf), I$ = vs("".replace), Ca = vs("".slice), yl = function() {
12262
12262
  var r = /a/, e = /b*/g;
12263
- return Wr(Eo, r, "a"), Wr(Eo, e, "a"), r.lastIndex !== 0 || e.lastIndex !== 0;
12263
+ return qr(Eo, r, "a"), qr(Eo, e, "a"), r.lastIndex !== 0 || e.lastIndex !== 0;
12264
12264
  }(), Sg = x$.BROKEN_CARET, bl = /()??/.exec("")[1] !== void 0, N$ = yl || bl || Sg || A$ || T$;
12265
12265
  N$ && (gl = function(e) {
12266
12266
  var t = this, n = k$(t), i = D$(e), o = n.raw, s, a, l, u, c, f, d;
12267
12267
  if (o)
12268
- return o.lastIndex = t.lastIndex, s = Wr(gl, o, i), t.lastIndex = o.lastIndex, s;
12269
- var h = n.groups, p = Sg && t.sticky, m = Wr(w$, t), v = t.source, g = 0, y = i;
12268
+ return o.lastIndex = t.lastIndex, s = qr(gl, o, i), t.lastIndex = o.lastIndex, s;
12269
+ var h = n.groups, p = Sg && t.sticky, m = qr(w$, t), v = t.source, g = 0, y = i;
12270
12270
  if (p && (m = I$(m, "y", ""), F$(m, "g") === -1 && (m += "g"), y = Ca(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && $$(i, t.lastIndex - 1) !== `
12271
- `) && (v = "(?: " + v + ")", y = " " + y, g++), a = new RegExp("^(?:" + v + ")", m)), bl && (a = new RegExp("^" + v + "$(?!\\s)", m)), yl && (l = t.lastIndex), u = Wr(Eo, p ? a : t, y), p ? u ? (u.input = Ca(u.input, g), u[0] = Ca(u[0], g), u.index = t.lastIndex, t.lastIndex += u[0].length) : t.lastIndex = 0 : yl && u && (t.lastIndex = t.global ? u.index + u[0].length : l), bl && u && u.length > 1 && Wr(M$, u[0], a, function() {
12271
+ `) && (v = "(?: " + v + ")", y = " " + y, g++), a = new RegExp("^(?:" + v + ")", m)), bl && (a = new RegExp("^" + v + "$(?!\\s)", m)), yl && (l = t.lastIndex), u = qr(Eo, p ? a : t, y), p ? u ? (u.input = Ca(u.input, g), u[0] = Ca(u[0], g), u.index = t.lastIndex, t.lastIndex += u[0].length) : t.lastIndex = 0 : yl && u && (t.lastIndex = t.global ? u.index + u[0].length : l), bl && u && u.length > 1 && qr(M$, u[0], a, function() {
12272
12272
  for (c = 1; c < arguments.length - 2; c++)
12273
12273
  arguments[c] === void 0 && (u[c] = void 0);
12274
12274
  }), u && h)
@@ -12280,7 +12280,7 @@ var Tc = gl, R$ = Qt, th = Tc;
12280
12280
  R$({ target: "RegExp", proto: !0, forced: /./.exec !== th }, {
12281
12281
  exec: th
12282
12282
  });
12283
- var rh = U, nh = xr, P$ = Tc, ih = G, Eg = Se, B$ = yn, L$ = Eg("species"), Oa = RegExp.prototype, Dg = function(r, e, t, n) {
12283
+ var rh = U, nh = xr, P$ = Tc, ih = G, Eg = Se, B$ = bn, L$ = Eg("species"), Oa = RegExp.prototype, Dg = function(r, e, t, n) {
12284
12284
  var i = Eg(r), o = !ih(function() {
12285
12285
  var u = {};
12286
12286
  return u[i] = function() {
@@ -12313,7 +12313,7 @@ var rh = U, nh = xr, P$ = Tc, ih = G, Eg = Se, B$ = yn, L$ = Eg("species"), Oa =
12313
12313
  if (H$(r) === "RegExp")
12314
12314
  return oh(W$, r, e);
12315
12315
  throw q$("RegExp#exec called on incompatible receiver");
12316
- }, U$ = qe, K$ = Dg, G$ = Re, J$ = cc, ka = Or, Y$ = vn, X$ = pi, Z$ = wg, sh = xg;
12316
+ }, U$ = qe, K$ = Dg, G$ = Re, J$ = cc, ka = Or, Y$ = gn, X$ = pi, Z$ = wg, sh = xg;
12317
12317
  K$("match", function(r, e, t) {
12318
12318
  return [
12319
12319
  function(i) {
@@ -12349,7 +12349,7 @@ Q$ && !eF && tF(Og, iF, {
12349
12349
  });
12350
12350
  var oF = is, Ag = Function.prototype, ah = Ag.apply, lh = Ag.call, sF = typeof Reflect == "object" && Reflect.apply || (oF ? lh.bind(ah) : function() {
12351
12351
  return lh.apply(ah, arguments);
12352
- }), Mc = U, aF = gn, lF = Math.floor, Aa = Mc("".charAt), cF = Mc("".replace), Ta = Mc("".slice), uF = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, fF = /\$([$&'`]|\d{1,2})/g, dF = function(r, e, t, n, i, o) {
12352
+ }), Mc = U, aF = yn, lF = Math.floor, Aa = Mc("".charAt), cF = Mc("".replace), Ta = Mc("".slice), uF = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, fF = /\$([$&'`]|\d{1,2})/g, dF = function(r, e, t, n, i, o) {
12353
12353
  var s = t + r.length, a = n.length, l = fF;
12354
12354
  return i !== void 0 && (i = aF(i), l = uF), cF(o, l, function(u, c) {
12355
12355
  var f;
@@ -12377,7 +12377,7 @@ var oF = is, Ag = Function.prototype, ah = Ag.apply, lh = Ag.call, sF = typeof R
12377
12377
  }
12378
12378
  return f === void 0 ? "" : f;
12379
12379
  });
12380
- }, hF = sF, ch = qe, gs = U, pF = Dg, mF = G, vF = Re, gF = re, yF = fs, bF = cc, Rr = Or, _F = vn, SF = wg, EF = pi, DF = dF, wF = xg, xF = Se, _l = xF("replace"), CF = Math.max, OF = Math.min, kF = gs([].concat), Ma = gs([].push), uh = gs("".indexOf), fh = gs("".slice), AF = function(r) {
12380
+ }, hF = sF, ch = qe, gs = U, pF = Dg, mF = G, vF = Re, gF = re, yF = fs, bF = cc, Pr = Or, _F = gn, SF = wg, EF = pi, DF = dF, wF = xg, xF = Se, _l = xF("replace"), CF = Math.max, OF = Math.min, kF = gs([].concat), Ma = gs([].push), uh = gs("".indexOf), fh = gs("".slice), AF = function(r) {
12381
12381
  return r === void 0 ? r : String(r);
12382
12382
  }, TF = function() {
12383
12383
  return "a".replace(/./, "$0") === "$0";
@@ -12395,17 +12395,17 @@ pF("replace", function(r, e, t) {
12395
12395
  return [
12396
12396
  function(o, s) {
12397
12397
  var a = _F(this), l = o == null ? void 0 : EF(o, _l);
12398
- return l ? ch(l, o, a, s) : ch(e, Rr(a), o, s);
12398
+ return l ? ch(l, o, a, s) : ch(e, Pr(a), o, s);
12399
12399
  },
12400
12400
  function(i, o) {
12401
- var s = vF(this), a = Rr(i);
12401
+ var s = vF(this), a = Pr(i);
12402
12402
  if (typeof o == "string" && uh(o, n) === -1 && uh(o, "$<") === -1) {
12403
12403
  var l = t(e, s, a, o);
12404
12404
  if (l.done)
12405
12405
  return l.value;
12406
12406
  }
12407
12407
  var u = gF(o);
12408
- u || (o = Rr(o));
12408
+ u || (o = Pr(o));
12409
12409
  var c = s.global;
12410
12410
  if (c) {
12411
12411
  var f = s.unicode;
@@ -12415,18 +12415,18 @@ pF("replace", function(r, e, t) {
12415
12415
  var h = wF(s, a);
12416
12416
  if (h === null || (Ma(d, h), !c))
12417
12417
  break;
12418
- var p = Rr(h[0]);
12418
+ var p = Pr(h[0]);
12419
12419
  p === "" && (s.lastIndex = SF(a, bF(s.lastIndex), f));
12420
12420
  }
12421
12421
  for (var m = "", v = 0, g = 0; g < d.length; g++) {
12422
12422
  h = d[g];
12423
- for (var y = Rr(h[0]), D = CF(OF(yF(h.index), a.length), 0), _ = [], x = 1; x < h.length; x++)
12423
+ for (var y = Pr(h[0]), D = CF(OF(yF(h.index), a.length), 0), _ = [], x = 1; x < h.length; x++)
12424
12424
  Ma(_, AF(h[x]));
12425
12425
  var b = h.groups;
12426
12426
  if (u) {
12427
12427
  var C = kF([y], _, D, a);
12428
12428
  b !== void 0 && Ma(C, b);
12429
- var E = Rr(hF(o, void 0, C));
12429
+ var E = Pr(hF(o, void 0, C));
12430
12430
  } else
12431
12431
  E = DF(y, a, D, _, b, o);
12432
12432
  D >= v && (m += fh(a, v, D) + E, v = D + y.length);
@@ -12460,33 +12460,33 @@ var Do = function(e) {
12460
12460
  }, {});
12461
12461
  return t;
12462
12462
  };
12463
- function $t(r) {
12463
+ function It(r) {
12464
12464
  return !r || !r.ownerDocument || !r.ownerDocument.defaultView ? window : r.ownerDocument.defaultView;
12465
12465
  }
12466
12466
  function Zi(r) {
12467
12467
  return !r || !r.ownerDocument ? document : r.ownerDocument;
12468
12468
  }
12469
- var Lr = null, hh = null;
12469
+ var zr = null, hh = null;
12470
12470
  dc && window.addEventListener("resize", function() {
12471
- hh !== window.devicePixelRatio && (hh = window.devicePixelRatio, Lr = null);
12471
+ hh !== window.devicePixelRatio && (hh = window.devicePixelRatio, zr = null);
12472
12472
  });
12473
12473
  function ph(r) {
12474
- if (Lr === null) {
12474
+ if (zr === null) {
12475
12475
  var e = Zi(r);
12476
12476
  if (typeof e > "u")
12477
- return Lr = 0, Lr;
12477
+ return zr = 0, zr;
12478
12478
  var t = e.body, n = e.createElement("div");
12479
12479
  n.classList.add("simplebar-hide-scrollbar"), t.appendChild(n);
12480
12480
  var i = n.getBoundingClientRect().right;
12481
- t.removeChild(n), Lr = i;
12481
+ t.removeChild(n), zr = i;
12482
12482
  }
12483
- return Lr;
12483
+ return zr;
12484
12484
  }
12485
12485
  var Z = /* @__PURE__ */ function() {
12486
12486
  function r(t, n) {
12487
12487
  var i = this;
12488
12488
  this.onScroll = function() {
12489
- var o = $t(i.el);
12489
+ var o = It(i.el);
12490
12490
  i.scrollXTicking || (o.requestAnimationFrame(i.scrollX), i.scrollXTicking = !0), i.scrollYTicking || (o.requestAnimationFrame(i.scrollY), i.scrollYTicking = !0);
12491
12491
  }, this.scrollX = function() {
12492
12492
  i.axis.x.isOverflowing && (i.showScrollbar("x"), i.positionScrollbar("x")), i.scrollXTicking = !1;
@@ -12511,7 +12511,7 @@ var Z = /* @__PURE__ */ function() {
12511
12511
  var d = s - a.rect[i.axis[i.draggedAxis].offsetAttr] - i.axis[i.draggedAxis].dragOffset, h = d / (l - u.size), p = h * (c - f);
12512
12512
  i.draggedAxis === "x" && (p = i.isRtl && r.getRtlHelpers().isRtlScrollbarInverted ? p - (l + u.size) : p, p = i.isRtl && r.getRtlHelpers().isRtlScrollingInverted ? -p : p), i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr] = p;
12513
12513
  }, this.onEndDrag = function(o) {
12514
- var s = Zi(i.el), a = $t(i.el);
12514
+ var s = Zi(i.el), a = It(i.el);
12515
12515
  o.preventDefault(), o.stopPropagation(), i.el.classList.remove(i.classNames.dragging), s.removeEventListener("mousemove", i.drag, !0), s.removeEventListener("mouseup", i.onEndDrag, !0), i.removePreventClickId = a.setTimeout(function() {
12516
12516
  s.removeEventListener("click", i.preventClick, !0), s.removeEventListener("dblclick", i.preventClick, !0), i.removePreventClickId = null;
12517
12517
  });
@@ -12565,7 +12565,7 @@ var Z = /* @__PURE__ */ function() {
12565
12565
  isRtlScrollbarInverted: s.left !== a.left
12566
12566
  };
12567
12567
  }, r.getOffset = function(n) {
12568
- var i = n.getBoundingClientRect(), o = Zi(n), s = $t(n);
12568
+ var i = n.getBoundingClientRect(), o = Zi(n), s = It(n);
12569
12569
  return {
12570
12570
  top: i.top + (s.pageYOffset || o.documentElement.scrollTop),
12571
12571
  left: i.left + (s.pageXOffset || o.documentElement.scrollLeft)
@@ -12594,7 +12594,7 @@ var Z = /* @__PURE__ */ function() {
12594
12594
  var n = this.options.ariaLabel || "scrollable content";
12595
12595
  this.contentWrapperEl.setAttribute("tabindex", "0"), this.contentWrapperEl.setAttribute("role", "region"), this.contentWrapperEl.setAttribute("aria-label", n);
12596
12596
  }, e.initListeners = function() {
12597
- var n = this, i = $t(this.el);
12597
+ var n = this, i = It(this.el);
12598
12598
  this.options.autoHide && this.el.addEventListener("mouseenter", this.onMouseEnter), ["mousedown", "click", "dblclick"].forEach(function(a) {
12599
12599
  n.el.addEventListener(a, n.onPointerEvent, !0);
12600
12600
  }), ["touchstart", "touchend", "touchmove"].forEach(function(a) {
@@ -12614,7 +12614,7 @@ var Z = /* @__PURE__ */ function() {
12614
12614
  characterData: !0
12615
12615
  });
12616
12616
  }, e.recalculate = function() {
12617
- var n = $t(this.el);
12617
+ var n = It(this.el);
12618
12618
  this.elStyles = n.getComputedStyle(this.el), this.isRtl = this.elStyles.direction === "rtl";
12619
12619
  var i = this.heightAutoObserverEl.offsetHeight <= 1, o = this.heightAutoObserverEl.offsetWidth <= 1, s = this.contentEl.offsetWidth, a = this.contentWrapperEl.offsetWidth, l = this.elStyles.overflowX, u = this.elStyles.overflowY;
12620
12620
  this.contentEl.style.padding = this.elStyles.paddingTop + " " + this.elStyles.paddingRight + " " + this.elStyles.paddingBottom + " " + this.elStyles.paddingLeft, this.wrapperEl.style.margin = "-" + this.elStyles.paddingTop + " -" + this.elStyles.paddingRight + " -" + this.elStyles.paddingBottom + " -" + this.elStyles.paddingLeft;
@@ -12654,12 +12654,12 @@ var Z = /* @__PURE__ */ function() {
12654
12654
  this.axis[n].isVisible || (i.classList.add(this.classNames.visible), this.axis[n].isVisible = !0), this.options.autoHide && this.hideScrollbars();
12655
12655
  }, e.onDragStart = function(n, i) {
12656
12656
  i === void 0 && (i = "y");
12657
- var o = Zi(this.el), s = $t(this.el), a = this.axis[i].scrollbar, l = i === "y" ? n.pageY : n.pageX;
12657
+ var o = Zi(this.el), s = It(this.el), a = this.axis[i].scrollbar, l = i === "y" ? n.pageY : n.pageX;
12658
12658
  this.axis[i].dragOffset = l - a.rect[this.axis[i].offsetAttr], this.draggedAxis = i, this.el.classList.add(this.classNames.dragging), o.addEventListener("mousemove", this.drag, !0), o.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (o.addEventListener("click", this.preventClick, !0), o.addEventListener("dblclick", this.preventClick, !0)) : (s.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
12659
12659
  }, e.onTrackClick = function(n, i) {
12660
12660
  var o = this;
12661
12661
  if (i === void 0 && (i = "y"), !!this.options.clickOnTrack) {
12662
- var s = $t(this.el);
12662
+ var s = It(this.el);
12663
12663
  this.axis[i].scrollbar.rect = this.axis[i].scrollbar.el.getBoundingClientRect();
12664
12664
  var a = this.axis[i].scrollbar, l = a.rect[this.axis[i].offsetAttr], u = parseInt(this.elStyles[this.axis[i].sizeAttr], 10), c = this.contentWrapperEl[this.axis[i].scrollOffsetAttr], f = i === "y" ? this.mouseY - l : this.mouseX - l, d = f < 0 ? -1 : 1, h = d === -1 ? c - u : c + u, p = function m() {
12665
12665
  if (d === -1) {
@@ -12685,7 +12685,7 @@ var Z = /* @__PURE__ */ function() {
12685
12685
  return ph(this.el);
12686
12686
  }
12687
12687
  }, e.removeListeners = function() {
12688
- var n = this, i = $t(this.el);
12688
+ var n = this, i = It(this.el);
12689
12689
  this.options.autoHide && this.el.removeEventListener("mouseenter", this.onMouseEnter), ["mousedown", "click", "dblclick"].forEach(function(o) {
12690
12690
  n.el.removeEventListener(o, n.onPointerEvent, !0);
12691
12691
  }), ["touchstart", "touchend", "touchmove"].forEach(function(o) {
@@ -12779,7 +12779,7 @@ function mh({ validations: r }) {
12779
12779
  const $F = (r) => r;
12780
12780
  function Tg({ valueRef: r, format: e = $F }) {
12781
12781
  const t = q(e(r.value));
12782
- return tn(r, () => t.value = e(r.value)), t;
12782
+ return rn(r, () => t.value = e(r.value)), t;
12783
12783
  }
12784
12784
  function wo(r) {
12785
12785
  return T(() => {
@@ -12859,7 +12859,7 @@ function Mg({ targetRef: r, isActiveRef: e, event: t, onEvent: n, options: i })
12859
12859
  function a() {
12860
12860
  !r.value || (e.value ? o() : s());
12861
12861
  }
12862
- tn(e, a), tn(r, a), Dl(s), a();
12862
+ rn(e, a), rn(r, a), Dl(s), a();
12863
12863
  }
12864
12864
  const IF = [
12865
12865
  "BUTTON",
@@ -12906,7 +12906,7 @@ const BF = {
12906
12906
  name: "ScrollView",
12907
12907
  setup() {
12908
12908
  const r = q(null), e = q(null);
12909
- return ut(Fg, e), mp(() => {
12909
+ return ft(Fg, e), mp(() => {
12910
12910
  const t = Z.getOptions(r.value.attributes), n = new Z(r.value, t);
12911
12911
  e.value = n.getScrollElement();
12912
12912
  }), { hostRef: r };
@@ -13218,7 +13218,7 @@ class sI {
13218
13218
  this.listRef = e, this.triggerUpdate = t;
13219
13219
  }
13220
13220
  }
13221
- class wt {
13221
+ class Ct {
13222
13222
  static use(e) {
13223
13223
  this.window = e;
13224
13224
  }
@@ -13235,19 +13235,23 @@ class wt {
13235
13235
  return this.window.getComputedStyle(e);
13236
13236
  }
13237
13237
  }
13238
- xn(wt, "window", window);
13239
- const Pt = class {
13238
+ $r(Ct, "window", window);
13239
+ const ut = class {
13240
13240
  static normalize(e) {
13241
- return new Pt(e).normalize();
13241
+ const t = {
13242
+ content: e,
13243
+ parser: ut.PARSER
13244
+ };
13245
+ return new ut(t).normalize();
13242
13246
  }
13243
- constructor(e) {
13244
- this._content = e, this._dom = null;
13247
+ constructor({ content: e, parser: t }) {
13248
+ this._content = e, this._parser = t, this._dom = null;
13245
13249
  }
13246
13250
  normalize() {
13247
13251
  return typeof this._content != "string" ? this._content : this._normalizeTextContent();
13248
13252
  }
13249
13253
  _normalizeTextContent() {
13250
- return this._dom = new DOMParser().parseFromString(this._content, "text/html"), this._iterateNodes(this._removeEmptyNodes, this._isBlockNode), this._iterateNodes(this._normalizeListItems, (e) => e.tagName === "LI"), this._iterateNodes(this._normalizeSettingsStructure, (e) => e.tagName === "SPAN"), this._iterateNodes(this._normalizeStyles, (e) => e.tagName !== "SPAN"), this._dom.body.innerHTML;
13254
+ return this._dom = this._parser.parseFromString(this._content, "text/html"), this._iterateNodes(this._removeEmptyNodes, this._isBlockNode), this._iterateNodes(this._normalizeListItems, (e) => e.tagName === "LI"), this._iterateNodes(this._normalizeSettingsStructure, (e) => e.tagName === "SPAN"), this._iterateNodes(this._normalizeStyles, (e) => e.tagName !== "SPAN"), this._dom.body.innerHTML;
13251
13255
  }
13252
13256
  _iterateNodes(e, t = () => !0) {
13253
13257
  const n = this._dom.createNodeIterator(this._dom.body, NodeFilter.SHOW_ELEMENT, {
@@ -13258,14 +13262,15 @@ const Pt = class {
13258
13262
  e.call(this, i), i = n.nextNode();
13259
13263
  }
13260
13264
  _removeEmptyNodes(e) {
13261
- e.childNodes.length === 0 && e.remove();
13265
+ e.innerHTML.replace(/\n/g, "").trim() || e.remove();
13262
13266
  }
13263
13267
  _normalizeListItems(e) {
13264
13268
  const t = new DocumentFragment(), n = Array.from(e.childNodes);
13265
13269
  let i;
13266
13270
  const o = (s) => {
13267
- this._assignElementProperties(s, e, Pt.BLOCK_STYLES), t.append(s);
13271
+ this._assignElementProperties(s, e, ut.BLOCK_STYLES), t.append(s);
13268
13272
  };
13273
+ this._assignElementProperties(e, e.parentElement, ut.BLOCK_STYLES);
13269
13274
  for (const s of n) {
13270
13275
  if (s.tagName === "P") {
13271
13276
  o(s), i = null;
@@ -13273,7 +13278,7 @@ const Pt = class {
13273
13278
  }
13274
13279
  i || (i = document.createElement("p"), o(i)), i.append(s);
13275
13280
  }
13276
- e.append(t), this._removeStyleProperties(e, Pt.BLOCK_STYLES);
13281
+ e.append(t), this._removeStyleProperties(e, ut.BLOCK_STYLES);
13277
13282
  }
13278
13283
  _normalizeSettingsStructure(e) {
13279
13284
  if (this._isOnlyTextContent(e))
@@ -13301,10 +13306,10 @@ const Pt = class {
13301
13306
  return Array.from(e.childNodes).every((t) => t.nodeType === Node.TEXT_NODE);
13302
13307
  }
13303
13308
  _isBlockNode(e) {
13304
- return Pt.BLOCK_NODE_NAMES.includes(e.tagName);
13309
+ return ut.BLOCK_NODE_NAMES.includes(e.tagName);
13305
13310
  }
13306
13311
  _getMigratingStyles(e, { customProperties: t } = {}) {
13307
- const n = Pt.BLOCK_STYLES, i = [];
13312
+ const n = ut.BLOCK_STYLES, i = [];
13308
13313
  for (let o = 0; o < e.style.length; o++) {
13309
13314
  const s = e.style.item(o);
13310
13315
  n.includes(s) || !t && s.startsWith("--") || i.push(s);
@@ -13314,7 +13319,7 @@ const Pt = class {
13314
13319
  _wrapTextNode(e, t) {
13315
13320
  if (t.nodeType !== Node.TEXT_NODE)
13316
13321
  return t;
13317
- const n = wt.document.createElement("span");
13322
+ const n = Ct.document.createElement("span");
13318
13323
  return n.append(t.cloneNode()), e.replaceChild(n, t), n;
13319
13324
  }
13320
13325
  _assignElementProperties(e, t, n) {
@@ -13324,7 +13329,7 @@ const Pt = class {
13324
13329
  }
13325
13330
  }
13326
13331
  _canAssignElementProperty(e, t, n) {
13327
- return e.style.getPropertyValue(n) ? !1 : Pt.ASSIGN_STYLE_RULES.every((i) => i.tag.test(e.tagName.toLowerCase()) ? !i.ignore.test(n) : !0);
13332
+ return e.style.getPropertyValue(n) ? !1 : ut.ASSIGN_STYLE_RULES.every((i) => i.tag.test(e.tagName.toLowerCase()) ? !i.ignore.test(n) : !0);
13328
13333
  }
13329
13334
  _removeStyleProperties(e, t) {
13330
13335
  for (const n of t)
@@ -13332,8 +13337,8 @@ const Pt = class {
13332
13337
  e.style.length === 0 && e.removeAttribute("style");
13333
13338
  }
13334
13339
  };
13335
- let Lt = Pt;
13336
- xn(Lt, "BLOCK_STYLES", ["text-align", "line-height"]), xn(Lt, "BLOCK_NODE_NAMES", ["P", "H1", "H2", "H3", "H4"]), xn(Lt, "ASSIGN_STYLE_RULES", [
13340
+ let wt = ut;
13341
+ $r(wt, "PARSER", new DOMParser()), $r(wt, "BLOCK_STYLES", ["text-align", "line-height"]), $r(wt, "BLOCK_NODE_NAMES", ["P", "H1", "H2", "H3", "H4"]), $r(wt, "ASSIGN_STYLE_RULES", [
13337
13342
  {
13338
13343
  tag: /^(b|strong)$/,
13339
13344
  ignore: /font-weight/
@@ -13350,7 +13355,7 @@ xn(Lt, "BLOCK_STYLES", ["text-align", "line-height"]), xn(Lt, "BLOCK_NODE_NAMES"
13350
13355
  const Vi = /* @__PURE__ */ new WeakMap();
13351
13356
  function $a(r, e) {
13352
13357
  const t = ["click", e, { capture: !0 }], n = r ? "addEventListener" : "removeEventListener";
13353
- wt.window !== window && window.document[n](...t), wt.document[n](...t);
13358
+ Ct.window !== window && window.document[n](...t), Ct.document[n](...t);
13354
13359
  }
13355
13360
  const Fc = {
13356
13361
  bind(r, { value: e }) {
@@ -13597,7 +13602,7 @@ function DI({ optionsRef: r, inputRef: e, stateless: t, onChange: n }) {
13597
13602
  o(c, u);
13598
13603
  }
13599
13604
  const a = () => s(e.value, { emitEvent: !1 });
13600
- return a(), tn(e, a), { activeOption: i, activateOption: o };
13605
+ return a(), rn(e, a), { activeOption: i, activateOption: o };
13601
13606
  }
13602
13607
  function Ic(r) {
13603
13608
  return T(() => {
@@ -13740,7 +13745,7 @@ function II(r) {
13740
13745
  for (let e in xh)
13741
13746
  this[e] = xh[e];
13742
13747
  }
13743
- const En = /* @__PURE__ */ function() {
13748
+ const Dn = /* @__PURE__ */ function() {
13744
13749
  return FI.exports;
13745
13750
  }();
13746
13751
  var NI = function() {
@@ -13764,7 +13769,7 @@ var NI = function() {
13764
13769
  const PI = {
13765
13770
  name: "DropdownGroup",
13766
13771
  components: {
13767
- DropdownOption: En
13772
+ DropdownOption: Dn
13768
13773
  },
13769
13774
  props: {
13770
13775
  group: {
@@ -13856,7 +13861,7 @@ const JI = {
13856
13861
  components: {
13857
13862
  ScrollView: jF,
13858
13863
  DropdownGroup: zI,
13859
- DropdownOption: En,
13864
+ DropdownOption: Dn,
13860
13865
  DropdownDivider: UI
13861
13866
  },
13862
13867
  props: {
@@ -13866,7 +13871,7 @@ const JI = {
13866
13871
  }
13867
13872
  },
13868
13873
  setup() {
13869
- ut(Wt.SESSION, {});
13874
+ ft(Wt.SESSION, {});
13870
13875
  }
13871
13876
  }, kh = {};
13872
13877
  var YI = /* @__PURE__ */ $(
@@ -13961,7 +13966,7 @@ const tN = {
13961
13966
  wrapperRef: t,
13962
13967
  modalRef: n
13963
13968
  });
13964
- return ut(Wt.ACTIVE_MANAGER, i), ut(Wt.TOGGLER, o), {
13969
+ return ft(Wt.ACTIVE_MANAGER, i), ft(Wt.TOGGLER, o), {
13965
13970
  dropdownRef: t,
13966
13971
  modalRef: n,
13967
13972
  toggler: o
@@ -14026,7 +14031,7 @@ function oN({ isOpenedRef: r, onCancel: e, onApply: t }) {
14026
14031
  }
14027
14032
  }
14028
14033
  Mg({
14029
- targetRef: q(wt.document),
14034
+ targetRef: q(Ct.document),
14030
14035
  isActiveRef: r,
14031
14036
  event: "keydown",
14032
14037
  onEvent: i,
@@ -14277,7 +14282,7 @@ const _N = {
14277
14282
  name: "FontFamilyControl",
14278
14283
  components: {
14279
14284
  Dropdown: er,
14280
- DropdownOption: En
14285
+ DropdownOption: Dn
14281
14286
  },
14282
14287
  directives: {
14283
14288
  tooltip: pe
@@ -14877,9 +14882,9 @@ const bR = {
14877
14882
  tooltip: pe
14878
14883
  },
14879
14884
  styles: [
14880
- { id: Qr.UPPERCASE, title: "UPPERCASE" },
14881
- { id: Qr.LOWERCASE, title: "lowercase" },
14882
- { id: Qr.CAPITALIZE, title: "Capitalize" }
14885
+ { id: en.UPPERCASE, title: "UPPERCASE" },
14886
+ { id: en.LOWERCASE, title: "lowercase" },
14887
+ { id: en.CAPITALIZE, title: "Capitalize" }
14883
14888
  ],
14884
14889
  setup() {
14885
14890
  const r = z(L.EDITOR);
@@ -15248,7 +15253,7 @@ const jR = {
15248
15253
  })),
15249
15254
  components: {
15250
15255
  Dropdown: er,
15251
- DropdownOption: En,
15256
+ DropdownOption: Dn,
15252
15257
  Button: ie,
15253
15258
  Icon: ye
15254
15259
  },
@@ -15431,12 +15436,12 @@ const lP = /* @__PURE__ */ function() {
15431
15436
  return sP.exports;
15432
15437
  }();
15433
15438
  function cP() {
15434
- const r = z(L.EDITOR), e = z(L.PAGE_BLOCKS), t = q({ text: "", target: jt.SELF, destination: ht.URL }), n = q({ block: e.value[0].id, url: "" }), i = q({ id: ht.URL });
15439
+ const r = z(L.EDITOR), e = z(L.PAGE_BLOCKS), t = q({ text: "", target: jt.SELF, destination: pt.URL }), n = q({ block: e.value[0].id, url: "" }), i = q({ id: pt.URL });
15435
15440
  function o(f) {
15436
15441
  t.value.target = f ? jt.BLANK : jt.SELF;
15437
15442
  }
15438
15443
  function s() {
15439
- t.value.text = r.commands.getSelectedText(), i.value.id = r.getAttributes("link").destination || ht.URL, n.value[i.value.id] = r.getAttributes("link").href || "", t.value.target = r.getAttributes("link").target || jt.SELF;
15444
+ t.value.text = r.commands.getSelectedText(), i.value.id = r.getAttributes("link").destination || pt.URL, n.value[i.value.id] = r.getAttributes("link").href || "", t.value.target = r.getAttributes("link").target || jt.SELF;
15440
15445
  }
15441
15446
  function a() {
15442
15447
  r.chain().focus().applyLink({
@@ -15501,7 +15506,7 @@ var uP = function() {
15501
15506
  }, fP = [];
15502
15507
  const dP = {
15503
15508
  name: "LinkControlPageBlock",
15504
- components: { DropdownOption: En, Dropdown: er, FieldLabel: $c },
15509
+ components: { DropdownOption: Dn, Dropdown: er, FieldLabel: $c },
15505
15510
  props: {
15506
15511
  value: {
15507
15512
  type: Number,
@@ -15644,14 +15649,14 @@ var EP = function() {
15644
15649
  const wP = {
15645
15650
  name: "LinkControlDestination",
15646
15651
  destinationTypes: [
15647
- { id: ht.URL, title: "URL" },
15648
- { id: ht.BLOCK, title: "Page Block" }
15652
+ { id: pt.URL, title: "URL" },
15653
+ { id: pt.BLOCK, title: "Page Block" }
15649
15654
  ],
15650
15655
  components: {
15651
15656
  LinkControlPageBlock: mP,
15652
15657
  LinkControlUrl: SP,
15653
15658
  FieldLabel: $c,
15654
- DropdownOption: En,
15659
+ DropdownOption: Dn,
15655
15660
  Dropdown: er
15656
15661
  },
15657
15662
  props: {
@@ -15980,7 +15985,7 @@ const GP = {
15980
15985
  },
15981
15986
  setup(r) {
15982
15987
  const e = T(() => r.device === vo.DESKTOP ? LP : qP), t = T(() => r.toolbar.isActiveRef.value), n = q(null);
15983
- tn(n, (o) => {
15988
+ rn(n, (o) => {
15984
15989
  o && r.toolbar.mount(o);
15985
15990
  });
15986
15991
  const i = T(() => ({
@@ -16013,14 +16018,14 @@ const XP = /* @__PURE__ */ function() {
16013
16018
  }();
16014
16019
  function ZP({ content: r, onChange: e, extensions: t }) {
16015
16020
  const n = ny(new XS({
16016
- content: Lt.normalize(r.value),
16021
+ content: wt.normalize(r.value),
16017
16022
  onUpdate: () => e(n.getJSON()),
16018
16023
  extensions: t,
16019
16024
  injectCSS: !1
16020
16025
  }));
16021
- return Dl(() => n.destroy()), tn(r, (i) => {
16026
+ return Dl(() => n.destroy()), rn(r, (i) => {
16022
16027
  if (JSON.stringify(n.getJSON()) !== JSON.stringify(i)) {
16023
- const s = Lt.normalize(i);
16028
+ const s = wt.normalize(i);
16024
16029
  n.commands.setContent(s, !1);
16025
16030
  }
16026
16031
  }), n;
@@ -16112,7 +16117,7 @@ const eB = je.create({
16112
16117
  const e = r.value ? `"${r.value}"` : null;
16113
16118
  return wr({ font_family: e });
16114
16119
  }
16115
- }), tB = xt.create({
16120
+ }), tB = Ot.create({
16116
16121
  name: "heading",
16117
16122
  addOptions() {
16118
16123
  return {
@@ -16138,7 +16143,7 @@ const eB = je.create({
16138
16143
  }));
16139
16144
  },
16140
16145
  renderHTML({ node: r, HTMLAttributes: e }) {
16141
- return [`h${this.options.levels.includes(r.attrs.level) ? r.attrs.level : this.options.levels[0]}`, mn(this.options.HTMLAttributes, e), 0];
16146
+ return [`h${this.options.levels.includes(r.attrs.level) ? r.attrs.level : this.options.levels[0]}`, vn(this.options.HTMLAttributes, e), 0];
16142
16147
  },
16143
16148
  addCommands() {
16144
16149
  return {
@@ -16255,12 +16260,12 @@ const rB = te.create({
16255
16260
  };
16256
16261
  },
16257
16262
  onCreate() {
16258
- const r = wt.document.querySelector("[data-zw-styles]");
16263
+ const r = Ct.document.querySelector("[data-zw-styles]");
16259
16264
  if (r) {
16260
16265
  this.storage.presetStyleEl = r;
16261
16266
  return;
16262
16267
  }
16263
- this.storage.presetStyleEl = wt.document.createElement("style"), this.storage.presetStyleEl.dataset.zwStyles = "";
16268
+ this.storage.presetStyleEl = Ct.document.createElement("style"), this.storage.presetStyleEl.dataset.zwStyles = "";
16264
16269
  for (const e of this.options.presets) {
16265
16270
  const n = [` ${np(this.options.baseClass, e)} {`];
16266
16271
  for (const i of vo.values)
@@ -16270,7 +16275,7 @@ const rB = te.create({
16270
16275
  }
16271
16276
  n.push("}"), this.storage.presetStyleEl.innerHTML += n.join(" ");
16272
16277
  }
16273
- wt.head.append(this.storage.presetStyleEl);
16278
+ Ct.head.append(this.storage.presetStyleEl);
16274
16279
  }
16275
16280
  }), nB = je.create({
16276
16281
  name: ne.FONT_WEIGHT,
@@ -16649,11 +16654,11 @@ const rB = te.create({
16649
16654
  return {
16650
16655
  applyCaseStyle: O(({ commands: r }, e) => {
16651
16656
  switch (e) {
16652
- case Qr.CAPITALIZE:
16657
+ case en.CAPITALIZE:
16653
16658
  return r.applyCapitalize();
16654
- case Qr.LOWERCASE:
16659
+ case en.LOWERCASE:
16655
16660
  return r.applyLowerCase();
16656
- case Qr.UPPERCASE:
16661
+ case en.UPPERCASE:
16657
16662
  return r.applyUpperCase();
16658
16663
  }
16659
16664
  }),
@@ -16782,7 +16787,7 @@ const rB = te.create({
16782
16787
  })
16783
16788
  };
16784
16789
  }
16785
- }), hB = xt.create({
16790
+ }), hB = Ot.create({
16786
16791
  name: "listItem",
16787
16792
  addOptions() {
16788
16793
  return {
@@ -16799,7 +16804,7 @@ const rB = te.create({
16799
16804
  ];
16800
16805
  },
16801
16806
  renderHTML({ HTMLAttributes: r }) {
16802
- return ["li", mn(this.options.HTMLAttributes, r), 0];
16807
+ return ["li", vn(this.options.HTMLAttributes, r), 0];
16803
16808
  },
16804
16809
  addKeyboardShortcuts() {
16805
16810
  return {
@@ -16814,7 +16819,7 @@ const rB = te.create({
16814
16819
  const { Enter: r } = this.parent();
16815
16820
  return { Enter: r };
16816
16821
  }
16817
- }), mB = xt.create({
16822
+ }), mB = Ot.create({
16818
16823
  name: ee.LIST,
16819
16824
  content: `${ee.LIST_ITEM}+`,
16820
16825
  group: "block list",
@@ -16947,35 +16952,35 @@ var W = function() {
16947
16952
  for (; o < s - 1; )
16948
16953
  a = i(), w(e, t[o], a), e = a, o++;
16949
16954
  w(e, t[s - 1], n);
16950
- }, Ue = "DOMAIN", Et = "LOCALHOST", lt = "TLD", Pe = "NUM", hn = "PROTOCOL", Rc = "MAILTO", zg = "WS", Pc = "NL", qr = "OPENBRACE", Jn = "OPENBRACKET", Yn = "OPENANGLEBRACKET", Xn = "OPENPAREN", ar = "CLOSEBRACE", Ur = "CLOSEBRACKET", Kr = "CLOSEANGLEBRACKET", Gr = "CLOSEPAREN", Co = "AMPERSAND", Oo = "APOSTROPHE", ko = "ASTERISK", Jr = "AT", Ao = "BACKSLASH", To = "BACKTICK", Mo = "CARET", Zn = "COLON", Bc = "COMMA", $o = "DOLLAR", Nt = "DOT", Fo = "EQUALS", Lc = "EXCLAMATION", Io = "HYPHEN", No = "PERCENT", Ro = "PIPE", Po = "PLUS", Bo = "POUND", Lo = "QUERY", zc = "QUOTE", jc = "SEMI", Dt = "SLASH", zo = "TILDE", jo = "UNDERSCORE", Vo = "SYM", gB = /* @__PURE__ */ Object.freeze({
16955
+ }, Ue = "DOMAIN", Dt = "LOCALHOST", lt = "TLD", Pe = "NUM", pn = "PROTOCOL", Rc = "MAILTO", zg = "WS", Pc = "NL", Ur = "OPENBRACE", Jn = "OPENBRACKET", Yn = "OPENANGLEBRACKET", Xn = "OPENPAREN", ar = "CLOSEBRACE", Kr = "CLOSEBRACKET", Gr = "CLOSEANGLEBRACKET", Jr = "CLOSEPAREN", Co = "AMPERSAND", Oo = "APOSTROPHE", ko = "ASTERISK", Yr = "AT", Ao = "BACKSLASH", To = "BACKTICK", Mo = "CARET", Zn = "COLON", Bc = "COMMA", $o = "DOLLAR", Pt = "DOT", Fo = "EQUALS", Lc = "EXCLAMATION", Io = "HYPHEN", No = "PERCENT", Ro = "PIPE", Po = "PLUS", Bo = "POUND", Lo = "QUERY", zc = "QUOTE", jc = "SEMI", xt = "SLASH", zo = "TILDE", jo = "UNDERSCORE", Vo = "SYM", gB = /* @__PURE__ */ Object.freeze({
16951
16956
  __proto__: null,
16952
16957
  DOMAIN: Ue,
16953
- LOCALHOST: Et,
16958
+ LOCALHOST: Dt,
16954
16959
  TLD: lt,
16955
16960
  NUM: Pe,
16956
- PROTOCOL: hn,
16961
+ PROTOCOL: pn,
16957
16962
  MAILTO: Rc,
16958
16963
  WS: zg,
16959
16964
  NL: Pc,
16960
- OPENBRACE: qr,
16965
+ OPENBRACE: Ur,
16961
16966
  OPENBRACKET: Jn,
16962
16967
  OPENANGLEBRACKET: Yn,
16963
16968
  OPENPAREN: Xn,
16964
16969
  CLOSEBRACE: ar,
16965
- CLOSEBRACKET: Ur,
16966
- CLOSEANGLEBRACKET: Kr,
16967
- CLOSEPAREN: Gr,
16970
+ CLOSEBRACKET: Kr,
16971
+ CLOSEANGLEBRACKET: Gr,
16972
+ CLOSEPAREN: Jr,
16968
16973
  AMPERSAND: Co,
16969
16974
  APOSTROPHE: Oo,
16970
16975
  ASTERISK: ko,
16971
- AT: Jr,
16976
+ AT: Yr,
16972
16977
  BACKSLASH: Ao,
16973
16978
  BACKTICK: To,
16974
16979
  CARET: Mo,
16975
16980
  COLON: Zn,
16976
16981
  COMMA: Bc,
16977
16982
  DOLLAR: $o,
16978
- DOT: Nt,
16983
+ DOT: Pt,
16979
16984
  EQUALS: Fo,
16980
16985
  EXCLAMATION: Lc,
16981
16986
  HYPHEN: Io,
@@ -16986,7 +16991,7 @@ var W = function() {
16986
16991
  QUERY: Lo,
16987
16992
  QUOTE: zc,
16988
16993
  SEMI: jc,
16989
- SLASH: Dt,
16994
+ SLASH: xt,
16990
16995
  TILDE: zo,
16991
16996
  UNDERSCORE: jo,
16992
16997
  SYM: Vo
@@ -17001,18 +17006,18 @@ function yB() {
17001
17006
  var x = a();
17002
17007
  return x.t = _, x;
17003
17008
  };
17004
- vB(e, [["'", M(Oo)], ["{", M(qr)], ["[", M(Jn)], ["<", M(Yn)], ["(", M(Xn)], ["}", M(ar)], ["]", M(Ur)], [">", M(Kr)], [")", M(Gr)], ["&", M(Co)], ["*", M(ko)], ["@", M(Jr)], ["`", M(To)], ["^", M(Mo)], [":", M(Zn)], [",", M(Bc)], ["$", M($o)], [".", M(Nt)], ["=", M(Fo)], ["!", M(Lc)], ["-", M(Io)], ["%", M(No)], ["|", M(Ro)], ["+", M(Po)], ["#", M(Bo)], ["?", M(Lo)], ['"', M(zc)], ["/", M(Dt)], [";", M(jc)], ["~", M(zo)], ["_", M(jo)], ["\\", M(Ao)]]), w(e, `
17009
+ vB(e, [["'", M(Oo)], ["{", M(Ur)], ["[", M(Jn)], ["<", M(Yn)], ["(", M(Xn)], ["}", M(ar)], ["]", M(Kr)], [">", M(Gr)], [")", M(Jr)], ["&", M(Co)], ["*", M(ko)], ["@", M(Yr)], ["`", M(To)], ["^", M(Mo)], [":", M(Zn)], [",", M(Bc)], ["$", M($o)], [".", M(Pt)], ["=", M(Fo)], ["!", M(Lc)], ["-", M(Io)], ["%", M(No)], ["|", M(Ro)], ["+", M(Po)], ["#", M(Bo)], ["?", M(Lo)], ['"', M(zc)], ["/", M(xt)], [";", M(jc)], ["~", M(zo)], ["_", M(jo)], ["\\", M(Ao)]]), w(e, `
17005
17010
  `, M(Pc)), oe(e, ap, o), w(o, `
17006
17011
  `, W()), oe(o, ap, o);
17007
17012
  for (var u = 0; u < sp.length; u++)
17008
17013
  or(e, sp[u], l(lt), a);
17009
17014
  var c = a(), f = a(), d = a(), h = a();
17010
17015
  or(e, "file", c, a), or(e, "ftp", f, a), or(e, "http", d, a), or(e, "mailto", h, a);
17011
- var p = a(), m = M(hn), v = M(Rc);
17016
+ var p = a(), m = M(pn), v = M(Rc);
17012
17017
  w(f, "s", p), w(f, ":", m), w(d, "s", p), w(d, ":", m), w(c, ":", m), w(p, ":", m), w(h, ":", v);
17013
17018
  for (var g = a(), y = 0; y < r.length; y++)
17014
17019
  or(e, r[y], g, a);
17015
- return w(g, ":", m), or(e, "localhost", l(Et), a), oe(e, Rn, t), oe(e, Fn, n), oe(e, In, n), oe(e, Nn, n), oe(t, Rn, t), oe(t, Fn, n), oe(t, In, n), oe(t, Nn, n), w(t, "-", i), w(n, "-", i), w(i, "-", i), oe(n, Rn, n), oe(n, Fn, n), oe(n, In, n), oe(n, Nn, n), oe(i, Rn, n), oe(i, Fn, n), oe(i, In, n), oe(i, Nn, n), e.jd = M(Vo), e;
17020
+ return w(g, ":", m), or(e, "localhost", l(Dt), a), oe(e, Rn, t), oe(e, Fn, n), oe(e, In, n), oe(e, Nn, n), oe(t, Rn, t), oe(t, Fn, n), oe(t, In, n), oe(t, Nn, n), w(t, "-", i), w(n, "-", i), w(i, "-", i), oe(n, Rn, n), oe(n, Fn, n), oe(n, In, n), oe(n, Nn, n), oe(i, Rn, n), oe(i, Fn, n), oe(i, In, n), oe(i, Nn, n), e.jd = M(Vo), e;
17016
17021
  }
17017
17022
  function bB(r, e) {
17018
17023
  for (var t = _B(e.replace(/[A-Z]/g, function(h) {
@@ -17150,19 +17155,19 @@ var jg = Ar("email", {
17150
17155
  toHref: function() {
17151
17156
  return "mailto:" + this.toString();
17152
17157
  }
17153
- }), El = Ar("text"), Vg = Ar("nl"), It = Ar("url", {
17158
+ }), El = Ar("text"), Vg = Ar("nl"), Rt = Ar("url", {
17154
17159
  isLink: !0,
17155
17160
  toHref: function() {
17156
- for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : me.defaultProtocol, t = this.tk, n = !1, i = !1, o = [], s = 0; t[s].t === hn; )
17161
+ for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : me.defaultProtocol, t = this.tk, n = !1, i = !1, o = [], s = 0; t[s].t === pn; )
17157
17162
  n = !0, o.push(t[s].v), s++;
17158
- for (; t[s].t === Dt; )
17163
+ for (; t[s].t === xt; )
17159
17164
  i = !0, o.push(t[s].v), s++;
17160
17165
  for (; s < t.length; s++)
17161
17166
  o.push(t[s].v);
17162
17167
  return o = o.join(""), n || i || (o = "".concat(e, "://").concat(o)), o;
17163
17168
  },
17164
17169
  hasProtocol: function() {
17165
- return this.tk[0].t === hn;
17170
+ return this.tk[0].t === pn;
17166
17171
  }
17167
17172
  }), DB = /* @__PURE__ */ Object.freeze({
17168
17173
  __proto__: null,
@@ -17173,15 +17178,15 @@ var jg = Ar("email", {
17173
17178
  Email: Sl,
17174
17179
  Text: El,
17175
17180
  Nl: Vg,
17176
- Url: It
17181
+ Url: Rt
17177
17182
  });
17178
17183
  function wB() {
17179
- var r = W(), e = W(), t = W(), n = W(), i = W(), o = W(), s = W(), a = M(It), l = W(), u = M(It), c = M(It), f = W(), d = W(), h = W(), p = W(), m = W(), v = M(It), g = M(It), y = M(It), D = M(It), _ = W(), x = W(), b = W(), C = W(), E = W(), F = W(), V = M(Sl), j = W(), Q = M(Sl), J = M(jg), st = W(), Ee = W(), Y = W(), De = W(), Tr = M(Vg);
17180
- w(r, Pc, Tr), w(r, hn, e), w(r, Rc, t), w(e, Dt, n), w(n, Dt, i), w(r, lt, o), w(r, Ue, o), w(r, Et, a), w(r, Pe, o), w(i, lt, c), w(i, Ue, c), w(i, Pe, c), w(i, Et, c), w(o, Nt, s), w(E, Nt, F), w(s, lt, a), w(s, Ue, o), w(s, Pe, o), w(s, Et, o), w(F, lt, V), w(F, Ue, E), w(F, Pe, E), w(F, Et, E), w(a, Nt, s), w(V, Nt, F), w(a, Zn, l), w(a, Dt, c), w(l, Pe, u), w(u, Dt, c), w(V, Zn, j), w(j, Pe, Q);
17181
- var K = [Co, ko, Jr, Ao, To, Mo, $o, Ue, Fo, Io, Et, Pe, No, Ro, Po, Bo, hn, Dt, Vo, zo, lt, jo], X = [Oo, Kr, ar, Ur, Gr, Zn, Bc, Nt, Lc, Yn, qr, Jn, Xn, Lo, zc, jc];
17182
- w(c, qr, d), w(c, Jn, h), w(c, Yn, p), w(c, Xn, m), w(f, qr, d), w(f, Jn, h), w(f, Yn, p), w(f, Xn, m), w(d, ar, c), w(h, Ur, c), w(p, Kr, c), w(m, Gr, c), w(v, ar, c), w(g, Ur, c), w(y, Kr, c), w(D, Gr, c), w(_, ar, c), w(x, Ur, c), w(b, Kr, c), w(C, Gr, c), N(d, K, v), N(h, K, g), N(p, K, y), N(m, K, D), N(d, X, _), N(h, X, x), N(p, X, b), N(m, X, C), N(v, K, v), N(g, K, g), N(y, K, y), N(D, K, D), N(v, X, v), N(g, X, g), N(y, X, y), N(D, X, D), N(_, K, v), N(x, K, g), N(b, K, y), N(C, K, D), N(_, X, _), N(x, X, x), N(b, X, b), N(C, X, C), N(c, K, c), N(f, K, c), N(c, X, f), N(f, X, f), w(t, lt, J), w(t, Ue, J), w(t, Pe, J), w(t, Et, J), N(J, K, J), N(J, X, st), N(st, K, J), N(st, X, st);
17183
- var _t = [Co, Oo, ko, Ao, To, Mo, ar, $o, Ue, Fo, Io, Pe, qr, No, Ro, Po, Bo, Lo, Dt, Vo, zo, lt, jo];
17184
- return N(o, _t, Ee), w(o, Jr, Y), N(a, _t, Ee), w(a, Jr, Y), N(s, _t, Ee), N(Ee, _t, Ee), w(Ee, Jr, Y), w(Ee, Nt, De), N(De, _t, Ee), w(Y, lt, E), w(Y, Ue, E), w(Y, Pe, E), w(Y, Et, V), r;
17184
+ var r = W(), e = W(), t = W(), n = W(), i = W(), o = W(), s = W(), a = M(Rt), l = W(), u = M(Rt), c = M(Rt), f = W(), d = W(), h = W(), p = W(), m = W(), v = M(Rt), g = M(Rt), y = M(Rt), D = M(Rt), _ = W(), x = W(), b = W(), C = W(), E = W(), F = W(), V = M(Sl), j = W(), Q = M(Sl), J = M(jg), st = W(), Ee = W(), Y = W(), De = W(), Tr = M(Vg);
17185
+ w(r, Pc, Tr), w(r, pn, e), w(r, Rc, t), w(e, xt, n), w(n, xt, i), w(r, lt, o), w(r, Ue, o), w(r, Dt, a), w(r, Pe, o), w(i, lt, c), w(i, Ue, c), w(i, Pe, c), w(i, Dt, c), w(o, Pt, s), w(E, Pt, F), w(s, lt, a), w(s, Ue, o), w(s, Pe, o), w(s, Dt, o), w(F, lt, V), w(F, Ue, E), w(F, Pe, E), w(F, Dt, E), w(a, Pt, s), w(V, Pt, F), w(a, Zn, l), w(a, xt, c), w(l, Pe, u), w(u, xt, c), w(V, Zn, j), w(j, Pe, Q);
17186
+ var K = [Co, ko, Yr, Ao, To, Mo, $o, Ue, Fo, Io, Dt, Pe, No, Ro, Po, Bo, pn, xt, Vo, zo, lt, jo], X = [Oo, Gr, ar, Kr, Jr, Zn, Bc, Pt, Lc, Yn, Ur, Jn, Xn, Lo, zc, jc];
17187
+ w(c, Ur, d), w(c, Jn, h), w(c, Yn, p), w(c, Xn, m), w(f, Ur, d), w(f, Jn, h), w(f, Yn, p), w(f, Xn, m), w(d, ar, c), w(h, Kr, c), w(p, Gr, c), w(m, Jr, c), w(v, ar, c), w(g, Kr, c), w(y, Gr, c), w(D, Jr, c), w(_, ar, c), w(x, Kr, c), w(b, Gr, c), w(C, Jr, c), N(d, K, v), N(h, K, g), N(p, K, y), N(m, K, D), N(d, X, _), N(h, X, x), N(p, X, b), N(m, X, C), N(v, K, v), N(g, K, g), N(y, K, y), N(D, K, D), N(v, X, v), N(g, X, g), N(y, X, y), N(D, X, D), N(_, K, v), N(x, K, g), N(b, K, y), N(C, K, D), N(_, X, _), N(x, X, x), N(b, X, b), N(C, X, C), N(c, K, c), N(f, K, c), N(c, X, f), N(f, X, f), w(t, lt, J), w(t, Ue, J), w(t, Pe, J), w(t, Dt, J), N(J, K, J), N(J, X, st), N(st, K, J), N(st, X, st);
17188
+ var St = [Co, Oo, ko, Ao, To, Mo, ar, $o, Ue, Fo, Io, Pe, Ur, No, Ro, Po, Bo, Lo, xt, Vo, zo, lt, jo];
17189
+ return N(o, St, Ee), w(o, Yr, Y), N(a, St, Ee), w(a, Yr, Y), N(s, St, Ee), N(Ee, St, Ee), w(Ee, Yr, Y), w(Ee, Pt, De), N(De, St, Ee), w(Y, lt, E), w(Y, Ue, E), w(Y, Pe, E), w(Y, Dt, V), r;
17185
17190
  }
17186
17191
  function xB(r, e, t) {
17187
17192
  for (var n = t.length, i = 0, o = [], s = []; i < n; ) {
@@ -17361,7 +17366,7 @@ const $B = je.create({
17361
17366
  renderHTML({ HTMLAttributes: r }) {
17362
17367
  return [
17363
17368
  "a",
17364
- mn(this.options.HTMLAttributes, r),
17369
+ vn(this.options.HTMLAttributes, r),
17365
17370
  0
17366
17371
  ];
17367
17372
  },
@@ -17425,13 +17430,13 @@ const $B = je.create({
17425
17430
  parseHTML: (r) => r.getAttribute("target") || jt.SELF
17426
17431
  },
17427
17432
  destination: {
17428
- default: ht.URL,
17433
+ default: pt.URL,
17429
17434
  parseHTML: (r) => {
17430
17435
  const e = r.getAttribute("href");
17431
17436
  if (!e.startsWith("#"))
17432
- return ht.URL;
17437
+ return pt.URL;
17433
17438
  const t = e.replace("#", "");
17434
- return (this.options.pageBlocks.value || this.options.pageBlocks).find((o) => o.id === parseInt(t)) ? ht.BLOCK : ht.URL;
17439
+ return (this.options.pageBlocks.value || this.options.pageBlocks).find((o) => o.id === parseInt(t)) ? pt.BLOCK : pt.URL;
17435
17440
  }
17436
17441
  }
17437
17442
  };
@@ -17453,7 +17458,7 @@ const $B = je.create({
17453
17458
  };
17454
17459
  },
17455
17460
  renderHTML({ HTMLAttributes: r }) {
17456
- const e = r.destination === ht.BLOCK ? `#${r.href}` : r.href, n = `${this.options.basePresetClass + this.options.preset.id} zw-style`, i = {
17461
+ const e = r.destination === pt.BLOCK ? `#${r.href}` : r.href, n = `${this.options.basePresetClass + this.options.preset.id} zw-style`, i = {
17457
17462
  href: e,
17458
17463
  target: r.target,
17459
17464
  class: n
@@ -17481,7 +17486,7 @@ const $B = je.create({
17481
17486
  ];
17482
17487
  },
17483
17488
  renderHTML({ HTMLAttributes: r }) {
17484
- return ["sup", mn(this.options.HTMLAttributes, r), 0];
17489
+ return ["sup", vn(this.options.HTMLAttributes, r), 0];
17485
17490
  },
17486
17491
  addCommands() {
17487
17492
  return {
@@ -17497,11 +17502,11 @@ const $B = je.create({
17497
17502
  }
17498
17503
  }), NB = IB.extend({
17499
17504
  addKeyboardShortcuts: null
17500
- }), RB = xt.create({
17505
+ }), RB = Ot.create({
17501
17506
  name: "doc",
17502
17507
  topNode: !0,
17503
17508
  content: "block+"
17504
- }), PB = xt.create({
17509
+ }), PB = Ot.create({
17505
17510
  name: "paragraph",
17506
17511
  priority: 1e3,
17507
17512
  addOptions() {
@@ -17517,7 +17522,7 @@ const $B = je.create({
17517
17522
  ];
17518
17523
  },
17519
17524
  renderHTML({ HTMLAttributes: r }) {
17520
- return ["p", mn(this.options.HTMLAttributes, r), 0];
17525
+ return ["p", vn(this.options.HTMLAttributes, r), 0];
17521
17526
  },
17522
17527
  addCommands() {
17523
17528
  return {
@@ -17529,7 +17534,7 @@ const $B = je.create({
17529
17534
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
17530
17535
  };
17531
17536
  }
17532
- }), BB = xt.create({
17537
+ }), BB = Ot.create({
17533
17538
  name: "text",
17534
17539
  group: "inline"
17535
17540
  }), LB = te.create({
@@ -17713,7 +17718,7 @@ class Je {
17713
17718
  return u > HB && (a = VB(a, u), s -= u), new Je(a.append(o), s);
17714
17719
  }
17715
17720
  remapping(e, t) {
17716
- let n = new Yr();
17721
+ let n = new Xr();
17717
17722
  return this.items.forEach((i, o) => {
17718
17723
  let s = i.mirrorOffset != null && o - i.mirrorOffset >= e ? n.maps.length - i.mirrorOffset : void 0;
17719
17724
  n.appendMap(i.map, s);
@@ -17792,7 +17797,7 @@ class ct {
17792
17797
  }
17793
17798
  }
17794
17799
  }
17795
- class Rt {
17800
+ class Bt {
17796
17801
  constructor(e, t, n, i) {
17797
17802
  this.done = e, this.undone = t, this.prevRanges = n, this.prevTime = i;
17798
17803
  }
@@ -17802,17 +17807,17 @@ function WB(r, e, t, n) {
17802
17807
  let i = t.getMeta(qt), o;
17803
17808
  if (i)
17804
17809
  return i.historyState;
17805
- t.getMeta(UB) && (r = new Rt(r.done, r.undone, null, 0));
17810
+ t.getMeta(UB) && (r = new Bt(r.done, r.undone, null, 0));
17806
17811
  let s = t.getMeta("appendedTransaction");
17807
17812
  if (t.steps.length == 0)
17808
17813
  return r;
17809
17814
  if (s && s.getMeta(qt))
17810
- return s.getMeta(qt).redo ? new Rt(r.done.addTransform(t, void 0, n, eo(e)), r.undone, up(t.mapping.maps[t.steps.length - 1]), r.prevTime) : new Rt(r.done, r.undone.addTransform(t, void 0, n, eo(e)), null, r.prevTime);
17815
+ return s.getMeta(qt).redo ? new Bt(r.done.addTransform(t, void 0, n, eo(e)), r.undone, up(t.mapping.maps[t.steps.length - 1]), r.prevTime) : new Bt(r.done, r.undone.addTransform(t, void 0, n, eo(e)), null, r.prevTime);
17811
17816
  if (t.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
17812
17817
  let a = r.prevTime == 0 || !s && (r.prevTime < (t.time || 0) - n.newGroupDelay || !qB(t, r.prevRanges)), l = s ? Ia(r.prevRanges, t.mapping) : up(t.mapping.maps[t.steps.length - 1]);
17813
- return new Rt(r.done.addTransform(t, a ? e.selection.getBookmark() : void 0, n, eo(e)), Je.empty, l, t.time);
17818
+ return new Bt(r.done.addTransform(t, a ? e.selection.getBookmark() : void 0, n, eo(e)), Je.empty, l, t.time);
17814
17819
  } else
17815
- return (o = t.getMeta("rebased")) ? new Rt(r.done.rebased(t, o), r.undone.rebased(t, o), Ia(r.prevRanges, t.mapping), r.prevTime) : new Rt(r.done.addMaps(t.mapping.maps), r.undone.addMaps(t.mapping.maps), Ia(r.prevRanges, t.mapping), r.prevTime);
17820
+ return (o = t.getMeta("rebased")) ? new Bt(r.done.rebased(t, o), r.undone.rebased(t, o), Ia(r.prevRanges, t.mapping), r.prevTime) : new Bt(r.done.addMaps(t.mapping.maps), r.undone.addMaps(t.mapping.maps), Ia(r.prevRanges, t.mapping), r.prevTime);
17816
17821
  }
17817
17822
  function qB(r, e) {
17818
17823
  if (!e)
@@ -17843,7 +17848,7 @@ function Ug(r, e, t, n) {
17843
17848
  let i = eo(e), o = qt.get(e).spec.config, s = (n ? r.undone : r.done).popEvent(e, i);
17844
17849
  if (!s)
17845
17850
  return;
17846
- let a = s.selection.resolve(s.transform.doc), l = (n ? r.done : r.undone).addTransform(s.transform, e.selection.getBookmark(), o, i), u = new Rt(n ? l : s.remaining, n ? s.remaining : l, null, 0);
17851
+ let a = s.selection.resolve(s.transform.doc), l = (n ? r.done : r.undone).addTransform(s.transform, e.selection.getBookmark(), o, i), u = new Bt(n ? l : s.remaining, n ? s.remaining : l, null, 0);
17847
17852
  t(s.transform.setSelection(a).setMeta(qt, { redo: n, historyState: u }).scrollIntoView());
17848
17853
  }
17849
17854
  let Na = !1, fp = null;
@@ -17868,7 +17873,7 @@ function KB(r = {}) {
17868
17873
  key: qt,
17869
17874
  state: {
17870
17875
  init() {
17871
- return new Rt(Je.empty, Je.empty, null, 0);
17876
+ return new Bt(Je.empty, Je.empty, null, 0);
17872
17877
  },
17873
17878
  apply(e, t, n) {
17874
17879
  return WB(t, n, e, r);
@@ -17940,31 +17945,31 @@ const Kg = (r, e) => {
17940
17945
  }))
17941
17946
  };
17942
17947
  }
17943
- }), YB = Ot({
17948
+ }), YB = At({
17944
17949
  find: /"/,
17945
17950
  replace: "\u201D"
17946
- }), XB = Ot({
17951
+ }), XB = At({
17947
17952
  find: /'/,
17948
17953
  replace: "\u2019"
17949
- }), ZB = Ot({
17954
+ }), ZB = At({
17950
17955
  find: /\(c\)/i,
17951
17956
  replace: "\xA9"
17952
- }), QB = Ot({
17957
+ }), QB = At({
17953
17958
  find: /\.\.\./,
17954
17959
  replace: "\u2026"
17955
- }), eL = Ot({
17960
+ }), eL = At({
17956
17961
  find: /--/,
17957
17962
  replace: "\u2014"
17958
- }), tL = Ot({
17963
+ }), tL = At({
17959
17964
  find: /(?:^|[\s{[(<'"\u2018\u201C])(")/,
17960
17965
  replace: "\u201C"
17961
- }), rL = Ot({
17966
+ }), rL = At({
17962
17967
  find: /(?:^|[\s{[(<'"\u2018\u201C])(')/,
17963
17968
  replace: "\u2018"
17964
- }), nL = Ot({
17969
+ }), nL = At({
17965
17970
  find: /\(r\)/i,
17966
17971
  replace: "\xAE"
17967
- }), iL = Ot({
17972
+ }), iL = At({
17968
17973
  find: /\(tm\)/i,
17969
17974
  replace: "\u2122"
17970
17975
  }), oL = te.create({
@@ -18043,7 +18048,7 @@ class aL {
18043
18048
  class lL extends aL {
18044
18049
  buildProps() {
18045
18050
  return {
18046
- transformPastedHTML: Lt.normalize,
18051
+ transformPastedHTML: wt.normalize,
18047
18052
  handlePaste: this._handlePaste.bind(this)
18048
18053
  };
18049
18054
  }
@@ -18240,10 +18245,10 @@ const Ra = 5, dp = 112, mL = {
18240
18245
  },
18241
18246
  emits: [
18242
18247
  "input",
18243
- "updateFavoriteColors"
18248
+ "update-favorite-colors"
18244
18249
  ],
18245
18250
  setup(r, { emit: e }) {
18246
- wt.use(r.window);
18251
+ Ct.use(r.window);
18247
18252
  const t = r.fonts.map((h) => new dL(h)), n = q(null), i = q(null), o = T(() => {
18248
18253
  var h;
18249
18254
  return ((h = i.value) == null ? void 0 : h.$el) || document.body;
@@ -18275,7 +18280,7 @@ const Ra = 5, dp = 112, mL = {
18275
18280
  listRef: fe(r, "favoriteColors"),
18276
18281
  triggerUpdate: (h) => e("update-favorite-colors", h)
18277
18282
  });
18278
- return ut(L.EDITOR, c), ut(L.FONTS, t), ut(L.FONT_SIZES, f), ut(L.LOCAL_STORAGE, new oI(localStorage)), ut(L.FAVORITE_COLORS, d), ut(L.PAGE_BLOCKS, u), {
18283
+ return ft(L.EDITOR, c), ft(L.FONTS, t), ft(L.FONT_SIZES, f), ft(L.LOCAL_STORAGE, new oI(localStorage)), ft(L.FAVORITE_COLORS, d), ft(L.PAGE_BLOCKS, u), {
18279
18284
  editor: c,
18280
18285
  toolbarRef: n,
18281
18286
  wysiwygRef: i,