@fileverse-dev/ddoc 3.0.30-patch-2 → 3.0.31-patch-1

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.
@@ -1,8 +1,8 @@
1
1
  var rCe = Object.defineProperty;
2
2
  var oCe = (e, t, n) => t in e ? rCe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var ut = (e, t, n) => oCe(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var ct = (e, t, n) => oCe(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as W from "react";
5
- import _e, { createRef as nu, memo as D1, createContext as Gn, createElement as rt, useContext as Et, version as NV, useRef as Qe, useState as Re, useDebugValue as XI, useEffect as He, forwardRef as Pn, useLayoutEffect as es, useCallback as Ve, useMemo as jt, useId as Wg, Children as Rie, isValidElement as Pie, useInsertionEffect as Ow, Fragment as m0, Suspense as iCe, Component as JI, useReducer as aCe, cloneElement as zie, useImperativeHandle as Uie } from "react";
5
+ import _e, { createRef as nu, memo as D1, createContext as Gn, createElement as rt, useContext as Et, version as NV, useRef as Qe, useState as Re, useDebugValue as XI, useEffect as He, forwardRef as Pn, useLayoutEffect as es, useCallback as We, useMemo as jt, useId as Wg, Children as Rie, isValidElement as Pie, useInsertionEffect as Ow, Fragment as m0, Suspense as iCe, Component as JI, useReducer as aCe, cloneElement as zie, useImperativeHandle as Uie } from "react";
6
6
  import * as l6 from "react-dom";
7
7
  import QI, { flushSync as sCe, createPortal as Rw } from "react-dom";
8
8
  var en = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -303,7 +303,7 @@ function uCe() {
303
303
  } finally {
304
304
  ue = !1, K.current = Dt, te(), Error.prepareStackTrace = bt;
305
305
  }
306
- var ht = Q ? Q.displayName || Q.name : "", Yt = ht ? ae(ht) : "";
306
+ var pt = Q ? Q.displayName || Q.name : "", Yt = pt ? ae(pt) : "";
307
307
  return typeof Q == "function" && P.set(Q, Yt), Yt;
308
308
  }
309
309
  function fe(Q, Ee, Pe) {
@@ -487,23 +487,23 @@ function uCe() {
487
487
  return Ae(Q, gt, bn, bt, Ye, Z.current, yt);
488
488
  }
489
489
  }
490
- var $e = y.ReactCurrentOwner, We = y.ReactDebugCurrentFrame;
490
+ var Ve = y.ReactCurrentOwner, $e = y.ReactDebugCurrentFrame;
491
491
  function Ke(Q) {
492
492
  if (Q) {
493
493
  var Ee = Q._owner, Pe = le(Q.type, Q._source, Ee ? Ee.type : null);
494
- We.setExtraStackFrame(Pe);
494
+ $e.setExtraStackFrame(Pe);
495
495
  } else
496
- We.setExtraStackFrame(null);
496
+ $e.setExtraStackFrame(null);
497
497
  }
498
- var pt;
499
- pt = !1;
498
+ var ut;
499
+ ut = !1;
500
500
  function Oe(Q) {
501
501
  return typeof Q == "object" && Q !== null && Q.$$typeof === t;
502
502
  }
503
503
  function ze() {
504
504
  {
505
- if ($e.current) {
506
- var Q = L($e.current.type);
505
+ if (Ve.current) {
506
+ var Q = L(Ve.current.type);
507
507
  if (Q)
508
508
  return `
509
509
 
@@ -528,7 +528,7 @@ Check the top-level render call using <` + Pe + ">.");
528
528
  return Ee;
529
529
  }
530
530
  }
531
- function ft(Q, Ee) {
531
+ function ht(Q, Ee) {
532
532
  {
533
533
  if (!Q._store || Q._store.validated || Q.key != null)
534
534
  return;
@@ -538,7 +538,7 @@ Check the top-level render call using <` + Pe + ">.");
538
538
  return;
539
539
  at[Pe] = !0;
540
540
  var Ye = "";
541
- Q && Q._owner && Q._owner !== $e.current && (Ye = " It was passed a child from " + L(Q._owner.type) + "."), Ke(Q), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Pe, Ye), Ke(null);
541
+ Q && Q._owner && Q._owner !== Ve.current && (Ye = " It was passed a child from " + L(Q._owner.type) + "."), Ke(Q), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Pe, Ye), Ke(null);
542
542
  }
543
543
  }
544
544
  function Mt(Q, Ee) {
@@ -548,7 +548,7 @@ Check the top-level render call using <` + Pe + ">.");
548
548
  if (ge(Q))
549
549
  for (var Pe = 0; Pe < Q.length; Pe++) {
550
550
  var Ye = Q[Pe];
551
- Oe(Ye) && ft(Ye, Ee);
551
+ Oe(Ye) && ht(Ye, Ee);
552
552
  }
553
553
  else if (Oe(Q))
554
554
  Q._store && (Q._store.validated = !0);
@@ -556,7 +556,7 @@ Check the top-level render call using <` + Pe + ">.");
556
556
  var bt = m(Q);
557
557
  if (typeof bt == "function" && bt !== Q.entries)
558
558
  for (var Dt = bt.call(Q), yt; !(yt = Dt.next()).done; )
559
- Oe(yt.value) && ft(yt.value, Ee);
559
+ Oe(yt.value) && ht(yt.value, Ee);
560
560
  }
561
561
  }
562
562
  }
@@ -577,8 +577,8 @@ Check the top-level render call using <` + Pe + ">.");
577
577
  if (Pe) {
578
578
  var Ye = L(Ee);
579
579
  Fe(Pe, Q.props, "prop", Ye, Q);
580
- } else if (Ee.PropTypes !== void 0 && !pt) {
581
- pt = !0;
580
+ } else if (Ee.PropTypes !== void 0 && !ut) {
581
+ ut = !0;
582
582
  var bt = L(Ee);
583
583
  b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", bt || "Unknown");
584
584
  }
@@ -617,8 +617,8 @@ Check the top-level render call using <` + Pe + ">.");
617
617
  if (Ne !== void 0)
618
618
  if (Ye)
619
619
  if (ge(Ne)) {
620
- for (var ht = 0; ht < Ne.length; ht++)
621
- Mt(Ne[ht], Q);
620
+ for (var pt = 0; pt < Ne.length; pt++)
621
+ Mt(Ne[pt], Q);
622
622
  Object.freeze && Object.freeze(Ne);
623
623
  } else
624
624
  b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -1307,7 +1307,7 @@ let Wn = class hj {
1307
1307
  Wn.none = [];
1308
1308
  class U8 extends Error {
1309
1309
  }
1310
- class dt {
1310
+ class ft {
1311
1311
  /**
1312
1312
  Create a slice. When specifying a non-zero open depth, you must
1313
1313
  make sure that there are nodes of at least that depth at the
@@ -1334,13 +1334,13 @@ class dt {
1334
1334
  */
1335
1335
  insertAt(t, n) {
1336
1336
  let r = $ie(this.content, t + this.openStart, n);
1337
- return r && new dt(r, this.openStart, this.openEnd);
1337
+ return r && new ft(r, this.openStart, this.openEnd);
1338
1338
  }
1339
1339
  /**
1340
1340
  @internal
1341
1341
  */
1342
1342
  removeBetween(t, n) {
1343
- return new dt(Wie(this.content, t + this.openStart, n + this.openStart), this.openStart, this.openEnd);
1343
+ return new ft(Wie(this.content, t + this.openStart, n + this.openStart), this.openStart, this.openEnd);
1344
1344
  }
1345
1345
  /**
1346
1346
  Tests whether this slice is equal to another slice.
@@ -1368,11 +1368,11 @@ class dt {
1368
1368
  */
1369
1369
  static fromJSON(t, n) {
1370
1370
  if (!n)
1371
- return dt.empty;
1371
+ return ft.empty;
1372
1372
  let r = n.openStart || 0, o = n.openEnd || 0;
1373
1373
  if (typeof r != "number" || typeof o != "number")
1374
1374
  throw new RangeError("Invalid input for Slice.fromJSON");
1375
- return new dt(Ze.fromJSON(t, n.content), r, o);
1375
+ return new ft(Ze.fromJSON(t, n.content), r, o);
1376
1376
  }
1377
1377
  /**
1378
1378
  Create a slice from a fragment by taking the maximum possible
@@ -1384,10 +1384,10 @@ class dt {
1384
1384
  r++;
1385
1385
  for (let i = t.lastChild; i && !i.isLeaf && (n || !i.type.spec.isolating); i = i.lastChild)
1386
1386
  o++;
1387
- return new dt(t, r, o);
1387
+ return new ft(t, r, o);
1388
1388
  }
1389
1389
  }
1390
- dt.empty = new dt(Ze.empty, 0, 0);
1390
+ ft.empty = new ft(Ze.empty, 0, 0);
1391
1391
  function Wie(e, t, n) {
1392
1392
  let { index: r, offset: o } = e.findIndex(t), i = e.maybeChild(r), { index: a, offset: s } = e.findIndex(n);
1393
1393
  if (o == t || i.isText) {
@@ -1913,9 +1913,9 @@ let Sd = class gj {
1913
1913
  */
1914
1914
  slice(t, n = this.content.size, r = !1) {
1915
1915
  if (t == n)
1916
- return dt.empty;
1916
+ return ft.empty;
1917
1917
  let o = this.resolve(t), i = this.resolve(n), a = r ? 0 : o.sharedDepth(n), s = o.start(a), u = o.node(a).content.cut(o.pos - s, i.pos - s);
1918
- return new dt(u, o.depth - a, i.depth - a);
1918
+ return new ft(u, o.depth - a, i.depth - a);
1919
1919
  }
1920
1920
  /**
1921
1921
  Replace the part of the document between the given positions with
@@ -2942,7 +2942,7 @@ let _f = class yj {
2942
2942
  */
2943
2943
  parseSlice(t, n = {}) {
2944
2944
  let r = new VV(this, n, !0);
2945
- return r.addAll(t, Wn.none, n.from, n.to), dt.maxOpen(r.finish());
2945
+ return r.addAll(t, Wn.none, n.from, n.to), ft.maxOpen(r.finish());
2946
2946
  }
2947
2947
  /**
2948
2948
  @internal
@@ -3929,7 +3929,7 @@ class xd extends hi {
3929
3929
  super(), this.from = t, this.to = n, this.mark = r;
3930
3930
  }
3931
3931
  apply(t) {
3932
- let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new dt(tB(n.content, (a, s) => !a.isAtom || !s.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), o), n.openStart, n.openEnd);
3932
+ let n = t.slice(this.from, this.to), r = t.resolve(this.from), o = r.node(r.sharedDepth(this.to)), i = new ft(tB(n.content, (a, s) => !a.isAtom || !s.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), o), n.openStart, n.openEnd);
3933
3933
  return ro.fromReplace(t, this.from, this.to, i);
3934
3934
  }
3935
3935
  invert() {
@@ -3968,7 +3968,7 @@ class cl extends hi {
3968
3968
  super(), this.from = t, this.to = n, this.mark = r;
3969
3969
  }
3970
3970
  apply(t) {
3971
- let n = t.slice(this.from, this.to), r = new dt(tB(n.content, (o) => o.mark(this.mark.removeFromSet(o.marks)), t), n.openStart, n.openEnd);
3971
+ let n = t.slice(this.from, this.to), r = new ft(tB(n.content, (o) => o.mark(this.mark.removeFromSet(o.marks)), t), n.openStart, n.openEnd);
3972
3972
  return ro.fromReplace(t, this.from, this.to, r);
3973
3973
  }
3974
3974
  invert() {
@@ -4011,7 +4011,7 @@ class wd extends hi {
4011
4011
  if (!n)
4012
4012
  return ro.fail("No node at mark step's position");
4013
4013
  let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
4014
- return ro.fromReplace(t, this.pos, this.pos + 1, new dt(Ze.from(r), 0, n.isLeaf ? 0 : 1));
4014
+ return ro.fromReplace(t, this.pos, this.pos + 1, new ft(Ze.from(r), 0, n.isLeaf ? 0 : 1));
4015
4015
  }
4016
4016
  invert(t) {
4017
4017
  let n = t.nodeAt(this.pos);
@@ -4055,7 +4055,7 @@ class Jf extends hi {
4055
4055
  if (!n)
4056
4056
  return ro.fail("No node at mark step's position");
4057
4057
  let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
4058
- return ro.fromReplace(t, this.pos, this.pos + 1, new dt(Ze.from(r), 0, n.isLeaf ? 0 : 1));
4058
+ return ro.fromReplace(t, this.pos, this.pos + 1, new ft(Ze.from(r), 0, n.isLeaf ? 0 : 1));
4059
4059
  }
4060
4060
  invert(t) {
4061
4061
  let n = t.nodeAt(this.pos);
@@ -4108,10 +4108,10 @@ class ko extends hi {
4108
4108
  if (!(t instanceof ko) || t.structure || this.structure)
4109
4109
  return null;
4110
4110
  if (this.from + this.slice.size == t.from && !this.slice.openEnd && !t.slice.openStart) {
4111
- let n = this.slice.size + t.slice.size == 0 ? dt.empty : new dt(this.slice.content.append(t.slice.content), this.slice.openStart, t.slice.openEnd);
4111
+ let n = this.slice.size + t.slice.size == 0 ? ft.empty : new ft(this.slice.content.append(t.slice.content), this.slice.openStart, t.slice.openEnd);
4112
4112
  return new ko(this.from, this.to + (t.to - t.from), n, this.structure);
4113
4113
  } else if (t.to == this.from && !this.slice.openStart && !t.slice.openEnd) {
4114
- let n = this.slice.size + t.slice.size == 0 ? dt.empty : new dt(t.slice.content.append(this.slice.content), t.slice.openStart, this.slice.openEnd);
4114
+ let n = this.slice.size + t.slice.size == 0 ? ft.empty : new ft(t.slice.content.append(this.slice.content), t.slice.openStart, this.slice.openEnd);
4115
4115
  return new ko(t.from, this.to, n, this.structure);
4116
4116
  } else
4117
4117
  return null;
@@ -4126,7 +4126,7 @@ class ko extends hi {
4126
4126
  static fromJSON(t, n) {
4127
4127
  if (typeof n.from != "number" || typeof n.to != "number")
4128
4128
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
4129
- return new ko(n.from, n.to, dt.fromJSON(t, n.slice), !!n.structure);
4129
+ return new ko(n.from, n.to, ft.fromJSON(t, n.slice), !!n.structure);
4130
4130
  }
4131
4131
  }
4132
4132
  hi.jsonID("replace", ko);
@@ -4184,7 +4184,7 @@ class Co extends hi {
4184
4184
  static fromJSON(t, n) {
4185
4185
  if (typeof n.from != "number" || typeof n.to != "number" || typeof n.gapFrom != "number" || typeof n.gapTo != "number" || typeof n.insert != "number")
4186
4186
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
4187
- return new Co(n.from, n.to, n.gapFrom, n.gapTo, dt.fromJSON(t, n.slice), n.insert, !!n.structure);
4187
+ return new Co(n.from, n.to, n.gapFrom, n.gapTo, ft.fromJSON(t, n.slice), n.insert, !!n.structure);
4188
4188
  }
4189
4189
  }
4190
4190
  hi.jsonID("replaceAround", Co);
@@ -4246,7 +4246,7 @@ function nB(e, t, n, r = n.contentMatch, o = !0) {
4246
4246
  for (let l = 0; l < i.childCount; l++) {
4247
4247
  let u = i.child(l), c = s + u.nodeSize, d = r.matchType(u.type);
4248
4248
  if (!d)
4249
- a.push(new ko(s, c, dt.empty));
4249
+ a.push(new ko(s, c, ft.empty));
4250
4250
  else {
4251
4251
  r = d;
4252
4252
  for (let f = 0; f < u.marks.length; f++)
@@ -4254,14 +4254,14 @@ function nB(e, t, n, r = n.contentMatch, o = !0) {
4254
4254
  if (o && u.isText && n.whitespace != "pre") {
4255
4255
  let f, h = /\r?\n|\r/g, p;
4256
4256
  for (; f = h.exec(u.text); )
4257
- p || (p = new dt(Ze.from(n.schema.text(" ", n.allowedMarks(u.marks))), 0, 0)), a.push(new ko(s + f.index, s + f.index + f[0].length, p));
4257
+ p || (p = new ft(Ze.from(n.schema.text(" ", n.allowedMarks(u.marks))), 0, 0)), a.push(new ko(s + f.index, s + f.index + f[0].length, p));
4258
4258
  }
4259
4259
  }
4260
4260
  s = c;
4261
4261
  }
4262
4262
  if (!r.validEnd) {
4263
4263
  let l = r.fillBefore(Ze.empty, !0);
4264
- e.replace(s, s, new dt(l, 0, 0));
4264
+ e.replace(s, s, new ft(l, 0, 0));
4265
4265
  }
4266
4266
  for (let l = a.length - 1; l >= 0; l--)
4267
4267
  e.step(a[l]);
@@ -4288,7 +4288,7 @@ function UCe(e, t, n) {
4288
4288
  let f = Ze.empty, h = 0;
4289
4289
  for (let p = i, g = !1; p > n; p--)
4290
4290
  g || o.after(p + 1) < o.end(p) ? (g = !0, f = Ze.from(o.node(p).copy(f)), h++) : u++;
4291
- e.step(new Co(l, u, a, s, new dt(c.append(f), d, h), c.size - d, !0));
4291
+ e.step(new Co(l, u, a, s, new ft(c.append(f), d, h), c.size - d, !0));
4292
4292
  }
4293
4293
  function rB(e, t, n = null, r = e) {
4294
4294
  let o = HCe(e, t), i = o && qCe(r, t);
@@ -4324,7 +4324,7 @@ function VCe(e, t, n) {
4324
4324
  r = Ze.from(n[a].type.create(n[a].attrs, r));
4325
4325
  }
4326
4326
  let o = t.start, i = t.end;
4327
- e.step(new Co(o, i, o, i, new dt(r, 0, 0), n.length, !0));
4327
+ e.step(new Co(o, i, o, i, new ft(r, 0, 0), n.length, !0));
4328
4328
  }
4329
4329
  function WCe(e, t, n, r, o) {
4330
4330
  if (!r.isTextblock)
@@ -4340,7 +4340,7 @@ function WCe(e, t, n, r, o) {
4340
4340
  }
4341
4341
  u === !1 && fae(e, a, s, i), nB(e, e.mapping.slice(i).map(s, 1), r, void 0, u === null);
4342
4342
  let c = e.mapping.slice(i), d = c.map(s, 1), f = c.map(s + a.nodeSize, 1);
4343
- return e.step(new Co(d, f, d + 1, f - 1, new dt(Ze.from(r.create(l, null, a.marks)), 0, 0), 1, !0)), u === !0 && dae(e, a, s, i), !1;
4343
+ return e.step(new Co(d, f, d + 1, f - 1, new ft(Ze.from(r.create(l, null, a.marks)), 0, 0), 1, !0)), u === !0 && dae(e, a, s, i), !1;
4344
4344
  }
4345
4345
  });
4346
4346
  }
@@ -4378,7 +4378,7 @@ function GCe(e, t, n, r, o) {
4378
4378
  return e.replaceWith(t, t + i.nodeSize, a);
4379
4379
  if (!n.validContent(i.content))
4380
4380
  throw new RangeError("Invalid content for node type " + n.name);
4381
- e.step(new Co(t, t + i.nodeSize, t + 1, t + i.nodeSize - 1, new dt(Ze.from(a), 0, 0), 1, !0));
4381
+ e.step(new Co(t, t + i.nodeSize, t + 1, t + i.nodeSize - 1, new ft(Ze.from(a), 0, 0), 1, !0));
4382
4382
  }
4383
4383
  function Vc(e, t, n = 1, r) {
4384
4384
  let o = e.resolve(t), i = o.depth - n, a = r && r[r.length - 1] || o.parent;
@@ -4404,7 +4404,7 @@ function ZCe(e, t, n = 1, r) {
4404
4404
  let c = r && r[u];
4405
4405
  a = Ze.from(c ? c.type.create(c.attrs, a) : o.node(s).copy(a));
4406
4406
  }
4407
- e.step(new ko(t, t, new dt(i.append(a), n, n), !0));
4407
+ e.step(new ko(t, t, new ft(i.append(a), n, n), !0));
4408
4408
  }
4409
4409
  function b0(e, t) {
4410
4410
  let n = e.resolve(t), r = n.index();
@@ -4447,7 +4447,7 @@ function YCe(e, t, n) {
4447
4447
  }
4448
4448
  a.inlineContent && nB(e, t + n - 1, a, i.node().contentMatchAt(i.index()), r == null);
4449
4449
  let l = e.mapping.slice(s), u = l.map(t - n);
4450
- if (e.step(new ko(u, l.map(t + n, -1), dt.empty, !0)), r === !0) {
4450
+ if (e.step(new ko(u, l.map(t + n, -1), ft.empty, !0)), r === !0) {
4451
4451
  let c = e.doc.resolve(u);
4452
4452
  dae(e, c.node(), c.before(), e.steps.length);
4453
4453
  }
@@ -4496,7 +4496,7 @@ function pae(e, t, n) {
4496
4496
  }
4497
4497
  return null;
4498
4498
  }
4499
- function Uw(e, t, n = t, r = dt.empty) {
4499
+ function Uw(e, t, n = t, r = ft.empty) {
4500
4500
  if (t == n && !r.size)
4501
4501
  return null;
4502
4502
  let o = e.resolve(t), i = e.resolve(n);
@@ -4532,7 +4532,7 @@ class JCe {
4532
4532
  let i = this.placed, a = r.depth, s = o.depth;
4533
4533
  for (; a && s && i.childCount == 1; )
4534
4534
  i = i.firstChild.content, a--, s--;
4535
- let l = new dt(i, a, s);
4535
+ let l = new ft(i, a, s);
4536
4536
  return t > -1 ? new Co(r.pos, t, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new ko(r.pos, o.pos, l) : null;
4537
4537
  }
4538
4538
  // Find a position on the start spine of `this.unplaced` that has
@@ -4566,15 +4566,15 @@ class JCe {
4566
4566
  }
4567
4567
  openMore() {
4568
4568
  let { content: t, openStart: n, openEnd: r } = this.unplaced, o = VD(t, n);
4569
- return !o.childCount || o.firstChild.isLeaf ? !1 : (this.unplaced = new dt(t, n + 1, Math.max(r, o.size + n >= t.size - r ? n + 1 : 0)), !0);
4569
+ return !o.childCount || o.firstChild.isLeaf ? !1 : (this.unplaced = new ft(t, n + 1, Math.max(r, o.size + n >= t.size - r ? n + 1 : 0)), !0);
4570
4570
  }
4571
4571
  dropNode() {
4572
4572
  let { content: t, openStart: n, openEnd: r } = this.unplaced, o = VD(t, n);
4573
4573
  if (o.childCount <= 1 && n > 0) {
4574
4574
  let i = t.size - n <= n + o.size;
4575
- this.unplaced = new dt(R3(t, n - 1, 1), n - 1, i ? n - 1 : r);
4575
+ this.unplaced = new ft(R3(t, n - 1, 1), n - 1, i ? n - 1 : r);
4576
4576
  } else
4577
- this.unplaced = new dt(R3(t, n, 1), n, r);
4577
+ this.unplaced = new ft(R3(t, n, 1), n, r);
4578
4578
  }
4579
4579
  // Move content from the unplaced slice at `sliceDepth` to the
4580
4580
  // frontier node at `frontierDepth`. Close that frontier node when
@@ -4604,7 +4604,7 @@ class JCe {
4604
4604
  let y = m.lastChild;
4605
4605
  this.frontier.push({ type: y.type, match: y.contentMatchAt(y.childCount) }), m = y.content;
4606
4606
  }
4607
- this.unplaced = p ? t == 0 ? dt.empty : new dt(R3(a.content, t - 1, 1), t - 1, h < 0 ? a.openEnd : t - 1) : new dt(R3(a.content, t, u), a.openStart, a.openEnd);
4607
+ this.unplaced = p ? t == 0 ? ft.empty : new ft(R3(a.content, t - 1, 1), t - 1, h < 0 ? a.openEnd : t - 1) : new ft(R3(a.content, t, u), a.openStart, a.openEnd);
4608
4608
  }
4609
4609
  mustMoveInline() {
4610
4610
  if (!this.$to.parent.isTextblock)
@@ -4723,7 +4723,7 @@ function tDe(e, t, n, r) {
4723
4723
  m < 0 && (y = !1, m = -m);
4724
4724
  let b = o.node(m - 1), v = o.index(m - 1);
4725
4725
  if (b.canReplaceWith(v, v, p.type, p.marks))
4726
- return e.replace(o.before(m), y ? i.after(m) : n, new dt(yae(r.content, 0, r.openStart, h), h, r.openEnd));
4726
+ return e.replace(o.before(m), y ? i.after(m) : n, new ft(yae(r.content, 0, r.openStart, h), h, r.openEnd));
4727
4727
  }
4728
4728
  }
4729
4729
  let d = e.steps.length;
@@ -4748,7 +4748,7 @@ function nDe(e, t, n, r) {
4748
4748
  let o = XCe(e.doc, t, r.type);
4749
4749
  o != null && (t = n = o);
4750
4750
  }
4751
- e.replaceRange(t, n, new dt(Ze.from(r), 0, 0));
4751
+ e.replaceRange(t, n, new ft(Ze.from(r), 0, 0));
4752
4752
  }
4753
4753
  function rDe(e, t, n) {
4754
4754
  let r = e.doc.resolve(t), o = e.doc.resolve(n), i = bae(r, o);
@@ -4790,7 +4790,7 @@ class y2 extends hi {
4790
4790
  r[i] = n.attrs[i];
4791
4791
  r[this.attr] = this.value;
4792
4792
  let o = n.type.create(r, null, n.marks);
4793
- return ro.fromReplace(t, this.pos, this.pos + 1, new dt(Ze.from(o), 0, n.isLeaf ? 0 : 1));
4793
+ return ro.fromReplace(t, this.pos, this.pos + 1, new ft(Ze.from(o), 0, n.isLeaf ? 0 : 1));
4794
4794
  }
4795
4795
  getMap() {
4796
4796
  return Ia.empty;
@@ -4903,7 +4903,7 @@ class oB {
4903
4903
  Replace the part of the document between `from` and `to` with the
4904
4904
  given `slice`.
4905
4905
  */
4906
- replace(t, n = t, r = dt.empty) {
4906
+ replace(t, n = t, r = ft.empty) {
4907
4907
  let o = Uw(this.doc, t, n, r);
4908
4908
  return o && this.step(o), this;
4909
4909
  }
@@ -4912,13 +4912,13 @@ class oB {
4912
4912
  fragment, node, or array of nodes.
4913
4913
  */
4914
4914
  replaceWith(t, n, r) {
4915
- return this.replace(t, n, new dt(Ze.from(r), 0, 0));
4915
+ return this.replace(t, n, new ft(Ze.from(r), 0, 0));
4916
4916
  }
4917
4917
  /**
4918
4918
  Delete the content between the given positions.
4919
4919
  */
4920
4920
  delete(t, n) {
4921
- return this.replace(t, n, dt.empty);
4921
+ return this.replace(t, n, ft.empty);
4922
4922
  }
4923
4923
  /**
4924
4924
  Insert the given content at the given position.
@@ -5146,14 +5146,14 @@ class Vt {
5146
5146
  Replace the selection with a slice or, if no slice is given,
5147
5147
  delete the selection. Will append to the given transaction.
5148
5148
  */
5149
- replace(t, n = dt.empty) {
5149
+ replace(t, n = ft.empty) {
5150
5150
  let r = n.content.lastChild, o = null;
5151
5151
  for (let s = 0; s < n.openEnd; s++)
5152
5152
  o = r, r = r.lastChild;
5153
5153
  let i = t.steps.length, a = this.ranges;
5154
5154
  for (let s = 0; s < a.length; s++) {
5155
5155
  let { $from: l, $to: u } = a[s], c = t.mapping.slice(i);
5156
- t.replaceRange(c.map(l.pos), c.map(u.pos), s ? dt.empty : n), s == 0 && QV(t, i, (r ? r.isInline : o && o.isTextblock) ? -1 : 1);
5156
+ t.replaceRange(c.map(l.pos), c.map(u.pos), s ? ft.empty : n), s == 0 && QV(t, i, (r ? r.isInline : o && o.isTextblock) ? -1 : 1);
5157
5157
  }
5158
5158
  }
5159
5159
  /**
@@ -5279,8 +5279,8 @@ class kt extends Vt {
5279
5279
  let o = t.resolve(n.map(this.anchor));
5280
5280
  return new kt(o.parent.inlineContent ? o : r, r);
5281
5281
  }
5282
- replace(t, n = dt.empty) {
5283
- if (super.replace(t, n), n == dt.empty) {
5282
+ replace(t, n = ft.empty) {
5283
+ if (super.replace(t, n), n == ft.empty) {
5284
5284
  let r = this.$from.marksAcross(this.$to);
5285
5285
  r && t.ensureMarks(r);
5286
5286
  }
@@ -5355,7 +5355,7 @@ class Ct extends Vt {
5355
5355
  return r ? Vt.near(i) : new Ct(i);
5356
5356
  }
5357
5357
  content() {
5358
- return new dt(Ze.from(this.node), 0, 0);
5358
+ return new ft(Ze.from(this.node), 0, 0);
5359
5359
  }
5360
5360
  eq(t) {
5361
5361
  return t instanceof Ct && t.anchor == this.anchor;
@@ -5410,8 +5410,8 @@ class ra extends Vt {
5410
5410
  constructor(t) {
5411
5411
  super(t.resolve(0), t.resolve(t.content.size));
5412
5412
  }
5413
- replace(t, n = dt.empty) {
5414
- if (n == dt.empty) {
5413
+ replace(t, n = ft.empty) {
5414
+ if (n == ft.empty) {
5415
5415
  t.delete(0, t.doc.content.size);
5416
5416
  let r = Vt.atStart(t.doc);
5417
5417
  r.eq(t.selection) || t.setSelection(r);
@@ -5908,7 +5908,7 @@ const kae = (e, t, n) => {
5908
5908
  return !0;
5909
5909
  if (r.parent.content.size == 0 && (q2(i, "end") || Ct.isSelectable(i)))
5910
5910
  for (let a = r.depth; ; a--) {
5911
- let s = Uw(e.doc, r.before(a), r.after(a), dt.empty);
5911
+ let s = Uw(e.doc, r.before(a), r.after(a), ft.empty);
5912
5912
  if (s && s.slice.size < s.to - s.from) {
5913
5913
  if (t) {
5914
5914
  let l = e.tr.step(s);
@@ -5952,7 +5952,7 @@ function Fae(e, t, n) {
5952
5952
  return !1;
5953
5953
  s = c;
5954
5954
  }
5955
- let u = Uw(e.doc, i, l, dt.empty);
5955
+ let u = Uw(e.doc, i, l, ft.empty);
5956
5956
  if (!u || u.from != i || u instanceof ko && u.slice.size >= l - i)
5957
5957
  return !1;
5958
5958
  if (n) {
@@ -6007,7 +6007,7 @@ const Mae = (e, t, n) => {
6007
6007
  if (jae(e, o, t, 1))
6008
6008
  return !0;
6009
6009
  if (r.parent.content.size == 0 && (q2(i, "start") || Ct.isSelectable(i))) {
6010
- let a = Uw(e.doc, r.before(), r.after(), dt.empty);
6010
+ let a = Uw(e.doc, r.before(), r.after(), ft.empty);
6011
6011
  if (a && a.slice.size < a.to - a.from) {
6012
6012
  if (t) {
6013
6013
  let s = e.tr.step(a);
@@ -6162,7 +6162,7 @@ function jae(e, t, n, r) {
6162
6162
  for (let y = a.length - 1; y >= 0; y--)
6163
6163
  p = Ze.from(a[y].create(null, p));
6164
6164
  p = Ze.from(o.copy(p));
6165
- let g = e.tr.step(new Co(t.pos - 1, h, t.pos, h, new dt(p, 1, 0), a.length, !0)), m = g.doc.resolve(h + 2 * a.length);
6165
+ let g = e.tr.step(new Co(t.pos - 1, h, t.pos, h, new ft(p, 1, 0), a.length, !0)), m = g.doc.resolve(h + 2 * a.length);
6166
6166
  m.nodeAfter && m.nodeAfter.type == o.type && b0(g.doc, m.pos) && g.join(m.pos), n(g.scrollIntoView());
6167
6167
  }
6168
6168
  return !0;
@@ -6182,7 +6182,7 @@ function jae(e, t, n, r) {
6182
6182
  let y = Ze.empty;
6183
6183
  for (let v = p.length - 1; v >= 0; v--)
6184
6184
  y = Ze.from(p[v].copy(y));
6185
- let b = e.tr.step(new Co(t.pos - p.length, t.pos + i.nodeSize, t.pos + m, t.pos + i.nodeSize - m, new dt(y, p.length, 0), 0, !0));
6185
+ let b = e.tr.step(new Co(t.pos - p.length, t.pos + i.nodeSize, t.pos + m, t.pos + i.nodeSize - m, new ft(y, p.length, 0), 0, !0));
6186
6186
  n(b.scrollIntoView());
6187
6187
  }
6188
6188
  return !0;
@@ -6274,7 +6274,7 @@ function kDe(e, t, n, r, o) {
6274
6274
  let i = Ze.empty;
6275
6275
  for (let c = n.length - 1; c >= 0; c--)
6276
6276
  i = Ze.from(n[c].type.create(n[c].attrs, i));
6277
- e.step(new Co(t.start - (r ? 2 : 0), t.end, t.start, t.end, new dt(i, 0, 0), n.length, !0));
6277
+ e.step(new Co(t.start - (r ? 2 : 0), t.end, t.start, t.end, new ft(i, 0, 0), n.length, !0));
6278
6278
  let a = 0;
6279
6279
  for (let c = 0; c < n.length; c++)
6280
6280
  n[c].type == o && (a = c + 1);
@@ -6291,7 +6291,7 @@ function FDe(e) {
6291
6291
  }
6292
6292
  function CDe(e, t, n, r) {
6293
6293
  let o = e.tr, i = r.end, a = r.$to.end(r.depth);
6294
- i < a && (o.step(new Co(i - 1, a, i, a, new dt(Ze.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new q8(o.doc.resolve(r.$from.pos), o.doc.resolve(a), r.depth));
6294
+ i < a && (o.step(new Co(i - 1, a, i, a, new ft(Ze.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new q8(o.doc.resolve(r.$from.pos), o.doc.resolve(a), r.depth));
6295
6295
  const s = $g(r);
6296
6296
  if (s == null)
6297
6297
  return !1;
@@ -6310,7 +6310,7 @@ function DDe(e, t, n) {
6310
6310
  if (!u.canReplace(c + (s ? 0 : 1), c + 1, a.content.append(l ? Ze.empty : Ze.from(o))))
6311
6311
  return !1;
6312
6312
  let d = i.pos, f = d + a.nodeSize;
6313
- return r.step(new Co(d - (s ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new dt((s ? Ze.empty : Ze.from(o.copy(Ze.empty))).append(l ? Ze.empty : Ze.from(o.copy(Ze.empty))), s ? 0 : 1, l ? 0 : 1), s ? 0 : 1)), t(r.scrollIntoView()), !0;
6313
+ return r.step(new Co(d - (s ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new ft((s ? Ze.empty : Ze.from(o.copy(Ze.empty))).append(l ? Ze.empty : Ze.from(o.copy(Ze.empty))), s ? 0 : 1, l ? 0 : 1), s ? 0 : 1)), t(r.scrollIntoView()), !0;
6314
6314
  }
6315
6315
  function MDe(e) {
6316
6316
  return function(t, n) {
@@ -6324,7 +6324,7 @@ function MDe(e) {
6324
6324
  if (l.type != e)
6325
6325
  return !1;
6326
6326
  if (n) {
6327
- let u = l.lastChild && l.lastChild.type == s.type, c = Ze.from(u ? e.create() : null), d = new dt(Ze.from(e.create(null, Ze.from(s.type.create(null, c)))), u ? 3 : 1, 0), f = i.start, h = i.end;
6327
+ let u = l.lastChild && l.lastChild.type == s.type, c = Ze.from(u ? e.create() : null), d = new ft(Ze.from(e.create(null, Ze.from(s.type.create(null, c)))), u ? 3 : 1, 0), f = i.start, h = i.end;
6328
6328
  n(t.tr.step(new Co(f - (u ? 3 : 1), h, f, h, d, 1, !0)).scrollIntoView());
6329
6329
  }
6330
6330
  return !0;
@@ -8213,7 +8213,7 @@ function Yae(e, t, n, r, o) {
8213
8213
  if (e.someProp("transformPastedText", (f) => {
8214
8214
  t = f(t, i || r, e);
8215
8215
  }), i)
8216
- return s = new dt(Ze.from(e.state.schema.text(t.replace(/\r\n?/g, `
8216
+ return s = new ft(Ze.from(e.state.schema.text(t.replace(/\r\n?/g, `
8217
8217
  `))), 0, 0), e.someProp("transformPasted", (f) => {
8218
8218
  s = f(s, e, !0);
8219
8219
  }), s;
@@ -8249,7 +8249,7 @@ function Yae(e, t, n, r, o) {
8249
8249
  }
8250
8250
  })), c)
8251
8251
  s = wMe(CW(s, +c[1], +c[2]), c[4]);
8252
- else if (s = dt.maxOpen(yMe(s.content, o), !0), s.openStart || s.openEnd) {
8252
+ else if (s = ft.maxOpen(yMe(s.content, o), !0), s.openStart || s.openEnd) {
8253
8253
  let d = 0, f = 0;
8254
8254
  for (let h = s.content.firstChild; d < s.openStart && !h.type.spec.isolating; d++, h = h.firstChild)
8255
8255
  ;
@@ -8310,7 +8310,7 @@ function Sj(e, t, n, r, o, i) {
8310
8310
  return e.childCount > 1 && (i = 0), o < r - 1 && (s = Sj(s, t, n, r, o + 1, i)), o >= n && (s = t < 0 ? a.contentMatchAt(0).fillBefore(s, i <= o).append(s) : s.append(a.contentMatchAt(a.childCount).fillBefore(Ze.empty, !0))), e.replaceChild(t < 0 ? 0 : e.childCount - 1, a.copy(s));
8311
8311
  }
8312
8312
  function CW(e, t, n) {
8313
- return t < e.openStart && (e = new dt(Sj(e.content, -1, t, e.openStart, 0, e.openEnd), t, e.openEnd)), n < e.openEnd && (e = new dt(Sj(e.content, 1, n, e.openEnd, 0, 0), e.openStart, n)), e;
8313
+ return t < e.openStart && (e = new ft(Sj(e.content, -1, t, e.openStart, 0, e.openEnd), t, e.openEnd)), n < e.openEnd && (e = new ft(Sj(e.content, 1, n, e.openEnd, 0, 0), e.openStart, n)), e;
8314
8314
  }
8315
8315
  const ese = {
8316
8316
  thead: ["table"],
@@ -8364,7 +8364,7 @@ function wMe(e, t) {
8364
8364
  break;
8365
8365
  o = Ze.from(l.create(r[s + 1], o)), i++, a++;
8366
8366
  }
8367
- return new dt(o, i, a);
8367
+ return new ft(o, i, a);
8368
8368
  }
8369
8369
  const Ni = {}, _i = {}, kMe = { touchstart: !0, touchmove: !0 };
8370
8370
  class FMe {
@@ -8680,7 +8680,7 @@ function UMe(e, t) {
8680
8680
  }
8681
8681
  function n4(e, t, n, r, o) {
8682
8682
  let i = Yae(e, t, n, r, e.state.selection.$from);
8683
- if (e.someProp("handlePaste", (l) => l(e, o, i || dt.empty)))
8683
+ if (e.someProp("handlePaste", (l) => l(e, o, i || ft.empty)))
8684
8684
  return !0;
8685
8685
  if (!i)
8686
8686
  return !1;
@@ -8746,7 +8746,7 @@ _i.drop = (e, t) => {
8746
8746
  a = p(a, e, !1);
8747
8747
  }) : a = Yae(e, ase(n.dataTransfer), t4 ? null : n.dataTransfer.getData("text/html"), !1, i);
8748
8748
  let s = !!(r && lse(e, n));
8749
- if (e.someProp("handleDrop", (p) => p(e, n, a || dt.empty, s))) {
8749
+ if (e.someProp("handleDrop", (p) => p(e, n, a || ft.empty, s))) {
8750
8750
  n.preventDefault();
8751
8751
  return;
8752
8752
  }
@@ -11510,7 +11510,7 @@ var AAe = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edito
11510
11510
  }, k = ((a = s.contentMatch.defaultType) == null ? void 0 : a.createAndFill(x)) || void 0;
11511
11511
  y = y.append(Ze.from(s.createAndFill(null, k) || void 0));
11512
11512
  const F = l.before(l.depth - (b - 1));
11513
- n.replace(F, l.after(-v), new dt(y, 4 - b, 0));
11513
+ n.replace(F, l.after(-v), new ft(y, 4 - b, 0));
11514
11514
  let C = -1;
11515
11515
  n.doc.nodesBetween(F, n.doc.content.size, (D, T) => {
11516
11516
  if (C > -1)
@@ -16126,16 +16126,16 @@ var rr = class Mc extends Vt {
16126
16126
  a.push(t.child(l).copy(Ze.from(u)));
16127
16127
  }
16128
16128
  const s = this.isColSelection() && this.isRowSelection() ? t : a;
16129
- return new dt(Ze.from(s), 1, 1);
16129
+ return new ft(Ze.from(s), 1, 1);
16130
16130
  }
16131
- replace(t, n = dt.empty) {
16131
+ replace(t, n = ft.empty) {
16132
16132
  const r = t.steps.length, o = this.ranges;
16133
16133
  for (let a = 0; a < o.length; a++) {
16134
16134
  const { $from: s, $to: l } = o[a], u = t.mapping.slice(r);
16135
16135
  t.replace(
16136
16136
  u.map(s.pos),
16137
16137
  u.map(l.pos),
16138
- a ? dt.empty : n
16138
+ a ? ft.empty : n
16139
16139
  );
16140
16140
  }
16141
16141
  const i = Vt.findFrom(
@@ -16145,7 +16145,7 @@ var rr = class Mc extends Vt {
16145
16145
  i && t.setSelection(i);
16146
16146
  }
16147
16147
  replaceWith(t, n) {
16148
- this.replace(t, new dt(Ze.from(n), 0, 0));
16148
+ this.replace(t, new ft(Ze.from(n), 0, 0));
16149
16149
  }
16150
16150
  forEachCell(t) {
16151
16151
  const n = this.$anchorCell.node(-1), r = Ur.get(n), o = this.$anchorCell.start(-1), i = r.cellsInRect(
@@ -16789,7 +16789,7 @@ function ev(e, t) {
16789
16789
  i.content.eq(o) || r.replace(
16790
16790
  r.mapping.map(a + 1),
16791
16791
  r.mapping.map(a + i.nodeSize - 1),
16792
- new dt(o, 0, 0)
16792
+ new ft(o, 0, 0)
16793
16793
  );
16794
16794
  }), r.docChanged && t(r);
16795
16795
  }
@@ -16807,14 +16807,14 @@ function KTe(e) {
16807
16807
  const c = l ? 0 : Math.max(0, n - 1), d = l < t.childCount - 1 ? 0 : Math.max(0, r - 1);
16808
16808
  (c || d) && (u = Wj(
16809
16809
  di(a).row,
16810
- new dt(u, c, d)
16810
+ new ft(u, c, d)
16811
16811
  ).content), s.push(u);
16812
16812
  }
16813
16813
  else if (i == "cell" || i == "header_cell")
16814
16814
  s.push(
16815
16815
  n || r ? Wj(
16816
16816
  di(a).row,
16817
- new dt(t, n, r)
16817
+ new ft(t, n, r)
16818
16818
  ).content : t
16819
16819
  );
16820
16820
  else
@@ -16981,7 +16981,7 @@ function p$(e, t, n, r, o) {
16981
16981
  d.replace(
16982
16982
  d.mapping.slice(f).map(g + n),
16983
16983
  d.mapping.slice(f).map(m + n),
16984
- new dt(o.rows[p - s], 0, 0)
16984
+ new ft(o.rows[p - s], 0, 0)
16985
16985
  );
16986
16986
  }
16987
16987
  h(), d.setSelection(
@@ -18184,7 +18184,7 @@ function wje() {
18184
18184
  } finally {
18185
18185
  ue = !1, K.current = Dt, te(), Error.prepareStackTrace = bt;
18186
18186
  }
18187
- var ht = Q ? Q.displayName || Q.name : "", Yt = ht ? ae(ht) : "";
18187
+ var pt = Q ? Q.displayName || Q.name : "", Yt = pt ? ae(pt) : "";
18188
18188
  return typeof Q == "function" && P.set(Q, Yt), Yt;
18189
18189
  }
18190
18190
  function fe(Q, Ee, Pe) {
@@ -18368,23 +18368,23 @@ function wje() {
18368
18368
  return Ae(Q, gt, bn, bt, Ye, Z.current, yt);
18369
18369
  }
18370
18370
  }
18371
- var $e = y.ReactCurrentOwner, We = y.ReactDebugCurrentFrame;
18371
+ var Ve = y.ReactCurrentOwner, $e = y.ReactDebugCurrentFrame;
18372
18372
  function Ke(Q) {
18373
18373
  if (Q) {
18374
18374
  var Ee = Q._owner, Pe = le(Q.type, Q._source, Ee ? Ee.type : null);
18375
- We.setExtraStackFrame(Pe);
18375
+ $e.setExtraStackFrame(Pe);
18376
18376
  } else
18377
- We.setExtraStackFrame(null);
18377
+ $e.setExtraStackFrame(null);
18378
18378
  }
18379
- var pt;
18380
- pt = !1;
18379
+ var ut;
18380
+ ut = !1;
18381
18381
  function Oe(Q) {
18382
18382
  return typeof Q == "object" && Q !== null && Q.$$typeof === t;
18383
18383
  }
18384
18384
  function ze() {
18385
18385
  {
18386
- if ($e.current) {
18387
- var Q = L($e.current.type);
18386
+ if (Ve.current) {
18387
+ var Q = L(Ve.current.type);
18388
18388
  if (Q)
18389
18389
  return `
18390
18390
 
@@ -18409,7 +18409,7 @@ Check the top-level render call using <` + Pe + ">.");
18409
18409
  return Ee;
18410
18410
  }
18411
18411
  }
18412
- function ft(Q, Ee) {
18412
+ function ht(Q, Ee) {
18413
18413
  {
18414
18414
  if (!Q._store || Q._store.validated || Q.key != null)
18415
18415
  return;
@@ -18419,7 +18419,7 @@ Check the top-level render call using <` + Pe + ">.");
18419
18419
  return;
18420
18420
  at[Pe] = !0;
18421
18421
  var Ye = "";
18422
- Q && Q._owner && Q._owner !== $e.current && (Ye = " It was passed a child from " + L(Q._owner.type) + "."), Ke(Q), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Pe, Ye), Ke(null);
18422
+ Q && Q._owner && Q._owner !== Ve.current && (Ye = " It was passed a child from " + L(Q._owner.type) + "."), Ke(Q), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Pe, Ye), Ke(null);
18423
18423
  }
18424
18424
  }
18425
18425
  function Mt(Q, Ee) {
@@ -18429,7 +18429,7 @@ Check the top-level render call using <` + Pe + ">.");
18429
18429
  if (ge(Q))
18430
18430
  for (var Pe = 0; Pe < Q.length; Pe++) {
18431
18431
  var Ye = Q[Pe];
18432
- Oe(Ye) && ft(Ye, Ee);
18432
+ Oe(Ye) && ht(Ye, Ee);
18433
18433
  }
18434
18434
  else if (Oe(Q))
18435
18435
  Q._store && (Q._store.validated = !0);
@@ -18437,7 +18437,7 @@ Check the top-level render call using <` + Pe + ">.");
18437
18437
  var bt = m(Q);
18438
18438
  if (typeof bt == "function" && bt !== Q.entries)
18439
18439
  for (var Dt = bt.call(Q), yt; !(yt = Dt.next()).done; )
18440
- Oe(yt.value) && ft(yt.value, Ee);
18440
+ Oe(yt.value) && ht(yt.value, Ee);
18441
18441
  }
18442
18442
  }
18443
18443
  }
@@ -18458,8 +18458,8 @@ Check the top-level render call using <` + Pe + ">.");
18458
18458
  if (Pe) {
18459
18459
  var Ye = L(Ee);
18460
18460
  Fe(Pe, Q.props, "prop", Ye, Q);
18461
- } else if (Ee.PropTypes !== void 0 && !pt) {
18462
- pt = !0;
18461
+ } else if (Ee.PropTypes !== void 0 && !ut) {
18462
+ ut = !0;
18463
18463
  var bt = L(Ee);
18464
18464
  b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", bt || "Unknown");
18465
18465
  }
@@ -18498,8 +18498,8 @@ Check the top-level render call using <` + Pe + ">.");
18498
18498
  if (Ne !== void 0)
18499
18499
  if (Ye)
18500
18500
  if (ge(Ne)) {
18501
- for (var ht = 0; ht < Ne.length; ht++)
18502
- Mt(Ne[ht], Q);
18501
+ for (var pt = 0; pt < Ne.length; pt++)
18502
+ Mt(Ne[pt], Q);
18503
18503
  Object.freeze && Object.freeze(Ne);
18504
18504
  } else
18505
18505
  b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -49664,7 +49664,7 @@ function QEt({ children: e, isPresent: t }) {
49664
49664
  }, [t]), A.jsx(JEt, { isPresent: t, childRef: r, sizeRef: o, children: W.cloneElement(e, { ref: r }) });
49665
49665
  }
49666
49666
  const eAt = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o, presenceAffectsLayout: i, mode: a }) => {
49667
- const s = tO(tAt), l = Wg(), u = Ve((d) => {
49667
+ const s = tO(tAt), l = Wg(), u = We((d) => {
49668
49668
  s.set(d, !0);
49669
49669
  for (const f of s.values())
49670
49670
  if (!f)
@@ -49703,7 +49703,7 @@ function Lue(e = !0) {
49703
49703
  He(() => {
49704
49704
  e && o(i);
49705
49705
  }, [e]);
49706
- const a = Ve(() => e && r && r(i), [i, r, e]);
49706
+ const a = We(() => e && r && r(i), [i, r, e]);
49707
49707
  return !n && r ? [!1, a] : [!0];
49708
49708
  }
49709
49709
  const sv = (e) => e.key || "";
@@ -49980,7 +49980,7 @@ function Yp(e) {
49980
49980
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
49981
49981
  }
49982
49982
  function pAt(e, t, n) {
49983
- return Ve(
49983
+ return We(
49984
49984
  (r) => {
49985
49985
  r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : Yp(n) && (n.current = r));
49986
49986
  },
@@ -60918,15 +60918,15 @@ function sOt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
60918
60918
  const [j = !1, N] = kfe({
60919
60919
  defaultProp: k,
60920
60920
  prop: e,
60921
- onChange: (We) => {
60922
- t == null || t(We), !We && !b && Z(), setTimeout(() => {
60923
- _ == null || _(We);
60924
- }, Ar.DURATION * 1e3), We && !m && typeof window < "u" && window.requestAnimationFrame(() => {
60921
+ onChange: ($e) => {
60922
+ t == null || t($e), !$e && !b && Z(), setTimeout(() => {
60923
+ _ == null || _($e);
60924
+ }, Ar.DURATION * 1e3), $e && !m && typeof window < "u" && window.requestAnimationFrame(() => {
60925
60925
  document.body.style.pointerEvents = "auto";
60926
- }), We || (document.body.style.pointerEvents = "auto");
60926
+ }), $e || (document.body.style.pointerEvents = "auto");
60927
60927
  }
60928
- }), [O, B] = _e.useState(!1), [U, $] = _e.useState(!1), [q, z] = _e.useState(!1), Y = _e.useRef(null), oe = _e.useRef(null), te = _e.useRef(null), K = _e.useRef(null), ne = _e.useRef(null), ae = _e.useRef(!1), ue = _e.useRef(null), P = _e.useRef(0), J = _e.useRef(!1), re = _e.useRef(!k), fe = _e.useRef(0), R = _e.useRef(null), le = _e.useRef(((L = R.current) == null ? void 0 : L.getBoundingClientRect().height) || 0), ce = _e.useRef(((M = R.current) == null ? void 0 : M.getBoundingClientRect().width) || 0), ee = _e.useRef(0), X = _e.useCallback((We) => {
60929
- i && We === pe.length - 1 && (oe.current = /* @__PURE__ */ new Date());
60928
+ }), [O, B] = _e.useState(!1), [U, $] = _e.useState(!1), [q, z] = _e.useState(!1), Y = _e.useRef(null), oe = _e.useRef(null), te = _e.useRef(null), K = _e.useRef(null), ne = _e.useRef(null), ae = _e.useRef(!1), ue = _e.useRef(null), P = _e.useRef(0), J = _e.useRef(!1), re = _e.useRef(!k), fe = _e.useRef(0), R = _e.useRef(null), le = _e.useRef(((L = R.current) == null ? void 0 : L.getBoundingClientRect().height) || 0), ce = _e.useRef(((M = R.current) == null ? void 0 : M.getBoundingClientRect().width) || 0), ee = _e.useRef(0), X = _e.useCallback(($e) => {
60929
+ i && $e === pe.length - 1 && (oe.current = /* @__PURE__ */ new Date());
60930
60930
  }, []), { activeSnapPoint: de, activeSnapPointIndex: Fe, setActiveSnapPoint: Me, onRelease: ge, snapPointsOffset: pe, onDrag: me, shouldFade: be, getPercentageDragged: H } = rOt({
60931
60931
  snapPoints: i,
60932
60932
  activeSnapPointProp: h,
@@ -60953,16 +60953,16 @@ function sOt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
60953
60953
  function se() {
60954
60954
  return (window.innerWidth - jL) / window.innerWidth;
60955
60955
  }
60956
- function ye(We) {
60957
- var Ke, pt;
60958
- !c && !i || R.current && !R.current.contains(We.target) || (le.current = ((Ke = R.current) == null ? void 0 : Ke.getBoundingClientRect().height) || 0, ce.current = ((pt = R.current) == null ? void 0 : pt.getBoundingClientRect().width) || 0, $(!0), te.current = /* @__PURE__ */ new Date(), gfe() && window.addEventListener("touchend", () => ae.current = !1, {
60956
+ function ye($e) {
60957
+ var Ke, ut;
60958
+ !c && !i || R.current && !R.current.contains($e.target) || (le.current = ((Ke = R.current) == null ? void 0 : Ke.getBoundingClientRect().height) || 0, ce.current = ((ut = R.current) == null ? void 0 : ut.getBoundingClientRect().width) || 0, $(!0), te.current = /* @__PURE__ */ new Date(), gfe() && window.addEventListener("touchend", () => ae.current = !1, {
60959
60959
  once: !0
60960
- }), We.target.setPointerCapture(We.pointerId), P.current = to(x) ? We.pageY : We.pageX);
60960
+ }), $e.target.setPointerCapture($e.pointerId), P.current = to(x) ? $e.pageY : $e.pageX);
60961
60961
  }
60962
- function we(We, Ke) {
60963
- var pt;
60964
- let Oe = We;
60965
- const ze = (pt = window.getSelection()) == null ? void 0 : pt.toString(), Ge = R.current ? bv(R.current, x) : null, at = /* @__PURE__ */ new Date();
60962
+ function we($e, Ke) {
60963
+ var ut;
60964
+ let Oe = $e;
60965
+ const ze = (ut = window.getSelection()) == null ? void 0 : ut.toString(), Ge = R.current ? bv(R.current, x) : null, at = /* @__PURE__ */ new Date();
60966
60966
  if (Oe.tagName === "SELECT" || Oe.hasAttribute("data-vaul-no-drag") || Oe.closest("[data-vaul-no-drag]"))
60967
60967
  return !1;
60968
60968
  if (x === "right" || x === "left")
@@ -60986,33 +60986,33 @@ function sOt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
60986
60986
  }
60987
60987
  return !0;
60988
60988
  }
60989
- function xe(We) {
60989
+ function xe($e) {
60990
60990
  if (R.current && U) {
60991
- const Ke = x === "bottom" || x === "right" ? 1 : -1, pt = (P.current - (to(x) ? We.pageY : We.pageX)) * Ke, Oe = pt > 0, ze = i && !c && !Oe;
60991
+ const Ke = x === "bottom" || x === "right" ? 1 : -1, ut = (P.current - (to(x) ? $e.pageY : $e.pageX)) * Ke, Oe = ut > 0, ze = i && !c && !Oe;
60992
60992
  if (ze && Fe === 0) return;
60993
- const Ge = Math.abs(pt), at = document.querySelector("[data-vaul-drawer-wrapper]"), st = x === "bottom" || x === "top" ? le.current : ce.current;
60994
- let ft = Ge / st;
60993
+ const Ge = Math.abs(ut), at = document.querySelector("[data-vaul-drawer-wrapper]"), st = x === "bottom" || x === "top" ? le.current : ce.current;
60994
+ let ht = Ge / st;
60995
60995
  const Mt = H(Ge, Oe);
60996
- if (Mt !== null && (ft = Mt), ze && ft >= 1 || !ae.current && !we(We.target, Oe)) return;
60996
+ if (Mt !== null && (ht = Mt), ze && ht >= 1 || !ae.current && !we($e.target, Oe)) return;
60997
60997
  if (R.current.classList.add(HM), ae.current = !0, co(R.current, {
60998
60998
  transition: "none"
60999
60999
  }), co(Y.current, {
61000
61000
  transition: "none"
61001
61001
  }), i && me({
61002
- draggedDistance: pt
61002
+ draggedDistance: ut
61003
61003
  }), Oe && !i) {
61004
- const Lt = JBt(pt), Nt = Math.min(Lt * -1, 0) * Ke;
61004
+ const Lt = JBt(ut), Nt = Math.min(Lt * -1, 0) * Ke;
61005
61005
  co(R.current, {
61006
61006
  transform: to(x) ? `translate3d(0, ${Nt}px, 0)` : `translate3d(${Nt}px, 0, 0)`
61007
61007
  });
61008
61008
  return;
61009
61009
  }
61010
- const At = 1 - ft;
61011
- if ((be || f && Fe === f - 1) && (r == null || r(We, ft), co(Y.current, {
61010
+ const At = 1 - ht;
61011
+ if ((be || f && Fe === f - 1) && (r == null || r($e, ht), co(Y.current, {
61012
61012
  opacity: `${At}`,
61013
61013
  transition: "none"
61014
61014
  }, !0)), at && Y.current && a) {
61015
- const Lt = Math.min(se() + ft * (1 - se()), 1), Nt = 8 - ft * 8, ln = Math.max(0, 14 - ft * 14);
61015
+ const Lt = Math.min(se() + ht * (1 - se()), 1), Nt = 8 - ht * 8, ln = Math.max(0, 14 - ht * 14);
61016
61016
  co(at, {
61017
61017
  borderRadius: `${Nt}px`,
61018
61018
  transform: to(x) ? `scale(${Lt}) translate3d(0, ${ln}px, 0)` : `scale(${Lt}) translate3d(${ln}px, 0, 0)`,
@@ -61032,15 +61032,15 @@ function sOt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
61032
61032
  re.current = !0;
61033
61033
  });
61034
61034
  }, []), _e.useEffect(() => {
61035
- var We;
61035
+ var $e;
61036
61036
  function Ke() {
61037
61037
  if (!R.current || !T) return;
61038
- const pt = document.activeElement;
61039
- if (TL(pt) || J.current) {
61038
+ const ut = document.activeElement;
61039
+ if (TL(ut) || J.current) {
61040
61040
  var Oe;
61041
61041
  const ze = ((Oe = window.visualViewport) == null ? void 0 : Oe.height) || 0, Ge = window.innerHeight;
61042
61042
  let at = Ge - ze;
61043
- const st = R.current.getBoundingClientRect().height || 0, ft = st > Ge * 0.8;
61043
+ const st = R.current.getBoundingClientRect().height || 0, ht = st > Ge * 0.8;
61044
61044
  ee.current || (ee.current = st);
61045
61045
  const Mt = R.current.getBoundingClientRect().top;
61046
61046
  if (Math.abs(fe.current - at) > 60 && (J.current = !J.current), i && i.length > 0 && pe && Fe) {
@@ -61050,35 +61050,35 @@ function sOt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
61050
61050
  if (fe.current = at, st > ze || J.current) {
61051
61051
  const At = R.current.getBoundingClientRect().height;
61052
61052
  let Lt = At;
61053
- At > ze && (Lt = ze - (ft ? Mt : jL)), g ? R.current.style.height = `${At - Math.max(at, 0)}px` : R.current.style.height = `${Math.max(Lt, ze - Mt)}px`;
61053
+ At > ze && (Lt = ze - (ht ? Mt : jL)), g ? R.current.style.height = `${At - Math.max(at, 0)}px` : R.current.style.height = `${Math.max(Lt, ze - Mt)}px`;
61054
61054
  } else PBt() || (R.current.style.height = `${ee.current}px`);
61055
61055
  i && i.length > 0 && !J.current ? R.current.style.bottom = "0px" : R.current.style.bottom = `${Math.max(at, 0)}px`;
61056
61056
  }
61057
61057
  }
61058
- return (We = window.visualViewport) == null || We.addEventListener("resize", Ke), () => {
61059
- var pt;
61060
- return (pt = window.visualViewport) == null ? void 0 : pt.removeEventListener("resize", Ke);
61058
+ return ($e = window.visualViewport) == null || $e.addEventListener("resize", Ke), () => {
61059
+ var ut;
61060
+ return (ut = window.visualViewport) == null ? void 0 : ut.removeEventListener("resize", Ke);
61061
61061
  };
61062
61062
  }, [
61063
61063
  Fe,
61064
61064
  i,
61065
61065
  pe
61066
61066
  ]);
61067
- function Se(We) {
61068
- ve(), y == null || y(), We || N(!1), setTimeout(() => {
61067
+ function Se($e) {
61068
+ ve(), y == null || y(), $e || N(!1), setTimeout(() => {
61069
61069
  i && Me(i[0]);
61070
61070
  }, Ar.DURATION * 1e3);
61071
61071
  }
61072
61072
  function Le() {
61073
61073
  if (!R.current) return;
61074
- const We = document.querySelector("[data-vaul-drawer-wrapper]"), Ke = bv(R.current, x);
61074
+ const $e = document.querySelector("[data-vaul-drawer-wrapper]"), Ke = bv(R.current, x);
61075
61075
  co(R.current, {
61076
61076
  transform: "translate3d(0, 0, 0)",
61077
61077
  transition: `transform ${Ar.DURATION}s cubic-bezier(${Ar.EASE.join(",")})`
61078
61078
  }), co(Y.current, {
61079
61079
  transition: `opacity ${Ar.DURATION}s cubic-bezier(${Ar.EASE.join(",")})`,
61080
61080
  opacity: "1"
61081
- }), a && Ke && Ke > 0 && j && co(We, {
61081
+ }), a && Ke && Ke > 0 && j && co($e, {
61082
61082
  borderRadius: `${xfe}px`,
61083
61083
  overflow: "hidden",
61084
61084
  ...to(x) ? {
@@ -61096,12 +61096,12 @@ function sOt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
61096
61096
  function ve() {
61097
61097
  !U || !R.current || (R.current.classList.remove(HM), ae.current = !1, $(!1), K.current = /* @__PURE__ */ new Date());
61098
61098
  }
61099
- function Be(We) {
61099
+ function Be($e) {
61100
61100
  if (!U || !R.current) return;
61101
61101
  R.current.classList.remove(HM), ae.current = !1, $(!1), K.current = /* @__PURE__ */ new Date();
61102
61102
  const Ke = bv(R.current, x);
61103
- if (!We || !we(We.target, !1) || !Ke || Number.isNaN(Ke) || te.current === null) return;
61104
- const pt = K.current.getTime() - te.current.getTime(), Oe = P.current - (to(x) ? We.pageY : We.pageX), ze = Math.abs(Oe) / pt;
61103
+ if (!$e || !we($e.target, !1) || !Ke || Number.isNaN(Ke) || te.current === null) return;
61104
+ const ut = K.current.getTime() - te.current.getTime(), Oe = P.current - (to(x) ? $e.pageY : $e.pageX), ze = Math.abs(Oe) / ut;
61105
61105
  if (ze > 0.05 && (z(!0), setTimeout(() => {
61106
61106
  z(!1);
61107
61107
  }, 200)), i) {
@@ -61110,26 +61110,26 @@ function sOt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
61110
61110
  closeDrawer: Se,
61111
61111
  velocity: ze,
61112
61112
  dismissible: c
61113
- }), o == null || o(We, !0);
61113
+ }), o == null || o($e, !0);
61114
61114
  return;
61115
61115
  }
61116
61116
  if (x === "bottom" || x === "right" ? Oe > 0 : Oe < 0) {
61117
- Le(), o == null || o(We, !0);
61117
+ Le(), o == null || o($e, !0);
61118
61118
  return;
61119
61119
  }
61120
61120
  if (ze > vfe) {
61121
- Se(), o == null || o(We, !1);
61121
+ Se(), o == null || o($e, !1);
61122
61122
  return;
61123
61123
  }
61124
61124
  var Ge;
61125
61125
  const at = Math.min((Ge = R.current.getBoundingClientRect().height) != null ? Ge : 0, window.innerHeight);
61126
61126
  var st;
61127
- const ft = Math.min((st = R.current.getBoundingClientRect().width) != null ? st : 0, window.innerWidth), Mt = x === "left" || x === "right";
61128
- if (Math.abs(Ke) >= (Mt ? ft : at) * l) {
61129
- Se(), o == null || o(We, !1);
61127
+ const ht = Math.min((st = R.current.getBoundingClientRect().width) != null ? st : 0, window.innerWidth), Mt = x === "left" || x === "right";
61128
+ if (Math.abs(Ke) >= (Mt ? ht : at) * l) {
61129
+ Se(), o == null || o($e, !1);
61130
61130
  return;
61131
61131
  }
61132
- o == null || o(We, !0), Le();
61132
+ o == null || o($e, !0), Le();
61133
61133
  }
61134
61134
  _e.useEffect(() => (j && (co(document.documentElement, {
61135
61135
  scrollBehavior: "auto"
@@ -61138,12 +61138,12 @@ function sOt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
61138
61138
  }), [
61139
61139
  j
61140
61140
  ]);
61141
- function Ae(We) {
61142
- const Ke = We ? (window.innerWidth - V0) / window.innerWidth : 1, pt = We ? -V0 : 0;
61141
+ function Ae($e) {
61142
+ const Ke = $e ? (window.innerWidth - V0) / window.innerWidth : 1, ut = $e ? -V0 : 0;
61143
61143
  ue.current && window.clearTimeout(ue.current), co(R.current, {
61144
61144
  transition: `transform ${Ar.DURATION}s cubic-bezier(${Ar.EASE.join(",")})`,
61145
- transform: to(x) ? `scale(${Ke}) translate3d(0, ${pt}px, 0)` : `scale(${Ke}) translate3d(${pt}px, 0, 0)`
61146
- }), !We && R.current && (ue.current = setTimeout(() => {
61145
+ transform: to(x) ? `scale(${Ke}) translate3d(0, ${ut}px, 0)` : `scale(${Ke}) translate3d(${ut}px, 0, 0)`
61146
+ }), !$e && R.current && (ue.current = setTimeout(() => {
61147
61147
  const Oe = bv(R.current, x);
61148
61148
  co(R.current, {
61149
61149
  transition: "none",
@@ -61151,16 +61151,16 @@ function sOt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
61151
61151
  });
61152
61152
  }, 500));
61153
61153
  }
61154
- function Ue(We, Ke) {
61154
+ function Ue($e, Ke) {
61155
61155
  if (Ke < 0) return;
61156
- const pt = (window.innerWidth - V0) / window.innerWidth, Oe = pt + Ke * (1 - pt), ze = -V0 + Ke * V0;
61156
+ const ut = (window.innerWidth - V0) / window.innerWidth, Oe = ut + Ke * (1 - ut), ze = -V0 + Ke * V0;
61157
61157
  co(R.current, {
61158
61158
  transform: to(x) ? `scale(${Oe}) translate3d(0, ${ze}px, 0)` : `scale(${Oe}) translate3d(${ze}px, 0, 0)`,
61159
61159
  transition: "none"
61160
61160
  });
61161
61161
  }
61162
- function $e(We, Ke) {
61163
- const pt = to(x) ? window.innerHeight : window.innerWidth, Oe = Ke ? (pt - V0) / pt : 1, ze = Ke ? -V0 : 0;
61162
+ function Ve($e, Ke) {
61163
+ const ut = to(x) ? window.innerHeight : window.innerWidth, Oe = Ke ? (ut - V0) / ut : 1, ze = Ke ? -V0 : 0;
61164
61164
  Ke && co(R.current, {
61165
61165
  transition: `transform ${Ar.DURATION}s cubic-bezier(${Ar.EASE.join(",")})`,
61166
61166
  transform: to(x) ? `scale(${Oe}) translate3d(0, ${ze}px, 0)` : `scale(${Oe}) translate3d(${ze}px, 0, 0)`
@@ -61174,8 +61174,8 @@ function sOt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
61174
61174
  m
61175
61175
  ]), /* @__PURE__ */ _e.createElement(Rk, {
61176
61176
  defaultOpen: k,
61177
- onOpenChange: (We) => {
61178
- !c && !We || (We ? B(!0) : Se(!0), N(We));
61177
+ onOpenChange: ($e) => {
61178
+ !c && !$e || ($e ? B(!0) : Se(!0), N($e));
61179
61179
  },
61180
61180
  open: j
61181
61181
  }, /* @__PURE__ */ _e.createElement(pfe.Provider, {
@@ -61198,7 +61198,7 @@ function sOt({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
61198
61198
  closeDrawer: Se,
61199
61199
  onNestedDrag: Ue,
61200
61200
  onNestedOpenChange: Ae,
61201
- onNestedRelease: $e,
61201
+ onNestedRelease: Ve,
61202
61202
  keyboardIsOpen: J,
61203
61203
  modal: m,
61204
61204
  snapPointsOffset: pe,
@@ -62300,12 +62300,12 @@ const Pr = ({
62300
62300
  onClose: o,
62301
62301
  ...i
62302
62302
  }) => {
62303
- const [a, s] = Re(!1), l = Ve(
62303
+ const [a, s] = Re(!1), l = We(
62304
62304
  (d) => {
62305
62305
  n || (s((f) => !f), _e.isValidElement(t) && t.props.onClick && t.props.onClick(d));
62306
62306
  },
62307
62307
  [n, t]
62308
- ), u = Ve(
62308
+ ), u = We(
62309
62309
  (d) => {
62310
62310
  const f = d.target;
62311
62311
  !f.closest(".popover-trigger") && !f.closest(".popover-content") && (n || s(!1), o == null || o());
@@ -80370,7 +80370,7 @@ function uPt(e, t) {
80370
80370
  }
80371
80371
  function cPt() {
80372
80372
  var e = rs();
80373
- return Ve(function(t) {
80373
+ return We(function(t) {
80374
80374
  requestAnimationFrame(function() {
80375
80375
  e.current && (e.current.scrollTop = t);
80376
80376
  });
@@ -80459,7 +80459,7 @@ function bPt(e) {
80459
80459
  return f[c] ? f[c] : (t = f.at(0)) != null ? t : null;
80460
80460
  }
80461
80461
  function Hh() {
80462
- var e = im(), t = e[0], n = e[1], r = j6(), o = r[0], i = r[1], a = Ve(function() {
80462
+ var e = im(), t = e[0], n = e[1], r = j6(), o = r[0], i = r[1], a = We(function() {
80463
80463
  t && n(null), o && i(!1);
80464
80464
  }, [t, o, n, i]);
80465
80465
  return a;
@@ -80505,19 +80505,19 @@ function xPt() {
80505
80505
  }
80506
80506
  function qh() {
80507
80507
  var e = D0();
80508
- return Ve(function() {
80508
+ return We(function() {
80509
80509
  ns(e.current);
80510
80510
  }, [e]);
80511
80511
  }
80512
80512
  function wPt() {
80513
80513
  var e = mR();
80514
- return Ve(function() {
80514
+ return We(function() {
80515
80515
  e.current && Che(e.current);
80516
80516
  }, [e]);
80517
80517
  }
80518
80518
  function Lhe() {
80519
80519
  var e = yR();
80520
- return Ve(function() {
80520
+ return We(function() {
80521
80521
  e.current && Che(e.current);
80522
80522
  }, [e]);
80523
80523
  }
@@ -80818,13 +80818,13 @@ function BPt() {
80818
80818
  }
80819
80819
  function Bhe() {
80820
80820
  var e = Lhe(), t = tF(), n = rs();
80821
- return Ve(function() {
80821
+ return We(function() {
80822
80822
  return t ? oF(n.current) : e();
80823
80823
  }, [n, e, t]);
80824
80824
  }
80825
80825
  function OPt() {
80826
80826
  var e = qh(), t = Lhe(), n = tF();
80827
- return Ve(function() {
80827
+ return We(function() {
80828
80828
  return n ? e() : t();
80829
80829
  }, [e, n, t]);
80830
80830
  }
@@ -81220,7 +81220,7 @@ function Xhe(e) {
81220
81220
  return e.imgUrl !== void 0;
81221
81221
  }
81222
81222
  function Jhe(e, t) {
81223
- var n = Qe(), r = _he(), o = sRt(), i = im(), a = i[1], s = Hh(), l = fR(), u = l[0], c = ZRt(t), d = ohe(), f = d[1], h = lm(), p = sm(), g = Ve(function(b) {
81223
+ var n = Qe(), r = _he(), o = sRt(), i = im(), a = i[1], s = Hh(), l = fR(), u = l[0], c = ZRt(t), d = ohe(), f = d[1], h = lm(), p = sm(), g = We(function(b) {
81224
81224
  if (!o.current) {
81225
81225
  s();
81226
81226
  var v = BZ(b), x = v[0], k = v[1];
@@ -81229,14 +81229,14 @@ function Jhe(e, t) {
81229
81229
  f(), ERt(x, F), c(ezt(x, F, p, h), b);
81230
81230
  }
81231
81231
  }
81232
- }, [u, s, o, c, f, h, p]), m = Ve(function(b) {
81232
+ }, [u, s, o, c, f, h, p]), m = We(function(b) {
81233
81233
  var v;
81234
81234
  n.current && clearTimeout(n.current);
81235
81235
  var x = BZ(b), k = x[0];
81236
81236
  !k || !am(k) || (n.current = (v = window) == null ? void 0 : v.setTimeout(function() {
81237
81237
  o.current = !0, n.current = void 0, s(), r(b.target), a(k);
81238
81238
  }, 500));
81239
- }, [o, s, r, a]), y = Ve(function() {
81239
+ }, [o, s, r, a]), y = We(function() {
81240
81240
  n.current ? (clearTimeout(n.current), n.current = void 0) : o.current && requestAnimationFrame(function() {
81241
81241
  o.current = !1;
81242
81242
  });
@@ -81621,7 +81621,7 @@ function hzt(e, t) {
81621
81621
  }
81622
81622
  var pzt = 32;
81623
81623
  function gzt(e) {
81624
- var t = Mhe(), n = Uh(), r = n[0], o = um(), i = Qe(), a = hR(), s = a[0], l = Re(), u = l[0], c = l[1], d = Ve(function() {
81624
+ var t = Mhe(), n = Uh(), r = n[0], o = um(), i = Qe(), a = hR(), s = a[0], l = Re(), u = l[0], c = l[1], d = We(function() {
81625
81625
  var f, h = t.current;
81626
81626
  if (h) {
81627
81627
  var p = h.querySelector(C4), g = p == null ? void 0 : p.clientHeight, m = (f = g ?? i.current) != null ? f : pzt;
@@ -86164,13 +86164,13 @@ var VL = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.CARD = "CARD", e))(VL || {}
86164
86164
  const VVt = ({
86165
86165
  delay: e = 2e3
86166
86166
  }) => {
86167
- const [t, n] = Re(!1), [r, o] = Re(!1), i = Qe(null), a = Ve(() => {
86167
+ const [t, n] = Re(!1), [r, o] = Re(!1), i = Qe(null), a = We(() => {
86168
86168
  i.current && clearTimeout(i.current), i.current = setTimeout(() => {
86169
86169
  n(!0), o(!0);
86170
86170
  }, e);
86171
- }, [e]), s = Ve(() => {
86171
+ }, [e]), s = We(() => {
86172
86172
  r || n(!1), i.current && clearTimeout(i.current), o(!1);
86173
- }, [r]), l = Ve(() => n(!0), []), u = Ve(() => n(!1), []), c = Ve(() => a(), [a]), d = Ve(() => s(), [s]);
86173
+ }, [r]), l = We(() => n(!0), []), u = We(() => n(!1), []), c = We(() => a(), [a]), d = We(() => s(), [s]);
86174
86174
  return {
86175
86175
  onMouseEnter: l,
86176
86176
  onMouseLeave: u,
@@ -87373,17 +87373,17 @@ function _Wt(e, t, n, r, o, i, a) {
87373
87373
  scrollLooper: Be,
87374
87374
  slideLooper: Ae,
87375
87375
  dragHandler: Ue,
87376
- animation: $e,
87377
- eventHandler: We,
87376
+ animation: Ve,
87377
+ eventHandler: $e,
87378
87378
  scrollBounds: Ke,
87379
87379
  options: {
87380
- loop: pt
87380
+ loop: ut
87381
87381
  }
87382
87382
  }, Oe) => {
87383
- const ze = we.settled(), Ge = !Ke.shouldConstrain(), at = pt ? ze : ze && Ge, st = at && !Ue.pointerDown();
87384
- st && $e.stop();
87385
- const ft = Se.get() * Oe + ve.get() * (1 - Oe);
87386
- Le.set(ft), pt && (Be.loop(we.direction()), Ae.loop()), xe.to(Le.get()), st && We.emit("settle"), at || We.emit("scroll");
87383
+ const ze = we.settled(), Ge = !Ke.shouldConstrain(), at = ut ? ze : ze && Ge, st = at && !Ue.pointerDown();
87384
+ st && Ve.stop();
87385
+ const ht = Se.get() * Oe + ve.get() * (1 - Oe);
87386
+ Le.set(ht), ut && (Be.loop(we.direction()), Ae.loop()), xe.to(Le.get()), st && $e.emit("settle"), at || $e.emit("scroll");
87387
87387
  }, R = dWt(r, o, () => re(ye), (we) => fe(ye, we)), le = 0.68, ce = ne[ue.get()], ee = $3(ce), X = $3(ce), de = $3(ce), Fe = $3(ce), Me = bWt(ee, de, X, Fe, f, le), ge = MWt(d, ne, oe, ae, Fe), pe = EWt(R, ue, P, Me, ge, Fe, a), me = FWt(ae), be = j4(), H = jWt(t, n, a, g), {
87388
87388
  slideRegistry: Z
87389
87389
  } = DWt(j, b, ne, K, q, J), se = AWt(e, n, Z, pe, Me, be, a, F), ye = {
@@ -87634,7 +87634,7 @@ function M9(e, t, n) {
87634
87634
  }
87635
87635
  M9.globalOptions = void 0;
87636
87636
  function GR(e = {}, t = []) {
87637
- const n = Qe(e), r = Qe(t), [o, i] = Re(), [a, s] = Re(), l = Ve(() => {
87637
+ const n = Qe(e), r = Qe(t), [o, i] = Re(), [a, s] = Re(), l = We(() => {
87638
87638
  o && o.reInit(n.current, r.current);
87639
87639
  }, [o]);
87640
87640
  return He(() => {
@@ -87674,13 +87674,13 @@ const Kpe = Pn(
87674
87674
  axis: e === "horizontal" ? "x" : "y"
87675
87675
  },
87676
87676
  r
87677
- ), [c, d] = Re(!1), [f, h] = Re(!1), p = Ve((b) => {
87677
+ ), [c, d] = Re(!1), [f, h] = Re(!1), p = We((b) => {
87678
87678
  b && (d(b.canScrollPrev()), h(b.canScrollNext()));
87679
- }, []), g = Ve(() => {
87679
+ }, []), g = We(() => {
87680
87680
  u == null || u.scrollPrev();
87681
- }, [u]), m = Ve(() => {
87681
+ }, [u]), m = We(() => {
87682
87682
  u == null || u.scrollNext();
87683
- }, [u]), y = Ve(
87683
+ }, [u]), y = We(
87684
87684
  (b) => {
87685
87685
  b.key === "ArrowLeft" ? (b.preventDefault(), g()) : b.key === "ArrowRight" && (b.preventDefault(), m());
87686
87686
  },
@@ -87760,14 +87760,14 @@ const ZL = Pn(
87760
87760
  );
87761
87761
  ZL.displayName = "CarouselItem";
87762
87762
  const Xpe = Pn(({ index: e, className: t, ...n }, r) => {
87763
- const { api: o } = U6(), [i, a] = Re(0), [, s] = Re([]), l = Ve(
87763
+ const { api: o } = U6(), [i, a] = Re(0), [, s] = Re([]), l = We(
87764
87764
  (f) => {
87765
87765
  o && o.scrollTo(f);
87766
87766
  },
87767
87767
  [o]
87768
- ), u = Ve((f) => {
87768
+ ), u = We((f) => {
87769
87769
  f && s(f.scrollSnapList());
87770
- }, []), c = Ve((f) => {
87770
+ }, []), c = We((f) => {
87771
87771
  f && a(f.selectedScrollSnap());
87772
87772
  }, []);
87773
87773
  He(() => {
@@ -93963,7 +93963,7 @@ async function SF(e, t) {
93963
93963
  });
93964
93964
  return te === "0x" ? { data: void 0 } : { data: te };
93965
93965
  } catch (O) {
93966
- const B = IKt(O), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-P5f-rC5c.mjs");
93966
+ const B = IKt(O), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-B-L2blGd.mjs");
93967
93967
  if (e.ccipRead !== !1 && (B == null ? void 0 : B.slice(0, 10)) === $ && x)
93968
93968
  return { data: await U(e, { data: B, to: x }) };
93969
93969
  throw I && (B == null ? void 0 : B.slice(0, 10)) === "0x101bb98d" ? new pZt({ factory: f }) : Sge(O, {
@@ -99305,7 +99305,7 @@ class Dme {
99305
99305
  }), this.client);
99306
99306
  }
99307
99307
  }
99308
- ut(Dme, "client");
99308
+ ct(Dme, "client");
99309
99309
  const Mme = Gn(void 0), nQt = ({
99310
99310
  children: e,
99311
99311
  editor: t,
@@ -99336,7 +99336,7 @@ const Mme = Gn(void 0), nQt = ({
99336
99336
  handleClick: !1
99337
99337
  }), ae = localStorage.getItem("ensCache"), [ue, P] = Re(
99338
99338
  ae ? JSON.parse(ae) : {}
99339
- ), [J, re] = Re([]), fe = Ve(
99339
+ ), [J, re] = Re([]), fe = We(
99340
99340
  async (Ae, Ue) => {
99341
99341
  if (J.includes(Ae)) {
99342
99342
  Ue({
@@ -99359,23 +99359,23 @@ const Mme = Gn(void 0), nQt = ({
99359
99359
  return;
99360
99360
  }
99361
99361
  try {
99362
- re((pt) => [...pt, Ae]);
99363
- const { name: $e, isEns: We, resolved: Ke } = await eQt(
99362
+ re((ut) => [...ut, Ae]);
99363
+ const { name: Ve, isEns: $e, resolved: Ke } = await eQt(
99364
99364
  Ae,
99365
99365
  d
99366
99366
  // Add definite assignment assertion if ensResolutionUrl is guaranteed
99367
99367
  );
99368
- Ke && P((pt) => {
99368
+ Ke && P((ut) => {
99369
99369
  const Oe = {
99370
- ...pt,
99371
- [Ae]: { name: $e, isEns: We }
99370
+ ...ut,
99371
+ [Ae]: { name: Ve, isEns: $e }
99372
99372
  };
99373
99373
  return localStorage.setItem("ensCache", JSON.stringify(Oe)), Oe;
99374
99374
  }), re(
99375
- (pt) => pt.filter((Oe) => Oe !== Ae)
99376
- ), Ue({ name: $e, isEns: We });
99377
- } catch ($e) {
99378
- console.error("Error fetching ENS name:", $e), Ue({
99375
+ (ut) => ut.filter((Oe) => Oe !== Ae)
99376
+ ), Ue({ name: Ve, isEns: $e });
99377
+ } catch (Ve) {
99378
+ console.error("Error fetching ENS name:", Ve), Ue({
99379
99379
  name: Ae || "Anonymous",
99380
99380
  isEns: !1
99381
99381
  });
@@ -99388,14 +99388,24 @@ const Mme = Gn(void 0), nQt = ({
99388
99388
  );
99389
99389
  ZR([q, z, Y], () => {
99390
99390
  U && $(!1);
99391
- });
99392
- const le = Ve(() => {
99393
- const { state: Ae } = t, { from: Ue, to: $e } = Ae.selection, We = Ae.doc.textBetween(Ue, $e, " ");
99394
- oe ? R && B(R.selectedContent || "") : B(We), $(!0), x == null || x();
99395
- }, [t, oe, R, x]), ce = Ve(
99396
- (Ae, Ue = "", $e) => ({
99391
+ }), He(() => {
99392
+ if (!t) return;
99393
+ const Ae = ({ event: Ue }) => {
99394
+ var $e, Ke, ut;
99395
+ const Ve = Ue.relatedTarget;
99396
+ Ve && (($e = q.current) != null && $e.contains(Ve) || (Ke = Y.current) != null && Ke.contains(Ve) || (ut = z.current) != null && ut.contains(Ve)) || $(!1);
99397
+ };
99398
+ return t.on("blur", Ae), () => {
99399
+ t.off("blur", Ae);
99400
+ };
99401
+ }, [t]);
99402
+ const le = We(() => {
99403
+ const { state: Ae } = t, { from: Ue, to: Ve } = Ae.selection, $e = Ae.doc.textBetween(Ue, Ve, " ");
99404
+ oe ? R && B(R.selectedContent || "") : B($e), $(!0), x == null || x();
99405
+ }, [t, oe, R, x]), ce = We(
99406
+ (Ae, Ue = "", Ve) => ({
99397
99407
  id: `comment-${Nd()}`,
99398
- username: $e,
99408
+ username: Ve,
99399
99409
  selectedContent: Ae,
99400
99410
  // Preserve line breaks in content
99401
99411
  content: Ue || "",
@@ -99403,11 +99413,11 @@ const Mme = Gn(void 0), nQt = ({
99403
99413
  createdAt: /* @__PURE__ */ new Date()
99404
99414
  }),
99405
99415
  []
99406
- ), ee = Ve(
99416
+ ), ee = We(
99407
99417
  (Ae, Ue) => {
99408
99418
  if (!t) return;
99409
- const { state: $e } = t, { from: We, to: Ke } = $e.selection, pt = $e.doc.textBetween(We, Ke, " "), Oe = ce(
99410
- pt,
99419
+ const { state: Ve } = t, { from: $e, to: Ke } = Ve.selection, ut = Ve.doc.textBetween($e, Ke, " "), Oe = ce(
99420
+ ut,
99411
99421
  Ae,
99412
99422
  Ue || o
99413
99423
  );
@@ -99421,25 +99431,25 @@ const Mme = Gn(void 0), nQt = ({
99421
99431
  l,
99422
99432
  u
99423
99433
  ]
99424
- ), X = Ve(
99434
+ ), X = We(
99425
99435
  (Ae) => {
99426
99436
  t.commands.resolveComment(Ae), f == null || f(Ae);
99427
99437
  },
99428
99438
  [t, f]
99429
- ), de = Ve(
99439
+ ), de = We(
99430
99440
  (Ae) => {
99431
99441
  t.commands.unresolveComment(Ae), h == null || h(Ae);
99432
99442
  },
99433
99443
  [t, h]
99434
- ), Fe = Ve(
99444
+ ), Fe = We(
99435
99445
  (Ae) => {
99436
99446
  t.commands.unsetComment(Ae), p == null || p(Ae);
99437
99447
  },
99438
99448
  [t, p]
99439
- ), Me = Ve(
99440
- (Ae, Ue, $e) => {
99449
+ ), Me = We(
99450
+ (Ae, Ue, Ve) => {
99441
99451
  if (!Ue.trim()) return;
99442
- const We = {
99452
+ const $e = {
99443
99453
  id: `reply-${Nd()}`,
99444
99454
  content: Ue,
99445
99455
  username: o,
@@ -99447,13 +99457,13 @@ const Mme = Gn(void 0), nQt = ({
99447
99457
  createdAt: /* @__PURE__ */ new Date(),
99448
99458
  selectedContent: ""
99449
99459
  };
99450
- $e == null || $e(Ae, We);
99460
+ Ve == null || Ve(Ae, $e);
99451
99461
  },
99452
99462
  [o]
99453
- ), ge = Ve(
99463
+ ), ge = We(
99454
99464
  (Ae) => {
99455
- var $e, We;
99456
- if (!t || !(($e = t.view) != null && $e.dom) || !n.length) return;
99465
+ var Ve, $e;
99466
+ if (!t || !((Ve = t.view) != null && Ve.dom) || !n.length) return;
99457
99467
  const Ue = n.find((Ke) => Ke.id === Ae);
99458
99468
  if (Ue) {
99459
99469
  if (Ue.selectedContent) {
@@ -99461,8 +99471,8 @@ const Mme = Gn(void 0), nQt = ({
99461
99471
  `[data-comment-id="${Ae}"]`
99462
99472
  );
99463
99473
  if (Ke) {
99464
- const pt = t.view.posAtDOM(Ke, 0), Oe = pt + (((We = Ke.textContent) == null ? void 0 : We.length) ?? 0);
99465
- t.commands.setTextSelection({ from: pt, to: Oe });
99474
+ const ut = t.view.posAtDOM(Ke, 0), Oe = ut + ((($e = Ke.textContent) == null ? void 0 : $e.length) ?? 0);
99475
+ t.commands.setTextSelection({ from: ut, to: Oe });
99466
99476
  const Ge = [
99467
99477
  document.querySelector(".ProseMirror"),
99468
99478
  document.getElementById("editor-canvas"),
@@ -99473,9 +99483,9 @@ const Mme = Gn(void 0), nQt = ({
99473
99483
  (at) => at && (at.scrollHeight > at.clientHeight || window.getComputedStyle(at).overflow === "auto" || window.getComputedStyle(at).overflowY === "auto")
99474
99484
  );
99475
99485
  Ge && requestAnimationFrame(() => {
99476
- const at = Ge.getBoundingClientRect(), st = Ke.getBoundingClientRect(), ft = st.top - at.top - at.height / 2 + st.height / 2;
99486
+ const at = Ge.getBoundingClientRect(), st = Ke.getBoundingClientRect(), ht = st.top - at.top - at.height / 2 + st.height / 2;
99477
99487
  Ge.scrollBy({
99478
- top: ft,
99488
+ top: ht,
99479
99489
  behavior: "smooth"
99480
99490
  });
99481
99491
  });
@@ -99485,19 +99495,19 @@ const Mme = Gn(void 0), nQt = ({
99485
99495
  }
99486
99496
  },
99487
99497
  [t, n, s]
99488
- ), pe = Ve(
99498
+ ), pe = We(
99489
99499
  (Ae) => {
99490
99500
  const Ue = Ae.target.value;
99491
99501
  _(Ue), Ue || (Ae.target.style.height = "40px");
99492
99502
  },
99493
99503
  []
99494
- ), me = Ve(
99504
+ ), me = We(
99495
99505
  (Ae) => {
99496
99506
  const Ue = Ae.target.value;
99497
99507
  S(Ue), Ue || (Ae.target.style.height = "40px");
99498
99508
  },
99499
99509
  []
99500
- ), be = Ve(() => {
99510
+ ), be = We(() => {
99501
99511
  if (!I.trim() || !o) return;
99502
99512
  const Ae = {
99503
99513
  id: `comment-${Nd()}`,
@@ -99522,29 +99532,29 @@ const Mme = Gn(void 0), nQt = ({
99522
99532
  s,
99523
99533
  k,
99524
99534
  j
99525
- ]), H = Ve(
99535
+ ]), H = We(
99526
99536
  (Ae) => {
99527
99537
  Ae.key === "Enter" && !Ae.shiftKey && (Ae.preventDefault(), be());
99528
99538
  },
99529
99539
  [be]
99530
- ), Z = Ve(() => {
99540
+ ), Z = We(() => {
99531
99541
  !a || !T.trim() || (Me(a, T, c), _(""));
99532
- }, [a, T, Me, c]), se = Ve(
99542
+ }, [a, T, Me, c]), se = We(
99533
99543
  (Ae) => {
99534
99544
  Ae.key === "Enter" && !Ae.shiftKey && (Ae.preventDefault(), Z());
99535
99545
  },
99536
99546
  [Z]
99537
- ), ye = Ve(() => {
99547
+ ), ye = We(() => {
99538
99548
  D((Ae) => !Ae);
99539
- }, []), we = Ve(
99549
+ }, []), we = We(
99540
99550
  (Ae, Ue) => {
99541
99551
  Ae.currentTarget.style.height = "auto";
99542
- const $e = Math.min(
99552
+ const Ve = Math.min(
99543
99553
  Math.max(40, Ae.currentTarget.scrollHeight),
99544
99554
  Ue.length > 30 || Ue.includes(`
99545
99555
  `) ? 96 : 40
99546
99556
  );
99547
- Ae.currentTarget.style.height = `${$e}px`;
99557
+ Ae.currentTarget.style.height = `${Ve}px`;
99548
99558
  },
99549
99559
  []
99550
99560
  ), xe = jt(
@@ -99555,26 +99565,26 @@ const Mme = Gn(void 0), nQt = ({
99555
99565
  ), Se = jt(
99556
99566
  () => xe.findIndex((Ae) => Ae.id === a),
99557
99567
  [xe, a]
99558
- ), Le = Ve(() => {
99568
+ ), Le = We(() => {
99559
99569
  var Ae, Ue;
99560
99570
  if ((Ae = t.view) != null && Ae.dom && Se > 0) {
99561
- const $e = xe[Se - 1], We = t.view.dom.querySelector(
99562
- `[data-comment-id="${$e.id}"]`
99571
+ const Ve = xe[Se - 1], $e = t.view.dom.querySelector(
99572
+ `[data-comment-id="${Ve.id}"]`
99563
99573
  );
99564
- if (We) {
99565
- const Ke = t.view.posAtDOM(We, 0), pt = Ke + (((Ue = We.textContent) == null ? void 0 : Ue.length) ?? 0);
99566
- t.commands.setTextSelection({ from: Ke, to: pt }), ge($e.id || "");
99574
+ if ($e) {
99575
+ const Ke = t.view.posAtDOM($e, 0), ut = Ke + (((Ue = $e.textContent) == null ? void 0 : Ue.length) ?? 0);
99576
+ t.commands.setTextSelection({ from: Ke, to: ut }), ge(Ve.id || "");
99567
99577
  }
99568
99578
  }
99569
- }, [Se, xe, t, ge]), ve = Ve(() => {
99579
+ }, [Se, xe, t, ge]), ve = We(() => {
99570
99580
  var Ae, Ue;
99571
99581
  if ((Ae = t.view) != null && Ae.dom && Se < xe.length - 1) {
99572
- const $e = xe[Se + 1], We = t.view.dom.querySelector(
99573
- `[data-comment-id="${$e.id}"]`
99582
+ const Ve = xe[Se + 1], $e = t.view.dom.querySelector(
99583
+ `[data-comment-id="${Ve.id}"]`
99574
99584
  );
99575
- if (We) {
99576
- const Ke = t.view.posAtDOM(We, 0), pt = Ke + (((Ue = We.textContent) == null ? void 0 : Ue.length) ?? 0);
99577
- t.commands.setTextSelection({ from: Ke, to: pt }), ge($e.id || "");
99585
+ if ($e) {
99586
+ const Ke = t.view.posAtDOM($e, 0), ut = Ke + (((Ue = $e.textContent) == null ? void 0 : Ue.length) ?? 0);
99587
+ t.commands.setTextSelection({ from: Ke, to: ut }), ge(Ve.id || "");
99578
99588
  }
99579
99589
  }
99580
99590
  }, [Se, xe, t, ge]), Be = jt(
@@ -103013,20 +103023,20 @@ function t3e() {
103013
103023
  const we = mn({}, ["audio", "video", "img", "source", "image", "track"]);
103014
103024
  let xe = null;
103015
103025
  const Se = mn({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Le = "http://www.w3.org/1998/Math/MathML", ve = "http://www.w3.org/2000/svg", Be = "http://www.w3.org/1999/xhtml";
103016
- let Ae = Be, Ue = !1, $e = null;
103017
- const We = mn({}, [Le, ve, Be], _E);
103018
- let Ke = mn({}, ["mi", "mo", "mn", "ms", "mtext"]), pt = mn({}, ["annotation-xml"]);
103026
+ let Ae = Be, Ue = !1, Ve = null;
103027
+ const $e = mn({}, [Le, ve, Be], _E);
103028
+ let Ke = mn({}, ["mi", "mo", "mn", "ms", "mtext"]), ut = mn({}, ["annotation-xml"]);
103019
103029
  const Oe = mn({}, ["title", "style", "font", "a", "script"]);
103020
103030
  let ze = null;
103021
103031
  const Ge = ["application/xhtml+xml", "text/html"], at = "text/html";
103022
- let st = null, ft = null;
103032
+ let st = null, ht = null;
103023
103033
  const Mt = n.createElement("form"), At = function(Ce) {
103024
103034
  return Ce instanceof RegExp || Ce instanceof Function;
103025
103035
  }, Lt = function() {
103026
103036
  let Ce = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
103027
- if (!(ft && ft === Ce)) {
103037
+ if (!(ht && ht === Ce)) {
103028
103038
  if ((!Ce || typeof Ce != "object") && (Ce = {}), Ce = Ec(Ce), ze = // eslint-disable-next-line unicorn/prefer-includes
103029
- Ge.indexOf(Ce.PARSER_MEDIA_TYPE) === -1 ? at : Ce.PARSER_MEDIA_TYPE, st = ze === "application/xhtml+xml" ? _E : f8, q = el(Ce, "ALLOWED_TAGS") ? mn({}, Ce.ALLOWED_TAGS, st) : z, Y = el(Ce, "ALLOWED_ATTR") ? mn({}, Ce.ALLOWED_ATTR, st) : oe, $e = el(Ce, "ALLOWED_NAMESPACES") ? mn({}, Ce.ALLOWED_NAMESPACES, _E) : We, xe = el(Ce, "ADD_URI_SAFE_ATTR") ? mn(Ec(Se), Ce.ADD_URI_SAFE_ATTR, st) : Se, ye = el(Ce, "ADD_DATA_URI_TAGS") ? mn(Ec(we), Ce.ADD_DATA_URI_TAGS, st) : we, Z = el(Ce, "FORBID_CONTENTS") ? mn({}, Ce.FORBID_CONTENTS, st) : se, K = el(Ce, "FORBID_TAGS") ? mn({}, Ce.FORBID_TAGS, st) : Ec({}), ne = el(Ce, "FORBID_ATTR") ? mn({}, Ce.FORBID_ATTR, st) : Ec({}), H = el(Ce, "USE_PROFILES") ? Ce.USE_PROFILES : !1, ue = Ce.ALLOW_ARIA_ATTR !== !1, P = Ce.ALLOW_DATA_ATTR !== !1, J = Ce.ALLOW_UNKNOWN_PROTOCOLS || !1, re = Ce.ALLOW_SELF_CLOSE_IN_ATTR !== !1, fe = Ce.SAFE_FOR_TEMPLATES || !1, R = Ce.SAFE_FOR_XML !== !1, le = Ce.WHOLE_DOCUMENT || !1, X = Ce.RETURN_DOM || !1, de = Ce.RETURN_DOM_FRAGMENT || !1, Fe = Ce.RETURN_TRUSTED_TYPE || !1, ee = Ce.FORCE_BODY || !1, Me = Ce.SANITIZE_DOM !== !1, ge = Ce.SANITIZE_NAMED_PROPS || !1, me = Ce.KEEP_CONTENT !== !1, be = Ce.IN_PLACE || !1, $ = Ce.ALLOWED_URI_REGEXP || Qme, Ae = Ce.NAMESPACE || Be, Ke = Ce.MATHML_TEXT_INTEGRATION_POINTS || Ke, pt = Ce.HTML_INTEGRATION_POINTS || pt, te = Ce.CUSTOM_ELEMENT_HANDLING || {}, Ce.CUSTOM_ELEMENT_HANDLING && At(Ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (te.tagNameCheck = Ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Ce.CUSTOM_ELEMENT_HANDLING && At(Ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (te.attributeNameCheck = Ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Ce.CUSTOM_ELEMENT_HANDLING && typeof Ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (te.allowCustomizedBuiltInElements = Ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), fe && (P = !1), de && (X = !0), H && (q = mn({}, MY), Y = [], H.html === !0 && (mn(q, DY), mn(Y, EY)), H.svg === !0 && (mn(q, BE), mn(Y, PE), mn(Y, Tv)), H.svgFilters === !0 && (mn(q, OE), mn(Y, PE), mn(Y, Tv)), H.mathMl === !0 && (mn(q, RE), mn(Y, AY), mn(Y, Tv))), Ce.ADD_TAGS && (typeof Ce.ADD_TAGS == "function" ? ae.tagCheck = Ce.ADD_TAGS : (q === z && (q = Ec(q)), mn(q, Ce.ADD_TAGS, st))), Ce.ADD_ATTR && (typeof Ce.ADD_ATTR == "function" ? ae.attributeCheck = Ce.ADD_ATTR : (Y === oe && (Y = Ec(Y)), mn(Y, Ce.ADD_ATTR, st))), Ce.ADD_URI_SAFE_ATTR && mn(xe, Ce.ADD_URI_SAFE_ATTR, st), Ce.FORBID_CONTENTS && (Z === se && (Z = Ec(Z)), mn(Z, Ce.FORBID_CONTENTS, st)), me && (q["#text"] = !0), le && mn(q, ["html", "head", "body"]), q.table && (mn(q, ["tbody"]), delete K.tbody), Ce.TRUSTED_TYPES_POLICY) {
103039
+ Ge.indexOf(Ce.PARSER_MEDIA_TYPE) === -1 ? at : Ce.PARSER_MEDIA_TYPE, st = ze === "application/xhtml+xml" ? _E : f8, q = el(Ce, "ALLOWED_TAGS") ? mn({}, Ce.ALLOWED_TAGS, st) : z, Y = el(Ce, "ALLOWED_ATTR") ? mn({}, Ce.ALLOWED_ATTR, st) : oe, Ve = el(Ce, "ALLOWED_NAMESPACES") ? mn({}, Ce.ALLOWED_NAMESPACES, _E) : $e, xe = el(Ce, "ADD_URI_SAFE_ATTR") ? mn(Ec(Se), Ce.ADD_URI_SAFE_ATTR, st) : Se, ye = el(Ce, "ADD_DATA_URI_TAGS") ? mn(Ec(we), Ce.ADD_DATA_URI_TAGS, st) : we, Z = el(Ce, "FORBID_CONTENTS") ? mn({}, Ce.FORBID_CONTENTS, st) : se, K = el(Ce, "FORBID_TAGS") ? mn({}, Ce.FORBID_TAGS, st) : Ec({}), ne = el(Ce, "FORBID_ATTR") ? mn({}, Ce.FORBID_ATTR, st) : Ec({}), H = el(Ce, "USE_PROFILES") ? Ce.USE_PROFILES : !1, ue = Ce.ALLOW_ARIA_ATTR !== !1, P = Ce.ALLOW_DATA_ATTR !== !1, J = Ce.ALLOW_UNKNOWN_PROTOCOLS || !1, re = Ce.ALLOW_SELF_CLOSE_IN_ATTR !== !1, fe = Ce.SAFE_FOR_TEMPLATES || !1, R = Ce.SAFE_FOR_XML !== !1, le = Ce.WHOLE_DOCUMENT || !1, X = Ce.RETURN_DOM || !1, de = Ce.RETURN_DOM_FRAGMENT || !1, Fe = Ce.RETURN_TRUSTED_TYPE || !1, ee = Ce.FORCE_BODY || !1, Me = Ce.SANITIZE_DOM !== !1, ge = Ce.SANITIZE_NAMED_PROPS || !1, me = Ce.KEEP_CONTENT !== !1, be = Ce.IN_PLACE || !1, $ = Ce.ALLOWED_URI_REGEXP || Qme, Ae = Ce.NAMESPACE || Be, Ke = Ce.MATHML_TEXT_INTEGRATION_POINTS || Ke, ut = Ce.HTML_INTEGRATION_POINTS || ut, te = Ce.CUSTOM_ELEMENT_HANDLING || {}, Ce.CUSTOM_ELEMENT_HANDLING && At(Ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (te.tagNameCheck = Ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck), Ce.CUSTOM_ELEMENT_HANDLING && At(Ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (te.attributeNameCheck = Ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), Ce.CUSTOM_ELEMENT_HANDLING && typeof Ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (te.allowCustomizedBuiltInElements = Ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), fe && (P = !1), de && (X = !0), H && (q = mn({}, MY), Y = [], H.html === !0 && (mn(q, DY), mn(Y, EY)), H.svg === !0 && (mn(q, BE), mn(Y, PE), mn(Y, Tv)), H.svgFilters === !0 && (mn(q, OE), mn(Y, PE), mn(Y, Tv)), H.mathMl === !0 && (mn(q, RE), mn(Y, AY), mn(Y, Tv))), Ce.ADD_TAGS && (typeof Ce.ADD_TAGS == "function" ? ae.tagCheck = Ce.ADD_TAGS : (q === z && (q = Ec(q)), mn(q, Ce.ADD_TAGS, st))), Ce.ADD_ATTR && (typeof Ce.ADD_ATTR == "function" ? ae.attributeCheck = Ce.ADD_ATTR : (Y === oe && (Y = Ec(Y)), mn(Y, Ce.ADD_ATTR, st))), Ce.ADD_URI_SAFE_ATTR && mn(xe, Ce.ADD_URI_SAFE_ATTR, st), Ce.FORBID_CONTENTS && (Z === se && (Z = Ec(Z)), mn(Z, Ce.FORBID_CONTENTS, st)), me && (q["#text"] = !0), le && mn(q, ["html", "head", "body"]), q.table && (mn(q, ["tbody"]), delete K.tbody), Ce.TRUSTED_TYPES_POLICY) {
103030
103040
  if (typeof Ce.TRUSTED_TYPES_POLICY.createHTML != "function")
103031
103041
  throw d3('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
103032
103042
  if (typeof Ce.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -103034,7 +103044,7 @@ function t3e() {
103034
103044
  x = Ce.TRUSTED_TYPES_POLICY, k = x.createHTML("");
103035
103045
  } else
103036
103046
  x === void 0 && (x = lnn(h, o)), x !== null && typeof k == "string" && (k = x.createHTML(""));
103037
- Ii && Ii(Ce), ft = Ce;
103047
+ Ii && Ii(Ce), ht = Ce;
103038
103048
  }
103039
103049
  }, Nt = mn({}, [...BE, ...OE, ...Xtn]), ln = mn({}, [...RE, ...Jtn]), Tn = function(Ce) {
103040
103050
  let Ne = v(Ce);
@@ -103042,8 +103052,8 @@ function t3e() {
103042
103052
  namespaceURI: Ae,
103043
103053
  tagName: "template"
103044
103054
  });
103045
- const ht = f8(Ce.tagName), Yt = f8(Ne.tagName);
103046
- return $e[Ce.namespaceURI] ? Ce.namespaceURI === ve ? Ne.namespaceURI === Be ? ht === "svg" : Ne.namespaceURI === Le ? ht === "svg" && (Yt === "annotation-xml" || Ke[Yt]) : !!Nt[ht] : Ce.namespaceURI === Le ? Ne.namespaceURI === Be ? ht === "math" : Ne.namespaceURI === ve ? ht === "math" && pt[Yt] : !!ln[ht] : Ce.namespaceURI === Be ? Ne.namespaceURI === ve && !pt[Yt] || Ne.namespaceURI === Le && !Ke[Yt] ? !1 : !ln[ht] && (Oe[ht] || !Nt[ht]) : !!(ze === "application/xhtml+xml" && $e[Ce.namespaceURI]) : !1;
103055
+ const pt = f8(Ce.tagName), Yt = f8(Ne.tagName);
103056
+ return Ve[Ce.namespaceURI] ? Ce.namespaceURI === ve ? Ne.namespaceURI === Be ? pt === "svg" : Ne.namespaceURI === Le ? pt === "svg" && (Yt === "annotation-xml" || Ke[Yt]) : !!Nt[pt] : Ce.namespaceURI === Le ? Ne.namespaceURI === Be ? pt === "math" : Ne.namespaceURI === ve ? pt === "math" && ut[Yt] : !!ln[pt] : Ce.namespaceURI === Be ? Ne.namespaceURI === ve && !ut[Yt] || Ne.namespaceURI === Le && !Ke[Yt] ? !1 : !ln[pt] && (Oe[pt] || !Nt[pt]) : !!(ze === "application/xhtml+xml" && Ve[Ce.namespaceURI]) : !1;
103047
103057
  }, Dn = function(Ce) {
103048
103058
  u3(t.removed, {
103049
103059
  element: Ce
@@ -103077,12 +103087,12 @@ function t3e() {
103077
103087
  } catch {
103078
103088
  }
103079
103089
  }, dr = function(Ce) {
103080
- let Ne = null, ht = null;
103090
+ let Ne = null, pt = null;
103081
103091
  if (ee)
103082
103092
  Ce = "<remove></remove>" + Ce;
103083
103093
  else {
103084
103094
  const Un = IE(Ce, /^[\r\n\t ]+/);
103085
- ht = Un && Un[0];
103095
+ pt = Un && Un[0];
103086
103096
  }
103087
103097
  ze === "application/xhtml+xml" && Ae === Be && (Ce = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + Ce + "</body></html>");
103088
103098
  const Yt = x ? x.createHTML(Ce) : Ce;
@@ -103099,7 +103109,7 @@ function t3e() {
103099
103109
  }
103100
103110
  }
103101
103111
  const Ut = Ne.body || Ne.documentElement;
103102
- return Ce && ht && Ut.insertBefore(n.createTextNode(ht), Ut.childNodes[0] || null), Ae === Be ? T.call(Ne, le ? "html" : "body")[0] : le ? Ne.documentElement : Ut;
103112
+ return Ce && pt && Ut.insertBefore(n.createTextNode(pt), Ut.childNodes[0] || null), Ae === Be ? T.call(Ne, le ? "html" : "body")[0] : le ? Ne.documentElement : Ut;
103103
103113
  }, Q = function(Ce) {
103104
103114
  return C.call(
103105
103115
  Ce.ownerDocument || Ce,
@@ -103114,24 +103124,24 @@ function t3e() {
103114
103124
  return typeof s == "function" && Ce instanceof s;
103115
103125
  };
103116
103126
  function Ye(et, Ce, Ne) {
103117
- Sv(et, (ht) => {
103118
- ht.call(t, Ce, Ne, ft);
103127
+ Sv(et, (pt) => {
103128
+ pt.call(t, Ce, Ne, ht);
103119
103129
  });
103120
103130
  }
103121
103131
  const bt = function(Ce) {
103122
103132
  let Ne = null;
103123
103133
  if (Ye(I.beforeSanitizeElements, Ce, null), Ee(Ce))
103124
103134
  return Dn(Ce), !0;
103125
- const ht = st(Ce.nodeName);
103135
+ const pt = st(Ce.nodeName);
103126
103136
  if (Ye(I.uponSanitizeElement, Ce, {
103127
- tagName: ht,
103137
+ tagName: pt,
103128
103138
  allowedTags: q
103129
103139
  }), R && Ce.hasChildNodes() && !Pe(Ce.firstElementChild) && bi(/<[/\w!]/g, Ce.innerHTML) && bi(/<[/\w!]/g, Ce.textContent) || Ce.nodeType === h3.progressingInstruction || R && Ce.nodeType === h3.comment && bi(/<[/\w]/g, Ce.data))
103130
103140
  return Dn(Ce), !0;
103131
- if (!(ae.tagCheck instanceof Function && ae.tagCheck(ht)) && (!q[ht] || K[ht])) {
103132
- if (!K[ht] && yt(ht) && (te.tagNameCheck instanceof RegExp && bi(te.tagNameCheck, ht) || te.tagNameCheck instanceof Function && te.tagNameCheck(ht)))
103141
+ if (!(ae.tagCheck instanceof Function && ae.tagCheck(pt)) && (!q[pt] || K[pt])) {
103142
+ if (!K[pt] && yt(pt) && (te.tagNameCheck instanceof RegExp && bi(te.tagNameCheck, pt) || te.tagNameCheck instanceof Function && te.tagNameCheck(pt)))
103133
103143
  return !1;
103134
- if (me && !Z[ht]) {
103144
+ if (me && !Z[pt]) {
103135
103145
  const Yt = v(Ce) || Ce.parentNode, Ut = b(Ce) || Ce.childNodes;
103136
103146
  if (Ut && Yt) {
103137
103147
  const Un = Ut.length;
@@ -103143,13 +103153,13 @@ function t3e() {
103143
103153
  }
103144
103154
  return Dn(Ce), !0;
103145
103155
  }
103146
- return Ce instanceof l && !Tn(Ce) || (ht === "noscript" || ht === "noembed" || ht === "noframes") && bi(/<\/no(script|embed|frames)/i, Ce.innerHTML) ? (Dn(Ce), !0) : (fe && Ce.nodeType === h3.text && (Ne = Ce.textContent, Sv([S, L, M], (Yt) => {
103156
+ return Ce instanceof l && !Tn(Ce) || (pt === "noscript" || pt === "noembed" || pt === "noframes") && bi(/<\/no(script|embed|frames)/i, Ce.innerHTML) ? (Dn(Ce), !0) : (fe && Ce.nodeType === h3.text && (Ne = Ce.textContent, Sv([S, L, M], (Yt) => {
103147
103157
  Ne = c3(Ne, Yt, " ");
103148
103158
  }), Ce.textContent !== Ne && (u3(t.removed, {
103149
103159
  element: Ce.cloneNode()
103150
103160
  }), Ce.textContent = Ne)), Ye(I.afterSanitizeElements, Ce, null), !1);
103151
- }, Dt = function(Ce, Ne, ht) {
103152
- if (Me && (Ne === "id" || Ne === "name") && (ht in n || ht in Mt))
103161
+ }, Dt = function(Ce, Ne, pt) {
103162
+ if (Me && (Ne === "id" || Ne === "name") && (pt in n || pt in Mt))
103153
103163
  return !1;
103154
103164
  if (!(P && !ne[Ne] && bi(j, Ne))) {
103155
103165
  if (!(ue && bi(N, Ne))) {
@@ -103161,13 +103171,13 @@ function t3e() {
103161
103171
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
103162
103172
  !(yt(Ce) && (te.tagNameCheck instanceof RegExp && bi(te.tagNameCheck, Ce) || te.tagNameCheck instanceof Function && te.tagNameCheck(Ce)) && (te.attributeNameCheck instanceof RegExp && bi(te.attributeNameCheck, Ne) || te.attributeNameCheck instanceof Function && te.attributeNameCheck(Ne, Ce)) || // Alternative, second condition checks if it's an `is`-attribute, AND
103163
103173
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
103164
- Ne === "is" && te.allowCustomizedBuiltInElements && (te.tagNameCheck instanceof RegExp && bi(te.tagNameCheck, ht) || te.tagNameCheck instanceof Function && te.tagNameCheck(ht)))
103174
+ Ne === "is" && te.allowCustomizedBuiltInElements && (te.tagNameCheck instanceof RegExp && bi(te.tagNameCheck, pt) || te.tagNameCheck instanceof Function && te.tagNameCheck(pt)))
103165
103175
  ) return !1;
103166
103176
  } else if (!xe[Ne]) {
103167
- if (!bi($, c3(ht, B, ""))) {
103168
- if (!((Ne === "src" || Ne === "xlink:href" || Ne === "href") && Ce !== "script" && Gtn(ht, "data:") === 0 && ye[Ce])) {
103169
- if (!(J && !bi(O, c3(ht, B, "")))) {
103170
- if (ht)
103177
+ if (!bi($, c3(pt, B, ""))) {
103178
+ if (!((Ne === "src" || Ne === "xlink:href" || Ne === "href") && Ce !== "script" && Gtn(pt, "data:") === 0 && ye[Ce])) {
103179
+ if (!(J && !bi(O, c3(pt, B, "")))) {
103180
+ if (pt)
103171
103181
  return !1;
103172
103182
  }
103173
103183
  }
@@ -103186,7 +103196,7 @@ function t3e() {
103186
103196
  } = Ce;
103187
103197
  if (!Ne || Ee(Ce))
103188
103198
  return;
103189
- const ht = {
103199
+ const pt = {
103190
103200
  attrName: "",
103191
103201
  attrValue: "",
103192
103202
  keepAttr: !0,
@@ -103201,7 +103211,7 @@ function t3e() {
103201
103211
  value: yi
103202
103212
  } = Ut, q1 = st(Un), Vm = yi;
103203
103213
  let uo = Un === "value" ? Vm : Ztn(Vm);
103204
- if (ht.attrName = q1, ht.attrValue = uo, ht.keepAttr = !0, ht.forceKeepAttr = void 0, Ye(I.uponSanitizeAttribute, Ce, ht), uo = ht.attrValue, ge && (q1 === "id" || q1 === "name") && (zn(Un, Ce), uo = pe + uo), R && bi(/((--!?|])>)|<\/(style|title|textarea)/i, uo)) {
103214
+ if (pt.attrName = q1, pt.attrValue = uo, pt.keepAttr = !0, pt.forceKeepAttr = void 0, Ye(I.uponSanitizeAttribute, Ce, pt), uo = pt.attrValue, ge && (q1 === "id" || q1 === "name") && (zn(Un, Ce), uo = pe + uo), R && bi(/((--!?|])>)|<\/(style|title|textarea)/i, uo)) {
103205
103215
  zn(Un, Ce);
103206
103216
  continue;
103207
103217
  }
@@ -103209,9 +103219,9 @@ function t3e() {
103209
103219
  zn(Un, Ce);
103210
103220
  continue;
103211
103221
  }
103212
- if (ht.forceKeepAttr)
103222
+ if (pt.forceKeepAttr)
103213
103223
  continue;
103214
- if (!ht.keepAttr) {
103224
+ if (!pt.keepAttr) {
103215
103225
  zn(Un, Ce);
103216
103226
  continue;
103217
103227
  }
@@ -103248,13 +103258,13 @@ function t3e() {
103248
103258
  Ye(I.afterSanitizeAttributes, Ce, null);
103249
103259
  }, bn = function et(Ce) {
103250
103260
  let Ne = null;
103251
- const ht = Q(Ce);
103252
- for (Ye(I.beforeSanitizeShadowDOM, Ce, null); Ne = ht.nextNode(); )
103261
+ const pt = Q(Ce);
103262
+ for (Ye(I.beforeSanitizeShadowDOM, Ce, null); Ne = pt.nextNode(); )
103253
103263
  Ye(I.uponSanitizeShadowNode, Ne, null), bt(Ne), gt(Ne), Ne.content instanceof i && et(Ne.content);
103254
103264
  Ye(I.afterSanitizeShadowDOM, Ce, null);
103255
103265
  };
103256
103266
  return t.sanitize = function(et) {
103257
- let Ce = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Ne = null, ht = null, Yt = null, Ut = null;
103267
+ let Ce = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Ne = null, pt = null, Yt = null, Ut = null;
103258
103268
  if (Ue = !et, Ue && (et = "<!-->"), typeof et != "string" && !Pe(et))
103259
103269
  if (typeof et.toString == "function") {
103260
103270
  if (et = et.toString(), typeof et != "string")
@@ -103270,7 +103280,7 @@ function t3e() {
103270
103280
  throw d3("root node is forbidden and cannot be sanitized in-place");
103271
103281
  }
103272
103282
  } else if (et instanceof s)
103273
- Ne = dr("<!---->"), ht = Ne.ownerDocument.importNode(et, !0), ht.nodeType === h3.element && ht.nodeName === "BODY" || ht.nodeName === "HTML" ? Ne = ht : Ne.appendChild(ht);
103283
+ Ne = dr("<!---->"), pt = Ne.ownerDocument.importNode(et, !0), pt.nodeType === h3.element && pt.nodeName === "BODY" || pt.nodeName === "HTML" ? Ne = pt : Ne.appendChild(pt);
103274
103284
  else {
103275
103285
  if (!X && !fe && !le && // eslint-disable-next-line unicorn/prefer-includes
103276
103286
  et.indexOf("<") === -1)
@@ -103301,11 +103311,11 @@ function t3e() {
103301
103311
  let et = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
103302
103312
  Lt(et), ce = !0;
103303
103313
  }, t.clearConfig = function() {
103304
- ft = null, ce = !1;
103314
+ ht = null, ce = !1;
103305
103315
  }, t.isValidAttribute = function(et, Ce, Ne) {
103306
- ft || Lt({});
103307
- const ht = st(et), Yt = st(Ce);
103308
- return Dt(ht, Yt, Ne);
103316
+ ht || Lt({});
103317
+ const pt = st(et), Yt = st(Ce);
103318
+ return Dt(pt, Yt, Ne);
103309
103319
  }, t.addHook = function(et, Ce) {
103310
103320
  typeof Ce == "function" && u3(I[et], Ce);
103311
103321
  }, t.removeHook = function(et, Ce) {
@@ -106528,10 +106538,8 @@ ${v.map((x) => ` - ${x}`).join(`
106528
106538
  }
106529
106539
  }),
106530
106540
  new Na({
106531
- find: /(\S*)~((?:[^~]|\\~)+)~$/,
106541
+ find: /(\S*)~((?:[^~]|\\~)+)~/,
106532
106542
  handler: ({ state: r, range: o, match: i }) => {
106533
- if (/^\s|\s$/.test(i[2]))
106534
- return null;
106535
106543
  const { tr: a } = r, s = o.from + i[1].length, l = o.to, u = i[2].replace(/\\~/g, "~");
106536
106544
  a.replaceWith(
106537
106545
  s,
@@ -106584,7 +106592,7 @@ function Oon(e) {
106584
106592
  e.match(/\*\*(.*?)\*\*/g) !== null || // Bold
106585
106593
  e.match(/\*(.*?)\*/g) !== null || // Italic
106586
106594
  e.match(/`{1,3}[^`]+`{1,3}/g) !== null || e.match(/<sup>(.*?)<\/sup>/g) !== null || e.match(/<sub>(.*?)<\/sub>/g) !== null || e.match(/\^[^\s^]+\^/g) !== null || // New superscript syntax
106587
- e.match(/~([^\s~](?:[^~]*[^\s~])?)~/g) !== null || // New subscript syntax
106595
+ e.match(/~(.*?)~/g) !== null || // New subscript syntax
106588
106596
  e.match(/^===\s*$/m) !== null;
106589
106597
  }
106590
106598
  function Ron(e, t) {
@@ -106682,7 +106690,7 @@ async function j2(e, t, n) {
106682
106690
  }
106683
106691
  }
106684
106692
  o = s.body.innerHTML;
106685
- const p = /<(sup|sub)>(.*?)<\/\1>/g, g = /\^([^\s^]+)\^/g, m = /~([^\s~](?:[^~]*[^\s~])?)~/g, y = /===\s*$/gm;
106693
+ const p = /<(sup|sub)>(.*?)<\/\1>/g, g = /\^([^\s^]+)\^/g, m = /~(.*?)~/g, y = /===\s*$/gm;
106686
106694
  o = o.replace(p, (I) => `${I}`), o = o.replace(
106687
106695
  g,
106688
106696
  '<sup data-type="sup">$1</sup>'
@@ -107835,7 +107843,7 @@ const $E = (e) => {
107835
107843
  setIsLinkPopupOpen: o,
107836
107844
  onError: i
107837
107845
  }) => {
107838
- const [a, s] = Re(t.getAttributes("link").href), l = Ve(() => {
107846
+ const [a, s] = Re(t.getAttributes("link").href), l = We(() => {
107839
107847
  if (a === "" || a === void 0) {
107840
107848
  t.chain().focus().extendMarkRange("link").unsetLink().run();
107841
107849
  return;
@@ -109025,7 +109033,7 @@ const $E = (e) => {
109025
109033
  const N = m.current.closest('[role="dialog"]');
109026
109034
  N && N.remove();
109027
109035
  }
109028
- }, M = Ve(() => {
109036
+ }, M = We(() => {
109029
109037
  if (!(o != null && o.length)) return null;
109030
109038
  let j = o.sort(
109031
109039
  (N, O) => new Date(N.createdAt || /* @__PURE__ */ new Date()).getTime() - new Date(O.createdAt || /* @__PURE__ */ new Date()).getTime()
@@ -109872,12 +109880,12 @@ const rin = /* @__PURE__ */ y0(nin), y3 = () => {
109872
109880
  });
109873
109881
  }), !h;
109874
109882
  }, P3e = (e) => {
109875
- const t = Ve(
109883
+ const t = We(
109876
109884
  (o) => {
109877
109885
  e && e.chain().focus().setFontSize(o).run();
109878
109886
  },
109879
109887
  [e]
109880
- ), n = Ve(
109888
+ ), n = We(
109881
109889
  (o) => {
109882
109890
  if (!e) return;
109883
109891
  const { from: i, to: a } = e.state.selection;
@@ -110717,8 +110725,8 @@ class Z9 extends Vt {
110717
110725
  constructor(n) {
110718
110726
  const { $from: r, $to: o } = n;
110719
110727
  super(r, o);
110720
- ut(this, "_$from");
110721
- ut(this, "_$to");
110728
+ ct(this, "_$from");
110729
+ ct(this, "_$to");
110722
110730
  this._$from = r, this._$to = o;
110723
110731
  }
110724
110732
  get $from() {
@@ -110908,16 +110916,16 @@ pin.displayName = "Toolbar.Divider";
110908
110916
  const gin = {
110909
110917
  Wrapper: W3e
110910
110918
  }, min = ({ editor: e, appendTo: t }) => {
110911
- const n = Ve(() => hin(e, "columns"), [e]), r = Ve(() => {
110919
+ const n = We(() => hin(e, "columns"), [e]), r = We(() => {
110912
110920
  const l = !e.isEditable;
110913
110921
  return e.isActive("columns") && !l;
110914
- }, [e]), o = Ve(() => {
110922
+ }, [e]), o = We(() => {
110915
110923
  e.chain().focus().setLayout(of.AlignLeft).run();
110916
- }, [e]), i = Ve(() => {
110924
+ }, [e]), i = We(() => {
110917
110925
  e.chain().focus().setLayout(of.AlignRight).run();
110918
- }, [e]), a = Ve(() => {
110926
+ }, [e]), a = We(() => {
110919
110927
  e.chain().focus().setLayout(of.AlignCenter).run();
110920
- }, [e]), s = Ve(() => {
110928
+ }, [e]), s = We(() => {
110921
110929
  e.chain().focus().deleteNode("columns").run();
110922
110930
  }, [e]);
110923
110931
  return /* @__PURE__ */ E.jsx(
@@ -111067,7 +111075,7 @@ function bin({ children: e, isPresent: t }) {
111067
111075
  }, [t]), E.jsx(yin, { isPresent: t, childRef: r, sizeRef: o, children: W.cloneElement(e, { ref: r }) });
111068
111076
  }
111069
111077
  const vin = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: o, presenceAffectsLayout: i, mode: a }) => {
111070
- const s = JP(xin), l = Wg(), u = Ve((d) => {
111078
+ const s = JP(xin), l = Wg(), u = We((d) => {
111071
111079
  s.set(d, !0);
111072
111080
  for (const f of s.values())
111073
111081
  if (!f)
@@ -111106,7 +111114,7 @@ function G3e(e = !0) {
111106
111114
  He(() => {
111107
111115
  e && o(i);
111108
111116
  }, [e]);
111109
- const a = Ve(() => e && r && r(i), [i, r, e]);
111117
+ const a = We(() => e && r && r(i), [i, r, e]);
111110
111118
  return !n && r ? [!1, a] : [!0];
111111
111119
  }
111112
111120
  const Nv = (e) => e.key || "";
@@ -111383,7 +111391,7 @@ function i2(e) {
111383
111391
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
111384
111392
  }
111385
111393
  function Lin(e, t, n) {
111386
- return Ve(
111394
+ return We(
111387
111395
  (r) => {
111388
111396
  r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : i2(n) && (n.current = r));
111389
111397
  },
@@ -116244,7 +116252,7 @@ const Uun = (e, t) => az(e) ? new zun(t) : new Pun(t, {
116244
116252
  /* @__PURE__ */ E.jsx(
116245
116253
  "span",
116246
116254
  {
116247
- className: "text-body-sm line-clamp-1",
116255
+ className: "text-body-sm line-clamp-1 break-all",
116248
116256
  style: {
116249
116257
  fontFamily: Y == null ? void 0 : Y.value
116250
116258
  },
@@ -116287,10 +116295,15 @@ const Uun = (e, t) => az(e) ? new zun(t) : new Pun(t, {
116287
116295
  anchorTrigger: /* @__PURE__ */ E.jsxs(
116288
116296
  "button",
116289
116297
  {
116290
- className: "bg-transparent hover:!color-bg-default-hover rounded gap-2 p-2 flex items-center justify-center w-[83px]",
116298
+ className: "bg-transparent hover:!color-bg-default-hover rounded gap-2 p-2 flex items-center justify-between w-[108px]",
116291
116299
  onClick: () => y(lt.HEADING),
116292
116300
  children: [
116293
- /* @__PURE__ */ E.jsx("span", { className: "text-body-sm line-clamp-1", children: e != null && e.isActive("heading", { level: 1 }) ? "Heading 1" : e != null && e.isActive("heading", { level: 2 }) ? "Heading 2" : e != null && e.isActive("heading", { level: 3 }) ? "Heading 3" : "Text" }),
116301
+ /* @__PURE__ */ E.jsxs("span", { className: "text-body-sm line-clamp-1", children: [
116302
+ (e == null ? void 0 : e.isActive("heading", { level: 1 })) && "Heading 1",
116303
+ (e == null ? void 0 : e.isActive("heading", { level: 2 })) && "Heading 2",
116304
+ (e == null ? void 0 : e.isActive("heading", { level: 3 })) && "Heading 3",
116305
+ !(e != null && e.isActive("heading")) && "Text"
116306
+ ] }),
116294
116307
  /* @__PURE__ */ E.jsx(qe, { name: "ChevronDown", size: "sm" })
116295
116308
  ]
116296
116309
  }
@@ -122965,7 +122978,7 @@ class n0n {
122965
122978
  ).filter((r) => r !== null), n = this._tr.replace(
122966
122979
  0,
122967
122980
  this.prosemirrorView.state.doc.content.size,
122968
- new dt(Ze.from(t), 0, 0)
122981
+ new ft(Ze.from(t), 0, 0)
122969
122982
  );
122970
122983
  n.setMeta(jr, { snapshot: null, prevSnapshot: null }), this.prosemirrorView.dispatch(n);
122971
122984
  });
@@ -122982,7 +122995,7 @@ class n0n {
122982
122995
  ).filter((o) => o !== null), r = this._tr.replace(
122983
122996
  0,
122984
122997
  this.prosemirrorView.state.doc.content.size,
122985
- new dt(Ze.from(n), 0, 0)
122998
+ new ft(Ze.from(n), 0, 0)
122986
122999
  );
122987
123000
  if (t) {
122988
123001
  const o = Yc(jl(t.anchor, 0), r.doc.content.size), i = Yc(jl(t.head, 0), r.doc.content.size);
@@ -123047,7 +123060,7 @@ class n0n {
123047
123060
  ) : null).filter((d) => d !== null), c = this._tr.replace(
123048
123061
  0,
123049
123062
  this.prosemirrorView.state.doc.content.size,
123050
- new dt(Ze.from(u), 0, 0)
123063
+ new ft(Ze.from(u), 0, 0)
123051
123064
  );
123052
123065
  this.prosemirrorView.dispatch(
123053
123066
  c.setMeta(jr, { isChangeOrigin: !0 })
@@ -123093,7 +123106,7 @@ class n0n {
123093
123106
  let a = this._tr.replace(
123094
123107
  0,
123095
123108
  this.prosemirrorView.state.doc.content.size,
123096
- new dt(Ze.from(i), 0, 0)
123109
+ new ft(Ze.from(i), 0, 0)
123097
123110
  );
123098
123111
  e0n(a, this.beforeTransactionSelection, this), a = a.setMeta(jr, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof Q4e }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && a.scrollIntoView(), this.prosemirrorView.dispatch(a);
123099
123112
  });
@@ -126455,7 +126468,7 @@ class zr extends Vt {
126455
126468
  return zr.valid(r) ? new zr(r) : Vt.near(r);
126456
126469
  }
126457
126470
  content() {
126458
- return dt.empty;
126471
+ return ft.empty;
126459
126472
  }
126460
126473
  eq(t) {
126461
126474
  return t instanceof zr && t.head == this.head;
@@ -126630,7 +126643,7 @@ function Ufn(e, t) {
126630
126643
  let o = Ze.empty;
126631
126644
  for (let a = r.length - 1; a >= 0; a--)
126632
126645
  o = Ze.from(r[a].createAndFill(null, o));
126633
- let i = e.state.tr.replace(n.pos, n.pos, new dt(o, 0, 0));
126646
+ let i = e.state.tr.replace(n.pos, n.pos, new ft(o, 0, 0));
126634
126647
  return i.setSelection(kt.near(i.doc.resolve(n.pos + 1))), e.dispatch(i), !1;
126635
126648
  }
126636
126649
  function Hfn(e) {
@@ -129742,7 +129755,7 @@ const zA = _e.use || // This extra generic is to avoid TypeScript mixing up the
129742
129755
  }, [
129743
129756
  r,
129744
129757
  y
129745
- ]), B = u6.useSyncExternalStore(Ve(
129758
+ ]), B = u6.useSyncExternalStore(We(
129746
129759
  (fe) => S(y, (R, le) => {
129747
129760
  N(le, R) || fe();
129748
129761
  }),
@@ -129751,7 +129764,7 @@ const zA = _e.use || // This extra generic is to avoid TypeScript mixing up the
129751
129764
  r,
129752
129765
  y
129753
129766
  ]
129754
- ), O[0], O[1]), U = !v.current, $ = h[y] && h[y].length > 0, q = B.data, z = Mn(q) ? j && k6e(j) ? zA(j) : j : q, Y = B.error, oe = Qe(z), te = f ? Mn(q) ? Mn(oe.current) ? z : oe.current : q : z, K = $ && !Mn(Y) ? !1 : U && !Mn(s) ? s : D().isPaused() ? !1 : i ? Mn(z) ? !1 : l : Mn(z) || l, ne = !!(y && t && U && K), ae = Mn(B.isValidating) ? ne : B.isValidating, ue = Mn(B.isLoading) ? ne : B.isLoading, P = Ve(
129767
+ ), O[0], O[1]), U = !v.current, $ = h[y] && h[y].length > 0, q = B.data, z = Mn(q) ? j && k6e(j) ? zA(j) : j : q, Y = B.error, oe = Qe(z), te = f ? Mn(q) ? Mn(oe.current) ? z : oe.current : q : z, K = $ && !Mn(Y) ? !1 : U && !Mn(s) ? s : D().isPaused() ? !1 : i ? Mn(z) ? !1 : l : Mn(z) || l, ne = !!(y && t && U && K), ae = Mn(B.isValidating) ? ne : B.isValidating, ue = Mn(B.isLoading) ? ne : B.isLoading, P = We(
129755
129768
  async (fe) => {
129756
129769
  const R = F.current;
129757
129770
  if (!y || !R || x.current || D().isPaused())
@@ -129814,7 +129827,7 @@ const zA = _e.use || // This extra generic is to avoid TypeScript mixing up the
129814
129827
  y,
129815
129828
  r
129816
129829
  ]
129817
- ), J = Ve(
129830
+ ), J = We(
129818
129831
  // Use callback to make sure `keyRef.current` returns latest result every time
129819
129832
  (...fe) => C6e(r, k.current, ...fe),
129820
129833
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -130043,7 +130056,7 @@ const mgn = ({
130043
130056
  n.off("update", y), l.current && (cancelAnimationFrame(l.current), l.current = null);
130044
130057
  };
130045
130058
  }, [n]);
130046
- const u = Ve(() => {
130059
+ const u = We(() => {
130047
130060
  const { doc: y } = n.state, b = y.content.content.filter(
130048
130061
  (C) => {
130049
130062
  var D, T, _;
@@ -130062,7 +130075,7 @@ const mgn = ({
130062
130075
  headingCount: b
130063
130076
  };
130064
130077
  return o.current = F, i.current = v, bp = F, kQ = x, F;
130065
- }, [n]), c = Ve((y) => {
130078
+ }, [n]), c = We((y) => {
130066
130079
  var F;
130067
130080
  const { doc: b } = y.state, v = /* @__PURE__ */ new Map(), x = [];
130068
130081
  let k = 0;
@@ -130157,7 +130170,7 @@ const mgn = ({
130157
130170
  u,
130158
130171
  e.content,
130159
130172
  a
130160
- ]), m = Ve(() => {
130173
+ ]), m = We(() => {
130161
130174
  var C;
130162
130175
  if (!h) return;
130163
130176
  const y = t(), { headingMap: b } = u(), v = b.get(h);
@@ -130243,7 +130256,7 @@ const mgn = ({
130243
130256
  }
130244
130257
  };
130245
130258
  function bgn(e) {
130246
- const t = Qe(!1), n = Qe(e), r = Ve(() => {
130259
+ const t = Qe(!1), n = Qe(e), r = We(() => {
130247
130260
  if (!n.current) {
130248
130261
  t.current = !1;
130249
130262
  return;
@@ -130272,10 +130285,10 @@ function bgn(e) {
130272
130285
  );
130273
130286
  }
130274
130287
  const vgn = (e, t, n) => {
130275
- const r = bgn(e), o = Ve(() => {
130288
+ const r = bgn(e), o = We(() => {
130276
130289
  const l = e.chain();
130277
130290
  l.setNodeSelection(n).unsetAllMarks(), (t == null ? void 0 : t.type.name) !== "paragraph" && l.setParagraph(), l.run();
130278
- }, [e, n, t == null ? void 0 : t.type.name]), i = Ve(() => {
130291
+ }, [e, n, t == null ? void 0 : t.type.name]), i = We(() => {
130279
130292
  if (r)
130280
130293
  return;
130281
130294
  e.commands.setNodeSelection(n);
@@ -130284,12 +130297,12 @@ const vgn = (e, t, n) => {
130284
130297
  n + ((t == null ? void 0 : t.nodeSize) || 0),
130285
130298
  u.toJSON()
130286
130299
  ).run();
130287
- }, [e, n, t == null ? void 0 : t.nodeSize]), a = Ve(() => {
130300
+ }, [e, n, t == null ? void 0 : t.nodeSize]), a = We(() => {
130288
130301
  e.chain().setMeta("hideDragHandle", !0).setNodeSelection(n).run(), document.execCommand("copy"), ld({
130289
130302
  title: "Copied to clipboard",
130290
130303
  variant: "success"
130291
130304
  });
130292
- }, [e, n]), s = Ve(() => {
130305
+ }, [e, n]), s = We(() => {
130293
130306
  ygn(e, n), e.chain().setMeta("hideDragHandle", !0).setNodeSelection(n).deleteSelection().run();
130294
130307
  }, [e, n]);
130295
130308
  return {
@@ -133621,7 +133634,7 @@ const Xgn = _e.memo(
133621
133634
  node: e,
133622
133635
  getPos: t,
133623
133636
  editor: n
133624
- }), C = Ve(() => {
133637
+ }), C = We(() => {
133625
133638
  const { content: P } = e.content, J = P[0].attrs.id, re = P[0].content.content[0].text, fe = bU(re), R = J.replace(/-/g, "").substring(0, 8), le = `heading=${fe}-${R}`;
133626
133639
  i == null || i(le);
133627
133640
  }, [e.content, i]), D = jt(() => {
@@ -133687,31 +133700,31 @@ const Xgn = _e.memo(
133687
133700
  }, L = (P, J) => {
133688
133701
  const re = t(), fe = re + e.nodeSize;
133689
133702
  P === "img" ? n == null || n.chain().focus(re).deleteRange({ from: re === 0 ? re : re + 1, to: fe }).setMedia({ src: J, "media-type": "img" }).run() : P !== "secure-img" && (n == null || n.chain().focus(re).deleteRange({ from: re === 0 ? re : re + 1, to: fe }).setIframe({ src: J, width: 640, height: 360 }).run());
133690
- }, M = Ve((P) => {
133703
+ }, M = We((P) => {
133691
133704
  P.altKey ? N() : j();
133692
- }, []), j = Ve(() => {
133705
+ }, []), j = We(() => {
133693
133706
  const P = t() + e.nodeSize;
133694
133707
  n.commands.insertContentAt(P, {
133695
133708
  type: "dBlock",
133696
133709
  content: [{ type: "paragraph" }]
133697
133710
  });
133698
- }, [t, n, e.nodeSize]), N = Ve(() => {
133711
+ }, [t, n, e.nodeSize]), N = We(() => {
133699
133712
  const P = t();
133700
133713
  n.commands.insertContentAt(P, {
133701
133714
  type: "dBlock",
133702
133715
  content: [{ type: "paragraph" }]
133703
133716
  });
133704
- }, [t, n]), O = Ve(
133717
+ }, [t, n]), O = We(
133705
133718
  (P) => {
133706
133719
  P.altKey ? r() : l((J) => !J);
133707
133720
  },
133708
133721
  [r]
133709
- ), B = Ve(() => {
133722
+ ), B = We(() => {
133710
133723
  S();
133711
133724
  }, [T, I]), U = jt(
133712
133725
  () => yU(B, 1e3),
133713
133726
  [B]
133714
- ), $ = Ve(
133727
+ ), $ = We(
133715
133728
  (P) => {
133716
133729
  const J = t() + e.nodeSize;
133717
133730
  n.commands.insertContentAt(J - 4, P);
@@ -133723,7 +133736,7 @@ const Xgn = _e.memo(
133723
133736
  ), z = jt(
133724
133737
  () => Fgn($),
133725
133738
  [$]
133726
- ), Y = Ve(() => {
133739
+ ), Y = We(() => {
133727
133740
  c(!u), f(u ? 2 : z.length);
133728
133741
  }, [u, z.length]), oe = jt(() => {
133729
133742
  switch (F) {
@@ -134356,12 +134369,12 @@ function jQ(e, t, n, r, o, i) {
134356
134369
  }
134357
134370
  class Jgn {
134358
134371
  constructor(t, n) {
134359
- ut(this, "node");
134360
- ut(this, "cellMinWidth");
134361
- ut(this, "dom");
134362
- ut(this, "table");
134363
- ut(this, "colgroup");
134364
- ut(this, "contentDOM");
134372
+ ct(this, "node");
134373
+ ct(this, "cellMinWidth");
134374
+ ct(this, "dom");
134375
+ ct(this, "table");
134376
+ ct(this, "colgroup");
134377
+ ct(this, "contentDOM");
134365
134378
  this.node = t, this.cellMinWidth = n, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.colgroup = this.table.appendChild(document.createElement("colgroup")), jQ(t, this.colgroup, this.table, n), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
134366
134379
  }
134367
134380
  update(t) {
@@ -135887,8 +135900,8 @@ function B3n(e, t) {
135887
135900
  ve === void 0 && (ve = !1), F.style.pointerEvents = x.props.interactive && !ve ? "" : "none", F.style.zIndex = "" + x.props.zIndex;
135888
135901
  }
135889
135902
  function B(ve, Be, Ae) {
135890
- if (Ae === void 0 && (Ae = !0), D.forEach(function($e) {
135891
- $e[ve] && $e[ve].apply($e, Be);
135903
+ if (Ae === void 0 && (Ae = !0), D.forEach(function(Ve) {
135904
+ Ve[ve] && Ve[ve].apply(Ve, Be);
135892
135905
  }), Ae) {
135893
135906
  var Ue;
135894
135907
  (Ue = x.props)[ve].apply(Ue, Be);
@@ -135898,13 +135911,13 @@ function B3n(e, t) {
135898
135911
  var ve = x.props.aria;
135899
135912
  if (ve.content) {
135900
135913
  var Be = "aria-" + ve.content, Ae = F.id, Ue = Up(x.props.triggerTarget || e);
135901
- Ue.forEach(function($e) {
135902
- var We = $e.getAttribute(Be);
135914
+ Ue.forEach(function(Ve) {
135915
+ var $e = Ve.getAttribute(Be);
135903
135916
  if (x.state.isVisible)
135904
- $e.setAttribute(Be, We ? We + " " + Ae : Ae);
135917
+ Ve.setAttribute(Be, $e ? $e + " " + Ae : Ae);
135905
135918
  else {
135906
- var Ke = We && We.replace(Ae, "").trim();
135907
- Ke ? $e.setAttribute(Be, Ke) : $e.removeAttribute(Be);
135919
+ var Ke = $e && $e.replace(Ae, "").trim();
135920
+ Ke ? Ve.setAttribute(Be, Ke) : Ve.removeAttribute(Be);
135908
135921
  }
135909
135922
  });
135910
135923
  }
@@ -135963,8 +135976,8 @@ function B3n(e, t) {
135963
135976
  }
135964
135977
  function ue(ve, Be) {
135965
135978
  var Ae = j().box;
135966
- function Ue($e) {
135967
- $e.target === Ae && ($A(Ae, "remove", Ue), Be());
135979
+ function Ue(Ve) {
135980
+ Ve.target === Ae && ($A(Ae, "remove", Ue), Be());
135968
135981
  }
135969
135982
  if (ve === 0)
135970
135983
  return Be();
@@ -135973,9 +135986,9 @@ function B3n(e, t) {
135973
135986
  function P(ve, Be, Ae) {
135974
135987
  Ae === void 0 && (Ae = !1);
135975
135988
  var Ue = Up(x.props.triggerTarget || e);
135976
- Ue.forEach(function($e) {
135977
- $e.addEventListener(ve, Be, Ae), h.push({
135978
- node: $e,
135989
+ Ue.forEach(function(Ve) {
135990
+ Ve.addEventListener(ve, Be, Ae), h.push({
135991
+ node: Ve,
135979
135992
  eventType: ve,
135980
135993
  handler: Be,
135981
135994
  options: Ae
@@ -136004,27 +136017,27 @@ function B3n(e, t) {
136004
136017
  }
136005
136018
  function re() {
136006
136019
  h.forEach(function(ve) {
136007
- var Be = ve.node, Ae = ve.eventType, Ue = ve.handler, $e = ve.options;
136008
- Be.removeEventListener(Ae, Ue, $e);
136020
+ var Be = ve.node, Ae = ve.eventType, Ue = ve.handler, Ve = ve.options;
136021
+ Be.removeEventListener(Ae, Ue, Ve);
136009
136022
  }), h = [];
136010
136023
  }
136011
136024
  function fe(ve) {
136012
136025
  var Be, Ae = !1;
136013
136026
  if (!(!x.state.isEnabled || ee(ve) || s)) {
136014
136027
  var Ue = ((Be = c) == null ? void 0 : Be.type) === "focus";
136015
- c = ve, g = ve.currentTarget, $(), !x.state.isVisible && y3n(ve) && Jv.forEach(function($e) {
136016
- return $e(ve);
136028
+ c = ve, g = ve.currentTarget, $(), !x.state.isVisible && y3n(ve) && Jv.forEach(function(Ve) {
136029
+ return Ve(ve);
136017
136030
  }), ve.type === "click" && (x.props.trigger.indexOf("mouseenter") < 0 || a) && x.props.hideOnClick !== !1 && x.state.isVisible ? Ae = !0 : ge(ve), ve.type === "click" && (a = !Ae), Ae && !Ue && pe(ve);
136018
136031
  }
136019
136032
  }
136020
136033
  function R(ve) {
136021
136034
  var Be = ve.target, Ae = L().contains(Be) || F.contains(Be);
136022
136035
  if (!(ve.type === "mousemove" && Ae)) {
136023
- var Ue = Me().concat(F).map(function($e) {
136024
- var We, Ke = $e._tippy, pt = (We = Ke.popperInstance) == null ? void 0 : We.state;
136025
- return pt ? {
136026
- popperRect: $e.getBoundingClientRect(),
136027
- popperState: pt,
136036
+ var Ue = Me().concat(F).map(function(Ve) {
136037
+ var $e, Ke = Ve._tippy, ut = ($e = Ke.popperInstance) == null ? void 0 : $e.state;
136038
+ return ut ? {
136039
+ popperRect: Ve.getBoundingClientRect(),
136040
+ popperState: ut,
136028
136041
  props: n
136029
136042
  } : null;
136030
136043
  }).filter(Boolean);
@@ -136049,9 +136062,9 @@ function B3n(e, t) {
136049
136062
  }
136050
136063
  function X() {
136051
136064
  de();
136052
- var ve = x.props, Be = ve.popperOptions, Ae = ve.placement, Ue = ve.offset, $e = ve.getReferenceClientRect, We = ve.moveTransition, Ke = S() ? q_(F).arrow : null, pt = $e ? {
136053
- getBoundingClientRect: $e,
136054
- contextElement: $e.contextElement || L()
136065
+ var ve = x.props, Be = ve.popperOptions, Ae = ve.placement, Ue = ve.offset, Ve = ve.getReferenceClientRect, $e = ve.moveTransition, Ke = S() ? q_(F).arrow : null, ut = Ve ? {
136066
+ getBoundingClientRect: Ve,
136067
+ contextElement: Ve.contextElement || L()
136055
136068
  } : e, Oe = {
136056
136069
  name: "$$tippy",
136057
136070
  enabled: !0,
@@ -136060,7 +136073,7 @@ function B3n(e, t) {
136060
136073
  fn: function(at) {
136061
136074
  var st = at.state;
136062
136075
  if (S()) {
136063
- var ft = j(), Mt = ft.box;
136076
+ var ht = j(), Mt = ht.box;
136064
136077
  ["placement", "reference-hidden", "escaped"].forEach(function(At) {
136065
136078
  At === "placement" ? Mt.setAttribute("data-placement", st.placement) : st.attributes.popper["data-popper-" + At] ? Mt.setAttribute("data-" + At, "") : Mt.removeAttribute("data-" + At);
136066
136079
  }), st.attributes.popper = {};
@@ -136089,7 +136102,7 @@ function B3n(e, t) {
136089
136102
  }, {
136090
136103
  name: "computeStyles",
136091
136104
  options: {
136092
- adaptive: !We
136105
+ adaptive: !$e
136093
136106
  }
136094
136107
  }, Oe];
136095
136108
  S() && Ke && ze.push({
@@ -136098,7 +136111,7 @@ function B3n(e, t) {
136098
136111
  element: Ke,
136099
136112
  padding: 3
136100
136113
  }
136101
- }), ze.push.apply(ze, (Be == null ? void 0 : Be.modifiers) || []), x.popperInstance = l3n(pt, F, Object.assign({}, Be, {
136114
+ }), ze.push.apply(ze, (Be == null ? void 0 : Be.modifiers) || []), x.popperInstance = l3n(ut, F, Object.assign({}, Be, {
136102
136115
  placement: Ae,
136103
136116
  onFirstUpdate: f,
136104
136117
  modifiers: ze
@@ -136122,8 +136135,8 @@ function B3n(e, t) {
136122
136135
  }
136123
136136
  function ge(ve) {
136124
136137
  x.clearDelayTimeouts(), ve && B("onTrigger", [x, ve]), te();
136125
- var Be = N(!0), Ae = _(), Ue = Ae[0], $e = Ae[1];
136126
- lu.isTouch && Ue === "hold" && $e && (Be = $e), Be ? r = setTimeout(function() {
136138
+ var Be = N(!0), Ae = _(), Ue = Ae[0], Ve = Ae[1];
136139
+ lu.isTouch && Ue === "hold" && Ve && (Be = Ve), Be ? r = setTimeout(function() {
136127
136140
  x.show();
136128
136141
  }, Be) : x.show();
136129
136142
  }
@@ -136170,20 +136183,20 @@ function B3n(e, t) {
136170
136183
  }
136171
136184
  function ye() {
136172
136185
  process.env.NODE_ENV !== "production" && jc(x.state.isDestroyed, vp("show"));
136173
- var ve = x.state.isVisible, Be = x.state.isDestroyed, Ae = !x.state.isEnabled, Ue = lu.isTouch && !x.props.touch, $e = VA(x.props.duration, 0, Ra.duration);
136186
+ var ve = x.state.isVisible, Be = x.state.isDestroyed, Ae = !x.state.isEnabled, Ue = lu.isTouch && !x.props.touch, Ve = VA(x.props.duration, 0, Ra.duration);
136174
136187
  if (!(ve || Be || Ae || Ue) && !L().hasAttribute("disabled") && (B("onShow", [x], !1), x.props.onShow(x) !== !1)) {
136175
136188
  if (x.state.isVisible = !0, S() && (F.style.visibility = "visible"), O(), te(), x.state.isMounted || (F.style.transition = "none"), S()) {
136176
- var We = j(), Ke = We.box, pt = We.content;
136177
- WA([Ke, pt], 0);
136189
+ var $e = j(), Ke = $e.box, ut = $e.content;
136190
+ WA([Ke, ut], 0);
136178
136191
  }
136179
136192
  f = function() {
136180
136193
  var ze;
136181
136194
  if (!(!x.state.isVisible || u)) {
136182
136195
  if (u = !0, F.offsetHeight, F.style.transition = x.props.moveTransition, S() && x.props.animation) {
136183
136196
  var Ge = j(), at = Ge.box, st = Ge.content;
136184
- WA([at, st], $e), WQ([at, st], "visible");
136197
+ WA([at, st], Ve), WQ([at, st], "visible");
136185
136198
  }
136186
- U(), $(), qQ(GA, x), (ze = x.popperInstance) == null || ze.forceUpdate(), B("onMount", [x]), x.props.animation && S() && ae($e, function() {
136199
+ U(), $(), qQ(GA, x), (ze = x.popperInstance) == null || ze.forceUpdate(), B("onMount", [x]), x.props.animation && S() && ae(Ve, function() {
136187
136200
  x.state.isShown = !0, B("onShown", [x]);
136188
136201
  });
136189
136202
  }
@@ -136195,8 +136208,8 @@ function B3n(e, t) {
136195
136208
  var ve = !x.state.isVisible, Be = x.state.isDestroyed, Ae = !x.state.isEnabled, Ue = VA(x.props.duration, 1, Ra.duration);
136196
136209
  if (!(ve || Be || Ae) && (B("onHide", [x], !1), x.props.onHide(x) !== !1)) {
136197
136210
  if (x.state.isVisible = !1, x.state.isShown = !1, u = !1, a = !1, S() && (F.style.visibility = "hidden"), q(), K(), O(!0), S()) {
136198
- var $e = j(), We = $e.box, Ke = $e.content;
136199
- x.props.animation && (WA([We, Ke], Ue), WQ([We, Ke], "hidden"));
136211
+ var Ve = j(), $e = Ve.box, Ke = Ve.content;
136212
+ x.props.animation && (WA([$e, Ke], Ue), WQ([$e, Ke], "hidden"));
136200
136213
  }
136201
136214
  U(), $(), x.props.animation ? S() && ne(Ue, x.unmount) : x.unmount();
136202
136215
  }
@@ -139012,7 +139025,7 @@ Expected it to be ${r}.`;
139012
139025
  var gbn = class extends Error {
139013
139026
  constructor(n) {
139014
139027
  super(pbn(n));
139015
- ut(this, "name", "InvalidDocError");
139028
+ ct(this, "name", "InvalidDocError");
139016
139029
  this.doc = n;
139017
139030
  }
139018
139031
  }, jg = gbn, uee = {};
@@ -139982,12 +139995,12 @@ function b6n(e) {
139982
139995
  var I5e = class extends Error {
139983
139996
  constructor() {
139984
139997
  super(...arguments);
139985
- ut(this, "name", "ConfigError");
139998
+ ct(this, "name", "ConfigError");
139986
139999
  }
139987
140000
  }, hee = class extends Error {
139988
140001
  constructor() {
139989
140002
  super(...arguments);
139990
- ut(this, "name", "UndefinedParserError");
140003
+ ct(this, "name", "UndefinedParserError");
139991
140004
  }
139992
140005
  }, v6n = { checkIgnorePragma: { category: "Special", type: "boolean", default: !1, description: "Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.", cliCategory: "Other" }, cursorOffset: { category: "Special", type: "int", default: -1, range: { start: -1, end: 1 / 0, step: 1 }, description: "Print (to stderr) where a cursor at the given position would move to after formatting.", cliCategory: "Editor" }, endOfLine: { category: "Global", type: "choice", default: "lf", description: "Which end of line characters to apply.", choices: [{ value: "lf", description: "Line Feed only (\\n), common on Linux and macOS as well as inside git repos" }, { value: "crlf", description: "Carriage Return + Line Feed characters (\\r\\n), common on Windows" }, { value: "cr", description: "Carriage Return character only (\\r), used very rarely" }, { value: "auto", description: `Maintain existing
139993
140006
  (mixed values within one file are normalised by looking at what's used after the first line)` }] }, filepath: { category: "Special", type: "path", description: "Specify the input filepath. This will be used to do parser inference.", cliName: "stdin-filepath", cliCategory: "Other", cliDescription: "Path to the file to pretend that stdin comes from." }, insertPragma: { category: "Special", type: "boolean", default: !1, description: "Insert @format pragma into file's first docblock comment.", cliCategory: "Other" }, parser: { category: "Global", type: "choice", default: void 0, description: "Which parser to use.", exception: (e) => typeof e == "string" || typeof e == "function", choices: [{ value: "flow", description: "Flow" }, { value: "babel", description: "JavaScript" }, { value: "babel-flow", description: "Flow" }, { value: "babel-ts", description: "TypeScript" }, { value: "typescript", description: "TypeScript" }, { value: "acorn", description: "JavaScript" }, { value: "espree", description: "JavaScript" }, { value: "meriyah", description: "JavaScript" }, { value: "css", description: "CSS" }, { value: "less", description: "Less" }, { value: "scss", description: "SCSS" }, { value: "json", description: "JSON" }, { value: "json5", description: "JSON5" }, { value: "jsonc", description: "JSON with Comments" }, { value: "json-stringify", description: "JSON.stringify" }, { value: "graphql", description: "GraphQL" }, { value: "markdown", description: "Markdown" }, { value: "mdx", description: "MDX" }, { value: "vue", description: "Vue" }, { value: "yaml", description: "YAML" }, { value: "glimmer", description: "Ember / Handlebars" }, { value: "html", description: "HTML" }, { value: "angular", description: "Angular" }, { value: "lwc", description: "Lightning Web Components" }, { value: "mjml", description: "MJML" }] }, plugins: { type: "path", array: !0, default: [{ value: [] }], category: "Global", description: "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.", exception: (e) => typeof e == "string" || typeof e == "object", cliName: "plugin", cliCategory: "Config" }, printWidth: { category: "Global", type: "int", default: 80, description: "The line length where Prettier will try wrap.", range: { start: 0, end: 1 / 0, step: 1 } }, rangeEnd: { category: "Special", type: "int", default: 1 / 0, range: { start: 0, end: 1 / 0, step: 1 }, description: `Format code ending at a given character offset (exclusive).
@@ -141009,7 +141022,7 @@ Expected it to be ${r}.`;
141009
141022
  var Cvn = class extends Error {
141010
141023
  constructor(t) {
141011
141024
  super(Fvn(t));
141012
- ut(this, "name", "InvalidDocError");
141025
+ ct(this, "name", "InvalidDocError");
141013
141026
  this.doc = t;
141014
141027
  }
141015
141028
  }, Dvn = Cvn;
@@ -141160,7 +141173,7 @@ var Rvn = Ovn, Pvn = [" ", `
141160
141173
  `, "\f", "\r", " "], zvn = new Rvn(Pvn), m1 = zvn, Uvn = class extends Error {
141161
141174
  constructor(t, n, r = "type") {
141162
141175
  super(`Unexpected ${n} node ${r}: ${JSON.stringify(t[r])}.`);
141163
- ut(this, "name", "UnexpectedNodeError");
141176
+ ct(this, "name", "UnexpectedNodeError");
141164
141177
  this.node = t;
141165
141178
  }
141166
141179
  }, Hvn = Uvn;
@@ -150689,9 +150702,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
150689
150702
  for (de.max_code = Z, Fe = X.heap_len >> 1; 1 <= Fe; Fe--) J(X, pe, Fe);
150690
150703
  for (ge = H; Fe = X.heap[1], X.heap[1] = X.heap[X.heap_len--], J(X, pe, 1), Me = X.heap[1], X.heap[--X.heap_max] = Fe, X.heap[--X.heap_max] = Me, pe[2 * ge] = pe[2 * Fe] + pe[2 * Me], X.depth[ge] = (X.depth[Fe] >= X.depth[Me] ? X.depth[Fe] : X.depth[Me]) + 1, pe[2 * Fe + 1] = pe[2 * Me + 1] = ge, X.heap[1] = ge++, J(X, pe, 1), 2 <= X.heap_len; ) ;
150691
150704
  X.heap[--X.heap_max] = X.heap[1], function(se, ye) {
150692
- var we, xe, Se, Le, ve, Be, Ae = ye.dyn_tree, Ue = ye.max_code, $e = ye.stat_desc.static_tree, We = ye.stat_desc.has_stree, Ke = ye.stat_desc.extra_bits, pt = ye.stat_desc.extra_base, Oe = ye.stat_desc.max_length, ze = 0;
150705
+ var we, xe, Se, Le, ve, Be, Ae = ye.dyn_tree, Ue = ye.max_code, Ve = ye.stat_desc.static_tree, $e = ye.stat_desc.has_stree, Ke = ye.stat_desc.extra_bits, ut = ye.stat_desc.extra_base, Oe = ye.stat_desc.max_length, ze = 0;
150693
150706
  for (Le = 0; Le <= m; Le++) se.bl_count[Le] = 0;
150694
- for (Ae[2 * se.heap[se.heap_max] + 1] = 0, we = se.heap_max + 1; we < g; we++) Oe < (Le = Ae[2 * Ae[2 * (xe = se.heap[we]) + 1] + 1] + 1) && (Le = Oe, ze++), Ae[2 * xe + 1] = Le, Ue < xe || (se.bl_count[Le]++, ve = 0, pt <= xe && (ve = Ke[xe - pt]), Be = Ae[2 * xe], se.opt_len += Be * (Le + ve), We && (se.static_len += Be * ($e[2 * xe + 1] + ve)));
150707
+ for (Ae[2 * se.heap[se.heap_max] + 1] = 0, we = se.heap_max + 1; we < g; we++) Oe < (Le = Ae[2 * Ae[2 * (xe = se.heap[we]) + 1] + 1] + 1) && (Le = Oe, ze++), Ae[2 * xe + 1] = Le, Ue < xe || (se.bl_count[Le]++, ve = 0, ut <= xe && (ve = Ke[xe - ut]), Be = Ae[2 * xe], se.opt_len += Be * (Le + ve), $e && (se.static_len += Be * (Ve[2 * xe + 1] + ve)));
150695
150708
  if (ze !== 0) {
150696
150709
  do {
150697
150710
  for (Le = Oe - 1; se.bl_count[Le] === 0; ) Le--;
@@ -163474,7 +163487,7 @@ var mI = {
163474
163487
  o !== n && (r *= o.sizeMultiplier / n.sizeMultiplier);
163475
163488
  }
163476
163489
  return Math.min(t.number * r, n.maxSize);
163477
- }, ct = function(t) {
163490
+ }, dt = function(t) {
163478
163491
  return +t.toFixed(4) + "em";
163479
163492
  }, f0 = function(t) {
163480
163493
  return t.filter((n) => n).join(" ");
@@ -163594,7 +163607,7 @@ class $s {
163594
163607
  */
163595
163608
  toNode() {
163596
163609
  var t = document.createTextNode(this.text), n = null;
163597
- this.italic > 0 && (n = document.createElement("span"), n.style.marginRight = ct(this.italic)), this.classes.length > 0 && (n = n || document.createElement("span"), n.className = f0(this.classes));
163610
+ this.italic > 0 && (n = document.createElement("span"), n.style.marginRight = dt(this.italic)), this.classes.length > 0 && (n = n || document.createElement("span"), n.className = f0(this.classes));
163598
163611
  for (var r in this.style)
163599
163612
  this.style.hasOwnProperty(r) && (n = n || document.createElement("span"), n.style[r] = this.style[r]);
163600
163613
  return n ? (n.appendChild(t), n) : t;
@@ -164524,7 +164537,7 @@ var yx = [
164524
164537
  return Nq(i), i;
164525
164538
  }, k7e = (e, t, n, r) => new O5(e, t, n, r), fMn = function(t, n, r) {
164526
164539
  var o = Hi([t], [], n);
164527
- return o.height = Math.max(r || n.fontMetrics().defaultRuleThickness, n.minRuleThickness), o.style.borderBottomWidth = ct(o.height), o.maxFontSize = 1, o;
164540
+ return o.height = Math.max(r || n.fontMetrics().defaultRuleThickness, n.minRuleThickness), o.style.borderBottomWidth = dt(o.height), o.maxFontSize = 1, o;
164528
164541
  }, hMn = function(t, n, r, o) {
164529
164542
  var i = new Lq(t, n, r, o);
164530
164543
  return Nq(i), i;
@@ -164584,23 +164597,23 @@ var yx = [
164584
164597
  }
164585
164598
  i += 2;
164586
164599
  var u = Hi(["pstrut"], []);
164587
- u.style.height = ct(i);
164600
+ u.style.height = dt(i);
164588
164601
  for (var c = [], d = o, f = o, h = o, p = 0; p < r.length; p++) {
164589
164602
  var g = r[p];
164590
164603
  if (g.type === "kern")
164591
164604
  h += g.size;
164592
164605
  else {
164593
164606
  var m = g.elem, y = g.wrapperClasses || [], b = g.wrapperStyle || {}, v = Hi(y, [u, m], void 0, b);
164594
- v.style.top = ct(-i - h - m.depth), g.marginLeft && (v.style.marginLeft = g.marginLeft), g.marginRight && (v.style.marginRight = g.marginRight), c.push(v), h += m.height + m.depth;
164607
+ v.style.top = dt(-i - h - m.depth), g.marginLeft && (v.style.marginLeft = g.marginLeft), g.marginRight && (v.style.marginRight = g.marginRight), c.push(v), h += m.height + m.depth;
164595
164608
  }
164596
164609
  d = Math.min(d, h), f = Math.max(f, h);
164597
164610
  }
164598
164611
  var x = Hi(["vlist"], c);
164599
- x.style.height = ct(f);
164612
+ x.style.height = dt(f);
164600
164613
  var k;
164601
164614
  if (d < 0) {
164602
164615
  var F = Hi([], []), C = Hi(["vlist"], [F]);
164603
- C.style.height = ct(-d);
164616
+ C.style.height = dt(-d);
164604
164617
  var D = Hi(["vlist-s"], [new $s("​")]);
164605
164618
  k = [Hi(["vlist-r"], [x, D]), Hi(["vlist-r"], [C])];
164606
164619
  } else
@@ -164609,7 +164622,7 @@ var yx = [
164609
164622
  return k.length === 2 && T.classes.push("vlist-t2"), T.height = f, T.depth = -d, T;
164610
164623
  }, yMn = (e, t) => {
164611
164624
  var n = Hi(["mspace"], [], t), r = Lr(e, t);
164612
- return n.style.marginRight = ct(r), n;
164625
+ return n.style.marginRight = dt(r), n;
164613
164626
  }, bx = function(t, n, r) {
164614
164627
  var o = "";
164615
164628
  switch (t) {
@@ -164695,14 +164708,14 @@ var yx = [
164695
164708
  oiiintSize2: ["oiiintSize2", 1.98, 0.659]
164696
164709
  }, bMn = function(t, n) {
164697
164710
  var [r, o, i] = D7e[t], a = new h0(r), s = new w1([a], {
164698
- width: ct(o),
164699
- height: ct(i),
164711
+ width: dt(o),
164712
+ height: dt(i),
164700
164713
  // Override CSS rule `.katex svg { width: 100% }`
164701
- style: "width:" + ct(o),
164714
+ style: "width:" + dt(o),
164702
164715
  viewBox: "0 0 " + 1e3 * o + " " + 1e3 * i,
164703
164716
  preserveAspectRatio: "xMinYMin"
164704
164717
  }), l = k7e(["overlay"], [s], n);
164705
- return l.height = i, l.style.height = ct(i), l.style.width = ct(o), l;
164718
+ return l.height = i, l.style.height = dt(i), l.style.width = dt(o), l;
164706
164719
  }, Ie = {
164707
164720
  fontMap: C7e,
164708
164721
  makeSymbol: ol,
@@ -164940,7 +164953,7 @@ var vw = function(t) {
164940
164953
  };
164941
164954
  function vx(e, t) {
164942
164955
  var n = k1(["base"], e, t), r = k1(["strut"]);
164943
- return r.style.height = ct(n.height + n.depth), n.depth && (r.style.verticalAlign = ct(-n.depth)), n.children.unshift(r), n;
164956
+ return r.style.height = dt(n.height + n.depth), n.depth && (r.style.verticalAlign = dt(-n.depth)), n.children.unshift(r), n;
164944
164957
  }
164945
164958
  function xI(e, t) {
164946
164959
  var n = null;
@@ -164959,7 +164972,7 @@ function xI(e, t) {
164959
164972
  var c = k1(["katex-html"], i);
164960
164973
  if (c.setAttribute("aria-hidden", "true"), u) {
164961
164974
  var d = u.children[0];
164962
- d.style.height = ct(c.height + c.depth), c.depth && (d.style.verticalAlign = ct(-c.depth));
164975
+ d.style.height = dt(c.height + c.depth), c.depth && (d.style.verticalAlign = dt(-c.depth));
164963
164976
  }
164964
164977
  return c;
164965
164978
  }
@@ -165058,13 +165071,13 @@ class MMn {
165058
165071
  if (this.character)
165059
165072
  return document.createTextNode(this.character);
165060
165073
  var t = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mspace");
165061
- return t.setAttribute("width", ct(this.width)), t;
165074
+ return t.setAttribute("width", dt(this.width)), t;
165062
165075
  }
165063
165076
  /**
165064
165077
  * Converts the math node into an HTML markup string.
165065
165078
  */
165066
165079
  toMarkup() {
165067
- return this.character ? "<mtext>" + this.character + "</mtext>" : '<mspace width="' + ct(this.width) + '"/>';
165080
+ return this.character ? "<mtext>" + this.character + "</mtext>" : '<mspace width="' + dt(this.width) + '"/>';
165068
165081
  }
165069
165082
  /**
165070
165083
  * Converts the math node into a string, similar to innerText.
@@ -165325,7 +165338,7 @@ var S7e = function(t) {
165325
165338
  }
165326
165339
  var g = new h0(f), m = new w1([g], {
165327
165340
  width: "100%",
165328
- height: ct(h),
165341
+ height: dt(h),
165329
165342
  viewBox: "0 0 " + s + " " + d,
165330
165343
  preserveAspectRatio: "none"
165331
165344
  });
@@ -165349,7 +165362,7 @@ var S7e = function(t) {
165349
165362
  for (var I = 0; I < C; I++) {
165350
165363
  var S = new h0(v[I]), L = new w1([S], {
165351
165364
  width: "400em",
165352
- height: ct(F),
165365
+ height: dt(F),
165353
165366
  viewBox: "0 0 " + s + " " + k,
165354
165367
  preserveAspectRatio: T[I] + " slice"
165355
165368
  }), M = Ie.makeSvgSpan([D[I]], [L], n);
@@ -165359,7 +165372,7 @@ var S7e = function(t) {
165359
165372
  minWidth: x,
165360
165373
  height: F
165361
165374
  };
165362
- M.style.height = ct(F), y.push(M);
165375
+ M.style.height = dt(F), y.push(M);
165363
165376
  }
165364
165377
  return {
165365
165378
  span: Ie.makeSpan(["stretchy"], y, n),
@@ -165373,7 +165386,7 @@ var S7e = function(t) {
165373
165386
  minWidth: i,
165374
165387
  height: a
165375
165388
  } = r();
165376
- return o.height = a, o.style.height = ct(a), i > 0 && (o.style.minWidth = ct(i)), o;
165389
+ return o.height = a, o.style.height = dt(a), i > 0 && (o.style.minWidth = dt(i)), o;
165377
165390
  }, _Mn = function(t, n, r, o, i) {
165378
165391
  var a, s = t.height + t.depth + r + o;
165379
165392
  if (/fbox|color|angl/.test(n)) {
@@ -165398,11 +165411,11 @@ var S7e = function(t) {
165398
165411
  }));
165399
165412
  var c = new w1(u, {
165400
165413
  width: "100%",
165401
- height: ct(s)
165414
+ height: dt(s)
165402
165415
  });
165403
165416
  a = Ie.makeSvgSpan([], [c], i);
165404
165417
  }
165405
- return a.height = s, a.style.height = ct(s), a;
165418
+ return a.height = s, a.style.height = dt(s), a;
165406
165419
  }, F1 = {
165407
165420
  encloseSpan: _Mn,
165408
165421
  mathMLnode: TMn,
@@ -165442,8 +165455,8 @@ var Oq = (e, t) => {
165442
165455
  elem: f,
165443
165456
  wrapperClasses: ["svg-align"],
165444
165457
  wrapperStyle: s > 0 ? {
165445
- width: "calc(100% - " + ct(2 * s) + ")",
165446
- marginLeft: ct(2 * s)
165458
+ width: "calc(100% - " + dt(2 * s) + ")",
165459
+ marginLeft: dt(2 * s)
165447
165460
  } : void 0
165448
165461
  }]
165449
165462
  }, t);
@@ -165456,7 +165469,7 @@ var Oq = (e, t) => {
165456
165469
  var g = r.label === "\\textcircled";
165457
165470
  g && (f.classes.push("accent-full"), d = i.height);
165458
165471
  var m = s;
165459
- g || (m -= p / 2), f.style.left = ct(m), r.label === "\\textcircled" && (f.style.top = ".2em"), f = Ie.makeVList({
165472
+ g || (m -= p / 2), f.style.left = dt(m), r.label === "\\textcircled" && (f.style.top = ".2em"), f = Ie.makeVList({
165460
165473
  positionType: "firstBaseline",
165461
165474
  children: [{
165462
165475
  type: "elem",
@@ -165946,7 +165959,7 @@ vt({
165946
165959
  },
165947
165960
  htmlBuilder(e, t) {
165948
165961
  var n = t.havingStyle(t.style.sup()), r = Ie.wrapFragment(An(e.label, n, t), t);
165949
- return r.classes.push("cd-label-" + e.side), r.style.bottom = ct(0.8 - r.depth), r.height = 0, r.depth = 0, r;
165962
+ return r.classes.push("cd-label-" + e.side), r.style.bottom = dt(0.8 - r.depth), r.height = 0, r.depth = 0, r;
165950
165963
  },
165951
165964
  mathmlBuilder(e, t) {
165952
165965
  var n = new nt.MathNode("mrow", [or(e.label, t)]);
@@ -166080,11 +166093,11 @@ vt({
166080
166093
  // not within tabular/array environments.
166081
166094
  htmlBuilder(e, t) {
166082
166095
  var n = Ie.makeSpan(["mspace"], [], t);
166083
- return e.newLine && (n.classes.push("newline"), e.size && (n.style.marginTop = ct(Lr(e.size, t)))), n;
166096
+ return e.newLine && (n.classes.push("newline"), e.size && (n.style.marginTop = dt(Lr(e.size, t)))), n;
166084
166097
  },
166085
166098
  mathmlBuilder(e, t) {
166086
166099
  var n = new nt.MathNode("mspace");
166087
- return e.newLine && (n.setAttribute("linebreak", "newline"), e.size && n.setAttribute("height", ct(Lr(e.size, t)))), n;
166100
+ return e.newLine && (n.setAttribute("linebreak", "newline"), e.size && n.setAttribute("height", dt(Lr(e.size, t)))), n;
166088
166101
  }
166089
166102
  });
166090
166103
  var wI = {
@@ -166240,7 +166253,7 @@ var ty = function(t, n, r) {
166240
166253
  return a.height *= s, a.depth *= s, a.maxFontSize = i.sizeMultiplier, a;
166241
166254
  }, R7e = function(t, n, r) {
166242
166255
  var o = n.havingBaseStyle(r), i = (1 - n.sizeMultiplier / o.sizeMultiplier) * n.fontMetrics().axisHeight;
166243
- t.classes.push("delimcenter"), t.style.top = ct(i), t.height -= i, t.depth += i;
166256
+ t.classes.push("delimcenter"), t.style.top = dt(i), t.height -= i, t.depth += i;
166244
166257
  }, HMn = function(t, n, r, o, i, a) {
166245
166258
  var s = Ie.makeSymbol(t, "Main-Regular", i, o), l = Rq(s, n, o, a);
166246
166259
  return r && R7e(l, o, n), l;
@@ -166259,14 +166272,14 @@ var ty = function(t, n, r) {
166259
166272
  };
166260
166273
  }, AT = function(t, n, r) {
166261
166274
  var o = wu["Size4-Regular"][t.charCodeAt(0)] ? wu["Size4-Regular"][t.charCodeAt(0)][4] : wu["Size1-Regular"][t.charCodeAt(0)][4], i = new h0("inner", ZDn(t, Math.round(1e3 * n))), a = new w1([i], {
166262
- width: ct(o),
166263
- height: ct(n),
166275
+ width: dt(o),
166276
+ height: dt(n),
166264
166277
  // Override CSS rule `.katex svg { width: 100% }`
166265
- style: "width:" + ct(o),
166278
+ style: "width:" + dt(o),
166266
166279
  viewBox: "0 0 " + 1e3 * o + " " + Math.round(1e3 * n),
166267
166280
  preserveAspectRatio: "xMinYMin"
166268
166281
  }), s = Ie.makeSvgSpan([], [a], r);
166269
- return s.height = n, s.style.height = ct(n), s.style.width = ct(o), {
166282
+ return s.height = n, s.style.height = dt(n), s.style.width = dt(o), {
166270
166283
  type: "elem",
166271
166284
  elem: s
166272
166285
  };
@@ -166316,14 +166329,14 @@ var ty = function(t, n, r) {
166316
166329
  var a = GDn(t, o, r), s = new h0(t, a), l = new w1([s], {
166317
166330
  // Note: 1000:1 ratio of viewBox to document em width.
166318
166331
  width: "400em",
166319
- height: ct(n),
166332
+ height: dt(n),
166320
166333
  viewBox: "0 0 400000 " + r,
166321
166334
  preserveAspectRatio: "xMinYMin slice"
166322
166335
  });
166323
166336
  return Ie.makeSvgSpan(["hide-tail"], [l], i);
166324
166337
  }, $Mn = function(t, n) {
166325
166338
  var r = n.havingBaseSizing(), o = V7e("\\surd", t * r.sizeMultiplier, q7e, r), i = r.sizeMultiplier, a = Math.max(0, n.minRuleThickness - n.fontMetrics().sqrtRuleThickness), s, l = 0, u = 0, c = 0, d;
166326
- return o.type === "small" ? (c = 1e3 + 1e3 * a + ST, t < 1 ? i = 1 : t < 1.4 && (i = 0.7), l = (1 + a + TT) / i, u = (1 + a) / i, s = jT("sqrtMain", l, c, a, n), s.style.minWidth = "0.853em", d = 0.833 / i) : o.type === "large" ? (c = (1e3 + ST) * $y[o.size], u = ($y[o.size] + a) / i, l = ($y[o.size] + a + TT) / i, s = jT("sqrtSize" + o.size, l, c, a, n), s.style.minWidth = "1.02em", d = 1 / i) : (l = t + a + TT, u = t + a, c = Math.floor(1e3 * t + a) + ST, s = jT("sqrtTall", l, c, a, n), s.style.minWidth = "0.742em", d = 1.056), s.height = u, s.style.height = ct(l), {
166339
+ return o.type === "small" ? (c = 1e3 + 1e3 * a + ST, t < 1 ? i = 1 : t < 1.4 && (i = 0.7), l = (1 + a + TT) / i, u = (1 + a) / i, s = jT("sqrtMain", l, c, a, n), s.style.minWidth = "0.853em", d = 0.833 / i) : o.type === "large" ? (c = (1e3 + ST) * $y[o.size], u = ($y[o.size] + a) / i, l = ($y[o.size] + a + TT) / i, s = jT("sqrtSize" + o.size, l, c, a, n), s.style.minWidth = "1.02em", d = 1 / i) : (l = t + a + TT, u = t + a, c = Math.floor(1e3 * t + a) + ST, s = jT("sqrtTall", l, c, a, n), s.style.minWidth = "0.742em", d = 1.056), s.height = u, s.style.height = dt(l), {
166327
166340
  span: s,
166328
166341
  advanceWidth: d,
166329
166342
  // Calculate the actual line width.
@@ -166534,7 +166547,7 @@ vt({
166534
166547
  e.delim !== "." && t.push(Gs(e.delim, e.mode));
166535
166548
  var n = new nt.MathNode("mo", t);
166536
166549
  e.mclass === "mopen" || e.mclass === "mclose" ? n.setAttribute("fence", "true") : n.setAttribute("fence", "false"), n.setAttribute("stretchy", "true");
166537
- var r = ct(t1.sizeToMaxHeight[e.size]);
166550
+ var r = dt(t1.sizeToMaxHeight[e.size]);
166538
166551
  return n.setAttribute("minsize", r), n.setAttribute("maxsize", r), n;
166539
166552
  }
166540
166553
  });
@@ -166668,14 +166681,14 @@ var Pq = (e, t) => {
166668
166681
  }, t), c = t.havingBaseSizing();
166669
166682
  o = o / c.sizeMultiplier;
166670
166683
  var d = n.height + n.depth + l + u;
166671
- n.style.paddingLeft = ct(d / 2 + l);
166684
+ n.style.paddingLeft = dt(d / 2 + l);
166672
166685
  var f = Math.floor(1e3 * d * o), h = WDn(f), p = new w1([new h0("phase", h)], {
166673
166686
  width: "400em",
166674
- height: ct(f / 1e3),
166687
+ height: dt(f / 1e3),
166675
166688
  viewBox: "0 0 400000 " + f,
166676
166689
  preserveAspectRatio: "xMinYMin slice"
166677
166690
  });
166678
- i = Ie.makeSvgSpan(["hide-tail"], [p], t), i.style.height = ct(d), a = n.depth + l + u;
166691
+ i = Ie.makeSvgSpan(["hide-tail"], [p], t), i.style.height = dt(d), a = n.depth + l + u;
166679
166692
  } else {
166680
166693
  /cancel/.test(r) ? s || n.classes.push("cancel-pad") : r === "angl" ? n.classes.push("anglpad") : n.classes.push("boxpad");
166681
166694
  var g = 0, m = 0, y = 0;
@@ -166684,7 +166697,7 @@ var Pq = (e, t) => {
166684
166697
  // default
166685
166698
  t.minRuleThickness
166686
166699
  // User override.
166687
- ), g = t.fontMetrics().fboxsep + (r === "colorbox" ? 0 : y), m = g) : r === "angl" ? (y = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), g = 4 * y, m = Math.max(0, 0.25 - n.depth)) : (g = s ? 0.2 : 0, m = g), i = F1.encloseSpan(n, r, g, m, t), /fbox|boxed|fcolorbox/.test(r) ? (i.style.borderStyle = "solid", i.style.borderWidth = ct(y)) : r === "angl" && y !== 0.049 && (i.style.borderTopWidth = ct(y), i.style.borderRightWidth = ct(y)), a = n.depth + m, e.backgroundColor && (i.style.backgroundColor = e.backgroundColor, e.borderColor && (i.style.borderColor = e.borderColor));
166700
+ ), g = t.fontMetrics().fboxsep + (r === "colorbox" ? 0 : y), m = g) : r === "angl" ? (y = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), g = 4 * y, m = Math.max(0, 0.25 - n.depth)) : (g = s ? 0.2 : 0, m = g), i = F1.encloseSpan(n, r, g, m, t), /fbox|boxed|fcolorbox/.test(r) ? (i.style.borderStyle = "solid", i.style.borderWidth = dt(y)) : r === "angl" && y !== 0.049 && (i.style.borderTopWidth = dt(y), i.style.borderRightWidth = dt(y)), a = n.depth + m, e.backgroundColor && (i.style.backgroundColor = e.backgroundColor, e.borderColor && (i.style.borderColor = e.borderColor));
166688
166701
  }
166689
166702
  var b;
166690
166703
  if (e.backgroundColor)
@@ -167041,18 +167054,18 @@ var cc = function(t, n) {
167041
167054
  ++o, ++N
167042
167055
  ) {
167043
167056
  for (var z = L[N] || {}, Y = !0; z.type === "separator"; ) {
167044
- if (Y || (j = Ie.makeSpan(["arraycolsep"], []), j.style.width = ct(n.fontMetrics().doubleRuleSep), M.push(j)), z.separator === "|" || z.separator === ":") {
167057
+ if (Y || (j = Ie.makeSpan(["arraycolsep"], []), j.style.width = dt(n.fontMetrics().doubleRuleSep), M.push(j)), z.separator === "|" || z.separator === ":") {
167045
167058
  var oe = z.separator === "|" ? "solid" : "dashed", te = Ie.makeSpan(["vertical-separator"], [], n);
167046
- te.style.height = ct(v), te.style.borderRightWidth = ct(c), te.style.borderRightStyle = oe, te.style.margin = "0 " + ct(-c / 2);
167059
+ te.style.height = dt(v), te.style.borderRightWidth = dt(c), te.style.borderRightStyle = oe, te.style.margin = "0 " + dt(-c / 2);
167047
167060
  var K = v - S;
167048
- K && (te.style.verticalAlign = ct(-K)), M.push(te);
167061
+ K && (te.style.verticalAlign = dt(-K)), M.push(te);
167049
167062
  } else
167050
167063
  throw new it("Invalid separator type: " + z.separator);
167051
167064
  N++, z = L[N] || {}, Y = !1;
167052
167065
  }
167053
167066
  if (!(o >= s)) {
167054
167067
  var ne = void 0;
167055
- (o > 0 || t.hskipBeforeAndAfter) && (ne = In.deflt(z.pregap, f), ne !== 0 && (j = Ie.makeSpan(["arraycolsep"], []), j.style.width = ct(ne), M.push(j)));
167068
+ (o > 0 || t.hskipBeforeAndAfter) && (ne = In.deflt(z.pregap, f), ne !== 0 && (j = Ie.makeSpan(["arraycolsep"], []), j.style.width = dt(ne), M.push(j)));
167056
167069
  var ae = [];
167057
167070
  for (r = 0; r < i; ++r) {
167058
167071
  var ue = l[r], P = ue[o];
@@ -167068,7 +167081,7 @@ var cc = function(t, n) {
167068
167081
  ae = Ie.makeVList({
167069
167082
  positionType: "individualShift",
167070
167083
  children: ae
167071
- }, n), ae = Ie.makeSpan(["col-align-" + (z.align || "c")], [ae]), M.push(ae), (o < s - 1 || t.hskipBeforeAndAfter) && (ne = In.deflt(z.postgap, f), ne !== 0 && (j = Ie.makeSpan(["arraycolsep"], []), j.style.width = ct(ne), M.push(j)));
167084
+ }, n), ae = Ie.makeSpan(["col-align-" + (z.align || "c")], [ae]), M.push(ae), (o < s - 1 || t.hskipBeforeAndAfter) && (ne = In.deflt(z.postgap, f), ne !== 0 && (j = Ie.makeSpan(["arraycolsep"], []), j.style.width = dt(ne), M.push(j)));
167072
167085
  }
167073
167086
  }
167074
167087
  if (l = Ie.makeSpan(["mtable"], M), u.length > 0) {
@@ -167111,7 +167124,7 @@ var cc = function(t, n) {
167111
167124
  t.tags && t.tags[a] && (l.unshift(o), l.push(o), t.leqno ? l.unshift(i) : l.push(i)), r.push(new nt.MathNode("mtr", l));
167112
167125
  }
167113
167126
  var c = new nt.MathNode("mtable", r), d = t.arraystretch === 0.5 ? 0.1 : 0.16 + t.arraystretch - 1 + (t.addJot ? 0.09 : 0);
167114
- c.setAttribute("rowspacing", ct(d));
167127
+ c.setAttribute("rowspacing", dt(d));
167115
167128
  var f = "", h = "";
167116
167129
  if (t.cols && t.cols.length > 0) {
167117
167130
  var p = t.cols, g = "", m = !1, y = 0, b = p.length;
@@ -167646,7 +167659,7 @@ var X7e = (e, t) => {
167646
167659
  n.setAttribute("linethickness", "0px");
167647
167660
  else if (e.barSize) {
167648
167661
  var r = Lr(e.barSize, t);
167649
- n.setAttribute("linethickness", ct(r));
167662
+ n.setAttribute("linethickness", dt(r));
167650
167663
  }
167651
167664
  var o = X7e(e.size, t.style);
167652
167665
  if (o.size !== t.style.size) {
@@ -168255,9 +168268,9 @@ vt({
168255
168268
  var o = 0;
168256
168269
  e.width.number > 0 && (o = Lr(e.width, t));
168257
168270
  var i = {
168258
- height: ct(n + r)
168271
+ height: dt(n + r)
168259
168272
  };
168260
- o > 0 && (i.width = ct(o)), r > 0 && (i.verticalAlign = ct(-r));
168273
+ o > 0 && (i.width = dt(o)), r > 0 && (i.verticalAlign = dt(-r));
168261
168274
  var a = new tMn(e.src, e.alt, i);
168262
168275
  return a.height = n, a.depth = r, a;
168263
168276
  },
@@ -168265,9 +168278,9 @@ vt({
168265
168278
  var n = new nt.MathNode("mglyph", []);
168266
168279
  n.setAttribute("alt", e.alt);
168267
168280
  var r = Lr(e.height, t), o = 0;
168268
- if (e.totalheight.number > 0 && (o = Lr(e.totalheight, t) - r, n.setAttribute("valign", ct(-o))), n.setAttribute("height", ct(r + o)), e.width.number > 0) {
168281
+ if (e.totalheight.number > 0 && (o = Lr(e.totalheight, t) - r, n.setAttribute("valign", dt(-o))), n.setAttribute("height", dt(r + o)), e.width.number > 0) {
168269
168282
  var i = Lr(e.width, t);
168270
- n.setAttribute("width", ct(i));
168283
+ n.setAttribute("width", dt(i));
168271
168284
  }
168272
168285
  return n.setAttribute("src", e.src), n;
168273
168286
  }
@@ -168327,7 +168340,7 @@ vt({
168327
168340
  var n;
168328
168341
  e.alignment === "clap" ? (n = Ie.makeSpan([], [An(e.body, t)]), n = Ie.makeSpan(["inner"], [n], t)) : n = Ie.makeSpan(["inner"], [An(e.body, t)]);
168329
168342
  var r = Ie.makeSpan(["fix"], []), o = Ie.makeSpan([e.alignment], [n, r], t), i = Ie.makeSpan(["strut"]);
168330
- return i.style.height = ct(o.height + o.depth), o.depth && (i.style.verticalAlign = ct(-o.depth)), o.children.unshift(i), o = Ie.makeSpan(["thinbox"], [o], t), Ie.makeSpan(["mord", "vbox"], [o], t);
168343
+ return i.style.height = dt(o.height + o.depth), o.depth && (i.style.verticalAlign = dt(-o.depth)), o.children.unshift(i), o = Ie.makeSpan(["thinbox"], [o], t), Ie.makeSpan(["mord", "vbox"], [o], t);
168331
168344
  },
168332
168345
  mathmlBuilder: (e, t) => {
168333
168346
  var n = new nt.MathNode("mpadded", [or(e.body, t)]);
@@ -168446,7 +168459,7 @@ var Q7e = (e, t, n, r, o, i, a) => {
168446
168459
  }, {
168447
168460
  type: "elem",
168448
168461
  elem: l.elem,
168449
- marginLeft: ct(-i)
168462
+ marginLeft: dt(-i)
168450
168463
  }, {
168451
168464
  type: "kern",
168452
168465
  size: l.kern
@@ -168459,7 +168472,7 @@ var Q7e = (e, t, n, r, o, i, a) => {
168459
168472
  }, {
168460
168473
  type: "elem",
168461
168474
  elem: u.elem,
168462
- marginLeft: ct(i)
168475
+ marginLeft: dt(i)
168463
168476
  }, {
168464
168477
  type: "kern",
168465
168478
  size: r.fontMetrics().bigOpSpacing5
@@ -168476,7 +168489,7 @@ var Q7e = (e, t, n, r, o, i, a) => {
168476
168489
  }, {
168477
168490
  type: "elem",
168478
168491
  elem: l.elem,
168479
- marginLeft: ct(-i)
168492
+ marginLeft: dt(-i)
168480
168493
  }, {
168481
168494
  type: "kern",
168482
168495
  size: l.kern
@@ -168499,7 +168512,7 @@ var Q7e = (e, t, n, r, o, i, a) => {
168499
168512
  }, {
168500
168513
  type: "elem",
168501
168514
  elem: u.elem,
168502
- marginLeft: ct(i)
168515
+ marginLeft: dt(i)
168503
168516
  }, {
168504
168517
  type: "kern",
168505
168518
  size: r.fontMetrics().bigOpSpacing5
@@ -168510,7 +168523,7 @@ var Q7e = (e, t, n, r, o, i, a) => {
168510
168523
  var m = [f];
168511
168524
  if (l && i !== 0 && !s) {
168512
168525
  var y = Ie.makeSpan(["mspace"], [], r);
168513
- y.style.marginRight = ct(i), m.unshift(y);
168526
+ y.style.marginRight = dt(i), m.unshift(y);
168514
168527
  }
168515
168528
  return Ie.makeSpan(["mop", "op-limits"], m, r);
168516
168529
  }, ewe = ["\\smallint"], Pm = (e, t) => {
@@ -168545,7 +168558,7 @@ var Q7e = (e, t, n, r, o, i, a) => {
168545
168558
  l = Ie.makeSpan(["mop"], p, t);
168546
168559
  }
168547
168560
  var m = 0, y = 0;
168548
- return (l instanceof $s || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (m = (l.height - l.depth) / 2 - t.fontMetrics().axisHeight, y = l.italic), o ? Q7e(l, n, r, t, a, y, m) : (m && (l.style.position = "relative", l.style.top = ct(m)), l);
168561
+ return (l instanceof $s || i.name === "\\oiint" || i.name === "\\oiiint") && !i.suppressBaseShift && (m = (l.height - l.depth) / 2 - t.fontMetrics().axisHeight, y = l.italic), o ? Q7e(l, n, r, t, a, y, m) : (m && (l.style.position = "relative", l.style.top = dt(m)), l);
168549
168562
  }, R5 = (e, t) => {
168550
168563
  var n;
168551
168564
  if (e.symbol)
@@ -168985,13 +168998,13 @@ vt({
168985
168998
  },
168986
168999
  htmlBuilder(e, t) {
168987
169000
  var n = Ie.makeSpan(["mord", "rule"], [], t), r = Lr(e.width, t), o = Lr(e.height, t), i = e.shift ? Lr(e.shift, t) : 0;
168988
- return n.style.borderRightWidth = ct(r), n.style.borderTopWidth = ct(o), n.style.bottom = ct(i), n.width = r, n.height = o + i, n.depth = -i, n.maxFontSize = o * 1.125 * t.sizeMultiplier, n;
169001
+ return n.style.borderRightWidth = dt(r), n.style.borderTopWidth = dt(o), n.style.bottom = dt(i), n.width = r, n.height = o + i, n.depth = -i, n.maxFontSize = o * 1.125 * t.sizeMultiplier, n;
168989
169002
  },
168990
169003
  mathmlBuilder(e, t) {
168991
169004
  var n = Lr(e.width, t), r = Lr(e.height, t), o = e.shift ? Lr(e.shift, t) : 0, i = t.color && t.getColor() || "black", a = new nt.MathNode("mspace");
168992
- a.setAttribute("mathbackground", i), a.setAttribute("width", ct(n)), a.setAttribute("height", ct(r));
169005
+ a.setAttribute("mathbackground", i), a.setAttribute("width", dt(n)), a.setAttribute("height", dt(r));
168993
169006
  var s = new nt.MathNode("mpadded", [a]);
168994
- return o >= 0 ? s.setAttribute("height", ct(o)) : (s.setAttribute("height", ct(o)), s.setAttribute("depth", ct(-o))), s.setAttribute("voffset", ct(o)), s;
169007
+ return o >= 0 ? s.setAttribute("height", dt(o)) : (s.setAttribute("height", dt(o)), s.setAttribute("depth", dt(-o))), s.setAttribute("voffset", dt(o)), s;
168995
169008
  }
168996
169009
  });
168997
169010
  function nwe(e, t, n) {
@@ -169029,7 +169042,7 @@ vt({
169029
169042
  htmlBuilder: iEn,
169030
169043
  mathmlBuilder: (e, t) => {
169031
169044
  var n = t.havingSize(e.size), r = Da(e.body, n), o = new nt.MathNode("mstyle", r);
169032
- return o.setAttribute("mathsize", ct(n.sizeMultiplier)), o;
169045
+ return o.setAttribute("mathsize", dt(n.sizeMultiplier)), o;
169033
169046
  }
169034
169047
  });
169035
169048
  vt({
@@ -169121,7 +169134,7 @@ vt({
169121
169134
  } = t1.sqrtImage(s, t), d = l.height - u;
169122
169135
  d > n.height + n.depth + a && (a = (a + d - n.height - n.depth) / 2);
169123
169136
  var f = l.height - n.height - a - u;
169124
- n.style.paddingLeft = ct(c);
169137
+ n.style.paddingLeft = dt(c);
169125
169138
  var h = Ie.makeVList({
169126
169139
  positionType: "firstBaseline",
169127
169140
  children: [{
@@ -169244,10 +169257,10 @@ tp({
169244
169257
  }
169245
169258
  var g;
169246
169259
  t.style === Rt.DISPLAY ? g = u.sup1 : t.style.cramped ? g = u.sup3 : g = u.sup2;
169247
- var m = t.sizeMultiplier, y = ct(0.5 / u.ptPerEm / m), b = null;
169260
+ var m = t.sizeMultiplier, y = dt(0.5 / u.ptPerEm / m), b = null;
169248
169261
  if (l) {
169249
169262
  var v = e.base && e.base.type === "op" && e.base.name && (e.base.name === "\\oiint" || e.base.name === "\\oiiint");
169250
- (a instanceof $s || v) && (b = ct(-a.italic));
169263
+ (a instanceof $s || v) && (b = dt(-a.italic));
169251
169264
  }
169252
169265
  var x;
169253
169266
  if (s && l) {
@@ -170045,7 +170058,7 @@ he("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
170045
170058
  he("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
170046
170059
  he("\\newline", "\\\\\\relax");
170047
170060
  he("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
170048
- var iwe = ct(wu["Main-Regular"][84][1] - 0.7 * wu["Main-Regular"][65][1]);
170061
+ var iwe = dt(wu["Main-Regular"][84][1] - 0.7 * wu["Main-Regular"][65][1]);
170049
170062
  he("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + iwe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
170050
170063
  he("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + iwe + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
170051
170064
  he("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
@@ -173348,7 +173361,7 @@ const jAn = ({
173348
173361
  d.type.name === "callout" || d.type.name === "dBlock" ? c.push(...a(d.content)) : c.push(d);
173349
173362
  }), c;
173350
173363
  }, s = a(t.content), l = Ze.fromArray(s);
173351
- return new dt(l, 0, 0);
173364
+ return new ft(l, 0, 0);
173352
173365
  }
173353
173366
  }
173354
173367
  })
@@ -188098,19 +188111,19 @@ function cjn({
188098
188111
  var Kwe = cjn;
188099
188112
  const Ywe = Pn(
188100
188113
  (e, t) => {
188101
- const [n, r] = Re(0), o = Ve(
188114
+ const [n, r] = Re(0), o = We(
188102
188115
  (l) => {
188103
188116
  const u = e.items[l];
188104
188117
  u && e.command(u);
188105
188118
  },
188106
188119
  [e]
188107
- ), i = Ve(() => {
188120
+ ), i = We(() => {
188108
188121
  r(
188109
188122
  (l) => (l + e.items.length - 1) % e.items.length
188110
188123
  );
188111
- }, [e.items.length]), a = Ve(() => {
188124
+ }, [e.items.length]), a = We(() => {
188112
188125
  r((l) => (l + 1) % e.items.length);
188113
- }, [e.items.length]), s = Ve(() => {
188126
+ }, [e.items.length]), s = We(() => {
188114
188127
  o(n);
188115
188128
  }, [o, n]);
188116
188129
  return He(() => {
@@ -248692,7 +248705,7 @@ const kjn = ({
248692
248705
  command: t,
248693
248706
  editor: n
248694
248707
  }) => {
248695
- const [r, o] = Re(0), [i, a] = Re(e), s = Hr("(max-width: 640px)"), l = Lx(n, "callout"), u = Lx(n, "codeBlock"), c = Lx(n, "column"), d = Lx(n, "table"), f = Ve(
248708
+ const [r, o] = Re(0), [i, a] = Re(e), s = Hr("(max-width: 640px)"), l = Lx(n, "callout"), u = Lx(n, "codeBlock"), c = Lx(n, "column"), d = Lx(n, "table"), f = We(
248696
248709
  (p) => {
248697
248710
  const g = i[p];
248698
248711
  g && (g.title === "Continue writing" || t(g));
@@ -249389,7 +249402,7 @@ function lke(e) {
249389
249402
  }
249390
249403
  const mf = class mf {
249391
249404
  constructor() {
249392
- ut(this, "_currentZoom", "1");
249405
+ ct(this, "_currentZoom", "1");
249393
249406
  }
249394
249407
  static getInstance() {
249395
249408
  return mf.instance || (mf.instance = new mf()), mf.instance;
@@ -249418,7 +249431,7 @@ const mf = class mf {
249418
249431
  ), !window.matchMedia("(max-width: 1280px)").matches && n in r && t.classList.add(r[n]);
249419
249432
  }
249420
249433
  };
249421
- ut(mf, "instance");
249434
+ ct(mf, "instance");
249422
249435
  let MI = mf;
249423
249436
  const VT = MI.getInstance(), nLn = (e) => ({
249424
249437
  type: "dBlock",
@@ -250527,7 +250540,7 @@ const Aoe = () => {
250527
250540
  }, [u]), He(() => {
250528
250541
  c(T), f(!!_);
250529
250542
  }, [T, _]);
250530
- const z = Ve(() => {
250543
+ const z = We(() => {
250531
250544
  var ye, we;
250532
250545
  if (!k) return "";
250533
250546
  const X = t.getJSON();
@@ -250559,7 +250572,7 @@ const Aoe = () => {
250559
250572
  }
250560
250573
  return Me = (pe + H).trim(), Me && (Me = `Document context (${me} chars before, ${Z} chars after):
250561
250574
  ${Me}`), Me;
250562
- }, [t, n, k]), Y = Ve(async () => {
250575
+ }, [t, n, k]), Y = We(async () => {
250563
250576
  var X;
250564
250577
  if (u.trim())
250565
250578
  try {
@@ -250616,7 +250629,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
250616
250629
  z,
250617
250630
  k,
250618
250631
  r
250619
- ]), oe = Ve(() => {
250632
+ ]), oe = We(() => {
250620
250633
  if (B.current) {
250621
250634
  B.current.abort(), l(!1), a(!1);
250622
250635
  const X = setTimeout(() => {
@@ -250628,7 +250641,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
250628
250641
  }, 0);
250629
250642
  return () => clearTimeout(X);
250630
250643
  }
250631
- }, []), te = Ve(() => {
250644
+ }, []), te = We(() => {
250632
250645
  if (typeof n == "function") {
250633
250646
  m(!0);
250634
250647
  const X = setTimeout(() => {
@@ -250647,7 +250660,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
250647
250660
  }, 150);
250648
250661
  return () => clearTimeout(X);
250649
250662
  }
250650
- }, [n, t, e.nodeSize, _, o]), K = Ve(() => {
250663
+ }, [n, t, e.nodeSize, _, o]), K = We(() => {
250651
250664
  if (typeof n == "function") {
250652
250665
  m(!0);
250653
250666
  const X = setTimeout(() => {
@@ -250666,14 +250679,14 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
250666
250679
  }, 150);
250667
250680
  return () => clearTimeout(X);
250668
250681
  }
250669
- }, [n, t, e.nodeSize, o]), ne = Ve(
250682
+ }, [n, t, e.nodeSize, o]), ne = We(
250670
250683
  (X) => {
250671
250684
  c(X.target.value);
250672
250685
  },
250673
250686
  []
250674
- ), ae = Ve(() => {
250687
+ ), ae = We(() => {
250675
250688
  r && u !== T && r({ prompt: u });
250676
- }, [r, u, T]), ue = Ve(
250689
+ }, [r, u, T]), ue = We(
250677
250690
  (X) => {
250678
250691
  r == null || r({ model: X });
250679
250692
  const de = O == null ? void 0 : O.defaultModels.find(
@@ -250682,22 +250695,22 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
250682
250695
  de && (O != null && O.setActiveModel) && O.setActiveModel(de);
250683
250696
  },
250684
250697
  [r, O]
250685
- ), P = Ve(() => {
250698
+ ), P = We(() => {
250686
250699
  var de, Fe;
250687
250700
  if (r == null || r({ content: "" }), f(!1), p(""), !I.current) return;
250688
250701
  (de = I.current) == null || de.focus();
250689
250702
  const X = I.current.value.length;
250690
250703
  (Fe = I.current) == null || Fe.setSelectionRange(X, X), I.current.scrollTop = I.current.scrollHeight;
250691
- }, [r]), J = Ve(() => {
250704
+ }, [r]), J = We(() => {
250692
250705
  b(!0);
250693
- }, []), re = Ve(() => {
250706
+ }, []), re = We(() => {
250694
250707
  if (q) {
250695
250708
  const X = q.getHTML();
250696
250709
  b(!1), r == null || r({ content: X }), p(X);
250697
250710
  }
250698
- }, [q, r]), fe = Ve(() => {
250711
+ }, [q, r]), fe = We(() => {
250699
250712
  b(!1), q && q.commands.setContent(h || _ || "");
250700
- }, [q, h, _]), R = Ve(
250713
+ }, [q, h, _]), R = We(
250701
250714
  (X) => {
250702
250715
  X.key === "Enter" && (X.ctrlKey || X.metaKey) && !X.shiftKey ? (X.preventDefault(), d && te()) : X.key === "Enter" && !X.shiftKey && !y ? (X.preventDefault(), u.trim() && Y()) : X.key === "Escape" ? (X.preventDefault(), s ? oe() : K()) : X.key === " " && !u.trim() ? (X.preventDefault(), K()) : X.key === "r" && (X.ctrlKey || X.metaKey) ? (X.preventDefault(), P()) : X.key === "e" && (X.ctrlKey || X.metaKey) && (X.preventDefault(), J());
250703
250716
  },
@@ -250713,7 +250726,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
250713
250726
  s,
250714
250727
  oe
250715
250728
  ]
250716
- ), le = Ve((X) => {
250729
+ ), le = We((X) => {
250717
250730
  X ? localStorage.setItem("include-ddoc-context", "true") : localStorage.removeItem("include-ddoc-context");
250718
250731
  }, []);
250719
250732
  He(() => {
@@ -250747,7 +250760,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
250747
250760
  return () => clearInterval(X);
250748
250761
  }
250749
250762
  }, [i]);
250750
- const ce = Ve(
250763
+ const ce = We(
250751
250764
  () => /* @__PURE__ */ E.jsx("span", { className: "text-body-sm color-text-secondary pt-1 flex items-center gap-1", children: /* @__PURE__ */ E.jsx(ym, { mode: "wait", children: /* @__PURE__ */ E.jsxs(
250752
250765
  "span",
250753
250766
  {
@@ -255792,17 +255805,17 @@ var FV = class extends Event {
255792
255805
  // biome-ignore lint/suspicious/noExplicitAny: vibes
255793
255806
  constructor(t, n) {
255794
255807
  super("error", n);
255795
- ut(this, "message");
255796
- ut(this, "error");
255808
+ ct(this, "message");
255809
+ ct(this, "error");
255797
255810
  this.message = t.message, this.error = t;
255798
255811
  }
255799
255812
  }, hFe = class extends Event {
255800
255813
  // biome-ignore lint/suspicious/noExplicitAny: legacy
255801
255814
  constructor(t = 1e3, n = "", r) {
255802
255815
  super("close", r);
255803
- ut(this, "code");
255804
- ut(this, "reason");
255805
- ut(this, "wasClean", !0);
255816
+ ct(this, "code");
255817
+ ct(this, "reason");
255818
+ ct(this, "wasClean", !0);
255806
255819
  this.code = t, this.reason = n;
255807
255820
  }
255808
255821
  }, oj = {
@@ -255837,37 +255850,37 @@ var Yoe, O_n = typeof process < "u" && typeof ((Yoe = process.versions) == null
255837
255850
  }, Xoe = !1, R_n = class df extends EventTarget {
255838
255851
  constructor(n, r, o = {}) {
255839
255852
  super();
255840
- ut(this, "_ws");
255841
- ut(this, "_retryCount", -1);
255842
- ut(this, "_uptimeTimeout");
255843
- ut(this, "_connectTimeout");
255844
- ut(this, "_shouldReconnect", !0);
255845
- ut(this, "_connectLock", !1);
255846
- ut(this, "_binaryType", "blob");
255847
- ut(this, "_closeCalled", !1);
255848
- ut(this, "_messageQueue", []);
255849
- ut(this, "_debugLogger", console.log.bind(console));
255850
- ut(this, "_url");
255851
- ut(this, "_protocols");
255852
- ut(this, "_options");
255853
+ ct(this, "_ws");
255854
+ ct(this, "_retryCount", -1);
255855
+ ct(this, "_uptimeTimeout");
255856
+ ct(this, "_connectTimeout");
255857
+ ct(this, "_shouldReconnect", !0);
255858
+ ct(this, "_connectLock", !1);
255859
+ ct(this, "_binaryType", "blob");
255860
+ ct(this, "_closeCalled", !1);
255861
+ ct(this, "_messageQueue", []);
255862
+ ct(this, "_debugLogger", console.log.bind(console));
255863
+ ct(this, "_url");
255864
+ ct(this, "_protocols");
255865
+ ct(this, "_options");
255853
255866
  /**
255854
255867
  * An event listener to be called when the WebSocket connection's readyState changes to CLOSED
255855
255868
  */
255856
- ut(this, "onclose", null);
255869
+ ct(this, "onclose", null);
255857
255870
  /**
255858
255871
  * An event listener to be called when an error occurs
255859
255872
  */
255860
- ut(this, "onerror", null);
255873
+ ct(this, "onerror", null);
255861
255874
  /**
255862
255875
  * An event listener to be called when a message is received from the server
255863
255876
  */
255864
- ut(this, "onmessage", null);
255877
+ ct(this, "onmessage", null);
255865
255878
  /**
255866
255879
  * An event listener to be called when the WebSocket connection's readyState changes to OPEN;
255867
255880
  * this indicates that the connection is ready to send and receive data
255868
255881
  */
255869
- ut(this, "onopen", null);
255870
- ut(this, "_handleOpen", (n) => {
255882
+ ct(this, "onopen", null);
255883
+ ct(this, "_handleOpen", (n) => {
255871
255884
  this._debug("open event");
255872
255885
  const { minUptime: r = Q0.minUptime } = this._options;
255873
255886
  clearTimeout(this._connectTimeout), this._uptimeTimeout = setTimeout(() => this._acceptOpen(), r), __n(this._ws, "WebSocket is not defined"), this._ws.binaryType = this._binaryType, this._messageQueue.forEach((o) => {
@@ -255875,13 +255888,13 @@ var Yoe, O_n = typeof process < "u" && typeof ((Yoe = process.versions) == null
255875
255888
  (i = this._ws) == null || i.send(o);
255876
255889
  }), this._messageQueue = [], this.onopen && this.onopen(n), this.dispatchEvent(qx(n));
255877
255890
  });
255878
- ut(this, "_handleMessage", (n) => {
255891
+ ct(this, "_handleMessage", (n) => {
255879
255892
  this._debug("message event"), this.onmessage && this.onmessage(n), this.dispatchEvent(qx(n));
255880
255893
  });
255881
- ut(this, "_handleError", (n) => {
255894
+ ct(this, "_handleError", (n) => {
255882
255895
  this._debug("error event", n.message), this._disconnect(void 0, n.message === "TIMEOUT" ? "timeout" : void 0), this.onerror && this.onerror(n), this._debug("exec error listeners"), this.dispatchEvent(qx(n)), this._connect();
255883
255896
  });
255884
- ut(this, "_handleClose", (n) => {
255897
+ ct(this, "_handleClose", (n) => {
255885
255898
  this._debug("close event"), this._clearTimeouts(), this._shouldReconnect && this._connect(), this.onclose && this.onclose(n), this.dispatchEvent(qx(n));
255886
255899
  });
255887
255900
  this._url = n, this._protocols = r, this._options = o, this._options.startClosed && (this._shouldReconnect = !1), this._options.debugLogger && (this._debugLogger = this._options.debugLogger), this._connect();
@@ -257280,8 +257293,8 @@ var MFe = {};
257280
257293
  ne[P] = ae[P] - ue[P];
257281
257294
  }
257282
257295
  function C(ne, ae, ue) {
257283
- let P, J, re = 0, fe = 0, R = 0, le = 0, ce = 0, ee = 0, X = 0, de = 0, Fe = 0, Me = 0, ge = 0, pe = 0, me = 0, be = 0, H = 0, Z = 0, se = 0, ye = 0, we = 0, xe = 0, Se = 0, Le = 0, ve = 0, Be = 0, Ae = 0, Ue = 0, $e = 0, We = 0, Ke = 0, pt = 0, Oe = 0, ze = ue[0], Ge = ue[1], at = ue[2], st = ue[3], ft = ue[4], Mt = ue[5], At = ue[6], Lt = ue[7], Nt = ue[8], ln = ue[9], Tn = ue[10], Dn = ue[11], zn = ue[12], dr = ue[13], Q = ue[14], Ee = ue[15];
257284
- P = ae[0], re += P * ze, fe += P * Ge, R += P * at, le += P * st, ce += P * ft, ee += P * Mt, X += P * At, de += P * Lt, Fe += P * Nt, Me += P * ln, ge += P * Tn, pe += P * Dn, me += P * zn, be += P * dr, H += P * Q, Z += P * Ee, P = ae[1], fe += P * ze, R += P * Ge, le += P * at, ce += P * st, ee += P * ft, X += P * Mt, de += P * At, Fe += P * Lt, Me += P * Nt, ge += P * ln, pe += P * Tn, me += P * Dn, be += P * zn, H += P * dr, Z += P * Q, se += P * Ee, P = ae[2], R += P * ze, le += P * Ge, ce += P * at, ee += P * st, X += P * ft, de += P * Mt, Fe += P * At, Me += P * Lt, ge += P * Nt, pe += P * ln, me += P * Tn, be += P * Dn, H += P * zn, Z += P * dr, se += P * Q, ye += P * Ee, P = ae[3], le += P * ze, ce += P * Ge, ee += P * at, X += P * st, de += P * ft, Fe += P * Mt, Me += P * At, ge += P * Lt, pe += P * Nt, me += P * ln, be += P * Tn, H += P * Dn, Z += P * zn, se += P * dr, ye += P * Q, we += P * Ee, P = ae[4], ce += P * ze, ee += P * Ge, X += P * at, de += P * st, Fe += P * ft, Me += P * Mt, ge += P * At, pe += P * Lt, me += P * Nt, be += P * ln, H += P * Tn, Z += P * Dn, se += P * zn, ye += P * dr, we += P * Q, xe += P * Ee, P = ae[5], ee += P * ze, X += P * Ge, de += P * at, Fe += P * st, Me += P * ft, ge += P * Mt, pe += P * At, me += P * Lt, be += P * Nt, H += P * ln, Z += P * Tn, se += P * Dn, ye += P * zn, we += P * dr, xe += P * Q, Se += P * Ee, P = ae[6], X += P * ze, de += P * Ge, Fe += P * at, Me += P * st, ge += P * ft, pe += P * Mt, me += P * At, be += P * Lt, H += P * Nt, Z += P * ln, se += P * Tn, ye += P * Dn, we += P * zn, xe += P * dr, Se += P * Q, Le += P * Ee, P = ae[7], de += P * ze, Fe += P * Ge, Me += P * at, ge += P * st, pe += P * ft, me += P * Mt, be += P * At, H += P * Lt, Z += P * Nt, se += P * ln, ye += P * Tn, we += P * Dn, xe += P * zn, Se += P * dr, Le += P * Q, ve += P * Ee, P = ae[8], Fe += P * ze, Me += P * Ge, ge += P * at, pe += P * st, me += P * ft, be += P * Mt, H += P * At, Z += P * Lt, se += P * Nt, ye += P * ln, we += P * Tn, xe += P * Dn, Se += P * zn, Le += P * dr, ve += P * Q, Be += P * Ee, P = ae[9], Me += P * ze, ge += P * Ge, pe += P * at, me += P * st, be += P * ft, H += P * Mt, Z += P * At, se += P * Lt, ye += P * Nt, we += P * ln, xe += P * Tn, Se += P * Dn, Le += P * zn, ve += P * dr, Be += P * Q, Ae += P * Ee, P = ae[10], ge += P * ze, pe += P * Ge, me += P * at, be += P * st, H += P * ft, Z += P * Mt, se += P * At, ye += P * Lt, we += P * Nt, xe += P * ln, Se += P * Tn, Le += P * Dn, ve += P * zn, Be += P * dr, Ae += P * Q, Ue += P * Ee, P = ae[11], pe += P * ze, me += P * Ge, be += P * at, H += P * st, Z += P * ft, se += P * Mt, ye += P * At, we += P * Lt, xe += P * Nt, Se += P * ln, Le += P * Tn, ve += P * Dn, Be += P * zn, Ae += P * dr, Ue += P * Q, $e += P * Ee, P = ae[12], me += P * ze, be += P * Ge, H += P * at, Z += P * st, se += P * ft, ye += P * Mt, we += P * At, xe += P * Lt, Se += P * Nt, Le += P * ln, ve += P * Tn, Be += P * Dn, Ae += P * zn, Ue += P * dr, $e += P * Q, We += P * Ee, P = ae[13], be += P * ze, H += P * Ge, Z += P * at, se += P * st, ye += P * ft, we += P * Mt, xe += P * At, Se += P * Lt, Le += P * Nt, ve += P * ln, Be += P * Tn, Ae += P * Dn, Ue += P * zn, $e += P * dr, We += P * Q, Ke += P * Ee, P = ae[14], H += P * ze, Z += P * Ge, se += P * at, ye += P * st, we += P * ft, xe += P * Mt, Se += P * At, Le += P * Lt, ve += P * Nt, Be += P * ln, Ae += P * Tn, Ue += P * Dn, $e += P * zn, We += P * dr, Ke += P * Q, pt += P * Ee, P = ae[15], Z += P * ze, se += P * Ge, ye += P * at, we += P * st, xe += P * ft, Se += P * Mt, Le += P * At, ve += P * Lt, Be += P * Nt, Ae += P * ln, Ue += P * Tn, $e += P * Dn, We += P * zn, Ke += P * dr, pt += P * Q, Oe += P * Ee, re += 38 * se, fe += 38 * ye, R += 38 * we, le += 38 * xe, ce += 38 * Se, ee += 38 * Le, X += 38 * ve, de += 38 * Be, Fe += 38 * Ae, Me += 38 * Ue, ge += 38 * $e, pe += 38 * We, me += 38 * Ke, be += 38 * pt, H += 38 * Oe, J = 1, P = re + J + 65535, J = Math.floor(P / 65536), re = P - J * 65536, P = fe + J + 65535, J = Math.floor(P / 65536), fe = P - J * 65536, P = R + J + 65535, J = Math.floor(P / 65536), R = P - J * 65536, P = le + J + 65535, J = Math.floor(P / 65536), le = P - J * 65536, P = ce + J + 65535, J = Math.floor(P / 65536), ce = P - J * 65536, P = ee + J + 65535, J = Math.floor(P / 65536), ee = P - J * 65536, P = X + J + 65535, J = Math.floor(P / 65536), X = P - J * 65536, P = de + J + 65535, J = Math.floor(P / 65536), de = P - J * 65536, P = Fe + J + 65535, J = Math.floor(P / 65536), Fe = P - J * 65536, P = Me + J + 65535, J = Math.floor(P / 65536), Me = P - J * 65536, P = ge + J + 65535, J = Math.floor(P / 65536), ge = P - J * 65536, P = pe + J + 65535, J = Math.floor(P / 65536), pe = P - J * 65536, P = me + J + 65535, J = Math.floor(P / 65536), me = P - J * 65536, P = be + J + 65535, J = Math.floor(P / 65536), be = P - J * 65536, P = H + J + 65535, J = Math.floor(P / 65536), H = P - J * 65536, P = Z + J + 65535, J = Math.floor(P / 65536), Z = P - J * 65536, re += J - 1 + 37 * (J - 1), J = 1, P = re + J + 65535, J = Math.floor(P / 65536), re = P - J * 65536, P = fe + J + 65535, J = Math.floor(P / 65536), fe = P - J * 65536, P = R + J + 65535, J = Math.floor(P / 65536), R = P - J * 65536, P = le + J + 65535, J = Math.floor(P / 65536), le = P - J * 65536, P = ce + J + 65535, J = Math.floor(P / 65536), ce = P - J * 65536, P = ee + J + 65535, J = Math.floor(P / 65536), ee = P - J * 65536, P = X + J + 65535, J = Math.floor(P / 65536), X = P - J * 65536, P = de + J + 65535, J = Math.floor(P / 65536), de = P - J * 65536, P = Fe + J + 65535, J = Math.floor(P / 65536), Fe = P - J * 65536, P = Me + J + 65535, J = Math.floor(P / 65536), Me = P - J * 65536, P = ge + J + 65535, J = Math.floor(P / 65536), ge = P - J * 65536, P = pe + J + 65535, J = Math.floor(P / 65536), pe = P - J * 65536, P = me + J + 65535, J = Math.floor(P / 65536), me = P - J * 65536, P = be + J + 65535, J = Math.floor(P / 65536), be = P - J * 65536, P = H + J + 65535, J = Math.floor(P / 65536), H = P - J * 65536, P = Z + J + 65535, J = Math.floor(P / 65536), Z = P - J * 65536, re += J - 1 + 37 * (J - 1), ne[0] = re, ne[1] = fe, ne[2] = R, ne[3] = le, ne[4] = ce, ne[5] = ee, ne[6] = X, ne[7] = de, ne[8] = Fe, ne[9] = Me, ne[10] = ge, ne[11] = pe, ne[12] = me, ne[13] = be, ne[14] = H, ne[15] = Z;
257296
+ let P, J, re = 0, fe = 0, R = 0, le = 0, ce = 0, ee = 0, X = 0, de = 0, Fe = 0, Me = 0, ge = 0, pe = 0, me = 0, be = 0, H = 0, Z = 0, se = 0, ye = 0, we = 0, xe = 0, Se = 0, Le = 0, ve = 0, Be = 0, Ae = 0, Ue = 0, Ve = 0, $e = 0, Ke = 0, ut = 0, Oe = 0, ze = ue[0], Ge = ue[1], at = ue[2], st = ue[3], ht = ue[4], Mt = ue[5], At = ue[6], Lt = ue[7], Nt = ue[8], ln = ue[9], Tn = ue[10], Dn = ue[11], zn = ue[12], dr = ue[13], Q = ue[14], Ee = ue[15];
257297
+ P = ae[0], re += P * ze, fe += P * Ge, R += P * at, le += P * st, ce += P * ht, ee += P * Mt, X += P * At, de += P * Lt, Fe += P * Nt, Me += P * ln, ge += P * Tn, pe += P * Dn, me += P * zn, be += P * dr, H += P * Q, Z += P * Ee, P = ae[1], fe += P * ze, R += P * Ge, le += P * at, ce += P * st, ee += P * ht, X += P * Mt, de += P * At, Fe += P * Lt, Me += P * Nt, ge += P * ln, pe += P * Tn, me += P * Dn, be += P * zn, H += P * dr, Z += P * Q, se += P * Ee, P = ae[2], R += P * ze, le += P * Ge, ce += P * at, ee += P * st, X += P * ht, de += P * Mt, Fe += P * At, Me += P * Lt, ge += P * Nt, pe += P * ln, me += P * Tn, be += P * Dn, H += P * zn, Z += P * dr, se += P * Q, ye += P * Ee, P = ae[3], le += P * ze, ce += P * Ge, ee += P * at, X += P * st, de += P * ht, Fe += P * Mt, Me += P * At, ge += P * Lt, pe += P * Nt, me += P * ln, be += P * Tn, H += P * Dn, Z += P * zn, se += P * dr, ye += P * Q, we += P * Ee, P = ae[4], ce += P * ze, ee += P * Ge, X += P * at, de += P * st, Fe += P * ht, Me += P * Mt, ge += P * At, pe += P * Lt, me += P * Nt, be += P * ln, H += P * Tn, Z += P * Dn, se += P * zn, ye += P * dr, we += P * Q, xe += P * Ee, P = ae[5], ee += P * ze, X += P * Ge, de += P * at, Fe += P * st, Me += P * ht, ge += P * Mt, pe += P * At, me += P * Lt, be += P * Nt, H += P * ln, Z += P * Tn, se += P * Dn, ye += P * zn, we += P * dr, xe += P * Q, Se += P * Ee, P = ae[6], X += P * ze, de += P * Ge, Fe += P * at, Me += P * st, ge += P * ht, pe += P * Mt, me += P * At, be += P * Lt, H += P * Nt, Z += P * ln, se += P * Tn, ye += P * Dn, we += P * zn, xe += P * dr, Se += P * Q, Le += P * Ee, P = ae[7], de += P * ze, Fe += P * Ge, Me += P * at, ge += P * st, pe += P * ht, me += P * Mt, be += P * At, H += P * Lt, Z += P * Nt, se += P * ln, ye += P * Tn, we += P * Dn, xe += P * zn, Se += P * dr, Le += P * Q, ve += P * Ee, P = ae[8], Fe += P * ze, Me += P * Ge, ge += P * at, pe += P * st, me += P * ht, be += P * Mt, H += P * At, Z += P * Lt, se += P * Nt, ye += P * ln, we += P * Tn, xe += P * Dn, Se += P * zn, Le += P * dr, ve += P * Q, Be += P * Ee, P = ae[9], Me += P * ze, ge += P * Ge, pe += P * at, me += P * st, be += P * ht, H += P * Mt, Z += P * At, se += P * Lt, ye += P * Nt, we += P * ln, xe += P * Tn, Se += P * Dn, Le += P * zn, ve += P * dr, Be += P * Q, Ae += P * Ee, P = ae[10], ge += P * ze, pe += P * Ge, me += P * at, be += P * st, H += P * ht, Z += P * Mt, se += P * At, ye += P * Lt, we += P * Nt, xe += P * ln, Se += P * Tn, Le += P * Dn, ve += P * zn, Be += P * dr, Ae += P * Q, Ue += P * Ee, P = ae[11], pe += P * ze, me += P * Ge, be += P * at, H += P * st, Z += P * ht, se += P * Mt, ye += P * At, we += P * Lt, xe += P * Nt, Se += P * ln, Le += P * Tn, ve += P * Dn, Be += P * zn, Ae += P * dr, Ue += P * Q, Ve += P * Ee, P = ae[12], me += P * ze, be += P * Ge, H += P * at, Z += P * st, se += P * ht, ye += P * Mt, we += P * At, xe += P * Lt, Se += P * Nt, Le += P * ln, ve += P * Tn, Be += P * Dn, Ae += P * zn, Ue += P * dr, Ve += P * Q, $e += P * Ee, P = ae[13], be += P * ze, H += P * Ge, Z += P * at, se += P * st, ye += P * ht, we += P * Mt, xe += P * At, Se += P * Lt, Le += P * Nt, ve += P * ln, Be += P * Tn, Ae += P * Dn, Ue += P * zn, Ve += P * dr, $e += P * Q, Ke += P * Ee, P = ae[14], H += P * ze, Z += P * Ge, se += P * at, ye += P * st, we += P * ht, xe += P * Mt, Se += P * At, Le += P * Lt, ve += P * Nt, Be += P * ln, Ae += P * Tn, Ue += P * Dn, Ve += P * zn, $e += P * dr, Ke += P * Q, ut += P * Ee, P = ae[15], Z += P * ze, se += P * Ge, ye += P * at, we += P * st, xe += P * ht, Se += P * Mt, Le += P * At, ve += P * Lt, Be += P * Nt, Ae += P * ln, Ue += P * Tn, Ve += P * Dn, $e += P * zn, Ke += P * dr, ut += P * Q, Oe += P * Ee, re += 38 * se, fe += 38 * ye, R += 38 * we, le += 38 * xe, ce += 38 * Se, ee += 38 * Le, X += 38 * ve, de += 38 * Be, Fe += 38 * Ae, Me += 38 * Ue, ge += 38 * Ve, pe += 38 * $e, me += 38 * Ke, be += 38 * ut, H += 38 * Oe, J = 1, P = re + J + 65535, J = Math.floor(P / 65536), re = P - J * 65536, P = fe + J + 65535, J = Math.floor(P / 65536), fe = P - J * 65536, P = R + J + 65535, J = Math.floor(P / 65536), R = P - J * 65536, P = le + J + 65535, J = Math.floor(P / 65536), le = P - J * 65536, P = ce + J + 65535, J = Math.floor(P / 65536), ce = P - J * 65536, P = ee + J + 65535, J = Math.floor(P / 65536), ee = P - J * 65536, P = X + J + 65535, J = Math.floor(P / 65536), X = P - J * 65536, P = de + J + 65535, J = Math.floor(P / 65536), de = P - J * 65536, P = Fe + J + 65535, J = Math.floor(P / 65536), Fe = P - J * 65536, P = Me + J + 65535, J = Math.floor(P / 65536), Me = P - J * 65536, P = ge + J + 65535, J = Math.floor(P / 65536), ge = P - J * 65536, P = pe + J + 65535, J = Math.floor(P / 65536), pe = P - J * 65536, P = me + J + 65535, J = Math.floor(P / 65536), me = P - J * 65536, P = be + J + 65535, J = Math.floor(P / 65536), be = P - J * 65536, P = H + J + 65535, J = Math.floor(P / 65536), H = P - J * 65536, P = Z + J + 65535, J = Math.floor(P / 65536), Z = P - J * 65536, re += J - 1 + 37 * (J - 1), J = 1, P = re + J + 65535, J = Math.floor(P / 65536), re = P - J * 65536, P = fe + J + 65535, J = Math.floor(P / 65536), fe = P - J * 65536, P = R + J + 65535, J = Math.floor(P / 65536), R = P - J * 65536, P = le + J + 65535, J = Math.floor(P / 65536), le = P - J * 65536, P = ce + J + 65535, J = Math.floor(P / 65536), ce = P - J * 65536, P = ee + J + 65535, J = Math.floor(P / 65536), ee = P - J * 65536, P = X + J + 65535, J = Math.floor(P / 65536), X = P - J * 65536, P = de + J + 65535, J = Math.floor(P / 65536), de = P - J * 65536, P = Fe + J + 65535, J = Math.floor(P / 65536), Fe = P - J * 65536, P = Me + J + 65535, J = Math.floor(P / 65536), Me = P - J * 65536, P = ge + J + 65535, J = Math.floor(P / 65536), ge = P - J * 65536, P = pe + J + 65535, J = Math.floor(P / 65536), pe = P - J * 65536, P = me + J + 65535, J = Math.floor(P / 65536), me = P - J * 65536, P = be + J + 65535, J = Math.floor(P / 65536), be = P - J * 65536, P = H + J + 65535, J = Math.floor(P / 65536), H = P - J * 65536, P = Z + J + 65535, J = Math.floor(P / 65536), Z = P - J * 65536, re += J - 1 + 37 * (J - 1), ne[0] = re, ne[1] = fe, ne[2] = R, ne[3] = le, ne[4] = ce, ne[5] = ee, ne[6] = X, ne[7] = de, ne[8] = Fe, ne[9] = Me, ne[10] = ge, ne[11] = pe, ne[12] = me, ne[13] = be, ne[14] = H, ne[15] = Z;
257285
257298
  }
257286
257299
  function D(ne, ae) {
257287
257300
  C(ne, ae, ae);
@@ -257742,8 +257755,8 @@ var NFe = { exports: {} };
257742
257755
  var se = H.length, ye = Z.length, we = se + ye, xe = y(we), Se = r, Le, ve, Be, Ae, Ue;
257743
257756
  for (Be = 0; Be < se; ++Be) {
257744
257757
  Ae = H[Be];
257745
- for (var $e = 0; $e < ye; ++$e)
257746
- Ue = Z[$e], Le = Ae * Ue + xe[Be + $e], ve = Math.floor(Le / Se), xe[Be + $e] = Le - ve * Se, xe[Be + $e + 1] += ve;
257758
+ for (var Ve = 0; Ve < ye; ++Ve)
257759
+ Ue = Z[Ve], Le = Ae * Ue + xe[Be + Ve], ve = Math.floor(Le / Se), xe[Be + Ve] = Le - ve * Se, xe[Be + Ve + 1] += ve;
257747
257760
  }
257748
257761
  return m(xe), xe;
257749
257762
  }
@@ -257812,14 +257825,14 @@ var NFe = { exports: {} };
257812
257825
  return new f(this.value * this.value);
257813
257826
  };
257814
257827
  function N(H, Z) {
257815
- var se = H.length, ye = Z.length, we = r, xe = y(Z.length), Se = Z[ye - 1], Le = Math.ceil(we / (2 * Se)), ve = _(H, Le), Be = _(Z, Le), Ae, Ue, $e, We, Ke, pt, Oe;
257828
+ var se = H.length, ye = Z.length, we = r, xe = y(Z.length), Se = Z[ye - 1], Le = Math.ceil(we / (2 * Se)), ve = _(H, Le), Be = _(Z, Le), Ae, Ue, Ve, $e, Ke, ut, Oe;
257816
257829
  for (ve.length <= se && ve.push(0), Be.push(0), Se = Be[ye - 1], Ue = se - ye; Ue >= 0; Ue--) {
257817
- for (Ae = we - 1, ve[Ue + ye] !== Se && (Ae = Math.floor((ve[Ue + ye] * we + ve[Ue + ye - 1]) / Se)), $e = 0, We = 0, pt = Be.length, Ke = 0; Ke < pt; Ke++)
257818
- $e += Ae * Be[Ke], Oe = Math.floor($e / we), We += ve[Ue + Ke] - ($e - Oe * we), $e = Oe, We < 0 ? (ve[Ue + Ke] = We + we, We = -1) : (ve[Ue + Ke] = We, We = 0);
257819
- for (; We !== 0; ) {
257820
- for (Ae -= 1, $e = 0, Ke = 0; Ke < pt; Ke++)
257821
- $e += ve[Ue + Ke] - we + Be[Ke], $e < 0 ? (ve[Ue + Ke] = $e + we, $e = 0) : (ve[Ue + Ke] = $e, $e = 1);
257822
- We += $e;
257830
+ for (Ae = we - 1, ve[Ue + ye] !== Se && (Ae = Math.floor((ve[Ue + ye] * we + ve[Ue + ye - 1]) / Se)), Ve = 0, $e = 0, ut = Be.length, Ke = 0; Ke < ut; Ke++)
257831
+ Ve += Ae * Be[Ke], Oe = Math.floor(Ve / we), $e += ve[Ue + Ke] - (Ve - Oe * we), Ve = Oe, $e < 0 ? (ve[Ue + Ke] = $e + we, $e = -1) : (ve[Ue + Ke] = $e, $e = 0);
257832
+ for (; $e !== 0; ) {
257833
+ for (Ae -= 1, Ve = 0, Ke = 0; Ke < ut; Ke++)
257834
+ Ve += ve[Ue + Ke] - we + Be[Ke], Ve < 0 ? (ve[Ue + Ke] = Ve + we, Ve = 0) : (ve[Ue + Ke] = Ve, Ve = 1);
257835
+ $e += Ve;
257823
257836
  }
257824
257837
  xe[Ue] = Ae;
257825
257838
  }
@@ -257869,8 +257882,8 @@ var NFe = { exports: {} };
257869
257882
  if (Be === -1) return [u[0], H];
257870
257883
  if (Be === 0) return [u[H.sign === ye.sign ? 1 : -1], u[0]];
257871
257884
  we.length + xe.length <= 200 ? se = N(we, xe) : se = O(we, xe), Se = se[0];
257872
- var Ae = H.sign !== ye.sign, Ue = se[1], $e = H.sign;
257873
- return typeof Se == "number" ? (Ae && (Se = -Se), Se = new d(Se)) : Se = new c(Se, Ae), typeof Ue == "number" ? ($e && (Ue = -Ue), Ue = new d(Ue)) : Ue = new c(Ue, $e), [Se, Ue];
257885
+ var Ae = H.sign !== ye.sign, Ue = se[1], Ve = H.sign;
257886
+ return typeof Se == "number" ? (Ae && (Se = -Se), Se = new d(Se)) : Se = new c(Se, Ae), typeof Ue == "number" ? (Ve && (Ue = -Ue), Ue = new d(Ue)) : Ue = new c(Ue, Ve), [Se, Ue];
257874
257887
  }
257875
257888
  c.prototype.divmod = function(H) {
257876
257889
  var Z = U(this, H);
@@ -258090,9 +258103,9 @@ var NFe = { exports: {} };
258090
258103
  Z = me(Z);
258091
258104
  for (var ye = H.isNegative(), we = Z.isNegative(), xe = ye ? H.not() : H, Se = we ? Z.not() : Z, Le = 0, ve = 0, Be = null, Ae = null, Ue = []; !xe.isZero() || !Se.isZero(); )
258092
258105
  Be = U(xe, te), Le = Be[1].toJSNumber(), ye && (Le = te - 1 - Le), Ae = U(Se, te), ve = Ae[1].toJSNumber(), we && (ve = te - 1 - ve), xe = Be[0], Se = Ae[0], Ue.push(se(Le, ve));
258093
- for (var $e = se(ye ? 1 : 0, we ? 1 : 0) !== 0 ? t(-1) : t(0), We = Ue.length - 1; We >= 0; We -= 1)
258094
- $e = $e.multiply(te).add(t(Ue[We]));
258095
- return $e;
258106
+ for (var Ve = se(ye ? 1 : 0, we ? 1 : 0) !== 0 ? t(-1) : t(0), $e = Ue.length - 1; $e >= 0; $e -= 1)
258107
+ Ve = Ve.multiply(te).add(t(Ue[$e]));
258108
+ return Ve;
258096
258109
  }
258097
258110
  c.prototype.not = function() {
258098
258111
  return this.negate().prev();
@@ -258154,8 +258167,8 @@ var NFe = { exports: {} };
258154
258167
  var ye = se || Math.random, we = fe(H, Z), xe = re(H, Z), Se = xe.subtract(we).add(1);
258155
258168
  if (Se.isSmall) return we.add(Math.floor(ye() * Se));
258156
258169
  for (var Le = Fe(Se, r).value, ve = [], Be = !0, Ae = 0; Ae < Le.length; Ae++) {
258157
- var Ue = Be ? Le[Ae] + (Ae + 1 < Le.length ? Le[Ae + 1] / r : 0) : r, $e = b(ye() * Ue);
258158
- ve.push($e), $e < Le[Ae] && (Be = !1);
258170
+ var Ue = Be ? Le[Ae] + (Ae + 1 < Le.length ? Le[Ae + 1] / r : 0) : r, Ve = b(ye() * Ue);
258171
+ ve.push(Ve), Ve < Le[Ae] && (Be = !1);
258159
258172
  }
258160
258173
  return we.add(u.fromArray(ve, r, !1));
258161
258174
  }
@@ -259672,25 +259685,25 @@ class qOn {
259672
259685
  // indicates whether the hash was finalized
259673
259686
  constructor() {
259674
259687
  /** Length of hash output */
259675
- ut(this, "digestLength", HOn);
259688
+ ct(this, "digestLength", HOn);
259676
259689
  /** Block size */
259677
- ut(this, "blockSize", yie);
259690
+ ct(this, "blockSize", yie);
259678
259691
  // Note: Int32Array is used instead of Uint32Array for performance reasons.
259679
- ut(this, "_stateHi", new Int32Array(8));
259692
+ ct(this, "_stateHi", new Int32Array(8));
259680
259693
  // hash state, high bytes
259681
- ut(this, "_stateLo", new Int32Array(8));
259694
+ ct(this, "_stateLo", new Int32Array(8));
259682
259695
  // hash state, low bytes
259683
- ut(this, "_tempHi", new Int32Array(16));
259696
+ ct(this, "_tempHi", new Int32Array(16));
259684
259697
  // temporary state, high bytes
259685
- ut(this, "_tempLo", new Int32Array(16));
259698
+ ct(this, "_tempLo", new Int32Array(16));
259686
259699
  // temporary state, low bytes
259687
- ut(this, "_buffer", new Uint8Array(256));
259700
+ ct(this, "_buffer", new Uint8Array(256));
259688
259701
  // buffer for data to hash
259689
- ut(this, "_bufferLength", 0);
259702
+ ct(this, "_bufferLength", 0);
259690
259703
  // number of bytes in buffer
259691
- ut(this, "_bytesHashed", 0);
259704
+ ct(this, "_bytesHashed", 0);
259692
259705
  // number of total bytes hashed
259693
- ut(this, "_finished", !1);
259706
+ ct(this, "_finished", !1);
259694
259707
  this.reset();
259695
259708
  }
259696
259709
  _initState() {
@@ -260167,32 +260180,32 @@ function QOn(e) {
260167
260180
  }
260168
260181
  class eRn {
260169
260182
  constructor(t) {
260170
- ut(this, "_websocketUrl");
260171
- ut(this, "_machineEventHandler", null);
260172
- ut(this, "_onConnect", null);
260173
- ut(this, "_onDisconnection", null);
260174
- ut(this, "_onHandShakeError", null);
260175
- ut(this, "_sequenceCallbackMap", {});
260176
- ut(this, "_webSocketStatus", Io.CLOSED);
260177
- ut(this, "_webSocket", null);
260178
- ut(this, "_websocketServiceDid", "");
260179
- ut(this, "roomId", "");
260180
- ut(this, "roomMembers", []);
260181
- ut(this, "collaborationKeyPair", null);
260182
- ut(this, "ownerKeyPair");
260183
- ut(this, "contractAddress");
260184
- ut(this, "ownerUcan");
260185
- ut(this, "collaborationUcan");
260186
- ut(this, "ownerAddress");
260187
- ut(this, "roomKey");
260188
- ut(this, "roomInfo");
260189
- ut(this, "awareness", null);
260190
- ut(this, "_onError", null);
260191
- ut(this, "_onCollaborationConnectCallback", null);
260192
- ut(this, "disconnect", (t, n) => {
260183
+ ct(this, "_websocketUrl");
260184
+ ct(this, "_machineEventHandler", null);
260185
+ ct(this, "_onConnect", null);
260186
+ ct(this, "_onDisconnection", null);
260187
+ ct(this, "_onHandShakeError", null);
260188
+ ct(this, "_sequenceCallbackMap", {});
260189
+ ct(this, "_webSocketStatus", Io.CLOSED);
260190
+ ct(this, "_webSocket", null);
260191
+ ct(this, "_websocketServiceDid", "");
260192
+ ct(this, "roomId", "");
260193
+ ct(this, "roomMembers", []);
260194
+ ct(this, "collaborationKeyPair", null);
260195
+ ct(this, "ownerKeyPair");
260196
+ ct(this, "contractAddress");
260197
+ ct(this, "ownerUcan");
260198
+ ct(this, "collaborationUcan");
260199
+ ct(this, "ownerAddress");
260200
+ ct(this, "roomKey");
260201
+ ct(this, "roomInfo");
260202
+ ct(this, "awareness", null);
260203
+ ct(this, "_onError", null);
260204
+ ct(this, "_onCollaborationConnectCallback", null);
260205
+ ct(this, "disconnect", (t, n) => {
260193
260206
  this._webSocketStatus = Io.CLOSED, this._webSocket && (this._webSocket.onopen = null, this._webSocket.removeEventListener("message", this._processMessage), this._webSocket.close(n, t), this._webSocketStatus = Io.CLOSED);
260194
260207
  });
260195
- ut(this, "terminateSession", async () => {
260208
+ ct(this, "terminateSession", async () => {
260196
260209
  var r;
260197
260210
  const n = {
260198
260211
  ownerToken: await this.getOwnerToken(),
@@ -260202,7 +260215,7 @@ class eRn {
260202
260215
  };
260203
260216
  await this._buildRequest("/documents/terminate", n), this.disconnect("Session terminated", 1e3);
260204
260217
  });
260205
- ut(this, "buildSessionToken", async () => {
260218
+ ct(this, "buildSessionToken", async () => {
260206
260219
  if (!this._websocketServiceDid)
260207
260220
  throw new Error(
260208
260221
  "SocketClient: Server did not response with the server DID"
@@ -260227,7 +260240,7 @@ class eRn {
260227
260240
  ]
260228
260241
  }), za(this.collaborationUcan);
260229
260242
  });
260230
- ut(this, "_handleHandShake", async (t) => {
260243
+ ct(this, "_handleHandShake", async (t) => {
260231
260244
  var s, l, u, c;
260232
260245
  if (this._websocketServiceDid = t.data.server_did, this._webSocketStatus !== Io.CONNECTED || !this.roomId)
260233
260246
  throw new Error(
@@ -260264,14 +260277,14 @@ class eRn {
260264
260277
  }
260265
260278
  (c = this._onConnect) == null || c.call(this);
260266
260279
  });
260267
- ut(this, "_executeRequestCallback", (t) => {
260280
+ ct(this, "_executeRequestCallback", (t) => {
260268
260281
  const n = this._getSequenceIdCallback(t.seqId);
260269
260282
  if (n && typeof n.callback == "function") {
260270
260283
  this._removeSequenceIdFromMap(t.seqId), delete t.seqId, n.callback(t);
260271
260284
  return;
260272
260285
  }
260273
260286
  });
260274
- ut(this, "_dispatchEventHandler", async (t) => {
260287
+ ct(this, "_dispatchEventHandler", async (t) => {
260275
260288
  switch (t.type) {
260276
260289
  case "ROOM_UPDATE": {
260277
260290
  t.event_type === "ROOM_MEMBERSHIP_CHANGE" && await this._fetchRoomMembers();
@@ -260283,10 +260296,10 @@ class eRn {
260283
260296
  }
260284
260297
  }
260285
260298
  });
260286
- ut(this, "_onSessionTerminated", () => {
260299
+ ct(this, "_onSessionTerminated", () => {
260287
260300
  this.disconnect("Session terminated", 1e3), this.resetSocketClient();
260288
260301
  });
260289
- ut(this, "resetSocketClient", () => {
260302
+ ct(this, "resetSocketClient", () => {
260290
260303
  this._webSocketStatus = Io.CLOSED, this._webSocket = null, this._websocketServiceDid = "", this.roomId = "", this.roomMembers = [];
260291
260304
  });
260292
260305
  this._websocketUrl = t.wsUrl || "ws://localhost:5000", this._processMessage = this._processMessage.bind(this);
@@ -261287,11 +261300,11 @@ function HRn(e) {
261287
261300
  function qRn(e) {
261288
261301
  for (var t = [], n = 1; n < arguments.length; n++)
261289
261302
  t[n - 1] = arguments[n];
261290
- var r = URn(t, 1), o = r[0], i = o === void 0 ? {} : o, a = ORn(e, i), s = Ve(function() {
261303
+ var r = URn(t, 1), o = r[0], i = o === void 0 ? {} : o, a = ORn(e, i), s = We(function() {
261291
261304
  return a.status === Er.NotStarted ? i.state ? ja.create(i.state) : a.machine.initialState : a.getSnapshot();
261292
- }, [a]), l = Ve(function(d, f) {
261305
+ }, [a]), l = We(function(d, f) {
261293
261306
  return zRn(a, d, f);
261294
- }, [a]), u = Ve(function(d) {
261307
+ }, [a]), u = We(function(d) {
261295
261308
  var f = a.subscribe(d).unsubscribe;
261296
261309
  return f;
261297
261310
  }, [a]), c = LB.useSyncExternalStoreWithSelector(u, s, s, HRn, l);
@@ -261318,10 +261331,10 @@ var WRn = function(e, t) {
261318
261331
  };
261319
261332
  function B3(e, t, n, r) {
261320
261333
  n === void 0 && (n = WRn);
261321
- var o = Qe(null), i = Ve(function(l) {
261334
+ var o = Qe(null), i = We(function(l) {
261322
261335
  var u = e.subscribe(l).unsubscribe;
261323
261336
  return u;
261324
- }, [e]), a = Ve(function() {
261337
+ }, [e]), a = We(function() {
261325
261338
  return $Rn(e, o);
261326
261339
  }, [e, r]), s = LB.useSyncExternalStoreWithSelector(i, a, a, t, n);
261327
261340
  return s;
@@ -261816,7 +261829,7 @@ const FPn = (e) => e.context.awareness, CPn = (e) => !!(e.context.isReady && e.c
261816
261829
  }), r = B3(n, FPn), o = B3(n, CPn), i = B3(n, DPn), a = B3(n, MPn), s = B3(
261817
261830
  n,
261818
261831
  EPn
261819
- ), l = Ve(
261832
+ ), l = We(
261820
261833
  (d) => {
261821
261834
  t({
261822
261835
  type: "CONNECT",
@@ -261828,12 +261841,12 @@ const FPn = (e) => e.context.awareness, CPn = (e) => !!(e.context.isReady && e.c
261828
261841
  },
261829
261842
  // eslint-disable-next-line react-hooks/exhaustive-deps
261830
261843
  [e.ydoc]
261831
- ), u = Ve(() => {
261844
+ ), u = We(() => {
261832
261845
  t({
261833
261846
  type: "DISCONNECT",
261834
261847
  data: {}
261835
261848
  });
261836
- }, [t]), c = Ve(() => {
261849
+ }, [t]), c = We(() => {
261837
261850
  t({
261838
261851
  type: "TERMINATE_SESSION",
261839
261852
  data: {}
@@ -261928,7 +261941,7 @@ const FPn = (e) => e.context.awareness, CPn = (e) => !!(e.context.isReady && e.c
261928
261941
  onIndexedDbError: I,
261929
261942
  ...S
261930
261943
  }) => {
261931
- var Ke, pt;
261944
+ var Ke, ut;
261932
261945
  const [L, M] = Re(!0), [j, N] = Re(!0), [O] = Re(new rc()), {
261933
261946
  connect: B,
261934
261947
  isReady: U,
@@ -262008,17 +262021,17 @@ const FPn = (e) => e.context.awareness, CPn = (e) => !!(e.context.isReady && e.c
262008
262021
  let at = !1;
262009
262022
  return Oe.doc.nodesBetween(ze, Ge, (st) => {
262010
262023
  st.marks && st.marks.some(
262011
- (ft) => ft.type.name === "highlight" && ft.attrs.color === "yellow"
262024
+ (ht) => ht.type.name === "highlight" && ht.attrs.color === "yellow"
262012
262025
  ) && (at = !0);
262013
262026
  }), at;
262014
262027
  }, ee = (Oe, ze) => {
262015
262028
  var at;
262016
262029
  const Ge = ze.target;
262017
262030
  if (Ge && Ge.nodeName === "MARK" && Ge.dataset.color && ((at = Ge == null ? void 0 : Ge.dataset) == null ? void 0 : at.color) === "yellow") {
262018
- const st = Ge.textContent, ft = Oe.posAtCoords({ left: ze.clientX, top: ze.clientY });
262019
- if (ft) {
262031
+ const st = Ge.textContent, ht = Oe.posAtCoords({ left: ze.clientX, top: ze.clientY });
262032
+ if (ht) {
262020
262033
  const { state: Mt } = Oe;
262021
- let At = ft.pos, Lt = ft.pos;
262034
+ let At = ht.pos, Lt = ht.pos;
262022
262035
  if (Mt.doc.nodesBetween(At, Lt, (Nt, ln) => {
262023
262036
  Nt.marks && Nt.marks.length && Nt.marks.forEach((Tn) => {
262024
262037
  Tn.type.name === "highlight" && (At = ln, Lt = ln + Nt.nodeSize);
@@ -262037,11 +262050,11 @@ const FPn = (e) => e.context.awareness, CPn = (e) => !!(e.context.isReady && e.c
262037
262050
  }, X = (Oe, ze, Ge) => {
262038
262051
  ee(Oe, Ge);
262039
262052
  }, de = jt(() => J, [J]), Fe = Qe(null), Me = (Oe, ze) => {
262040
- const { state: Ge } = Oe, { selection: at } = Ge, { from: st, to: ft, empty: Mt } = at;
262053
+ const { state: Ge } = Oe, { selection: at } = Ge, { from: st, to: ht, empty: Mt } = at;
262041
262054
  if (ze.key === "Backspace" || ze.key === "Delete") {
262042
262055
  let At = !1;
262043
262056
  if (!Mt)
262044
- Ge.doc.nodesBetween(st, ft, (Lt) => {
262057
+ Ge.doc.nodesBetween(st, ht, (Lt) => {
262045
262058
  Lt.type.name === "reminderBlock" && (At = !0);
262046
262059
  });
262047
262060
  else {
@@ -262075,8 +262088,8 @@ const FPn = (e) => e.context.awareness, CPn = (e) => !!(e.context.isReady && e.c
262075
262088
  }
262076
262089
  },
262077
262090
  handleClick: (Oe, ze, Ge) => {
262078
- const at = Ge.metaKey || Ge.ctrlKey, ft = Ge.target.closest("a");
262079
- return at && ft && ft.href && ft.textContent.match(Bw) ? (window.open(ft.href, "_blank"), !0) : (ft && ft.href && !ft.textContent.match(Bw) && window.open(ft.href, "_blank"), X ? X(Oe, ze, Ge) : !1);
262091
+ const at = Ge.metaKey || Ge.ctrlKey, ht = Ge.target.closest("a");
262092
+ return at && ht && ht.href && ht.textContent.match(Bw) ? (window.open(ht.href, "_blank"), !0) : (ht && ht.href && !ht.textContent.match(Bw) && window.open(ht.href, "_blank"), X ? X(Oe, ze, Ge) : !1);
262080
262093
  },
262081
262094
  attributes: {
262082
262095
  spellCheck: "true"
@@ -262188,7 +262201,7 @@ const FPn = (e) => e.context.awareness, CPn = (e) => !!(e.context.isReady && e.c
262188
262201
  }, ye = (Oe) => {
262189
262202
  const ze = Oe.map((Ge) => ir(Ge));
262190
262203
  h1(O, vu(ze), "self");
262191
- }, we = (Oe) => Array.isArray(Oe) || typeof Oe == "string" && !lke(Oe), xe = (Oe) => Oe === null, Se = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, Le = new URLSearchParams(Se), ve = Le.get("heading"), Be = ve == null ? void 0 : ve.split("-").pop(), { isNativeMobile: Ae } = j1(), Ue = Ve(
262204
+ }, we = (Oe) => Array.isArray(Oe) || typeof Oe == "string" && !lke(Oe), xe = (Oe) => Oe === null, Se = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, Le = new URLSearchParams(Se), ve = Le.get("heading"), Be = ve == null ? void 0 : ve.split("-").pop(), { isNativeMobile: Ae } = j1(), Ue = We(
262192
262205
  (Oe) => {
262193
262206
  if (ge)
262194
262207
  try {
@@ -262203,8 +262216,8 @@ const FPn = (e) => e.context.awareness, CPn = (e) => !!(e.context.isReady && e.c
262203
262216
  Ge == null ? void 0 : Ge.textContent
262204
262217
  ), st = ve == null ? void 0 : ve.split("-").slice(0, -1).join("-");
262205
262218
  at !== st && (Le.set("heading", `${at}-${Oe}`), window.location.hash = Le.toString());
262206
- const ft = ge.view.posAtDOM(Ge, 0), Mt = ge.view.state.tr;
262207
- Mt.setSelection(new kt(Mt.doc.resolve(ft))), ge.view.dispatch(Mt);
262219
+ const ht = ge.view.posAtDOM(Ge, 0), Mt = ge.view.state.tr;
262220
+ Mt.setSelection(new kt(Mt.doc.resolve(ht))), ge.view.dispatch(Mt);
262208
262221
  const Lt = [
262209
262222
  document.querySelector(".ProseMirror"),
262210
262223
  document.getElementById("editor-canvas"),
@@ -262285,7 +262298,7 @@ const FPn = (e) => e.context.awareness, CPn = (e) => !!(e.context.isReady && e.c
262285
262298
  })
262286
262299
  );
262287
262300
  o == null || o(Oe);
262288
- }, [(pt = (Ke = ge == null ? void 0 : ge.storage) == null ? void 0 : Ke.collaborationCaret) == null ? void 0 : pt.users]), He(() => {
262301
+ }, [(ut = (Ke = ge == null ? void 0 : ge.storage) == null ? void 0 : Ke.collaborationCaret) == null ? void 0 : ut.users]), He(() => {
262289
262302
  s && s((ge == null ? void 0 : ge.storage.characterCount.characters()) ?? 0), l && l((ge == null ? void 0 : ge.storage.characterCount.words()) ?? 0);
262290
262303
  }, [
262291
262304
  ge == null ? void 0 : ge.storage.characterCount.characters(),
@@ -262311,18 +262324,18 @@ const FPn = (e) => e.context.awareness, CPn = (e) => !!(e.context.isReady && e.c
262311
262324
  ze.state.doc.nodesBetween(
262312
262325
  Ge,
262313
262326
  at,
262314
- (ft, Mt) => {
262315
- ft.marks && ft.marks.forEach((At) => {
262327
+ (ht, Mt) => {
262328
+ ht.marks && ht.marks.forEach((At) => {
262316
262329
  At.type.name === "textStyle" && At.attrs.color && st.push({
262317
262330
  from: Mt,
262318
- to: Mt + ft.nodeSize,
262331
+ to: Mt + ht.nodeSize,
262319
262332
  mark: At
262320
262333
  });
262321
262334
  });
262322
262335
  }
262323
- ), ze.chain().setTextSelection({ from: Ge, to: at }).setColor("").run(), st.forEach(({ from: ft, to: Mt, mark: At }) => {
262336
+ ), ze.chain().setTextSelection({ from: Ge, to: at }).setColor("").run(), st.forEach(({ from: ht, to: Mt, mark: At }) => {
262324
262337
  const Lt = At.attrs.color;
262325
- $Y(Lt) || ze.chain().setTextSelection({ from: ft, to: Mt }).setColor(Lt).run();
262338
+ $Y(Lt) || ze.chain().setTextSelection({ from: ht, to: Mt }).setColor(Lt).run();
262326
262339
  }), ze.commands.setTextSelection(at);
262327
262340
  }, 0);
262328
262341
  };
@@ -262330,29 +262343,29 @@ const FPn = (e) => e.context.awareness, CPn = (e) => !!(e.context.isReady && e.c
262330
262343
  ge.off("paste", Oe);
262331
262344
  };
262332
262345
  }, [ge]);
262333
- const $e = Qe(localStorage.getItem("theme") !== null), We = Qe(!1);
262346
+ const Ve = Qe(localStorage.getItem("theme") !== null), $e = Qe(!1);
262334
262347
  return He(() => {
262335
- if (!(!ge || L || !$e.current || We.current))
262348
+ if (!(!ge || L || !Ve.current || $e.current))
262336
262349
  if (t) {
262337
262350
  const Oe = setTimeout(() => {
262338
262351
  if (!ge) return;
262339
262352
  const { from: ze, to: Ge } = ge.state.selection, at = [];
262340
- ge.state.doc.descendants((st, ft) => {
262353
+ ge.state.doc.descendants((st, ht) => {
262341
262354
  st.marks && st.marks.forEach((Mt) => {
262342
262355
  Mt.type.name === "textStyle" && Mt.attrs.color && at.push({
262343
- from: ft,
262344
- to: ft + st.nodeSize,
262356
+ from: ht,
262357
+ to: ht + st.nodeSize,
262345
262358
  mark: Mt
262346
262359
  });
262347
262360
  });
262348
- }), at.length > 0 && (ge.chain().selectAll().setColor("").run(), at.forEach(({ from: st, to: ft, mark: Mt }) => {
262361
+ }), at.length > 0 && (ge.chain().selectAll().setColor("").run(), at.forEach(({ from: st, to: ht, mark: Mt }) => {
262349
262362
  const At = Mt.attrs.color;
262350
- $Y(At) || ge.chain().setTextSelection({ from: st, to: ft }).setColor(At).run();
262351
- }), ge.commands.setTextSelection({ from: ze, to: Ge })), We.current = !0;
262363
+ $Y(At) || ge.chain().setTextSelection({ from: st, to: ht }).setColor(At).run();
262364
+ }), ge.commands.setTextSelection({ from: ze, to: Ge })), $e.current = !0;
262352
262365
  }, 100);
262353
262366
  return () => clearTimeout(Oe);
262354
262367
  } else
262355
- We.current = !0;
262368
+ $e.current = !0;
262356
262369
  }, [ge, t, L]), {
262357
262370
  editor: ge,
262358
262371
  isContentLoading: Y && !(_ != null && _.isOwner) && j || L,
@@ -263202,7 +263215,7 @@ const WPn = ({
263202
263215
  ].includes(Y.name)
263203
263216
  ),
263204
263217
  editable: !s
263205
- }), [s]), N = Ve(async () => {
263218
+ }), [s]), N = We(async () => {
263206
263219
  var ae;
263207
263220
  if (!e || !((ae = e.view) != null && ae.dom)) return;
263208
263221
  if (!s && e.view.dom.querySelector(".is-editor-empty")) {
@@ -263245,13 +263258,13 @@ const WPn = ({
263245
263258
  He(() => {
263246
263259
  N();
263247
263260
  }, [e.state.doc]);
263248
- const O = Ve(() => {
263261
+ const O = We(() => {
263249
263262
  C ? r((Y) => !Y) : document.fullscreenElement ? document.exitFullscreen ? document.exitFullscreen().then(() => r(!1)).catch(() => {
263250
263263
  r(!1);
263251
263264
  }) : r(!1) : document.documentElement.requestFullscreen ? document.documentElement.requestFullscreen().then(() => r(!0)).catch(() => {
263252
263265
  r(!0);
263253
263266
  }) : r(!0);
263254
- }, [C]), B = Ve(
263267
+ }, [C]), B = We(
263255
263268
  (Y) => {
263256
263269
  Y.key === "ArrowRight" || Y.key === "ArrowDown" || Y.code === "Space" ? (Y.preventDefault(), Y.stopPropagation(), M("forward"), x((oe) => Math.min(oe + 1, c.length - 1))) : Y.key === "ArrowLeft" || Y.key === "ArrowUp" ? (M("backward"), x((oe) => Math.max(oe - 1, 0))) : Y.key === "Escape" ? !s && t() : (Y.key === "f" || Y.key === "F") && O();
263257
263270
  },
@@ -263269,7 +263282,7 @@ const WPn = ({
263269
263282
  I(null), T(Y.targetTouches[0].clientX);
263270
263283
  }, $ = (Y) => {
263271
263284
  I(Y.targetTouches[0].clientX);
263272
- }, q = Ve(() => {
263285
+ }, q = We(() => {
263273
263286
  if (!D || !_) return;
263274
263287
  const Y = D - _, oe = Y > S, te = Y < -S;
263275
263288
  oe && (M("forward"), x((K) => Math.min(K + 1, c.length - 1))), te && (M("backward"), x((K) => Math.max(K - 1, 0)));
@@ -264019,7 +264032,7 @@ const WPn = ({
264019
264032
  orientation: r
264020
264033
  // onItemRemove,
264021
264034
  }) => {
264022
- const o = Ve(
264035
+ const o = We(
264023
264036
  (s) => {
264024
264037
  s.preventDefault(), s.stopPropagation(), t(s, e.id);
264025
264038
  },
@@ -264061,7 +264074,7 @@ const JFe = D1(
264061
264074
  const [o, i] = Re(null), a = Hr("(max-width: 1280px)"), s = Qe(null), l = Qe(0), u = Qe(null), c = jt(() => e.map((m) => ({
264062
264075
  ...m,
264063
264076
  isActive: m.id === o
264064
- })), [e, o]), d = Ve(() => {
264077
+ })), [e, o]), d = We(() => {
264065
264078
  var m;
264066
264079
  if (t && ((m = t.view) != null && m.dom) && (!s.current || Date.now() - l.current > 250)) {
264067
264080
  const y = /* @__PURE__ */ new Map();
@@ -264083,7 +264096,7 @@ const JFe = D1(
264083
264096
  t.off("update", m), t.off("selectionUpdate", m), u.current && cancelAnimationFrame(u.current);
264084
264097
  };
264085
264098
  }, [t, d]);
264086
- const f = Ve(
264099
+ const f = We(
264087
264100
  (m) => {
264088
264101
  if (!t) return;
264089
264102
  const { doc: y } = t.state;
@@ -264098,7 +264111,7 @@ const JFe = D1(
264098
264111
  }), b !== -1 && t.chain().setNodeSelection(b).updateAttributes("heading", { isCollapsed: !1 }).run();
264099
264112
  },
264100
264113
  [t]
264101
- ), h = Ve(
264114
+ ), h = We(
264102
264115
  (m) => {
264103
264116
  if (!t) return;
264104
264117
  f(m);
@@ -264126,7 +264139,7 @@ const JFe = D1(
264126
264139
  }
264127
264140
  },
264128
264141
  [e, t, f]
264129
- ), p = Ve(
264142
+ ), p = We(
264130
264143
  (m, y) => {
264131
264144
  var b;
264132
264145
  if (m.preventDefault(), m.stopPropagation(), i(y), t && ((b = t.view) != null && b.dom)) {
@@ -264161,7 +264174,7 @@ const JFe = D1(
264161
264174
  }
264162
264175
  },
264163
264176
  [t, h, d, a]
264164
- ), g = Ve(
264177
+ ), g = We(
264165
264178
  (m, y) => {
264166
264179
  m.preventDefault(), m.stopPropagation(), n((b) => {
264167
264180
  var k;
@@ -264325,15 +264338,15 @@ const Bie = _e.memo(JFe), QPn = ({
264325
264338
  )) return !1;
264326
264339
  const { state: f } = u, { selection: h } = f, p = Zw(h.$from, u.schema.marks.link);
264327
264340
  return p ? f.doc.textBetween(p.from, p.to) === c : !1;
264328
- }, i = Ve(() => {
264341
+ }, i = We(() => {
264329
264342
  const u = e.state.selection.to, c = e.getAttributes("link").href;
264330
264343
  e.commands.extendMarkRange("link", { href: c }), e.chain().focus().setTextSelection(u).unsetMark("link").insertContent(" ").run();
264331
- }, [e]), a = Ve(
264344
+ }, [e]), a = We(
264332
264345
  (u) => {
264333
264346
  r.current && r.current.contains(u.target) || i();
264334
264347
  },
264335
264348
  [i]
264336
- ), s = Ve(
264349
+ ), s = We(
264337
264350
  (u) => {
264338
264351
  var p, g;
264339
264352
  const { key: c } = u, d = document.activeElement;
@@ -264484,17 +264497,17 @@ const Bie = _e.memo(JFe), QPn = ({
264484
264497
  footerHeight: Be,
264485
264498
  ipfsImageFetchFn: Ae,
264486
264499
  fetchV1ImageFn: Ue,
264487
- activeModel: $e,
264488
- maxTokens: We,
264500
+ activeModel: Ve,
264501
+ maxTokens: $e,
264489
264502
  isAIAgentEnabled: Ke,
264490
- collaborationKey: pt,
264503
+ collaborationKey: ut,
264491
264504
  collaborationKeyPair: Oe,
264492
264505
  collabConfig: ze,
264493
264506
  // Document styling object
264494
264507
  documentStyling: Ge,
264495
264508
  ...at
264496
264509
  }, st) => {
264497
- const [ft, Mt] = Re(!1), [At, Lt] = Re(!1), ln = (() => {
264510
+ const [ht, Mt] = Re(!1), [At, Lt] = Re(!1), ln = (() => {
264498
264511
  if (!Ge)
264499
264512
  return { canvas: void 0, background: void 0 };
264500
264513
  const un = {}, tn = {};
@@ -264519,7 +264532,7 @@ const Bie = _e.memo(JFe), QPn = ({
264519
264532
  }, [k]);
264520
264533
  const {
264521
264534
  editor: Ne,
264522
- ref: ht,
264535
+ ref: pt,
264523
264536
  isContentLoading: Yt,
264524
264537
  ydoc: Ut,
264525
264538
  refreshYjsIndexedDbProvider: Un,
@@ -264567,10 +264580,10 @@ const Bie = _e.memo(JFe), QPn = ({
264567
264580
  extensions: Le,
264568
264581
  onCopyHeadingLink: ve,
264569
264582
  isConnected: me,
264570
- activeModel: $e,
264571
- maxTokens: We,
264583
+ activeModel: Ve,
264584
+ maxTokens: $e,
264572
264585
  isAIAgentEnabled: Ke,
264573
- collaborationKey: pt,
264586
+ collaborationKey: ut,
264574
264587
  collaborationKeyPair: Oe,
264575
264588
  collabConfig: ze,
264576
264589
  ...at
@@ -264690,7 +264703,7 @@ const Bie = _e.memo(JFe), QPn = ({
264690
264703
  const un = Ne.view.dom;
264691
264704
  if (!un) return;
264692
264705
  const tn = () => {
264693
- ht.current && ht.current.scrollIntoView();
264706
+ pt.current && pt.current.scrollIntoView();
264694
264707
  };
264695
264708
  return un.addEventListener("resize", tn), () => {
264696
264709
  un.removeEventListener("resize", tn);
@@ -264698,7 +264711,7 @@ const Bie = _e.memo(JFe), QPn = ({
264698
264711
  } catch {
264699
264712
  return;
264700
264713
  }
264701
- }, [Ne, ht, bt]);
264714
+ }, [Ne, pt, bt]);
264702
264715
  const jV = Hr("(max-width: 768px)"), LV = () => {
264703
264716
  var un, tn;
264704
264717
  return /* @__PURE__ */ E.jsx(ym, { children: /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
@@ -264811,7 +264824,7 @@ const Bie = _e.memo(JFe), QPn = ({
264811
264824
  children: /* @__PURE__ */ E.jsxs(
264812
264825
  "div",
264813
264826
  {
264814
- ref: ht,
264827
+ ref: pt,
264815
264828
  className: St(
264816
264829
  "w-full h-full pt-8 md:pt-0",
264817
264830
  { "custom-ios-padding": Dt },
@@ -264855,7 +264868,7 @@ const Bie = _e.memo(JFe), QPn = ({
264855
264868
  ),
264856
264869
  /* @__PURE__ */ E.jsx(nzn, { editor: Ne })
264857
264870
  ] }),
264858
- Ne && /* @__PURE__ */ E.jsx(min, { editor: Ne, appendTo: ht })
264871
+ Ne && /* @__PURE__ */ E.jsx(min, { editor: Ne, appendTo: pt })
264859
264872
  ] }),
264860
264873
  !Ne || Yt ? Fi(
264861
264874
  /* @__PURE__ */ E.jsxs("div", { className: `${jV ? "mx-10 mt-10" : "mx-20"}`, children: [
@@ -264951,7 +264964,7 @@ const Bie = _e.memo(JFe), QPn = ({
264951
264964
  className: St(
264952
264965
  "w-full h-auto",
264953
264966
  e && "preview-mode",
264954
- $e !== void 0 && Ke && "has-available-models",
264967
+ Ve !== void 0 && Ke && "has-available-models",
264955
264968
  we && "hide-inline-comments"
264956
264969
  ),
264957
264970
  ...Tn() && {
@@ -264988,7 +265001,7 @@ const Bie = _e.memo(JFe), QPn = ({
264988
265001
  {
264989
265002
  className: St(
264990
265003
  "flex mobile:hidden items-center w-full h-[52px] fixed left-0 z-10 px-4 color-bg-default transition-all duration-300 ease-in-out border-b border-color-default",
264991
- ft && "hidden",
265004
+ ht && "hidden",
264992
265005
  { "top-14": O, "top-0": !O }
264993
265006
  ),
264994
265007
  children: /* @__PURE__ */ E.jsx(
@@ -264996,7 +265009,7 @@ const Bie = _e.memo(JFe), QPn = ({
264996
265009
  {
264997
265010
  onError: y,
264998
265011
  editor: Ne,
264999
- isKeyboardVisible: ft,
265012
+ isKeyboardVisible: ht,
265000
265013
  isNavbarVisible: O,
265001
265014
  setIsNavbarVisible: B,
265002
265015
  ipfsImageUploadFn: g,
@@ -265443,7 +265456,7 @@ const Bie = _e.memo(JFe), QPn = ({
265443
265456
  ({ node: e, editor: t, deleteNode: n }) => {
265444
265457
  const r = e.attrs.reminder, [o, i] = Re(
265445
265458
  r != null && r.timestamp ? new Date(r.timestamp).getTime() < Date.now() : !1
265446
- ), a = t.isEditable === !1, s = Ve(() => {
265459
+ ), a = t.isEditable === !1, s = We(() => {
265447
265460
  const c = [];
265448
265461
  return t.state.doc.descendants((d) => {
265449
265462
  d.type.name === "reminderBlock" && c.push({
@@ -265453,7 +265466,7 @@ const Bie = _e.memo(JFe), QPn = ({
265453
265466
  }), c.sort(
265454
265467
  (d, f) => new Date(d.timestamp).getTime() - new Date(f.timestamp).getTime()
265455
265468
  );
265456
- }, [t]), l = Ve(
265469
+ }, [t]), l = We(
265457
265470
  (c) => {
265458
265471
  const d = s(), f = d.findIndex((g) => g.id === r.id);
265459
265472
  if (f === -1) return;
@@ -265486,7 +265499,7 @@ const Bie = _e.memo(JFe), QPn = ({
265486
265499
  return () => clearTimeout(h);
265487
265500
  }
265488
265501
  }, [o, r.timestamp]);
265489
- const u = Ve(() => {
265502
+ const u = We(() => {
265490
265503
  var d;
265491
265504
  const c = (d = t.extensionManager.extensions.find(
265492
265505
  (f) => f.name === "reminderBlock"