@zealsolutions/zeal-ui 1.0.0-alpha.355 → 1.0.0-alpha.356

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.
@@ -174,7 +174,7 @@ function Ld(n, e, t, r) {
174
174
  t -= a, r -= a;
175
175
  }
176
176
  }
177
- class S {
177
+ class T {
178
178
  /**
179
179
  @internal
180
180
  */
@@ -229,7 +229,7 @@ class S {
229
229
  let t = this.lastChild, r = e.firstChild, i = this.content.slice(), o = 0;
230
230
  for (t.isText && t.sameMarkup(r) && (i[i.length - 1] = t.withText(t.text + r.text), o = 1); o < e.content.length; o++)
231
231
  i.push(e.content[o]);
232
- return new S(i, this.size + e.size);
232
+ return new T(i, this.size + e.size);
233
233
  }
234
234
  /**
235
235
  Cut out the sub-fragment between the two given positions.
@@ -243,13 +243,13 @@ class S {
243
243
  let l = this.content[o], a = s + l.nodeSize;
244
244
  a > e && ((s < e || a > t) && (l.isText ? l = l.cut(Math.max(0, e - s), Math.min(l.text.length, t - s)) : l = l.cut(Math.max(0, e - s - 1), Math.min(l.content.size, t - s - 1))), r.push(l), i += l.nodeSize), s = a;
245
245
  }
246
- return new S(r, i);
246
+ return new T(r, i);
247
247
  }
248
248
  /**
249
249
  @internal
250
250
  */
251
251
  cutByIndex(e, t) {
252
- return e == t ? S.empty : e == 0 && t == this.content.length ? this : new S(this.content.slice(e, t));
252
+ return e == t ? T.empty : e == 0 && t == this.content.length ? this : new T(this.content.slice(e, t));
253
253
  }
254
254
  /**
255
255
  Create a new fragment in which the node at the given index is
@@ -260,21 +260,21 @@ class S {
260
260
  if (r == t)
261
261
  return this;
262
262
  let i = this.content.slice(), o = this.size + t.nodeSize - r.nodeSize;
263
- return i[e] = t, new S(i, o);
263
+ return i[e] = t, new T(i, o);
264
264
  }
265
265
  /**
266
266
  Create a new fragment by prepending the given node to this
267
267
  fragment.
268
268
  */
269
269
  addToStart(e) {
270
- return new S([e].concat(this.content), this.size + e.nodeSize);
270
+ return new T([e].concat(this.content), this.size + e.nodeSize);
271
271
  }
272
272
  /**
273
273
  Create a new fragment by appending the given node to this
274
274
  fragment.
275
275
  */
276
276
  addToEnd(e) {
277
- return new S(this.content.concat(e), this.size + e.nodeSize);
277
+ return new T(this.content.concat(e), this.size + e.nodeSize);
278
278
  }
279
279
  /**
280
280
  Compare this fragment to another one.
@@ -389,10 +389,10 @@ class S {
389
389
  */
390
390
  static fromJSON(e, t) {
391
391
  if (!t)
392
- return S.empty;
392
+ return T.empty;
393
393
  if (!Array.isArray(t))
394
394
  throw new RangeError("Invalid input for Fragment.fromJSON");
395
- return new S(t.map(e.nodeFromJSON));
395
+ return new T(t.map(e.nodeFromJSON));
396
396
  }
397
397
  /**
398
398
  Build a fragment from an array of nodes. Ensures that adjacent
@@ -400,13 +400,13 @@ class S {
400
400
  */
401
401
  static fromArray(e) {
402
402
  if (!e.length)
403
- return S.empty;
403
+ return T.empty;
404
404
  let t, r = 0;
405
405
  for (let i = 0; i < e.length; i++) {
406
406
  let o = e[i];
407
407
  r += o.nodeSize, i && o.isText && e[i - 1].sameMarkup(o) ? (t || (t = e.slice(0, i)), t[t.length - 1] = o.withText(t[t.length - 1].text + o.text)) : t && t.push(o);
408
408
  }
409
- return new S(t || e, r);
409
+ return new T(t || e, r);
410
410
  }
411
411
  /**
412
412
  Create a fragment from something that can be interpreted as a
@@ -416,17 +416,17 @@ class S {
416
416
  */
417
417
  static from(e) {
418
418
  if (!e)
419
- return S.empty;
420
- if (e instanceof S)
419
+ return T.empty;
420
+ if (e instanceof T)
421
421
  return e;
422
422
  if (Array.isArray(e))
423
423
  return this.fromArray(e);
424
424
  if (e.attrs)
425
- return new S([e], e.nodeSize);
425
+ return new T([e], e.nodeSize);
426
426
  throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
427
427
  }
428
428
  }
429
- S.empty = new S([], 0);
429
+ T.empty = new T([], 0);
430
430
  const fs = { index: 0, offset: 0 };
431
431
  function wi(n, e) {
432
432
  return fs.index = n, fs.offset = e, fs;
@@ -628,7 +628,7 @@ class M {
628
628
  let r = t.openStart || 0, i = t.openEnd || 0;
629
629
  if (typeof r != "number" || typeof i != "number")
630
630
  throw new RangeError("Invalid input for Slice.fromJSON");
631
- return new M(S.fromJSON(e, t.content), r, i);
631
+ return new M(T.fromJSON(e, t.content), r, i);
632
632
  }
633
633
  /**
634
634
  Create a slice from a fragment by taking the maximum possible
@@ -643,7 +643,7 @@ class M {
643
643
  return new M(e, r, i);
644
644
  }
645
645
  }
646
- M.empty = new M(S.empty, 0, 0);
646
+ M.empty = new M(T.empty, 0, 0);
647
647
  function Pd(n, e, t) {
648
648
  let { index: r, offset: i } = n.findIndex(e), o = n.maybeChild(r), { index: s, offset: l } = n.findIndex(t);
649
649
  if (i == e || o.isText) {
@@ -709,7 +709,7 @@ function gn(n, e) {
709
709
  }
710
710
  function Hd(n, e, t, r, i) {
711
711
  let o = n.depth > i && Ws(n, e, i + 1), s = r.depth > i && Ws(t, r, i + 1), l = [];
712
- return Ar(null, n, i, l), o && s && e.index(i) == t.index(i) ? ($d(o, s), mn(gn(o, Hd(n, e, t, r, i + 1)), l)) : (o && mn(gn(o, Gi(n, e, i + 1)), l), Ar(e, t, i, l), s && mn(gn(s, Gi(t, r, i + 1)), l)), Ar(r, null, i, l), new S(l);
712
+ return Ar(null, n, i, l), o && s && e.index(i) == t.index(i) ? ($d(o, s), mn(gn(o, Hd(n, e, t, r, i + 1)), l)) : (o && mn(gn(o, Gi(n, e, i + 1)), l), Ar(e, t, i, l), s && mn(gn(s, Gi(t, r, i + 1)), l)), Ar(r, null, i, l), new T(l);
713
713
  }
714
714
  function Gi(n, e, t) {
715
715
  let r = [];
@@ -717,12 +717,12 @@ function Gi(n, e, t) {
717
717
  let i = Ws(n, e, t + 1);
718
718
  mn(gn(i, Gi(n, e, t + 1)), r);
719
719
  }
720
- return Ar(e, null, t, r), new S(r);
720
+ return Ar(e, null, t, r), new T(r);
721
721
  }
722
722
  function Ip(n, e) {
723
723
  let t = e.depth - n.openStart, i = e.node(t).copy(n.content);
724
724
  for (let o = t - 1; o >= 0; o--)
725
- i = e.node(o).copy(S.from(i));
725
+ i = e.node(o).copy(T.from(i));
726
726
  return {
727
727
  start: i.resolveNoCache(n.openStart + t),
728
728
  end: i.resolveNoCache(i.content.size - n.openEnd - t)
@@ -1027,7 +1027,7 @@ let yn = class Us {
1027
1027
  @internal
1028
1028
  */
1029
1029
  constructor(e, t, r, i = Z.none) {
1030
- this.type = e, this.attrs = t, this.marks = i, this.content = r || S.empty;
1030
+ this.type = e, this.attrs = t, this.marks = i, this.content = r || T.empty;
1031
1031
  }
1032
1032
  /**
1033
1033
  The size of this node, as defined by the integer-based [indexing
@@ -1310,7 +1310,7 @@ let yn = class Us {
1310
1310
  can optionally pass `start` and `end` indices into the
1311
1311
  replacement fragment.
1312
1312
  */
1313
- canReplace(e, t, r = S.empty, i = 0, o = r.childCount) {
1313
+ canReplace(e, t, r = T.empty, i = 0, o = r.childCount) {
1314
1314
  let s = this.contentMatchAt(e).matchFragment(r, i, o), l = s && s.matchFragment(this.content, t);
1315
1315
  if (!l || !l.validEnd)
1316
1316
  return !1;
@@ -1381,7 +1381,7 @@ let yn = class Us {
1381
1381
  throw new RangeError("Invalid text node in JSON");
1382
1382
  return e.text(t.text, r);
1383
1383
  }
1384
- let i = S.fromJSON(e, t.content), o = e.nodeType(t.type).create(t.attrs, i, r);
1384
+ let i = T.fromJSON(e, t.content), o = e.nodeType(t.type).create(t.attrs, i, r);
1385
1385
  return o.type.checkAttrs(o.attrs), o;
1386
1386
  }
1387
1387
  };
@@ -1509,7 +1509,7 @@ class Sn {
1509
1509
  function o(s, l) {
1510
1510
  let a = s.matchFragment(e, r);
1511
1511
  if (a && (!t || a.validEnd))
1512
- return S.from(l.map((c) => c.createAndFill()));
1512
+ return T.from(l.map((c) => c.createAndFill()));
1513
1513
  for (let c = 0; c < s.next.length; c++) {
1514
1514
  let { type: d, next: u } = s.next[c];
1515
1515
  if (!(d.isText || d.hasRequiredAttrs()) && i.indexOf(u) == -1) {
@@ -1892,7 +1892,7 @@ let Oa = class Kd {
1892
1892
  create(e = null, t, r) {
1893
1893
  if (this.isText)
1894
1894
  throw new Error("NodeType.create can't construct text nodes");
1895
- return new yn(this, this.computeAttrs(e), S.from(t), Z.setFrom(r));
1895
+ return new yn(this, this.computeAttrs(e), T.from(t), Z.setFrom(r));
1896
1896
  }
1897
1897
  /**
1898
1898
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
@@ -1900,7 +1900,7 @@ let Oa = class Kd {
1900
1900
  if it doesn't match.
1901
1901
  */
1902
1902
  createChecked(e = null, t, r) {
1903
- return t = S.from(t), this.checkContent(t), new yn(this, this.computeAttrs(e), t, Z.setFrom(r));
1903
+ return t = T.from(t), this.checkContent(t), new yn(this, this.computeAttrs(e), t, Z.setFrom(r));
1904
1904
  }
1905
1905
  /**
1906
1906
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
@@ -1911,13 +1911,13 @@ let Oa = class Kd {
1911
1911
  `Fragment.empty` as content.
1912
1912
  */
1913
1913
  createAndFill(e = null, t, r) {
1914
- if (e = this.computeAttrs(e), t = S.from(t), t.size) {
1914
+ if (e = this.computeAttrs(e), t = T.from(t), t.size) {
1915
1915
  let s = this.contentMatch.fillBefore(t);
1916
1916
  if (!s)
1917
1917
  return null;
1918
1918
  t = s.append(t);
1919
1919
  }
1920
- let i = this.contentMatch.matchFragment(t), o = i && i.fillBefore(S.empty, !0);
1920
+ let i = this.contentMatch.matchFragment(t), o = i && i.fillBefore(T.empty, !0);
1921
1921
  return o ? new yn(this, e, t.append(o), Z.setFrom(r)) : null;
1922
1922
  }
1923
1923
  /**
@@ -2336,7 +2336,7 @@ class ki {
2336
2336
  if (!this.match) {
2337
2337
  if (!this.type)
2338
2338
  return [];
2339
- let t = this.type.contentMatch.fillBefore(S.from(e));
2339
+ let t = this.type.contentMatch.fillBefore(T.from(e));
2340
2340
  if (t)
2341
2341
  this.match = this.type.contentMatch.matchFragment(t);
2342
2342
  else {
@@ -2354,8 +2354,8 @@ class ki {
2354
2354
  r.text.length == i[0].length ? this.content.pop() : this.content[this.content.length - 1] = o.withText(o.text.slice(0, o.text.length - i[0].length));
2355
2355
  }
2356
2356
  }
2357
- let t = S.from(this.content);
2358
- return !e && this.match && (t = t.append(this.match.fillBefore(S.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
2357
+ let t = T.from(this.content);
2358
+ return !e && this.match && (t = t.append(this.match.fillBefore(T.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
2359
2359
  }
2360
2360
  inlineContext(e) {
2361
2361
  return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Gd.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
@@ -3167,7 +3167,7 @@ function Ol(n, e, t) {
3167
3167
  let o = n.child(i);
3168
3168
  o.content.size && (o = o.copy(Ol(o.content, e, o))), o.isInline && (o = e(o, t, i)), r.push(o);
3169
3169
  }
3170
- return S.fromArray(r);
3170
+ return T.fromArray(r);
3171
3171
  }
3172
3172
  class _t extends Oe {
3173
3173
  /**
@@ -3259,7 +3259,7 @@ class Wt extends Oe {
3259
3259
  if (!t)
3260
3260
  return pe.fail("No node at mark step's position");
3261
3261
  let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
3262
- return pe.fromReplace(e, this.pos, this.pos + 1, new M(S.from(r), 0, t.isLeaf ? 0 : 1));
3262
+ return pe.fromReplace(e, this.pos, this.pos + 1, new M(T.from(r), 0, t.isLeaf ? 0 : 1));
3263
3263
  }
3264
3264
  invert(e) {
3265
3265
  let t = e.nodeAt(this.pos);
@@ -3303,7 +3303,7 @@ class Yn extends Oe {
3303
3303
  if (!t)
3304
3304
  return pe.fail("No node at mark step's position");
3305
3305
  let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
3306
- return pe.fromReplace(e, this.pos, this.pos + 1, new M(S.from(r), 0, t.isLeaf ? 0 : 1));
3306
+ return pe.fromReplace(e, this.pos, this.pos + 1, new M(T.from(r), 0, t.isLeaf ? 0 : 1));
3307
3307
  }
3308
3308
  invert(e) {
3309
3309
  let t = e.nodeAt(this.pos);
@@ -3503,13 +3503,13 @@ function Nl(n, e, t, r = t.contentMatch, i = !0) {
3503
3503
  if (i && c.isText && t.whitespace != "pre") {
3504
3504
  let f, p = /\r?\n|\r/g, h;
3505
3505
  for (; f = p.exec(c.text); )
3506
- h || (h = new M(S.from(t.schema.text(" ", t.allowedMarks(c.marks))), 0, 0)), s.push(new ge(l + f.index, l + f.index + f[0].length, h));
3506
+ h || (h = new M(T.from(t.schema.text(" ", t.allowedMarks(c.marks))), 0, 0)), s.push(new ge(l + f.index, l + f.index + f[0].length, h));
3507
3507
  }
3508
3508
  }
3509
3509
  l = d;
3510
3510
  }
3511
3511
  if (!r.validEnd) {
3512
- let a = r.fillBefore(S.empty, !0);
3512
+ let a = r.fillBefore(T.empty, !0);
3513
3513
  n.replace(l, l, new M(a, 0, 0));
3514
3514
  }
3515
3515
  for (let a = s.length - 1; a >= 0; a--)
@@ -3530,12 +3530,12 @@ function ar(n) {
3530
3530
  return null;
3531
3531
  }
3532
3532
  function sh(n, e, t) {
3533
- let { $from: r, $to: i, depth: o } = e, s = r.before(o + 1), l = i.after(o + 1), a = s, c = l, d = S.empty, u = 0;
3533
+ let { $from: r, $to: i, depth: o } = e, s = r.before(o + 1), l = i.after(o + 1), a = s, c = l, d = T.empty, u = 0;
3534
3534
  for (let h = o, m = !1; h > t; h--)
3535
- m || r.index(h) > 0 ? (m = !0, d = S.from(r.node(h).copy(d)), u++) : a--;
3536
- let f = S.empty, p = 0;
3535
+ m || r.index(h) > 0 ? (m = !0, d = T.from(r.node(h).copy(d)), u++) : a--;
3536
+ let f = T.empty, p = 0;
3537
3537
  for (let h = o, m = !1; h > t; h--)
3538
- m || i.after(h + 1) < i.end(h) ? (m = !0, f = S.from(i.node(h).copy(f)), p++) : c++;
3538
+ m || i.after(h + 1) < i.end(h) ? (m = !0, f = T.from(i.node(h).copy(f)), p++) : c++;
3539
3539
  n.step(new ye(a, c, s, l, new M(d.append(f), u, p), d.size - u, !0));
3540
3540
  }
3541
3541
  function Dl(n, e, t = null, r = n) {
@@ -3562,14 +3562,14 @@ function ah(n, e) {
3562
3562
  return !a || !a.validEnd ? null : s;
3563
3563
  }
3564
3564
  function ch(n, e, t) {
3565
- let r = S.empty;
3565
+ let r = T.empty;
3566
3566
  for (let s = t.length - 1; s >= 0; s--) {
3567
3567
  if (r.size) {
3568
3568
  let l = t[s].type.contentMatch.matchFragment(r);
3569
3569
  if (!l || !l.validEnd)
3570
3570
  throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
3571
3571
  }
3572
- r = S.from(t[s].type.create(t[s].attrs, r));
3572
+ r = T.from(t[s].type.create(t[s].attrs, r));
3573
3573
  }
3574
3574
  let i = e.start, o = e.end;
3575
3575
  n.step(new ye(i, o, i, o, new M(r, 0, 0), t.length, !0));
@@ -3588,7 +3588,7 @@ function dh(n, e, t, r, i) {
3588
3588
  }
3589
3589
  c === !1 && ru(n, s, l, o), Nl(n, n.mapping.slice(o).map(l, 1), r, void 0, c === null);
3590
3590
  let d = n.mapping.slice(o), u = d.map(l, 1), f = d.map(l + s.nodeSize, 1);
3591
- return n.step(new ye(u, f, u + 1, f - 1, new M(S.from(r.create(a, null, s.marks)), 0, 0), 1, !0)), c === !0 && nu(n, s, l, o), !1;
3591
+ return n.step(new ye(u, f, u + 1, f - 1, new M(T.from(r.create(a, null, s.marks)), 0, 0), 1, !0)), c === !0 && nu(n, s, l, o), !1;
3592
3592
  }
3593
3593
  });
3594
3594
  }
@@ -3626,7 +3626,7 @@ function fh(n, e, t, r, i) {
3626
3626
  return n.replaceWith(e, e + o.nodeSize, s);
3627
3627
  if (!t.validContent(o.content))
3628
3628
  throw new RangeError("Invalid content for node type " + t.name);
3629
- n.step(new ye(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new M(S.from(s), 0, 0), 1, !0));
3629
+ n.step(new ye(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new M(T.from(s), 0, 0), 1, !0));
3630
3630
  }
3631
3631
  function Kn(n, e, t = 1, r) {
3632
3632
  let i = n.resolve(e), o = i.depth - t, s = r && r[r.length - 1] || i.parent;
@@ -3646,11 +3646,11 @@ function Kn(n, e, t = 1, r) {
3646
3646
  return i.node(o).canReplaceWith(l, l, a ? a.type : i.node(o + 1).type);
3647
3647
  }
3648
3648
  function ph(n, e, t = 1, r) {
3649
- let i = n.doc.resolve(e), o = S.empty, s = S.empty;
3649
+ let i = n.doc.resolve(e), o = T.empty, s = T.empty;
3650
3650
  for (let l = i.depth, a = i.depth - t, c = t - 1; l > a; l--, c--) {
3651
- o = S.from(i.node(l).copy(o));
3651
+ o = T.from(i.node(l).copy(o));
3652
3652
  let d = r && r[c];
3653
- s = S.from(d ? d.type.create(d.attrs, s) : i.node(l).copy(s));
3653
+ s = T.from(d ? d.type.create(d.attrs, s) : i.node(l).copy(s));
3654
3654
  }
3655
3655
  n.step(new ge(e, e, new M(o.append(s), t, t), !0));
3656
3656
  }
@@ -3755,7 +3755,7 @@ function su(n, e, t) {
3755
3755
  }
3756
3756
  class yh {
3757
3757
  constructor(e, t, r) {
3758
- this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = S.empty;
3758
+ this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = T.empty;
3759
3759
  for (let i = 0; i <= e.depth; i++) {
3760
3760
  let o = e.node(i);
3761
3761
  this.frontier.push({
@@ -3764,7 +3764,7 @@ class yh {
3764
3764
  });
3765
3765
  }
3766
3766
  for (let i = e.depth; i > 0; i--)
3767
- this.placed = S.from(e.node(i).copy(this.placed));
3767
+ this.placed = T.from(e.node(i).copy(this.placed));
3768
3768
  }
3769
3769
  get depth() {
3770
3770
  return this.frontier.length - 1;
@@ -3803,7 +3803,7 @@ class yh {
3803
3803
  let s = i.firstChild;
3804
3804
  for (let l = this.depth; l >= 0; l--) {
3805
3805
  let { type: a, match: c } = this.frontier[l], d, u = null;
3806
- if (t == 1 && (s ? c.matchType(s.type) || (u = c.fillBefore(S.from(s), !1)) : o && a.compatibleContent(o.type)))
3806
+ if (t == 1 && (s ? c.matchType(s.type) || (u = c.fillBefore(T.from(s), !1)) : o && a.compatibleContent(o.type)))
3807
3807
  return { sliceDepth: r, frontierDepth: l, parent: o, inject: u };
3808
3808
  if (t == 2 && s && (d = c.findWrapping(s.type)))
3809
3809
  return { sliceDepth: r, frontierDepth: l, parent: o, wrap: d };
@@ -3847,10 +3847,10 @@ class yh {
3847
3847
  c++, (c > 1 || a == 0 || m.content.size) && (u = g, d.push(lu(m.mark(f.allowedMarks(m.marks)), c == 1 ? a : 0, c == l.childCount ? p : -1)));
3848
3848
  }
3849
3849
  let h = c == l.childCount;
3850
- h || (p = -1), this.placed = kr(this.placed, t, S.from(d)), this.frontier[t].match = u, h && p < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
3850
+ h || (p = -1), this.placed = kr(this.placed, t, T.from(d)), this.frontier[t].match = u, h && p < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
3851
3851
  for (let m = 0, g = l; m < p; m++) {
3852
- let y = g.lastChild;
3853
- this.frontier.push({ type: y.type, match: y.contentMatchAt(y.childCount) }), g = y.content;
3852
+ let b = g.lastChild;
3853
+ this.frontier.push({ type: b.type, match: b.contentMatchAt(b.childCount) }), g = b.content;
3854
3854
  }
3855
3855
  this.unplaced = h ? e == 0 ? M.empty : new M(wr(s.content, e - 1, 1), e - 1, p < 0 ? s.openEnd : e - 1) : new M(wr(s.content, e, c), s.openStart, s.openEnd);
3856
3856
  }
@@ -3894,10 +3894,10 @@ class yh {
3894
3894
  }
3895
3895
  openFrontierNode(e, t = null, r) {
3896
3896
  let i = this.frontier[this.depth];
3897
- i.match = i.match.matchType(e), this.placed = kr(this.placed, this.depth, S.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
3897
+ i.match = i.match.matchType(e), this.placed = kr(this.placed, this.depth, T.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
3898
3898
  }
3899
3899
  closeFrontierNode() {
3900
- let t = this.frontier.pop().match.fillBefore(S.empty, !0);
3900
+ let t = this.frontier.pop().match.fillBefore(T.empty, !0);
3901
3901
  t.childCount && (this.placed = kr(this.placed, this.frontier.length, t));
3902
3902
  }
3903
3903
  }
@@ -3916,7 +3916,7 @@ function lu(n, e, t) {
3916
3916
  if (e <= 0)
3917
3917
  return n;
3918
3918
  let r = n.content;
3919
- return e > 1 && (r = r.replaceChild(0, lu(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(S.empty, !0)))), n.copy(r);
3919
+ return e > 1 && (r = r.replaceChild(0, lu(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(T.empty, !0)))), n.copy(r);
3920
3920
  }
3921
3921
  function gs(n, e, t, r, i) {
3922
3922
  let o = n.node(e), s = i ? n.indexAfter(e) : n.index(e);
@@ -3968,11 +3968,11 @@ function xh(n, e, t, r) {
3968
3968
  let p = (f + d + 1) % (r.openStart + 1), h = c[p];
3969
3969
  if (h)
3970
3970
  for (let m = 0; m < s.length; m++) {
3971
- let g = s[(m + a) % s.length], y = !0;
3972
- g < 0 && (y = !1, g = -g);
3971
+ let g = s[(m + a) % s.length], b = !0;
3972
+ g < 0 && (b = !1, g = -g);
3973
3973
  let v = i.node(g - 1), w = i.index(g - 1);
3974
3974
  if (v.canReplaceWith(w, w, h.type, h.marks))
3975
- return n.replace(i.before(g), y ? o.after(g) : t, new M(au(r.content, 0, r.openStart, p), p, r.openEnd));
3975
+ return n.replace(i.before(g), b ? o.after(g) : t, new M(au(r.content, 0, r.openStart, p), p, r.openEnd));
3976
3976
  }
3977
3977
  }
3978
3978
  let u = n.steps.length;
@@ -3988,7 +3988,7 @@ function au(n, e, t, r, i) {
3988
3988
  }
3989
3989
  if (e > r) {
3990
3990
  let o = i.contentMatchAt(0), s = o.fillBefore(n).append(n);
3991
- n = s.append(o.matchFragment(s).fillBefore(S.empty, !0));
3991
+ n = s.append(o.matchFragment(s).fillBefore(T.empty, !0));
3992
3992
  }
3993
3993
  return n;
3994
3994
  }
@@ -3997,7 +3997,7 @@ function wh(n, e, t, r) {
3997
3997
  let i = gh(n.doc, e, r.type);
3998
3998
  i != null && (e = t = i);
3999
3999
  }
4000
- n.replaceRange(e, t, new M(S.from(r), 0, 0));
4000
+ n.replaceRange(e, t, new M(T.from(r), 0, 0));
4001
4001
  }
4002
4002
  function kh(n, e, t) {
4003
4003
  let r = n.doc.resolve(e), i = n.doc.resolve(t), o = cu(r, i);
@@ -4039,7 +4039,7 @@ class Jn extends Oe {
4039
4039
  r[o] = t.attrs[o];
4040
4040
  r[this.attr] = this.value;
4041
4041
  let i = t.type.create(r, null, t.marks);
4042
- return pe.fromReplace(e, this.pos, this.pos + 1, new M(S.from(i), 0, t.isLeaf ? 0 : 1));
4042
+ return pe.fromReplace(e, this.pos, this.pos + 1, new M(T.from(i), 0, t.isLeaf ? 0 : 1));
4043
4043
  }
4044
4044
  getMap() {
4045
4045
  return Fe.empty;
@@ -4161,7 +4161,7 @@ class Rl {
4161
4161
  fragment, node, or array of nodes.
4162
4162
  */
4163
4163
  replaceWith(e, t, r) {
4164
- return this.replace(e, t, new M(S.from(r), 0, 0));
4164
+ return this.replace(e, t, new M(T.from(r), 0, 0));
4165
4165
  }
4166
4166
  /**
4167
4167
  Delete the content between the given positions.
@@ -4599,7 +4599,7 @@ class L extends z {
4599
4599
  return r ? z.near(o) : new L(o);
4600
4600
  }
4601
4601
  content() {
4602
- return new M(S.from(this.node), 0, 0);
4602
+ return new M(T.from(this.node), 0, 0);
4603
4603
  }
4604
4604
  eq(e) {
4605
4605
  return e instanceof L && e.anchor == this.anchor;
@@ -6049,7 +6049,7 @@ class Gt extends si {
6049
6049
  break;
6050
6050
  }
6051
6051
  }
6052
- e.contentElement || (e.getContent = () => S.empty);
6052
+ e.contentElement || (e.getContent = () => T.empty);
6053
6053
  }
6054
6054
  return e;
6055
6055
  }
@@ -6536,8 +6536,8 @@ function nm(n, e, t, r) {
6536
6536
  if (f.isText) {
6537
6537
  let g = h;
6538
6538
  s < i.length && i[s].from < g && (g = i[s].from);
6539
- for (let y = 0; y < l.length; y++)
6540
- l[y].to < g && (g = l[y].to);
6539
+ for (let b = 0; b < l.length; b++)
6540
+ l[b].to < g && (g = l[b].to);
6541
6541
  g < h && (a = f.cut(g - o), f = f.cut(0, g - o), h = g, p = -1);
6542
6542
  } else
6543
6543
  for (; s < i.length && i[s].to < h; )
@@ -7000,7 +7000,7 @@ function Du(n, e, t, r, i) {
7000
7000
  if (n.someProp("transformPastedText", (f) => {
7001
7001
  e = f(e, o || r, n);
7002
7002
  }), o)
7003
- return e ? new M(S.from(n.state.schema.text(e.replace(/\r\n?/g, `
7003
+ return e ? new M(T.from(n.state.schema.text(e.replace(/\r\n?/g, `
7004
7004
  `))), 0, 0) : M.empty;
7005
7005
  let u = n.someProp("clipboardTextParser", (f) => f(e, i, r, n));
7006
7006
  if (u)
@@ -7066,13 +7066,13 @@ function gm(n, e) {
7066
7066
  s.push(d), i = i.matchType(d.type), o = a;
7067
7067
  }
7068
7068
  }), s)
7069
- return S.from(s);
7069
+ return T.from(s);
7070
7070
  }
7071
7071
  return n;
7072
7072
  }
7073
7073
  function Ru(n, e, t = 0) {
7074
7074
  for (let r = e.length - 1; r >= t; r--)
7075
- n = e[r].create(null, S.from(n));
7075
+ n = e[r].create(null, T.from(n));
7076
7076
  return n;
7077
7077
  }
7078
7078
  function Iu(n, e, t, r, i) {
@@ -7081,18 +7081,18 @@ function Iu(n, e, t, r, i) {
7081
7081
  if (o)
7082
7082
  return r.copy(r.content.replaceChild(r.childCount - 1, o));
7083
7083
  if (r.contentMatchAt(r.childCount).matchType(i == n.length - 1 ? t.type : n[i + 1]))
7084
- return r.copy(r.content.append(S.from(Ru(t, n, i + 1))));
7084
+ return r.copy(r.content.append(T.from(Ru(t, n, i + 1))));
7085
7085
  }
7086
7086
  }
7087
7087
  function Lu(n, e) {
7088
7088
  if (e == 0)
7089
7089
  return n;
7090
- let t = n.content.replaceChild(n.childCount - 1, Lu(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(S.empty, !0);
7090
+ let t = n.content.replaceChild(n.childCount - 1, Lu(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(T.empty, !0);
7091
7091
  return n.copy(t.append(r));
7092
7092
  }
7093
7093
  function nl(n, e, t, r, i, o) {
7094
7094
  let s = e < 0 ? n.firstChild : n.lastChild, l = s.content;
7095
- return n.childCount > 1 && (o = 0), i < r - 1 && (l = nl(l, e, t, r, i + 1, o)), i >= t && (l = e < 0 ? s.contentMatchAt(0).fillBefore(l, o <= i).append(l) : l.append(s.contentMatchAt(s.childCount).fillBefore(S.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, s.copy(l));
7095
+ return n.childCount > 1 && (o = 0), i < r - 1 && (l = nl(l, e, t, r, i + 1, o)), i >= t && (l = e < 0 ? s.contentMatchAt(0).fillBefore(l, o <= i).append(l) : l.append(s.contentMatchAt(s.childCount).fillBefore(T.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, s.copy(l));
7096
7096
  }
7097
7097
  function uc(n, e, t) {
7098
7098
  return e < n.openStart && (n = new M(nl(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new M(nl(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
@@ -7147,7 +7147,7 @@ function xm(n, e) {
7147
7147
  let a = t.nodes[r[l]];
7148
7148
  if (!a || a.hasRequiredAttrs())
7149
7149
  break;
7150
- i = S.from(a.create(r[l + 1], i)), o++, s++;
7150
+ i = T.from(a.create(r[l + 1], i)), o++, s++;
7151
7151
  }
7152
7152
  return new M(i, o, s);
7153
7153
  }
@@ -7550,7 +7550,7 @@ Ie.drop = (n, e) => {
7550
7550
  c.setSelection(new L(p));
7551
7551
  else {
7552
7552
  let h = c.mapping.map(a);
7553
- c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, y, v) => h = v), c.setSelection(Bl(n, p, c.doc.resolve(h)));
7553
+ c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, b, v) => h = v), c.setSelection(Bl(n, p, c.doc.resolve(h)));
7554
7554
  }
7555
7555
  n.focus(), n.dispatch(c.setMeta("uiEvent", "drop"));
7556
7556
  };
@@ -7957,12 +7957,12 @@ function Vm(n, e, t, r, i, o, s) {
7957
7957
  let u = 0;
7958
7958
  t.maps[c].forEach((f, p, h, m) => {
7959
7959
  let g = m - h - (p - f);
7960
- for (let y = 0; y < l.length; y += 3) {
7961
- let v = l[y + 1];
7960
+ for (let b = 0; b < l.length; b += 3) {
7961
+ let v = l[b + 1];
7962
7962
  if (v < 0 || f > v + d - u)
7963
7963
  continue;
7964
- let w = l[y] + d - u;
7965
- p >= w ? l[y + 1] = f <= w ? -2 : -1 : f >= d && g && (l[y] += g, l[y + 1] += g);
7964
+ let w = l[b] + d - u;
7965
+ p >= w ? l[b + 1] = f <= w ? -2 : -1 : f >= d && g && (l[b] += g, l[b + 1] += g);
7966
7966
  }
7967
7967
  u += g;
7968
7968
  }), d = t.maps[c].map(d, -1);
@@ -7981,8 +7981,8 @@ function Vm(n, e, t, r, i, o, s) {
7981
7981
  }
7982
7982
  let f = t.map(n[c + 1] + o, -1), p = f - i, { index: h, offset: m } = r.content.findIndex(u), g = r.maybeChild(h);
7983
7983
  if (g && m == u && m + g.nodeSize == p) {
7984
- let y = l[c + 2].mapInner(t, g, d + 1, n[c] + o + 1, s);
7985
- y != Te ? (l[c] = u, l[c + 1] = p, l[c + 2] = y) : (l[c + 1] = -2, a = !0);
7984
+ let b = l[c + 2].mapInner(t, g, d + 1, n[c] + o + 1, s);
7985
+ b != Te ? (l[c] = u, l[c + 1] = p, l[c + 2] = b) : (l[c + 1] = -2, a = !0);
7986
7986
  } else
7987
7987
  a = !0;
7988
7988
  }
@@ -8286,8 +8286,8 @@ function Ym(n, e, t) {
8286
8286
  let { node: r, fromOffset: i, toOffset: o, from: s, to: l } = n.docView.parseRange(e, t), a = n.domSelectionRange(), c, d = a.anchorNode;
8287
8287
  if (d && n.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: a.anchorOffset }], Uo(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), Ae && n.input.lastKeyCode === 8)
8288
8288
  for (let g = o; g > i; g--) {
8289
- let y = r.childNodes[g - 1], v = y.pmViewDesc;
8290
- if (y.nodeName == "BR" && !v) {
8289
+ let b = r.childNodes[g - 1], v = b.pmViewDesc;
8290
+ if (b.nodeName == "BR" && !v) {
8291
8291
  o = g;
8292
8292
  break;
8293
8293
  }
@@ -8306,8 +8306,8 @@ function Ym(n, e, t) {
8306
8306
  context: p
8307
8307
  });
8308
8308
  if (c && c[0].pos != null) {
8309
- let g = c[0].pos, y = c[1] && c[1].pos;
8310
- y == null && (y = g), h = { anchor: g + s, head: y + s };
8309
+ let g = c[0].pos, b = c[1] && c[1].pos;
8310
+ b == null && (b = g), h = { anchor: g + s, head: b + s };
8311
8311
  }
8312
8312
  return { doc: m, sel: h, from: s, to: l };
8313
8313
  }
@@ -8361,7 +8361,7 @@ function Zm(n, e, t, r, i) {
8361
8361
  return;
8362
8362
  }
8363
8363
  n.state.selection.from < n.state.selection.to && h.start == h.endB && n.state.selection instanceof B && (h.start > n.state.selection.from && h.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? h.start = n.state.selection.from : h.endA < n.state.selection.to && h.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (h.endB += n.state.selection.to - h.endA, h.endA = n.state.selection.to)), ze && Jt <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > c.from && c.doc.textBetween(h.start - c.from - 1, h.start - c.from + 1) == "  " && (h.start--, h.endA--, h.endB--);
8364
- let m = c.doc.resolveNoCache(h.start - c.from), g = c.doc.resolveNoCache(h.endB - c.from), y = d.resolve(h.start), v = m.sameParent(g) && m.parent.inlineContent && y.end() >= h.endA, w;
8364
+ let m = c.doc.resolveNoCache(h.start - c.from), g = c.doc.resolveNoCache(h.endB - c.from), b = d.resolve(h.start), v = m.sameParent(g) && m.parent.inlineContent && b.end() >= h.endA, w;
8365
8365
  if ((Qn && n.input.lastIOSEnter > Date.now() - 225 && (!v || i.some((D) => D.nodeName == "DIV" || D.nodeName == "P")) || !v && m.pos < c.doc.content.size && !m.sameParent(g) && (w = z.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && w.head == g.pos) && n.someProp("handleKeyDown", (D) => D(n, cn(13, "Enter")))) {
8366
8366
  n.input.lastIOSEnter = 0;
8367
8367
  return;
@@ -8375,25 +8375,25 @@ function Zm(n, e, t, r, i) {
8375
8375
  return D(n, cn(13, "Enter"));
8376
8376
  });
8377
8377
  }, 20));
8378
- let b = h.start, T = h.endA, k, O, H;
8378
+ let y = h.start, S = h.endA, k, O, H;
8379
8379
  if (v) {
8380
8380
  if (m.pos == g.pos)
8381
- ze && Jt <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Dt(n), 20)), k = n.state.tr.delete(b, T), O = d.resolve(h.start).marksAcross(d.resolve(h.endA));
8381
+ ze && Jt <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Dt(n), 20)), k = n.state.tr.delete(y, S), O = d.resolve(h.start).marksAcross(d.resolve(h.endA));
8382
8382
  else if (
8383
8383
  // Adding or removing a mark
8384
- h.endA == h.endB && (H = eg(m.parent.content.cut(m.parentOffset, g.parentOffset), y.parent.content.cut(y.parentOffset, h.endA - y.start())))
8384
+ h.endA == h.endB && (H = eg(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, h.endA - b.start())))
8385
8385
  )
8386
- k = n.state.tr, H.type == "add" ? k.addMark(b, T, H.mark) : k.removeMark(b, T, H.mark);
8386
+ k = n.state.tr, H.type == "add" ? k.addMark(y, S, H.mark) : k.removeMark(y, S, H.mark);
8387
8387
  else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
8388
8388
  let D = m.parent.textBetween(m.parentOffset, g.parentOffset);
8389
- if (n.someProp("handleTextInput", (q) => q(n, b, T, D)))
8389
+ if (n.someProp("handleTextInput", (q) => q(n, y, S, D)))
8390
8390
  return;
8391
- k = n.state.tr.insertText(D, b, T);
8391
+ k = n.state.tr.insertText(D, y, S);
8392
8392
  }
8393
8393
  }
8394
- if (k || (k = n.state.tr.replace(b, T, c.doc.slice(h.start - c.from, h.endB - c.from))), c.sel) {
8394
+ if (k || (k = n.state.tr.replace(y, S, c.doc.slice(h.start - c.from, h.endB - c.from))), c.sel) {
8395
8395
  let D = yc(n, k.doc, c.sel);
8396
- D && !(Ae && tt && n.composing && D.empty && (h.start != h.endB || n.input.lastAndroidDelete < Date.now() - 100) && (D.head == b || D.head == k.mapping.map(T) - 1) || ze && D.empty && D.head == b) && k.setSelection(D);
8396
+ D && !(Ae && tt && n.composing && D.empty && (h.start != h.endB || n.input.lastAndroidDelete < Date.now() - 100) && (D.head == y || D.head == k.mapping.map(S) - 1) || ze && D.empty && D.head == y) && k.setSelection(D);
8397
8397
  }
8398
8398
  O && k.ensureMarks(O), o && k.setMeta("composition", o), n.dispatch(k.scrollIntoView());
8399
8399
  }
@@ -8415,7 +8415,7 @@ function eg(n, e) {
8415
8415
  let c = [];
8416
8416
  for (let d = 0; d < e.childCount; d++)
8417
8417
  c.push(a(e.child(d)));
8418
- if (S.from(c).eq(n))
8418
+ if (T.from(c).eq(n))
8419
8419
  return { mark: l, type: s };
8420
8420
  }
8421
8421
  function tg(n, e, t, r, i) {
@@ -9233,10 +9233,10 @@ function Xu(n, e, t, r) {
9233
9233
  let c = !a && e.parent.canReplace(e.index(), e.index() + 1);
9234
9234
  if (c && (s = (l = i.contentMatchAt(i.childCount)).findWrapping(o.type)) && l.matchType(s[0] || o.type).validEnd) {
9235
9235
  if (t) {
9236
- let p = e.pos + o.nodeSize, h = S.empty;
9237
- for (let y = s.length - 1; y >= 0; y--)
9238
- h = S.from(s[y].create(null, h));
9239
- h = S.from(i.copy(h));
9236
+ let p = e.pos + o.nodeSize, h = T.empty;
9237
+ for (let b = s.length - 1; b >= 0; b--)
9238
+ h = T.from(s[b].create(null, h));
9239
+ h = T.from(i.copy(h));
9240
9240
  let m = n.tr.step(new ye(e.pos - 1, p, e.pos, p, new M(h, 1, 0), s.length, !0)), g = m.doc.resolve(p + 2 * s.length);
9241
9241
  g.nodeAfter && g.nodeAfter.type == i.type && Qt(m.doc, g.pos) && m.join(g.pos), t(m.scrollIntoView());
9242
9242
  }
@@ -9254,10 +9254,10 @@ function Xu(n, e, t, r) {
9254
9254
  g++;
9255
9255
  if (p.canReplace(p.childCount, p.childCount, m.content)) {
9256
9256
  if (t) {
9257
- let y = S.empty;
9257
+ let b = T.empty;
9258
9258
  for (let w = h.length - 1; w >= 0; w--)
9259
- y = S.from(h[w].copy(y));
9260
- let v = n.tr.step(new ye(e.pos - h.length, e.pos + o.nodeSize, e.pos + g, e.pos + o.nodeSize - g, new M(y, h.length, 0), 0, !0));
9259
+ b = T.from(h[w].copy(b));
9260
+ let v = n.tr.step(new ye(e.pos - h.length, e.pos + o.nodeSize, e.pos + g, e.pos + o.nodeSize - g, new M(b, h.length, 0), 0, !0));
9261
9261
  t(v.scrollIntoView());
9262
9262
  }
9263
9263
  return !0;
@@ -9330,9 +9330,9 @@ function Rg(n, e = null) {
9330
9330
  };
9331
9331
  }
9332
9332
  function Ig(n, e, t, r, i) {
9333
- let o = S.empty;
9333
+ let o = T.empty;
9334
9334
  for (let d = t.length - 1; d >= 0; d--)
9335
- o = S.from(t[d].type.create(t[d].attrs, o));
9335
+ o = T.from(t[d].type.create(t[d].attrs, o));
9336
9336
  n.step(new ye(e.start - (r ? 2 : 0), e.end, e.start, e.end, new M(o, 0, 0), t.length, !0));
9337
9337
  let s = 0;
9338
9338
  for (let d = 0; d < t.length; d++)
@@ -9350,7 +9350,7 @@ function Lg(n) {
9350
9350
  }
9351
9351
  function Pg(n, e, t, r) {
9352
9352
  let i = n.tr, o = r.end, s = r.$to.end(r.depth);
9353
- o < s && (i.step(new ye(o - 1, s, o, s, new M(S.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Yi(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
9353
+ o < s && (i.step(new ye(o - 1, s, o, s, new M(T.from(t.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Yi(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
9354
9354
  const l = ar(r);
9355
9355
  if (l == null)
9356
9356
  return !1;
@@ -9366,10 +9366,10 @@ function Bg(n, e, t) {
9366
9366
  if (r.mapping.map(t.end) != t.start + o.nodeAfter.nodeSize)
9367
9367
  return !1;
9368
9368
  let l = t.startIndex == 0, a = t.endIndex == i.childCount, c = o.node(-1), d = o.index(-1);
9369
- if (!c.canReplace(d + (l ? 0 : 1), d + 1, s.content.append(a ? S.empty : S.from(i))))
9369
+ if (!c.canReplace(d + (l ? 0 : 1), d + 1, s.content.append(a ? T.empty : T.from(i))))
9370
9370
  return !1;
9371
9371
  let u = o.pos, f = u + s.nodeSize;
9372
- return r.step(new ye(u - (l ? 1 : 0), f + (a ? 1 : 0), u + 1, f - 1, new M((l ? S.empty : S.from(i.copy(S.empty))).append(a ? S.empty : S.from(i.copy(S.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
9372
+ return r.step(new ye(u - (l ? 1 : 0), f + (a ? 1 : 0), u + 1, f - 1, new M((l ? T.empty : T.from(i.copy(T.empty))).append(a ? T.empty : T.from(i.copy(T.empty))), l ? 0 : 1, a ? 0 : 1), l ? 0 : 1)), e(r.scrollIntoView()), !0;
9373
9373
  }
9374
9374
  function zg(n) {
9375
9375
  return function(e, t) {
@@ -9383,7 +9383,7 @@ function zg(n) {
9383
9383
  if (a.type != n)
9384
9384
  return !1;
9385
9385
  if (t) {
9386
- let c = a.lastChild && a.lastChild.type == l.type, d = S.from(c ? n.create() : null), u = new M(S.from(n.create(null, S.from(l.type.create(null, d)))), c ? 3 : 1, 0), f = o.start, p = o.end;
9386
+ let c = a.lastChild && a.lastChild.type == l.type, d = T.from(c ? n.create() : null), u = new M(T.from(n.create(null, T.from(l.type.create(null, d)))), c ? 3 : 1, 0), f = o.start, p = o.end;
9387
9387
  t(e.tr.step(new ye(f - (c ? 3 : 1), p, f, p, u, 1, !0)).scrollIntoView());
9388
9388
  }
9389
9389
  return !0;
@@ -9440,8 +9440,8 @@ class Go {
9440
9440
  createChain(e, t = !0) {
9441
9441
  const { rawCommands: r, editor: i, state: o } = this, { view: s } = i, l = [], a = !!e, c = e || o.tr, d = () => (!a && t && !c.getMeta("preventDispatch") && !this.hasCustomState && s.dispatch(c), l.every((f) => f === !0)), u = {
9442
9442
  ...Object.fromEntries(Object.entries(r).map(([f, p]) => [f, (...m) => {
9443
- const g = this.buildProps(c, t), y = p(...m)(g);
9444
- return l.push(y), u;
9443
+ const g = this.buildProps(c, t), b = p(...m)(g);
9444
+ return l.push(b), u;
9445
9445
  }])),
9446
9446
  run: d
9447
9447
  };
@@ -9638,15 +9638,15 @@ function Ac(n) {
9638
9638
  function Vg(n, e) {
9639
9639
  var t;
9640
9640
  const r = Zu(n), { nodeExtensions: i, markExtensions: o } = Yo(n), s = (t = i.find((c) => N(c, "topNode"))) === null || t === void 0 ? void 0 : t.name, l = Object.fromEntries(i.map((c) => {
9641
- const d = r.filter((y) => y.type === c.name), u = {
9641
+ const d = r.filter((b) => b.type === c.name), u = {
9642
9642
  name: c.name,
9643
9643
  options: c.options,
9644
9644
  storage: c.storage,
9645
9645
  editor: e
9646
- }, f = n.reduce((y, v) => {
9646
+ }, f = n.reduce((b, v) => {
9647
9647
  const w = N(v, "extendNodeSchema", u);
9648
9648
  return {
9649
- ...y,
9649
+ ...b,
9650
9650
  ...w ? w(c) : {}
9651
9651
  };
9652
9652
  }, {}), p = Ac({
@@ -9662,16 +9662,16 @@ function Vg(n, e) {
9662
9662
  whitespace: j(N(c, "whitespace", u)),
9663
9663
  defining: j(N(c, "defining", u)),
9664
9664
  isolating: j(N(c, "isolating", u)),
9665
- attrs: Object.fromEntries(d.map((y) => {
9665
+ attrs: Object.fromEntries(d.map((b) => {
9666
9666
  var v;
9667
- return [y.name, { default: (v = y == null ? void 0 : y.attribute) === null || v === void 0 ? void 0 : v.default }];
9667
+ return [b.name, { default: (v = b == null ? void 0 : b.attribute) === null || v === void 0 ? void 0 : v.default }];
9668
9668
  }))
9669
9669
  }), h = j(N(c, "parseHTML", u));
9670
- h && (p.parseDOM = h.map((y) => Tc(y, d)));
9670
+ h && (p.parseDOM = h.map((b) => Tc(b, d)));
9671
9671
  const m = N(c, "renderHTML", u);
9672
- m && (p.toDOM = (y) => m({
9673
- node: y,
9674
- HTMLAttributes: il(y, d)
9672
+ m && (p.toDOM = (b) => m({
9673
+ node: b,
9674
+ HTMLAttributes: il(b, d)
9675
9675
  }));
9676
9676
  const g = N(c, "renderText", u);
9677
9677
  return g && (p.toText = g), [c.name, p];
@@ -9681,8 +9681,8 @@ function Vg(n, e) {
9681
9681
  options: c.options,
9682
9682
  storage: c.storage,
9683
9683
  editor: e
9684
- }, f = n.reduce((g, y) => {
9685
- const v = N(y, "extendMarkSchema", u);
9684
+ }, f = n.reduce((g, b) => {
9685
+ const v = N(b, "extendMarkSchema", u);
9686
9686
  return {
9687
9687
  ...g,
9688
9688
  ...v ? v(c) : {}
@@ -9695,8 +9695,8 @@ function Vg(n, e) {
9695
9695
  spanning: j(N(c, "spanning", u)),
9696
9696
  code: j(N(c, "code", u)),
9697
9697
  attrs: Object.fromEntries(d.map((g) => {
9698
- var y;
9699
- return [g.name, { default: (y = g == null ? void 0 : g.attribute) === null || y === void 0 ? void 0 : y.default }];
9698
+ var b;
9699
+ return [g.name, { default: (b = g == null ? void 0 : g.attribute) === null || b === void 0 ? void 0 : b.default }];
9700
9700
  }))
9701
9701
  }), h = j(N(c, "parseHTML", u));
9702
9702
  h && (p.parseDOM = h.map((g) => Tc(g, d)));
@@ -9774,7 +9774,7 @@ function Si(n) {
9774
9774
  }), g = {
9775
9775
  from: r - (p[0].length - o.length),
9776
9776
  to: i
9777
- }, { commands: y, chain: v, can: w } = new Go({
9777
+ }, { commands: b, chain: v, can: w } = new Go({
9778
9778
  editor: t,
9779
9779
  state: m
9780
9780
  });
@@ -9782,7 +9782,7 @@ function Si(n) {
9782
9782
  state: m,
9783
9783
  range: g,
9784
9784
  match: p,
9785
- commands: y,
9785
+ commands: b,
9786
9786
  chain: v,
9787
9787
  can: w
9788
9788
  }) === null || !h.steps.length || (h.setMeta(l, {
@@ -9946,13 +9946,13 @@ function Gg(n) {
9946
9946
  return t.doc.nodesBetween(r, i, (p, h) => {
9947
9947
  if (!p.isTextblock || p.type.spec.code)
9948
9948
  return;
9949
- const m = Math.max(r, h), g = Math.min(i, h + p.content.size), y = p.textBetween(m - h, g - h, void 0, "");
9950
- Jg(y, o.find, s).forEach((w) => {
9949
+ const m = Math.max(r, h), g = Math.min(i, h + p.content.size), b = p.textBetween(m - h, g - h, void 0, "");
9950
+ Jg(b, o.find, s).forEach((w) => {
9951
9951
  if (w.index === void 0)
9952
9952
  return;
9953
- const b = m + w.index + 1, T = b + w[0].length, k = {
9954
- from: t.tr.mapping.map(b),
9955
- to: t.tr.mapping.map(T)
9953
+ const y = m + w.index + 1, S = y + w[0].length, k = {
9954
+ from: t.tr.mapping.map(y),
9955
+ to: t.tr.mapping.map(S)
9956
9956
  }, O = o.handler({
9957
9957
  state: t,
9958
9958
  range: k,
@@ -10017,26 +10017,26 @@ function Xg(n) {
10017
10017
  }
10018
10018
  },
10019
10019
  appendTransaction: (u, f, p) => {
10020
- const h = u[0], m = h.getMeta("uiEvent") === "paste" && !i, g = h.getMeta("uiEvent") === "drop" && !o, y = h.getMeta("applyPasteRules"), v = !!y;
10020
+ const h = u[0], m = h.getMeta("uiEvent") === "paste" && !i, g = h.getMeta("uiEvent") === "drop" && !o, b = h.getMeta("applyPasteRules"), v = !!b;
10021
10021
  if (!m && !g && !v)
10022
10022
  return;
10023
10023
  if (v) {
10024
- const { from: T, text: k } = y, O = T + k.length, H = Yg(k);
10024
+ const { from: S, text: k } = b, O = S + k.length, H = Yg(k);
10025
10025
  return a({
10026
10026
  rule: d,
10027
10027
  state: p,
10028
- from: T,
10028
+ from: S,
10029
10029
  to: { b: O },
10030
10030
  pasteEvt: H
10031
10031
  });
10032
10032
  }
10033
- const w = f.doc.content.findDiffStart(p.doc.content), b = f.doc.content.findDiffEnd(p.doc.content);
10034
- if (!(!qg(w) || !b || w === b.b))
10033
+ const w = f.doc.content.findDiffStart(p.doc.content), y = f.doc.content.findDiffEnd(p.doc.content);
10034
+ if (!(!qg(w) || !y || w === y.b))
10035
10035
  return a({
10036
10036
  rule: d,
10037
10037
  state: p,
10038
10038
  from: w,
10039
- to: b,
10039
+ to: y,
10040
10040
  pasteEvt: s
10041
10041
  });
10042
10042
  }
@@ -10120,7 +10120,7 @@ class Un {
10120
10120
  }, a = [], c = N(s, "addKeyboardShortcuts", l);
10121
10121
  let d = {};
10122
10122
  if (s.type === "mark" && N(s, "exitable", l) && (d.ArrowRight = () => Xe.handleExit({ editor: e, mark: s })), c) {
10123
- const m = Object.fromEntries(Object.entries(c()).map(([g, y]) => [g, () => y({ editor: e })]));
10123
+ const m = Object.fromEntries(Object.entries(c()).map(([g, b]) => [g, () => b({ editor: e })]));
10124
10124
  d = { ...d, ...m };
10125
10125
  }
10126
10126
  const u = fg(d);
@@ -10464,7 +10464,7 @@ function lo(n, e, t) {
10464
10464
  if (r)
10465
10465
  try {
10466
10466
  if (Array.isArray(n) && n.length > 0)
10467
- return S.fromArray(n.map((l) => e.nodeFromJSON(l)));
10467
+ return T.fromArray(n.map((l) => e.nodeFromJSON(l)));
10468
10468
  const s = e.nodeFromJSON(n);
10469
10469
  return t.errorOnInvalidContent && s.check(), s;
10470
10470
  } catch (o) {
@@ -10818,10 +10818,10 @@ function ll(n, e, t = {}) {
10818
10818
  n.doc.nodesBetween(p, h, (m, g) => {
10819
10819
  if (!m.isText && !m.marks.length)
10820
10820
  return;
10821
- const y = Math.max(p, g), v = Math.min(h, g + m.nodeSize), w = v - y;
10822
- s += w, l.push(...m.marks.map((b) => ({
10823
- mark: b,
10824
- from: y,
10821
+ const b = Math.max(p, g), v = Math.min(h, g + m.nodeSize), w = v - b;
10822
+ s += w, l.push(...m.marks.map((y) => ({
10823
+ mark: y,
10824
+ from: b,
10825
10825
  to: v
10826
10826
  })));
10827
10827
  });
@@ -10873,7 +10873,7 @@ function cf(n) {
10873
10873
  return n instanceof L;
10874
10874
  }
10875
10875
  function df(n, e, t) {
10876
- const i = n.state.doc.content.size, o = Nt(e, 0, i), s = Nt(t, 0, i), l = n.coordsAtPos(o), a = n.coordsAtPos(s, -1), c = Math.min(l.top, a.top), d = Math.max(l.bottom, a.bottom), u = Math.min(l.left, a.left), f = Math.max(l.right, a.right), p = f - u, h = d - c, y = {
10876
+ const i = n.state.doc.content.size, o = Nt(e, 0, i), s = Nt(t, 0, i), l = n.coordsAtPos(o), a = n.coordsAtPos(s, -1), c = Math.min(l.top, a.top), d = Math.max(l.bottom, a.bottom), u = Math.min(l.left, a.left), f = Math.max(l.right, a.right), p = f - u, h = d - c, b = {
10877
10877
  top: c,
10878
10878
  bottom: d,
10879
10879
  left: u,
@@ -10884,8 +10884,8 @@ function df(n, e, t) {
10884
10884
  y: c
10885
10885
  };
10886
10886
  return {
10887
- ...y,
10888
- toJSON: () => y
10887
+ ...b,
10888
+ toJSON: () => b
10889
10889
  };
10890
10890
  }
10891
10891
  function e0(n, e, t) {
@@ -10924,9 +10924,9 @@ const t0 = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
10924
10924
  const d = c.$from.pos, u = c.$to.pos;
10925
10925
  r.doc.nodesBetween(d, u, (f, p) => {
10926
10926
  const h = Math.max(p, d), m = Math.min(p + f.nodeSize, u);
10927
- f.marks.find((y) => y.type === a) ? f.marks.forEach((y) => {
10928
- a === y.type && t.addMark(h, m, a.create({
10929
- ...y.attrs,
10927
+ f.marks.find((b) => b.type === a) ? f.marks.forEach((b) => {
10928
+ a === b.type && t.addMark(h, m, a.create({
10929
+ ...b.attrs,
10930
10930
  ...e
10931
10931
  }));
10932
10932
  }) : t.addMark(h, m, a.create(e));
@@ -10998,17 +10998,17 @@ const l0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
10998
10998
  if (a.depth === 2 || a.node(-3).type !== l || a.index(-2) !== a.node(-2).childCount - 1)
10999
10999
  return !1;
11000
11000
  if (i) {
11001
- let y = S.empty;
11001
+ let b = T.empty;
11002
11002
  const v = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
11003
11003
  for (let H = a.depth - v; H >= a.depth - 3; H -= 1)
11004
- y = S.from(a.node(H).copy(y));
11005
- const w = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, b = {
11004
+ b = T.from(a.node(H).copy(b));
11005
+ const w = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, y = {
11006
11006
  ...Fi(f, a.node().type.name, a.node().attrs),
11007
11007
  ...e
11008
- }, T = ((s = l.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(b)) || void 0;
11009
- y = y.append(S.from(l.createAndFill(null, T) || void 0));
11008
+ }, S = ((s = l.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(y)) || void 0;
11009
+ b = b.append(T.from(l.createAndFill(null, S) || void 0));
11010
11010
  const k = a.before(a.depth - (v - 1));
11011
- t.replace(k, a.after(-w), new M(y, 4 - v, 0));
11011
+ t.replace(k, a.after(-w), new M(b, 4 - v, 0));
11012
11012
  let O = -1;
11013
11013
  t.doc.nodesBetween(k, t.doc.content.size, (H, D) => {
11014
11014
  if (O > -1)
@@ -11033,11 +11033,11 @@ const l0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
11033
11033
  if (!Kn(t.doc, a.pos, 2))
11034
11034
  return !1;
11035
11035
  if (i) {
11036
- const { selection: y, storedMarks: v } = r, { splittableMarks: w } = o.extensionManager, b = v || y.$to.parentOffset && y.$from.marks();
11037
- if (t.split(a.pos, 2, g).scrollIntoView(), !b || !i)
11036
+ const { selection: b, storedMarks: v } = r, { splittableMarks: w } = o.extensionManager, y = v || b.$to.parentOffset && b.$from.marks();
11037
+ if (t.split(a.pos, 2, g).scrollIntoView(), !y || !i)
11038
11038
  return !0;
11039
- const T = b.filter((k) => w.includes(k.type.name));
11040
- t.ensureMarks(T);
11039
+ const S = y.filter((k) => w.includes(k.type.name));
11040
+ t.ensureMarks(S);
11041
11041
  }
11042
11042
  return !0;
11043
11043
  }, Es = (n, e) => {
@@ -11059,18 +11059,18 @@ const l0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
11059
11059
  const i = n.doc.nodeAt(r);
11060
11060
  return t.node.type === (i == null ? void 0 : i.type) && Qt(n.doc, r) && n.join(r), !0;
11061
11061
  }, c0 = (n, e, t, r = {}) => ({ editor: i, tr: o, state: s, dispatch: l, chain: a, commands: c, can: d }) => {
11062
- const { extensions: u, splittableMarks: f } = i.extensionManager, p = ve(n, s.schema), h = ve(e, s.schema), { selection: m, storedMarks: g } = s, { $from: y, $to: v } = m, w = y.blockRange(v), b = g || m.$to.parentOffset && m.$from.marks();
11062
+ const { extensions: u, splittableMarks: f } = i.extensionManager, p = ve(n, s.schema), h = ve(e, s.schema), { selection: m, storedMarks: g } = s, { $from: b, $to: v } = m, w = b.blockRange(v), y = g || m.$to.parentOffset && m.$from.marks();
11063
11063
  if (!w)
11064
11064
  return !1;
11065
- const T = Gl((k) => Oc(k.type.name, u))(m);
11066
- if (w.depth >= 1 && T && w.depth - T.depth <= 1) {
11067
- if (T.node.type === p)
11065
+ const S = Gl((k) => Oc(k.type.name, u))(m);
11066
+ if (w.depth >= 1 && S && w.depth - S.depth <= 1) {
11067
+ if (S.node.type === p)
11068
11068
  return c.liftListItem(h);
11069
- if (Oc(T.node.type.name, u) && p.validContent(T.node.content) && l)
11070
- return a().command(() => (o.setNodeMarkup(T.pos, p), !0)).command(() => Es(o, p)).command(() => Os(o, p)).run();
11069
+ if (Oc(S.node.type.name, u) && p.validContent(S.node.content) && l)
11070
+ return a().command(() => (o.setNodeMarkup(S.pos, p), !0)).command(() => Es(o, p)).command(() => Os(o, p)).run();
11071
11071
  }
11072
- return !t || !b || !l ? a().command(() => d().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => Es(o, p)).command(() => Os(o, p)).run() : a().command(() => {
11073
- const k = d().wrapInList(p, r), O = b.filter((H) => f.includes(H.type.name));
11072
+ return !t || !y || !l ? a().command(() => d().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => Es(o, p)).command(() => Os(o, p)).run() : a().command(() => {
11073
+ const k = d().wrapInList(p, r), O = y.filter((H) => f.includes(H.type.name));
11074
11074
  return o.ensureMarks(O), k ? !0 : c.clearNodes();
11075
11075
  }).wrapInList(p, r).command(() => Es(o, p)).command(() => Os(o, p)).run();
11076
11076
  }, d0 = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
@@ -11279,8 +11279,8 @@ const x0 = fe.create({
11279
11279
  () => s.undoInputRule(),
11280
11280
  // maybe convert first text block node to default node
11281
11281
  () => s.command(({ tr: l }) => {
11282
- const { selection: a, doc: c } = l, { empty: d, $anchor: u } = a, { pos: f, parent: p } = u, h = u.parent.isTextblock && f > 0 ? l.doc.resolve(f - 1) : u, m = h.parent.type.spec.isolating, g = u.pos - u.parentOffset, y = m && h.parent.childCount === 1 ? g === u.pos : z.atStart(c).from === f;
11283
- return !d || !p.type.isTextblock || p.textContent.length || !y || y && u.parent.type.name === "paragraph" ? !1 : s.clearNodes();
11282
+ const { selection: a, doc: c } = l, { empty: d, $anchor: u } = a, { pos: f, parent: p } = u, h = u.parent.isTextblock && f > 0 ? l.doc.resolve(f - 1) : u, m = h.parent.type.spec.isolating, g = u.pos - u.parentOffset, b = m && h.parent.childCount === 1 ? g === u.pos : z.atStart(c).from === f;
11283
+ return !d || !p.type.isTextblock || p.textContent.length || !b || b && u.parent.type.name === "paragraph" ? !1 : s.clearNodes();
11284
11284
  }),
11285
11285
  () => s.deleteSelection(),
11286
11286
  () => s.joinBackward(),
@@ -12059,8 +12059,8 @@ class R0 {
12059
12059
  return;
12060
12060
  let f = 0, p = 0;
12061
12061
  if (this.dom !== u) {
12062
- const y = this.dom.getBoundingClientRect(), v = u.getBoundingClientRect(), w = (i = e.offsetX) !== null && i !== void 0 ? i : (o = e.nativeEvent) === null || o === void 0 ? void 0 : o.offsetX, b = (s = e.offsetY) !== null && s !== void 0 ? s : (l = e.nativeEvent) === null || l === void 0 ? void 0 : l.offsetY;
12063
- f = v.x - y.x + w, p = v.y - y.y + b;
12062
+ const b = this.dom.getBoundingClientRect(), v = u.getBoundingClientRect(), w = (i = e.offsetX) !== null && i !== void 0 ? i : (o = e.nativeEvent) === null || o === void 0 ? void 0 : o.offsetX, y = (s = e.offsetY) !== null && s !== void 0 ? s : (l = e.nativeEvent) === null || l === void 0 ? void 0 : l.offsetY;
12063
+ f = v.x - b.x + w, p = v.y - b.y + y;
12064
12064
  }
12065
12065
  (a = e.dataTransfer) === null || a === void 0 || a.setDragImage(this.dom, f, p);
12066
12066
  const h = this.getPos();
@@ -12356,7 +12356,7 @@ var Y0 = function(e, t) {
12356
12356
  function X0(n) {
12357
12357
  var e, t = n.state, r = n.name, i = n.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, l = ht(t.placement), a = ea(l), c = [He, Ze].indexOf(l) >= 0, d = c ? "height" : "width";
12358
12358
  if (!(!o || !s)) {
12359
- var u = Y0(i.padding, t), f = Zl(o), p = a === "y" ? $e : He, h = a === "y" ? Qe : Ze, m = t.rects.reference[d] + t.rects.reference[a] - s[a] - t.rects.popper[d], g = s[a] - t.rects.reference[a], y = ai(o), v = y ? a === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, w = m / 2 - g / 2, b = u[p], T = v - f[d] - u[h], k = v / 2 - f[d] / 2 + w, O = Nr(b, k, T), H = a;
12359
+ var u = Y0(i.padding, t), f = Zl(o), p = a === "y" ? $e : He, h = a === "y" ? Qe : Ze, m = t.rects.reference[d] + t.rects.reference[a] - s[a] - t.rects.popper[d], g = s[a] - t.rects.reference[a], b = ai(o), v = b ? a === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, w = m / 2 - g / 2, y = u[p], S = v - f[d] - u[h], k = v / 2 - f[d] / 2 + w, O = Nr(y, k, S), H = a;
12360
12360
  t.modifiersData[r] = (e = {}, e[H] = O, e.centerOffset = O - k, e);
12361
12361
  }
12362
12362
  }
@@ -12398,12 +12398,12 @@ function Ic(n) {
12398
12398
  y: m
12399
12399
  };
12400
12400
  p = g.x, m = g.y;
12401
- var y = s.hasOwnProperty("x"), v = s.hasOwnProperty("y"), w = He, b = $e, T = window;
12401
+ var b = s.hasOwnProperty("x"), v = s.hasOwnProperty("y"), w = He, y = $e, S = window;
12402
12402
  if (c) {
12403
12403
  var k = ai(t), O = "clientHeight", H = "clientWidth";
12404
12404
  if (k === _e(t) && (k = tn(t), Rt(k).position !== "static" && l === "absolute" && (O = "scrollHeight", H = "scrollWidth")), k = k, i === $e || (i === He || i === Ze) && o === Xr) {
12405
- b = Qe;
12406
- var D = u && k === T && T.visualViewport ? T.visualViewport.height : (
12405
+ y = Qe;
12406
+ var D = u && k === S && S.visualViewport ? S.visualViewport.height : (
12407
12407
  // $FlowFixMe[prop-missing]
12408
12408
  k[O]
12409
12409
  );
@@ -12411,7 +12411,7 @@ function Ic(n) {
12411
12411
  }
12412
12412
  if (i === He || (i === $e || i === Qe) && o === Xr) {
12413
12413
  w = Ze;
12414
- var q = u && k === T && T.visualViewport ? T.visualViewport.width : (
12414
+ var q = u && k === S && S.visualViewport ? S.visualViewport.width : (
12415
12415
  // $FlowFixMe[prop-missing]
12416
12416
  k[H]
12417
12417
  );
@@ -12429,9 +12429,9 @@ function Ic(n) {
12429
12429
  };
12430
12430
  if (p = Y.x, m = Y.y, a) {
12431
12431
  var te;
12432
- return Object.assign({}, Q, (te = {}, te[b] = v ? "0" : "", te[w] = y ? "0" : "", te.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", te));
12432
+ return Object.assign({}, Q, (te = {}, te[y] = v ? "0" : "", te[w] = b ? "0" : "", te.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", te));
12433
12433
  }
12434
- return Object.assign({}, Q, (e = {}, e[b] = v ? m + "px" : "", e[w] = y ? p + "px" : "", e.transform = "", e));
12434
+ return Object.assign({}, Q, (e = {}, e[y] = v ? m + "px" : "", e[w] = b ? p + "px" : "", e.transform = "", e));
12435
12435
  }
12436
12436
  function nb(n) {
12437
12437
  var e = n.state, t = n.options, r = t.gpuAcceleration, i = r === void 0 ? !0 : r, o = t.adaptive, s = o === void 0 ? !0 : o, l = t.roundOffsets, a = l === void 0 ? !0 : l, c = {
@@ -12631,16 +12631,16 @@ function xf(n) {
12631
12631
  }
12632
12632
  function Qr(n, e) {
12633
12633
  e === void 0 && (e = {});
12634
- var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, l = t.boundary, a = l === void 0 ? I0 : l, c = t.rootBoundary, d = c === void 0 ? uf : c, u = t.elementContext, f = u === void 0 ? br : u, p = t.altBoundary, h = p === void 0 ? !1 : p, m = t.padding, g = m === void 0 ? 0 : m, y = yf(typeof g != "number" ? g : bf(g, li)), v = f === br ? L0 : br, w = n.rects.popper, b = n.elements[h ? v : f], T = fb(En(b) ? b : b.contextElement || tn(n.elements.popper), a, d, s), k = rr(n.elements.reference), O = xf({
12634
+ var t = e, r = t.placement, i = r === void 0 ? n.placement : r, o = t.strategy, s = o === void 0 ? n.strategy : o, l = t.boundary, a = l === void 0 ? I0 : l, c = t.rootBoundary, d = c === void 0 ? uf : c, u = t.elementContext, f = u === void 0 ? br : u, p = t.altBoundary, h = p === void 0 ? !1 : p, m = t.padding, g = m === void 0 ? 0 : m, b = yf(typeof g != "number" ? g : bf(g, li)), v = f === br ? L0 : br, w = n.rects.popper, y = n.elements[h ? v : f], S = fb(En(y) ? y : y.contextElement || tn(n.elements.popper), a, d, s), k = rr(n.elements.reference), O = xf({
12635
12635
  reference: k,
12636
12636
  element: w,
12637
12637
  strategy: "absolute",
12638
12638
  placement: i
12639
12639
  }), H = dl(Object.assign({}, w, O)), D = f === br ? H : k, q = {
12640
- top: T.top - D.top + y.top,
12641
- bottom: D.bottom - T.bottom + y.bottom,
12642
- left: T.left - D.left + y.left,
12643
- right: D.right - T.right + y.right
12640
+ top: S.top - D.top + b.top,
12641
+ bottom: D.bottom - S.bottom + b.bottom,
12642
+ left: S.left - D.left + b.left,
12643
+ right: D.right - S.right + b.right
12644
12644
  }, Q = n.modifiersData.offset;
12645
12645
  if (f === br && Q) {
12646
12646
  var Y = Q[i];
@@ -12680,7 +12680,7 @@ function hb(n) {
12680
12680
  function mb(n) {
12681
12681
  var e = n.state, t = n.options, r = n.name;
12682
12682
  if (!e.modifiersData[r]._skip) {
12683
- for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, l = s === void 0 ? !0 : s, a = t.fallbackPlacements, c = t.padding, d = t.boundary, u = t.rootBoundary, f = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, m = t.allowedAutoPlacements, g = e.options.placement, y = ht(g), v = y === g, w = a || (v || !h ? [Vi(g)] : hb(g)), b = [g].concat(w).reduce(function(vt, et) {
12683
+ for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, l = s === void 0 ? !0 : s, a = t.fallbackPlacements, c = t.padding, d = t.boundary, u = t.rootBoundary, f = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, m = t.allowedAutoPlacements, g = e.options.placement, b = ht(g), v = b === g, w = a || (v || !h ? [Vi(g)] : hb(g)), y = [g].concat(w).reduce(function(vt, et) {
12684
12684
  return vt.concat(ht(et) === Xl ? pb(e, {
12685
12685
  placement: et,
12686
12686
  boundary: d,
@@ -12689,15 +12689,15 @@ function mb(n) {
12689
12689
  flipVariations: h,
12690
12690
  allowedAutoPlacements: m
12691
12691
  }) : et);
12692
- }, []), T = e.rects.reference, k = e.rects.popper, O = /* @__PURE__ */ new Map(), H = !0, D = b[0], q = 0; q < b.length; q++) {
12693
- var Q = b[q], Y = ht(Q), te = ir(Q) === tr, xe = [$e, Qe].indexOf(Y) >= 0, me = xe ? "width" : "height", oe = Qr(e, {
12692
+ }, []), S = e.rects.reference, k = e.rects.popper, O = /* @__PURE__ */ new Map(), H = !0, D = y[0], q = 0; q < y.length; q++) {
12693
+ var Q = y[q], Y = ht(Q), te = ir(Q) === tr, xe = [$e, Qe].indexOf(Y) >= 0, me = xe ? "width" : "height", oe = Qr(e, {
12694
12694
  placement: Q,
12695
12695
  boundary: d,
12696
12696
  rootBoundary: u,
12697
12697
  altBoundary: f,
12698
12698
  padding: c
12699
12699
  }), ae = xe ? te ? Ze : He : te ? Qe : $e;
12700
- T[me] > k[me] && (ae = Vi(ae));
12700
+ S[me] > k[me] && (ae = Vi(ae));
12701
12701
  var we = Vi(ae), st = [];
12702
12702
  if (o && st.push(oe[Y] <= 0), l && st.push(oe[ae] <= 0, oe[we] <= 0), st.every(function(vt) {
12703
12703
  return vt;
@@ -12709,7 +12709,7 @@ function mb(n) {
12709
12709
  }
12710
12710
  if (H)
12711
12711
  for (var lt = h ? 3 : 1, nn = function(et) {
12712
- var xt = b.find(function(Dn) {
12712
+ var xt = y.find(function(Dn) {
12713
12713
  var wt = O.get(Dn);
12714
12714
  if (wt)
12715
12715
  return wt.slice(0, et).every(function(Rn) {
@@ -12825,7 +12825,7 @@ function Tb(n) {
12825
12825
  rootBoundary: c,
12826
12826
  padding: u,
12827
12827
  altBoundary: d
12828
- }), y = ht(e.placement), v = ir(e.placement), w = !v, b = ea(y), T = Sb(b), k = e.modifiersData.popperOffsets, O = e.rects.reference, H = e.rects.popper, D = typeof m == "function" ? m(Object.assign({}, e.rects, {
12828
+ }), b = ht(e.placement), v = ir(e.placement), w = !v, y = ea(b), S = Sb(y), k = e.modifiersData.popperOffsets, O = e.rects.reference, H = e.rects.popper, D = typeof m == "function" ? m(Object.assign({}, e.rects, {
12829
12829
  placement: e.placement
12830
12830
  })) : m, q = typeof D == "number" ? {
12831
12831
  mainAxis: D,
@@ -12839,15 +12839,15 @@ function Tb(n) {
12839
12839
  };
12840
12840
  if (k) {
12841
12841
  if (o) {
12842
- var te, xe = b === "y" ? $e : He, me = b === "y" ? Qe : Ze, oe = b === "y" ? "height" : "width", ae = k[b], we = ae + g[xe], st = ae - g[me], lt = p ? -H[oe] / 2 : 0, nn = v === tr ? O[oe] : H[oe], at = v === tr ? -H[oe] : -O[oe], rn = e.elements.arrow, vt = p && rn ? Zl(rn) : {
12842
+ var te, xe = y === "y" ? $e : He, me = y === "y" ? Qe : Ze, oe = y === "y" ? "height" : "width", ae = k[y], we = ae + g[xe], st = ae - g[me], lt = p ? -H[oe] / 2 : 0, nn = v === tr ? O[oe] : H[oe], at = v === tr ? -H[oe] : -O[oe], rn = e.elements.arrow, vt = p && rn ? Zl(rn) : {
12843
12843
  width: 0,
12844
12844
  height: 0
12845
- }, et = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : gf(), xt = et[xe], Dn = et[me], wt = Nr(0, O[oe], vt[oe]), Rn = w ? O[oe] / 2 - lt - wt - xt - q.mainAxis : nn - wt - xt - q.mainAxis, It = w ? -O[oe] / 2 + lt + wt + Dn + q.mainAxis : at + wt + Dn + q.mainAxis, In = e.elements.arrow && ai(e.elements.arrow), ci = In ? b === "y" ? In.clientTop || 0 : In.clientLeft || 0 : 0, fr = (te = Q == null ? void 0 : Q[b]) != null ? te : 0, di = ae + Rn - fr - ci, ui = ae + It - fr, pr = Nr(p ? ao(we, di) : we, ae, p ? xn(st, ui) : st);
12846
- k[b] = pr, Y[b] = pr - ae;
12845
+ }, et = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : gf(), xt = et[xe], Dn = et[me], wt = Nr(0, O[oe], vt[oe]), Rn = w ? O[oe] / 2 - lt - wt - xt - q.mainAxis : nn - wt - xt - q.mainAxis, It = w ? -O[oe] / 2 + lt + wt + Dn + q.mainAxis : at + wt + Dn + q.mainAxis, In = e.elements.arrow && ai(e.elements.arrow), ci = In ? y === "y" ? In.clientTop || 0 : In.clientLeft || 0 : 0, fr = (te = Q == null ? void 0 : Q[y]) != null ? te : 0, di = ae + Rn - fr - ci, ui = ae + It - fr, pr = Nr(p ? ao(we, di) : we, ae, p ? xn(st, ui) : st);
12846
+ k[y] = pr, Y[y] = pr - ae;
12847
12847
  }
12848
12848
  if (l) {
12849
- var hr, fi = b === "x" ? $e : He, pi = b === "x" ? Qe : Ze, kt = k[T], Lt = T === "y" ? "height" : "width", mr = kt + g[fi], on = kt - g[pi], gr = [$e, He].indexOf(y) !== -1, hi = (hr = Q == null ? void 0 : Q[T]) != null ? hr : 0, mi = gr ? mr : kt - O[Lt] - H[Lt] - hi + q.altAxis, gi = gr ? kt + O[Lt] + H[Lt] - hi - q.altAxis : on, yi = p && gr ? G0(mi, kt, gi) : Nr(p ? mi : mr, kt, p ? gi : on);
12850
- k[T] = yi, Y[T] = yi - kt;
12849
+ var hr, fi = y === "x" ? $e : He, pi = y === "x" ? Qe : Ze, kt = k[S], Lt = S === "y" ? "height" : "width", mr = kt + g[fi], on = kt - g[pi], gr = [$e, He].indexOf(b) !== -1, hi = (hr = Q == null ? void 0 : Q[S]) != null ? hr : 0, mi = gr ? mr : kt - O[Lt] - H[Lt] - hi + q.altAxis, gi = gr ? kt + O[Lt] + H[Lt] - hi - q.altAxis : on, yi = p && gr ? G0(mi, kt, gi) : Nr(p ? mi : mr, kt, p ? gi : on);
12850
+ k[S] = yi, Y[S] = yi - kt;
12851
12851
  }
12852
12852
  e.modifiersData[r] = Y;
12853
12853
  }
@@ -12968,15 +12968,15 @@ function Pb(n) {
12968
12968
  styles: {}
12969
12969
  }, u = [], f = !1, p = {
12970
12970
  state: d,
12971
- setOptions: function(y) {
12972
- var v = typeof y == "function" ? y(d.options) : y;
12971
+ setOptions: function(b) {
12972
+ var v = typeof b == "function" ? b(d.options) : b;
12973
12973
  m(), d.options = Object.assign({}, o, d.options, v), d.scrollParents = {
12974
12974
  reference: En(l) ? Dr(l) : l.contextElement ? Dr(l.contextElement) : [],
12975
12975
  popper: Dr(a)
12976
12976
  };
12977
12977
  var w = Rb(Lb([].concat(r, d.options.modifiers)));
12978
- return d.orderedModifiers = w.filter(function(b) {
12979
- return b.enabled;
12978
+ return d.orderedModifiers = w.filter(function(y) {
12979
+ return y.enabled;
12980
12980
  }), h(), p.update();
12981
12981
  },
12982
12982
  // Sync update – it will always be executed, even if not necessary. This
@@ -12986,7 +12986,7 @@ function Pb(n) {
12986
12986
  // prefer the async Popper#update method
12987
12987
  forceUpdate: function() {
12988
12988
  if (!f) {
12989
- var y = d.elements, v = y.reference, w = y.popper;
12989
+ var b = d.elements, v = b.reference, w = b.popper;
12990
12990
  if (Hc(v, w)) {
12991
12991
  d.rects = {
12992
12992
  reference: Nb(v, ai(w), d.options.strategy === "fixed"),
@@ -12994,12 +12994,12 @@ function Pb(n) {
12994
12994
  }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(q) {
12995
12995
  return d.modifiersData[q.name] = Object.assign({}, q.data);
12996
12996
  });
12997
- for (var b = 0; b < d.orderedModifiers.length; b++) {
12997
+ for (var y = 0; y < d.orderedModifiers.length; y++) {
12998
12998
  if (d.reset === !0) {
12999
- d.reset = !1, b = -1;
12999
+ d.reset = !1, y = -1;
13000
13000
  continue;
13001
13001
  }
13002
- var T = d.orderedModifiers[b], k = T.fn, O = T.options, H = O === void 0 ? {} : O, D = T.name;
13002
+ var S = d.orderedModifiers[y], k = S.fn, O = S.options, H = O === void 0 ? {} : O, D = S.name;
13003
13003
  typeof k == "function" && (d = k({
13004
13004
  state: d,
13005
13005
  options: H,
@@ -13028,16 +13028,16 @@ function Pb(n) {
13028
13028
  });
13029
13029
  function h() {
13030
13030
  d.orderedModifiers.forEach(function(g) {
13031
- var y = g.name, v = g.options, w = v === void 0 ? {} : v, b = g.effect;
13032
- if (typeof b == "function") {
13033
- var T = b({
13031
+ var b = g.name, v = g.options, w = v === void 0 ? {} : v, y = g.effect;
13032
+ if (typeof y == "function") {
13033
+ var S = y({
13034
13034
  state: d,
13035
- name: y,
13035
+ name: b,
13036
13036
  instance: p,
13037
13037
  options: w
13038
13038
  }), k = function() {
13039
13039
  };
13040
- u.push(T || k);
13040
+ u.push(S || k);
13041
13041
  }
13042
13042
  });
13043
13043
  }
@@ -13155,8 +13155,8 @@ function Yb(n, e) {
13155
13155
  var o = i.popperRect, s = i.popperState, l = i.props, a = l.interactiveBorder, c = Wb(s.placement), d = s.modifiersData.offset;
13156
13156
  if (!d)
13157
13157
  return !0;
13158
- var u = c === "bottom" ? d.top.y : 0, f = c === "top" ? d.bottom.y : 0, p = c === "right" ? d.left.x : 0, h = c === "left" ? d.right.x : 0, m = o.top - r + u > a, g = r - o.bottom - f > a, y = o.left - t + p > a, v = t - o.right - h > a;
13159
- return m || g || y || v;
13158
+ var u = c === "bottom" ? d.top.y : 0, f = c === "top" ? d.bottom.y : 0, p = c === "right" ? d.left.x : 0, h = c === "left" ? d.right.x : 0, m = o.top - r + u > a, g = r - o.bottom - f > a, b = o.left - t + p > a, v = t - o.right - h > a;
13159
+ return m || g || b || v;
13160
13160
  });
13161
13161
  }
13162
13162
  function Rs(n, e, t) {
@@ -13414,7 +13414,7 @@ function Df(n) {
13414
13414
  Df.$$tippy = !0;
13415
13415
  var dv = 1, Ei = [], Is = [];
13416
13416
  function uv(n, e) {
13417
- var t = Kc(n, Object.assign({}, Ve, Of(jc(e)))), r, i, o, s = !1, l = !1, a = !1, c = !1, d, u, f, p = [], h = Fc(di, t.interactiveDebounce), m, g = dv++, y = null, v = _b(t.plugins), w = {
13417
+ var t = Kc(n, Object.assign({}, Ve, Of(jc(e)))), r, i, o, s = !1, l = !1, a = !1, c = !1, d, u, f, p = [], h = Fc(di, t.interactiveDebounce), m, g = dv++, b = null, v = _b(t.plugins), w = {
13418
13418
  // Is the instance currently enabled?
13419
13419
  isEnabled: !0,
13420
13420
  // Is the tippy currently showing and not transitioning out?
@@ -13425,12 +13425,12 @@ function uv(n, e) {
13425
13425
  isMounted: !1,
13426
13426
  // Has the tippy finished transitioning in?
13427
13427
  isShown: !1
13428
- }, b = {
13428
+ }, y = {
13429
13429
  // properties
13430
13430
  id: g,
13431
13431
  reference: n,
13432
13432
  popper: Rr(),
13433
- popperInstance: y,
13433
+ popperInstance: b,
13434
13434
  props: t,
13435
13435
  state: w,
13436
13436
  plugins: v,
@@ -13447,19 +13447,19 @@ function uv(n, e) {
13447
13447
  destroy: fp
13448
13448
  };
13449
13449
  if (!t.render)
13450
- return process.env.NODE_ENV !== "production" && ul(!0, "render() function has not been supplied."), b;
13451
- var T = t.render(b), k = T.popper, O = T.onUpdate;
13452
- k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + b.id, b.popper = k, n._tippy = b, k._tippy = b;
13450
+ return process.env.NODE_ENV !== "production" && ul(!0, "render() function has not been supplied."), y;
13451
+ var S = t.render(y), k = S.popper, O = S.onUpdate;
13452
+ k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + y.id, y.popper = k, n._tippy = y, k._tippy = y;
13453
13453
  var H = v.map(function(C) {
13454
- return C.fn(b);
13454
+ return C.fn(y);
13455
13455
  }), D = n.hasAttribute("aria-expanded");
13456
- return In(), lt(), ae(), we("onCreate", [b]), t.showOnCreate && mr(), k.addEventListener("mouseenter", function() {
13457
- b.props.interactive && b.state.isVisible && b.clearDelayTimeouts();
13456
+ return In(), lt(), ae(), we("onCreate", [y]), t.showOnCreate && mr(), k.addEventListener("mouseenter", function() {
13457
+ y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
13458
13458
  }), k.addEventListener("mouseleave", function() {
13459
- b.props.interactive && b.props.trigger.indexOf("mouseenter") >= 0 && xe().addEventListener("mousemove", h);
13460
- }), b;
13459
+ y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && xe().addEventListener("mousemove", h);
13460
+ }), y;
13461
13461
  function q() {
13462
- var C = b.props.touch;
13462
+ var C = y.props.touch;
13463
13463
  return Array.isArray(C) ? C : [C, 0];
13464
13464
  }
13465
13465
  function Q() {
@@ -13467,7 +13467,7 @@ function uv(n, e) {
13467
13467
  }
13468
13468
  function Y() {
13469
13469
  var C;
13470
- return !!((C = b.props.render) != null && C.$$tippy);
13470
+ return !!((C = y.props.render) != null && C.$$tippy);
13471
13471
  }
13472
13472
  function te() {
13473
13473
  return m || n;
@@ -13480,26 +13480,26 @@ function uv(n, e) {
13480
13480
  return pl(k);
13481
13481
  }
13482
13482
  function oe(C) {
13483
- return b.state.isMounted && !b.state.isVisible || ft.isTouch || d && d.type === "focus" ? 0 : Ns(b.props.delay, C ? 0 : 1, Ve.delay);
13483
+ return y.state.isMounted && !y.state.isVisible || ft.isTouch || d && d.type === "focus" ? 0 : Ns(y.props.delay, C ? 0 : 1, Ve.delay);
13484
13484
  }
13485
13485
  function ae(C) {
13486
- C === void 0 && (C = !1), k.style.pointerEvents = b.props.interactive && !C ? "" : "none", k.style.zIndex = "" + b.props.zIndex;
13486
+ C === void 0 && (C = !1), k.style.pointerEvents = y.props.interactive && !C ? "" : "none", k.style.zIndex = "" + y.props.zIndex;
13487
13487
  }
13488
13488
  function we(C, R, $) {
13489
13489
  if ($ === void 0 && ($ = !0), H.forEach(function(J) {
13490
13490
  J[C] && J[C].apply(J, R);
13491
13491
  }), $) {
13492
13492
  var G;
13493
- (G = b.props)[C].apply(G, R);
13493
+ (G = y.props)[C].apply(G, R);
13494
13494
  }
13495
13495
  }
13496
13496
  function st() {
13497
- var C = b.props.aria;
13497
+ var C = y.props.aria;
13498
13498
  if (C.content) {
13499
- var R = "aria-" + C.content, $ = k.id, G = jn(b.props.triggerTarget || n);
13499
+ var R = "aria-" + C.content, $ = k.id, G = jn(y.props.triggerTarget || n);
13500
13500
  G.forEach(function(J) {
13501
13501
  var Ne = J.getAttribute(R);
13502
- if (b.state.isVisible)
13502
+ if (y.state.isVisible)
13503
13503
  J.setAttribute(R, Ne ? Ne + " " + $ : $);
13504
13504
  else {
13505
13505
  var We = Ne && Ne.replace($, "").trim();
@@ -13509,10 +13509,10 @@ function uv(n, e) {
13509
13509
  }
13510
13510
  }
13511
13511
  function lt() {
13512
- if (!(D || !b.props.aria.expanded)) {
13513
- var C = jn(b.props.triggerTarget || n);
13512
+ if (!(D || !y.props.aria.expanded)) {
13513
+ var C = jn(y.props.triggerTarget || n);
13514
13514
  C.forEach(function(R) {
13515
- b.props.interactive ? R.setAttribute("aria-expanded", b.state.isVisible && R === te() ? "true" : "false") : R.removeAttribute("aria-expanded");
13515
+ y.props.interactive ? R.setAttribute("aria-expanded", y.state.isVisible && R === te() ? "true" : "false") : R.removeAttribute("aria-expanded");
13516
13516
  });
13517
13517
  }
13518
13518
  }
@@ -13524,17 +13524,17 @@ function uv(n, e) {
13524
13524
  function at(C) {
13525
13525
  if (!(ft.isTouch && (a || C.type === "mousedown"))) {
13526
13526
  var R = C.composedPath && C.composedPath()[0] || C.target;
13527
- if (!(b.props.interactive && Wc(k, R))) {
13528
- if (jn(b.props.triggerTarget || n).some(function($) {
13527
+ if (!(y.props.interactive && Wc(k, R))) {
13528
+ if (jn(y.props.triggerTarget || n).some(function($) {
13529
13529
  return Wc($, R);
13530
13530
  })) {
13531
- if (ft.isTouch || b.state.isVisible && b.props.trigger.indexOf("click") >= 0)
13531
+ if (ft.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
13532
13532
  return;
13533
13533
  } else
13534
- we("onClickOutside", [b, C]);
13535
- b.props.hideOnClick === !0 && (b.clearDelayTimeouts(), b.hide(), l = !0, setTimeout(function() {
13534
+ we("onClickOutside", [y, C]);
13535
+ y.props.hideOnClick === !0 && (y.clearDelayTimeouts(), y.hide(), l = !0, setTimeout(function() {
13536
13536
  l = !1;
13537
- }), b.state.isMounted || xt());
13537
+ }), y.state.isMounted || xt());
13538
13538
  }
13539
13539
  }
13540
13540
  }
@@ -13554,7 +13554,7 @@ function uv(n, e) {
13554
13554
  }
13555
13555
  function Dn(C, R) {
13556
13556
  Rn(C, function() {
13557
- !b.state.isVisible && k.parentNode && k.parentNode.contains(k) && R();
13557
+ !y.state.isVisible && k.parentNode && k.parentNode.contains(k) && R();
13558
13558
  });
13559
13559
  }
13560
13560
  function wt(C, R) {
@@ -13571,7 +13571,7 @@ function uv(n, e) {
13571
13571
  }
13572
13572
  function It(C, R, $) {
13573
13573
  $ === void 0 && ($ = !1);
13574
- var G = jn(b.props.triggerTarget || n);
13574
+ var G = jn(y.props.triggerTarget || n);
13575
13575
  G.forEach(function(J) {
13576
13576
  J.addEventListener(C, R, $), p.push({
13577
13577
  node: J,
@@ -13586,7 +13586,7 @@ function uv(n, e) {
13586
13586
  passive: !0
13587
13587
  }), It("touchend", ui, {
13588
13588
  passive: !0
13589
- })), jb(b.props.trigger).forEach(function(C) {
13589
+ })), jb(y.props.trigger).forEach(function(C) {
13590
13590
  if (C !== "manual")
13591
13591
  switch (It(C, fr), C) {
13592
13592
  case "mouseenter":
@@ -13609,11 +13609,11 @@ function uv(n, e) {
13609
13609
  }
13610
13610
  function fr(C) {
13611
13611
  var R, $ = !1;
13612
- if (!(!b.state.isEnabled || hr(C) || l)) {
13612
+ if (!(!y.state.isEnabled || hr(C) || l)) {
13613
13613
  var G = ((R = d) == null ? void 0 : R.type) === "focus";
13614
- d = C, m = C.currentTarget, lt(), !b.state.isVisible && qb(C) && Ei.forEach(function(J) {
13614
+ d = C, m = C.currentTarget, lt(), !y.state.isVisible && qb(C) && Ei.forEach(function(J) {
13615
13615
  return J(C);
13616
- }), C.type === "click" && (b.props.trigger.indexOf("mouseenter") < 0 || s) && b.props.hideOnClick !== !1 && b.state.isVisible ? $ = !0 : mr(C), C.type === "click" && (s = !$), $ && !G && on(C);
13616
+ }), C.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? $ = !0 : mr(C), C.type === "click" && (s = !$), $ && !G && on(C);
13617
13617
  }
13618
13618
  }
13619
13619
  function di(C) {
@@ -13631,24 +13631,24 @@ function uv(n, e) {
13631
13631
  }
13632
13632
  }
13633
13633
  function ui(C) {
13634
- var R = hr(C) || b.props.trigger.indexOf("click") >= 0 && s;
13634
+ var R = hr(C) || y.props.trigger.indexOf("click") >= 0 && s;
13635
13635
  if (!R) {
13636
- if (b.props.interactive) {
13637
- b.hideWithInteractivity(C);
13636
+ if (y.props.interactive) {
13637
+ y.hideWithInteractivity(C);
13638
13638
  return;
13639
13639
  }
13640
13640
  on(C);
13641
13641
  }
13642
13642
  }
13643
13643
  function pr(C) {
13644
- b.props.trigger.indexOf("focusin") < 0 && C.target !== te() || b.props.interactive && C.relatedTarget && k.contains(C.relatedTarget) || on(C);
13644
+ y.props.trigger.indexOf("focusin") < 0 && C.target !== te() || y.props.interactive && C.relatedTarget && k.contains(C.relatedTarget) || on(C);
13645
13645
  }
13646
13646
  function hr(C) {
13647
13647
  return ft.isTouch ? Q() !== C.type.indexOf("touch") >= 0 : !1;
13648
13648
  }
13649
13649
  function fi() {
13650
13650
  pi();
13651
- var C = b.props, R = C.popperOptions, $ = C.placement, G = C.offset, J = C.getReferenceClientRect, Ne = C.moveTransition, We = Y() ? pl(k).arrow : null, Ln = J ? {
13651
+ var C = y.props, R = C.popperOptions, $ = C.placement, G = C.offset, J = C.getReferenceClientRect, Ne = C.moveTransition, We = Y() ? pl(k).arrow : null, Ln = J ? {
13652
13652
  getBoundingClientRect: J,
13653
13653
  contextElement: J.contextElement || te()
13654
13654
  } : n, ma = {
@@ -13697,18 +13697,18 @@ function uv(n, e) {
13697
13697
  element: We,
13698
13698
  padding: 3
13699
13699
  }
13700
- }), sn.push.apply(sn, (R == null ? void 0 : R.modifiers) || []), b.popperInstance = zb(Ln, k, Object.assign({}, R, {
13700
+ }), sn.push.apply(sn, (R == null ? void 0 : R.modifiers) || []), y.popperInstance = zb(Ln, k, Object.assign({}, R, {
13701
13701
  placement: $,
13702
13702
  onFirstUpdate: f,
13703
13703
  modifiers: sn
13704
13704
  }));
13705
13705
  }
13706
13706
  function pi() {
13707
- b.popperInstance && (b.popperInstance.destroy(), b.popperInstance = null);
13707
+ y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
13708
13708
  }
13709
13709
  function kt() {
13710
- var C = b.props.appendTo, R, $ = te();
13711
- b.props.interactive && C === Sf || C === "parent" ? R = $.parentNode : R = Tf(C, [$]), R.contains(k) || R.appendChild(k), b.state.isMounted = !0, fi(), process.env.NODE_ENV !== "production" && Ot(b.props.interactive && C === Ve.appendTo && $.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
13710
+ var C = y.props.appendTo, R, $ = te();
13711
+ y.props.interactive && C === Sf || C === "parent" ? R = $.parentNode : R = Tf(C, [$]), R.contains(k) || R.appendChild(k), y.state.isMounted = !0, fi(), process.env.NODE_ENV !== "production" && Ot(y.props.interactive && C === Ve.appendTo && $.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
13712
13712
 
13713
13713
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
13714
13714
 
@@ -13720,98 +13720,98 @@ function uv(n, e) {
13720
13720
  return co(k.querySelectorAll("[data-tippy-root]"));
13721
13721
  }
13722
13722
  function mr(C) {
13723
- b.clearDelayTimeouts(), C && we("onTrigger", [b, C]), et();
13723
+ y.clearDelayTimeouts(), C && we("onTrigger", [y, C]), et();
13724
13724
  var R = oe(!0), $ = q(), G = $[0], J = $[1];
13725
13725
  ft.isTouch && G === "hold" && J && (R = J), R ? r = setTimeout(function() {
13726
- b.show();
13727
- }, R) : b.show();
13726
+ y.show();
13727
+ }, R) : y.show();
13728
13728
  }
13729
13729
  function on(C) {
13730
- if (b.clearDelayTimeouts(), we("onUntrigger", [b, C]), !b.state.isVisible) {
13730
+ if (y.clearDelayTimeouts(), we("onUntrigger", [y, C]), !y.state.isVisible) {
13731
13731
  xt();
13732
13732
  return;
13733
13733
  }
13734
- if (!(b.props.trigger.indexOf("mouseenter") >= 0 && b.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(C.type) >= 0 && s)) {
13734
+ if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(C.type) >= 0 && s)) {
13735
13735
  var R = oe(!1);
13736
13736
  R ? i = setTimeout(function() {
13737
- b.state.isVisible && b.hide();
13737
+ y.state.isVisible && y.hide();
13738
13738
  }, R) : o = requestAnimationFrame(function() {
13739
- b.hide();
13739
+ y.hide();
13740
13740
  });
13741
13741
  }
13742
13742
  }
13743
13743
  function gr() {
13744
- b.state.isEnabled = !0;
13744
+ y.state.isEnabled = !0;
13745
13745
  }
13746
13746
  function hi() {
13747
- b.hide(), b.state.isEnabled = !1;
13747
+ y.hide(), y.state.isEnabled = !1;
13748
13748
  }
13749
13749
  function mi() {
13750
13750
  clearTimeout(r), clearTimeout(i), cancelAnimationFrame(o);
13751
13751
  }
13752
13752
  function gi(C) {
13753
- if (process.env.NODE_ENV !== "production" && Ot(b.state.isDestroyed, $n("setProps")), !b.state.isDestroyed) {
13754
- we("onBeforeUpdate", [b, C]), ci();
13755
- var R = b.props, $ = Kc(n, Object.assign({}, R, jc(C), {
13753
+ if (process.env.NODE_ENV !== "production" && Ot(y.state.isDestroyed, $n("setProps")), !y.state.isDestroyed) {
13754
+ we("onBeforeUpdate", [y, C]), ci();
13755
+ var R = y.props, $ = Kc(n, Object.assign({}, R, jc(C), {
13756
13756
  ignoreAttributes: !0
13757
13757
  }));
13758
- b.props = $, In(), R.interactiveDebounce !== $.interactiveDebounce && (nn(), h = Fc(di, $.interactiveDebounce)), R.triggerTarget && !$.triggerTarget ? jn(R.triggerTarget).forEach(function(G) {
13758
+ y.props = $, In(), R.interactiveDebounce !== $.interactiveDebounce && (nn(), h = Fc(di, $.interactiveDebounce)), R.triggerTarget && !$.triggerTarget ? jn(R.triggerTarget).forEach(function(G) {
13759
13759
  G.removeAttribute("aria-expanded");
13760
- }) : $.triggerTarget && n.removeAttribute("aria-expanded"), lt(), ae(), O && O(R, $), b.popperInstance && (fi(), Lt().forEach(function(G) {
13760
+ }) : $.triggerTarget && n.removeAttribute("aria-expanded"), lt(), ae(), O && O(R, $), y.popperInstance && (fi(), Lt().forEach(function(G) {
13761
13761
  requestAnimationFrame(G._tippy.popperInstance.forceUpdate);
13762
- })), we("onAfterUpdate", [b, C]);
13762
+ })), we("onAfterUpdate", [y, C]);
13763
13763
  }
13764
13764
  }
13765
13765
  function yi(C) {
13766
- b.setProps({
13766
+ y.setProps({
13767
13767
  content: C
13768
13768
  });
13769
13769
  }
13770
13770
  function ap() {
13771
- process.env.NODE_ENV !== "production" && Ot(b.state.isDestroyed, $n("show"));
13772
- var C = b.state.isVisible, R = b.state.isDestroyed, $ = !b.state.isEnabled, G = ft.isTouch && !b.props.touch, J = Ns(b.props.duration, 0, Ve.duration);
13773
- if (!(C || R || $ || G) && !te().hasAttribute("disabled") && (we("onShow", [b], !1), b.props.onShow(b) !== !1)) {
13774
- if (b.state.isVisible = !0, Y() && (k.style.visibility = "visible"), ae(), et(), b.state.isMounted || (k.style.transition = "none"), Y()) {
13771
+ process.env.NODE_ENV !== "production" && Ot(y.state.isDestroyed, $n("show"));
13772
+ var C = y.state.isVisible, R = y.state.isDestroyed, $ = !y.state.isEnabled, G = ft.isTouch && !y.props.touch, J = Ns(y.props.duration, 0, Ve.duration);
13773
+ if (!(C || R || $ || G) && !te().hasAttribute("disabled") && (we("onShow", [y], !1), y.props.onShow(y) !== !1)) {
13774
+ if (y.state.isVisible = !0, Y() && (k.style.visibility = "visible"), ae(), et(), y.state.isMounted || (k.style.transition = "none"), Y()) {
13775
13775
  var Ne = me(), We = Ne.box, Ln = Ne.content;
13776
13776
  Ds([We, Ln], 0);
13777
13777
  }
13778
13778
  f = function() {
13779
13779
  var sn;
13780
- if (!(!b.state.isVisible || c)) {
13781
- if (c = !0, k.offsetHeight, k.style.transition = b.props.moveTransition, Y() && b.props.animation) {
13780
+ if (!(!y.state.isVisible || c)) {
13781
+ if (c = !0, k.offsetHeight, k.style.transition = y.props.moveTransition, Y() && y.props.animation) {
13782
13782
  var cs = me(), bi = cs.box, Pn = cs.content;
13783
13783
  Ds([bi, Pn], J), _c([bi, Pn], "visible");
13784
13784
  }
13785
- st(), lt(), Vc(Is, b), (sn = b.popperInstance) == null || sn.forceUpdate(), we("onMount", [b]), b.props.animation && Y() && wt(J, function() {
13786
- b.state.isShown = !0, we("onShown", [b]);
13785
+ st(), lt(), Vc(Is, y), (sn = y.popperInstance) == null || sn.forceUpdate(), we("onMount", [y]), y.props.animation && Y() && wt(J, function() {
13786
+ y.state.isShown = !0, we("onShown", [y]);
13787
13787
  });
13788
13788
  }
13789
13789
  }, kt();
13790
13790
  }
13791
13791
  }
13792
13792
  function cp() {
13793
- process.env.NODE_ENV !== "production" && Ot(b.state.isDestroyed, $n("hide"));
13794
- var C = !b.state.isVisible, R = b.state.isDestroyed, $ = !b.state.isEnabled, G = Ns(b.props.duration, 1, Ve.duration);
13795
- if (!(C || R || $) && (we("onHide", [b], !1), b.props.onHide(b) !== !1)) {
13796
- if (b.state.isVisible = !1, b.state.isShown = !1, c = !1, s = !1, Y() && (k.style.visibility = "hidden"), nn(), xt(), ae(!0), Y()) {
13793
+ process.env.NODE_ENV !== "production" && Ot(y.state.isDestroyed, $n("hide"));
13794
+ var C = !y.state.isVisible, R = y.state.isDestroyed, $ = !y.state.isEnabled, G = Ns(y.props.duration, 1, Ve.duration);
13795
+ if (!(C || R || $) && (we("onHide", [y], !1), y.props.onHide(y) !== !1)) {
13796
+ if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, Y() && (k.style.visibility = "hidden"), nn(), xt(), ae(!0), Y()) {
13797
13797
  var J = me(), Ne = J.box, We = J.content;
13798
- b.props.animation && (Ds([Ne, We], G), _c([Ne, We], "hidden"));
13798
+ y.props.animation && (Ds([Ne, We], G), _c([Ne, We], "hidden"));
13799
13799
  }
13800
- st(), lt(), b.props.animation ? Y() && Dn(G, b.unmount) : b.unmount();
13800
+ st(), lt(), y.props.animation ? Y() && Dn(G, y.unmount) : y.unmount();
13801
13801
  }
13802
13802
  }
13803
13803
  function dp(C) {
13804
- process.env.NODE_ENV !== "production" && Ot(b.state.isDestroyed, $n("hideWithInteractivity")), xe().addEventListener("mousemove", h), Vc(Ei, h), h(C);
13804
+ process.env.NODE_ENV !== "production" && Ot(y.state.isDestroyed, $n("hideWithInteractivity")), xe().addEventListener("mousemove", h), Vc(Ei, h), h(C);
13805
13805
  }
13806
13806
  function up() {
13807
- process.env.NODE_ENV !== "production" && Ot(b.state.isDestroyed, $n("unmount")), b.state.isVisible && b.hide(), b.state.isMounted && (pi(), Lt().forEach(function(C) {
13807
+ process.env.NODE_ENV !== "production" && Ot(y.state.isDestroyed, $n("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (pi(), Lt().forEach(function(C) {
13808
13808
  C._tippy.unmount();
13809
13809
  }), k.parentNode && k.parentNode.removeChild(k), Is = Is.filter(function(C) {
13810
- return C !== b;
13811
- }), b.state.isMounted = !1, we("onHidden", [b]));
13810
+ return C !== y;
13811
+ }), y.state.isMounted = !1, we("onHidden", [y]));
13812
13812
  }
13813
13813
  function fp() {
13814
- process.env.NODE_ENV !== "production" && Ot(b.state.isDestroyed, $n("destroy")), !b.state.isDestroyed && (b.clearDelayTimeouts(), b.unmount(), ci(), delete n._tippy, b.state.isDestroyed = !0, we("onDestroy", [b]));
13814
+ process.env.NODE_ENV !== "production" && Ot(y.state.isDestroyed, $n("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), ci(), delete n._tippy, y.state.isDestroyed = !0, we("onDestroy", [y]));
13815
13815
  }
13816
13816
  }
13817
13817
  function cr(n, e) {
@@ -13890,14 +13890,14 @@ class fv {
13890
13890
  if (m || !a && !c)
13891
13891
  return;
13892
13892
  this.createTooltip();
13893
- const { ranges: v } = g, w = Math.min(...v.map((k) => k.$from.pos)), b = Math.max(...v.map((k) => k.$to.pos));
13893
+ const { ranges: v } = g, w = Math.min(...v.map((k) => k.$from.pos)), y = Math.max(...v.map((k) => k.$to.pos));
13894
13894
  if (!((u = this.shouldShow) === null || u === void 0 ? void 0 : u.call(this, {
13895
13895
  editor: this.editor,
13896
13896
  view: l,
13897
13897
  state: h,
13898
13898
  oldState: d,
13899
13899
  from: w,
13900
- to: b
13900
+ to: y
13901
13901
  }))) {
13902
13902
  this.hide();
13903
13903
  return;
@@ -13910,7 +13910,7 @@ class fv {
13910
13910
  if (O && (k = O.firstChild), k)
13911
13911
  return k.getBoundingClientRect();
13912
13912
  }
13913
- return df(l, w, b);
13913
+ return df(l, w, y);
13914
13914
  })
13915
13915
  }), this.show();
13916
13916
  }, this.editor = e, this.element = t, this.view = r, this.updateDelay = o, s && (this.shouldShow = s), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = i, this.element.remove(), this.element.style.visibility = "visible";
@@ -15042,9 +15042,9 @@ function _v(n, e) {
15042
15042
  let { $from: t } = n.state.selection, r = t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);
15043
15043
  if (!r)
15044
15044
  return !1;
15045
- let i = S.empty;
15045
+ let i = T.empty;
15046
15046
  for (let s = r.length - 1; s >= 0; s--)
15047
- i = S.from(r[s].createAndFill(null, i));
15047
+ i = T.from(r[s].createAndFill(null, i));
15048
15048
  let o = n.state.tr.replace(t.pos, t.pos, new M(i, 0, 0));
15049
15049
  return o.setSelection(B.near(o.doc.resolve(t.pos + 1))), n.dispatch(o), !1;
15050
15050
  }
@@ -15837,9 +15837,9 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15837
15837
  }), b1 = fe.create({
15838
15838
  name: "starterKit",
15839
15839
  addExtensions() {
15840
- var n, e, t, r, i, o, s, l, a, c, d, u, f, p, h, m, g, y;
15840
+ var n, e, t, r, i, o, s, l, a, c, d, u, f, p, h, m, g, b;
15841
15841
  const v = [];
15842
- return this.options.bold !== !1 && v.push(Tv.configure((n = this.options) === null || n === void 0 ? void 0 : n.bold)), this.options.blockquote !== !1 && v.push(xv.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && v.push(Mv.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && v.push(Nv.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && v.push(Iv.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && v.push(Lv.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && v.push(zv.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && v.push(Uv.configure((l = this.options) === null || l === void 0 ? void 0 : l.gapcursor)), this.options.hardBreak !== !1 && v.push(qv.configure((a = this.options) === null || a === void 0 ? void 0 : a.hardBreak)), this.options.heading !== !1 && v.push(Kv.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && v.push(r1.configure((d = this.options) === null || d === void 0 ? void 0 : d.history)), this.options.horizontalRule !== !1 && v.push(i1.configure((u = this.options) === null || u === void 0 ? void 0 : u.horizontalRule)), this.options.italic !== !1 && v.push(c1.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && v.push(d1.configure((p = this.options) === null || p === void 0 ? void 0 : p.listItem)), this.options.orderedList !== !1 && v.push(f1.configure((h = this.options) === null || h === void 0 ? void 0 : h.orderedList)), this.options.paragraph !== !1 && v.push(p1.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && v.push(g1.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && v.push(y1.configure((y = this.options) === null || y === void 0 ? void 0 : y.text)), v;
15842
+ return this.options.bold !== !1 && v.push(Tv.configure((n = this.options) === null || n === void 0 ? void 0 : n.bold)), this.options.blockquote !== !1 && v.push(xv.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && v.push(Mv.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && v.push(Nv.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && v.push(Iv.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && v.push(Lv.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && v.push(zv.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && v.push(Uv.configure((l = this.options) === null || l === void 0 ? void 0 : l.gapcursor)), this.options.hardBreak !== !1 && v.push(qv.configure((a = this.options) === null || a === void 0 ? void 0 : a.hardBreak)), this.options.heading !== !1 && v.push(Kv.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && v.push(r1.configure((d = this.options) === null || d === void 0 ? void 0 : d.history)), this.options.horizontalRule !== !1 && v.push(i1.configure((u = this.options) === null || u === void 0 ? void 0 : u.horizontalRule)), this.options.italic !== !1 && v.push(c1.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && v.push(d1.configure((p = this.options) === null || p === void 0 ? void 0 : p.listItem)), this.options.orderedList !== !1 && v.push(f1.configure((h = this.options) === null || h === void 0 ? void 0 : h.orderedList)), this.options.paragraph !== !1 && v.push(p1.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && v.push(g1.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && v.push(y1.configure((b = this.options) === null || b === void 0 ? void 0 : b.text)), v;
15843
15843
  }
15844
15844
  }), v1 = Xe.create({
15845
15845
  name: "underline",
@@ -16031,12 +16031,12 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
16031
16031
  }
16032
16032
  let m = 1;
16033
16033
  for (let g = 0; g < e.node.childCount; g++) {
16034
- const y = e.node.child(g), v = d + m, w = v + y.nodeSize;
16034
+ const b = e.node.child(g), v = d + m, w = v + b.nodeSize;
16035
16035
  if (f >= v && f < w) {
16036
16036
  r.value = g;
16037
16037
  return;
16038
16038
  }
16039
- m += y.nodeSize;
16039
+ m += b.nodeSize;
16040
16040
  }
16041
16041
  r.value = -1;
16042
16042
  }, s = () => {
@@ -16146,19 +16146,19 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
16146
16146
  }
16147
16147
  }
16148
16148
  if (!l || !a) {
16149
- const { schema: h } = t, m = h.nodes.customColumnBlock, g = h.nodes.customColumn, y = h.nodes.paragraph;
16150
- if (!m || !g || !y)
16149
+ const { schema: h } = t, m = h.nodes.customColumnBlock, g = h.nodes.customColumn, b = h.nodes.paragraph;
16150
+ if (!m || !g || !b)
16151
16151
  return console.error("customColumnBlock, customColumn, or paragraph node type not found in schema"), !1;
16152
16152
  const v = [];
16153
- for (let T = 0; T < n; T++) {
16154
- const k = y.create({}), O = g.create({}, [k]);
16153
+ for (let S = 0; S < n; S++) {
16154
+ const k = b.create({}), O = g.create({}, [k]);
16155
16155
  v.push(O);
16156
16156
  }
16157
- const w = m.create({}, v), b = y.create({});
16157
+ const w = m.create({}, v), y = b.create({});
16158
16158
  if (r) {
16159
- const { from: T, to: k } = t.selection, O = t.doc.resolve(T);
16160
- let H = T, D = k;
16161
- (O.parent.type.spec.group === "block" || O.parent.type.name === "paragraph") && (H = O.start(O.depth), D = O.end(O.depth)), e.replaceWith(H, D, [w, b]), r(e);
16159
+ const { from: S, to: k } = t.selection, O = t.doc.resolve(S);
16160
+ let H = S, D = k;
16161
+ (O.parent.type.spec.group === "block" || O.parent.type.name === "paragraph") && (H = O.start(O.depth), D = O.end(O.depth)), e.replaceWith(H, D, [w, y]), r(e);
16162
16162
  }
16163
16163
  return !0;
16164
16164
  }
@@ -16353,27 +16353,27 @@ function $1(n) {
16353
16353
  i++;
16354
16354
  if (h == u.childCount)
16355
16355
  break;
16356
- const m = u.child(h), { colspan: g, rowspan: y, colwidth: v } = m.attrs;
16357
- for (let w = 0; w < y; w++) {
16356
+ const m = u.child(h), { colspan: g, rowspan: b, colwidth: v } = m.attrs;
16357
+ for (let w = 0; w < b; w++) {
16358
16358
  if (w + c >= t) {
16359
16359
  (o || (o = [])).push({
16360
16360
  type: "overlong_rowspan",
16361
16361
  pos: d,
16362
- n: y - w
16362
+ n: b - w
16363
16363
  });
16364
16364
  break;
16365
16365
  }
16366
- const b = i + w * e;
16367
- for (let T = 0; T < g; T++) {
16368
- r[b + T] == 0 ? r[b + T] = d : (o || (o = [])).push({
16366
+ const y = i + w * e;
16367
+ for (let S = 0; S < g; S++) {
16368
+ r[y + S] == 0 ? r[y + S] = d : (o || (o = [])).push({
16369
16369
  type: "collision",
16370
16370
  row: c,
16371
16371
  pos: d,
16372
- n: g - T
16372
+ n: g - S
16373
16373
  });
16374
- const k = v && v[T];
16374
+ const k = v && v[S];
16375
16375
  if (k) {
16376
- const O = (b + T) % e * 2, H = s[O];
16376
+ const O = (y + S) % e * 2, H = s[O];
16377
16377
  H == null || H != k && s[O + 1] == 1 ? (s[O] = k, s[O + 1] = 1) : H == k && s[O + 1]++;
16378
16378
  }
16379
16379
  }
@@ -16585,32 +16585,32 @@ var ne = class At extends z {
16585
16585
  throw RangeError(`No cell with offset ${f} found`);
16586
16586
  const m = i.left - p.left, g = p.right - i.right;
16587
16587
  if (m > 0 || g > 0) {
16588
- let y = h.attrs;
16589
- if (m > 0 && (y = On(y, 0, m)), g > 0 && (y = On(
16590
- y,
16591
- y.colspan - g,
16588
+ let b = h.attrs;
16589
+ if (m > 0 && (b = On(b, 0, m)), g > 0 && (b = On(
16590
+ b,
16591
+ b.colspan - g,
16592
16592
  g
16593
16593
  )), p.left < i.left) {
16594
- if (h = h.type.createAndFill(y), !h)
16594
+ if (h = h.type.createAndFill(b), !h)
16595
16595
  throw RangeError(
16596
- `Could not create cell with attrs ${JSON.stringify(y)}`
16596
+ `Could not create cell with attrs ${JSON.stringify(b)}`
16597
16597
  );
16598
16598
  } else
16599
- h = h.type.create(y, h.content);
16599
+ h = h.type.create(b, h.content);
16600
16600
  }
16601
16601
  if (p.top < i.top || p.bottom > i.bottom) {
16602
- const y = {
16602
+ const b = {
16603
16603
  ...h.attrs,
16604
16604
  rowspan: Math.min(p.bottom, i.bottom) - Math.max(p.top, i.top)
16605
16605
  };
16606
- p.top < i.top ? h = h.type.createAndFill(y) : h = h.type.create(y, h.content);
16606
+ p.top < i.top ? h = h.type.createAndFill(b) : h = h.type.create(b, h.content);
16607
16607
  }
16608
16608
  c.push(h);
16609
16609
  }
16610
- s.push(e.child(a).copy(S.from(c)));
16610
+ s.push(e.child(a).copy(T.from(c)));
16611
16611
  }
16612
16612
  const l = this.isColSelection() && this.isRowSelection() ? e : s;
16613
- return new M(S.from(l), 1, 1);
16613
+ return new M(T.from(l), 1, 1);
16614
16614
  }
16615
16615
  replace(e, t = M.empty) {
16616
16616
  const r = e.steps.length, i = this.ranges;
@@ -16629,7 +16629,7 @@ var ne = class At extends z {
16629
16629
  o && e.setSelection(o);
16630
16630
  }
16631
16631
  replaceWith(e, t) {
16632
- this.replace(e, new M(S.from(t), 0, 0));
16632
+ this.replace(e, new M(T.from(t), 0, 0));
16633
16633
  }
16634
16634
  forEachCell(e) {
16635
16635
  const t = this.$anchorCell.node(-1), r = ue.get(t), i = this.$anchorCell.start(-1), o = r.cellsInRect(
@@ -16843,8 +16843,8 @@ function Q1(n, e, t, r) {
16843
16843
  d.firstChild && (p = d.firstChild.type.spec.tableRole);
16844
16844
  const h = [];
16845
16845
  for (let g = 0; g < f; g++) {
16846
- const y = Ee(n.schema)[p].createAndFill();
16847
- y && h.push(y);
16846
+ const b = Ee(n.schema)[p].createAndFill();
16847
+ b && h.push(b);
16848
16848
  }
16849
16849
  const m = (a == 0 || s == a - 1) && l == a ? c + 1 : u - 1;
16850
16850
  r.insert(r.mapping.map(m), h);
@@ -17048,7 +17048,7 @@ function id(n, e) {
17048
17048
  return !1;
17049
17049
  if (e) {
17050
17050
  const o = n.tr, s = {};
17051
- let l = S.empty, a, c;
17051
+ let l = T.empty, a, c;
17052
17052
  for (let d = r.top; d < r.bottom; d++)
17053
17053
  for (let u = r.left; u < r.right; u++) {
17054
17054
  const f = i.map[d * i.width + u], p = r.table.nodeAt(f);
@@ -17351,11 +17351,11 @@ function gx(n, e) {
17351
17351
  for (let i = 0; i < t.length; i++)
17352
17352
  r = Math.max(r, t[i]);
17353
17353
  for (let i = 0; i < t.length; i++)
17354
- if (i >= e.length && e.push(S.empty), t[i] < r) {
17354
+ if (i >= e.length && e.push(T.empty), t[i] < r) {
17355
17355
  const o = Ee(n).cell.createAndFill(), s = [];
17356
17356
  for (let l = t[i]; l < r; l++)
17357
17357
  s.push(o);
17358
- e[i] = e[i].append(S.from(s));
17358
+ e[i] = e[i].append(T.from(s));
17359
17359
  }
17360
17360
  return { height: e.length, width: r, rows: e };
17361
17361
  }
@@ -17381,7 +17381,7 @@ function yx({ width: n, height: e, rows: t }, r, i) {
17381
17381
  for (let p = 1; p < f.attrs.rowspan; p++)
17382
17382
  o[l + p] = (o[l + p] || 0) + f.attrs.colspan;
17383
17383
  }
17384
- s.push(S.from(c));
17384
+ s.push(T.from(c));
17385
17385
  }
17386
17386
  t = s, n = r;
17387
17387
  }
@@ -17399,7 +17399,7 @@ function yx({ width: n, height: e, rows: t }, r, i) {
17399
17399
  u.content
17400
17400
  )), a.push(u);
17401
17401
  }
17402
- o.push(S.from(a));
17402
+ o.push(T.from(a));
17403
17403
  }
17404
17404
  t = o, e = i;
17405
17405
  }
@@ -17427,7 +17427,7 @@ function bx(n, e, t, r, i, o, s) {
17427
17427
  g ? d || (d = a.header_cell.createAndFill()) : c || (c = a.cell.createAndFill())
17428
17428
  );
17429
17429
  }
17430
- const f = a.row.create(null, S.from(u)), p = [];
17430
+ const f = a.row.create(null, T.from(u)), p = [];
17431
17431
  for (let h = e.height; h < o; h++)
17432
17432
  p.push(f);
17433
17433
  n.insert(n.mapping.slice(s).map(r + t.nodeSize - 2), p);
@@ -17594,7 +17594,7 @@ function wx(n, e, t) {
17594
17594
  width: 1,
17595
17595
  height: 1,
17596
17596
  rows: [
17597
- S.from(
17597
+ T.from(
17598
17598
  yl(Ee(n.state.schema).cell, t)
17599
17599
  )
17600
17600
  ]
@@ -17711,12 +17711,12 @@ function bl(n, e, t, r, i, o) {
17711
17711
  for (let u = 0, f = 0; u < d.childCount; u++) {
17712
17712
  const { colspan: p, colwidth: h } = d.child(u).attrs;
17713
17713
  for (let m = 0; m < p; m++, f++) {
17714
- const g = i == f ? o : h && h[m], y = g ? g + "px" : "";
17714
+ const g = i == f ? o : h && h[m], b = g ? g + "px" : "";
17715
17715
  if (l += g || r, g || (a = !1), c)
17716
- c.style.width != y && (c.style.width = y), c = c.nextSibling;
17716
+ c.style.width != b && (c.style.width = b), c = c.nextSibling;
17717
17717
  else {
17718
17718
  const v = document.createElement("col");
17719
- v.style.width = y, e.appendChild(v);
17719
+ v.style.width = b, e.appendChild(v);
17720
17720
  }
17721
17721
  }
17722
17722
  }
@@ -18030,8 +18030,8 @@ function Bx(n, e, t, r) {
18030
18030
  for (let u = 0, f = 0; u < l.childCount; u += 1) {
18031
18031
  const { colspan: p, colwidth: h } = l.child(u).attrs;
18032
18032
  for (let m = 0; m < p; m += 1, f += 1) {
18033
- const g = t === f ? r : h && h[m], y = g ? `${g}px` : "";
18034
- i += g || e, g || (o = !1), s.push(["col", y ? { style: `width: ${y}` } : {}]);
18033
+ const g = t === f ? r : h && h[m], b = g ? `${g}px` : "";
18034
+ i += g || e, g || (o = !1), s.push(["col", b ? { style: `width: ${b}` } : {}]);
18035
18035
  }
18036
18036
  }
18037
18037
  const a = o ? `${i}px` : "", c = o ? "" : `${i}px`;
@@ -18767,36 +18767,52 @@ function mw(n) {
18767
18767
  function gw(n) {
18768
18768
  return [...new Set(ls(n))];
18769
18769
  }
18770
- const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15px] border-b-[1px] border-black-600 w-full" }, [
18770
+ function yw(n) {
18771
+ return typeof n.arrayBuffer == "function" ? n.arrayBuffer() : new Promise((e, t) => {
18772
+ const r = new FileReader();
18773
+ r.onload = (i) => e(i.target.result), r.onerror = t, r.readAsArrayBuffer(n);
18774
+ });
18775
+ }
18776
+ async function bw(n) {
18777
+ if (!n)
18778
+ return null;
18779
+ try {
18780
+ const e = await crypto.subtle.digest("SHA-256", await yw(n));
18781
+ return [...new Uint8Array(e)].map((t) => t.toString(16).padStart(2, "0")).join("");
18782
+ } catch {
18783
+ return null;
18784
+ }
18785
+ }
18786
+ const vw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15px] border-b-[1px] border-black-600 w-full" }, [
18771
18787
  /* @__PURE__ */ x("p", { class: "flex-1 text-[18px] font-bold text-black-950 leading-normal" }, "Carousel")
18772
- ], -1), bw = { class: "bg-[rgba(7,21,30,0.04)] flex flex-wrap content-center items-center gap-[10px] px-[20px] py-[15px]" }, vw = ["src"], xw = ["onClick"], ww = /* @__PURE__ */ x("i", { class: "fa-solid fa-trash-can text-xs" }, null, -1), kw = [
18773
- ww
18774
- ], Cw = {
18788
+ ], -1), xw = { class: "bg-[rgba(7,21,30,0.04)] flex flex-wrap content-center items-center gap-[10px] px-[20px] py-[15px]" }, ww = ["src"], kw = ["onClick"], Cw = /* @__PURE__ */ x("i", { class: "fa-solid fa-trash-can text-xs" }, null, -1), Sw = [
18789
+ Cw
18790
+ ], Tw = {
18775
18791
  key: 0,
18776
18792
  class: "relative w-[calc(50%-5px)] h-[115px] bg-[#ffffff] border-[1px] border-dashed border-black-150 rounded-[8px] flex items-center justify-center"
18777
- }, Sw = /* @__PURE__ */ x("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-proclus-950" }, null, -1), Tw = [
18778
- Sw
18779
- ], Aw = /* @__PURE__ */ x("i", { class: "fa-light fa-image text-[24px] text-black-150" }, null, -1), Mw = /* @__PURE__ */ x("div", { class: "flex flex-col gap-[5px] items-center text-center w-full" }, [
18793
+ }, Aw = /* @__PURE__ */ x("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-proclus-950" }, null, -1), Mw = [
18794
+ Aw
18795
+ ], Ew = /* @__PURE__ */ x("i", { class: "fa-light fa-image text-[24px] text-black-150" }, null, -1), Ow = /* @__PURE__ */ x("div", { class: "flex flex-col gap-[5px] items-center text-center w-full" }, [
18780
18796
  /* @__PURE__ */ x("p", { class: "text-[13px] leading-[1.2]" }, [
18781
18797
  /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Upload a file"),
18782
18798
  /* @__PURE__ */ x("span", { class: "text-black-950" }, " or drag and drop")
18783
18799
  ]),
18784
18800
  /* @__PURE__ */ x("p", { class: "text-[11px] leading-[1.2] text-black-700" }, "PNG or JPG up to 5MB")
18785
- ], -1), Ew = ["onClick"], Ow = /* @__PURE__ */ x("i", { class: "fa-light fa-image text-[24px] text-black-150" }, null, -1), Nw = /* @__PURE__ */ x("div", { class: "flex flex-col gap-[5px] items-center text-center w-full" }, [
18801
+ ], -1), Nw = ["onClick"], Dw = /* @__PURE__ */ x("i", { class: "fa-light fa-image text-[24px] text-black-150" }, null, -1), Rw = /* @__PURE__ */ x("div", { class: "flex flex-col gap-[5px] items-center text-center w-full" }, [
18786
18802
  /* @__PURE__ */ x("p", { class: "text-[13px] leading-[1.2]" }, [
18787
18803
  /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Upload a file"),
18788
18804
  /* @__PURE__ */ x("span", { class: "text-black-950" }, " or drag and drop")
18789
18805
  ]),
18790
18806
  /* @__PURE__ */ x("p", { class: "text-[11px] leading-[1.2] text-black-700" }, "PNG or JPG up to 5MB")
18791
- ], -1), Dw = /* @__PURE__ */ x("i", { class: "fa-light fa-plus text-[24px] text-black-400" }, null, -1), Rw = /* @__PURE__ */ x("p", { class: "text-[13px] font-bold text-black-400 leading-[1.2]" }, "Click to add", -1), Iw = [
18792
- Dw,
18793
- Rw
18794
- ], Lw = /* @__PURE__ */ x("div", { class: "flex flex-[1_0_0] flex-col items-start pt-[5px] w-full" }, [
18807
+ ], -1), Iw = /* @__PURE__ */ x("i", { class: "fa-light fa-plus text-[24px] text-black-400" }, null, -1), Lw = /* @__PURE__ */ x("p", { class: "text-[13px] font-bold text-black-400 leading-[1.2]" }, "Click to add", -1), Pw = [
18808
+ Iw,
18809
+ Lw
18810
+ ], Bw = /* @__PURE__ */ x("div", { class: "flex flex-[1_0_0] flex-col items-start pt-[5px] w-full" }, [
18795
18811
  /* @__PURE__ */ x("p", { class: "text-[12px] text-center w-full" }, [
18796
18812
  /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Max 8"),
18797
18813
  /* @__PURE__ */ x("span", { class: "text-black-700" }, " carousel items")
18798
18814
  ])
18799
- ], -1), Pw = { class: "flex gap-[20px] items-end justify-center py-[15px] border-t-[1px] border-black-600" }, Gf = {
18815
+ ], -1), zw = { class: "flex gap-[20px] items-end justify-center py-[15px] border-t-[1px] border-black-600" }, Gf = {
18800
18816
  __name: "ImageCarouselModal",
18801
18817
  props: {
18802
18818
  images: {
@@ -18814,52 +18830,57 @@ const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
18814
18830
  },
18815
18831
  emits: ["close", "save"],
18816
18832
  setup(n, { emit: e }) {
18817
- const t = n, r = e, i = U(gw(t.images)), o = U(null), s = U({}), l = U(0), a = U(!1), c = () => {
18818
- var y;
18819
- (y = o.value) == null || y.click();
18820
- }, d = (y) => t.uploadImage ? t.uploadImage(y) : new Promise((v, w) => {
18821
- const b = new FileReader();
18822
- b.onload = (T) => v(T.target.result), b.onerror = w, b.readAsDataURL(y);
18823
- }), u = async (y, { fromExtraSlot: v = !1 } = {}) => {
18824
- if (!(!y || !y.type.startsWith("image/")) && !(i.value.length >= 8)) {
18825
- a.value = !0;
18833
+ const t = n, r = e, i = U(gw(t.images)), o = U(i.value.map(() => null)), s = U(null), l = U({}), a = U(0), c = U(!1), d = () => {
18834
+ var v;
18835
+ (v = s.value) == null || v.click();
18836
+ }, u = (v) => t.uploadImage ? t.uploadImage(v) : new Promise((w, y) => {
18837
+ const S = new FileReader();
18838
+ S.onload = (k) => w(k.target.result), S.onerror = y, S.readAsDataURL(v);
18839
+ }), f = async (v, { fromExtraSlot: w = !1 } = {}) => {
18840
+ if (!(!v || !v.type.startsWith("image/")) && !(i.value.length >= 8)) {
18841
+ c.value = !0;
18826
18842
  try {
18827
- const w = await d(y);
18828
- i.value.length < 8 && (i.value.includes(w) || i.value.push(w), v && l.value > 0 && l.value--);
18829
- } catch (w) {
18830
- console.error("Carousel image upload failed:", w);
18843
+ const y = await bw(v);
18844
+ if (y !== null && o.value.includes(y)) {
18845
+ w && a.value > 0 && a.value--;
18846
+ return;
18847
+ }
18848
+ const S = await u(v);
18849
+ i.value.length < 8 && (i.value.includes(S) || (i.value.push(S), o.value.push(y)), w && a.value > 0 && a.value--);
18850
+ } catch (y) {
18851
+ console.error("Carousel image upload failed:", y);
18831
18852
  } finally {
18832
- a.value = !1;
18853
+ c.value = !1;
18833
18854
  }
18834
18855
  }
18835
- }, f = (y) => {
18836
- var w;
18837
- const v = (w = y.target.files) == null ? void 0 : w[0];
18838
- y.target.value = "", u(v);
18839
- }, p = (y) => {
18840
- const v = s.value[y];
18841
- v && v.click();
18842
- }, h = (y) => {
18843
- var w;
18844
- const v = (w = y.target.files) == null ? void 0 : w[0];
18845
- y.target.value = "", u(v, { fromExtraSlot: !0 });
18846
- }, m = (y) => {
18847
- i.value.splice(y, 1);
18848
- }, g = () => {
18856
+ }, p = (v) => {
18857
+ var y;
18858
+ const w = (y = v.target.files) == null ? void 0 : y[0];
18859
+ v.target.value = "", f(w);
18860
+ }, h = (v) => {
18861
+ const w = l.value[v];
18862
+ w && w.click();
18863
+ }, m = (v) => {
18864
+ var y;
18865
+ const w = (y = v.target.files) == null ? void 0 : y[0];
18866
+ v.target.value = "", f(w, { fromExtraSlot: !0 });
18867
+ }, g = (v) => {
18868
+ i.value.splice(v, 1), o.value.splice(v, 1);
18869
+ }, b = () => {
18849
18870
  i.value.length !== 0 && (r("save", [...i.value]), r("close"));
18850
18871
  };
18851
- return (y, v) => (E(), X(Ed, {
18872
+ return (v, w) => (E(), X(Ed, {
18852
18873
  show: !0,
18853
- onClose: v[2] || (v[2] = (w) => y.$emit("close")),
18874
+ onClose: w[2] || (w[2] = (y) => v.$emit("close")),
18854
18875
  class: "w-[410px] max-w-[93vw] !p-0 !rounded-[20px] !top-[calc(50%+10.5px)] !shadow-[0px_6px_15px_0px_rgba(0,0,0,0.1),0px_3px_8px_0px_rgba(0,0,0,0.1)]"
18855
18876
  }, {
18856
18877
  header: P(() => [
18857
- yw
18878
+ vw
18858
18879
  ]),
18859
18880
  footer: P(() => [
18860
- x("div", Pw, [
18881
+ x("div", zw, [
18861
18882
  I(Vr, {
18862
- onClick: v[1] || (v[1] = (w) => y.$emit("close"))
18883
+ onClick: w[1] || (w[1] = (y) => v.$emit("close"))
18863
18884
  }, {
18864
18885
  default: P(() => [
18865
18886
  Be("Cancel")
@@ -18867,7 +18888,7 @@ const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
18867
18888
  _: 1
18868
18889
  }),
18869
18890
  I(jr, {
18870
- onClick: g,
18891
+ onClick: b,
18871
18892
  disabled: i.value.length === 0
18872
18893
  }, {
18873
18894
  default: P(() => [
@@ -18878,80 +18899,80 @@ const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
18878
18899
  ])
18879
18900
  ]),
18880
18901
  default: P(() => [
18881
- x("div", bw, [
18882
- (E(!0), V(Cn, null, Fr(i.value, (w, b) => (E(), V("div", {
18883
- key: "img-" + b,
18902
+ x("div", xw, [
18903
+ (E(!0), V(Cn, null, Fr(i.value, (y, S) => (E(), V("div", {
18904
+ key: "img-" + S,
18884
18905
  class: "relative w-[calc(50%-5px)] h-[115px] rounded-[8px] overflow-hidden border-[1px] border-black-150"
18885
18906
  }, [
18886
18907
  x("img", {
18887
- src: w,
18908
+ src: y,
18888
18909
  alt: "",
18889
18910
  class: "w-full h-full object-cover"
18890
- }, null, 8, vw),
18911
+ }, null, 8, ww),
18891
18912
  x("button", {
18892
18913
  class: "absolute top-[11px] right-[10px] w-[16px] h-[16px] flex items-center justify-center text-black-700 hover:text-error-950 transition-colors",
18893
- onClick: (T) => m(b)
18894
- }, kw, 8, xw)
18914
+ onClick: (k) => g(S)
18915
+ }, Sw, 8, kw)
18895
18916
  ]))), 128)),
18896
- a.value ? (E(), V("div", Cw, Tw)) : _("", !0),
18897
- i.value.length < 8 && !a.value ? (E(), V("div", {
18917
+ c.value ? (E(), V("div", Tw, Mw)) : _("", !0),
18918
+ i.value.length < 8 && !c.value ? (E(), V("div", {
18898
18919
  key: 1,
18899
18920
  class: "relative w-[calc(50%-5px)] h-[115px] bg-[#ffffff] border-[1px] border-dashed border-black-150 rounded-[8px] flex flex-col gap-[10px] items-center justify-center p-[15px] cursor-pointer",
18900
- onClick: c
18921
+ onClick: d
18901
18922
  }, [
18902
- Aw,
18903
- Mw,
18923
+ Ew,
18924
+ Ow,
18904
18925
  x("input", {
18905
18926
  ref_key: "fileInput",
18906
- ref: o,
18927
+ ref: s,
18907
18928
  type: "file",
18908
18929
  accept: "image/*",
18909
18930
  class: "hidden",
18910
- onChange: f
18931
+ onChange: p
18911
18932
  }, null, 544)
18912
18933
  ])) : _("", !0),
18913
- (E(!0), V(Cn, null, Fr(l.value, (w) => wp((E(), V("div", {
18914
- key: "extra-" + w,
18934
+ (E(!0), V(Cn, null, Fr(a.value, (y) => wp((E(), V("div", {
18935
+ key: "extra-" + y,
18915
18936
  class: "relative w-[calc(50%-5px)] h-[115px] bg-[#ffffff] border-[1px] border-dashed border-black-150 rounded-[8px] flex flex-col gap-[10px] items-center justify-center p-[15px] cursor-pointer",
18916
- onClick: (b) => p(w - 1)
18937
+ onClick: (S) => h(y - 1)
18917
18938
  }, [
18918
- Ow,
18919
- Nw,
18939
+ Dw,
18940
+ Rw,
18920
18941
  x("input", {
18921
18942
  ref_for: !0,
18922
- ref: (b) => {
18923
- b && (s.value[w - 1] = b);
18943
+ ref: (S) => {
18944
+ S && (l.value[y - 1] = S);
18924
18945
  },
18925
18946
  type: "file",
18926
18947
  accept: "image/*",
18927
18948
  class: "hidden",
18928
- onChange: h
18949
+ onChange: m
18929
18950
  }, null, 544)
18930
- ], 8, Ew)), [
18931
- [kp, !a.value]
18951
+ ], 8, Nw)), [
18952
+ [kp, !c.value]
18932
18953
  ])), 128)),
18933
- i.value.length + l.value + 1 < 8 && !a.value ? (E(), V("div", {
18954
+ i.value.length + a.value + 1 < 8 && !c.value ? (E(), V("div", {
18934
18955
  key: 2,
18935
18956
  class: "w-[calc(50%-5px)] h-[115px] flex flex-col gap-[10px] items-center justify-center rounded-[8px] border-[1px] border-dashed border-black-150 bg-black-100 cursor-pointer p-[15px]",
18936
- onClick: v[0] || (v[0] = (w) => l.value++)
18937
- }, Iw)) : _("", !0),
18938
- Lw
18957
+ onClick: w[0] || (w[0] = (y) => a.value++)
18958
+ }, Pw)) : _("", !0),
18959
+ Bw
18939
18960
  ])
18940
18961
  ]),
18941
18962
  _: 1
18942
18963
  }));
18943
18964
  }
18944
- }, Bw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2 border-[rgb(128,128,128)] border-dotted rounded-lg carousel-edit relative group" }, zw = /* @__PURE__ */ x("i", { class: "fa-solid fa-times text-sm text-black-950" }, null, -1), $w = [
18945
- zw
18946
- ], Hw = { class: "m-2 !mt-2" }, Fw = { class: "bg-steel-300 min-w-24 min-h-36 flex justify-center items-center border-[1px] border-[rgb(128,128,128)] border-dotted rounded-lg" }, Vw = ["src"], jw = /* @__PURE__ */ x("div", { class: "bg-steel-300 min-w-24 min-h-36 flex justify-center items-center border-[1px] border-[rgb(128,128,128)] border-dotted rounded-lg hover:bg-steel-400 transition-all duration-300 cursor-pointer" }, [
18965
+ }, $w = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2 border-[rgb(128,128,128)] border-dotted rounded-lg carousel-edit relative group" }, Hw = /* @__PURE__ */ x("i", { class: "fa-solid fa-times text-sm text-black-950" }, null, -1), Fw = [
18966
+ Hw
18967
+ ], Vw = { class: "m-2 !mt-2" }, jw = { class: "bg-steel-300 min-w-24 min-h-36 flex justify-center items-center border-[1px] border-[rgb(128,128,128)] border-dotted rounded-lg" }, _w = ["src"], Ww = /* @__PURE__ */ x("div", { class: "bg-steel-300 min-w-24 min-h-36 flex justify-center items-center border-[1px] border-[rgb(128,128,128)] border-dotted rounded-lg hover:bg-steel-400 transition-all duration-300 cursor-pointer" }, [
18947
18968
  /* @__PURE__ */ x("i", { class: "fa-solid fa-plus" })
18948
- ], -1), _w = [
18949
- jw
18950
- ], Ww = { class: "w-full max-w-[500px] justify-between items-center carousel-view flex-row my-2" }, Uw = /* @__PURE__ */ x("i", { class: "fa-solid fa-arrow-left text-xl pointer-events-none" }, null, -1), qw = [
18951
- Uw
18952
- ], Kw = { class: "flex justify-center w-[80%] relative h-[250px] overflow-hidden" }, Jw = ["src"], Gw = /* @__PURE__ */ x("i", { class: "fa-solid fa-arrow-right text-xl pointer-events-none" }, null, -1), Yw = [
18953
- Gw
18954
- ], Xw = {
18969
+ ], -1), Uw = [
18970
+ Ww
18971
+ ], qw = { class: "w-full max-w-[500px] justify-between items-center carousel-view flex-row my-2" }, Kw = /* @__PURE__ */ x("i", { class: "fa-solid fa-arrow-left text-xl pointer-events-none" }, null, -1), Jw = [
18972
+ Kw
18973
+ ], Gw = { class: "flex justify-center w-[80%] relative h-[250px] overflow-hidden" }, Yw = ["src"], Xw = /* @__PURE__ */ x("i", { class: "fa-solid fa-arrow-right text-xl pointer-events-none" }, null, -1), Qw = [
18974
+ Xw
18975
+ ], Zw = {
18955
18976
  __name: "ImageCarousel",
18956
18977
  props: {
18957
18978
  node: {
@@ -18985,17 +19006,17 @@ const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
18985
19006
  };
18986
19007
  return (d, u) => (E(), X(K(rs), { class: "vue-component" }, {
18987
19008
  default: P(() => [
18988
- x("div", Bw, [
19009
+ x("div", $w, [
18989
19010
  x("div", {
18990
19011
  class: "absolute top-0 right-0 w-6 h-6 bg-red-500 text-white rounded-full flex items-center justify-center cursor-pointer hover:bg-red-600 transition-colors duration-200 z-10 opacity-0 group-hover:opacity-100 transition-opacity",
18991
19012
  onClick: c
18992
- }, $w),
18993
- (E(!0), V(Cn, null, Fr(t.value, (f) => (E(), V("div", Hw, [
18994
- x("div", Fw, [
19013
+ }, Fw),
19014
+ (E(!0), V(Cn, null, Fr(t.value, (f) => (E(), V("div", Vw, [
19015
+ x("div", jw, [
18995
19016
  x("img", {
18996
19017
  class: "h-[136px]",
18997
19018
  src: f
18998
- }, null, 8, Vw)
19019
+ }, null, 8, _w)
18999
19020
  ])
19000
19021
  ]))), 256)),
19001
19022
  t.value.length < 8 ? (E(), V("div", {
@@ -19004,22 +19025,22 @@ const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
19004
19025
  onClick: u[0] || (u[0] = (f) => {
19005
19026
  l.value = !0;
19006
19027
  })
19007
- }, _w)) : _("", !0)
19028
+ }, Uw)) : _("", !0)
19008
19029
  ]),
19009
- x("div", Ww, [
19030
+ x("div", qw, [
19010
19031
  x("div", {
19011
19032
  class: "w-[10%] flex justify-center items-center relative z-10 cursor-pointer",
19012
19033
  "data-testid": "carousel-prev",
19013
19034
  onClick: u[1] || (u[1] = (f) => o())
19014
- }, qw),
19015
- x("div", Kw, [
19035
+ }, Jw),
19036
+ x("div", Gw, [
19016
19037
  I(Cp, null, {
19017
19038
  default: P(() => [
19018
19039
  (E(), V("img", {
19019
19040
  src: i.value,
19020
19041
  key: r.value,
19021
19042
  class: "absolute max-h-full max-w-full w-auto pointer-events-none"
19022
- }, null, 8, Jw))
19043
+ }, null, 8, Yw))
19023
19044
  ]),
19024
19045
  _: 1
19025
19046
  })
@@ -19028,7 +19049,7 @@ const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
19028
19049
  class: "w-[10%] flex justify-center items-center relative z-10 cursor-pointer",
19029
19050
  "data-testid": "carousel-next",
19030
19051
  onClick: u[2] || (u[2] = (f) => s())
19031
- }, Yw)
19052
+ }, Qw)
19032
19053
  ]),
19033
19054
  l.value ? (E(), X(Gf, {
19034
19055
  key: 0,
@@ -19042,7 +19063,7 @@ const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
19042
19063
  _: 1
19043
19064
  }));
19044
19065
  }
19045
- }, Qw = ie.create({
19066
+ }, ek = ie.create({
19046
19067
  name: "ImageCarousel",
19047
19068
  group: "block",
19048
19069
  content: "inline*",
@@ -19058,7 +19079,7 @@ const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
19058
19079
  return ["image-carousel", ee(n)];
19059
19080
  },
19060
19081
  addNodeView() {
19061
- return is(Xw);
19082
+ return is(Zw);
19062
19083
  },
19063
19084
  addAttributes() {
19064
19085
  return {
@@ -19075,7 +19096,7 @@ const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
19075
19096
  addCommands() {
19076
19097
  return {};
19077
19098
  }
19078
- }), Zw = fe.create({
19099
+ }), tk = fe.create({
19079
19100
  name: "placeholder",
19080
19101
  addOptions() {
19081
19102
  return {
@@ -19120,7 +19141,7 @@ const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
19120
19141
  })
19121
19142
  ];
19122
19143
  }
19123
- }), ek = ie.create({
19144
+ }), nk = ie.create({
19124
19145
  name: "UneditableTitle",
19125
19146
  group: "block",
19126
19147
  content: "inline*",
@@ -19147,22 +19168,22 @@ const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
19147
19168
  };
19148
19169
  };
19149
19170
  }
19150
- }), tk = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", nk = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", or = (n, e) => {
19171
+ }), rk = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", ik = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", or = (n, e) => {
19151
19172
  for (const t in e)
19152
19173
  n[t] = e[t];
19153
19174
  return n;
19154
- }, vl = "numeric", xl = "ascii", wl = "alpha", Ir = "asciinumeric", Sr = "alphanumeric", kl = "domain", Yf = "emoji", rk = "scheme", ik = "slashscheme", zs = "whitespace";
19155
- function ok(n, e) {
19175
+ }, vl = "numeric", xl = "ascii", wl = "alpha", Ir = "asciinumeric", Sr = "alphanumeric", kl = "domain", Yf = "emoji", ok = "scheme", sk = "slashscheme", zs = "whitespace";
19176
+ function lk(n, e) {
19156
19177
  return n in e || (e[n] = []), e[n];
19157
19178
  }
19158
19179
  function hn(n, e, t) {
19159
19180
  e[vl] && (e[Ir] = !0, e[Sr] = !0), e[xl] && (e[Ir] = !0, e[wl] = !0), e[Ir] && (e[Sr] = !0), e[wl] && (e[Sr] = !0), e[Sr] && (e[kl] = !0), e[Yf] && (e[kl] = !0);
19160
19181
  for (const r in e) {
19161
- const i = ok(r, t);
19182
+ const i = lk(r, t);
19162
19183
  i.indexOf(n) < 0 && i.push(n);
19163
19184
  }
19164
19185
  }
19165
- function sk(n, e) {
19186
+ function ak(n, e) {
19166
19187
  const t = {};
19167
19188
  for (const r in e)
19168
19189
  e[r].indexOf(n) >= 0 && (t[r] = !0);
@@ -19284,7 +19305,7 @@ Pe.prototype = {
19284
19305
  if (l ? (s = new Pe(), or(s.j, l.j), s.jr.push.apply(s.jr, l.jr), s.jd = l.jd, s.t = l.t) : s = new Pe(), o) {
19285
19306
  if (r)
19286
19307
  if (s.t && typeof s.t == "string") {
19287
- const a = or(sk(s.t, r), t);
19308
+ const a = or(ak(s.t, r), t);
19288
19309
  hn(o, a, r);
19289
19310
  } else
19290
19311
  t && hn(o, t, r);
@@ -19353,13 +19374,13 @@ var tp = /* @__PURE__ */ Object.freeze({
19353
19374
  WS: Al
19354
19375
  });
19355
19376
  const St = /[a-z]/, vr = new RegExp("\\p{L}", "u"), $s = new RegExp("\\p{Emoji}", "u"), Tt = /\d/, Hs = /\s/, bd = "\r", Fs = `
19356
- `, lk = "️", ak = "‍", Vs = "";
19377
+ `, ck = "️", dk = "‍", Vs = "";
19357
19378
  let Li = null, Pi = null;
19358
- function ck(n = []) {
19379
+ function uk(n = []) {
19359
19380
  const e = {};
19360
19381
  Pe.groups = e;
19361
19382
  const t = new Pe();
19362
- Li == null && (Li = vd(tk)), Pi == null && (Pi = vd(nk)), A(t, "'", Mo), A(t, "{", Lr), A(t, "}", Pr), A(t, "[", fo), A(t, "]", po), A(t, "(", ho), A(t, ")", mo), A(t, "<", go), A(t, ">", yo), A(t, "(", bo), A(t, ")", vo), A(t, "「", xo), A(t, "」", wo), A(t, "『", ko), A(t, "』", Co), A(t, "<", So), A(t, ">", To), A(t, "&", Ao), A(t, "*", Eo), A(t, "@", Ht), A(t, "`", No), A(t, "^", Do), A(t, ":", jt), A(t, ",", ca), A(t, "$", Ro), A(t, ".", dt), A(t, "=", Io), A(t, "!", da), A(t, "-", qe), A(t, "%", Br), A(t, "|", Lo), A(t, "+", Po), A(t, "#", Bo), A(t, "?", zr), A(t, '"', ua), A(t, "/", ut), A(t, ";", fa), A(t, "~", $r), A(t, "_", zo), A(t, "\\", Oo), A(t, "・", Zf);
19383
+ Li == null && (Li = vd(rk)), Pi == null && (Pi = vd(ik)), A(t, "'", Mo), A(t, "{", Lr), A(t, "}", Pr), A(t, "[", fo), A(t, "]", po), A(t, "(", ho), A(t, ")", mo), A(t, "<", go), A(t, ">", yo), A(t, "(", bo), A(t, ")", vo), A(t, "「", xo), A(t, "」", wo), A(t, "『", ko), A(t, "』", Co), A(t, "<", So), A(t, ">", To), A(t, "&", Ao), A(t, "*", Eo), A(t, "@", Ht), A(t, "`", No), A(t, "^", Do), A(t, ":", jt), A(t, ",", ca), A(t, "$", Ro), A(t, ".", dt), A(t, "=", Io), A(t, "!", da), A(t, "-", qe), A(t, "%", Br), A(t, "|", Lo), A(t, "+", Po), A(t, "#", Bo), A(t, "?", zr), A(t, '"', ua), A(t, "/", ut), A(t, ";", fa), A(t, "~", $r), A(t, "_", zo), A(t, "\\", Oo), A(t, "・", Zf);
19363
19384
  const r = ce(t, Tt, la, {
19364
19385
  [vl]: !0
19365
19386
  });
@@ -19387,8 +19408,8 @@ function ck(n = []) {
19387
19408
  const u = ce(t, $s, ep, {
19388
19409
  [Yf]: !0
19389
19410
  });
19390
- A(u, "#"), ce(u, $s, u), A(u, lk, u);
19391
- const f = A(u, ak);
19411
+ A(u, "#"), ce(u, $s, u), A(u, ck, u);
19412
+ const f = A(u, dk);
19392
19413
  A(f, "#"), ce(f, $s, u);
19393
19414
  const p = [[St, s], [Tt, i]], h = [[St, null], [vr, l], [Tt, o]];
19394
19415
  for (let m = 0; m < Li.length; m++)
@@ -19410,9 +19431,9 @@ function ck(n = []) {
19410
19431
  }, e), n = n.sort((m, g) => m[0] > g[0] ? 1 : -1);
19411
19432
  for (let m = 0; m < n.length; m++) {
19412
19433
  const g = n[m][0], v = n[m][1] ? {
19413
- [rk]: !0
19434
+ [ok]: !0
19414
19435
  } : {
19415
- [ik]: !0
19436
+ [sk]: !0
19416
19437
  };
19417
19438
  g.indexOf("-") >= 0 ? v[kl] = !0 : St.test(g) ? Tt.test(g) ? v[Ir] = !0 : v[xl] = !0 : v[vl] = !0, yd(t, g, g, v);
19418
19439
  }
@@ -19426,7 +19447,7 @@ function ck(n = []) {
19426
19447
  };
19427
19448
  }
19428
19449
  function np(n, e) {
19429
- const t = dk(e.replace(/[A-Z]/g, (l) => l.toLowerCase())), r = t.length, i = [];
19450
+ const t = fk(e.replace(/[A-Z]/g, (l) => l.toLowerCase())), r = t.length, i = [];
19430
19451
  let o = 0, s = 0;
19431
19452
  for (; s < r; ) {
19432
19453
  let l = n, a = null, c = 0, d = null, u = -1, f = -1;
@@ -19445,7 +19466,7 @@ function np(n, e) {
19445
19466
  }
19446
19467
  return i;
19447
19468
  }
19448
- function dk(n) {
19469
+ function fk(n) {
19449
19470
  const e = [], t = n.length;
19450
19471
  let r = 0;
19451
19472
  for (; r < t; ) {
@@ -19691,7 +19712,7 @@ const wd = as("email", {
19691
19712
  toHref() {
19692
19713
  return "mailto:" + this.toString();
19693
19714
  }
19694
- }), kd = as("text"), uk = as("nl"), Bi = as("url", {
19715
+ }), kd = as("text"), pk = as("nl"), Bi = as("url", {
19695
19716
  isLink: !0,
19696
19717
  /**
19697
19718
  Lowercases relevant parts of the domain and adds the protocol if
@@ -19712,7 +19733,7 @@ const wd = as("email", {
19712
19733
  return n.length >= 2 && n[0].t !== ni && n[1].t === jt;
19713
19734
  }
19714
19735
  }), Ue = (n) => new Pe(n);
19715
- function fk({
19736
+ function hk({
19716
19737
  groups: n
19717
19738
  }) {
19718
19739
  const e = n.domain.concat([Ao, Eo, Ht, Oo, No, Do, Ro, Io, qe, la, Br, Lo, Po, Bo, ut, $o, $r, zo]), t = [Mo, jt, ca, dt, da, Br, zr, ua, fa, go, yo, Lr, Pr, po, fo, ho, mo, bo, vo, xo, wo, ko, Co, So, To], r = [Ao, Mo, Eo, Oo, No, Do, Ro, Io, qe, Lr, Pr, Br, Lo, Po, Bo, zr, ut, $o, $r, zo], i = Ue(), o = A(i, $r);
@@ -19733,16 +19754,16 @@ function fk({
19733
19754
  A(h, qe, h), F(h, n.domain, u), F(p, n.domain, u), A(p, dt, f), A(p, qe, h);
19734
19755
  const m = A(p, jt);
19735
19756
  F(m, n.numeric, wd);
19736
- const g = A(s, qe), y = A(s, dt);
19737
- A(g, qe, g), F(g, n.domain, s), F(y, r, o), F(y, n.domain, s);
19757
+ const g = A(s, qe), b = A(s, dt);
19758
+ A(g, qe, g), F(g, n.domain, s), F(b, r, o), F(b, n.domain, s);
19738
19759
  const v = Ue(Bi);
19739
- F(y, n.tld, v), F(y, n.utld, v), F(v, n.domain, s), F(v, r, o), A(v, dt, y), A(v, qe, g), A(v, Ht, c);
19740
- const w = A(v, jt), b = Ue(Bi);
19741
- F(w, n.numeric, b);
19742
- const T = Ue(Bi), k = Ue();
19743
- F(T, e, T), F(T, t, k), F(k, e, T), F(k, t, k), A(v, ut, T), A(b, ut, T);
19760
+ F(b, n.tld, v), F(b, n.utld, v), F(v, n.domain, s), F(v, r, o), A(v, dt, b), A(v, qe, g), A(v, Ht, c);
19761
+ const w = A(v, jt), y = Ue(Bi);
19762
+ F(w, n.numeric, y);
19763
+ const S = Ue(Bi), k = Ue();
19764
+ F(S, e, S), F(S, t, k), F(k, e, S), F(k, t, k), A(v, ut, S), A(y, ut, S);
19744
19765
  const O = A(l, jt), H = A(a, jt), D = A(H, ut), q = A(D, ut);
19745
- F(l, n.domain, s), A(l, dt, y), A(l, qe, g), F(a, n.domain, s), A(a, dt, y), A(a, qe, g), F(O, n.domain, T), A(O, ut, T), A(O, zr, T), F(q, n.domain, T), F(q, e, T), A(q, ut, T);
19766
+ F(l, n.domain, s), A(l, dt, b), A(l, qe, g), F(a, n.domain, s), A(a, dt, b), A(a, qe, g), F(O, n.domain, S), A(O, ut, S), A(O, zr, S), F(q, n.domain, S), F(q, e, S), A(q, ut, S);
19746
19767
  const Q = [
19747
19768
  [Lr, Pr],
19748
19769
  // {}
@@ -19762,19 +19783,19 @@ function fk({
19762
19783
  // <>
19763
19784
  ];
19764
19785
  for (let Y = 0; Y < Q.length; Y++) {
19765
- const [te, xe] = Q[Y], me = A(T, te);
19766
- A(k, te, me), A(me, xe, T);
19786
+ const [te, xe] = Q[Y], me = A(S, te);
19787
+ A(k, te, me), A(me, xe, S);
19767
19788
  const oe = Ue(Bi);
19768
19789
  F(me, e, oe);
19769
19790
  const ae = Ue();
19770
- F(me, t), F(oe, e, oe), F(oe, t, ae), F(ae, e, oe), F(ae, t, ae), A(oe, xe, T), A(ae, xe, T);
19791
+ F(me, t), F(oe, e, oe), F(oe, t, ae), F(ae, e, oe), F(ae, t, ae), A(oe, xe, S), A(ae, xe, S);
19771
19792
  }
19772
- return A(i, ni, v), A(i, aa, uk), {
19793
+ return A(i, ni, v), A(i, aa, pk), {
19773
19794
  start: i,
19774
19795
  tokens: tp
19775
19796
  };
19776
19797
  }
19777
- function pk(n, e, t) {
19798
+ function mk(n, e, t) {
19778
19799
  let r = t.length, i = 0, o = [], s = [];
19779
19800
  for (; i < r; ) {
19780
19801
  let l = n, a = null, c = null, d = 0, u = null, f = -1;
@@ -19796,8 +19817,8 @@ function js(n, e, t) {
19796
19817
  const r = t[0].s, i = t[t.length - 1].e, o = e.slice(r, i);
19797
19818
  return new n(o, t);
19798
19819
  }
19799
- const hk = typeof console < "u" && console && console.warn || (() => {
19800
- }), mk = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", re = {
19820
+ const gk = typeof console < "u" && console && console.warn || (() => {
19821
+ }), yk = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", re = {
19801
19822
  scanner: null,
19802
19823
  parser: null,
19803
19824
  tokenQueue: [],
@@ -19805,24 +19826,24 @@ const hk = typeof console < "u" && console && console.warn || (() => {
19805
19826
  customSchemes: [],
19806
19827
  initialized: !1
19807
19828
  };
19808
- function gk() {
19829
+ function bk() {
19809
19830
  return Pe.groups = {}, re.scanner = null, re.parser = null, re.tokenQueue = [], re.pluginQueue = [], re.customSchemes = [], re.initialized = !1, re;
19810
19831
  }
19811
19832
  function Cd(n, e = !1) {
19812
- if (re.initialized && hk(`linkifyjs: already initialized - will not register custom scheme "${n}" ${mk}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
19833
+ if (re.initialized && gk(`linkifyjs: already initialized - will not register custom scheme "${n}" ${yk}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
19813
19834
  throw new Error(`linkifyjs: incorrect scheme format.
19814
19835
  1. Must only contain digits, lowercase ASCII letters or "-"
19815
19836
  2. Cannot start or end with "-"
19816
19837
  3. "-" cannot repeat`);
19817
19838
  re.customSchemes.push([n, e]);
19818
19839
  }
19819
- function yk() {
19820
- re.scanner = ck(re.customSchemes);
19840
+ function vk() {
19841
+ re.scanner = uk(re.customSchemes);
19821
19842
  for (let n = 0; n < re.tokenQueue.length; n++)
19822
19843
  re.tokenQueue[n][1]({
19823
19844
  scanner: re.scanner
19824
19845
  });
19825
- re.parser = fk(re.scanner.tokens);
19846
+ re.parser = hk(re.scanner.tokens);
19826
19847
  for (let n = 0; n < re.pluginQueue.length; n++)
19827
19848
  re.pluginQueue[n][1]({
19828
19849
  scanner: re.scanner,
@@ -19831,7 +19852,7 @@ function yk() {
19831
19852
  return re.initialized = !0, re;
19832
19853
  }
19833
19854
  function ha(n) {
19834
- return re.initialized || yk(), pk(re.parser.start, n, np(re.scanner.start, n));
19855
+ return re.initialized || vk(), mk(re.parser.start, n, np(re.scanner.start, n));
19835
19856
  }
19836
19857
  ha.scan = np;
19837
19858
  function ip(n, e = null, t = null) {
@@ -19847,10 +19868,10 @@ function ip(n, e = null, t = null) {
19847
19868
  }
19848
19869
  return o;
19849
19870
  }
19850
- function bk(n) {
19871
+ function xk(n) {
19851
19872
  return n.length === 1 ? n[0].isLink : n.length === 3 && n[1].isLink ? ["()", "[]"].includes(n[0].value + n[2].value) : !1;
19852
19873
  }
19853
- function vk(n) {
19874
+ function wk(n) {
19854
19875
  return new le({
19855
19876
  key: new he("autolink"),
19856
19877
  appendTransaction: (e, t, r) => {
@@ -19862,22 +19883,22 @@ function vk(n) {
19862
19883
  const d = qy(r.doc, c, (p) => p.isTextblock);
19863
19884
  let u, f;
19864
19885
  if (d.length > 1 ? (u = d[0], f = r.doc.textBetween(u.pos, u.pos + u.node.nodeSize, void 0, " ")) : d.length && r.doc.textBetween(c.from, c.to, " ", " ").endsWith(" ") && (u = d[0], f = r.doc.textBetween(u.pos, c.to, void 0, " ")), u && f) {
19865
- const p = f.split(" ").filter((y) => y !== "");
19886
+ const p = f.split(" ").filter((b) => b !== "");
19866
19887
  if (p.length <= 0)
19867
19888
  return !1;
19868
19889
  const h = p[p.length - 1], m = u.pos + f.lastIndexOf(h);
19869
19890
  if (!h)
19870
19891
  return !1;
19871
- const g = ha(h).map((y) => y.toObject(n.defaultProtocol));
19872
- if (!bk(g))
19892
+ const g = ha(h).map((b) => b.toObject(n.defaultProtocol));
19893
+ if (!xk(g))
19873
19894
  return !1;
19874
- g.filter((y) => y.isLink).map((y) => ({
19875
- ...y,
19876
- from: m + y.start + 1,
19877
- to: m + y.end + 1
19878
- })).filter((y) => r.schema.marks.code ? !r.doc.rangeHasMark(y.from, y.to, r.schema.marks.code) : !0).filter((y) => n.validate(y.value)).filter((y) => n.shouldAutoLink(y.value)).forEach((y) => {
19879
- Yl(y.from, y.to, r.doc).some((v) => v.mark.type === n.type) || s.addMark(y.from, y.to, n.type.create({
19880
- href: y.href
19895
+ g.filter((b) => b.isLink).map((b) => ({
19896
+ ...b,
19897
+ from: m + b.start + 1,
19898
+ to: m + b.end + 1
19899
+ })).filter((b) => r.schema.marks.code ? !r.doc.rangeHasMark(b.from, b.to, r.schema.marks.code) : !0).filter((b) => n.validate(b.value)).filter((b) => n.shouldAutoLink(b.value)).forEach((b) => {
19900
+ Yl(b.from, b.to, r.doc).some((v) => v.mark.type === n.type) || s.addMark(b.from, b.to, n.type.create({
19901
+ href: b.href
19881
19902
  }));
19882
19903
  });
19883
19904
  }
@@ -19886,7 +19907,7 @@ function vk(n) {
19886
19907
  }
19887
19908
  });
19888
19909
  }
19889
- function xk(n) {
19910
+ function kk(n) {
19890
19911
  return new le({
19891
19912
  key: new he("handleClickLink"),
19892
19913
  props: {
@@ -19906,7 +19927,7 @@ function xk(n) {
19906
19927
  }
19907
19928
  });
19908
19929
  }
19909
- function wk(n) {
19930
+ function Ck(n) {
19910
19931
  return new le({
19911
19932
  key: new he("handlePasteLink"),
19912
19933
  props: {
@@ -19926,7 +19947,7 @@ function wk(n) {
19926
19947
  }
19927
19948
  });
19928
19949
  }
19929
- const kk = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
19950
+ const Sk = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
19930
19951
  function ln(n, e) {
19931
19952
  const t = [
19932
19953
  "http",
@@ -19943,13 +19964,13 @@ function ln(n, e) {
19943
19964
  return e && e.forEach((r) => {
19944
19965
  const i = typeof r == "string" ? r : r.scheme;
19945
19966
  i && t.push(i);
19946
- }), !n || n.replace(kk, "").match(new RegExp(
19967
+ }), !n || n.replace(Sk, "").match(new RegExp(
19947
19968
  // eslint-disable-next-line no-useless-escape
19948
19969
  `^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,
19949
19970
  "i"
19950
19971
  ));
19951
19972
  }
19952
- const Ck = Xe.create({
19973
+ const Tk = Xe.create({
19953
19974
  name: "link",
19954
19975
  priority: 1e3,
19955
19976
  keepOnSplit: !1,
@@ -19964,7 +19985,7 @@ const Ck = Xe.create({
19964
19985
  });
19965
19986
  },
19966
19987
  onDestroy() {
19967
- gk();
19988
+ bk();
19968
19989
  },
19969
19990
  inclusive() {
19970
19991
  return this.options.autolink;
@@ -20085,7 +20106,7 @@ const Ck = Xe.create({
20085
20106
  },
20086
20107
  addProseMirrorPlugins() {
20087
20108
  const n = [], { protocols: e, defaultProtocol: t } = this.options;
20088
- return this.options.autolink && n.push(vk({
20109
+ return this.options.autolink && n.push(wk({
20089
20110
  type: this.type,
20090
20111
  defaultProtocol: this.options.defaultProtocol,
20091
20112
  validate: (r) => this.options.isAllowedUri(r, {
@@ -20094,15 +20115,15 @@ const Ck = Xe.create({
20094
20115
  defaultProtocol: t
20095
20116
  }),
20096
20117
  shouldAutoLink: this.options.shouldAutoLink
20097
- })), this.options.openOnClick === !0 && n.push(xk({
20118
+ })), this.options.openOnClick === !0 && n.push(kk({
20098
20119
  type: this.type
20099
- })), this.options.linkOnPaste && n.push(wk({
20120
+ })), this.options.linkOnPaste && n.push(Ck({
20100
20121
  editor: this.editor,
20101
20122
  defaultProtocol: this.options.defaultProtocol,
20102
20123
  type: this.type
20103
20124
  })), n;
20104
20125
  }
20105
- }), Sk = { class: "text-steel-900 font-semibold" }, Tk = {
20126
+ }), Ak = { class: "text-steel-900 font-semibold" }, Mk = {
20106
20127
  __name: "DocumentNodeView",
20107
20128
  props: {
20108
20129
  node: Object
@@ -20121,7 +20142,7 @@ const Ck = Xe.create({
20121
20142
  };
20122
20143
  return (i, o) => (E(), X(K(rs), { class: "bg-steel-300 p-2 rounded-md w-fit flex flex-row items-center gap-x-2" }, {
20123
20144
  default: P(() => [
20124
- x("span", Sk, kn(K(t).textContent), 1),
20145
+ x("span", Ak, kn(K(t).textContent), 1),
20125
20146
  I(K(Op), {
20126
20147
  class: "text-steel-900 font-semibold cursor-pointer",
20127
20148
  onClick: o[0] || (o[0] = (s) => r(K(t).attrs.sasToken))
@@ -20130,7 +20151,7 @@ const Ck = Xe.create({
20130
20151
  _: 1
20131
20152
  }));
20132
20153
  }
20133
- }, Ak = ie.create({
20154
+ }, Ek = ie.create({
20134
20155
  name: "documentNode",
20135
20156
  group: "block",
20136
20157
  content: "inline*",
@@ -20163,13 +20184,13 @@ const Ck = Xe.create({
20163
20184
  };
20164
20185
  },
20165
20186
  addNodeView() {
20166
- return is(Tk);
20187
+ return is(Mk);
20167
20188
  }
20168
- }), Mk = new he("templateLock"), Ek = /* @__PURE__ */ new Set(["UneditableTitle", "customColumnBlock"]);
20189
+ }), Ok = new he("templateLock"), Nk = /* @__PURE__ */ new Set(["UneditableTitle", "customColumnBlock"]);
20169
20190
  function Sd(n) {
20170
20191
  const e = [];
20171
20192
  return n.forEach((t, r, i) => {
20172
- if (Ek.has(t.type.name)) {
20193
+ if (Nk.has(t.type.name)) {
20173
20194
  const o = { type: t.type.name };
20174
20195
  if (t.type.name === "UneditableTitle" && (o.text = t.textContent), t.type.name === "customColumnBlock") {
20175
20196
  o.childCount = t.childCount;
@@ -20184,7 +20205,7 @@ function Sd(n) {
20184
20205
  }
20185
20206
  }), e;
20186
20207
  }
20187
- function Ok(n, e) {
20208
+ function Dk(n, e) {
20188
20209
  if (n.length !== e.length)
20189
20210
  return !1;
20190
20211
  for (let t = 0; t < n.length; t++) {
@@ -20200,7 +20221,7 @@ function Ok(n, e) {
20200
20221
  }
20201
20222
  return !0;
20202
20223
  }
20203
- const Nk = fe.create({
20224
+ const Rk = fe.create({
20204
20225
  name: "templateLock",
20205
20226
  addOptions() {
20206
20227
  return { enabled: !1 };
@@ -20208,17 +20229,17 @@ const Nk = fe.create({
20208
20229
  addProseMirrorPlugins() {
20209
20230
  return this.options.enabled ? [
20210
20231
  new le({
20211
- key: Mk,
20232
+ key: Ok,
20212
20233
  filterTransaction: (n, e) => {
20213
20234
  if (!n.docChanged || n.getMeta("initialContent"))
20214
20235
  return !0;
20215
20236
  const t = Sd(e.doc), r = Sd(n.doc);
20216
- return Ok(t, r);
20237
+ return Dk(t, r);
20217
20238
  }
20218
20239
  })
20219
20240
  ] : [];
20220
20241
  }
20221
- }), Dk = [
20242
+ }), Ik = [
20222
20243
  b1.configure({
20223
20244
  heading: {
20224
20245
  levels: [1, 2],
@@ -20284,12 +20305,12 @@ const Nk = fe.create({
20284
20305
  Wx.configure({ types: ["heading", "paragraph"] }),
20285
20306
  Ux,
20286
20307
  hw,
20287
- Qw,
20288
- Zw.configure({
20308
+ ek,
20309
+ tk.configure({
20289
20310
  placeholder: "Enter textarea text here..."
20290
20311
  }),
20291
- ek,
20292
- Ck.configure({
20312
+ nk,
20313
+ Tk.configure({
20293
20314
  openOnClick: !0,
20294
20315
  autolink: !0,
20295
20316
  linkOnPaste: !0,
@@ -20300,11 +20321,11 @@ const Nk = fe.create({
20300
20321
  rel: "noopener noreferrer nofollow"
20301
20322
  }
20302
20323
  }),
20303
- Ak
20324
+ Ek
20304
20325
  ], op = (n, e, { templateLocked: t = !1 } = {}) => {
20305
20326
  const r = [
20306
- ...Dk,
20307
- Nk.configure({ enabled: t })
20327
+ ...Ik,
20328
+ Rk.configure({ enabled: t })
20308
20329
  ];
20309
20330
  return new mv({
20310
20331
  extensions: r,
@@ -20313,7 +20334,7 @@ const Nk = fe.create({
20313
20334
  });
20314
20335
  }, zi = (n, e) => {
20315
20336
  n.setOptions({ editable: e }), e && n.commands.focus("start"), n.view.update(n.view.props);
20316
- }, Rk = { class: "p-2.5 flex flex-col items-center justify-center h-[50px] text-center leading-tight gap-y-[5px]" }, Ik = { class: "w-[24px] h-[24px] flex items-center justify-center" }, Le = {
20337
+ }, Lk = { class: "p-2.5 flex flex-col items-center justify-center h-[50px] text-center leading-tight gap-y-[5px]" }, Pk = { class: "w-[24px] h-[24px] flex items-center justify-center" }, Le = {
20317
20338
  __name: "ControlItem",
20318
20339
  props: {
20319
20340
  controlName: {
@@ -20334,8 +20355,8 @@ const Nk = fe.create({
20334
20355
  return (t, r) => (E(), V("div", {
20335
20356
  class: W(["rounded-[10px] transition duration-300 ease-in-out", e.disabled ? "opacity-30 cursor-default" : "cursor-pointer"])
20336
20357
  }, [
20337
- x("div", Rk, [
20338
- x("div", Ik, [
20358
+ x("div", Lk, [
20359
+ x("div", Pk, [
20339
20360
  Sp(t.$slots, "icon")
20340
20361
  ]),
20341
20362
  x("span", {
@@ -20344,27 +20365,27 @@ const Nk = fe.create({
20344
20365
  ])
20345
20366
  ], 2));
20346
20367
  }
20347
- }, Lk = ["src"], Pk = /* @__PURE__ */ x("i", { class: "fa-solid fa-trash-can text-xs" }, null, -1), Bk = [
20348
- Pk
20349
- ], zk = {
20368
+ }, Bk = ["src"], zk = /* @__PURE__ */ x("i", { class: "fa-solid fa-trash-can text-xs" }, null, -1), $k = [
20369
+ zk
20370
+ ], Hk = {
20350
20371
  key: 1,
20351
20372
  class: "flex flex-col gap-[10px] items-center justify-center w-full"
20352
- }, $k = /* @__PURE__ */ x("i", { class: "fa-light fa-image text-[28px] text-black-150" }, null, -1), Hk = { class: "flex flex-col gap-[5px] items-center text-center w-full" }, Fk = {
20373
+ }, Fk = /* @__PURE__ */ x("i", { class: "fa-light fa-image text-[28px] text-black-150" }, null, -1), Vk = { class: "flex flex-col gap-[5px] items-center text-center w-full" }, jk = {
20353
20374
  key: 0,
20354
20375
  class: "text-[14px] leading-[1.2]"
20355
- }, Vk = /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Tap to choose", -1), jk = /* @__PURE__ */ x("span", { class: "text-black-950" }, " from photos or camera", -1), _k = [
20356
- Vk,
20357
- jk
20358
- ], Wk = {
20376
+ }, _k = /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Tap to choose", -1), Wk = /* @__PURE__ */ x("span", { class: "text-black-950" }, " from photos or camera", -1), Uk = [
20377
+ _k,
20378
+ Wk
20379
+ ], qk = {
20359
20380
  key: 1,
20360
20381
  class: "text-[14px] leading-[1.2]"
20361
- }, Uk = /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Upload a file", -1), qk = /* @__PURE__ */ x("span", { class: "text-black-950" }, " or drag and drop", -1), Kk = [
20362
- Uk,
20363
- qk
20364
- ], Jk = { class: "text-[12px] leading-[1.2] text-black-700" }, Gk = {
20382
+ }, Kk = /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Upload a file", -1), Jk = /* @__PURE__ */ x("span", { class: "text-black-950" }, " or drag and drop", -1), Gk = [
20383
+ Kk,
20384
+ Jk
20385
+ ], Yk = { class: "text-[12px] leading-[1.2] text-black-700" }, Xk = {
20365
20386
  key: 2,
20366
20387
  class: "absolute -bottom-5 left-0 text-[11px] text-error-950"
20367
- }, Yk = ["accept"], Xk = {
20388
+ }, Qk = ["accept"], Zk = {
20368
20389
  __name: "FileUploadZone",
20369
20390
  props: {
20370
20391
  acceptedTypes: {
@@ -20388,15 +20409,15 @@ const Nk = fe.create({
20388
20409
  t.previewUrl || (h = i.value) == null || h.click();
20389
20410
  }, u = (h) => {
20390
20411
  const m = t.acceptedTypes.includes(h.type), g = h.type.startsWith("image/");
20391
- return !m && !g ? (s.value = `File type not supported. Use ${t.acceptedTypes.map((y) => y.split("/")[1].toUpperCase()).join(" or ")}.`, !1) : h.size > t.maxFileSize ? (s.value = `File too large. Maximum ${l.value}MB.`, !1) : (s.value = null, !0);
20412
+ return !m && !g ? (s.value = `File type not supported. Use ${t.acceptedTypes.map((b) => b.split("/")[1].toUpperCase()).join(" or ")}.`, !1) : h.size > t.maxFileSize ? (s.value = `File too large. Maximum ${l.value}MB.`, !1) : (s.value = null, !0);
20392
20413
  }, f = (h) => {
20393
20414
  var g;
20394
20415
  const m = (g = h.target.files) == null ? void 0 : g[0];
20395
20416
  m && u(m) && r("fileSelected", m), i.value && (i.value.value = "");
20396
20417
  }, p = (h) => {
20397
- var g, y;
20418
+ var g, b;
20398
20419
  o.value = !1;
20399
- const m = (y = (g = h.dataTransfer) == null ? void 0 : g.files) == null ? void 0 : y[0];
20420
+ const m = (b = (g = h.dataTransfer) == null ? void 0 : g.files) == null ? void 0 : b[0];
20400
20421
  m && u(m) && r("fileSelected", m);
20401
20422
  };
20402
20423
  return (h, m) => (E(), V("div", {
@@ -20414,19 +20435,19 @@ const Nk = fe.create({
20414
20435
  src: n.previewUrl,
20415
20436
  alt: "Preview",
20416
20437
  class: "w-full h-full object-cover rounded-[8px]"
20417
- }, null, 8, Lk),
20438
+ }, null, 8, Bk),
20418
20439
  x("button", {
20419
20440
  class: "absolute top-[10px] right-[10px] w-[24px] h-[24px] flex items-center justify-center bg-[#ffffff] rounded shadow text-black-700 hover:text-error-950 transition-colors",
20420
20441
  onClick: m[0] || (m[0] = xr((g) => h.$emit("fileRemoved"), ["stop"]))
20421
- }, Bk)
20422
- ], 64)) : (E(), V("div", zk, [
20423
- $k,
20424
- x("div", Hk, [
20425
- a.value ? (E(), V("p", Fk, _k)) : (E(), V("p", Wk, Kk)),
20426
- x("p", Jk, " PNG or JPG up to " + kn(l.value) + "MB ", 1)
20442
+ }, $k)
20443
+ ], 64)) : (E(), V("div", Hk, [
20444
+ Fk,
20445
+ x("div", Vk, [
20446
+ a.value ? (E(), V("p", jk, Uk)) : (E(), V("p", qk, Gk)),
20447
+ x("p", Yk, " PNG or JPG up to " + kn(l.value) + "MB ", 1)
20427
20448
  ])
20428
20449
  ])),
20429
- s.value ? (E(), V("p", Gk, kn(s.value), 1)) : _("", !0),
20450
+ s.value ? (E(), V("p", Xk, kn(s.value), 1)) : _("", !0),
20430
20451
  x("input", {
20431
20452
  ref_key: "fileInput",
20432
20453
  ref: i,
@@ -20434,12 +20455,12 @@ const Nk = fe.create({
20434
20455
  accept: c.value,
20435
20456
  class: "hidden",
20436
20457
  onChange: f
20437
- }, null, 40, Yk)
20458
+ }, null, 40, Qk)
20438
20459
  ], 34));
20439
20460
  }
20440
- }, Qk = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15px] border-b-[1px] border-black-600 w-full" }, [
20461
+ }, eC = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15px] border-b-[1px] border-black-600 w-full" }, [
20441
20462
  /* @__PURE__ */ x("p", { class: "flex-1 text-[18px] font-bold text-black-950 leading-normal" }, "Image upload")
20442
- ], -1), Zk = { class: "bg-[rgba(7,21,30,0.04)] px-[20px] py-[15px]" }, eC = { class: "flex gap-[20px] items-end justify-center py-[15px] border-t-[1px] border-black-600" }, tC = /* @__PURE__ */ x("p", { class: "text-style-sub-header text-app-950 p-6" }, "Add Image to Editor", -1), nC = { class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6" }, sp = {
20463
+ ], -1), tC = { class: "bg-[rgba(7,21,30,0.04)] px-[20px] py-[15px]" }, nC = { class: "flex gap-[20px] items-end justify-center py-[15px] border-t-[1px] border-black-600" }, rC = /* @__PURE__ */ x("p", { class: "text-style-sub-header text-app-950 p-6" }, "Add Image to Editor", -1), iC = { class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6" }, sp = {
20443
20464
  __name: "AddImageModal",
20444
20465
  props: {
20445
20466
  mode: {
@@ -20499,10 +20520,10 @@ const Nk = fe.create({
20499
20520
  class: "w-[410px] max-w-[93vw] !p-0 !rounded-[20px] !top-[calc(50%+83px)] !shadow-[0px_6px_15px_0px_rgba(0,0,0,0.1),0px_3px_8px_0px_rgba(0,0,0,0.1)]"
20500
20521
  }, {
20501
20522
  header: P(() => [
20502
- Qk
20523
+ eC
20503
20524
  ]),
20504
20525
  footer: P(() => [
20505
- x("div", eC, [
20526
+ x("div", nC, [
20506
20527
  I(K(Od), {
20507
20528
  onClick: h[0] || (h[0] = (m) => p.$emit("close"))
20508
20529
  }, {
@@ -20523,8 +20544,8 @@ const Nk = fe.create({
20523
20544
  ])
20524
20545
  ]),
20525
20546
  default: P(() => [
20526
- x("div", Zk, [
20527
- I(Xk, {
20547
+ x("div", tC, [
20548
+ I(Zk, {
20528
20549
  acceptedTypes: n.acceptedTypes,
20529
20550
  maxFileSize: n.maxFileSize,
20530
20551
  previewUrl: o.value,
@@ -20540,14 +20561,14 @@ const Nk = fe.create({
20540
20561
  class: "w-[90vw] md:w-[600px] h-fit !p-0"
20541
20562
  }, {
20542
20563
  header: P(({ handleClose: m }) => [
20543
- tC,
20564
+ rC,
20544
20565
  I(Dd, {
20545
20566
  class: "!w-[14px] !h-[14px] p-0 top-[25px] right-[25px] absolute text-steel-950 cursor-pointer",
20546
20567
  onClick: h[1] || (h[1] = (g) => p.$emit("close"))
20547
20568
  })
20548
20569
  ]),
20549
20570
  default: P(() => [
20550
- x("div", nC, [
20571
+ x("div", iC, [
20551
20572
  I(K(Rd), {
20552
20573
  tableData: c.value,
20553
20574
  tableCols: d,
@@ -20559,13 +20580,13 @@ const Nk = fe.create({
20559
20580
  _: 1
20560
20581
  }));
20561
20582
  }
20562
- }, rC = /* @__PURE__ */ x("p", { class: "text-style-sub-header text-app-950 p-6" }, "Add Link to Editor", -1), iC = { class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6" }, oC = {
20583
+ }, oC = /* @__PURE__ */ x("p", { class: "text-style-sub-header text-app-950 p-6" }, "Add Link to Editor", -1), sC = { class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6" }, lC = {
20563
20584
  key: 0,
20564
20585
  class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6"
20565
- }, sC = {
20586
+ }, aC = {
20566
20587
  key: 1,
20567
20588
  class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6"
20568
- }, lC = {
20589
+ }, cC = {
20569
20590
  key: 0,
20570
20591
  class: "border-t-[1px] border-steel-500 flex justify-end gap-x-[30px] pt-[25px] p-6"
20571
20592
  }, lp = {
@@ -20602,14 +20623,14 @@ const Nk = fe.create({
20602
20623
  class: "w-[50%] h-fit !p-0"
20603
20624
  }, {
20604
20625
  header: P(({ handleClose: f }) => [
20605
- rC,
20626
+ oC,
20606
20627
  I(Dd, {
20607
20628
  class: "!w-[14px] !h-[14px] p-0 top-[25px] right-[25px] absolute text-steel-950 cursor-pointer",
20608
20629
  onClick: u[0] || (u[0] = (p) => d.$emit("close"))
20609
20630
  })
20610
20631
  ]),
20611
20632
  footer: P(() => [
20612
- r.value ? _("", !0) : (E(), V("div", lC, [
20633
+ r.value ? _("", !0) : (E(), V("div", cC, [
20613
20634
  I(K(Od), {
20614
20635
  onClick: u[4] || (u[4] = (f) => d.$emit("close"))
20615
20636
  }, {
@@ -20629,7 +20650,7 @@ const Nk = fe.create({
20629
20650
  ]))
20630
20651
  ]),
20631
20652
  default: P(() => [
20632
- x("div", iC, [
20653
+ x("div", sC, [
20633
20654
  I(K(Mp), {
20634
20655
  useLabels: "",
20635
20656
  leftLabel: "Web URL",
@@ -20639,7 +20660,7 @@ const Nk = fe.create({
20639
20660
  "onUpdate:modelValue": u[1] || (u[1] = (f) => r.value = f)
20640
20661
  }, null, 8, ["modelValue"])
20641
20662
  ]),
20642
- r.value ? _("", !0) : (E(), V("div", oC, [
20663
+ r.value ? _("", !0) : (E(), V("div", lC, [
20643
20664
  I(K(Ta), {
20644
20665
  label: "Display Text",
20645
20666
  placeholder: "Enter display text for link...",
@@ -20657,7 +20678,7 @@ const Nk = fe.create({
20657
20678
  required: ""
20658
20679
  }, null, 8, ["modelValue"])
20659
20680
  ])),
20660
- r.value ? (E(), V("div", sC, [
20681
+ r.value ? (E(), V("div", aC, [
20661
20682
  I(K(Rd), {
20662
20683
  tableData: n.documents,
20663
20684
  tableCols: s,
@@ -20669,18 +20690,18 @@ const Nk = fe.create({
20669
20690
  _: 1
20670
20691
  }));
20671
20692
  }
20672
- }, aC = { key: 0 }, cC = {
20693
+ }, dC = { key: 0 }, uC = {
20673
20694
  key: 0,
20674
20695
  class: "flex flex-col"
20675
- }, dC = /* @__PURE__ */ x("div", { class: "w-full bg-proclus-950 px-[15px] py-[8px] leading-tight" }, [
20696
+ }, fC = /* @__PURE__ */ x("div", { class: "w-full bg-proclus-950 px-[15px] py-[8px] leading-tight" }, [
20676
20697
  /* @__PURE__ */ x("h2", { class: "text-[14px] font-semibold text-white" }, "Edit options")
20677
- ], -1), uC = { class: "w-full flex flex-wrap justify-between p-[15px] gap-y-[15px]" }, fC = { class: "w-full border-t-[1px] border-black-600 flex flex-row items-center justify-between px-[15px] py-[15px]" }, pC = {
20698
+ ], -1), pC = { class: "w-full flex flex-wrap justify-between p-[15px] gap-y-[15px]" }, hC = { class: "w-full border-t-[1px] border-black-600 flex flex-row items-center justify-between px-[15px] py-[15px]" }, mC = {
20678
20699
  key: 0,
20679
20700
  class: "flex flex-col justify-start items-start h-full"
20680
- }, hC = /* @__PURE__ */ x("div", { class: "w-full bg-black-950 px-4 py-6 leading-tight" }, [
20701
+ }, gC = /* @__PURE__ */ x("div", { class: "w-full bg-black-950 px-4 py-6 leading-tight" }, [
20681
20702
  /* @__PURE__ */ x("h2", { class: "text-base font-semibold text-white" }, "Edit options"),
20682
20703
  /* @__PURE__ */ x("p", { class: "text-steel-600" }, "Use the options below to add elements to the editor.")
20683
- ], -1), mC = { class: "w-full px-4" }, gC = { class: "w-full grid grid-cols-2 gap-5 gap-y-3 px-4 mt-4" }, yC = { class: "w-full border-t-[1px] border-steel-500 h-12 mt-auto flex flex-row items-center justify-end py-8 px-6 gap-6" }, bC = {
20704
+ ], -1), yC = { class: "w-full px-4" }, bC = { class: "w-full grid grid-cols-2 gap-5 gap-y-3 px-4 mt-4" }, vC = { class: "w-full border-t-[1px] border-steel-500 h-12 mt-auto flex flex-row items-center justify-end py-8 px-6 gap-6" }, xC = {
20684
20705
  __name: "Sidebar",
20685
20706
  props: {
20686
20707
  editor: {
@@ -20716,67 +20737,67 @@ const Nk = fe.create({
20716
20737
  setup(n, { emit: e }) {
20717
20738
  const t = n, r = e, i = U(""), o = U(!1), s = U(!1), l = U(!1), a = () => {
20718
20739
  t.editor.isActive("table") || (t.editor.isActive("ImageCarousel"), l.value = !0);
20719
- }, c = (y) => {
20720
- if (y.length !== 0) {
20740
+ }, c = (b) => {
20741
+ if (b.length !== 0) {
20721
20742
  if (t.editor.isActive("ImageCarousel")) {
20722
20743
  const { state: v } = t.editor, { $from: w } = v.selection;
20723
- for (let b = w.depth; b >= 1; b--)
20724
- if (w.node(b).type.name === "ImageCarousel") {
20725
- const T = w.before(b);
20726
- t.editor.chain().focus().command(({ tr: k, dispatch: O }) => (O && k.setNodeMarkup(T, void 0, { srcs: y }), !0)).run();
20744
+ for (let y = w.depth; y >= 1; y--)
20745
+ if (w.node(y).type.name === "ImageCarousel") {
20746
+ const S = w.before(y);
20747
+ t.editor.chain().focus().command(({ tr: k, dispatch: O }) => (O && k.setNodeMarkup(S, void 0, { srcs: b }), !0)).run();
20727
20748
  break;
20728
20749
  }
20729
20750
  } else
20730
20751
  t.editor.chain().focus().insertContent({
20731
20752
  type: "ImageCarousel",
20732
- attrs: { srcs: y }
20753
+ attrs: { srcs: b }
20733
20754
  }).run();
20734
20755
  l.value = !1;
20735
20756
  }
20736
20757
  }, d = () => {
20737
20758
  if (!t.editor.isActive("columnBlock"))
20738
20759
  if (t.editor.isActive("table")) {
20739
- const { state: y } = t.editor, { $from: v } = y.selection;
20760
+ const { state: b } = t.editor, { $from: v } = b.selection;
20740
20761
  let w = null;
20741
- for (let b = v.depth; b >= 1; b--)
20742
- if (v.node(b).type.name === "table") {
20743
- w = v.before(b);
20762
+ for (let y = v.depth; y >= 1; y--)
20763
+ if (v.node(y).type.name === "table") {
20764
+ w = v.before(y);
20744
20765
  break;
20745
20766
  }
20746
20767
  if (w !== null) {
20747
- const b = y.doc.nodeAt(w), T = w + b.nodeSize, k = y.schema.nodes.paragraph.create();
20748
- t.editor.chain().focus().command(({ tr: O, dispatch: H }) => (H && O.insert(T, k), !0)).deleteTable().run();
20768
+ const y = b.doc.nodeAt(w), S = w + y.nodeSize, k = b.schema.nodes.paragraph.create();
20769
+ t.editor.chain().focus().command(({ tr: O, dispatch: H }) => (H && O.insert(S, k), !0)).deleteTable().run();
20749
20770
  }
20750
20771
  } else
20751
20772
  t.editor.commands.insertTable({ rows: 3, cols: 3, withHeaderRow: !0, resizeable: !0 });
20752
- }, u = (y) => {
20773
+ }, u = (b) => {
20753
20774
  t.editor.isActive("columnBlock") ? t.editor.chain().focus().unsetColumns().run() : (t.editor.chain().focus().debugColumnsSchema().run(), t.editor.chain().focus().create2Columns().run());
20754
- }, f = async ({ file: y, dataUrl: v }) => {
20775
+ }, f = async ({ file: b, dataUrl: v }) => {
20755
20776
  o.value = !1;
20756
20777
  let w = v;
20757
20778
  if (t.uploadImage)
20758
20779
  try {
20759
- w = await t.uploadImage(y);
20760
- } catch (T) {
20761
- console.error("Image upload failed, embedding inline data instead:", T), w = v;
20780
+ w = await t.uploadImage(b);
20781
+ } catch (S) {
20782
+ console.error("Image upload failed, embedding inline data instead:", S), w = v;
20762
20783
  }
20763
- const b = new Image();
20764
- b.onload = () => {
20765
- const { width: T, height: k } = Jf(b.naturalWidth, b.naturalHeight);
20766
- t.editor.chain().focus().setResizeableImage(w, T, k).run();
20767
- }, b.src = v;
20768
- }, p = (y) => {
20784
+ const y = new Image();
20785
+ y.onload = () => {
20786
+ const { width: S, height: k } = Jf(y.naturalWidth, y.naturalHeight);
20787
+ t.editor.chain().focus().setResizeableImage(w, S, k).run();
20788
+ }, y.src = v;
20789
+ }, p = (b) => {
20769
20790
  t.editor.isActive("link") ? t.editor.chain().focus().unsetLink().run() : t.editor.chain().focus().insertContent({
20770
20791
  type: "paragraph",
20771
20792
  content: [
20772
20793
  {
20773
20794
  type: "text",
20774
- text: y.displayText,
20795
+ text: b.displayText,
20775
20796
  marks: [
20776
20797
  {
20777
20798
  type: "link",
20778
20799
  attrs: {
20779
- href: y.url,
20800
+ href: b.url,
20780
20801
  target: "_blank"
20781
20802
  }
20782
20803
  }
@@ -20784,12 +20805,12 @@ const Nk = fe.create({
20784
20805
  }
20785
20806
  ]
20786
20807
  }).run();
20787
- }, h = (y) => {
20808
+ }, h = (b) => {
20788
20809
  t.editor.chain().focus().insertContent([
20789
20810
  {
20790
20811
  type: "documentNode",
20791
- attrs: { sasToken: y.sasToken },
20792
- content: [{ type: "text", text: y.url }]
20812
+ attrs: { sasToken: b.sasToken },
20813
+ content: [{ type: "text", text: b.url }]
20793
20814
  },
20794
20815
  {
20795
20816
  type: "paragraph",
@@ -20801,13 +20822,13 @@ const Nk = fe.create({
20801
20822
  }, g = () => {
20802
20823
  r("save");
20803
20824
  };
20804
- return (y, v) => n.editor ? (E(), V("div", aC, [
20825
+ return (b, v) => n.editor ? (E(), V("div", dC, [
20805
20826
  x("div", {
20806
20827
  class: W(["sidebar-mobile lg:hidden fixed bottom-0 left-0 right-0 z-50 bg-[#ffffff] shadow-xl transition-transform ease-in-out duration-300", n.isOpen ? "translate-y-0" : "translate-y-full"])
20807
20828
  }, [
20808
- n.isOpen ? (E(), V("div", cC, [
20809
- dC,
20810
- x("div", uC, [
20829
+ n.isOpen ? (E(), V("div", uC, [
20830
+ fC,
20831
+ x("div", pC, [
20811
20832
  I(Le, {
20812
20833
  controlName: "Image",
20813
20834
  active: n.editor.isActive("image"),
@@ -20903,7 +20924,7 @@ const Nk = fe.create({
20903
20924
  _: 1
20904
20925
  }, 8, ["active", "disabled"])
20905
20926
  ]),
20906
- x("div", fC, [
20927
+ x("div", hC, [
20907
20928
  I(Vr, { onClick: m }, {
20908
20929
  default: P(() => [
20909
20930
  Be("Cancel")
@@ -20923,9 +20944,9 @@ const Nk = fe.create({
20923
20944
  key: 0,
20924
20945
  class: W(["hidden lg:block h-full absolute fixed right-0 top-0 bg-[#ffffff] shadow-xl z-50 transition transition-width ease-in-out duration-300", [n.isOpen ? "w-72" : "w-0", n.customClasses]])
20925
20946
  }, [
20926
- n.isOpen ? (E(), V("div", pC, [
20927
- hC,
20928
- x("div", mC, [
20947
+ n.isOpen ? (E(), V("div", mC, [
20948
+ gC,
20949
+ x("div", yC, [
20929
20950
  I(K(Md), {
20930
20951
  modelValue: i.value,
20931
20952
  "onUpdate:modelValue": v[6] || (v[6] = (w) => i.value = w),
@@ -20938,7 +20959,7 @@ const Nk = fe.create({
20938
20959
  _: 1
20939
20960
  }, 8, ["modelValue"])
20940
20961
  ]),
20941
- x("div", gC, [
20962
+ x("div", bC, [
20942
20963
  new String("image").includes(i.value.toLowerCase()) ? (E(), X(Le, {
20943
20964
  key: 0,
20944
20965
  controlName: "Image",
@@ -21034,7 +21055,7 @@ const Nk = fe.create({
21034
21055
  _: 1
21035
21056
  }, 8, ["active", "disabled"])) : _("", !0)
21036
21057
  ]),
21037
- x("div", yC, [
21058
+ x("div", vC, [
21038
21059
  I(Vr, { onClick: m }, {
21039
21060
  default: P(() => [
21040
21061
  Be("Cancel")
@@ -21070,7 +21091,7 @@ const Nk = fe.create({
21070
21091
  }, null, 8, ["uploadImage"])) : _("", !0)
21071
21092
  ])) : _("", !0);
21072
21093
  }
21073
- }, vC = {
21094
+ }, wC = {
21074
21095
  name: "InlineMenu",
21075
21096
  data() {
21076
21097
  return {
@@ -21142,33 +21163,33 @@ const Nk = fe.create({
21142
21163
  this.editor.chain().focus().setFontSize({ fontSize: this.fontSize }).run();
21143
21164
  }
21144
21165
  }
21145
- }, xC = { class: "bg-[#ffffff] flex flex-row rounded-md p-1 border-[1px] border-steel-500 max-w-[450px]" }, wC = { class: "flex flex-row gap-x-2" }, kC = ["onClick"], CC = ["onClick"], SC = { class: "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center" }, TC = {
21166
+ }, kC = { class: "bg-[#ffffff] flex flex-row rounded-md p-1 border-[1px] border-steel-500 max-w-[450px]" }, CC = { class: "flex flex-row gap-x-2" }, SC = ["onClick"], TC = ["onClick"], AC = { class: "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center" }, MC = {
21146
21167
  key: 0,
21147
21168
  class: "absolute top-9 z-10 p-1 rounded bg-steel-200 flex flex-row flex-wrap gap-x-1 max-w-[188px] border-[1px] border-steel-500"
21148
- }, AC = ["onClick"], MC = /* @__PURE__ */ x("b", null, "B", -1), EC = [
21149
- MC
21150
- ], OC = /* @__PURE__ */ x("i", null, "I", -1), NC = [
21169
+ }, EC = ["onClick"], OC = /* @__PURE__ */ x("b", null, "B", -1), NC = [
21151
21170
  OC
21152
- ], DC = /* @__PURE__ */ x("u", null, "U", -1), RC = [
21171
+ ], DC = /* @__PURE__ */ x("i", null, "I", -1), RC = [
21153
21172
  DC
21154
- ], IC = /* @__PURE__ */ x("del", null, "ab", -1), LC = [
21173
+ ], IC = /* @__PURE__ */ x("u", null, "U", -1), LC = [
21155
21174
  IC
21156
- ], PC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-left" }, null, -1), BC = [
21175
+ ], PC = /* @__PURE__ */ x("del", null, "ab", -1), BC = [
21157
21176
  PC
21158
- ], zC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-center" }, null, -1), $C = [
21177
+ ], zC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-left" }, null, -1), $C = [
21159
21178
  zC
21160
- ], HC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-right" }, null, -1), FC = [
21179
+ ], HC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-center" }, null, -1), FC = [
21161
21180
  HC
21162
- ], VC = {
21181
+ ], VC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-right" }, null, -1), jC = [
21182
+ VC
21183
+ ], _C = {
21163
21184
  key: 0,
21164
21185
  class: "flex flex-row gap-x-2 border-s-[1px] border-s-steel-950 pl-2 ml-2"
21165
21186
  };
21166
- function jC(n, e, t, r, i, o) {
21187
+ function WC(n, e, t, r, i, o) {
21167
21188
  const s = Tr("ChevronDownIcon"), l = Tr("DropdownMenu"), a = Tr("bubble-menu");
21168
21189
  return E(), X(a, { editor: t.editor }, {
21169
21190
  default: P(() => [
21170
- x("div", xC, [
21171
- x("div", wC, [
21191
+ x("div", kC, [
21192
+ x("div", CC, [
21172
21193
  I(l, {
21173
21194
  data: i.fontSizeSelection,
21174
21195
  forceWidth: "60px",
@@ -21182,25 +21203,25 @@ function jC(n, e, t, r, i, o) {
21182
21203
  }, [
21183
21204
  x("p", null, kn(o.findFontSize), 1),
21184
21205
  I(s, { class: "w-2 h-2 ml-1" })
21185
- ], 8, kC)
21206
+ ], 8, SC)
21186
21207
  ]),
21187
21208
  default: P(({ itemList: c, selectItem: d }) => [
21188
21209
  (E(!0), V(Cn, null, Fr(c, (u) => (E(), V("div", {
21189
21210
  key: u.id,
21190
21211
  onClick: (f) => d(u.id),
21191
21212
  class: "bg-[#ffffff] p-0.5 items-center flex justify-center cursor-pointer hover:bg-steel-500"
21192
- }, kn(u.val), 9, CC))), 128))
21213
+ }, kn(u.val), 9, TC))), 128))
21193
21214
  ]),
21194
21215
  _: 1
21195
21216
  }, 8, ["data", "modelValue"]),
21196
- x("button", SC, [
21217
+ x("button", AC, [
21197
21218
  x("div", {
21198
21219
  class: "size-4 rounded",
21199
21220
  style: un("background-color:" + o.findFontColor),
21200
21221
  onClick: e[1] || (e[1] = (...c) => o.toggleColorPicker && o.toggleColorPicker(...c))
21201
21222
  }, null, 4)
21202
21223
  ]),
21203
- i.colorPicker ? (E(), V("div", TC, [
21224
+ i.colorPicker ? (E(), V("div", MC, [
21204
21225
  (E(!0), V(Cn, null, Fr(i.colors, (c) => (E(), V("div", {
21205
21226
  class: "rounded border-[1px] border-steel-500 mb-1 cursor-pointer",
21206
21227
  key: c.id,
@@ -21210,38 +21231,38 @@ function jC(n, e, t, r, i, o) {
21210
21231
  class: "size-4 rounded m-1",
21211
21232
  style: un("background-color:" + c.color)
21212
21233
  }, null, 4)
21213
- ], 8, AC))), 128))
21234
+ ], 8, EC))), 128))
21214
21235
  ])) : _("", !0),
21215
21236
  x("button", {
21216
21237
  onClick: e[2] || (e[2] = (c) => t.editor.chain().focus().toggleBold().run()),
21217
21238
  class: W([t.editor.isActive("bold") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21218
- }, EC, 2),
21239
+ }, NC, 2),
21219
21240
  x("button", {
21220
21241
  onClick: e[3] || (e[3] = (c) => t.editor.chain().focus().toggleItalic().run()),
21221
21242
  class: W([t.editor.isActive("italic") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21222
- }, NC, 2),
21243
+ }, RC, 2),
21223
21244
  x("button", {
21224
21245
  onClick: e[4] || (e[4] = (c) => t.editor.chain().focus().toggleUnderline().run()),
21225
21246
  class: W([t.editor.isActive("underline") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21226
- }, RC, 2),
21247
+ }, LC, 2),
21227
21248
  x("button", {
21228
21249
  onClick: e[5] || (e[5] = (c) => t.editor.chain().focus().toggleStrike().run()),
21229
21250
  class: W([t.editor.isActive("strike") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21230
- }, LC, 2),
21251
+ }, BC, 2),
21231
21252
  x("button", {
21232
21253
  onClick: e[6] || (e[6] = (c) => t.editor.chain().focus().setTextAlign("left").run()),
21233
21254
  class: W([t.editor.isActive({ textAlign: "left" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21234
- }, BC, 2),
21255
+ }, $C, 2),
21235
21256
  x("button", {
21236
21257
  onClick: e[7] || (e[7] = (c) => t.editor.chain().focus().setTextAlign("center").run()),
21237
21258
  class: W([t.editor.isActive({ textAlign: "center" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21238
- }, $C, 2),
21259
+ }, FC, 2),
21239
21260
  x("button", {
21240
21261
  onClick: e[8] || (e[8] = (c) => t.editor.chain().focus().setTextAlign("right").run()),
21241
21262
  class: W([t.editor.isActive({ textAlign: "right" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21242
- }, FC, 2)
21263
+ }, jC, 2)
21243
21264
  ]),
21244
- o.listActive ? (E(), V("div", VC, [
21265
+ o.listActive ? (E(), V("div", _C, [
21245
21266
  t.editor.can().sinkListItem("listItem") ? (E(), V("button", {
21246
21267
  key: 0,
21247
21268
  onClick: e[9] || (e[9] = (c) => t.editor.chain().focus().sinkListItem("listItem").run()),
@@ -21258,10 +21279,10 @@ function jC(n, e, t, r, i, o) {
21258
21279
  _: 1
21259
21280
  }, 8, ["editor"]);
21260
21281
  }
21261
- const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
21282
+ const UC = /* @__PURE__ */ El(wC, [["render", WC]]), qC = {
21262
21283
  key: 0,
21263
21284
  class: "flex flex-row justify-end mx-8 mb-2"
21264
- }, AS = {
21285
+ }, ES = {
21265
21286
  __name: "Tiptap",
21266
21287
  props: {
21267
21288
  modelValue: {
@@ -21326,7 +21347,7 @@ const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
21326
21347
  const h = p && !r.readOnly;
21327
21348
  s.value = h, zi(l, h), h ? (c(), o("sidebarOpened")) : o("sidebarClosed");
21328
21349
  } }), (p, h) => (E(), V("div", null, [
21329
- !r.readOnly && !r.hideEditButton ? (E(), V("div", WC, [
21350
+ !r.readOnly && !r.hideEditButton ? (E(), V("div", qC, [
21330
21351
  s.value ? _("", !0) : (E(), X(K(jr), {
21331
21352
  key: 0,
21332
21353
  class: "ml-8 mt-2",
@@ -21344,7 +21365,7 @@ const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
21344
21365
  class: "mx-8 bg-surface-raised text-black-950 dark:text-content rounded-md p-2 box-content transition transition-width ease-in-out duration-300",
21345
21366
  style: un("min-height:" + n.editorHeight + "; max-height:")
21346
21367
  }, null, 8, ["editor", "style"])) : _("", !0),
21347
- K(l) ? (E(), X(bC, {
21368
+ K(l) ? (E(), X(xC, {
21348
21369
  key: 2,
21349
21370
  editor: K(l),
21350
21371
  isOpen: K(l) && s.value,
@@ -21355,24 +21376,24 @@ const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
21355
21376
  onCancel: d,
21356
21377
  onSave: u
21357
21378
  }, null, 8, ["editor", "isOpen", "customClasses", "templateLocked", "documents", "uploadImage"])) : _("", !0),
21358
- K(l) && s.value ? (E(), X(_C, {
21379
+ K(l) && s.value ? (E(), X(UC, {
21359
21380
  key: 3,
21360
21381
  editor: K(l),
21361
21382
  class: "max-w-[450px]"
21362
21383
  }, null, 8, ["editor"])) : _("", !0)
21363
21384
  ]));
21364
21385
  }
21365
- }, UC = { class: "flex flex-col w-full" }, qC = /* @__PURE__ */ x("i", { class: "fa-solid fa-bold text-sm" }, null, -1), KC = [
21366
- qC
21367
- ], JC = /* @__PURE__ */ x("i", { class: "fa-solid fa-italic text-sm" }, null, -1), GC = [
21386
+ }, KC = { class: "flex flex-col w-full" }, JC = /* @__PURE__ */ x("i", { class: "fa-solid fa-bold text-sm" }, null, -1), GC = [
21368
21387
  JC
21369
- ], YC = /* @__PURE__ */ x("i", { class: "fa-solid fa-globe-pointer text-sm" }, null, -1), XC = [
21388
+ ], YC = /* @__PURE__ */ x("i", { class: "fa-solid fa-italic text-sm" }, null, -1), XC = [
21370
21389
  YC
21371
- ], QC = /* @__PURE__ */ x("i", { class: "fa-solid fa-list text-sm" }, null, -1), ZC = [
21390
+ ], QC = /* @__PURE__ */ x("i", { class: "fa-solid fa-globe-pointer text-sm" }, null, -1), ZC = [
21372
21391
  QC
21373
- ], eS = /* @__PURE__ */ x("i", { class: "fa-solid fa-image text-sm" }, null, -1), tS = [
21392
+ ], eS = /* @__PURE__ */ x("i", { class: "fa-solid fa-list text-sm" }, null, -1), tS = [
21374
21393
  eS
21375
- ], MS = {
21394
+ ], nS = /* @__PURE__ */ x("i", { class: "fa-solid fa-image text-sm" }, null, -1), rS = [
21395
+ nS
21396
+ ], OS = {
21376
21397
  __name: "TiptapTextArea",
21377
21398
  props: {
21378
21399
  modelValue: {
@@ -21397,10 +21418,10 @@ const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
21397
21418
  emits: ["update:modelValue"],
21398
21419
  setup(n, { emit: e }) {
21399
21420
  const t = n, r = e, i = U(!1), o = U(!1), s = op(!t.readOnly, t.modelValue);
21400
- s.on("update", ({ editor: y }) => {
21421
+ s.on("update", ({ editor: b }) => {
21401
21422
  l();
21402
- }), Tp(() => t.readOnly, (y) => {
21403
- s.setOptions({ editable: !y });
21423
+ }), Tp(() => t.readOnly, (b) => {
21424
+ s.setOptions({ editable: !b });
21404
21425
  });
21405
21426
  const l = () => {
21406
21427
  console.log("Updating output:", s.getHTML()), r("update:modelValue", s.getHTML());
@@ -21410,18 +21431,18 @@ const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
21410
21431
  s.chain().focus().toggleItalic().run();
21411
21432
  }, d = () => {
21412
21433
  s.chain().focus().toggleBulletList().run();
21413
- }, u = (y) => {
21434
+ }, u = (b) => {
21414
21435
  s.isActive("link") ? s.chain().focus().unsetLink().run() : s.chain().focus().insertContent({
21415
21436
  type: "paragraph",
21416
21437
  content: [
21417
21438
  {
21418
21439
  type: "text",
21419
- text: y.displayText,
21440
+ text: b.displayText,
21420
21441
  marks: [
21421
21442
  {
21422
21443
  type: "link",
21423
21444
  attrs: {
21424
- href: y.url,
21445
+ href: b.url,
21425
21446
  target: "_blank"
21426
21447
  // optional
21427
21448
  }
@@ -21430,25 +21451,25 @@ const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
21430
21451
  }
21431
21452
  ]
21432
21453
  }).run();
21433
- }, f = (y) => {
21454
+ }, f = (b) => {
21434
21455
  s.chain().focus().insertContent([
21435
21456
  {
21436
21457
  type: "documentNode",
21437
- attrs: { sasToken: y.sasToken },
21438
- content: [{ type: "text", text: y.url }]
21458
+ attrs: { sasToken: b.sasToken },
21459
+ content: [{ type: "text", text: b.url }]
21439
21460
  },
21440
21461
  {
21441
21462
  type: "paragraph",
21442
21463
  content: [{ type: "text", text: " " }]
21443
21464
  }
21444
21465
  ]).setTextSelection(s.state.doc.content.size).run();
21445
- }, p = (y) => {
21466
+ }, p = (b) => {
21446
21467
  s.chain().focus().insertContent([
21447
21468
  {
21448
21469
  type: "ResizeableImage",
21449
21470
  attrs: {
21450
- src: y.DownloadLink,
21451
- alt: y.url || "Image"
21471
+ src: b.DownloadLink,
21472
+ alt: b.url || "Image"
21452
21473
  }
21453
21474
  },
21454
21475
  {
@@ -21458,20 +21479,20 @@ const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
21458
21479
  ]).run();
21459
21480
  }, h = () => {
21460
21481
  i.value = !0;
21461
- }, m = async ({ file: y, dataUrl: v }) => {
21482
+ }, m = async ({ file: b, dataUrl: v }) => {
21462
21483
  let w = v;
21463
21484
  if (t.uploadImage)
21464
21485
  try {
21465
- w = await t.uploadImage(y);
21466
- } catch (b) {
21467
- console.error("Image upload failed, embedding inline data instead:", b), w = v;
21486
+ w = await t.uploadImage(b);
21487
+ } catch (y) {
21488
+ console.error("Image upload failed, embedding inline data instead:", y), w = v;
21468
21489
  }
21469
21490
  s.chain().focus().insertContent([
21470
21491
  {
21471
21492
  type: "ResizeableImage",
21472
21493
  attrs: {
21473
21494
  src: w,
21474
- alt: y.name || "Image"
21495
+ alt: b.name || "Image"
21475
21496
  }
21476
21497
  },
21477
21498
  {
@@ -21482,31 +21503,31 @@ const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
21482
21503
  }, g = () => {
21483
21504
  o.value = !0;
21484
21505
  };
21485
- return (y, v) => (E(), V(Cn, null, [
21486
- x("div", UC, [
21506
+ return (b, v) => (E(), V(Cn, null, [
21507
+ x("div", KC, [
21487
21508
  x("div", {
21488
21509
  class: W(["flex flex-row items-center w-full border-t-[1px] border-l border-r border-steel-500 rounded-tl-2xl rounded-tr-2xl bg-steel-100 px-5 gap-x-1", { "opacity-50 pointer-events-none": n.readOnly }])
21489
21510
  }, [
21490
21511
  x("button", {
21491
21512
  class: W(["h-8 w-8 hover:bg-steel-300", K(s).isActive("bold") ? "bg-app-950" : ""]),
21492
21513
  onClick: a
21493
- }, KC, 2),
21514
+ }, GC, 2),
21494
21515
  x("button", {
21495
21516
  class: W(["h-8 w-8 hover:bg-steel-300", K(s).isActive("italic") ? "bg-app-950" : ""]),
21496
21517
  onClick: c
21497
- }, GC, 2),
21518
+ }, XC, 2),
21498
21519
  x("button", {
21499
21520
  class: "h-8 w-8 hover:bg-steel-300",
21500
21521
  onClick: h
21501
- }, XC),
21522
+ }, ZC),
21502
21523
  x("button", {
21503
21524
  class: W(["h-8 w-8 hover:bg-steel-300", K(s).isActive("bulletList") ? "bg-app-950" : ""]),
21504
21525
  onClick: d
21505
- }, ZC, 2),
21526
+ }, tS, 2),
21506
21527
  x("button", {
21507
21528
  class: "h-8 w-8 hover:bg-steel-300",
21508
21529
  onClick: g
21509
- }, tS)
21530
+ }, rS)
21510
21531
  ], 2),
21511
21532
  x("div", {
21512
21533
  class: W(["w-full px-5 py-3 rounded-bl-2xl rounded-br-2xl border-[1px] border-steel-500 dark:border-line overflow-auto resize-y text-black-950 dark:text-content", { "bg-surface-raised": !n.readOnly, "bg-surface-sunken cursor-not-allowed": n.readOnly }])
@@ -21553,7 +21574,7 @@ const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
21553
21574
  ]
21554
21575
  }
21555
21576
  ]
21556
- }), ES = {
21577
+ }), NS = {
21557
21578
  type: "doc",
21558
21579
  content: [
21559
21580
  Ho("Description"),
@@ -21570,7 +21591,7 @@ const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
21570
21591
  ]
21571
21592
  };
21572
21593
  export {
21573
- ES as EDSTemplate,
21574
- AS as Tiptap,
21575
- MS as TiptapTextArea
21594
+ NS as EDSTemplate,
21595
+ ES as Tiptap,
21596
+ OS as TiptapTextArea
21576
21597
  };