@fileverse-dev/ddoc 2.3.0-rtc-patch-15 → 2.3.0-rtc-patch-17

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.
@@ -343,7 +343,7 @@ function x0e() {
343
343
  return "";
344
344
  }
345
345
  var be = Object.prototype.hasOwnProperty, ue = {}, Fe = y.ReactDebugCurrentFrame;
346
- function Ae(Z) {
346
+ function De(Z) {
347
347
  if (Z) {
348
348
  var ye = Z._owner, Te = we(Z.type, Z._source, ye ? ye.type : null);
349
349
  Fe.setExtraStackFrame(Te);
@@ -365,7 +365,7 @@ function x0e() {
365
365
  } catch (ge) {
366
366
  dt = ge;
367
367
  }
368
- dt && !(dt instanceof Error) && (Ae(vt), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Qe || "React class", Te, pt, typeof dt), Ae(null)), dt instanceof Error && !(dt.message in ue) && (ue[dt.message] = !0, Ae(vt), x("Failed %s type: %s", Te, dt.message), Ae(null));
368
+ dt && !(dt instanceof Error) && (De(vt), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Qe || "React class", Te, pt, typeof dt), De(null)), dt instanceof Error && !(dt.message in ue) && (ue[dt.message] = !0, De(vt), x("Failed %s type: %s", Te, dt.message), De(null));
369
369
  }
370
370
  }
371
371
  }
@@ -495,8 +495,8 @@ function x0e() {
495
495
  } else
496
496
  ze.setExtraStackFrame(null);
497
497
  }
498
- var De;
499
- De = !1;
498
+ var Ae;
499
+ Ae = !1;
500
500
  function Pe(Z) {
501
501
  return typeof Z == "object" && Z !== null && Z.$$typeof === t;
502
502
  }
@@ -577,8 +577,8 @@ Check the top-level render call using <` + Te + ">.");
577
577
  if (Te) {
578
578
  var Qe = V(ye);
579
579
  Ie(Te, Z.props, "prop", Qe, Z);
580
- } else if (ye.PropTypes !== void 0 && !De) {
581
- De = !0;
580
+ } else if (ye.PropTypes !== void 0 && !Ae) {
581
+ Ae = !0;
582
582
  var vt = V(ye);
583
583
  x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", vt || "Unknown");
584
584
  }
@@ -13590,7 +13590,7 @@ function tge(e) {
13590
13590
  C[v] = be, N[v] = be - O;
13591
13591
  }
13592
13592
  if (s) {
13593
- var ue, Fe = v === "x" ? wi : ki, Ae = v === "x" ? Da : ja, Ie = C[M], Be = M === "y" ? "height" : "width", Ee = Ie + g[Fe], ut = Ie - g[Ae], We = [wi, ki].indexOf(y) !== -1, $e = (ue = _ == null ? void 0 : _[M]) != null ? ue : 0, B = We ? Ee : Ie - A[Be] - E[Be] - $e + R.altAxis, q = We ? Ie + A[Be] + E[Be] - $e - R.altAxis : ut, J = h && We ? Cme(B, Ie, q) : v2(h ? B : Ee, Ie, h ? q : ut);
13593
+ var ue, Fe = v === "x" ? wi : ki, De = v === "x" ? Da : ja, Ie = C[M], Be = M === "y" ? "height" : "width", Ee = Ie + g[Fe], ut = Ie - g[De], We = [wi, ki].indexOf(y) !== -1, $e = (ue = _ == null ? void 0 : _[M]) != null ? ue : 0, B = We ? Ee : Ie - A[Be] - E[Be] - $e + R.altAxis, q = We ? Ie + A[Be] + E[Be] - $e - R.altAxis : ut, J = h && We ? Cme(B, Ie, q) : v2(h ? B : Ee, Ie, h ? q : ut);
13594
13594
  C[M] = J, N[M] = J - Ie;
13595
13595
  }
13596
13596
  t.modifiersData[r] = N;
@@ -14364,10 +14364,10 @@ function Hge(e, t) {
14364
14364
  var Ne = le.target, ke = V().contains(Ne) || C.contains(Ne);
14365
14365
  if (!(le.type === "mousemove" && ke)) {
14366
14366
  var Re = Be().concat(C).map(function(qe) {
14367
- var ze, Ze = qe._tippy, De = (ze = Ze.popperInstance) == null ? void 0 : ze.state;
14368
- return De ? {
14367
+ var ze, Ze = qe._tippy, Ae = (ze = Ze.popperInstance) == null ? void 0 : ze.state;
14368
+ return Ae ? {
14369
14369
  popperRect: qe.getBoundingClientRect(),
14370
- popperState: De,
14370
+ popperState: Ae,
14371
14371
  props: n
14372
14372
  } : null;
14373
14373
  }).filter(Boolean);
@@ -14391,8 +14391,8 @@ function Hge(e, t) {
14391
14391
  return _s.isTouch ? _() !== le.type.indexOf("touch") >= 0 : !1;
14392
14392
  }
14393
14393
  function Fe() {
14394
- Ae();
14395
- var le = v.props, Ne = le.popperOptions, ke = le.placement, Re = le.offset, qe = le.getReferenceClientRect, ze = le.moveTransition, Ze = N() ? gF(C).arrow : null, De = qe ? {
14394
+ De();
14395
+ var le = v.props, Ne = le.popperOptions, ke = le.placement, Re = le.offset, qe = le.getReferenceClientRect, ze = le.moveTransition, Ze = N() ? gF(C).arrow : null, Ae = qe ? {
14396
14396
  getBoundingClientRect: qe,
14397
14397
  contextElement: qe.contextElement || V()
14398
14398
  } : e, Pe = {
@@ -14441,13 +14441,13 @@ function Hge(e, t) {
14441
14441
  element: Ze,
14442
14442
  padding: 3
14443
14443
  }
14444
- }), Ye.push.apply(Ye, (Ne == null ? void 0 : Ne.modifiers) || []), v.popperInstance = hge(De, C, Object.assign({}, Ne, {
14444
+ }), Ye.push.apply(Ye, (Ne == null ? void 0 : Ne.modifiers) || []), v.popperInstance = hge(Ae, C, Object.assign({}, Ne, {
14445
14445
  placement: ke,
14446
14446
  onFirstUpdate: f,
14447
14447
  modifiers: Ye
14448
14448
  }));
14449
14449
  }
14450
- function Ae() {
14450
+ function De() {
14451
14451
  v.popperInstance && (v.popperInstance.destroy(), v.popperInstance = null);
14452
14452
  }
14453
14453
  function Ie() {
@@ -14516,8 +14516,8 @@ function Hge(e, t) {
14516
14516
  var le = v.state.isVisible, Ne = v.state.isDestroyed, ke = !v.state.isEnabled, Re = _s.isTouch && !v.props.touch, qe = o9(v.props.duration, 0, Vi.duration);
14517
14517
  if (!(le || Ne || ke || Re) && !V().hasAttribute("disabled") && (P("onShow", [v], !1), v.props.onShow(v) !== !1)) {
14518
14518
  if (v.state.isVisible = !0, N() && (C.style.visibility = "visible"), O(), ie(), v.state.isMounted || (C.style.transition = "none"), N()) {
14519
- var ze = I(), Ze = ze.box, De = ze.content;
14520
- i9([Ze, De], 0);
14519
+ var ze = I(), Ze = ze.box, Ae = ze.content;
14520
+ i9([Ze, Ae], 0);
14521
14521
  }
14522
14522
  f = function() {
14523
14523
  var Ye;
@@ -14548,7 +14548,7 @@ function Hge(e, t) {
14548
14548
  process.env.NODE_ENV !== "production" && Gl(v.state.isDestroyed, v0("hideWithInteractivity")), T().addEventListener("mousemove", p), YI(f4, p), p(le);
14549
14549
  }
14550
14550
  function Me() {
14551
- process.env.NODE_ENV !== "production" && Gl(v.state.isDestroyed, v0("unmount")), v.state.isVisible && v.hide(), v.state.isMounted && (Ae(), Be().forEach(function(le) {
14551
+ process.env.NODE_ENV !== "production" && Gl(v.state.isDestroyed, v0("unmount")), v.state.isVisible && v.hide(), v.state.isMounted && (De(), Be().forEach(function(le) {
14552
14552
  le._tippy.unmount();
14553
14553
  }), C.parentNode && C.parentNode.removeChild(C), s9 = s9.filter(function(le) {
14554
14554
  return le !== v;
@@ -15916,7 +15916,7 @@ function h3e() {
15916
15916
  return "";
15917
15917
  }
15918
15918
  var be = Object.prototype.hasOwnProperty, ue = {}, Fe = y.ReactDebugCurrentFrame;
15919
- function Ae(Z) {
15919
+ function De(Z) {
15920
15920
  if (Z) {
15921
15921
  var ye = Z._owner, Te = we(Z.type, Z._source, ye ? ye.type : null);
15922
15922
  Fe.setExtraStackFrame(Te);
@@ -15938,7 +15938,7 @@ function h3e() {
15938
15938
  } catch (ge) {
15939
15939
  dt = ge;
15940
15940
  }
15941
- dt && !(dt instanceof Error) && (Ae(vt), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Qe || "React class", Te, pt, typeof dt), Ae(null)), dt instanceof Error && !(dt.message in ue) && (ue[dt.message] = !0, Ae(vt), x("Failed %s type: %s", Te, dt.message), Ae(null));
15941
+ dt && !(dt instanceof Error) && (De(vt), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Qe || "React class", Te, pt, typeof dt), De(null)), dt instanceof Error && !(dt.message in ue) && (ue[dt.message] = !0, De(vt), x("Failed %s type: %s", Te, dt.message), De(null));
15942
15942
  }
15943
15943
  }
15944
15944
  }
@@ -16068,8 +16068,8 @@ function h3e() {
16068
16068
  } else
16069
16069
  ze.setExtraStackFrame(null);
16070
16070
  }
16071
- var De;
16072
- De = !1;
16071
+ var Ae;
16072
+ Ae = !1;
16073
16073
  function Pe(Z) {
16074
16074
  return typeof Z == "object" && Z !== null && Z.$$typeof === t;
16075
16075
  }
@@ -16150,8 +16150,8 @@ Check the top-level render call using <` + Te + ">.");
16150
16150
  if (Te) {
16151
16151
  var Qe = V(ye);
16152
16152
  Ie(Te, Z.props, "prop", Qe, Z);
16153
- } else if (ye.PropTypes !== void 0 && !De) {
16154
- De = !0;
16153
+ } else if (ye.PropTypes !== void 0 && !Ae) {
16154
+ Ae = !0;
16155
16155
  var vt = V(ye);
16156
16156
  x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", vt || "Unknown");
16157
16157
  }
@@ -46266,8 +46266,8 @@ var tD = "PopperContent", [$ht, Kht] = n$(tD), s$ = L.forwardRef(
46266
46266
  Vht({
46267
46267
  ...G,
46268
46268
  apply: ({ elements: pe, rects: oe, availableWidth: we, availableHeight: be }) => {
46269
- const { width: ue, height: Fe } = oe.reference, Ae = pe.floating.style;
46270
- Ae.setProperty("--radix-popper-available-width", `${we}px`), Ae.setProperty("--radix-popper-available-height", `${be}px`), Ae.setProperty("--radix-popper-anchor-width", `${ue}px`), Ae.setProperty("--radix-popper-anchor-height", `${Fe}px`);
46269
+ const { width: ue, height: Fe } = oe.reference, De = pe.floating.style;
46270
+ De.setProperty("--radix-popper-available-width", `${we}px`), De.setProperty("--radix-popper-available-height", `${be}px`), De.setProperty("--radix-popper-anchor-width", `${ue}px`), De.setProperty("--radix-popper-anchor-height", `${Fe}px`);
46271
46271
  }
46272
46272
  }),
46273
46273
  R && Uht({ element: R, padding: h }),
@@ -58112,7 +58112,7 @@ function S5t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
58112
58112
  }
58113
58113
  }), [O, P] = Ce.useState(!1), [G, K] = Ce.useState(!1), [U, W] = Ce.useState(!1), ae = Ce.useRef(null), se = Ce.useRef(null), ie = Ce.useRef(null), X = Ce.useRef(null), ee = Ce.useRef(null), te = Ce.useRef(!1), ne = Ce.useRef(null), j = Ce.useRef(0), $ = Ce.useRef(!1), ce = Ce.useRef(!M), pe = Ce.useRef(0), oe = Ce.useRef(null), we = Ce.useRef(((V = oe.current) == null ? void 0 : V.getBoundingClientRect().height) || 0), be = Ce.useRef(((T = oe.current) == null ? void 0 : T.getBoundingClientRect().width) || 0), ue = Ce.useRef(0), Fe = Ce.useCallback((ze) => {
58114
58114
  i && ze === ut.length - 1 && (se.current = /* @__PURE__ */ new Date());
58115
- }, []), { activeSnapPoint: Ae, activeSnapPointIndex: Ie, setActiveSnapPoint: Be, onRelease: Ee, snapPointsOffset: ut, onDrag: We, shouldFade: $e, getPercentageDragged: B } = E5t({
58115
+ }, []), { activeSnapPoint: De, activeSnapPointIndex: Ie, setActiveSnapPoint: Be, onRelease: Ee, snapPointsOffset: ut, onDrag: We, shouldFade: $e, getPercentageDragged: B } = E5t({
58116
58116
  snapPoints: i,
58117
58117
  activeSnapPointProp: h,
58118
58118
  setActiveSnapPointProp: p,
@@ -58139,15 +58139,15 @@ function S5t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
58139
58139
  return (window.innerWidth - aM) / window.innerWidth;
58140
58140
  }
58141
58141
  function re(ze) {
58142
- var Ze, De;
58143
- !u && !i || oe.current && !oe.current.contains(ze.target) || (we.current = ((Ze = oe.current) == null ? void 0 : Ze.getBoundingClientRect().height) || 0, be.current = ((De = oe.current) == null ? void 0 : De.getBoundingClientRect().width) || 0, K(!0), ie.current = /* @__PURE__ */ new Date(), nX() && window.addEventListener("touchend", () => te.current = !1, {
58142
+ var Ze, Ae;
58143
+ !u && !i || oe.current && !oe.current.contains(ze.target) || (we.current = ((Ze = oe.current) == null ? void 0 : Ze.getBoundingClientRect().height) || 0, be.current = ((Ae = oe.current) == null ? void 0 : Ae.getBoundingClientRect().width) || 0, K(!0), ie.current = /* @__PURE__ */ new Date(), nX() && window.addEventListener("touchend", () => te.current = !1, {
58144
58144
  once: !0
58145
58145
  }), ze.target.setPointerCapture(ze.pointerId), j.current = zr(v) ? ze.pageY : ze.pageX);
58146
58146
  }
58147
58147
  function fe(ze, Ze) {
58148
- var De;
58148
+ var Ae;
58149
58149
  let Pe = ze;
58150
- const Ye = (De = window.getSelection()) == null ? void 0 : De.toString(), ct = oe.current ? D4(oe.current, v) : null, it = /* @__PURE__ */ new Date();
58150
+ const Ye = (Ae = window.getSelection()) == null ? void 0 : Ae.toString(), ct = oe.current ? D4(oe.current, v) : null, it = /* @__PURE__ */ new Date();
58151
58151
  if (Pe.tagName === "SELECT" || Pe.hasAttribute("data-vaul-no-drag") || Pe.closest("[data-vaul-no-drag]"))
58152
58152
  return !1;
58153
58153
  if (v === "right" || v === "left")
@@ -58173,9 +58173,9 @@ function S5t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
58173
58173
  }
58174
58174
  function me(ze) {
58175
58175
  if (oe.current && G) {
58176
- const Ze = v === "bottom" || v === "right" ? 1 : -1, De = (j.current - (zr(v) ? ze.pageY : ze.pageX)) * Ze, Pe = De > 0, Ye = i && !u && !Pe;
58176
+ const Ze = v === "bottom" || v === "right" ? 1 : -1, Ae = (j.current - (zr(v) ? ze.pageY : ze.pageX)) * Ze, Pe = Ae > 0, Ye = i && !u && !Pe;
58177
58177
  if (Ye && Ie === 0) return;
58178
- const ct = Math.abs(De), it = document.querySelector("[data-vaul-drawer-wrapper]"), gt = v === "bottom" || v === "top" ? we.current : be.current;
58178
+ const ct = Math.abs(Ae), it = document.querySelector("[data-vaul-drawer-wrapper]"), gt = v === "bottom" || v === "top" ? we.current : be.current;
58179
58179
  let Ft = ct / gt;
58180
58180
  const Dt = B(ct, Pe);
58181
58181
  if (Dt !== null && (Ft = Dt), Ye && Ft >= 1 || !te.current && !fe(ze.target, Pe)) return;
@@ -58184,9 +58184,9 @@ function S5t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
58184
58184
  }), Zr(ae.current, {
58185
58185
  transition: "none"
58186
58186
  }), i && We({
58187
- draggedDistance: De
58187
+ draggedDistance: Ae
58188
58188
  }), Pe && !i) {
58189
- const Mt = w5t(De), Jt = Math.min(Mt * -1, 0) * Ze;
58189
+ const Mt = w5t(Ae), Jt = Math.min(Mt * -1, 0) * Ze;
58190
58190
  Zr(oe.current, {
58191
58191
  transform: zr(v) ? `translate3d(0, ${Jt}px, 0)` : `translate3d(${Jt}px, 0, 0)`
58192
58192
  });
@@ -58220,8 +58220,8 @@ function S5t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
58220
58220
  var ze;
58221
58221
  function Ze() {
58222
58222
  if (!oe.current || !D) return;
58223
- const De = document.activeElement;
58224
- if (iM(De) || $.current) {
58223
+ const Ae = document.activeElement;
58224
+ if (iM(Ae) || $.current) {
58225
58225
  var Pe;
58226
58226
  const Ye = ((Pe = window.visualViewport) == null ? void 0 : Pe.height) || 0, ct = window.innerHeight;
58227
58227
  let it = ct - Ye;
@@ -58241,8 +58241,8 @@ function S5t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
58241
58241
  }
58242
58242
  }
58243
58243
  return (ze = window.visualViewport) == null || ze.addEventListener("resize", Ze), () => {
58244
- var De;
58245
- return (De = window.visualViewport) == null ? void 0 : De.removeEventListener("resize", Ze);
58244
+ var Ae;
58245
+ return (Ae = window.visualViewport) == null ? void 0 : Ae.removeEventListener("resize", Ze);
58246
58246
  };
58247
58247
  }, [
58248
58248
  Ie,
@@ -58286,7 +58286,7 @@ function S5t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
58286
58286
  oe.current.classList.remove(U9), te.current = !1, K(!1), X.current = /* @__PURE__ */ new Date();
58287
58287
  const Ze = D4(oe.current, v);
58288
58288
  if (!ze || !fe(ze.target, !1) || !Ze || Number.isNaN(Ze) || ie.current === null) return;
58289
- const De = X.current.getTime() - ie.current.getTime(), Pe = j.current - (zr(v) ? ze.pageY : ze.pageX), Ye = Math.abs(Pe) / De;
58289
+ const Ae = X.current.getTime() - ie.current.getTime(), Pe = j.current - (zr(v) ? ze.pageY : ze.pageX), Ye = Math.abs(Pe) / Ae;
58290
58290
  if (Ye > 0.05 && (W(!0), setTimeout(() => {
58291
58291
  W(!1);
58292
58292
  }, 200)), i) {
@@ -58324,10 +58324,10 @@ function S5t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
58324
58324
  I
58325
58325
  ]);
58326
58326
  function ke(ze) {
58327
- const Ze = ze ? (window.innerWidth - j4) / window.innerWidth : 1, De = ze ? -16 : 0;
58327
+ const Ze = ze ? (window.innerWidth - j4) / window.innerWidth : 1, Ae = ze ? -16 : 0;
58328
58328
  ne.current && window.clearTimeout(ne.current), Zr(oe.current, {
58329
58329
  transition: `transform ${hr.DURATION}s cubic-bezier(${hr.EASE.join(",")})`,
58330
- transform: zr(v) ? `scale(${Ze}) translate3d(0, ${De}px, 0)` : `scale(${Ze}) translate3d(${De}px, 0, 0)`
58330
+ transform: zr(v) ? `scale(${Ze}) translate3d(0, ${Ae}px, 0)` : `scale(${Ze}) translate3d(${Ae}px, 0, 0)`
58331
58331
  }), !ze && oe.current && (ne.current = setTimeout(() => {
58332
58332
  const Pe = D4(oe.current, v);
58333
58333
  Zr(oe.current, {
@@ -58338,14 +58338,14 @@ function S5t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
58338
58338
  }
58339
58339
  function Re(ze, Ze) {
58340
58340
  if (Ze < 0) return;
58341
- const De = (window.innerWidth - j4) / window.innerWidth, Pe = De + Ze * (1 - De), Ye = -16 + Ze * j4;
58341
+ const Ae = (window.innerWidth - j4) / window.innerWidth, Pe = Ae + Ze * (1 - Ae), Ye = -16 + Ze * j4;
58342
58342
  Zr(oe.current, {
58343
58343
  transform: zr(v) ? `scale(${Pe}) translate3d(0, ${Ye}px, 0)` : `scale(${Pe}) translate3d(${Ye}px, 0, 0)`,
58344
58344
  transition: "none"
58345
58345
  });
58346
58346
  }
58347
58347
  function qe(ze, Ze) {
58348
- const De = zr(v) ? window.innerHeight : window.innerWidth, Pe = Ze ? (De - j4) / De : 1, Ye = Ze ? -16 : 0;
58348
+ const Ae = zr(v) ? window.innerHeight : window.innerWidth, Pe = Ze ? (Ae - j4) / Ae : 1, Ye = Ze ? -16 : 0;
58349
58349
  Ze && Zr(oe.current, {
58350
58350
  transition: `transform ${hr.DURATION}s cubic-bezier(${hr.EASE.join(",")})`,
58351
58351
  transform: zr(v) ? `scale(${Pe}) translate3d(0, ${Ye}px, 0)` : `scale(${Pe}) translate3d(${Ye}px, 0, 0)`
@@ -58365,7 +58365,7 @@ function S5t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, s
58365
58365
  open: I
58366
58366
  }, /* @__PURE__ */ Ce.createElement(tX.Provider, {
58367
58367
  value: {
58368
- activeSnapPoint: Ae,
58368
+ activeSnapPoint: De,
58369
58369
  snapPoints: i,
58370
58370
  setActiveSnapPoint: Be,
58371
58371
  drawerRef: oe,
@@ -83339,8 +83339,8 @@ function HFt(e, t, n, r, o, i, a, s, l, c, u, d, f, h, p, m, g, y, x) {
83339
83339
  be > m && (P = !0), c.useFriction(0.3).useDuration(0.75), s.start(), o.add(v(Fe)), ce.preventDefault();
83340
83340
  }
83341
83341
  function te(ce) {
83342
- const oe = u.byDistance(0, !1).index !== d.get(), we = i.pointerUp(ce) * se(), be = ie(v(we), oe), ue = BFt(we, be), Fe = N - 10 * ue, Ae = y + ue / 50;
83343
- O = !1, H = !1, E.clear(), c.useDuration(Fe).useFriction(Ae), l.distance(be, !p), G = !1, f.emit("pointerUp");
83342
+ const oe = u.byDistance(0, !1).index !== d.get(), we = i.pointerUp(ce) * se(), be = ie(v(we), oe), ue = BFt(we, be), Fe = N - 10 * ue, De = y + ue / 50;
83343
+ O = !1, H = !1, E.clear(), c.useDuration(Fe).useFriction(De), l.distance(be, !p), G = !1, f.emit("pointerUp");
83344
83344
  }
83345
83345
  function ne(ce) {
83346
83346
  P && (ce.stopPropagation(), ce.preventDefault(), P = !1);
@@ -84007,14 +84007,14 @@ function lMt(e, t, n, r, o, i, a) {
84007
84007
  eventHandler: ze,
84008
84008
  scrollBounds: Ze,
84009
84009
  options: {
84010
- loop: De
84010
+ loop: Ae
84011
84011
  }
84012
84012
  }, Pe) => {
84013
- const Ye = fe.settled(), ct = !Ze.shouldConstrain(), it = De ? Ye : Ye && ct, gt = it && !Re.pointerDown();
84013
+ const Ye = fe.settled(), ct = !Ze.shouldConstrain(), it = Ae ? Ye : Ye && ct, gt = it && !Re.pointerDown();
84014
84014
  gt && qe.stop();
84015
84015
  const Ft = Me.get() * Pe + le.get() * (1 - Pe);
84016
- Se.set(Ft), De && (Ne.loop(fe.direction()), ke.loop()), me.to(Se.get()), gt && ze.emit("settle"), it || ze.emit("scroll");
84017
- }, oe = PFt(r, o, () => ce(re), (fe) => pe(re, fe)), we = 0.68, be = ee[ne.get()], ue = n2(be), Fe = n2(be), Ae = n2(be), Ie = n2(be), Be = GFt(ue, Ae, Fe, Ie, f, we), Ee = eMt(d, ee, se, te, Ie), ut = tMt(oe, ne, j, Be, Ee, Ie, a), We = JFt(te), $e = Sm(), B = iMt(t, n, a, m), {
84016
+ Se.set(Ft), Ae && (Ne.loop(fe.direction()), ke.loop()), me.to(Se.get()), gt && ze.emit("settle"), it || ze.emit("scroll");
84017
+ }, oe = PFt(r, o, () => ce(re), (fe) => pe(re, fe)), we = 0.68, be = ee[ne.get()], ue = n2(be), Fe = n2(be), De = n2(be), Ie = n2(be), Be = GFt(ue, De, Fe, Ie, f, we), Ee = eMt(d, ee, se, te, Ie), ut = tMt(oe, ne, j, Be, Ee, Ie, a), We = JFt(te), $e = Sm(), B = iMt(t, n, a, m), {
84018
84018
  slideRegistry: q
84019
84019
  } = XFt(I, x, ee, X, U, $), J = nMt(e, n, q, ut, Be, $e, a, C), re = {
84020
84020
  ownerDocument: r,
@@ -84031,19 +84031,19 @@ function lMt(e, t, n, r, o, i, a) {
84031
84031
  indexPrevious: j,
84032
84032
  limit: te,
84033
84033
  location: ue,
84034
- offsetLocation: Ae,
84034
+ offsetLocation: De,
84035
84035
  previousLocation: Fe,
84036
84036
  options: i,
84037
84037
  resizeHandler: WFt(t, a, o, n, _, w, E),
84038
84038
  scrollBody: Be,
84039
- scrollBounds: ZFt(te, Ae, Ie, Be, V),
84040
- scrollLooper: YFt(se, te, Ae, [ue, Ae, Fe, Ie]),
84039
+ scrollBounds: ZFt(te, De, Ie, Be, V),
84040
+ scrollLooper: YFt(se, te, De, [ue, De, Fe, Ie]),
84041
84041
  scrollProgress: We,
84042
84042
  scrollSnapList: ee.map(We.get),
84043
84043
  scrollSnaps: ee,
84044
84044
  scrollTarget: Ee,
84045
84045
  scrollTo: ut,
84046
- slideLooper: rMt(_, N, se, O, P, W, ee, Ae, n),
84046
+ slideLooper: rMt(_, N, se, O, P, W, ee, De, n),
84047
84047
  slideFocus: J,
84048
84048
  slidesHandler: oMt(t, a, v),
84049
84049
  slidesInView: B,
@@ -89873,7 +89873,7 @@ async function Ov(e, t) {
89873
89873
  });
89874
89874
  return U === "0x" ? { data: void 0 } : { data: U };
89875
89875
  } catch (I) {
89876
- const H = OAt(I), { offchainLookup: O, offchainLookupSignature: P } = await import("./ccip-DqF8xd6Y.mjs");
89876
+ const H = OAt(I), { offchainLookup: O, offchainLookupSignature: P } = await import("./ccip-fsDKbn5X.mjs");
89877
89877
  if (e.ccipRead !== !1 && (H == null ? void 0 : H.slice(0, 10)) === P && x)
89878
89878
  return { data: await O(e, { data: H, to: x }) };
89879
89879
  throw D && (H == null ? void 0 : H.slice(0, 10)) === "0x101bb98d" ? new HEt({ factory: u }) : lre(I, {
@@ -95120,20 +95120,20 @@ const foe = Bn(void 0), JSt = ({
95120
95120
  return;
95121
95121
  }
95122
95122
  try {
95123
- ce((De) => [...De, ke]);
95123
+ ce((Ae) => [...Ae, ke]);
95124
95124
  const { name: qe, isEns: ze, resolved: Ze } = await uoe(
95125
95125
  ke,
95126
95126
  d
95127
95127
  // Add definite assignment assertion if ensResolutionUrl is guaranteed
95128
95128
  );
95129
- Ze && j((De) => {
95129
+ Ze && j((Ae) => {
95130
95130
  const Pe = {
95131
- ...De,
95131
+ ...Ae,
95132
95132
  [ke]: { name: qe, isEns: ze }
95133
95133
  };
95134
95134
  return localStorage.setItem("ensCache", JSON.stringify(Pe)), Pe;
95135
95135
  }), ce(
95136
- (De) => De.filter((Pe) => Pe !== ke)
95136
+ (Ae) => Ae.filter((Pe) => Pe !== ke)
95137
95137
  ), Re({ name: qe, isEns: ze });
95138
95138
  } catch (qe) {
95139
95139
  console.error("Error fetching ENS name:", qe), Re({
@@ -95167,8 +95167,8 @@ const foe = Bn(void 0), JSt = ({
95167
95167
  ), ue = He(
95168
95168
  (ke, Re) => {
95169
95169
  if (!t) return;
95170
- const { state: qe } = t, { from: ze, to: Ze } = qe.selection, De = qe.doc.textBetween(ze, Ze, " "), Pe = be(
95171
- De,
95170
+ const { state: qe } = t, { from: ze, to: Ze } = qe.selection, Ae = qe.doc.textBetween(ze, Ze, " "), Pe = be(
95171
+ Ae,
95172
95172
  ke,
95173
95173
  Re || o
95174
95174
  );
@@ -95187,7 +95187,7 @@ const foe = Bn(void 0), JSt = ({
95187
95187
  t.commands.resolveComment(ke), f == null || f(ke);
95188
95188
  },
95189
95189
  [t, f]
95190
- ), Ae = He(
95190
+ ), De = He(
95191
95191
  (ke) => {
95192
95192
  t.commands.unresolveComment(ke), h == null || h(ke);
95193
95193
  },
@@ -95222,8 +95222,8 @@ const foe = Bn(void 0), JSt = ({
95222
95222
  `[data-comment-id="${ke}"]`
95223
95223
  );
95224
95224
  if (ze) {
95225
- const Ze = t.view.posAtDOM(ze, 0), De = Ze + (((qe = ze.textContent) == null ? void 0 : qe.length) ?? 0);
95226
- t.commands.setTextSelection({ from: Ze, to: De });
95225
+ const Ze = t.view.posAtDOM(ze, 0), Ae = Ze + (((qe = ze.textContent) == null ? void 0 : qe.length) ?? 0);
95226
+ t.commands.setTextSelection({ from: Ze, to: Ae });
95227
95227
  const Ye = [
95228
95228
  document.querySelector(".ProseMirror"),
95229
95229
  document.getElementById("editor-canvas"),
@@ -95348,7 +95348,7 @@ const foe = Bn(void 0), JSt = ({
95348
95348
  setComments: r,
95349
95349
  setShowResolved: E,
95350
95350
  resolveComment: Fe,
95351
- unresolveComment: Ae,
95351
+ unresolveComment: De,
95352
95352
  deleteComment: Ie,
95353
95353
  handleAddReply: Be,
95354
95354
  focusCommentInEditor: Ee,
@@ -95405,7 +95405,7 @@ const foe = Bn(void 0), JSt = ({
95405
95405
  r,
95406
95406
  E,
95407
95407
  Fe,
95408
- Ae,
95408
+ De,
95409
95409
  Ie,
95410
95410
  Be,
95411
95411
  Ee,
@@ -98747,7 +98747,7 @@ function Voe() {
98747
98747
  enumerable: !0,
98748
98748
  value: !1
98749
98749
  }
98750
- })), X = null, ee = null, te = !0, ne = !0, j = !1, $ = !0, ce = !1, pe = !0, oe = !1, we = !1, be = !1, ue = !1, Fe = !1, Ae = !1, Ie = !0, Be = !1;
98750
+ })), X = null, ee = null, te = !0, ne = !0, j = !1, $ = !0, ce = !1, pe = !0, oe = !1, we = !1, be = !1, ue = !1, Fe = !1, De = !1, Ie = !0, Be = !1;
98751
98751
  const Ee = "user-content-";
98752
98752
  let ut = !0, We = !1, $e = {}, B = null;
98753
98753
  const q = ln({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
@@ -98758,7 +98758,7 @@ function Voe() {
98758
98758
  let Ne = le, ke = !1, Re = null;
98759
98759
  const qe = ln({}, [Me, Se, le], B7);
98760
98760
  let ze = ln({}, ["mi", "mo", "mn", "ms", "mtext"]), Ze = ln({}, ["annotation-xml"]);
98761
- const De = ln({}, ["title", "style", "font", "a", "script"]);
98761
+ const Ae = ln({}, ["title", "style", "font", "a", "script"]);
98762
98762
  let Pe = null;
98763
98763
  const Ye = ["application/xhtml+xml", "text/html"], ct = "text/html";
98764
98764
  let it = null, gt = null;
@@ -98768,7 +98768,7 @@ function Voe() {
98768
98768
  let ge = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
98769
98769
  if (!(gt && gt === ge)) {
98770
98770
  if ((!ge || typeof ge != "object") && (ge = {}), ge = R1(ge), Pe = // eslint-disable-next-line unicorn/prefer-includes
98771
- Ye.indexOf(ge.PARSER_MEDIA_TYPE) === -1 ? ct : ge.PARSER_MEDIA_TYPE, it = Pe === "application/xhtml+xml" ? B7 : d6, U = qa(ge, "ALLOWED_TAGS") ? ln({}, ge.ALLOWED_TAGS, it) : W, ae = qa(ge, "ALLOWED_ATTR") ? ln({}, ge.ALLOWED_ATTR, it) : se, Re = qa(ge, "ALLOWED_NAMESPACES") ? ln({}, ge.ALLOWED_NAMESPACES, B7) : qe, fe = qa(ge, "ADD_URI_SAFE_ATTR") ? ln(R1(me), ge.ADD_URI_SAFE_ATTR, it) : me, J = qa(ge, "ADD_DATA_URI_TAGS") ? ln(R1(re), ge.ADD_DATA_URI_TAGS, it) : re, B = qa(ge, "FORBID_CONTENTS") ? ln({}, ge.FORBID_CONTENTS, it) : q, X = qa(ge, "FORBID_TAGS") ? ln({}, ge.FORBID_TAGS, it) : {}, ee = qa(ge, "FORBID_ATTR") ? ln({}, ge.FORBID_ATTR, it) : {}, $e = qa(ge, "USE_PROFILES") ? ge.USE_PROFILES : !1, te = ge.ALLOW_ARIA_ATTR !== !1, ne = ge.ALLOW_DATA_ATTR !== !1, j = ge.ALLOW_UNKNOWN_PROTOCOLS || !1, $ = ge.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = ge.SAFE_FOR_TEMPLATES || !1, pe = ge.SAFE_FOR_XML !== !1, oe = ge.WHOLE_DOCUMENT || !1, ue = ge.RETURN_DOM || !1, Fe = ge.RETURN_DOM_FRAGMENT || !1, Ae = ge.RETURN_TRUSTED_TYPE || !1, be = ge.FORCE_BODY || !1, Ie = ge.SANITIZE_DOM !== !1, Be = ge.SANITIZE_NAMED_PROPS || !1, ut = ge.KEEP_CONTENT !== !1, We = ge.IN_PLACE || !1, K = ge.ALLOWED_URI_REGEXP || zoe, Ne = ge.NAMESPACE || le, ze = ge.MATHML_TEXT_INTEGRATION_POINTS || ze, Ze = ge.HTML_INTEGRATION_POINTS || Ze, ie = ge.CUSTOM_ELEMENT_HANDLING || {}, ge.CUSTOM_ELEMENT_HANDLING && Dt(ge.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ie.tagNameCheck = ge.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ge.CUSTOM_ELEMENT_HANDLING && Dt(ge.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ie.attributeNameCheck = ge.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ge.CUSTOM_ELEMENT_HANDLING && typeof ge.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ie.allowCustomizedBuiltInElements = ge.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (ne = !1), Fe && (ue = !0), $e && (U = ln({}, yP), ae = [], $e.html === !0 && (ln(U, gP), ln(ae, bP)), $e.svg === !0 && (ln(U, R7), ln(ae, z7), ln(ae, V4)), $e.svgFilters === !0 && (ln(U, _7), ln(ae, z7), ln(ae, V4)), $e.mathMl === !0 && (ln(U, P7), ln(ae, xP), ln(ae, V4))), ge.ADD_TAGS && (U === W && (U = R1(U)), ln(U, ge.ADD_TAGS, it)), ge.ADD_ATTR && (ae === se && (ae = R1(ae)), ln(ae, ge.ADD_ATTR, it)), ge.ADD_URI_SAFE_ATTR && ln(fe, ge.ADD_URI_SAFE_ATTR, it), ge.FORBID_CONTENTS && (B === q && (B = R1(B)), ln(B, ge.FORBID_CONTENTS, it)), ut && (U["#text"] = !0), oe && ln(U, ["html", "head", "body"]), U.table && (ln(U, ["tbody"]), delete X.tbody), ge.TRUSTED_TYPES_POLICY) {
98771
+ Ye.indexOf(ge.PARSER_MEDIA_TYPE) === -1 ? ct : ge.PARSER_MEDIA_TYPE, it = Pe === "application/xhtml+xml" ? B7 : d6, U = qa(ge, "ALLOWED_TAGS") ? ln({}, ge.ALLOWED_TAGS, it) : W, ae = qa(ge, "ALLOWED_ATTR") ? ln({}, ge.ALLOWED_ATTR, it) : se, Re = qa(ge, "ALLOWED_NAMESPACES") ? ln({}, ge.ALLOWED_NAMESPACES, B7) : qe, fe = qa(ge, "ADD_URI_SAFE_ATTR") ? ln(R1(me), ge.ADD_URI_SAFE_ATTR, it) : me, J = qa(ge, "ADD_DATA_URI_TAGS") ? ln(R1(re), ge.ADD_DATA_URI_TAGS, it) : re, B = qa(ge, "FORBID_CONTENTS") ? ln({}, ge.FORBID_CONTENTS, it) : q, X = qa(ge, "FORBID_TAGS") ? ln({}, ge.FORBID_TAGS, it) : {}, ee = qa(ge, "FORBID_ATTR") ? ln({}, ge.FORBID_ATTR, it) : {}, $e = qa(ge, "USE_PROFILES") ? ge.USE_PROFILES : !1, te = ge.ALLOW_ARIA_ATTR !== !1, ne = ge.ALLOW_DATA_ATTR !== !1, j = ge.ALLOW_UNKNOWN_PROTOCOLS || !1, $ = ge.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ce = ge.SAFE_FOR_TEMPLATES || !1, pe = ge.SAFE_FOR_XML !== !1, oe = ge.WHOLE_DOCUMENT || !1, ue = ge.RETURN_DOM || !1, Fe = ge.RETURN_DOM_FRAGMENT || !1, De = ge.RETURN_TRUSTED_TYPE || !1, be = ge.FORCE_BODY || !1, Ie = ge.SANITIZE_DOM !== !1, Be = ge.SANITIZE_NAMED_PROPS || !1, ut = ge.KEEP_CONTENT !== !1, We = ge.IN_PLACE || !1, K = ge.ALLOWED_URI_REGEXP || zoe, Ne = ge.NAMESPACE || le, ze = ge.MATHML_TEXT_INTEGRATION_POINTS || ze, Ze = ge.HTML_INTEGRATION_POINTS || Ze, ie = ge.CUSTOM_ELEMENT_HANDLING || {}, ge.CUSTOM_ELEMENT_HANDLING && Dt(ge.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ie.tagNameCheck = ge.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ge.CUSTOM_ELEMENT_HANDLING && Dt(ge.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ie.attributeNameCheck = ge.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ge.CUSTOM_ELEMENT_HANDLING && typeof ge.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ie.allowCustomizedBuiltInElements = ge.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ce && (ne = !1), Fe && (ue = !0), $e && (U = ln({}, yP), ae = [], $e.html === !0 && (ln(U, gP), ln(ae, bP)), $e.svg === !0 && (ln(U, R7), ln(ae, z7), ln(ae, V4)), $e.svgFilters === !0 && (ln(U, _7), ln(ae, z7), ln(ae, V4)), $e.mathMl === !0 && (ln(U, P7), ln(ae, xP), ln(ae, V4))), ge.ADD_TAGS && (U === W && (U = R1(U)), ln(U, ge.ADD_TAGS, it)), ge.ADD_ATTR && (ae === se && (ae = R1(ae)), ln(ae, ge.ADD_ATTR, it)), ge.ADD_URI_SAFE_ATTR && ln(fe, ge.ADD_URI_SAFE_ATTR, it), ge.FORBID_CONTENTS && (B === q && (B = R1(B)), ln(B, ge.FORBID_CONTENTS, it)), ut && (U["#text"] = !0), oe && ln(U, ["html", "head", "body"]), U.table && (ln(U, ["tbody"]), delete X.tbody), ge.TRUSTED_TYPES_POLICY) {
98772
98772
  if (typeof ge.TRUSTED_TYPES_POLICY.createHTML != "function")
98773
98773
  throw Ip('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
98774
98774
  if (typeof ge.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -98785,7 +98785,7 @@ function Voe() {
98785
98785
  tagName: "template"
98786
98786
  });
98787
98787
  const at = d6(ge.tagName), en = d6(Oe.tagName);
98788
- return Re[ge.namespaceURI] ? ge.namespaceURI === Se ? Oe.namespaceURI === le ? at === "svg" : Oe.namespaceURI === Me ? at === "svg" && (en === "annotation-xml" || ze[en]) : !!Mt[at] : ge.namespaceURI === Me ? Oe.namespaceURI === le ? at === "math" : Oe.namespaceURI === Se ? at === "math" && Ze[en] : !!Jt[at] : ge.namespaceURI === le ? Oe.namespaceURI === Se && !Ze[en] || Oe.namespaceURI === Me && !ze[en] ? !1 : !Jt[at] && (De[at] || !Mt[at]) : !!(Pe === "application/xhtml+xml" && Re[ge.namespaceURI]) : !1;
98788
+ return Re[ge.namespaceURI] ? ge.namespaceURI === Se ? Oe.namespaceURI === le ? at === "svg" : Oe.namespaceURI === Me ? at === "svg" && (en === "annotation-xml" || ze[en]) : !!Mt[at] : ge.namespaceURI === Me ? Oe.namespaceURI === le ? at === "math" : Oe.namespaceURI === Se ? at === "math" && Ze[en] : !!Jt[at] : ge.namespaceURI === le ? Oe.namespaceURI === Se && !Ze[en] || Oe.namespaceURI === Me && !ze[en] ? !1 : !Jt[at] && (Ae[at] || !Mt[at]) : !!(Pe === "application/xhtml+xml" && Re[ge.namespaceURI]) : !1;
98789
98789
  }, xn = function(ge) {
98790
98790
  Lp(t.removed, {
98791
98791
  element: ge
@@ -99002,9 +99002,9 @@ function Voe() {
99002
99002
  else {
99003
99003
  if (!ue && !ce && !oe && // eslint-disable-next-line unicorn/prefer-includes
99004
99004
  ot.indexOf("<") === -1)
99005
- return v && Ae ? v.createHTML(ot) : ot;
99005
+ return v && De ? v.createHTML(ot) : ot;
99006
99006
  if (Oe = Ln(ot), !Oe)
99007
- return ue ? null : Ae ? M : "";
99007
+ return ue ? null : De ? M : "";
99008
99008
  }
99009
99009
  Oe && be && xn(Oe.firstChild);
99010
99010
  const Pt = Xn(We ? ot : Oe);
@@ -99024,7 +99024,7 @@ function Voe() {
99024
99024
  return oe && U["!doctype"] && Oe.ownerDocument && Oe.ownerDocument.doctype && Oe.ownerDocument.doctype.name && zo(Hoe, Oe.ownerDocument.doctype.name) && (ir = "<!DOCTYPE " + Oe.ownerDocument.doctype.name + `>
99025
99025
  ` + ir), ce && H4([N, V, T], (Eo) => {
99026
99026
  ir = Np(ir, Eo, " ");
99027
- }), v && Ae ? v.createHTML(ir) : ir;
99027
+ }), v && De ? v.createHTML(ir) : ir;
99028
99028
  }, t.setConfig = function() {
99029
99029
  let ot = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
99030
99030
  jt(ot), we = !0;
@@ -104349,7 +104349,7 @@ zb.exports;
104349
104349
  "Xbox One",
104350
104350
  { label: "Xbox 360", pattern: "Xbox" },
104351
104351
  "Xoom"
104352
- ]), be = Ae({
104352
+ ]), be = De({
104353
104353
  Apple: { iPad: 1, iPhone: 1, iPod: 1 },
104354
104354
  Alcatel: {},
104355
104355
  Archos: {},
@@ -104409,7 +104409,7 @@ zb.exports;
104409
104409
  return q || RegExp("\\b" + (J.pattern || w(J)) + "\\b", "i").exec(E) && (J.label || J);
104410
104410
  });
104411
104411
  }
104412
- function Ae(B) {
104412
+ function De(B) {
104413
104413
  return v(B, function(q, J, re) {
104414
104414
  return q || (J[we] || J[/^[a-z]+(?: +[a-z]+\b)*/i.exec(we)] || RegExp("\\b" + w(re) + "(?:\\b|\\w*\\d)", "i").exec(E)) && re;
104415
104415
  });
@@ -123037,11 +123037,11 @@ const Lw = Ce.use || // This extra generic is to avoid TypeScript mixing up the
123037
123037
  ...Be
123038
123038
  } : Be;
123039
123039
  }, we = R(), be = V(), ue = oe(we), Fe = we === be ? ue : oe(be);
123040
- let Ae = ue;
123040
+ let De = ue;
123041
123041
  return [
123042
123042
  () => {
123043
123043
  const Ie = oe(R());
123044
- return H(Ie, Ae) ? (Ae.data = Ie.data, Ae.isLoading = Ie.isLoading, Ae.isValidating = Ie.isValidating, Ae.error = Ie.error, Ae) : (Ae = Ie, Ie);
123044
+ return H(Ie, De) ? (De.data = Ie.data, De.isLoading = Ie.isLoading, De.isValidating = Ie.isValidating, De.error = Ie.error, De) : (De = Ie, Ie);
123045
123045
  },
123046
123046
  () => Fe
123047
123047
  ];
@@ -123063,7 +123063,7 @@ const Lw = Ce.use || // This extra generic is to avoid TypeScript mixing up the
123063
123063
  if (!y || !oe || v.current || E().isPaused())
123064
123064
  return !1;
123065
123065
  let we, be, ue = !0;
123066
- const Fe = pe || {}, Ae = !m[y] || !Fe.dedupe, Ie = () => eV ? !v.current && y === M.current && w.current : y === M.current, Be = {
123066
+ const Fe = pe || {}, De = !m[y] || !Fe.dedupe, Ie = () => eV ? !v.current && y === M.current && w.current : y === M.current, Be = {
123067
123067
  isValidating: !1,
123068
123068
  isLoading: !1
123069
123069
  }, Ee = () => {
@@ -123076,26 +123076,26 @@ const Lw = Ce.use || // This extra generic is to avoid TypeScript mixing up the
123076
123076
  };
123077
123077
  wn(R().data) && (We.isLoading = !0);
123078
123078
  try {
123079
- if (Ae && (_(We), n.loadingTimeout && wn(R().data) && setTimeout(() => {
123079
+ if (De && (_(We), n.loadingTimeout && wn(R().data) && setTimeout(() => {
123080
123080
  ue && Ie() && E().onLoadingSlow(y, n);
123081
123081
  }, n.loadingTimeout), m[y] = [
123082
123082
  oe(x),
123083
123083
  dE()
123084
- ]), [we, be] = m[y], we = await we, Ae && setTimeout(ut, n.dedupingInterval), !m[y] || m[y][1] !== be)
123085
- return Ae && Ie() && E().onDiscarded(y), !1;
123084
+ ]), [we, be] = m[y], we = await we, De && setTimeout(ut, n.dedupingInterval), !m[y] || m[y][1] !== be)
123085
+ return De && Ie() && E().onDiscarded(y), !1;
123086
123086
  Be.error = Go;
123087
123087
  const $e = p[y];
123088
123088
  if (!wn($e) && // case 1
123089
123089
  (be <= $e[0] || // case 2
123090
123090
  be <= $e[1] || // case 3
123091
123091
  $e[1] === 0))
123092
- return Ee(), Ae && Ie() && E().onDiscarded(y), !1;
123092
+ return Ee(), De && Ie() && E().onDiscarded(y), !1;
123093
123093
  const B = R().data;
123094
- Be.data = o(B, we) ? B : we, Ae && Ie() && E().onSuccess(we, y, n);
123094
+ Be.data = o(B, we) ? B : we, De && Ie() && E().onSuccess(we, y, n);
123095
123095
  } catch ($e) {
123096
123096
  ut();
123097
123097
  const B = E(), { shouldRetryOnError: q } = B;
123098
- B.isPaused() || (Be.error = $e, Ae && Ie() && (B.onError($e, y, B), (q === !0 || Vs(q) && q($e)) && (!E().revalidateOnFocus || !E().revalidateOnReconnect || D()) && B.onErrorRetry($e, y, B, (J) => {
123098
+ B.isPaused() || (Be.error = $e, De && Ie() && (B.onError($e, y, B), (q === !0 || Vs(q) && q($e)) && (!E().revalidateOnFocus || !E().revalidateOnReconnect || D()) && B.onErrorRetry($e, y, B, (J) => {
123099
123099
  const re = h[y];
123100
123100
  re && re[0] && re[0](QH, J);
123101
123101
  }, {
@@ -123135,8 +123135,8 @@ const Lw = Ce.use || // This extra generic is to avoid TypeScript mixing up the
123135
123135
  E().revalidateOnFocus && (oe = Date.now() + E().focusThrottleInterval);
123136
123136
  const be = tKt(y, h, (ue, Fe = {}) => {
123137
123137
  if (ue == Nle) {
123138
- const Ae = Date.now();
123139
- E().revalidateOnFocus && Ae > oe && D() && (oe = Ae + E().focusThrottleInterval, pe());
123138
+ const De = Date.now();
123139
+ E().revalidateOnFocus && De > oe && D() && (oe = De + E().focusThrottleInterval, pe());
123140
123140
  } else if (ue == Ile)
123141
123141
  E().revalidateOnReconnect && D() && pe();
123142
123142
  else {
@@ -127014,11 +127014,11 @@ const VKt = Ce.memo(
127014
127014
  } else
127015
127015
  return;
127016
127016
  }
127017
- const Ae = E.match(
127017
+ const De = E.match(
127018
127018
  /vimeo\.com\/([a-zA-Z0-9-_]+)/
127019
127019
  );
127020
- if (Ae) {
127021
- const Ie = `https://player.vimeo.com/video/${Ae[1]}`;
127020
+ if (De) {
127021
+ const Ie = `https://player.vimeo.com/video/${De[1]}`;
127022
127022
  N("iframe", Ie);
127023
127023
  return;
127024
127024
  }
@@ -127103,11 +127103,11 @@ const VKt = Ce.memo(
127103
127103
  if (!((be == null ? void 0 : be.type.name) === "paragraph")) return !1;
127104
127104
  const Fe = ce.$anchor.pos >= pe && ce.$anchor.pos <= pe + oe.nodeSize;
127105
127105
  if (!we || !Fe) return !1;
127106
- let Ae = !1;
127106
+ let De = !1;
127107
127107
  return be.content.forEach((Ie) => {
127108
127108
  var Be;
127109
- (Ie.isText && ((Be = Ie.text) != null && Be.trim()) || !Ie.isText) && (Ae = !0);
127110
- }), !Ae;
127109
+ (Ie.isText && ((Be = Ie.text) != null && Be.trim()) || !Ie.isText) && (De = !0);
127110
+ }), !De;
127111
127111
  }, [t, n.state]);
127112
127112
  return p && h ? /* @__PURE__ */ k.jsx(
127113
127113
  dl,
@@ -138876,10 +138876,10 @@ var Sl = function(t, n) {
138876
138876
  unit: "ex"
138877
138877
  }, n) : 12 * d, m = 3 * d, g = t.arraystretch * p, y = 0.7 * g, x = 0.3 * g, w = 0;
138878
138878
  function v(Fe) {
138879
- for (var Ae = 0; Ae < Fe.length; ++Ae)
138880
- Ae > 0 && (w += 0.25), c.push({
138879
+ for (var De = 0; De < Fe.length; ++De)
138880
+ De > 0 && (w += 0.25), c.push({
138881
138881
  pos: w,
138882
- isDashed: Fe[Ae]
138882
+ isDashed: Fe[De]
138883
138883
  });
138884
138884
  }
138885
138885
  for (v(a[0]), r = 0; r < t.body.length; ++r) {
@@ -146001,16 +146001,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = O, K = P), G ===
146001
146001
  return q.keywords[J];
146002
146002
  }
146003
146003
  function ae() {
146004
- if (!Ae.keywords) {
146004
+ if (!De.keywords) {
146005
146005
  Be.addText(Ee);
146006
146006
  return;
146007
146007
  }
146008
146008
  let q = 0;
146009
- Ae.keywordPatternRe.lastIndex = 0;
146010
- let J = Ae.keywordPatternRe.exec(Ee), re = "";
146009
+ De.keywordPatternRe.lastIndex = 0;
146010
+ let J = De.keywordPatternRe.exec(Ee), re = "";
146011
146011
  for (; J; ) {
146012
146012
  re += Ee.substring(q, J.index);
146013
- const fe = be.case_insensitive ? J[0].toLowerCase() : J[0], me = W(Ae, fe);
146013
+ const fe = be.case_insensitive ? J[0].toLowerCase() : J[0], me = W(De, fe);
146014
146014
  if (me) {
146015
146015
  const [Me, Se] = me;
146016
146016
  if (Be.addText(re), re = "", U[fe] = (U[fe] || 0) + 1, U[fe] <= orn && (ut += Se), Me.startsWith("_"))
@@ -146021,26 +146021,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = O, K = P), G ===
146021
146021
  }
146022
146022
  } else
146023
146023
  re += J[0];
146024
- q = Ae.keywordPatternRe.lastIndex, J = Ae.keywordPatternRe.exec(Ee);
146024
+ q = De.keywordPatternRe.lastIndex, J = De.keywordPatternRe.exec(Ee);
146025
146025
  }
146026
146026
  re += Ee.substring(q), Be.addText(re);
146027
146027
  }
146028
146028
  function se() {
146029
146029
  if (Ee === "") return;
146030
146030
  let q = null;
146031
- if (typeof Ae.subLanguage == "string") {
146032
- if (!t[Ae.subLanguage]) {
146031
+ if (typeof De.subLanguage == "string") {
146032
+ if (!t[De.subLanguage]) {
146033
146033
  Be.addText(Ee);
146034
146034
  return;
146035
146035
  }
146036
- q = d(Ae.subLanguage, Ee, !0, Ie[Ae.subLanguage]), Ie[Ae.subLanguage] = /** @type {CompiledMode} */
146036
+ q = d(De.subLanguage, Ee, !0, Ie[De.subLanguage]), Ie[De.subLanguage] = /** @type {CompiledMode} */
146037
146037
  q._top;
146038
146038
  } else
146039
- q = h(Ee, Ae.subLanguage.length ? Ae.subLanguage : null);
146040
- Ae.relevance > 0 && (ut += q.relevance), Be.__addSublanguage(q._emitter, q.language);
146039
+ q = h(Ee, De.subLanguage.length ? De.subLanguage : null);
146040
+ De.relevance > 0 && (ut += q.relevance), Be.__addSublanguage(q._emitter, q.language);
146041
146041
  }
146042
146042
  function ie() {
146043
- Ae.subLanguage != null ? se() : ae(), Ee = "";
146043
+ De.subLanguage != null ? se() : ae(), Ee = "";
146044
146044
  }
146045
146045
  function X(q, J) {
146046
146046
  q !== "" && (Be.startScope(J), Be.addText(q), Be.endScope());
@@ -146058,7 +146058,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = O, K = P), G ===
146058
146058
  }
146059
146059
  }
146060
146060
  function te(q, J) {
146061
- return q.scope && typeof q.scope == "string" && Be.openNode(be.classNameAliases[q.scope] || q.scope), q.beginScope && (q.beginScope._wrap ? (X(Ee, be.classNameAliases[q.beginScope._wrap] || q.beginScope._wrap), Ee = "") : q.beginScope._multi && (ee(q.beginScope, J), Ee = "")), Ae = Object.create(q, { parent: { value: Ae } }), Ae;
146061
+ return q.scope && typeof q.scope == "string" && Be.openNode(be.classNameAliases[q.scope] || q.scope), q.beginScope && (q.beginScope._wrap ? (X(Ee, be.classNameAliases[q.beginScope._wrap] || q.beginScope._wrap), Ee = "") : q.beginScope._multi && (ee(q.beginScope, J), Ee = "")), De = Object.create(q, { parent: { value: De } }), De;
146062
146062
  }
146063
146063
  function ne(q, J, re) {
146064
146064
  let fe = vnn(q.endRe, re);
@@ -146077,7 +146077,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = O, K = P), G ===
146077
146077
  return ne(q.parent, J, re);
146078
146078
  }
146079
146079
  function j(q) {
146080
- return Ae.matcher.regexIndex === 0 ? (Ee += q[0], 1) : (B = !0, 0);
146080
+ return De.matcher.regexIndex === 0 ? (Ee += q[0], 1) : (B = !0, 0);
146081
146081
  }
146082
146082
  function $(q) {
146083
146083
  const J = q[0], re = q.rule, fe = new Eq(re), me = [re.__beforeBegin, re["on:begin"]];
@@ -146087,19 +146087,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = O, K = P), G ===
146087
146087
  return re.skip ? Ee += J : (re.excludeBegin && (Ee += J), ie(), !re.returnBegin && !re.excludeBegin && (Ee = J)), te(re, q), re.returnBegin ? 0 : J.length;
146088
146088
  }
146089
146089
  function ce(q) {
146090
- const J = q[0], re = P.substring(q.index), fe = ne(Ae, q, re);
146090
+ const J = q[0], re = P.substring(q.index), fe = ne(De, q, re);
146091
146091
  if (!fe)
146092
146092
  return Lq;
146093
- const me = Ae;
146094
- Ae.endScope && Ae.endScope._wrap ? (ie(), X(J, Ae.endScope._wrap)) : Ae.endScope && Ae.endScope._multi ? (ie(), ee(Ae.endScope, q)) : me.skip ? Ee += J : (me.returnEnd || me.excludeEnd || (Ee += J), ie(), me.excludeEnd && (Ee = J));
146093
+ const me = De;
146094
+ De.endScope && De.endScope._wrap ? (ie(), X(J, De.endScope._wrap)) : De.endScope && De.endScope._multi ? (ie(), ee(De.endScope, q)) : me.skip ? Ee += J : (me.returnEnd || me.excludeEnd || (Ee += J), ie(), me.excludeEnd && (Ee = J));
146095
146095
  do
146096
- Ae.scope && Be.closeNode(), !Ae.skip && !Ae.subLanguage && (ut += Ae.relevance), Ae = Ae.parent;
146097
- while (Ae !== fe.parent);
146096
+ De.scope && Be.closeNode(), !De.skip && !De.subLanguage && (ut += De.relevance), De = De.parent;
146097
+ while (De !== fe.parent);
146098
146098
  return fe.starts && te(fe.starts, q), me.returnEnd ? 0 : J.length;
146099
146099
  }
146100
146100
  function pe() {
146101
146101
  const q = [];
146102
- for (let J = Ae; J !== be; J = J.parent)
146102
+ for (let J = De; J !== be; J = J.parent)
146103
146103
  J.scope && q.unshift(J.scope);
146104
146104
  q.forEach((J) => Be.openNode(J));
146105
146105
  }
@@ -146118,8 +146118,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = O, K = P), G ===
146118
146118
  if (oe = J, J.type === "begin")
146119
146119
  return $(J);
146120
146120
  if (J.type === "illegal" && !G) {
146121
- const fe = new Error('Illegal lexeme "' + re + '" for mode "' + (Ae.scope || "<unnamed>") + '"');
146122
- throw fe.mode = Ae, fe;
146121
+ const fe = new Error('Illegal lexeme "' + re + '" for mode "' + (De.scope || "<unnamed>") + '"');
146122
+ throw fe.mode = De, fe;
146123
146123
  } else if (J.type === "end") {
146124
146124
  const fe = ce(J);
146125
146125
  if (fe !== Lq)
@@ -146135,7 +146135,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = O, K = P), G ===
146135
146135
  if (!be)
146136
146136
  throw Cd(i.replace("{}", O)), new Error('Unknown language: "' + O + '"');
146137
146137
  const ue = ern(be);
146138
- let Fe = "", Ae = K || ue;
146138
+ let Fe = "", De = K || ue;
146139
146139
  const Ie = {}, Be = new s.__emitter(s);
146140
146140
  pe();
146141
146141
  let Ee = "", ut = 0, We = 0, $e = 0, B = !1;
@@ -146143,9 +146143,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = O, K = P), G ===
146143
146143
  if (be.__emitTokens)
146144
146144
  be.__emitTokens(P, Be);
146145
146145
  else {
146146
- for (Ae.matcher.considerAll(); ; ) {
146147
- $e++, B ? B = !1 : Ae.matcher.considerAll(), Ae.matcher.lastIndex = We;
146148
- const q = Ae.matcher.exec(P);
146146
+ for (De.matcher.considerAll(); ; ) {
146147
+ $e++, B ? B = !1 : De.matcher.considerAll(), De.matcher.lastIndex = We;
146148
+ const q = De.matcher.exec(P);
146149
146149
  if (!q) break;
146150
146150
  const J = P.substring(We, q.index), re = we(J, q);
146151
146151
  We = q.index + re;
@@ -146158,7 +146158,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = O, K = P), G ===
146158
146158
  relevance: ut,
146159
146159
  illegal: !1,
146160
146160
  _emitter: Be,
146161
- _top: Ae
146161
+ _top: De
146162
146162
  };
146163
146163
  } catch (q) {
146164
146164
  if (q.message && q.message.includes("Illegal"))
@@ -146184,7 +146184,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), U = O, K = P), G ===
146184
146184
  relevance: 0,
146185
146185
  errorRaised: q,
146186
146186
  _emitter: Be,
146187
- _top: Ae
146187
+ _top: De
146188
146188
  };
146189
146189
  throw q;
146190
146190
  }
@@ -158010,7 +158010,7 @@ function Don(e) {
158010
158010
  ]
158011
158011
  };
158012
158012
  for (const be of D.variants) {
158013
- const ue = be.contains.find((Ae) => Ae.label === "interpol");
158013
+ const ue = be.contains.find((De) => De.label === "interpol");
158014
158014
  ue.keywords = c;
158015
158015
  const Fe = [
158016
158016
  ...u,
@@ -160201,7 +160201,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = H, G = O), P ===
160201
160201
  Ie.addText(Be);
160202
160202
  return;
160203
160203
  }
160204
- B = d(Fe.subLanguage, Be, !0, Ae[Fe.subLanguage]), Ae[Fe.subLanguage] = /** @type {CompiledMode} */
160204
+ B = d(Fe.subLanguage, Be, !0, De[Fe.subLanguage]), De[Fe.subLanguage] = /** @type {CompiledMode} */
160205
160205
  B._top;
160206
160206
  } else
160207
160207
  B = h(Be, Fe.subLanguage.length ? Fe.subLanguage : null);
@@ -160305,7 +160305,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), K = H, G = O), P ===
160305
160305
  throw Ed(i.replace("{}", H)), new Error('Unknown language: "' + H + '"');
160306
160306
  const be = Fin(we);
160307
160307
  let ue = "", Fe = G || be;
160308
- const Ae = {}, Ie = new s.__emitter(s);
160308
+ const De = {}, Ie = new s.__emitter(s);
160309
160309
  ce();
160310
160310
  let Be = "", Ee = 0, ut = 0, We = 0, $e = !1;
160311
160311
  try {
@@ -223231,9 +223231,9 @@ const eU = () => {
223231
223231
  (async () => {
223232
223232
  if (H != null && H.defaultModels)
223233
223233
  try {
223234
- const Fe = H.defaultModels.map((Ae) => ({
223235
- value: Ae.modelName,
223236
- label: Ae.label
223234
+ const Fe = H.defaultModels.map((De) => ({
223235
+ value: De.modelName,
223236
+ label: De.label
223237
223237
  }));
223238
223238
  w(Fe);
223239
223239
  } catch (Fe) {
@@ -223250,15 +223250,15 @@ const eU = () => {
223250
223250
  if (!v) return "";
223251
223251
  const ue = t.getJSON();
223252
223252
  if (typeof n() != "number") return "";
223253
- const Ae = 2e3;
223253
+ const De = 2e3;
223254
223254
  let Ie = "";
223255
223255
  const Be = (fe) => fe ? fe.text ? fe.text : fe.content ? fe.content.map((me) => Be(me)).join(" ") : "" : "";
223256
223256
  let Ee = "", ut = 0;
223257
223257
  const We = ((J = ue.content) == null ? void 0 : J.slice(0, -1)) || [];
223258
223258
  for (let fe = We.length - 1; fe >= 0; fe--) {
223259
223259
  const me = Be(We[fe]);
223260
- if (ut + me.length > Ae) {
223261
- Ee = me.slice(-(Ae - ut)) + Ee;
223260
+ if (ut + me.length > De) {
223261
+ Ee = me.slice(-(De - ut)) + Ee;
223262
223262
  break;
223263
223263
  }
223264
223264
  Ee = me + `
@@ -223268,8 +223268,8 @@ const eU = () => {
223268
223268
  const q = ((re = ue.content) == null ? void 0 : re.slice(-1)) || [];
223269
223269
  for (const fe of q) {
223270
223270
  const me = Be(fe);
223271
- if (B + me.length > Ae) {
223272
- $e += me.slice(0, Ae - B);
223271
+ if (B + me.length > De) {
223272
+ $e += me.slice(0, De - B);
223273
223273
  break;
223274
223274
  }
223275
223275
  $e += me + `
@@ -223282,7 +223282,7 @@ ${Ie}`), Ie;
223282
223282
  if (l.trim())
223283
223283
  try {
223284
223284
  i(!0), s(!0), h(""), d(!1), (ue = H == null ? void 0 : H.onPromptUsage) == null || ue.call(H);
223285
- const Fe = U(), Ae = v ? `Context from document:
223285
+ const Fe = U(), De = v ? `Context from document:
223286
223286
  ${Fe}
223287
223287
 
223288
223288
  User prompt: ${l} /no_think` : `${l} /no_think`;
@@ -223292,7 +223292,7 @@ User prompt: ${l} /no_think` : `${l} /no_think`;
223292
223292
  let Be = "";
223293
223293
  try {
223294
223294
  await Ie.streamModel(
223295
- Ae,
223295
+ De,
223296
223296
  H.activeModel.modelName,
223297
223297
  (Ee) => {
223298
223298
  Be += Ee, h(Be);
@@ -223313,7 +223313,7 @@ User prompt: ${l} /no_think` : `${l} /no_think`;
223313
223313
  }
223314
223314
  } else if (Ie != null && Ie.callModel) {
223315
223315
  const Be = await Ie.callModel(
223316
- Ae,
223316
+ De,
223317
223317
  H.activeModel.modelName
223318
223318
  );
223319
223319
  r == null || r({
@@ -223350,8 +223350,8 @@ User prompt: ${l} /no_think` : `${l} /no_think`;
223350
223350
  if (typeof n == "function") {
223351
223351
  m(!0);
223352
223352
  const ue = setTimeout(() => {
223353
- t.commands.command(({ tr: Fe, dispatch: Ae }) => {
223354
- if (Ae) {
223353
+ t.commands.command(({ tr: Fe, dispatch: De }) => {
223354
+ if (De) {
223355
223355
  const Ie = n();
223356
223356
  Fe.delete(Ie, Ie + e.nodeSize);
223357
223357
  const Be = Fe.doc.resolve(Ie);
@@ -223366,8 +223366,8 @@ User prompt: ${l} /no_think` : `${l} /no_think`;
223366
223366
  if (typeof n == "function") {
223367
223367
  m(!0);
223368
223368
  const ue = setTimeout(() => {
223369
- t.commands.command(({ tr: Fe, dispatch: Ae }) => {
223370
- if (Ae) {
223369
+ t.commands.command(({ tr: Fe, dispatch: De }) => {
223370
+ if (De) {
223371
223371
  const Ie = n();
223372
223372
  Fe.delete(Ie, Ie + e.nodeSize);
223373
223373
  const Be = Fe.doc.resolve(Ie);
@@ -223389,17 +223389,17 @@ User prompt: ${l} /no_think` : `${l} /no_think`;
223389
223389
  (ue) => {
223390
223390
  r == null || r({ model: ue });
223391
223391
  const Fe = H == null ? void 0 : H.defaultModels.find(
223392
- (Ae) => Ae.modelName === ue
223392
+ (De) => De.modelName === ue
223393
223393
  );
223394
223394
  Fe && (H != null && H.setActiveModel) && H.setActiveModel(Fe);
223395
223395
  },
223396
223396
  [r, H]
223397
223397
  ), ne = He(() => {
223398
- var Fe, Ae;
223398
+ var Fe, De;
223399
223399
  if (r == null || r({ content: "" }), d(!1), h(""), !R.current) return;
223400
223400
  (Fe = R.current) == null || Fe.focus();
223401
223401
  const ue = R.current.value.length;
223402
- (Ae = R.current) == null || Ae.setSelectionRange(ue, ue), R.current.scrollTop = R.current.scrollHeight;
223402
+ (De = R.current) == null || De.setSelectionRange(ue, ue), R.current.scrollTop = R.current.scrollHeight;
223403
223403
  }, [r]), j = He(() => {
223404
223404
  y(!0);
223405
223405
  }, []), $ = He(() => {
@@ -230174,8 +230174,8 @@ var Hde = {};
230174
230174
  s[W] = t.readUint32BE(d, ae), l[W] = t.readUint32BE(d, ae + 4);
230175
230175
  }
230176
230176
  for (var W = 0; W < 80; W++) {
230177
- var se = p, ie = m, X = g, ee = y, te = x, ne = w, j = v, $ = M, ce = C, pe = A, oe = E, we = D, be = R, ue = _, Fe = N, Ae = V;
230178
- if (T = M, I = V, P = I & 65535, G = I >>> 16, K = T & 65535, U = T >>> 16, T = (x >>> 14 | R << 18) ^ (x >>> 18 | R << 14) ^ (R >>> 9 | x << 23), I = (R >>> 14 | x << 18) ^ (R >>> 18 | x << 14) ^ (x >>> 9 | R << 23), P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, T = x & w ^ ~x & v, I = R & _ ^ ~R & N, P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, T = o[W * 2], I = o[W * 2 + 1], P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, T = s[W % 16], I = l[W % 16], P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, G += P >>> 16, K += G >>> 16, U += K >>> 16, H = K & 65535 | U << 16, O = P & 65535 | G << 16, T = H, I = O, P = I & 65535, G = I >>> 16, K = T & 65535, U = T >>> 16, T = (p >>> 28 | C << 4) ^ (C >>> 2 | p << 30) ^ (C >>> 7 | p << 25), I = (C >>> 28 | p << 4) ^ (p >>> 2 | C << 30) ^ (p >>> 7 | C << 25), P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, T = p & m ^ p & g ^ m & g, I = C & A ^ C & E ^ A & E, P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, G += P >>> 16, K += G >>> 16, U += K >>> 16, $ = K & 65535 | U << 16, Ae = P & 65535 | G << 16, T = ee, I = we, P = I & 65535, G = I >>> 16, K = T & 65535, U = T >>> 16, T = H, I = O, P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, G += P >>> 16, K += G >>> 16, U += K >>> 16, ee = K & 65535 | U << 16, we = P & 65535 | G << 16, m = se, g = ie, y = X, x = ee, w = te, v = ne, M = j, p = $, A = ce, E = pe, D = oe, R = we, _ = be, N = ue, V = Fe, C = Ae, W % 16 === 15)
230177
+ var se = p, ie = m, X = g, ee = y, te = x, ne = w, j = v, $ = M, ce = C, pe = A, oe = E, we = D, be = R, ue = _, Fe = N, De = V;
230178
+ if (T = M, I = V, P = I & 65535, G = I >>> 16, K = T & 65535, U = T >>> 16, T = (x >>> 14 | R << 18) ^ (x >>> 18 | R << 14) ^ (R >>> 9 | x << 23), I = (R >>> 14 | x << 18) ^ (R >>> 18 | x << 14) ^ (x >>> 9 | R << 23), P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, T = x & w ^ ~x & v, I = R & _ ^ ~R & N, P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, T = o[W * 2], I = o[W * 2 + 1], P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, T = s[W % 16], I = l[W % 16], P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, G += P >>> 16, K += G >>> 16, U += K >>> 16, H = K & 65535 | U << 16, O = P & 65535 | G << 16, T = H, I = O, P = I & 65535, G = I >>> 16, K = T & 65535, U = T >>> 16, T = (p >>> 28 | C << 4) ^ (C >>> 2 | p << 30) ^ (C >>> 7 | p << 25), I = (C >>> 28 | p << 4) ^ (p >>> 2 | C << 30) ^ (p >>> 7 | C << 25), P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, T = p & m ^ p & g ^ m & g, I = C & A ^ C & E ^ A & E, P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, G += P >>> 16, K += G >>> 16, U += K >>> 16, $ = K & 65535 | U << 16, De = P & 65535 | G << 16, T = ee, I = we, P = I & 65535, G = I >>> 16, K = T & 65535, U = T >>> 16, T = H, I = O, P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, G += P >>> 16, K += G >>> 16, U += K >>> 16, ee = K & 65535 | U << 16, we = P & 65535 | G << 16, m = se, g = ie, y = X, x = ee, w = te, v = ne, M = j, p = $, A = ce, E = pe, D = oe, R = we, _ = be, N = ue, V = Fe, C = De, W % 16 === 15)
230179
230179
  for (var ae = 0; ae < 16; ae++)
230180
230180
  T = s[ae], I = l[ae], P = I & 65535, G = I >>> 16, K = T & 65535, U = T >>> 16, T = s[(ae + 9) % 16], I = l[(ae + 9) % 16], P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, H = s[(ae + 1) % 16], O = l[(ae + 1) % 16], T = (H >>> 1 | O << 31) ^ (H >>> 8 | O << 24) ^ H >>> 7, I = (O >>> 1 | H << 31) ^ (O >>> 8 | H << 24) ^ (O >>> 7 | H << 25), P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, H = s[(ae + 14) % 16], O = l[(ae + 14) % 16], T = (H >>> 19 | O << 13) ^ (O >>> 29 | H << 3) ^ H >>> 6, I = (O >>> 19 | H << 13) ^ (H >>> 29 | O << 3) ^ (O >>> 6 | H << 26), P += I & 65535, G += I >>> 16, K += T & 65535, U += T >>> 16, G += P >>> 16, K += G >>> 16, U += K >>> 16, s[ae] = K & 65535 | U << 16, l[ae] = P & 65535 | G << 16;
230181
230181
  }
@@ -230353,8 +230353,8 @@ var Hde = {};
230353
230353
  ee[j] = te[j] - ne[j];
230354
230354
  }
230355
230355
  function A(ee, te, ne) {
230356
- let j, $, ce = 0, pe = 0, oe = 0, we = 0, be = 0, ue = 0, Fe = 0, Ae = 0, Ie = 0, Be = 0, Ee = 0, ut = 0, We = 0, $e = 0, B = 0, q = 0, J = 0, re = 0, fe = 0, me = 0, Me = 0, Se = 0, le = 0, Ne = 0, ke = 0, Re = 0, qe = 0, ze = 0, Ze = 0, De = 0, Pe = 0, Ye = ne[0], ct = ne[1], it = ne[2], gt = ne[3], Ft = ne[4], Dt = ne[5], jt = ne[6], Mt = ne[7], Jt = ne[8], bn = ne[9], xn = ne[10], Hn = ne[11], Ln = ne[12], Xn = ne[13], Z = ne[14], ye = ne[15];
230357
- j = te[0], ce += j * Ye, pe += j * ct, oe += j * it, we += j * gt, be += j * Ft, ue += j * Dt, Fe += j * jt, Ae += j * Mt, Ie += j * Jt, Be += j * bn, Ee += j * xn, ut += j * Hn, We += j * Ln, $e += j * Xn, B += j * Z, q += j * ye, j = te[1], pe += j * Ye, oe += j * ct, we += j * it, be += j * gt, ue += j * Ft, Fe += j * Dt, Ae += j * jt, Ie += j * Mt, Be += j * Jt, Ee += j * bn, ut += j * xn, We += j * Hn, $e += j * Ln, B += j * Xn, q += j * Z, J += j * ye, j = te[2], oe += j * Ye, we += j * ct, be += j * it, ue += j * gt, Fe += j * Ft, Ae += j * Dt, Ie += j * jt, Be += j * Mt, Ee += j * Jt, ut += j * bn, We += j * xn, $e += j * Hn, B += j * Ln, q += j * Xn, J += j * Z, re += j * ye, j = te[3], we += j * Ye, be += j * ct, ue += j * it, Fe += j * gt, Ae += j * Ft, Ie += j * Dt, Be += j * jt, Ee += j * Mt, ut += j * Jt, We += j * bn, $e += j * xn, B += j * Hn, q += j * Ln, J += j * Xn, re += j * Z, fe += j * ye, j = te[4], be += j * Ye, ue += j * ct, Fe += j * it, Ae += j * gt, Ie += j * Ft, Be += j * Dt, Ee += j * jt, ut += j * Mt, We += j * Jt, $e += j * bn, B += j * xn, q += j * Hn, J += j * Ln, re += j * Xn, fe += j * Z, me += j * ye, j = te[5], ue += j * Ye, Fe += j * ct, Ae += j * it, Ie += j * gt, Be += j * Ft, Ee += j * Dt, ut += j * jt, We += j * Mt, $e += j * Jt, B += j * bn, q += j * xn, J += j * Hn, re += j * Ln, fe += j * Xn, me += j * Z, Me += j * ye, j = te[6], Fe += j * Ye, Ae += j * ct, Ie += j * it, Be += j * gt, Ee += j * Ft, ut += j * Dt, We += j * jt, $e += j * Mt, B += j * Jt, q += j * bn, J += j * xn, re += j * Hn, fe += j * Ln, me += j * Xn, Me += j * Z, Se += j * ye, j = te[7], Ae += j * Ye, Ie += j * ct, Be += j * it, Ee += j * gt, ut += j * Ft, We += j * Dt, $e += j * jt, B += j * Mt, q += j * Jt, J += j * bn, re += j * xn, fe += j * Hn, me += j * Ln, Me += j * Xn, Se += j * Z, le += j * ye, j = te[8], Ie += j * Ye, Be += j * ct, Ee += j * it, ut += j * gt, We += j * Ft, $e += j * Dt, B += j * jt, q += j * Mt, J += j * Jt, re += j * bn, fe += j * xn, me += j * Hn, Me += j * Ln, Se += j * Xn, le += j * Z, Ne += j * ye, j = te[9], Be += j * Ye, Ee += j * ct, ut += j * it, We += j * gt, $e += j * Ft, B += j * Dt, q += j * jt, J += j * Mt, re += j * Jt, fe += j * bn, me += j * xn, Me += j * Hn, Se += j * Ln, le += j * Xn, Ne += j * Z, ke += j * ye, j = te[10], Ee += j * Ye, ut += j * ct, We += j * it, $e += j * gt, B += j * Ft, q += j * Dt, J += j * jt, re += j * Mt, fe += j * Jt, me += j * bn, Me += j * xn, Se += j * Hn, le += j * Ln, Ne += j * Xn, ke += j * Z, Re += j * ye, j = te[11], ut += j * Ye, We += j * ct, $e += j * it, B += j * gt, q += j * Ft, J += j * Dt, re += j * jt, fe += j * Mt, me += j * Jt, Me += j * bn, Se += j * xn, le += j * Hn, Ne += j * Ln, ke += j * Xn, Re += j * Z, qe += j * ye, j = te[12], We += j * Ye, $e += j * ct, B += j * it, q += j * gt, J += j * Ft, re += j * Dt, fe += j * jt, me += j * Mt, Me += j * Jt, Se += j * bn, le += j * xn, Ne += j * Hn, ke += j * Ln, Re += j * Xn, qe += j * Z, ze += j * ye, j = te[13], $e += j * Ye, B += j * ct, q += j * it, J += j * gt, re += j * Ft, fe += j * Dt, me += j * jt, Me += j * Mt, Se += j * Jt, le += j * bn, Ne += j * xn, ke += j * Hn, Re += j * Ln, qe += j * Xn, ze += j * Z, Ze += j * ye, j = te[14], B += j * Ye, q += j * ct, J += j * it, re += j * gt, fe += j * Ft, me += j * Dt, Me += j * jt, Se += j * Mt, le += j * Jt, Ne += j * bn, ke += j * xn, Re += j * Hn, qe += j * Ln, ze += j * Xn, Ze += j * Z, De += j * ye, j = te[15], q += j * Ye, J += j * ct, re += j * it, fe += j * gt, me += j * Ft, Me += j * Dt, Se += j * jt, le += j * Mt, Ne += j * Jt, ke += j * bn, Re += j * xn, qe += j * Hn, ze += j * Ln, Ze += j * Xn, De += j * Z, Pe += j * ye, ce += 38 * J, pe += 38 * re, oe += 38 * fe, we += 38 * me, be += 38 * Me, ue += 38 * Se, Fe += 38 * le, Ae += 38 * Ne, Ie += 38 * ke, Be += 38 * Re, Ee += 38 * qe, ut += 38 * ze, We += 38 * Ze, $e += 38 * De, B += 38 * Pe, $ = 1, j = ce + $ + 65535, $ = Math.floor(j / 65536), ce = j - $ * 65536, j = pe + $ + 65535, $ = Math.floor(j / 65536), pe = j - $ * 65536, j = oe + $ + 65535, $ = Math.floor(j / 65536), oe = j - $ * 65536, j = we + $ + 65535, $ = Math.floor(j / 65536), we = j - $ * 65536, j = be + $ + 65535, $ = Math.floor(j / 65536), be = j - $ * 65536, j = ue + $ + 65535, $ = Math.floor(j / 65536), ue = j - $ * 65536, j = Fe + $ + 65535, $ = Math.floor(j / 65536), Fe = j - $ * 65536, j = Ae + $ + 65535, $ = Math.floor(j / 65536), Ae = j - $ * 65536, j = Ie + $ + 65535, $ = Math.floor(j / 65536), Ie = j - $ * 65536, j = Be + $ + 65535, $ = Math.floor(j / 65536), Be = j - $ * 65536, j = Ee + $ + 65535, $ = Math.floor(j / 65536), Ee = j - $ * 65536, j = ut + $ + 65535, $ = Math.floor(j / 65536), ut = j - $ * 65536, j = We + $ + 65535, $ = Math.floor(j / 65536), We = j - $ * 65536, j = $e + $ + 65535, $ = Math.floor(j / 65536), $e = j - $ * 65536, j = B + $ + 65535, $ = Math.floor(j / 65536), B = j - $ * 65536, j = q + $ + 65535, $ = Math.floor(j / 65536), q = j - $ * 65536, ce += $ - 1 + 37 * ($ - 1), $ = 1, j = ce + $ + 65535, $ = Math.floor(j / 65536), ce = j - $ * 65536, j = pe + $ + 65535, $ = Math.floor(j / 65536), pe = j - $ * 65536, j = oe + $ + 65535, $ = Math.floor(j / 65536), oe = j - $ * 65536, j = we + $ + 65535, $ = Math.floor(j / 65536), we = j - $ * 65536, j = be + $ + 65535, $ = Math.floor(j / 65536), be = j - $ * 65536, j = ue + $ + 65535, $ = Math.floor(j / 65536), ue = j - $ * 65536, j = Fe + $ + 65535, $ = Math.floor(j / 65536), Fe = j - $ * 65536, j = Ae + $ + 65535, $ = Math.floor(j / 65536), Ae = j - $ * 65536, j = Ie + $ + 65535, $ = Math.floor(j / 65536), Ie = j - $ * 65536, j = Be + $ + 65535, $ = Math.floor(j / 65536), Be = j - $ * 65536, j = Ee + $ + 65535, $ = Math.floor(j / 65536), Ee = j - $ * 65536, j = ut + $ + 65535, $ = Math.floor(j / 65536), ut = j - $ * 65536, j = We + $ + 65535, $ = Math.floor(j / 65536), We = j - $ * 65536, j = $e + $ + 65535, $ = Math.floor(j / 65536), $e = j - $ * 65536, j = B + $ + 65535, $ = Math.floor(j / 65536), B = j - $ * 65536, j = q + $ + 65535, $ = Math.floor(j / 65536), q = j - $ * 65536, ce += $ - 1 + 37 * ($ - 1), ee[0] = ce, ee[1] = pe, ee[2] = oe, ee[3] = we, ee[4] = be, ee[5] = ue, ee[6] = Fe, ee[7] = Ae, ee[8] = Ie, ee[9] = Be, ee[10] = Ee, ee[11] = ut, ee[12] = We, ee[13] = $e, ee[14] = B, ee[15] = q;
230356
+ let j, $, ce = 0, pe = 0, oe = 0, we = 0, be = 0, ue = 0, Fe = 0, De = 0, Ie = 0, Be = 0, Ee = 0, ut = 0, We = 0, $e = 0, B = 0, q = 0, J = 0, re = 0, fe = 0, me = 0, Me = 0, Se = 0, le = 0, Ne = 0, ke = 0, Re = 0, qe = 0, ze = 0, Ze = 0, Ae = 0, Pe = 0, Ye = ne[0], ct = ne[1], it = ne[2], gt = ne[3], Ft = ne[4], Dt = ne[5], jt = ne[6], Mt = ne[7], Jt = ne[8], bn = ne[9], xn = ne[10], Hn = ne[11], Ln = ne[12], Xn = ne[13], Z = ne[14], ye = ne[15];
230357
+ j = te[0], ce += j * Ye, pe += j * ct, oe += j * it, we += j * gt, be += j * Ft, ue += j * Dt, Fe += j * jt, De += j * Mt, Ie += j * Jt, Be += j * bn, Ee += j * xn, ut += j * Hn, We += j * Ln, $e += j * Xn, B += j * Z, q += j * ye, j = te[1], pe += j * Ye, oe += j * ct, we += j * it, be += j * gt, ue += j * Ft, Fe += j * Dt, De += j * jt, Ie += j * Mt, Be += j * Jt, Ee += j * bn, ut += j * xn, We += j * Hn, $e += j * Ln, B += j * Xn, q += j * Z, J += j * ye, j = te[2], oe += j * Ye, we += j * ct, be += j * it, ue += j * gt, Fe += j * Ft, De += j * Dt, Ie += j * jt, Be += j * Mt, Ee += j * Jt, ut += j * bn, We += j * xn, $e += j * Hn, B += j * Ln, q += j * Xn, J += j * Z, re += j * ye, j = te[3], we += j * Ye, be += j * ct, ue += j * it, Fe += j * gt, De += j * Ft, Ie += j * Dt, Be += j * jt, Ee += j * Mt, ut += j * Jt, We += j * bn, $e += j * xn, B += j * Hn, q += j * Ln, J += j * Xn, re += j * Z, fe += j * ye, j = te[4], be += j * Ye, ue += j * ct, Fe += j * it, De += j * gt, Ie += j * Ft, Be += j * Dt, Ee += j * jt, ut += j * Mt, We += j * Jt, $e += j * bn, B += j * xn, q += j * Hn, J += j * Ln, re += j * Xn, fe += j * Z, me += j * ye, j = te[5], ue += j * Ye, Fe += j * ct, De += j * it, Ie += j * gt, Be += j * Ft, Ee += j * Dt, ut += j * jt, We += j * Mt, $e += j * Jt, B += j * bn, q += j * xn, J += j * Hn, re += j * Ln, fe += j * Xn, me += j * Z, Me += j * ye, j = te[6], Fe += j * Ye, De += j * ct, Ie += j * it, Be += j * gt, Ee += j * Ft, ut += j * Dt, We += j * jt, $e += j * Mt, B += j * Jt, q += j * bn, J += j * xn, re += j * Hn, fe += j * Ln, me += j * Xn, Me += j * Z, Se += j * ye, j = te[7], De += j * Ye, Ie += j * ct, Be += j * it, Ee += j * gt, ut += j * Ft, We += j * Dt, $e += j * jt, B += j * Mt, q += j * Jt, J += j * bn, re += j * xn, fe += j * Hn, me += j * Ln, Me += j * Xn, Se += j * Z, le += j * ye, j = te[8], Ie += j * Ye, Be += j * ct, Ee += j * it, ut += j * gt, We += j * Ft, $e += j * Dt, B += j * jt, q += j * Mt, J += j * Jt, re += j * bn, fe += j * xn, me += j * Hn, Me += j * Ln, Se += j * Xn, le += j * Z, Ne += j * ye, j = te[9], Be += j * Ye, Ee += j * ct, ut += j * it, We += j * gt, $e += j * Ft, B += j * Dt, q += j * jt, J += j * Mt, re += j * Jt, fe += j * bn, me += j * xn, Me += j * Hn, Se += j * Ln, le += j * Xn, Ne += j * Z, ke += j * ye, j = te[10], Ee += j * Ye, ut += j * ct, We += j * it, $e += j * gt, B += j * Ft, q += j * Dt, J += j * jt, re += j * Mt, fe += j * Jt, me += j * bn, Me += j * xn, Se += j * Hn, le += j * Ln, Ne += j * Xn, ke += j * Z, Re += j * ye, j = te[11], ut += j * Ye, We += j * ct, $e += j * it, B += j * gt, q += j * Ft, J += j * Dt, re += j * jt, fe += j * Mt, me += j * Jt, Me += j * bn, Se += j * xn, le += j * Hn, Ne += j * Ln, ke += j * Xn, Re += j * Z, qe += j * ye, j = te[12], We += j * Ye, $e += j * ct, B += j * it, q += j * gt, J += j * Ft, re += j * Dt, fe += j * jt, me += j * Mt, Me += j * Jt, Se += j * bn, le += j * xn, Ne += j * Hn, ke += j * Ln, Re += j * Xn, qe += j * Z, ze += j * ye, j = te[13], $e += j * Ye, B += j * ct, q += j * it, J += j * gt, re += j * Ft, fe += j * Dt, me += j * jt, Me += j * Mt, Se += j * Jt, le += j * bn, Ne += j * xn, ke += j * Hn, Re += j * Ln, qe += j * Xn, ze += j * Z, Ze += j * ye, j = te[14], B += j * Ye, q += j * ct, J += j * it, re += j * gt, fe += j * Ft, me += j * Dt, Me += j * jt, Se += j * Mt, le += j * Jt, Ne += j * bn, ke += j * xn, Re += j * Hn, qe += j * Ln, ze += j * Xn, Ze += j * Z, Ae += j * ye, j = te[15], q += j * Ye, J += j * ct, re += j * it, fe += j * gt, me += j * Ft, Me += j * Dt, Se += j * jt, le += j * Mt, Ne += j * Jt, ke += j * bn, Re += j * xn, qe += j * Hn, ze += j * Ln, Ze += j * Xn, Ae += j * Z, Pe += j * ye, ce += 38 * J, pe += 38 * re, oe += 38 * fe, we += 38 * me, be += 38 * Me, ue += 38 * Se, Fe += 38 * le, De += 38 * Ne, Ie += 38 * ke, Be += 38 * Re, Ee += 38 * qe, ut += 38 * ze, We += 38 * Ze, $e += 38 * Ae, B += 38 * Pe, $ = 1, j = ce + $ + 65535, $ = Math.floor(j / 65536), ce = j - $ * 65536, j = pe + $ + 65535, $ = Math.floor(j / 65536), pe = j - $ * 65536, j = oe + $ + 65535, $ = Math.floor(j / 65536), oe = j - $ * 65536, j = we + $ + 65535, $ = Math.floor(j / 65536), we = j - $ * 65536, j = be + $ + 65535, $ = Math.floor(j / 65536), be = j - $ * 65536, j = ue + $ + 65535, $ = Math.floor(j / 65536), ue = j - $ * 65536, j = Fe + $ + 65535, $ = Math.floor(j / 65536), Fe = j - $ * 65536, j = De + $ + 65535, $ = Math.floor(j / 65536), De = j - $ * 65536, j = Ie + $ + 65535, $ = Math.floor(j / 65536), Ie = j - $ * 65536, j = Be + $ + 65535, $ = Math.floor(j / 65536), Be = j - $ * 65536, j = Ee + $ + 65535, $ = Math.floor(j / 65536), Ee = j - $ * 65536, j = ut + $ + 65535, $ = Math.floor(j / 65536), ut = j - $ * 65536, j = We + $ + 65535, $ = Math.floor(j / 65536), We = j - $ * 65536, j = $e + $ + 65535, $ = Math.floor(j / 65536), $e = j - $ * 65536, j = B + $ + 65535, $ = Math.floor(j / 65536), B = j - $ * 65536, j = q + $ + 65535, $ = Math.floor(j / 65536), q = j - $ * 65536, ce += $ - 1 + 37 * ($ - 1), $ = 1, j = ce + $ + 65535, $ = Math.floor(j / 65536), ce = j - $ * 65536, j = pe + $ + 65535, $ = Math.floor(j / 65536), pe = j - $ * 65536, j = oe + $ + 65535, $ = Math.floor(j / 65536), oe = j - $ * 65536, j = we + $ + 65535, $ = Math.floor(j / 65536), we = j - $ * 65536, j = be + $ + 65535, $ = Math.floor(j / 65536), be = j - $ * 65536, j = ue + $ + 65535, $ = Math.floor(j / 65536), ue = j - $ * 65536, j = Fe + $ + 65535, $ = Math.floor(j / 65536), Fe = j - $ * 65536, j = De + $ + 65535, $ = Math.floor(j / 65536), De = j - $ * 65536, j = Ie + $ + 65535, $ = Math.floor(j / 65536), Ie = j - $ * 65536, j = Be + $ + 65535, $ = Math.floor(j / 65536), Be = j - $ * 65536, j = Ee + $ + 65535, $ = Math.floor(j / 65536), Ee = j - $ * 65536, j = ut + $ + 65535, $ = Math.floor(j / 65536), ut = j - $ * 65536, j = We + $ + 65535, $ = Math.floor(j / 65536), We = j - $ * 65536, j = $e + $ + 65535, $ = Math.floor(j / 65536), $e = j - $ * 65536, j = B + $ + 65535, $ = Math.floor(j / 65536), B = j - $ * 65536, j = q + $ + 65535, $ = Math.floor(j / 65536), q = j - $ * 65536, ce += $ - 1 + 37 * ($ - 1), ee[0] = ce, ee[1] = pe, ee[2] = oe, ee[3] = we, ee[4] = be, ee[5] = ue, ee[6] = Fe, ee[7] = De, ee[8] = Ie, ee[9] = Be, ee[10] = Ee, ee[11] = ut, ee[12] = We, ee[13] = $e, ee[14] = B, ee[15] = q;
230358
230358
  }
230359
230359
  function E(ee, te) {
230360
230360
  A(ee, te, te);
@@ -230885,12 +230885,12 @@ var $de = { exports: {} };
230885
230885
  return new f(this.value * this.value);
230886
230886
  };
230887
230887
  function H(B, q) {
230888
- var J = B.length, re = q.length, fe = r, me = y(q.length), Me = q[re - 1], Se = Math.ceil(fe / (2 * Me)), le = R(B, Se), Ne = R(q, Se), ke, Re, qe, ze, Ze, De, Pe;
230888
+ var J = B.length, re = q.length, fe = r, me = y(q.length), Me = q[re - 1], Se = Math.ceil(fe / (2 * Me)), le = R(B, Se), Ne = R(q, Se), ke, Re, qe, ze, Ze, Ae, Pe;
230889
230889
  for (le.length <= J && le.push(0), Ne.push(0), Me = Ne[re - 1], Re = J - re; Re >= 0; Re--) {
230890
- for (ke = fe - 1, le[Re + re] !== Me && (ke = Math.floor((le[Re + re] * fe + le[Re + re - 1]) / Me)), qe = 0, ze = 0, De = Ne.length, Ze = 0; Ze < De; Ze++)
230890
+ for (ke = fe - 1, le[Re + re] !== Me && (ke = Math.floor((le[Re + re] * fe + le[Re + re - 1]) / Me)), qe = 0, ze = 0, Ae = Ne.length, Ze = 0; Ze < Ae; Ze++)
230891
230891
  qe += ke * Ne[Ze], Pe = Math.floor(qe / fe), ze += le[Re + Ze] - (qe - Pe * fe), qe = Pe, ze < 0 ? (le[Re + Ze] = ze + fe, ze = -1) : (le[Re + Ze] = ze, ze = 0);
230892
230892
  for (; ze !== 0; ) {
230893
- for (ke -= 1, qe = 0, Ze = 0; Ze < De; Ze++)
230893
+ for (ke -= 1, qe = 0, Ze = 0; Ze < Ae; Ze++)
230894
230894
  qe += le[Re + Ze] - fe + Ne[Ze], qe < 0 ? (le[Re + Ze] = qe + fe, qe = 0) : (le[Re + Ze] = qe, qe = 1);
230895
230895
  ze += qe;
230896
230896
  }
@@ -231265,7 +231265,7 @@ var $de = { exports: {} };
231265
231265
  re = re.add(B[me].times(fe)), fe = fe.times(q);
231266
231266
  return J ? re.negate() : re;
231267
231267
  }
231268
- function Ae(B, q) {
231268
+ function De(B, q) {
231269
231269
  return q = q || s, B < q.length ? q[B] : "<" + B + ">";
231270
231270
  }
231271
231271
  function Ie(B, q) {
@@ -231305,7 +231305,7 @@ var $de = { exports: {} };
231305
231305
  function Be(B, q, J) {
231306
231306
  var re = Ie(B, q);
231307
231307
  return (re.isNegative ? "-" : "") + re.value.map(function(fe) {
231308
- return Ae(fe, J);
231308
+ return De(fe, J);
231309
231309
  }).join("");
231310
231310
  }
231311
231311
  u.prototype.toArray = function(B) {
@@ -234608,9 +234608,9 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234608
234608
  onCollaborationCommit: V.onCollaborationCommit,
234609
234609
  onFetchCommitContent: V.onFetchCommitContent,
234610
234610
  onSessionTerminated: V.onCollabSessionTermination
234611
- }), ae = Ot(() => n, [n]), [se, ie] = Le(null), X = tt(null), ee = (De) => {
234611
+ }), ae = Ot(() => n, [n]), [se, ie] = Le(null), X = tt(null), ee = (Ae) => {
234612
234612
  if (!X.current) return;
234613
- const Pe = X.current.querySelector(`input#${De}`);
234613
+ const Pe = X.current.querySelector(`input#${Ae}`);
234614
234614
  Pe && Pe.scrollIntoView({
234615
234615
  behavior: "smooth",
234616
234616
  block: "center",
@@ -234622,14 +234622,14 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234622
234622
  }, [se]);
234623
234623
  const [te, ne] = Le([]), j = D !== void 0 && _, [$, ce] = Le([
234624
234624
  ...g1e({
234625
- onError: (De) => l == null ? void 0 : l(De),
234625
+ onError: (Ae) => l == null ? void 0 : l(Ae),
234626
234626
  ipfsImageUploadFn: d,
234627
234627
  metadataProxyUrl: v,
234628
234628
  onCopyHeadingLink: C,
234629
234629
  ipfsImageFetchFn: A
234630
234630
  }),
234631
234631
  uk(
234632
- (De) => l == null ? void 0 : l(De),
234632
+ (Ae) => l == null ? void 0 : l(Ae),
234633
234633
  d,
234634
234634
  E
234635
234635
  ),
@@ -234639,8 +234639,8 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234639
234639
  HTMLAttributes: {
234640
234640
  class: "inline-comment"
234641
234641
  },
234642
- onCommentActivated: (De) => {
234643
- ie(De), De && setTimeout(() => ee(De));
234642
+ onCommentActivated: (Ae) => {
234643
+ ie(Ae), Ae && setTimeout(() => ee(Ae));
234644
234644
  }
234645
234645
  }),
234646
234646
  rle.configure({
@@ -234649,15 +234649,15 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234649
234649
  ...M ? Object.values(M) : []
234650
234650
  ]);
234651
234651
  _e(() => {
234652
- ce((De) => [
234653
- ...De.filter((Pe) => Pe.name !== "table"),
234652
+ ce((Ae) => [
234653
+ ...Ae.filter((Pe) => Pe.name !== "table"),
234654
234654
  ace.configure({
234655
234655
  resizable: !e
234656
234656
  })
234657
234657
  ]);
234658
234658
  }, [e]), _e(() => {
234659
- E && ce((De) => [
234660
- ...De.filter((Pe) => Pe.name !== "slash-command"),
234659
+ E && ce((Ae) => [
234660
+ ...Ae.filter((Pe) => Pe.name !== "slash-command"),
234661
234661
  uk(
234662
234662
  (Pe) => l == null ? void 0 : l(Pe),
234663
234663
  d,
@@ -234665,20 +234665,20 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234665
234665
  )
234666
234666
  ]);
234667
234667
  }, [E]);
234668
- const pe = tt(!1), [oe, we] = Le([]), be = (De, Pe, Ye) => {
234668
+ const pe = tt(!1), [oe, we] = Le([]), be = (Ae, Pe, Ye) => {
234669
234669
  let ct = !1;
234670
- return De.doc.nodesBetween(Pe, Ye, (it) => {
234670
+ return Ae.doc.nodesBetween(Pe, Ye, (it) => {
234671
234671
  it.marks && it.marks.some(
234672
234672
  (gt) => gt.type.name === "highlight" && gt.attrs.color === "yellow"
234673
234673
  ) && (ct = !0);
234674
234674
  }), ct;
234675
- }, ue = (De, Pe) => {
234675
+ }, ue = (Ae, Pe) => {
234676
234676
  var ct;
234677
234677
  const Ye = Pe.target;
234678
234678
  if (Ye && Ye.nodeName === "MARK" && Ye.dataset.color && ((ct = Ye == null ? void 0 : Ye.dataset) == null ? void 0 : ct.color) === "yellow") {
234679
- const it = Ye.textContent, gt = De.posAtCoords({ left: Pe.clientX, top: Pe.clientY });
234679
+ const it = Ye.textContent, gt = Ae.posAtCoords({ left: Pe.clientX, top: Pe.clientY });
234680
234680
  if (gt) {
234681
- const { state: Ft } = De;
234681
+ const { state: Ft } = Ae;
234682
234682
  let Dt = gt.pos, jt = gt.pos;
234683
234683
  if (Ft.doc.nodesBetween(Dt, jt, (Mt, Jt) => {
234684
234684
  Mt.marks && Mt.marks.length && Mt.marks.forEach((bn) => {
@@ -234695,10 +234695,10 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234695
234695
  }
234696
234696
  }
234697
234697
  }
234698
- }, Fe = (De, Pe, Ye) => {
234699
- ue(De, Ye);
234700
- }, Ae = Ot(() => $, [$]), Ie = tt(null), Be = (De, Pe) => {
234701
- const { state: Ye } = De, { selection: ct } = Ye, { from: it, to: gt, empty: Ft } = ct;
234698
+ }, Fe = (Ae, Pe, Ye) => {
234699
+ ue(Ae, Ye);
234700
+ }, De = Ot(() => $, [$]), Ie = tt(null), Be = (Ae, Pe) => {
234701
+ const { state: Ye } = Ae, { selection: ct } = Ye, { from: it, to: gt, empty: Ft } = ct;
234702
234702
  if (Pe.key === "Backspace" || Pe.key === "Delete") {
234703
234703
  let Dt = !1;
234704
234704
  if (!Ft)
@@ -234714,13 +234714,13 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234714
234714
  }
234715
234715
  }, Ee = vZ(
234716
234716
  {
234717
- extensions: Ae,
234717
+ extensions: De,
234718
234718
  editorProps: {
234719
234719
  ...hHt,
234720
234720
  handleDOMEvents: {
234721
234721
  mouseover: ue,
234722
- keydown: (De, Pe) => {
234723
- if (Be(De, Pe), ["ArrowUp", "ArrowDown", "Enter"].includes(Pe.key)) {
234722
+ keydown: (Ae, Pe) => {
234723
+ if (Be(Ae, Pe), ["ArrowUp", "ArrowDown", "Enter"].includes(Pe.key)) {
234724
234724
  const Ye = document.querySelector("#slash-command"), ct = document.querySelector("#emoji-list");
234725
234725
  if (Ye || ct)
234726
234726
  return !0;
@@ -234739,16 +234739,16 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234739
234739
  immediatelyRender: !1,
234740
234740
  shouldRerenderOnTransaction: !1
234741
234741
  },
234742
- [Ae, x]
234742
+ [De, x]
234743
234743
  );
234744
- _e(() => (w != null && w.TableOfContents && !$.some((De) => De.name === "tableOfContents") && ce([
234745
- ...$.filter((De) => De.name !== "tableOfContents"),
234744
+ _e(() => (w != null && w.TableOfContents && !$.some((Ae) => Ae.name === "tableOfContents") && ce([
234745
+ ...$.filter((Ae) => Ae.name !== "tableOfContents"),
234746
234746
  w.TableOfContents.configure({
234747
234747
  getIndex: w.getHierarchicalIndexes,
234748
- onUpdate: (De, Pe) => {
234749
- Pe ? ne(De) : (Ie.current && clearTimeout(Ie.current), requestAnimationFrame(() => {
234748
+ onUpdate: (Ae, Pe) => {
234749
+ Pe ? ne(Ae) : (Ie.current && clearTimeout(Ie.current), requestAnimationFrame(() => {
234750
234750
  Ie.current = window.setTimeout(() => {
234751
- ne(De), Ie.current = null;
234751
+ ne(Ae), Ie.current = null;
234752
234752
  }, 100);
234753
234753
  }));
234754
234754
  }
@@ -234758,7 +234758,7 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234758
234758
  }), [w, $]), _e(() => {
234759
234759
  D && ce([
234760
234760
  ...$.filter(
234761
- (De) => De.name !== "aiAutocomplete" && De.name !== "aiWriter" && De.name !== "dBlock" && De.name !== "slash-command"
234761
+ (Ae) => Ae.name !== "aiAutocomplete" && Ae.name !== "aiWriter" && Ae.name !== "dBlock" && Ae.name !== "slash-command"
234762
234762
  ),
234763
234763
  Yan.configure({
234764
234764
  model: D,
@@ -234771,7 +234771,7 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234771
234771
  hasAvailableModels: j
234772
234772
  }),
234773
234773
  uk(
234774
- (De) => l == null ? void 0 : l(De),
234774
+ (Ae) => l == null ? void 0 : l(Ae),
234775
234775
  d,
234776
234776
  E
234777
234777
  )
@@ -234779,20 +234779,21 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234779
234779
  }, [D, R, _, E]), _e(() => {
234780
234780
  if (m) {
234781
234781
  fk.setZoom(m);
234782
- const De = setTimeout(() => {
234782
+ const Ae = setTimeout(() => {
234783
234783
  fk.setZoom(m);
234784
234784
  }, 100);
234785
- return () => clearTimeout(De);
234785
+ return () => clearTimeout(Ae);
234786
234786
  }
234787
234787
  }, [m, T, t, Ee == null ? void 0 : Ee.isEmpty]);
234788
234788
  const ut = tt(() => {
234789
234789
  });
234790
234790
  _e(() => {
234791
- !K || !n || !N || N.isEns && (Ee == null || Ee.commands.updateUser({
234791
+ var Ae;
234792
+ !K || !n || !N || N.isEns && typeof ((Ae = Ee == null ? void 0 : Ee.commands) == null ? void 0 : Ae.updateUser) == "function" && Ee.commands.updateUser({
234792
234793
  name: N.username,
234793
234794
  color: Wy[Math.floor(Math.random() * Wy.length)],
234794
234795
  isEns: N.isEns
234795
- }));
234796
+ });
234796
234797
  }, [K, n, N == null ? void 0 : N.isEns]), _e(() => !K || !n || !N ? void 0 : ((async () => {
234797
234798
  ce([
234798
234799
  ...$.filter((Pe) => Pe.name !== "history"),
@@ -234813,34 +234814,34 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234813
234814
  }), [K, n, N == null ? void 0 : N.collaborationId]);
234814
234815
  const We = tt(null);
234815
234816
  _e(() => {
234816
- const De = !e;
234817
- Ee == null || Ee.setEditable(De);
234818
- }, [e, Ee]), _e(() => {
234817
+ const Ae = ae && (N != null && N.isOwner) ? !e : !1;
234818
+ Ee == null || Ee.setEditable(Ae);
234819
+ }, [e, Ee, ae, N == null ? void 0 : N.isOwner]), _e(() => {
234819
234820
  ae && O(!K);
234820
234821
  }, [ae, K]);
234821
234822
  const $e = tt(null), B = async () => {
234822
- const De = $e.current;
234823
- if (De && await De.destroy(), h && f) {
234823
+ const Ae = $e.current;
234824
+ if (Ae && await Ae.destroy(), h && f) {
234824
234825
  const Pe = new Man(f, P);
234825
234826
  $e.current = Pe;
234826
234827
  }
234827
- }, q = (De) => {
234828
- const Pe = De.map((Ye) => Wn(Ye));
234828
+ }, q = (Ae) => {
234829
+ const Pe = Ae.map((Ye) => Wn(Ye));
234829
234830
  xl(P, Ks(Pe), "self");
234830
- }, J = (De) => Array.isArray(De) || typeof De == "string" && !C1e(De), re = (De) => De === null, fe = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, me = new URLSearchParams(fe), Me = me.get("heading"), Se = Me == null ? void 0 : Me.split("-").pop(), { isNativeMobile: le } = Cl(), Ne = He(
234831
- (De) => {
234831
+ }, J = (Ae) => Array.isArray(Ae) || typeof Ae == "string" && !C1e(Ae), re = (Ae) => Ae === null, fe = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, me = new URLSearchParams(fe), Me = me.get("heading"), Se = Me == null ? void 0 : Me.split("-").pop(), { isNativeMobile: le } = Cl(), Ne = He(
234832
+ (Ae) => {
234832
234833
  if (Ee) {
234833
234834
  const Pe = Ee.view.dom.querySelectorAll("[data-toc-id]"), Ye = Array.from(Pe).find(
234834
234835
  (Mt) => {
234835
234836
  var Jt;
234836
- return (Jt = Mt.dataset.tocId) == null ? void 0 : Jt.includes(De);
234837
+ return (Jt = Mt.dataset.tocId) == null ? void 0 : Jt.includes(Ae);
234837
234838
  }
234838
234839
  );
234839
234840
  if (!Ye) return;
234840
234841
  const ct = qle(
234841
234842
  Ye == null ? void 0 : Ye.textContent
234842
234843
  ), it = Me == null ? void 0 : Me.split("-").slice(0, -1).join("-");
234843
- ct !== it && (me.set("heading", `${ct}-${De}`), window.location.hash = me.toString());
234844
+ ct !== it && (me.set("heading", `${ct}-${Ae}`), window.location.hash = me.toString());
234844
234845
  const gt = Ee.view.posAtDOM(Ye, 0), Ft = Ee.view.state.tr;
234845
234846
  Ft.setSelection(new wt(Ft.doc.resolve(gt))), Ee.view.dispatch(Ft);
234846
234847
  const jt = [
@@ -234875,11 +234876,11 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234875
234876
  T,
234876
234877
  Ne
234877
234878
  ]), _e(() => {
234878
- const De = (Pe) => {
234879
+ const Ae = (Pe) => {
234879
234880
  (Pe.ctrlKey || Pe.metaKey) && Pe.key === "p" && (Pe.preventDefault(), Ee && (x ? Ute(oe) : Wte(Ee.getHTML())));
234880
234881
  };
234881
- return window.addEventListener("keydown", De), () => {
234882
- window.removeEventListener("keydown", De);
234882
+ return window.addEventListener("keydown", Ae), () => {
234883
+ window.removeEventListener("keydown", Ae);
234883
234884
  };
234884
234885
  }, [Ee, x]), _e(() => {
234885
234886
  !re(t) && Ee && !pe.current && P ? (I(!0), queueMicrotask(() => {
@@ -234895,13 +234896,13 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234895
234896
  })
234896
234897
  )), m && fk.setZoom(m), B().then(() => {
234897
234898
  I(!1);
234898
- }).catch((De) => {
234899
- console.log(De);
234899
+ }).catch((Ae) => {
234900
+ console.log(Ae);
234900
234901
  });
234901
234902
  }), pe.current = !0) : t !== null && I(!1);
234902
234903
  }, [t, Ee, P]);
234903
234904
  const ke = He(
234904
- async (De, Pe) => {
234905
+ async (Ae, Pe) => {
234905
234906
  if (!(N != null && N.wsUrl))
234906
234907
  throw new Error("Cannot start collaboration without a wss url");
234907
234908
  let Ye = N == null ? void 0 : N.username, ct = !1;
@@ -234915,7 +234916,7 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234915
234916
  G({
234916
234917
  username: Ye,
234917
234918
  roomKey: Pe,
234918
- roomId: De,
234919
+ roomId: Ae,
234919
234920
  isOwner: N == null ? void 0 : N.isOwner,
234920
234921
  ownerEdSecret: N == null ? void 0 : N.ownerEdSecret,
234921
234922
  contractAddress: N == null ? void 0 : N.contractAddress,
@@ -234934,28 +234935,28 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234934
234935
  N == null ? void 0 : N.collaborationId,
234935
234936
  N == null ? void 0 : N.roomKey
234936
234937
  ]), _e(() => {
234937
- var De, Pe;
234938
- i == null || i((Pe = (De = Ee == null ? void 0 : Ee.storage) == null ? void 0 : De.collaborationCursor) == null ? void 0 : Pe.users);
234938
+ var Ae, Pe;
234939
+ i == null || i((Pe = (Ae = Ee == null ? void 0 : Ee.storage) == null ? void 0 : Ae.collaborationCursor) == null ? void 0 : Pe.users);
234939
234940
  }, [(Ze = (ze = Ee == null ? void 0 : Ee.storage) == null ? void 0 : ze.collaborationCursor) == null ? void 0 : Ze.users]), _e(() => {
234940
234941
  c && c(Ee == null ? void 0 : Ee.storage.characterCount.characters()), u && u(Ee == null ? void 0 : Ee.storage.characterCount.words());
234941
234942
  }, [
234942
234943
  Ee == null ? void 0 : Ee.storage.characterCount.characters(),
234943
234944
  Ee == null ? void 0 : Ee.storage.characterCount.words()
234944
234945
  ]), _e(() => {
234945
- const De = (Pe, Ye) => {
234946
+ const Ae = (Pe, Ye) => {
234946
234947
  Ye !== "self" && (o == null || o(
234947
234948
  is(Dc(P)),
234948
234949
  is(Pe)
234949
234950
  ));
234950
234951
  };
234951
- return P && P.on("update", De), () => {
234952
- P == null || P.off("update", De);
234952
+ return P && P.on("update", Ae), () => {
234953
+ P == null || P.off("update", Ae);
234953
234954
  };
234954
234955
  }, [P]), _e(() => () => {
234955
234956
  Ee && Ee.destroy();
234956
234957
  }, [Ee]), _e(() => {
234957
234958
  if (!Ee) return;
234958
- const De = ({ editor: Pe }) => {
234959
+ const Ae = ({ editor: Pe }) => {
234959
234960
  const Ye = Pe.state.selection.from;
234960
234961
  setTimeout(() => {
234961
234962
  const ct = Pe.state.selection.from, it = [];
@@ -234977,15 +234978,15 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234977
234978
  }), Pe.commands.setTextSelection(ct);
234978
234979
  }, 0);
234979
234980
  };
234980
- return Ee.on("paste", De), () => {
234981
- Ee.off("paste", De);
234981
+ return Ee.on("paste", Ae), () => {
234982
+ Ee.off("paste", Ae);
234982
234983
  };
234983
234984
  }, [Ee]);
234984
234985
  const Re = tt(localStorage.getItem("theme") !== null), qe = tt(!1);
234985
234986
  return _e(() => {
234986
234987
  if (!(!Ee || T || !Re.current || qe.current))
234987
234988
  if (t) {
234988
- const De = setTimeout(() => {
234989
+ const Ae = setTimeout(() => {
234989
234990
  if (!Ee) return;
234990
234991
  const { from: Pe, to: Ye } = Ee.state.selection, ct = [];
234991
234992
  Ee.state.doc.descendants((it, gt) => {
@@ -235001,7 +235002,7 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
235001
235002
  Yq(Dt) || Ee.chain().setTextSelection({ from: it, to: gt }).setColor(Dt).run();
235002
235003
  }), Ee.commands.setTextSelection({ from: Pe, to: Ye })), qe.current = !0;
235003
235004
  }, 100);
235004
- return () => clearTimeout(De);
235005
+ return () => clearTimeout(Ae);
235005
235006
  } else
235006
235007
  qe.current = !0;
235007
235008
  }, [Ee, t, T]), {
@@ -236949,7 +236950,7 @@ const oW = Ce.memo(f0e), mfn = ({
236949
236950
  onResolveComment: be,
236950
236951
  onUnresolveComment: ue,
236951
236952
  onDeleteComment: Fe,
236952
- showTOC: Ae,
236953
+ showTOC: De,
236953
236954
  setShowTOC: Ie,
236954
236955
  isConnected: Be,
236955
236956
  connectViaWallet: Ee,
@@ -236972,14 +236973,14 @@ const oW = Ce.memo(f0e), mfn = ({
236972
236973
  collaborationKeyPair: ze,
236973
236974
  collabConfig: Ze,
236974
236975
  // Document styling object
236975
- documentStyling: De,
236976
+ documentStyling: Ae,
236976
236977
  ...Pe
236977
236978
  }, Ye) => {
236978
236979
  const [ct, it] = Le(!1), [gt, Ft] = Le(!1), jt = (() => {
236979
- if (!De)
236980
+ if (!Ae)
236980
236981
  return { canvas: void 0, background: void 0 };
236981
236982
  const vn = {}, un = {};
236982
- return De.canvasBackground && (vn.backgroundColor = De.canvasBackground), De.textColor && (vn.color = De.textColor), De.fontFamily && (vn.fontFamily = De.fontFamily), De.background && (un.background = De.background), {
236983
+ return Ae.canvasBackground && (vn.backgroundColor = Ae.canvasBackground), Ae.textColor && (vn.color = Ae.textColor), Ae.fontFamily && (vn.fontFamily = Ae.fontFamily), Ae.background && (un.background = Ae.background), {
236983
236984
  canvas: Object.keys(vn).length > 0 ? vn : void 0,
236984
236985
  background: Object.keys(un).length > 0 ? un : void 0
236985
236986
  };
@@ -237102,7 +237103,7 @@ const oW = Ce.memo(f0e), mfn = ({
237102
237103
  ), Gt = {
237103
237104
  name: vn
237104
237105
  };
237105
- un && (Gt.color = un.color, Gt.isEns = un.isEns), Ge.commands.updateUser(Gt);
237106
+ un && (Gt.color = un.color, Gt.isEns = un.isEns), typeof Ge.commands.updateUser == "function" && (Ge.commands.updateUser(Gt), Ge.setEditable(!0));
237106
237107
  },
237107
237108
  terminateSession: Pa
237108
237109
  }),
@@ -237213,7 +237214,7 @@ const oW = Ce.memo(f0e), mfn = ({
237213
237214
  renderThemeToggle: J,
237214
237215
  isContentLoading: dt,
237215
237216
  ipfsImageFetchFn: le,
237216
- documentStyling: De
237217
+ documentStyling: Ae
237217
237218
  }
237218
237219
  ),
237219
237220
  Ge && /* @__PURE__ */ k.jsx(
@@ -237223,7 +237224,7 @@ const oW = Ce.memo(f0e), mfn = ({
237223
237224
  hasToC: !0,
237224
237225
  items: ir,
237225
237226
  setItems: Eo,
237226
- showTOC: Ae,
237227
+ showTOC: De,
237227
237228
  setShowTOC: Ie,
237228
237229
  isPreviewMode: e || !O
237229
237230
  }
@@ -237234,7 +237235,7 @@ const oW = Ce.memo(f0e), mfn = ({
237234
237235
  id: "editor-wrapper",
237235
237236
  className: St(
237236
237237
  "w-full mx-auto rounded",
237237
- !(De != null && De.canvasBackground) && "color-bg-default",
237238
+ !(Ae != null && Ae.canvasBackground) && "color-bg-default",
237238
237239
  !e && (O ? "-mt-[1.5rem] md:!mt-[0.8rem] pt-0 md:pt-[5rem]" : "pt-0 md:pt-[1.5rem]"),
237239
237240
  e && "md:!mt-[1rem] pt-0 md:!pt-[5rem]",
237240
237241
  { "md:!mt-[0.7rem]": !e },
@@ -237278,7 +237279,7 @@ const oW = Ce.memo(f0e), mfn = ({
237278
237279
  "w-full h-full pt-8 md:pt-0",
237279
237280
  { "custom-ios-padding": Xn },
237280
237281
  {
237281
- "color-bg-default": !(De != null && De.canvasBackground) && (V === "1.4" || V === "1.5")
237282
+ "color-bg-default": !(Ae != null && Ae.canvasBackground) && (V === "1.4" || V === "1.5")
237282
237283
  }
237283
237284
  ),
237284
237285
  style: {
@@ -237403,7 +237404,7 @@ const oW = Ce.memo(f0e), mfn = ({
237403
237404
  id: "editor",
237404
237405
  className: St(
237405
237406
  "w-full h-auto py-4",
237406
- !(De != null && De.canvasBackground) && "color-bg-default",
237407
+ !(Ae != null && Ae.canvasBackground) && "color-bg-default",
237407
237408
  e && "preview-mode",
237408
237409
  Ne !== void 0 && Re && "has-available-models"
237409
237410
  ),
@@ -237479,7 +237480,7 @@ const oW = Ce.memo(f0e), mfn = ({
237479
237480
  ) })
237480
237481
  ] }) });
237481
237482
  };
237482
- return /* @__PURE__ */ k.jsx(pKt, { documentStyling: De, children: /* @__PURE__ */ k.jsx(
237483
+ return /* @__PURE__ */ k.jsx(pKt, { documentStyling: Ae, children: /* @__PURE__ */ k.jsx(
237483
237484
  "div",
237484
237485
  {
237485
237486
  className: St(